@wrongstack/core 0.54.1 → 0.63.4

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 (54) hide show
  1. package/dist/{agent-bridge-Dnhw4tnM.d.ts → agent-bridge-B5rxWrg3.d.ts} +1 -1
  2. package/dist/{agent-subagent-runner-By7jruZ_.d.ts → agent-subagent-runner-Zc3f37Sg.d.ts} +3 -3
  3. package/dist/{compactor-Duhsf0ge.d.ts → compactor-0vjZ8KTk.d.ts} +1 -1
  4. package/dist/{config-bht0txXS.d.ts → config-BdDuaZmB.d.ts} +112 -2
  5. package/dist/{context-DtPKqKYV.d.ts → context-iFMEO2rN.d.ts} +8 -8
  6. package/dist/coordination/index.d.ts +12 -12
  7. package/dist/defaults/index.d.ts +21 -21
  8. package/dist/defaults/index.js +254 -92
  9. package/dist/defaults/index.js.map +1 -1
  10. package/dist/{events-CbHTS4ZZ.d.ts → events-k8CHjcrN.d.ts} +20 -1
  11. package/dist/execution/index.d.ts +14 -14
  12. package/dist/execution/index.js +70 -10
  13. package/dist/execution/index.js.map +1 -1
  14. package/dist/extension/index.d.ts +7 -7
  15. package/dist/{goal-store-DwcTDDiX.d.ts → goal-store-iHltMi5n.d.ts} +1 -1
  16. package/dist/{index-CI271MjL.d.ts → index-Bc6BiP5q.d.ts} +77 -6
  17. package/dist/{index-ge5F2dnc.d.ts → index-CWdW_CJt.d.ts} +10 -8
  18. package/dist/index.d.ts +56 -32
  19. package/dist/index.js +520 -85
  20. package/dist/index.js.map +1 -1
  21. package/dist/infrastructure/index.d.ts +6 -6
  22. package/dist/infrastructure/index.js +1 -1
  23. package/dist/infrastructure/index.js.map +1 -1
  24. package/dist/kernel/index.d.ts +9 -9
  25. package/dist/kernel/index.js +3 -1
  26. package/dist/kernel/index.js.map +1 -1
  27. package/dist/{mcp-servers-DE6gzBry.d.ts → mcp-servers-CwqQDMYy.d.ts} +3 -3
  28. package/dist/models/index.d.ts +2 -2
  29. package/dist/{multi-agent-BmC_xiog.d.ts → multi-agent-SASYOrWA.d.ts} +2 -2
  30. package/dist/{multi-agent-coordinator-CjNX4uBD.d.ts → multi-agent-coordinator-CNUJYq7U.d.ts} +2 -2
  31. package/dist/{null-fleet-bus-BNiSlTna.d.ts → null-fleet-bus-DRoJ0uOY.d.ts} +7 -7
  32. package/dist/observability/index.d.ts +2 -2
  33. package/dist/{path-resolver-Bax85amb.d.ts → path-resolver-C5sPVne8.d.ts} +2 -2
  34. package/dist/{permission-Drm7LpPo.d.ts → permission-Ld-i5ugf.d.ts} +13 -1
  35. package/dist/{permission-policy-CU6sqWxF.d.ts → permission-policy-CL-mPufp.d.ts} +14 -7
  36. package/dist/{plan-templates-CLRcurWN.d.ts → plan-templates-ThBHOjaM.d.ts} +4 -4
  37. package/dist/{provider-runner-BikCxGCx.d.ts → provider-runner-DJQa211J.d.ts} +3 -3
  38. package/dist/{retry-policy-Chtlvr5b.d.ts → retry-policy-BfBScewS.d.ts} +1 -1
  39. package/dist/sdd/index.d.ts +9 -9
  40. package/dist/sdd/index.js +1 -1
  41. package/dist/sdd/index.js.map +1 -1
  42. package/dist/security/index.d.ts +3 -3
  43. package/dist/security/index.js +115 -13
  44. package/dist/security/index.js.map +1 -1
  45. package/dist/{selector-BvSPdJj6.d.ts → selector-DxhW7ML3.d.ts} +1 -1
  46. package/dist/{session-reader-BGhzMir4.d.ts → session-reader-q2ThszgG.d.ts} +1 -1
  47. package/dist/storage/index.d.ts +6 -6
  48. package/dist/{system-prompt-dtzV_mLm.d.ts → system-prompt-7LHyBbIf.d.ts} +32 -2
  49. package/dist/{tool-executor-CgU0yWpB.d.ts → tool-executor-CIjpGaRA.d.ts} +5 -4
  50. package/dist/types/index.d.ts +14 -14
  51. package/dist/types/index.js +62 -6
  52. package/dist/types/index.js.map +1 -1
  53. package/dist/utils/index.d.ts +2 -2
  54. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { b as BridgeTransport, B as BridgeMessage, A as AgentBridge, a as AgentBridgeConfig } from './multi-agent-BmC_xiog.js';
1
+ import { b as BridgeTransport, B as BridgeMessage, A as AgentBridge, a as AgentBridgeConfig } from './multi-agent-SASYOrWA.js';
2
2
 
3
3
  /**
4
4
  * In-memory pub/sub transport for agent-to-agent messaging.
@@ -1,6 +1,6 @@
1
- import { c as Agent, f as AgentInput } from './index-CI271MjL.js';
2
- import { E as EventBus } from './events-CbHTS4ZZ.js';
3
- import { n as SubagentConfig, v as TaskSpec, t as SubagentRunner } from './multi-agent-BmC_xiog.js';
1
+ import { c as Agent, f as AgentInput } from './index-Bc6BiP5q.js';
2
+ import { E as EventBus } from './events-k8CHjcrN.js';
3
+ import { n as SubagentConfig, v as TaskSpec, t as SubagentRunner } from './multi-agent-SASYOrWA.js';
4
4
 
5
5
  /**
6
6
  * Single fleet-wide event with subagent attribution. Whatever a child
@@ -1,4 +1,4 @@
1
- import { d as Context } from './context-DtPKqKYV.js';
1
+ import { d as Context } from './context-iFMEO2rN.js';
2
2
 
3
3
  interface CompactRepairReport {
4
4
  removedToolUses: string[];
@@ -1,5 +1,100 @@
1
1
  import { W as WireFamily } from './models-registry-BcYJDKLm.js';
2
- import { a as Capabilities, P as Permission } from './context-DtPKqKYV.js';
2
+ import { a as Capabilities, P as Permission } from './context-iFMEO2rN.js';
3
+
4
+ /**
5
+ * Lifecycle hook types — the pure, serializable contract shared by the config
6
+ * layer, the in-process plugin API, and the shell-hook executor.
7
+ *
8
+ * These types intentionally avoid referencing the live `Context` (which lives
9
+ * in `core/`, a higher layer) so `types/config.ts` can import them without
10
+ * creating a layering cycle. The runtime pieces (`hooks/registry`,
11
+ * `hooks/runner`, `hooks/shell-executor`) translate live run state into the
12
+ * serializable `HookInput` below.
13
+ */
14
+ /** Lifecycle phases a hook can subscribe to. */
15
+ type HookEvent = 'PreToolUse' | 'PostToolUse' | 'UserPromptSubmit' | 'SessionStart' | 'Stop';
16
+ /**
17
+ * Tool-name matcher for `PreToolUse`/`PostToolUse` hooks. A pipe-delimited
18
+ * list of exact tool names, or `*` for all tools. Examples: `"Bash"`,
19
+ * `"edit|write"`, `"*"`. Ignored (treated as `*`) for non-tool events.
20
+ */
21
+ type HookMatcher = string;
22
+ /**
23
+ * The JSON payload handed to a hook. For shell hooks this is serialized to
24
+ * stdin; for in-process hooks it is passed as the sole argument. Kept flat and
25
+ * serializable so both transports see the same shape.
26
+ */
27
+ interface HookInput {
28
+ event: HookEvent;
29
+ /** Present for PreToolUse / PostToolUse. */
30
+ toolName?: string;
31
+ /** Tool arguments (PreToolUse / PostToolUse). */
32
+ toolInput?: unknown;
33
+ /** Tool result preview (PostToolUse only). */
34
+ toolResult?: {
35
+ content: string;
36
+ isError: boolean;
37
+ };
38
+ /** The submitted user text (UserPromptSubmit only). */
39
+ prompt?: string;
40
+ /** Absolute working directory of the session. */
41
+ cwd: string;
42
+ /** Active session id, when known. */
43
+ sessionId?: string;
44
+ }
45
+ /**
46
+ * What a hook returns. Every field is optional — an empty object (or a hook
47
+ * that returns nothing) is a no-op "allow".
48
+ */
49
+ interface HookOutcome {
50
+ /**
51
+ * `block` stops the action (PreToolUse → tool not run; UserPromptSubmit →
52
+ * turn short-circuited). `allow` is the explicit no-op. Omitted = allow.
53
+ */
54
+ decision?: 'block' | 'allow';
55
+ /** Human-readable reason, surfaced to the model when blocking. */
56
+ reason?: string;
57
+ /**
58
+ * PreToolUse only: replacement tool arguments. The executor swaps these in
59
+ * and RE-VALIDATES them against the tool's input schema before running.
60
+ */
61
+ modifiedInput?: Record<string, unknown>;
62
+ /**
63
+ * Extra context to fold back to the model — appended to the tool_result
64
+ * (PostToolUse), the user message (UserPromptSubmit), or the system preamble
65
+ * (SessionStart).
66
+ */
67
+ additionalContext?: string;
68
+ }
69
+ /** An in-process hook function (registered via the plugin API). */
70
+ type InProcessHook = (input: HookInput) => HookOutcome | void | Promise<HookOutcome | void>;
71
+ /**
72
+ * A shell-command hook (declared in `config.hooks`). Claude-compatible: the
73
+ * `HookInput` JSON is written to the command's stdin; a JSON `HookOutcome` may
74
+ * be printed to stdout, and exit code 2 forces `decision: 'block'`.
75
+ */
76
+ interface ShellHook {
77
+ /** Command line run via the platform shell. */
78
+ command: string;
79
+ /** Tool-name matcher (defaults to `*`). */
80
+ matcher?: HookMatcher;
81
+ /** Per-invocation timeout in ms (default 5000). */
82
+ timeoutMs?: number;
83
+ }
84
+ /** A registered hook entry, discriminated by transport. */
85
+ type HookEntry = {
86
+ kind: 'inprocess';
87
+ event: HookEvent;
88
+ matcher: HookMatcher;
89
+ hook: InProcessHook;
90
+ owner?: string;
91
+ } | {
92
+ kind: 'shell';
93
+ event: HookEvent;
94
+ matcher: HookMatcher;
95
+ command: string;
96
+ timeoutMs?: number;
97
+ };
3
98
 
4
99
  type ContextWindowModeId = 'balanced' | 'frugal' | 'deep' | 'archival';
5
100
  type ContextWindowAggressiveOn = 'hard' | 'soft' | 'warn';
@@ -266,6 +361,21 @@ interface Config {
266
361
  context: ContextConfig;
267
362
  tools: ToolsConfig;
268
363
  mcpServers?: Record<string, MCPServerConfig>;
364
+ /**
365
+ * Ordered list of fallback model references tried, in order, when the
366
+ * primary model is overloaded (HTTP 429/529/5xx) and its own retries are
367
+ * exhausted. Each entry is a model reference: a bare model id (same
368
+ * provider), `provider/model`, or `provider model`. The primary is always
369
+ * re-tried first at the start of every user turn. See `createFallbackModelExtension`.
370
+ */
371
+ fallbackModels?: string[];
372
+ /**
373
+ * Lifecycle shell hooks, keyed by event. Each command receives the hook
374
+ * `HookInput` JSON on stdin; a JSON `HookOutcome` on stdout (and exit code 2
375
+ * = block) steers the agent. In-process hooks are registered separately via
376
+ * the plugin API. Disabled entirely under `--bare` / `--no-hooks`.
377
+ */
378
+ hooks?: Partial<Record<HookEvent, ShellHook[]>>;
269
379
  plugins?: (string | PluginConfig)[];
270
380
  log: LogConfig;
271
381
  features: FeaturesConfig;
@@ -341,4 +451,4 @@ interface ConfigStore {
341
451
  watch(cb: (next: Readonly<Config>, prev: Readonly<Config>) => void): () => void;
342
452
  }
343
453
 
344
- export { type AutonomyConfig as A, CONTEXT_WINDOW_MODES as C, DEFAULT_CONTEXT_WINDOW_MODE_ID as D, type FeaturesConfig as F, type LogConfig as L, type MCPServerConfig as M, type PluginConfig as P, type SessionLoggingConfig as S, type ToolsConfig as T, type Config as a, type ConfigLoader as b, type ConfigStore as c, type ContextConfig as d, type ContextWindowAggressiveOn as e, type ContextWindowConfigLike as f, type ContextWindowMode as g, type ContextWindowModeId as h, type ContextWindowPolicy as i, type ContextWindowThresholds as j, type CustomModelDefinition as k, type ModelMatrixEntry as l, type ProviderApiKey as m, type ProviderConfig as n, type SyncCategory as o, type SyncConfig as p, formatContextWindowModeList as q, getContextWindowMode as r, isContextWindowModeId as s, listContextWindowModes as t, resolveContextWindowPolicy as u };
454
+ export { type AutonomyConfig as A, CONTEXT_WINDOW_MODES as C, DEFAULT_CONTEXT_WINDOW_MODE_ID as D, type FeaturesConfig as F, type HookEntry as H, type InProcessHook as I, type LogConfig as L, type MCPServerConfig as M, type PluginConfig as P, type SessionLoggingConfig as S, type ToolsConfig as T, type Config as a, type ConfigLoader as b, type ConfigStore as c, type ContextConfig as d, type ContextWindowAggressiveOn as e, type ContextWindowConfigLike as f, type ContextWindowMode as g, type ContextWindowModeId as h, type ContextWindowPolicy as i, type ContextWindowThresholds as j, type CustomModelDefinition as k, type HookEvent as l, type HookInput as m, type HookMatcher as n, type HookOutcome as o, type ModelMatrixEntry as p, type ProviderApiKey as q, type ProviderConfig as r, type ShellHook as s, type SyncCategory as t, type SyncConfig as u, formatContextWindowModeList as v, getContextWindowMode as w, isContextWindowModeId as x, listContextWindowModes as y, resolveContextWindowPolicy as z };
@@ -265,12 +265,12 @@ declare function isFsError(err: unknown): err is FsError;
265
265
 
266
266
  type Permission = 'auto' | 'confirm' | 'deny';
267
267
  /**
268
- * Risk tier for tools in YOLO mode. Even in YOLO, tools classified as
269
- * `destructive` still prompt for confirmation unless `--force-all-yolo`
270
- * is set.
268
+ * Risk tier for tools in YOLO mode. YOLO auto-approves normal project work,
269
+ * but calls classified as clearly destructive still prompt unless
270
+ * `--yolo-destructive` is set (`--force-all-yolo` is a deprecated alias).
271
271
  *
272
272
  * - `safe` — read-only, no side effects (read, glob, grep, etc.)
273
- * - `standard` — non-destructive writes and mutations (write, edit, bash with safe commands)
273
+ * - `standard` — non-destructive writes and mutations (write, edit, safe shell commands)
274
274
  * - `destructive` — irreversible or broadside effects (recursive deletes, db drops, etc.)
275
275
  */
276
276
  type RiskTier = 'safe' | 'standard' | 'destructive';
@@ -324,10 +324,10 @@ interface Tool<I = unknown, O = unknown> {
324
324
  permission: Permission;
325
325
  mutating: boolean;
326
326
  /**
327
- * Risk tier for selective YOLO gating. When YOLO is active, `destructive`
328
- * tools still emit `confirm` unless `forceAllYolo` is set. Defaults to
329
- * `standard` when omitted — callers should always check `riskTier` after
330
- * the basic permission decision.
327
+ * Risk tier for selective YOLO gating. When YOLO is active, clearly
328
+ * destructive calls still emit `confirm` unless the destructive override is
329
+ * set. Defaults to `standard` when omitted — callers should always check
330
+ * `riskTier` after the basic permission decision.
331
331
  */
332
332
  riskTier?: RiskTier;
333
333
  /**
@@ -1,21 +1,21 @@
1
- export { B as BrainArbiter, a as BrainDecision, b as BrainDecisionOption, c as BrainDecisionQueue, d as BrainDecisionRequest, e as BrainDecisionSource, f as BrainFallback, g as BrainRisk, D as DefaultBrainArbiter, h as DefaultBrainArbiterOptions, H as HumanEscalatingBrainArbiter, O as ObservableBrainArbiter, l as formatHumanPrompt } from '../events-CbHTS4ZZ.js';
2
- 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, h as BugFinding, C as CollabBudgetConfig, i as CollabBudgetOverrides, j as CollabBudgetWarningPayload, k as CollabDebugReport, l as CollabSession, m as CollabSessionOptions, n as CreateDelegateToolOptions, o as CriticConcern, p as CriticEvaluation, D as DEFAULT_DIRECTOR_PREAMBLE, q as DEFAULT_SUBAGENT_BASELINE, r as DelegateHost, s as Director, t as DirectorAlert, u as DirectorAlertLevel, v as DirectorCancelCollabPayload, 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, N as LargeAnswerStore, O as NULL_FLEET_BUS, R as REFACTOR_PLANNER_AGENT, P as RefactorPhase, Q as RefactorPlan, S as SECURITY_SCANNER_AGENT, T as SharedFileEntry, U as SharedFileSnapshot, V as SubagentPromptParts, W as applyRosterBudget, X as attachAutoExtend, Y as composeDirectorPrompt, Z as composeSubagentPrompt, _ as createDelegateTool, $ as getAgentDefinition, a0 as makeAskResultTool, 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, ae as makeWorkCompleteTool, af as rosterSummaryFromConfigs } from '../null-fleet-bus-BNiSlTna.js';
3
- import { b as AgentDefinition } from '../multi-agent-coordinator-CjNX4uBD.js';
4
- export { T as AGENT_TOOL_PRESETS, A as AgentBudgetTier, a as AgentCapability, c as AgentPhase, D as DEFAULT_DISPATCH_ROLE, d as DefaultMultiAgentCoordinator, e as DispatchCandidate, f as DispatchClassifier, g as DispatchMethod, h as DispatchOptions, i as DispatchResult, H as HEAVY_BUDGET, L as LIGHT_BUDGET, M as MEDIUM_BUDGET, j as MultiAgentCoordinatorOptions, k as dispatchAgent, m as makeLLMClassifier, s as scoreAgents } from '../multi-agent-coordinator-CjNX4uBD.js';
5
- export { c as BudgetExceededError, d as BudgetKind, e as BudgetLimits, f as BudgetNegotiationMode, g as BudgetThresholdDecision, h as BudgetThresholdHandler, i as BudgetThresholdSignal, j as BudgetUsage, m as SubagentBudget } from '../multi-agent-BmC_xiog.js';
6
- export { A as AgentFactory, a as AgentFactoryResult, b as AgentRunnerOptions, F as FleetBus, c as FleetEvent, d as FleetHandler, e as FleetUsage, f as FleetUsageAggregator, S as SubagentUsageSnapshot, m as makeAgentSubagentRunner } from '../agent-subagent-runner-By7jruZ_.js';
7
- export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from '../agent-bridge-Dnhw4tnM.js';
8
- import '../context-DtPKqKYV.js';
1
+ export { B as BrainArbiter, a as BrainDecision, b as BrainDecisionOption, c as BrainDecisionQueue, d as BrainDecisionRequest, e as BrainDecisionSource, f as BrainFallback, g as BrainRisk, D as DefaultBrainArbiter, h as DefaultBrainArbiterOptions, H as HumanEscalatingBrainArbiter, O as ObservableBrainArbiter, l as formatHumanPrompt } from '../events-k8CHjcrN.js';
2
+ 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, h as BugFinding, C as CollabBudgetConfig, i as CollabBudgetOverrides, j as CollabBudgetWarningPayload, k as CollabDebugReport, l as CollabSession, m as CollabSessionOptions, n as CreateDelegateToolOptions, o as CriticConcern, p as CriticEvaluation, D as DEFAULT_DIRECTOR_PREAMBLE, q as DEFAULT_SUBAGENT_BASELINE, r as DelegateHost, s as Director, t as DirectorAlert, u as DirectorAlertLevel, v as DirectorCancelCollabPayload, 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, N as LargeAnswerStore, O as NULL_FLEET_BUS, R as REFACTOR_PLANNER_AGENT, P as RefactorPhase, Q as RefactorPlan, S as SECURITY_SCANNER_AGENT, T as SharedFileEntry, U as SharedFileSnapshot, V as SubagentPromptParts, W as applyRosterBudget, X as attachAutoExtend, Y as composeDirectorPrompt, Z as composeSubagentPrompt, _ as createDelegateTool, $ as getAgentDefinition, a0 as makeAskResultTool, 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, ae as makeWorkCompleteTool, af as rosterSummaryFromConfigs } from '../null-fleet-bus-DRoJ0uOY.js';
3
+ import { b as AgentDefinition } from '../multi-agent-coordinator-CNUJYq7U.js';
4
+ export { T as AGENT_TOOL_PRESETS, A as AgentBudgetTier, a as AgentCapability, c as AgentPhase, D as DEFAULT_DISPATCH_ROLE, d as DefaultMultiAgentCoordinator, e as DispatchCandidate, f as DispatchClassifier, g as DispatchMethod, h as DispatchOptions, i as DispatchResult, H as HEAVY_BUDGET, L as LIGHT_BUDGET, M as MEDIUM_BUDGET, j as MultiAgentCoordinatorOptions, k as dispatchAgent, m as makeLLMClassifier, s as scoreAgents } from '../multi-agent-coordinator-CNUJYq7U.js';
5
+ export { c as BudgetExceededError, d as BudgetKind, e as BudgetLimits, f as BudgetNegotiationMode, g as BudgetThresholdDecision, h as BudgetThresholdHandler, i as BudgetThresholdSignal, j as BudgetUsage, m as SubagentBudget } from '../multi-agent-SASYOrWA.js';
6
+ export { A as AgentFactory, a as AgentFactoryResult, b as AgentRunnerOptions, F as FleetBus, c as FleetEvent, d as FleetHandler, e as FleetUsage, f as FleetUsageAggregator, S as SubagentUsageSnapshot, m as makeAgentSubagentRunner } from '../agent-subagent-runner-Zc3f37Sg.js';
7
+ export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from '../agent-bridge-B5rxWrg3.js';
8
+ import '../context-iFMEO2rN.js';
9
9
  import 'node:events';
10
10
  import '../director-state-BmYi3DGA.js';
11
- import '../config-bht0txXS.js';
11
+ import '../config-BdDuaZmB.js';
12
12
  import '../models-registry-BcYJDKLm.js';
13
- import '../index-CI271MjL.js';
13
+ import '../index-Bc6BiP5q.js';
14
14
  import '../logger-DDd5C--Z.js';
15
- import '../system-prompt-dtzV_mLm.js';
15
+ import '../system-prompt-7LHyBbIf.js';
16
16
  import '../observability-BhnVLBLS.js';
17
17
  import '../secret-scrubber-3MHDDAtm.js';
18
- import '../permission-Drm7LpPo.js';
18
+ import '../permission-Ld-i5ugf.js';
19
19
 
20
20
  /** Phase 1 · Discovery — map the territory before any work begins. */
21
21
  declare const DISCOVERY_AGENTS: AgentDefinition[];
@@ -1,41 +1,41 @@
1
1
  export { D as DefaultLogger, a as DefaultLoggerOptions } from '../logger-bOzkF5LL.js';
2
- 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, M as MemoryStoreOptions, j as MigrationContext, k as MigrationResult, P as PersistedQueueItem, l as PlanFile, m as PlanItem, n as PlanTemplate, Q as QueueStore, R as RecoveryLock, o as RecoveryLockOptions, S as SessionAnalyzer, p as SessionStoreOptions, T as TodosCheckpointFile, q as addPlanItem, r as attachPlanCheckpoint, s as attachTodosCheckpoint, t as clearPlan, u as deriveTodosFromPlanItem, v as emptyPlan, w as formatPlan, x as formatPlanTemplates, y as getPlanTemplate, z as listPlanTemplates, B as loadPlan, E as loadTodosCheckpoint, F as removePlanItem, G as runConfigMigrations, H as savePlan, I as saveTodosCheckpoint, J as setPlanItemStatus } from '../plan-templates-CLRcurWN.js';
3
- export { D as DefaultSessionReader } from '../session-reader-BGhzMir4.js';
4
- export { A as AuditLevel, a as SessionEventBridge, b as SessionEventBridgeOptions, c as SessionSamplingOptions, T as ToolProgressSamplingOptions, e as createSessionEventBridge, r as resolveAuditLevel, i as resolveSessionLoggingConfig } from '../goal-store-DwcTDDiX.js';
2
+ 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, M as MemoryStoreOptions, j as MigrationContext, k as MigrationResult, P as PersistedQueueItem, l as PlanFile, m as PlanItem, n as PlanTemplate, Q as QueueStore, R as RecoveryLock, o as RecoveryLockOptions, S as SessionAnalyzer, p as SessionStoreOptions, T as TodosCheckpointFile, q as addPlanItem, r as attachPlanCheckpoint, s as attachTodosCheckpoint, t as clearPlan, u as deriveTodosFromPlanItem, v as emptyPlan, w as formatPlan, x as formatPlanTemplates, y as getPlanTemplate, z as listPlanTemplates, B as loadPlan, E as loadTodosCheckpoint, F as removePlanItem, G as runConfigMigrations, H as savePlan, I as saveTodosCheckpoint, J as setPlanItemStatus } from '../plan-templates-ThBHOjaM.js';
3
+ export { D as DefaultSessionReader } from '../session-reader-q2ThszgG.js';
4
+ export { A as AuditLevel, a as SessionEventBridge, b as SessionEventBridgeOptions, c as SessionSamplingOptions, T as ToolProgressSamplingOptions, e as createSessionEventBridge, r as resolveAuditLevel, i as resolveSessionLoggingConfig } from '../goal-store-iHltMi5n.js';
5
5
  export { D as DirectorStateCheckpoint, a as DirectorStateSnapshot, b as DirectorSubagentState, c as DirectorTaskState, l as loadDirectorState } from '../director-state-BmYi3DGA.js';
6
6
  export { D as DefaultSecretScrubber, a as DefaultSecretVault, S as SecretVaultOptions, d as decryptConfigSecrets, e as encryptConfigSecrets, m as migratePlaintextSecrets, r as rewriteConfigEncrypted } from '../secret-scrubber-7rSC_emZ.js';
7
- export { A as AutoApprovePermissionPolicy, D as DefaultPermissionPolicy, P as PermissionPolicyOptions } from '../permission-policy-CU6sqWxF.js';
8
- export { C as CompactorOptions, a as DefaultErrorHandler, b as DefaultRetryPolicy, H as HybridCompactor, T as ToolExecutor } from '../tool-executor-CgU0yWpB.js';
7
+ export { A as AutoApprovePermissionPolicy, D as DefaultPermissionPolicy, P as PermissionPolicyOptions } from '../permission-policy-CL-mPufp.js';
8
+ export { C as CompactorOptions, a as DefaultErrorHandler, b as DefaultRetryPolicy, H as HybridCompactor, T as ToolExecutor } from '../tool-executor-CIjpGaRA.js';
9
9
  export { AutoCompactionMiddleware, AutonomousRunner, AutonomousRunnerOptions, AutonomyPromptContributorOptions, DefaultSkillLoader, DoneCheckResult, DoneConditionChecker, EternalAutonomyEngine, EternalAutonomyOptions, EternalEngineState, IntelligentCompactor, IntelligentCompactorOptions, IterationStage, ParallelEngineState, ParallelEternalEngine, ParallelEternalOptions, ParallelIterationStage, SelectiveCompactor, SelectiveCompactorOptions, SkillLoaderOptions, buildGoalPreamble, makeAutonomyPromptContributor } from '../execution/index.js';
10
- import { P as ProviderRunner, R as RunProviderOptions } from '../provider-runner-BikCxGCx.js';
11
- import { q as Response } from '../context-DtPKqKYV.js';
12
- export { 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, 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-BNiSlTna.js';
13
- export { A as AgentBudgetTier, a as AgentCapability, b as AgentDefinition, c as AgentPhase, D as DEFAULT_DISPATCH_ROLE, d as DefaultMultiAgentCoordinator, e as DispatchCandidate, f 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-CjNX4uBD.js';
14
- export { c as BudgetExceededError, d as BudgetKind, e as BudgetLimits, j as BudgetUsage, m as SubagentBudget } from '../multi-agent-BmC_xiog.js';
15
- export { A as AgentFactory, a as AgentFactoryResult, b as AgentRunnerOptions, F as FleetBus, c as FleetEvent, d as FleetHandler, e as FleetUsage, f as FleetUsageAggregator, S as SubagentUsageSnapshot, m as makeAgentSubagentRunner } from '../agent-subagent-runner-By7jruZ_.js';
16
- export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from '../agent-bridge-Dnhw4tnM.js';
10
+ import { P as ProviderRunner, R as RunProviderOptions } from '../provider-runner-DJQa211J.js';
11
+ import { q as Response } from '../context-iFMEO2rN.js';
12
+ export { 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, 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-DRoJ0uOY.js';
13
+ export { A as AgentBudgetTier, a as AgentCapability, b as AgentDefinition, c as AgentPhase, D as DEFAULT_DISPATCH_ROLE, d as DefaultMultiAgentCoordinator, e as DispatchCandidate, f 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-CNUJYq7U.js';
14
+ export { c as BudgetExceededError, d as BudgetKind, e as BudgetLimits, j as BudgetUsage, m as SubagentBudget } from '../multi-agent-SASYOrWA.js';
15
+ export { A as AgentFactory, a as AgentFactoryResult, b as AgentRunnerOptions, F as FleetBus, c as FleetEvent, d as FleetHandler, e as FleetUsage, f as FleetUsageAggregator, S as SubagentUsageSnapshot, m as makeAgentSubagentRunner } from '../agent-subagent-runner-Zc3f37Sg.js';
16
+ export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from '../agent-bridge-B5rxWrg3.js';
17
17
  export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from '../models-registry-Cuq1C8V9.js';
18
18
  export { DefaultModeStore, LLMSelector, LLMSelectorOptions, ModeLoaderOptions, loadProjectModes, loadUserModes } from '../models/index.js';
19
19
  export { AISpecBuilder, AISpecBuilderOptions, AISpecPhase, AISpecSession, AutoExecutor, AutoExecutorOptions, BottleneckTask, CollectedAnswer, CriticalPathAnalysis, DefaultTaskStore, ExecutionSummary, GeneratedTask, RunResult, 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, TaskStore, TaskTracker, TaskTrackerOptions, TaskTransition, WaveResult, analyzeCriticalPath, createAutoExecutor, getTemplate, listTemplates, renderProgress, renderSpecAnalysis, renderTaskGraph, renderTaskList, templateToMarkdown } from '../sdd/index.js';
20
20
  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';
21
- 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-DE6gzBry.js';
21
+ 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-CwqQDMYy.js';
22
22
  export { D as DEFAULT_AUTONOMY_CONFIG, a as DEFAULT_CONTEXT_CONFIG, c as DEFAULT_TOOLS_CONFIG } from '../default-config-DEXI4jsl.js';
23
23
  import '../logger-DDd5C--Z.js';
24
- import '../events-CbHTS4ZZ.js';
24
+ import '../events-k8CHjcrN.js';
25
25
  import '../secret-scrubber-3MHDDAtm.js';
26
26
  import '../memory-CEXuo7sz.js';
27
27
  import '../wstack-paths-eMXnY1_X.js';
28
- import '../config-bht0txXS.js';
28
+ import '../config-BdDuaZmB.js';
29
29
  import '../models-registry-BcYJDKLm.js';
30
30
  import '../secret-vault-DoISxaKO.js';
31
31
  import '../input-reader-E-ffP2ee.js';
32
- import '../permission-Drm7LpPo.js';
33
- import '../compactor-Duhsf0ge.js';
34
- import '../retry-policy-Chtlvr5b.js';
35
- import '../index-CI271MjL.js';
36
- import '../system-prompt-dtzV_mLm.js';
32
+ import '../permission-Ld-i5ugf.js';
33
+ import '../compactor-0vjZ8KTk.js';
34
+ import '../retry-policy-BfBScewS.js';
35
+ import '../index-Bc6BiP5q.js';
36
+ import '../system-prompt-7LHyBbIf.js';
37
37
  import '../observability-BhnVLBLS.js';
38
- import '../selector-BvSPdJj6.js';
38
+ import '../selector-DxhW7ML3.js';
39
39
  import '../skill-CxuWrsKK.js';
40
40
  import 'node:events';
41
41
  import '../mode-CV077NjV.js';