@wrongstack/core 0.284.1 → 0.286.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 (831) hide show
  1. package/dist/agent-status-tracker.d.ts +74 -0
  2. package/dist/agent-status-tracker.d.ts.map +1 -0
  3. package/dist/autophase/auto-phase-planner.d.ts +79 -0
  4. package/dist/autophase/auto-phase-planner.d.ts.map +1 -0
  5. package/dist/autophase/auto-phase-runner.d.ts +79 -0
  6. package/dist/autophase/auto-phase-runner.d.ts.map +1 -0
  7. package/dist/autophase/checkpoint.d.ts +49 -0
  8. package/dist/autophase/checkpoint.d.ts.map +1 -0
  9. package/dist/autophase/index.d.ts +9 -0
  10. package/dist/autophase/index.d.ts.map +1 -0
  11. package/dist/autophase/phase-graph-builder.d.ts +46 -0
  12. package/dist/autophase/phase-graph-builder.d.ts.map +1 -0
  13. package/dist/autophase/phase-orchestrator.d.ts +150 -0
  14. package/dist/autophase/phase-orchestrator.d.ts.map +1 -0
  15. package/dist/autophase/phase-store.d.ts +29 -0
  16. package/dist/autophase/phase-store.d.ts.map +1 -0
  17. package/dist/autophase/types.d.ts +329 -0
  18. package/dist/autophase/types.d.ts.map +1 -0
  19. package/dist/boot.d.ts +73 -0
  20. package/dist/boot.d.ts.map +1 -0
  21. package/dist/coordination/adaptive-concurrency.d.ts +63 -0
  22. package/dist/coordination/adaptive-concurrency.d.ts.map +1 -0
  23. package/dist/coordination/agent-bridge.d.ts +24 -0
  24. package/dist/coordination/agent-bridge.d.ts.map +1 -0
  25. package/dist/coordination/agent-monitor.d.ts +129 -0
  26. package/dist/coordination/agent-monitor.d.ts.map +1 -0
  27. package/dist/coordination/agent-subagent-runner.d.ts +74 -0
  28. package/dist/coordination/agent-subagent-runner.d.ts.map +1 -0
  29. package/dist/coordination/agents/agent-prompts.d.ts +2 -0
  30. package/dist/coordination/agents/agent-prompts.d.ts.map +1 -0
  31. package/dist/coordination/agents/index.d.ts +35 -0
  32. package/dist/coordination/agents/index.d.ts.map +1 -0
  33. package/dist/coordination/agents/phase1-discovery.d.ts +4 -0
  34. package/dist/coordination/agents/phase1-discovery.d.ts.map +1 -0
  35. package/dist/coordination/agents/phase2-planning.d.ts +4 -0
  36. package/dist/coordination/agents/phase2-planning.d.ts.map +1 -0
  37. package/dist/coordination/agents/phase3-build.d.ts +4 -0
  38. package/dist/coordination/agents/phase3-build.d.ts.map +1 -0
  39. package/dist/coordination/agents/phase3-techstack.d.ts +13 -0
  40. package/dist/coordination/agents/phase3-techstack.d.ts.map +1 -0
  41. package/dist/coordination/agents/phase4-verify.d.ts +4 -0
  42. package/dist/coordination/agents/phase4-verify.d.ts.map +1 -0
  43. package/dist/coordination/agents/phase5-review.d.ts +4 -0
  44. package/dist/coordination/agents/phase5-review.d.ts.map +1 -0
  45. package/dist/coordination/agents/phase6-domain.d.ts +4 -0
  46. package/dist/coordination/agents/phase6-domain.d.ts.map +1 -0
  47. package/dist/coordination/agents/phase7-knowledge.d.ts +4 -0
  48. package/dist/coordination/agents/phase7-knowledge.d.ts.map +1 -0
  49. package/dist/coordination/agents/phase8-delivery.d.ts +4 -0
  50. package/dist/coordination/agents/phase8-delivery.d.ts.map +1 -0
  51. package/dist/coordination/agents/phase9-meta.d.ts +4 -0
  52. package/dist/coordination/agents/phase9-meta.d.ts.map +1 -0
  53. package/dist/coordination/agents/types.d.ts +79 -0
  54. package/dist/coordination/agents/types.d.ts.map +1 -0
  55. package/dist/coordination/agents.d.ts +8 -0
  56. package/dist/coordination/agents.d.ts.map +1 -0
  57. package/dist/coordination/auto-extend.d.ts +46 -0
  58. package/dist/coordination/auto-extend.d.ts.map +1 -0
  59. package/dist/coordination/autonomous-brain.d.ts +152 -0
  60. package/dist/coordination/autonomous-brain.d.ts.map +1 -0
  61. package/dist/coordination/autonomous-coordinator.d.ts +243 -0
  62. package/dist/coordination/autonomous-coordinator.d.ts.map +1 -0
  63. package/dist/coordination/brain-ledger.d.ts +142 -0
  64. package/dist/coordination/brain-ledger.d.ts.map +1 -0
  65. package/dist/coordination/brain-monitor.d.ts +103 -0
  66. package/dist/coordination/brain-monitor.d.ts.map +1 -0
  67. package/dist/coordination/brain.d.ts +147 -0
  68. package/dist/coordination/brain.d.ts.map +1 -0
  69. package/dist/coordination/change-manager.d.ts +151 -0
  70. package/dist/coordination/change-manager.d.ts.map +1 -0
  71. package/dist/coordination/checkpoint-wiring.d.ts +61 -0
  72. package/dist/coordination/checkpoint-wiring.d.ts.map +1 -0
  73. package/dist/coordination/collab-bus.d.ts +132 -0
  74. package/dist/coordination/collab-bus.d.ts.map +1 -0
  75. package/dist/coordination/collab-debug.d.ts +302 -0
  76. package/dist/coordination/collab-debug.d.ts.map +1 -0
  77. package/dist/coordination/commit-safety.d.ts +72 -0
  78. package/dist/coordination/commit-safety.d.ts.map +1 -0
  79. package/dist/coordination/consensus-protocol.d.ts +106 -0
  80. package/dist/coordination/consensus-protocol.d.ts.map +1 -0
  81. package/dist/coordination/coordinator/error-classifier.d.ts +15 -0
  82. package/dist/coordination/coordinator/error-classifier.d.ts.map +1 -0
  83. package/dist/coordination/delegate-tool.d.ts +101 -0
  84. package/dist/coordination/delegate-tool.d.ts.map +1 -0
  85. package/dist/coordination/dep-watcher-bridge.d.ts +47 -0
  86. package/dist/coordination/dep-watcher-bridge.d.ts.map +1 -0
  87. package/dist/coordination/dep-watcher.d.ts +74 -0
  88. package/dist/coordination/dep-watcher.d.ts.map +1 -0
  89. package/dist/coordination/director/director-errors.d.ts +29 -0
  90. package/dist/coordination/director/director-errors.d.ts.map +1 -0
  91. package/dist/coordination/director-construction.d.ts +90 -0
  92. package/dist/coordination/director-construction.d.ts.map +1 -0
  93. package/dist/coordination/director-prompts.d.ts +119 -0
  94. package/dist/coordination/director-prompts.d.ts.map +1 -0
  95. package/dist/coordination/director-session.d.ts +68 -0
  96. package/dist/coordination/director-session.d.ts.map +1 -0
  97. package/dist/coordination/director-tools.d.ts +65 -0
  98. package/dist/coordination/director-tools.d.ts.map +1 -0
  99. package/dist/coordination/director.d.ts +802 -0
  100. package/dist/coordination/director.d.ts.map +1 -0
  101. package/dist/coordination/dispatcher.d.ts +82 -0
  102. package/dist/coordination/dispatcher.d.ts.map +1 -0
  103. package/dist/coordination/file-author-tracker.d.ts +76 -0
  104. package/dist/coordination/file-author-tracker.d.ts.map +1 -0
  105. package/dist/coordination/fleet-bus.d.ts +122 -0
  106. package/dist/coordination/fleet-bus.d.ts.map +1 -0
  107. package/dist/coordination/fleet-event-validation.d.ts +10 -0
  108. package/dist/coordination/fleet-event-validation.d.ts.map +1 -0
  109. package/dist/coordination/fleet-manager.d.ts +234 -0
  110. package/dist/coordination/fleet-manager.d.ts.map +1 -0
  111. package/dist/coordination/fleet-spawn.d.ts +102 -0
  112. package/dist/coordination/fleet-spawn.d.ts.map +1 -0
  113. package/dist/coordination/fleet-status-tool.d.ts +36 -0
  114. package/dist/coordination/fleet-status-tool.d.ts.map +1 -0
  115. package/dist/coordination/fleet-supervisor.d.ts +157 -0
  116. package/dist/coordination/fleet-supervisor.d.ts.map +1 -0
  117. package/dist/coordination/fleet.d.ts +96 -0
  118. package/dist/coordination/fleet.d.ts.map +1 -0
  119. package/dist/coordination/global-mailbox.d.ts +295 -0
  120. package/dist/coordination/global-mailbox.d.ts.map +1 -0
  121. package/dist/coordination/icoordinator.d.ts +97 -0
  122. package/dist/coordination/icoordinator.d.ts.map +1 -0
  123. package/dist/coordination/ifleet-manager.d.ts +177 -0
  124. package/dist/coordination/ifleet-manager.d.ts.map +1 -0
  125. package/dist/coordination/in-memory-transport.d.ts +12 -0
  126. package/dist/coordination/in-memory-transport.d.ts.map +1 -0
  127. package/dist/coordination/index.d.ts +79 -2587
  128. package/dist/coordination/index.d.ts.map +1 -0
  129. package/dist/coordination/index.js +2262 -673
  130. package/dist/coordination/index.js.map +7 -1
  131. package/dist/coordination/knowledge-graph.d.ts +229 -0
  132. package/dist/coordination/knowledge-graph.d.ts.map +1 -0
  133. package/dist/coordination/large-answer-store.d.ts +61 -0
  134. package/dist/coordination/large-answer-store.d.ts.map +1 -0
  135. package/dist/coordination/mail-tools.d.ts +34 -0
  136. package/dist/coordination/mail-tools.d.ts.map +1 -0
  137. package/dist/coordination/mailbox-actions.d.ts +67 -0
  138. package/dist/coordination/mailbox-actions.d.ts.map +1 -0
  139. package/dist/coordination/mailbox-constants.d.ts +64 -0
  140. package/dist/coordination/mailbox-constants.d.ts.map +1 -0
  141. package/dist/coordination/mailbox-events.d.ts +32 -0
  142. package/dist/coordination/mailbox-events.d.ts.map +1 -0
  143. package/dist/coordination/mailbox-health.d.ts +131 -0
  144. package/dist/coordination/mailbox-health.d.ts.map +1 -0
  145. package/dist/coordination/mailbox-hooks.d.ts +55 -0
  146. package/dist/coordination/mailbox-hooks.d.ts.map +1 -0
  147. package/dist/coordination/mailbox-message-codec.d.ts +8 -0
  148. package/dist/coordination/mailbox-message-codec.d.ts.map +1 -0
  149. package/dist/coordination/mailbox-tool.d.ts +75 -0
  150. package/dist/coordination/mailbox-tool.d.ts.map +1 -0
  151. package/dist/{mailbox-types-BGZWrYTJ.d.ts → coordination/mailbox-types.d.ts} +125 -26
  152. package/dist/coordination/mailbox-types.d.ts.map +1 -0
  153. package/dist/coordination/mailbox.d.ts +88 -0
  154. package/dist/coordination/mailbox.d.ts.map +1 -0
  155. package/dist/coordination/model-matrix.d.ts +98 -0
  156. package/dist/coordination/model-matrix.d.ts.map +1 -0
  157. package/dist/coordination/multi-agent-coordinator.d.ts +202 -0
  158. package/dist/coordination/multi-agent-coordinator.d.ts.map +1 -0
  159. package/dist/coordination/null-fleet-bus.d.ts +10 -0
  160. package/dist/coordination/null-fleet-bus.d.ts.map +1 -0
  161. package/dist/coordination/package-author-tracker.d.ts +87 -0
  162. package/dist/coordination/package-author-tracker.d.ts.map +1 -0
  163. package/dist/coordination/package-outdated-watcher.d.ts +83 -0
  164. package/dist/coordination/package-outdated-watcher.d.ts.map +1 -0
  165. package/dist/coordination/single-instance-mailbox.d.ts +154 -0
  166. package/dist/coordination/single-instance-mailbox.d.ts.map +1 -0
  167. package/dist/coordination/spawn-budget.d.ts +6 -0
  168. package/dist/coordination/spawn-budget.d.ts.map +1 -0
  169. package/dist/coordination/subagent-budget.d.ts +323 -0
  170. package/dist/coordination/subagent-budget.d.ts.map +1 -0
  171. package/dist/coordination/subagent-nicknames.d.ts +42 -0
  172. package/dist/coordination/subagent-nicknames.d.ts.map +1 -0
  173. package/dist/coordination/subagent-result-tool.d.ts +20 -0
  174. package/dist/coordination/subagent-result-tool.d.ts.map +1 -0
  175. package/dist/coordination/task-auctioneer.d.ts +143 -0
  176. package/dist/coordination/task-auctioneer.d.ts.map +1 -0
  177. package/dist/coordination/task-dag.d.ts +147 -0
  178. package/dist/coordination/task-dag.d.ts.map +1 -0
  179. package/dist/coordination/techstack-mailbox-consumer.d.ts +50 -0
  180. package/dist/coordination/techstack-mailbox-consumer.d.ts.map +1 -0
  181. package/dist/coordination/transport.d.ts +2 -0
  182. package/dist/coordination/transport.d.ts.map +1 -0
  183. package/dist/coordination/worktree-task-runner.d.ts +45 -0
  184. package/dist/coordination/worktree-task-runner.d.ts.map +1 -0
  185. package/dist/core/agent-internals.d.ts +41 -0
  186. package/dist/core/agent-internals.d.ts.map +1 -0
  187. package/dist/core/agent-loop.d.ts +18 -0
  188. package/dist/core/agent-loop.d.ts.map +1 -0
  189. package/dist/core/agent-response.d.ts +21 -0
  190. package/dist/core/agent-response.d.ts.map +1 -0
  191. package/dist/core/agent-tools.d.ts +21 -0
  192. package/dist/core/agent-tools.d.ts.map +1 -0
  193. package/dist/core/agent-types.d.ts +95 -0
  194. package/dist/core/agent-types.d.ts.map +1 -0
  195. package/dist/core/agent.d.ts +54 -0
  196. package/dist/core/agent.d.ts.map +1 -0
  197. package/dist/core/btw.d.ts +40 -0
  198. package/dist/core/btw.d.ts.map +1 -0
  199. package/dist/core/context.d.ts +269 -0
  200. package/dist/core/context.d.ts.map +1 -0
  201. package/dist/core/continue-intent.d.ts +92 -0
  202. package/dist/core/continue-intent.d.ts.map +1 -0
  203. package/dist/core/continue-to-next-iteration.d.ts +96 -0
  204. package/dist/core/continue-to-next-iteration.d.ts.map +1 -0
  205. package/dist/core/conversation-state.d.ts +96 -0
  206. package/dist/core/conversation-state.d.ts.map +1 -0
  207. package/dist/core/fallback-model.d.ts +94 -0
  208. package/dist/core/fallback-model.d.ts.map +1 -0
  209. package/dist/core/fleet-pulse.d.ts +42 -0
  210. package/dist/core/fleet-pulse.d.ts.map +1 -0
  211. package/dist/core/input-builder.d.ts +95 -0
  212. package/dist/core/input-builder.d.ts.map +1 -0
  213. package/dist/core/instruction-bundle.d.ts +22 -0
  214. package/dist/core/instruction-bundle.d.ts.map +1 -0
  215. package/dist/core/iteration-limit.d.ts +35 -0
  216. package/dist/core/iteration-limit.d.ts.map +1 -0
  217. package/dist/core/mailbox-loop.d.ts +63 -0
  218. package/dist/core/mailbox-loop.d.ts.map +1 -0
  219. package/dist/core/modes/brief.d.ts +2 -0
  220. package/dist/core/modes/brief.d.ts.map +1 -0
  221. package/dist/core/modes/default.d.ts +8 -0
  222. package/dist/core/modes/default.d.ts.map +1 -0
  223. package/dist/core/modes/teach.d.ts +2 -0
  224. package/dist/core/modes/teach.d.ts.map +1 -0
  225. package/dist/core/provider-runner.d.ts +24 -0
  226. package/dist/core/provider-runner.d.ts.map +1 -0
  227. package/dist/core/queued-messages.d.ts +55 -0
  228. package/dist/core/queued-messages.d.ts.map +1 -0
  229. package/dist/core/run-env.d.ts +49 -0
  230. package/dist/core/run-env.d.ts.map +1 -0
  231. package/dist/core/streaming-response-builder.d.ts +78 -0
  232. package/dist/core/streaming-response-builder.d.ts.map +1 -0
  233. package/dist/core/system-prompt-builder.d.ts +213 -0
  234. package/dist/core/system-prompt-builder.d.ts.map +1 -0
  235. package/dist/defaults/index.d.ts +68 -158
  236. package/dist/defaults/index.d.ts.map +1 -0
  237. package/dist/defaults/index.js +2061 -1300
  238. package/dist/defaults/index.js.map +7 -1
  239. package/dist/execution/auto-compaction-middleware.d.ts +123 -0
  240. package/dist/execution/auto-compaction-middleware.d.ts.map +1 -0
  241. package/dist/execution/autonomous-runner.d.ts +61 -0
  242. package/dist/execution/autonomous-runner.d.ts.map +1 -0
  243. package/dist/execution/autonomy-brain.d.ts +151 -0
  244. package/dist/execution/autonomy-brain.d.ts.map +1 -0
  245. package/dist/execution/autonomy-prompt-contributor.d.ts +39 -0
  246. package/dist/execution/autonomy-prompt-contributor.d.ts.map +1 -0
  247. package/dist/execution/brain-chain.d.ts +53 -0
  248. package/dist/execution/brain-chain.d.ts.map +1 -0
  249. package/dist/execution/brain-evaluation.d.ts +66 -0
  250. package/dist/execution/brain-evaluation.d.ts.map +1 -0
  251. package/dist/execution/brain-runtime.d.ts +171 -0
  252. package/dist/execution/brain-runtime.d.ts.map +1 -0
  253. package/dist/execution/compaction-core.d.ts +103 -0
  254. package/dist/execution/compaction-core.d.ts.map +1 -0
  255. package/dist/execution/compactor.d.ts +56 -0
  256. package/dist/execution/compactor.d.ts.map +1 -0
  257. package/dist/execution/council-brain.d.ts +79 -0
  258. package/dist/execution/council-brain.d.ts.map +1 -0
  259. package/dist/execution/design-color.d.ts +31 -0
  260. package/dist/execution/design-color.d.ts.map +1 -0
  261. package/dist/execution/design-detect.d.ts +96 -0
  262. package/dist/execution/design-detect.d.ts.map +1 -0
  263. package/dist/execution/design-kit-loader.d.ts +53 -0
  264. package/dist/execution/design-kit-loader.d.ts.map +1 -0
  265. package/dist/execution/design-materialize.d.ts +32 -0
  266. package/dist/execution/design-materialize.d.ts.map +1 -0
  267. package/dist/execution/design-project-store.d.ts +57 -0
  268. package/dist/execution/design-project-store.d.ts.map +1 -0
  269. package/dist/execution/design-verify.d.ts +44 -0
  270. package/dist/execution/design-verify.d.ts.map +1 -0
  271. package/dist/execution/error-handler.d.ts +34 -0
  272. package/dist/execution/error-handler.d.ts.map +1 -0
  273. package/dist/{parallel-eternal-engine-HUrtePLd.d.ts → execution/eternal-autonomy.d.ts} +22 -225
  274. package/dist/execution/eternal-autonomy.d.ts.map +1 -0
  275. package/dist/execution/goal-preamble.d.ts +2 -0
  276. package/dist/execution/goal-preamble.d.ts.map +1 -0
  277. package/dist/execution/index.d.ts +25 -180
  278. package/dist/execution/index.d.ts.map +1 -0
  279. package/dist/execution/index.js +1748 -490
  280. package/dist/execution/index.js.map +7 -1
  281. package/dist/execution/intelligent-compactor.d.ts +85 -0
  282. package/dist/execution/intelligent-compactor.d.ts.map +1 -0
  283. package/dist/execution/model-runtime.d.ts +75 -0
  284. package/dist/execution/model-runtime.d.ts.map +1 -0
  285. package/dist/execution/parallel-eternal-engine.d.ts +142 -0
  286. package/dist/execution/parallel-eternal-engine.d.ts.map +1 -0
  287. package/dist/execution/prompt-enhancer.d.ts +12 -13
  288. package/dist/execution/prompt-enhancer.d.ts.map +1 -0
  289. package/dist/execution/prompt-enhancer.js +13 -7
  290. package/dist/execution/prompt-enhancer.js.map +7 -1
  291. package/dist/execution/prompt-loader.d.ts +52 -0
  292. package/dist/execution/prompt-loader.d.ts.map +1 -0
  293. package/dist/execution/provider-runner-impl.d.ts +14 -0
  294. package/dist/execution/provider-runner-impl.d.ts.map +1 -0
  295. package/dist/execution/regex-patterns.d.ts +7 -0
  296. package/dist/execution/regex-patterns.d.ts.map +1 -0
  297. package/dist/execution/retry-policy.d.ts +35 -0
  298. package/dist/execution/retry-policy.d.ts.map +1 -0
  299. package/dist/execution/selective-compactor.d.ts +94 -0
  300. package/dist/execution/selective-compactor.d.ts.map +1 -0
  301. package/dist/execution/skill-loader.d.ts +43 -0
  302. package/dist/execution/skill-loader.d.ts.map +1 -0
  303. package/dist/execution/strategy-compactor.d.ts +43 -0
  304. package/dist/execution/strategy-compactor.d.ts.map +1 -0
  305. package/dist/execution/tool-executor.d.ts +112 -0
  306. package/dist/execution/tool-executor.d.ts.map +1 -0
  307. package/dist/extension/extension-points.d.ts +121 -0
  308. package/dist/extension/extension-points.d.ts.map +1 -0
  309. package/dist/extension/index.d.ts +3 -10
  310. package/dist/extension/index.d.ts.map +1 -0
  311. package/dist/extension/index.js +59 -5
  312. package/dist/extension/index.js.map +7 -1
  313. package/dist/extension/registry.d.ts +86 -0
  314. package/dist/extension/registry.d.ts.map +1 -0
  315. package/dist/fleet-notifier.d.ts +28 -0
  316. package/dist/fleet-notifier.d.ts.map +1 -0
  317. package/dist/hooks/http-executor.d.ts +11 -0
  318. package/dist/hooks/http-executor.d.ts.map +1 -0
  319. package/dist/hooks/index.d.ts +10 -0
  320. package/dist/hooks/index.d.ts.map +1 -0
  321. package/dist/hooks/registry.d.ts +71 -0
  322. package/dist/hooks/registry.d.ts.map +1 -0
  323. package/dist/hooks/runner.d.ts +65 -0
  324. package/dist/hooks/runner.d.ts.map +1 -0
  325. package/dist/hooks/shell-executor.d.ts +33 -0
  326. package/dist/hooks/shell-executor.d.ts.map +1 -0
  327. package/dist/hooks/shell-hooks-equal.d.ts +15 -0
  328. package/dist/hooks/shell-hooks-equal.d.ts.map +1 -0
  329. package/dist/hq/agent-bridge.d.ts +27 -0
  330. package/dist/hq/agent-bridge.d.ts.map +1 -0
  331. package/dist/hq/alerts.d.ts +67 -0
  332. package/dist/hq/alerts.d.ts.map +1 -0
  333. package/dist/hq/auth-store.d.ts +179 -0
  334. package/dist/hq/auth-store.d.ts.map +1 -0
  335. package/dist/hq/brain-bridge.d.ts +37 -0
  336. package/dist/hq/brain-bridge.d.ts.map +1 -0
  337. package/dist/hq/commands.d.ts +122 -0
  338. package/dist/hq/commands.d.ts.map +1 -0
  339. package/dist/hq/cost-bridge.d.ts +36 -0
  340. package/dist/hq/cost-bridge.d.ts.map +1 -0
  341. package/dist/hq/factory.d.ts +69 -0
  342. package/dist/hq/factory.d.ts.map +1 -0
  343. package/dist/hq/fleet-bridge.d.ts +39 -0
  344. package/dist/hq/fleet-bridge.d.ts.map +1 -0
  345. package/dist/hq/index.d.ts +18 -816
  346. package/dist/hq/index.d.ts.map +1 -0
  347. package/dist/hq/index.js +1043 -192
  348. package/dist/hq/index.js.map +7 -1
  349. package/dist/hq/mailbox-mapper.d.ts +27 -0
  350. package/dist/hq/mailbox-mapper.d.ts.map +1 -0
  351. package/dist/hq/persistence.d.ts +121 -0
  352. package/dist/hq/persistence.d.ts.map +1 -0
  353. package/dist/hq/protocol.d.ts +612 -0
  354. package/dist/hq/protocol.d.ts.map +1 -0
  355. package/dist/hq/publisher.d.ts +181 -0
  356. package/dist/hq/publisher.d.ts.map +1 -0
  357. package/dist/hq/redaction.d.ts +30 -0
  358. package/dist/hq/redaction.d.ts.map +1 -0
  359. package/dist/hq/session-bridge.d.ts +29 -0
  360. package/dist/hq/session-bridge.d.ts.map +1 -0
  361. package/dist/hq/tool-bridge.d.ts +41 -0
  362. package/dist/hq/tool-bridge.d.ts.map +1 -0
  363. package/dist/hq/transcript-mapper.d.ts +36 -0
  364. package/dist/hq/transcript-mapper.d.ts.map +1 -0
  365. package/dist/hq/worktree-bridge.d.ts +34 -0
  366. package/dist/hq/worktree-bridge.d.ts.map +1 -0
  367. package/dist/index.d.ts +114 -2872
  368. package/dist/index.d.ts.map +1 -0
  369. package/dist/index.js +6104 -2737
  370. package/dist/index.js.map +7 -1
  371. package/dist/infrastructure/context-manager.d.ts +92 -0
  372. package/dist/infrastructure/context-manager.d.ts.map +1 -0
  373. package/dist/infrastructure/index.d.ts +6 -64
  374. package/dist/infrastructure/index.d.ts.map +1 -0
  375. package/dist/infrastructure/index.js +39 -12
  376. package/dist/infrastructure/index.js.map +7 -1
  377. package/dist/infrastructure/logger.d.ts +99 -0
  378. package/dist/infrastructure/logger.d.ts.map +1 -0
  379. package/dist/infrastructure/mcp-servers.d.ts +83 -0
  380. package/dist/infrastructure/mcp-servers.d.ts.map +1 -0
  381. package/dist/{path-resolver-CMS5307d.d.ts → infrastructure/path-resolver.d.ts} +3 -5
  382. package/dist/infrastructure/path-resolver.d.ts.map +1 -0
  383. package/dist/infrastructure/token-counter.d.ts +57 -0
  384. package/dist/infrastructure/token-counter.d.ts.map +1 -0
  385. package/dist/kernel/container.d.ts +84 -0
  386. package/dist/kernel/container.d.ts.map +1 -0
  387. package/dist/{events-Bgnh43r9.d.ts → kernel/events.d.ts} +134 -210
  388. package/dist/kernel/events.d.ts.map +1 -0
  389. package/dist/kernel/index.d.ts +6 -107
  390. package/dist/kernel/index.d.ts.map +1 -0
  391. package/dist/kernel/index.js +56 -4
  392. package/dist/kernel/index.js.map +7 -1
  393. package/dist/kernel/pipeline.d.ts +105 -0
  394. package/dist/kernel/pipeline.d.ts.map +1 -0
  395. package/dist/kernel/run-controller.d.ts +55 -0
  396. package/dist/kernel/run-controller.d.ts.map +1 -0
  397. package/dist/kernel/tokens.d.ts +53 -0
  398. package/dist/kernel/tokens.d.ts.map +1 -0
  399. package/dist/mailbox-attach.d.ts +27 -0
  400. package/dist/mailbox-attach.d.ts.map +1 -0
  401. package/dist/middleware/collab-pause.d.ts +73 -0
  402. package/dist/middleware/collab-pause.d.ts.map +1 -0
  403. package/dist/models/codex-catalog.d.ts +41 -0
  404. package/dist/models/codex-catalog.d.ts.map +1 -0
  405. package/dist/models/index.d.ts +8 -163
  406. package/dist/models/index.d.ts.map +1 -0
  407. package/dist/models/index.js +150 -51
  408. package/dist/models/index.js.map +7 -1
  409. package/dist/models/llm-selector.d.ts +47 -0
  410. package/dist/models/llm-selector.d.ts.map +1 -0
  411. package/dist/models/mode-store.d.ts +22 -0
  412. package/dist/models/mode-store.d.ts.map +1 -0
  413. package/dist/models/model-intelligence.d.ts +56 -0
  414. package/dist/models/model-intelligence.d.ts.map +1 -0
  415. package/dist/models/model-router.d.ts +100 -0
  416. package/dist/models/model-router.d.ts.map +1 -0
  417. package/dist/models/models-registry.d.ts +106 -0
  418. package/dist/models/models-registry.d.ts.map +1 -0
  419. package/dist/models/provider-model-resolve.d.ts +69 -0
  420. package/dist/models/provider-model-resolve.d.ts.map +1 -0
  421. package/dist/observability/event-bridge.d.ts +10 -0
  422. package/dist/observability/event-bridge.d.ts.map +1 -0
  423. package/dist/observability/health.d.ts +18 -0
  424. package/dist/observability/health.d.ts.map +1 -0
  425. package/dist/observability/index.d.ts +9 -354
  426. package/dist/observability/index.d.ts.map +1 -0
  427. package/dist/observability/index.js +37 -23
  428. package/dist/observability/index.js.map +7 -1
  429. package/dist/observability/metrics.d.ts +26 -0
  430. package/dist/observability/metrics.d.ts.map +1 -0
  431. package/dist/observability/otel-tracer.d.ts +41 -0
  432. package/dist/observability/otel-tracer.d.ts.map +1 -0
  433. package/dist/observability/otlp-metrics.d.ts +111 -0
  434. package/dist/observability/otlp-metrics.d.ts.map +1 -0
  435. package/dist/observability/otlp-traces.d.ts +95 -0
  436. package/dist/observability/otlp-traces.d.ts.map +1 -0
  437. package/dist/observability/prometheus.d.ts +49 -0
  438. package/dist/observability/prometheus.d.ts.map +1 -0
  439. package/dist/observability/tracer.d.ts +9 -0
  440. package/dist/observability/tracer.d.ts.map +1 -0
  441. package/dist/plugin/api.d.ts +226 -0
  442. package/dist/plugin/api.d.ts.map +1 -0
  443. package/dist/plugin/loader.d.ts +73 -0
  444. package/dist/plugin/loader.d.ts.map +1 -0
  445. package/dist/plugins/chimera-plugin.d.ts +37 -0
  446. package/dist/plugins/chimera-plugin.d.ts.map +1 -0
  447. package/dist/plugins/prompts-plugin.d.ts +26 -0
  448. package/dist/plugins/prompts-plugin.d.ts.map +1 -0
  449. package/dist/plugins/security-plugin.d.ts +19 -0
  450. package/dist/plugins/security-plugin.d.ts.map +1 -0
  451. package/dist/plugins/skills-plugin.d.ts +42 -0
  452. package/dist/plugins/skills-plugin.d.ts.map +1 -0
  453. package/dist/plugins/sync-plugin.d.ts +22 -0
  454. package/dist/plugins/sync-plugin.d.ts.map +1 -0
  455. package/dist/prompts/index.d.ts +3 -0
  456. package/dist/prompts/index.d.ts.map +1 -0
  457. package/dist/prompts/prompt-installer.d.ts +50 -0
  458. package/dist/prompts/prompt-installer.d.ts.map +1 -0
  459. package/dist/prompts/prompt-manifest-store.d.ts +18 -0
  460. package/dist/prompts/prompt-manifest-store.d.ts.map +1 -0
  461. package/dist/registry/provider-registry.d.ts +51 -0
  462. package/dist/registry/provider-registry.d.ts.map +1 -0
  463. package/dist/registry/slash-command-registry.d.ts +61 -0
  464. package/dist/registry/slash-command-registry.d.ts.map +1 -0
  465. package/dist/registry/tool-registry.d.ts +154 -0
  466. package/dist/registry/tool-registry.d.ts.map +1 -0
  467. package/dist/replay/hash.d.ts +31 -0
  468. package/dist/replay/hash.d.ts.map +1 -0
  469. package/dist/replay/replay-provider-runner.d.ts +53 -0
  470. package/dist/replay/replay-provider-runner.d.ts.map +1 -0
  471. package/dist/{index-CbyuOE5y.d.ts → security/capabilities.d.ts} +31 -34
  472. package/dist/security/capabilities.d.ts.map +1 -0
  473. package/dist/security/config-secrets.d.ts +25 -0
  474. package/dist/security/config-secrets.d.ts.map +1 -0
  475. package/dist/security/index.d.ts +7 -8
  476. package/dist/security/index.d.ts.map +1 -0
  477. package/dist/security/index.js +354 -401
  478. package/dist/security/index.js.map +7 -1
  479. package/dist/security/permission-policy-schema.d.ts +77 -0
  480. package/dist/security/permission-policy-schema.d.ts.map +1 -0
  481. package/dist/security/permission-policy.d.ts +158 -0
  482. package/dist/security/permission-policy.d.ts.map +1 -0
  483. package/dist/security/secret-scrubber.d.ts +14 -0
  484. package/dist/security/secret-scrubber.d.ts.map +1 -0
  485. package/dist/security/secret-vault.d.ts +96 -0
  486. package/dist/security/secret-vault.d.ts.map +1 -0
  487. package/dist/security/yolo-risk.d.ts +11 -0
  488. package/dist/security/yolo-risk.d.ts.map +1 -0
  489. package/dist/{session-registry-Dvg7i_IA.d.ts → session-registry.d.ts} +8 -9
  490. package/dist/session-registry.d.ts.map +1 -0
  491. package/dist/skills/foreign-sources.d.ts +59 -0
  492. package/dist/skills/foreign-sources.d.ts.map +1 -0
  493. package/dist/skills/frontmatter.d.ts +44 -0
  494. package/dist/skills/frontmatter.d.ts.map +1 -0
  495. package/dist/skills/github-fetcher.d.ts +38 -0
  496. package/dist/skills/github-fetcher.d.ts.map +1 -0
  497. package/dist/skills/index.d.ts +11 -582
  498. package/dist/skills/index.d.ts.map +1 -0
  499. package/dist/skills/index.js +81 -43
  500. package/dist/skills/index.js.map +7 -1
  501. package/dist/skills/limits.d.ts +92 -0
  502. package/dist/skills/limits.d.ts.map +1 -0
  503. package/dist/skills/manifest-store.d.ts +42 -0
  504. package/dist/skills/manifest-store.d.ts.map +1 -0
  505. package/dist/skills/registry/github-direct-adapter.d.ts +17 -0
  506. package/dist/skills/registry/github-direct-adapter.d.ts.map +1 -0
  507. package/dist/skills/registry/registry-adapter.d.ts +84 -0
  508. package/dist/skills/registry/registry-adapter.d.ts.map +1 -0
  509. package/dist/skills/registry/skills-sh-adapter.d.ts +13 -0
  510. package/dist/skills/registry/skills-sh-adapter.d.ts.map +1 -0
  511. package/dist/skills/skill-generator.d.ts +82 -0
  512. package/dist/skills/skill-generator.d.ts.map +1 -0
  513. package/dist/skills/skill-installer.d.ts +124 -0
  514. package/dist/skills/skill-installer.d.ts.map +1 -0
  515. package/dist/storage/annotations-store.d.ts +118 -0
  516. package/dist/storage/annotations-store.d.ts.map +1 -0
  517. package/dist/storage/attachment-store.d.ts +31 -0
  518. package/dist/storage/attachment-store.d.ts.map +1 -0
  519. package/dist/storage/cloud-sync.d.ts +44 -0
  520. package/dist/storage/cloud-sync.d.ts.map +1 -0
  521. package/dist/storage/completed-work-checkpoint.d.ts +11 -0
  522. package/dist/storage/completed-work-checkpoint.d.ts.map +1 -0
  523. package/dist/storage/config-loader.d.ts +114 -0
  524. package/dist/storage/config-loader.d.ts.map +1 -0
  525. package/dist/storage/config-migration.d.ts +87 -0
  526. package/dist/storage/config-migration.d.ts.map +1 -0
  527. package/dist/storage/config-store.d.ts +22 -0
  528. package/dist/storage/config-store.d.ts.map +1 -0
  529. package/dist/{director-state-CMS_bMs4.d.ts → storage/director-state.d.ts} +28 -8
  530. package/dist/storage/director-state.d.ts.map +1 -0
  531. package/dist/storage/file-session-writer.d.ts +169 -0
  532. package/dist/storage/file-session-writer.d.ts.map +1 -0
  533. package/dist/{goal-store-Datpp-ar.d.ts → storage/goal-store.d.ts} +26 -19
  534. package/dist/storage/goal-store.d.ts.map +1 -0
  535. package/dist/storage/index.d.ts +39 -1031
  536. package/dist/storage/index.d.ts.map +1 -0
  537. package/dist/storage/index.js +783 -443
  538. package/dist/storage/index.js.map +7 -1
  539. package/dist/storage/input-history-store.d.ts +56 -0
  540. package/dist/storage/input-history-store.d.ts.map +1 -0
  541. package/dist/storage/memory-backend.d.ts +66 -0
  542. package/dist/storage/memory-backend.d.ts.map +1 -0
  543. package/dist/storage/memory-consolidator.d.ts +50 -0
  544. package/dist/storage/memory-consolidator.d.ts.map +1 -0
  545. package/dist/storage/memory-graph-backend.d.ts +117 -0
  546. package/dist/storage/memory-graph-backend.d.ts.map +1 -0
  547. package/dist/storage/memory-store.d.ts +119 -0
  548. package/dist/storage/memory-store.d.ts.map +1 -0
  549. package/dist/storage/plan-store.d.ts +78 -0
  550. package/dist/storage/plan-store.d.ts.map +1 -0
  551. package/dist/storage/plan-templates.d.ts +21 -0
  552. package/dist/storage/plan-templates.d.ts.map +1 -0
  553. package/dist/storage/prompt-store.d.ts +37 -0
  554. package/dist/storage/prompt-store.d.ts.map +1 -0
  555. package/dist/storage/prompt-usage-store.d.ts +29 -0
  556. package/dist/storage/prompt-usage-store.d.ts.map +1 -0
  557. package/dist/storage/provider-config-watcher.d.ts +34 -0
  558. package/dist/storage/provider-config-watcher.d.ts.map +1 -0
  559. package/dist/storage/queue-store.d.ts +41 -0
  560. package/dist/storage/queue-store.d.ts.map +1 -0
  561. package/dist/storage/recovery-lock.d.ts +79 -0
  562. package/dist/storage/recovery-lock.d.ts.map +1 -0
  563. package/dist/storage/replay-log-store.d.ts +97 -0
  564. package/dist/storage/replay-log-store.d.ts.map +1 -0
  565. package/dist/storage/session-analyzer.d.ts +48 -0
  566. package/dist/storage/session-analyzer.d.ts.map +1 -0
  567. package/dist/storage/session-checkpoint-cas.d.ts +37 -0
  568. package/dist/storage/session-checkpoint-cas.d.ts.map +1 -0
  569. package/dist/{session-event-bridge-D_z_mBwk.d.ts → storage/session-event-bridge.d.ts} +14 -15
  570. package/dist/storage/session-event-bridge.d.ts.map +1 -0
  571. package/dist/storage/session-helpers.d.ts +9 -0
  572. package/dist/storage/session-helpers.d.ts.map +1 -0
  573. package/dist/storage/session-id.d.ts +18 -0
  574. package/dist/storage/session-id.d.ts.map +1 -0
  575. package/dist/storage/session-reader.d.ts +21 -0
  576. package/dist/storage/session-reader.d.ts.map +1 -0
  577. package/dist/storage/session-recovery.d.ts +93 -0
  578. package/dist/storage/session-recovery.d.ts.map +1 -0
  579. package/dist/storage/session-resume-validation.d.ts +6 -0
  580. package/dist/storage/session-resume-validation.d.ts.map +1 -0
  581. package/dist/storage/session-rewinder.d.ts +21 -0
  582. package/dist/storage/session-rewinder.d.ts.map +1 -0
  583. package/dist/storage/session-store.d.ts +219 -0
  584. package/dist/storage/session-store.d.ts.map +1 -0
  585. package/dist/storage/session-summary.d.ts +12 -0
  586. package/dist/storage/session-summary.d.ts.map +1 -0
  587. package/dist/storage/session-tool-call-ends.d.ts +5 -0
  588. package/dist/storage/session-tool-call-ends.d.ts.map +1 -0
  589. package/dist/storage/storage-concurrency.d.ts +2 -0
  590. package/dist/storage/storage-concurrency.d.ts.map +1 -0
  591. package/dist/storage/task-store.d.ts +33 -0
  592. package/dist/storage/task-store.d.ts.map +1 -0
  593. package/dist/storage/todos-checkpoint.d.ts +39 -0
  594. package/dist/storage/todos-checkpoint.d.ts.map +1 -0
  595. package/dist/storage/tool-audit-log.d.ts +141 -0
  596. package/dist/storage/tool-audit-log.d.ts.map +1 -0
  597. package/dist/tasking/index.d.ts +3 -124
  598. package/dist/tasking/index.d.ts.map +1 -0
  599. package/dist/tasking/index.js +57 -4
  600. package/dist/tasking/index.js.map +7 -1
  601. package/dist/tasking/task-store.d.ts +22 -0
  602. package/dist/tasking/task-store.d.ts.map +1 -0
  603. package/dist/tasking/task-tracker.d.ts +102 -0
  604. package/dist/tasking/task-tracker.d.ts.map +1 -0
  605. package/dist/tools/index.d.ts +2 -59
  606. package/dist/tools/index.d.ts.map +1 -0
  607. package/dist/tools/index.js +93 -14
  608. package/dist/tools/index.js.map +7 -1
  609. package/dist/tools/mcp-control.d.ts +53 -0
  610. package/dist/tools/mcp-control.d.ts.map +1 -0
  611. package/dist/tools/mcp-use.d.ts +24 -0
  612. package/dist/tools/mcp-use.d.ts.map +1 -0
  613. package/dist/types/agent-bridge.d.ts +42 -0
  614. package/dist/types/agent-bridge.d.ts.map +1 -0
  615. package/dist/types/attachment.d.ts +54 -0
  616. package/dist/types/attachment.d.ts.map +1 -0
  617. package/dist/types/autonomy.d.ts +5 -0
  618. package/dist/types/autonomy.d.ts.map +1 -0
  619. package/dist/types/blocks.d.ts +76 -0
  620. package/dist/types/blocks.d.ts.map +1 -0
  621. package/dist/{compactor-DQLL4HTo.d.ts → types/compactor.d.ts} +5 -7
  622. package/dist/types/compactor.d.ts.map +1 -0
  623. package/dist/{config-MRqn1V-u.d.ts → types/config.d.ts} +344 -355
  624. package/dist/types/config.d.ts.map +1 -0
  625. package/dist/types/context-evidence.d.ts +68 -0
  626. package/dist/types/context-evidence.d.ts.map +1 -0
  627. package/dist/types/context-window.d.ts +35 -0
  628. package/dist/types/context-window.d.ts.map +1 -0
  629. package/dist/{default-config-B79_gJYv.d.ts → types/default-config.d.ts} +10 -11
  630. package/dist/types/default-config.d.ts.map +1 -0
  631. package/dist/types/design-kit.d.ts +91 -0
  632. package/dist/types/design-kit.d.ts.map +1 -0
  633. package/dist/{retry-policy-CQ7KwXJa.d.ts → types/error-handler.d.ts} +5 -12
  634. package/dist/types/error-handler.d.ts.map +1 -0
  635. package/dist/types/errors.d.ts +277 -0
  636. package/dist/types/errors.d.ts.map +1 -0
  637. package/dist/types/hooks.d.ts +167 -0
  638. package/dist/types/hooks.d.ts.map +1 -0
  639. package/dist/types/index.d.ts +40 -244
  640. package/dist/types/index.d.ts.map +1 -0
  641. package/dist/types/index.js +101 -12
  642. package/dist/types/index.js.map +7 -1
  643. package/dist/{input-reader-E-ffP2ee.d.ts → types/input-reader.d.ts} +3 -4
  644. package/dist/types/input-reader.d.ts.map +1 -0
  645. package/dist/{logger-B63L5bTg.d.ts → types/logger.d.ts} +3 -4
  646. package/dist/types/logger.d.ts.map +1 -0
  647. package/dist/types/memory.d.ts +89 -0
  648. package/dist/types/memory.d.ts.map +1 -0
  649. package/dist/types/messages.d.ts +24 -0
  650. package/dist/types/messages.d.ts.map +1 -0
  651. package/dist/types/mode-prompts.d.ts +2 -0
  652. package/dist/types/mode-prompts.d.ts.map +1 -0
  653. package/dist/{mode-CZlO9iU1.d.ts → types/mode.d.ts} +6 -7
  654. package/dist/types/mode.d.ts.map +1 -0
  655. package/dist/types/models-registry.d.ts +105 -0
  656. package/dist/types/models-registry.d.ts.map +1 -0
  657. package/dist/types/multi-agent.d.ts +443 -0
  658. package/dist/types/multi-agent.d.ts.map +1 -0
  659. package/dist/{observability-D-HZN_mF.d.ts → types/observability.d.ts} +17 -13
  660. package/dist/types/observability.d.ts.map +1 -0
  661. package/dist/{path-resolver-CPRj4bFY.d.ts → types/path-resolver.d.ts} +2 -3
  662. package/dist/types/path-resolver.d.ts.map +1 -0
  663. package/dist/{permission-ByDKXEcG.d.ts → types/permission.d.ts} +8 -9
  664. package/dist/types/permission.d.ts.map +1 -0
  665. package/dist/types/plugin.d.ts +385 -0
  666. package/dist/types/plugin.d.ts.map +1 -0
  667. package/dist/types/prompt-registry.d.ts +81 -0
  668. package/dist/types/prompt-registry.d.ts.map +1 -0
  669. package/dist/{prompt-DLd35n4Q.d.ts → types/prompt.d.ts} +14 -15
  670. package/dist/types/prompt.d.ts.map +1 -0
  671. package/dist/{provider-runner-ChL-kVg6.d.ts → types/provider-runner.d.ts} +9 -10
  672. package/dist/types/provider-runner.d.ts.map +1 -0
  673. package/dist/types/provider.d.ts +387 -0
  674. package/dist/types/provider.d.ts.map +1 -0
  675. package/dist/types/renderer.d.ts +23 -0
  676. package/dist/types/renderer.d.ts.map +1 -0
  677. package/dist/types/retry-policy.d.ts +7 -0
  678. package/dist/types/retry-policy.d.ts.map +1 -0
  679. package/dist/types/secret-scrubber.d.ts +5 -0
  680. package/dist/types/secret-scrubber.d.ts.map +1 -0
  681. package/dist/{secret-vault-BAKpgFw_.d.ts → types/secret-vault.d.ts} +13 -7
  682. package/dist/types/secret-vault.d.ts.map +1 -0
  683. package/dist/{selector-D8O6B_Rm.d.ts → types/selector.d.ts} +4 -6
  684. package/dist/types/selector.d.ts.map +1 -0
  685. package/dist/types/session-reader.d.ts +81 -0
  686. package/dist/types/session-reader.d.ts.map +1 -0
  687. package/dist/{session-rewinder-C9HnMkhP.d.ts → types/session-rewinder.d.ts} +5 -6
  688. package/dist/types/session-rewinder.d.ts.map +1 -0
  689. package/dist/types/session.d.ts +650 -0
  690. package/dist/types/session.d.ts.map +1 -0
  691. package/dist/types/side-effect.d.ts +34 -0
  692. package/dist/types/side-effect.d.ts.map +1 -0
  693. package/dist/{skill-DHniprNl.d.ts → types/skill.d.ts} +4 -5
  694. package/dist/types/skill.d.ts.map +1 -0
  695. package/dist/types/slash-command.d.ts +59 -0
  696. package/dist/types/slash-command.d.ts.map +1 -0
  697. package/dist/types/spec.d.ts +77 -0
  698. package/dist/types/spec.d.ts.map +1 -0
  699. package/dist/types/system-prompt-contributor.d.ts +20 -0
  700. package/dist/types/system-prompt-contributor.d.ts.map +1 -0
  701. package/dist/types/system-prompt.d.ts +51 -0
  702. package/dist/types/system-prompt.d.ts.map +1 -0
  703. package/dist/{task-graph-CH3acNQ7.d.ts → types/task-graph.d.ts} +21 -22
  704. package/dist/types/task-graph.d.ts.map +1 -0
  705. package/dist/types/token-counter.d.ts +42 -0
  706. package/dist/types/token-counter.d.ts.map +1 -0
  707. package/dist/types/tool-executor.d.ts +133 -0
  708. package/dist/types/tool-executor.d.ts.map +1 -0
  709. package/dist/types/tool-markers.d.ts +23 -0
  710. package/dist/types/tool-markers.d.ts.map +1 -0
  711. package/dist/types/tool.d.ts +252 -0
  712. package/dist/types/tool.d.ts.map +1 -0
  713. package/dist/types/utility-types.d.ts +31 -0
  714. package/dist/types/utility-types.d.ts.map +1 -0
  715. package/dist/utils/assert-never.d.ts +14 -0
  716. package/dist/utils/assert-never.d.ts.map +1 -0
  717. package/dist/utils/atomic-write.d.ts +12 -0
  718. package/dist/utils/atomic-write.d.ts.map +1 -0
  719. package/dist/utils/child-env.d.ts +67 -0
  720. package/dist/utils/child-env.d.ts.map +1 -0
  721. package/dist/utils/color.d.ts +20 -0
  722. package/dist/utils/color.d.ts.map +1 -0
  723. package/dist/utils/config-json.d.ts +14 -0
  724. package/dist/utils/config-json.d.ts.map +1 -0
  725. package/dist/utils/context-evidence.d.ts +47 -0
  726. package/dist/utils/context-evidence.d.ts.map +1 -0
  727. package/dist/utils/deep-merge.d.ts +64 -0
  728. package/dist/utils/deep-merge.d.ts.map +1 -0
  729. package/dist/utils/diff.d.ts +11 -0
  730. package/dist/utils/diff.d.ts.map +1 -0
  731. package/dist/utils/error.d.ts +2 -3
  732. package/dist/utils/error.d.ts.map +1 -0
  733. package/dist/utils/error.js +3 -3
  734. package/dist/utils/error.js.map +7 -1
  735. package/dist/utils/expect-defined.d.ts +2 -3
  736. package/dist/utils/expect-defined.d.ts.map +1 -0
  737. package/dist/utils/expect-defined.js +3 -3
  738. package/dist/utils/expect-defined.js.map +7 -1
  739. package/dist/utils/glob-expand.d.ts +10 -0
  740. package/dist/utils/glob-expand.d.ts.map +1 -0
  741. package/dist/utils/glob-match.d.ts +4 -0
  742. package/dist/utils/glob-match.d.ts.map +1 -0
  743. package/dist/utils/incoming-images.d.ts +39 -0
  744. package/dist/utils/incoming-images.d.ts.map +1 -0
  745. package/dist/utils/index.d.ts +38 -920
  746. package/dist/utils/index.d.ts.map +1 -0
  747. package/dist/utils/index.js +323 -36
  748. package/dist/utils/index.js.map +7 -1
  749. package/dist/utils/instruction-file.d.ts +3 -0
  750. package/dist/utils/instruction-file.d.ts.map +1 -0
  751. package/dist/utils/ip-guard.d.ts +34 -0
  752. package/dist/utils/ip-guard.d.ts.map +1 -0
  753. package/dist/utils/json-repair.d.ts +23 -0
  754. package/dist/utils/json-repair.d.ts.map +1 -0
  755. package/dist/utils/json-schema-validate.d.ts +42 -0
  756. package/dist/utils/json-schema-validate.d.ts.map +1 -0
  757. package/dist/utils/lru-cache.d.ts +29 -0
  758. package/dist/utils/lru-cache.d.ts.map +1 -0
  759. package/dist/utils/merge-custom-models.d.ts +12 -0
  760. package/dist/utils/merge-custom-models.d.ts.map +1 -0
  761. package/dist/utils/merge-models-payload.d.ts +20 -0
  762. package/dist/utils/merge-models-payload.d.ts.map +1 -0
  763. package/dist/utils/message-invariants.d.ts +22 -0
  764. package/dist/utils/message-invariants.d.ts.map +1 -0
  765. package/dist/utils/newline-normalize.d.ts +5 -0
  766. package/dist/utils/newline-normalize.d.ts.map +1 -0
  767. package/dist/utils/regex-guard.d.ts +21 -0
  768. package/dist/utils/regex-guard.d.ts.map +1 -0
  769. package/dist/utils/safe-json.d.ts +31 -0
  770. package/dist/utils/safe-json.d.ts.map +1 -0
  771. package/dist/utils/session-scoped-path.d.ts +13 -0
  772. package/dist/utils/session-scoped-path.d.ts.map +1 -0
  773. package/dist/utils/sleep.d.ts +5 -0
  774. package/dist/utils/sleep.d.ts.map +1 -0
  775. package/dist/utils/slug.d.ts +13 -0
  776. package/dist/utils/slug.d.ts.map +1 -0
  777. package/dist/utils/string.d.ts +9 -0
  778. package/dist/utils/string.d.ts.map +1 -0
  779. package/dist/utils/task-format.d.ts +22 -0
  780. package/dist/utils/task-format.d.ts.map +1 -0
  781. package/dist/utils/term.d.ts +133 -0
  782. package/dist/utils/term.d.ts.map +1 -0
  783. package/dist/utils/todos-format.d.ts +30 -0
  784. package/dist/utils/todos-format.d.ts.map +1 -0
  785. package/dist/utils/token-estimate.d.ts +112 -0
  786. package/dist/utils/token-estimate.d.ts.map +1 -0
  787. package/dist/utils/tool-description-mode.d.ts +28 -0
  788. package/dist/utils/tool-description-mode.d.ts.map +1 -0
  789. package/dist/utils/tool-output-serializer.d.ts +40 -0
  790. package/dist/utils/tool-output-serializer.d.ts.map +1 -0
  791. package/dist/utils/tool-result-render-mode.d.ts +55 -0
  792. package/dist/utils/tool-result-render-mode.d.ts.map +1 -0
  793. package/dist/utils/tool-subject.d.ts +5 -0
  794. package/dist/utils/tool-subject.d.ts.map +1 -0
  795. package/dist/utils/tool-wire-compact.d.ts +28 -0
  796. package/dist/utils/tool-wire-compact.d.ts.map +1 -0
  797. package/dist/utils/ulid.d.ts +11 -0
  798. package/dist/utils/ulid.d.ts.map +1 -0
  799. package/dist/{wstack-paths-C3K40Qst.d.ts → utils/wstack-paths.d.ts} +7 -8
  800. package/dist/utils/wstack-paths.d.ts.map +1 -0
  801. package/dist/worktree/index.d.ts +2 -0
  802. package/dist/worktree/index.d.ts.map +1 -0
  803. package/dist/{worktree-manager-DzwxKE35.d.ts → worktree/worktree-manager.d.ts} +32 -17
  804. package/dist/worktree/worktree-manager.d.ts.map +1 -0
  805. package/instructions/agents/browser.md +25 -16
  806. package/instructions/autonomy/active-mission.md +2 -4
  807. package/instructions/coordination/subagent-baseline.md +16 -2
  808. package/instructions/leader-after-task.md +3 -1
  809. package/instructions/sections/tool/common-patterns.md +7 -1
  810. package/instructions/sections/tool/delegation-full.md +1 -1
  811. package/instructions/system.md +47 -0
  812. package/package.json +4 -5
  813. package/skills/docker-deploy/SKILL.md +1 -1
  814. package/skills/node-modern/SKILL.md +2 -2
  815. package/skills/plugin-author/SKILL.md +9 -16
  816. package/skills/wrongstack-mailbox/SKILL.md +51 -12
  817. package/dist/dispatcher-types.d-BBeXBQgS.d.ts +0 -66
  818. package/dist/global-mailbox-sZwyI6CS.d.ts +0 -959
  819. package/dist/index--Gm41aBJ.d.ts +0 -671
  820. package/dist/mcp-servers-DEV4s6Ks.d.ts +0 -259
  821. package/dist/multi-agent-coordinator-4RCRZKjN.d.ts +0 -1770
  822. package/dist/null-fleet-bus-CFoNVQEK.d.ts +0 -2127
  823. package/dist/pipeline-DGDyIohT.d.ts +0 -331
  824. package/dist/provider-model-resolve-o2hHLs79.d.ts +0 -263
  825. package/dist/secret-scrubber-3MHDDAtm.d.ts +0 -6
  826. package/dist/secret-vault-DxohkUBc.d.ts +0 -272
  827. package/dist/session-reader-7Esxrkpw.d.ts +0 -155
  828. package/dist/task-format-GX0B1mMC.d.ts +0 -23
  829. package/dist/todos-checkpoint-FY7PjmMx.d.ts +0 -850
  830. package/dist/tool-BNlnIJvo.d.ts +0 -2190
  831. package/dist/tool-executor-CckSCM5E.d.ts +0 -906
@@ -1,582 +1,11 @@
1
- import { b as SkillEntry, S as SkillLoader } from '../skill-DHniprNl.js';
2
-
3
- /**
4
- * Skill registry adapter contract.
5
- *
6
- * A registry is a searchable catalog of skills that resolves to a concrete
7
- * install target (a GitHub `user/repo[@ref]`). Two adapters ship out of the
8
- * box:
9
- *
10
- * - `githubDirectAdapter` — no search; `user/repo` is typed directly. This
11
- * is the original pre-registry install path.
12
- * - `skillsShAdapter` — searches the skills.sh marketplace
13
- * (https://skills.sh/api/skills), which indexes
14
- * 34k+ skills from 2.8k+ repos and computes a
15
- * per-skill security score (0–100).
16
- *
17
- * The adapter layer keeps the installer registry-agnostic: it asks each
18
- * adapter to resolve a `<adapterId>:<registryId>` ref to a `user/repo@ref`
19
- * and reuses the existing GitHub tarball path. New registries (an internal
20
- * company hub, ags, …) are added by implementing this interface and passing
21
- * them to the `SkillInstaller`.
22
- */
23
- /**
24
- * One hit from a registry search. Fields are optional where the underlying
25
- * registry doesn't guarantee them — every adapter normalizes to this shape.
26
- */
27
- interface RegistrySkillSummary {
28
- /** Registry-native id (used as `<adapterId>:<id>` in `/skill-install`). */
29
- id: string;
30
- /** Skill name (kebab-case, as it will appear once installed). */
31
- name: string;
32
- /** Short description / trigger line. */
33
- description: string;
34
- /** Author / owner (often the GitHub owner). */
35
- author?: string | undefined;
36
- /** Install count, if the registry reports it. */
37
- installs?: number | undefined;
38
- /** Star count, if the registry reports it. */
39
- stars?: number | undefined;
40
- /**
41
- * Security score 0–100 (skills.sh computes this; ags uses the same scale).
42
- * Lower = riskier. Below 30 the install command prompts for confirmation.
43
- */
44
- securityScore?: number | undefined;
45
- /** ISO timestamp of the skill's last update, if known. */
46
- updatedAt?: string | undefined;
47
- /**
48
- * The `user/repo[@ref]` the installer passes to `downloadGitHubTarball`.
49
- * Always present for real registry hits — it's the whole point of resolving.
50
- */
51
- installRef: string;
52
- }
53
- interface RegistrySearchOptions {
54
- /** 1-indexed page (default 1). */
55
- page?: number | undefined;
56
- /** Page size (default 20; registries may cap this). */
57
- pageSize?: number | undefined;
58
- }
59
- interface RegistrySearchResult {
60
- /** Which adapter produced these results. */
61
- adapterId: string;
62
- results: RegistrySkillSummary[];
63
- /** True when the registry indicates more pages exist. */
64
- hasMore?: boolean | undefined;
65
- }
66
- /**
67
- * A searchable skill catalog that resolves to a GitHub install target.
68
- *
69
- * `search` is optional in spirit (the github-direct adapter doesn't search),
70
- * but the interface requires it so callers can fan out uniformly — adapters
71
- * that can't search simply return `[]`.
72
- */
73
- interface SkillRegistryAdapter {
74
- /** Stable id used in `<adapterId>:<registryId>` refs (e.g. `'skills.sh'`). */
75
- readonly id: string;
76
- /** Human label for UI (e.g. `'skills.sh'`). */
77
- readonly displayName: string;
78
- /** Search the catalog. Return `[]` if the adapter doesn't support search. */
79
- search(query: string, opts?: RegistrySearchOptions): Promise<RegistrySearchResult>;
80
- /**
81
- * Resolve a registry-native id to a `user/repo[@ref]` install ref. Should
82
- * validate the id shape and throw on an id this adapter can't resolve.
83
- */
84
- resolveInstallRef(registryId: string): string;
85
- }
86
-
87
- /**
88
- * Well-known foreign coding-agent skill directories. All follow the
89
- * agentskills.io `SKILL.md` format, so the same loader reads them — this just
90
- * tells it WHERE each agent keeps them.
91
- *
92
- * Claude is handled separately by the loader (`claude-project` / `claude-user`
93
- * sources); this list covers the OTHER agents. Every tool here stores skills
94
- * under `~/.<tool>/skills` (+ `<project>/.<tool>/skills`).
95
- *
96
- * Dirs that don't exist are skipped gracefully, so listing many is cheap.
97
- *
98
- * NOTE: Cursor previously used a non-standard `skills-cursor` subdir. As of the
99
- * 2026-07 alignment with the broader skills.sh / antfu-skills-cli / vercel-labs
100
- * ecosystem, Cursor uses the standard `skills` subdir like everyone else.
101
- * (`skills-cursor` was WrongStack-only and meant real Cursor skills were never
102
- * discovered — see docs/skills.md.)
103
- */
104
- interface ForeignSkillTool {
105
- /** Tool id — also the directory name segment (`~/.<id>/…`). */
106
- id: string;
107
- /** Skills subdirectory name under `~/.<id>/`. */
108
- subdir: string;
109
- }
110
- declare const FOREIGN_SKILL_TOOLS: readonly ForeignSkillTool[];
111
- /** Result of resolving a `foreignSources` config option. */
112
- interface ResolvedForeignTools {
113
- /** Tool ids that will be scanned (subset of {@link FOREIGN_SKILL_TOOLS}). */
114
- ids: string[];
115
- /** Tool ids the user asked for that aren't known — likely typos (e.g. `corser`). */
116
- unknownIds: string[];
117
- }
118
- /**
119
- * Resolve the `config.skills.foreignSources` option into the list of tool ids
120
- * to scan. Kept for backward compatibility (returns only `ids`).
121
- * - `false` → none
122
- * - `string[]` → only those ids (unknown ids silently dropped — see
123
- * {@link resolveForeignToolIdsWithWarnings} to surface them)
124
- * - `true` / `undefined` → all well-known tools
125
- */
126
- declare function resolveForeignToolIds(opt: boolean | string[] | undefined): string[];
127
- /**
128
- * Like {@link resolveForeignToolIds}, but also returns tool ids the caller asked
129
- * for that don't match any known agent. Callers that want to warn the user
130
- * about a likely typo (e.g. `foreignSources: ["corser"]`) should prefer this.
131
- *
132
- * - `false` → none
133
- * - `string[]` → known ids included, unknown ones returned in `unknownIds`
134
- * - `true` / `undefined` → all well-known tools (no unknowns possible)
135
- */
136
- declare function resolveForeignToolIdsWithWarnings(opt: boolean | string[] | undefined): ResolvedForeignTools;
137
- /**
138
- * Security tier bucket for a registry skill's `securityScore` (0–100).
139
- * Mirrors the ags (agentskill-sh/ags) thresholds: skills below 30 need
140
- * explicit confirmation before install.
141
- */
142
- type SkillSecurityTier = 'low' | 'medium' | 'high';
143
- /** Classify a 0–100 security score into a tier. 0/undefined → unknown → `low`. */
144
- declare function securityScoreToTier(score: number | undefined | null): SkillSecurityTier;
145
-
146
- /**
147
- * Shared SKILL.md frontmatter parser + agentskills.io name validation.
148
- *
149
- * The SKILL.md format (https://agentskills.io/specification) is YAML
150
- * frontmatter between `---` markers followed by a Markdown body. This parser is
151
- * intentionally minimal — it handles the fields skills actually use, with YAML
152
- * block scalars (`|` / `>`) for multi-line values and an indented map for
153
- * `metadata`. It is NOT a general YAML parser; skill files are trusted markdown.
154
- */
155
- interface ParsedSkillFrontmatter {
156
- name?: string | undefined;
157
- description?: string | undefined;
158
- /** WrongStack extension; informational only. */
159
- version?: string | undefined;
160
- license?: string | undefined;
161
- compatibility?: string | undefined;
162
- metadata?: Record<string, string> | undefined;
163
- /** `allowed-tools` (spec, experimental) → split on whitespace. */
164
- allowedTools?: string[] | undefined;
165
- }
166
- /**
167
- * Parse the YAML frontmatter block from a raw SKILL.md file. Returns `{}` when
168
- * there is no (or unclosed) frontmatter — callers treat that as "skip".
169
- *
170
- * Line endings are normalized first: CRLF (and lone CR) would otherwise leave a
171
- * trailing `\r` on each line, and since `.` / `$` don't match `\r`, the
172
- * `key: value` regex would fail on every line and silently drop the whole
173
- * frontmatter. Real skill files are frequently CRLF (Windows / some editors).
174
- */
175
- declare function parseSkillFrontmatter(raw: string): ParsedSkillFrontmatter;
176
- /** Strip leading YAML frontmatter (`---\n…\n---`) from a SKILL.md file. */
177
- declare function stripFrontmatter(raw: string): string;
178
- /** True when `name` matches the agentskills.io name format (chars + length only). */
179
- declare function isValidSkillNameFormat(name: string): boolean;
180
- /**
181
- * Validate a skill `name` against the agentskills.io spec:
182
- * 1-64 chars; lowercase letters, digits, and single hyphens only; no
183
- * leading/trailing/consecutive hyphens. Pass the parent directory name to also
184
- * enforce the "name must match the parent directory" rule.
185
- *
186
- * Returns a list of human-readable violations (empty = valid).
187
- */
188
- declare function validateSkillName(name: string, parentDirName?: string): string[];
189
-
190
- interface ParsedRef {
191
- owner: string;
192
- repo: string;
193
- ref: string;
194
- }
195
- /**
196
- * Parse a skill reference string.
197
- * Formats: `user/repo` (default ref: main), `user/repo@ref`
198
- */
199
- declare function parseSkillRef(input: string): ParsedRef;
200
- interface DownloadResult {
201
- /** Temp directory containing the extracted repo. Caller must clean up. */
202
- tempDir: string;
203
- }
204
- /**
205
- * Download and extract a GitHub repository tarball.
206
- *
207
- * Auth: reads `WRONGSTACK_GITHUB_TOKEN` / `GITHUB_TOKEN` / `GH_TOKEN` (in that
208
- * order). Without a token only public repos work; with one, private repos the
209
- * token can read also work, and the API rate limit is the authenticated
210
- * (much higher) limit instead of the anonymous 60/hour.
211
- *
212
- * Returns the path to a temp directory with the extracted contents. The caller
213
- * must remove it (the installer does this in a `finally`).
214
- */
215
- declare function downloadGitHubTarball(parsed: ParsedRef): Promise<DownloadResult>;
216
-
217
- /**
218
- * Centralized skill system limits.
219
- *
220
- * Before this file existed, the magic numbers below were scattered across five
221
- * modules (`skill-installer`, `github-fetcher`, `skill` tool, system-prompt
222
- * builder, skill-loader), sometimes duplicated (e.g. per-skill body cap was
223
- * defined independently in the builder and the tool). Centralizing them here
224
- * keeps the budget model coherent — change one, change everywhere — and makes
225
- * the trade-offs visible in one place.
226
- *
227
- * Values are frozen at their pre-centralization defaults so this is a pure
228
- * refactor (no behavior change).
229
- */
230
- declare const SKILL_LIMITS: {
231
- /**
232
- * Per-skill body cap when injecting a full skill body into the system prompt
233
- * (eager mode), and when returning a skill body from the `skill` tool.
234
- * ~4k tokens. Oversized bodies are truncated at a paragraph boundary.
235
- *
236
- * Consumers: `system-prompt-builder.capSkillBody`, `skill` tool body return.
237
- */
238
- readonly MAX_SKILL_BODY_CHARS: 16000;
239
- /**
240
- * Per-resource cap when the `skill` tool loads a bundled file
241
- * (`scripts/`, `references/`, `assets/`). ~8k tokens.
242
- *
243
- * Consumer: `skill` tool `loadResource`.
244
- */
245
- readonly MAX_RESOURCE_CHARS: 32000;
246
- /**
247
- * Maximum number of bundled resource paths the `skill` tool lists in one
248
- * response. Caps a pathological skill (huge `assets/` tree) from blowing up
249
- * the tool result.
250
- *
251
- * Consumer: `skill` tool resource listing.
252
- */
253
- readonly MAX_LISTED_RESOURCES: 100;
254
- /**
255
- * Max size of a single installed skill file (SKILL.md or a bundled resource).
256
- * Guards against a malicious registry skill shipping a multi-MB blob that
257
- * then flows into the prompt. 100KB.
258
- *
259
- * Consumer: `SkillInstaller.install` / `importFromDir`.
260
- */
261
- readonly MAX_SKILL_FILE_SIZE: number;
262
- /**
263
- * Max size of a GitHub tarball downloaded by the skill installer. Guards
264
- * against a repo accidentally (or maliciously) shipping a giant tarball that
265
- * would be extracted into a temp dir. 50MB.
266
- *
267
- * Consumer: `downloadGitHubTarball`.
268
- */
269
- readonly MAX_TARBALL_SIZE: number;
270
- /**
271
- * Default total char budget for skill bodies injected in eager mode when
272
- * `config.skills.eagerMaxChars` is unset. ~6k tokens. Skills are injected
273
- * highest-priority first; once the budget is exhausted the remaining skills
274
- * are listed as a manifest the agent loads via the `skill` tool. Set very
275
- * high to effectively disable budgeting.
276
- *
277
- * Consumer: `DefaultSystemPromptBuilder.buildMemoryAndSkills` (default for
278
- * `skillEagerMaxChars`).
279
- */
280
- readonly EAGER_DEFAULT_MAX_CHARS: 24000;
281
- /**
282
- * Auto-compact body limits (the token-saving fallback used when a skill has
283
- * no hand-crafted `SKILL.save.md`). The Overview and Rules sections are
284
- * extracted and trimmed to these char budgets, then the total is capped.
285
- *
286
- * Consumer: `DefaultSkillLoader.compactSkillBody`.
287
- */
288
- readonly COMPACT_OVERVIEW_MAX: 200;
289
- readonly COMPACT_RULES_MAX: 350;
290
- readonly COMPACT_TOTAL_MAX: 450;
291
- /**
292
- * Max length of a skill name (agentskills.io spec). Enforced by the
293
- * frontmatter validator's format regex plus this length bound.
294
- *
295
- * Consumer: `isValidSkillNameFormat`.
296
- */
297
- readonly SKILL_NAME_MAX_LEN: 64;
298
- /**
299
- * Soft line limit for a SKILL.md body, per the bundled `skill-creator` rule.
300
- * Not enforced in code (a skill can exceed it) — surfaced by `/skill-gen
301
- * validate` and the `skill-creator` skill as guidance to move deep material
302
- * into `references/`.
303
- *
304
- * Consumer: `skill-creator` skill, `/skill-gen validate` advisory.
305
- */
306
- readonly SKILL_BODY_LINE_LIMIT: 500;
307
- };
308
-
309
- interface InstalledSkillEntry {
310
- name: string;
311
- /** Source identifier, e.g. "github:user/repo" */
312
- source: string;
313
- /** Git ref that was installed (branch, tag, commit) */
314
- ref: string;
315
- /** Installation scope */
316
- scope: 'project' | 'user';
317
- /** Project hash — only set when scope=project */
318
- projectHash?: string | undefined;
319
- /** ISO 8601 timestamp */
320
- installedAt: string;
321
- /** List of files that were installed (relative to skill dir) */
322
- files: string[];
323
- /**
324
- * When the install was resolved through a registry (e.g. `skills.sh`), the
325
- * adapter id + registry id that mapped to the GitHub `source`. Absent for
326
- * direct `user/repo` installs.
327
- */
328
- registryFrom?: {
329
- adapterId: string;
330
- registryId: string;
331
- } | undefined;
332
- }
333
- interface ManifestData {
334
- skills: InstalledSkillEntry[];
335
- }
336
- declare class SkillManifestStore {
337
- private readonly manifestPath;
338
- private cache?;
339
- constructor(manifestPath: string);
340
- read(): Promise<ManifestData>;
341
- write(data: ManifestData): Promise<void>;
342
- addEntry(entry: InstalledSkillEntry): Promise<void>;
343
- removeEntry(name: string, scope: 'project' | 'user'): Promise<boolean>;
344
- findByName(name: string): Promise<InstalledSkillEntry[]>;
345
- findBySource(source: string): Promise<InstalledSkillEntry[]>;
346
- listAll(): Promise<InstalledSkillEntry[]>;
347
- /** Invalidate the in-memory cache (e.g. after external file changes). */
348
- invalidateCache(): void;
349
- }
350
-
351
- /**
352
- * GitHub-direct registry adapter.
353
- *
354
- * This is the original pre-registry install path wrapped in the adapter
355
- * interface: the user types `user/repo[@ref]` directly. It does NOT search
356
- * (GitHub code search is a separate API with its own auth/rate-limit story and
357
- * isn't a skill catalog), so `search()` returns an empty result. Its job is
358
- * solely to make `user/repo` flow through the same `<adapterId>:<registryId>`
359
- * resolution as the skills.sh adapter — except here the "registry id" IS the
360
- * install ref already.
361
- *
362
- * Registered as the fallback adapter so `/skill-install user/repo` keeps
363
- * working unchanged when no `<adapterId>:` prefix is given.
364
- */
365
-
366
- declare const githubDirectAdapter: SkillRegistryAdapter;
367
-
368
- /** Default skills.sh base URL. Override via `config.skills.registryUrl`. */
369
- declare const DEFAULT_SKILLS_SH_URL = "https://skills.sh";
370
- /** Injectable fetcher (mirrors the `prompt-installer` JsonFetcher pattern). */
371
- type SkillsShFetcher = (url: string) => Promise<unknown>;
372
- interface SkillsShAdapterOptions {
373
- /** Base URL (no trailing slash). Defaults to {@link DEFAULT_SKILLS_SH_URL}. */
374
- baseUrl?: string | undefined;
375
- /** Injectable fetcher for tests. */
376
- fetcher?: SkillsShFetcher | undefined;
377
- }
378
- declare function createSkillsShAdapter(opts?: SkillsShAdapterOptions): SkillRegistryAdapter;
379
-
380
- /** Result of validating a proposed skill name. */
381
- interface SkillNameValidation {
382
- /** Whether the name is valid kebab-case AND free of collisions. */
383
- ok: boolean;
384
- /** Format violations (empty when the name is valid kebab-case). */
385
- formatViolations: string[];
386
- /** Existing skills with the same name (empty when there's no collision). */
387
- conflicts: SkillEntry[];
388
- }
389
- /**
390
- * Validate a proposed skill name: format (kebab-case, ≤64 chars) plus collision
391
- * check against every skill the loader can see (project, user, foreign,
392
- * bundled). A collision isn't fatal — project skills intentionally shadow
393
- * lower layers — so `ok` is true when the only collision is with a foreign or
394
- * bundled skill (intended shadowing), but `conflicts` is still populated so the
395
- * user can decide. A collision with another project or user skill of the same
396
- * name does fail (`ok: false`), since that would silently overwrite it.
397
- */
398
- declare function validateSkillNameAvailable(name: string, loader?: SkillLoader): Promise<SkillNameValidation>;
399
- interface SkillSkeletonOptions {
400
- name: string;
401
- description: string;
402
- /** Trigger keywords for the `Triggers:` line. */
403
- triggerKeywords?: string[] | undefined;
404
- /** Optional version (default `1.0.0`). */
405
- version?: string | undefined;
406
- }
407
- /**
408
- * Generate a SKILL.md body (with frontmatter) following the agentskills.io
409
- * format and the `skill-creator` skill's recommended skeleton. Deterministic:
410
- * the same inputs always produce the same output, and the result round-trips
411
- * through `parseSkillFrontmatter` (so what we write is what the loader reads).
412
- *
413
- * The body is a skeleton — the user fills in Rules/Patterns/etc. The
414
- * `skill-creator` skill is the right tool for the open-ended authoring; this
415
- * is the scaffold.
416
- */
417
- declare function generateSkillSkeleton(opts: SkillSkeletonOptions): string;
418
- /** Result of extracting a skill draft from a free-form prompt. */
419
- interface ExtractedSkillDraft {
420
- /** Suggested name (kebab-case) derived from the prompt, or empty. */
421
- suggestedName: string;
422
- /** Description (first paragraph of the prompt). */
423
- description: string;
424
- /** Remaining prompt text, used as the skill body. */
425
- body: string;
426
- /** Trigger keywords extracted from the prompt. */
427
- triggerKeywords: string[];
428
- }
429
- /**
430
- * Heuristically extract a skill draft from a free-form prompt. No LLM — just
431
- * light structure detection:
432
- * - First non-empty paragraph → `description`.
433
- * - A `# heading` or the first line → suggested kebab-case `suggestedName`.
434
- * - Remaining text → `body`.
435
- * - Quoted tokens and the heading words → `triggerKeywords`.
436
- *
437
- * The output is a starting point the user (or the skill-creator wizard) refines.
438
- */
439
- declare function extractSkillFromPrompt(prompt: string): ExtractedSkillDraft;
440
- /**
441
- * Open a file in the user's editor (`$VISUAL` → `$EDITOR` → platform default).
442
- * Detached + unref'd so the editor outlives the WrongStack process. Throws a
443
- * `WrongStackError` when no editor can be resolved.
444
- */
445
- declare function openInEditor(filePath: string, env?: NodeJS.ProcessEnv): Promise<void>;
446
- /**
447
- * Write a skeleton skill to `<skillsDir>/<name>/SKILL.md`. Returns the written
448
- * path. Used by `/skill-gen skeleton` and `/skill-gen from-prompt`. Refuses to
449
- * overwrite an existing SKILL.md unless `overwrite` is set — a guard against
450
- * clobbering a hand-edited skill.
451
- */
452
- declare function writeSkeletonSkill(skillsDir: string, body: string, opts?: {
453
- overwrite?: boolean | undefined;
454
- }): Promise<string>;
455
- /** Soft length advisory for a SKILL.md body (the `skill-creator` 500-line rule). */
456
- declare function bodyLineAdvisory(body: string): {
457
- lines: number;
458
- over: boolean;
459
- };
460
-
461
- interface SkillInstallerOptions {
462
- /** Path to the manifest file (~/.wrongstack/installed-skills.json) */
463
- manifestPath: string;
464
- /** Path to project-level skills dir (<project>/.wrongstack/skills/) */
465
- projectSkillsDir: string;
466
- /** Path to user-global skills dir (~/.wrongstack/skills/) */
467
- globalSkillsDir: string;
468
- /** Current project hash (for manifest tracking) */
469
- projectHash: string;
470
- /** Skill loader — cache will be invalidated after mutations */
471
- skillLoader?: SkillLoader | undefined;
472
- /** Logger for status messages */
473
- log?: ((msg: string) => void) | undefined;
474
- /**
475
- * Skill registries used to resolve `<adapterId>:<registryId>` refs and to
476
- * serve `/skill-search`. Defaults to `[githubDirectAdapter]` (the original
477
- * direct `user/repo` install path). Add a skills.sh adapter to enable
478
- * searching the marketplace and installing registry hits by id.
479
- */
480
- registryAdapters?: SkillRegistryAdapter[] | undefined;
481
- }
482
- interface InstallResult {
483
- name: string;
484
- path: string;
485
- scope: 'project' | 'user';
486
- source: string;
487
- ref: string;
488
- skillCount: number;
489
- }
490
- interface UpdateResult {
491
- updated: Array<{
492
- name: string;
493
- oldRef: string;
494
- newRef: string;
495
- }>;
496
- unchanged: string[];
497
- errors: Array<{
498
- name: string;
499
- error: string;
500
- }>;
501
- }
502
- declare class SkillInstaller {
503
- private readonly opts;
504
- private readonly manifest;
505
- private readonly adapters;
506
- constructor(opts: SkillInstallerOptions);
507
- /**
508
- * Install skills from a skill reference.
509
- *
510
- * Accepts two ref formats:
511
- * - `user/repo[@ref]` — direct GitHub install (original path)
512
- * - `<adapterId>:<registryId>` — registry-resolved (e.g.
513
- * `skills.sh:owner/repo@v1`); the
514
- * adapter resolves it to a `user/repo`
515
- * ref and the install proceeds as above.
516
- *
517
- * Supports both single-skill repos (SKILL.md at root) and multi-skill repos
518
- * (skills/ subdirectory). The manifest records the GitHub source as
519
- * `github:owner/repo` (so `/skill-update` keeps working) plus the originating
520
- * registry in `registryFrom` when the install came through a registry.
521
- */
522
- install(refInput: string, opts?: {
523
- global?: boolean | undefined;
524
- }): Promise<InstallResult[]>;
525
- /**
526
- * Import skills from a local directory (e.g. `.claude/skills`) into the
527
- * project or user skills dir, optionally as symlinks. Used by `/skill-import`
528
- * to take ownership of foreign skills so they can be edited/committed.
529
- * Each direct subdirectory containing a valid `SKILL.md` is copied verbatim.
530
- */
531
- importFromDir(srcDir: string, opts?: {
532
- global?: boolean | undefined;
533
- link?: boolean | undefined;
534
- }): Promise<InstallResult[]>;
535
- /**
536
- * Update installed skills.
537
- * - No args: update all
538
- * - Name: update that specific skill
539
- * - Name + newRef: update to a different ref
540
- */
541
- update(nameOrRef?: string | undefined, _opts?: {
542
- global?: boolean | undefined;
543
- } | undefined): Promise<UpdateResult>;
544
- /**
545
- * Uninstall a skill by name.
546
- */
547
- uninstall(name: string, opts?: {
548
- global?: boolean | undefined;
549
- }): Promise<void>;
550
- /**
551
- * List all installed skills from the manifest.
552
- */
553
- listInstalled(): Promise<InstalledSkillEntry[]>;
554
- /**
555
- * Search across all configured registry adapters. Results from each adapter
556
- * are merged (deduplicated by `installRef`, adapters earlier in the list win
557
- * conflicts). Adapters that don't support search (e.g. github-direct)
558
- * contribute nothing.
559
- */
560
- search(query: string, opts?: RegistrySearchOptions): Promise<RegistrySearchResult[]>;
561
- /**
562
- * Detect skills in an extracted repository.
563
- * Returns an array of detected skills with their files.
564
- */
565
- private detectSkills;
566
- /**
567
- * Remove all files for an installed skill.
568
- */
569
- private removeSkillFiles;
570
- /**
571
- * Invalidate the skill loader's cache so newly installed skills appear.
572
- */
573
- private invalidateLoaderCache;
574
- /**
575
- * Resolve an install ref, dispatching registry-prefixed refs to the matching
576
- * adapter. Returns the concrete `user/repo[@ref]` install ref plus provenance
577
- * (which adapter resolved it, if any).
578
- */
579
- private resolveRef;
580
- }
581
-
582
- export { DEFAULT_SKILLS_SH_URL, type DownloadResult, type ExtractedSkillDraft, FOREIGN_SKILL_TOOLS, type ForeignSkillTool, type InstallResult, type InstalledSkillEntry, type ManifestData, type ParsedRef, type ParsedSkillFrontmatter, type RegistrySearchOptions, type RegistrySearchResult, type RegistrySkillSummary, type ResolvedForeignTools, SKILL_LIMITS, SkillInstaller, type SkillInstallerOptions, SkillManifestStore, type SkillNameValidation, type SkillRegistryAdapter, type SkillSecurityTier, type SkillSkeletonOptions, type UpdateResult, bodyLineAdvisory, createSkillsShAdapter, downloadGitHubTarball, extractSkillFromPrompt, generateSkillSkeleton, githubDirectAdapter, isValidSkillNameFormat, openInEditor, parseSkillFrontmatter, parseSkillRef, resolveForeignToolIds, resolveForeignToolIdsWithWarnings, securityScoreToTier, stripFrontmatter, validateSkillName, validateSkillNameAvailable, writeSkeletonSkill };
1
+ export { FOREIGN_SKILL_TOOLS, type ForeignSkillTool, type ResolvedForeignTools, resolveForeignToolIds, resolveForeignToolIdsWithWarnings, type SkillSecurityTier, securityScoreToTier, } from './foreign-sources.js';
2
+ export { isValidSkillNameFormat, type ParsedSkillFrontmatter, parseSkillFrontmatter, stripFrontmatter, validateSkillName, } from './frontmatter.js';
3
+ export { type DownloadResult, downloadGitHubTarball, type ParsedRef, parseSkillRef, } from './github-fetcher.js';
4
+ export { SKILL_LIMITS } from './limits.js';
5
+ export { type InstalledSkillEntry, type ManifestData, SkillManifestStore, } from './manifest-store.js';
6
+ export { githubDirectAdapter } from './registry/github-direct-adapter.js';
7
+ export type { RegistrySearchOptions, RegistrySearchResult, RegistrySkillSummary, SkillRegistryAdapter, } from './registry/registry-adapter.js';
8
+ export { createSkillsShAdapter, DEFAULT_SKILLS_SH_URL } from './registry/skills-sh-adapter.js';
9
+ export { bodyLineAdvisory, type ExtractedSkillDraft, extractSkillFromPrompt, generateSkillSkeleton, openInEditor, type SkillNameValidation, type SkillSkeletonOptions, validateSkillNameAvailable, writeSkeletonSkill, } from './skill-generator.js';
10
+ export { type InstallResult, SkillInstaller, type SkillInstallerOptions, type UpdateResult, } from './skill-installer.js';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/skills/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,qBAAqB,EACrB,iCAAiC,EACjC,KAAK,iBAAiB,EACtB,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,sBAAsB,EACtB,KAAK,sBAAsB,EAC3B,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,KAAK,cAAc,EACnB,qBAAqB,EACrB,KAAK,SAAS,EACd,aAAa,GACd,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,YAAY,EACjB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAC/F,OAAO,EACL,gBAAgB,EAChB,KAAK,mBAAmB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,YAAY,EACZ,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,aAAa,EAClB,cAAc,EACd,KAAK,qBAAqB,EAC1B,KAAK,YAAY,GAClB,MAAM,sBAAsB,CAAC"}