@kodax-ai/kodax 0.7.56 → 0.7.58

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.
Files changed (79) hide show
  1. package/CHANGELOG.md +2004 -1887
  2. package/README.md +52 -48
  3. package/README_CN.md +37 -32
  4. package/dist/builtin/code-review/SKILL.md +22 -3
  5. package/dist/chunks/agent-YJNC2755.js +2 -0
  6. package/dist/chunks/argument-completer-QGBNXTYJ.js +2 -0
  7. package/dist/chunks/chunk-526OILYL.js +2 -0
  8. package/dist/chunks/{chunk-ZBK3DZ3S.js → chunk-6AU6EPO6.js} +1 -1
  9. package/dist/chunks/chunk-73Z7BK5H.js +15 -0
  10. package/dist/chunks/chunk-7QB55SYG.js +326 -0
  11. package/dist/chunks/chunk-CQ6EQG7E.js +322 -0
  12. package/dist/chunks/chunk-CV6JHPEO.js +2 -0
  13. package/dist/chunks/chunk-D6QVXQNI.js +1 -0
  14. package/dist/chunks/chunk-HS2K74I4.js +31 -0
  15. package/dist/chunks/chunk-NKHXRN7G.js +403 -0
  16. package/dist/chunks/chunk-OBPB5BQ6.js +310 -0
  17. package/dist/chunks/chunk-P4VF3JEP.js +7 -0
  18. package/dist/chunks/chunk-PIQWODWN.js +18 -0
  19. package/dist/chunks/chunk-QHWXPJEG.js +601 -0
  20. package/dist/chunks/chunk-XXEIFNBE.js +52 -0
  21. package/dist/chunks/chunk-ZZDC75H4.js +681 -0
  22. package/dist/chunks/compaction-config-OPMRZSAK.js +2 -0
  23. package/dist/chunks/{construction-bootstrap-EDDVNP2B.js → construction-bootstrap-CIXFH5SE.js} +4 -4
  24. package/dist/chunks/dist-JSE7NICF.js +2 -0
  25. package/dist/chunks/dist-SDNQOW52.js +2 -0
  26. package/dist/chunks/host-H7FQMMRC.js +2 -0
  27. package/dist/chunks/{paste-5IDBBQQ3.js → paste-Y4DVUWSM.js} +1 -1
  28. package/dist/chunks/run-manager-4H5HWMVW.js +2 -0
  29. package/dist/chunks/utils-FLVVQHM7.js +2 -0
  30. package/dist/index.d.ts +22 -18
  31. package/dist/index.js +6 -6
  32. package/dist/kodax_cli.js +1303 -1108
  33. package/dist/provider-capabilities.json +986 -197
  34. package/dist/sdk-agent.d.ts +162 -14
  35. package/dist/sdk-agent.js +1 -1
  36. package/dist/sdk-coding.d.ts +285 -255
  37. package/dist/sdk-coding.js +1 -1
  38. package/dist/sdk-llm.d.ts +66 -43
  39. package/dist/sdk-llm.js +1 -1
  40. package/dist/sdk-mcp.d.ts +1 -1
  41. package/dist/sdk-mcp.js +1 -1
  42. package/dist/sdk-media.d.ts +64 -5
  43. package/dist/sdk-media.js +1 -1
  44. package/dist/sdk-repl.d.ts +114 -107
  45. package/dist/sdk-repl.js +2 -2
  46. package/dist/sdk-session.d.ts +7 -7
  47. package/dist/sdk-session.js +1 -1
  48. package/dist/sdk-skills.js +1 -1
  49. package/dist/semantic-worker.js +11 -0
  50. package/dist/types-chunks/{base.d-CwPfI8WQ.d.ts → base.d-BA9Doaj_.d.ts} +38 -8
  51. package/dist/types-chunks/{bash-prefix-extractor.d-DZF1gDDz.d.ts → bash-prefix-extractor.d-D3cddmyV.d.ts} +639 -163
  52. package/dist/types-chunks/capability-learning.d-DRV80ISB.d.ts +29 -0
  53. package/dist/types-chunks/{cost-tracker.d-wRtyEW9d.d.ts → cost-tracker.d-CBLk1fiD.d.ts} +24 -2
  54. package/dist/types-chunks/{guardrail.d-DQQknOfb.d.ts → guardrail.d-iK7FwMdW.d.ts} +32 -10
  55. package/dist/types-chunks/{manager.d-DLmDhX3i.d.ts → manager.d-DBD7SOTT.d.ts} +7 -2
  56. package/dist/types-chunks/{process.d-BdiIUr8T.d.ts → process.d-DHow2y2G.d.ts} +170 -14
  57. package/dist/types-chunks/{resolver.d-Djq8KlCE.d.ts → resolver.d-DDOfVYDr.d.ts} +111 -18
  58. package/dist/types-chunks/{capsule.d-D0kjnqYy.d.ts → run-manager.d-ByDcJc5g.d.ts} +124 -13
  59. package/dist/types-chunks/{sdk-session-BP6ZNpOp.d.ts → sdk-session-21Tt3N_x.d.ts} +74 -9
  60. package/dist/types-chunks/{storage.d-CkydxFsV.d.ts → storage.d-BsZrBPYu.d.ts} +2 -2
  61. package/dist/types-chunks/{types.d-BJmoMf5H.d.ts → types.d-Ci5YPFEh.d.ts} +135 -22
  62. package/dist/types-chunks/{types.d-BKuHSiR0.d.ts → types.d-D4ZA8LJV.d.ts} +7 -3
  63. package/dist/types-chunks/{utils.d-bC97IuQZ.d.ts → utils.d-BURxOxFd.d.ts} +94 -19
  64. package/package.json +12 -7
  65. package/dist/chunks/agent-MAAKRAF2.js +0 -2
  66. package/dist/chunks/argument-completer-OWEXGWNL.js +0 -2
  67. package/dist/chunks/chunk-4OHXHC2S.js +0 -314
  68. package/dist/chunks/chunk-5YJIAP6C.js +0 -551
  69. package/dist/chunks/chunk-7EAGBLRV.js +0 -2
  70. package/dist/chunks/chunk-CDGOEK3T.js +0 -31
  71. package/dist/chunks/chunk-DHETLULC.js +0 -425
  72. package/dist/chunks/chunk-JCDO2FR4.js +0 -584
  73. package/dist/chunks/chunk-NZVJ3DFC.js +0 -656
  74. package/dist/chunks/chunk-QI3MRJGU.js +0 -5
  75. package/dist/chunks/chunk-XXQ3RLA2.js +0 -2
  76. package/dist/chunks/compaction-config-NAJEEPG5.js +0 -2
  77. package/dist/chunks/dist-2267YGB5.js +0 -2
  78. package/dist/chunks/dist-GW32CHO5.js +0 -2
  79. package/dist/chunks/utils-J7XBBZGB.js +0 -2
@@ -0,0 +1,29 @@
1
+ import { F as KodaXReasoningProfile } from './types.d-Ci5YPFEh.js';
2
+
3
+ type CapabilityCacheSource = 'observed' | 'probed';
4
+ interface CapabilityCacheEntry {
5
+ /** Efforts this provider/model rejected; removed from the effective ladder. */
6
+ readonly rejected: readonly string[];
7
+ /** How the rejection was learned. */
8
+ readonly source: CapabilityCacheSource;
9
+ /** ISO timestamp of the last update. */
10
+ readonly updatedAt: string;
11
+ }
12
+ /** Keyed by `provider/model`. */
13
+ type CapabilityCache = Record<string, CapabilityCacheEntry>;
14
+ declare function capabilityCacheKey(provider: string, model: string | undefined): string;
15
+ /**
16
+ * Narrow a reasoning profile by learned hard rejections.
17
+ *
18
+ * Learning only removes rungs. Provider acceptance is not proof that an effort
19
+ * is semantically distinct, but a hard rejection is ground truth that the rung
20
+ * should not be sent again for this provider/model.
21
+ */
22
+ declare function narrowReasoningProfile(profile: KodaXReasoningProfile, rejected: readonly string[]): KodaXReasoningProfile;
23
+ declare function getRejectedEfforts(cache: CapabilityCache, provider: string, model: string | undefined): readonly string[];
24
+ declare function addRejectedEffort(cache: CapabilityCache, provider: string, model: string | undefined, effort: string, source: CapabilityCacheSource, updatedAt: string): CapabilityCache;
25
+ declare function removeCacheEntry(cache: CapabilityCache, provider?: string, model?: string): CapabilityCache;
26
+ declare function sanitizeCapabilityCache(raw: unknown): CapabilityCache;
27
+
28
+ export { addRejectedEffort as c, capabilityCacheKey as d, getRejectedEfforts as g, narrowReasoningProfile as n, removeCacheEntry as r, sanitizeCapabilityCache as s };
29
+ export type { CapabilityCache as C, CapabilityCacheEntry as a, CapabilityCacheSource as b };
@@ -1,3 +1,25 @@
1
+ interface KodaXLlmTimeoutConfig {
2
+ /** Main provider request hard timeout, in seconds. Default 600s. */
3
+ readonly requestTimeoutSec?: number;
4
+ /** Idle timeout between stream deltas, in seconds. Set 0 to disable. Default 0. */
5
+ readonly streamIdleTimeoutSec?: number;
6
+ /** Per stream chunk timeout, in seconds. Default 30s. */
7
+ readonly chunkTimeoutSec?: number;
8
+ /** Maximum retry delay, in seconds. Default 60s. */
9
+ readonly maxRetryDelaySec?: number;
10
+ }
11
+ interface KodaXResolvedLlmTimeoutConfig {
12
+ readonly requestTimeoutMs?: number;
13
+ readonly streamIdleTimeoutMs?: number;
14
+ readonly chunkTimeoutMs?: number;
15
+ readonly maxRetryDelayMs?: number;
16
+ }
17
+ declare function timeoutSecToMs(value: number | undefined, label: string, opts?: {
18
+ readonly allowZero?: boolean;
19
+ }): number | undefined;
20
+ declare function parseTimeoutSecEnvMs(raw: string | undefined): number | undefined;
21
+ declare function resolveLlmTimeoutConfig(timeouts: KodaXLlmTimeoutConfig | undefined): KodaXResolvedLlmTimeoutConfig | undefined;
22
+
1
23
  /**
2
24
  * KodaX Cost Rates - Multi-Provider pricing table
3
25
  *
@@ -106,5 +128,5 @@ declare function getSummary(tracker: CostTracker): SessionCostSummary;
106
128
  declare function formatCost(usd: number): string;
107
129
  declare function formatCostReport(summary: SessionCostSummary): string;
108
130
 
109
- export { DEFAULT_COST_RATES as D, createCostTracker as b, calculateCost as c, formatCostReport as d, getSummary as e, formatCost as f, getCostRate as g, recordUsage as h, recordRetry as r };
110
- export type { CostRate as C, ProviderCostSummary as P, RetryRecord as R, SessionCostSummary as S, TokenUsageRecord as T, CostTracker as a };
131
+ export { DEFAULT_COST_RATES as D, calculateCost as c, createCostTracker as d, formatCostReport as e, formatCost as f, getCostRate as g, getSummary as h, recordUsage as i, resolveLlmTimeoutConfig as j, parseTimeoutSecEnvMs as p, recordRetry as r, timeoutSecToMs as t };
132
+ export type { CostRate as C, KodaXLlmTimeoutConfig as K, ProviderCostSummary as P, RetryRecord as R, SessionCostSummary as S, TokenUsageRecord as T, CostTracker as a, KodaXResolvedLlmTimeoutConfig as b };
@@ -1,8 +1,8 @@
1
1
  import { M as McpConnectMode, a as McpServerConfig, b as McpServersConfig, c as McpTransportKind } from './config.d-CJy1WENT.js';
2
- import { K as KodaXBaseProvider } from './base.d-CwPfI8WQ.js';
3
- import { a as CostTracker } from './cost-tracker.d-wRtyEW9d.js';
4
- import { aG as RunnerToolCall } from './process.d-BdiIUr8T.js';
5
- import { f as ToolGuardrail } from './types.d-BKuHSiR0.js';
2
+ import { K as KodaXBaseProvider } from './base.d-BA9Doaj_.js';
3
+ import { a as CostTracker } from './cost-tracker.d-CBLk1fiD.js';
4
+ import { aO as RunnerToolCall } from './process.d-DHow2y2G.js';
5
+ import { g as ToolGuardrail } from './types.d-D4ZA8LJV.js';
6
6
 
7
7
  /**
8
8
  * FEATURE_200 Phase F (v0.7.45) — MCP domain types extracted from types.ts.
@@ -360,6 +360,21 @@ signals?: readonly ToolCallSignal[]) => Promise<AutoModeAskUserVerdict>;
360
360
  interface AutoModeGuardrailConfig {
361
361
  readonly rules: AutoRules;
362
362
  readonly claudeMd?: string;
363
+ /**
364
+ * FEATURE_092 follow-up (auto-mode classifier AGENTS.md staleness fix):
365
+ * live getter for the project AGENTS.md content. Takes precedence over the
366
+ * static `claudeMd` string and is evaluated INSIDE the classify path on
367
+ * every call — same live-getter pattern as `getDefaultProvider` /
368
+ * `getDefaultModel` (v0.7.34 hotfix-3).
369
+ *
370
+ * The bug it fixes: the guardrail is a lazy-cached singleton, so a
371
+ * captured `claudeMd` string froze the project rules at first
372
+ * construction. Even `/reload` couldn't refresh it — the classifier kept
373
+ * judging tool calls against a stale AGENTS.md snapshot. The REPL wires
374
+ * this to `loadAgentsFiles` (mtime-cached), so the classifier sees the
375
+ * same fresh project rules the system prompt does.
376
+ */
377
+ readonly getClaudeMd?: () => string | undefined;
363
378
  /**
364
379
  * FEATURE_092 phase 2b.7b: optional user-prompt callback for escalate
365
380
  * paths. See `AutoModeAskUser` for semantics.
@@ -470,14 +485,21 @@ interface AutoModeGuardrailConfig {
470
485
  /**
471
486
  * Speculative-classify quiet window (ms). When a classifier promise
472
487
  * settles within this window, the guardrail uses the verdict directly
473
- * (no confirm dialog). When the window expires, the call escalates to
474
- * the user; the background classifier is left running for cost-tracker
475
- * settlement but its eventual result is discarded in v1 (UI doesn't
476
- * adopt late verdicts yet).
488
+ * with no perceptible latency.
489
+ *
490
+ * Issue 143 (WS1): when the window expires the guardrail does NOT
491
+ * hard-escalate it waits for the real classifier verdict and adopts it
492
+ * (late-verdict adoption). The window therefore only controls "fast path
493
+ * vs wait", never "dialog vs no dialog": an `allow` never surfaces a
494
+ * confirm dialog regardless of how long the classifier takes, and only an
495
+ * `escalate` verdict (explicit LLM escalation, classifier timeout, or infra
496
+ * error — all mapped to `escalate` by classify()) reaches the user.
497
+ * The background classifier's cost is settled exactly once inside
498
+ * classify(), so awaiting it after window expiry does not double-count.
477
499
  *
478
500
  * Precedence: explicit arg > `KODAX_AUTO_SPECULATIVE_WINDOW_MS` env >
479
- * `DEFAULT_WINDOW_MS = 500`. Set to 0 to disable speculative race
480
- * (degrades to synchronous classify).
501
+ * `DEFAULT_WINDOW_MS = 500`. Set to 0 to disable the speculative race
502
+ * (degrades to a synchronous classify — identical verdict outcome).
481
503
  */
482
504
  readonly speculativeWindowMs?: number;
483
505
  }
@@ -47,6 +47,11 @@ interface McpCatalogSearchOptions {
47
47
  }
48
48
  declare function defaultMcpCacheDir(): string;
49
49
  declare function createMcpCapabilityId(serverId: string, kind: McpCapabilityKind, name: string): string;
50
+ /**
51
+ * Applied defensively at handler, provider, and parse boundaries.
52
+ * Keep this idempotent so stacked normalization remains harmless.
53
+ */
54
+ declare function normalizeMcpCapabilityId(id: string): string;
50
55
  declare function parseMcpCapabilityId(id: string): {
51
56
  serverId: string;
52
57
  kind: McpCapabilityKind;
@@ -678,7 +683,7 @@ declare class McpManager {
678
683
  }): Promise<readonly McpCatalogItem[]>;
679
684
  /** v0.7.42 — escape hatch for advanced uses; usually consumers use {@link listTools}. */
680
685
  describe(id: string): Promise<McpCapabilityDescriptor | undefined>;
681
- /** v0.7.42 — invoke a tool by capability id (`mcp://<serverId>/<kind>/<name>`). */
686
+ /** v0.7.42 — invoke a tool by capability id (`mcp:<serverId>:tool:<name>`). */
682
687
  execute(id: string, input: Record<string, unknown>): Promise<CapabilityResult>;
683
688
  /** v0.7.42 — read a resource by capability id. */
684
689
  read(id: string, options?: Record<string, unknown>): Promise<CapabilityResult>;
@@ -692,5 +697,5 @@ declare class McpManager {
692
697
  */
693
698
  declare function createMcpManager(servers: McpServersConfig | undefined, options?: McpProviderOptions): McpManager;
694
699
 
695
- export { buildInitializeCapabilities as C, createMcpCapabilityId as E, createMcpManager as F, createMcpTransport as G, defaultMcpCacheDir as H, discoverAuthorizationServerMetadata as I, discoverOAuthEndpoints as J, discoverProtectedResourceMetadata as K, extractInsufficientScope as L, McpAuthRequiredError as M, extractResourceMetadataUrl as N, getMcpCachePaths as Q, loadValidToken as R, parseMcpCapabilityId as S, performOAuthLogin as T, registerOAuthClient as U, searchMcpCatalog as V, McpCapabilityProvider as c, McpExpiredSessionError as h, McpManager as j, McpServerRuntime as s };
700
+ export { buildInitializeCapabilities as C, createMcpCapabilityId as E, createMcpManager as F, createMcpTransport as G, defaultMcpCacheDir as H, discoverAuthorizationServerMetadata as I, discoverOAuthEndpoints as J, discoverProtectedResourceMetadata as K, extractInsufficientScope as L, McpAuthRequiredError as M, extractResourceMetadataUrl as N, getMcpCachePaths as Q, loadValidToken as R, normalizeMcpCapabilityId as S, parseMcpCapabilityId as T, performOAuthLogin as U, registerOAuthClient as V, searchMcpCatalog as X, McpCapabilityProvider as c, McpExpiredSessionError as h, McpManager as j, McpServerRuntime as s };
696
701
  export type { AuthorizationServerMetadata as A, ProtectedResourceMetadata as B, DiscoveredOAuthEndpoints as D, OAuthClientInfo as O, PerformOAuthLoginOptions as P, WwwAuthenticateChallenge as W, McpCapabilityDescriptor as a, McpCapabilityKind as b, McpCapabilityRisk as d, McpCatalogItem as e, McpElicitRequest as f, McpElicitResult as g, McpIcon as i, McpProviderOptions as k, McpReverseCapabilities as l, McpRoot as m, McpSamplingRequest as n, McpSamplingResult as o, McpServerCatalog as p, McpServerCatalogSnapshot as q, McpServerLogs as r, McpServerRuntimeDiagnostics as t, McpServerStatus as u, McpServerToolList as v, McpToolTaskSupport as w, McpTransport as x, McpTransportEvents as y, OAuthLoginConsent as z };
@@ -1,4 +1,4 @@
1
- import { n as KodaXMessage, Y as KodaXToolDefinition, E as KodaXReasoningMode, _ as KodaXToolResultContentItem, U as KodaXThinkingBlock, H as KodaXRedactedThinkingBlock } from './types.d-BJmoMf5H.js';
1
+ import { j as KodaXMessage, _ as KodaXToolDefinition, E as KodaXReasoningMode, a6 as KodaXWireReasoningEffort, a0 as KodaXToolResultContentItem, V as KodaXThinkingBlock, H as KodaXRedactedThinkingBlock } from './types.d-Ci5YPFEh.js';
2
2
 
3
3
  /**
4
4
  * @kodax-ai/agent Types
@@ -163,7 +163,7 @@ interface KodaXSessionTreeNode {
163
163
  active: boolean;
164
164
  }
165
165
  type KodaXSessionScope = 'user' | 'managed-task-worker';
166
- type KodaXSessionUiTextHistoryItemType = 'user' | 'assistant' | 'system' | 'thinking' | 'error' | 'event' | 'info' | 'hint';
166
+ type KodaXSessionUiTextHistoryItemType = 'user' | 'assistant' | 'system' | 'thinking' | 'error' | 'event' | 'info' | 'hint' | 'sidecar';
167
167
  type KodaXSessionUiHistoryItemType = KodaXSessionUiTextHistoryItemType | 'tool_group';
168
168
  interface KodaXSessionUiTextHistoryItem {
169
169
  type: KodaXSessionUiTextHistoryItemType;
@@ -197,6 +197,22 @@ interface KodaXSessionRuntimeInfo {
197
197
  executionCwd?: string;
198
198
  branch?: string;
199
199
  workspaceKind?: KodaXSessionWorkspaceKind;
200
+ /** SDK consumer surface/profile label, e.g. `'code'` | `'partner'`. */
201
+ surface?: string;
202
+ /** SDK consumer profile id (stable name or UUID). */
203
+ profileId?: string;
204
+ /** SDK consumer profile version. */
205
+ profileVersion?: string;
206
+ /** LLM provider alias active at session start, e.g. `'anthropic'`. */
207
+ provider?: string;
208
+ /** Model identifier active at session start. */
209
+ model?: string;
210
+ /** Reasoning mode active at session start. */
211
+ reasoningMode?: string;
212
+ /** Permission mode active at session start, e.g. `'auto'` | `'plan'`. */
213
+ permissionMode?: string;
214
+ /** Agent mode active at session start, e.g. `'sa'` | `'ama'` | `'amaw'`. */
215
+ agentMode?: string;
200
216
  }
201
217
  interface KodaXSessionData {
202
218
  messages: KodaXMessage[];
@@ -447,6 +463,7 @@ interface Agent<TContext = unknown> {
447
463
  readonly outputSchema?: unknown;
448
464
  readonly model?: string;
449
465
  readonly provider?: string;
466
+ readonly effort?: KodaXWireReasoningEffort;
450
467
  /**
451
468
  * FEATURE_100 (v0.7.29) substrate executor: when set, `Runner.run`
452
469
  * delegates execution to this function instead of consulting the
@@ -1855,6 +1872,9 @@ interface StopHookContext {
1855
1872
  * FEATURE_184 (v0.7.45) — Stop hook return surface.
1856
1873
  */
1857
1874
  type StopHookResult = undefined | string | {
1875
+ readonly reanimate: string;
1876
+ readonly source?: string;
1877
+ } | {
1858
1878
  readonly abort: true;
1859
1879
  readonly reason: string;
1860
1880
  };
@@ -2005,6 +2025,19 @@ interface AskUserQuestionItem {
2005
2025
  value: string;
2006
2026
  }>;
2007
2027
  multiSelect?: boolean;
2028
+ /**
2029
+ * FEATURE_222 — only meaningful when `multiSelect` is true. The host should
2030
+ * reject (re-prompt / show an error, do NOT resolve) a selection with fewer
2031
+ * than `minSelections` items. Absent ⇒ no lower bound.
2032
+ */
2033
+ minSelections?: number;
2034
+ /**
2035
+ * FEATURE_222 — only meaningful when `multiSelect` is true. The host should
2036
+ * reject a selection with more than `maxSelections` items. Absent ⇒ no upper
2037
+ * bound. Lets a host render + validate "pick at most N" structurally instead
2038
+ * of parsing it out of natural-language question text.
2039
+ */
2040
+ maxSelections?: number;
2008
2041
  }
2009
2042
  /** Options for multi-question mode — multiple independent questions in one call. */
2010
2043
  interface AskUserMultiOptions {
@@ -2021,8 +2054,31 @@ interface AskUserQuestionOptions {
2021
2054
  value: string;
2022
2055
  }>;
2023
2056
  multiSelect?: boolean;
2057
+ /** FEATURE_222 — see {@link AskUserQuestionItem.minSelections}. */
2058
+ minSelections?: number;
2059
+ /** FEATURE_222 — see {@link AskUserQuestionItem.maxSelections}. */
2060
+ maxSelections?: number;
2024
2061
  default?: string;
2025
2062
  }
2063
+ /**
2064
+ * FEATURE_222 — reserved option value a host may append as a synthetic option
2065
+ * (e.g. a "← Back" entry) in `askUserMulti`'s per-question flow to mean "return
2066
+ * to the previous question" instead of answering the current one. Only
2067
+ * meaningful for `questions[]` index > 0 (there is no previous before the
2068
+ * first). The coding `ask_user_question` tool rejects this as a normal
2069
+ * `option.value` supplied by the model, so a host may safely reuse it for its
2070
+ * own back-navigation UI. A host that ignores this constant simply never offers
2071
+ * back-navigation — the default multi-question flow is unaffected either way.
2072
+ */
2073
+ declare const ASK_USER_BACK_SIGNAL = "__back__";
2074
+ /**
2075
+ * FEATURE_222 — narrow an `askUser` result to a single string for the many
2076
+ * callers that only ever ask single-select questions (they never set
2077
+ * `multiSelect: true`, so the array branch is unreachable at runtime). Collapses
2078
+ * an unexpected array to its first element so a mis-configured host degrades
2079
+ * predictably instead of leaking `[object Array]` into a string comparison.
2080
+ */
2081
+ declare function asSingleSelection(answer: string | string[]): string;
2026
2082
  /**
2027
2083
  * The host-provided user-interaction surface. Each method is optional — a
2028
2084
  * headless host omits them and callers degrade gracefully. This is the single
@@ -2030,11 +2086,19 @@ interface AskUserQuestionOptions {
2030
2086
  * elicitation reverse capability.
2031
2087
  */
2032
2088
  interface UserInteraction {
2033
- /** Ask one question (select mode by default). Resolves the chosen value. */
2034
- askUser?: (options: AskUserQuestionOptions) => Promise<string>;
2035
- /** Ask several independent questions sequentially. Resolves a value map, or
2036
- * undefined when the user cancels. */
2037
- askUserMulti?: (options: AskUserMultiOptions) => Promise<Record<string, string> | undefined>;
2089
+ /**
2090
+ * Ask one question (select mode by default). Single-select (multiSelect
2091
+ * falsy) resolves the chosen value as a string unchanged. Multi-select
2092
+ * (multiSelect: true) resolves the selected values as a `string[]`. The union
2093
+ * is a backward-compatible superset: a host still returning a plain string
2094
+ * satisfies this contract, but a multi-select host SHOULD return `string[]`
2095
+ * so option values containing `, ` are not corrupted by a join.
2096
+ */
2097
+ askUser?: (options: AskUserQuestionOptions) => Promise<string | string[]>;
2098
+ /** Ask several independent questions sequentially. Resolves a per-question
2099
+ * value map (each entry a string for single-select, `string[]` for
2100
+ * multi-select), or undefined when the user cancels. */
2101
+ askUserMulti?: (options: AskUserMultiOptions) => Promise<Record<string, string | string[]> | undefined>;
2038
2102
  /** Ask for free-text input. Resolves the text, or undefined when cancelled. */
2039
2103
  askUserInput?: (options: {
2040
2104
  question: string;
@@ -2046,6 +2110,35 @@ declare function setActiveUserInteraction(interaction: UserInteraction | undefin
2046
2110
  /** The live user-interaction surface, or undefined when none is active. */
2047
2111
  declare function getActiveUserInteraction(): UserInteraction | undefined;
2048
2112
 
2113
+ type KodaXImageMediaType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/gif';
2114
+ type KodaXVideoMediaType = 'video/mp4' | 'video/mpeg' | 'video/quicktime' | 'video/x-msvideo' | 'video/x-flv' | 'video/webm' | 'video/x-ms-wmv' | 'video/3gpp';
2115
+ type KodaXInputArtifactSource = 'user-inline' | 'clipboard' | 'drag-drop' | 'file-picker';
2116
+ interface KodaXImageInputArtifact {
2117
+ readonly kind: 'image';
2118
+ readonly path: string;
2119
+ readonly mediaType?: KodaXImageMediaType;
2120
+ readonly source?: KodaXInputArtifactSource;
2121
+ readonly description?: string;
2122
+ }
2123
+ interface KodaXFileInputArtifact {
2124
+ readonly kind: 'file';
2125
+ readonly path: string;
2126
+ readonly mediaType?: string;
2127
+ readonly mimeType?: string;
2128
+ readonly name?: string;
2129
+ readonly source?: KodaXInputArtifactSource;
2130
+ readonly description?: string;
2131
+ }
2132
+ interface KodaXVideoInputArtifact {
2133
+ readonly kind: 'video';
2134
+ readonly path: string;
2135
+ readonly mediaType: KodaXVideoMediaType;
2136
+ readonly name?: string;
2137
+ readonly source?: KodaXInputArtifactSource;
2138
+ readonly description?: string;
2139
+ }
2140
+ type KodaXInputArtifact = KodaXImageInputArtifact | KodaXFileInputArtifact | KodaXVideoInputArtifact;
2141
+
2049
2142
  /**
2050
2143
  * Child task registry primitive — generic fan-out tracking.
2051
2144
  *
@@ -2577,20 +2670,51 @@ interface WorkflowTaskVerificationResult {
2577
2670
  interface WorkflowSpawnAgentInput {
2578
2671
  /** Human-readable label for the agent — surfaces in events / UI. */
2579
2672
  readonly name: string;
2673
+ /**
2674
+ * Optional progress-group tag (FEATURE_246 Part E). When set, this agent is
2675
+ * grouped under a phase of that name in the progress display — the per-agent
2676
+ * equivalent of wrapping a block in `wf.phase(name, fn)`, matching the harness
2677
+ * `agent(..., { phase })`. The phase group is created on first use. Agents
2678
+ * with no `phase` fall under the currently-active `wf.phase(...)` block (if any).
2679
+ */
2680
+ readonly phase?: string;
2580
2681
  /** The task prompt handed to the child agent. */
2581
2682
  readonly prompt: string;
2582
2683
  /** When true, the child runs with a read-only tool whitelist. */
2583
2684
  readonly readOnly?: boolean;
2584
2685
  /** Route to a registered specialist agent (FEATURE_191). */
2585
2686
  readonly subagentType?: string;
2586
- /** Provider/model tier hint (FEATURE_120 model_hint → env tier). */
2687
+ /**
2688
+ * Per-agent model TIER (FEATURE_120 model_hint). The script expresses semantic
2689
+ * intent — 'fast' (cheap), 'deep' (strong), 'balanced' (default) — NOT a
2690
+ * concrete model name: the authoring model has no cognition of which
2691
+ * providers/models a given operator has configured. The operator maps the
2692
+ * tiers to concrete models via env (KODAX_FAST/DEEP_PROVIDER/MODEL); when a
2693
+ * tier is unconfigured the child inherits the parent provider/model, so a
2694
+ * hint is always a safe no-op at worst. 'fast' applies to read-only children
2695
+ * only (write/codegen stays on the parent tier — a quality guard).
2696
+ */
2587
2697
  readonly modelHint?: WorkflowModelHint;
2588
2698
  /** Isolation policy; defaults to `shared-cwd`. */
2589
2699
  readonly isolation?: WorkflowIsolation;
2700
+ /** Per-child reasoning effort hint (e.g. 'low' | 'medium' | 'high' | 'max').
2701
+ * The backend maps it onto the child's reasoning resolver; omit to inherit
2702
+ * the parent/default effort. Opaque string so the agent layer needs no
2703
+ * coding effort-enum dependency. */
2704
+ readonly effort?: string;
2590
2705
  /** Evidence refs (`task_id:<id>` etc.) seeded into the child context. */
2591
2706
  readonly evidenceRefs?: readonly string[];
2592
2707
  /** Optional machine-checkable postconditions for this child task. */
2593
2708
  readonly verification?: WorkflowTaskVerification;
2709
+ /**
2710
+ * Optional JSON Schema (FEATURE_246 Part B). When set, the child is asked to
2711
+ * end with a fenced JSON block matching the schema; the backend parses and
2712
+ * validates it (with one bounded repair turn on a hard miss) and returns the
2713
+ * parsed object on `WorkflowTaskResult.structured`. Orthogonal to
2714
+ * `verification` (which checks side-effects, not return shape). Carried as an
2715
+ * opaque value so the agent layer needs no JSON-Schema dependency.
2716
+ */
2717
+ readonly outputSchema?: unknown;
2594
2718
  }
2595
2719
  /** Returned by `spawnAgent` — the child is in-flight, not yet complete. */
2596
2720
  interface WorkflowTaskHandle {
@@ -2614,6 +2738,10 @@ interface WorkflowTaskResult {
2614
2738
  readonly name: string;
2615
2739
  readonly status: WorkflowTaskStatus;
2616
2740
  readonly finalText: string;
2741
+ /** Schema-validated structured result (FEATURE_246 Part B), present when the
2742
+ * spawn carried `outputSchema` and a JSON value was parsed from the child's
2743
+ * output. The workflow script consumes it directly (e.g. `result.structured`). */
2744
+ readonly structured?: unknown;
2617
2745
  /** Short user-facing digest, separate from the full finalText used for synthesis/audit. */
2618
2746
  readonly digest?: string;
2619
2747
  /** True when a digest was attempted but failed (error/timeout/empty); the UI then labels the excerpt fallback. */
@@ -2691,8 +2819,12 @@ interface WorkflowApi {
2691
2819
  phase<T>(name: string, fn: () => Promise<T>): Promise<T>;
2692
2820
  /** Start a child agent; returns immediately with a handle. */
2693
2821
  spawnAgent(input: WorkflowSpawnAgentInput): Promise<WorkflowTaskHandle>;
2694
- /** spawnAgent + wait convenience; returns the terminal result. */
2695
- runAgent(input: WorkflowSpawnAgentInput): Promise<WorkflowTaskResult>;
2822
+ /** spawnAgent + wait convenience; returns the terminal result, or `null` if
2823
+ * the child ended failed/stopped (FEATURE_246 Part E lenient failure — the
2824
+ * harness `agent()` semantics, so scripts can `.filter(Boolean)` instead of
2825
+ * wrapping every call in try/catch). Abort and budget/agent-cap limits still
2826
+ * throw. */
2827
+ runAgent(input: WorkflowSpawnAgentInput): Promise<WorkflowTaskResult | null>;
2696
2828
  /** Await a spawned agent's terminal result. */
2697
2829
  wait(taskId: string, opts?: WorkflowWaitOptions): Promise<WorkflowTaskResult>;
2698
2830
  /** Snapshot a (possibly running) agent. */
@@ -2706,12 +2838,36 @@ interface WorkflowApi {
2706
2838
  stop(taskId: string, reason: string): Promise<void>;
2707
2839
  /** Run lazy thunks concurrently under the concurrency gate. Thunks
2708
2840
  * MUST be `() => Promise<T>` (not already-started promises) so the
2709
- * runtime can bound concurrency. */
2710
- parallel<T>(items: readonly (() => Promise<T>)[], opts?: WorkflowParallelOptions): Promise<T[]>;
2841
+ * runtime can bound concurrency. A thunk that throws (or whose agent fails)
2842
+ * resolves to `null` in the result array — the call itself never rejects, so
2843
+ * `.filter(Boolean)` before use (FEATURE_246 Part E, harness parity). Abort
2844
+ * still tears down the whole run. */
2845
+ parallel<T>(items: readonly (() => Promise<T>)[], opts?: WorkflowParallelOptions): Promise<(T | null)[]>;
2846
+ /**
2847
+ * Stream items through ordered stages with NO barrier between stages: an
2848
+ * item advances to stage N+1 as soon as its own stage N resolves,
2849
+ * independent of other items (wall-clock = slowest single chain, not
2850
+ * sum-of-slowest-per-stage). Each stage receives `(prev, item, index)`
2851
+ * where `prev` is the previous stage's result (the original item at
2852
+ * stage 1). A stage that throws drops that item to `null` and skips its
2853
+ * remaining stages; results preserve input order. Agent spawns inside
2854
+ * stages stay bounded by the workflow `maxConcurrency` gate. Optional:
2855
+ * the restricted-script bootstrap always provides it; SDK consumers get
2856
+ * it from the runtime. */
2857
+ pipeline?(items: readonly unknown[], ...stages: readonly ((prev: unknown, item: unknown, index: number) => unknown)[]): Promise<unknown[]>;
2711
2858
  /** Synthesize across inputs. Runs as a gated agent through the runtime
2712
2859
  * (spawn → wait), so it counts toward maxAgents / concurrency / budget
2713
2860
  * and emits run-graph events — it is NOT a backend side-channel. */
2714
2861
  synthesize(input: WorkflowSynthesizeInput): Promise<WorkflowSynthesis>;
2862
+ /**
2863
+ * Run another saved/built-in workflow inline as a sub-step (FEATURE_246 Part E,
2864
+ * harness parity). Resolves the module by name via the host-injected resolver
2865
+ * and runs it under THIS run's runtime — sharing the same concurrency cap,
2866
+ * agent counter, token budget, and abort signal. **One level only**: calling
2867
+ * `workflow(...)` from inside a nested workflow throws. Returns whatever the
2868
+ * sub-workflow's `run` returns. Optional: present when a resolver is wired
2869
+ * (the restricted-script bootstrap provides it; SDK consumers may omit). */
2870
+ workflow?(name: string, args?: unknown): Promise<unknown>;
2715
2871
  /** Persist a named artifact. */
2716
2872
  artifact(name: string, value: unknown): Promise<WorkflowArtifactRef>;
2717
2873
  /** Emit a free-text progress log event. */
@@ -2910,5 +3066,5 @@ declare function isFinalWorkflowProcessStatus(status: WorkflowProcessStatus): bo
2910
3066
  declare function normalizeHostMetadata(value: unknown): Record<string, string> | undefined;
2911
3067
  declare function createWorkflowProcessTracker(options: WorkflowProcessTrackerOptions): WorkflowProcessTracker;
2912
3068
 
2913
- export { DEFAULT_SYSTEM_CAP as D, InvariantSession as M, Runner as aC, SpanImpl as aV, MAX_TOOL_LOOP_ITERATIONS as ak, _resetPresetDispatchers as b$, _resetAdmittedAgentBindings as b_, Tracer as bb, WorkflowEventRecorder as bm, buildAssistantMessageFromLlmResult as c0, buildSystemPrompt as c1, buildToolResultMessage as c2, createAgent as c3, createHandoff as c4, createInMemorySession as c5, createInvariantSessionForAgent as c6, createStateWriter as c7, createTrace as c8, createWorkflowProcessTracker as c9, defaultTracer as ca, detectInstructionsInjection as cb, discoverInstances as cc, executeRunnerToolCall as cd, extractAssistantTextFromMessage as ce, getActiveUserInteraction as cf, getAdmittedAgentBindings as cg, isFinalWorkflowProcessStatus as ch, isRunnableTool as ci, isRunnerLlmResult as cj, normalizeHostMetadata as ck, registerChildTask as cl, registerPresetDispatcher as cm, requestTaskStop as cn, runAdmissionAudit as co, setActiveUserInteraction as cp, setAdmittedAgentBindings as cq };
2914
- export type { KodaXSessionData as $, AdmissionAuditOptions as A, HandoffSpanData as B, ChildTaskRegistry as C, EvidenceSpanData as E, FanoutSpanData as F, GenerationSpanData as G, Handoff as H, InMemorySessionOptions as I, InstanceDiscoveryFs as J, InvariantId as K, InvariantResult as L, KodaXCompactMemoryProgress as N, KodaXCompactMemorySeed as O, KodaXExtensionSessionRecord as P, KodaXExtensionSessionState as Q, KodaXExtensionStore as R, KodaXExtensionStoreEntry as S, KodaXGoalEventType as T, KodaXGoalState as U, KodaXGoalStatus as V, KodaXJsonValue as W, KodaXSessionArchiveMarkerEntry as X, KodaXSessionArtifactLedgerEntry as Y, KodaXSessionBranchSummaryEntry as Z, KodaXSessionCompactionEntry as _, AdmissionCtx as a, StopHookContext as a$, KodaXSessionEntry as a0, KodaXSessionEntryBase as a1, KodaXSessionGoalEntry as a2, KodaXSessionLabelEntry as a3, KodaXSessionLineage as a4, KodaXSessionMessageEntry as a5, KodaXSessionMeta as a6, KodaXSessionNavigationOptions as a7, KodaXSessionRuntimeInfo as a8, KodaXSessionScope as a9, RunResult as aA, RunnableTool as aB, RunnerEvent as aD, RunnerLlmResult as aE, RunnerLlmReturn as aF, RunnerToolCall as aG, RunnerToolContext as aH, RunnerToolObserver as aI, RunnerToolResult as aJ, Session as aK, SessionDispatchResult as aL, SessionEntry as aM, SessionErrorMetadata as aN, SessionExtension as aO, SessionForkOptions as aP, SessionMeta as aQ, SessionStateSnapshot as aR, Span as aS, SpanData as aT, SpanError as aU, SpanImplOptions as aW, StartTraceOptions as aX, StateWriter as aY, StateWriterFs as aZ, StateWriterOptions as a_, KodaXSessionStorage as aa, KodaXSessionTreeNode as ab, KodaXSessionUiHistoryItem as ac, KodaXSessionUiHistoryItemType as ad, KodaXSessionUiTextHistoryItem as ae, KodaXSessionUiTextHistoryItemType as af, KodaXSessionUiToolCall as ag, KodaXSessionUiToolCallStatus as ah, KodaXSessionUiToolGroupHistoryItem as ai, KodaXSessionWorkspaceKind as aj, ManifestPatch as al, MessageEntry as am, ObserveCtx as an, PersistedSessionState as ao, PresetDispatcher as ap, PresetTracingContext as aq, QualityInvariant as ar, ReadonlyMutationTracker as as, ReadonlyRecorder as at, ReasoningDepth as au, RecentlyModifiedFile as av, RequestTaskStopOptions as aw, RequestTaskStopResult as ax, RunEvent as ay, RunOptions as az, AdmissionVerdict as b, StopHookFn as b0, StopHookResult as b1, StopHookSpanData as b2, SystemCap as b3, TaskAbortRegistry as b4, TerminalCtx as b5, ToolCallSpanData as b6, ToolCapability as b7, ToolPermission as b8, Trace as b9, WorkflowProcessItemStatus as bA, WorkflowProcessProgress as bB, WorkflowProcessSnapshot as bC, WorkflowProcessSource as bD, WorkflowProcessStatus as bE, WorkflowProcessSummaryStatus as bF, WorkflowProcessTokenUsage as bG, WorkflowProcessTracker as bH, WorkflowProcessTrackerOptions as bI, WorkflowRun as bJ, WorkflowRunState as bK, WorkflowRunStatus as bL, WorkflowSpawnAgentInput as bM, WorkflowSynthesis as bN, WorkflowSynthesizeInput as bO, WorkflowTaskHandle as bP, WorkflowTaskResult as bQ, WorkflowTaskSnapshot as bR, WorkflowTaskStatus as bS, WorkflowTaskSummaryEventUpdate as bT, WorkflowTaskSummaryKind as bU, WorkflowTaskSummaryUpdate as bV, WorkflowTaskUsage as bW, WorkflowTaskVerification as bX, WorkflowTaskVerificationResult as bY, WorkflowWaitOptions as bZ, TraceOptions as ba, TracerOptions as bc, UserInteraction as bd, WorkflowAgentBackend as be, WorkflowApi as bf, WorkflowApproval as bg, WorkflowApprovalSummary as bh, WorkflowArtifactRef as bi, WorkflowBudget as bj, WorkflowEvent as bk, WorkflowEventCorrelation as bl, WorkflowEventType as bn, WorkflowIsolation as bo, WorkflowLimits as bp, WorkflowLogEvent as bq, WorkflowMeta as br, WorkflowModelHint as bs, WorkflowModule as bt, WorkflowParallelOptions as bu, WorkflowProcessArtifact as bv, WorkflowProcessCounts as bw, WorkflowProcessEvent as bx, WorkflowProcessItem as by, WorkflowProcessItemKind as bz, AdmittedHandle as c, Agent as d, AgentManifest as e, AgentMessage as f, AgentMiddlewareDeclaration as g, AgentReasoningProfile as h, AgentSpanData as i, AgentTool as j, AskUserMultiOptions as k, AskUserQuestionItem as l, AskUserQuestionOptions as m, CompactionAnchor as n, CompactionConfig as o, CompactionDetails as p, CompactionResult as q, CompactionSpanData as r, CompactionUpdate as s, CurrentTodoSummary as t, Deliverable as u, DiscoveredInstance as v, DiscoveryOptions as w, FileOperations as x, Guardrail as y, GuardrailSpanData as z };
3069
+ export { ASK_USER_BACK_SIGNAL as A, DEFAULT_SYSTEM_CAP as D, InvariantSession as N, Runner as aK, MAX_TOOL_LOOP_ITERATIONS as as, SpanImpl as b1, Tracer as bj, WorkflowEventRecorder as bu, _resetAdmittedAgentBindings as c6, _resetPresetDispatchers as c7, asSingleSelection as c8, buildAssistantMessageFromLlmResult as c9, buildSystemPrompt as ca, buildToolResultMessage as cb, createAgent as cc, createHandoff as cd, createInMemorySession as ce, createInvariantSessionForAgent as cf, createStateWriter as cg, createTrace as ch, createWorkflowProcessTracker as ci, defaultTracer as cj, detectInstructionsInjection as ck, discoverInstances as cl, executeRunnerToolCall as cm, extractAssistantTextFromMessage as cn, getActiveUserInteraction as co, getAdmittedAgentBindings as cp, isFinalWorkflowProcessStatus as cq, isRunnableTool as cr, isRunnerLlmResult as cs, normalizeHostMetadata as ct, registerChildTask as cu, registerPresetDispatcher as cv, requestTaskStop as cw, runAdmissionAudit as cx, setActiveUserInteraction as cy, setAdmittedAgentBindings as cz };
3070
+ export type { KodaXInputArtifactSource as $, GuardrailSpanData as B, ChildTaskRegistry as C, EvidenceSpanData as E, FanoutSpanData as F, GenerationSpanData as G, Handoff as H, HandoffSpanData as I, InMemorySessionOptions as J, InstanceDiscoveryFs as K, InvariantId as L, InvariantResult as M, KodaXCompactMemoryProgress as O, KodaXCompactMemorySeed as P, KodaXExtensionSessionRecord as Q, KodaXExtensionSessionState as R, KodaXExtensionStore as S, KodaXExtensionStoreEntry as T, KodaXFileInputArtifact as U, KodaXGoalEventType as V, KodaXGoalState as W, KodaXGoalStatus as X, KodaXImageInputArtifact as Y, KodaXImageMediaType as Z, KodaXInputArtifact as _, AdmissionAuditOptions as a, SpanData as a$, KodaXJsonValue as a0, KodaXSessionArchiveMarkerEntry as a1, KodaXSessionArtifactLedgerEntry as a2, KodaXSessionBranchSummaryEntry as a3, KodaXSessionCompactionEntry as a4, KodaXSessionData as a5, KodaXSessionEntry as a6, KodaXSessionEntryBase as a7, KodaXSessionGoalEntry as a8, KodaXSessionLabelEntry as a9, ReadonlyMutationTracker as aA, ReadonlyRecorder as aB, ReasoningDepth as aC, RecentlyModifiedFile as aD, RequestTaskStopOptions as aE, RequestTaskStopResult as aF, RunEvent as aG, RunOptions as aH, RunResult as aI, RunnableTool as aJ, RunnerEvent as aL, RunnerLlmResult as aM, RunnerLlmReturn as aN, RunnerToolCall as aO, RunnerToolContext as aP, RunnerToolObserver as aQ, RunnerToolResult as aR, Session as aS, SessionDispatchResult as aT, SessionEntry as aU, SessionErrorMetadata as aV, SessionExtension as aW, SessionForkOptions as aX, SessionMeta as aY, SessionStateSnapshot as aZ, Span as a_, KodaXSessionLineage as aa, KodaXSessionMessageEntry as ab, KodaXSessionMeta as ac, KodaXSessionNavigationOptions as ad, KodaXSessionRuntimeInfo as ae, KodaXSessionScope as af, KodaXSessionStorage as ag, KodaXSessionTreeNode as ah, KodaXSessionUiHistoryItem as ai, KodaXSessionUiHistoryItemType as aj, KodaXSessionUiTextHistoryItem as ak, KodaXSessionUiTextHistoryItemType as al, KodaXSessionUiToolCall as am, KodaXSessionUiToolCallStatus as an, KodaXSessionUiToolGroupHistoryItem as ao, KodaXSessionWorkspaceKind as ap, KodaXVideoInputArtifact as aq, KodaXVideoMediaType as ar, ManifestPatch as at, MessageEntry as au, ObserveCtx as av, PersistedSessionState as aw, PresetDispatcher as ax, PresetTracingContext as ay, QualityInvariant as az, AdmissionCtx as b, WorkflowTaskSummaryEventUpdate as b$, SpanError as b0, SpanImplOptions as b2, StartTraceOptions as b3, StateWriter as b4, StateWriterFs as b5, StateWriterOptions as b6, StopHookContext as b7, StopHookFn as b8, StopHookResult as b9, WorkflowModelHint as bA, WorkflowModule as bB, WorkflowParallelOptions as bC, WorkflowProcessArtifact as bD, WorkflowProcessCounts as bE, WorkflowProcessEvent as bF, WorkflowProcessItem as bG, WorkflowProcessItemKind as bH, WorkflowProcessItemStatus as bI, WorkflowProcessProgress as bJ, WorkflowProcessSnapshot as bK, WorkflowProcessSource as bL, WorkflowProcessStatus as bM, WorkflowProcessSummaryStatus as bN, WorkflowProcessTokenUsage as bO, WorkflowProcessTracker as bP, WorkflowProcessTrackerOptions as bQ, WorkflowRun as bR, WorkflowRunState as bS, WorkflowRunStatus as bT, WorkflowSpawnAgentInput as bU, WorkflowSynthesis as bV, WorkflowSynthesizeInput as bW, WorkflowTaskHandle as bX, WorkflowTaskResult as bY, WorkflowTaskSnapshot as bZ, WorkflowTaskStatus as b_, StopHookSpanData as ba, SystemCap as bb, TaskAbortRegistry as bc, TerminalCtx as bd, ToolCallSpanData as be, ToolCapability as bf, ToolPermission as bg, Trace as bh, TraceOptions as bi, TracerOptions as bk, UserInteraction as bl, WorkflowAgentBackend as bm, WorkflowApi as bn, WorkflowApproval as bo, WorkflowApprovalSummary as bp, WorkflowArtifactRef as bq, WorkflowBudget as br, WorkflowEvent as bs, WorkflowEventCorrelation as bt, WorkflowEventType as bv, WorkflowIsolation as bw, WorkflowLimits as bx, WorkflowLogEvent as by, WorkflowMeta as bz, AdmissionVerdict as c, WorkflowTaskSummaryKind as c0, WorkflowTaskSummaryUpdate as c1, WorkflowTaskUsage as c2, WorkflowTaskVerification as c3, WorkflowTaskVerificationResult as c4, WorkflowWaitOptions as c5, AdmittedHandle as d, Agent as e, AgentManifest as f, AgentMessage as g, AgentMiddlewareDeclaration as h, AgentReasoningProfile as i, AgentSpanData as j, AgentTool as k, AskUserMultiOptions as l, AskUserQuestionItem as m, AskUserQuestionOptions as n, CompactionAnchor as o, CompactionConfig as p, CompactionDetails as q, CompactionResult as r, CompactionSpanData as s, CompactionUpdate as t, CurrentTodoSummary as u, Deliverable as v, DiscoveredInstance as w, DiscoveryOptions as x, FileOperations as y, Guardrail as z };