{"version":3,"file":"index.cjs","names":[],"sources":["../../src/features/index.ts"],"sourcesContent":["/**\n * Core feature flags for @mastra/core\n *\n * This set tracks which features are available in the current version of @mastra/core.\n * Dependent packages can check for feature availability to ensure compatibility.\n *\n * @example\n * ```ts\n * import { coreFeatures } from \"@mastra/core/features\"\n *\n * if (coreFeatures.has('workspaces-v1')) {\n *   // Workspace features available\n * }\n * ```\n */\n// Add feature flags here as new features are introduced\nexport const coreFeatures = new Set<string>([\n  'observationalMemory',\n  'asyncBuffering',\n  'request-response-id-rotation',\n  'workspaces-v1',\n  'datasets',\n  // Dataset item data can be permanently purged from history and linked experiment results.\n  'dataset-item-purge',\n  'observability:v1.13.2',\n  'observability-delta-polling',\n  // Shared span-type-aware input, output, and error preview formatting.\n  'observability-span-previews',\n  'observability-trace-query-tenant-scope',\n  'channels',\n  'deploy-diagnosis',\n  'model-inference-span',\n  'execution-outcomes',\n  'internal-usage-rollup',\n  'json-prompt-injection:inline',\n  'observability-signal-deletion',\n  'knowledge-v2',\n  // Knowledge schema 4 (pages, notes, stamps, mentions, pins) and its shared bound helpers.\n  'knowledge-pages',\n  // Experiments can be deleted, including experiments orphaned by dataset\n  // deletion, and the deletion cascades to the experiment's observability traces.\n  'experiment-deletion',\n  // compareExperiments filters by organizationId and projectId. Older cores\n  // accept those arguments and ignore them, so callers must fail closed on a\n  // scoped comparison unless this flag is present.\n  'experiment-comparison-tenancy',\n  // Processors can declare the span type they are traced as, and the built-in\n  // subsystems declare theirs: SKILL_ACTION, AGENT_SIGNAL, and the memory and\n  // workspace types for skills, state signals, memory and workspace\n  // instructions.\n  //\n  // A dependent that only needs to know whether one SpanType member exists\n  // should test that member for `undefined` instead of importing this set:\n  // `@mastra/core/features` is itself a recent subpath, so importing it raises\n  // the oldest core the dependent can load against.\n  'processor-span-types',\n  // A suspending workflow run saves its sampling decision and trace state\n  // (`getWorkflowResumeTracingContext`), and its resume repeats that decision\n  // instead of sampling again.\n  'workflow-resume-sampling',\n]);\n"],"mappings":";;;;;;;;;;;;;;;;;AAgBA,MAAa,+BAAe,IAAI,IAAY;CAC1C;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CAGA;CAIA;CAUA;CAIA;AACF,CAAC"}