@mastra/core
Version:
1 lines • 1.28 kB
Source Map (JSON)
{"version":3,"file":"constants.cjs","names":[],"sources":["../../src/workflows/constants.ts"],"sourcesContent":["// Symbol used to inject pubsub into step context without exposing it in the public API.\n// Steps can access pubsub via context[PUBSUB_SYMBOL] for internal event publishing.\nexport const PUBSUB_SYMBOL = Symbol('pubsub');\n\n// Symbol used to pass stream format preferences through step context.\nexport const STREAM_FORMAT_SYMBOL = Symbol('stream_format');\n\n// Symbol used to identify results from nested workflow execution.\n//\n// When a workflow contains another workflow as a step, the inner workflow's execute()\n// returns a result wrapped with this symbol. The step handler (handlers/step.ts) checks\n// for this symbol to detect nested workflow results and handle them specially - extracting\n// the actual result and nested runId for proper state management.\n//\n// This Symbol is safe to use (unlike PendingMarker) because it stays in-memory within\n// a single execution context - it's never serialized to storage or passed between\n// distributed engine instances.\nexport const NESTED_WORKFLOW_RESULT_SYMBOL = Symbol('nested_workflow_result');\n"],"mappings":";;AAEA,MAAa,gBAAgB,OAAO,QAAQ;AAG5C,MAAa,uBAAuB,OAAO,eAAe;AAY1D,MAAa,gCAAgC,OAAO,wBAAwB"}