@wrongstack/core 0.267.0 → 0.268.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 (74) hide show
  1. package/dist/{agent-bridge-STJ3JwwK.d.ts → agent-bridge-UhojbpWx.d.ts} +1 -1
  2. package/dist/{agent-subagent-runner-CzPGP3jA.d.ts → agent-subagent-runner-Bvtf1o9K.d.ts} +7 -7
  3. package/dist/{brain-Cdg77tVN.d.ts → brain-69wzMKp1.d.ts} +1 -1
  4. package/dist/{compactor-iMZ84CXq.d.ts → compactor-CBQAJoDc.d.ts} +1 -1
  5. package/dist/{config-Du3pYYln.d.ts → config-VKfOZ-6X.d.ts} +70 -2
  6. package/dist/{context-dT5Ueund.d.ts → context-C0U8B9NF.d.ts} +24 -1
  7. package/dist/coordination/index.d.ts +56 -160
  8. package/dist/coordination/index.js +333 -63
  9. package/dist/coordination/index.js.map +1 -1
  10. package/dist/defaults/index.d.ts +26 -25
  11. package/dist/defaults/index.js +94 -68
  12. package/dist/defaults/index.js.map +1 -1
  13. package/dist/execution/index.d.ts +72 -16
  14. package/dist/execution/index.js +151 -36
  15. package/dist/execution/index.js.map +1 -1
  16. package/dist/execution/prompt-enhancer.d.ts +1 -1
  17. package/dist/extension/index.d.ts +7 -6
  18. package/dist/global-mailbox-KByEFFBa.d.ts +663 -0
  19. package/dist/{goal-preamble-SulMTowG.d.ts → goal-preamble-CrYjmdw4.d.ts} +9 -9
  20. package/dist/{goal-store-CABDwdFE.d.ts → goal-store-Y_zdLZ3q.d.ts} +1 -1
  21. package/dist/hq/index.d.ts +195 -0
  22. package/dist/hq/index.js +1884 -0
  23. package/dist/hq/index.js.map +1 -0
  24. package/dist/{index-IEuxQd-E.d.ts → index-BfaS-f_m.d.ts} +2 -2
  25. package/dist/{index-DtCVWel4.d.ts → index-CtQnmkaS.d.ts} +8 -8
  26. package/dist/{index-Bms0m4oy.d.ts → index-gCv830d7.d.ts} +5 -5
  27. package/dist/index.d.ts +46 -42
  28. package/dist/index.js +2955 -1498
  29. package/dist/index.js.map +1 -1
  30. package/dist/infrastructure/index.d.ts +6 -6
  31. package/dist/infrastructure/index.js +45 -18
  32. package/dist/infrastructure/index.js.map +1 -1
  33. package/dist/kernel/index.d.ts +10 -9
  34. package/dist/{pipeline-BfD2k1rT.d.ts → mailbox-types-Ct2hJq0P.d.ts} +1 -244
  35. package/dist/{mcp-servers-C2cBTxUR.d.ts → mcp-servers-HT3Fi7Bl.d.ts} +10 -4
  36. package/dist/models/index.d.ts +5 -5
  37. package/dist/models/index.js +3 -2
  38. package/dist/models/index.js.map +1 -1
  39. package/dist/{models-registry-BqGZNJQ-.d.ts → models-registry-Bvcl3Vaa.d.ts} +1 -1
  40. package/dist/{multi-agent-coordinator-B8R43uPz.d.ts → multi-agent-coordinator-BACjsmkC.d.ts} +1 -1
  41. package/dist/{null-fleet-bus-CnXa5oTH.d.ts → null-fleet-bus-DA7fvhUg.d.ts} +6 -6
  42. package/dist/observability/index.d.ts +2 -2
  43. package/dist/{parallel-eternal-engine-DdNnw9BQ.d.ts → parallel-eternal-engine-Ci71gYu_.d.ts} +9 -15
  44. package/dist/{path-resolver-COIMLCQL.d.ts → path-resolver-O1IJnmKE.d.ts} +4 -3
  45. package/dist/{permission-B75JAi3-.d.ts → permission-Bd-57Lbl.d.ts} +1 -1
  46. package/dist/{permission-policy-DlR9eJAM.d.ts → permission-policy-uNXC6Kge.d.ts} +2 -3
  47. package/dist/pipeline-BDNvENyV.d.ts +245 -0
  48. package/dist/{plan-templates-DSIKCXZN.d.ts → plan-templates-EMsalEtN.d.ts} +5 -5
  49. package/dist/{provider-model-resolve-BNRsNuJx.d.ts → provider-model-resolve-CEb9x886.d.ts} +3 -3
  50. package/dist/{provider-runner-CX7iIvox.d.ts → provider-runner-DWJbpo70.d.ts} +3 -3
  51. package/dist/{retry-policy-BilV1ujH.d.ts → retry-policy-C3s_lvdK.d.ts} +1 -1
  52. package/dist/sdd/index.d.ts +9 -8
  53. package/dist/sdd/index.js +32 -2
  54. package/dist/sdd/index.js.map +1 -1
  55. package/dist/{secret-vault-gkvEZZfE.d.ts → secret-vault-Cgduf5xL.d.ts} +1 -1
  56. package/dist/security/index.d.ts +5 -5
  57. package/dist/security/index.js +39 -29
  58. package/dist/security/index.js.map +1 -1
  59. package/dist/{selector-Bc7eWtT3.d.ts → selector-47LBnBVk.d.ts} +1 -1
  60. package/dist/{session-event-bridge-D-araDEz.d.ts → session-event-bridge-Cw7oqmW2.d.ts} +1 -1
  61. package/dist/{session-reader-D7Dapswh.d.ts → session-reader-DD4v2Obw.d.ts} +1 -1
  62. package/dist/storage/index.d.ts +14 -12
  63. package/dist/storage/index.js +63 -36
  64. package/dist/storage/index.js.map +1 -1
  65. package/dist/tools/index.d.ts +2 -2
  66. package/dist/tools/index.js +166 -31
  67. package/dist/tools/index.js.map +1 -1
  68. package/dist/types/index.d.ts +20 -19
  69. package/dist/types/index.js +68 -51
  70. package/dist/types/index.js.map +1 -1
  71. package/dist/utils/index.d.ts +22 -3
  72. package/dist/utils/index.js +139 -1
  73. package/dist/utils/index.js.map +1 -1
  74. package/package.json +5 -1
@@ -1,4 +1,4 @@
1
- import { B as BridgeTransport, a as BridgeMessage, A as AgentBridge, b as AgentBridgeConfig } from './agent-subagent-runner-CzPGP3jA.js';
1
+ import { B as BridgeTransport, a as BridgeMessage, A as AgentBridge, b as AgentBridgeConfig } from './agent-subagent-runner-Bvtf1o9K.js';
2
2
 
3
3
  /**
4
4
  * In-memory pub/sub transport for agent-to-agent messaging.
@@ -1,12 +1,12 @@
1
- import { c as ToolCallPipelinePayload, d as ToolWrapper, E as ExtensionRegistry, S as SystemPromptContributor, e as ToolRegistry, P as ProviderRegistry, A as AgentPipelines, f as ToolExecutorLike, g as AgentInit, h as AgentInput, R as RunResult } from './index-Bms0m4oy.js';
2
- import { C as Container, R as ReadonlyPipeline, a as Renderer } from './pipeline-BfD2k1rT.js';
3
- import { E as EventBus, a as EventName, L as Listener } from './brain-Cdg77tVN.js';
4
- import { R as RetryPolicy, E as ErrorHandler } from './retry-policy-BilV1ujH.js';
1
+ import { c as ToolCallPipelinePayload, d as ToolWrapper, E as ExtensionRegistry, S as SystemPromptContributor, e as ToolRegistry, P as ProviderRegistry, A as AgentPipelines, f as ToolExecutorLike, g as AgentInit, h as AgentInput, R as RunResult } from './index-gCv830d7.js';
2
+ import { C as Container, R as ReadonlyPipeline, a as Renderer } from './pipeline-BDNvENyV.js';
3
+ import { E as EventBus, a as EventName, L as Listener } from './brain-69wzMKp1.js';
4
+ import { R as RetryPolicy, E as ErrorHandler } from './retry-policy-C3s_lvdK.js';
5
5
  import { L as Logger } from './logger-B63L5bTg.js';
6
6
  import { T as Tracer } from './observability-D-HZN_mF.js';
7
- import { P as PermissionPolicy } from './permission-B75JAi3-.js';
8
- import { U as Usage, C as Context, J as JSONSchema, R as Request, b as Response, g as ContentBlock, o as TextBlock, T as Tool, P as Provider, p as RunOptions } from './context-dT5Ueund.js';
9
- import { W as WireFamily, H as HookEvent, f as HookMatcher, I as InProcessHook, i as Config } from './config-Du3pYYln.js';
7
+ import { P as PermissionPolicy } from './permission-Bd-57Lbl.js';
8
+ import { U as Usage, C as Context, J as JSONSchema, R as Request, b as Response, g as ContentBlock, p as TextBlock, T as Tool, P as Provider, s as RunOptions } from './context-C0U8B9NF.js';
9
+ import { W as WireFamily, H as HookEvent, f as HookMatcher, I as InProcessHook, i as Config } from './config-VKfOZ-6X.js';
10
10
 
11
11
  /**
12
12
  * Single fleet-wide event with subagent attribution. Whatever a child
@@ -1,4 +1,4 @@
1
- import { U as Usage, C as Context, j as ToolProgressEvent, T as Tool, k as ToolOutputMetadata } from './context-dT5Ueund.js';
1
+ import { U as Usage, C as Context, j as ToolProgressEvent, T as Tool, k as ToolOutputMetadata } from './context-C0U8B9NF.js';
2
2
 
3
3
  type MemoryScope = 'project-agents' | 'project-memory' | 'user-memory';
4
4
  type MemoryType = 'fact' | 'decision' | 'convention' | 'preference' | 'reference' | 'anti_pattern';
@@ -1,4 +1,4 @@
1
- import { C as Context } from './context-dT5Ueund.js';
1
+ import { C as Context } from './context-C0U8B9NF.js';
2
2
 
3
3
  interface CompactRepairReport {
4
4
  removedToolUses: string[];
@@ -1,4 +1,4 @@
1
- import { l as Capabilities, f as Permission } from './context-dT5Ueund.js';
1
+ import { l as ReasoningConfig, m as Capabilities, f as Permission, n as ReasoningEffort, o as CacheTtl } from './context-C0U8B9NF.js';
2
2
 
3
3
  type ContextWindowModeId = 'balanced' | 'frugal' | 'deep' | 'archival';
4
4
  type ContextWindowAggressiveOn = 'hard' | 'soft' | 'warn';
@@ -134,12 +134,14 @@ type HookEntry = {
134
134
  * Mirror of the models.dev/api.json schema. Top-level is keyed by provider id.
135
135
  * We keep `unknown` for fields we don't read so the cached payload stays faithful.
136
136
  */
137
+
137
138
  interface ModelsDevModel {
138
139
  id: string;
139
140
  name: string;
140
141
  family?: string | undefined;
141
142
  attachment?: boolean | undefined;
142
143
  reasoning?: boolean | undefined;
144
+ reasoningConfig?: ReasoningConfig | undefined;
143
145
  tool_call?: boolean | undefined;
144
146
  temperature?: boolean | undefined;
145
147
  knowledge?: string | undefined;
@@ -155,6 +157,8 @@ interface ModelsDevModel {
155
157
  output?: number | undefined;
156
158
  cache_read?: number | undefined;
157
159
  cache_write?: number | undefined;
160
+ cache_write_5m?: number | undefined;
161
+ cache_write_1h?: number | undefined;
158
162
  [k: string]: number | undefined;
159
163
  };
160
164
  limit?: {
@@ -202,6 +206,7 @@ interface ResolvedModel {
202
206
  maxContext: number;
203
207
  maxOutput?: number | undefined;
204
208
  knowledge?: string | undefined;
209
+ reasoningConfig?: ReasoningConfig | undefined;
205
210
  };
206
211
  cost?: ModelsDevModel['cost'] | undefined;
207
212
  }
@@ -224,6 +229,60 @@ interface ModelsRegistry {
224
229
  ageSeconds(): Promise<number>;
225
230
  }
226
231
 
232
+ /**
233
+ * Runtime reasoning controls the user can set per-session/project. Mapped into
234
+ * the provider `Request.reasoning` field by the model-runtime request
235
+ * middleware, gated by the active model's `reasoningConfig` capabilities so
236
+ * unsupported values are omitted (and warned) instead of triggering provider
237
+ * 400s. See `resolveReasoningForRequest()` in packages/core.
238
+ */
239
+ interface ModelRuntimeReasoningConfig {
240
+ /**
241
+ * Whether to send explicit reasoning enable/disable.
242
+ * - 'auto' → do not send explicit fields; provider/model default wins
243
+ * - 'on' → send `reasoning.enabled = true`
244
+ * - 'off' → send `reasoning.enabled = false` only when the model supports disable
245
+ */
246
+ mode?: 'auto' | 'on' | 'off' | undefined;
247
+ /** Reasoning effort. Only sent when the model advertises `effortSupported`. */
248
+ effort?: ReasoningEffort | undefined;
249
+ /** Preserve thinking across turns. Only sent when `preserveThinking !== 'unsupported'`. */
250
+ preserve?: boolean | undefined;
251
+ }
252
+ /**
253
+ * Runtime prompt-cache controls mapped into `Request.cache`. Currently only the
254
+ * Anthropic TTL toggle (5m vs 1h) is exposed; other providers ignore it.
255
+ */
256
+ interface ModelRuntimeCacheConfig {
257
+ ttl?: CacheTtl | undefined;
258
+ }
259
+ /**
260
+ * Shared runtime controls applied to every provider request, regardless of host
261
+ * (REPL / TUI / WebUI). The CLI installs a single request-pipeline middleware
262
+ * that reads these and mutates the outgoing `Request`.
263
+ */
264
+ interface ModelRuntimeConfig {
265
+ reasoning?: ModelRuntimeReasoningConfig | undefined;
266
+ cache?: ModelRuntimeCacheConfig | undefined;
267
+ }
268
+ /**
269
+ * HQ client connection settings. Same-machine clients can auto-discover the
270
+ * local HQ auth file; remote clients use this config-backed URL/token pair.
271
+ */
272
+ interface HqClientConfig {
273
+ /** Enable HQ publishing. Env WRONGSTACK_HQ_ENABLED still overrides at runtime. */
274
+ enabled?: boolean | undefined;
275
+ /** HQ HTTP base URL, e.g. http://host:3499. */
276
+ url?: string | undefined;
277
+ /** Client token for /ws/client. Stored encrypted by SecretVault when persisted. */
278
+ token?: string | undefined;
279
+ /** Optional HQ data dir for same-machine auth.json discovery. */
280
+ dataDir?: string | undefined;
281
+ /** Send raw content previews to HQ instead of redacted previews. */
282
+ rawContent?: boolean | undefined;
283
+ /** Override project display name in HQ. */
284
+ projectAlias?: string | undefined;
285
+ }
227
286
  /**
228
287
  * Token-saving mode tier levels. Controls how aggressively the system prompt
229
288
  * is compacted to reduce per-request token consumption.
@@ -689,6 +748,15 @@ interface Config {
689
748
  * Controls what gets written to the persistent JSONL transcript.
690
749
  */
691
750
  session?: SessionLoggingConfig | undefined;
751
+ /**
752
+ * Runtime reasoning / cache controls applied to every provider request
753
+ * (REPL/TUI/WebUI). Mapped into `Request.reasoning` and `Request.cache` by a
754
+ * single request-pipeline middleware, gated by the active model's
755
+ * capabilities. See `ModelRuntimeConfig`.
756
+ */
757
+ modelRuntime?: ModelRuntimeConfig | undefined;
758
+ /** HQ client publishing settings, used by CLI/REPL/TUI/WebUI consistently. */
759
+ hq?: HqClientConfig | undefined;
692
760
  /**
693
761
  * Cloud sync configuration. Stored separately in sync.json to avoid
694
762
  * accidentally committing the GitHub token to project configs.
@@ -750,4 +818,4 @@ interface ConfigStore {
750
818
  watch(cb: (next: Readonly<Config>, prev: Readonly<Config>) => void): () => void;
751
819
  }
752
820
 
753
- export { type AutonomyConfig as A, type ProviderApiKey as B, type ContextWindowAggressiveOn as C, DEFAULT_CONTEXT_WINDOW_MODE_ID as D, type SessionLoggingConfig as E, type FeaturesConfig as F, type SyncCategory as G, type HookEvent as H, type InProcessHook as I, type ToolsConfig as J, formatContextWindowModeList as K, type LaunchConfig as L, type ModelsRegistry as M, getContextWindowMode as N, isContextWindowModeId as O, type ProviderConfig as P, listContextWindowModes as Q, type ResolvedProvider as R, type ShellHook as S, type TokenSavingTier as T, normalizeTokenSavingTier as U, resolveContextWindowPolicy as V, type WireFamily as W, type ModelsDevPayload as a, type ResolvedModel as b, type MCPServerConfig as c, type ModelMatrixEntry as d, type ModelsDevModel as e, type HookMatcher as f, type HookEntry as g, type ContextWindowPolicy as h, type Config as i, type ConfigStore as j, type ConfigLoader as k, type SyncConfig as l, type HookInput as m, type HookOutcome as n, CONTEXT_WINDOW_MODES as o, type CircuitBreakerRuntimeConfig as p, type ContextConfig as q, type ContextWindowConfigLike as r, type ContextWindowMode as s, type ContextWindowModeId as t, type ContextWindowThresholds as u, type CustomModelDefinition as v, type IndexingConfig as w, type LogConfig as x, type ModelsDevProvider as y, type PluginConfig as z };
821
+ export { type AutonomyConfig as A, type ModelRuntimeConfig as B, type ContextWindowAggressiveOn as C, DEFAULT_CONTEXT_WINDOW_MODE_ID as D, type ModelRuntimeReasoningConfig as E, type FeaturesConfig as F, type ModelsDevProvider as G, type HookEvent as H, type InProcessHook as I, type PluginConfig as J, type ProviderApiKey as K, type LaunchConfig as L, type ModelsRegistry as M, type SessionLoggingConfig as N, type SyncCategory as O, type ProviderConfig as P, type ToolsConfig as Q, type ResolvedProvider as R, type ShellHook as S, type TokenSavingTier as T, formatContextWindowModeList as U, getContextWindowMode as V, type WireFamily as W, isContextWindowModeId as X, listContextWindowModes as Y, normalizeTokenSavingTier as Z, resolveContextWindowPolicy as _, type ModelsDevPayload as a, type ResolvedModel as b, type MCPServerConfig as c, type ModelMatrixEntry as d, type ModelsDevModel as e, type HookMatcher as f, type HookEntry as g, type ContextWindowPolicy as h, type Config as i, type ConfigStore as j, type ConfigLoader as k, type SyncConfig as l, type HookInput as m, type HookOutcome as n, CONTEXT_WINDOW_MODES as o, type CircuitBreakerRuntimeConfig as p, type ContextConfig as q, type ContextWindowConfigLike as r, type ContextWindowMode as s, type ContextWindowModeId as t, type ContextWindowThresholds as u, type CustomModelDefinition as v, type HqClientConfig as w, type IndexingConfig as x, type LogConfig as y, type ModelRuntimeCacheConfig as z };
@@ -502,11 +502,32 @@ interface ToolCallContext {
502
502
  * invariant — a TOTAL `input` plus a separate `cacheRead` count would bill
503
503
  * cached tokens twice and skew cache-hit-ratio reporting.
504
504
  */
505
+ type ReasoningEffort = 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
506
+ type CacheTtl = '5m' | '1h';
505
507
  interface Usage {
506
508
  input: number;
507
509
  output: number;
508
510
  cacheRead?: number | undefined;
511
+ /** Back-compat aggregate of all cache-write tokens. Prefer TTL-specific fields when present. */
509
512
  cacheWrite?: number | undefined;
513
+ cacheWrite5m?: number | undefined;
514
+ cacheWrite1h?: number | undefined;
515
+ }
516
+ interface ReasoningRequest {
517
+ enabled?: boolean | undefined;
518
+ effort?: ReasoningEffort | undefined;
519
+ preserve?: boolean | undefined;
520
+ display?: 'summarized' | 'omitted' | undefined;
521
+ }
522
+ interface RequestCacheControl {
523
+ ttl?: CacheTtl | undefined;
524
+ }
525
+ interface ReasoningConfig {
526
+ default: 'enabled' | 'disabled' | 'adaptive' | 'always_on';
527
+ disableSupported: boolean;
528
+ effortSupported: boolean;
529
+ effortLevels: ReasoningEffort[];
530
+ preserveThinking: 'unsupported' | 'optional' | 'always_on';
510
531
  }
511
532
  interface Capabilities {
512
533
  tools: boolean;
@@ -533,6 +554,8 @@ interface Request {
533
554
  type: 'tool' | undefined;
534
555
  name: string;
535
556
  };
557
+ reasoning?: ReasoningRequest | undefined;
558
+ cache?: RequestCacheControl | undefined;
536
559
  }
537
560
  type StopReason = 'end_turn' | 'tool_use' | 'max_tokens' | 'stop_sequence' | 'refusal';
538
561
  interface Response {
@@ -1503,4 +1526,4 @@ declare class Context implements RunEnv {
1503
1526
  usage(): Usage;
1504
1527
  }
1505
1528
 
1506
- export { type StopReason as $, AgentError as A, type ContextRepeatedReadEvidence as B, Context as C, type ErrorCode as D, ERROR_CODES as E, type ErrorSeverity as F, type ErrorSubsystem as G, type FileSnapshot as H, FsError as I, type JSONSchema as J, type ImageBlock as K, type MessageRole as L, type Message as M, PluginError as N, type ProviderErrorBody as O, type Provider as P, type ReadonlyConversationState as Q, type Request as R, type SessionEvent as S, type Tool as T, type Usage as U, type RiskTier as V, type RunEnv as W, SddError as X, SessionError as Y, type StateChange as Z, type StateChangeHandler as _, type SessionWriter as a, type StreamEvent as a0, StreamHangError as a1, type ThinkingBlock as a2, type ToolCallContext as a3, ToolError as a4, type ToolEvidenceStatus as a5, type ToolFinalEvent as a6, type ToolIconId as a7, type ToolStreamEvent as a8, WrongStackError as a9, asBlocks as aa, asText as ab, extractRunEnv as ac, isAgentError as ad, isConfigError as ae, isFsError as af, isImageBlock as ag, isPluginError as ah, isSddError as ai, isSessionError as aj, isTextBlock as ak, isThinkingBlock as al, isToolError as am, isToolResultBlock as an, isToolUseBlock as ao, isWrongStackError as ap, toWrongStackError as aq, wrapAsState as ar, type Response as b, type TokenCounter as c, type CacheStats as d, ProviderError as e, type Permission as f, type ContentBlock as g, type SessionMetadata as h, type SessionStore as i, type ToolProgressEvent as j, type ToolOutputMetadata as k, type Capabilities as l, type ToolUseBlock as m, type ToolResultBlock as n, type TextBlock as o, type RunOptions as p, type ResumedSession as q, type SessionData as r, type SessionSummary as s, type TodoItem as t, ConversationState as u, ConfigError as v, type ContextEvidenceState as w, type ContextFileEvidence as x, type ContextInit as y, type ContextIntentEvidence as z };
1529
+ export { type RunEnv as $, AgentError as A, type ContextFileEvidence as B, Context as C, type ContextInit as D, type ContextIntentEvidence as E, type ContextRepeatedReadEvidence as F, ERROR_CODES as G, type ErrorCode as H, type ErrorSeverity as I, type JSONSchema as J, type ErrorSubsystem as K, type FileSnapshot as L, type Message as M, FsError as N, type ImageBlock as O, type Provider as P, type MessageRole as Q, type Request as R, type SessionEvent as S, type Tool as T, type Usage as U, PluginError as V, type ProviderErrorBody as W, type ReadonlyConversationState as X, type ReasoningRequest as Y, type RequestCacheControl as Z, type RiskTier as _, type SessionWriter as a, SddError as a0, SessionError as a1, type StateChange as a2, type StateChangeHandler as a3, type StopReason as a4, type StreamEvent as a5, StreamHangError as a6, type ThinkingBlock as a7, type ToolCallContext as a8, ToolError as a9, type ToolEvidenceStatus as aa, type ToolFinalEvent as ab, type ToolIconId as ac, type ToolStreamEvent as ad, WrongStackError as ae, asBlocks as af, asText as ag, extractRunEnv as ah, isAgentError as ai, isConfigError as aj, isFsError as ak, isImageBlock as al, isPluginError as am, isSddError as an, isSessionError as ao, isTextBlock as ap, isThinkingBlock as aq, isToolError as ar, isToolResultBlock as as, isToolUseBlock as at, isWrongStackError as au, toWrongStackError as av, wrapAsState as aw, type Response as b, type TokenCounter as c, type CacheStats as d, ProviderError as e, type Permission as f, type ContentBlock as g, type SessionMetadata as h, type SessionStore as i, type ToolProgressEvent as j, type ToolOutputMetadata as k, type ReasoningConfig as l, type Capabilities as m, type ReasoningEffort as n, type CacheTtl as o, type TextBlock as p, type ToolUseBlock as q, type ToolResultBlock as r, type RunOptions as s, type ResumedSession as t, type SessionData as u, type SessionSummary as v, type TodoItem as w, ConversationState as x, ConfigError as y, type ContextEvidenceState as z };
@@ -1,23 +1,25 @@
1
- import { E as EventBus, B as BrainArbiter, f as BrainDecisionOption, k as BrainRisk, h as BrainDecisionRequest, e as BrainDecision, i as BrainDecisionSource } from '../brain-Cdg77tVN.js';
2
- export { g as BrainDecisionQueue, j as BrainFallback, D as DefaultBrainArbiter, l as DefaultBrainArbiterOptions, H as HumanEscalatingBrainArbiter, O as ObservableBrainArbiter, w as formatHumanPrompt } from '../brain-Cdg77tVN.js';
3
- import { H as FleetManager, s as Director } from '../null-fleet-bus-CnXa5oTH.js';
4
- 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, 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, 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-CnXa5oTH.js';
5
- import { b as AgentDefinition } from '../multi-agent-coordinator-B8R43uPz.js';
6
- export { T as AGENT_TOOL_PRESETS, c as AgentBudgetTier, d as AgentCapability, A 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, 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-B8R43uPz.js';
7
- import { F as FleetBus } from '../agent-subagent-runner-CzPGP3jA.js';
8
- export { h as AgentFactory, v as AgentFactoryResult, w as AgentRunnerOptions, x as BudgetExceededError, y as BudgetKind, z as BudgetLimits, E as BudgetNegotiationMode, G as BudgetThresholdDecision, H as BudgetThresholdHandler, I as BudgetThresholdSignal, J as BudgetUsage, L as DECISION_TIMEOUT_MS, N as FleetEvent, O as FleetHandler, i as FleetUsage, j as FleetUsageAggregator, Q as SubagentBudget, Y as SubagentUsageSnapshot, Z as TIMEOUT_PREEMPT_FRACTION, $ as makeAgentSubagentRunner, a0 as withDisabledToolFiltering } from '../agent-subagent-runner-CzPGP3jA.js';
9
- export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from '../agent-bridge-STJ3JwwK.js';
10
- import { c as Mailbox, k as MailboxSendInput, d as MailboxMessage, j as MailboxQuery, g as MailboxAckInput, s as MailboxAckBatchInput, h as MailboxAgentStatus, e as AgentRegistrationInput, A as AgentHeartbeatInput, t as PurgeOptions, u as PurgeResult, v as ClientRegistrationInput, w as ClientHeartbeatInput, x as ClientStatus } from '../pipeline-BfD2k1rT.js';
11
- export { i as MailboxMessageType, l as MailboxTaskContext, o as ReadReceipts, p as RegisteredAgent, r as normalizeRecipient } from '../pipeline-BfD2k1rT.js';
12
- import { C as Context, T as Tool } from '../context-dT5Ueund.js';
1
+ import { E as EventBus, B as BrainArbiter, f as BrainDecisionOption, k as BrainRisk, h as BrainDecisionRequest, e as BrainDecision, i as BrainDecisionSource } from '../brain-69wzMKp1.js';
2
+ export { g as BrainDecisionQueue, j as BrainFallback, D as DefaultBrainArbiter, l as DefaultBrainArbiterOptions, H as HumanEscalatingBrainArbiter, O as ObservableBrainArbiter, w as formatHumanPrompt } from '../brain-69wzMKp1.js';
3
+ import { H as FleetManager, s as Director } from '../null-fleet-bus-DA7fvhUg.js';
4
+ 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, 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, 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-DA7fvhUg.js';
5
+ import { b as AgentDefinition } from '../multi-agent-coordinator-BACjsmkC.js';
6
+ export { T as AGENT_TOOL_PRESETS, c as AgentBudgetTier, d as AgentCapability, A 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, 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-BACjsmkC.js';
7
+ import { F as FleetBus } from '../agent-subagent-runner-Bvtf1o9K.js';
8
+ export { h as AgentFactory, v as AgentFactoryResult, w as AgentRunnerOptions, x as BudgetExceededError, y as BudgetKind, z as BudgetLimits, E as BudgetNegotiationMode, G as BudgetThresholdDecision, H as BudgetThresholdHandler, I as BudgetThresholdSignal, J as BudgetUsage, L as DECISION_TIMEOUT_MS, N as FleetEvent, O as FleetHandler, i as FleetUsage, j as FleetUsageAggregator, Q as SubagentBudget, Y as SubagentUsageSnapshot, Z as TIMEOUT_PREEMPT_FRACTION, $ as makeAgentSubagentRunner, a0 as withDisabledToolFiltering } from '../agent-subagent-runner-Bvtf1o9K.js';
9
+ export { I as InMemoryAgentBridge, a as InMemoryBridgeTransport, c as createMessage } from '../agent-bridge-UhojbpWx.js';
10
+ import { b as Mailbox, c as MailboxSendInput, M as MailboxMessage, d as MailboxQuery, e as MailboxAckInput, f as MailboxAckBatchInput, a as MailboxAgentStatus, A as AgentRegistrationInput, g as AgentHeartbeatInput, P as PurgeOptions, j as PurgeResult, C as ClientRegistrationInput, h as ClientHeartbeatInput, i as ClientStatus } from '../mailbox-types-Ct2hJq0P.js';
11
+ export { k as MailboxMessageType, l as MailboxTaskContext, R as ReadReceipts, m as RegisteredAgent, n as normalizeRecipient } from '../mailbox-types-Ct2hJq0P.js';
12
+ export { G as GlobalMailbox, al as resolveProjectDir } from '../global-mailbox-KByEFFBa.js';
13
+ import { C as Context, T as Tool } from '../context-C0U8B9NF.js';
13
14
  import 'node:events';
14
15
  import '../logger-B63L5bTg.js';
15
16
  import '../director-state-BfeCUbmk.js';
16
- import '../config-Du3pYYln.js';
17
- import '../index-Bms0m4oy.js';
17
+ import '../config-VKfOZ-6X.js';
18
+ import '../index-gCv830d7.js';
19
+ import '../pipeline-BDNvENyV.js';
18
20
  import '../observability-D-HZN_mF.js';
19
- import '../permission-B75JAi3-.js';
20
- import '../retry-policy-BilV1ujH.js';
21
+ import '../permission-Bd-57Lbl.js';
22
+ import '../retry-policy-C3s_lvdK.js';
21
23
 
22
24
  /** Phase 1 · Discovery — map the territory before any work begins. */
23
25
  declare const DISCOVERY_AGENTS: AgentDefinition[];
@@ -151,145 +153,6 @@ declare class BrainMonitor {
151
153
  private maybeIntervene;
152
154
  }
153
155
 
154
- /**
155
- * GlobalMailbox — project-level inter-agent mailbox with cross-session support.
156
- *
157
- * Stores messages at `~/.wrongstack/projects/<slug>/_mailbox.jsonl` so all
158
- * sessions (terminals, WebUIs) working on the same project share one inbox.
159
- *
160
- * Features:
161
- * - Agent registration + heartbeat (agents go stale after 60s without heartbeat)
162
- * - Per-recipient read receipts (readBy[agentId] = ISO8601)
163
- * - Atomic file-locking for concurrent multi-process writes
164
- * - Unread count for new-mail notifications
165
- * - Online agent list
166
- *
167
- * @module GlobalMailbox
168
- */
169
-
170
- /**
171
- * Derive the project-level mailbox directory path.
172
- *
173
- * Delegates to the CANONICAL `projectSlug()` from wstack-paths so every
174
- * surface (CLI, TUI, WebUI, mailbox tool, loop checker) lands in the exact
175
- * same `~/.wrongstack/projects/<slug>/` directory. A previous inline copy
176
- * skipped the leading/trailing-hyphen strip, which silently split agents
177
- * working on projects with non-alphanumeric name edges into TWO mailboxes.
178
- *
179
- * @param projectRoot — absolute path to the project root
180
- * @param globalRoot — `~/.wrongstack` (or custom global root)
181
- */
182
- declare function resolveProjectDir(projectRoot: string, globalRoot: string): string;
183
- declare class GlobalMailbox implements Mailbox {
184
- /** Path to the JSONL message file. */
185
- readonly messagePath: string;
186
- /** Path to the JSON agent registry file. */
187
- readonly registryPath: string;
188
- /** Path to the JSON client registry file. */
189
- readonly clientRegistryPath: string;
190
- /** Optional event bus for emitting agent registration/heartbeat events. */
191
- private readonly _events?;
192
- /**
193
- * Local cache of the agent registry to avoid re-reading on every call.
194
- * Time-bounded: the registry file is shared ACROSS PROCESSES (that's the
195
- * whole point of GlobalMailbox), so a cache served forever would never see
196
- * agents registered by other sessions. Writers always bypass it.
197
- */
198
- private _registryCache;
199
- /** When the registry cache was last refreshed from disk (epoch ms). */
200
- private _registryCacheAt;
201
- /**
202
- * Local cache of the client registry to avoid re-reading on every call.
203
- * Same reasoning as agent registry cache.
204
- */
205
- private _clientRegistryCache;
206
- /** When the client registry cache was last refreshed from disk (epoch ms). */
207
- private _clientRegistryCacheAt;
208
- /** Last time each local agent sent a heartbeat (throttle). */
209
- private _lastHeartbeat;
210
- /** Last time each local client sent a heartbeat (throttle). */
211
- private _lastClientHeartbeat;
212
- /**
213
- * In-memory mirror of the JSONL message file. The mailbox is shared
214
- * ACROSS PROCESSES, so reads cannot trust the cache blindly — we pair it
215
- * with an mtime check. The file lock serializes every write, so a
216
- * changed mtimeMs is a definitive signal that another process (or this
217
- * one) wrote; an unchanged mtimeMs guarantees no write happened and the
218
- * cache is current. This collapses the per-iteration `query()` cost from
219
- * O(file_size) disk + parse to O(messages) in memory.
220
- */
221
- private _messageCache;
222
- /** mtimeMs of the file when `_messageCache` was populated. */
223
- private _messageCacheMtime;
224
- /** Size of the file when `_messageCache` was populated (extra guard). */
225
- private _messageCacheSize;
226
- /**
227
- * @param projectDir — `~/.wrongstack/projects/<slug>/`
228
- * @param events — optional EventBus for real-time TUI/WebUI notifications
229
- */
230
- constructor(projectDir: string, events?: EventBus);
231
- send(input: MailboxSendInput): Promise<MailboxMessage>;
232
- query(q: MailboxQuery): Promise<MailboxMessage[]>;
233
- ack(input: MailboxAckInput): Promise<MailboxMessage | null>;
234
- ackMany(input: MailboxAckBatchInput): Promise<MailboxMessage[]>;
235
- unreadCount(forAgentId: string): Promise<number>;
236
- registerAgent(input: AgentRegistrationInput): Promise<void>;
237
- heartbeat(input: AgentHeartbeatInput): Promise<void>;
238
- getAgentStatuses(): Promise<MailboxAgentStatus[]>;
239
- getOnlineAgents(): Promise<MailboxAgentStatus[]>;
240
- registerClient(input: ClientRegistrationInput): Promise<void>;
241
- clientHeartbeat(input: ClientHeartbeatInput): Promise<void>;
242
- getClientStatuses(): Promise<ClientStatus[]>;
243
- close(): Promise<void>;
244
- clearAll(): Promise<void>;
245
- purgeStale(opts?: PurgeOptions): Promise<PurgeResult>;
246
- /**
247
- * Read all messages from the JSONL file. Always reads + parses the file.
248
- * Callers that can tolerate a stale-by-mtime view should use
249
- * {@link _readMessagesCached}; writers that need the post-lock truth
250
- * should call this directly (it's what {@link _readMessagesFresh} aliases).
251
- */
252
- private _readMessages;
253
- /**
254
- * Read messages, then adopt the result as the in-memory cache. Use this
255
- * from writers that just took the file lock — the read reflects the
256
- * authoritative post-lock state and should be served to subsequent
257
- * queries without re-reading.
258
- */
259
- private _readMessagesFresh;
260
- /**
261
- * Read messages, consulting the mtime-bounded in-memory cache first.
262
- * The mailbox file is shared across processes; every `send`/`ack`/
263
- * `clearAll`/`purgeStale` takes the file lock, so writes are serialized
264
- * and a changed mtimeMs is a definitive freshness signal. When the
265
- * stat matches the cached mtime+size we return the cached array — no
266
- * file read and no JSON.parse — collapsing the per-iteration query
267
- * cost on the mailbox-loop hot path.
268
- */
269
- private _readMessagesCached;
270
- /**
271
- * Replace the in-memory cache. Caller is responsible for guaranteeing
272
- * that `messages` reflects the current on-disk state (e.g. they just
273
- * read or wrote it under the file lock).
274
- */
275
- private _setMessageCache;
276
- /**
277
- * Append a single just-sent message to the in-memory cache without
278
- * re-reading the file. The caller must hold the file lock (or have
279
- * just released it after a successful append) so the cache stays
280
- * consistent with on-disk state.
281
- */
282
- private _pushToCache;
283
- private _ensureRegistry;
284
- private _readRegistry;
285
- private _pruneStaleInPlace;
286
- private _writeRegistry;
287
- private _ensureClientRegistry;
288
- private _readClientRegistry;
289
- private _pruneStaleClientsInPlace;
290
- private _writeClientRegistry;
291
- }
292
-
293
156
  /**
294
157
  * mailbox-tool — Tool that exposes the inter-agent mailbox to agents.
295
158
  *
@@ -1166,17 +1029,17 @@ declare class ConsensusProtocol {
1166
1029
  * Initiate a vote on a proposed change. Updates the change node's status
1167
1030
  * to 'proposed' and notifies eligible voters via FleetBus.
1168
1031
  */
1169
- initiateVote(changeId: string): void;
1032
+ initiateVote(changeId: string): Promise<void>;
1170
1033
  /**
1171
1034
  * Cast a vote. Updates the change node in the graph and re-evaluates
1172
1035
  * consensus. If the vote triggers a resolution, updates the change status.
1173
1036
  */
1174
- castVote(changeId: string, voterId: string, value: VoteValue, rationale?: string): ConsensusResult;
1037
+ castVote(changeId: string, voterId: string, value: VoteValue, rationale?: string): Promise<ConsensusResult>;
1175
1038
  /**
1176
1039
  * Resolve the current vote without waiting for all eligible voters.
1177
1040
  * Useful when a timeout fires or an agent decides to finalize early.
1178
1041
  */
1179
- resolveNow(changeId: string): ConsensusResult;
1042
+ resolveNow(changeId: string): Promise<ConsensusResult>;
1180
1043
  /**
1181
1044
  * Register or update a voter's configuration.
1182
1045
  */
@@ -1760,6 +1623,8 @@ declare class AutonomousCoordinator {
1760
1623
  private readonly onCoordinatorEvent?;
1761
1624
  private running;
1762
1625
  private iterationCount;
1626
+ private lastSyncAt;
1627
+ private static readonly SYNC_INTERVAL_MS;
1763
1628
  /** Tasks already handled by _onSubagentTerminated (to avoid double goal:failed on fleet event). */
1764
1629
  private readonly _handledBySubagent;
1765
1630
  /** FleetBus subscription disposers, detached in dispose(). */
@@ -1772,6 +1637,27 @@ declare class AutonomousCoordinator {
1772
1637
  run(opts?: RunOptions): Promise<CoordinatorStats>;
1773
1638
  /** Stop the autonomous loop. */
1774
1639
  stop(): void;
1640
+ /**
1641
+ * Report that a terminal worker (not a Director subagent) completed a claimed
1642
+ * task. This updates the auction, DAG, publishes a task-result fact, and
1643
+ * extracts follow-up goals — the same path as subagent completion.
1644
+ */
1645
+ reportTaskCompletion(taskId: string, result: string): Promise<void>;
1646
+ /**
1647
+ * Report that a terminal worker failed a claimed task.
1648
+ */
1649
+ reportTaskFailure(taskId: string, error: string): Promise<void>;
1650
+ /**
1651
+ * Reload the KnowledgeGraph from disk and sync the in-memory DAG with any
1652
+ * changes published by other terminal sessions. New goals are added to the
1653
+ * DAG; existing goals whose status changed (e.g. completed by another
1654
+ * terminal) are transitioned accordingly.
1655
+ *
1656
+ * Safe to call at any time — also used internally by the run loop.
1657
+ */
1658
+ syncFromGraph(): Promise<void>;
1659
+ private _syncDagStatuses;
1660
+ private _maybeSyncFromGraph;
1775
1661
  /**
1776
1662
  * Tear down the coordinator for good: stop the loop and detach all FleetBus
1777
1663
  * subscriptions (this coordinator's + the auctioneer's) plus any open bid
@@ -1805,9 +1691,20 @@ declare class AutonomousCoordinator {
1805
1691
  deps?: string[];
1806
1692
  tags?: string[];
1807
1693
  }): Promise<GoalNode>;
1694
+ private _waitForDagProgress;
1695
+ private _dagProgressKey;
1696
+ private _rebuildDagFromGraph;
1697
+ private _rebuildDagNode;
1808
1698
  private _decomposeGoal;
1809
1699
  private _inferCategory;
1810
1700
  private _processGoal;
1701
+ private _stringifyTaskResult;
1702
+ private _completeTask;
1703
+ private _publishTaskResultFact;
1704
+ private _createFollowUpGoalsFromResult;
1705
+ private _extractFollowUps;
1706
+ private _failTask;
1707
+ private _recordTaskFailed;
1811
1708
  private _handlePendingChange;
1812
1709
  private _onDagEvent;
1813
1710
  private _onSubagentTerminated;
@@ -1815,10 +1712,9 @@ declare class AutonomousCoordinator {
1815
1712
  private _buildVoters;
1816
1713
  private _goalToOptions;
1817
1714
  private _optionToGoal;
1818
- private _dagPriorityToGoal;
1819
1715
  private _mailboxBroadcast;
1820
1716
  /** Emit a CoordinatorEvent to the subscriber (e.g. TUI panel timeline). */
1821
1717
  private _emit;
1822
1718
  }
1823
1719
 
1824
- export { AgentDefinition, AgentHeartbeatInput, AgentRegistrationInput, type ApplyResult, type ApprovalDecision, AutonomousBrain, type AutonomousBrainOptions, AutonomousCoordinator, type AutonomousCoordinatorOptions, type AutonomousDecisionRequest, type AutonomousDecisionType, BUILD_AGENTS, BrainArbiter, BrainDecision, BrainDecisionOption, BrainDecisionRequest, BrainDecisionSource, type BrainInterventionInput, BrainMonitor, type BrainMonitorOptions, BrainRisk, type ChangeFile, ChangeManager, type ChangeManagerOptions, type ChangeNode, type ChangeProposal, type ChangeStatus, type ConsensusOptions, ConsensusProtocol, type ConsensusResult, type CoordinatorEvent, type CoordinatorStats, type DAGEdgeEvent, type DAGEdgeHandler, type DAGNode, type DAGNodeStatus, DEFAULT_QUALITY_CHECKS, DELIVERY_AGENTS, DEPENDENCY_FILE_PATTERNS, DISCOVERY_AGENTS, DOMAIN_AGENTS, type DecisionNode, type DecisionPrompt, DefaultMailbox, type DepWatchEntry, type DepWatcherBridgeOptions, type DependencyWatcherConfig, Director, type EscalationDecision, type FactCategory, type FactNode, FleetBus, FleetManager, GlobalMailbox, type GoalNode, type GoalPriority, type GoalStatus, type GraphSubscription, KNOWLEDGE_AGENTS, KnowledgeGraph, type LLMProvider, META_AGENTS, type MailToolsOptions, Mailbox, MailboxAckInput, MailboxAgentStatus, type MailboxHooksOptions, MailboxMessage, MailboxQuery, type MailboxResolver, MailboxSendInput, type MailboxToolOptions, type NodeFilter, type NodeType, type OutdatedNotifyMessage, PLANNING_AGENTS, type PackageAuthorEntry, type PackageAuthorLog, type PackageAuthorTrackerOptions, type PackageOutdatedEntry, type PackageOutdatedResult, type PackageOutdatedWatcherOptions, type PrioritizationDecision, type QualityCheck, type QualityGateChecks, type QualityGateResult, type QuorumRule, REVIEW_AGENTS, type RollbackResult, type RunOptions, type RunnablesHandler, type SpawnDecision, type TaskAuctionOptions, TaskAuctioneer, type TaskBid, TaskDAG, VERIFY_AGENTS, type VoteNode, type VoteRecord, type VoteValue, type VoterConfig, attachDepWatcherBridge, createMailboxHooks, detectEcosystem, getFullPackageLog, getManifestPackages, getPackageAuthor, getPackagesByAgent, mailboxSessionTag, makeDependencyWatcherConfig, makeMailInboxTool, makeMailSendTool, makeMailboxTool, recordPackageAction, resolveMailboxIdentity, resolveProjectDir, startPackageOutdatedWatcher, updatePackageOutdatedStatus };
1720
+ export { AgentDefinition, AgentHeartbeatInput, AgentRegistrationInput, type ApplyResult, type ApprovalDecision, AutonomousBrain, type AutonomousBrainOptions, AutonomousCoordinator, type AutonomousCoordinatorOptions, type AutonomousDecisionRequest, type AutonomousDecisionType, BUILD_AGENTS, BrainArbiter, BrainDecision, BrainDecisionOption, BrainDecisionRequest, BrainDecisionSource, type BrainInterventionInput, BrainMonitor, type BrainMonitorOptions, BrainRisk, type ChangeFile, ChangeManager, type ChangeManagerOptions, type ChangeNode, type ChangeProposal, type ChangeStatus, type ConsensusOptions, ConsensusProtocol, type ConsensusResult, type CoordinatorEvent, type CoordinatorStats, type DAGEdgeEvent, type DAGEdgeHandler, type DAGNode, type DAGNodeStatus, DEFAULT_QUALITY_CHECKS, DELIVERY_AGENTS, DEPENDENCY_FILE_PATTERNS, DISCOVERY_AGENTS, DOMAIN_AGENTS, type DecisionNode, type DecisionPrompt, DefaultMailbox, type DepWatchEntry, type DepWatcherBridgeOptions, type DependencyWatcherConfig, Director, type EscalationDecision, type FactCategory, type FactNode, FleetBus, FleetManager, type GoalNode, type GoalPriority, type GoalStatus, type GraphSubscription, KNOWLEDGE_AGENTS, KnowledgeGraph, type LLMProvider, META_AGENTS, type MailToolsOptions, Mailbox, MailboxAckInput, MailboxAgentStatus, type MailboxHooksOptions, MailboxMessage, MailboxQuery, type MailboxResolver, MailboxSendInput, type MailboxToolOptions, type NodeFilter, type NodeType, type OutdatedNotifyMessage, PLANNING_AGENTS, type PackageAuthorEntry, type PackageAuthorLog, type PackageAuthorTrackerOptions, type PackageOutdatedEntry, type PackageOutdatedResult, type PackageOutdatedWatcherOptions, type PrioritizationDecision, type QualityCheck, type QualityGateChecks, type QualityGateResult, type QuorumRule, REVIEW_AGENTS, type RollbackResult, type RunOptions, type RunnablesHandler, type SpawnDecision, type TaskAuctionOptions, TaskAuctioneer, type TaskBid, TaskDAG, VERIFY_AGENTS, type VoteNode, type VoteRecord, type VoteValue, type VoterConfig, attachDepWatcherBridge, createMailboxHooks, detectEcosystem, getFullPackageLog, getManifestPackages, getPackageAuthor, getPackagesByAgent, mailboxSessionTag, makeDependencyWatcherConfig, makeMailInboxTool, makeMailSendTool, makeMailboxTool, recordPackageAction, resolveMailboxIdentity, startPackageOutdatedWatcher, updatePackageOutdatedStatus };