@runtypelabs/sdk 4.10.0 → 4.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -5446,6 +5446,7 @@ interface paths {
5446
5446
  maxMessagesPerSession: number | null;
5447
5447
  name: string | null;
5448
5448
  pinToVersion: string | null;
5449
+ productSurfaceId?: string | null;
5449
5450
  rateLimitPerHour: number | null;
5450
5451
  rateLimitPerMinute: number | null;
5451
5452
  sessionIdleTimeoutMinutes: number | null;
@@ -5557,6 +5558,7 @@ interface paths {
5557
5558
  maxMessagesPerSession: number | null;
5558
5559
  name: string | null;
5559
5560
  pinToVersion: string | null;
5561
+ productSurfaceId?: string | null;
5560
5562
  rateLimitPerHour: number | null;
5561
5563
  rateLimitPerMinute: number | null;
5562
5564
  sessionIdleTimeoutMinutes: number | null;
@@ -5673,6 +5675,7 @@ interface paths {
5673
5675
  maxMessagesPerSession: number | null;
5674
5676
  name: string | null;
5675
5677
  pinToVersion: string | null;
5678
+ productSurfaceId?: string | null;
5676
5679
  rateLimitPerHour: number | null;
5677
5680
  rateLimitPerMinute: number | null;
5678
5681
  sessionIdleTimeoutMinutes: number | null;
@@ -5790,6 +5793,7 @@ interface paths {
5790
5793
  maxMessagesPerSession: number | null;
5791
5794
  name: string | null;
5792
5795
  pinToVersion: string | null;
5796
+ productSurfaceId?: string | null;
5793
5797
  rateLimitPerHour: number | null;
5794
5798
  rateLimitPerMinute: number | null;
5795
5799
  sessionIdleTimeoutMinutes: number | null;
@@ -21179,7 +21183,7 @@ interface paths {
21179
21183
  /** @enum {string} */
21180
21184
  status?: "draft" | "active" | "paused";
21181
21185
  /** @enum {string} */
21182
- type: "chat" | "mcp" | "mcp_code" | "api" | "webhook" | "schedule" | "a2a" | "email" | "slack" | "sms" | "imessage" | "discord" | "whatsapp" | "telegram" | "hosted-page";
21186
+ type: "chat" | "mcp" | "mcp_code" | "api" | "webhook" | "schedule" | "a2a" | "email" | "slack" | "sms" | "imessage" | "discord" | "whatsapp" | "telegram" | "hosted-page" | "chrome_extension";
21183
21187
  };
21184
21188
  };
21185
21189
  };
@@ -33584,6 +33588,7 @@ interface paths {
33584
33588
  features: {
33585
33589
  dashboardAssistantModel: string;
33586
33590
  enableAgentSkills: boolean;
33591
+ enableChromeSurface: boolean;
33587
33592
  enableDashboardAssistant: boolean;
33588
33593
  productGeneratorModel: string;
33589
33594
  };
@@ -40235,6 +40240,8 @@ interface RunTaskStateSlice {
40235
40240
  isCreationTask?: boolean;
40236
40241
  /** For creation tasks: allowed write root (e.g. "public/"). Writes must stay under this path. */
40237
40242
  outputRoot?: string;
40243
+ /** Number of consecutive sessions with no tool actions (the stall-detection counter) */
40244
+ consecutiveEmptySessions?: number;
40238
40245
  sessions: Array<{
40239
40246
  actionKeys?: string[];
40240
40247
  hadTextOutput?: boolean;
@@ -40310,11 +40317,40 @@ interface WorkflowPhase {
40310
40317
  /** Return true if the agent's TASK_COMPLETE claim should be accepted in this phase */
40311
40318
  canAcceptCompletion?: (state: RunTaskStateSlice, trace: RunTaskToolTraceSlice) => boolean;
40312
40319
  }
40320
+ /**
40321
+ * Escalation policy for consecutive sessions with no tool actions.
40322
+ *
40323
+ * Every threshold counts the same `consecutiveEmptySessions` counter used for
40324
+ * stall detection: a session is empty when it performed no write, read,
40325
+ * discovery, or verification tool action. Text-only narration ("I'll create
40326
+ * the files now") does NOT reset the counter — a model that narrates intent
40327
+ * without calling tools still escalates here, even though phase-level
40328
+ * `buildRecoveryMessage` conditions keyed on `hadTextOutput` would not fire.
40329
+ */
40330
+ interface WorkflowStallPolicy {
40331
+ /**
40332
+ * Inject a generic recovery nudge into the next session after N consecutive
40333
+ * empty sessions, when the current phase's buildRecoveryMessage returns
40334
+ * nothing. Unset = no workflow-level nudge (legacy behavior).
40335
+ */
40336
+ nudgeAfter?: number;
40337
+ /**
40338
+ * Set `state.stallEscalationRequested` when the counter reaches N, signaling
40339
+ * the caller (via onSession) to restart with a fallback model. The SDK only
40340
+ * raises the signal — model switching is the caller's responsibility.
40341
+ * Unset = never signal.
40342
+ */
40343
+ escalateModelAfter?: number;
40344
+ /** Stop the run with status 'stalled' after N consecutive empty sessions (default 3). */
40345
+ stopAfter?: number;
40346
+ }
40313
40347
  interface WorkflowDefinition {
40314
40348
  /** Workflow name for logging/debugging */
40315
40349
  name: string;
40316
40350
  /** Ordered list of phases */
40317
40351
  phases: WorkflowPhase[];
40352
+ /** Escalation policy for consecutive sessions with no tool actions */
40353
+ stallPolicy?: WorkflowStallPolicy;
40318
40354
  /** Classify the user message into a variant (e.g. 'create' vs 'modify') */
40319
40355
  classifyVariant?: (message: string) => string | undefined;
40320
40356
  /** Generate bootstrap context before the first session */
@@ -41752,6 +41788,12 @@ interface RunTaskState {
41752
41788
  * when that window re-crosses the threshold. 0/undefined = no compaction yet.
41753
41789
  */
41754
41790
  contextWindowBaseIndex?: number;
41791
+ /**
41792
+ * Set when the workflow's stallPolicy.escalateModelAfter threshold is reached.
41793
+ * Callers observe this in onSession and may restart with a fallback model.
41794
+ * Cleared as soon as a session performs tool actions again.
41795
+ */
41796
+ stallEscalationRequested?: boolean;
41755
41797
  /** Arbitrary bag for workflow-specific data */
41756
41798
  workflowState?: Record<string, unknown>;
41757
41799
  }
@@ -43952,6 +43994,227 @@ declare const STEP_TYPE_TO_METHOD: {
43952
43994
  readonly 'memory-summary': "memorySummary";
43953
43995
  };
43954
43996
 
43997
+ /**
43998
+ * Named workflow hook registry.
43999
+ *
44000
+ * Workflow configs (the data form compiled by `compileWorkflowConfig`) can
44001
+ * reference behavior by name instead of carrying functions: `builtin:*` names
44002
+ * are reserved for the hooks that power the default workflow, and consumers
44003
+ * register their own under a custom namespace (e.g. `acme:my-completion`).
44004
+ *
44005
+ * Every hook declares which SLOT KIND it implements so a config that wires a
44006
+ * hook into the wrong slot fails at load/compile time with an actionable
44007
+ * error — not mid-marathon. Hook misfires in this system don't crash, they
44008
+ * stall, which is the worst failure mode to debug.
44009
+ */
44010
+
44011
+ interface WorkflowHookSignatures {
44012
+ /** WorkflowPhase.buildInstructions — used verbatim (no header is added) */
44013
+ instructions: (state: RunTaskStateSlice) => string;
44014
+ /** WorkflowPhase.buildToolGuidance */
44015
+ toolGuidance: (state: RunTaskStateSlice) => string[];
44016
+ /** WorkflowPhase.isComplete */
44017
+ completion: (ctx: WorkflowContext) => boolean;
44018
+ /** WorkflowPhase.buildTransitionSummary */
44019
+ transitionSummary: (state: RunTaskStateSlice, nextPhaseName: string) => string;
44020
+ /** WorkflowPhase.interceptToolCall — may only narrow (block); returning undefined never overrides an outer deny */
44021
+ intercept: (toolName: string, args: Record<string, unknown>, ctx: WorkflowContext) => string | undefined;
44022
+ /** WorkflowPhase.buildRecoveryMessage */
44023
+ recovery: (state: RunTaskStateSlice) => string | undefined;
44024
+ /** WorkflowPhase.shouldForceEndTurn */
44025
+ forceEndTurn: (snapshot: LocalToolExecutionLoopSnapshotSlice, ctx: WorkflowContext) => string | undefined;
44026
+ /** WorkflowPhase.canAcceptCompletion */
44027
+ acceptCompletion: (state: RunTaskStateSlice, trace: RunTaskToolTraceSlice) => boolean;
44028
+ /** WorkflowDefinition.classifyVariant */
44029
+ classify: (message: string) => string | undefined;
44030
+ /** WorkflowDefinition.generateBootstrapContext */
44031
+ bootstrap: (message: string, localTools: Record<string, LocalToolDefinition> | undefined, variant?: string) => Promise<string | undefined>;
44032
+ /** WorkflowDefinition.buildCandidateBlock */
44033
+ candidateBlock: (state: RunTaskStateSlice) => string;
44034
+ }
44035
+ type WorkflowHookKind = keyof WorkflowHookSignatures;
44036
+ interface WorkflowHookEntry<K extends WorkflowHookKind = WorkflowHookKind> {
44037
+ kind: K;
44038
+ fn: WorkflowHookSignatures[K];
44039
+ }
44040
+ /**
44041
+ * A string is a hook reference iff it full-matches `<namespace>:<id>` with
44042
+ * both segments lowercase [a-z0-9_-]. Inline prose (multi-word strings,
44043
+ * paths, sentences) never matches, so config slots can accept either form.
44044
+ */
44045
+ declare function isWorkflowHookRef(value: unknown): value is string;
44046
+ /**
44047
+ * Register a custom workflow hook. The `builtin:` namespace is reserved —
44048
+ * "replacing" a builtin means pointing the config slot at your own hook, not
44049
+ * mutating the registry, so a shipped default config keeps a stable meaning.
44050
+ * Re-registering an existing custom name overwrites it (last write wins
44051
+ * within one process, e.g. plugin reload).
44052
+ */
44053
+ declare function registerWorkflowHook<K extends WorkflowHookKind>(name: string, entry: WorkflowHookEntry<K>): void;
44054
+ /** Resolve a hook by name, validating the slot kind. Throws actionable errors. */
44055
+ declare function resolveWorkflowHook<K extends WorkflowHookKind>(name: string, expectedKind: K): WorkflowHookSignatures[K];
44056
+ /** List registered hooks (name + kind) for error messages and tooling. */
44057
+ declare function listWorkflowHooks(): Array<{
44058
+ name: string;
44059
+ kind: WorkflowHookKind;
44060
+ }>;
44061
+ /** Test seam: remove a custom hook (builtin entries cannot be removed). */
44062
+ declare function unregisterWorkflowHook(name: string): boolean;
44063
+
44064
+ /**
44065
+ * Declarative workflow configs and the compiler that turns them into a
44066
+ * `WorkflowDefinition`.
44067
+ *
44068
+ * This is the single compile path for marathon workflows-as-data: the CLI
44069
+ * playbook loader parses YAML/JSON into a `WorkflowConfig` and delegates here,
44070
+ * and the shipped default workflow is itself a `WorkflowConfig`
44071
+ * (`defaultWorkflowConfig` in default-workflow.ts) compiled through the same
44072
+ * function — so playbooks and the default cannot drift in semantics.
44073
+ *
44074
+ * Each behavior slot accepts either INLINE DATA (strings, declarative
44075
+ * criteria, policy rules) or a HOOK REFERENCE (`"<namespace>:<id>"`, see
44076
+ * hook-registry.ts) resolved against the registry with slot-kind validation
44077
+ * at compile time.
44078
+ *
44079
+ * The compiler is environment-free: no fs, no YAML, no glob library. Glob
44080
+ * matching for policy rules is injected via `WorkflowCompileDeps` (the CLI
44081
+ * passes micromatch); configs that use glob policies without a matcher fail
44082
+ * at compile time with an actionable error.
44083
+ */
44084
+
44085
+ declare const DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS = 2;
44086
+ /** A `"<namespace>:<id>"` reference into the workflow hook registry. */
44087
+ type WorkflowHookRef = string;
44088
+ interface WorkflowCompletionCriteriaConfig {
44089
+ /** Built-in criteria type, or a 'completion' hook reference */
44090
+ type: 'evidence' | 'sessions' | 'planWritten' | 'never' | WorkflowHookRef;
44091
+ minReadFiles?: number;
44092
+ minSessions?: number;
44093
+ }
44094
+ /**
44095
+ * Every behavior slot accepts inline data, a hook reference, or — for configs
44096
+ * authored in TypeScript (module playbooks, programmatic use) — a plain
44097
+ * function with the slot's hook signature. Functions never round-trip through
44098
+ * JSON/YAML, so declarative playbooks are unaffected.
44099
+ */
44100
+ type WorkflowSlot<K extends keyof WorkflowHookSignatures, Inline = never> = Inline | WorkflowHookRef | WorkflowHookSignatures[K];
44101
+ interface WorkflowRecoveryConfig {
44102
+ /** Inject after N consecutive empty sessions (default 2) */
44103
+ afterEmptySessions?: number;
44104
+ /** Recovery message; supports {{key}} interpolation from run state (e.g. {{planPath}}) */
44105
+ message: string;
44106
+ }
44107
+ /**
44108
+ * Declarative policy for narrowing runtime behavior.
44109
+ * Cannot override global denies (e.g. secret paths). Precedence: global deny > workflow deny > config narrowing.
44110
+ */
44111
+ interface WorkflowPolicyConfig {
44112
+ /** Glob patterns for allowed read paths (e.g. ["src/**", "docs/**"]). If set, reads outside these are blocked. */
44113
+ allowedReadGlobs?: string[];
44114
+ /** Glob patterns for allowed write paths. If set, writes outside these are blocked. */
44115
+ allowedWriteGlobs?: string[];
44116
+ /** Tool names to block (e.g. ["write_file", "search_repo"]). */
44117
+ blockedTools?: string[];
44118
+ /** Require verification before TASK_COMPLETE (consumed by the runner, not the compiler). */
44119
+ requireVerification?: boolean;
44120
+ /** Block discovery tools (search_repo, glob_files, tree_directory, list_directory). */
44121
+ blockDiscoveryTools?: boolean;
44122
+ /** Require plan to be written before any non-plan writes. */
44123
+ requirePlanBeforeWrite?: boolean;
44124
+ /** For creation tasks: allowed write root (e.g. "public/"). Consumed by the runner via state.outputRoot. */
44125
+ outputRoot?: string;
44126
+ }
44127
+ interface WorkflowMilestoneConfig {
44128
+ name: string;
44129
+ description?: string;
44130
+ /**
44131
+ * Inline instructions (interpolated, with a "--- Workflow Phase ---" header
44132
+ * added), an 'instructions' hook reference, or a function (both used verbatim).
44133
+ */
44134
+ instructions: WorkflowSlot<'instructions', string>;
44135
+ /** Inline guidance lines, a 'toolGuidance' hook reference, or a function. Policy-derived guidance is appended either way. */
44136
+ toolGuidance?: WorkflowSlot<'toolGuidance', string[]>;
44137
+ /** Declarative criteria object, or a 'completion' predicate function */
44138
+ completionCriteria?: WorkflowCompletionCriteriaConfig | WorkflowHookSignatures['completion'];
44139
+ /**
44140
+ * Inline boolean, an 'acceptCompletion' hook reference or function, or absent.
44141
+ * NOTE: absent means the slot is omitted from the compiled phase — the SDK
44142
+ * then ACCEPTS completion by default. Loaders that want reject-by-default
44143
+ * (the playbook behavior) must set `false` explicitly before compiling.
44144
+ */
44145
+ canAcceptCompletion?: WorkflowSlot<'acceptCompletion', boolean>;
44146
+ /** Inline recovery (triggered on the consecutive-empty-sessions counter), a 'recovery' hook reference, or a function */
44147
+ recovery?: WorkflowSlot<'recovery', WorkflowRecoveryConfig>;
44148
+ /** Inline summary (supports {{key}} + {{nextPhase}}), a 'transitionSummary' hook reference, or a function */
44149
+ transitionSummary?: WorkflowSlot<'transitionSummary', string>;
44150
+ /** An 'intercept' hook reference or function; runs after the policy intercept and can only narrow further */
44151
+ intercept?: WorkflowSlot<'intercept'>;
44152
+ /** A 'forceEndTurn' hook reference or function */
44153
+ forceEndTurn?: WorkflowSlot<'forceEndTurn'>;
44154
+ /** Per-milestone model override (consumed by the runner, not the compiler) */
44155
+ model?: string;
44156
+ /** Per-milestone fallback models (consumed by the runner, not the compiler) */
44157
+ fallbackModels?: unknown[];
44158
+ }
44159
+ interface WorkflowConfig {
44160
+ name: string;
44161
+ description?: string;
44162
+ stallPolicy?: WorkflowStallPolicy;
44163
+ policy?: WorkflowPolicyConfig;
44164
+ /** A 'classify' hook reference or function */
44165
+ classifyVariant?: WorkflowSlot<'classify'>;
44166
+ /** A 'bootstrap' hook reference or function */
44167
+ bootstrap?: WorkflowSlot<'bootstrap'>;
44168
+ /** A 'candidateBlock' hook reference or function */
44169
+ candidateBlock?: WorkflowSlot<'candidateBlock'>;
44170
+ milestones: WorkflowMilestoneConfig[];
44171
+ /** Runner-level passthrough (verification requirements); ignored by the compiler */
44172
+ verification?: {
44173
+ required: boolean;
44174
+ commands?: string[];
44175
+ };
44176
+ /** Runner-level passthrough (extra rules text); ignored by the compiler */
44177
+ rules?: string;
44178
+ }
44179
+ /**
44180
+ * A module playbook's default export: either a workflow config directly, or a
44181
+ * factory that receives the registration API and returns one. The API is
44182
+ * INJECTED so hooks land in the loading process's registry instance even when
44183
+ * the playbook module would resolve a different copy of @runtypelabs/sdk.
44184
+ */
44185
+ type WorkflowConfigFactory = (api: {
44186
+ registerWorkflowHook: typeof registerWorkflowHook;
44187
+ }) => WorkflowConfig | Promise<WorkflowConfig>;
44188
+ /**
44189
+ * Identity helper for TypeScript playbooks — exists purely for type inference
44190
+ * (the `defineConfig` pattern). Optional: a plain object/function export with
44191
+ * the same shape works identically, so playbook modules don't need
44192
+ * @runtypelabs/sdk installed at runtime.
44193
+ */
44194
+ declare function definePlaybook<T extends WorkflowConfig | WorkflowConfigFactory>(playbook: T): T;
44195
+ interface WorkflowCompileDeps {
44196
+ /**
44197
+ * Glob matcher for policy allowedReadGlobs / allowedWriteGlobs (the CLI
44198
+ * passes micromatch). Required at compile time when the config uses glob
44199
+ * policies; other configs compile without it.
44200
+ */
44201
+ matchPathGlobs?: (path: string, globs: string[]) => boolean;
44202
+ }
44203
+ declare function interpolateWorkflowTemplate(template: string, state: RunTaskStateSlice): string;
44204
+ /**
44205
+ * Generate tool-guidance lines from the policy block so the model is told
44206
+ * what the interceptor enforces. Guidance and enforcement compile from the
44207
+ * same config, so they cannot drift — a silently-enforced constraint teaches
44208
+ * the model that tools "don't work" instead of what the actual rule is.
44209
+ */
44210
+ declare function buildPolicyGuidance(policy?: WorkflowPolicyConfig): string[];
44211
+ /**
44212
+ * Compile a declarative workflow config into a WorkflowDefinition.
44213
+ * Hook references are resolved (and kind-validated) eagerly, so a bad
44214
+ * reference fails here — at load time — with an actionable error.
44215
+ */
44216
+ declare function compileWorkflowConfig(config: WorkflowConfig, deps?: WorkflowCompileDeps): WorkflowDefinition;
44217
+
43955
44218
  /**
43956
44219
  * Default marathon workflow: research → planning → execution.
43957
44220
  *
@@ -43960,6 +44223,23 @@ declare const STEP_TYPE_TO_METHOD: {
43960
44223
  * via the `workflowVariant` / `isCreationTask` flags on state.
43961
44224
  */
43962
44225
 
44226
+ /**
44227
+ * Register the default workflow's behaviors as `builtin:*` hooks. Idempotent.
44228
+ * Importing this module (or anything that pulls in `defaultWorkflow`) calls it
44229
+ * automatically; loaders that compile configs without importing the default
44230
+ * workflow (e.g. the CLI playbook loader) must call it explicitly before
44231
+ * `compileWorkflowConfig` so `builtin:*` references resolve.
44232
+ */
44233
+ declare function ensureDefaultWorkflowHooks(): void;
44234
+ /**
44235
+ * The default workflow expressed as a declarative config over `builtin:*`
44236
+ * hooks. This is the same shape the CLI playbook loader compiles, so a user
44237
+ * playbook can reuse any slice of the default by referencing the same hooks
44238
+ * (e.g. keep `builtin:research-guard` but supply custom execution
44239
+ * instructions). The heuristic logic stays in this file as named builtins;
44240
+ * the composition is data.
44241
+ */
44242
+ declare const defaultWorkflowConfig: WorkflowConfig;
43963
44243
  declare const defaultWorkflow: WorkflowDefinition;
43964
44244
 
43965
44245
  /**
@@ -44003,6 +44283,36 @@ declare const deployWorkflow: WorkflowDefinition;
44003
44283
 
44004
44284
  declare const gameWorkflow: WorkflowDefinition;
44005
44285
 
44286
+ /**
44287
+ * Helpers for WorkflowDefinition.stallPolicy: what happens when an agent
44288
+ * produces consecutive sessions with no tool actions.
44289
+ *
44290
+ * All thresholds count the run-level `consecutiveEmptySessions` counter (a
44291
+ * session is empty when it performed no write/read/discovery/verification
44292
+ * tool action), so narration-only sessions escalate here even though they
44293
+ * carry text output. Absent policy values preserve the legacy behavior:
44294
+ * no nudge, no escalation signal, stop after 3.
44295
+ */
44296
+
44297
+ declare const DEFAULT_STALL_STOP_AFTER = 3;
44298
+ /** Resolve how many consecutive empty sessions end the run as 'stalled'. */
44299
+ declare function resolveStallStopAfter(policy?: WorkflowStallPolicy): number;
44300
+ /**
44301
+ * Whether to raise the model-escalation signal for this empty-session count.
44302
+ * Fires exactly once per stall episode (when the counter reaches the
44303
+ * threshold), so a caller that cannot escalate is not re-signaled every
44304
+ * subsequent empty session.
44305
+ */
44306
+ declare function shouldRequestModelEscalation(policy: WorkflowStallPolicy | undefined, consecutiveEmptySessions: number): boolean;
44307
+ /** Whether the workflow-level empty-session nudge should be injected. */
44308
+ declare function shouldInjectEmptySessionNudge(policy: WorkflowStallPolicy | undefined, consecutiveEmptySessions: number): boolean;
44309
+ /**
44310
+ * Generic recovery nudge used when a phase has no buildRecoveryMessage of its
44311
+ * own (or it returned nothing). Targets the narration-without-tool-calls
44312
+ * failure mode directly.
44313
+ */
44314
+ declare function buildEmptySessionNudge(consecutiveEmptySessions: number): string;
44315
+
44006
44316
  /**
44007
44317
  * Utility functions shared between workflow phase handlers and AgentsEndpoint.
44008
44318
  *
@@ -44020,4 +44330,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
44020
44330
  declare function getDefaultPlanPath(taskName: string): string;
44021
44331
  declare function sanitizeTaskSlug(taskName: string): string;
44022
44332
 
44023
- export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, type DefineAgentInput, type DefineFlowInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateAppRequest, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowContext, type WorkflowDefinition, type WorkflowPhase, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildSendViewOffloadMarker, computeAgentContentHash, computeFlowContentHash, createClient, createExternalTool, defaultWorkflow, defineAgent, defineFlow, deployWorkflow, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, normalizeAgentDefinition, normalizeCandidatePath, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, sanitizeTaskSlug, streamEvents };
44333
+ export { type Agent, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, ApiKeysEndpoint, type ApiResponse, type App, type AppManifest, type AppVersion, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, AppsEndpoint, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, ChatEndpoint, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientWidgetTheme, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateAppRequest, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateConversationRequest, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DefineAgentInput, type DefineFlowInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DiscoveredModel, type DispatchClient, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type ErrorHandlingMode, EvalBuilder, type EvalClient, EvalEndpoint, type EvalListParams, type EvalOptions, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunConfig, EvalRunner, type EvalStatus, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchGitHubStepConfig$1 as FetchGitHubStepConfig, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type ImageContentPart, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListConversationsResponse, type ListParams, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptRunOptions, PromptRunner, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordConfig$1 as RecordConfig, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchGitHubStepConfig as RuntypeFetchGitHubStepConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SendTextStepConfig as RuntypeSendTextStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SendTextStepConfig$1 as SendTextStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackInstallRequest, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceListParams, SurfacesEndpoint, type TextContentPart, type Tool, type ToolConfig, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, type TransformDataStepConfig$1 as TransformDataStepConfig, type UpdateAppRequest, type UpdateClientTokenRequest, type UpdateConversationRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, compileWorkflowConfig, computeAgentContentHash, computeFlowContentHash, createClient, createExternalTool, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineFlow, definePlaybook, deployWorkflow, ensureDefaultWorkflowHooks, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isWorkflowHookRef, listWorkflowHooks, normalizeAgentDefinition, normalizeCandidatePath, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, streamEvents, unregisterWorkflowHook };