@wrongstack/core 0.7.5 → 0.7.7

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 (36) hide show
  1. package/dist/agent-subagent-runner-B2zguWzh.d.ts +174 -0
  2. package/dist/coordination/index.d.ts +6 -5
  3. package/dist/defaults/index.d.ts +10 -9
  4. package/dist/defaults/index.js +324 -38
  5. package/dist/defaults/index.js.map +1 -1
  6. package/dist/execution/index.d.ts +6 -5
  7. package/dist/execution/index.js +11 -9
  8. package/dist/execution/index.js.map +1 -1
  9. package/dist/extension/index.d.ts +1 -1
  10. package/dist/{goal-store-HHgaq5ue.d.ts → goal-store-C7jcumEh.d.ts} +2 -1
  11. package/dist/{index-BUHs7xJ9.d.ts → index-BtNRyJft.d.ts} +10 -0
  12. package/dist/index.d.ts +52 -11
  13. package/dist/index.js +404 -57
  14. package/dist/index.js.map +1 -1
  15. package/dist/{multi-agent-coordinator-D8PLzfz6.d.ts → multi-agent-coordinator-3Ypfg-hr.d.ts} +2 -173
  16. package/dist/{null-fleet-bus-Bkk3gafb.d.ts → null-fleet-bus-BZUrXVcd.d.ts} +2 -1
  17. package/dist/permission-policy-D5Gj1o2K.d.ts +111 -0
  18. package/dist/{plan-templates-DWbEIJvV.d.ts → plan-templates-C-IOLJ8Q.d.ts} +1 -1
  19. package/dist/sdd/index.d.ts +173 -2
  20. package/dist/sdd/index.js +3619 -1
  21. package/dist/sdd/index.js.map +1 -1
  22. package/dist/security/index.d.ts +6 -109
  23. package/dist/security/index.js +35 -11
  24. package/dist/security/index.js.map +1 -1
  25. package/dist/storage/index.d.ts +3 -3
  26. package/dist/storage/index.js +5 -4
  27. package/dist/storage/index.js.map +1 -1
  28. package/dist/{tool-executor-Tutu4ePV.d.ts → tool-executor-CSwXjifK.d.ts} +1 -1
  29. package/dist/types/index.d.ts +2 -2
  30. package/dist/types/index.js +25 -10
  31. package/dist/types/index.js.map +1 -1
  32. package/dist/utils/index.d.ts +1 -1
  33. package/dist/utils/index.js +6 -1
  34. package/dist/utils/index.js.map +1 -1
  35. package/dist/{wstack-paths-BGu2INTm.d.ts → wstack-paths-gCrJ631C.d.ts} +10 -0
  36. package/package.json +1 -1
@@ -0,0 +1,174 @@
1
+ import { c as Agent, f as AgentInput } from './index-BtNRyJft.js';
2
+ import { E as EventBus } from './events-D4pGukpI.js';
3
+ import { m as SubagentConfig, u as TaskSpec, s as SubagentRunner } from './multi-agent-7OK4pEKW.js';
4
+
5
+ /**
6
+ * Single fleet-wide event with subagent attribution. Whatever a child
7
+ * agent emits on its own EventBus gets re-published here, prefixed with
8
+ * `subagentId` so a single subscriber can multiplex across the fleet.
9
+ *
10
+ * The director uses `FleetBus.filter('tool.executed', …)` to see every
11
+ * tool call across the fleet; the TUI uses
12
+ * `FleetBus.subscribe(id, handler)` to render a per-subagent panel.
13
+ */
14
+ interface FleetEvent {
15
+ subagentId: string;
16
+ taskId?: string;
17
+ ts: number;
18
+ type: string;
19
+ payload: unknown;
20
+ }
21
+ type FleetHandler = (event: FleetEvent) => void;
22
+ /**
23
+ * Fan-in for per-subagent EventBuses. Each subagent's bus is plugged in
24
+ * via `attach()`; the FleetBus re-emits every event with subagent
25
+ * attribution. Detachment is automatic via the returned disposer — call
26
+ * it when a subagent terminates so we don't leak listeners.
27
+ *
28
+ * The bus exposes two subscription modes: by `subagentId` (everything
29
+ * from one child) and by `type` (one event-type across the fleet). They
30
+ * compose — if you need a per-subagent + per-type slice, subscribe by
31
+ * type and filter on `event.subagentId` in your handler.
32
+ */
33
+ declare class FleetBus {
34
+ private readonly byId;
35
+ private readonly byType;
36
+ private readonly any;
37
+ /**
38
+ * Hook a subagent's EventBus into the fleet. EventBus is strongly
39
+ * typed and doesn't expose an `onAny` hook, so we subscribe to the
40
+ * canonical set of event types a subagent emits during a run. New
41
+ * event types added to the kernel must be added here too — but the
42
+ * cost is a tiny single line per type, and the explicit list keeps
43
+ * the wire format clear.
44
+ *
45
+ * Returns a disposer that detaches every subscription; call on
46
+ * subagent teardown so the listeners don't outlive the run.
47
+ */
48
+ attach(subagentId: string, bus: EventBus, taskId?: string): () => void;
49
+ /** Subscribe to every event from one subagent. */
50
+ subscribe(subagentId: string, handler: FleetHandler): () => void;
51
+ /** Subscribe to one event type across all subagents. */
52
+ filter(type: string, handler: FleetHandler): () => void;
53
+ /** Subscribe to literally everything. The fleet roll-up uses this. */
54
+ onAny(handler: FleetHandler): () => void;
55
+ emit(event: FleetEvent): void;
56
+ }
57
+ /**
58
+ * Roll-up of token usage + cost across an entire director run. The
59
+ * director's `fleet_status` tool returns this so the model can reason
60
+ * about budget in its next turn ("the researcher already burned $0.40,
61
+ * lean on summaries for the next task").
62
+ */
63
+ interface FleetUsage {
64
+ total: {
65
+ input: number;
66
+ output: number;
67
+ cacheRead: number;
68
+ cacheWrite: number;
69
+ cost: number;
70
+ };
71
+ perSubagent: Record<string, SubagentUsageSnapshot>;
72
+ }
73
+ interface SubagentUsageSnapshot {
74
+ subagentId: string;
75
+ provider?: string;
76
+ model?: string;
77
+ input: number;
78
+ output: number;
79
+ cacheRead: number;
80
+ cacheWrite: number;
81
+ cost: number;
82
+ toolCalls: number;
83
+ iterations: number;
84
+ startedAt: number;
85
+ lastEventAt: number;
86
+ }
87
+ /**
88
+ * Aggregates provider.response + tool.executed events from the FleetBus
89
+ * into a live `FleetUsage` snapshot. Costs are computed by the caller
90
+ * via a `priceLookup(subagentId)` so we don't bake provider-pricing
91
+ * coupling into core; the CLI/tests supply a function that resolves
92
+ * each subagent's per-token rates from the models registry.
93
+ */
94
+ declare class FleetUsageAggregator {
95
+ private readonly bus;
96
+ private readonly priceLookup?;
97
+ private readonly metaLookup?;
98
+ private readonly perSubagent;
99
+ private readonly total;
100
+ constructor(bus: FleetBus, priceLookup?: ((subagentId: string) => {
101
+ input?: number;
102
+ output?: number;
103
+ cacheRead?: number;
104
+ cacheWrite?: number;
105
+ } | undefined) | undefined, metaLookup?: ((subagentId: string) => {
106
+ provider?: string;
107
+ model?: string;
108
+ } | undefined) | undefined);
109
+ /** Live snapshot — safe to call from a tool's execute() body. */
110
+ snapshot(): FleetUsage;
111
+ private ensure;
112
+ private onProviderResponse;
113
+ private onToolExecuted;
114
+ private onIterationStarted;
115
+ }
116
+
117
+ /**
118
+ * Caller-supplied factory that builds an isolated `Agent` for a subagent.
119
+ * The factory MUST construct a fresh `Context` per call — sharing context
120
+ * between subagents defeats isolation. Each Agent should also use either
121
+ * its own `EventBus` or a forwarded view, so per-subagent metrics can be
122
+ * attributed correctly.
123
+ */
124
+ type AgentFactory = (config: SubagentConfig) => Promise<AgentFactoryResult>;
125
+ interface AgentFactoryResult {
126
+ agent: Agent;
127
+ /** Event bus the factory wired to this agent — required for budget hookup. */
128
+ events: EventBus;
129
+ /**
130
+ * Optional cleanup hook invoked in the runner's `finally` block once
131
+ * the task ends (success, failure, abort — same exit path). Factories
132
+ * that own resources scoped to a single task (per-subagent JSONL
133
+ * writers, transient providers, throwaway containers) implement this
134
+ * to close them deterministically instead of relying on GC. Errors
135
+ * thrown here are swallowed so a flaky cleanup can't mask the task's
136
+ * real result.
137
+ */
138
+ dispose?: () => Promise<void> | void;
139
+ }
140
+ interface AgentRunnerOptions {
141
+ factory: AgentFactory;
142
+ /**
143
+ * Format a TaskSpec into the user input the agent will receive. Defaults
144
+ * to `task.description ?? ''`. Override when subagents expect structured
145
+ * input (e.g. JSON contracts, role-prefixed prompts).
146
+ */
147
+ formatTaskInput?: (task: TaskSpec, config: SubagentConfig) => AgentInput;
148
+ /**
149
+ * When set, the runner attaches the subagent's EventBus to this FleetBus
150
+ * on task start and detaches it when the task finishes. This is the
151
+ * injection seam that lets the TUI fleet panel observe subagent activity
152
+ * live — without it, FleetBus stays empty.
153
+ */
154
+ fleetBus?: FleetBus;
155
+ }
156
+ /**
157
+ * Builds a `SubagentRunner` that drives a real `Agent` per task while honoring
158
+ * the coordinator's budget and abort signal. This is the production adapter —
159
+ * the coordinator's `runner` option in CLI/TUI assemblies points here.
160
+ *
161
+ * Lifecycle per task:
162
+ * 1. factory(config) → fresh Agent + EventBus.
163
+ * 2. Subscribe to events to feed the budget (tool calls, token usage).
164
+ * 3. Call agent.run(input, { signal }) — the coordinator's signal cancels.
165
+ * 4. Map RunResult.status onto a `SubagentRunOutcome` or throw on failure.
166
+ * 5. Unsubscribe and let the factory's resources be GC'd.
167
+ *
168
+ * The budget is checked synchronously from event handlers — a runaway agent
169
+ * that crosses its tool-call limit triggers `BudgetExceededError`, which the
170
+ * coordinator surfaces as `status: 'failed'` on the task result.
171
+ */
172
+ declare function makeAgentSubagentRunner(opts: AgentRunnerOptions): SubagentRunner;
173
+
174
+ export { type AgentFactory as A, FleetBus as F, type SubagentUsageSnapshot as S, type AgentFactoryResult as a, type AgentRunnerOptions as b, type FleetEvent as c, type FleetHandler as d, type FleetUsage as e, FleetUsageAggregator as f, makeAgentSubagentRunner as m };
@@ -1,19 +1,20 @@
1
- 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, C as CreateDelegateToolOptions, D as DEFAULT_DIRECTOR_PREAMBLE, h as DEFAULT_SUBAGENT_BASELINE, i as DelegateHost, j as Director, k as DirectorPromptParts, l as DirectorSessionFactory, m as DirectorSessionFactoryOptions, F as FLEET_ROSTER, n as FLEET_ROSTER_BUDGETS, o as FLEET_ROSTER_WITHACP, p as FleetCostCapError, q as FleetManager, r as FleetManagerOptions, s as FleetRosterBudget, t as FleetSpawnBudgetError, I as ICoordinator, u as IFleetManager, N 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, E as createDelegateTool, G as getAgentDefinition, H as makeDirectorSessionFactory, J as rosterSummaryFromConfigs } from '../null-fleet-bus-Bkk3gafb.js';
2
- import { b as AgentDefinition } from '../multi-agent-coordinator-D8PLzfz6.js';
3
- export { T as AGENT_TOOL_PRESETS, A as AgentBudgetTier, a as AgentCapability, c as AgentFactory, d as AgentFactoryResult, e as AgentPhase, f as AgentRunnerOptions, D as DEFAULT_DISPATCH_ROLE, g as DefaultMultiAgentCoordinator, h as DispatchCandidate, i as DispatchClassifier, j as DispatchMethod, k as DispatchOptions, l as DispatchResult, F as FleetBus, m as FleetEvent, n as FleetHandler, o as FleetUsage, p as FleetUsageAggregator, H as HEAVY_BUDGET, L as LIGHT_BUDGET, M as MEDIUM_BUDGET, q as MultiAgentCoordinatorOptions, S as SubagentUsageSnapshot, r as dispatchAgent, s as makeAgentSubagentRunner, t as makeLLMClassifier, u as scoreAgents } from '../multi-agent-coordinator-D8PLzfz6.js';
1
+ 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, C as CreateDelegateToolOptions, D as DEFAULT_DIRECTOR_PREAMBLE, h as DEFAULT_SUBAGENT_BASELINE, i as DelegateHost, j as Director, k as DirectorPromptParts, l as DirectorSessionFactory, m as DirectorSessionFactoryOptions, F as FLEET_ROSTER, n as FLEET_ROSTER_BUDGETS, o as FLEET_ROSTER_WITHACP, p as FleetCostCapError, q as FleetManager, r as FleetManagerOptions, s as FleetRosterBudget, t as FleetSpawnBudgetError, I as ICoordinator, u as IFleetManager, N 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, E as createDelegateTool, G as getAgentDefinition, H as makeDirectorSessionFactory, J as rosterSummaryFromConfigs } from '../null-fleet-bus-BZUrXVcd.js';
2
+ import { b as AgentDefinition } from '../multi-agent-coordinator-3Ypfg-hr.js';
3
+ 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-3Ypfg-hr.js';
4
4
  export { c as BudgetExceededError, d as BudgetKind, e as BudgetLimits, f as BudgetThresholdDecision, g as BudgetThresholdHandler, h as BudgetThresholdSignal, i as BudgetUsage, l as SubagentBudget } from '../multi-agent-7OK4pEKW.js';
5
+ 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-B2zguWzh.js';
5
6
  export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from '../agent-bridge-hXRN-GO_.js';
6
7
  import '../context-z2x5gv_V.js';
7
8
  import '../director-state-BmYi3DGA.js';
8
9
  import '../events-D4pGukpI.js';
9
- import '../index-BUHs7xJ9.js';
10
+ import 'node:events';
11
+ import '../index-BtNRyJft.js';
10
12
  import '../logger-DDd5C--Z.js';
11
13
  import '../system-prompt-CWA6ml-d.js';
12
14
  import '../observability-BhnVLBLS.js';
13
15
  import '../secret-scrubber-nI8qjaqW.js';
14
16
  import '../config-Bi4Q0fnz.js';
15
17
  import '../models-registry-BcYJDKLm.js';
16
- import 'node:events';
17
18
 
18
19
  /** Phase 1 · Discovery — map the territory before any work begins. */
19
20
  declare const DISCOVERY_AGENTS: AgentDefinition[];
@@ -1,27 +1,28 @@
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-DWbEIJvV.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-C-IOLJ8Q.js';
3
3
  export { D as DefaultSessionReader } from '../session-reader-DsadjyF9.js';
4
4
  export { D as DirectorStateCheckpoint, a as DirectorStateSnapshot, b as DirectorSubagentState, c as DirectorTaskState, l as loadDirectorState } from '../director-state-BmYi3DGA.js';
5
5
  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-DXkhwuka.js';
6
- export { AutoApprovePermissionPolicy, DefaultPermissionPolicy, PermissionPolicyOptions } from '../security/index.js';
7
- export { C as CompactorOptions, a as DefaultErrorHandler, b as DefaultRetryPolicy, H as HybridCompactor, T as ToolExecutor } from '../tool-executor-Tutu4ePV.js';
6
+ export { A as AutoApprovePermissionPolicy, D as DefaultPermissionPolicy, P as PermissionPolicyOptions } from '../permission-policy-D5Gj1o2K.js';
7
+ export { C as CompactorOptions, a as DefaultErrorHandler, b as DefaultRetryPolicy, H as HybridCompactor, T as ToolExecutor } from '../tool-executor-CSwXjifK.js';
8
8
  export { AutoCompactionMiddleware, AutonomousRunner, AutonomousRunnerOptions, AutonomyPromptContributorOptions, DefaultSkillLoader, DoneCheckResult, DoneConditionChecker, EternalAutonomyEngine, EternalAutonomyOptions, EternalEngineState, IntelligentCompactor, IntelligentCompactorOptions, ParallelEngineState, ParallelEternalEngine, ParallelEternalOptions, SelectiveCompactor, SelectiveCompactorOptions, SkillLoaderOptions, buildGoalPreamble, makeAutonomyPromptContributor } from '../execution/index.js';
9
9
  import { P as ProviderRunner, R as RunProviderOptions } from '../provider-runner-iST8U3ni.js';
10
10
  import { q as Response } from '../context-z2x5gv_V.js';
11
- 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, C as CreateDelegateToolOptions, D as DEFAULT_DIRECTOR_PREAMBLE, h as DEFAULT_SUBAGENT_BASELINE, i as DelegateHost, j as Director, k as DirectorPromptParts, l as DirectorSessionFactory, m as DirectorSessionFactoryOptions, F as FLEET_ROSTER, n as FLEET_ROSTER_BUDGETS, s as FleetRosterBudget, t as FleetSpawnBudgetError, I as ICoordinator, u as IFleetManager, N 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, E as createDelegateTool, G as getAgentDefinition, H as makeDirectorSessionFactory, J as rosterSummaryFromConfigs } from '../null-fleet-bus-Bkk3gafb.js';
12
- export { A as AgentBudgetTier, a as AgentCapability, b as AgentDefinition, c as AgentFactory, d as AgentFactoryResult, e as AgentPhase, f as AgentRunnerOptions, D as DEFAULT_DISPATCH_ROLE, g as DefaultMultiAgentCoordinator, h as DispatchCandidate, i as DispatchClassifier, j as DispatchMethod, k as DispatchOptions, l as DispatchResult, F as FleetBus, m as FleetEvent, n as FleetHandler, o as FleetUsage, p as FleetUsageAggregator, q as MultiAgentCoordinatorOptions, S as SubagentUsageSnapshot, r as dispatchAgent, s as makeAgentSubagentRunner, t as makeLLMClassifier, u as scoreAgents } from '../multi-agent-coordinator-D8PLzfz6.js';
11
+ 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, C as CreateDelegateToolOptions, D as DEFAULT_DIRECTOR_PREAMBLE, h as DEFAULT_SUBAGENT_BASELINE, i as DelegateHost, j as Director, k as DirectorPromptParts, l as DirectorSessionFactory, m as DirectorSessionFactoryOptions, F as FLEET_ROSTER, n as FLEET_ROSTER_BUDGETS, s as FleetRosterBudget, t as FleetSpawnBudgetError, I as ICoordinator, u as IFleetManager, N 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, E as createDelegateTool, G as getAgentDefinition, H as makeDirectorSessionFactory, J as rosterSummaryFromConfigs } from '../null-fleet-bus-BZUrXVcd.js';
12
+ 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-3Ypfg-hr.js';
13
13
  export { c as BudgetExceededError, d as BudgetKind, e as BudgetLimits, i as BudgetUsage, l as SubagentBudget } from '../multi-agent-7OK4pEKW.js';
14
+ 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-B2zguWzh.js';
14
15
  export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from '../agent-bridge-hXRN-GO_.js';
15
16
  export { D as DefaultModelsRegistry, a as DefaultModelsRegistryOptions, c as classifyFamily } from '../models-registry-OG_30xqZ.js';
16
17
  export { DefaultModeStore, LLMSelector, LLMSelectorOptions, ModeLoaderOptions, loadProjectModes, loadUserModes } from '../models/index.js';
17
- export { AISpecBuilder, AISpecBuilderOptions, AISpecPhase, AISpecSession, AutoExecutor, AutoExecutorOptions, BottleneckTask, CollectedAnswer, CriticalPathAnalysis, DefaultTaskStore, ExecutionSummary, GeneratedTask, SPEC_TEMPLATES, SpecDiff, SpecDrivenDev, SpecDrivenDevOptions, SpecIndexEntry, SpecParser, SpecStore, SpecStoreOptions, SpecVersion, SpecVersioning, TaskExecutionContext, TaskExecutionResult, TaskFlow, TaskFlowEventMap, TaskFlowEventName, TaskFlowExecutionContext, TaskFlowOptions, TaskFlowPhase, TaskGenerator, TaskGeneratorOptions, TaskGraphIndexEntry, TaskGraphStore, TaskGraphStoreOptions, TaskStore, TaskTracker, TaskTrackerOptions, TaskTransition, analyzeCriticalPath, createAutoExecutor, getTemplate, listTemplates, renderProgress, renderSpecAnalysis, renderTaskGraph, renderTaskList, templateToMarkdown } from '../sdd/index.js';
18
+ 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';
18
19
  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';
19
20
  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-n2L9ohMX.js';
20
21
  export { D as DEFAULT_CONTEXT_CONFIG, a as DEFAULT_TOOLS_CONFIG } from '../default-config-DvRSTELf.js';
21
22
  import '../logger-DDd5C--Z.js';
22
23
  import '../events-D4pGukpI.js';
23
24
  import '../memory-CEXuo7sz.js';
24
- import '../wstack-paths-BGu2INTm.js';
25
+ import '../wstack-paths-gCrJ631C.js';
25
26
  import '../config-Bi4Q0fnz.js';
26
27
  import '../models-registry-BcYJDKLm.js';
27
28
  import '../secret-vault-DoISxaKO.js';
@@ -29,11 +30,11 @@ import '../secret-scrubber-nI8qjaqW.js';
29
30
  import '../input-reader-E-ffP2ee.js';
30
31
  import '../compactor-Mw7-rNyb.js';
31
32
  import '../retry-policy-OwtKNxo8.js';
32
- import '../index-BUHs7xJ9.js';
33
+ import '../index-BtNRyJft.js';
33
34
  import '../system-prompt-CWA6ml-d.js';
34
35
  import '../observability-BhnVLBLS.js';
35
36
  import '../selector-DkvgYVS4.js';
36
- import '../goal-store-HHgaq5ue.js';
37
+ import '../goal-store-C7jcumEh.js';
37
38
  import '../skill-CxuWrsKK.js';
38
39
  import 'node:events';
39
40
  import '../mode-CV077NjV.js';