{"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 hand a nested workflow step its storage v2 parent's `ParentStateLink`, so the\n// nested run can store only its changes to a stored version of the parent's state.\nexport const PARENT_STATE_SYMBOL = Symbol('parent_state');\n\n// Symbol used to give a nested workflow step's run a `setState` that hands back its state with\n// the state its changes are relative to, so they're applied to the parent's state then.\nexport const HAND_BACK_STATE_SYMBOL = Symbol('hand_back_state');\n\n// Abort reason used when workflow code explicitly cancels a run.\nexport const WORKFLOW_CANCELLED_SYMBOL = Symbol('workflow_cancelled');\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;AAI1D,MAAa,sBAAsB,OAAO,cAAc;AAIxD,MAAa,yBAAyB,OAAO,iBAAiB;AAG9D,MAAa,4BAA4B,OAAO,oBAAoB;AAYpE,MAAa,gCAAgC,OAAO,wBAAwB"}