@wrongstack/core 0.313.1 → 0.316.1

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 (290) hide show
  1. package/dist/chronicle/index.js +31 -31
  2. package/dist/chronicle/legacy-journal-import.d.ts +0 -6
  3. package/dist/chronicle/metrics-ingest.d.ts +14 -0
  4. package/dist/chronicle/metrics-schema.d.ts +10 -1
  5. package/dist/chronicle/metrics-store.d.ts +20 -2
  6. package/dist/chronicle/project-server.js +39 -31
  7. package/dist/chronicle/sink.d.ts +13 -0
  8. package/dist/chronicle/sqlite-journal.d.ts +20 -2
  9. package/dist/{chunk-WOEZV3Q4.js → chunk-25LSLC3G.js} +2 -1
  10. package/dist/{chunk-AI4LLQ2U.js → chunk-27QIURLN.js} +229 -12
  11. package/dist/{chunk-I45KAW2N.js → chunk-3AGWVSS7.js} +38 -450
  12. package/dist/chunk-3BDV7RL3.js +211 -0
  13. package/dist/{chunk-NFAYHPRH.js → chunk-3ECENVHL.js} +10 -8
  14. package/dist/{chunk-FW5LDDMJ.js → chunk-45WI72ZB.js} +1576 -1156
  15. package/dist/{chunk-AT4V4XGI.js → chunk-4BMVPOHO.js} +539 -313
  16. package/dist/{chunk-YBUJCZ57.js → chunk-4I7HGVVA.js} +17 -5
  17. package/dist/{chunk-JVGPR3TS.js → chunk-4LCZVJVF.js} +7 -55
  18. package/dist/{chunk-4ZHTKJHM.js → chunk-4SJNS7OB.js} +36 -2
  19. package/dist/{chunk-AD7ZFZCS.js → chunk-5BMIE7QG.js} +3 -3
  20. package/dist/{chunk-IQ35HMQL.js → chunk-5YPSXQXM.js} +71 -24
  21. package/dist/chunk-6FHWXLPT.js +10 -0
  22. package/dist/{chunk-FIV4IJL7.js → chunk-6H5GEOET.js} +163 -20
  23. package/dist/{chunk-VB3H5WWB.js → chunk-6NWEVFEL.js} +2 -2
  24. package/dist/{chunk-E6I5RXVK.js → chunk-AYW5YINX.js} +2 -2
  25. package/dist/{chunk-DEIQMBD2.js → chunk-B7F4WVP4.js} +2 -2
  26. package/dist/{chunk-XQ2XGIBF.js → chunk-BPBKKBUK.js} +6 -7
  27. package/dist/{chunk-K4YUNKU7.js → chunk-BYD345OX.js} +2 -2
  28. package/dist/{chunk-LZDDLNCZ.js → chunk-C27KDLOX.js} +4 -4
  29. package/dist/{chunk-6AKOTGLM.js → chunk-CU546ESW.js} +7 -7
  30. package/dist/{chunk-ZZ4V3WIZ.js → chunk-DLHHXUAM.js} +10 -1
  31. package/dist/{chunk-BAKVJLEV.js → chunk-DOTHQSJ2.js} +28 -16
  32. package/dist/{chunk-KBZGE6LN.js → chunk-DYLPMV4Q.js} +4 -3
  33. package/dist/{chunk-52RTVH4M.js → chunk-F3JWNST7.js} +2 -2
  34. package/dist/{chunk-WEBMSQP2.js → chunk-FC2ZGRF3.js} +21 -4
  35. package/dist/{chunk-FHAMQS7Q.js → chunk-FCBTO76Z.js} +76 -146
  36. package/dist/{chunk-4LJJYBAU.js → chunk-FHZVFYSL.js} +9 -1
  37. package/dist/{chunk-W4A6QA3D.js → chunk-FWNLEZYG.js} +4 -3
  38. package/dist/{chunk-OJZEX73F.js → chunk-GDQ7CZRQ.js} +5 -1
  39. package/dist/{chunk-QVOVMXJR.js → chunk-GJJGJB2R.js} +32 -9
  40. package/dist/{chunk-4XV6IR37.js → chunk-HI3JGZR2.js} +7 -6
  41. package/dist/{chunk-FSWCWSTS.js → chunk-HMLIGAU7.js} +26 -26
  42. package/dist/{chunk-PFXFQQRT.js → chunk-HXKZ7OBQ.js} +7 -43
  43. package/dist/{chunk-2FQL4PDC.js → chunk-I7DALG7J.js} +5 -5
  44. package/dist/{chunk-GM54GJBU.js → chunk-IRUTEHCE.js} +3 -3
  45. package/dist/{chunk-TYW2GI5I.js → chunk-J2WRWR37.js} +40 -13
  46. package/dist/{chunk-ZEHUCJHY.js → chunk-JFPJ6LLQ.js} +2 -2
  47. package/dist/chunk-JMULFFLN.js +9 -0
  48. package/dist/{chunk-RD6DEE36.js → chunk-JO4MGB6Z.js} +94 -8
  49. package/dist/{chunk-5DSMEVA4.js → chunk-K6BXGITA.js} +7 -7
  50. package/dist/{chunk-O74MJHXU.js → chunk-KZMSZV32.js} +2 -2
  51. package/dist/{chunk-GFJOMSHG.js → chunk-LA7CLDRW.js} +6 -2
  52. package/dist/{chunk-M2WF6AXG.js → chunk-LSMMOS2Z.js} +7 -3
  53. package/dist/{chunk-ASX6AW36.js → chunk-LXWCMQNJ.js} +3 -3
  54. package/dist/{chunk-WZO23AWO.js → chunk-M27LIEKV.js} +72 -22
  55. package/dist/{chunk-JTHKOYWU.js → chunk-MJPHJRAL.js} +15 -15
  56. package/dist/{chunk-G5AAKEEZ.js → chunk-MTL4O5YR.js} +5 -5
  57. package/dist/chunk-NHJ75HXY.js +1 -0
  58. package/dist/{chunk-ZYU2YOJ6.js → chunk-NIOAGFPB.js} +29 -15
  59. package/dist/{chunk-Y2GE5TSI.js → chunk-NS52ISWS.js} +2 -2
  60. package/dist/{chunk-UIWONWVG.js → chunk-NSOFPKGT.js} +541 -148
  61. package/dist/{chunk-RCQYT2I4.js → chunk-NVIZG63R.js} +2 -2
  62. package/dist/{chunk-EPC3GZD4.js → chunk-OOYZPOXM.js} +2 -2
  63. package/dist/{chunk-7ZHZE5EO.js → chunk-OSGLYW5J.js} +2 -2
  64. package/dist/{chunk-CE4ZOCOI.js → chunk-PFCMSSUF.js} +9 -9
  65. package/dist/{chunk-GFXZTHNI.js → chunk-PGRVXIMY.js} +5 -5
  66. package/dist/{chunk-JJPMWPB6.js → chunk-PISBFBJN.js} +6 -6
  67. package/dist/chunk-POOOIWE5.js +9 -0
  68. package/dist/{chunk-5RP3QTRL.js → chunk-PQNS3U7Z.js} +20 -3
  69. package/dist/{chunk-3E244UDA.js → chunk-QSTSJOCK.js} +52 -6
  70. package/dist/{chunk-YUPMXOGP.js → chunk-RFQMOKWK.js} +3 -3
  71. package/dist/chunk-RTOTNK3P.js +484 -0
  72. package/dist/{chunk-SN2DQRL6.js → chunk-RXKSDUAU.js} +7 -7
  73. package/dist/{chunk-T3KGZBU5.js → chunk-S45JPKQN.js} +189 -43
  74. package/dist/{chunk-YNCVSFGF.js → chunk-SAFHACFA.js} +4 -1
  75. package/dist/{chunk-KI4L2DUL.js → chunk-TCCHINEF.js} +114 -19
  76. package/dist/{chunk-AWNQ6ED6.js → chunk-THEGTRAG.js} +7 -2
  77. package/dist/{chunk-2KKODIQU.js → chunk-TR4LQE7L.js} +15 -15
  78. package/dist/{chunk-GPQ3NJPR.js → chunk-TWJMGXCI.js} +3 -3
  79. package/dist/{chunk-H72H4XDU.js → chunk-U45AXT5D.js} +9 -9
  80. package/dist/{chunk-62V2AFVG.js → chunk-U4FWBSO3.js} +160 -73
  81. package/dist/{chunk-A455ATZB.js → chunk-UBGDX6FI.js} +8 -1
  82. package/dist/chunk-UJILKYES.js +75 -0
  83. package/dist/{chunk-KSJ5UTP7.js → chunk-ULMAQV3T.js} +84 -4
  84. package/dist/{chunk-CB2HFKTP.js → chunk-VVBP6KGT.js} +1 -1
  85. package/dist/{chunk-RPOA7IAE.js → chunk-W5VITDM2.js} +43 -25
  86. package/dist/{chunk-QRTG4XTI.js → chunk-WAHQVNWT.js} +7 -1
  87. package/dist/{chunk-SQP64RCS.js → chunk-WGGYRBXH.js} +3019 -2976
  88. package/dist/{chunk-K3G6JBUC.js → chunk-WLYKU45P.js} +679 -141
  89. package/dist/chunk-WP7BVANJ.js +53 -0
  90. package/dist/{chunk-GAZEWQEZ.js → chunk-XF4VUMKW.js} +2 -2
  91. package/dist/{chunk-PAAWLLZX.js → chunk-Y5YXDM7D.js} +2 -2
  92. package/dist/{chunk-65RDIOR2.js → chunk-YOPAUVU4.js} +162 -44
  93. package/dist/{chunk-FFSX2QDQ.js → chunk-YPT4A46F.js} +3 -3
  94. package/dist/chunk-YWXT3JNM.js +425 -0
  95. package/dist/{chunk-EFEHDQGY.js → chunk-ZHZ2Y2DH.js} +64 -10
  96. package/dist/{chunk-CQQL4ZOQ.js → chunk-ZT7JNIGX.js} +4 -3
  97. package/dist/coordination/agent-monitor.d.ts +9 -1
  98. package/dist/coordination/agent-subagent-runner.d.ts +1 -1
  99. package/dist/coordination/agents/agent-prompts.d.ts +8 -0
  100. package/dist/coordination/agents/index.d.ts +33 -1
  101. package/dist/coordination/agents/index.js +52 -22
  102. package/dist/coordination/agents/phase3-wave1-platform.d.ts +1 -3
  103. package/dist/coordination/agents/phase3-wave2-meta.d.ts +1 -3
  104. package/dist/coordination/agents/phase8-wave3-products.d.ts +1 -3
  105. package/dist/coordination/agents/phase9-wave4-platform-meta.d.ts +1 -3
  106. package/dist/coordination/agents/project-agent-identity.d.ts +11 -11
  107. package/dist/coordination/agents/types.d.ts +13 -2
  108. package/dist/coordination/brain-monitor.d.ts +30 -7
  109. package/dist/coordination/collab-debug.d.ts +1 -1
  110. package/dist/coordination/collab-pause.d.ts +1 -1
  111. package/dist/coordination/delegate-tool.d.ts +7 -5
  112. package/dist/coordination/director-kanban-queue-helpers.d.ts +1 -0
  113. package/dist/coordination/director-options.d.ts +7 -0
  114. package/dist/coordination/director-spawn-model.d.ts +17 -0
  115. package/dist/coordination/director-tools.d.ts +2 -2
  116. package/dist/coordination/director.d.ts +12 -0
  117. package/dist/coordination/dispatcher.d.ts +8 -0
  118. package/dist/coordination/fleet-bus.d.ts +35 -4
  119. package/dist/coordination/fleet-supervisor.d.ts +10 -2
  120. package/dist/coordination/fleet.d.ts +16 -7
  121. package/dist/coordination/index.d.ts +4 -0
  122. package/dist/coordination/index.js +86 -49
  123. package/dist/coordination/kanban-dispatch-port.d.ts +2 -2
  124. package/dist/coordination/mailbox-http-router.d.ts +4 -3
  125. package/dist/coordination/mailbox-http-validation.d.ts +1 -1
  126. package/dist/coordination/mailbox-project-server.js +15 -15
  127. package/dist/coordination/mailbox-types.d.ts +24 -6
  128. package/dist/coordination/model-tier-leader.d.ts +122 -0
  129. package/dist/coordination/model-tier.d.ts +122 -0
  130. package/dist/coordination/multi-agent-coordinator.d.ts +24 -0
  131. package/dist/coordination/origin-session.d.ts +16 -0
  132. package/dist/coordination/provider-status-tracker.d.ts +37 -5
  133. package/dist/coordination/session-note-hub.d.ts +44 -0
  134. package/dist/coordination/session-note-tool.d.ts +10 -0
  135. package/dist/core/agent.d.ts +1 -1
  136. package/dist/core/context.d.ts +22 -3
  137. package/dist/core/index.d.ts +2 -0
  138. package/dist/core/index.js +130 -38
  139. package/dist/core/request-conversation-binding.d.ts +37 -0
  140. package/dist/core/session-notes.d.ts +25 -0
  141. package/dist/core/system-prompt-builder.d.ts +11 -2
  142. package/dist/core/system-prompt-variants.d.ts +78 -0
  143. package/dist/design/index.js +3 -3
  144. package/dist/execution/auto-compaction-middleware.d.ts +11 -0
  145. package/dist/execution/autonomy-brain.d.ts +2 -1
  146. package/dist/execution/autonomy-prompt-contributor.d.ts +7 -2
  147. package/dist/execution/compaction-core.d.ts +4 -4
  148. package/dist/execution/eternal-autonomy.d.ts +1 -1
  149. package/dist/execution/index.js +138 -129
  150. package/dist/execution/model-runtime.d.ts +0 -7
  151. package/dist/execution/parallel-eternal-engine.d.ts +7 -7
  152. package/dist/extension/index.js +3 -3
  153. package/dist/goal/index.js +6 -6
  154. package/dist/hooks/index.js +3 -3
  155. package/dist/hq/index.js +14 -12
  156. package/dist/hq/persistence/event-log.d.ts +0 -1
  157. package/dist/hq/persistence.d.ts +4 -4
  158. package/dist/hq/publisher.d.ts +2 -0
  159. package/dist/index.d.ts +14 -11
  160. package/dist/index.js +728 -635
  161. package/dist/infrastructure/index.d.ts +4 -4
  162. package/dist/infrastructure/index.js +281 -260
  163. package/dist/infrastructure/token-counter.d.ts +9 -0
  164. package/dist/kernel/events/agent-events.d.ts +77 -3
  165. package/dist/kernel/events/brain-events.d.ts +12 -0
  166. package/dist/kernel/events/provider-events.d.ts +7 -1
  167. package/dist/kernel/events/session-events.d.ts +14 -0
  168. package/dist/kernel/events/tool-events.d.ts +13 -0
  169. package/dist/kernel/index.js +4 -4
  170. package/dist/mailbox-attach.d.ts +1 -1
  171. package/dist/models/index.js +10 -9
  172. package/dist/observability/event-bridge.d.ts +25 -5
  173. package/dist/observability/index.d.ts +9 -8
  174. package/dist/observability/index.js +459 -351
  175. package/dist/observability/tool-usage-source.d.ts +65 -0
  176. package/dist/plugin/index.d.ts +5 -0
  177. package/dist/plugin/index.js +66 -50
  178. package/dist/plugins/auto-review-plugin.d.ts +3 -2
  179. package/dist/plugins/review-finding-commands.d.ts +0 -8
  180. package/dist/{review-finding-store-DKAV3AS6.js → plugins/review-finding-store.js} +7 -6
  181. package/dist/plugins/review-finding-types.js +19 -0
  182. package/dist/plugins/review-report-integration.js +21 -0
  183. package/dist/{review-report-store-OWY3EC3N.js → plugins/review-report-store.js} +7 -6
  184. package/dist/plugins/review-report-types.js +13 -0
  185. package/dist/prompts/index.js +5 -5
  186. package/dist/registry/index.js +3 -3
  187. package/dist/registry/tool-registry.d.ts +59 -9
  188. package/dist/{registry-R23UBE7H.js → registry-7N4O3E7W.js} +5 -5
  189. package/dist/security/capabilities.d.ts +6 -0
  190. package/dist/security/file-permissions.d.ts +1 -1
  191. package/dist/security/index.js +47 -33
  192. package/dist/security/permission-policy.d.ts +12 -1
  193. package/dist/security/secret-scrubber.d.ts +15 -0
  194. package/dist/session-catalog/index.d.ts +1 -0
  195. package/dist/session-catalog/index.js +19 -14
  196. package/dist/session-catalog/project-server.js +30 -13
  197. package/dist/session-catalog/protocol.d.ts +32 -1
  198. package/dist/session-catalog/registry.d.ts +17 -1
  199. package/dist/session-catalog/session-agents.d.ts +56 -0
  200. package/dist/session-catalog/store-rebuild.d.ts +14 -0
  201. package/dist/session-catalog/store-schema.d.ts +26 -0
  202. package/dist/session-catalog/store.d.ts +27 -1
  203. package/dist/session-note-attach.d.ts +9 -0
  204. package/dist/skills/index.js +5 -5
  205. package/dist/statusline/index.d.ts +43 -0
  206. package/dist/statusline/index.js +102 -0
  207. package/dist/storage/board-store-port.d.ts +2 -2
  208. package/dist/storage/config-loader/in-project-policy.d.ts +29 -0
  209. package/dist/storage/config-loader.d.ts +3 -2
  210. package/dist/storage/file-session-writer.d.ts +4 -2
  211. package/dist/storage/goal-coordination.d.ts +6 -1
  212. package/dist/storage/goal-kanban.d.ts +4 -1
  213. package/dist/storage/index.d.ts +12 -4
  214. package/dist/storage/index.js +76 -61
  215. package/dist/storage/input-history-store.d.ts +2 -4
  216. package/dist/storage/memory-curator.d.ts +133 -0
  217. package/dist/storage/session-agent-attribution.d.ts +39 -0
  218. package/dist/storage/session-doctor.d.ts +109 -0
  219. package/dist/storage/session-event-bridge.d.ts +5 -7
  220. package/dist/storage/session-outcome.d.ts +42 -0
  221. package/dist/storage/session-recovery.d.ts +55 -0
  222. package/dist/storage/session-store/load-session-data.d.ts +11 -0
  223. package/dist/storage/session-store/prune-helpers.d.ts +1 -1
  224. package/dist/storage/session-store/resume-session.d.ts +0 -2
  225. package/dist/storage/session-store/types.d.ts +8 -0
  226. package/dist/storage/session-store.d.ts +3 -3
  227. package/dist/storage/session-summary-tracker.d.ts +8 -1
  228. package/dist/storage/session-write-buffer.d.ts +18 -0
  229. package/dist/storage/session-writer-truncate.d.ts +2 -0
  230. package/dist/tasking/index.js +2 -2
  231. package/dist/tools/fallback-manage-tools.d.ts +6 -4
  232. package/dist/tools/index.js +21 -21
  233. package/dist/tools/model-tier-set-tool.d.ts +66 -0
  234. package/dist/types/agent-bridge.d.ts +2 -1
  235. package/dist/types/config/mcp-features.d.ts +7 -0
  236. package/dist/types/config/model-tiers.d.ts +148 -0
  237. package/dist/types/config/root.d.ts +9 -0
  238. package/dist/types/config/tools.d.ts +73 -0
  239. package/dist/types/config.d.ts +1 -0
  240. package/dist/types/context.d.ts +2 -0
  241. package/dist/types/default-config.d.ts +6 -0
  242. package/dist/types/errors.d.ts +2 -1
  243. package/dist/types/index.d.ts +11 -9
  244. package/dist/types/index.js +25 -15
  245. package/dist/types/multi-agent.d.ts +43 -0
  246. package/dist/types/plugin.d.ts +1 -1
  247. package/dist/types/provider.d.ts +15 -0
  248. package/dist/types/runtime-capability-manifest.d.ts +1 -1
  249. package/dist/types/secret-scrubber.d.ts +15 -0
  250. package/dist/types/session-markers.d.ts +37 -10
  251. package/dist/types/session-markers.js +1 -1
  252. package/dist/types/session-timeline.d.ts +197 -0
  253. package/dist/types/session-timeline.js +12 -0
  254. package/dist/types/session.d.ts +172 -11
  255. package/dist/types/system-prompt.d.ts +27 -0
  256. package/dist/utils/config-backup.d.ts +9 -1
  257. package/dist/utils/heap-watchdog.js +2 -2
  258. package/dist/utils/index.js +50 -48
  259. package/dist/utils/message-invariants.d.ts +4 -1
  260. package/dist/utils/regex-guard.d.ts +1 -1
  261. package/dist/utils/socket-path.d.ts +1 -1
  262. package/dist/utils/token-estimate.d.ts +6 -2
  263. package/dist/utils/wstack-paths.d.ts +2 -0
  264. package/dist/wiring/proxy-rewrite.d.ts +28 -0
  265. package/dist/wiring/proxy-rewrite.js +7 -1
  266. package/dist/worktree/index.js +2 -2
  267. package/instructions/agents/explore-companion.md +45 -18
  268. package/instructions/agents/memory-curator.md +34 -22
  269. package/instructions/coordination/director-preamble.md +12 -7
  270. package/instructions/coordination/subagent-baseline.md +26 -5
  271. package/instructions/leader-after-task.md +4 -1
  272. package/instructions/llm/chimera-review.md +30 -9
  273. package/instructions/llm/memory-curator.md +31 -0
  274. package/instructions/sections/tool/delegation-compact.md +2 -0
  275. package/instructions/sections/tool/delegation-full.md +5 -1
  276. package/instructions/sections/tool/mailbox-compact.md +5 -1
  277. package/instructions/sections/tool/mailbox-full.md +3 -0
  278. package/instructions/sections/tool/session-note-compact.md +3 -0
  279. package/instructions/sections/tool/session-note-full.md +15 -0
  280. package/instructions/system-lite.md +9 -4
  281. package/instructions/system-pro.md +66 -143
  282. package/instructions/system.md +73 -175
  283. package/package.json +32 -4
  284. package/dist/chunk-2BUUIMQB.js +0 -225
  285. package/dist/chunk-FAYRX2AD.js +0 -13
  286. package/dist/chunk-H5E77KUJ.js +0 -15
  287. package/dist/chunk-M7BS2K6U.js +0 -1
  288. package/dist/coordination/agents.d.ts +0 -8
  289. package/dist/coordination/transport.d.ts +0 -2
  290. package/dist/storage/session-writer/session-writer-summary-tracker.d.ts +0 -28
package/dist/index.js CHANGED
@@ -1,46 +1,12 @@
1
- import {
2
- ReplayProviderRunner
3
- } from "./chunk-BJHVULHO.js";
4
- import {
5
- HQ_CLI_DEFAULT_HOST,
6
- HQ_COMMAND_TYPES,
7
- HQ_EVENT_LOG_PRESETS,
8
- HqAlertEngine,
9
- HqBootstrapCodeStore,
10
- HqCommandAuditLog,
11
- HqEventLog,
12
- HqInsecureExposureError,
13
- HqKanbanStore,
14
- HqSimpleLog,
15
- HqSnapshotStore,
16
- HqTimeseriesStore,
17
- assessHqExposure,
18
- buildTranscriptFromEvents,
19
- createBridgeContext,
20
- createHqPersistence,
21
- hqEventLogPresetFields,
22
- isLoopbackHost,
23
- isOpenMode,
24
- mapSessionEventToEntries,
25
- mergeToolResults,
26
- startBrainTelemetryBridge,
27
- startCostTelemetryBridge,
28
- startFleetTelemetryBridge,
29
- startSessionTelemetryBridge,
30
- startToolTelemetryBridge,
31
- startWorktreeTelemetryBridge,
32
- toAlertMessage,
33
- validateHqCommand
34
- } from "./chunk-2KKODIQU.js";
35
1
  import "./chunk-GTCU6DZ3.js";
36
2
  import {
37
3
  PromptInstaller,
38
4
  PromptManifestStore
39
- } from "./chunk-JJPMWPB6.js";
5
+ } from "./chunk-PISBFBJN.js";
40
6
  import {
41
7
  WorktreeManager,
42
8
  assertSafePath
43
- } from "./chunk-RCQYT2I4.js";
9
+ } from "./chunk-NVIZG63R.js";
44
10
  import {
45
11
  CheckpointManager,
46
12
  GoalPlanner,
@@ -50,11 +16,11 @@ import {
50
16
  PhaseOrchestrator,
51
17
  PhaseStore,
52
18
  createGoalRunnerFromTaskGraph
53
- } from "./chunk-XQ2XGIBF.js";
19
+ } from "./chunk-BPBKKBUK.js";
54
20
  import {
55
21
  DefaultTaskStore,
56
22
  TaskTracker
57
- } from "./chunk-K4YUNKU7.js";
23
+ } from "./chunk-BYD345OX.js";
58
24
  import {
59
25
  HookRegistry,
60
26
  HookRunner,
@@ -62,7 +28,10 @@ import {
62
28
  hookMatcherMatches,
63
29
  runShellHook,
64
30
  shellHooksEqual
65
- } from "./chunk-GPQ3NJPR.js";
31
+ } from "./chunk-TWJMGXCI.js";
32
+ import {
33
+ ReplayProviderRunner
34
+ } from "./chunk-BJHVULHO.js";
66
35
  import {
67
36
  AnnotationsStore,
68
37
  CORE_RECONSTRUCT_EVENTS,
@@ -85,6 +54,7 @@ import {
85
54
  STANDARD_AUDIT_EVENTS,
86
55
  SessionAnalyzer,
87
56
  SessionMemoryConsolidator,
57
+ SessionMemoryCurator,
88
58
  SessionRegistry,
89
59
  ToolAuditLog,
90
60
  addPlanItem,
@@ -95,6 +65,7 @@ import {
95
65
  clearPlan,
96
66
  createSessionEventBridge,
97
67
  deriveTodosFromPlanItem,
68
+ diagnoseSessions,
98
69
  emptyPlan,
99
70
  emptyTaskFile,
100
71
  formatPlan,
@@ -110,6 +81,7 @@ import {
110
81
  parseEntries,
111
82
  readProviderSnapshot,
112
83
  removePlanItem,
84
+ repairSessionSummaries,
113
85
  resolveAuditLevel,
114
86
  resolveSessionLoggingConfig,
115
87
  retainPersistedQueueItems,
@@ -119,8 +91,10 @@ import {
119
91
  saveTasks,
120
92
  saveTodosCheckpoint,
121
93
  setPlanItemStatus,
122
- watchProviderConfig
123
- } from "./chunk-K3G6JBUC.js";
94
+ stampAgentId,
95
+ watchProviderConfig,
96
+ withAgentAttribution
97
+ } from "./chunk-WLYKU45P.js";
124
98
  import {
125
99
  hashRequest,
126
100
  stableStringify
@@ -136,17 +110,17 @@ import {
136
110
  assertProjectRootOutsideStateDir,
137
111
  bootConfig,
138
112
  flagsToConfigPatch
139
- } from "./chunk-JTHKOYWU.js";
113
+ } from "./chunk-MJPHJRAL.js";
140
114
  import {
141
115
  CONFIG_BEHAVIOR_DEFAULTS,
142
116
  DefaultConfigLoader,
143
117
  repairConfigDefaults
144
- } from "./chunk-IQ35HMQL.js";
118
+ } from "./chunk-5YPSXQXM.js";
145
119
  import {
146
120
  encryptedPrefixForVersion,
147
121
  noOpVault,
148
122
  parseEncryptedVersion
149
- } from "./chunk-6AKOTGLM.js";
123
+ } from "./chunk-CU546ESW.js";
150
124
  import {
151
125
  NotifierImpl
152
126
  } from "./chunk-PHH7LD45.js";
@@ -171,16 +145,47 @@ import {
171
145
  createMcpUseTool,
172
146
  createOneShotLLMTool,
173
147
  createPluginManagerTool
174
- } from "./chunk-FIV4IJL7.js";
175
- import "./chunk-ZEHUCJHY.js";
148
+ } from "./chunk-6H5GEOET.js";
149
+ import "./chunk-JFPJ6LLQ.js";
176
150
  import {
177
151
  allServers
178
152
  } from "./chunk-FXQLIX3K.js";
153
+ import {
154
+ HQ_CLI_DEFAULT_HOST,
155
+ HQ_COMMAND_TYPES,
156
+ HQ_EVENT_LOG_PRESETS,
157
+ HqAlertEngine,
158
+ HqBootstrapCodeStore,
159
+ HqCommandAuditLog,
160
+ HqEventLog,
161
+ HqInsecureExposureError,
162
+ HqKanbanStore,
163
+ HqSimpleLog,
164
+ HqSnapshotStore,
165
+ HqTimeseriesStore,
166
+ assessHqExposure,
167
+ buildTranscriptFromEvents,
168
+ createBridgeContext,
169
+ createHqPersistence,
170
+ hqEventLogPresetFields,
171
+ isLoopbackHost,
172
+ isOpenMode,
173
+ mapSessionEventToEntries,
174
+ mergeToolResults,
175
+ startBrainTelemetryBridge,
176
+ startCostTelemetryBridge,
177
+ startFleetTelemetryBridge,
178
+ startSessionTelemetryBridge,
179
+ startToolTelemetryBridge,
180
+ startWorktreeTelemetryBridge,
181
+ toAlertMessage,
182
+ validateHqCommand
183
+ } from "./chunk-TR4LQE7L.js";
179
184
  import {
180
185
  ProviderRegistry,
181
186
  SlashCommandRegistry,
182
187
  ToolRegistry
183
- } from "./chunk-KI4L2DUL.js";
188
+ } from "./chunk-TCCHINEF.js";
184
189
  import "./chunk-XQ2ECNK3.js";
185
190
  import {
186
191
  CHIMERA_REVIEW_PROMPT,
@@ -195,21 +200,13 @@ import {
195
200
  createSyncPlugin,
196
201
  definePlugin,
197
202
  executeFindingCommand,
198
- integrateFindings,
199
203
  loadPlugins,
200
204
  parseReviewSeverity,
201
- persistReviewReport,
202
205
  resolveChimeraConfig,
203
206
  selectRoundRobinReviewerAssignment,
204
- syncReportCompletion,
205
- syncReportReopen,
206
207
  transitionReport,
207
208
  unloadPlugins
208
- } from "./chunk-I45KAW2N.js";
209
- import {
210
- FINDING_STORE_FILE,
211
- JsonlFindingStore
212
- } from "./chunk-JVGPR3TS.js";
209
+ } from "./chunk-3AGWVSS7.js";
213
210
  import {
214
211
  DEFAULT_SKILLS_SH_URL,
215
212
  SkillInstaller,
@@ -224,7 +221,7 @@ import {
224
221
  parseSkillRef,
225
222
  validateSkillNameAvailable,
226
223
  writeSkeletonSkill
227
- } from "./chunk-SN2DQRL6.js";
224
+ } from "./chunk-RXKSDUAU.js";
228
225
  import {
229
226
  ALL_SYNC_CATEGORIES,
230
227
  CLOUD_SYNC_CONTRACT,
@@ -237,7 +234,7 @@ import {
237
234
  applyNamespacePayload,
238
235
  buildNamespacePayloads,
239
236
  stripSecretMaterial
240
- } from "./chunk-QVOVMXJR.js";
237
+ } from "./chunk-GJJGJB2R.js";
241
238
  import "./chunk-YY6APYUM.js";
242
239
  import {
243
240
  diffPluginConfig,
@@ -266,12 +263,12 @@ import {
266
263
  createChronicleProjectAccess,
267
264
  isChronicleProjectServerAvailable,
268
265
  resolveChronicleProjectServerOptions
269
- } from "./chunk-ASX6AW36.js";
266
+ } from "./chunk-LXWCMQNJ.js";
270
267
  import {
271
268
  childChronicleContext,
272
269
  createChronicleContext,
273
270
  startChronicleFileObserver
274
- } from "./chunk-62V2AFVG.js";
271
+ } from "./chunk-U4FWBSO3.js";
275
272
  import {
276
273
  CHRONICLE_FACET_FIELDS,
277
274
  CHRONICLE_PROJECT_SERVER_MAX_FRAME_CHARS,
@@ -289,168 +286,28 @@ import {
289
286
  findChroniclePartitions,
290
287
  isChronicleMetricsAvailable,
291
288
  resolveChronicleRuntimeLocation
292
- } from "./chunk-AT4V4XGI.js";
293
- import "./chunk-M7BS2K6U.js";
289
+ } from "./chunk-4BMVPOHO.js";
290
+ import "./chunk-NHJ75HXY.js";
294
291
  import {
295
292
  ProjectSessionRegistry,
296
293
  getProjectSessionRegistry,
297
294
  hasProjectSessionRegistry
298
- } from "./chunk-YBUJCZ57.js";
299
- import {
300
- SessionCatalogStore
301
- } from "./chunk-AI4LLQ2U.js";
302
- import {
303
- AutoCompactionMiddleware,
304
- BRAIN_EVALUATION_CASE_VERSION,
305
- BRAIN_RULE_PATTERN_MAX,
306
- BRAIN_RULE_SUBJECT_MAX,
307
- BrainCircuitBreaker,
308
- BrainDecisionCache,
309
- DefaultErrorHandler,
310
- DefaultSkillLoader,
311
- ENHANCE_BASE_TIMEOUT_MS,
312
- ENHANCE_MIN_RETRY_TIMEOUT_MS,
313
- HybridCompactor,
314
- IntelligentCompactor,
315
- SelectiveCompactor,
316
- applyModelRuntime,
317
- applyRule,
318
- assembleBrainTiers,
319
- brainCacheKey,
320
- brainTraceToEvaluationCase,
321
- buildBrainUserMessage,
322
- buildLosslessDigest,
323
- buildSmartDigest,
324
- compileBrainRules,
325
- completeBrainLlm,
326
- createAutonomyBrain,
327
- createBrainRuntime,
328
- createCachingBrainArbiter,
329
- createCouncilBrainArbiter,
330
- createRuleBrainArbiter,
331
- createStrategyCompactor,
332
- createTieredBrainArbiter,
333
- eliseOldToolResults,
334
- estimateMessages,
335
- evaluateBrainRules,
336
- extractText,
337
- findPreserveStart,
338
- formatDecisionSummary,
339
- hasTextContent,
340
- installSubagentAutoCompaction,
341
- mergeModelRuntime,
342
- nextEnhanceTimeout,
343
- parseOptionDecision,
344
- resolveBrainConfigDefaults,
345
- resolveCacheForRequest,
346
- resolveConfiguredRefinerRef,
347
- resolveEnhanceFallbackRef,
348
- resolveModelRuntime,
349
- resolveReasoningForRequest,
350
- ruleMatches,
351
- runBrainEvaluation,
352
- scoreMessage,
353
- validateBrainEvaluationCase
354
- } from "./chunk-SQP64RCS.js";
355
- import {
356
- applyGoalDeliverableCompletions,
357
- boardStore,
358
- coordinateGoalIteration,
359
- createGoalKanbanBoard,
360
- deleteGoalKanbanBoard,
361
- findGoalBoardByTag,
362
- findGoalKanbanBoard,
363
- formatGoalAutonomyChoice,
364
- formatGoalEvent,
365
- formatGoalKanbanPreview,
366
- isGoalDeliverableComplete,
367
- parseAutonomyChoice,
368
- parseCompletedGoalDeliverables,
369
- recomputeGoalProgress,
370
- setBoardStorePort,
371
- stripGoalDeliverableMarker
372
- } from "./chunk-BAKVJLEV.js";
373
- import {
374
- MAX_JOURNAL_ENTRIES,
375
- MAX_PROGRESS_HISTORY,
376
- appendJournal,
377
- emptyGoal,
378
- formatGoal,
379
- goalFilePath,
380
- loadGoal,
381
- parseProgressFromText,
382
- recordProgress,
383
- saveGoal,
384
- setProgress,
385
- summarizeUsage
386
- } from "./chunk-LZDDLNCZ.js";
387
- import {
388
- evaluateToolKanbanBoundary
389
- } from "./chunk-EPC3GZD4.js";
390
- import "./chunk-2FQL4PDC.js";
391
- import {
392
- DefaultLogger
393
- } from "./chunk-WBPVKEEE.js";
394
- import {
395
- emitProcessCompleted,
396
- emitProcessOutput,
397
- emitProcessStarted,
398
- runWithProcessTelemetry
399
- } from "./chunk-NDBIPFNY.js";
400
- import {
401
- BUILTIN_COUNCIL_PERSONAS,
402
- BUILTIN_COUNCIL_PERSONA_IDS,
403
- BUILTIN_COUNCIL_PROFILES,
404
- COUNCIL_JUDGE_PROMPT_PATH,
405
- COUNCIL_REFUSAL_OPTION_ID,
406
- COUNCIL_VOTER_PROMPT_PATH,
407
- CouncilOrchestrator,
408
- CouncilPersonaRegistry,
409
- CouncilProfileRegistry,
410
- DEFAULT_COUNCIL_APPROVAL_FRACTION,
411
- DEFAULT_COUNCIL_JUDGE_MAX_TOKENS,
412
- DEFAULT_COUNCIL_MAX_CONCURRENCY,
413
- DEFAULT_COUNCIL_OVERALL_TIMEOUT_MS,
414
- DEFAULT_COUNCIL_PERSONA_REGISTRY,
415
- DEFAULT_COUNCIL_PER_CALL_TIMEOUT_MS,
416
- DEFAULT_COUNCIL_PROFILE_REGISTRY,
417
- DEFAULT_COUNCIL_QUORUM_FRACTION,
418
- DEFAULT_COUNCIL_VOTER_MAX_TOKENS,
419
- MAX_COUNCIL_CONCURRENCY,
420
- OneShotOrchestrator,
421
- buildCouncilJudgeSystemPrompt,
422
- buildCouncilJudgeUserPrompt,
423
- buildCouncilQuestionPrompt,
424
- buildCouncilVoterSystemPrompt,
425
- buildCouncilVoterUserPrompt,
426
- createCouncilPersonaRegistry,
427
- createCouncilProfileRegistry,
428
- normalizeCouncilProfile,
429
- resolveCouncilProfile,
430
- resolveCouncilVotes
431
- } from "./chunk-CE4ZOCOI.js";
432
- import "./chunk-GAZEWQEZ.js";
295
+ } from "./chunk-4I7HGVVA.js";
433
296
  import {
434
- FOREIGN_SKILL_TOOLS,
435
- resolveForeignToolIds,
436
- resolveForeignToolIdsWithWarnings,
437
- securityScoreToTier
438
- } from "./chunk-JVKB2TBL.js";
297
+ SessionCatalogStore,
298
+ deriveSessionAgents
299
+ } from "./chunk-27QIURLN.js";
439
300
  import {
440
- DefaultPromptStore,
441
- migratePromptEntry,
442
- promptChecksum
443
- } from "./chunk-GFXZTHNI.js";
301
+ integrateFindings,
302
+ persistReviewReport,
303
+ syncReportCompletion,
304
+ syncReportReopen
305
+ } from "./chunk-YWXT3JNM.js";
444
306
  import {
445
- DEFAULT_REFINER_RETRY_FEEDBACK,
446
- ENHANCER_SYSTEM_PROMPT,
447
- buildRefinerContextSections,
448
- enhanceUserPrompt,
449
- gatedEnhancerReasoning,
450
- normalizedEqual,
451
- recentTextTurns,
452
- shouldEnhance
453
- } from "./chunk-5XDUGTKN.js";
307
+ FINDING_STORE_FILE,
308
+ JsonlFindingStore
309
+ } from "./chunk-4LCZVJVF.js";
310
+ import "./chunk-UJILKYES.js";
454
311
  import {
455
312
  AdaptiveConcurrencyController,
456
313
  AgentMonitorService,
@@ -562,6 +419,7 @@ import {
562
419
  makeMutationTestTool,
563
420
  makeQualityGateTool,
564
421
  makeRollUpTool,
422
+ makeSessionNoteTool,
565
423
  makeSpawnTool,
566
424
  makeTerminateAllTool,
567
425
  makeTerminateTool,
@@ -590,7 +448,7 @@ import {
590
448
  updatePackageOutdatedStatus,
591
449
  validateWatchdogOptions,
592
450
  wrapSubagentRunnerWithWorktrees
593
- } from "./chunk-FW5LDDMJ.js";
451
+ } from "./chunk-45WI72ZB.js";
594
452
  import {
595
453
  DefaultSessionStore,
596
454
  DirectorStateCheckpoint,
@@ -605,10 +463,19 @@ import {
605
463
  scrubPersistedSessionEvent,
606
464
  scrubPersistedSessionSummary,
607
465
  sessionIdResolutionError
608
- } from "./chunk-UIWONWVG.js";
466
+ } from "./chunk-NSOFPKGT.js";
609
467
  import {
468
+ DEFAULT_TIER_ID,
610
469
  MATRIX_PHASE_KEYS,
470
+ activeTierConfig,
471
+ applyTierToSubagentConfig,
472
+ classifyTier,
473
+ evaluateLeaderTierSwitch,
474
+ evaluateSwitchEconomics,
475
+ isConfiguredTier,
611
476
  isValidMatrixKey,
477
+ leaderTierPolicy,
478
+ listTierIds,
612
479
  matrixKeyKind,
613
480
  phaseForRole,
614
481
  resolveImplementationModelTarget,
@@ -616,9 +483,14 @@ import {
616
483
  resolveModelMatrixResolution,
617
484
  resolveModelTargetFromEntry,
618
485
  resolveSubagentModelTarget,
486
+ resolveTier,
619
487
  roleNeedsIndependentReviewModel,
620
- sameModelReference
621
- } from "./chunk-2BUUIMQB.js";
488
+ sameModelReference,
489
+ tierBudget,
490
+ tierLevel,
491
+ tierModelTarget,
492
+ tierRank
493
+ } from "./chunk-RTOTNK3P.js";
622
494
  import {
623
495
  MailboxEventEmitter
624
496
  } from "./chunk-JX7VBZDK.js";
@@ -627,7 +499,8 @@ import {
627
499
  SessionCatalogProjectClient,
628
500
  resolveSessionCatalogDaemonAvailability,
629
501
  resolveSessionCatalogProjectServerUrl
630
- } from "./chunk-52RTVH4M.js";
502
+ } from "./chunk-F3JWNST7.js";
503
+ import "./chunk-JMULFFLN.js";
631
504
  import {
632
505
  SESSION_CATALOG_DEFAULT_LEASE_MS,
633
506
  SESSION_CATALOG_DEFAULT_RESERVATION_MS,
@@ -640,41 +513,183 @@ import {
640
513
  sessionCatalogProjectServerEndpoint,
641
514
  sessionCatalogProjectServerKey,
642
515
  sessionCatalogProjectServerMetadataPath
643
- } from "./chunk-E6I5RXVK.js";
516
+ } from "./chunk-AYW5YINX.js";
644
517
  import {
645
- ACP_AGENTS,
646
- ALL_FLEET_AGENTS,
647
- AUDIT_LOG_AGENT,
648
- BLOCKED_RESOLVED_MARKERS,
649
- BUG_HUNTER_AGENT,
650
- BrainDecisionLedger,
651
- BrainDecisionQueue,
652
- BrainTierCounter,
653
- BudgetExceededError,
654
- BudgetThresholdSignal,
655
- DECISION_TIMEOUT_MS,
656
- DEFAULT_BRAIN_HEURISTICS,
657
- DEFAULT_DISPATCH_ROLE,
658
- DETERMINISTIC_BRAIN_TIERS,
659
- DefaultBrainArbiter,
660
- DefaultMultiAgentCoordinator,
661
- EscalationRoutingBrainArbiter,
662
- FLEET_ROSTER,
663
- FLEET_ROSTER_BUDGETS,
664
- FLEET_ROSTER_WITHACP,
665
- GENERIC_AGENT,
666
- HumanEscalatingBrainArbiter,
667
- MAX_SUBAGENT_STRUCTURED_REPORT_CHARS,
668
- ObservableBrainArbiter,
669
- REFACTOR_PLANNER_AGENT,
670
- SECURITY_SCANNER_AGENT,
671
- SUBAGENT_STRUCTURED_REPORT_META_KEY,
672
- SubagentBudget,
673
- TIMEOUT_PREEMPT_FRACTION,
674
- applyRosterBudget,
675
- assignNickname,
676
- brainDecisionKey,
677
- compileResolutionMarkers,
518
+ AutoCompactionMiddleware,
519
+ BRAIN_EVALUATION_CASE_VERSION,
520
+ BRAIN_RULE_PATTERN_MAX,
521
+ BRAIN_RULE_SUBJECT_MAX,
522
+ BrainCircuitBreaker,
523
+ BrainDecisionCache,
524
+ DefaultErrorHandler,
525
+ DefaultSkillLoader,
526
+ ENHANCE_BASE_TIMEOUT_MS,
527
+ ENHANCE_MIN_RETRY_TIMEOUT_MS,
528
+ HybridCompactor,
529
+ IntelligentCompactor,
530
+ SelectiveCompactor,
531
+ applyModelRuntime,
532
+ applyRule,
533
+ assembleBrainTiers,
534
+ brainCacheKey,
535
+ brainTraceToEvaluationCase,
536
+ buildBrainUserMessage,
537
+ buildLosslessDigest,
538
+ buildSmartDigest,
539
+ compileBrainRules,
540
+ completeBrainLlm,
541
+ createAutonomyBrain,
542
+ createBrainRuntime,
543
+ createCachingBrainArbiter,
544
+ createCouncilBrainArbiter,
545
+ createRuleBrainArbiter,
546
+ createStrategyCompactor,
547
+ createTieredBrainArbiter,
548
+ eliseOldToolResults,
549
+ estimateMessages,
550
+ evaluateBrainRules,
551
+ extractText,
552
+ findPreserveStart,
553
+ formatDecisionSummary,
554
+ hasTextContent,
555
+ installSubagentAutoCompaction,
556
+ mergeModelRuntime,
557
+ nextEnhanceTimeout,
558
+ parseOptionDecision,
559
+ resolveBrainConfigDefaults,
560
+ resolveCacheForRequest,
561
+ resolveConfiguredRefinerRef,
562
+ resolveEnhanceFallbackRef,
563
+ resolveModelRuntime,
564
+ resolveReasoningForRequest,
565
+ ruleMatches,
566
+ runBrainEvaluation,
567
+ scoreMessage,
568
+ validateBrainEvaluationCase
569
+ } from "./chunk-WGGYRBXH.js";
570
+ import {
571
+ applyGoalDeliverableCompletions,
572
+ boardStore,
573
+ coordinateGoalIteration,
574
+ createGoalKanbanBoard,
575
+ deleteGoalKanbanBoard,
576
+ findGoalBoardByTag,
577
+ findGoalKanbanBoard,
578
+ formatGoalAutonomyChoice,
579
+ formatGoalEvent,
580
+ formatGoalKanbanPreview,
581
+ isGoalDeliverableComplete,
582
+ parseAutonomyChoice,
583
+ parseCompletedGoalDeliverables,
584
+ recomputeGoalProgress,
585
+ setBoardStorePort,
586
+ stripGoalDeliverableMarker
587
+ } from "./chunk-DOTHQSJ2.js";
588
+ import {
589
+ MAX_JOURNAL_ENTRIES,
590
+ MAX_PROGRESS_HISTORY,
591
+ appendJournal,
592
+ emptyGoal,
593
+ formatGoal,
594
+ goalFilePath,
595
+ loadGoal,
596
+ parseProgressFromText,
597
+ recordProgress,
598
+ saveGoal,
599
+ setProgress,
600
+ summarizeUsage
601
+ } from "./chunk-C27KDLOX.js";
602
+ import {
603
+ evaluateToolKanbanBoundary
604
+ } from "./chunk-OOYZPOXM.js";
605
+ import "./chunk-I7DALG7J.js";
606
+ import {
607
+ DefaultLogger
608
+ } from "./chunk-WBPVKEEE.js";
609
+ import {
610
+ emitProcessCompleted,
611
+ emitProcessOutput,
612
+ emitProcessStarted,
613
+ runWithProcessTelemetry
614
+ } from "./chunk-NDBIPFNY.js";
615
+ import {
616
+ BUILTIN_COUNCIL_PERSONAS,
617
+ BUILTIN_COUNCIL_PERSONA_IDS,
618
+ BUILTIN_COUNCIL_PROFILES,
619
+ COUNCIL_JUDGE_PROMPT_PATH,
620
+ COUNCIL_REFUSAL_OPTION_ID,
621
+ COUNCIL_VOTER_PROMPT_PATH,
622
+ CouncilOrchestrator,
623
+ CouncilPersonaRegistry,
624
+ CouncilProfileRegistry,
625
+ DEFAULT_COUNCIL_APPROVAL_FRACTION,
626
+ DEFAULT_COUNCIL_JUDGE_MAX_TOKENS,
627
+ DEFAULT_COUNCIL_MAX_CONCURRENCY,
628
+ DEFAULT_COUNCIL_OVERALL_TIMEOUT_MS,
629
+ DEFAULT_COUNCIL_PERSONA_REGISTRY,
630
+ DEFAULT_COUNCIL_PER_CALL_TIMEOUT_MS,
631
+ DEFAULT_COUNCIL_PROFILE_REGISTRY,
632
+ DEFAULT_COUNCIL_QUORUM_FRACTION,
633
+ DEFAULT_COUNCIL_VOTER_MAX_TOKENS,
634
+ MAX_COUNCIL_CONCURRENCY,
635
+ OneShotOrchestrator,
636
+ buildCouncilJudgeSystemPrompt,
637
+ buildCouncilJudgeUserPrompt,
638
+ buildCouncilQuestionPrompt,
639
+ buildCouncilVoterSystemPrompt,
640
+ buildCouncilVoterUserPrompt,
641
+ createCouncilPersonaRegistry,
642
+ createCouncilProfileRegistry,
643
+ normalizeCouncilProfile,
644
+ resolveCouncilProfile,
645
+ resolveCouncilVotes
646
+ } from "./chunk-PFCMSSUF.js";
647
+ import "./chunk-XF4VUMKW.js";
648
+ import {
649
+ FOREIGN_SKILL_TOOLS,
650
+ resolveForeignToolIds,
651
+ resolveForeignToolIdsWithWarnings,
652
+ securityScoreToTier
653
+ } from "./chunk-JVKB2TBL.js";
654
+ import {
655
+ DefaultPromptStore,
656
+ migratePromptEntry,
657
+ promptChecksum
658
+ } from "./chunk-PGRVXIMY.js";
659
+ import {
660
+ ACP_AGENTS,
661
+ ALL_FLEET_AGENTS,
662
+ AUDIT_LOG_AGENT,
663
+ BLOCKED_RESOLVED_MARKERS,
664
+ BUG_HUNTER_AGENT,
665
+ BrainDecisionLedger,
666
+ BrainDecisionQueue,
667
+ BrainTierCounter,
668
+ BudgetExceededError,
669
+ BudgetThresholdSignal,
670
+ DECISION_TIMEOUT_MS,
671
+ DEFAULT_BRAIN_HEURISTICS,
672
+ DEFAULT_DISPATCH_ROLE,
673
+ DETERMINISTIC_BRAIN_TIERS,
674
+ DefaultBrainArbiter,
675
+ DefaultMultiAgentCoordinator,
676
+ EscalationRoutingBrainArbiter,
677
+ FLEET_ROSTER,
678
+ FLEET_ROSTER_BUDGETS,
679
+ FLEET_ROSTER_WITHACP,
680
+ GENERIC_AGENT,
681
+ HumanEscalatingBrainArbiter,
682
+ MAX_SUBAGENT_STRUCTURED_REPORT_CHARS,
683
+ ObservableBrainArbiter,
684
+ REFACTOR_PLANNER_AGENT,
685
+ SECURITY_SCANNER_AGENT,
686
+ SUBAGENT_STRUCTURED_REPORT_META_KEY,
687
+ SubagentBudget,
688
+ TIMEOUT_PREEMPT_FRACTION,
689
+ applyRosterBudget,
690
+ assignNickname,
691
+ brainDecisionKey,
692
+ compileResolutionMarkers,
678
693
  createLedgerGuardBrainArbiter,
679
694
  dispatchAgent,
680
695
  formatHumanPrompt,
@@ -693,7 +708,7 @@ import {
693
708
  scoreAgents,
694
709
  terminalPolicyDecision,
695
710
  withDisabledToolFiltering
696
- } from "./chunk-T3KGZBU5.js";
711
+ } from "./chunk-S45JPKQN.js";
697
712
  import {
698
713
  AGENTS_BY_PHASE,
699
714
  AGENT_CATALOG,
@@ -787,47 +802,212 @@ import {
787
802
  updateProjectAgentLearned,
788
803
  updateProjectAgentLearningPolicy,
789
804
  validateProjectAgentConfig
790
- } from "./chunk-FHAMQS7Q.js";
805
+ } from "./chunk-FCBTO76Z.js";
791
806
  import {
792
- Container
793
- } from "./chunk-O74MJHXU.js";
807
+ ALLOWED_IMAGE_MEDIA_TYPES,
808
+ DEFAULT_TOOL_RESULT_RENDER_MODE,
809
+ DEFAULT_WALK_IGNORE_DIRS,
810
+ DEFAULT_WALK_IGNORE_SET,
811
+ IncomingImageError,
812
+ MAX_INCOMING_IMAGES,
813
+ MAX_INCOMING_IMAGE_BYTES,
814
+ MAX_PATH_SEGMENT_LENGTH,
815
+ MAX_SUBJECT_LEN,
816
+ addFatalSalvageHook,
817
+ applyToolResultRenderModes,
818
+ assertNever,
819
+ base64DecodedBytes,
820
+ buildUserContentBlocks,
821
+ capSubject,
822
+ checkConnectivity,
823
+ compileUserRegex,
824
+ computeTaskItemProgress,
825
+ detectNewlineStyle,
826
+ envBool,
827
+ envBoolOptional,
828
+ envEnum,
829
+ envFloat,
830
+ envInt,
831
+ envString,
832
+ expandGlob,
833
+ formatTaskList,
834
+ formatTaskProgress,
835
+ getContextBreakdown,
836
+ getToolResultRenderMode,
837
+ installCrashShield,
838
+ isAllowedImageMediaType,
839
+ isSafePathSegment,
840
+ isValidImageBase64,
841
+ mergeCustomModelDefs,
842
+ normalizeToLf,
843
+ normalizeToolResultRenderMode,
844
+ parseIncomingImages,
845
+ resetConnectivityCache,
846
+ resolveContainedPath,
847
+ resolveToolResultRenderMode,
848
+ runFatalSalvageSync,
849
+ sanitizeTerminalPreview,
850
+ sanitizeTerminalText,
851
+ setToolResultRenderMode,
852
+ sleep,
853
+ slugify,
854
+ toStyle,
855
+ unifiedDiff,
856
+ watchProjectTree
857
+ } from "./chunk-J2WRWR37.js";
794
858
  import {
795
- EventBus,
796
- ScopedEventBus
797
- } from "./chunk-4LJJYBAU.js";
859
+ buildWin32CmdShimInvocation
860
+ } from "./chunk-LHOA5DWA.js";
798
861
  import {
799
- Agent,
800
- DEFAULT_MAX_ITERATIONS,
801
- InputBuilder,
802
- attachMailboxChecker,
803
- buildMailboxBlock,
804
- buildMailboxBtwAwarenessBlock,
805
- buildQueuedMessagesBlock,
806
- consumeQueuedMessagesUpdate,
807
- createDefaultPipelines,
808
- createMailboxChecker,
809
- detectContinueIntent,
810
- injectPendingMailboxMessages,
811
- peekQueuedMessages,
812
- resolveContinuation,
813
- setQueuedMessagesSnapshot
814
- } from "./chunk-65RDIOR2.js";
862
+ assertNotPrivateHost,
863
+ expandIPv6,
864
+ isPrivateIPv4,
865
+ isPrivateIPv6
866
+ } from "./chunk-LA7CLDRW.js";
815
867
  import {
816
- HQ_AUTH_CONTENT_HASH_REDACTED,
817
- HQ_AUTH_FILE_VERSION,
818
- HqPublisher,
819
- appendHqAuthAudit,
820
- classifyMailboxRecipient,
821
- createHqPublisherFromEnv,
822
- createMailboxEventPayload,
823
- createMailboxSnapshotPayload,
824
- createMailboxSnapshotPayloadFromMailbox,
825
- defaultHqDataDir,
826
- deriveHqProjectId,
827
- discoverLocalHqEndpoint,
828
- emptyHqAuthFile,
829
- ensureHqFirstRunAuthFile,
830
- hashHqPassword,
868
+ compileGlob,
869
+ escapeGlobSubject,
870
+ isPathSubjectKey,
871
+ matchAny,
872
+ matchAnyCommand,
873
+ matchCommandGlob,
874
+ matchGlob,
875
+ normalizePathSubject,
876
+ subjectForToolInput
877
+ } from "./chunk-WAHQVNWT.js";
878
+ import {
879
+ mergeModelsPayload
880
+ } from "./chunk-EODDVJBM.js";
881
+ import {
882
+ activateProjectStateGuard,
883
+ backupConfigFile,
884
+ configHistoryDir,
885
+ configSlug,
886
+ startProjectStateGuard
887
+ } from "./chunk-ZT7JNIGX.js";
888
+ import {
889
+ safeParse,
890
+ safeStringify,
891
+ sanitizeJsonString,
892
+ stripCodeFences
893
+ } from "./chunk-W5VITDM2.js";
894
+ import {
895
+ WIRE_TOOL_NAME_MAX_LENGTH,
896
+ WIRE_TOOL_NAME_PATTERN,
897
+ coerceAgainstSchema,
898
+ getJsonPath,
899
+ isJsonObject,
900
+ jsonObjectFileExists,
901
+ mcpQualifiedToolName,
902
+ mcpServerToolPrefix,
903
+ readJsonObjectFile,
904
+ removeJsonPath,
905
+ removeJsonPathInFile,
906
+ sanitizeWireToolName,
907
+ setJsonPath,
908
+ setJsonPathInFile,
909
+ updateJsonObjectFile,
910
+ validateAgainstSchema,
911
+ writeJsonObjectFile
912
+ } from "./chunk-YPT4A46F.js";
913
+ import {
914
+ FORBIDDEN_PROTO_KEYS,
915
+ deepMerge,
916
+ isPrimitiveArray
917
+ } from "./chunk-B7F4WVP4.js";
918
+ import {
919
+ DEFAULT_TOOL_DESCRIPTION_MODE,
920
+ applyToolDescriptionModeToTool,
921
+ applyToolDescriptionModes,
922
+ getToolDescriptionMode,
923
+ normalizeToolDescriptionMode,
924
+ resolveToolDescriptionMode,
925
+ setToolDescriptionMode,
926
+ simplifyToolDescription
927
+ } from "./chunk-WQTOVMGV.js";
928
+ import {
929
+ SageCachePragmas,
930
+ getPerfProfile,
931
+ indexParallelBatchSize,
932
+ isFrugalPerf,
933
+ sqliteCachePragmas,
934
+ tuiStreamFlushMs,
935
+ useDaemonPerfDefaults
936
+ } from "./chunk-FNXVT7HF.js";
937
+ import {
938
+ sessionScopedPath
939
+ } from "./chunk-5BMIE7QG.js";
940
+ import {
941
+ defaultHeapLogPath,
942
+ startHeapWatchdog,
943
+ startSharedHeapWatchdog,
944
+ takeHeapSample
945
+ } from "./chunk-DYLPMV4Q.js";
946
+ import {
947
+ DEFAULT_REFINER_RETRY_FEEDBACK,
948
+ ENHANCER_SYSTEM_PROMPT,
949
+ buildRefinerContextSections,
950
+ enhanceUserPrompt,
951
+ gatedEnhancerReasoning,
952
+ normalizedEqual,
953
+ recentTextTurns,
954
+ shouldEnhance
955
+ } from "./chunk-5XDUGTKN.js";
956
+ import {
957
+ readBundledInstructionText,
958
+ renderInstructionTemplate
959
+ } from "./chunk-5S437PRC.js";
960
+ import {
961
+ Container
962
+ } from "./chunk-KZMSZV32.js";
963
+ import {
964
+ EventBus,
965
+ ScopedEventBus
966
+ } from "./chunk-FHZVFYSL.js";
967
+ import {
968
+ Agent,
969
+ DEFAULT_MAX_ITERATIONS,
970
+ InputBuilder,
971
+ attachMailboxChecker,
972
+ attachSessionNotes,
973
+ buildMailboxBlock,
974
+ buildMailboxBtwAwarenessBlock,
975
+ buildQueuedMessagesBlock,
976
+ buildSessionNoteBlock,
977
+ consumeQueuedMessagesUpdate,
978
+ consumeSessionNotes,
979
+ createDefaultPipelines,
980
+ createMailboxChecker,
981
+ detectContinueIntent,
982
+ enqueueSessionNote,
983
+ injectPendingMailboxMessages,
984
+ peekQueuedMessages,
985
+ pendingSessionNoteCount,
986
+ resolveContinuation,
987
+ setQueuedMessagesSnapshot
988
+ } from "./chunk-YOPAUVU4.js";
989
+ import {
990
+ PROMPT_JOURNAL_RAW_MARKER,
991
+ ensureGitignore,
992
+ getPromptJournalEntries,
993
+ recordPromptJournalEntry
994
+ } from "./chunk-RFQMOKWK.js";
995
+ import {
996
+ HQ_AUTH_CONTENT_HASH_REDACTED,
997
+ HQ_AUTH_FILE_VERSION,
998
+ HqPublisher,
999
+ appendHqAuthAudit,
1000
+ classifyMailboxRecipient,
1001
+ createHqPublisherFromEnv,
1002
+ createMailboxEventPayload,
1003
+ createMailboxSnapshotPayload,
1004
+ createMailboxSnapshotPayloadFromMailbox,
1005
+ defaultHqDataDir,
1006
+ deriveHqProjectId,
1007
+ discoverLocalHqEndpoint,
1008
+ emptyHqAuthFile,
1009
+ ensureHqFirstRunAuthFile,
1010
+ hashHqPassword,
831
1011
  hqAuthAuditPath,
832
1012
  hqAuthContentHash,
833
1013
  hqAuthFilePath,
@@ -848,6 +1028,7 @@ import {
848
1028
  redactHqEvent,
849
1029
  redactHqEventPayload,
850
1030
  redactHqValue,
1031
+ resetHqPublisherWarningStateForTests,
851
1032
  resolveHqConfig,
852
1033
  resolveHqConfigFromEnv,
853
1034
  resolveHqDataDir,
@@ -860,7 +1041,7 @@ import {
860
1041
  watchHqAuthFile,
861
1042
  writeHqAuthFile,
862
1043
  writeHqRuntimeFile
863
- } from "./chunk-ZYU2YOJ6.js";
1044
+ } from "./chunk-NIOAGFPB.js";
864
1045
  import {
865
1046
  DEFAULT_HQ_REDACTION_POLICY,
866
1047
  HQ_BROWSER_PEER_RESUME_CLIENT_ID,
@@ -877,327 +1058,97 @@ import {
877
1058
  isHqKanbanSnapshotPayload,
878
1059
  isHqPeerLostPayload,
879
1060
  isHqPeerRehydratePayload,
880
- isHqResumeGapMessage,
881
- isHqResumeRejectMessage,
882
- parseHqEventPayload,
883
- parseHqFrame
884
- } from "./chunk-Z2IJUO45.js";
885
- import {
886
- PROMPT_JOURNAL_RAW_MARKER,
887
- ensureGitignore,
888
- getPromptJournalEntries,
889
- recordPromptJournalEntry
890
- } from "./chunk-YUPMXOGP.js";
891
- import {
892
- JsonlReportStore,
893
- REPORT_STORE_FILE
894
- } from "./chunk-PFXFQQRT.js";
895
- import {
896
- ExtensionRegistry
897
- } from "./chunk-G5AAKEEZ.js";
898
- import {
899
- MailboxProjectServerConnection,
900
- RemoteMailbox,
901
- applyMailboxSendPolicy,
902
- createProjectMailbox,
903
- getSharedProjectMailbox,
904
- isMailboxProjectServerAvailable,
905
- mailboxSessionTag,
906
- makeMailboxTool,
907
- resolveMailboxIdentity
908
- } from "./chunk-RD6DEE36.js";
909
- import {
910
- CREDENTIAL_VERIFY_COOLDOWN_MS,
911
- CREDENTIAL_VERIFY_MAX_FAILURES,
912
- CREDENTIAL_VERIFY_WINDOW_MS,
913
- CredentialVerifyThrottle,
914
- credentialVerifyThrottle,
915
- mailboxProjectServerEndpoint,
916
- mailboxProjectServerMetadataPath
917
- } from "./chunk-5RP3QTRL.js";
918
- import {
919
- MAILBOX_MAX_ACK_BATCH,
920
- MAILBOX_MAX_QUERY_LIMIT,
921
- redactMailboxCredential,
922
- resolveProjectDir
923
- } from "./chunk-GM54GJBU.js";
924
- import {
925
- MAILBOX_TYPE_PROPERTIES,
926
- SESSION_RECIPIENT_PREFIX,
927
- isMailboxLeader,
928
- isMailboxMessageVisibleTo,
929
- mailboxIdentityBase,
930
- normalizeRecipient,
931
- sessionRecipient
932
- } from "./chunk-W4A6QA3D.js";
933
- import {
934
- buildBtwBlock,
935
- consumeBtwNotes,
936
- pendingBtwCount,
937
- setBtwNote
938
- } from "./chunk-SQJVFEBV.js";
939
- import {
940
- createFallbackModelExtension,
941
- effectiveFallbackChain,
942
- fallbackProfileChain,
943
- runProviderWithRetry,
944
- runtimeFallbackChain,
945
- smartDefaultFallbackChain
946
- } from "./chunk-H72H4XDU.js";
947
- import "./chunk-4ZHTKJHM.js";
948
- import "./chunk-PAAWLLZX.js";
949
- import {
950
- runWithNetworkTelemetry,
951
- startNetworkTelemetryMonitor
952
- } from "./chunk-HA4ZYA6T.js";
953
- import {
954
- DANGEROUS_FOR_SUBAGENTS,
955
- ToolCapabilities,
956
- WIDE_SUBAGENT_CAPABILITIES,
957
- getDangerousCapabilities,
958
- hasCapability,
959
- hasDangerousCapabilityForSubagents
960
- } from "./chunk-A455ATZB.js";
961
- import {
962
- FallbackProfileManager,
963
- evaluateModelCalendar,
964
- logicalCalendarTarget
965
- } from "./chunk-WQQON3SV.js";
966
- import {
967
- createChroniclePromptManifest
968
- } from "./chunk-2YU4WVBW.js";
969
- import "./chunk-H5E77KUJ.js";
970
- import {
971
- DefaultSecretScrubber
972
- } from "./chunk-3E244UDA.js";
973
- import {
974
- Pipeline,
975
- RunController,
976
- TOKENS
977
- } from "./chunk-Y2GE5TSI.js";
978
- import {
979
- formatModelRef,
980
- normalizeModelRef,
981
- parseModelRef
982
- } from "./chunk-RJIZEJ42.js";
983
- import {
984
- DEFAULT_SPEC_TEMPLATE,
985
- FLEET_CHAT_VERBOSITY_VALUES,
986
- MALFORMED_ARG_MARKERS,
987
- THEME_PRESET_IDS,
988
- ToolErrorCategory,
989
- resolveFleetChatVerbosity
990
- } from "./chunk-OJZEX73F.js";
991
- import {
992
- diffRegistry,
993
- validateRegistryManifest
994
- } from "./chunk-IYFBFX34.js";
995
- import {
996
- MEMORY_TYPE_LABELS,
997
- defineMemoryCapability
998
- } from "./chunk-57GEWK5X.js";
999
- import {
1000
- DEFAULT_MODES
1001
- } from "./chunk-2FK4WTFF.js";
1002
- import {
1003
- CONTEXT_WINDOW_MODES,
1004
- CONTEXT_WINDOW_MODE_PINNED_META_KEY,
1005
- DEFAULT_AUTONOMY_CONFIG,
1006
- DEFAULT_CIRCUIT_BREAKER_CONFIG,
1007
- DEFAULT_CONTEXT_CONFIG,
1008
- DEFAULT_CONTEXT_WINDOW_MODE_ID,
1009
- DEFAULT_SESSION_LOGGING_CONFIG,
1010
- DEFAULT_SESSION_PRUNE_DAYS,
1011
- DEFAULT_TOOLS_CONFIG,
1012
- DEPRECATED_CONTEXT_WINDOW_MODE_ALIASES,
1013
- LARGE_WINDOW_DEEP_MODE_THRESHOLD,
1014
- formatContextWindowModeList,
1015
- getContextWindowMode,
1016
- isContextWindowModeId,
1017
- isContextWindowModeSelectionId,
1018
- isDeprecatedContextWindowModeId,
1019
- listContextWindowModes,
1020
- normalizeContextWindowModeId,
1021
- resolveContextWindowPolicy
1022
- } from "./chunk-ZZ4V3WIZ.js";
1023
- import {
1024
- GOVERNED_TOOL_EXECUTOR_META_KEY
1025
- } from "./chunk-XBDP4QPW.js";
1026
- import {
1027
- BUILTIN_PROMPT_CATEGORIES,
1028
- PROMPT_CATEGORY_LABELS,
1029
- isBuiltinCategory
1030
- } from "./chunk-KDQJCT2J.js";
1031
- import {
1032
- DESIGN_STACKS,
1033
- KNOWN_TOKEN_GROUPS,
1034
- KNOWN_TOKEN_NAMES,
1035
- isDesignStack
1036
- } from "./chunk-G5S3S5ZN.js";
1037
- import {
1038
- ProviderError,
1039
- REASONING_EFFORT_LEVELS,
1040
- StreamHangError,
1041
- classifyProviderError,
1042
- effectiveInputTokens,
1043
- freshInputTokens,
1044
- isContextOverflowShaped,
1045
- isFallbackWorthy,
1046
- isReasoningEffort,
1047
- isRetryableKind,
1048
- promptCacheHitRatio
1049
- } from "./chunk-NFAYHPRH.js";
1050
- import {
1051
- CHAT_MARKER_SOURCES,
1052
- SESSION_MARKER_EVENT_TYPES,
1053
- SYSTEM_INJECTION_PREFIXES,
1054
- isSystemInjectedMessage,
1055
- projectSessionMarkers,
1056
- sessionEventToMarker
1057
- } from "./chunk-KSJ5UTP7.js";
1058
- import {
1059
- ALLOWED_IMAGE_MEDIA_TYPES,
1060
- DEFAULT_TOOL_RESULT_RENDER_MODE,
1061
- DEFAULT_WALK_IGNORE_DIRS,
1062
- DEFAULT_WALK_IGNORE_SET,
1063
- IncomingImageError,
1064
- MAX_INCOMING_IMAGES,
1065
- MAX_INCOMING_IMAGE_BYTES,
1066
- MAX_PATH_SEGMENT_LENGTH,
1067
- MAX_SUBJECT_LEN,
1068
- addFatalSalvageHook,
1069
- applyToolResultRenderModes,
1070
- assertNever,
1071
- base64DecodedBytes,
1072
- buildUserContentBlocks,
1073
- capSubject,
1074
- checkConnectivity,
1075
- compileUserRegex,
1076
- computeTaskItemProgress,
1077
- detectNewlineStyle,
1078
- envBool,
1079
- envBoolOptional,
1080
- envEnum,
1081
- envFloat,
1082
- envInt,
1083
- envString,
1084
- expandGlob,
1085
- formatTaskList,
1086
- formatTaskProgress,
1087
- getContextBreakdown,
1088
- getToolResultRenderMode,
1089
- installCrashShield,
1090
- isAllowedImageMediaType,
1091
- isSafePathSegment,
1092
- isValidImageBase64,
1093
- mergeCustomModelDefs,
1094
- normalizeToLf,
1095
- normalizeToolResultRenderMode,
1096
- parseIncomingImages,
1097
- resetConnectivityCache,
1098
- resolveContainedPath,
1099
- resolveToolResultRenderMode,
1100
- runFatalSalvageSync,
1101
- sanitizeTerminalPreview,
1102
- sanitizeTerminalText,
1103
- setToolResultRenderMode,
1104
- sleep,
1105
- slugify,
1106
- toStyle,
1107
- unifiedDiff,
1108
- watchProjectTree
1109
- } from "./chunk-TYW2GI5I.js";
1061
+ isHqResumeGapMessage,
1062
+ isHqResumeRejectMessage,
1063
+ parseHqEventPayload,
1064
+ parseHqFrame
1065
+ } from "./chunk-Z2IJUO45.js";
1110
1066
  import {
1111
- buildWin32CmdShimInvocation
1112
- } from "./chunk-LHOA5DWA.js";
1067
+ ExtensionRegistry
1068
+ } from "./chunk-MTL4O5YR.js";
1113
1069
  import {
1114
- assertNotPrivateHost,
1115
- expandIPv6,
1116
- isPrivateIPv4,
1117
- isPrivateIPv6
1118
- } from "./chunk-GFJOMSHG.js";
1070
+ JsonlReportStore,
1071
+ REPORT_STORE_FILE
1072
+ } from "./chunk-HXKZ7OBQ.js";
1073
+ import "./chunk-WP7BVANJ.js";
1119
1074
  import {
1120
- compileGlob,
1121
- escapeGlobSubject,
1122
- isPathSubjectKey,
1123
- matchAny,
1124
- matchAnyCommand,
1125
- matchCommandGlob,
1126
- matchGlob,
1127
- normalizePathSubject,
1128
- subjectForToolInput
1129
- } from "./chunk-QRTG4XTI.js";
1075
+ MailboxProjectServerConnection,
1076
+ RemoteMailbox,
1077
+ SessionNoteHub,
1078
+ applyMailboxSendPolicy,
1079
+ createProjectMailbox,
1080
+ getSharedProjectMailbox,
1081
+ isMailboxProjectServerAvailable,
1082
+ mailboxSessionTag,
1083
+ makeMailboxTool,
1084
+ postSessionNote,
1085
+ resolveMailboxIdentity,
1086
+ sessionNoteHub
1087
+ } from "./chunk-JO4MGB6Z.js";
1130
1088
  import {
1131
- mergeModelsPayload
1132
- } from "./chunk-EODDVJBM.js";
1089
+ CREDENTIAL_VERIFY_COOLDOWN_MS,
1090
+ CREDENTIAL_VERIFY_MAX_FAILURES,
1091
+ CREDENTIAL_VERIFY_WINDOW_MS,
1092
+ CredentialVerifyThrottle,
1093
+ credentialVerifyThrottle,
1094
+ mailboxProjectServerEndpoint,
1095
+ mailboxProjectServerMetadataPath
1096
+ } from "./chunk-PQNS3U7Z.js";
1133
1097
  import {
1134
- activateProjectStateGuard,
1135
- backupConfigFile,
1136
- configHistoryDir,
1137
- startProjectStateGuard
1138
- } from "./chunk-CQQL4ZOQ.js";
1098
+ MAILBOX_MAX_ACK_BATCH,
1099
+ MAILBOX_MAX_QUERY_LIMIT,
1100
+ redactMailboxCredential,
1101
+ resolveProjectDir
1102
+ } from "./chunk-IRUTEHCE.js";
1139
1103
  import {
1140
- safeParse,
1141
- safeStringify,
1142
- sanitizeJsonString,
1143
- stripCodeFences
1144
- } from "./chunk-RPOA7IAE.js";
1104
+ MAILBOX_TYPE_PROPERTIES,
1105
+ SESSION_RECIPIENT_PREFIX,
1106
+ isMailboxLeader,
1107
+ isMailboxMessageVisibleTo,
1108
+ mailboxIdentityBase,
1109
+ normalizeRecipient,
1110
+ sessionRecipient
1111
+ } from "./chunk-FWNLEZYG.js";
1145
1112
  import {
1146
- WIRE_TOOL_NAME_MAX_LENGTH,
1147
- WIRE_TOOL_NAME_PATTERN,
1148
- coerceAgainstSchema,
1149
- getJsonPath,
1150
- isJsonObject,
1151
- jsonObjectFileExists,
1152
- mcpQualifiedToolName,
1153
- mcpServerToolPrefix,
1154
- readJsonObjectFile,
1155
- removeJsonPath,
1156
- removeJsonPathInFile,
1157
- sanitizeWireToolName,
1158
- setJsonPath,
1159
- setJsonPathInFile,
1160
- updateJsonObjectFile,
1161
- validateAgainstSchema,
1162
- writeJsonObjectFile
1163
- } from "./chunk-FFSX2QDQ.js";
1113
+ buildBtwBlock,
1114
+ consumeBtwNotes,
1115
+ pendingBtwCount,
1116
+ setBtwNote
1117
+ } from "./chunk-SQJVFEBV.js";
1164
1118
  import {
1165
- FORBIDDEN_PROTO_KEYS,
1166
- deepMerge,
1167
- isPrimitiveArray
1168
- } from "./chunk-DEIQMBD2.js";
1119
+ createFallbackModelExtension,
1120
+ effectiveFallbackChain,
1121
+ fallbackProfileChain,
1122
+ runProviderWithRetry,
1123
+ runtimeFallbackChain,
1124
+ smartDefaultFallbackChain
1125
+ } from "./chunk-U45AXT5D.js";
1126
+ import "./chunk-4SJNS7OB.js";
1127
+ import "./chunk-Y5YXDM7D.js";
1169
1128
  import {
1170
- SageCachePragmas,
1171
- getPerfProfile,
1172
- indexParallelBatchSize,
1173
- isFrugalPerf,
1174
- sqliteCachePragmas,
1175
- tuiStreamFlushMs,
1176
- useDaemonPerfDefaults
1177
- } from "./chunk-FNXVT7HF.js";
1129
+ runWithNetworkTelemetry,
1130
+ startNetworkTelemetryMonitor
1131
+ } from "./chunk-HA4ZYA6T.js";
1178
1132
  import {
1179
- DEFAULT_TOOL_DESCRIPTION_MODE,
1180
- applyToolDescriptionModeToTool,
1181
- applyToolDescriptionModes,
1182
- getToolDescriptionMode,
1183
- normalizeToolDescriptionMode,
1184
- resolveToolDescriptionMode,
1185
- setToolDescriptionMode,
1186
- simplifyToolDescription
1187
- } from "./chunk-WQTOVMGV.js";
1133
+ FallbackProfileManager,
1134
+ evaluateModelCalendar,
1135
+ logicalCalendarTarget
1136
+ } from "./chunk-WQQON3SV.js";
1188
1137
  import {
1189
- sessionScopedPath
1190
- } from "./chunk-AD7ZFZCS.js";
1138
+ createChroniclePromptManifest
1139
+ } from "./chunk-2YU4WVBW.js";
1191
1140
  import {
1192
- defaultHeapLogPath,
1193
- startHeapWatchdog,
1194
- startSharedHeapWatchdog,
1195
- takeHeapSample
1196
- } from "./chunk-KBZGE6LN.js";
1141
+ DefaultSecretScrubber
1142
+ } from "./chunk-QSTSJOCK.js";
1143
+ import "./chunk-6FHWXLPT.js";
1197
1144
  import {
1198
- readBundledInstructionText,
1199
- renderInstructionTemplate
1200
- } from "./chunk-5S437PRC.js";
1145
+ DANGEROUS_FOR_SUBAGENTS,
1146
+ ToolCapabilities,
1147
+ WIDE_SUBAGENT_CAPABILITIES,
1148
+ getDangerousCapabilities,
1149
+ hasCapability,
1150
+ hasDangerousCapabilityForSubagents
1151
+ } from "./chunk-UBGDX6FI.js";
1201
1152
  import {
1202
1153
  DefaultSystemPromptBuilder,
1203
1154
  LAYER_1_IDENTITY,
@@ -1219,7 +1170,7 @@ import {
1219
1170
  renderInstructionLayer,
1220
1171
  sanitizeMemoryEvidenceBody,
1221
1172
  sanitizeMemoryEvidenceSource
1222
- } from "./chunk-WZO23AWO.js";
1173
+ } from "./chunk-M27LIEKV.js";
1223
1174
  import {
1224
1175
  SKILL_LIMITS
1225
1176
  } from "./chunk-XEBHSJLT.js";
@@ -1228,26 +1179,11 @@ import {
1228
1179
  configureChildEnvGitIdentity,
1229
1180
  getChildEnvGitIdentity,
1230
1181
  sanitizeNodeOptions
1231
- } from "./chunk-VB3H5WWB.js";
1182
+ } from "./chunk-6NWEVFEL.js";
1232
1183
  import {
1233
1184
  hasMeaningfulContent,
1234
1185
  repairToolUseAdjacency
1235
- } from "./chunk-M2WF6AXG.js";
1236
- import {
1237
- PROJECT_IDENTITY_RELATIVE_PATH,
1238
- PROJECT_IDENTITY_VERSION,
1239
- PROJECT_ID_PREFIX,
1240
- createProjectId,
1241
- ensureProjectGitignore,
1242
- ensureProjectIdentity,
1243
- isProjectId,
1244
- isUlid,
1245
- projectIdentityPath,
1246
- readProjectIdentity,
1247
- readProjectIdentitySync,
1248
- rekeyProjectIdentity,
1249
- ulid
1250
- } from "./chunk-4XV6IR37.js";
1186
+ } from "./chunk-LSMMOS2Z.js";
1251
1187
  import {
1252
1188
  ESCAPE_TERMINATOR,
1253
1189
  TerminalLifecycle,
@@ -1284,8 +1220,22 @@ import {
1284
1220
  repeatedReadPressure,
1285
1221
  syncCompletedWorkLedgerBlock,
1286
1222
  wrapAsState
1287
- } from "./chunk-EFEHDQGY.js";
1288
- import "./chunk-AWNQ6ED6.js";
1223
+ } from "./chunk-ZHZ2Y2DH.js";
1224
+ import {
1225
+ PROJECT_IDENTITY_RELATIVE_PATH,
1226
+ PROJECT_IDENTITY_VERSION,
1227
+ PROJECT_ID_PREFIX,
1228
+ createProjectId,
1229
+ ensureProjectGitignore,
1230
+ ensureProjectIdentity,
1231
+ isProjectId,
1232
+ isUlid,
1233
+ projectIdentityPath,
1234
+ readProjectIdentity,
1235
+ readProjectIdentitySync,
1236
+ rekeyProjectIdentity,
1237
+ ulid
1238
+ } from "./chunk-HI3JGZR2.js";
1289
1239
  import {
1290
1240
  compactSchemaDescriptions,
1291
1241
  compactToolDefinitionForWire,
@@ -1301,7 +1251,7 @@ import {
1301
1251
  normalizeTopLevelToolSchema,
1302
1252
  recordActualUsage,
1303
1253
  resetCalibration
1304
- } from "./chunk-FSWCWSTS.js";
1254
+ } from "./chunk-HMLIGAU7.js";
1305
1255
  import {
1306
1256
  isPidAlive
1307
1257
  } from "./chunk-TRT2HRWZ.js";
@@ -1312,24 +1262,25 @@ import {
1312
1262
  assertUnixSocketPathWithinLimit,
1313
1263
  checkUnixSocketPath,
1314
1264
  unixSocketPathLimit
1315
- } from "./chunk-FAYRX2AD.js";
1265
+ } from "./chunk-POOOIWE5.js";
1316
1266
  import {
1317
1267
  atomicReplaceWithWriter,
1318
1268
  atomicWrite,
1319
1269
  ensureDir,
1320
1270
  withFileLock
1321
- } from "./chunk-7ZHZE5EO.js";
1322
- import {
1323
- SAGE_INJECTOR_HEADINGS,
1324
- capSageLines,
1325
- splitSageOutputBlock
1326
- } from "./chunk-SVT4RNTR.js";
1271
+ } from "./chunk-OSGLYW5J.js";
1327
1272
  import {
1328
1273
  isValidSkillNameFormat,
1329
1274
  parseSkillFrontmatter,
1330
1275
  stripFrontmatter,
1331
1276
  validateSkillName
1332
- } from "./chunk-WEBMSQP2.js";
1277
+ } from "./chunk-FC2ZGRF3.js";
1278
+ import "./chunk-THEGTRAG.js";
1279
+ import {
1280
+ SAGE_INJECTOR_HEADINGS,
1281
+ capSageLines,
1282
+ splitSageOutputBlock
1283
+ } from "./chunk-SVT4RNTR.js";
1333
1284
  import {
1334
1285
  bootstrapProfileName,
1335
1286
  canonicalProjectRoot,
@@ -1338,10 +1289,89 @@ import {
1338
1289
  resolveWstackPaths,
1339
1290
  safeProfileName,
1340
1291
  wstackGlobalRoot
1341
- } from "./chunk-YNCVSFGF.js";
1292
+ } from "./chunk-SAFHACFA.js";
1293
+ import {
1294
+ Pipeline,
1295
+ RunController,
1296
+ TOKENS
1297
+ } from "./chunk-NS52ISWS.js";
1298
+ import {
1299
+ formatModelRef,
1300
+ normalizeModelRef,
1301
+ parseModelRef
1302
+ } from "./chunk-RJIZEJ42.js";
1303
+ import {
1304
+ BUILTIN_MODEL_TIER_IDS,
1305
+ DEFAULT_SPEC_TEMPLATE,
1306
+ FLEET_CHAT_VERBOSITY_VALUES,
1307
+ MALFORMED_ARG_MARKERS,
1308
+ THEME_PRESET_IDS,
1309
+ ToolErrorCategory,
1310
+ resolveFleetChatVerbosity
1311
+ } from "./chunk-GDQ7CZRQ.js";
1312
+ import {
1313
+ diffRegistry,
1314
+ validateRegistryManifest
1315
+ } from "./chunk-IYFBFX34.js";
1316
+ import {
1317
+ MEMORY_TYPE_LABELS,
1318
+ defineMemoryCapability
1319
+ } from "./chunk-57GEWK5X.js";
1320
+ import {
1321
+ DEFAULT_MODES
1322
+ } from "./chunk-2FK4WTFF.js";
1323
+ import {
1324
+ CONTEXT_WINDOW_MODES,
1325
+ CONTEXT_WINDOW_MODE_PINNED_META_KEY,
1326
+ DEFAULT_AUTONOMY_CONFIG,
1327
+ DEFAULT_CIRCUIT_BREAKER_CONFIG,
1328
+ DEFAULT_CONTEXT_CONFIG,
1329
+ DEFAULT_CONTEXT_WINDOW_MODE_ID,
1330
+ DEFAULT_SESSION_LOGGING_CONFIG,
1331
+ DEFAULT_SESSION_PRUNE_DAYS,
1332
+ DEFAULT_TOOLS_CONFIG,
1333
+ DEPRECATED_CONTEXT_WINDOW_MODE_ALIASES,
1334
+ LARGE_WINDOW_DEEP_MODE_THRESHOLD,
1335
+ formatContextWindowModeList,
1336
+ getContextWindowMode,
1337
+ isContextWindowModeId,
1338
+ isContextWindowModeSelectionId,
1339
+ isDeprecatedContextWindowModeId,
1340
+ listContextWindowModes,
1341
+ normalizeContextWindowModeId,
1342
+ resolveContextWindowPolicy
1343
+ } from "./chunk-DLHHXUAM.js";
1344
+ import {
1345
+ GOVERNED_TOOL_EXECUTOR_META_KEY
1346
+ } from "./chunk-XBDP4QPW.js";
1347
+ import {
1348
+ BUILTIN_PROMPT_CATEGORIES,
1349
+ PROMPT_CATEGORY_LABELS,
1350
+ isBuiltinCategory
1351
+ } from "./chunk-KDQJCT2J.js";
1352
+ import {
1353
+ DESIGN_STACKS,
1354
+ KNOWN_TOKEN_GROUPS,
1355
+ KNOWN_TOKEN_NAMES,
1356
+ isDesignStack
1357
+ } from "./chunk-G5S3S5ZN.js";
1358
+ import {
1359
+ ProviderError,
1360
+ REASONING_EFFORT_LEVELS,
1361
+ StreamHangError,
1362
+ classifyProviderError,
1363
+ effectiveInputTokens,
1364
+ freshInputTokens,
1365
+ isContextOverflowShaped,
1366
+ isFallbackWorthy,
1367
+ isReasoningEffort,
1368
+ isRetryableKind,
1369
+ promptCacheHitRatio,
1370
+ totalUsageTokens
1371
+ } from "./chunk-3ECENVHL.js";
1342
1372
  import {
1343
1373
  flattenSystemPromptRegions
1344
- } from "./chunk-CB2HFKTP.js";
1374
+ } from "./chunk-VVBP6KGT.js";
1345
1375
  import {
1346
1376
  DEFAULT_TUI_THINKING_WORD,
1347
1377
  MAX_TUI_THINKING_WORD_LENGTH,
@@ -1353,6 +1383,9 @@ import {
1353
1383
  import {
1354
1384
  truncate
1355
1385
  } from "./chunk-B4AMLZPB.js";
1386
+ import {
1387
+ expectDefined
1388
+ } from "./chunk-PFZO3C6H.js";
1356
1389
  import {
1357
1390
  isImageBlock,
1358
1391
  isTextBlock,
@@ -1384,13 +1417,32 @@ import {
1384
1417
  isToolValidationError,
1385
1418
  isWrongStackError,
1386
1419
  toWrongStackError
1387
- } from "./chunk-WOEZV3Q4.js";
1420
+ } from "./chunk-25LSLC3G.js";
1388
1421
  import {
1389
1422
  toErrorMessage
1390
1423
  } from "./chunk-TBRL2RCC.js";
1391
1424
  import {
1392
- expectDefined
1393
- } from "./chunk-PFZO3C6H.js";
1425
+ projectSessionTimeline,
1426
+ projectSessionToolMeta
1427
+ } from "./chunk-3BDV7RL3.js";
1428
+ import {
1429
+ CHAT_MARKER_SOURCES,
1430
+ SESSION_MARKER_EVENT_TYPES,
1431
+ SYSTEM_INJECTION_PREFIXES,
1432
+ isSystemInjectedMessage,
1433
+ projectSessionMarkers,
1434
+ sessionEventToMarker
1435
+ } from "./chunk-ULMAQV3T.js";
1436
+
1437
+ // src/index.ts
1438
+ import {
1439
+ isSystemSessionId,
1440
+ requireSessionId,
1441
+ SESSION_ID_REQUIRED,
1442
+ SessionIdRequiredError,
1443
+ SYSTEM_SESSION_PREFIX,
1444
+ systemSessionId
1445
+ } from "@wrongstack/primitives";
1394
1446
 
1395
1447
  // src/core/run-env.ts
1396
1448
  function extractRunEnv(ctx) {
@@ -1439,6 +1491,7 @@ export {
1439
1491
  BUILTIN_COUNCIL_PERSONAS,
1440
1492
  BUILTIN_COUNCIL_PERSONA_IDS,
1441
1493
  BUILTIN_COUNCIL_PROFILES,
1494
+ BUILTIN_MODEL_TIER_IDS,
1442
1495
  BUILTIN_PROMPT_CATEGORIES,
1443
1496
  BrainCircuitBreaker,
1444
1497
  BrainDecisionCache,
@@ -1536,6 +1589,7 @@ export {
1536
1589
  DEFAULT_SKILLS_SH_URL,
1537
1590
  DEFAULT_SPEC_TEMPLATE,
1538
1591
  DEFAULT_SUBAGENT_BASELINE,
1592
+ DEFAULT_TIER_ID,
1539
1593
  DEFAULT_TOOLS_CONFIG,
1540
1594
  DEFAULT_TOOL_DESCRIPTION_MODE,
1541
1595
  DEFAULT_TOOL_RESULT_RENDER_MODE,
@@ -1750,6 +1804,7 @@ export {
1750
1804
  SESSION_CATALOG_MAX_FRAME_CHARS,
1751
1805
  SESSION_CATALOG_METADATA_FILE,
1752
1806
  SESSION_CATALOG_PROTOCOL_VERSION,
1807
+ SESSION_ID_REQUIRED,
1753
1808
  SESSION_MARKER_EVENT_TYPES,
1754
1809
  SESSION_RECIPIENT_PREFIX,
1755
1810
  SKILL_AUGMENTATION_MAX_BYTES,
@@ -1759,6 +1814,7 @@ export {
1759
1814
  SYSTEM_BLOCK_SOURCE,
1760
1815
  SYSTEM_CONFIG_VIEW_TOOL_NAME,
1761
1816
  SYSTEM_INJECTION_PREFIXES,
1817
+ SYSTEM_SESSION_PREFIX,
1762
1818
  SageCachePragmas,
1763
1819
  ScopedEventBus,
1764
1820
  SddError,
@@ -1768,7 +1824,10 @@ export {
1768
1824
  SessionCatalogStore,
1769
1825
  SessionCheckpointCas,
1770
1826
  SessionError,
1827
+ SessionIdRequiredError,
1771
1828
  SessionMemoryConsolidator,
1829
+ SessionMemoryCurator,
1830
+ SessionNoteHub,
1772
1831
  SessionRecovery,
1773
1832
  ProjectSessionRegistry as SessionRegistry,
1774
1833
  SkillInstaller,
@@ -1802,6 +1861,7 @@ export {
1802
1861
  acquireOrJoin,
1803
1862
  actionToAckInput,
1804
1863
  activateProjectStateGuard,
1864
+ activeTierConfig,
1805
1865
  addFatalSalvageHook,
1806
1866
  addPlanItem,
1807
1867
  allServers,
@@ -1816,6 +1876,7 @@ export {
1816
1876
  applyRewindToConversation,
1817
1877
  applyRosterBudget,
1818
1878
  applyRule,
1879
+ applyTierToSubagentConfig,
1819
1880
  applyToolDescriptionModeToTool,
1820
1881
  applyToolDescriptionModes,
1821
1882
  applyToolResultRenderModes,
@@ -1835,6 +1896,7 @@ export {
1835
1896
  attachDepWatcherBridge,
1836
1897
  attachMailboxChecker,
1837
1898
  attachPlanCheckpoint,
1899
+ attachSessionNotes,
1838
1900
  attachTodosCheckpoint,
1839
1901
  authorizeMailboxBearerToken,
1840
1902
  authorizePersistedMailboxCredential,
@@ -1869,6 +1931,7 @@ export {
1869
1931
  buildRecoveryAlert,
1870
1932
  buildRefinerContextSections,
1871
1933
  buildReviewerModelPool,
1934
+ buildSessionNoteBlock,
1872
1935
  buildSgrSequence,
1873
1936
  buildSkillDistillInstruction,
1874
1937
  buildSmartDigest,
@@ -1890,6 +1953,7 @@ export {
1890
1953
  chronicleProjectServerMetadataPath,
1891
1954
  classifyMailboxRecipient,
1892
1955
  classifyProviderError,
1956
+ classifyTier,
1893
1957
  cleanOrphanLocks,
1894
1958
  clearPlan,
1895
1959
  clearProjectAgentConsolidated,
@@ -1914,10 +1978,12 @@ export {
1914
1978
  computeMessageTokens,
1915
1979
  computeTaskItemProgress,
1916
1980
  configHistoryDir,
1981
+ configSlug,
1917
1982
  configureChildEnvGitIdentity,
1918
1983
  consolidatedDocumentPath,
1919
1984
  consumeBtwNotes,
1920
1985
  consumeQueuedMessagesUpdate,
1986
+ consumeSessionNotes,
1921
1987
  coordinateGoalIteration,
1922
1988
  countShellHooks,
1923
1989
  createAgentMonitorService,
@@ -1980,6 +2046,7 @@ export {
1980
2046
  deleteGoalKanbanBoard,
1981
2047
  deriveCachePrefixKey,
1982
2048
  deriveHqProjectId,
2049
+ deriveSessionAgents,
1983
2050
  deriveTodosFromPlanItem,
1984
2051
  detectContinueIntent,
1985
2052
  detectEcosystem,
@@ -1987,6 +2054,7 @@ export {
1987
2054
  detectNewlineStyle,
1988
2055
  detectEcosystem as detectPackageEcosystem,
1989
2056
  detectTerminal,
2057
+ diagnoseSessions,
1990
2058
  diffPluginConfig,
1991
2059
  diffRegistry,
1992
2060
  directiveTrials,
@@ -2008,6 +2076,7 @@ export {
2008
2076
  encodeSessionCatalogMessage,
2009
2077
  encryptedPrefixForVersion,
2010
2078
  enhanceUserPrompt,
2079
+ enqueueSessionNote,
2011
2080
  ensureDir,
2012
2081
  ensureGitignore,
2013
2082
  ensureHqFirstRunAuthFile,
@@ -2031,7 +2100,9 @@ export {
2031
2100
  estimateToolResultTokens,
2032
2101
  evaluateAutoOptimize,
2033
2102
  evaluateBrainRules,
2103
+ evaluateLeaderTierSwitch,
2034
2104
  evaluateModelCalendar,
2105
+ evaluateSwitchEconomics,
2035
2106
  evaluateToolKanbanBoundary,
2036
2107
  executeFindingCommand,
2037
2108
  expandGlob,
@@ -2129,6 +2200,7 @@ export {
2129
2200
  isChronicleMetricsAvailable,
2130
2201
  isChronicleProjectServerAvailable,
2131
2202
  isConfigError,
2203
+ isConfiguredTier,
2132
2204
  isConsolidated,
2133
2205
  isContextOverflowShaped,
2134
2206
  isContextWindowModeId,
@@ -2172,6 +2244,7 @@ export {
2172
2244
  isStdinTTY,
2173
2245
  isStdoutTTY,
2174
2246
  isSystemInjectedMessage,
2247
+ isSystemSessionId,
2175
2248
  isTextBlock,
2176
2249
  isTokenExpired,
2177
2250
  isToolError,
@@ -2186,11 +2259,13 @@ export {
2186
2259
  jsonObjectFileExists,
2187
2260
  kanbanBoundaryOps,
2188
2261
  kanbanDispatch,
2262
+ leaderTierPolicy,
2189
2263
  listContextWindowModes,
2190
2264
  listPlanTemplates,
2191
2265
  listProjectAgentLearnedEntries,
2192
2266
  listProjectAgentRoles,
2193
2267
  listProjectSkillAugmentations,
2268
+ listTierIds,
2194
2269
  loadCompletedWorkCheckpoint,
2195
2270
  loadConsolidationMetadata,
2196
2271
  loadDirectorState,
@@ -2235,6 +2310,7 @@ export {
2235
2310
  makeMutationTestTool,
2236
2311
  makeQualityGateTool,
2237
2312
  makeRollUpTool,
2313
+ makeSessionNoteTool,
2238
2314
  makeSpawnTool,
2239
2315
  makeSubagentResultTool,
2240
2316
  makeTerminateAllTool,
@@ -2303,11 +2379,15 @@ export {
2303
2379
  parseTaskBoundary,
2304
2380
  peekQueuedMessages,
2305
2381
  pendingBtwCount,
2382
+ pendingSessionNoteCount,
2306
2383
  persistReviewReport,
2307
2384
  phaseForRole,
2385
+ postSessionNote,
2308
2386
  projectHash,
2309
2387
  projectIdentityPath,
2310
2388
  projectSessionMarkers,
2389
+ projectSessionTimeline,
2390
+ projectSessionToolMeta,
2311
2391
  projectSlug,
2312
2392
  promptCacheHitRatio,
2313
2393
  promptChecksum,
@@ -2357,12 +2437,15 @@ export {
2357
2437
  renderSkillAugmentation,
2358
2438
  renderTaskBoundaryBlock,
2359
2439
  repairConfigDefaults,
2440
+ repairSessionSummaries,
2360
2441
  repairToolUseAdjacency,
2361
2442
  repeatedReadPressure,
2443
+ requireSessionId,
2362
2444
  resetCalibration,
2363
2445
  resetCaptureWindow,
2364
2446
  resetCaptureWindows,
2365
2447
  resetConnectivityCache,
2448
+ resetHqPublisherWarningStateForTests,
2366
2449
  resetProjectAgentIdentity,
2367
2450
  resolveAuditLevel,
2368
2451
  resolveAutoOptimizePolicy,
@@ -2404,6 +2487,7 @@ export {
2404
2487
  resolveSessionLoggingConfig,
2405
2488
  resolveSubagentModelTarget,
2406
2489
  resolveSubagentWorktreeDecision,
2490
+ resolveTier,
2407
2491
  resolveTokenSavingTier,
2408
2492
  resolveToolDescriptionMode,
2409
2493
  resolveToolResultRenderMode,
@@ -2459,6 +2543,7 @@ export {
2459
2543
  sessionCatalogProjectServerMetadataPath,
2460
2544
  sessionEventToMarker,
2461
2545
  sessionIdResolutionError,
2546
+ sessionNoteHub,
2462
2547
  sessionRecipient,
2463
2548
  sessionScopedPath,
2464
2549
  setBoardStorePort,
@@ -2486,6 +2571,7 @@ export {
2486
2571
  splitSageOutputBlock,
2487
2572
  sqliteCachePragmas,
2488
2573
  stableStringify,
2574
+ stampAgentId,
2489
2575
  startBrainTelemetryBridge,
2490
2576
  startChronicleFileObserver,
2491
2577
  startChronicleHealthMonitor,
@@ -2512,15 +2598,21 @@ export {
2512
2598
  syncCompletedWorkLedgerBlock,
2513
2599
  syncReportCompletion,
2514
2600
  syncReportReopen,
2601
+ systemSessionId,
2515
2602
  takeHeapSample,
2516
2603
  taskBoundarySchemaProperties,
2517
2604
  terminalPolicyDecision,
2605
+ tierBudget,
2606
+ tierLevel,
2607
+ tierModelTarget,
2608
+ tierRank,
2518
2609
  tightenHqRedactionPolicy,
2519
2610
  toAlertMessage,
2520
2611
  toErrorMessage,
2521
2612
  toStyle,
2522
2613
  toWrongStackError,
2523
2614
  tokenHasCapability,
2615
+ totalUsageTokens,
2524
2616
  transitionReport,
2525
2617
  truncate,
2526
2618
  tuiStreamFlushMs,
@@ -2559,6 +2651,7 @@ export {
2559
2651
  wireReviewFindingsToChronicle,
2560
2652
  wireRollupsToChronicle,
2561
2653
  wireToolsToChronicle,
2654
+ withAgentAttribution,
2562
2655
  withDisabledToolFiltering,
2563
2656
  withFileLock,
2564
2657
  withSqliteExperimentalWarningSuppressed,