@wrongstack/core 0.277.2 → 0.280.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 (83) hide show
  1. package/dist/{agent-bridge-BFJ2ODzI.d.ts → agent-bridge-DXC6QDJ4.d.ts} +1 -1
  2. package/dist/{agent-subagent-runner-BimKihiC.d.ts → agent-subagent-runner-PoqNKiR4.d.ts} +563 -471
  3. package/dist/{compactor-D3BGw26y.d.ts → compactor-U3agvUIG.d.ts} +1 -1
  4. package/dist/{config-DAOjriz9.d.ts → config-Cr3312zc.d.ts} +102 -4
  5. package/dist/coordination/index.d.ts +1087 -998
  6. package/dist/coordination/index.js +12235 -12052
  7. package/dist/coordination/index.js.map +1 -1
  8. package/dist/defaults/index.d.ts +31 -30
  9. package/dist/defaults/index.js +403 -189
  10. package/dist/defaults/index.js.map +1 -1
  11. package/dist/{brain-CCfuEOdp.d.ts → events-Bs2fmldo.d.ts} +117 -112
  12. package/dist/execution/index.d.ts +27 -19
  13. package/dist/execution/index.js +216 -63
  14. package/dist/execution/index.js.map +1 -1
  15. package/dist/execution/prompt-enhancer.d.ts +1 -1
  16. package/dist/execution/prompt-enhancer.js.map +1 -1
  17. package/dist/extension/index.d.ts +8 -7
  18. package/dist/{global-mailbox-Dr4cTKqL.d.ts → global-mailbox-Ct7IorLJ.d.ts} +84 -6
  19. package/dist/{goal-store-C1uH4srH.d.ts → goal-store-C4F6DjC0.d.ts} +1 -1
  20. package/dist/hq/index.d.ts +504 -7
  21. package/dist/hq/index.js +1069 -20
  22. package/dist/hq/index.js.map +1 -1
  23. package/dist/{index-DJXj-dcr.d.ts → index-kidebiDh.d.ts} +8 -5
  24. package/dist/{index-cMEmzCVN.d.ts → index-nP09-oP2.d.ts} +2 -2
  25. package/dist/index.d.ts +153 -76
  26. package/dist/index.js +5791 -3163
  27. package/dist/index.js.map +1 -1
  28. package/dist/infrastructure/index.d.ts +7 -6
  29. package/dist/kernel/index.d.ts +14 -13
  30. package/dist/kernel/index.js +31 -15
  31. package/dist/kernel/index.js.map +1 -1
  32. package/dist/{mailbox-types-DTl7bRH3.d.ts → mailbox-types-BGZWrYTJ.d.ts} +38 -0
  33. package/dist/{mcp-servers-CFb60-pH.d.ts → mcp-servers-D910X5_r.d.ts} +3 -3
  34. package/dist/models/index.d.ts +5 -5
  35. package/dist/models/index.js.map +1 -1
  36. package/dist/{models-registry-5Ufn7f2m.d.ts → models-registry-CLkoOcHk.d.ts} +1 -1
  37. package/dist/{multi-agent-coordinator-CcrcncvG.d.ts → multi-agent-coordinator-CieyUoEL.d.ts} +1 -1
  38. package/dist/{null-fleet-bus-C9KsYyrI.d.ts → null-fleet-bus-DkdmZJ_W.d.ts} +464 -464
  39. package/dist/observability/index.d.ts +3 -2
  40. package/dist/{path-resolver-CEeX9I7O.d.ts → path-resolver-XfZ9eLxG.d.ts} +3 -3
  41. package/dist/{permission-DbsGOA1C.d.ts → permission-Dx6dIqS2.d.ts} +2 -7
  42. package/dist/{permission-policy-BpEea3r7.d.ts → permission-policy-C8vJcnX5.d.ts} +2 -2
  43. package/dist/{pipeline-CEjBjzVA.d.ts → pipeline-BwAP21_4.d.ts} +9 -4
  44. package/dist/{provider-model-resolve-BpfXp3Jj.d.ts → provider-model-resolve-CwQNZWt_.d.ts} +3 -3
  45. package/dist/{provider-runner-CnOSr5BN.d.ts → provider-runner-CYHFImzV.d.ts} +3 -3
  46. package/dist/{retry-policy-Git9WF6d.d.ts → retry-policy-D4feSLk3.d.ts} +1 -1
  47. package/dist/sdd/index.d.ts +11 -10
  48. package/dist/sdd/index.js +2 -2
  49. package/dist/sdd/index.js.map +1 -1
  50. package/dist/secret-scrubber-3MHDDAtm.d.ts +6 -0
  51. package/dist/{secret-vault-DDSMHqIm.d.ts → secret-vault-CImt2XrR.d.ts} +1 -1
  52. package/dist/security/index.d.ts +6 -5
  53. package/dist/security/index.js.map +1 -1
  54. package/dist/{selector-Cq72C0Oy.d.ts → selector-Dy-MzKp1.d.ts} +1 -1
  55. package/dist/{session-event-bridge-DG94B3Bk.d.ts → session-event-bridge-CqdiGnfU.d.ts} +1 -1
  56. package/dist/{session-reader-BzT-iMQT.d.ts → session-reader-Hk0WbNm9.d.ts} +1 -1
  57. package/dist/{skill-DGIXCtdv.d.ts → skill-DHniprNl.d.ts} +15 -1
  58. package/dist/skills/index.d.ts +472 -26
  59. package/dist/skills/index.js +872 -129
  60. package/dist/skills/index.js.map +1 -1
  61. package/dist/storage/index.d.ts +27 -14
  62. package/dist/storage/index.js +264 -85
  63. package/dist/storage/index.js.map +1 -1
  64. package/dist/{strategy-compactor-Bt_ZH6R0.d.ts → strategy-compactor-CQwhbErd.d.ts} +32 -17
  65. package/dist/{todos-checkpoint-CH1pcua9.d.ts → todos-checkpoint-Bk2uP7Ex.d.ts} +6 -6
  66. package/dist/{context-DPlA6kid.d.ts → tool-BkOgs_KL.d.ts} +306 -286
  67. package/dist/{tool-executor-SVFq7IOR.d.ts → tool-executor-SiE1wlZo.d.ts} +9 -9
  68. package/dist/tools/index.d.ts +2 -2
  69. package/dist/tools/index.js.map +1 -1
  70. package/dist/types/index.d.ts +22 -21
  71. package/dist/types/index.js +7 -9
  72. package/dist/types/index.js.map +1 -1
  73. package/dist/utils/index.d.ts +30 -4
  74. package/dist/utils/index.js +50 -1
  75. package/dist/utils/index.js.map +1 -1
  76. package/dist/{worktree-manager-C4YIf1Fa.d.ts → worktree-manager-BjOFF6bt.d.ts} +1 -1
  77. package/dist/{wstack-paths-_NrRovdr.d.ts → wstack-paths-CMl_cYgq.d.ts} +8 -0
  78. package/package.json +1 -1
  79. package/skills/mailbox-bridge/SKILL.md +1 -0
  80. package/skills/plugin-author/SKILL.md +350 -0
  81. package/skills/sdd/SKILL.md +134 -134
  82. package/skills/skill-creator/SKILL.md +45 -7
  83. package/skills/wrongstack-mailbox/SKILL.md +40 -21
@@ -1,4 +1,109 @@
1
- import { U as Usage, C as Context, l as ToolErrorCategory, m as ToolProgressEvent, T as Tool, n as ToolOutputMetadata } from './context-DPlA6kid.js';
1
+ import { U as Usage, C as Context, l as ToolErrorCategory, m as ToolProgressEvent, T as Tool, n as RiskTier, o as ToolOutputMetadata } from './tool-BkOgs_KL.js';
2
+ import { a as PermissionDecision } from './permission-Dx6dIqS2.js';
3
+
4
+ /**
5
+ * Brain coordination primitives.
6
+ *
7
+ * Brain is an authority layer above a leader/director but below the human. It is
8
+ * intentionally modeled as a decision interface first, not as an autonomous
9
+ * bypass: callers ask for a decision, Brain either answers within policy or
10
+ * escalates to the human.
11
+ */
12
+
13
+ type BrainDecisionSource = 'autophase' | 'director' | 'tool' | 'user' | 'system';
14
+ type BrainRisk = 'low' | 'medium' | 'high' | 'critical';
15
+ type BrainFallback = 'ask_human' | 'deny' | 'continue';
16
+ interface BrainDecisionOption {
17
+ id: string;
18
+ label: string;
19
+ consequence?: string | undefined;
20
+ risk?: BrainRisk | undefined;
21
+ recommended?: boolean | undefined;
22
+ }
23
+ interface BrainDecisionRequest {
24
+ id: string;
25
+ /** Active host session id for surfaces that multiplex multiple sessions. */
26
+ sessionId?: string | undefined;
27
+ source: BrainDecisionSource;
28
+ question: string;
29
+ context?: string | undefined;
30
+ options?: BrainDecisionOption[] | undefined;
31
+ risk: BrainRisk;
32
+ /** What a non-LLM/default Brain should do when policy cannot decide safely. */
33
+ fallback: BrainFallback;
34
+ }
35
+ type BrainDecision = {
36
+ type: 'answer';
37
+ optionId?: string | undefined;
38
+ text: string;
39
+ rationale?: string | undefined;
40
+ } | {
41
+ type: 'ask_human';
42
+ prompt: string;
43
+ options?: BrainDecisionOption[] | undefined;
44
+ rationale?: string | undefined;
45
+ } | {
46
+ type: 'deny';
47
+ reason: string;
48
+ };
49
+ interface BrainArbiter {
50
+ decide(request: BrainDecisionRequest): Promise<BrainDecision>;
51
+ }
52
+ /**
53
+ * Event-emitting decorator for any Brain implementation. Hosts wire this around
54
+ * their actual arbiter so TUI/session surfaces can render Brain decisions
55
+ * without coupling to the caller that requested the decision.
56
+ */
57
+ declare class ObservableBrainArbiter implements BrainArbiter {
58
+ private readonly inner;
59
+ private readonly events;
60
+ constructor(inner: BrainArbiter, events: EventBus);
61
+ decide(request: BrainDecisionRequest): Promise<BrainDecision>;
62
+ }
63
+ interface BrainDecisionQueueOptions {
64
+ /** Safety fallback if the human never answers. Default: no timeout. */
65
+ timeoutMs?: number | undefined;
66
+ }
67
+ /**
68
+ * Bridge between an `ask_human` Brain decision and the UI. It emits the visible
69
+ * ask-human event, then resolves when the TUI emits `brain.human_answered`.
70
+ */
71
+ declare class BrainDecisionQueue {
72
+ private readonly events;
73
+ private readonly opts;
74
+ private readonly pending;
75
+ private readonly offAnswer;
76
+ constructor(events: EventBus, opts?: BrainDecisionQueueOptions);
77
+ requestHumanDecision(request: BrainDecisionRequest): Promise<BrainDecision>;
78
+ dispose(): void;
79
+ }
80
+ /**
81
+ * Decorator that turns `ask_human` into an actual awaited human decision.
82
+ * The wrapped Brain remains policy-only; this layer owns the UI/event bridge.
83
+ */
84
+ declare class HumanEscalatingBrainArbiter implements BrainArbiter {
85
+ private readonly inner;
86
+ private readonly queue;
87
+ constructor(inner: BrainArbiter, queue: BrainDecisionQueue);
88
+ decide(request: BrainDecisionRequest): Promise<BrainDecision>;
89
+ }
90
+ interface DefaultBrainArbiterOptions {
91
+ /** Allow deterministic auto-answering for low-risk requests. Default true. */
92
+ allowLowRiskAutoAnswer?: boolean | undefined;
93
+ }
94
+ /**
95
+ * Conservative deterministic Brain implementation.
96
+ *
97
+ * It only auto-answers low-risk requests when the caller provided a recommended
98
+ * option. Everything else follows the request fallback. This gives hosts a safe
99
+ * policy object to wire before an LLM-backed Brain exists.
100
+ */
101
+ declare class DefaultBrainArbiter implements BrainArbiter {
102
+ private readonly allowLowRiskAutoAnswer;
103
+ constructor(opts?: DefaultBrainArbiterOptions);
104
+ decide(request: BrainDecisionRequest): Promise<BrainDecision>;
105
+ }
106
+ declare function formatHumanPrompt(request: BrainDecisionRequest): string;
2
107
 
3
108
  type MemoryScope = 'project-agents' | 'project-memory' | 'user-memory';
4
109
  type MemoryType = 'fact' | 'decision' | 'convention' | 'preference' | 'reference' | 'anti_pattern';
@@ -236,6 +341,7 @@ interface EventMap {
236
341
  'provider.response': {
237
342
  sessionId?: string | undefined;
238
343
  ctx: Context;
344
+ model: string;
239
345
  usage: Usage;
240
346
  stopReason: string;
241
347
  };
@@ -385,6 +491,8 @@ interface EventMap {
385
491
  input: unknown;
386
492
  toolUseId: string;
387
493
  suggestedPattern: string;
494
+ decisionSource?: PermissionDecision['source'] | undefined;
495
+ riskTier?: RiskTier | undefined;
388
496
  resolve: (decision: 'yes' | 'no' | 'always' | 'deny') => void;
389
497
  };
390
498
  /**
@@ -540,8 +648,8 @@ interface EventMap {
540
648
  agentName: string;
541
649
  /** The assistant text block content, or a tool-call summary. */
542
650
  content: string;
543
- /** 'text' | 'tool_use' | 'error' | 'status' */
544
- kind: 'text' | 'tool_use' | 'error' | 'status';
651
+ /** Timeline entry kind. */
652
+ kind: 'text' | 'thinking' | 'tool_use' | 'tool_result' | 'error' | 'status' | 'system';
545
653
  /** Iteration index within the subagent's own run. */
546
654
  iteration: number;
547
655
  /** ISO 8601 timestamp. */
@@ -1159,9 +1267,9 @@ interface EventMap {
1159
1267
  'storage.read': {
1160
1268
  sessionId: string;
1161
1269
  /** Which store was read. */
1162
- store: 'session' | 'goal' | 'plan' | 'project' | 'todos' | 'queue' | 'tasks' | 'memory' | 'annotations' | 'audit' | 'replay' | 'config';
1270
+ store: 'session' | 'goal' | 'plan' | 'project' | 'todos' | 'queue' | 'tasks' | 'completed-work' | 'memory' | 'annotations' | 'audit' | 'replay' | 'config';
1163
1271
  filePath: string;
1164
- /** Session store: load|list|summary|index_read. Goal store: load. Plan store: load. Memory store: readAll. Annotations: list. Audit: verify|load. Replay: load|lookup. Config: read_json|load_sync. */
1272
+ /** Session store: load|list|summary|index_read. Goal store: load. Plan store: load. Memory store: readAll. Annotations: list. Audit: verify|load. Replay: load|lookup. Config: read_json|load_sync. Completed-work: load. */
1165
1273
  operation: string;
1166
1274
  outcome: 'success' | 'failure';
1167
1275
  durationMs: number;
@@ -1174,12 +1282,13 @@ interface EventMap {
1174
1282
  */
1175
1283
  'storage.write': {
1176
1284
  sessionId: string;
1177
- store: 'session' | 'goal' | 'plan' | 'project' | 'todos' | 'queue' | 'tasks' | 'memory' | 'annotations' | 'audit' | 'replay' | 'config';
1285
+ store: 'session' | 'goal' | 'plan' | 'project' | 'todos' | 'queue' | 'tasks' | 'completed-work' | 'memory' | 'annotations' | 'audit' | 'replay' | 'config';
1178
1286
  filePath: string;
1179
1287
  /** Session store: create|resume|append|flush|close|index_append|compact|checkpoint.
1180
1288
  * Goal store: save|update|delete. Plan store: save. Project manifest: manifest_write.
1181
1289
  * Todos: save. Queue: write|clear. Tasks: save. Memory: remember|forget|clear|consolidate.
1182
- * Annotations: add|resolve|evict. Audit: record. Replay: record|compact. Config: persist_sync. */
1290
+ * Annotations: add|resolve|evict. Audit: record. Replay: record|compact. Config: persist_sync.
1291
+ * Completed-work: save. */
1183
1292
  operation: string;
1184
1293
  outcome: 'success' | 'failure';
1185
1294
  durationMs: number;
@@ -1193,7 +1302,7 @@ interface EventMap {
1193
1302
  */
1194
1303
  'storage.error': {
1195
1304
  sessionId: string;
1196
- store: 'session' | 'goal' | 'plan' | 'project' | 'todos' | 'queue' | 'tasks' | 'memory' | 'annotations' | 'audit' | 'replay' | 'config';
1305
+ store: 'session' | 'goal' | 'plan' | 'project' | 'todos' | 'queue' | 'tasks' | 'completed-work' | 'memory' | 'annotations' | 'audit' | 'replay' | 'config';
1197
1306
  filePath: string;
1198
1307
  operation: string;
1199
1308
  outcome?: 'failure';
@@ -1380,108 +1489,4 @@ declare class ScopedEventBus extends EventBus {
1380
1489
  get scopedListenerCount(): number;
1381
1490
  }
1382
1491
 
1383
- /**
1384
- * Brain coordination primitives.
1385
- *
1386
- * Brain is an authority layer above a leader/director but below the human. It is
1387
- * intentionally modeled as a decision interface first, not as an autonomous
1388
- * bypass: callers ask for a decision, Brain either answers within policy or
1389
- * escalates to the human.
1390
- */
1391
-
1392
- type BrainDecisionSource = 'autophase' | 'director' | 'tool' | 'user' | 'system';
1393
- type BrainRisk = 'low' | 'medium' | 'high' | 'critical';
1394
- type BrainFallback = 'ask_human' | 'deny' | 'continue';
1395
- interface BrainDecisionOption {
1396
- id: string;
1397
- label: string;
1398
- consequence?: string | undefined;
1399
- risk?: BrainRisk | undefined;
1400
- recommended?: boolean | undefined;
1401
- }
1402
- interface BrainDecisionRequest {
1403
- id: string;
1404
- /** Active host session id for surfaces that multiplex multiple sessions. */
1405
- sessionId?: string | undefined;
1406
- source: BrainDecisionSource;
1407
- question: string;
1408
- context?: string | undefined;
1409
- options?: BrainDecisionOption[] | undefined;
1410
- risk: BrainRisk;
1411
- /** What a non-LLM/default Brain should do when policy cannot decide safely. */
1412
- fallback: BrainFallback;
1413
- }
1414
- type BrainDecision = {
1415
- type: 'answer';
1416
- optionId?: string | undefined;
1417
- text: string;
1418
- rationale?: string | undefined;
1419
- } | {
1420
- type: 'ask_human';
1421
- prompt: string;
1422
- options?: BrainDecisionOption[] | undefined;
1423
- rationale?: string | undefined;
1424
- } | {
1425
- type: 'deny';
1426
- reason: string;
1427
- };
1428
- interface BrainArbiter {
1429
- decide(request: BrainDecisionRequest): Promise<BrainDecision>;
1430
- }
1431
- /**
1432
- * Event-emitting decorator for any Brain implementation. Hosts wire this around
1433
- * their actual arbiter so TUI/session surfaces can render Brain decisions
1434
- * without coupling to the caller that requested the decision.
1435
- */
1436
- declare class ObservableBrainArbiter implements BrainArbiter {
1437
- private readonly inner;
1438
- private readonly events;
1439
- constructor(inner: BrainArbiter, events: EventBus);
1440
- decide(request: BrainDecisionRequest): Promise<BrainDecision>;
1441
- }
1442
- interface BrainDecisionQueueOptions {
1443
- /** Safety fallback if the human never answers. Default: no timeout. */
1444
- timeoutMs?: number | undefined;
1445
- }
1446
- /**
1447
- * Bridge between an `ask_human` Brain decision and the UI. It emits the visible
1448
- * ask-human event, then resolves when the TUI emits `brain.human_answered`.
1449
- */
1450
- declare class BrainDecisionQueue {
1451
- private readonly events;
1452
- private readonly opts;
1453
- private readonly pending;
1454
- private readonly offAnswer;
1455
- constructor(events: EventBus, opts?: BrainDecisionQueueOptions);
1456
- requestHumanDecision(request: BrainDecisionRequest): Promise<BrainDecision>;
1457
- dispose(): void;
1458
- }
1459
- /**
1460
- * Decorator that turns `ask_human` into an actual awaited human decision.
1461
- * The wrapped Brain remains policy-only; this layer owns the UI/event bridge.
1462
- */
1463
- declare class HumanEscalatingBrainArbiter implements BrainArbiter {
1464
- private readonly inner;
1465
- private readonly queue;
1466
- constructor(inner: BrainArbiter, queue: BrainDecisionQueue);
1467
- decide(request: BrainDecisionRequest): Promise<BrainDecision>;
1468
- }
1469
- interface DefaultBrainArbiterOptions {
1470
- /** Allow deterministic auto-answering for low-risk requests. Default true. */
1471
- allowLowRiskAutoAnswer?: boolean | undefined;
1472
- }
1473
- /**
1474
- * Conservative deterministic Brain implementation.
1475
- *
1476
- * It only auto-answers low-risk requests when the caller provided a recommended
1477
- * option. Everything else follows the request fallback. This gives hosts a safe
1478
- * policy object to wire before an LLM-backed Brain exists.
1479
- */
1480
- declare class DefaultBrainArbiter implements BrainArbiter {
1481
- private readonly allowLowRiskAutoAnswer;
1482
- constructor(opts?: DefaultBrainArbiterOptions);
1483
- decide(request: BrainDecisionRequest): Promise<BrainDecision>;
1484
- }
1485
- declare function formatHumanPrompt(request: BrainDecisionRequest): string;
1486
-
1487
1492
  export { type BrainArbiter as B, DefaultBrainArbiter as D, EventBus as E, HumanEscalatingBrainArbiter as H, type Listener as L, type MemoryScope as M, ObservableBrainArbiter as O, type ScoredEntry as S, type TrackedAgentSnapshot as T, type EventName as a, type MemoryEntry as b, type MemoryStore as c, type MemoryRelevanceContext as d, type BrainDecision as e, type BrainDecisionOption as f, BrainDecisionQueue as g, type BrainDecisionRequest as h, type BrainDecisionSource as i, type BrainFallback as j, type BrainRisk as k, type DefaultBrainArbiterOptions as l, type EventLogger as m, type EventMap as n, MEMORY_TYPE_LABELS as o, type MemoryClearedPayload as p, type MemoryConsolidatedPayload as q, type MemoryForgottenPayload as r, type MemoryPriority as s, type MemoryRememberedPayload as t, type MemoryType as u, ScopedEventBus as v, formatHumanPrompt as w };
@@ -1,24 +1,25 @@
1
- export { A as AutoCompactionMiddleware, a as AutonomousRunner, b as AutonomousRunnerOptions, c as AutonomyPromptContributorOptions, C as CompactorStrategy, U as ContextWindowBudgetSnapshot, D as DefaultDesignKitLoader, d as DefaultPromptLoader, e as DefaultSkillLoader, f as DesignKitLoaderOptions, h as DoneCheckResult, i as DoneConditionChecker, I as IntelligentCompactor, j as IntelligentCompactorOptions, P as PersistedActiveKit, k as PromptLoaderOptions, S as SelectiveCompactor, l as SelectiveCompactorOptions, m as SkillLoaderOptions, n as StrategyCompactorOptions, _ as _resetDesignKitLoaderMemo, o as _resetDesignRulesCache, p as activateDesign, r as buildGoalPreamble, s as clearActiveKit, t as clearPersistedActiveKit, u as createStrategyCompactor, v as designProjectDir, w as detectFrontendFile, x as detectFrontendIntent, y as getDesignKitLoader, z as getDesignState, B as installDesignStudioMiddleware, E as loadActiveKit, F as loadProjectDesignRules, G as makeAutonomyPromptContributor, H as makeDesignDetectToolCallMiddleware, J as makeDesignDetectUserInputMiddleware, K as makeDesignStudioRequestMiddleware, M as recordKitChoice, O as renderPrompt, Q as resolveBundledDesignKitsDir, R as setActiveKit } from '../strategy-compactor-Bt_ZH6R0.js';
2
- import { P as Provider, a as ReasoningConfig, o as Capabilities, c as Request } from '../context-DPlA6kid.js';
3
- import { e as BrainDecision, h as BrainDecisionRequest, B as BrainArbiter } from '../brain-CCfuEOdp.js';
4
- export { C as CompactorOptions, h as DefaultErrorHandler, i as DefaultRetryPolicy, E as EternalAutonomyEngine, k as EternalAutonomyOptions, l as EternalEngineState, H as HybridCompactor, I as IterationStage, P as ParallelEngineState, m as ParallelEternalEngine, n as ParallelEternalOptions, o as ParallelIterationStage, T as ToolExecutor } from '../tool-executor-SVFq7IOR.js';
5
- import { N as ModelRuntimeConfig } from '../config-DAOjriz9.js';
6
- import '../pipeline-CEjBjzVA.js';
7
- import '../mailbox-types-DTl7bRH3.js';
8
- import '../session-event-bridge-DG94B3Bk.js';
9
- import '../compactor-D3BGw26y.js';
10
- import '../agent-subagent-runner-BimKihiC.js';
11
- import '../index-DJXj-dcr.js';
1
+ export { A as AutoCompactionMiddleware, a as AutonomousRunner, b as AutonomousRunnerOptions, c as AutonomyPromptContributorOptions, C as CompactorStrategy, U as ContextWindowBudgetSnapshot, D as DefaultDesignKitLoader, d as DefaultPromptLoader, e as DefaultSkillLoader, f as DesignKitLoaderOptions, h as DoneCheckResult, i as DoneConditionChecker, I as IntelligentCompactor, j as IntelligentCompactorOptions, P as PersistedActiveKit, k as PromptLoaderOptions, S as SelectiveCompactor, l as SelectiveCompactorOptions, m as SkillLoaderOptions, n as StrategyCompactorOptions, _ as _resetDesignKitLoaderMemo, o as _resetDesignRulesCache, p as activateDesign, r as buildGoalPreamble, s as clearActiveKit, t as clearPersistedActiveKit, u as createStrategyCompactor, v as designProjectDir, w as detectFrontendFile, x as detectFrontendIntent, y as getDesignKitLoader, z as getDesignState, B as installDesignStudioMiddleware, E as loadActiveKit, F as loadProjectDesignRules, G as makeAutonomyPromptContributor, H as makeDesignDetectToolCallMiddleware, J as makeDesignDetectUserInputMiddleware, K as makeDesignStudioRequestMiddleware, M as recordKitChoice, O as renderPrompt, Q as resolveBundledDesignKitsDir, R as setActiveKit } from '../strategy-compactor-CQwhbErd.js';
2
+ import { P as Provider, a as ReasoningConfig, r as Capabilities, c as Request } from '../tool-BkOgs_KL.js';
3
+ import { e as BrainDecision, h as BrainDecisionRequest, B as BrainArbiter } from '../events-Bs2fmldo.js';
4
+ export { C as CompactorOptions, h as DefaultErrorHandler, i as DefaultRetryPolicy, E as EternalAutonomyEngine, k as EternalAutonomyOptions, l as EternalEngineState, H as HybridCompactor, I as IterationStage, P as ParallelEngineState, m as ParallelEternalEngine, n as ParallelEternalOptions, o as ParallelIterationStage, T as ToolExecutor } from '../tool-executor-SiE1wlZo.js';
5
+ import { h as ModelRuntimeConfig } from '../config-Cr3312zc.js';
6
+ import '../pipeline-BwAP21_4.js';
7
+ import '../mailbox-types-BGZWrYTJ.js';
8
+ import '../session-event-bridge-CqdiGnfU.js';
9
+ import '../compactor-U3agvUIG.js';
10
+ import '../agent-subagent-runner-PoqNKiR4.js';
11
+ import '../index-kidebiDh.js';
12
12
  import '../logger-B63L5bTg.js';
13
+ import '../permission-Dx6dIqS2.js';
13
14
  import '../observability-D-HZN_mF.js';
14
- import '../permission-DbsGOA1C.js';
15
- import '../retry-policy-Git9WF6d.js';
16
- import '../selector-Cq72C0Oy.js';
17
- import '../skill-DGIXCtdv.js';
18
- import '../wstack-paths-_NrRovdr.js';
15
+ import '../secret-scrubber-3MHDDAtm.js';
16
+ import '../retry-policy-D4feSLk3.js';
17
+ import '../selector-Dy-MzKp1.js';
18
+ import '../skill-DHniprNl.js';
19
+ import '../wstack-paths-CMl_cYgq.js';
19
20
  import '../prompt-DLd35n4Q.js';
20
- import '../goal-store-C1uH4srH.js';
21
- import '../multi-agent-coordinator-CcrcncvG.js';
21
+ import '../goal-store-C4F6DjC0.js';
22
+ import '../multi-agent-coordinator-CieyUoEL.js';
22
23
  import 'node:events';
23
24
 
24
25
  /**
@@ -132,6 +133,13 @@ interface ResolvedModelRuntime {
132
133
  /** Human-readable warnings for settings that were ignored for this model. */
133
134
  warnings: string[];
134
135
  }
136
+ /**
137
+ * Overlay a scoped runtime override (for example a subagent role matrix entry)
138
+ * on top of the session-wide runtime settings. Nested objects merge so a role
139
+ * can set only `reasoning.effort` without losing the leader's cache TTL or
140
+ * other gated parameters.
141
+ */
142
+ declare function mergeModelRuntime(base: ModelRuntimeConfig | undefined, override: ModelRuntimeConfig | undefined): ModelRuntimeConfig | undefined;
135
143
  /**
136
144
  * Resolve user-facing runtime settings into request fields for a specific
137
145
  * model capability profile. Pure function — safe to unit-test without a
@@ -170,4 +178,4 @@ interface ModelRuntimeMiddlewareOptions {
170
178
  */
171
179
  declare function applyModelRuntime(req: Request, opts: ModelRuntimeMiddlewareOptions): Request;
172
180
 
173
- export { type AutonomyBrainOptions, type BrainAutoRisk, type ModelRuntimeMiddlewareOptions, type ResolvedModelRuntime, type TieredBrainArbiterOptions, applyModelRuntime, createAutonomyBrain, createTieredBrainArbiter, formatDecisionSummary, resolveCacheForRequest, resolveModelRuntime, resolveReasoningForRequest };
181
+ export { type AutonomyBrainOptions, type BrainAutoRisk, type ModelRuntimeMiddlewareOptions, type ResolvedModelRuntime, type TieredBrainArbiterOptions, applyModelRuntime, createAutonomyBrain, createTieredBrainArbiter, formatDecisionSummary, mergeModelRuntime, resolveCacheForRequest, resolveModelRuntime, resolveReasoningForRequest };