@wrongstack/core 0.109.1 → 0.141.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.
Files changed (67) hide show
  1. package/dist/{agent-bridge-mOxbpFcg.d.ts → agent-bridge-r9y6gdn4.d.ts} +1 -1
  2. package/dist/{agent-subagent-runner-DukQLUcS.d.ts → agent-subagent-runner-1GeQE_L0.d.ts} +7 -8
  3. package/dist/{brain-Dfv4Y82E.d.ts → brain-Cp_3GIS2.d.ts} +14 -3
  4. package/dist/{compactor-DXLxLcmU.d.ts → compactor-BueGt7LG.d.ts} +9 -1
  5. package/dist/{config-BSU-6vah.d.ts → config-BaVThgnT.d.ts} +104 -3
  6. package/dist/{context-CNRYfhUv.d.ts → context-C7G_MtLV.d.ts} +38 -1
  7. package/dist/coordination/index.d.ts +12 -13
  8. package/dist/coordination/index.js +229 -17
  9. package/dist/coordination/index.js.map +1 -1
  10. package/dist/defaults/index.d.ts +26 -27
  11. package/dist/defaults/index.js +886 -721
  12. package/dist/defaults/index.js.map +1 -1
  13. package/dist/execution/index.d.ts +15 -16
  14. package/dist/execution/index.js +535 -322
  15. package/dist/execution/index.js.map +1 -1
  16. package/dist/extension/index.d.ts +6 -7
  17. package/dist/{goal-preamble-CI8lxeY1.d.ts → goal-preamble-iuIUTQwk.d.ts} +48 -18
  18. package/dist/{index-BWRN6wOb.d.ts → index-BZdezm3g.d.ts} +9 -10
  19. package/dist/{index-DIKEcfgC.d.ts → index-CPweVoFM.d.ts} +7 -6
  20. package/dist/index.d.ts +51 -52
  21. package/dist/index.js +752 -545
  22. package/dist/index.js.map +1 -1
  23. package/dist/infrastructure/index.d.ts +6 -7
  24. package/dist/infrastructure/index.js +64 -19
  25. package/dist/infrastructure/index.js.map +1 -1
  26. package/dist/kernel/index.d.ts +10 -11
  27. package/dist/kernel/index.js.map +1 -1
  28. package/dist/llm-selector-CP72f1lC.d.ts +58 -0
  29. package/dist/{mcp-servers-CXCsANdY.d.ts → mcp-servers-Bl5LTvQg.d.ts} +3 -3
  30. package/dist/{mode-ARA3HrkY.d.ts → mode-CZlO9iU1.d.ts} +1 -1
  31. package/dist/models/index.d.ts +157 -53
  32. package/dist/models/index.js +475 -20
  33. package/dist/models/index.js.map +1 -1
  34. package/dist/{models-registry-DU64QxQa.d.ts → models-registry-D90K9UnM.d.ts} +1 -1
  35. package/dist/{multi-agent-coordinator-51LvnXkD.d.ts → multi-agent-coordinator-QWEzJDlm.d.ts} +1 -1
  36. package/dist/{null-fleet-bus-D09hMzFQ.d.ts → null-fleet-bus-BUyfqh23.d.ts} +13 -10
  37. package/dist/observability/index.d.ts +2 -2
  38. package/dist/{parallel-eternal-engine-B2CbsKpc.d.ts → parallel-eternal-engine-Dj2SYzha.d.ts} +24 -11
  39. package/dist/{path-resolver-DDJiMAtX.d.ts → path-resolver-DRjQBkoO.d.ts} +3 -3
  40. package/dist/{permission-BDv7z0mk.d.ts → permission-B7nKnEvQ.d.ts} +1 -1
  41. package/dist/{permission-policy-dF74EpDp.d.ts → permission-policy-8-6zBmfA.d.ts} +2 -13
  42. package/dist/{pipeline-BqiA_UMr.d.ts → pipeline-BG7UgbDc.d.ts} +2 -2
  43. package/dist/{plan-templates-BdDxl9cI.d.ts → plan-templates-CkKNPU3I.d.ts} +6 -6
  44. package/dist/{provider-runner-BUunikwY.d.ts → provider-runner-BNpuIyOL.d.ts} +3 -3
  45. package/dist/{retry-policy-BcmuT_V0.d.ts → retry-policy-rutAfVeR.d.ts} +1 -1
  46. package/dist/sdd/index.d.ts +8 -9
  47. package/dist/sdd/index.js +208 -1
  48. package/dist/sdd/index.js.map +1 -1
  49. package/dist/{secret-vault-DrOhc2i5.d.ts → secret-vault-BTcC_T5v.d.ts} +3 -2
  50. package/dist/security/index.d.ts +5 -7
  51. package/dist/security/index.js +4 -35
  52. package/dist/security/index.js.map +1 -1
  53. package/dist/{selector-C7wcdqMA.d.ts → selector-4vDFZKt3.d.ts} +1 -1
  54. package/dist/{session-event-bridge-BpJ5trO9.d.ts → session-event-bridge-DWlvglC2.d.ts} +2 -2
  55. package/dist/{session-reader-DDz1Ek4V.d.ts → session-reader-BAtCxdaw.d.ts} +1 -1
  56. package/dist/storage/index.d.ts +14 -15
  57. package/dist/storage/index.js +140 -134
  58. package/dist/storage/index.js.map +1 -1
  59. package/dist/types/index.d.ts +19 -20
  60. package/dist/types/index.js +186 -102
  61. package/dist/types/index.js.map +1 -1
  62. package/dist/utils/index.d.ts +38 -15
  63. package/dist/utils/index.js +62 -33
  64. package/dist/utils/index.js.map +1 -1
  65. package/dist/{wstack-paths-_lqjzErq.d.ts → wstack-paths-DD50Omgn.d.ts} +3 -0
  66. package/package.json +2 -2
  67. package/dist/models-registry-B6_KfS65.d.ts +0 -95
@@ -1,9 +1,8 @@
1
- export { i as AfterIterationHook, j as AfterRunHook, k as AfterToolExecutionHook, l as AgentExtension, B as BeforeIterationHook, m as BeforeRunHook, n as BeforeToolExecutionHook, E as ExtensionRegistry, O as OnErrorHook, v as ProviderRunnerFn, t as ProviderRunnerWrapper } from '../index-DIKEcfgC.js';
2
- import '../context-CNRYfhUv.js';
1
+ export { i as AfterIterationHook, j as AfterRunHook, k as AfterToolExecutionHook, l as AgentExtension, B as BeforeIterationHook, m as BeforeRunHook, n as BeforeToolExecutionHook, E as ExtensionRegistry, O as OnErrorHook, v as ProviderRunnerFn, t as ProviderRunnerWrapper } from '../index-CPweVoFM.js';
2
+ import '../context-C7G_MtLV.js';
3
3
  import '../logger-B63L5bTg.js';
4
- import '../pipeline-BqiA_UMr.js';
5
- import '../config-BSU-6vah.js';
6
- import '../models-registry-B6_KfS65.js';
4
+ import '../pipeline-BG7UgbDc.js';
5
+ import '../config-BaVThgnT.js';
7
6
  import '../observability-D-HZN_mF.js';
8
- import '../brain-Dfv4Y82E.js';
9
- import '../permission-BDv7z0mk.js';
7
+ import '../brain-Cp_3GIS2.js';
8
+ import '../permission-B7nKnEvQ.js';
@@ -1,14 +1,14 @@
1
1
  import { S as SkillLoader, a as SkillManifest, b as SkillEntry } from './skill-Bj6Ezqb8.js';
2
- import { W as WstackPaths } from './wstack-paths-_lqjzErq.js';
3
- import { P as Provider, C as Context } from './context-CNRYfhUv.js';
4
- import { C as Compactor, a as CompactReport } from './compactor-DXLxLcmU.js';
5
- import { M as MessageSelector } from './selector-C7wcdqMA.js';
6
- import { E as EventBus } from './brain-Dfv4Y82E.js';
7
- import { M as MiddlewareHandler } from './pipeline-BqiA_UMr.js';
8
- import { S as SessionEventBridge } from './session-event-bridge-BpJ5trO9.js';
9
- import { C as ContextWindowAggressiveOn, c as ContextWindowPolicy } from './config-BSU-6vah.js';
10
- import { g as Agent, D as DoneCondition } from './agent-subagent-runner-DukQLUcS.js';
11
- import { R as RunResult, S as SystemPromptContributor } from './index-DIKEcfgC.js';
2
+ import { W as WstackPaths } from './wstack-paths-DD50Omgn.js';
3
+ import { P as Provider, C as Context } from './context-C7G_MtLV.js';
4
+ import { C as Compactor, a as CompactReport } from './compactor-BueGt7LG.js';
5
+ import { M as MessageSelector } from './selector-4vDFZKt3.js';
6
+ import { E as EventBus } from './brain-Cp_3GIS2.js';
7
+ import { M as MiddlewareHandler } from './pipeline-BG7UgbDc.js';
8
+ import { S as SessionEventBridge } from './session-event-bridge-DWlvglC2.js';
9
+ import { C as ContextWindowAggressiveOn, g as ContextWindowPolicy } from './config-BaVThgnT.js';
10
+ import { g as Agent, D as DoneCondition } from './agent-subagent-runner-1GeQE_L0.js';
11
+ import { R as RunResult, S as SystemPromptContributor } from './index-CPweVoFM.js';
12
12
 
13
13
  interface SkillLoaderOptions {
14
14
  paths: WstackPaths;
@@ -66,7 +66,9 @@ interface IntelligentCompactorOptions {
66
66
  * - Generate semantic summaries for old message ranges
67
67
  * - Make intelligent decisions about what to compact
68
68
  *
69
- * It extends HybridCompactor's elision logic with LLM-assisted summarization.
69
+ * It builds on the shared `compaction-core` elision/boundary primitives and
70
+ * adds LLM-assisted summarization on top. When the summarizer call fails it
71
+ * falls back to the same lossless rule-based digest used by HybridCompactor.
70
72
  */
71
73
  declare class IntelligentCompactor implements Compactor {
72
74
  private readonly provider;
@@ -87,15 +89,11 @@ declare class IntelligentCompactor implements Compactor {
87
89
  * This is the accurate figure for context-window pressure monitoring.
88
90
  */
89
91
  private estimateFullRequest;
92
+ /** Run shared tool-result elision and commit through ConversationState. */
93
+ private elide;
90
94
  private summarizeAncientTurns;
91
- private findSafeBoundary;
92
- private findExchangeStart;
93
95
  private callSummarizer;
94
96
  private messagesToText;
95
- private lightweightCompact;
96
- private eliseOldToolResults;
97
- private hasTextContent;
98
- private estimateTokens;
99
97
  }
100
98
 
101
99
  /**
@@ -179,6 +177,38 @@ declare class SelectiveCompactor implements Compactor {
179
177
  private roughTokenEstimate;
180
178
  }
181
179
 
180
+ type CompactorStrategy = 'hybrid' | 'intelligent' | 'selective';
181
+ interface StrategyCompactorOptions {
182
+ /** Which compactor to use. Defaults to 'hybrid' (lossless, no LLM). */
183
+ strategy?: CompactorStrategy | string | undefined;
184
+ /** Recent user/assistant pairs to always preserve. */
185
+ preserveK?: number | undefined;
186
+ /** Token threshold below which tool results are not elided. */
187
+ eliseThreshold?: number | undefined;
188
+ /** Model used by the LLM-backed strategies for summarization/selection. */
189
+ summarizerModel?: string | undefined;
190
+ /**
191
+ * Legacy shortcut for `strategy: 'selective'`. When `strategy` is unset (or
192
+ * 'hybrid') and this is true, the selective (LLM-driven) compactor is used.
193
+ * An explicit `strategy` always wins.
194
+ */
195
+ llmSelector?: boolean | undefined;
196
+ }
197
+ /**
198
+ * Build the compactor named by `config.context.strategy`.
199
+ *
200
+ * - `hybrid` (default): lossless rule-based — no provider needed.
201
+ * - `intelligent` / `selective`: LLM-backed. These need a `provider`, which is
202
+ * only known per-run, so we return a thin wrapper that resolves the concrete
203
+ * compactor from `ctx` at `compact()`-time. This deliberately avoids the
204
+ * container/provider construction-ordering problem: `TOKENS.Compactor` is
205
+ * resolved (and memoized) before `context.provider` exists, but `ctx.provider`
206
+ * is always present once a run is actually compacting. If no provider is
207
+ * available at compact-time the wrapper degrades to the lossless hybrid rules
208
+ * rather than failing.
209
+ */
210
+ declare function createStrategyCompactor(opts?: StrategyCompactorOptions): Compactor;
211
+
182
212
  type CompactionFailureMode = 'throw' | 'throw_on_hard' | 'continue';
183
213
  interface AutoCompactionOptions {
184
214
  aggressiveOn?: ContextWindowAggressiveOn | undefined;
@@ -375,4 +405,4 @@ declare function makeAutonomyPromptContributor(opts: AutonomyPromptContributorOp
375
405
  */
376
406
  declare function buildGoalPreamble(goal: string, deliverables?: string[]): string;
377
407
 
378
- export { AutoCompactionMiddleware as A, DefaultSkillLoader as D, IntelligentCompactor as I, SelectiveCompactor as S, AutonomousRunner as a, type AutonomousRunnerOptions as b, type AutonomyPromptContributorOptions as c, type DoneCheckResult as d, DoneConditionChecker as e, type IntelligentCompactorOptions as f, type SelectiveCompactorOptions as g, type SkillLoaderOptions as h, buildGoalPreamble as i, makeAutonomyPromptContributor as m };
408
+ export { AutoCompactionMiddleware as A, type CompactorStrategy as C, DefaultSkillLoader as D, IntelligentCompactor as I, SelectiveCompactor as S, AutonomousRunner as a, type AutonomousRunnerOptions as b, type AutonomyPromptContributorOptions as c, type DoneCheckResult as d, DoneConditionChecker as e, type IntelligentCompactorOptions as f, type SelectiveCompactorOptions as g, type SkillLoaderOptions as h, type StrategyCompactorOptions as i, buildGoalPreamble as j, createStrategyCompactor as k, makeAutonomyPromptContributor as m };
@@ -1,16 +1,15 @@
1
- import { T as Token, a as Renderer, S as SystemPromptBuilder, H as HookRegistry } from './pipeline-BqiA_UMr.js';
2
- import { E as EventBus, l as MemoryStore, b as BrainArbiter } from './brain-Dfv4Y82E.js';
3
- import { C as Compactor } from './compactor-DXLxLcmU.js';
4
- import { f as ConfigLoader, e as ConfigStore } from './config-BSU-6vah.js';
5
- import { E as ErrorHandler, R as RetryPolicy } from './retry-policy-BcmuT_V0.js';
1
+ import { T as Token, a as Renderer, S as SystemPromptBuilder, H as HookRegistry } from './pipeline-BG7UgbDc.js';
2
+ import { E as EventBus, l as MemoryStore, b as BrainArbiter } from './brain-Cp_3GIS2.js';
3
+ import { C as Compactor } from './compactor-BueGt7LG.js';
4
+ import { j as ConfigLoader, i as ConfigStore, M as ModelsRegistry } from './config-BaVThgnT.js';
5
+ import { E as ErrorHandler, R as RetryPolicy } from './retry-policy-rutAfVeR.js';
6
6
  import { I as InputReader } from './input-reader-E-ffP2ee.js';
7
7
  import { L as Logger } from './logger-B63L5bTg.js';
8
- import { M as ModeStore } from './mode-ARA3HrkY.js';
9
- import { M as ModelsRegistry } from './models-registry-B6_KfS65.js';
8
+ import { M as ModeStore } from './mode-CZlO9iU1.js';
10
9
  import { P as PathResolver } from './path-resolver-CPRj4bFY.js';
11
- import { P as PermissionPolicy, S as SecretScrubber } from './permission-BDv7z0mk.js';
12
- import { P as ProviderRunner } from './provider-runner-BUunikwY.js';
13
- import { c as TokenCounter, i as SessionStore } from './context-CNRYfhUv.js';
10
+ import { P as PermissionPolicy, S as SecretScrubber } from './permission-B7nKnEvQ.js';
11
+ import { P as ProviderRunner } from './provider-runner-BNpuIyOL.js';
12
+ import { c as TokenCounter, i as SessionStore } from './context-C7G_MtLV.js';
14
13
  import { S as SkillLoader } from './skill-Bj6Ezqb8.js';
15
14
 
16
15
  /**
@@ -1,11 +1,10 @@
1
- import { l as TextBlock, T as Tool, m as ToolUseBlock, C as Context, n as ToolResultBlock, R as Request, b as Response, P as Provider, g as ContentBlock, a0 as WrongStackError } from './context-CNRYfhUv.js';
1
+ import { l as TextBlock, T as Tool, m as ToolUseBlock, C as Context, n as ToolResultBlock, R as Request, b as Response, P as Provider, g as ContentBlock, a1 as WrongStackError } from './context-C7G_MtLV.js';
2
2
  import { L as Logger } from './logger-B63L5bTg.js';
3
- import { B as BuildContext, H as HookRegistry, a as Renderer, P as Pipeline, C as Container } from './pipeline-BqiA_UMr.js';
4
- import { H as HookEvent, u as ProviderConfig } from './config-BSU-6vah.js';
3
+ import { B as BuildContext, H as HookRegistry, a as Renderer, P as Pipeline, C as Container } from './pipeline-BG7UgbDc.js';
4
+ import { H as HookEvent, W as WireFamily, P as ProviderConfig } from './config-BaVThgnT.js';
5
5
  import { T as Tracer } from './observability-D-HZN_mF.js';
6
- import { E as EventBus } from './brain-Dfv4Y82E.js';
7
- import { P as PermissionPolicy, S as SecretScrubber } from './permission-BDv7z0mk.js';
8
- import { W as WireFamily } from './models-registry-B6_KfS65.js';
6
+ import { E as EventBus } from './brain-Cp_3GIS2.js';
7
+ import { P as PermissionPolicy, S as SecretScrubber } from './permission-B7nKnEvQ.js';
9
8
 
10
9
  /**
11
10
  * A contributor that injects additional TextBlocks into the system prompt.
@@ -516,6 +515,8 @@ interface RunResult {
516
515
  summary: string | undefined;
517
516
  ok: boolean;
518
517
  }>;
518
+ /** Human-readable reason for abort (e.g. "user interrupt", "tool timeout", "stream hang"). */
519
+ abortReason?: string | undefined;
519
520
  }
520
521
  interface AgentInit {
521
522
  container: Container;
package/dist/index.d.ts CHANGED
@@ -1,73 +1,72 @@
1
- import { S as SystemPromptBuilder, b as ModelCapabilities, B as BuildContext, C as Container, H as HookRegistry } from './pipeline-BqiA_UMr.js';
2
- export { c as BindOptions, D as Decorator, F as Factory, d as Middleware, M as MiddlewareHandler, N as NextFn, P as Pipeline, e as PipelineOptions, a as Renderer, T as Token, h as hookMatcherMatches } from './pipeline-BqiA_UMr.js';
3
- import { E as EventBus, l as MemoryStore, c as EventName, L as Listener, b as BrainArbiter } from './brain-Dfv4Y82E.js';
4
- export { B as BrainDecision, d as BrainDecisionOption, e as BrainDecisionQueue, a as BrainDecisionRequest, f as BrainDecisionSource, g as BrainFallback, h as BrainRisk, D as DefaultBrainArbiter, i as DefaultBrainArbiterOptions, n as EventLogger, o as EventMap, H as HumanEscalatingBrainArbiter, p as MEMORY_TYPE_LABELS, q as MemoryClearedPayload, r as MemoryConsolidatedPayload, k as MemoryEntry, s as MemoryForgottenPayload, t as MemoryPriority, m as MemoryRelevanceContext, u as MemoryRememberedPayload, M as MemoryScope, v as MemoryType, O as ObservableBrainArbiter, w as ScopedEventBus, S as ScoredEntry, j as formatHumanPrompt } from './brain-Dfv4Y82E.js';
5
- import { W as WorktreeManager } from './index-BWRN6wOb.js';
6
- export { A as AllocateOpts, M as MergeOpts, a as MergeResult, R as RunController, b as RunControllerOptions, T as TOKENS, c as WorktreeHandle, d as WorktreeManagerOptions, e as WorktreeRunResult, f as WorktreeStatus, g as assertSafePath } from './index-BWRN6wOb.js';
7
- import { C as Context, P as Provider, T as Tool, R as Request, b as Response, g as ContentBlock, l as TextBlock, M as Message } from './context-CNRYfhUv.js';
8
- export { A as AgentError, k as Capabilities, u as ConfigError, v as ContextInit, t as ConversationState, E as ERROR_CODES, w as ErrorCode, x as ErrorSeverity, y as ErrorSubsystem, F as FileSnapshot, z as FsError, I as ImageBlock, J as JSONSchema, B as MessageRole, f as Permission, D as PluginError, e as ProviderError, G as ProviderErrorBody, H as ReadonlyConversationState, p as ResumedSession, K as RiskTier, L as RunEnv, o as RunOptions, q as SessionData, N as SessionError, S as SessionEvent, h as SessionMetadata, i as SessionStore, r as SessionSummary, a as SessionWriter, O as StateChange, Q as StateChangeHandler, V as StopReason, W as StreamEvent, X as ThinkingBlock, s as TodoItem, c as TokenCounter, Y as ToolCallContext, Z as ToolError, _ as ToolFinalEvent, j as ToolProgressEvent, n as ToolResultBlock, $ as ToolStreamEvent, m as ToolUseBlock, U as Usage, a0 as WrongStackError, a1 as asBlocks, a2 as asText, a3 as extractRunEnv, a4 as isAgentError, a5 as isConfigError, a6 as isFsError, a7 as isImageBlock, a8 as isPluginError, a9 as isSessionError, aa as isTextBlock, ab as isThinkingBlock, ac as isToolError, ad as isToolResultBlock, ae as isToolUseBlock, af as isWrongStackError, ag as toWrongStackError, ah as wrapAsState } from './context-CNRYfhUv.js';
9
- import { P as ProviderRunner, R as RunProviderOptions$1 } from './provider-runner-BUunikwY.js';
10
- import { M as MCPServerConfig, d as Config, i as HookInput, j as HookOutcome, H as HookEvent, a as HookMatcher, I as InProcessHook, h as ModelMatrixEntry, e as ConfigStore } from './config-BSU-6vah.js';
11
- export { A as AutonomyConfig, k as CONTEXT_WINDOW_MODES, f as ConfigLoader, l as ContextConfig, C as ContextWindowAggressiveOn, m as ContextWindowConfigLike, n as ContextWindowMode, o as ContextWindowModeId, c as ContextWindowPolicy, p as ContextWindowThresholds, q as CustomModelDefinition, D as DEFAULT_CONTEXT_WINDOW_MODE_ID, F as FeaturesConfig, b as HookEntry, r as IndexingConfig, L as LaunchConfig, s as LogConfig, P as PluginConfig, t as ProviderApiKey, u as ProviderConfig, v as SessionLoggingConfig, S as ShellHook, w as SyncCategory, g as SyncConfig, T as ToolsConfig, x as formatContextWindowModeList, y as getContextWindowMode, z as isContextWindowModeId, B as listContextWindowModes, E as resolveContextWindowPolicy } from './config-BSU-6vah.js';
12
- export { a as CompactReport, C as Compactor } from './compactor-DXLxLcmU.js';
13
- export { a as PermissionDecision, P as PermissionPolicy, S as SecretScrubber, T as TrustPolicy } from './permission-BDv7z0mk.js';
1
+ import { S as SystemPromptBuilder, b as ModelCapabilities, B as BuildContext, C as Container, H as HookRegistry } from './pipeline-BG7UgbDc.js';
2
+ export { c as BindOptions, D as Decorator, F as Factory, d as Middleware, M as MiddlewareHandler, N as NextFn, P as Pipeline, e as PipelineOptions, a as Renderer, T as Token, h as hookMatcherMatches } from './pipeline-BG7UgbDc.js';
3
+ import { E as EventBus, l as MemoryStore, c as EventName, L as Listener, b as BrainArbiter } from './brain-Cp_3GIS2.js';
4
+ export { B as BrainDecision, d as BrainDecisionOption, e as BrainDecisionQueue, a as BrainDecisionRequest, f as BrainDecisionSource, g as BrainFallback, h as BrainRisk, D as DefaultBrainArbiter, i as DefaultBrainArbiterOptions, n as EventLogger, o as EventMap, H as HumanEscalatingBrainArbiter, p as MEMORY_TYPE_LABELS, q as MemoryClearedPayload, r as MemoryConsolidatedPayload, k as MemoryEntry, s as MemoryForgottenPayload, t as MemoryPriority, m as MemoryRelevanceContext, u as MemoryRememberedPayload, M as MemoryScope, v as MemoryType, O as ObservableBrainArbiter, w as ScopedEventBus, S as ScoredEntry, j as formatHumanPrompt } from './brain-Cp_3GIS2.js';
5
+ import { W as WorktreeManager } from './index-BZdezm3g.js';
6
+ export { A as AllocateOpts, M as MergeOpts, a as MergeResult, R as RunController, b as RunControllerOptions, T as TOKENS, c as WorktreeHandle, d as WorktreeManagerOptions, e as WorktreeRunResult, f as WorktreeStatus, g as assertSafePath } from './index-BZdezm3g.js';
7
+ import { C as Context, P as Provider, T as Tool, R as Request, b as Response, g as ContentBlock, l as TextBlock, M as Message } from './context-C7G_MtLV.js';
8
+ export { A as AgentError, k as Capabilities, u as ConfigError, v as ContextInit, t as ConversationState, E as ERROR_CODES, w as ErrorCode, x as ErrorSeverity, y as ErrorSubsystem, F as FileSnapshot, z as FsError, I as ImageBlock, J as JSONSchema, B as MessageRole, f as Permission, D as PluginError, e as ProviderError, G as ProviderErrorBody, H as ReadonlyConversationState, p as ResumedSession, K as RiskTier, L as RunEnv, o as RunOptions, q as SessionData, N as SessionError, S as SessionEvent, h as SessionMetadata, i as SessionStore, r as SessionSummary, a as SessionWriter, O as StateChange, Q as StateChangeHandler, V as StopReason, W as StreamEvent, X as StreamHangError, Y as ThinkingBlock, s as TodoItem, c as TokenCounter, Z as ToolCallContext, _ as ToolError, $ as ToolFinalEvent, j as ToolProgressEvent, n as ToolResultBlock, a0 as ToolStreamEvent, m as ToolUseBlock, U as Usage, a1 as WrongStackError, a2 as asBlocks, a3 as asText, a4 as extractRunEnv, a5 as isAgentError, a6 as isConfigError, a7 as isFsError, a8 as isImageBlock, a9 as isPluginError, aa as isSessionError, ab as isTextBlock, ac as isThinkingBlock, ad as isToolError, ae as isToolResultBlock, af as isToolUseBlock, ag as isWrongStackError, ah as toWrongStackError, ai as wrapAsState } from './context-C7G_MtLV.js';
9
+ import { P as ProviderRunner, R as RunProviderOptions$1 } from './provider-runner-BNpuIyOL.js';
10
+ import { c as MCPServerConfig, h as Config, l as HookInput, m as HookOutcome, H as HookEvent, e as HookMatcher, I as InProcessHook, d as ModelMatrixEntry, i as ConfigStore } from './config-BaVThgnT.js';
11
+ export { A as AutonomyConfig, n as CONTEXT_WINDOW_MODES, j as ConfigLoader, o as ContextConfig, C as ContextWindowAggressiveOn, p as ContextWindowConfigLike, q as ContextWindowMode, r as ContextWindowModeId, g as ContextWindowPolicy, s as ContextWindowThresholds, t as CustomModelDefinition, D as DEFAULT_CONTEXT_WINDOW_MODE_ID, F as FeaturesConfig, f as HookEntry, u as IndexingConfig, L as LaunchConfig, v as LogConfig, a as ModelsDevPayload, w as ModelsDevProvider, M as ModelsRegistry, x as PluginConfig, y as ProviderApiKey, P as ProviderConfig, b as ResolvedModel, R as ResolvedProvider, z as SessionLoggingConfig, S as ShellHook, B as SyncCategory, k as SyncConfig, T as ToolsConfig, W as WireFamily, E as formatContextWindowModeList, G as getContextWindowMode, J as isContextWindowModeId, K as listContextWindowModes, N as resolveContextWindowPolicy } from './config-BaVThgnT.js';
12
+ export { a as CompactReport, C as Compactor } from './compactor-BueGt7LG.js';
13
+ export { a as PermissionDecision, P as PermissionPolicy, S as SecretScrubber, T as TrustPolicy } from './permission-B7nKnEvQ.js';
14
14
  export { C as CheckpointInfo, R as RewindResult, a as RewindResultExtended, S as SessionRewinder } from './session-rewinder-C9HnMkhP.js';
15
- import { A as AttachmentStore, b as AttachmentRef, a as AddAttachmentInput } from './session-reader-DDz1Ek4V.js';
16
- export { c as Attachment, d as AttachmentKind, e as AttachmentMeta, D as DefaultSessionReader, f as DefaultSessionReaderOptions, S as SessionReader } from './session-reader-DDz1Ek4V.js';
15
+ import { A as AttachmentStore, b as AttachmentRef, a as AddAttachmentInput } from './session-reader-BAtCxdaw.js';
16
+ export { c as Attachment, d as AttachmentKind, e as AttachmentMeta, D as DefaultSessionReader, f as DefaultSessionReaderOptions, S as SessionReader } from './session-reader-BAtCxdaw.js';
17
17
  export { D as DEFAULT_AUTONOMY_CONFIG, a as DEFAULT_CONTEXT_CONFIG, b as DEFAULT_SESSION_LOGGING_CONFIG, c as DEFAULT_SESSION_PRUNE_DAYS, d as DEFAULT_TOOLS_CONFIG } from './default-config-CXsDvOmP.js';
18
- import { a as DefaultSecretVault } from './secret-vault-DrOhc2i5.js';
19
- export { D as DefaultSecretScrubber, S as SecretVaultOptions, d as decryptConfigSecrets, e as encryptConfigSecrets, m as migratePlaintextSecrets, r as rewriteConfigEncrypted } from './secret-vault-DrOhc2i5.js';
18
+ import { a as DefaultSecretVault } from './secret-vault-BTcC_T5v.js';
19
+ export { D as DefaultSecretScrubber, S as SecretVaultOptions, d as decryptConfigSecrets, e as encryptConfigSecrets, i as isSecretField, m as migratePlaintextSecrets, r as rewriteConfigEncrypted } from './secret-vault-BTcC_T5v.js';
20
20
  import { D as DefaultLogger } from './logger-B9J5puGM.js';
21
21
  export { a as DefaultLoggerOptions } from './logger-B9J5puGM.js';
22
- import { D as DefaultPathResolver } from './path-resolver-DDJiMAtX.js';
23
- export { a as DefaultTokenCounter } from './path-resolver-DDJiMAtX.js';
24
- export { C as CompactorOptions, g as DEFAULT_RECOVERY_STRATEGIES, D as DefaultErrorHandler, a as DefaultRetryPolicy, E as EternalAutonomyEngine, b as EternalAutonomyOptions, c as EternalEngineState, H as HybridCompactor, I as IterationStage, P as ParallelEngineState, d as ParallelEternalEngine, e as ParallelEternalOptions, f as ParallelIterationStage, R as RecoveryStrategy, T as ToolExecutor, h as buildRecoveryStrategies } from './parallel-eternal-engine-B2CbsKpc.js';
22
+ import { D as DefaultPathResolver } from './path-resolver-DRjQBkoO.js';
23
+ export { a as DefaultTokenCounter } from './path-resolver-DRjQBkoO.js';
24
+ export { C as CompactorOptions, g as DEFAULT_RECOVERY_STRATEGIES, D as DefaultErrorHandler, a as DefaultRetryPolicy, E as EternalAutonomyEngine, b as EternalAutonomyOptions, c as EternalEngineState, H as HybridCompactor, I as IterationStage, P as ParallelEngineState, d as ParallelEternalEngine, e as ParallelEternalOptions, f as ParallelIterationStage, R as RecoveryStrategy, T as ToolExecutor, h as buildRecoveryStrategies } from './parallel-eternal-engine-Dj2SYzha.js';
25
25
  import { S as SkillLoader } from './skill-Bj6Ezqb8.js';
26
26
  export { b as SkillEntry, a as SkillManifest } from './skill-Bj6Ezqb8.js';
27
27
  export { I as InputReader, P as PromptOption } from './input-reader-E-ffP2ee.js';
28
- import { z as SlashCommand, P as PluginAPI, E as PluginPipelines, G as ToolRegistryView, H as ProviderRegistryView, I as MCPRegistryView, J as SlashCommandRegistryView, K as SessionWriterView, L as MetricsSinkView, N as Plugin } from './agent-subagent-runner-DukQLUcS.js';
29
- export { g as Agent, h as AgentFactory, i as AgentFactoryResult, j as AgentRunnerOptions, k as BudgetExceededError, l as BudgetKind, m as BudgetLimits, r as BudgetUsage, O as CoordinatorEvents, C as CoordinatorStatus, D as DoneCondition, F as FleetBus, s as FleetEvent, t as FleetHandler, u as FleetUsage, v as FleetUsageAggregator, c as MultiAgentConfig, M as MultiAgentCoordinator, Q as PluginCapabilities, R as PluginDependency, e as SpawnResult, w as SubagentBudget, S as SubagentConfig, U as SubagentContext, V as SubagentError, W as SubagentErrorKind, X as SubagentRunContext, Y as SubagentRunOutcome, d as SubagentRunner, x as SubagentUsageSnapshot, Z as TaskDelegation, f as TaskResult, T as TaskSpec, y as makeAgentSubagentRunner } from './agent-subagent-runner-DukQLUcS.js';
30
- export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from './models-registry-DU64QxQa.js';
31
- import { M as ModeStore } from './mode-ARA3HrkY.js';
32
- export { D as DEFAULT_MODES, a as Mode, b as ModeConfig, c as ModeManifest } from './mode-ARA3HrkY.js';
33
- export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from './agent-bridge-mOxbpFcg.js';
28
+ import { z as SlashCommand, P as PluginAPI, E as PluginPipelines, G as ToolRegistryView, H as ProviderRegistryView, I as MCPRegistryView, J as SlashCommandRegistryView, K as SessionWriterView, L as MetricsSinkView, N as Plugin } from './agent-subagent-runner-1GeQE_L0.js';
29
+ export { g as Agent, h as AgentFactory, i as AgentFactoryResult, j as AgentRunnerOptions, k as BudgetExceededError, l as BudgetKind, m as BudgetLimits, r as BudgetUsage, O as CoordinatorEvents, C as CoordinatorStatus, D as DoneCondition, F as FleetBus, s as FleetEvent, t as FleetHandler, u as FleetUsage, v as FleetUsageAggregator, c as MultiAgentConfig, M as MultiAgentCoordinator, Q as PluginCapabilities, R as PluginDependency, e as SpawnResult, w as SubagentBudget, S as SubagentConfig, U as SubagentContext, V as SubagentError, W as SubagentErrorKind, X as SubagentRunContext, Y as SubagentRunOutcome, d as SubagentRunner, x as SubagentUsageSnapshot, Z as TaskDelegation, f as TaskResult, T as TaskSpec, y as makeAgentSubagentRunner } from './agent-subagent-runner-1GeQE_L0.js';
30
+ export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from './models-registry-D90K9UnM.js';
31
+ import { M as ModeStore } from './mode-CZlO9iU1.js';
32
+ export { D as DEFAULT_MODES, b as Mode, a as ModeConfig, c as ModeManifest } from './mode-CZlO9iU1.js';
33
+ export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from './agent-bridge-r9y6gdn4.js';
34
34
  export { D as DEFAULT_SPEC_TEMPLATE, S as SpecAnalysis, a as SpecApiEndpoint, b as SpecRequirement, c as SpecSection, d as SpecSectionType, e as SpecStatus, f as SpecTemplate, g as SpecValidationResult, h as Specification } from './spec-TBi3Jr6T.js';
35
35
  import { d as TaskGraph, T as TaskType, a as TaskPriority, e as TaskNode } from './task-graph-u1q9Jkyk.js';
36
36
  export { C as CriticalPathResult, f as TaskAssignment, g as TaskDependency, h as TaskEdge, i as TaskFilter, c as TaskProgress, j as TaskSort, b as TaskStatus, k as computeTaskProgress, l as findCriticalPath, t as topologicalSort } from './task-graph-u1q9Jkyk.js';
37
37
  import { T as Tracer, M as MetricsSink, H as HealthRegistry } from './observability-D-HZN_mF.js';
38
38
  export { A as AggregateHealth, a as HealthCheck, b as HealthCheckResult, c as HealthStatus, d as MetricLabels, e as MetricSeries, f as MetricsSnapshot, S as Span } from './observability-D-HZN_mF.js';
39
- import { S as SystemPromptContributor, E as ExtensionRegistry, e as ToolRegistry, P as ProviderRegistry, c as ToolCallPipelinePayload } from './index-DIKEcfgC.js';
40
- export { i as AfterIterationHook, j as AfterRunHook, k as AfterToolExecutionHook, l as AgentExtension, g as AgentInit, h as AgentInput, A as AgentPipelines, B as BeforeIterationHook, m as BeforeRunHook, n as BeforeToolExecutionHook, D as DEFAULT_MAX_ITERATIONS, H as HookRunEnv, o as HookRunner, p as HookRunnerOptions, O as OnErrorHook, q as PreToolUseResult, r as PromptResult, s as ProviderFactory, t as ProviderRunnerWrapper, R as RunResult, d as ToolWrapper, U as UserInputPayload, u as createDefaultPipelines } from './index-DIKEcfgC.js';
39
+ import { S as SystemPromptContributor, E as ExtensionRegistry, e as ToolRegistry, P as ProviderRegistry, c as ToolCallPipelinePayload } from './index-CPweVoFM.js';
40
+ export { i as AfterIterationHook, j as AfterRunHook, k as AfterToolExecutionHook, l as AgentExtension, g as AgentInit, h as AgentInput, A as AgentPipelines, B as BeforeIterationHook, m as BeforeRunHook, n as BeforeToolExecutionHook, D as DEFAULT_MAX_ITERATIONS, H as HookRunEnv, o as HookRunner, p as HookRunnerOptions, O as OnErrorHook, q as PreToolUseResult, r as PromptResult, s as ProviderFactory, t as ProviderRunnerWrapper, R as RunResult, d as ToolWrapper, U as UserInputPayload, u as createDefaultPipelines } from './index-CPweVoFM.js';
41
41
  export { AutonomyStage } from './types/index.js';
42
- export { AtomicWriteOptions, BuildChildEnvOptions, CompileFail, CompileResult, FileLockOptions, MessageRepairReport, MessageRepairResult, NewlineStyle, OutputLineGuard, RequestTokenBreakdown, SafeParseResult, ToolOutputSerializerOptions, UnifiedDiffOptions, ValidationError, ValidationResult, atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, createToolOutputSerializer, detectNewlineStyle, ensureDir, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, formatTodosList, getCalibrationState, getTermSize, isInteractive, isStdinTTY, isStdoutTTY, matchAny, matchGlob, mergeCustomModelDefs, mergeModelsPayload, normalizeToLf, onResize, recordActualUsage, repairToolUseAdjacency, resetCalibration, safeParse, safeStringify, sanitizeJsonString, setOutputLineGuard, setRawMode, sleep, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, withFileLock, writeErr, writeOut } from './utils/index.js';
42
+ export { AtomicWriteOptions, BuildChildEnvOptions, CompileFail, CompileResult, FileLockOptions, MessageRepairReport, MessageRepairResult, NewlineStyle, OutputLineGuard, RequestTokenBreakdown, SafeParseResult, ToolOutputSerializerOptions, UnifiedDiffOptions, ValidationError, ValidationResult, assertNever, atomicWrite, buildChildEnv, color, compileGlob, compileUserRegex, completePartialObject, createToolOutputSerializer, detectNewlineStyle, ensureDir, estimateMessageTokens, estimateRequestTokens, estimateRequestTokensCalibrated, estimateTextTokens, estimateToolDefTokens, estimateToolInputTokens, estimateToolResultTokens, expandGlob, formatTodosList, getCalibrationState, getTermSize, isInteractive, isStdinTTY, isStdoutTTY, matchAny, matchGlob, mergeCustomModelDefs, mergeModelsPayload, normalizeToLf, onResize, recordActualUsage, repairToolUseAdjacency, resetCalibration, safeParse, safeStringify, sanitizeJsonString, setOutputLineGuard, setRawMode, sleep, stripAnsi, toStyle, unifiedDiff, validateAgainstSchema, withFileLock, writeErr, writeOut } from './utils/index.js';
43
43
  export { T as TaskItem, c as computeTaskItemProgress, f as formatTaskList, a as formatTaskProgress } from './task-format-vGOIftmK.js';
44
- import { W as WstackPaths } from './wstack-paths-_lqjzErq.js';
45
- export { a as WstackPathOptions, p as projectHash, b as projectSlug, r as resolveWstackPaths } from './wstack-paths-_lqjzErq.js';
44
+ import { W as WstackPaths } from './wstack-paths-DD50Omgn.js';
45
+ export { a as WstackPathOptions, p as projectHash, b as projectSlug, r as resolveWstackPaths } from './wstack-paths-DD50Omgn.js';
46
46
  export { expectDefined } from './utils/expect-defined.js';
47
- export { A as AbandonedSession, a as AttachmentStoreOptions, C as ConfigLoaderOptions, b as ConfigMigration, c as ConfigMigrationError, d as ConfigSource, D as DEFAULT_CONFIG_MIGRATIONS, e as DefaultAttachmentStore, f as DefaultConfigLoader, g as DefaultConfigStore, h as DefaultMemoryStore, i as DefaultSessionStore, F as FileMemoryBackend, j as FileMemoryBackendOptions, M as MemoryBackend, k as MemoryStoreOptions, l as MigrationContext, m as MigrationResult, P as PersistedQueueItem, n as PlanFile, o as PlanItem, p as PlanTemplate, Q as QueueStore, R as RecoveryLock, q as RecoveryLockOptions, S as SessionAnalyzer, r as SessionStoreOptions, T as TodosCheckpointFile, s as addPlanItem, t as attachPlanCheckpoint, u as attachTodosCheckpoint, v as clearPlan, w as deriveTodosFromPlanItem, x as emptyPlan, y as formatPlan, z as formatPlanTemplates, B as getPlanTemplate, E as listPlanTemplates, G as loadPlan, H as loadTodosCheckpoint, I as parseEntries, J as removePlanItem, K as runConfigMigrations, L as savePlan, N as saveTodosCheckpoint, O as setPlanItemStatus } from './plan-templates-BdDxl9cI.js';
48
- export { A as AuditLevel, C as CORE_RECONSTRUCT_EVENTS, a as STANDARD_AUDIT_EVENTS, S as SessionEventBridge, b as SessionEventBridgeOptions, c as SessionSamplingOptions, T as ToolProgressSamplingOptions, d as createSessionEventBridge, r as resolveAuditLevel, e as resolveSessionLoggingConfig } from './session-event-bridge-BpJ5trO9.js';
47
+ export { A as AbandonedSession, a as AttachmentStoreOptions, C as ConfigLoaderOptions, b as ConfigMigration, c as ConfigMigrationError, d as ConfigSource, D as DEFAULT_CONFIG_MIGRATIONS, e as DefaultAttachmentStore, f as DefaultConfigLoader, g as DefaultConfigStore, h as DefaultMemoryStore, i as DefaultSessionStore, F as FileMemoryBackend, j as FileMemoryBackendOptions, M as MemoryBackend, k as MemoryStoreOptions, l as MigrationContext, m as MigrationResult, P as PersistedQueueItem, n as PlanFile, o as PlanItem, p as PlanTemplate, Q as QueueStore, R as RecoveryLock, q as RecoveryLockOptions, S as SessionAnalyzer, r as SessionStoreOptions, T as TodosCheckpointFile, s as addPlanItem, t as attachPlanCheckpoint, u as attachTodosCheckpoint, v as clearPlan, w as deriveTodosFromPlanItem, x as emptyPlan, y as formatPlan, z as formatPlanTemplates, B as getPlanTemplate, E as listPlanTemplates, G as loadPlan, H as loadTodosCheckpoint, I as parseEntries, J as removePlanItem, K as runConfigMigrations, L as savePlan, N as saveTodosCheckpoint, O as setPlanItemStatus } from './plan-templates-CkKNPU3I.js';
48
+ export { A as AuditLevel, C as CORE_RECONSTRUCT_EVENTS, a as STANDARD_AUDIT_EVENTS, S as SessionEventBridge, b as SessionEventBridgeOptions, c as SessionSamplingOptions, T as ToolProgressSamplingOptions, d as createSessionEventBridge, r as resolveAuditLevel, e as resolveSessionLoggingConfig } from './session-event-bridge-DWlvglC2.js';
49
49
  export { a as DirectorStateCheckpoint, D as DirectorStateSnapshot, b as DirectorSubagentState, c as DirectorTaskState, l as loadDirectorState } from './director-state-BfeCUbmk.js';
50
- export { A as AutoApprovePermissionPolicy, D as DefaultPermissionPolicy, P as PermissionPolicyOptions } from './permission-policy-dF74EpDp.js';
51
- export { A as AutoCompactionMiddleware, a as AutonomousRunner, b as AutonomousRunnerOptions, c as AutonomyPromptContributorOptions, D as DefaultSkillLoader, d as DoneCheckResult, e as DoneConditionChecker, I as IntelligentCompactor, f as IntelligentCompactorOptions, S as SelectiveCompactor, g as SelectiveCompactorOptions, h as SkillLoaderOptions, i as buildGoalPreamble, m as makeAutonomyPromptContributor } from './goal-preamble-CI8lxeY1.js';
50
+ export { A as AutoApprovePermissionPolicy, D as DefaultPermissionPolicy, P as PermissionPolicyOptions } from './permission-policy-8-6zBmfA.js';
51
+ export { A as AutoCompactionMiddleware, a as AutonomousRunner, b as AutonomousRunnerOptions, c as AutonomyPromptContributorOptions, C as CompactorStrategy, D as DefaultSkillLoader, d as DoneCheckResult, e as DoneConditionChecker, I as IntelligentCompactor, f as IntelligentCompactorOptions, S as SelectiveCompactor, g as SelectiveCompactorOptions, h as SkillLoaderOptions, i as StrategyCompactorOptions, j as buildGoalPreamble, k as createStrategyCompactor, m as makeAutonomyPromptContributor } from './goal-preamble-iuIUTQwk.js';
52
52
  export { DefaultProviderRunner } from './defaults/index.js';
53
- export { A as ACP_AGENTS, a as AGENTS_BY_PHASE, b as AGENT_CATALOG, c as ALL_AGENT_DEFINITIONS, d as ALL_FLEET_AGENTS, e as AUDIT_LOG_AGENT, f as AutoExtendCeiling, g as AutoExtendPolicy, B as BUG_HUNTER_AGENT, n as CreateDelegateToolOptions, D as DEFAULT_DIRECTOR_PREAMBLE, q as DEFAULT_SUBAGENT_BASELINE, r as DelegateHost, s as Director, w as DirectorPromptParts, x as DirectorSessionFactory, y as DirectorSessionFactoryOptions, F as FLEET_ROSTER, z as FLEET_ROSTER_BUDGETS, E as FLEET_ROSTER_WITHACP, G as FleetCostCapError, H as FleetManager, I as FleetManagerOptions, J as FleetRosterBudget, K as FleetSpawnBudgetError, L as ICoordinator, M as IFleetManager, O as NULL_FLEET_BUS, R as REFACTOR_PLANNER_AGENT, S as SECURITY_SCANNER_AGENT, V as SubagentPromptParts, W as applyRosterBudget, X as attachAutoExtend, Y as composeDirectorPrompt, Z as composeSubagentPrompt, _ as createDelegateTool, $ as getAgentDefinition, a1 as makeAskTool, a2 as makeAssignTool, a3 as makeAwaitTasksTool, a4 as makeCollabDebugTool, a5 as makeDirectorSessionFactory, a6 as makeFleetEmitTool, a7 as makeFleetHealthTool, a8 as makeFleetSessionTool, a9 as makeFleetStatusTool, aa as makeFleetUsageTool, ab as makeRollUpTool, ac as makeSpawnTool, ad as makeTerminateTool, af as rosterSummaryFromConfigs } from './null-fleet-bus-D09hMzFQ.js';
54
- export { b as AgentBudgetTier, c as AgentCapability, A as AgentDefinition, d as AgentPhase, e as DEFAULT_DISPATCH_ROLE, a as DefaultMultiAgentCoordinator, f as DispatchCandidate, D as DispatchClassifier, g as DispatchMethod, h as DispatchOptions, i as DispatchResult, j as MultiAgentCoordinatorOptions, k as dispatchAgent, m as makeLLMClassifier, s as scoreAgents } from './multi-agent-coordinator-51LvnXkD.js';
55
- export { DefaultModeStore, LLMSelector, LLMSelectorOptions, ModeLoaderOptions, loadProjectModes, loadUserModes } from './models/index.js';
53
+ export { A as ACP_AGENTS, a as AGENTS_BY_PHASE, b as AGENT_CATALOG, c as ALL_AGENT_DEFINITIONS, d as ALL_FLEET_AGENTS, e as AUDIT_LOG_AGENT, f as AutoExtendCeiling, g as AutoExtendPolicy, B as BUG_HUNTER_AGENT, n as CreateDelegateToolOptions, D as DEFAULT_DIRECTOR_PREAMBLE, q as DEFAULT_SUBAGENT_BASELINE, r as DelegateHost, s as Director, w as DirectorPromptParts, x as DirectorSessionFactory, y as DirectorSessionFactoryOptions, F as FLEET_ROSTER, z as FLEET_ROSTER_BUDGETS, E as FLEET_ROSTER_WITHACP, G as FleetCostCapError, H as FleetManager, I as FleetManagerOptions, J as FleetRosterBudget, K as FleetSpawnBudgetError, L as ICoordinator, M as IFleetManager, O as NULL_FLEET_BUS, R as REFACTOR_PLANNER_AGENT, S as SECURITY_SCANNER_AGENT, V as SubagentPromptParts, W as applyRosterBudget, X as attachAutoExtend, Y as composeDirectorPrompt, Z as composeSubagentPrompt, _ as createDelegateTool, $ as getAgentDefinition, a1 as makeAskTool, a2 as makeAssignTool, a3 as makeAwaitTasksTool, a4 as makeCollabDebugTool, a5 as makeDirectorSessionFactory, a6 as makeFleetEmitTool, a7 as makeFleetHealthTool, a8 as makeFleetSessionTool, a9 as makeFleetStatusTool, aa as makeFleetUsageTool, ab as makeRollUpTool, ac as makeSpawnTool, ad as makeTerminateTool, af as rosterSummaryFromConfigs } from './null-fleet-bus-BUyfqh23.js';
54
+ export { b as AgentBudgetTier, c as AgentCapability, A as AgentDefinition, d as AgentPhase, e as DEFAULT_DISPATCH_ROLE, a as DefaultMultiAgentCoordinator, f as DispatchCandidate, D as DispatchClassifier, g as DispatchMethod, h as DispatchOptions, i as DispatchResult, j as MultiAgentCoordinatorOptions, k as dispatchAgent, m as makeLLMClassifier, s as scoreAgents } from './multi-agent-coordinator-QWEzJDlm.js';
55
+ export { D as DefaultModeStore, L as LLMSelector, a as LLMSelectorOptions, M as ModeLoaderOptions, l as loadProjectModes, b as loadUserModes } from './llm-selector-CP72f1lC.js';
56
56
  import { TaskStore } from './sdd/index.js';
57
57
  export { AISpecBuilder, AISpecBuilderOptions, AISpecPhase, AISpecSession, AutoExecutor, AutoExecutorOptions, BottleneckTask, CollectedAnswer, CriticalPathAnalysis, DefaultTaskStore, ExecutionSummary, GeneratedTask, SPEC_TEMPLATES, SddParallelRun, SddParallelRunOptions, SddProgress, SddTaskDecomposer, SddTaskDecomposerOptions, SpecDiff, SpecDrivenDev, SpecDrivenDevOptions, SpecIndexEntry, SpecParser, SpecStore, SpecStoreOptions, SpecVersion, SpecVersioning, TaskBatch, TaskExecutionContext, TaskExecutionResult, TaskFlow, TaskFlowEventMap, TaskFlowEventName, TaskFlowExecutionContext, TaskFlowOptions, TaskFlowPhase, TaskGenerator, TaskGeneratorOptions, TaskGraphIndexEntry, TaskGraphStore, TaskGraphStoreOptions, TaskTracker, TaskTrackerOptions, TaskTransition, WaveResult, analyzeCriticalPath, createAutoExecutor, getTemplate, listTemplates, renderProgress, renderSpecAnalysis, renderTaskGraph, renderTaskList, templateToMarkdown } from './sdd/index.js';
58
58
  export { DefaultHealthRegistry, InMemoryMetricsSink, MetricsServerHandle, MetricsServerOptions, NoopMetricsSink, NoopTracer, OTelTracer, OtlpMetricsExporterHandle, OtlpMetricsExporterOptions, OtlpTraceExporterHandle, OtlpTraceExporterOptions, PROMETHEUS_CONTENT_TYPE, buildOtlpMetricsRequest, buildOtlpTracesRequest, renderPrometheus, startMetricsServer, startOtlpMetricsExporter, startOtlpTraceExporter, wireMetricsToEvents } from './observability/index.js';
59
- export { C as ContextManagerAction, a as ContextManagerInput, b as ContextManagerResult, c as ContextManagerToolOptions, d as allServers, e as awsServer, f as blockServer, g as braveSearchServer, h as context7Server, i as contextManagerTool, j as createContextManagerTool, k as everArtServer, l as filesystemServer, m as githubServer, n as googleMapsServer, o as miniMaxVisionServer, s as sentinelServer, p as slackServer, z as zaiVisionServer } from './mcp-servers-CXCsANdY.js';
59
+ export { C as ContextManagerAction, a as ContextManagerInput, b as ContextManagerResult, c as ContextManagerToolOptions, d as allServers, e as awsServer, f as blockServer, g as braveSearchServer, h as context7Server, i as contextManagerTool, j as createContextManagerTool, k as everArtServer, l as filesystemServer, m as githubServer, n as googleMapsServer, o as miniMaxVisionServer, s as sentinelServer, p as slackServer, z as zaiVisionServer } from './mcp-servers-Bl5LTvQg.js';
60
60
  export { DownloadResult, InstallResult, InstalledSkillEntry, ManifestData, ParsedRef, SkillInstaller, SkillInstallerOptions, SkillManifestStore, UpdateResult, downloadGitHubTarball, parseSkillRef } from './skills/index.js';
61
61
  import { ReplayLogStore, DefaultPromptStore } from './storage/index.js';
62
62
  export { ALL_SYNC_CATEGORIES, Annotation, AnnotationsStore, AnnotationsStoreOptions, AuditEntry, CloudSync, ConsolidationOp, DefaultSessionRewinder, GraphMemoryBackend, GraphMemoryBackendOptions, MemoryConsolidatorOptions, PromptEntry, PromptStore, RecoveryPlan, ReplayEntry, ReplayLogStoreOptions, SessionMemoryConsolidator, SessionRecovery, SessionRewinderOptions, StaleSession, SyncResult, TaskFile, ToolAuditLog, ToolAuditLogOptions, VerifyResult, emptyTaskFile, loadTasks, saveTasks } from './storage/index.js';
63
63
  export { G as GoalFile, J as JournalEntry, M as MAX_JOURNAL_ENTRIES, a as MAX_PROGRESS_HISTORY, P as ProgressSnapshot, b as appendJournal, e as emptyGoal, f as formatGoal, g as goalFilePath, l as loadGoal, p as parseProgressFromText, r as recordProgress, s as saveGoal, c as setProgress, d as summarizeUsage } from './goal-store-CV9Yz2X_.js';
64
- import { R as RetryPolicy, E as ErrorHandler } from './retry-policy-BcmuT_V0.js';
64
+ import { R as RetryPolicy, E as ErrorHandler } from './retry-policy-rutAfVeR.js';
65
65
  import { L as Logger } from './logger-B63L5bTg.js';
66
66
  export { a as LogLevel } from './logger-B63L5bTg.js';
67
- export { a as ModelsDevPayload, c as ModelsDevProvider, M as ModelsRegistry, b as ResolvedModel, R as ResolvedProvider, W as WireFamily } from './models-registry-B6_KfS65.js';
68
67
  export { S as SecretVault } from './secret-vault-DoISxaKO.js';
69
68
  import './path-resolver-CPRj4bFY.js';
70
- import './selector-C7wcdqMA.js';
69
+ import './selector-4vDFZKt3.js';
71
70
  import 'node:events';
72
71
 
73
72
  /**
@@ -1233,23 +1232,23 @@ interface PhaseExecutionContext {
1233
1232
  *
1234
1233
  * If undefined, the gate is skipped for backward compatibility.
1235
1234
  */
1236
- verifyPhase?: (phase: PhaseNode, env?: {
1235
+ verifyPhase?: ((phase: PhaseNode, env?: {
1237
1236
  cwd?: string | undefined;
1238
1237
  branch?: string | undefined;
1239
1238
  }) => Promise<{
1240
1239
  ok: boolean;
1241
1240
  output?: string | undefined;
1242
- }>;
1241
+ }>) | undefined;
1243
1242
  /**
1244
1243
  * Optional repair pass. When `verifyPhase` fails, it is called with the
1245
1244
  * captured error output. It should try to fix the code in the worktree
1246
1245
  * for example, through a repair subagent. Its return value is ignored;
1247
1246
  * the orchestrator reruns `verifyPhase` afterward. It is never called when `verifyPhase` is undefined.
1248
1247
  */
1249
- repairPhase?: (phase: PhaseNode, failure: string, attempt: number, env?: {
1248
+ repairPhase?: ((phase: PhaseNode, failure: string, attempt: number, env?: {
1250
1249
  cwd?: string | undefined;
1251
1250
  branch?: string | undefined;
1252
- }) => Promise<void>;
1251
+ }) => Promise<void>) | undefined;
1253
1252
  /**
1254
1253
  * Optional merge-conflict resolver. Called when a phase worktree conflicts
1255
1254
  * during squash-merge into the base branch. `info.cwd` points to the base
@@ -1258,21 +1257,21 @@ interface PhaseExecutionContext {
1258
1257
  * the merge is aborted and the worktree is kept in `needs-review`.
1259
1258
  * If undefined, conflicts keep the old parked-for-review behavior.
1260
1259
  */
1261
- resolveConflict?: (phase: PhaseNode, info: {
1260
+ resolveConflict?: ((phase: PhaseNode, info: {
1262
1261
  conflictFiles: string[];
1263
1262
  cwd: string;
1264
- }) => Promise<boolean>;
1263
+ }) => Promise<boolean>) | undefined;
1265
1264
  /** Optional global Brain arbiter for the policy, decision, and escalation layer. */
1266
1265
  brain?: BrainArbiter | undefined;
1267
1266
  /** Called when a phase completes. */
1268
1267
  onPhaseComplete?: ((phase: PhaseNode) => void) | undefined;
1269
1268
  /** Called when a phase fails. */
1270
- onPhaseFail?: (phase: PhaseNode, error: Error) => void;
1269
+ onPhaseFail?: ((phase: PhaseNode, error: Error) => void) | undefined;
1271
1270
  /** Called on every tick in autonomous mode. */
1272
- onTick?: (ctx: {
1271
+ onTick?: ((ctx: {
1273
1272
  activePhases: PhaseNode[];
1274
1273
  readyPhases: PhaseNode[];
1275
- }) => void;
1274
+ }) => void) | undefined;
1276
1275
  }
1277
1276
  interface AutoPhaseOptions {
1278
1277
  /** Maximum number of parallel phases. */
@@ -1961,7 +1960,7 @@ interface ReplayProviderRunnerOptions {
1961
1960
  logger?: {
1962
1961
  debug?: ((msg: string) => void) | undefined;
1963
1962
  warn?: ((msg: string) => void) | undefined;
1964
- };
1963
+ } | undefined;
1965
1964
  }
1966
1965
  declare class ReplayProviderRunner implements ProviderRunner {
1967
1966
  private readonly inner;