@wrongstack/core 0.296.4 → 0.298.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 (820) hide show
  1. package/dist/chronicle/index.js +126 -22
  2. package/dist/chronicle/project-server-client.d.ts +12 -0
  3. package/dist/chronicle/project-server-protocol.d.ts +22 -0
  4. package/dist/chronicle/project-server.js +1076 -283
  5. package/dist/coordination/agents/index.js +136 -1
  6. package/dist/coordination/agents/role-skills.d.ts +3 -2
  7. package/dist/coordination/brain-cache.d.ts +14 -0
  8. package/dist/coordination/brain-trace.d.ts +2 -1
  9. package/dist/coordination/director/director-task-registry.d.ts +12 -0
  10. package/dist/coordination/fleet-supervisor.d.ts +21 -0
  11. package/dist/coordination/index.d.ts +23 -21
  12. package/dist/coordination/index.js +16514 -15945
  13. package/dist/coordination/mail-tools.d.ts +3 -3
  14. package/dist/coordination/mailbox-credential-store.d.ts +22 -2
  15. package/dist/coordination/mailbox-credential-throttle.d.ts +63 -0
  16. package/dist/coordination/mailbox-http-router.d.ts +6 -0
  17. package/dist/coordination/mailbox-project-server-client.d.ts +16 -0
  18. package/dist/coordination/mailbox-project-server-protocol.d.ts +43 -5
  19. package/dist/coordination/mailbox-project-server.js +1270 -289
  20. package/dist/coordination/provider-status-tracker.d.ts +2 -0
  21. package/dist/coordination/remote-mailbox-credential-store.d.ts +5 -5
  22. package/dist/coordination/remote-mailbox.d.ts +30 -4
  23. package/dist/coordination/sqlite-mailbox-credentials.d.ts +11 -0
  24. package/dist/core/context.d.ts +5 -5
  25. package/dist/core/fallback-profile-manager.d.ts +14 -0
  26. package/dist/core/index.js +624 -168
  27. package/dist/core/instruction-bundle.d.ts +12 -0
  28. package/dist/core/system-prompt-builder.d.ts +14 -0
  29. package/dist/core/system-prompt-skill-bodies.d.ts +1 -1
  30. package/dist/core/system-prompt-skill-text.d.ts +1 -2
  31. package/dist/defaults/index.js +2393 -1302
  32. package/dist/design/index.js +47 -8
  33. package/dist/execution/design-materialize.d.ts +22 -0
  34. package/dist/execution/index.js +582 -285
  35. package/dist/execution/skill-loader.d.ts +10 -1
  36. package/dist/execution/tool-error-taxonomy.d.ts +31 -0
  37. package/dist/execution/tool-executor.d.ts +1 -0
  38. package/dist/goal/index.js +71 -17
  39. package/dist/goal/phase-store.d.ts +7 -0
  40. package/dist/hooks/index.js +5 -0
  41. package/dist/hq/auth-audit.d.ts +6 -0
  42. package/dist/hq/auth-store.d.ts +59 -3
  43. package/dist/hq/index.js +680 -163
  44. package/dist/hq/kanban-store.d.ts +3 -0
  45. package/dist/hq/persistence/event-log.d.ts +25 -0
  46. package/dist/hq/persistence.d.ts +1 -1
  47. package/dist/hq/protocol/browser.d.ts +2 -1
  48. package/dist/hq/protocol/client.d.ts +18 -1
  49. package/dist/hq/protocol/core.d.ts +5 -16
  50. package/dist/hq/protocol/envelope.d.ts +29 -0
  51. package/dist/hq/protocol/governance.d.ts +34 -0
  52. package/dist/hq/protocol/peer.d.ts +55 -0
  53. package/dist/hq/protocol/project.d.ts +3 -0
  54. package/dist/hq/protocol/resume.d.ts +56 -0
  55. package/dist/hq/protocol.d.ts +11 -8
  56. package/dist/hq/protocol.js +675 -0
  57. package/dist/hq/publisher.d.ts +31 -2
  58. package/dist/hq/session-bridge.d.ts +8 -0
  59. package/dist/index.js +7197 -4006
  60. package/dist/infrastructure/index.js +198 -101
  61. package/dist/kernel/events/session-events.d.ts +3 -0
  62. package/dist/kernel/events/tool-events.d.ts +3 -1
  63. package/dist/models/index.js +1 -1
  64. package/dist/observability/index.d.ts +1 -1
  65. package/dist/observability/index.js +103 -5
  66. package/dist/observability/metrics.d.ts +37 -0
  67. package/dist/observability/prometheus.d.ts +11 -0
  68. package/dist/plugin/index.d.ts +5 -1
  69. package/dist/plugin/index.js +965 -511
  70. package/dist/plugins/auto-review-plugin.d.ts +6 -0
  71. package/dist/plugins/review-store-maintenance.d.ts +26 -0
  72. package/dist/plugins/review-types.d.ts +6 -0
  73. package/dist/security/capabilities.d.ts +45 -1
  74. package/dist/security/error-sanitize.d.ts +49 -0
  75. package/dist/security/file-permissions.d.ts +41 -0
  76. package/dist/security/index.d.ts +9 -6
  77. package/dist/security/index.js +3007 -2032
  78. package/dist/security/permission-policy.d.ts +55 -3
  79. package/dist/security/secret-vault.d.ts +17 -0
  80. package/dist/security/totp.d.ts +86 -0
  81. package/dist/skills/frontmatter.d.ts +12 -1
  82. package/dist/skills/github-fetcher.d.ts +48 -0
  83. package/dist/skills/index.js +137 -26
  84. package/dist/skills/limits.d.ts +19 -0
  85. package/dist/skills/skill-installer.d.ts +13 -0
  86. package/dist/storage/file-session-writer.d.ts +23 -0
  87. package/dist/storage/index.js +1140 -905
  88. package/dist/storage/provider-config-watcher.d.ts +1 -0
  89. package/dist/storage/session-helpers.d.ts +1 -0
  90. package/dist/storage/session-reader.d.ts +0 -7
  91. package/dist/storage/session-store/types.d.ts +12 -1
  92. package/dist/storage/session-store.d.ts +11 -2
  93. package/dist/storage/session-workspace-checkpoints.d.ts +5 -0
  94. package/dist/tools/fallback-manage-tools.d.ts +6 -0
  95. package/dist/tools/index.js +305 -133
  96. package/dist/tools/mcp-use.d.ts +1 -1
  97. package/dist/types/blocks.d.ts +7 -0
  98. package/dist/types/config/autonomy.d.ts +12 -3
  99. package/dist/types/config/mcp-features.d.ts +15 -1
  100. package/dist/types/config/root.d.ts +10 -4
  101. package/dist/types/context-window.d.ts +15 -0
  102. package/dist/types/index.d.ts +1 -1
  103. package/dist/types/observability.d.ts +13 -0
  104. package/dist/types/secret-vault.d.ts +8 -0
  105. package/dist/types/session.d.ts +42 -0
  106. package/dist/types/skill.d.ts +56 -0
  107. package/dist/types/tool-executor.d.ts +2 -0
  108. package/dist/utils/continuous-memory-profiler.d.ts +35 -0
  109. package/dist/utils/env-typed.d.ts +64 -0
  110. package/dist/utils/glob-match.d.ts +21 -1
  111. package/dist/utils/heap-watchdog-types.d.ts +62 -0
  112. package/dist/utils/heap-watchdog.d.ts +15 -34
  113. package/dist/utils/heap-watchdog.js +592 -18
  114. package/dist/utils/incoming-images.d.ts +19 -0
  115. package/dist/utils/index.d.ts +15 -11
  116. package/dist/utils/index.js +1425 -545
  117. package/dist/utils/memory-flight-recorder.d.ts +47 -0
  118. package/dist/utils/path-segment.d.ts +29 -0
  119. package/dist/utils/tool-name.d.ts +34 -0
  120. package/dist/utils/win32-cmd.d.ts +25 -0
  121. package/dist/worktree/index.js +5 -0
  122. package/package.json +11 -3
  123. package/skills/chimera/SKILL.md +16 -4
  124. package/skills/data-governance/SKILL.md +92 -0
  125. package/skills/wrongstack-kanban/SKILL.md +129 -0
  126. package/skills/wrongstack-kanban/agents/openai.yaml +4 -0
  127. package/skills/wrongstack-mailbox-mcp/SKILL.md +72 -0
  128. package/skills/wrongstack-mailbox-mcp/agents/openai.yaml +4 -0
  129. package/dist/agent-status-helpers.d.ts.map +0 -1
  130. package/dist/agent-status-tracker.d.ts.map +0 -1
  131. package/dist/boot.d.ts.map +0 -1
  132. package/dist/chronicle/context.d.ts.map +0 -1
  133. package/dist/chronicle/decision-adapter.d.ts.map +0 -1
  134. package/dist/chronicle/domain-adapter.d.ts.map +0 -1
  135. package/dist/chronicle/event-hash.d.ts.map +0 -1
  136. package/dist/chronicle/file-observer.d.ts.map +0 -1
  137. package/dist/chronicle/health-monitor.d.ts.map +0 -1
  138. package/dist/chronicle/identity.d.ts.map +0 -1
  139. package/dist/chronicle/index.d.ts.map +0 -1
  140. package/dist/chronicle/index.js.map +0 -7
  141. package/dist/chronicle/journal.d.ts.map +0 -1
  142. package/dist/chronicle/legacy-journal-import.d.ts.map +0 -1
  143. package/dist/chronicle/metrics-store.d.ts.map +0 -1
  144. package/dist/chronicle/partition-filename.d.ts.map +0 -1
  145. package/dist/chronicle/partition-range-cache.d.ts.map +0 -1
  146. package/dist/chronicle/process-adapter.d.ts.map +0 -1
  147. package/dist/chronicle/project-access.d.ts.map +0 -1
  148. package/dist/chronicle/project-server-client.d.ts.map +0 -1
  149. package/dist/chronicle/project-server-endpoint.d.ts.map +0 -1
  150. package/dist/chronicle/project-server-protocol.d.ts.map +0 -1
  151. package/dist/chronicle/project-server.d.ts.map +0 -1
  152. package/dist/chronicle/project-server.js.map +0 -7
  153. package/dist/chronicle/prompt-manifest.d.ts.map +0 -1
  154. package/dist/chronicle/provider-adapter.d.ts.map +0 -1
  155. package/dist/chronicle/query.d.ts.map +0 -1
  156. package/dist/chronicle/review-adapter.d.ts.map +0 -1
  157. package/dist/chronicle/rollup-adapter.d.ts.map +0 -1
  158. package/dist/chronicle/sink.d.ts.map +0 -1
  159. package/dist/chronicle/sqlite-journal.d.ts.map +0 -1
  160. package/dist/chronicle/sqlite-query.d.ts.map +0 -1
  161. package/dist/chronicle/stream-adapter.d.ts.map +0 -1
  162. package/dist/chronicle/tool-adapter.d.ts.map +0 -1
  163. package/dist/chronicle/types.d.ts.map +0 -1
  164. package/dist/coordination/adaptive-concurrency.d.ts.map +0 -1
  165. package/dist/coordination/agent-bridge.d.ts.map +0 -1
  166. package/dist/coordination/agent-monitor.d.ts.map +0 -1
  167. package/dist/coordination/agent-subagent-runner.d.ts.map +0 -1
  168. package/dist/coordination/agents/agent-prompts.d.ts.map +0 -1
  169. package/dist/coordination/agents/index.d.ts.map +0 -1
  170. package/dist/coordination/agents/index.js.map +0 -7
  171. package/dist/coordination/agents/phase1-discovery.d.ts.map +0 -1
  172. package/dist/coordination/agents/phase2-planning.d.ts.map +0 -1
  173. package/dist/coordination/agents/phase3-build.d.ts.map +0 -1
  174. package/dist/coordination/agents/phase3-techstack.d.ts.map +0 -1
  175. package/dist/coordination/agents/phase3-wave1-platform.d.ts.map +0 -1
  176. package/dist/coordination/agents/phase3-wave2-meta.d.ts.map +0 -1
  177. package/dist/coordination/agents/phase4-verify.d.ts.map +0 -1
  178. package/dist/coordination/agents/phase5-review.d.ts.map +0 -1
  179. package/dist/coordination/agents/phase6-domain.d.ts.map +0 -1
  180. package/dist/coordination/agents/phase7-knowledge.d.ts.map +0 -1
  181. package/dist/coordination/agents/phase8-delivery.d.ts.map +0 -1
  182. package/dist/coordination/agents/phase8-wave3-products.d.ts.map +0 -1
  183. package/dist/coordination/agents/phase9-meta.d.ts.map +0 -1
  184. package/dist/coordination/agents/phase9-wave4-platform-meta.d.ts.map +0 -1
  185. package/dist/coordination/agents/project-agent-config-validation.d.ts.map +0 -1
  186. package/dist/coordination/agents/project-agent-consolidation.d.ts.map +0 -1
  187. package/dist/coordination/agents/project-agent-files.d.ts.map +0 -1
  188. package/dist/coordination/agents/project-agent-identity-types.d.ts.map +0 -1
  189. package/dist/coordination/agents/project-agent-identity.d.ts.map +0 -1
  190. package/dist/coordination/agents/project-agent-knowledge-manifests.d.ts.map +0 -1
  191. package/dist/coordination/agents/project-agent-learning-entries.d.ts.map +0 -1
  192. package/dist/coordination/agents/project-agent-learning-normalize.d.ts.map +0 -1
  193. package/dist/coordination/agents/project-agent-learning-policy.d.ts.map +0 -1
  194. package/dist/coordination/agents/project-agent-learning-structured.d.ts.map +0 -1
  195. package/dist/coordination/agents/project-agent-paths.d.ts.map +0 -1
  196. package/dist/coordination/agents/project-agent-profile.d.ts.map +0 -1
  197. package/dist/coordination/agents/role-skills.d.ts.map +0 -1
  198. package/dist/coordination/agents/types.d.ts.map +0 -1
  199. package/dist/coordination/agents.d.ts.map +0 -1
  200. package/dist/coordination/auto-extend.d.ts.map +0 -1
  201. package/dist/coordination/autonomous-brain.d.ts.map +0 -1
  202. package/dist/coordination/autonomous-coordinator.d.ts.map +0 -1
  203. package/dist/coordination/brain-cache.d.ts.map +0 -1
  204. package/dist/coordination/brain-heuristics.d.ts.map +0 -1
  205. package/dist/coordination/brain-ledger.d.ts.map +0 -1
  206. package/dist/coordination/brain-monitor.d.ts.map +0 -1
  207. package/dist/coordination/brain-rules.d.ts.map +0 -1
  208. package/dist/coordination/brain-telemetry.d.ts.map +0 -1
  209. package/dist/coordination/brain-trace.d.ts.map +0 -1
  210. package/dist/coordination/brain.d.ts.map +0 -1
  211. package/dist/coordination/change-manager.d.ts.map +0 -1
  212. package/dist/coordination/checkpoint-wiring.d.ts.map +0 -1
  213. package/dist/coordination/collab-bus.d.ts.map +0 -1
  214. package/dist/coordination/collab-debug-types.d.ts.map +0 -1
  215. package/dist/coordination/collab-debug.d.ts.map +0 -1
  216. package/dist/coordination/collab-director-host.d.ts.map +0 -1
  217. package/dist/coordination/commit-safety.d.ts.map +0 -1
  218. package/dist/coordination/consensus-protocol.d.ts.map +0 -1
  219. package/dist/coordination/coordinator/error-classifier.d.ts.map +0 -1
  220. package/dist/coordination/delegate-tool.d.ts.map +0 -1
  221. package/dist/coordination/dep-watcher-bridge.d.ts.map +0 -1
  222. package/dist/coordination/dep-watcher.d.ts.map +0 -1
  223. package/dist/coordination/director/director-btw-notes.d.ts.map +0 -1
  224. package/dist/coordination/director/director-budget-policy.d.ts.map +0 -1
  225. package/dist/coordination/director/director-collab.d.ts.map +0 -1
  226. package/dist/coordination/director/director-errors.d.ts.map +0 -1
  227. package/dist/coordination/director/director-task-registry.d.ts.map +0 -1
  228. package/dist/coordination/director/director-toolset.d.ts.map +0 -1
  229. package/dist/coordination/director-basic-tools.d.ts.map +0 -1
  230. package/dist/coordination/director-collab-tools.d.ts.map +0 -1
  231. package/dist/coordination/director-host-contracts.d.ts.map +0 -1
  232. package/dist/coordination/director-input-helpers.d.ts.map +0 -1
  233. package/dist/coordination/director-kanban-queue-helpers.d.ts.map +0 -1
  234. package/dist/coordination/director-options.d.ts.map +0 -1
  235. package/dist/coordination/director-prompts.d.ts.map +0 -1
  236. package/dist/coordination/director-quality-gate-tool.d.ts.map +0 -1
  237. package/dist/coordination/director-session.d.ts.map +0 -1
  238. package/dist/coordination/director-spawn-model.d.ts.map +0 -1
  239. package/dist/coordination/director-tools.d.ts.map +0 -1
  240. package/dist/coordination/director.d.ts.map +0 -1
  241. package/dist/coordination/dispatcher.d.ts.map +0 -1
  242. package/dist/coordination/file-author-tracker.d.ts.map +0 -1
  243. package/dist/coordination/fleet-bus.d.ts.map +0 -1
  244. package/dist/coordination/fleet-event-validation.d.ts.map +0 -1
  245. package/dist/coordination/fleet-manager.d.ts.map +0 -1
  246. package/dist/coordination/fleet-spawn.d.ts.map +0 -1
  247. package/dist/coordination/fleet-status-tool.d.ts.map +0 -1
  248. package/dist/coordination/fleet-supervisor.d.ts.map +0 -1
  249. package/dist/coordination/fleet.d.ts.map +0 -1
  250. package/dist/coordination/global-mailbox-completion.d.ts.map +0 -1
  251. package/dist/coordination/global-mailbox-paths.d.ts.map +0 -1
  252. package/dist/coordination/icoordinator.d.ts.map +0 -1
  253. package/dist/coordination/ifleet-manager.d.ts.map +0 -1
  254. package/dist/coordination/in-memory-transport.d.ts.map +0 -1
  255. package/dist/coordination/index.d.ts.map +0 -1
  256. package/dist/coordination/index.js.map +0 -7
  257. package/dist/coordination/knowledge-graph.d.ts.map +0 -1
  258. package/dist/coordination/large-answer-store.d.ts.map +0 -1
  259. package/dist/coordination/mail-tools.d.ts.map +0 -1
  260. package/dist/coordination/mailbox-actions.d.ts.map +0 -1
  261. package/dist/coordination/mailbox-auth-types.d.ts.map +0 -1
  262. package/dist/coordination/mailbox-codecs.d.ts.map +0 -1
  263. package/dist/coordination/mailbox-constants.d.ts.map +0 -1
  264. package/dist/coordination/mailbox-credential-store.d.ts.map +0 -1
  265. package/dist/coordination/mailbox-events.d.ts.map +0 -1
  266. package/dist/coordination/mailbox-health.d.ts.map +0 -1
  267. package/dist/coordination/mailbox-hooks.d.ts.map +0 -1
  268. package/dist/coordination/mailbox-http-auth.d.ts.map +0 -1
  269. package/dist/coordination/mailbox-http-rate-limit.d.ts.map +0 -1
  270. package/dist/coordination/mailbox-http-router.d.ts.map +0 -1
  271. package/dist/coordination/mailbox-http-validation.d.ts.map +0 -1
  272. package/dist/coordination/mailbox-message-codec.d.ts.map +0 -1
  273. package/dist/coordination/mailbox-parse-state.d.ts.map +0 -1
  274. package/dist/coordination/mailbox-project-server-client.d.ts.map +0 -1
  275. package/dist/coordination/mailbox-project-server-endpoint.d.ts.map +0 -1
  276. package/dist/coordination/mailbox-project-server-protocol.d.ts.map +0 -1
  277. package/dist/coordination/mailbox-project-server.d.ts.map +0 -1
  278. package/dist/coordination/mailbox-project-server.js.map +0 -7
  279. package/dist/coordination/mailbox-receipt-folding.d.ts.map +0 -1
  280. package/dist/coordination/mailbox-registry-codec.d.ts.map +0 -1
  281. package/dist/coordination/mailbox-retention-state.d.ts.map +0 -1
  282. package/dist/coordination/mailbox-status-mappers.d.ts.map +0 -1
  283. package/dist/coordination/mailbox-tool.d.ts.map +0 -1
  284. package/dist/coordination/mailbox-type-properties.d.ts.map +0 -1
  285. package/dist/coordination/mailbox-types.d.ts.map +0 -1
  286. package/dist/coordination/model-matrix.d.ts.map +0 -1
  287. package/dist/coordination/multi-agent-coordinator.d.ts.map +0 -1
  288. package/dist/coordination/multi-agent-timeout.d.ts.map +0 -1
  289. package/dist/coordination/null-fleet-bus.d.ts.map +0 -1
  290. package/dist/coordination/package-author-tracker.d.ts.map +0 -1
  291. package/dist/coordination/package-outdated-watcher.d.ts.map +0 -1
  292. package/dist/coordination/provider-status-tracker.d.ts.map +0 -1
  293. package/dist/coordination/remote-mailbox-credential-store.d.ts.map +0 -1
  294. package/dist/coordination/remote-mailbox.d.ts.map +0 -1
  295. package/dist/coordination/single-instance-mailbox.d.ts.map +0 -1
  296. package/dist/coordination/spawn-budget.d.ts.map +0 -1
  297. package/dist/coordination/sqlite-mailbox-compaction.d.ts.map +0 -1
  298. package/dist/coordination/sqlite-mailbox-credentials.d.ts.map +0 -1
  299. package/dist/coordination/sqlite-mailbox-rows.d.ts.map +0 -1
  300. package/dist/coordination/sqlite-mailbox-schema.d.ts.map +0 -1
  301. package/dist/coordination/sqlite-mailbox.d.ts.map +0 -1
  302. package/dist/coordination/subagent-budget.d.ts.map +0 -1
  303. package/dist/coordination/subagent-nicknames.d.ts.map +0 -1
  304. package/dist/coordination/subagent-result-tool.d.ts.map +0 -1
  305. package/dist/coordination/task-auctioneer.d.ts.map +0 -1
  306. package/dist/coordination/task-dag.d.ts.map +0 -1
  307. package/dist/coordination/techstack-mailbox-consumer.d.ts.map +0 -1
  308. package/dist/coordination/transport.d.ts.map +0 -1
  309. package/dist/coordination/worktree-task-runner.d.ts.map +0 -1
  310. package/dist/core/agent-internals.d.ts.map +0 -1
  311. package/dist/core/agent-loop.d.ts.map +0 -1
  312. package/dist/core/agent-response.d.ts.map +0 -1
  313. package/dist/core/agent-tools.d.ts.map +0 -1
  314. package/dist/core/agent-types.d.ts.map +0 -1
  315. package/dist/core/agent.d.ts.map +0 -1
  316. package/dist/core/btw.d.ts.map +0 -1
  317. package/dist/core/context.d.ts.map +0 -1
  318. package/dist/core/continue-intent.d.ts.map +0 -1
  319. package/dist/core/continue-to-next-iteration.d.ts.map +0 -1
  320. package/dist/core/conversation-state.d.ts.map +0 -1
  321. package/dist/core/fallback-model.d.ts.map +0 -1
  322. package/dist/core/fallback-profile-manager.d.ts.map +0 -1
  323. package/dist/core/fleet-pulse.d.ts.map +0 -1
  324. package/dist/core/index.d.ts.map +0 -1
  325. package/dist/core/index.js.map +0 -7
  326. package/dist/core/input-builder.d.ts.map +0 -1
  327. package/dist/core/instruction-bundle.d.ts.map +0 -1
  328. package/dist/core/iteration-limit.d.ts.map +0 -1
  329. package/dist/core/mailbox-loop.d.ts.map +0 -1
  330. package/dist/core/model-availability-calendar.d.ts.map +0 -1
  331. package/dist/core/model-ref.d.ts.map +0 -1
  332. package/dist/core/model-ref.js.map +0 -7
  333. package/dist/core/modes/brief.d.ts.map +0 -1
  334. package/dist/core/modes/default.d.ts.map +0 -1
  335. package/dist/core/modes/teach.d.ts.map +0 -1
  336. package/dist/core/provider-runner.d.ts.map +0 -1
  337. package/dist/core/queued-messages.d.ts.map +0 -1
  338. package/dist/core/request-provider-binding.d.ts.map +0 -1
  339. package/dist/core/run-env.d.ts.map +0 -1
  340. package/dist/core/streaming-response-builder.d.ts.map +0 -1
  341. package/dist/core/system-prompt-blocks.d.ts.map +0 -1
  342. package/dist/core/system-prompt-builder.d.ts.map +0 -1
  343. package/dist/core/system-prompt-environment-probes.d.ts.map +0 -1
  344. package/dist/core/system-prompt-environment.d.ts.map +0 -1
  345. package/dist/core/system-prompt-memory-skills.d.ts.map +0 -1
  346. package/dist/core/system-prompt-plan.d.ts.map +0 -1
  347. package/dist/core/system-prompt-shell.d.ts.map +0 -1
  348. package/dist/core/system-prompt-skill-bodies.d.ts.map +0 -1
  349. package/dist/core/system-prompt-skill-text.d.ts.map +0 -1
  350. package/dist/defaults/index.d.ts.map +0 -1
  351. package/dist/defaults/index.js.map +0 -7
  352. package/dist/design/index.d.ts.map +0 -1
  353. package/dist/design/index.js.map +0 -7
  354. package/dist/execution/auto-compaction-middleware.d.ts.map +0 -1
  355. package/dist/execution/autonomous-runner.d.ts.map +0 -1
  356. package/dist/execution/autonomy-brain.d.ts.map +0 -1
  357. package/dist/execution/autonomy-prompt-contributor.d.ts.map +0 -1
  358. package/dist/execution/brain-chain.d.ts.map +0 -1
  359. package/dist/execution/brain-circuit.d.ts.map +0 -1
  360. package/dist/execution/brain-evaluation.d.ts.map +0 -1
  361. package/dist/execution/brain-runtime-constants.d.ts.map +0 -1
  362. package/dist/execution/brain-runtime.d.ts.map +0 -1
  363. package/dist/execution/compaction-core.d.ts.map +0 -1
  364. package/dist/execution/compaction-scoring.d.ts.map +0 -1
  365. package/dist/execution/compaction-summary-cache.d.ts.map +0 -1
  366. package/dist/execution/compactor.d.ts.map +0 -1
  367. package/dist/execution/council-brain.d.ts.map +0 -1
  368. package/dist/execution/council-orchestrator.d.ts.map +0 -1
  369. package/dist/execution/council-personas.d.ts.map +0 -1
  370. package/dist/execution/council-profiles.d.ts.map +0 -1
  371. package/dist/execution/council-prompts.d.ts.map +0 -1
  372. package/dist/execution/council-resolution.d.ts.map +0 -1
  373. package/dist/execution/design-color.d.ts.map +0 -1
  374. package/dist/execution/design-detect.d.ts.map +0 -1
  375. package/dist/execution/design-kit-loader.d.ts.map +0 -1
  376. package/dist/execution/design-materialize.d.ts.map +0 -1
  377. package/dist/execution/design-project-store.d.ts.map +0 -1
  378. package/dist/execution/design-tune.d.ts.map +0 -1
  379. package/dist/execution/design-verify.d.ts.map +0 -1
  380. package/dist/execution/enhance-recovery.d.ts.map +0 -1
  381. package/dist/execution/error-handler.d.ts.map +0 -1
  382. package/dist/execution/eternal-autonomy-types.d.ts.map +0 -1
  383. package/dist/execution/eternal-autonomy.d.ts.map +0 -1
  384. package/dist/execution/goal-preamble.d.ts.map +0 -1
  385. package/dist/execution/index.d.ts.map +0 -1
  386. package/dist/execution/index.js.map +0 -7
  387. package/dist/execution/intelligent-compactor.d.ts.map +0 -1
  388. package/dist/execution/model-runtime.d.ts.map +0 -1
  389. package/dist/execution/one-shot-llm.d.ts.map +0 -1
  390. package/dist/execution/parallel-eternal-engine.d.ts.map +0 -1
  391. package/dist/execution/prompt-enhancer.d.ts.map +0 -1
  392. package/dist/execution/prompt-enhancer.js.map +0 -7
  393. package/dist/execution/prompt-loader.d.ts.map +0 -1
  394. package/dist/execution/provider-runner-impl.d.ts.map +0 -1
  395. package/dist/execution/regex-patterns.d.ts.map +0 -1
  396. package/dist/execution/retry-policy.d.ts.map +0 -1
  397. package/dist/execution/selective-compactor.d.ts.map +0 -1
  398. package/dist/execution/skill-loader.d.ts.map +0 -1
  399. package/dist/execution/strategy-compactor.d.ts.map +0 -1
  400. package/dist/execution/subagent-compaction.d.ts.map +0 -1
  401. package/dist/execution/tool-executor-logging.d.ts.map +0 -1
  402. package/dist/execution/tool-executor-results.d.ts.map +0 -1
  403. package/dist/execution/tool-executor-stream.d.ts.map +0 -1
  404. package/dist/execution/tool-executor-support.d.ts.map +0 -1
  405. package/dist/execution/tool-executor.d.ts.map +0 -1
  406. package/dist/extension/extension-points.d.ts.map +0 -1
  407. package/dist/extension/index.d.ts.map +0 -1
  408. package/dist/extension/index.js.map +0 -7
  409. package/dist/extension/registry.d.ts.map +0 -1
  410. package/dist/fleet-notifier.d.ts.map +0 -1
  411. package/dist/goal/checkpoint.d.ts.map +0 -1
  412. package/dist/goal/goal-assessor.d.ts.map +0 -1
  413. package/dist/goal/goal-planner.d.ts.map +0 -1
  414. package/dist/goal/goal-runner.d.ts.map +0 -1
  415. package/dist/goal/index.d.ts.map +0 -1
  416. package/dist/goal/index.js.map +0 -7
  417. package/dist/goal/phase-board-mutations.d.ts.map +0 -1
  418. package/dist/goal/phase-graph-builder.d.ts.map +0 -1
  419. package/dist/goal/phase-orchestrator-integration.d.ts.map +0 -1
  420. package/dist/goal/phase-orchestrator-queries.d.ts.map +0 -1
  421. package/dist/goal/phase-orchestrator-runtime.d.ts.map +0 -1
  422. package/dist/goal/phase-orchestrator-types.d.ts.map +0 -1
  423. package/dist/goal/phase-orchestrator.d.ts.map +0 -1
  424. package/dist/goal/phase-store.d.ts.map +0 -1
  425. package/dist/goal/types.d.ts.map +0 -1
  426. package/dist/hooks/http-executor.d.ts.map +0 -1
  427. package/dist/hooks/index.d.ts.map +0 -1
  428. package/dist/hooks/index.js.map +0 -7
  429. package/dist/hooks/registry.d.ts.map +0 -1
  430. package/dist/hooks/runner.d.ts.map +0 -1
  431. package/dist/hooks/shell-executor.d.ts.map +0 -1
  432. package/dist/hooks/shell-hooks-equal.d.ts.map +0 -1
  433. package/dist/hq/alerts.d.ts.map +0 -1
  434. package/dist/hq/auth-audit.d.ts.map +0 -1
  435. package/dist/hq/auth-store.d.ts.map +0 -1
  436. package/dist/hq/bootstrap-store.d.ts.map +0 -1
  437. package/dist/hq/brain-bridge.d.ts.map +0 -1
  438. package/dist/hq/bridge-context.d.ts.map +0 -1
  439. package/dist/hq/commands.d.ts.map +0 -1
  440. package/dist/hq/cost-bridge.d.ts.map +0 -1
  441. package/dist/hq/exposure.d.ts.map +0 -1
  442. package/dist/hq/factory.d.ts.map +0 -1
  443. package/dist/hq/fleet-bridge.d.ts.map +0 -1
  444. package/dist/hq/index.d.ts.map +0 -1
  445. package/dist/hq/index.js.map +0 -7
  446. package/dist/hq/kanban-store.d.ts.map +0 -1
  447. package/dist/hq/mailbox-mapper.d.ts.map +0 -1
  448. package/dist/hq/persistence/event-log.d.ts.map +0 -1
  449. package/dist/hq/persistence/jsonl-io.d.ts.map +0 -1
  450. package/dist/hq/persistence/simple-log.d.ts.map +0 -1
  451. package/dist/hq/persistence/snapshot-store.d.ts.map +0 -1
  452. package/dist/hq/persistence/timeseries-store.d.ts.map +0 -1
  453. package/dist/hq/persistence.d.ts.map +0 -1
  454. package/dist/hq/protocol/brain.d.ts.map +0 -1
  455. package/dist/hq/protocol/browser.d.ts.map +0 -1
  456. package/dist/hq/protocol/client.d.ts.map +0 -1
  457. package/dist/hq/protocol/core.d.ts.map +0 -1
  458. package/dist/hq/protocol/fleet.d.ts.map +0 -1
  459. package/dist/hq/protocol/kanban.d.ts.map +0 -1
  460. package/dist/hq/protocol/mailbox.d.ts.map +0 -1
  461. package/dist/hq/protocol/mcp.d.ts.map +0 -1
  462. package/dist/hq/protocol/project.d.ts.map +0 -1
  463. package/dist/hq/protocol/session.d.ts.map +0 -1
  464. package/dist/hq/protocol/tool.d.ts.map +0 -1
  465. package/dist/hq/protocol.d.ts.map +0 -1
  466. package/dist/hq/publisher.d.ts.map +0 -1
  467. package/dist/hq/redaction.d.ts.map +0 -1
  468. package/dist/hq/session-bridge.d.ts.map +0 -1
  469. package/dist/hq/tool-bridge.d.ts.map +0 -1
  470. package/dist/hq/transcript-mapper.d.ts.map +0 -1
  471. package/dist/hq/worktree-bridge.d.ts.map +0 -1
  472. package/dist/hq/write-queues.d.ts.map +0 -1
  473. package/dist/index.d.ts.map +0 -1
  474. package/dist/index.js.map +0 -7
  475. package/dist/infrastructure/context-manager.d.ts.map +0 -1
  476. package/dist/infrastructure/index.d.ts.map +0 -1
  477. package/dist/infrastructure/index.js.map +0 -7
  478. package/dist/infrastructure/logger.d.ts.map +0 -1
  479. package/dist/infrastructure/mcp-servers.d.ts.map +0 -1
  480. package/dist/infrastructure/path-resolver.d.ts.map +0 -1
  481. package/dist/infrastructure/provider-cache-ledger.d.ts.map +0 -1
  482. package/dist/infrastructure/token-counter.d.ts.map +0 -1
  483. package/dist/kernel/container.d.ts.map +0 -1
  484. package/dist/kernel/events/agent-events.d.ts.map +0 -1
  485. package/dist/kernel/events/brain-events.d.ts.map +0 -1
  486. package/dist/kernel/events/file-events.d.ts.map +0 -1
  487. package/dist/kernel/events/fleet-events.d.ts.map +0 -1
  488. package/dist/kernel/events/memory-events.d.ts.map +0 -1
  489. package/dist/kernel/events/network-events.d.ts.map +0 -1
  490. package/dist/kernel/events/process-events.d.ts.map +0 -1
  491. package/dist/kernel/events/provider-events.d.ts.map +0 -1
  492. package/dist/kernel/events/sdd-events.d.ts.map +0 -1
  493. package/dist/kernel/events/session-events.d.ts.map +0 -1
  494. package/dist/kernel/events/tool-events.d.ts.map +0 -1
  495. package/dist/kernel/events/worktree-events.d.ts.map +0 -1
  496. package/dist/kernel/events.d.ts.map +0 -1
  497. package/dist/kernel/index.d.ts.map +0 -1
  498. package/dist/kernel/index.js.map +0 -7
  499. package/dist/kernel/pipeline.d.ts.map +0 -1
  500. package/dist/kernel/run-controller.d.ts.map +0 -1
  501. package/dist/kernel/tokens.d.ts.map +0 -1
  502. package/dist/mailbox-attach.d.ts.map +0 -1
  503. package/dist/middleware/collab-pause.d.ts.map +0 -1
  504. package/dist/models/alibaba-token-plan-catalog.d.ts.map +0 -1
  505. package/dist/models/codex-catalog.d.ts.map +0 -1
  506. package/dist/models/index.d.ts.map +0 -1
  507. package/dist/models/index.js.map +0 -7
  508. package/dist/models/llm-selector.d.ts.map +0 -1
  509. package/dist/models/mode-store.d.ts.map +0 -1
  510. package/dist/models/model-intelligence.d.ts.map +0 -1
  511. package/dist/models/model-router.d.ts.map +0 -1
  512. package/dist/models/models-registry.d.ts.map +0 -1
  513. package/dist/models/provider-model-resolve.d.ts.map +0 -1
  514. package/dist/notifications/index.d.ts.map +0 -1
  515. package/dist/notifications/index.js.map +0 -7
  516. package/dist/notifications/notifier-impl.d.ts.map +0 -1
  517. package/dist/notifications/notifier.d.ts.map +0 -1
  518. package/dist/notifications/types.d.ts.map +0 -1
  519. package/dist/observability/event-bridge.d.ts.map +0 -1
  520. package/dist/observability/health.d.ts.map +0 -1
  521. package/dist/observability/index.d.ts.map +0 -1
  522. package/dist/observability/index.js.map +0 -7
  523. package/dist/observability/metrics.d.ts.map +0 -1
  524. package/dist/observability/network-telemetry.d.ts.map +0 -1
  525. package/dist/observability/otel-tracer.d.ts.map +0 -1
  526. package/dist/observability/otlp-metrics.d.ts.map +0 -1
  527. package/dist/observability/otlp-traces.d.ts.map +0 -1
  528. package/dist/observability/process-telemetry.d.ts.map +0 -1
  529. package/dist/observability/prometheus.d.ts.map +0 -1
  530. package/dist/observability/redact-command.d.ts.map +0 -1
  531. package/dist/observability/tracer.d.ts.map +0 -1
  532. package/dist/plugin/api.d.ts.map +0 -1
  533. package/dist/plugin/config.d.ts.map +0 -1
  534. package/dist/plugin/index.d.ts.map +0 -1
  535. package/dist/plugin/index.js.map +0 -7
  536. package/dist/plugin/loader.d.ts.map +0 -1
  537. package/dist/plugins/auto-review-plugin.d.ts.map +0 -1
  538. package/dist/plugins/chimera-plugin.d.ts.map +0 -1
  539. package/dist/plugins/prompts-plugin.d.ts.map +0 -1
  540. package/dist/plugins/review-claim-registry.d.ts.map +0 -1
  541. package/dist/plugins/review-context-builder.d.ts.map +0 -1
  542. package/dist/plugins/review-finding-commands.d.ts.map +0 -1
  543. package/dist/plugins/review-finding-integration.d.ts.map +0 -1
  544. package/dist/plugins/review-finding-parser.d.ts.map +0 -1
  545. package/dist/plugins/review-finding-store.d.ts.map +0 -1
  546. package/dist/plugins/review-finding-types.d.ts.map +0 -1
  547. package/dist/plugins/review-report-integration.d.ts.map +0 -1
  548. package/dist/plugins/review-report-store.d.ts.map +0 -1
  549. package/dist/plugins/review-report-types.d.ts.map +0 -1
  550. package/dist/plugins/review-types.d.ts.map +0 -1
  551. package/dist/plugins/skills-plugin.d.ts.map +0 -1
  552. package/dist/plugins/sync-plugin.d.ts.map +0 -1
  553. package/dist/prompts/index.d.ts.map +0 -1
  554. package/dist/prompts/prompt-installer.d.ts.map +0 -1
  555. package/dist/prompts/prompt-manifest-store.d.ts.map +0 -1
  556. package/dist/registry/index.d.ts.map +0 -1
  557. package/dist/registry/index.js.map +0 -7
  558. package/dist/registry/provider-registry.d.ts.map +0 -1
  559. package/dist/registry/slash-command-registry.d.ts.map +0 -1
  560. package/dist/registry/tool-registry.d.ts.map +0 -1
  561. package/dist/replay/hash.d.ts.map +0 -1
  562. package/dist/replay/index.d.ts.map +0 -1
  563. package/dist/replay/index.js.map +0 -7
  564. package/dist/replay/replay-provider-runner.d.ts.map +0 -1
  565. package/dist/security/capabilities.d.ts.map +0 -1
  566. package/dist/security/config-secrets.d.ts.map +0 -1
  567. package/dist/security/directory-permission-policy.d.ts.map +0 -1
  568. package/dist/security/directory-policy-schema.d.ts.map +0 -1
  569. package/dist/security/index.d.ts.map +0 -1
  570. package/dist/security/index.js.map +0 -7
  571. package/dist/security/kanban-boundary.d.ts.map +0 -1
  572. package/dist/security/permission-policy-schema.d.ts.map +0 -1
  573. package/dist/security/permission-policy.d.ts.map +0 -1
  574. package/dist/security/readonly-permission-policy.d.ts.map +0 -1
  575. package/dist/security/secret-scrubber.d.ts.map +0 -1
  576. package/dist/security/secret-vault.d.ts.map +0 -1
  577. package/dist/security/trust-boundary.d.ts.map +0 -1
  578. package/dist/security/yolo-risk.d.ts.map +0 -1
  579. package/dist/session-registry-atomic-file.d.ts.map +0 -1
  580. package/dist/session-registry-types.d.ts.map +0 -1
  581. package/dist/session-registry.d.ts.map +0 -1
  582. package/dist/skills/foreign-sources.d.ts.map +0 -1
  583. package/dist/skills/frontmatter.d.ts.map +0 -1
  584. package/dist/skills/github-fetcher.d.ts.map +0 -1
  585. package/dist/skills/index.d.ts.map +0 -1
  586. package/dist/skills/index.js.map +0 -7
  587. package/dist/skills/limits.d.ts.map +0 -1
  588. package/dist/skills/manifest-store.d.ts.map +0 -1
  589. package/dist/skills/registry/github-direct-adapter.d.ts.map +0 -1
  590. package/dist/skills/registry/registry-adapter.d.ts.map +0 -1
  591. package/dist/skills/registry/skills-sh-adapter.d.ts.map +0 -1
  592. package/dist/skills/skill-generator.d.ts.map +0 -1
  593. package/dist/skills/skill-installer.d.ts.map +0 -1
  594. package/dist/storage/annotations-store.d.ts.map +0 -1
  595. package/dist/storage/attachment-store.d.ts.map +0 -1
  596. package/dist/storage/cloud-sync.d.ts.map +0 -1
  597. package/dist/storage/completed-work-checkpoint.d.ts.map +0 -1
  598. package/dist/storage/config-loader/bootstrap.d.ts.map +0 -1
  599. package/dist/storage/config-loader/default-repair.d.ts.map +0 -1
  600. package/dist/storage/config-loader/defaults.d.ts.map +0 -1
  601. package/dist/storage/config-loader/diagnostics.d.ts.map +0 -1
  602. package/dist/storage/config-loader/env-overrides.d.ts.map +0 -1
  603. package/dist/storage/config-loader/in-project-policy.d.ts.map +0 -1
  604. package/dist/storage/config-loader/inline-provider-models.d.ts.map +0 -1
  605. package/dist/storage/config-loader/legacy-sage-migration.d.ts.map +0 -1
  606. package/dist/storage/config-loader/path-identity.d.ts.map +0 -1
  607. package/dist/storage/config-loader/types.d.ts.map +0 -1
  608. package/dist/storage/config-loader/validation.d.ts.map +0 -1
  609. package/dist/storage/config-loader.d.ts.map +0 -1
  610. package/dist/storage/config-migration.d.ts.map +0 -1
  611. package/dist/storage/config-store.d.ts.map +0 -1
  612. package/dist/storage/director-state.d.ts.map +0 -1
  613. package/dist/storage/file-session-writer.d.ts.map +0 -1
  614. package/dist/storage/goal-coordination.d.ts.map +0 -1
  615. package/dist/storage/goal-kanban.d.ts.map +0 -1
  616. package/dist/storage/goal-store.d.ts.map +0 -1
  617. package/dist/storage/index.d.ts.map +0 -1
  618. package/dist/storage/index.js.map +0 -7
  619. package/dist/storage/input-history-store.d.ts.map +0 -1
  620. package/dist/storage/memory-backend.d.ts.map +0 -1
  621. package/dist/storage/memory-consolidator.d.ts.map +0 -1
  622. package/dist/storage/memory-graph-backend.d.ts.map +0 -1
  623. package/dist/storage/plan-store.d.ts.map +0 -1
  624. package/dist/storage/plan-templates.d.ts.map +0 -1
  625. package/dist/storage/prompt-store.d.ts.map +0 -1
  626. package/dist/storage/prompt-usage-store.d.ts.map +0 -1
  627. package/dist/storage/provider-config-watcher.d.ts.map +0 -1
  628. package/dist/storage/queue-store.d.ts.map +0 -1
  629. package/dist/storage/recovery-lock.d.ts.map +0 -1
  630. package/dist/storage/replay-log-store.d.ts.map +0 -1
  631. package/dist/storage/session-analyzer.d.ts.map +0 -1
  632. package/dist/storage/session-checkpoint-cas.d.ts.map +0 -1
  633. package/dist/storage/session-event-bridge.d.ts.map +0 -1
  634. package/dist/storage/session-helpers.d.ts.map +0 -1
  635. package/dist/storage/session-id-resolver.d.ts.map +0 -1
  636. package/dist/storage/session-id.d.ts.map +0 -1
  637. package/dist/storage/session-read-scrubber.d.ts.map +0 -1
  638. package/dist/storage/session-reader.d.ts.map +0 -1
  639. package/dist/storage/session-recovery.d.ts.map +0 -1
  640. package/dist/storage/session-resume-validation.d.ts.map +0 -1
  641. package/dist/storage/session-rewind-apply.d.ts.map +0 -1
  642. package/dist/storage/session-rewinder.d.ts.map +0 -1
  643. package/dist/storage/session-store/delete-session-artifacts.d.ts.map +0 -1
  644. package/dist/storage/session-store/delete-session-guards.d.ts.map +0 -1
  645. package/dist/storage/session-store/directory-scan.d.ts.map +0 -1
  646. package/dist/storage/session-store/directory-session-files.d.ts.map +0 -1
  647. package/dist/storage/session-store/events.d.ts.map +0 -1
  648. package/dist/storage/session-store/fork-session.d.ts.map +0 -1
  649. package/dist/storage/session-store/index-reader.d.ts.map +0 -1
  650. package/dist/storage/session-store/load-cache.d.ts.map +0 -1
  651. package/dist/storage/session-store/load-session-data.d.ts.map +0 -1
  652. package/dist/storage/session-store/paths.d.ts.map +0 -1
  653. package/dist/storage/session-store/prune-helpers.d.ts.map +0 -1
  654. package/dist/storage/session-store/replay.d.ts.map +0 -1
  655. package/dist/storage/session-store/search-events.d.ts.map +0 -1
  656. package/dist/storage/session-store/shard-manifest.d.ts.map +0 -1
  657. package/dist/storage/session-store/summary-builder.d.ts.map +0 -1
  658. package/dist/storage/session-store/summary-header.d.ts.map +0 -1
  659. package/dist/storage/session-store/types.d.ts.map +0 -1
  660. package/dist/storage/session-store.d.ts.map +0 -1
  661. package/dist/storage/session-summary.d.ts.map +0 -1
  662. package/dist/storage/session-tool-call-ends.d.ts.map +0 -1
  663. package/dist/storage/session-writer-scrubber.d.ts.map +0 -1
  664. package/dist/storage/session-writer-truncate.d.ts.map +0 -1
  665. package/dist/storage/storage-concurrency.d.ts.map +0 -1
  666. package/dist/storage/task-store.d.ts.map +0 -1
  667. package/dist/storage/todos-checkpoint.d.ts.map +0 -1
  668. package/dist/storage/tool-audit-log.d.ts.map +0 -1
  669. package/dist/tasking/index.d.ts.map +0 -1
  670. package/dist/tasking/index.js.map +0 -7
  671. package/dist/tasking/task-store.d.ts.map +0 -1
  672. package/dist/tasking/task-tracker.d.ts.map +0 -1
  673. package/dist/tools/council-tool.d.ts.map +0 -1
  674. package/dist/tools/fallback-chain-manage-tool.d.ts.map +0 -1
  675. package/dist/tools/fallback-favorite-manage-tool.d.ts.map +0 -1
  676. package/dist/tools/fallback-manage-helpers.d.ts.map +0 -1
  677. package/dist/tools/fallback-manage-tool-options.d.ts.map +0 -1
  678. package/dist/tools/fallback-manage-tools.d.ts.map +0 -1
  679. package/dist/tools/fallback-model-ref-parse.d.ts.map +0 -1
  680. package/dist/tools/fallback-provider-key-store.d.ts.map +0 -1
  681. package/dist/tools/fallback-system-config-view-tool.d.ts.map +0 -1
  682. package/dist/tools/index.d.ts.map +0 -1
  683. package/dist/tools/index.js.map +0 -7
  684. package/dist/tools/mcp-control.d.ts.map +0 -1
  685. package/dist/tools/mcp-use.d.ts.map +0 -1
  686. package/dist/tools/one-shot-llm-tool.d.ts.map +0 -1
  687. package/dist/tools/plugin-manager.d.ts.map +0 -1
  688. package/dist/types/agent-bridge.d.ts.map +0 -1
  689. package/dist/types/attachment.d.ts.map +0 -1
  690. package/dist/types/autonomy.d.ts.map +0 -1
  691. package/dist/types/blocks.d.ts.map +0 -1
  692. package/dist/types/compactor.d.ts.map +0 -1
  693. package/dist/types/config/autonomy.d.ts.map +0 -1
  694. package/dist/types/config/context.d.ts.map +0 -1
  695. package/dist/types/config/fleet-chat.d.ts.map +0 -1
  696. package/dist/types/config/mcp-features.d.ts.map +0 -1
  697. package/dist/types/config/providers.d.ts.map +0 -1
  698. package/dist/types/config/root.d.ts.map +0 -1
  699. package/dist/types/config/runtime.d.ts.map +0 -1
  700. package/dist/types/config/skills-fleet-brain.d.ts.map +0 -1
  701. package/dist/types/config/tools.d.ts.map +0 -1
  702. package/dist/types/config.d.ts.map +0 -1
  703. package/dist/types/context-evidence.d.ts.map +0 -1
  704. package/dist/types/context-window.d.ts.map +0 -1
  705. package/dist/types/council.d.ts.map +0 -1
  706. package/dist/types/default-config.d.ts.map +0 -1
  707. package/dist/types/design-kit.d.ts.map +0 -1
  708. package/dist/types/error-handler.d.ts.map +0 -1
  709. package/dist/types/errors.d.ts.map +0 -1
  710. package/dist/types/file-event-record.d.ts.map +0 -1
  711. package/dist/types/hooks.d.ts.map +0 -1
  712. package/dist/types/index.d.ts.map +0 -1
  713. package/dist/types/index.js.map +0 -7
  714. package/dist/types/input-reader.d.ts.map +0 -1
  715. package/dist/types/logger.d.ts.map +0 -1
  716. package/dist/types/memory.d.ts.map +0 -1
  717. package/dist/types/messages.d.ts.map +0 -1
  718. package/dist/types/mode-prompts.d.ts.map +0 -1
  719. package/dist/types/mode.d.ts.map +0 -1
  720. package/dist/types/models-registry.d.ts.map +0 -1
  721. package/dist/types/multi-agent.d.ts.map +0 -1
  722. package/dist/types/observability.d.ts.map +0 -1
  723. package/dist/types/one-shot-llm.d.ts.map +0 -1
  724. package/dist/types/path-resolver.d.ts.map +0 -1
  725. package/dist/types/permission.d.ts.map +0 -1
  726. package/dist/types/plugin.d.ts.map +0 -1
  727. package/dist/types/prompt-registry.d.ts.map +0 -1
  728. package/dist/types/prompt.d.ts.map +0 -1
  729. package/dist/types/provider-runner.d.ts.map +0 -1
  730. package/dist/types/provider.d.ts.map +0 -1
  731. package/dist/types/quota-regex.d.ts.map +0 -1
  732. package/dist/types/renderer.d.ts.map +0 -1
  733. package/dist/types/retry-policy.d.ts.map +0 -1
  734. package/dist/types/secret-scrubber.d.ts.map +0 -1
  735. package/dist/types/secret-vault.d.ts.map +0 -1
  736. package/dist/types/selector.d.ts.map +0 -1
  737. package/dist/types/session-markers.d.ts.map +0 -1
  738. package/dist/types/session-markers.js.map +0 -7
  739. package/dist/types/session-reader.d.ts.map +0 -1
  740. package/dist/types/session-rewinder.d.ts.map +0 -1
  741. package/dist/types/session.d.ts.map +0 -1
  742. package/dist/types/side-effect.d.ts.map +0 -1
  743. package/dist/types/skill.d.ts.map +0 -1
  744. package/dist/types/slash-command.d.ts.map +0 -1
  745. package/dist/types/spec.d.ts.map +0 -1
  746. package/dist/types/system-prompt-contributor.d.ts.map +0 -1
  747. package/dist/types/system-prompt.d.ts.map +0 -1
  748. package/dist/types/task-graph.d.ts.map +0 -1
  749. package/dist/types/token-counter.d.ts.map +0 -1
  750. package/dist/types/tool-executor.d.ts.map +0 -1
  751. package/dist/types/tool-markers.d.ts.map +0 -1
  752. package/dist/types/tool.d.ts.map +0 -1
  753. package/dist/types/utility-types.d.ts.map +0 -1
  754. package/dist/utils/assert-never.d.ts.map +0 -1
  755. package/dist/utils/atomic-write.d.ts.map +0 -1
  756. package/dist/utils/cache-key.d.ts.map +0 -1
  757. package/dist/utils/child-env.d.ts.map +0 -1
  758. package/dist/utils/color.d.ts.map +0 -1
  759. package/dist/utils/compaction-preview.d.ts.map +0 -1
  760. package/dist/utils/config-backup.d.ts.map +0 -1
  761. package/dist/utils/config-json.d.ts.map +0 -1
  762. package/dist/utils/connectivity.d.ts.map +0 -1
  763. package/dist/utils/context-breakdown.d.ts.map +0 -1
  764. package/dist/utils/context-evidence.d.ts.map +0 -1
  765. package/dist/utils/crash-shield.d.ts.map +0 -1
  766. package/dist/utils/deep-merge.d.ts.map +0 -1
  767. package/dist/utils/diff.d.ts.map +0 -1
  768. package/dist/utils/error.d.ts.map +0 -1
  769. package/dist/utils/error.js.map +0 -7
  770. package/dist/utils/expect-defined.d.ts.map +0 -1
  771. package/dist/utils/expect-defined.js.map +0 -7
  772. package/dist/utils/glob-expand.d.ts.map +0 -1
  773. package/dist/utils/glob-match.d.ts.map +0 -1
  774. package/dist/utils/heap-watchdog.d.ts.map +0 -1
  775. package/dist/utils/heap-watchdog.js.map +0 -7
  776. package/dist/utils/incoming-images.d.ts.map +0 -1
  777. package/dist/utils/index.d.ts.map +0 -1
  778. package/dist/utils/index.js.map +0 -7
  779. package/dist/utils/instruction-file.d.ts.map +0 -1
  780. package/dist/utils/ip-guard.d.ts.map +0 -1
  781. package/dist/utils/json-repair.d.ts.map +0 -1
  782. package/dist/utils/json-schema-validate.d.ts.map +0 -1
  783. package/dist/utils/lru-cache.d.ts.map +0 -1
  784. package/dist/utils/merge-custom-models.d.ts.map +0 -1
  785. package/dist/utils/merge-models-payload.d.ts.map +0 -1
  786. package/dist/utils/message-invariants.d.ts.map +0 -1
  787. package/dist/utils/newline-normalize.d.ts.map +0 -1
  788. package/dist/utils/perf-profile.d.ts.map +0 -1
  789. package/dist/utils/pid.d.ts.map +0 -1
  790. package/dist/utils/project-identity.d.ts.map +0 -1
  791. package/dist/utils/project-watch.d.ts.map +0 -1
  792. package/dist/utils/regex-guard.d.ts.map +0 -1
  793. package/dist/utils/safe-json.d.ts.map +0 -1
  794. package/dist/utils/sage-output-block.d.ts.map +0 -1
  795. package/dist/utils/session-scoped-path.d.ts.map +0 -1
  796. package/dist/utils/sleep.d.ts.map +0 -1
  797. package/dist/utils/slug.d.ts.map +0 -1
  798. package/dist/utils/socket-path.d.ts.map +0 -1
  799. package/dist/utils/sqlite-warning.d.ts.map +0 -1
  800. package/dist/utils/string.d.ts.map +0 -1
  801. package/dist/utils/task-format.d.ts.map +0 -1
  802. package/dist/utils/term.d.ts.map +0 -1
  803. package/dist/utils/todos-format.d.ts.map +0 -1
  804. package/dist/utils/token-estimate.d.ts.map +0 -1
  805. package/dist/utils/tool-description-mode.d.ts.map +0 -1
  806. package/dist/utils/tool-output-serializer.d.ts.map +0 -1
  807. package/dist/utils/tool-result-render-mode.d.ts.map +0 -1
  808. package/dist/utils/tool-subject.d.ts.map +0 -1
  809. package/dist/utils/tool-wire-compact.d.ts.map +0 -1
  810. package/dist/utils/tree-kill.d.ts.map +0 -1
  811. package/dist/utils/tree-kill.js.map +0 -7
  812. package/dist/utils/ulid.d.ts.map +0 -1
  813. package/dist/utils/walk-ignore.d.ts.map +0 -1
  814. package/dist/utils/wstack-paths.d.ts.map +0 -1
  815. package/dist/worktree/index.d.ts.map +0 -1
  816. package/dist/worktree/index.js.map +0 -7
  817. package/dist/worktree/worktree-git.d.ts.map +0 -1
  818. package/dist/worktree/worktree-managed-ops.d.ts.map +0 -1
  819. package/dist/worktree/worktree-manager.d.ts.map +0 -1
  820. package/dist/worktree/worktree-types.d.ts.map +0 -1
@@ -215,13 +215,27 @@ export interface SageConfig {
215
215
  * Memories below it stay searchable but are never auto-injected.
216
216
  */
217
217
  minImportance?: number | undefined;
218
+ /**
219
+ * Minimum relation strength for automatic injection. Memories whose
220
+ * anchor's relation strength falls below this bar are rejected before
221
+ * the composite score is consulted. Default: 0.85.
222
+ */
223
+ relationFloor?: number | undefined;
218
224
  /**
219
225
  * Cooldown before an already-injected memory may be injected again.
220
226
  * Default: 0 — once per session. A positive value restores time-boxed
221
227
  * repeats.
222
228
  */
223
229
  repeatCooldownMs?: number | undefined;
224
- triggers?: Partial<Record<'read' | 'tree' | 'grep' | 'glob' | 'codebase_search' | 'bash' | 'write' | 'edit' | 'patch', boolean>> | undefined;
230
+ /**
231
+ * Which tools trigger SAGE memory injection on their results.
232
+ * Supported triggers: read, tree, grep, glob, codebase_search,
233
+ * write, edit, patch. Bash/exec are intentionally excluded —
234
+ * command-execution tools do not produce file-path-anchored
235
+ * results that are useful for memory injection.
236
+ * Default: all supported triggers enabled.
237
+ */
238
+ triggers?: Partial<Record<'read' | 'tree' | 'grep' | 'glob' | 'codebase_search' | 'write' | 'edit' | 'patch', boolean>> | undefined;
225
239
  } | undefined;
226
240
  retrieval?: {
227
241
  /**
@@ -1,11 +1,11 @@
1
1
  import type { ConfiguredHook, HookEvent } from '../hooks.js';
2
+ import type { AutonomyConfig, ChronicleConfig, IndexingConfig, LaunchConfig, SessionLoggingConfig, SyncConfig } from './autonomy.js';
2
3
  import type { AdaptiveConcurrencyConfig, CircuitBreakerRuntimeConfig, ContextConfig } from './context.js';
4
+ import type { FeaturesConfig, LogConfig, MCPServerConfig, PluginConfig, PluginManagerConfig, SageConfig } from './mcp-features.js';
5
+ import type { CustomModelDefinition, ModelMatrixEntry, ProviderConfig } from './providers.js';
3
6
  import type { HqClientConfig, ModelRuntimeConfig, SystemPromptConfig } from './runtime.js';
7
+ import type { BrainConfig, FleetConfig, SkillsConfig } from './skills-fleet-brain.js';
4
8
  import type { ToolsConfig } from './tools.js';
5
- import type { ProviderConfig, CustomModelDefinition, ModelMatrixEntry } from './providers.js';
6
- import type { MCPServerConfig, LogConfig, FeaturesConfig, SageConfig, PluginConfig, PluginManagerConfig } from './mcp-features.js';
7
- import type { AutonomyConfig, ChronicleConfig, IndexingConfig, LaunchConfig, SessionLoggingConfig, SyncConfig } from './autonomy.js';
8
- import type { SkillsConfig, FleetConfig, BrainConfig } from './skills-fleet-brain.js';
9
9
  export interface GitBehaviorConfig {
10
10
  /**
11
11
  * Commit identity injected as `GIT_AUTHOR_NAME/EMAIL` +
@@ -94,6 +94,12 @@ export interface Config {
94
94
  * `createFallbackModelExtension`.
95
95
  */
96
96
  fallbackModels?: string[] | undefined;
97
+ /**
98
+ * A single emergency continuity route tried before the normal fallback
99
+ * chain. Must be a full `provider/model` reference so it can escape the
100
+ * active provider's failure domain.
101
+ */
102
+ fallbackBridge?: string | undefined;
97
103
  /**
98
104
  * Named fallback chains. A profile's first entry can be used as a primary
99
105
  * model by `/setmodel`, while the whole ordered list is used for failover.
@@ -2,6 +2,21 @@ export type ContextWindowModeId = 'balanced' | 'frugal' | 'deep';
2
2
  export type DeprecatedContextWindowModeId = 'archival';
3
3
  export type ContextWindowModeSelectionId = ContextWindowModeId | DeprecatedContextWindowModeId;
4
4
  export type ContextWindowAggressiveOn = 'hard' | 'soft' | 'warn';
5
+ /**
6
+ * Context-window usage snapshot returned by the host's `onResumeSession`
7
+ * callback when a session is resumed. The TUI reducer seeds
8
+ * `state.leader.ctxTokens` / `state.leader.ctxMaxTokens` from this snapshot
9
+ * so the statusline chip and `/context` panel reflect the rebuilt context
10
+ * immediately, instead of staying at zero until the next ctx.pct event.
11
+ * Single source of truth — do not redeclare as an inline structural type at
12
+ * call sites; import this named type instead so the contract cannot drift.
13
+ */
14
+ export interface ContextSnapshot {
15
+ /** Estimated total tokens currently in the context window. */
16
+ tokens: number;
17
+ /** Provider max context in tokens for the active model. */
18
+ maxContext: number;
19
+ }
5
20
  export interface ContextWindowThresholds {
6
21
  warn: number;
7
22
  soft: number;
@@ -47,7 +47,7 @@ export type { ModelsDevModel, ModelsDevPayload, ModelsDevProvider, ModelsDevReas
47
47
  export { DEFAULT_MODES } from './mode.js';
48
48
  export type { Mode, ModeConfig, ModeManifest, ModeStore } from './mode.js';
49
49
  export { CONTEXT_WINDOW_MODES, DEFAULT_CONTEXT_WINDOW_MODE_ID, DEPRECATED_CONTEXT_WINDOW_MODE_ALIASES, formatContextWindowModeList, getContextWindowMode, isContextWindowModeId, isContextWindowModeSelectionId, isDeprecatedContextWindowModeId, listContextWindowModes, normalizeContextWindowModeId, resolveContextWindowPolicy } from './context-window.js';
50
- export type { ContextWindowAggressiveOn, ContextWindowConfigLike, ContextWindowMode, ContextWindowModeId, ContextWindowModeSelectionId, ContextWindowPolicy, ContextWindowThresholds, DeprecatedContextWindowModeId } from './context-window.js';
50
+ export type { ContextSnapshot, ContextWindowAggressiveOn, ContextWindowConfigLike, ContextWindowMode, ContextWindowModeId, ContextWindowModeSelectionId, ContextWindowPolicy, ContextWindowThresholds, DeprecatedContextWindowModeId } from './context-window.js';
51
51
  export type { CompletedWorkEvidence, CompletedWorkSource, ContextEvidenceState, ContextFileEvidence, ContextIntentEvidence, ContextRepeatedReadEvidence, ToolEvidenceStatus, ToolOutputMetadata } from './context-evidence.js';
52
52
  export type { CouncilDistinctness, CouncilLLMCaller, CouncilModelTarget, CouncilOption, CouncilPersona, CouncilProfileConfig, CouncilQuestion, CouncilResolutionMethod, CouncilResult, CouncilSeatConfig, CouncilUsage, CouncilVoteResult, CouncilVoteStatus, ResolvedCouncilProfile, ResolvedCouncilSeat } from './council.js';
53
53
  export type { AwaitAnyResult, CoordinatorEvents, CoordinatorStatus, DoneCondition, MultiAgentConfig, MultiAgentCoordinator, SpawnResult, SubagentConfig, SubagentContext, SubagentError, SubagentErrorKind, SubagentPartialResult, SubagentRunContext, SubagentRunOutcome, SubagentRunner, SubagentSpawnLineage, SubagentStructuredReport, TaskDelegation, TaskResult, TaskSpec } from './multi-agent.js';
@@ -14,6 +14,12 @@ export interface MetricsSink {
14
14
  gauge(name: string, value: number, labels?: MetricLabels): void | undefined;
15
15
  /** Point-in-time export — for /metrics scrape, debug dumps, tests. */
16
16
  snapshot(): MetricsSnapshot;
17
+ /**
18
+ * Cumulative count of observations dropped by the sink (e.g. a
19
+ * high-cardinality label guard that refused new series). Returns 0 for
20
+ * sinks without a cap.
21
+ */
22
+ droppedObservations(): number;
17
23
  /** Reset all metrics. Useful for tests; production code should rarely use. */
18
24
  reset(): void;
19
25
  }
@@ -25,8 +31,15 @@ export interface MetricSeries {
25
31
  values: Record<string, number>;
26
32
  }
27
33
  export interface MetricsSnapshot {
34
+ /** Snapshot time (epoch ms). */
28
35
  timestamp: number;
29
36
  series: MetricSeries[];
37
+ /**
38
+ * Per-metric observation drops since the sink was created (or last reset).
39
+ * Names mirror `MetricSeries.name`. `droppedObservations` is undefined on
40
+ * sinks without a cardinality cap.
41
+ */
42
+ droppedObservations?: Record<string, number> | undefined;
30
43
  }
31
44
  /** Safe host-level status surfaced by `/metrics`; contains no endpoint or credentials. */
32
45
  export interface MetricsRuntimeStatus {
@@ -22,6 +22,14 @@ export interface SecretVault {
22
22
  isEncrypted(value: string): boolean;
23
23
  /** Current key version. Starts at 1; incremented by `rotateKey()`. */
24
24
  readonly keyVersion: number;
25
+ /**
26
+ * Flush any pending asynchronous key-file hardening (e.g. Windows ACL
27
+ * restrictions via icacls). Callers in async contexts should await this
28
+ * before returning so a short-lived process does not exit before the
29
+ * hardening promise resolves. Sync-only callers may skip it — the
30
+ * hardening remains best-effort in that case.
31
+ */
32
+ flushHardening?(): Promise<void>;
25
33
  }
26
34
  /**
27
35
  * RotatableSecretVault extends SecretVault with key rotation support.
@@ -547,6 +547,8 @@ export interface SessionStore {
547
547
  * filesystem isolation is the caller's worktree/CAS responsibility.
548
548
  */
549
549
  fork?(id: string, opts?: SessionForkOptions): Promise<ForkedSession>;
550
+ /** Capture a content-addressed identity for the current project workspace. */
551
+ captureWorkspaceCheckpoint?(sessionId: string, promptIndex: number): Promise<WorkspaceCheckpointRef | undefined>;
550
552
  /** Apply a captured workspace manifest to an already-isolated checkout. */
551
553
  materializeWorkspaceCheckpoint?(checkpoint: WorkspaceCheckpointRef, targetRoot: string): Promise<WorkspaceMaterializationResult>;
552
554
  list(limit?: number): Promise<SessionSummary[]>;
@@ -619,6 +621,46 @@ export interface SessionWriter {
619
621
  * on the Context.
620
622
  */
621
623
  traceId?: string | undefined;
624
+ /**
625
+ * Optional callback invoked synchronously after each event is scrubbed
626
+ * and observed for summary, immediately before it enters the write
627
+ * buffer. The event has been scrubbed (PII removed) and observed
628
+ * (counters updated) but NOT yet written to disk.
629
+ *
630
+ * When the event originates from {@link appendBatch}, this callback is
631
+ * ALSO invoked for each individual event in the batch, in addition to
632
+ * the {@link onAppendBatch} callback (which fires once for the whole
633
+ * batch). Subscribing to both will therefore receive each batch event
634
+ * twice — design consumers to subscribe to either per-event or batch,
635
+ * not both, unless deduplication is handled.
636
+ *
637
+ * The callback must not throw — errors are silently swallowed to
638
+ * preserve the best-effort contract of session logging. If the
639
+ * callback needs async work, it should fire-and-forget rather than
640
+ * blocking the append.
641
+ *
642
+ * Used by the HQ telemetry bridge to stream events without reading
643
+ * them back from the JSONL file on disk.
644
+ */
645
+ onAppend?: ((event: SessionEvent) => void) | undefined;
646
+ /**
647
+ * Batch variant of {@link onAppend}. Called once per batch with
648
+ * the already-scrubbed event array, after all have been observed
649
+ * and after the per-event {@link onAppend} has already fired for
650
+ * each event in the batch. Subscribing to both callbacks will
651
+ * receive every batch event twice.
652
+ */
653
+ onAppendBatch?: ((events: SessionEvent[]) => void) | undefined;
654
+ /**
655
+ * Set or replace the {@link onAppend} callback after construction.
656
+ * The previous callback (if any) is discarded. Used by telemetry bridges
657
+ * that receive the writer as an already-created dependency.
658
+ */
659
+ setOnAppend?(cb: ((event: SessionEvent) => void) | undefined): void;
660
+ /**
661
+ * Set or replace the {@link onAppendBatch} callback after construction.
662
+ */
663
+ setOnAppendBatch?(cb: ((events: SessionEvent[]) => void) | undefined): void;
622
664
  /**
623
665
  * Absolute path to the JSONL file this writer appends to, when one
624
666
  * exists. In-memory writers (tests, ephemeral sessions) leave it
@@ -1,11 +1,23 @@
1
1
  export interface SkillManifest {
2
2
  name: string;
3
3
  description: string;
4
+ /**
5
+ * Optional explicit "Use when…" trigger from frontmatter. When present it is
6
+ * used verbatim as the SkillEntry trigger; otherwise the trigger falls back
7
+ * to the first sentence of `description` (see parseDescriptionFromText).
8
+ */
9
+ trigger?: string | undefined;
4
10
  version?: string | undefined;
5
11
  /** agentskills.io optional frontmatter fields. */
6
12
  license?: string | undefined;
7
13
  compatibility?: string | undefined;
8
14
  metadata?: Record<string, string> | undefined;
15
+ /**
16
+ * agentskills.io `allowed-tools`. INFORMATIONAL ONLY — parsed from frontmatter
17
+ * and surfaced for display, but never enforced: the `skill` tool has fixed
18
+ * permissions/capabilities and does not consult this field, so it neither
19
+ * grants nor restricts any tool.
20
+ */
9
21
  allowedTools?: string[] | undefined;
10
22
  path: string;
11
23
  /**
@@ -29,6 +41,43 @@ export interface SkillEntry {
29
41
  originTool?: string | undefined;
30
42
  path: string;
31
43
  }
44
+ /**
45
+ * A skill directory that was discovered but rejected during `list()`. Surfaced
46
+ * via {@link SkillLoader.diagnostics} so a skill that silently fails to load
47
+ * (missing name/description, malformed name) is diagnosable instead of simply
48
+ * vanishing from the available-skills list.
49
+ */
50
+ export interface SkippedSkill {
51
+ /** Absolute directory that contained the rejected `SKILL.md`. */
52
+ dir: string;
53
+ /** Directory entry name (the folder name under a skills root). */
54
+ entry: string;
55
+ /** Why the skill was rejected. */
56
+ reason: 'missing-name' | 'missing-description' | 'invalid-name-format';
57
+ /** The parsed `name` when one was present (absent for `missing-name`). */
58
+ name?: string | undefined;
59
+ }
60
+ /**
61
+ * A skill that was excluded because a higher-priority discovery layer already
62
+ * claimed the same name. The canonical case is a project-local skill shadowing
63
+ * a maintained bundled skill. Surfaced via {@link SkillLoader.diagnostics}.
64
+ */
65
+ export interface ShadowedSkill {
66
+ name: string;
67
+ /** Discovery layer of the shadowed (hidden) skill. */
68
+ source: SkillManifest['source'];
69
+ /** Path to the shadowed skill's `SKILL.md`. */
70
+ path: string;
71
+ /** Discovery layer that claimed the name first (won the shadow). */
72
+ shadowedBy: SkillManifest['source'] | 'unknown';
73
+ /** Path to the winning skill's `SKILL.md`, when known. */
74
+ shadowedByPath?: string | undefined;
75
+ }
76
+ /** Load-time diagnostics collected during {@link SkillLoader.list}. */
77
+ export interface SkillLoaderDiagnostics {
78
+ skipped: SkippedSkill[];
79
+ shadowed: ShadowedSkill[];
80
+ }
32
81
  export interface SkillLoader {
33
82
  list(): Promise<SkillManifest[]>;
34
83
  /** Structured entries with trigger/scope for system prompt rendering. */
@@ -44,5 +93,12 @@ export interface SkillLoader {
44
93
  readSaveBody(name: string): Promise<string>;
45
94
  /** Clear the internal cache so the next list/find re-reads from disk. */
46
95
  invalidateCache(): void;
96
+ /**
97
+ * Load-time diagnostics from the most recent full `list()` scan: skills that
98
+ * were skipped as malformed and skills shadowed by a higher-priority layer.
99
+ * Optional so lightweight/mock loaders need not implement it; callers must
100
+ * feature-detect (`loader.diagnostics?.()`).
101
+ */
102
+ diagnostics?(): SkillLoaderDiagnostics;
47
103
  }
48
104
  //# sourceMappingURL=skill.d.ts.map
@@ -68,6 +68,8 @@ export interface ToolExecutorOptions {
68
68
  iterationTimeoutMs?: number | undefined;
69
69
  /** Hard upper bound for a single tool call timeout. Defaults to 5 minutes. */
70
70
  maxToolTimeoutMs?: number | undefined;
71
+ /** Maximum tools started concurrently by parallel/smart batches. Defaults to 4. */
72
+ maxParallelTools?: number | undefined;
71
73
  perIterationOutputCapBytes?: number | undefined;
72
74
  /**
73
75
  * Optional lifecycle hook runner. When present, `PreToolUse` hooks run
@@ -0,0 +1,35 @@
1
+ export interface MemoryAllocationStack {
2
+ bytes: number;
3
+ objects: number;
4
+ frames: string[];
5
+ }
6
+ export interface MemoryAllocationSummary {
7
+ sampledBytes: number;
8
+ sampledObjects: number;
9
+ sampleCount: number;
10
+ topStacks: MemoryAllocationStack[];
11
+ }
12
+ export interface MemoryProfileArtifact {
13
+ backend: 'datadog-pprof' | 'node-inspector';
14
+ data: Buffer | string;
15
+ extension: '.heapprofile' | '.pb.gz';
16
+ summary?: MemoryAllocationSummary | undefined;
17
+ }
18
+ export interface ContinuousMemoryProfiler {
19
+ readonly backend: MemoryProfileArtifact['backend'];
20
+ capture(): Promise<MemoryProfileArtifact>;
21
+ stop(): Promise<void>;
22
+ }
23
+ export interface ContinuousMemoryProfilerStart {
24
+ profiler: ContinuousMemoryProfiler;
25
+ fallbackReason?: string | undefined;
26
+ }
27
+ /**
28
+ * Start allocation sampling inside the current process.
29
+ *
30
+ * The native pprof backend samples continuously without opening an inspector
31
+ * port. The optional dependency may be missing on unsupported platforms, so
32
+ * Node's built-in Inspector sampling remains a functional fallback.
33
+ */
34
+ export declare function startContinuousMemoryProfiler(): Promise<ContinuousMemoryProfilerStart>;
35
+ //# sourceMappingURL=continuous-memory-profiler.d.ts.map
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Typed environment-variable parsing helpers.
3
+ *
4
+ * Every `process.env[...]` read in the codebase should go through these
5
+ * helpers so that:
6
+ *
7
+ * 1. Invalid values get a typed fallback instead of `NaN` or an empty string.
8
+ * 2. The fallback is visible at the call site, not buried in a downstream check.
9
+ * 3. Range constraints are expressed at the read site, not scattered.
10
+ *
11
+ * Usage:
12
+ * ```ts
13
+ * const idleMs = envInt('WRONGSTACK_IDLE_MS', { default: 30_000, min: 100 });
14
+ * const enabled = envBool('WRONGSTACK_FEATURE_ENABLED');
15
+ * const url = envString('WRONGSTACK_BASE_URL');
16
+ * ```
17
+ */
18
+ /**
19
+ * Parse an environment variable as a boolean.
20
+ * Returns `false` for unset, empty, `0`, `false`, `no`, `off` (case-insensitive).
21
+ * Returns `true` for any other non-empty value.
22
+ */
23
+ export declare function envBool(key: string, env?: NodeJS.ProcessEnv): boolean;
24
+ /**
25
+ * Parse an environment variable as a boolean, returning `undefined` when unset.
26
+ * Unlike {@link envBool}, this distinguishes "not set" from "set to false".
27
+ */
28
+ export declare function envBoolOptional(key: string, env?: NodeJS.ProcessEnv): boolean | undefined;
29
+ /**
30
+ * Parse an environment variable as an integer with optional range constraints.
31
+ * Returns `options.default` when unset or unparseable.
32
+ *
33
+ * When `min` or `max` are provided and the parsed value falls outside the
34
+ * range, the default is returned instead of the clamped value — this makes
35
+ * misconfiguration visible (the feature silently runs at the default rather
36
+ * than at an unintended boundary).
37
+ */
38
+ export declare function envInt(key: string, options?: {
39
+ default: number;
40
+ min?: number;
41
+ max?: number;
42
+ }, env?: NodeJS.ProcessEnv): number;
43
+ /**
44
+ * Parse an environment variable as a float with optional range constraints.
45
+ * Same semantics as {@link envInt} but for fractional values.
46
+ */
47
+ export declare function envFloat(key: string, options?: {
48
+ default: number;
49
+ min?: number;
50
+ max?: number;
51
+ }, env?: NodeJS.ProcessEnv): number;
52
+ /**
53
+ * Read an environment variable as a trimmed string.
54
+ * Returns `undefined` when unset or empty after trimming.
55
+ */
56
+ export declare function envString(key: string, env?: NodeJS.ProcessEnv): string | undefined;
57
+ /**
58
+ * Read an environment variable and validate it against a set of allowed values.
59
+ * Returns `options.default` when unset or when the value is not in the allow-list.
60
+ */
61
+ export declare function envEnum<T extends string>(key: string, allowed: readonly T[], options: {
62
+ default: T;
63
+ }, env?: NodeJS.ProcessEnv): T;
64
+ //# sourceMappingURL=env-typed.d.ts.map
@@ -1,4 +1,24 @@
1
- export declare function compileGlob(pattern: string): RegExp;
1
+ /**
2
+ * @param commandSubject - When true, compile for matching a shell command line
3
+ * rather than a path: a single `*` additionally stops at the shell
4
+ * separators in {@link COMMAND_WILDCARD_STOP}, and `**` is NOT a
5
+ * match-everything escape hatch (see below). Defaults to false, so every
6
+ * existing caller — file search, grep, replace, gitignore, the indexer —
7
+ * keeps its current semantics exactly.
8
+ */
9
+ export declare function compileGlob(pattern: string, commandSubject?: boolean): RegExp;
2
10
  export declare function matchGlob(pattern: string, input: string): boolean;
3
11
  export declare function matchAny(patterns: string[], input: string): boolean;
12
+ /**
13
+ * Match a shell command line against a trust pattern, with `*` and `**`
14
+ * stopping at shell separators (WS-047).
15
+ *
16
+ * A separate entry point rather than a flag on {@link matchGlob} because the
17
+ * two must never be confused at a call site: this is strictly NARROWER, so it
18
+ * is correct for deciding what a pattern ALLOWS and wrong for deciding what a
19
+ * pattern DENIES — narrowing a deny pattern un-blocks things. The caller has to
20
+ * pick deliberately.
21
+ */
22
+ export declare function matchCommandGlob(pattern: string, input: string): boolean;
23
+ export declare function matchAnyCommand(patterns: string[], input: string): boolean;
4
24
  //# sourceMappingURL=glob-match.d.ts.map
@@ -0,0 +1,62 @@
1
+ export interface HeapSample {
2
+ ts: string;
3
+ /** Resident set size, bytes. */
4
+ rss: number;
5
+ heapUsed: number;
6
+ heapTotal: number;
7
+ /** Off-heap (buffers, etc.), bytes. */
8
+ external: number;
9
+ /** ArrayBuffer/Buffer backing stores, included in `external`. */
10
+ arrayBuffers?: number | undefined;
11
+ /**
12
+ * RSS not explained by V8's committed heap or external allocations.
13
+ * This is a diagnostic heuristic, not an accounting identity: code pages,
14
+ * stacks, allocator fragmentation, Ink/Yoga and native addons live here.
15
+ */
16
+ nativeResidual?: number | undefined;
17
+ /** Selected V8 space usage, bytes. */
18
+ oldSpaceUsed?: number | undefined;
19
+ newSpaceUsed?: number | undefined;
20
+ largeObjectSpaceUsed?: number | undefined;
21
+ codeSpaceUsed?: number | undefined;
22
+ /** Native memory tracked by V8's allocator, bytes. */
23
+ mallocedMemory?: number | undefined;
24
+ peakMallocedMemory?: number | undefined;
25
+ nativeContexts?: number | undefined;
26
+ detachedContexts?: number | undefined;
27
+ /** Active libuv/Node resources (timers, pipes, sockets, etc.). */
28
+ activeResources?: number | undefined;
29
+ /**
30
+ * Bounded type histogram for active resources, e.g. "PipeWrap=4,Timeout=2".
31
+ * Carries no handles or payloads, so diagnostics cannot retain live work.
32
+ */
33
+ activeResourceTypes?: string | undefined;
34
+ /** V8 hard heap limit, bytes — the OOM ceiling. */
35
+ heapLimit: number;
36
+ /** heapUsed / heapLimit, 0–1. */
37
+ load: number;
38
+ }
39
+ export type HeapDiagnosticValue = string | number | boolean | null | undefined;
40
+ export type HeapDiagnosticFields = Record<string, HeapDiagnosticValue>;
41
+ export interface HeapWatchdogOptions {
42
+ /** Sampling cadence. Default 30s. */
43
+ sampleEveryMs?: number | undefined;
44
+ /** Diagnostic-file append cadence. Default 60s. */
45
+ logEveryMs?: number | undefined;
46
+ /** Diagnostics file. Default ~/.wrongstack/logs/heap.jsonl */
47
+ logPath?: string | undefined;
48
+ /** Fraction of the heap limit that triggers a 'warn' callback. Default 0.6. */
49
+ warnAt?: number | undefined;
50
+ /** Fraction of the heap limit that triggers a 'critical' callback. Default 0.85. */
51
+ criticalAt?: number | undefined;
52
+ /**
53
+ * Extra structure sizes merged into every diagnostic line — supply cheap
54
+ * counters (array lengths, approximate char totals). Must not throw.
55
+ */
56
+ collectStats?: (() => HeapDiagnosticFields) | undefined;
57
+ /** Override the JSONL writer, primarily for deterministic tests. */
58
+ writeDiagnosticLine?: ((logPath: string, line: string) => Promise<void>) | undefined;
59
+ /** Called on threshold crossings with a human-readable message. */
60
+ onWarn?: ((level: 'warn' | 'critical', message: string, sample: HeapSample) => void) | undefined;
61
+ }
62
+ //# sourceMappingURL=heap-watchdog-types.d.ts.map
@@ -1,37 +1,5 @@
1
- export interface HeapSample {
2
- ts: string;
3
- /** Resident set size, bytes. */
4
- rss: number;
5
- heapUsed: number;
6
- heapTotal: number;
7
- /** Off-heap (buffers, etc.), bytes. */
8
- external: number;
9
- /** V8 hard heap limit, bytes — the OOM ceiling. */
10
- heapLimit: number;
11
- /** heapUsed / heapLimit, 0–1. */
12
- load: number;
13
- }
14
- export interface HeapWatchdogOptions {
15
- /** Sampling cadence. Default 60s. */
16
- sampleEveryMs?: number | undefined;
17
- /** Diagnostic-file append cadence. Default 5min. */
18
- logEveryMs?: number | undefined;
19
- /** Diagnostics file. Default ~/.wrongstack/logs/heap.jsonl */
20
- logPath?: string | undefined;
21
- /** Fraction of the heap limit that triggers a 'warn' callback. Default 0.6. */
22
- warnAt?: number | undefined;
23
- /** Fraction of the heap limit that triggers a 'critical' callback. Default 0.85. */
24
- criticalAt?: number | undefined;
25
- /**
26
- * Extra structure sizes merged into every diagnostic line — supply cheap
27
- * counters (array lengths, approximate char totals). Must not throw.
28
- */
29
- collectStats?: (() => Record<string, number>) | undefined;
30
- /** Override the JSONL writer, primarily for deterministic tests. */
31
- writeDiagnosticLine?: ((logPath: string, line: string) => Promise<void>) | undefined;
32
- /** Called on threshold crossings with a human-readable message. */
33
- onWarn?: ((level: 'warn' | 'critical', message: string, sample: HeapSample) => void) | undefined;
34
- }
1
+ import type { HeapSample, HeapWatchdogOptions } from './heap-watchdog-types.js';
2
+ export type { HeapDiagnosticFields, HeapDiagnosticValue, HeapSample, HeapWatchdogOptions, } from './heap-watchdog-types.js';
35
3
  export declare function defaultHeapLogPath(): string;
36
4
  export declare function takeHeapSample(): HeapSample;
37
5
  /**
@@ -40,4 +8,17 @@ export declare function takeHeapSample(): HeapSample;
40
8
  * serialized; a failed append never throws into the caller.
41
9
  */
42
10
  export declare function startHeapWatchdog(opts?: HeapWatchdogOptions): () => Promise<void>;
11
+ /**
12
+ * Start or join the single process-wide watchdog.
13
+ *
14
+ * WrongStack's CLI mounts downstream surfaces (TUI/WebUI) inside the same Node
15
+ * process. Each surface used to start its own timer and append alternating
16
+ * partial records for the same PID. Contributors now share one sampler while
17
+ * still attaching surface-specific counters and warning handlers.
18
+ *
19
+ * The first contributor owns cadence/path/writer options. Later contributors
20
+ * only add `collectStats` and `onWarn`. The sampler stops after the final
21
+ * contributor unregisters.
22
+ */
23
+ export declare function startSharedHeapWatchdog(opts?: HeapWatchdogOptions): () => Promise<void>;
43
24
  //# sourceMappingURL=heap-watchdog.d.ts.map