opensquid 0.5.395

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 (1847) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +330 -0
  3. package/dist/anti-drift/evaluator.d.ts +88 -0
  4. package/dist/anti-drift/evaluator.d.ts.map +1 -0
  5. package/dist/anti-drift/evaluator.js +417 -0
  6. package/dist/anti-drift/evaluator.js.map +1 -0
  7. package/dist/anti-drift/evaluator.test.js +78 -0
  8. package/dist/anti-drift/rules.d.ts +80 -0
  9. package/dist/anti-drift/rules.d.ts.map +1 -0
  10. package/dist/anti-drift/rules.js +368 -0
  11. package/dist/anti-drift/rules.js.map +1 -0
  12. package/dist/anti-drift/rules.test.js +213 -0
  13. package/dist/anti-drift/state.d.ts +107 -0
  14. package/dist/anti-drift/state.d.ts.map +1 -0
  15. package/dist/anti-drift/state.js +177 -0
  16. package/dist/anti-drift/state.js.map +1 -0
  17. package/dist/anti-drift/state.test.js +120 -0
  18. package/dist/channels/adapters/discord.d.ts +45 -0
  19. package/dist/channels/adapters/discord.d.ts.map +1 -0
  20. package/dist/channels/adapters/discord.js +220 -0
  21. package/dist/channels/adapters/discord.js.map +1 -0
  22. package/dist/channels/adapters/slack.d.ts +63 -0
  23. package/dist/channels/adapters/slack.d.ts.map +1 -0
  24. package/dist/channels/adapters/slack.js +216 -0
  25. package/dist/channels/adapters/slack.js.map +1 -0
  26. package/dist/channels/adapters/telegram.d.ts +89 -0
  27. package/dist/channels/adapters/telegram.d.ts.map +1 -0
  28. package/dist/channels/adapters/telegram.js +400 -0
  29. package/dist/channels/adapters/telegram.js.map +1 -0
  30. package/dist/channels/adapters/webhook.d.ts +53 -0
  31. package/dist/channels/adapters/webhook.d.ts.map +1 -0
  32. package/dist/channels/adapters/webhook.js +98 -0
  33. package/dist/channels/adapters/webhook.js.map +1 -0
  34. package/dist/channels/chat.d.ts +18 -0
  35. package/dist/channels/chat.d.ts.map +1 -0
  36. package/dist/channels/chat.js +35 -0
  37. package/dist/channels/chat.js.map +1 -0
  38. package/dist/channels/config.d.ts +110 -0
  39. package/dist/channels/config.d.ts.map +1 -0
  40. package/dist/channels/config.js +223 -0
  41. package/dist/channels/config.js.map +1 -0
  42. package/dist/channels/daemon/autospawn.d.ts +64 -0
  43. package/dist/channels/daemon/autospawn.d.ts.map +1 -0
  44. package/dist/channels/daemon/autospawn.js +145 -0
  45. package/dist/channels/daemon/autospawn.js.map +1 -0
  46. package/dist/channels/daemon/cli.d.ts +38 -0
  47. package/dist/channels/daemon/cli.d.ts.map +1 -0
  48. package/dist/channels/daemon/cli.js +98 -0
  49. package/dist/channels/daemon/cli.js.map +1 -0
  50. package/dist/channels/daemon/lifecycle.d.ts +68 -0
  51. package/dist/channels/daemon/lifecycle.d.ts.map +1 -0
  52. package/dist/channels/daemon/lifecycle.js +182 -0
  53. package/dist/channels/daemon/lifecycle.js.map +1 -0
  54. package/dist/channels/daemon/protocol.d.ts +118 -0
  55. package/dist/channels/daemon/protocol.d.ts.map +1 -0
  56. package/dist/channels/daemon/protocol.js +61 -0
  57. package/dist/channels/daemon/protocol.js.map +1 -0
  58. package/dist/channels/daemon/rpc_server.d.ts +48 -0
  59. package/dist/channels/daemon/rpc_server.d.ts.map +1 -0
  60. package/dist/channels/daemon/rpc_server.js +229 -0
  61. package/dist/channels/daemon/rpc_server.js.map +1 -0
  62. package/dist/channels/daemon/worker.d.ts +48 -0
  63. package/dist/channels/daemon/worker.d.ts.map +1 -0
  64. package/dist/channels/daemon/worker.js +218 -0
  65. package/dist/channels/daemon/worker.js.map +1 -0
  66. package/dist/channels/env-token.d.ts +71 -0
  67. package/dist/channels/env-token.d.ts.map +1 -0
  68. package/dist/channels/env-token.js +150 -0
  69. package/dist/channels/env-token.js.map +1 -0
  70. package/dist/channels/factory.d.ts +52 -0
  71. package/dist/channels/factory.d.ts.map +1 -0
  72. package/dist/channels/factory.js +88 -0
  73. package/dist/channels/factory.js.map +1 -0
  74. package/dist/channels/gateway.d.ts +109 -0
  75. package/dist/channels/gateway.d.ts.map +1 -0
  76. package/dist/channels/gateway.js +142 -0
  77. package/dist/channels/gateway.js.map +1 -0
  78. package/dist/channels/inbound_router.d.ts +110 -0
  79. package/dist/channels/inbound_router.d.ts.map +1 -0
  80. package/dist/channels/inbound_router.js +182 -0
  81. package/dist/channels/inbound_router.js.map +1 -0
  82. package/dist/channels/index.d.ts +20 -0
  83. package/dist/channels/index.d.ts.map +1 -0
  84. package/dist/channels/index.js +19 -0
  85. package/dist/channels/index.js.map +1 -0
  86. package/dist/channels/migrate.d.ts +133 -0
  87. package/dist/channels/migrate.d.ts.map +1 -0
  88. package/dist/channels/migrate.js +0 -0
  89. package/dist/channels/migrate.js.map +1 -0
  90. package/dist/channels/router.d.ts +54 -0
  91. package/dist/channels/router.d.ts.map +1 -0
  92. package/dist/channels/router.js +80 -0
  93. package/dist/channels/router.js.map +1 -0
  94. package/dist/channels/routing.d.ts +281 -0
  95. package/dist/channels/routing.d.ts.map +1 -0
  96. package/dist/channels/routing.js +206 -0
  97. package/dist/channels/routing.js.map +1 -0
  98. package/dist/channels/transport_inbox.d.ts +75 -0
  99. package/dist/channels/transport_inbox.d.ts.map +1 -0
  100. package/dist/channels/transport_inbox.js +97 -0
  101. package/dist/channels/transport_inbox.js.map +1 -0
  102. package/dist/channels/types.d.ts +149 -0
  103. package/dist/channels/types.d.ts.map +1 -0
  104. package/dist/channels/types.js +10 -0
  105. package/dist/channels/types.js.map +1 -0
  106. package/dist/chat/adapters/discord.d.ts +41 -0
  107. package/dist/chat/adapters/discord.d.ts.map +1 -0
  108. package/dist/chat/adapters/discord.js +176 -0
  109. package/dist/chat/adapters/discord.js.map +1 -0
  110. package/dist/chat/adapters/discord.test.js +25 -0
  111. package/dist/chat/adapters/slack.d.ts +43 -0
  112. package/dist/chat/adapters/slack.d.ts.map +1 -0
  113. package/dist/chat/adapters/slack.js +172 -0
  114. package/dist/chat/adapters/slack.js.map +1 -0
  115. package/dist/chat/adapters/slack.test.js +30 -0
  116. package/dist/chat/adapters/telegram.d.ts +148 -0
  117. package/dist/chat/adapters/telegram.d.ts.map +1 -0
  118. package/dist/chat/adapters/telegram.js +498 -0
  119. package/dist/chat/adapters/telegram.js.map +1 -0
  120. package/dist/chat/adapters/telegram.test.js +94 -0
  121. package/dist/chat/config.d.ts +98 -0
  122. package/dist/chat/config.d.ts.map +1 -0
  123. package/dist/chat/config.js +185 -0
  124. package/dist/chat/config.js.map +1 -0
  125. package/dist/chat/daemon/active-project.d.ts +17 -0
  126. package/dist/chat/daemon/active-project.d.ts.map +1 -0
  127. package/dist/chat/daemon/active-project.js +23 -0
  128. package/dist/chat/daemon/active-project.js.map +1 -0
  129. package/dist/chat/daemon/autospawn.d.ts +40 -0
  130. package/dist/chat/daemon/autospawn.d.ts.map +1 -0
  131. package/dist/chat/daemon/autospawn.js +129 -0
  132. package/dist/chat/daemon/autospawn.js.map +1 -0
  133. package/dist/chat/daemon/autospawn.test.js +112 -0
  134. package/dist/chat/daemon/cli.d.ts +18 -0
  135. package/dist/chat/daemon/cli.d.ts.map +1 -0
  136. package/dist/chat/daemon/cli.js +71 -0
  137. package/dist/chat/daemon/cli.js.map +1 -0
  138. package/dist/chat/daemon/collisions.js +384 -0
  139. package/dist/chat/daemon/health-check.d.ts +69 -0
  140. package/dist/chat/daemon/health-check.d.ts.map +1 -0
  141. package/dist/chat/daemon/health-check.js +112 -0
  142. package/dist/chat/daemon/health-check.js.map +1 -0
  143. package/dist/chat/daemon/inbox-read.d.ts +35 -0
  144. package/dist/chat/daemon/inbox-read.d.ts.map +1 -0
  145. package/dist/chat/daemon/inbox-read.js +75 -0
  146. package/dist/chat/daemon/inbox-read.js.map +1 -0
  147. package/dist/chat/daemon/inbox-read.test.js +97 -0
  148. package/dist/chat/daemon/inbox.d.ts +63 -0
  149. package/dist/chat/daemon/inbox.d.ts.map +1 -0
  150. package/dist/chat/daemon/inbox.js +56 -0
  151. package/dist/chat/daemon/inbox.js.map +1 -0
  152. package/dist/chat/daemon/inbox.test.js +110 -0
  153. package/dist/chat/daemon/lifecycle.d.ts +71 -0
  154. package/dist/chat/daemon/lifecycle.d.ts.map +1 -0
  155. package/dist/chat/daemon/lifecycle.js +221 -0
  156. package/dist/chat/daemon/lifecycle.js.map +1 -0
  157. package/dist/chat/daemon/lifecycle.test.js +163 -0
  158. package/dist/chat/daemon/protocol.d.ts +107 -0
  159. package/dist/chat/daemon/protocol.d.ts.map +1 -0
  160. package/dist/chat/daemon/protocol.js +54 -0
  161. package/dist/chat/daemon/protocol.js.map +1 -0
  162. package/dist/chat/daemon/routing.d.ts +140 -0
  163. package/dist/chat/daemon/routing.d.ts.map +1 -0
  164. package/dist/chat/daemon/routing.js +198 -0
  165. package/dist/chat/daemon/routing.js.map +1 -0
  166. package/dist/chat/daemon/routing.test.js +259 -0
  167. package/dist/chat/daemon/rpc-client.d.ts +45 -0
  168. package/dist/chat/daemon/rpc-client.d.ts.map +1 -0
  169. package/dist/chat/daemon/rpc-client.js +133 -0
  170. package/dist/chat/daemon/rpc-client.js.map +1 -0
  171. package/dist/chat/daemon/rpc-server.d.ts +39 -0
  172. package/dist/chat/daemon/rpc-server.d.ts.map +1 -0
  173. package/dist/chat/daemon/rpc-server.js +385 -0
  174. package/dist/chat/daemon/rpc-server.js.map +1 -0
  175. package/dist/chat/daemon/rpc.test.js +177 -0
  176. package/dist/chat/daemon/subscribers.js +257 -0
  177. package/dist/chat/daemon/worker.d.ts +27 -0
  178. package/dist/chat/daemon/worker.d.ts.map +1 -0
  179. package/dist/chat/daemon/worker.js +313 -0
  180. package/dist/chat/daemon/worker.js.map +1 -0
  181. package/dist/chat/daemon/workspace-topic.js +324 -0
  182. package/dist/chat/env-token.d.ts +60 -0
  183. package/dist/chat/env-token.d.ts.map +1 -0
  184. package/dist/chat/env-token.js +137 -0
  185. package/dist/chat/env-token.js.map +1 -0
  186. package/dist/chat/env-token.test.js +160 -0
  187. package/dist/chat/factory.d.ts +30 -0
  188. package/dist/chat/factory.d.ts.map +1 -0
  189. package/dist/chat/factory.js +50 -0
  190. package/dist/chat/factory.js.map +1 -0
  191. package/dist/chat/factory.test.js +55 -0
  192. package/dist/chat/gateway.d.ts +176 -0
  193. package/dist/chat/gateway.d.ts.map +1 -0
  194. package/dist/chat/gateway.js +146 -0
  195. package/dist/chat/gateway.js.map +1 -0
  196. package/dist/chat/gateway.test.js +192 -0
  197. package/dist/chat_daemon/client.d.ts +61 -0
  198. package/dist/chat_daemon/client.d.ts.map +1 -0
  199. package/dist/chat_daemon/client.js +122 -0
  200. package/dist/chat_daemon/client.js.map +1 -0
  201. package/dist/claude-md.d.ts +39 -0
  202. package/dist/claude-md.d.ts.map +1 -0
  203. package/dist/claude-md.js +113 -0
  204. package/dist/claude-md.js.map +1 -0
  205. package/dist/claude-md.test.js +91 -0
  206. package/dist/cli/pack.d.ts +14 -0
  207. package/dist/cli/pack.d.ts.map +1 -0
  208. package/dist/cli/pack.js +232 -0
  209. package/dist/cli/pack.js.map +1 -0
  210. package/dist/cli.d.ts +18 -0
  211. package/dist/cli.d.ts.map +1 -0
  212. package/dist/cli.js +317 -0
  213. package/dist/cli.js.map +1 -0
  214. package/dist/codex/activate.d.ts +66 -0
  215. package/dist/codex/activate.d.ts.map +1 -0
  216. package/dist/codex/activate.js +329 -0
  217. package/dist/codex/activate.js.map +1 -0
  218. package/dist/codex/activate.test.js +229 -0
  219. package/dist/codex/bundled-default/bundled-default.test.js +161 -0
  220. package/dist/codex/cli-publish.test.js +133 -0
  221. package/dist/codex/cli.d.ts +35 -0
  222. package/dist/codex/cli.d.ts.map +1 -0
  223. package/dist/codex/cli.js +554 -0
  224. package/dist/codex/cli.js.map +1 -0
  225. package/dist/codex/cli.test.js +277 -0
  226. package/dist/codex/import-skill-md.d.ts +53 -0
  227. package/dist/codex/import-skill-md.d.ts.map +1 -0
  228. package/dist/codex/import-skill-md.js +236 -0
  229. package/dist/codex/import-skill-md.js.map +1 -0
  230. package/dist/codex/import-skill-md.test.js +225 -0
  231. package/dist/codex/loader.d.ts +27 -0
  232. package/dist/codex/loader.d.ts.map +1 -0
  233. package/dist/codex/loader.js +86 -0
  234. package/dist/codex/loader.js.map +1 -0
  235. package/dist/codex/loader.test.js +75 -0
  236. package/dist/codex/parse.d.ts +28 -0
  237. package/dist/codex/parse.d.ts.map +1 -0
  238. package/dist/codex/parse.js +309 -0
  239. package/dist/codex/parse.js.map +1 -0
  240. package/dist/codex/parse.test.js +241 -0
  241. package/dist/codex/store.d.ts +87 -0
  242. package/dist/codex/store.d.ts.map +1 -0
  243. package/dist/codex/store.js +205 -0
  244. package/dist/codex/store.js.map +1 -0
  245. package/dist/codex/store.test.js +242 -0
  246. package/dist/codex/types.d.ts +398 -0
  247. package/dist/codex/types.d.ts.map +1 -0
  248. package/dist/codex/types.js +21 -0
  249. package/dist/codex/types.js.map +1 -0
  250. package/dist/config.d.ts +53 -0
  251. package/dist/config.d.ts.map +1 -0
  252. package/dist/config.js +202 -0
  253. package/dist/config.js.map +1 -0
  254. package/dist/config.test.js +117 -0
  255. package/dist/engine/cli.d.ts +14 -0
  256. package/dist/engine/cli.d.ts.map +1 -0
  257. package/dist/engine/cli.js +171 -0
  258. package/dist/engine/cli.js.map +1 -0
  259. package/dist/engine/client.d.ts +219 -0
  260. package/dist/engine/client.d.ts.map +1 -0
  261. package/dist/engine/client.js +312 -0
  262. package/dist/engine/client.js.map +1 -0
  263. package/dist/engine/config.d.ts +62 -0
  264. package/dist/engine/config.d.ts.map +1 -0
  265. package/dist/engine/config.js +223 -0
  266. package/dist/engine/config.js.map +1 -0
  267. package/dist/engine/index.d.ts +17 -0
  268. package/dist/engine/index.d.ts.map +1 -0
  269. package/dist/engine/index.js +16 -0
  270. package/dist/engine/index.js.map +1 -0
  271. package/dist/engine/resolver.d.ts +62 -0
  272. package/dist/engine/resolver.d.ts.map +1 -0
  273. package/dist/engine/resolver.js +103 -0
  274. package/dist/engine/resolver.js.map +1 -0
  275. package/dist/engine/singleton.d.ts +95 -0
  276. package/dist/engine/singleton.d.ts.map +1 -0
  277. package/dist/engine/singleton.js +325 -0
  278. package/dist/engine/singleton.js.map +1 -0
  279. package/dist/engine/types.d.ts +402 -0
  280. package/dist/engine/types.d.ts.map +1 -0
  281. package/dist/engine/types.js +22 -0
  282. package/dist/engine/types.js.map +1 -0
  283. package/dist/engine-binary-resolver.js +110 -0
  284. package/dist/engine-binary-resolver.test.js +61 -0
  285. package/dist/engine-cli.js +60 -0
  286. package/dist/engine-client.js +301 -0
  287. package/dist/engine-client.test.js +118 -0
  288. package/dist/functions/active_task.d.ts +90 -0
  289. package/dist/functions/active_task.d.ts.map +1 -0
  290. package/dist/functions/active_task.js +203 -0
  291. package/dist/functions/active_task.js.map +1 -0
  292. package/dist/functions/cached_audit.d.ts +33 -0
  293. package/dist/functions/cached_audit.d.ts.map +1 -0
  294. package/dist/functions/cached_audit.js +143 -0
  295. package/dist/functions/cached_audit.js.map +1 -0
  296. package/dist/functions/chain_state.d.ts +51 -0
  297. package/dist/functions/chain_state.d.ts.map +1 -0
  298. package/dist/functions/chain_state.js +59 -0
  299. package/dist/functions/chain_state.js.map +1 -0
  300. package/dist/functions/chat_watcher_autostart.d.ts +33 -0
  301. package/dist/functions/chat_watcher_autostart.d.ts.map +1 -0
  302. package/dist/functions/chat_watcher_autostart.js +59 -0
  303. package/dist/functions/chat_watcher_autostart.js.map +1 -0
  304. package/dist/functions/check_chat_connection.d.ts +49 -0
  305. package/dist/functions/check_chat_connection.d.ts.map +1 -0
  306. package/dist/functions/check_chat_connection.js +124 -0
  307. package/dist/functions/check_chat_connection.js.map +1 -0
  308. package/dist/functions/check_flow_health.d.ts +43 -0
  309. package/dist/functions/check_flow_health.d.ts.map +1 -0
  310. package/dist/functions/check_flow_health.js +93 -0
  311. package/dist/functions/check_flow_health.js.map +1 -0
  312. package/dist/functions/destination_check.d.ts +49 -0
  313. package/dist/functions/destination_check.d.ts.map +1 -0
  314. package/dist/functions/destination_check.js +136 -0
  315. package/dist/functions/destination_check.js.map +1 -0
  316. package/dist/functions/effective_content.d.ts +31 -0
  317. package/dist/functions/effective_content.d.ts.map +1 -0
  318. package/dist/functions/effective_content.js +74 -0
  319. package/dist/functions/effective_content.js.map +1 -0
  320. package/dist/functions/ensure_umbrella_topic.d.ts +66 -0
  321. package/dist/functions/ensure_umbrella_topic.d.ts.map +1 -0
  322. package/dist/functions/ensure_umbrella_topic.js +148 -0
  323. package/dist/functions/ensure_umbrella_topic.js.map +1 -0
  324. package/dist/functions/event.d.ts +34 -0
  325. package/dist/functions/event.d.ts.map +1 -0
  326. package/dist/functions/event.js +164 -0
  327. package/dist/functions/event.js.map +1 -0
  328. package/dist/functions/file_write.d.ts +35 -0
  329. package/dist/functions/file_write.d.ts.map +1 -0
  330. package/dist/functions/file_write.js +86 -0
  331. package/dist/functions/file_write.js.map +1 -0
  332. package/dist/functions/fsm.d.ts +3 -0
  333. package/dist/functions/fsm.d.ts.map +1 -0
  334. package/dist/functions/fsm.js +62 -0
  335. package/dist/functions/fsm.js.map +1 -0
  336. package/dist/functions/handoff_session_start.d.ts +26 -0
  337. package/dist/functions/handoff_session_start.d.ts.map +1 -0
  338. package/dist/functions/handoff_session_start.js +81 -0
  339. package/dist/functions/handoff_session_start.js.map +1 -0
  340. package/dist/functions/http_request.d.ts +23 -0
  341. package/dist/functions/http_request.d.ts.map +1 -0
  342. package/dist/functions/http_request.js +59 -0
  343. package/dist/functions/http_request.js.map +1 -0
  344. package/dist/functions/index.d.ts +24 -0
  345. package/dist/functions/index.d.ts.map +1 -0
  346. package/dist/functions/index.js +28 -0
  347. package/dist/functions/index.js.map +1 -0
  348. package/dist/functions/is_automation_mode.d.ts +42 -0
  349. package/dist/functions/is_automation_mode.d.ts.map +1 -0
  350. package/dist/functions/is_automation_mode.js +53 -0
  351. package/dist/functions/is_automation_mode.js.map +1 -0
  352. package/dist/functions/lessons.d.ts +84 -0
  353. package/dist/functions/lessons.d.ts.map +1 -0
  354. package/dist/functions/lessons.js +241 -0
  355. package/dist/functions/lessons.js.map +1 -0
  356. package/dist/functions/llm.d.ts +44 -0
  357. package/dist/functions/llm.d.ts.map +1 -0
  358. package/dist/functions/llm.js +160 -0
  359. package/dist/functions/llm.js.map +1 -0
  360. package/dist/functions/path_exists.d.ts +60 -0
  361. package/dist/functions/path_exists.d.ts.map +1 -0
  362. package/dist/functions/path_exists.js +129 -0
  363. package/dist/functions/path_exists.js.map +1 -0
  364. package/dist/functions/rag.d.ts +39 -0
  365. package/dist/functions/rag.d.ts.map +1 -0
  366. package/dist/functions/rag.js +142 -0
  367. package/dist/functions/rag.js.map +1 -0
  368. package/dist/functions/recall_pre_inject.d.ts +40 -0
  369. package/dist/functions/recall_pre_inject.d.ts.map +1 -0
  370. package/dist/functions/recall_pre_inject.js +180 -0
  371. package/dist/functions/recall_pre_inject.js.map +1 -0
  372. package/dist/functions/registry.d.ts +90 -0
  373. package/dist/functions/registry.d.ts.map +1 -0
  374. package/dist/functions/registry.js +90 -0
  375. package/dist/functions/registry.js.map +1 -0
  376. package/dist/functions/scope_dwell.d.ts +33 -0
  377. package/dist/functions/scope_dwell.d.ts.map +1 -0
  378. package/dist/functions/scope_dwell.js +76 -0
  379. package/dist/functions/scope_dwell.js.map +1 -0
  380. package/dist/functions/session_status_manifest.d.ts +47 -0
  381. package/dist/functions/session_status_manifest.d.ts.map +1 -0
  382. package/dist/functions/session_status_manifest.js +148 -0
  383. package/dist/functions/session_status_manifest.js.map +1 -0
  384. package/dist/functions/session_tool_history.d.ts +46 -0
  385. package/dist/functions/session_tool_history.d.ts.map +1 -0
  386. package/dist/functions/session_tool_history.js +52 -0
  387. package/dist/functions/session_tool_history.js.map +1 -0
  388. package/dist/functions/shell_exec.d.ts +23 -0
  389. package/dist/functions/shell_exec.d.ts.map +1 -0
  390. package/dist/functions/shell_exec.js +58 -0
  391. package/dist/functions/shell_exec.js.map +1 -0
  392. package/dist/functions/state.d.ts +29 -0
  393. package/dist/functions/state.d.ts.map +1 -0
  394. package/dist/functions/state.js +165 -0
  395. package/dist/functions/state.js.map +1 -0
  396. package/dist/functions/subagent.d.ts +107 -0
  397. package/dist/functions/subagent.d.ts.map +1 -0
  398. package/dist/functions/subagent.js +202 -0
  399. package/dist/functions/subagent.js.map +1 -0
  400. package/dist/functions/text_pattern_match.d.ts +54 -0
  401. package/dist/functions/text_pattern_match.d.ts.map +1 -0
  402. package/dist/functions/text_pattern_match.js +89 -0
  403. package/dist/functions/text_pattern_match.js.map +1 -0
  404. package/dist/functions/verdict.d.ts +39 -0
  405. package/dist/functions/verdict.d.ts.map +1 -0
  406. package/dist/functions/verdict.js +105 -0
  407. package/dist/functions/verdict.js.map +1 -0
  408. package/dist/hooks/drift-catalog.d.ts +68 -0
  409. package/dist/hooks/drift-catalog.d.ts.map +1 -0
  410. package/dist/hooks/drift-catalog.js +184 -0
  411. package/dist/hooks/drift-catalog.js.map +1 -0
  412. package/dist/hooks/drift-catalog.test.js +154 -0
  413. package/dist/hooks/drift-patterns.d.ts +110 -0
  414. package/dist/hooks/drift-patterns.d.ts.map +1 -0
  415. package/dist/hooks/drift-patterns.js +289 -0
  416. package/dist/hooks/drift-patterns.js.map +1 -0
  417. package/dist/hooks/drift-patterns.test.js +325 -0
  418. package/dist/hooks/engine-vocab-gate.d.ts +108 -0
  419. package/dist/hooks/engine-vocab-gate.d.ts.map +1 -0
  420. package/dist/hooks/engine-vocab-gate.js +225 -0
  421. package/dist/hooks/engine-vocab-gate.js.map +1 -0
  422. package/dist/hooks/engine-vocab-gate.test.js +170 -0
  423. package/dist/hooks/heartbeat.d.ts +107 -0
  424. package/dist/hooks/heartbeat.d.ts.map +1 -0
  425. package/dist/hooks/heartbeat.js +316 -0
  426. package/dist/hooks/heartbeat.js.map +1 -0
  427. package/dist/hooks/heartbeat.test.js +393 -0
  428. package/dist/hooks/honesty-ledger-session-scope.test.js +100 -0
  429. package/dist/hooks/honesty-ledger.d.ts +123 -0
  430. package/dist/hooks/honesty-ledger.d.ts.map +1 -0
  431. package/dist/hooks/honesty-ledger.js +226 -0
  432. package/dist/hooks/honesty-ledger.js.map +1 -0
  433. package/dist/hooks/honesty-ledger.test.js +466 -0
  434. package/dist/hooks/inline-report-check.d.ts +63 -0
  435. package/dist/hooks/inline-report-check.d.ts.map +1 -0
  436. package/dist/hooks/inline-report-check.js +88 -0
  437. package/dist/hooks/inline-report-check.js.map +1 -0
  438. package/dist/hooks/inline-report-check.test.js +96 -0
  439. package/dist/hooks/pre-tool-use.d.ts +62 -0
  440. package/dist/hooks/pre-tool-use.d.ts.map +1 -0
  441. package/dist/hooks/pre-tool-use.js +342 -0
  442. package/dist/hooks/pre-tool-use.js.map +1 -0
  443. package/dist/hooks/pre-tool-use.test.js +134 -0
  444. package/dist/hooks/session-end.d.ts +15 -0
  445. package/dist/hooks/session-end.d.ts.map +1 -0
  446. package/dist/hooks/session-end.js +60 -0
  447. package/dist/hooks/session-end.js.map +1 -0
  448. package/dist/hooks/session-end.test.js +52 -0
  449. package/dist/hooks/stop.d.ts +35 -0
  450. package/dist/hooks/stop.d.ts.map +1 -0
  451. package/dist/hooks/stop.js +136 -0
  452. package/dist/hooks/stop.js.map +1 -0
  453. package/dist/hooks/transcript-active-task.test.js +342 -0
  454. package/dist/hooks/transcript.d.ts +26 -0
  455. package/dist/hooks/transcript.d.ts.map +1 -0
  456. package/dist/hooks/transcript.js +266 -0
  457. package/dist/hooks/transcript.js.map +1 -0
  458. package/dist/hooks/transcript.test.js +103 -0
  459. package/dist/hooks/user-prompt-submit.d.ts +74 -0
  460. package/dist/hooks/user-prompt-submit.d.ts.map +1 -0
  461. package/dist/hooks/user-prompt-submit.js +256 -0
  462. package/dist/hooks/user-prompt-submit.js.map +1 -0
  463. package/dist/hooks/user-prompt-submit.test.js +118 -0
  464. package/dist/hooks/versioning-gate.d.ts +101 -0
  465. package/dist/hooks/versioning-gate.d.ts.map +1 -0
  466. package/dist/hooks/versioning-gate.js +245 -0
  467. package/dist/hooks/versioning-gate.js.map +1 -0
  468. package/dist/hooks/versioning-gate.test.js +368 -0
  469. package/dist/hooks/workflow-gate.d.ts +64 -0
  470. package/dist/hooks/workflow-gate.d.ts.map +1 -0
  471. package/dist/hooks/workflow-gate.js +152 -0
  472. package/dist/hooks/workflow-gate.js.map +1 -0
  473. package/dist/hooks/workflow-gate.test.js +197 -0
  474. package/dist/hooks-cli.d.ts +25 -0
  475. package/dist/hooks-cli.d.ts.map +1 -0
  476. package/dist/hooks-cli.js +286 -0
  477. package/dist/hooks-cli.js.map +1 -0
  478. package/dist/hooks-cli.test.js +148 -0
  479. package/dist/index.d.ts +7 -0
  480. package/dist/index.d.ts.map +1 -0
  481. package/dist/index.js +7 -0
  482. package/dist/index.js.map +1 -0
  483. package/dist/mcp/anchor.d.ts +20 -0
  484. package/dist/mcp/anchor.d.ts.map +1 -0
  485. package/dist/mcp/anchor.js +25 -0
  486. package/dist/mcp/anchor.js.map +1 -0
  487. package/dist/mcp/chat-bridge-server.d.ts +45 -0
  488. package/dist/mcp/chat-bridge-server.d.ts.map +1 -0
  489. package/dist/mcp/chat-bridge-server.js +475 -0
  490. package/dist/mcp/chat-bridge-server.js.map +1 -0
  491. package/dist/mcp/chat_bridge_subscriber.d.ts +101 -0
  492. package/dist/mcp/chat_bridge_subscriber.d.ts.map +1 -0
  493. package/dist/mcp/chat_bridge_subscriber.js +227 -0
  494. package/dist/mcp/chat_bridge_subscriber.js.map +1 -0
  495. package/dist/mcp/index.d.ts +21 -0
  496. package/dist/mcp/index.d.ts.map +1 -0
  497. package/dist/mcp/index.js +18 -0
  498. package/dist/mcp/index.js.map +1 -0
  499. package/dist/mcp/server.d.ts +39 -0
  500. package/dist/mcp/server.d.ts.map +1 -0
  501. package/dist/mcp/server.js +298 -0
  502. package/dist/mcp/server.js.map +1 -0
  503. package/dist/mcp/tools/forget.d.ts +45 -0
  504. package/dist/mcp/tools/forget.d.ts.map +1 -0
  505. package/dist/mcp/tools/forget.js +45 -0
  506. package/dist/mcp/tools/forget.js.map +1 -0
  507. package/dist/mcp/tools/inspect-skill.d.ts +28 -0
  508. package/dist/mcp/tools/inspect-skill.d.ts.map +1 -0
  509. package/dist/mcp/tools/inspect-skill.js +70 -0
  510. package/dist/mcp/tools/inspect-skill.js.map +1 -0
  511. package/dist/mcp/tools/list-drift-events.d.ts +27 -0
  512. package/dist/mcp/tools/list-drift-events.d.ts.map +1 -0
  513. package/dist/mcp/tools/list-drift-events.js +38 -0
  514. package/dist/mcp/tools/list-drift-events.js.map +1 -0
  515. package/dist/mcp/tools/list-packs.d.ts +18 -0
  516. package/dist/mcp/tools/list-packs.d.ts.map +1 -0
  517. package/dist/mcp/tools/list-packs.js +29 -0
  518. package/dist/mcp/tools/list-packs.js.map +1 -0
  519. package/dist/mcp/tools/list-skills.d.ts +22 -0
  520. package/dist/mcp/tools/list-skills.d.ts.map +1 -0
  521. package/dist/mcp/tools/list-skills.js +42 -0
  522. package/dist/mcp/tools/list-skills.js.map +1 -0
  523. package/dist/mcp/tools/log_phase.d.ts +49 -0
  524. package/dist/mcp/tools/log_phase.d.ts.map +1 -0
  525. package/dist/mcp/tools/log_phase.js +67 -0
  526. package/dist/mcp/tools/log_phase.js.map +1 -0
  527. package/dist/mcp/tools/memorize.d.ts +79 -0
  528. package/dist/mcp/tools/memorize.d.ts.map +1 -0
  529. package/dist/mcp/tools/memorize.js +133 -0
  530. package/dist/mcp/tools/memorize.js.map +1 -0
  531. package/dist/mcp/tools/read-state.d.ts +24 -0
  532. package/dist/mcp/tools/read-state.d.ts.map +1 -0
  533. package/dist/mcp/tools/read-state.js +41 -0
  534. package/dist/mcp/tools/read-state.js.map +1 -0
  535. package/dist/mcp/tools/read-violations.d.ts +19 -0
  536. package/dist/mcp/tools/read-violations.d.ts.map +1 -0
  537. package/dist/mcp/tools/read-violations.js +36 -0
  538. package/dist/mcp/tools/read-violations.js.map +1 -0
  539. package/dist/mcp/tools/recall.d.ts +39 -0
  540. package/dist/mcp/tools/recall.d.ts.map +1 -0
  541. package/dist/mcp/tools/recall.js +54 -0
  542. package/dist/mcp/tools/recall.js.map +1 -0
  543. package/dist/mcp/tools/store-lesson.d.ts +49 -0
  544. package/dist/mcp/tools/store-lesson.d.ts.map +1 -0
  545. package/dist/mcp/tools/store-lesson.js +53 -0
  546. package/dist/mcp/tools/store-lesson.js.map +1 -0
  547. package/dist/mcp/tools/workgraph.d.ts +74 -0
  548. package/dist/mcp/tools/workgraph.d.ts.map +1 -0
  549. package/dist/mcp/tools/workgraph.js +43 -0
  550. package/dist/mcp/tools/workgraph.js.map +1 -0
  551. package/dist/models/cost_router.d.ts +116 -0
  552. package/dist/models/cost_router.d.ts.map +1 -0
  553. package/dist/models/cost_router.js +127 -0
  554. package/dist/models/cost_router.js.map +1 -0
  555. package/dist/models/dispatcher.d.ts +38 -0
  556. package/dist/models/dispatcher.d.ts.map +1 -0
  557. package/dist/models/dispatcher.js +76 -0
  558. package/dist/models/dispatcher.js.map +1 -0
  559. package/dist/models/index.d.ts +12 -0
  560. package/dist/models/index.d.ts.map +1 -0
  561. package/dist/models/index.js +5 -0
  562. package/dist/models/index.js.map +1 -0
  563. package/dist/models/load_config.d.ts +51 -0
  564. package/dist/models/load_config.d.ts.map +1 -0
  565. package/dist/models/load_config.js +99 -0
  566. package/dist/models/load_config.js.map +1 -0
  567. package/dist/models/strategies/_stub.d.ts +23 -0
  568. package/dist/models/strategies/_stub.d.ts.map +1 -0
  569. package/dist/models/strategies/_stub.js +30 -0
  570. package/dist/models/strategies/_stub.js.map +1 -0
  571. package/dist/models/strategies/api_anthropic.d.ts +68 -0
  572. package/dist/models/strategies/api_anthropic.d.ts.map +1 -0
  573. package/dist/models/strategies/api_anthropic.js +99 -0
  574. package/dist/models/strategies/api_anthropic.js.map +1 -0
  575. package/dist/models/strategies/api_openai.d.ts +57 -0
  576. package/dist/models/strategies/api_openai.d.ts.map +1 -0
  577. package/dist/models/strategies/api_openai.js +83 -0
  578. package/dist/models/strategies/api_openai.js.map +1 -0
  579. package/dist/models/strategies/local_ollama.d.ts +41 -0
  580. package/dist/models/strategies/local_ollama.d.ts.map +1 -0
  581. package/dist/models/strategies/local_ollama.js +60 -0
  582. package/dist/models/strategies/local_ollama.js.map +1 -0
  583. package/dist/models/strategies/mcp.d.ts +65 -0
  584. package/dist/models/strategies/mcp.d.ts.map +1 -0
  585. package/dist/models/strategies/mcp.js +86 -0
  586. package/dist/models/strategies/mcp.js.map +1 -0
  587. package/dist/models/strategies/subscription_cli.d.ts +48 -0
  588. package/dist/models/strategies/subscription_cli.d.ts.map +1 -0
  589. package/dist/models/strategies/subscription_cli.js +122 -0
  590. package/dist/models/strategies/subscription_cli.js.map +1 -0
  591. package/dist/models/strategies/subscription_sdk.d.ts +50 -0
  592. package/dist/models/strategies/subscription_sdk.d.ts.map +1 -0
  593. package/dist/models/strategies/subscription_sdk.js +65 -0
  594. package/dist/models/strategies/subscription_sdk.js.map +1 -0
  595. package/dist/models/types.d.ts +42 -0
  596. package/dist/models/types.d.ts.map +1 -0
  597. package/dist/models/types.js +23 -0
  598. package/dist/models/types.js.map +1 -0
  599. package/dist/origin.d.ts +16 -0
  600. package/dist/origin.d.ts.map +1 -0
  601. package/dist/origin.js +92 -0
  602. package/dist/origin.js.map +1 -0
  603. package/dist/packs/apply_extends.d.ts +47 -0
  604. package/dist/packs/apply_extends.d.ts.map +1 -0
  605. package/dist/packs/apply_extends.js +96 -0
  606. package/dist/packs/apply_extends.js.map +1 -0
  607. package/dist/packs/composite_resolver.d.ts +14 -0
  608. package/dist/packs/composite_resolver.d.ts.map +1 -0
  609. package/dist/packs/composite_resolver.js +131 -0
  610. package/dist/packs/composite_resolver.js.map +1 -0
  611. package/dist/packs/discovery.d.ts +98 -0
  612. package/dist/packs/discovery.d.ts.map +1 -0
  613. package/dist/packs/discovery.js +255 -0
  614. package/dist/packs/discovery.js.map +1 -0
  615. package/dist/packs/flows_compiler.d.ts +37 -0
  616. package/dist/packs/flows_compiler.d.ts.map +1 -0
  617. package/dist/packs/flows_compiler.js +55 -0
  618. package/dist/packs/flows_compiler.js.map +1 -0
  619. package/dist/packs/guards_compiler.d.ts +51 -0
  620. package/dist/packs/guards_compiler.d.ts.map +1 -0
  621. package/dist/packs/guards_compiler.js +56 -0
  622. package/dist/packs/guards_compiler.js.map +1 -0
  623. package/dist/packs/index.d.ts +18 -0
  624. package/dist/packs/index.d.ts.map +1 -0
  625. package/dist/packs/index.js +33 -0
  626. package/dist/packs/index.js.map +1 -0
  627. package/dist/packs/living_pack.d.ts +17 -0
  628. package/dist/packs/living_pack.d.ts.map +1 -0
  629. package/dist/packs/living_pack.js +41 -0
  630. package/dist/packs/living_pack.js.map +1 -0
  631. package/dist/packs/load_order.d.ts +32 -0
  632. package/dist/packs/load_order.d.ts.map +1 -0
  633. package/dist/packs/load_order.js +51 -0
  634. package/dist/packs/load_order.js.map +1 -0
  635. package/dist/packs/loader.d.ts +48 -0
  636. package/dist/packs/loader.d.ts.map +1 -0
  637. package/dist/packs/loader.js +357 -0
  638. package/dist/packs/loader.js.map +1 -0
  639. package/dist/packs/personal_revision.d.ts +82 -0
  640. package/dist/packs/personal_revision.d.ts.map +1 -0
  641. package/dist/packs/personal_revision.js +158 -0
  642. package/dist/packs/personal_revision.js.map +1 -0
  643. package/dist/packs/schemas/channels.d.ts +30 -0
  644. package/dist/packs/schemas/channels.d.ts.map +1 -0
  645. package/dist/packs/schemas/channels.js +44 -0
  646. package/dist/packs/schemas/channels.js.map +1 -0
  647. package/dist/packs/schemas/chat_agent.d.ts +78 -0
  648. package/dist/packs/schemas/chat_agent.d.ts.map +1 -0
  649. package/dist/packs/schemas/chat_agent.js +88 -0
  650. package/dist/packs/schemas/chat_agent.js.map +1 -0
  651. package/dist/packs/schemas/drift_response.d.ts +47 -0
  652. package/dist/packs/schemas/drift_response.d.ts.map +1 -0
  653. package/dist/packs/schemas/drift_response.js +65 -0
  654. package/dist/packs/schemas/drift_response.js.map +1 -0
  655. package/dist/packs/schemas/index.d.ts +39 -0
  656. package/dist/packs/schemas/index.d.ts.map +1 -0
  657. package/dist/packs/schemas/index.js +39 -0
  658. package/dist/packs/schemas/index.js.map +1 -0
  659. package/dist/packs/schemas/manifest.d.ts +1907 -0
  660. package/dist/packs/schemas/manifest.d.ts.map +1 -0
  661. package/dist/packs/schemas/manifest.js +532 -0
  662. package/dist/packs/schemas/manifest.js.map +1 -0
  663. package/dist/packs/schemas/models.d.ts +108 -0
  664. package/dist/packs/schemas/models.d.ts.map +1 -0
  665. package/dist/packs/schemas/models.js +67 -0
  666. package/dist/packs/schemas/models.js.map +1 -0
  667. package/dist/packs/schemas/notifications.d.ts +44 -0
  668. package/dist/packs/schemas/notifications.d.ts.map +1 -0
  669. package/dist/packs/schemas/notifications.js +66 -0
  670. package/dist/packs/schemas/notifications.js.map +1 -0
  671. package/dist/packs/schemas/skill.d.ts +740 -0
  672. package/dist/packs/schemas/skill.d.ts.map +1 -0
  673. package/dist/packs/schemas/skill.js +292 -0
  674. package/dist/packs/schemas/skill.js.map +1 -0
  675. package/dist/packs/schemas/team.d.ts +99 -0
  676. package/dist/packs/schemas/team.d.ts.map +1 -0
  677. package/dist/packs/schemas/team.js +63 -0
  678. package/dist/packs/schemas/team.js.map +1 -0
  679. package/dist/packs/seed_lessons_ingest.d.ts +30 -0
  680. package/dist/packs/seed_lessons_ingest.d.ts.map +1 -0
  681. package/dist/packs/seed_lessons_ingest.js +107 -0
  682. package/dist/packs/seed_lessons_ingest.js.map +1 -0
  683. package/dist/packs/validate_functions.d.ts +26 -0
  684. package/dist/packs/validate_functions.d.ts.map +1 -0
  685. package/dist/packs/validate_functions.js +91 -0
  686. package/dist/packs/validate_functions.js.map +1 -0
  687. package/dist/packs/validate_uniqueness.d.ts +16 -0
  688. package/dist/packs/validate_uniqueness.d.ts.map +1 -0
  689. package/dist/packs/validate_uniqueness.js +33 -0
  690. package/dist/packs/validate_uniqueness.js.map +1 -0
  691. package/dist/packs/verify_gates_compiler.d.ts +47 -0
  692. package/dist/packs/verify_gates_compiler.d.ts.map +1 -0
  693. package/dist/packs/verify_gates_compiler.js +59 -0
  694. package/dist/packs/verify_gates_compiler.js.map +1 -0
  695. package/dist/packs/yaml.d.ts +39 -0
  696. package/dist/packs/yaml.d.ts.map +1 -0
  697. package/dist/packs/yaml.js +79 -0
  698. package/dist/packs/yaml.js.map +1 -0
  699. package/dist/project-cli.d.ts +7 -0
  700. package/dist/project-cli.d.ts.map +1 -0
  701. package/dist/project-cli.js +145 -0
  702. package/dist/project-cli.js.map +1 -0
  703. package/dist/project.d.ts +127 -0
  704. package/dist/project.d.ts.map +1 -0
  705. package/dist/project.js +281 -0
  706. package/dist/project.js.map +1 -0
  707. package/dist/project.test.js +287 -0
  708. package/dist/rag/backend_factory.d.ts +59 -0
  709. package/dist/rag/backend_factory.d.ts.map +1 -0
  710. package/dist/rag/backend_factory.js +125 -0
  711. package/dist/rag/backend_factory.js.map +1 -0
  712. package/dist/rag/backends/claude_auto_memory.d.ts +46 -0
  713. package/dist/rag/backends/claude_auto_memory.d.ts.map +1 -0
  714. package/dist/rag/backends/claude_auto_memory.js +152 -0
  715. package/dist/rag/backends/claude_auto_memory.js.map +1 -0
  716. package/dist/rag/backends/libsql_lexical.d.ts +33 -0
  717. package/dist/rag/backends/libsql_lexical.d.ts.map +1 -0
  718. package/dist/rag/backends/libsql_lexical.js +164 -0
  719. package/dist/rag/backends/libsql_lexical.js.map +1 -0
  720. package/dist/rag/backends/libsql_qwen3.d.ts +8 -0
  721. package/dist/rag/backends/libsql_qwen3.d.ts.map +1 -0
  722. package/dist/rag/backends/libsql_qwen3.js +23 -0
  723. package/dist/rag/backends/libsql_qwen3.js.map +1 -0
  724. package/dist/rag/backends/libsql_store.d.ts +28 -0
  725. package/dist/rag/backends/libsql_store.d.ts.map +1 -0
  726. package/dist/rag/backends/libsql_store.js +246 -0
  727. package/dist/rag/backends/libsql_store.js.map +1 -0
  728. package/dist/rag/backends/loop_engine.d.ts +61 -0
  729. package/dist/rag/backends/loop_engine.d.ts.map +1 -0
  730. package/dist/rag/backends/loop_engine.js +160 -0
  731. package/dist/rag/backends/loop_engine.js.map +1 -0
  732. package/dist/rag/backends/perfile_source.d.ts +8 -0
  733. package/dist/rag/backends/perfile_source.d.ts.map +1 -0
  734. package/dist/rag/backends/perfile_source.js +78 -0
  735. package/dist/rag/backends/perfile_source.js.map +1 -0
  736. package/dist/rag/config.d.ts +38 -0
  737. package/dist/rag/config.d.ts.map +1 -0
  738. package/dist/rag/config.js +127 -0
  739. package/dist/rag/config.js.map +1 -0
  740. package/dist/rag/embedders/fastembed.d.ts +3 -0
  741. package/dist/rag/embedders/fastembed.d.ts.map +1 -0
  742. package/dist/rag/embedders/fastembed.js +51 -0
  743. package/dist/rag/embedders/fastembed.js.map +1 -0
  744. package/dist/rag/embedders/ollama_qwen3.d.ts +6 -0
  745. package/dist/rag/embedders/ollama_qwen3.d.ts.map +1 -0
  746. package/dist/rag/embedders/ollama_qwen3.js +30 -0
  747. package/dist/rag/embedders/ollama_qwen3.js.map +1 -0
  748. package/dist/rag/embedders/types.d.ts +20 -0
  749. package/dist/rag/embedders/types.d.ts.map +1 -0
  750. package/dist/rag/embedders/types.js +2 -0
  751. package/dist/rag/embedders/types.js.map +1 -0
  752. package/dist/rag/index.d.ts +18 -0
  753. package/dist/rag/index.d.ts.map +1 -0
  754. package/dist/rag/index.js +16 -0
  755. package/dist/rag/index.js.map +1 -0
  756. package/dist/rag/memory/compress.d.ts +36 -0
  757. package/dist/rag/memory/compress.d.ts.map +1 -0
  758. package/dist/rag/memory/compress.js +158 -0
  759. package/dist/rag/memory/compress.js.map +1 -0
  760. package/dist/rag/memory/consolidate.d.ts +32 -0
  761. package/dist/rag/memory/consolidate.d.ts.map +1 -0
  762. package/dist/rag/memory/consolidate.js +77 -0
  763. package/dist/rag/memory/consolidate.js.map +1 -0
  764. package/dist/rag/memory/cycle.d.ts +24 -0
  765. package/dist/rag/memory/cycle.d.ts.map +1 -0
  766. package/dist/rag/memory/cycle.js +50 -0
  767. package/dist/rag/memory/cycle.js.map +1 -0
  768. package/dist/rag/memory/store.d.ts +48 -0
  769. package/dist/rag/memory/store.d.ts.map +1 -0
  770. package/dist/rag/memory/store.js +126 -0
  771. package/dist/rag/memory/store.js.map +1 -0
  772. package/dist/rag/migrate_memories.d.ts +22 -0
  773. package/dist/rag/migrate_memories.d.ts.map +1 -0
  774. package/dist/rag/migrate_memories.js +53 -0
  775. package/dist/rag/migrate_memories.js.map +1 -0
  776. package/dist/rag/ollama_client.d.ts +28 -0
  777. package/dist/rag/ollama_client.d.ts.map +1 -0
  778. package/dist/rag/ollama_client.js +43 -0
  779. package/dist/rag/ollama_client.js.map +1 -0
  780. package/dist/rag/rrf.d.ts +20 -0
  781. package/dist/rag/rrf.d.ts.map +1 -0
  782. package/dist/rag/rrf.js +37 -0
  783. package/dist/rag/rrf.js.map +1 -0
  784. package/dist/rag/scope.d.ts +10 -0
  785. package/dist/rag/scope.d.ts.map +1 -0
  786. package/dist/rag/scope.js +45 -0
  787. package/dist/rag/scope.js.map +1 -0
  788. package/dist/rag/types.d.ts +76 -0
  789. package/dist/rag/types.d.ts.map +1 -0
  790. package/dist/rag/types.js +43 -0
  791. package/dist/rag/types.js.map +1 -0
  792. package/dist/rag/wedge/gate.d.ts +69 -0
  793. package/dist/rag/wedge/gate.d.ts.map +1 -0
  794. package/dist/rag/wedge/gate.js +104 -0
  795. package/dist/rag/wedge/gate.js.map +1 -0
  796. package/dist/rag/wedge/migrate.d.ts +7 -0
  797. package/dist/rag/wedge/migrate.d.ts.map +1 -0
  798. package/dist/rag/wedge/migrate.js +21 -0
  799. package/dist/rag/wedge/migrate.js.map +1 -0
  800. package/dist/rag/wedge/paths.d.ts +3 -0
  801. package/dist/rag/wedge/paths.d.ts.map +1 -0
  802. package/dist/rag/wedge/paths.js +13 -0
  803. package/dist/rag/wedge/paths.js.map +1 -0
  804. package/dist/rag/wedge/source.d.ts +11 -0
  805. package/dist/rag/wedge/source.d.ts.map +1 -0
  806. package/dist/rag/wedge/source.js +111 -0
  807. package/dist/rag/wedge/source.js.map +1 -0
  808. package/dist/rag/wedge/store.d.ts +64 -0
  809. package/dist/rag/wedge/store.d.ts.map +1 -0
  810. package/dist/rag/wedge/store.js +255 -0
  811. package/dist/rag/wedge/store.js.map +1 -0
  812. package/dist/recall.d.ts +82 -0
  813. package/dist/recall.d.ts.map +1 -0
  814. package/dist/recall.js +81 -0
  815. package/dist/recall.js.map +1 -0
  816. package/dist/runtime/agent_bridge/agent_loop.d.ts +151 -0
  817. package/dist/runtime/agent_bridge/agent_loop.d.ts.map +1 -0
  818. package/dist/runtime/agent_bridge/agent_loop.js +229 -0
  819. package/dist/runtime/agent_bridge/agent_loop.js.map +1 -0
  820. package/dist/runtime/agent_bridge/agent_loop_subscription.d.ts +144 -0
  821. package/dist/runtime/agent_bridge/agent_loop_subscription.d.ts.map +1 -0
  822. package/dist/runtime/agent_bridge/agent_loop_subscription.js +224 -0
  823. package/dist/runtime/agent_bridge/agent_loop_subscription.js.map +1 -0
  824. package/dist/runtime/agent_bridge/autospawn.d.ts +131 -0
  825. package/dist/runtime/agent_bridge/autospawn.d.ts.map +1 -0
  826. package/dist/runtime/agent_bridge/autospawn.js +251 -0
  827. package/dist/runtime/agent_bridge/autospawn.js.map +1 -0
  828. package/dist/runtime/agent_bridge/batch.d.ts +135 -0
  829. package/dist/runtime/agent_bridge/batch.d.ts.map +1 -0
  830. package/dist/runtime/agent_bridge/batch.js +197 -0
  831. package/dist/runtime/agent_bridge/batch.js.map +1 -0
  832. package/dist/runtime/agent_bridge/cli.d.ts +54 -0
  833. package/dist/runtime/agent_bridge/cli.d.ts.map +1 -0
  834. package/dist/runtime/agent_bridge/cli.js +272 -0
  835. package/dist/runtime/agent_bridge/cli.js.map +1 -0
  836. package/dist/runtime/agent_bridge/daemon.d.ts +198 -0
  837. package/dist/runtime/agent_bridge/daemon.d.ts.map +1 -0
  838. package/dist/runtime/agent_bridge/daemon.js +452 -0
  839. package/dist/runtime/agent_bridge/daemon.js.map +1 -0
  840. package/dist/runtime/agent_bridge/dispatcher.d.ts +170 -0
  841. package/dist/runtime/agent_bridge/dispatcher.d.ts.map +1 -0
  842. package/dist/runtime/agent_bridge/dispatcher.js +333 -0
  843. package/dist/runtime/agent_bridge/dispatcher.js.map +1 -0
  844. package/dist/runtime/agent_bridge/event_bus.d.ts +44 -0
  845. package/dist/runtime/agent_bridge/event_bus.d.ts.map +1 -0
  846. package/dist/runtime/agent_bridge/event_bus.js +56 -0
  847. package/dist/runtime/agent_bridge/event_bus.js.map +1 -0
  848. package/dist/runtime/agent_bridge/headless_lease.d.ts +113 -0
  849. package/dist/runtime/agent_bridge/headless_lease.d.ts.map +1 -0
  850. package/dist/runtime/agent_bridge/headless_lease.js +190 -0
  851. package/dist/runtime/agent_bridge/headless_lease.js.map +1 -0
  852. package/dist/runtime/agent_bridge/index.d.ts +38 -0
  853. package/dist/runtime/agent_bridge/index.d.ts.map +1 -0
  854. package/dist/runtime/agent_bridge/index.js +38 -0
  855. package/dist/runtime/agent_bridge/index.js.map +1 -0
  856. package/dist/runtime/agent_bridge/mcp_config.d.ts +68 -0
  857. package/dist/runtime/agent_bridge/mcp_config.d.ts.map +1 -0
  858. package/dist/runtime/agent_bridge/mcp_config.js +102 -0
  859. package/dist/runtime/agent_bridge/mcp_config.js.map +1 -0
  860. package/dist/runtime/agent_bridge/pack_binding.d.ts +84 -0
  861. package/dist/runtime/agent_bridge/pack_binding.d.ts.map +1 -0
  862. package/dist/runtime/agent_bridge/pack_binding.js +202 -0
  863. package/dist/runtime/agent_bridge/pack_binding.js.map +1 -0
  864. package/dist/runtime/agent_bridge/session_manager.d.ts +133 -0
  865. package/dist/runtime/agent_bridge/session_manager.d.ts.map +1 -0
  866. package/dist/runtime/agent_bridge/session_manager.js +226 -0
  867. package/dist/runtime/agent_bridge/session_manager.js.map +1 -0
  868. package/dist/runtime/agent_bridge/session_persistence.d.ts +95 -0
  869. package/dist/runtime/agent_bridge/session_persistence.d.ts.map +1 -0
  870. package/dist/runtime/agent_bridge/session_persistence.js +178 -0
  871. package/dist/runtime/agent_bridge/session_persistence.js.map +1 -0
  872. package/dist/runtime/agent_bridge/tool_dispatcher.d.ts +60 -0
  873. package/dist/runtime/agent_bridge/tool_dispatcher.d.ts.map +1 -0
  874. package/dist/runtime/agent_bridge/tool_dispatcher.js +104 -0
  875. package/dist/runtime/agent_bridge/tool_dispatcher.js.map +1 -0
  876. package/dist/runtime/agent_bridge/tools/chat_send.d.ts +56 -0
  877. package/dist/runtime/agent_bridge/tools/chat_send.d.ts.map +1 -0
  878. package/dist/runtime/agent_bridge/tools/chat_send.js +101 -0
  879. package/dist/runtime/agent_bridge/tools/chat_send.js.map +1 -0
  880. package/dist/runtime/agent_bridge/tools/index.d.ts +38 -0
  881. package/dist/runtime/agent_bridge/tools/index.d.ts.map +1 -0
  882. package/dist/runtime/agent_bridge/tools/index.js +37 -0
  883. package/dist/runtime/agent_bridge/tools/index.js.map +1 -0
  884. package/dist/runtime/agent_bridge/tools/recall.d.ts +38 -0
  885. package/dist/runtime/agent_bridge/tools/recall.d.ts.map +1 -0
  886. package/dist/runtime/agent_bridge/tools/recall.js +90 -0
  887. package/dist/runtime/agent_bridge/tools/recall.js.map +1 -0
  888. package/dist/runtime/agent_bridge/tools/store_lesson.d.ts +41 -0
  889. package/dist/runtime/agent_bridge/tools/store_lesson.d.ts.map +1 -0
  890. package/dist/runtime/agent_bridge/tools/store_lesson.js +103 -0
  891. package/dist/runtime/agent_bridge/tools/store_lesson.js.map +1 -0
  892. package/dist/runtime/agent_bridge/transport_bridge.d.ts +133 -0
  893. package/dist/runtime/agent_bridge/transport_bridge.d.ts.map +1 -0
  894. package/dist/runtime/agent_bridge/transport_bridge.js +371 -0
  895. package/dist/runtime/agent_bridge/transport_bridge.js.map +1 -0
  896. package/dist/runtime/agent_bridge/types.d.ts +320 -0
  897. package/dist/runtime/agent_bridge/types.d.ts.map +1 -0
  898. package/dist/runtime/agent_bridge/types.js +157 -0
  899. package/dist/runtime/agent_bridge/types.js.map +1 -0
  900. package/dist/runtime/atomic_write.d.ts +15 -0
  901. package/dist/runtime/atomic_write.d.ts.map +1 -0
  902. package/dist/runtime/atomic_write.js +23 -0
  903. package/dist/runtime/atomic_write.js.map +1 -0
  904. package/dist/runtime/audit_adapters.d.ts +97 -0
  905. package/dist/runtime/audit_adapters.d.ts.map +1 -0
  906. package/dist/runtime/audit_adapters.js +190 -0
  907. package/dist/runtime/audit_adapters.js.map +1 -0
  908. package/dist/runtime/audit_log.d.ts +85 -0
  909. package/dist/runtime/audit_log.d.ts.map +1 -0
  910. package/dist/runtime/audit_log.js +215 -0
  911. package/dist/runtime/audit_log.js.map +1 -0
  912. package/dist/runtime/auto_correct.d.ts +67 -0
  913. package/dist/runtime/auto_correct.d.ts.map +1 -0
  914. package/dist/runtime/auto_correct.js +122 -0
  915. package/dist/runtime/auto_correct.js.map +1 -0
  916. package/dist/runtime/automation_state.d.ts +41 -0
  917. package/dist/runtime/automation_state.d.ts.map +1 -0
  918. package/dist/runtime/automation_state.js +68 -0
  919. package/dist/runtime/automation_state.js.map +1 -0
  920. package/dist/runtime/bootstrap.d.ts +87 -0
  921. package/dist/runtime/bootstrap.d.ts.map +1 -0
  922. package/dist/runtime/bootstrap.js +381 -0
  923. package/dist/runtime/bootstrap.js.map +1 -0
  924. package/dist/runtime/builtin_denylist.d.ts +25 -0
  925. package/dist/runtime/builtin_denylist.d.ts.map +1 -0
  926. package/dist/runtime/builtin_denylist.js +98 -0
  927. package/dist/runtime/builtin_denylist.js.map +1 -0
  928. package/dist/runtime/capability_gate.d.ts +86 -0
  929. package/dist/runtime/capability_gate.d.ts.map +1 -0
  930. package/dist/runtime/capability_gate.js +295 -0
  931. package/dist/runtime/capability_gate.js.map +1 -0
  932. package/dist/runtime/chain_state.d.ts +124 -0
  933. package/dist/runtime/chain_state.d.ts.map +1 -0
  934. package/dist/runtime/chain_state.js +189 -0
  935. package/dist/runtime/chain_state.js.map +1 -0
  936. package/dist/runtime/chat/claim_lease.d.ts +35 -0
  937. package/dist/runtime/chat/claim_lease.d.ts.map +1 -0
  938. package/dist/runtime/chat/claim_lease.js +65 -0
  939. package/dist/runtime/chat/claim_lease.js.map +1 -0
  940. package/dist/runtime/chat/inbound_watch.d.ts +58 -0
  941. package/dist/runtime/chat/inbound_watch.d.ts.map +1 -0
  942. package/dist/runtime/chat/inbound_watch.js +194 -0
  943. package/dist/runtime/chat/inbound_watch.js.map +1 -0
  944. package/dist/runtime/chat/inbox.d.ts +161 -0
  945. package/dist/runtime/chat/inbox.d.ts.map +1 -0
  946. package/dist/runtime/chat/inbox.js +167 -0
  947. package/dist/runtime/chat/inbox.js.map +1 -0
  948. package/dist/runtime/chat/inbox_drain.d.ts +43 -0
  949. package/dist/runtime/chat/inbox_drain.d.ts.map +1 -0
  950. package/dist/runtime/chat/inbox_drain.js +97 -0
  951. package/dist/runtime/chat/inbox_drain.js.map +1 -0
  952. package/dist/runtime/chat/inbox_inject.d.ts +64 -0
  953. package/dist/runtime/chat/inbox_inject.d.ts.map +1 -0
  954. package/dist/runtime/chat/inbox_inject.js +120 -0
  955. package/dist/runtime/chat/inbox_inject.js.map +1 -0
  956. package/dist/runtime/chat/inbox_writer.d.ts +35 -0
  957. package/dist/runtime/chat/inbox_writer.d.ts.map +1 -0
  958. package/dist/runtime/chat/inbox_writer.js +69 -0
  959. package/dist/runtime/chat/inbox_writer.js.map +1 -0
  960. package/dist/runtime/chat/live_session_lease.d.ts +66 -0
  961. package/dist/runtime/chat/live_session_lease.d.ts.map +1 -0
  962. package/dist/runtime/chat/live_session_lease.js +110 -0
  963. package/dist/runtime/chat/live_session_lease.js.map +1 -0
  964. package/dist/runtime/chat/session_routing.d.ts +64 -0
  965. package/dist/runtime/chat/session_routing.d.ts.map +1 -0
  966. package/dist/runtime/chat/session_routing.js +95 -0
  967. package/dist/runtime/chat/session_routing.js.map +1 -0
  968. package/dist/runtime/chat/watch.d.ts +72 -0
  969. package/dist/runtime/chat/watch.d.ts.map +1 -0
  970. package/dist/runtime/chat/watch.js +143 -0
  971. package/dist/runtime/chat/watch.js.map +1 -0
  972. package/dist/runtime/chat/watch_cli.d.ts +49 -0
  973. package/dist/runtime/chat/watch_cli.d.ts.map +1 -0
  974. package/dist/runtime/chat/watch_cli.js +124 -0
  975. package/dist/runtime/chat/watch_cli.js.map +1 -0
  976. package/dist/runtime/compression_orchestrator.d.ts +75 -0
  977. package/dist/runtime/compression_orchestrator.d.ts.map +1 -0
  978. package/dist/runtime/compression_orchestrator.js +127 -0
  979. package/dist/runtime/compression_orchestrator.js.map +1 -0
  980. package/dist/runtime/context_inherit.d.ts +65 -0
  981. package/dist/runtime/context_inherit.d.ts.map +1 -0
  982. package/dist/runtime/context_inherit.js +76 -0
  983. package/dist/runtime/context_inherit.js.map +1 -0
  984. package/dist/runtime/daemon.d.ts +184 -0
  985. package/dist/runtime/daemon.d.ts.map +1 -0
  986. package/dist/runtime/daemon.js +460 -0
  987. package/dist/runtime/daemon.js.map +1 -0
  988. package/dist/runtime/deliver_only.d.ts +68 -0
  989. package/dist/runtime/deliver_only.d.ts.map +1 -0
  990. package/dist/runtime/deliver_only.js +98 -0
  991. package/dist/runtime/deliver_only.js.map +1 -0
  992. package/dist/runtime/destination_scheduler.d.ts +52 -0
  993. package/dist/runtime/destination_scheduler.d.ts.map +1 -0
  994. package/dist/runtime/destination_scheduler.js +156 -0
  995. package/dist/runtime/destination_scheduler.js.map +1 -0
  996. package/dist/runtime/detection.d.ts +32 -0
  997. package/dist/runtime/detection.d.ts.map +1 -0
  998. package/dist/runtime/detection.js +113 -0
  999. package/dist/runtime/detection.js.map +1 -0
  1000. package/dist/runtime/drift_catalog.d.ts +69 -0
  1001. package/dist/runtime/drift_catalog.d.ts.map +1 -0
  1002. package/dist/runtime/drift_catalog.js +152 -0
  1003. package/dist/runtime/drift_catalog.js.map +1 -0
  1004. package/dist/runtime/drift_response.d.ts +82 -0
  1005. package/dist/runtime/drift_response.d.ts.map +1 -0
  1006. package/dist/runtime/drift_response.js +108 -0
  1007. package/dist/runtime/drift_response.js.map +1 -0
  1008. package/dist/runtime/durable/canonical_json.d.ts +47 -0
  1009. package/dist/runtime/durable/canonical_json.d.ts.map +1 -0
  1010. package/dist/runtime/durable/canonical_json.js +127 -0
  1011. package/dist/runtime/durable/canonical_json.js.map +1 -0
  1012. package/dist/runtime/durable/checkpoint_store.d.ts +228 -0
  1013. package/dist/runtime/durable/checkpoint_store.d.ts.map +1 -0
  1014. package/dist/runtime/durable/checkpoint_store.js +415 -0
  1015. package/dist/runtime/durable/checkpoint_store.js.map +1 -0
  1016. package/dist/runtime/durable/index.d.ts +36 -0
  1017. package/dist/runtime/durable/index.d.ts.map +1 -0
  1018. package/dist/runtime/durable/index.js +36 -0
  1019. package/dist/runtime/durable/index.js.map +1 -0
  1020. package/dist/runtime/durable/memo_cache.d.ts +195 -0
  1021. package/dist/runtime/durable/memo_cache.d.ts.map +1 -0
  1022. package/dist/runtime/durable/memo_cache.js +364 -0
  1023. package/dist/runtime/durable/memo_cache.js.map +1 -0
  1024. package/dist/runtime/durable/resumer.d.ts +131 -0
  1025. package/dist/runtime/durable/resumer.d.ts.map +1 -0
  1026. package/dist/runtime/durable/resumer.js +190 -0
  1027. package/dist/runtime/durable/resumer.js.map +1 -0
  1028. package/dist/runtime/durable/run_id.d.ts +50 -0
  1029. package/dist/runtime/durable/run_id.d.ts.map +1 -0
  1030. package/dist/runtime/durable/run_id.js +52 -0
  1031. package/dist/runtime/durable/run_id.js.map +1 -0
  1032. package/dist/runtime/escalate.d.ts +89 -0
  1033. package/dist/runtime/escalate.d.ts.map +1 -0
  1034. package/dist/runtime/escalate.js +118 -0
  1035. package/dist/runtime/escalate.js.map +1 -0
  1036. package/dist/runtime/evaluator/expression/ast.d.ts +57 -0
  1037. package/dist/runtime/evaluator/expression/ast.d.ts.map +1 -0
  1038. package/dist/runtime/evaluator/expression/ast.js +156 -0
  1039. package/dist/runtime/evaluator/expression/ast.js.map +1 -0
  1040. package/dist/runtime/evaluator/expression/cache.d.ts +40 -0
  1041. package/dist/runtime/evaluator/expression/cache.d.ts.map +1 -0
  1042. package/dist/runtime/evaluator/expression/cache.js +46 -0
  1043. package/dist/runtime/evaluator/expression/cache.js.map +1 -0
  1044. package/dist/runtime/evaluator/expression/functions.d.ts +61 -0
  1045. package/dist/runtime/evaluator/expression/functions.d.ts.map +1 -0
  1046. package/dist/runtime/evaluator/expression/functions.js +143 -0
  1047. package/dist/runtime/evaluator/expression/functions.js.map +1 -0
  1048. package/dist/runtime/evaluator/expression/index.d.ts +86 -0
  1049. package/dist/runtime/evaluator/expression/index.d.ts.map +1 -0
  1050. package/dist/runtime/evaluator/expression/index.js +144 -0
  1051. package/dist/runtime/evaluator/expression/index.js.map +1 -0
  1052. package/dist/runtime/evaluator/expression/interpreter.d.ts +83 -0
  1053. package/dist/runtime/evaluator/expression/interpreter.d.ts.map +1 -0
  1054. package/dist/runtime/evaluator/expression/interpreter.js +191 -0
  1055. package/dist/runtime/evaluator/expression/interpreter.js.map +1 -0
  1056. package/dist/runtime/evaluator/expression/lexer.d.ts +63 -0
  1057. package/dist/runtime/evaluator/expression/lexer.d.ts.map +1 -0
  1058. package/dist/runtime/evaluator/expression/lexer.js +98 -0
  1059. package/dist/runtime/evaluator/expression/lexer.js.map +1 -0
  1060. package/dist/runtime/evaluator/expression/parser.d.ts +76 -0
  1061. package/dist/runtime/evaluator/expression/parser.d.ts.map +1 -0
  1062. package/dist/runtime/evaluator/expression/parser.js +169 -0
  1063. package/dist/runtime/evaluator/expression/parser.js.map +1 -0
  1064. package/dist/runtime/evaluator.d.ts +112 -0
  1065. package/dist/runtime/evaluator.d.ts.map +1 -0
  1066. package/dist/runtime/evaluator.js +520 -0
  1067. package/dist/runtime/evaluator.js.map +1 -0
  1068. package/dist/runtime/event.d.ts +535 -0
  1069. package/dist/runtime/event.d.ts.map +1 -0
  1070. package/dist/runtime/event.js +303 -0
  1071. package/dist/runtime/event.js.map +1 -0
  1072. package/dist/runtime/failure_handling.d.ts +68 -0
  1073. package/dist/runtime/failure_handling.d.ts.map +1 -0
  1074. package/dist/runtime/failure_handling.js +103 -0
  1075. package/dist/runtime/failure_handling.js.map +1 -0
  1076. package/dist/runtime/fsm.d.ts +120 -0
  1077. package/dist/runtime/fsm.d.ts.map +1 -0
  1078. package/dist/runtime/fsm.js +92 -0
  1079. package/dist/runtime/fsm.js.map +1 -0
  1080. package/dist/runtime/fsm_state.d.ts +42 -0
  1081. package/dist/runtime/fsm_state.d.ts.map +1 -0
  1082. package/dist/runtime/fsm_state.js +114 -0
  1083. package/dist/runtime/fsm_state.js.map +1 -0
  1084. package/dist/runtime/handoff/collect.d.ts +64 -0
  1085. package/dist/runtime/handoff/collect.d.ts.map +1 -0
  1086. package/dist/runtime/handoff/collect.js +211 -0
  1087. package/dist/runtime/handoff/collect.js.map +1 -0
  1088. package/dist/runtime/handoff/index.d.ts +21 -0
  1089. package/dist/runtime/handoff/index.d.ts.map +1 -0
  1090. package/dist/runtime/handoff/index.js +33 -0
  1091. package/dist/runtime/handoff/index.js.map +1 -0
  1092. package/dist/runtime/handoff/narrate.d.ts +19 -0
  1093. package/dist/runtime/handoff/narrate.d.ts.map +1 -0
  1094. package/dist/runtime/handoff/narrate.js +44 -0
  1095. package/dist/runtime/handoff/narrate.js.map +1 -0
  1096. package/dist/runtime/handoff/render.d.ts +25 -0
  1097. package/dist/runtime/handoff/render.d.ts.map +1 -0
  1098. package/dist/runtime/handoff/render.js +162 -0
  1099. package/dist/runtime/handoff/render.js.map +1 -0
  1100. package/dist/runtime/handoff/substance.d.ts +19 -0
  1101. package/dist/runtime/handoff/substance.d.ts.map +1 -0
  1102. package/dist/runtime/handoff/substance.js +48 -0
  1103. package/dist/runtime/handoff/substance.js.map +1 -0
  1104. package/dist/runtime/handoff/write.d.ts +39 -0
  1105. package/dist/runtime/handoff/write.d.ts.map +1 -0
  1106. package/dist/runtime/handoff/write.js +131 -0
  1107. package/dist/runtime/handoff/write.js.map +1 -0
  1108. package/dist/runtime/hooks/active_task_mirror.d.ts +70 -0
  1109. package/dist/runtime/hooks/active_task_mirror.d.ts.map +1 -0
  1110. package/dist/runtime/hooks/active_task_mirror.js +226 -0
  1111. package/dist/runtime/hooks/active_task_mirror.js.map +1 -0
  1112. package/dist/runtime/hooks/apply_patch.d.ts +27 -0
  1113. package/dist/runtime/hooks/apply_patch.d.ts.map +1 -0
  1114. package/dist/runtime/hooks/apply_patch.js +54 -0
  1115. package/dist/runtime/hooks/apply_patch.js.map +1 -0
  1116. package/dist/runtime/hooks/dispatch.d.ts +152 -0
  1117. package/dist/runtime/hooks/dispatch.d.ts.map +1 -0
  1118. package/dist/runtime/hooks/dispatch.js +468 -0
  1119. package/dist/runtime/hooks/dispatch.js.map +1 -0
  1120. package/dist/runtime/hooks/hook_output.d.ts +40 -0
  1121. package/dist/runtime/hooks/hook_output.d.ts.map +1 -0
  1122. package/dist/runtime/hooks/hook_output.js +50 -0
  1123. package/dist/runtime/hooks/hook_output.js.map +1 -0
  1124. package/dist/runtime/hooks/memory_reconcile.d.ts +39 -0
  1125. package/dist/runtime/hooks/memory_reconcile.d.ts.map +1 -0
  1126. package/dist/runtime/hooks/memory_reconcile.js +75 -0
  1127. package/dist/runtime/hooks/memory_reconcile.js.map +1 -0
  1128. package/dist/runtime/hooks/new_project_detect.d.ts +35 -0
  1129. package/dist/runtime/hooks/new_project_detect.d.ts.map +1 -0
  1130. package/dist/runtime/hooks/new_project_detect.js +93 -0
  1131. package/dist/runtime/hooks/new_project_detect.js.map +1 -0
  1132. package/dist/runtime/hooks/permission_decision.d.ts +34 -0
  1133. package/dist/runtime/hooks/permission_decision.d.ts.map +1 -0
  1134. package/dist/runtime/hooks/permission_decision.js +39 -0
  1135. package/dist/runtime/hooks/permission_decision.js.map +1 -0
  1136. package/dist/runtime/hooks/post-tool-use.d.ts +3 -0
  1137. package/dist/runtime/hooks/post-tool-use.d.ts.map +1 -0
  1138. package/dist/runtime/hooks/post-tool-use.js +97 -0
  1139. package/dist/runtime/hooks/post-tool-use.js.map +1 -0
  1140. package/dist/runtime/hooks/pre-tool-use.d.ts +3 -0
  1141. package/dist/runtime/hooks/pre-tool-use.d.ts.map +1 -0
  1142. package/dist/runtime/hooks/pre-tool-use.js +169 -0
  1143. package/dist/runtime/hooks/pre-tool-use.js.map +1 -0
  1144. package/dist/runtime/hooks/profession_resolver.d.ts +65 -0
  1145. package/dist/runtime/hooks/profession_resolver.d.ts.map +1 -0
  1146. package/dist/runtime/hooks/profession_resolver.js +86 -0
  1147. package/dist/runtime/hooks/profession_resolver.js.map +1 -0
  1148. package/dist/runtime/hooks/scope_intent.d.ts +32 -0
  1149. package/dist/runtime/hooks/scope_intent.d.ts.map +1 -0
  1150. package/dist/runtime/hooks/scope_intent.js +32 -0
  1151. package/dist/runtime/hooks/scope_intent.js.map +1 -0
  1152. package/dist/runtime/hooks/session-end.d.ts +3 -0
  1153. package/dist/runtime/hooks/session-end.d.ts.map +1 -0
  1154. package/dist/runtime/hooks/session-end.js +159 -0
  1155. package/dist/runtime/hooks/session-end.js.map +1 -0
  1156. package/dist/runtime/hooks/session-start.d.ts +3 -0
  1157. package/dist/runtime/hooks/session-start.d.ts.map +1 -0
  1158. package/dist/runtime/hooks/session-start.js +116 -0
  1159. package/dist/runtime/hooks/session-start.js.map +1 -0
  1160. package/dist/runtime/hooks/session_id.d.ts +86 -0
  1161. package/dist/runtime/hooks/session_id.d.ts.map +1 -0
  1162. package/dist/runtime/hooks/session_id.js +186 -0
  1163. package/dist/runtime/hooks/session_id.js.map +1 -0
  1164. package/dist/runtime/hooks/session_liveness.d.ts +49 -0
  1165. package/dist/runtime/hooks/session_liveness.d.ts.map +1 -0
  1166. package/dist/runtime/hooks/session_liveness.js +65 -0
  1167. package/dist/runtime/hooks/session_liveness.js.map +1 -0
  1168. package/dist/runtime/hooks/stop.d.ts +3 -0
  1169. package/dist/runtime/hooks/stop.d.ts.map +1 -0
  1170. package/dist/runtime/hooks/stop.js +128 -0
  1171. package/dist/runtime/hooks/stop.js.map +1 -0
  1172. package/dist/runtime/hooks/stop_drive.d.ts +37 -0
  1173. package/dist/runtime/hooks/stop_drive.d.ts.map +1 -0
  1174. package/dist/runtime/hooks/stop_drive.js +86 -0
  1175. package/dist/runtime/hooks/stop_drive.js.map +1 -0
  1176. package/dist/runtime/hooks/stop_stream.d.ts +32 -0
  1177. package/dist/runtime/hooks/stop_stream.d.ts.map +1 -0
  1178. package/dist/runtime/hooks/stop_stream.js +74 -0
  1179. package/dist/runtime/hooks/stop_stream.js.map +1 -0
  1180. package/dist/runtime/hooks/transcript.d.ts +47 -0
  1181. package/dist/runtime/hooks/transcript.d.ts.map +1 -0
  1182. package/dist/runtime/hooks/transcript.js +115 -0
  1183. package/dist/runtime/hooks/transcript.js.map +1 -0
  1184. package/dist/runtime/hooks/transcript_tasks.d.ts +66 -0
  1185. package/dist/runtime/hooks/transcript_tasks.d.ts.map +1 -0
  1186. package/dist/runtime/hooks/transcript_tasks.js +193 -0
  1187. package/dist/runtime/hooks/transcript_tasks.js.map +1 -0
  1188. package/dist/runtime/hooks/user-prompt-submit.d.ts +4 -0
  1189. package/dist/runtime/hooks/user-prompt-submit.d.ts.map +1 -0
  1190. package/dist/runtime/hooks/user-prompt-submit.js +184 -0
  1191. package/dist/runtime/hooks/user-prompt-submit.js.map +1 -0
  1192. package/dist/runtime/index.d.ts +30 -0
  1193. package/dist/runtime/index.d.ts.map +1 -0
  1194. package/dist/runtime/index.js +43 -0
  1195. package/dist/runtime/index.js.map +1 -0
  1196. package/dist/runtime/load_budget.d.ts +48 -0
  1197. package/dist/runtime/load_budget.d.ts.map +1 -0
  1198. package/dist/runtime/load_budget.js +43 -0
  1199. package/dist/runtime/load_budget.js.map +1 -0
  1200. package/dist/runtime/load_matchers.d.ts +139 -0
  1201. package/dist/runtime/load_matchers.d.ts.map +1 -0
  1202. package/dist/runtime/load_matchers.js +190 -0
  1203. package/dist/runtime/load_matchers.js.map +1 -0
  1204. package/dist/runtime/observability/index.d.ts +21 -0
  1205. package/dist/runtime/observability/index.d.ts.map +1 -0
  1206. package/dist/runtime/observability/index.js +20 -0
  1207. package/dist/runtime/observability/index.js.map +1 -0
  1208. package/dist/runtime/observability/otel_export.d.ts +58 -0
  1209. package/dist/runtime/observability/otel_export.d.ts.map +1 -0
  1210. package/dist/runtime/observability/otel_export.js +74 -0
  1211. package/dist/runtime/observability/otel_export.js.map +1 -0
  1212. package/dist/runtime/observability/trace_reader.d.ts +104 -0
  1213. package/dist/runtime/observability/trace_reader.d.ts.map +1 -0
  1214. package/dist/runtime/observability/trace_reader.js +357 -0
  1215. package/dist/runtime/observability/trace_reader.js.map +1 -0
  1216. package/dist/runtime/observability/trace_types.d.ts +64 -0
  1217. package/dist/runtime/observability/trace_types.d.ts.map +1 -0
  1218. package/dist/runtime/observability/trace_types.js +15 -0
  1219. package/dist/runtime/observability/trace_types.js.map +1 -0
  1220. package/dist/runtime/paths.d.ts +136 -0
  1221. package/dist/runtime/paths.d.ts.map +1 -0
  1222. package/dist/runtime/paths.js +303 -0
  1223. package/dist/runtime/paths.js.map +1 -0
  1224. package/dist/runtime/phase_ledger.d.ts +56 -0
  1225. package/dist/runtime/phase_ledger.d.ts.map +1 -0
  1226. package/dist/runtime/phase_ledger.js +88 -0
  1227. package/dist/runtime/phase_ledger.js.map +1 -0
  1228. package/dist/runtime/pinned_skills.d.ts +63 -0
  1229. package/dist/runtime/pinned_skills.d.ts.map +1 -0
  1230. package/dist/runtime/pinned_skills.js +75 -0
  1231. package/dist/runtime/pinned_skills.js.map +1 -0
  1232. package/dist/runtime/rate_limit.d.ts +109 -0
  1233. package/dist/runtime/rate_limit.d.ts.map +1 -0
  1234. package/dist/runtime/rate_limit.js +222 -0
  1235. package/dist/runtime/rate_limit.js.map +1 -0
  1236. package/dist/runtime/result.d.ts +26 -0
  1237. package/dist/runtime/result.d.ts.map +1 -0
  1238. package/dist/runtime/result.js +17 -0
  1239. package/dist/runtime/result.js.map +1 -0
  1240. package/dist/runtime/satisfaction_probe.d.ts +80 -0
  1241. package/dist/runtime/satisfaction_probe.d.ts.map +1 -0
  1242. package/dist/runtime/satisfaction_probe.js +165 -0
  1243. package/dist/runtime/satisfaction_probe.js.map +1 -0
  1244. package/dist/runtime/schedule_registry.d.ts +64 -0
  1245. package/dist/runtime/schedule_registry.d.ts.map +1 -0
  1246. package/dist/runtime/schedule_registry.js +96 -0
  1247. package/dist/runtime/schedule_registry.js.map +1 -0
  1248. package/dist/runtime/session_state.d.ts +127 -0
  1249. package/dist/runtime/session_state.d.ts.map +1 -0
  1250. package/dist/runtime/session_state.js +335 -0
  1251. package/dist/runtime/session_state.js.map +1 -0
  1252. package/dist/runtime/skill_prefilter.d.ts +60 -0
  1253. package/dist/runtime/skill_prefilter.d.ts.map +1 -0
  1254. package/dist/runtime/skill_prefilter.js +117 -0
  1255. package/dist/runtime/skill_prefilter.js.map +1 -0
  1256. package/dist/runtime/skill_requires.d.ts +77 -0
  1257. package/dist/runtime/skill_requires.d.ts.map +1 -0
  1258. package/dist/runtime/skill_requires.js +124 -0
  1259. package/dist/runtime/skill_requires.js.map +1 -0
  1260. package/dist/runtime/skill_router.d.ts +57 -0
  1261. package/dist/runtime/skill_router.d.ts.map +1 -0
  1262. package/dist/runtime/skill_router.js +97 -0
  1263. package/dist/runtime/skill_router.js.map +1 -0
  1264. package/dist/runtime/tick.d.ts +44 -0
  1265. package/dist/runtime/tick.d.ts.map +1 -0
  1266. package/dist/runtime/tick.js +99 -0
  1267. package/dist/runtime/tick.js.map +1 -0
  1268. package/dist/runtime/triggers/file_watcher.d.ts +100 -0
  1269. package/dist/runtime/triggers/file_watcher.d.ts.map +1 -0
  1270. package/dist/runtime/triggers/file_watcher.js +202 -0
  1271. package/dist/runtime/triggers/file_watcher.js.map +1 -0
  1272. package/dist/runtime/triggers/index.d.ts +17 -0
  1273. package/dist/runtime/triggers/index.d.ts.map +1 -0
  1274. package/dist/runtime/triggers/index.js +17 -0
  1275. package/dist/runtime/triggers/index.js.map +1 -0
  1276. package/dist/runtime/types.d.ts +1988 -0
  1277. package/dist/runtime/types.d.ts.map +1 -0
  1278. package/dist/runtime/types.js +337 -0
  1279. package/dist/runtime/types.js.map +1 -0
  1280. package/dist/runtime/unload_conditions.d.ts +97 -0
  1281. package/dist/runtime/unload_conditions.d.ts.map +1 -0
  1282. package/dist/runtime/unload_conditions.js +96 -0
  1283. package/dist/runtime/unload_conditions.js.map +1 -0
  1284. package/dist/runtime/versioning.d.ts +38 -0
  1285. package/dist/runtime/versioning.d.ts.map +1 -0
  1286. package/dist/runtime/versioning.js +189 -0
  1287. package/dist/runtime/versioning.js.map +1 -0
  1288. package/dist/runtime/webhook_server.d.ts +146 -0
  1289. package/dist/runtime/webhook_server.d.ts.map +1 -0
  1290. package/dist/runtime/webhook_server.js +301 -0
  1291. package/dist/runtime/webhook_server.js.map +1 -0
  1292. package/dist/runtime/webhook_subscriptions.d.ts +178 -0
  1293. package/dist/runtime/webhook_subscriptions.d.ts.map +1 -0
  1294. package/dist/runtime/webhook_subscriptions.js +192 -0
  1295. package/dist/runtime/webhook_subscriptions.js.map +1 -0
  1296. package/dist/runtime/wedge/automation_buffer.d.ts +56 -0
  1297. package/dist/runtime/wedge/automation_buffer.d.ts.map +1 -0
  1298. package/dist/runtime/wedge/automation_buffer.js +202 -0
  1299. package/dist/runtime/wedge/automation_buffer.js.map +1 -0
  1300. package/dist/runtime/wedge/capture.d.ts +40 -0
  1301. package/dist/runtime/wedge/capture.d.ts.map +1 -0
  1302. package/dist/runtime/wedge/capture.js +127 -0
  1303. package/dist/runtime/wedge/capture.js.map +1 -0
  1304. package/dist/runtime/wedge/compress_candidates.d.ts +63 -0
  1305. package/dist/runtime/wedge/compress_candidates.d.ts.map +1 -0
  1306. package/dist/runtime/wedge/compress_candidates.js +109 -0
  1307. package/dist/runtime/wedge/compress_candidates.js.map +1 -0
  1308. package/dist/runtime/wedge/compression_deps.d.ts +12 -0
  1309. package/dist/runtime/wedge/compression_deps.d.ts.map +1 -0
  1310. package/dist/runtime/wedge/compression_deps.js +63 -0
  1311. package/dist/runtime/wedge/compression_deps.js.map +1 -0
  1312. package/dist/runtime/wedge/cost_outcome.d.ts +112 -0
  1313. package/dist/runtime/wedge/cost_outcome.d.ts.map +1 -0
  1314. package/dist/runtime/wedge/cost_outcome.js +85 -0
  1315. package/dist/runtime/wedge/cost_outcome.js.map +1 -0
  1316. package/dist/runtime/wedge/eviction.d.ts +41 -0
  1317. package/dist/runtime/wedge/eviction.d.ts.map +1 -0
  1318. package/dist/runtime/wedge/eviction.js +62 -0
  1319. package/dist/runtime/wedge/eviction.js.map +1 -0
  1320. package/dist/runtime/wedge/index.d.ts +20 -0
  1321. package/dist/runtime/wedge/index.d.ts.map +1 -0
  1322. package/dist/runtime/wedge/index.js +26 -0
  1323. package/dist/runtime/wedge/index.js.map +1 -0
  1324. package/dist/runtime/wedge/mutate_skill.d.ts +30 -0
  1325. package/dist/runtime/wedge/mutate_skill.d.ts.map +1 -0
  1326. package/dist/runtime/wedge/mutate_skill.js +62 -0
  1327. package/dist/runtime/wedge/mutate_skill.js.map +1 -0
  1328. package/dist/runtime/wedge/promote.d.ts +57 -0
  1329. package/dist/runtime/wedge/promote.d.ts.map +1 -0
  1330. package/dist/runtime/wedge/promote.js +66 -0
  1331. package/dist/runtime/wedge/promote.js.map +1 -0
  1332. package/dist/runtime/wedge/schedule_outcome.d.ts +107 -0
  1333. package/dist/runtime/wedge/schedule_outcome.d.ts.map +1 -0
  1334. package/dist/runtime/wedge/schedule_outcome.js +287 -0
  1335. package/dist/runtime/wedge/schedule_outcome.js.map +1 -0
  1336. package/dist/runtime/wedge/types.d.ts +43 -0
  1337. package/dist/runtime/wedge/types.d.ts.map +1 -0
  1338. package/dist/runtime/wedge/types.js +34 -0
  1339. package/dist/runtime/wedge/types.js.map +1 -0
  1340. package/dist/runtime/workflow_fsm.d.ts +21 -0
  1341. package/dist/runtime/workflow_fsm.d.ts.map +1 -0
  1342. package/dist/runtime/workflow_fsm.js +25 -0
  1343. package/dist/runtime/workflow_fsm.js.map +1 -0
  1344. package/dist/runtime/workflow_map.d.ts +26 -0
  1345. package/dist/runtime/workflow_map.d.ts.map +1 -0
  1346. package/dist/runtime/workflow_map.js +38 -0
  1347. package/dist/runtime/workflow_map.js.map +1 -0
  1348. package/dist/runtime/workflow_phases.d.ts +50 -0
  1349. package/dist/runtime/workflow_phases.d.ts.map +1 -0
  1350. package/dist/runtime/workflow_phases.js +92 -0
  1351. package/dist/runtime/workflow_phases.js.map +1 -0
  1352. package/dist/scope.d.ts +48 -0
  1353. package/dist/scope.d.ts.map +1 -0
  1354. package/dist/scope.js +111 -0
  1355. package/dist/scope.js.map +1 -0
  1356. package/dist/secrets/backends/dotenv.d.ts +26 -0
  1357. package/dist/secrets/backends/dotenv.d.ts.map +1 -0
  1358. package/dist/secrets/backends/dotenv.js +65 -0
  1359. package/dist/secrets/backends/dotenv.js.map +1 -0
  1360. package/dist/secrets/backends/keychain.d.ts +59 -0
  1361. package/dist/secrets/backends/keychain.d.ts.map +1 -0
  1362. package/dist/secrets/backends/keychain.js +133 -0
  1363. package/dist/secrets/backends/keychain.js.map +1 -0
  1364. package/dist/secrets/backends/literal.d.ts +19 -0
  1365. package/dist/secrets/backends/literal.d.ts.map +1 -0
  1366. package/dist/secrets/backends/literal.js +25 -0
  1367. package/dist/secrets/backends/literal.js.map +1 -0
  1368. package/dist/secrets/backends/op.d.ts +36 -0
  1369. package/dist/secrets/backends/op.d.ts.map +1 -0
  1370. package/dist/secrets/backends/op.js +69 -0
  1371. package/dist/secrets/backends/op.js.map +1 -0
  1372. package/dist/secrets/index.d.ts +14 -0
  1373. package/dist/secrets/index.d.ts.map +1 -0
  1374. package/dist/secrets/index.js +13 -0
  1375. package/dist/secrets/index.js.map +1 -0
  1376. package/dist/secrets/resolver.d.ts +19 -0
  1377. package/dist/secrets/resolver.d.ts.map +1 -0
  1378. package/dist/secrets/resolver.js +40 -0
  1379. package/dist/secrets/resolver.js.map +1 -0
  1380. package/dist/secrets/types.d.ts +28 -0
  1381. package/dist/secrets/types.d.ts.map +1 -0
  1382. package/dist/secrets/types.js +14 -0
  1383. package/dist/secrets/types.js.map +1 -0
  1384. package/dist/setup/cli/attestations.d.ts +32 -0
  1385. package/dist/setup/cli/attestations.d.ts.map +1 -0
  1386. package/dist/setup/cli/attestations.js +52 -0
  1387. package/dist/setup/cli/attestations.js.map +1 -0
  1388. package/dist/setup/cli/audit.d.ts +30 -0
  1389. package/dist/setup/cli/audit.d.ts.map +1 -0
  1390. package/dist/setup/cli/audit.js +139 -0
  1391. package/dist/setup/cli/audit.js.map +1 -0
  1392. package/dist/setup/cli/audit_actions.d.ts +54 -0
  1393. package/dist/setup/cli/audit_actions.d.ts.map +1 -0
  1394. package/dist/setup/cli/audit_actions.js +200 -0
  1395. package/dist/setup/cli/audit_actions.js.map +1 -0
  1396. package/dist/setup/cli/audit_state.d.ts +27 -0
  1397. package/dist/setup/cli/audit_state.d.ts.map +1 -0
  1398. package/dist/setup/cli/audit_state.js +52 -0
  1399. package/dist/setup/cli/audit_state.js.map +1 -0
  1400. package/dist/setup/cli/automation.d.ts +47 -0
  1401. package/dist/setup/cli/automation.d.ts.map +1 -0
  1402. package/dist/setup/cli/automation.js +156 -0
  1403. package/dist/setup/cli/automation.js.map +1 -0
  1404. package/dist/setup/cli/cache.d.ts +44 -0
  1405. package/dist/setup/cli/cache.d.ts.map +1 -0
  1406. package/dist/setup/cli/cache.js +154 -0
  1407. package/dist/setup/cli/cache.js.map +1 -0
  1408. package/dist/setup/cli/chat.d.ts +69 -0
  1409. package/dist/setup/cli/chat.d.ts.map +1 -0
  1410. package/dist/setup/cli/chat.js +95 -0
  1411. package/dist/setup/cli/chat.js.map +1 -0
  1412. package/dist/setup/cli/chat_actions.d.ts +57 -0
  1413. package/dist/setup/cli/chat_actions.d.ts.map +1 -0
  1414. package/dist/setup/cli/chat_actions.js +358 -0
  1415. package/dist/setup/cli/chat_actions.js.map +1 -0
  1416. package/dist/setup/cli/chat_actions_prompts.d.ts +51 -0
  1417. package/dist/setup/cli/chat_actions_prompts.d.ts.map +1 -0
  1418. package/dist/setup/cli/chat_actions_prompts.js +319 -0
  1419. package/dist/setup/cli/chat_actions_prompts.js.map +1 -0
  1420. package/dist/setup/cli/chat_actions_prompts_alias.d.ts +37 -0
  1421. package/dist/setup/cli/chat_actions_prompts_alias.d.ts.map +1 -0
  1422. package/dist/setup/cli/chat_actions_prompts_alias.js +185 -0
  1423. package/dist/setup/cli/chat_actions_prompts_alias.js.map +1 -0
  1424. package/dist/setup/cli/chat_actions_test_helpers.d.ts +37 -0
  1425. package/dist/setup/cli/chat_actions_test_helpers.d.ts.map +1 -0
  1426. package/dist/setup/cli/chat_actions_test_helpers.js +125 -0
  1427. package/dist/setup/cli/chat_actions_test_helpers.js.map +1 -0
  1428. package/dist/setup/cli/chat_actions_test_step.d.ts +86 -0
  1429. package/dist/setup/cli/chat_actions_test_step.d.ts.map +1 -0
  1430. package/dist/setup/cli/chat_actions_test_step.js +303 -0
  1431. package/dist/setup/cli/chat_actions_test_step.js.map +1 -0
  1432. package/dist/setup/cli/chat_actions_writers.d.ts +140 -0
  1433. package/dist/setup/cli/chat_actions_writers.d.ts.map +1 -0
  1434. package/dist/setup/cli/chat_actions_writers.js +297 -0
  1435. package/dist/setup/cli/chat_actions_writers.js.map +1 -0
  1436. package/dist/setup/cli/chat_state.d.ts +121 -0
  1437. package/dist/setup/cli/chat_state.d.ts.map +1 -0
  1438. package/dist/setup/cli/chat_state.js +310 -0
  1439. package/dist/setup/cli/chat_state.js.map +1 -0
  1440. package/dist/setup/cli/checkpoints.d.ts +47 -0
  1441. package/dist/setup/cli/checkpoints.d.ts.map +1 -0
  1442. package/dist/setup/cli/checkpoints.js +85 -0
  1443. package/dist/setup/cli/checkpoints.js.map +1 -0
  1444. package/dist/setup/cli/checkpoints_actions.d.ts +47 -0
  1445. package/dist/setup/cli/checkpoints_actions.d.ts.map +1 -0
  1446. package/dist/setup/cli/checkpoints_actions.js +153 -0
  1447. package/dist/setup/cli/checkpoints_actions.js.map +1 -0
  1448. package/dist/setup/cli/checkpoints_core.d.ts +57 -0
  1449. package/dist/setup/cli/checkpoints_core.d.ts.map +1 -0
  1450. package/dist/setup/cli/checkpoints_core.js +73 -0
  1451. package/dist/setup/cli/checkpoints_core.js.map +1 -0
  1452. package/dist/setup/cli/checkpoints_render.d.ts +23 -0
  1453. package/dist/setup/cli/checkpoints_render.d.ts.map +1 -0
  1454. package/dist/setup/cli/checkpoints_render.js +65 -0
  1455. package/dist/setup/cli/checkpoints_render.js.map +1 -0
  1456. package/dist/setup/cli/codex_hooks.d.ts +27 -0
  1457. package/dist/setup/cli/codex_hooks.d.ts.map +1 -0
  1458. package/dist/setup/cli/codex_hooks.js +73 -0
  1459. package/dist/setup/cli/codex_hooks.js.map +1 -0
  1460. package/dist/setup/cli/cost.d.ts +29 -0
  1461. package/dist/setup/cli/cost.d.ts.map +1 -0
  1462. package/dist/setup/cli/cost.js +98 -0
  1463. package/dist/setup/cli/cost.js.map +1 -0
  1464. package/dist/setup/cli/cost_state.d.ts +86 -0
  1465. package/dist/setup/cli/cost_state.d.ts.map +1 -0
  1466. package/dist/setup/cli/cost_state.js +223 -0
  1467. package/dist/setup/cli/cost_state.js.map +1 -0
  1468. package/dist/setup/cli/doctor.d.ts +47 -0
  1469. package/dist/setup/cli/doctor.d.ts.map +1 -0
  1470. package/dist/setup/cli/doctor.js +314 -0
  1471. package/dist/setup/cli/doctor.js.map +1 -0
  1472. package/dist/setup/cli/gate.d.ts +71 -0
  1473. package/dist/setup/cli/gate.d.ts.map +1 -0
  1474. package/dist/setup/cli/gate.js +287 -0
  1475. package/dist/setup/cli/gate.js.map +1 -0
  1476. package/dist/setup/cli/hooks.d.ts +69 -0
  1477. package/dist/setup/cli/hooks.d.ts.map +1 -0
  1478. package/dist/setup/cli/hooks.js +104 -0
  1479. package/dist/setup/cli/hooks.js.map +1 -0
  1480. package/dist/setup/cli/index.d.ts +11 -0
  1481. package/dist/setup/cli/index.d.ts.map +1 -0
  1482. package/dist/setup/cli/index.js +11 -0
  1483. package/dist/setup/cli/index.js.map +1 -0
  1484. package/dist/setup/cli/limits.d.ts +30 -0
  1485. package/dist/setup/cli/limits.d.ts.map +1 -0
  1486. package/dist/setup/cli/limits.js +102 -0
  1487. package/dist/setup/cli/limits.js.map +1 -0
  1488. package/dist/setup/cli/limits_state.d.ts +77 -0
  1489. package/dist/setup/cli/limits_state.d.ts.map +1 -0
  1490. package/dist/setup/cli/limits_state.js +170 -0
  1491. package/dist/setup/cli/limits_state.js.map +1 -0
  1492. package/dist/setup/cli/mcp.d.ts +73 -0
  1493. package/dist/setup/cli/mcp.d.ts.map +1 -0
  1494. package/dist/setup/cli/mcp.js +175 -0
  1495. package/dist/setup/cli/mcp.js.map +1 -0
  1496. package/dist/setup/cli/memory.d.ts +55 -0
  1497. package/dist/setup/cli/memory.d.ts.map +1 -0
  1498. package/dist/setup/cli/memory.js +139 -0
  1499. package/dist/setup/cli/memory.js.map +1 -0
  1500. package/dist/setup/cli/permissions.d.ts +49 -0
  1501. package/dist/setup/cli/permissions.d.ts.map +1 -0
  1502. package/dist/setup/cli/permissions.js +77 -0
  1503. package/dist/setup/cli/permissions.js.map +1 -0
  1504. package/dist/setup/cli/permissions_actions.d.ts +72 -0
  1505. package/dist/setup/cli/permissions_actions.d.ts.map +1 -0
  1506. package/dist/setup/cli/permissions_actions.js +208 -0
  1507. package/dist/setup/cli/permissions_actions.js.map +1 -0
  1508. package/dist/setup/cli/permissions_state.d.ts +98 -0
  1509. package/dist/setup/cli/permissions_state.d.ts.map +1 -0
  1510. package/dist/setup/cli/permissions_state.js +202 -0
  1511. package/dist/setup/cli/permissions_state.js.map +1 -0
  1512. package/dist/setup/cli/portability.d.ts +68 -0
  1513. package/dist/setup/cli/portability.d.ts.map +1 -0
  1514. package/dist/setup/cli/portability.js +413 -0
  1515. package/dist/setup/cli/portability.js.map +1 -0
  1516. package/dist/setup/cli/schedule.d.ts +45 -0
  1517. package/dist/setup/cli/schedule.d.ts.map +1 -0
  1518. package/dist/setup/cli/schedule.js +92 -0
  1519. package/dist/setup/cli/schedule.js.map +1 -0
  1520. package/dist/setup/cli/schedule_actions.d.ts +63 -0
  1521. package/dist/setup/cli/schedule_actions.d.ts.map +1 -0
  1522. package/dist/setup/cli/schedule_actions.js +299 -0
  1523. package/dist/setup/cli/schedule_actions.js.map +1 -0
  1524. package/dist/setup/cli/schedule_render.d.ts +18 -0
  1525. package/dist/setup/cli/schedule_render.d.ts.map +1 -0
  1526. package/dist/setup/cli/schedule_render.js +69 -0
  1527. package/dist/setup/cli/schedule_render.js.map +1 -0
  1528. package/dist/setup/cli/schedule_state.d.ts +92 -0
  1529. package/dist/setup/cli/schedule_state.d.ts.map +1 -0
  1530. package/dist/setup/cli/schedule_state.js +291 -0
  1531. package/dist/setup/cli/schedule_state.js.map +1 -0
  1532. package/dist/setup/cli/state_io.d.ts +67 -0
  1533. package/dist/setup/cli/state_io.d.ts.map +1 -0
  1534. package/dist/setup/cli/state_io.js +130 -0
  1535. package/dist/setup/cli/state_io.js.map +1 -0
  1536. package/dist/setup/cli/topic_create_step.d.ts +84 -0
  1537. package/dist/setup/cli/topic_create_step.d.ts.map +1 -0
  1538. package/dist/setup/cli/topic_create_step.js +213 -0
  1539. package/dist/setup/cli/topic_create_step.js.map +1 -0
  1540. package/dist/setup/cli/trace.d.ts +52 -0
  1541. package/dist/setup/cli/trace.d.ts.map +1 -0
  1542. package/dist/setup/cli/trace.js +239 -0
  1543. package/dist/setup/cli/trace.js.map +1 -0
  1544. package/dist/setup/cli/triggers.d.ts +32 -0
  1545. package/dist/setup/cli/triggers.d.ts.map +1 -0
  1546. package/dist/setup/cli/triggers.js +141 -0
  1547. package/dist/setup/cli/triggers.js.map +1 -0
  1548. package/dist/setup/cli/triggers_state.d.ts +47 -0
  1549. package/dist/setup/cli/triggers_state.d.ts.map +1 -0
  1550. package/dist/setup/cli/triggers_state.js +119 -0
  1551. package/dist/setup/cli/triggers_state.js.map +1 -0
  1552. package/dist/setup/cli/triggers_synth.d.ts +19 -0
  1553. package/dist/setup/cli/triggers_synth.d.ts.map +1 -0
  1554. package/dist/setup/cli/triggers_synth.js +70 -0
  1555. package/dist/setup/cli/triggers_synth.js.map +1 -0
  1556. package/dist/setup/cli/webhooks.d.ts +42 -0
  1557. package/dist/setup/cli/webhooks.d.ts.map +1 -0
  1558. package/dist/setup/cli/webhooks.js +77 -0
  1559. package/dist/setup/cli/webhooks.js.map +1 -0
  1560. package/dist/setup/cli/webhooks_actions.d.ts +86 -0
  1561. package/dist/setup/cli/webhooks_actions.d.ts.map +1 -0
  1562. package/dist/setup/cli/webhooks_actions.js +301 -0
  1563. package/dist/setup/cli/webhooks_actions.js.map +1 -0
  1564. package/dist/setup/cli/webhooks_state.d.ts +79 -0
  1565. package/dist/setup/cli/webhooks_state.d.ts.map +1 -0
  1566. package/dist/setup/cli/webhooks_state.js +73 -0
  1567. package/dist/setup/cli/webhooks_state.js.map +1 -0
  1568. package/dist/setup/index.d.ts +9 -0
  1569. package/dist/setup/index.d.ts.map +1 -0
  1570. package/dist/setup/index.js +9 -0
  1571. package/dist/setup/index.js.map +1 -0
  1572. package/dist/setup/migrate/auto_memory_importer.d.ts +101 -0
  1573. package/dist/setup/migrate/auto_memory_importer.d.ts.map +1 -0
  1574. package/dist/setup/migrate/auto_memory_importer.js +163 -0
  1575. package/dist/setup/migrate/auto_memory_importer.js.map +1 -0
  1576. package/dist/setup/migrate/auto_memory_reader.d.ts +84 -0
  1577. package/dist/setup/migrate/auto_memory_reader.d.ts.map +1 -0
  1578. package/dist/setup/migrate/auto_memory_reader.js +99 -0
  1579. package/dist/setup/migrate/auto_memory_reader.js.map +1 -0
  1580. package/dist/setup/migrate/auto_memory_snapshot.d.ts +33 -0
  1581. package/dist/setup/migrate/auto_memory_snapshot.d.ts.map +1 -0
  1582. package/dist/setup/migrate/auto_memory_snapshot.js +67 -0
  1583. package/dist/setup/migrate/auto_memory_snapshot.js.map +1 -0
  1584. package/dist/setup/migrate/memory_drift.d.ts +45 -0
  1585. package/dist/setup/migrate/memory_drift.d.ts.map +1 -0
  1586. package/dist/setup/migrate/memory_drift.js +92 -0
  1587. package/dist/setup/migrate/memory_drift.js.map +1 -0
  1588. package/dist/setup/migrate/memory_store_handle.d.ts +31 -0
  1589. package/dist/setup/migrate/memory_store_handle.d.ts.map +1 -0
  1590. package/dist/setup/migrate/memory_store_handle.js +93 -0
  1591. package/dist/setup/migrate/memory_store_handle.js.map +1 -0
  1592. package/dist/setup/migrate/migrate-scope.d.ts +25 -0
  1593. package/dist/setup/migrate/migrate-scope.d.ts.map +1 -0
  1594. package/dist/setup/migrate/migrate-scope.js +82 -0
  1595. package/dist/setup/migrate/migrate-scope.js.map +1 -0
  1596. package/dist/setup/schedule_nl.d.ts +88 -0
  1597. package/dist/setup/schedule_nl.d.ts.map +1 -0
  1598. package/dist/setup/schedule_nl.js +183 -0
  1599. package/dist/setup/schedule_nl.js.map +1 -0
  1600. package/dist/setup/wizard/codex-hooks-writer.d.ts +67 -0
  1601. package/dist/setup/wizard/codex-hooks-writer.d.ts.map +1 -0
  1602. package/dist/setup/wizard/codex-hooks-writer.js +104 -0
  1603. package/dist/setup/wizard/codex-hooks-writer.js.map +1 -0
  1604. package/dist/setup/wizard/git-hooks.d.ts +49 -0
  1605. package/dist/setup/wizard/git-hooks.d.ts.map +1 -0
  1606. package/dist/setup/wizard/git-hooks.js +106 -0
  1607. package/dist/setup/wizard/git-hooks.js.map +1 -0
  1608. package/dist/setup/wizard/mcp-hosts.d.ts +44 -0
  1609. package/dist/setup/wizard/mcp-hosts.d.ts.map +1 -0
  1610. package/dist/setup/wizard/mcp-hosts.js +87 -0
  1611. package/dist/setup/wizard/mcp-hosts.js.map +1 -0
  1612. package/dist/setup/wizard/mcp-writer.d.ts +81 -0
  1613. package/dist/setup/wizard/mcp-writer.d.ts.map +1 -0
  1614. package/dist/setup/wizard/mcp-writer.js +115 -0
  1615. package/dist/setup/wizard/mcp-writer.js.map +1 -0
  1616. package/dist/setup/wizard/settings-reader.d.ts +74 -0
  1617. package/dist/setup/wizard/settings-reader.d.ts.map +1 -0
  1618. package/dist/setup/wizard/settings-reader.js +81 -0
  1619. package/dist/setup/wizard/settings-reader.js.map +1 -0
  1620. package/dist/setup/wizard/settings-writer.d.ts +95 -0
  1621. package/dist/setup/wizard/settings-writer.d.ts.map +1 -0
  1622. package/dist/setup/wizard/settings-writer.js +154 -0
  1623. package/dist/setup/wizard/settings-writer.js.map +1 -0
  1624. package/dist/storage/atomic_file.d.ts +3 -0
  1625. package/dist/storage/atomic_file.d.ts.map +1 -0
  1626. package/dist/storage/atomic_file.js +27 -0
  1627. package/dist/storage/atomic_file.js.map +1 -0
  1628. package/dist/system-export.d.ts +65 -0
  1629. package/dist/system-export.d.ts.map +1 -0
  1630. package/dist/system-export.js +194 -0
  1631. package/dist/system-export.js.map +1 -0
  1632. package/dist/utterance/classifier.d.ts +53 -0
  1633. package/dist/utterance/classifier.d.ts.map +1 -0
  1634. package/dist/utterance/classifier.js +184 -0
  1635. package/dist/utterance/classifier.js.map +1 -0
  1636. package/dist/utterance/classifier.test.js +147 -0
  1637. package/dist/workgraph/events.d.ts +12 -0
  1638. package/dist/workgraph/events.d.ts.map +1 -0
  1639. package/dist/workgraph/events.js +90 -0
  1640. package/dist/workgraph/events.js.map +1 -0
  1641. package/dist/workgraph/store.d.ts +15 -0
  1642. package/dist/workgraph/store.d.ts.map +1 -0
  1643. package/dist/workgraph/store.js +195 -0
  1644. package/dist/workgraph/store.js.map +1 -0
  1645. package/dist/workgraph/types.d.ts +49 -0
  1646. package/dist/workgraph/types.d.ts.map +1 -0
  1647. package/dist/workgraph/types.js +2 -0
  1648. package/dist/workgraph/types.js.map +1 -0
  1649. package/docs/load-budget.md +98 -0
  1650. package/docs/pack-runtime.md +1205 -0
  1651. package/docs/skill-grammar-guide.md +646 -0
  1652. package/package.json +145 -0
  1653. package/packs/builtin/coding-flow/PROFILES.md +39 -0
  1654. package/packs/builtin/coding-flow/fsm.yaml +52 -0
  1655. package/packs/builtin/coding-flow/manifest.yaml +29 -0
  1656. package/packs/builtin/coding-flow/skills/entry-and-handoffs/skill.yaml +246 -0
  1657. package/packs/builtin/coding-flow/skills/execute-gate/skill.yaml +71 -0
  1658. package/packs/builtin/coding-flow/skills/flow-health-check/skill.yaml +42 -0
  1659. package/packs/builtin/coding-flow/skills/pause-prevention/skill.yaml +73 -0
  1660. package/packs/builtin/coding-flow/skills/pause-stop-guard/skill.yaml +67 -0
  1661. package/packs/builtin/coding-flow/skills/phase-advance/skill.yaml +28 -0
  1662. package/packs/builtin/coding-flow/skills/phase-audit/skill.yaml +68 -0
  1663. package/packs/builtin/coding-flow/skills/scope-lifecycle/skill.yaml +362 -0
  1664. package/packs/builtin/coding-flow/skills/task-start/skill.yaml +42 -0
  1665. package/packs/builtin/cycle-pack/manifest.yaml +20 -0
  1666. package/packs/builtin/cycle-pack/skills/lesson-capture/prose.md +34 -0
  1667. package/packs/builtin/cycle-pack/skills/lesson-capture/skill.yaml +57 -0
  1668. package/packs/builtin/default-discipline/channels.yaml +8 -0
  1669. package/packs/builtin/default-discipline/drift_response.yaml +51 -0
  1670. package/packs/builtin/default-discipline/manifest.yaml +297 -0
  1671. package/packs/builtin/default-discipline/models.yaml +8 -0
  1672. package/packs/builtin/default-discipline/notifications.yaml +12 -0
  1673. package/packs/builtin/default-discipline/skills/d9-guard/skill.yaml +82 -0
  1674. package/packs/builtin/default-discipline/skills/inbound-greeter/SKILL.md +38 -0
  1675. package/packs/builtin/default-discipline/skills/inbound-greeter/skill.yaml +36 -0
  1676. package/packs/builtin/default-discipline/skills/session-connection-check/SKILL.md +45 -0
  1677. package/packs/builtin/default-discipline/skills/session-connection-check/skill.yaml +55 -0
  1678. package/packs/builtin/default-discipline/skills/workflow/skill.yaml +65 -0
  1679. package/packs/builtin/examples/file-pattern-guard/BEFORE.md +70 -0
  1680. package/packs/builtin/examples/file-pattern-guard/SKILL.md +79 -0
  1681. package/packs/builtin/examples/file-pattern-guard/fixtures/edit_node_modules.expected.json +3 -0
  1682. package/packs/builtin/examples/file-pattern-guard/fixtures/edit_node_modules.input.json +9 -0
  1683. package/packs/builtin/examples/file-pattern-guard/fixtures/edit_src.expected.json +3 -0
  1684. package/packs/builtin/examples/file-pattern-guard/fixtures/edit_src.input.json +9 -0
  1685. package/packs/builtin/examples/file-pattern-guard/manifest.yaml +18 -0
  1686. package/packs/builtin/examples/file-pattern-guard/skills/guard/skill.yaml +33 -0
  1687. package/packs/builtin/examples/multi-clause-drift-detector/BEFORE.md +62 -0
  1688. package/packs/builtin/examples/multi-clause-drift-detector/SKILL.md +90 -0
  1689. package/packs/builtin/examples/multi-clause-drift-detector/fixtures/drift_no_verify.expected.json +3 -0
  1690. package/packs/builtin/examples/multi-clause-drift-detector/fixtures/drift_no_verify.input.json +18 -0
  1691. package/packs/builtin/examples/multi-clause-drift-detector/fixtures/drift_with_verify.expected.json +3 -0
  1692. package/packs/builtin/examples/multi-clause-drift-detector/fixtures/drift_with_verify.input.json +18 -0
  1693. package/packs/builtin/examples/multi-clause-drift-detector/manifest.yaml +18 -0
  1694. package/packs/builtin/examples/multi-clause-drift-detector/skills/drift/skill.yaml +60 -0
  1695. package/packs/builtin/examples/tool-history-correlator/BEFORE.md +73 -0
  1696. package/packs/builtin/examples/tool-history-correlator/SKILL.md +85 -0
  1697. package/packs/builtin/examples/tool-history-correlator/fixtures/few_bash.expected.json +3 -0
  1698. package/packs/builtin/examples/tool-history-correlator/fixtures/few_bash.input.json +10 -0
  1699. package/packs/builtin/examples/tool-history-correlator/fixtures/many_bash.expected.json +3 -0
  1700. package/packs/builtin/examples/tool-history-correlator/fixtures/many_bash.input.json +10 -0
  1701. package/packs/builtin/examples/tool-history-correlator/manifest.yaml +18 -0
  1702. package/packs/builtin/examples/tool-history-correlator/skills/correlator/skill.yaml +46 -0
  1703. package/packs/builtin/focused-atomic-design/README.md +21 -0
  1704. package/packs/builtin/focused-atomic-design/manifest.yaml +151 -0
  1705. package/packs/builtin/focused-react-19/README.md +36 -0
  1706. package/packs/builtin/focused-react-19/manifest.yaml +171 -0
  1707. package/packs/builtin/focused-typescript-strict/README.md +21 -0
  1708. package/packs/builtin/focused-typescript-strict/manifest.yaml +163 -0
  1709. package/packs/builtin/frontend-react-19-atomic/README.md +61 -0
  1710. package/packs/builtin/frontend-react-19-atomic/manifest.yaml +124 -0
  1711. package/packs/builtin/general/chat_agent.yaml +16 -0
  1712. package/packs/builtin/general/manifest.yaml +39 -0
  1713. package/packs/builtin/general/system_prompt.md +11 -0
  1714. package/packs/builtin/pack-architect/SKILL.md +74 -0
  1715. package/packs/builtin/pack-architect/manifest.yaml +53 -0
  1716. package/packs/builtin/pack-architect/skills/fsm-author-walkthrough/skill.yaml +45 -0
  1717. package/packs/builtin/pack-architect/skills/manifest-author-walkthrough/skill.yaml +50 -0
  1718. package/packs/builtin/pack-architect/skills/pack-scope-elicit/skill.yaml +44 -0
  1719. package/packs/builtin/pack-architect/skills/skill-yaml-author-walkthrough/skill.yaml +52 -0
  1720. package/packs/builtin/pack-architect/team.yaml +84 -0
  1721. package/packs/builtin/scope-architect/manifest.yaml +43 -0
  1722. package/packs/builtin/scope-architect/skills/inline-spec-block/skill.yaml +56 -0
  1723. package/packs/builtin/scope-architect/skills/pack-skill-authoring/skill.yaml +83 -0
  1724. package/packs/builtin/scope-architect/skills/pre-research-authoring/skill.yaml +142 -0
  1725. package/packs/builtin/scope-architect/skills/scope-before-code/skill.yaml +34 -0
  1726. package/packs/builtin/scope-architect/skills/scope-detect/skill.yaml +73 -0
  1727. package/packs/builtin/scope-architect/skills/task-list-generated/skill.yaml +28 -0
  1728. package/packs/builtin/scope-architect/skills/taskcreate-spec-required/skill.yaml +27 -0
  1729. package/packs/builtin/scope-architect/team.yaml +65 -0
  1730. package/packs/builtin/seo-aeo-expert/drift_response.yaml +11 -0
  1731. package/packs/builtin/seo-aeo-expert/fixtures/bot-policy-guard/citation_allow_pass.expected.json +3 -0
  1732. package/packs/builtin/seo-aeo-expert/fixtures/bot-policy-guard/citation_allow_pass.input.json +10 -0
  1733. package/packs/builtin/seo-aeo-expert/fixtures/bot-policy-guard/citation_cross_section_pass.expected.json +3 -0
  1734. package/packs/builtin/seo-aeo-expert/fixtures/bot-policy-guard/citation_cross_section_pass.input.json +10 -0
  1735. package/packs/builtin/seo-aeo-expert/fixtures/bot-policy-guard/citation_robots_fire.expected.json +3 -0
  1736. package/packs/builtin/seo-aeo-expert/fixtures/bot-policy-guard/citation_robots_fire.input.json +10 -0
  1737. package/packs/builtin/seo-aeo-expert/fixtures/bot-policy-guard/training_fire.expected.json +3 -0
  1738. package/packs/builtin/seo-aeo-expert/fixtures/bot-policy-guard/training_fire.input.json +10 -0
  1739. package/packs/builtin/seo-aeo-expert/fixtures/bot-policy-guard/training_unrelated_pass.expected.json +3 -0
  1740. package/packs/builtin/seo-aeo-expert/fixtures/bot-policy-guard/training_unrelated_pass.input.json +10 -0
  1741. package/packs/builtin/seo-aeo-expert/fixtures/bot-policy-guard/wildcard_fire.expected.json +3 -0
  1742. package/packs/builtin/seo-aeo-expert/fixtures/bot-policy-guard/wildcard_fire.input.json +10 -0
  1743. package/packs/builtin/seo-aeo-expert/fixtures/bot-policy-guard/wildcard_path_pass.expected.json +3 -0
  1744. package/packs/builtin/seo-aeo-expert/fixtures/bot-policy-guard/wildcard_path_pass.input.json +10 -0
  1745. package/packs/builtin/seo-aeo-expert/fixtures/ground-truth-gate/no_claims_pass.expected.json +3 -0
  1746. package/packs/builtin/seo-aeo-expert/fixtures/ground-truth-gate/no_claims_pass.input.json +14 -0
  1747. package/packs/builtin/seo-aeo-expert/fixtures/ground-truth-gate/offer_no_doc_fire.expected.json +3 -0
  1748. package/packs/builtin/seo-aeo-expert/fixtures/ground-truth-gate/offer_no_doc_fire.input.json +14 -0
  1749. package/packs/builtin/seo-aeo-expert/fixtures/ground-truth-gate/offer_with_doc_pass.expected.json +3 -0
  1750. package/packs/builtin/seo-aeo-expert/fixtures/ground-truth-gate/offer_with_doc_pass.input.json +14 -0
  1751. package/packs/builtin/seo-aeo-expert/fixtures/meta-quality-gate/desc_long_fire.expected.json +3 -0
  1752. package/packs/builtin/seo-aeo-expert/fixtures/meta-quality-gate/desc_long_fire.input.json +10 -0
  1753. package/packs/builtin/seo-aeo-expert/fixtures/meta-quality-gate/desc_ok_pass.expected.json +3 -0
  1754. package/packs/builtin/seo-aeo-expert/fixtures/meta-quality-gate/desc_ok_pass.input.json +10 -0
  1755. package/packs/builtin/seo-aeo-expert/fixtures/meta-quality-gate/img_alt_fire.expected.json +3 -0
  1756. package/packs/builtin/seo-aeo-expert/fixtures/meta-quality-gate/img_alt_fire.input.json +10 -0
  1757. package/packs/builtin/seo-aeo-expert/fixtures/meta-quality-gate/img_alt_pass.expected.json +3 -0
  1758. package/packs/builtin/seo-aeo-expert/fixtures/meta-quality-gate/img_alt_pass.input.json +10 -0
  1759. package/packs/builtin/seo-aeo-expert/fixtures/meta-quality-gate/title_long_fire.expected.json +3 -0
  1760. package/packs/builtin/seo-aeo-expert/fixtures/meta-quality-gate/title_long_fire.input.json +10 -0
  1761. package/packs/builtin/seo-aeo-expert/fixtures/meta-quality-gate/title_ok_pass.expected.json +3 -0
  1762. package/packs/builtin/seo-aeo-expert/fixtures/meta-quality-gate/title_ok_pass.input.json +10 -0
  1763. package/packs/builtin/seo-aeo-expert/fixtures/page-removal-guard/rm_other_pass.expected.json +3 -0
  1764. package/packs/builtin/seo-aeo-expert/fixtures/page-removal-guard/rm_other_pass.input.json +6 -0
  1765. package/packs/builtin/seo-aeo-expert/fixtures/page-removal-guard/rm_page_fire.expected.json +3 -0
  1766. package/packs/builtin/seo-aeo-expert/fixtures/page-removal-guard/rm_page_fire.input.json +6 -0
  1767. package/packs/builtin/seo-aeo-expert/fixtures/pre-push-seo-checklist/checklist_fire.expected.json +3 -0
  1768. package/packs/builtin/seo-aeo-expert/fixtures/pre-push-seo-checklist/checklist_fire.input.json +7 -0
  1769. package/packs/builtin/seo-aeo-expert/fixtures/pre-push-seo-checklist/checklist_shipped_pass.expected.json +3 -0
  1770. package/packs/builtin/seo-aeo-expert/fixtures/pre-push-seo-checklist/checklist_shipped_pass.input.json +7 -0
  1771. package/packs/builtin/seo-aeo-expert/fixtures/pre-push-seo-checklist/push_fixing_fire.expected.json +3 -0
  1772. package/packs/builtin/seo-aeo-expert/fixtures/pre-push-seo-checklist/push_fixing_fire.input.json +7 -0
  1773. package/packs/builtin/seo-aeo-expert/fixtures/pre-push-seo-checklist/push_idle_pass.expected.json +3 -0
  1774. package/packs/builtin/seo-aeo-expert/fixtures/pre-push-seo-checklist/push_idle_pass.input.json +7 -0
  1775. package/packs/builtin/seo-aeo-expert/fixtures/run.mjs +123 -0
  1776. package/packs/builtin/seo-aeo-expert/fixtures/schema-validation-gate/lint_product_fire.expected.json +3 -0
  1777. package/packs/builtin/seo-aeo-expert/fixtures/schema-validation-gate/lint_product_fire.input.json +10 -0
  1778. package/packs/builtin/seo-aeo-expert/fixtures/schema-validation-gate/lint_product_pass.expected.json +3 -0
  1779. package/packs/builtin/seo-aeo-expert/fixtures/schema-validation-gate/lint_product_pass.input.json +10 -0
  1780. package/packs/builtin/seo-aeo-expert/fixtures/schema-validation-gate/lint_rating_fire.expected.json +3 -0
  1781. package/packs/builtin/seo-aeo-expert/fixtures/schema-validation-gate/lint_rating_fire.input.json +10 -0
  1782. package/packs/builtin/seo-aeo-expert/fixtures/schema-validation-gate/lint_rating_pass.expected.json +3 -0
  1783. package/packs/builtin/seo-aeo-expert/fixtures/schema-validation-gate/lint_rating_pass.input.json +10 -0
  1784. package/packs/builtin/seo-aeo-expert/fixtures/schema-validation-gate/schema_touched_fire.expected.json +3 -0
  1785. package/packs/builtin/seo-aeo-expert/fixtures/schema-validation-gate/schema_touched_fire.input.json +12 -0
  1786. package/packs/builtin/seo-aeo-expert/fixtures/schema-validation-gate/schema_touched_in_cycle_pass.expected.json +3 -0
  1787. package/packs/builtin/seo-aeo-expert/fixtures/schema-validation-gate/schema_touched_in_cycle_pass.input.json +12 -0
  1788. package/packs/builtin/seo-aeo-expert/fixtures/schema-validation-gate/validation_run_fire.expected.json +3 -0
  1789. package/packs/builtin/seo-aeo-expert/fixtures/schema-validation-gate/validation_run_fire.input.json +6 -0
  1790. package/packs/builtin/seo-aeo-expert/fixtures/schema-validation-gate/validation_run_pass.expected.json +3 -0
  1791. package/packs/builtin/seo-aeo-expert/fixtures/schema-validation-gate/validation_run_pass.input.json +6 -0
  1792. package/packs/builtin/seo-aeo-expert/fixtures/ssr-regression-guard/fetch_effect_fire.expected.json +3 -0
  1793. package/packs/builtin/seo-aeo-expert/fixtures/ssr-regression-guard/fetch_effect_fire.input.json +10 -0
  1794. package/packs/builtin/seo-aeo-expert/fixtures/ssr-regression-guard/organism_leaf_pass.expected.json +3 -0
  1795. package/packs/builtin/seo-aeo-expert/fixtures/ssr-regression-guard/organism_leaf_pass.input.json +10 -0
  1796. package/packs/builtin/seo-aeo-expert/fixtures/ssr-regression-guard/server_page_pass.expected.json +3 -0
  1797. package/packs/builtin/seo-aeo-expert/fixtures/ssr-regression-guard/server_page_pass.input.json +10 -0
  1798. package/packs/builtin/seo-aeo-expert/fixtures/ssr-regression-guard/use_client_page_fire.expected.json +3 -0
  1799. package/packs/builtin/seo-aeo-expert/fixtures/ssr-regression-guard/use_client_page_fire.input.json +10 -0
  1800. package/packs/builtin/seo-aeo-expert/fixtures/stale-tactic-guard/clean_pass.expected.json +3 -0
  1801. package/packs/builtin/seo-aeo-expert/fixtures/stale-tactic-guard/clean_pass.input.json +10 -0
  1802. package/packs/builtin/seo-aeo-expert/fixtures/stale-tactic-guard/docs_exempt_pass.expected.json +3 -0
  1803. package/packs/builtin/seo-aeo-expert/fixtures/stale-tactic-guard/docs_exempt_pass.input.json +10 -0
  1804. package/packs/builtin/seo-aeo-expert/fixtures/stale-tactic-guard/faq_schema_fire.expected.json +3 -0
  1805. package/packs/builtin/seo-aeo-expert/fixtures/stale-tactic-guard/faq_schema_fire.input.json +10 -0
  1806. package/packs/builtin/seo-aeo-expert/fixtures/stale-tactic-guard/llms_claim_fire.expected.json +3 -0
  1807. package/packs/builtin/seo-aeo-expert/fixtures/stale-tactic-guard/llms_claim_fire.input.json +10 -0
  1808. package/packs/builtin/seo-aeo-expert/fsm.yaml +43 -0
  1809. package/packs/builtin/seo-aeo-expert/lessons/ai-mode-default-fanout/lesson.md +16 -0
  1810. package/packs/builtin/seo-aeo-expert/lessons/bing-is-chatgpt/lesson.md +15 -0
  1811. package/packs/builtin/seo-aeo-expert/lessons/bot-taxonomy-three-classes/lesson.md +21 -0
  1812. package/packs/builtin/seo-aeo-expert/lessons/chunk-shape/lesson.md +18 -0
  1813. package/packs/builtin/seo-aeo-expert/lessons/citation-over-rank/lesson.md +19 -0
  1814. package/packs/builtin/seo-aeo-expert/lessons/cloudflare-default-block/lesson.md +18 -0
  1815. package/packs/builtin/seo-aeo-expert/lessons/deprecated-tactics-2026/lesson.md +32 -0
  1816. package/packs/builtin/seo-aeo-expert/lessons/engine-divergence/lesson.md +22 -0
  1817. package/packs/builtin/seo-aeo-expert/lessons/freehand-schema-forbidden/lesson.md +21 -0
  1818. package/packs/builtin/seo-aeo-expert/lessons/geo-content-levers/lesson.md +20 -0
  1819. package/packs/builtin/seo-aeo-expert/lessons/google-official-ai-guide/lesson.md +17 -0
  1820. package/packs/builtin/seo-aeo-expert/lessons/llms-txt-dead/lesson.md +19 -0
  1821. package/packs/builtin/seo-aeo-expert/lessons/local-ai-gap/lesson.md +20 -0
  1822. package/packs/builtin/seo-aeo-expert/lessons/measurement-discontinuities/lesson.md +29 -0
  1823. package/packs/builtin/seo-aeo-expert/lessons/mentions-beat-backlinks/lesson.md +16 -0
  1824. package/packs/builtin/seo-aeo-expert/lessons/no-js-execution/lesson.md +18 -0
  1825. package/packs/builtin/seo-aeo-expert/lessons/schema-actual-role/lesson.md +22 -0
  1826. package/packs/builtin/seo-aeo-expert/lessons/schema-claims-need-ground-truth/lesson.md +34 -0
  1827. package/packs/builtin/seo-aeo-expert/lessons/ugc-citation-channels/lesson.md +22 -0
  1828. package/packs/builtin/seo-aeo-expert/manifest.yaml +128 -0
  1829. package/packs/builtin/seo-aeo-expert/models.yaml +19 -0
  1830. package/packs/builtin/seo-aeo-expert/skills/bot-policy-guard/skill.yaml +159 -0
  1831. package/packs/builtin/seo-aeo-expert/skills/ground-truth-gate/skill.yaml +66 -0
  1832. package/packs/builtin/seo-aeo-expert/skills/meta-quality-gate/skill.yaml +137 -0
  1833. package/packs/builtin/seo-aeo-expert/skills/page-removal-guard/skill.yaml +30 -0
  1834. package/packs/builtin/seo-aeo-expert/skills/pre-push-seo-checklist/skill.yaml +61 -0
  1835. package/packs/builtin/seo-aeo-expert/skills/schema-validation-gate/skill.yaml +163 -0
  1836. package/packs/builtin/seo-aeo-expert/skills/ssr-regression-guard/skill.yaml +58 -0
  1837. package/packs/builtin/seo-aeo-expert/skills/stale-tactic-guard/skill.yaml +72 -0
  1838. package/packs/builtin/task-spec-author/SKILL.md +469 -0
  1839. package/packs/builtin/task-spec-author/manifest.yaml +41 -0
  1840. package/packs/builtin/task-spec-author/skills-catalog.md +115 -0
  1841. package/packs/builtin/task-spec-author/team.yaml +33 -0
  1842. package/schemas/channels.schema.json +13 -0
  1843. package/schemas/drift_response.schema.json +47 -0
  1844. package/schemas/manifest.schema.json +904 -0
  1845. package/schemas/models.schema.json +68 -0
  1846. package/schemas/notifications.schema.json +64 -0
  1847. package/schemas/skill.schema.json +556 -0
@@ -0,0 +1,1988 @@
1
+ /**
2
+ * Core runtime types for the opensquid substrate.
3
+ *
4
+ * Every type is paired with a Zod schema and a `z.infer` line so that TS and
5
+ * runtime validation never drift apart. Schemas validate untrusted input
6
+ * (event payloads from hosts, pack YAML, RAG payloads); inferred types flow
7
+ * through the rest of the runtime as compile-time guarantees.
8
+ *
9
+ * Type → source-of-truth in `docs/opensquid-real-design.md`:
10
+ *
11
+ * Event — §"The architecture in six concepts" (concept 1)
12
+ * eight kinds: tool_call | prompt_submit | session_end | stop
13
+ * | schedule | webhook | inbound_channel | file_changed
14
+ * (AUTO.1 widened the union from 4 → 8 to back the four
15
+ * non-tool-call triggers: scheduler ticks, webhook intakes,
16
+ * inbound channel messages, and file-change watchers.)
17
+ * Verdict — §"Anti-drift split" (rule output)
18
+ * level: pass | block | warn | surface
19
+ * ProcessStep — §"Skill format" (rules are processes, not typed checks)
20
+ * Rule — §"The architecture in six concepts" (concept 3)
21
+ * kind: track_check (deterministic) | destination_check (LLM-judged)
22
+ * Skill — §"Skill format" + §"Skill properties"
23
+ * load mode + when_to_load + unloads_when + rules + prose
24
+ * Pack — §"Pack format" + §"Manifest fields"
25
+ * name / version / scope / goal required; rest defaulted
26
+ * RuleResult — TS-only union (never crosses a process boundary, so no schema)
27
+ *
28
+ * Looseness is deliberate at `ProcessStep.args` and `ToolCallEvent.args`:
29
+ * tightening means migrating every primitive. The task spec calls this out
30
+ * (Task 1.1 risk callout). Per-function refinement lands in Task 1.2.
31
+ */
32
+ import { z } from 'zod';
33
+ export declare const VerdictLevel: z.ZodEnum<["pass", "block", "warn", "surface", "directive"]>;
34
+ export type VerdictLevel = z.infer<typeof VerdictLevel>;
35
+ /**
36
+ * NextAction — payload of a `level: 'directive'` verdict. Names the next
37
+ * skill OR tool the agent should run (skill XOR tool, never both); `args`
38
+ * threads the call through; `rationale` is the mandatory plain-English
39
+ * explanation that lands in the agent's pre-prompt context.
40
+ *
41
+ * Per T-ASC L7 + project_opensquid_no_agent_loop: opensquid emits the
42
+ * directive, the agent dispatches. The skill name here is informational —
43
+ * opensquid does NOT invoke it.
44
+ */
45
+ /**
46
+ * DPC.1 (2026-05-30) — extended to 3-way XOR (skill / tool / profession).
47
+ * The `profession` field points at an opensquid built-in profession pack
48
+ * (e.g. `task-spec-author`, `scope-architect`) under `packs/builtin/<name>/`
49
+ * or at a user-scope profession pack under `~/.opensquid/packs/<name>/`.
50
+ * Chain-handoff directives (T-ASC ASC.5) use `profession:` to route the
51
+ * agent to spawn_subagent with the named pack's team-role manifest. The
52
+ * agent loads the pack, applies the role's `instructions` + pinned skills,
53
+ * runs the subagent — opensquid stays passive per
54
+ * [[project_opensquid_no_agent_loop]].
55
+ */
56
+ export declare const NextAction: z.ZodEffects<z.ZodObject<{
57
+ skill: z.ZodOptional<z.ZodString>;
58
+ tool: z.ZodOptional<z.ZodString>;
59
+ profession: z.ZodOptional<z.ZodString>;
60
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
61
+ rationale: z.ZodString;
62
+ }, "strict", z.ZodTypeAny, {
63
+ rationale: string;
64
+ tool?: string | undefined;
65
+ args?: Record<string, unknown> | undefined;
66
+ profession?: string | undefined;
67
+ skill?: string | undefined;
68
+ }, {
69
+ rationale: string;
70
+ tool?: string | undefined;
71
+ args?: Record<string, unknown> | undefined;
72
+ profession?: string | undefined;
73
+ skill?: string | undefined;
74
+ }>, {
75
+ rationale: string;
76
+ tool?: string | undefined;
77
+ args?: Record<string, unknown> | undefined;
78
+ profession?: string | undefined;
79
+ skill?: string | undefined;
80
+ }, {
81
+ rationale: string;
82
+ tool?: string | undefined;
83
+ args?: Record<string, unknown> | undefined;
84
+ profession?: string | undefined;
85
+ skill?: string | undefined;
86
+ }>;
87
+ export type NextAction = z.infer<typeof NextAction>;
88
+ export declare const Verdict: z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
89
+ level: z.ZodLiteral<"pass">;
90
+ message: z.ZodString;
91
+ ruleId: z.ZodOptional<z.ZodString>;
92
+ }, "strip", z.ZodTypeAny, {
93
+ message: string;
94
+ level: "pass";
95
+ ruleId?: string | undefined;
96
+ }, {
97
+ message: string;
98
+ level: "pass";
99
+ ruleId?: string | undefined;
100
+ }>, z.ZodObject<{
101
+ level: z.ZodLiteral<"block">;
102
+ message: z.ZodString;
103
+ ruleId: z.ZodOptional<z.ZodString>;
104
+ }, "strip", z.ZodTypeAny, {
105
+ message: string;
106
+ level: "block";
107
+ ruleId?: string | undefined;
108
+ }, {
109
+ message: string;
110
+ level: "block";
111
+ ruleId?: string | undefined;
112
+ }>, z.ZodObject<{
113
+ level: z.ZodLiteral<"warn">;
114
+ message: z.ZodString;
115
+ ruleId: z.ZodOptional<z.ZodString>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ message: string;
118
+ level: "warn";
119
+ ruleId?: string | undefined;
120
+ }, {
121
+ message: string;
122
+ level: "warn";
123
+ ruleId?: string | undefined;
124
+ }>, z.ZodObject<{
125
+ level: z.ZodLiteral<"surface">;
126
+ message: z.ZodString;
127
+ ruleId: z.ZodOptional<z.ZodString>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ message: string;
130
+ level: "surface";
131
+ ruleId?: string | undefined;
132
+ }, {
133
+ message: string;
134
+ level: "surface";
135
+ ruleId?: string | undefined;
136
+ }>, z.ZodObject<{
137
+ level: z.ZodLiteral<"directive">;
138
+ next_action: z.ZodEffects<z.ZodObject<{
139
+ skill: z.ZodOptional<z.ZodString>;
140
+ tool: z.ZodOptional<z.ZodString>;
141
+ profession: z.ZodOptional<z.ZodString>;
142
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
143
+ rationale: z.ZodString;
144
+ }, "strict", z.ZodTypeAny, {
145
+ rationale: string;
146
+ tool?: string | undefined;
147
+ args?: Record<string, unknown> | undefined;
148
+ profession?: string | undefined;
149
+ skill?: string | undefined;
150
+ }, {
151
+ rationale: string;
152
+ tool?: string | undefined;
153
+ args?: Record<string, unknown> | undefined;
154
+ profession?: string | undefined;
155
+ skill?: string | undefined;
156
+ }>, {
157
+ rationale: string;
158
+ tool?: string | undefined;
159
+ args?: Record<string, unknown> | undefined;
160
+ profession?: string | undefined;
161
+ skill?: string | undefined;
162
+ }, {
163
+ rationale: string;
164
+ tool?: string | undefined;
165
+ args?: Record<string, unknown> | undefined;
166
+ profession?: string | undefined;
167
+ skill?: string | undefined;
168
+ }>;
169
+ ruleId: z.ZodOptional<z.ZodString>;
170
+ }, "strip", z.ZodTypeAny, {
171
+ level: "directive";
172
+ next_action: {
173
+ rationale: string;
174
+ tool?: string | undefined;
175
+ args?: Record<string, unknown> | undefined;
176
+ profession?: string | undefined;
177
+ skill?: string | undefined;
178
+ };
179
+ ruleId?: string | undefined;
180
+ }, {
181
+ level: "directive";
182
+ next_action: {
183
+ rationale: string;
184
+ tool?: string | undefined;
185
+ args?: Record<string, unknown> | undefined;
186
+ profession?: string | undefined;
187
+ skill?: string | undefined;
188
+ };
189
+ ruleId?: string | undefined;
190
+ }>]>;
191
+ export type Verdict = z.infer<typeof Verdict>;
192
+ /** Verdicts that carry a human-readable message (every level except directive). */
193
+ export type MessageVerdict = Extract<Verdict, {
194
+ message: string;
195
+ }>;
196
+ /** Directive-level verdict (level: 'directive', carries next_action). */
197
+ export type DirectiveVerdict = Extract<Verdict, {
198
+ level: 'directive';
199
+ }>;
200
+ /**
201
+ * A directive emitted by a rule and aggregated by the dispatcher. Peer to
202
+ * the inject_context aggregation: directives accumulate in
203
+ * `DispatchResult.directives` across the walk and the UserPromptSubmit hook
204
+ * bin serializes them into the envelope's additionalContext.
205
+ */
206
+ export interface Directive {
207
+ next_action: NextAction;
208
+ ruleId?: string;
209
+ }
210
+ export { DEFAULT_TRIGGERS, Event, EventKind, FileChangedEvent, InboundChannelEvent, PromptSubmitEvent, ScheduleEvent, SessionEndEvent, SessionStartEvent, StopEvent, ToolCallEvent, Trigger, WebhookEvent, defaultTriggers, } from './event.js';
211
+ export { SkillRequires } from './skill_requires.js';
212
+ export type { RequiresCache } from './skill_requires.js';
213
+ export declare const ProcessStep: z.ZodObject<{
214
+ call: z.ZodString;
215
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
216
+ as: z.ZodOptional<z.ZodString>;
217
+ if: z.ZodOptional<z.ZodString>;
218
+ on_empty: z.ZodOptional<z.ZodEnum<["pass", "block", "continue"]>>;
219
+ on_error: z.ZodOptional<z.ZodEnum<["abort", "continue"]>>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ call: string;
222
+ args?: Record<string, unknown> | undefined;
223
+ as?: string | undefined;
224
+ if?: string | undefined;
225
+ on_empty?: "block" | "pass" | "continue" | undefined;
226
+ on_error?: "continue" | "abort" | undefined;
227
+ }, {
228
+ call: string;
229
+ args?: Record<string, unknown> | undefined;
230
+ as?: string | undefined;
231
+ if?: string | undefined;
232
+ on_empty?: "block" | "pass" | "continue" | undefined;
233
+ on_error?: "continue" | "abort" | undefined;
234
+ }>;
235
+ export type ProcessStep = z.infer<typeof ProcessStep>;
236
+ export declare const RuleKind: z.ZodEnum<["track_check", "destination_check"]>;
237
+ export type RuleKind = z.infer<typeof RuleKind>;
238
+ export declare const TrackCheckRule: z.ZodObject<{
239
+ id: z.ZodString;
240
+ kind: z.ZodDefault<z.ZodLiteral<"track_check">>;
241
+ requires: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
242
+ kind: z.ZodLiteral<"automation_mode_on">;
243
+ }, "strict", z.ZodTypeAny, {
244
+ kind: "automation_mode_on";
245
+ }, {
246
+ kind: "automation_mode_on";
247
+ }>, z.ZodObject<{
248
+ kind: z.ZodLiteral<"active_task_present">;
249
+ }, "strict", z.ZodTypeAny, {
250
+ kind: "active_task_present";
251
+ }, {
252
+ kind: "active_task_present";
253
+ }>]>, "many">>;
254
+ process: z.ZodArray<z.ZodObject<{
255
+ call: z.ZodString;
256
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
257
+ as: z.ZodOptional<z.ZodString>;
258
+ if: z.ZodOptional<z.ZodString>;
259
+ on_empty: z.ZodOptional<z.ZodEnum<["pass", "block", "continue"]>>;
260
+ on_error: z.ZodOptional<z.ZodEnum<["abort", "continue"]>>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ call: string;
263
+ args?: Record<string, unknown> | undefined;
264
+ as?: string | undefined;
265
+ if?: string | undefined;
266
+ on_empty?: "block" | "pass" | "continue" | undefined;
267
+ on_error?: "continue" | "abort" | undefined;
268
+ }, {
269
+ call: string;
270
+ args?: Record<string, unknown> | undefined;
271
+ as?: string | undefined;
272
+ if?: string | undefined;
273
+ on_empty?: "block" | "pass" | "continue" | undefined;
274
+ on_error?: "continue" | "abort" | undefined;
275
+ }>, "many">;
276
+ }, "strip", z.ZodTypeAny, {
277
+ kind: "track_check";
278
+ id: string;
279
+ requires: ({
280
+ kind: "automation_mode_on";
281
+ } | {
282
+ kind: "active_task_present";
283
+ })[];
284
+ process: {
285
+ call: string;
286
+ args?: Record<string, unknown> | undefined;
287
+ as?: string | undefined;
288
+ if?: string | undefined;
289
+ on_empty?: "block" | "pass" | "continue" | undefined;
290
+ on_error?: "continue" | "abort" | undefined;
291
+ }[];
292
+ }, {
293
+ id: string;
294
+ process: {
295
+ call: string;
296
+ args?: Record<string, unknown> | undefined;
297
+ as?: string | undefined;
298
+ if?: string | undefined;
299
+ on_empty?: "block" | "pass" | "continue" | undefined;
300
+ on_error?: "continue" | "abort" | undefined;
301
+ }[];
302
+ kind?: "track_check" | undefined;
303
+ requires?: ({
304
+ kind: "automation_mode_on";
305
+ } | {
306
+ kind: "active_task_present";
307
+ })[] | undefined;
308
+ }>;
309
+ export type TrackCheckRule = z.infer<typeof TrackCheckRule>;
310
+ export declare const DestinationCheckRule: z.ZodObject<{
311
+ id: z.ZodString;
312
+ kind: z.ZodLiteral<"destination_check">;
313
+ interval: z.ZodObject<{
314
+ every_n_tool_calls: z.ZodNumber;
315
+ }, "strip", z.ZodTypeAny, {
316
+ every_n_tool_calls: number;
317
+ }, {
318
+ every_n_tool_calls: number;
319
+ }>;
320
+ model_alias: z.ZodDefault<z.ZodString>;
321
+ prompt_template: z.ZodString;
322
+ }, "strip", z.ZodTypeAny, {
323
+ kind: "destination_check";
324
+ id: string;
325
+ model_alias: string;
326
+ interval: {
327
+ every_n_tool_calls: number;
328
+ };
329
+ prompt_template: string;
330
+ }, {
331
+ kind: "destination_check";
332
+ id: string;
333
+ interval: {
334
+ every_n_tool_calls: number;
335
+ };
336
+ prompt_template: string;
337
+ model_alias?: string | undefined;
338
+ }>;
339
+ export type DestinationCheckRule = z.infer<typeof DestinationCheckRule>;
340
+ export declare const Rule: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
341
+ id: z.ZodString;
342
+ kind: z.ZodDefault<z.ZodLiteral<"track_check">>;
343
+ requires: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
344
+ kind: z.ZodLiteral<"automation_mode_on">;
345
+ }, "strict", z.ZodTypeAny, {
346
+ kind: "automation_mode_on";
347
+ }, {
348
+ kind: "automation_mode_on";
349
+ }>, z.ZodObject<{
350
+ kind: z.ZodLiteral<"active_task_present">;
351
+ }, "strict", z.ZodTypeAny, {
352
+ kind: "active_task_present";
353
+ }, {
354
+ kind: "active_task_present";
355
+ }>]>, "many">>;
356
+ process: z.ZodArray<z.ZodObject<{
357
+ call: z.ZodString;
358
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
359
+ as: z.ZodOptional<z.ZodString>;
360
+ if: z.ZodOptional<z.ZodString>;
361
+ on_empty: z.ZodOptional<z.ZodEnum<["pass", "block", "continue"]>>;
362
+ on_error: z.ZodOptional<z.ZodEnum<["abort", "continue"]>>;
363
+ }, "strip", z.ZodTypeAny, {
364
+ call: string;
365
+ args?: Record<string, unknown> | undefined;
366
+ as?: string | undefined;
367
+ if?: string | undefined;
368
+ on_empty?: "block" | "pass" | "continue" | undefined;
369
+ on_error?: "continue" | "abort" | undefined;
370
+ }, {
371
+ call: string;
372
+ args?: Record<string, unknown> | undefined;
373
+ as?: string | undefined;
374
+ if?: string | undefined;
375
+ on_empty?: "block" | "pass" | "continue" | undefined;
376
+ on_error?: "continue" | "abort" | undefined;
377
+ }>, "many">;
378
+ }, "strip", z.ZodTypeAny, {
379
+ kind: "track_check";
380
+ id: string;
381
+ requires: ({
382
+ kind: "automation_mode_on";
383
+ } | {
384
+ kind: "active_task_present";
385
+ })[];
386
+ process: {
387
+ call: string;
388
+ args?: Record<string, unknown> | undefined;
389
+ as?: string | undefined;
390
+ if?: string | undefined;
391
+ on_empty?: "block" | "pass" | "continue" | undefined;
392
+ on_error?: "continue" | "abort" | undefined;
393
+ }[];
394
+ }, {
395
+ id: string;
396
+ process: {
397
+ call: string;
398
+ args?: Record<string, unknown> | undefined;
399
+ as?: string | undefined;
400
+ if?: string | undefined;
401
+ on_empty?: "block" | "pass" | "continue" | undefined;
402
+ on_error?: "continue" | "abort" | undefined;
403
+ }[];
404
+ kind?: "track_check" | undefined;
405
+ requires?: ({
406
+ kind: "automation_mode_on";
407
+ } | {
408
+ kind: "active_task_present";
409
+ })[] | undefined;
410
+ }>, z.ZodObject<{
411
+ id: z.ZodString;
412
+ kind: z.ZodLiteral<"destination_check">;
413
+ interval: z.ZodObject<{
414
+ every_n_tool_calls: z.ZodNumber;
415
+ }, "strip", z.ZodTypeAny, {
416
+ every_n_tool_calls: number;
417
+ }, {
418
+ every_n_tool_calls: number;
419
+ }>;
420
+ model_alias: z.ZodDefault<z.ZodString>;
421
+ prompt_template: z.ZodString;
422
+ }, "strip", z.ZodTypeAny, {
423
+ kind: "destination_check";
424
+ id: string;
425
+ model_alias: string;
426
+ interval: {
427
+ every_n_tool_calls: number;
428
+ };
429
+ prompt_template: string;
430
+ }, {
431
+ kind: "destination_check";
432
+ id: string;
433
+ interval: {
434
+ every_n_tool_calls: number;
435
+ };
436
+ prompt_template: string;
437
+ model_alias?: string | undefined;
438
+ }>]>, {
439
+ kind: "track_check";
440
+ id: string;
441
+ requires: ({
442
+ kind: "automation_mode_on";
443
+ } | {
444
+ kind: "active_task_present";
445
+ })[];
446
+ process: {
447
+ call: string;
448
+ args?: Record<string, unknown> | undefined;
449
+ as?: string | undefined;
450
+ if?: string | undefined;
451
+ on_empty?: "block" | "pass" | "continue" | undefined;
452
+ on_error?: "continue" | "abort" | undefined;
453
+ }[];
454
+ } | {
455
+ kind: "destination_check";
456
+ id: string;
457
+ model_alias: string;
458
+ interval: {
459
+ every_n_tool_calls: number;
460
+ };
461
+ prompt_template: string;
462
+ }, unknown>;
463
+ export type Rule = z.infer<typeof Rule>;
464
+ export declare const LoadMode: z.ZodEnum<["preload", "lazy"]>;
465
+ export type LoadMode = z.infer<typeof LoadMode>;
466
+ export declare const Skill: z.ZodObject<{
467
+ name: z.ZodString;
468
+ load: z.ZodDefault<z.ZodEnum<["preload", "lazy"]>>;
469
+ when_to_load: z.ZodDefault<z.ZodArray<z.ZodUnknown, "many">>;
470
+ requires: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
471
+ kind: z.ZodLiteral<"automation_mode_on">;
472
+ }, "strict", z.ZodTypeAny, {
473
+ kind: "automation_mode_on";
474
+ }, {
475
+ kind: "automation_mode_on";
476
+ }>, z.ZodObject<{
477
+ kind: z.ZodLiteral<"active_task_present">;
478
+ }, "strict", z.ZodTypeAny, {
479
+ kind: "active_task_present";
480
+ }, {
481
+ kind: "active_task_present";
482
+ }>]>, "many">>;
483
+ unloads_when: z.ZodDefault<z.ZodArray<z.ZodUnknown, "many">>;
484
+ triggers: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
485
+ kind: z.ZodLiteral<"tool_call">;
486
+ }, "strip", z.ZodTypeAny, {
487
+ kind: "tool_call";
488
+ }, {
489
+ kind: "tool_call";
490
+ }>, z.ZodObject<{
491
+ kind: z.ZodLiteral<"post_tool_call">;
492
+ }, "strip", z.ZodTypeAny, {
493
+ kind: "post_tool_call";
494
+ }, {
495
+ kind: "post_tool_call";
496
+ }>, z.ZodObject<{
497
+ kind: z.ZodLiteral<"prompt_submit">;
498
+ }, "strip", z.ZodTypeAny, {
499
+ kind: "prompt_submit";
500
+ }, {
501
+ kind: "prompt_submit";
502
+ }>, z.ZodObject<{
503
+ kind: z.ZodLiteral<"session_end">;
504
+ }, "strip", z.ZodTypeAny, {
505
+ kind: "session_end";
506
+ }, {
507
+ kind: "session_end";
508
+ }>, z.ZodObject<{
509
+ kind: z.ZodLiteral<"stop">;
510
+ }, "strip", z.ZodTypeAny, {
511
+ kind: "stop";
512
+ }, {
513
+ kind: "stop";
514
+ }>, z.ZodObject<{
515
+ kind: z.ZodLiteral<"session_start">;
516
+ }, "strip", z.ZodTypeAny, {
517
+ kind: "session_start";
518
+ }, {
519
+ kind: "session_start";
520
+ }>, z.ZodObject<{
521
+ kind: z.ZodLiteral<"schedule">;
522
+ cron: z.ZodOptional<z.ZodString>;
523
+ cost_tier: z.ZodOptional<z.ZodEnum<["cheap", "balanced", "premium"]>>;
524
+ }, "strip", z.ZodTypeAny, {
525
+ kind: "schedule";
526
+ cron?: string | undefined;
527
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
528
+ }, {
529
+ kind: "schedule";
530
+ cron?: string | undefined;
531
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
532
+ }>, z.ZodObject<{
533
+ kind: z.ZodLiteral<"webhook">;
534
+ path: z.ZodOptional<z.ZodString>;
535
+ cost_tier: z.ZodOptional<z.ZodEnum<["cheap", "balanced", "premium"]>>;
536
+ }, "strip", z.ZodTypeAny, {
537
+ kind: "webhook";
538
+ path?: string | undefined;
539
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
540
+ }, {
541
+ kind: "webhook";
542
+ path?: string | undefined;
543
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
544
+ }>, z.ZodObject<{
545
+ kind: z.ZodLiteral<"inbound_channel">;
546
+ channel: z.ZodOptional<z.ZodString>;
547
+ sender_pattern: z.ZodOptional<z.ZodString>;
548
+ cost_tier: z.ZodOptional<z.ZodEnum<["cheap", "balanced", "premium"]>>;
549
+ }, "strip", z.ZodTypeAny, {
550
+ kind: "inbound_channel";
551
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
552
+ channel?: string | undefined;
553
+ sender_pattern?: string | undefined;
554
+ }, {
555
+ kind: "inbound_channel";
556
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
557
+ channel?: string | undefined;
558
+ sender_pattern?: string | undefined;
559
+ }>, z.ZodObject<{
560
+ kind: z.ZodLiteral<"file_changed">;
561
+ paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
562
+ ignored: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
563
+ cost_tier: z.ZodOptional<z.ZodEnum<["cheap", "balanced", "premium"]>>;
564
+ }, "strip", z.ZodTypeAny, {
565
+ kind: "file_changed";
566
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
567
+ paths?: string[] | undefined;
568
+ ignored?: string[] | undefined;
569
+ }, {
570
+ kind: "file_changed";
571
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
572
+ paths?: string[] | undefined;
573
+ ignored?: string[] | undefined;
574
+ }>]>, "many">>;
575
+ rules: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
576
+ id: z.ZodString;
577
+ kind: z.ZodDefault<z.ZodLiteral<"track_check">>;
578
+ requires: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
579
+ kind: z.ZodLiteral<"automation_mode_on">;
580
+ }, "strict", z.ZodTypeAny, {
581
+ kind: "automation_mode_on";
582
+ }, {
583
+ kind: "automation_mode_on";
584
+ }>, z.ZodObject<{
585
+ kind: z.ZodLiteral<"active_task_present">;
586
+ }, "strict", z.ZodTypeAny, {
587
+ kind: "active_task_present";
588
+ }, {
589
+ kind: "active_task_present";
590
+ }>]>, "many">>;
591
+ process: z.ZodArray<z.ZodObject<{
592
+ call: z.ZodString;
593
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
594
+ as: z.ZodOptional<z.ZodString>;
595
+ if: z.ZodOptional<z.ZodString>;
596
+ on_empty: z.ZodOptional<z.ZodEnum<["pass", "block", "continue"]>>;
597
+ on_error: z.ZodOptional<z.ZodEnum<["abort", "continue"]>>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ call: string;
600
+ args?: Record<string, unknown> | undefined;
601
+ as?: string | undefined;
602
+ if?: string | undefined;
603
+ on_empty?: "block" | "pass" | "continue" | undefined;
604
+ on_error?: "continue" | "abort" | undefined;
605
+ }, {
606
+ call: string;
607
+ args?: Record<string, unknown> | undefined;
608
+ as?: string | undefined;
609
+ if?: string | undefined;
610
+ on_empty?: "block" | "pass" | "continue" | undefined;
611
+ on_error?: "continue" | "abort" | undefined;
612
+ }>, "many">;
613
+ }, "strip", z.ZodTypeAny, {
614
+ kind: "track_check";
615
+ id: string;
616
+ requires: ({
617
+ kind: "automation_mode_on";
618
+ } | {
619
+ kind: "active_task_present";
620
+ })[];
621
+ process: {
622
+ call: string;
623
+ args?: Record<string, unknown> | undefined;
624
+ as?: string | undefined;
625
+ if?: string | undefined;
626
+ on_empty?: "block" | "pass" | "continue" | undefined;
627
+ on_error?: "continue" | "abort" | undefined;
628
+ }[];
629
+ }, {
630
+ id: string;
631
+ process: {
632
+ call: string;
633
+ args?: Record<string, unknown> | undefined;
634
+ as?: string | undefined;
635
+ if?: string | undefined;
636
+ on_empty?: "block" | "pass" | "continue" | undefined;
637
+ on_error?: "continue" | "abort" | undefined;
638
+ }[];
639
+ kind?: "track_check" | undefined;
640
+ requires?: ({
641
+ kind: "automation_mode_on";
642
+ } | {
643
+ kind: "active_task_present";
644
+ })[] | undefined;
645
+ }>, z.ZodObject<{
646
+ id: z.ZodString;
647
+ kind: z.ZodLiteral<"destination_check">;
648
+ interval: z.ZodObject<{
649
+ every_n_tool_calls: z.ZodNumber;
650
+ }, "strip", z.ZodTypeAny, {
651
+ every_n_tool_calls: number;
652
+ }, {
653
+ every_n_tool_calls: number;
654
+ }>;
655
+ model_alias: z.ZodDefault<z.ZodString>;
656
+ prompt_template: z.ZodString;
657
+ }, "strip", z.ZodTypeAny, {
658
+ kind: "destination_check";
659
+ id: string;
660
+ model_alias: string;
661
+ interval: {
662
+ every_n_tool_calls: number;
663
+ };
664
+ prompt_template: string;
665
+ }, {
666
+ kind: "destination_check";
667
+ id: string;
668
+ interval: {
669
+ every_n_tool_calls: number;
670
+ };
671
+ prompt_template: string;
672
+ model_alias?: string | undefined;
673
+ }>]>, {
674
+ kind: "track_check";
675
+ id: string;
676
+ requires: ({
677
+ kind: "automation_mode_on";
678
+ } | {
679
+ kind: "active_task_present";
680
+ })[];
681
+ process: {
682
+ call: string;
683
+ args?: Record<string, unknown> | undefined;
684
+ as?: string | undefined;
685
+ if?: string | undefined;
686
+ on_empty?: "block" | "pass" | "continue" | undefined;
687
+ on_error?: "continue" | "abort" | undefined;
688
+ }[];
689
+ } | {
690
+ kind: "destination_check";
691
+ id: string;
692
+ model_alias: string;
693
+ interval: {
694
+ every_n_tool_calls: number;
695
+ };
696
+ prompt_template: string;
697
+ }, unknown>, "many">>;
698
+ prose: z.ZodOptional<z.ZodString>;
699
+ }, "strip", z.ZodTypeAny, {
700
+ name: string;
701
+ requires: ({
702
+ kind: "automation_mode_on";
703
+ } | {
704
+ kind: "active_task_present";
705
+ })[];
706
+ load: "preload" | "lazy";
707
+ when_to_load: unknown[];
708
+ unloads_when: unknown[];
709
+ triggers: ({
710
+ kind: "tool_call";
711
+ } | {
712
+ kind: "post_tool_call";
713
+ } | {
714
+ kind: "prompt_submit";
715
+ } | {
716
+ kind: "session_end";
717
+ } | {
718
+ kind: "stop";
719
+ } | {
720
+ kind: "session_start";
721
+ } | {
722
+ kind: "schedule";
723
+ cron?: string | undefined;
724
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
725
+ } | {
726
+ kind: "webhook";
727
+ path?: string | undefined;
728
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
729
+ } | {
730
+ kind: "inbound_channel";
731
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
732
+ channel?: string | undefined;
733
+ sender_pattern?: string | undefined;
734
+ } | {
735
+ kind: "file_changed";
736
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
737
+ paths?: string[] | undefined;
738
+ ignored?: string[] | undefined;
739
+ })[];
740
+ rules: ({
741
+ kind: "track_check";
742
+ id: string;
743
+ requires: ({
744
+ kind: "automation_mode_on";
745
+ } | {
746
+ kind: "active_task_present";
747
+ })[];
748
+ process: {
749
+ call: string;
750
+ args?: Record<string, unknown> | undefined;
751
+ as?: string | undefined;
752
+ if?: string | undefined;
753
+ on_empty?: "block" | "pass" | "continue" | undefined;
754
+ on_error?: "continue" | "abort" | undefined;
755
+ }[];
756
+ } | {
757
+ kind: "destination_check";
758
+ id: string;
759
+ model_alias: string;
760
+ interval: {
761
+ every_n_tool_calls: number;
762
+ };
763
+ prompt_template: string;
764
+ })[];
765
+ prose?: string | undefined;
766
+ }, {
767
+ name: string;
768
+ requires?: ({
769
+ kind: "automation_mode_on";
770
+ } | {
771
+ kind: "active_task_present";
772
+ })[] | undefined;
773
+ load?: "preload" | "lazy" | undefined;
774
+ when_to_load?: unknown[] | undefined;
775
+ unloads_when?: unknown[] | undefined;
776
+ triggers?: ({
777
+ kind: "tool_call";
778
+ } | {
779
+ kind: "post_tool_call";
780
+ } | {
781
+ kind: "prompt_submit";
782
+ } | {
783
+ kind: "session_end";
784
+ } | {
785
+ kind: "stop";
786
+ } | {
787
+ kind: "session_start";
788
+ } | {
789
+ kind: "schedule";
790
+ cron?: string | undefined;
791
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
792
+ } | {
793
+ kind: "webhook";
794
+ path?: string | undefined;
795
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
796
+ } | {
797
+ kind: "inbound_channel";
798
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
799
+ channel?: string | undefined;
800
+ sender_pattern?: string | undefined;
801
+ } | {
802
+ kind: "file_changed";
803
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
804
+ paths?: string[] | undefined;
805
+ ignored?: string[] | undefined;
806
+ })[] | undefined;
807
+ rules?: unknown[] | undefined;
808
+ prose?: string | undefined;
809
+ }>;
810
+ export type Skill = z.infer<typeof Skill>;
811
+ export declare const Scope: z.ZodEnum<["universal", "domain", "specialty", "workflow", "project"]>;
812
+ export type Scope = z.infer<typeof Scope>;
813
+ export declare const Pack: z.ZodObject<{
814
+ name: z.ZodString;
815
+ version: z.ZodString;
816
+ scope: z.ZodEnum<["universal", "domain", "specialty", "workflow", "project"]>;
817
+ goal: z.ZodString;
818
+ description: z.ZodDefault<z.ZodString>;
819
+ requires: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
820
+ conflicts: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
821
+ extends: z.ZodOptional<z.ZodString>;
822
+ evolves: z.ZodDefault<z.ZodBoolean>;
823
+ skills: z.ZodDefault<z.ZodArray<z.ZodObject<{
824
+ name: z.ZodString;
825
+ load: z.ZodDefault<z.ZodEnum<["preload", "lazy"]>>;
826
+ when_to_load: z.ZodDefault<z.ZodArray<z.ZodUnknown, "many">>;
827
+ requires: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
828
+ kind: z.ZodLiteral<"automation_mode_on">;
829
+ }, "strict", z.ZodTypeAny, {
830
+ kind: "automation_mode_on";
831
+ }, {
832
+ kind: "automation_mode_on";
833
+ }>, z.ZodObject<{
834
+ kind: z.ZodLiteral<"active_task_present">;
835
+ }, "strict", z.ZodTypeAny, {
836
+ kind: "active_task_present";
837
+ }, {
838
+ kind: "active_task_present";
839
+ }>]>, "many">>;
840
+ unloads_when: z.ZodDefault<z.ZodArray<z.ZodUnknown, "many">>;
841
+ triggers: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
842
+ kind: z.ZodLiteral<"tool_call">;
843
+ }, "strip", z.ZodTypeAny, {
844
+ kind: "tool_call";
845
+ }, {
846
+ kind: "tool_call";
847
+ }>, z.ZodObject<{
848
+ kind: z.ZodLiteral<"post_tool_call">;
849
+ }, "strip", z.ZodTypeAny, {
850
+ kind: "post_tool_call";
851
+ }, {
852
+ kind: "post_tool_call";
853
+ }>, z.ZodObject<{
854
+ kind: z.ZodLiteral<"prompt_submit">;
855
+ }, "strip", z.ZodTypeAny, {
856
+ kind: "prompt_submit";
857
+ }, {
858
+ kind: "prompt_submit";
859
+ }>, z.ZodObject<{
860
+ kind: z.ZodLiteral<"session_end">;
861
+ }, "strip", z.ZodTypeAny, {
862
+ kind: "session_end";
863
+ }, {
864
+ kind: "session_end";
865
+ }>, z.ZodObject<{
866
+ kind: z.ZodLiteral<"stop">;
867
+ }, "strip", z.ZodTypeAny, {
868
+ kind: "stop";
869
+ }, {
870
+ kind: "stop";
871
+ }>, z.ZodObject<{
872
+ kind: z.ZodLiteral<"session_start">;
873
+ }, "strip", z.ZodTypeAny, {
874
+ kind: "session_start";
875
+ }, {
876
+ kind: "session_start";
877
+ }>, z.ZodObject<{
878
+ kind: z.ZodLiteral<"schedule">;
879
+ cron: z.ZodOptional<z.ZodString>;
880
+ cost_tier: z.ZodOptional<z.ZodEnum<["cheap", "balanced", "premium"]>>;
881
+ }, "strip", z.ZodTypeAny, {
882
+ kind: "schedule";
883
+ cron?: string | undefined;
884
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
885
+ }, {
886
+ kind: "schedule";
887
+ cron?: string | undefined;
888
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
889
+ }>, z.ZodObject<{
890
+ kind: z.ZodLiteral<"webhook">;
891
+ path: z.ZodOptional<z.ZodString>;
892
+ cost_tier: z.ZodOptional<z.ZodEnum<["cheap", "balanced", "premium"]>>;
893
+ }, "strip", z.ZodTypeAny, {
894
+ kind: "webhook";
895
+ path?: string | undefined;
896
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
897
+ }, {
898
+ kind: "webhook";
899
+ path?: string | undefined;
900
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
901
+ }>, z.ZodObject<{
902
+ kind: z.ZodLiteral<"inbound_channel">;
903
+ channel: z.ZodOptional<z.ZodString>;
904
+ sender_pattern: z.ZodOptional<z.ZodString>;
905
+ cost_tier: z.ZodOptional<z.ZodEnum<["cheap", "balanced", "premium"]>>;
906
+ }, "strip", z.ZodTypeAny, {
907
+ kind: "inbound_channel";
908
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
909
+ channel?: string | undefined;
910
+ sender_pattern?: string | undefined;
911
+ }, {
912
+ kind: "inbound_channel";
913
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
914
+ channel?: string | undefined;
915
+ sender_pattern?: string | undefined;
916
+ }>, z.ZodObject<{
917
+ kind: z.ZodLiteral<"file_changed">;
918
+ paths: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
919
+ ignored: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
920
+ cost_tier: z.ZodOptional<z.ZodEnum<["cheap", "balanced", "premium"]>>;
921
+ }, "strip", z.ZodTypeAny, {
922
+ kind: "file_changed";
923
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
924
+ paths?: string[] | undefined;
925
+ ignored?: string[] | undefined;
926
+ }, {
927
+ kind: "file_changed";
928
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
929
+ paths?: string[] | undefined;
930
+ ignored?: string[] | undefined;
931
+ }>]>, "many">>;
932
+ rules: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
933
+ id: z.ZodString;
934
+ kind: z.ZodDefault<z.ZodLiteral<"track_check">>;
935
+ requires: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
936
+ kind: z.ZodLiteral<"automation_mode_on">;
937
+ }, "strict", z.ZodTypeAny, {
938
+ kind: "automation_mode_on";
939
+ }, {
940
+ kind: "automation_mode_on";
941
+ }>, z.ZodObject<{
942
+ kind: z.ZodLiteral<"active_task_present">;
943
+ }, "strict", z.ZodTypeAny, {
944
+ kind: "active_task_present";
945
+ }, {
946
+ kind: "active_task_present";
947
+ }>]>, "many">>;
948
+ process: z.ZodArray<z.ZodObject<{
949
+ call: z.ZodString;
950
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
951
+ as: z.ZodOptional<z.ZodString>;
952
+ if: z.ZodOptional<z.ZodString>;
953
+ on_empty: z.ZodOptional<z.ZodEnum<["pass", "block", "continue"]>>;
954
+ on_error: z.ZodOptional<z.ZodEnum<["abort", "continue"]>>;
955
+ }, "strip", z.ZodTypeAny, {
956
+ call: string;
957
+ args?: Record<string, unknown> | undefined;
958
+ as?: string | undefined;
959
+ if?: string | undefined;
960
+ on_empty?: "block" | "pass" | "continue" | undefined;
961
+ on_error?: "continue" | "abort" | undefined;
962
+ }, {
963
+ call: string;
964
+ args?: Record<string, unknown> | undefined;
965
+ as?: string | undefined;
966
+ if?: string | undefined;
967
+ on_empty?: "block" | "pass" | "continue" | undefined;
968
+ on_error?: "continue" | "abort" | undefined;
969
+ }>, "many">;
970
+ }, "strip", z.ZodTypeAny, {
971
+ kind: "track_check";
972
+ id: string;
973
+ requires: ({
974
+ kind: "automation_mode_on";
975
+ } | {
976
+ kind: "active_task_present";
977
+ })[];
978
+ process: {
979
+ call: string;
980
+ args?: Record<string, unknown> | undefined;
981
+ as?: string | undefined;
982
+ if?: string | undefined;
983
+ on_empty?: "block" | "pass" | "continue" | undefined;
984
+ on_error?: "continue" | "abort" | undefined;
985
+ }[];
986
+ }, {
987
+ id: string;
988
+ process: {
989
+ call: string;
990
+ args?: Record<string, unknown> | undefined;
991
+ as?: string | undefined;
992
+ if?: string | undefined;
993
+ on_empty?: "block" | "pass" | "continue" | undefined;
994
+ on_error?: "continue" | "abort" | undefined;
995
+ }[];
996
+ kind?: "track_check" | undefined;
997
+ requires?: ({
998
+ kind: "automation_mode_on";
999
+ } | {
1000
+ kind: "active_task_present";
1001
+ })[] | undefined;
1002
+ }>, z.ZodObject<{
1003
+ id: z.ZodString;
1004
+ kind: z.ZodLiteral<"destination_check">;
1005
+ interval: z.ZodObject<{
1006
+ every_n_tool_calls: z.ZodNumber;
1007
+ }, "strip", z.ZodTypeAny, {
1008
+ every_n_tool_calls: number;
1009
+ }, {
1010
+ every_n_tool_calls: number;
1011
+ }>;
1012
+ model_alias: z.ZodDefault<z.ZodString>;
1013
+ prompt_template: z.ZodString;
1014
+ }, "strip", z.ZodTypeAny, {
1015
+ kind: "destination_check";
1016
+ id: string;
1017
+ model_alias: string;
1018
+ interval: {
1019
+ every_n_tool_calls: number;
1020
+ };
1021
+ prompt_template: string;
1022
+ }, {
1023
+ kind: "destination_check";
1024
+ id: string;
1025
+ interval: {
1026
+ every_n_tool_calls: number;
1027
+ };
1028
+ prompt_template: string;
1029
+ model_alias?: string | undefined;
1030
+ }>]>, {
1031
+ kind: "track_check";
1032
+ id: string;
1033
+ requires: ({
1034
+ kind: "automation_mode_on";
1035
+ } | {
1036
+ kind: "active_task_present";
1037
+ })[];
1038
+ process: {
1039
+ call: string;
1040
+ args?: Record<string, unknown> | undefined;
1041
+ as?: string | undefined;
1042
+ if?: string | undefined;
1043
+ on_empty?: "block" | "pass" | "continue" | undefined;
1044
+ on_error?: "continue" | "abort" | undefined;
1045
+ }[];
1046
+ } | {
1047
+ kind: "destination_check";
1048
+ id: string;
1049
+ model_alias: string;
1050
+ interval: {
1051
+ every_n_tool_calls: number;
1052
+ };
1053
+ prompt_template: string;
1054
+ }, unknown>, "many">>;
1055
+ prose: z.ZodOptional<z.ZodString>;
1056
+ }, "strip", z.ZodTypeAny, {
1057
+ name: string;
1058
+ requires: ({
1059
+ kind: "automation_mode_on";
1060
+ } | {
1061
+ kind: "active_task_present";
1062
+ })[];
1063
+ load: "preload" | "lazy";
1064
+ when_to_load: unknown[];
1065
+ unloads_when: unknown[];
1066
+ triggers: ({
1067
+ kind: "tool_call";
1068
+ } | {
1069
+ kind: "post_tool_call";
1070
+ } | {
1071
+ kind: "prompt_submit";
1072
+ } | {
1073
+ kind: "session_end";
1074
+ } | {
1075
+ kind: "stop";
1076
+ } | {
1077
+ kind: "session_start";
1078
+ } | {
1079
+ kind: "schedule";
1080
+ cron?: string | undefined;
1081
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
1082
+ } | {
1083
+ kind: "webhook";
1084
+ path?: string | undefined;
1085
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
1086
+ } | {
1087
+ kind: "inbound_channel";
1088
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
1089
+ channel?: string | undefined;
1090
+ sender_pattern?: string | undefined;
1091
+ } | {
1092
+ kind: "file_changed";
1093
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
1094
+ paths?: string[] | undefined;
1095
+ ignored?: string[] | undefined;
1096
+ })[];
1097
+ rules: ({
1098
+ kind: "track_check";
1099
+ id: string;
1100
+ requires: ({
1101
+ kind: "automation_mode_on";
1102
+ } | {
1103
+ kind: "active_task_present";
1104
+ })[];
1105
+ process: {
1106
+ call: string;
1107
+ args?: Record<string, unknown> | undefined;
1108
+ as?: string | undefined;
1109
+ if?: string | undefined;
1110
+ on_empty?: "block" | "pass" | "continue" | undefined;
1111
+ on_error?: "continue" | "abort" | undefined;
1112
+ }[];
1113
+ } | {
1114
+ kind: "destination_check";
1115
+ id: string;
1116
+ model_alias: string;
1117
+ interval: {
1118
+ every_n_tool_calls: number;
1119
+ };
1120
+ prompt_template: string;
1121
+ })[];
1122
+ prose?: string | undefined;
1123
+ }, {
1124
+ name: string;
1125
+ requires?: ({
1126
+ kind: "automation_mode_on";
1127
+ } | {
1128
+ kind: "active_task_present";
1129
+ })[] | undefined;
1130
+ load?: "preload" | "lazy" | undefined;
1131
+ when_to_load?: unknown[] | undefined;
1132
+ unloads_when?: unknown[] | undefined;
1133
+ triggers?: ({
1134
+ kind: "tool_call";
1135
+ } | {
1136
+ kind: "post_tool_call";
1137
+ } | {
1138
+ kind: "prompt_submit";
1139
+ } | {
1140
+ kind: "session_end";
1141
+ } | {
1142
+ kind: "stop";
1143
+ } | {
1144
+ kind: "session_start";
1145
+ } | {
1146
+ kind: "schedule";
1147
+ cron?: string | undefined;
1148
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
1149
+ } | {
1150
+ kind: "webhook";
1151
+ path?: string | undefined;
1152
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
1153
+ } | {
1154
+ kind: "inbound_channel";
1155
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
1156
+ channel?: string | undefined;
1157
+ sender_pattern?: string | undefined;
1158
+ } | {
1159
+ kind: "file_changed";
1160
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
1161
+ paths?: string[] | undefined;
1162
+ ignored?: string[] | undefined;
1163
+ })[] | undefined;
1164
+ rules?: unknown[] | undefined;
1165
+ prose?: string | undefined;
1166
+ }>, "many">>;
1167
+ chatAgent: z.ZodOptional<z.ZodObject<{
1168
+ default_model: z.ZodString;
1169
+ system_prompt: z.ZodOptional<z.ZodString>;
1170
+ skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1171
+ disable_builtins: z.ZodDefault<z.ZodArray<z.ZodEnum<["chat_send", "recall", "store_lesson"]>, "many">>;
1172
+ max_tool_iterations: z.ZodDefault<z.ZodNumber>;
1173
+ max_tokens: z.ZodDefault<z.ZodNumber>;
1174
+ }, "strict", z.ZodTypeAny, {
1175
+ default_model: string;
1176
+ skills: string[];
1177
+ disable_builtins: ("chat_send" | "recall" | "store_lesson")[];
1178
+ max_tool_iterations: number;
1179
+ max_tokens: number;
1180
+ system_prompt?: string | undefined;
1181
+ }, {
1182
+ default_model: string;
1183
+ system_prompt?: string | undefined;
1184
+ skills?: string[] | undefined;
1185
+ disable_builtins?: ("chat_send" | "recall" | "store_lesson")[] | undefined;
1186
+ max_tool_iterations?: number | undefined;
1187
+ max_tokens?: number | undefined;
1188
+ }>>;
1189
+ models: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
1190
+ description: z.ZodDefault<z.ZodString>;
1191
+ mode: z.ZodEnum<["subscription", "api", "local", "mcp"]>;
1192
+ impl: z.ZodOptional<z.ZodEnum<["cli", "sdk"]>>;
1193
+ cli: z.ZodOptional<z.ZodString>;
1194
+ args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1195
+ sdk: z.ZodOptional<z.ZodString>;
1196
+ model: z.ZodOptional<z.ZodString>;
1197
+ endpoint: z.ZodOptional<z.ZodString>;
1198
+ provider: z.ZodOptional<z.ZodString>;
1199
+ server: z.ZodOptional<z.ZodString>;
1200
+ tool: z.ZodOptional<z.ZodString>;
1201
+ }, "strip", z.ZodTypeAny, {
1202
+ args: string[];
1203
+ description: string;
1204
+ mode: "subscription" | "api" | "local" | "mcp";
1205
+ tool?: string | undefined;
1206
+ cli?: string | undefined;
1207
+ sdk?: string | undefined;
1208
+ impl?: "cli" | "sdk" | undefined;
1209
+ model?: string | undefined;
1210
+ endpoint?: string | undefined;
1211
+ provider?: string | undefined;
1212
+ server?: string | undefined;
1213
+ }, {
1214
+ mode: "subscription" | "api" | "local" | "mcp";
1215
+ tool?: string | undefined;
1216
+ args?: string[] | undefined;
1217
+ cli?: string | undefined;
1218
+ sdk?: string | undefined;
1219
+ description?: string | undefined;
1220
+ impl?: "cli" | "sdk" | undefined;
1221
+ model?: string | undefined;
1222
+ endpoint?: string | undefined;
1223
+ provider?: string | undefined;
1224
+ server?: string | undefined;
1225
+ }>>>>;
1226
+ driftResponse: z.ZodOptional<z.ZodObject<{
1227
+ default: z.ZodDefault<z.ZodEnum<["block_tool", "warn", "full_stop_and_redo", "notify_and_pause", "auto_correct", "escalate"]>>;
1228
+ per_rule: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodEnum<["block_tool", "warn", "full_stop_and_redo", "notify_and_pause", "auto_correct", "escalate"]>>>;
1229
+ corrective_skills: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1230
+ }, "strict", z.ZodTypeAny, {
1231
+ default: "block_tool" | "warn" | "full_stop_and_redo" | "notify_and_pause" | "auto_correct" | "escalate";
1232
+ per_rule: Record<string, "block_tool" | "warn" | "full_stop_and_redo" | "notify_and_pause" | "auto_correct" | "escalate">;
1233
+ corrective_skills: Record<string, string>;
1234
+ }, {
1235
+ default?: "block_tool" | "warn" | "full_stop_and_redo" | "notify_and_pause" | "auto_correct" | "escalate" | undefined;
1236
+ per_rule?: Record<string, "block_tool" | "warn" | "full_stop_and_redo" | "notify_and_pause" | "auto_correct" | "escalate"> | undefined;
1237
+ corrective_skills?: Record<string, string> | undefined;
1238
+ }>>;
1239
+ foundation: z.ZodOptional<z.ZodObject<{
1240
+ tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
1241
+ name: z.ZodString;
1242
+ semver: z.ZodOptional<z.ZodString>;
1243
+ }, "strict", z.ZodTypeAny, {
1244
+ name: string;
1245
+ semver?: string | undefined;
1246
+ }, {
1247
+ name: string;
1248
+ semver?: string | undefined;
1249
+ }>, "many">>;
1250
+ domains: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1251
+ methodologies: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1252
+ }, "strict", z.ZodTypeAny, {
1253
+ domains: string[];
1254
+ tools: {
1255
+ name: string;
1256
+ semver?: string | undefined;
1257
+ }[];
1258
+ methodologies: string[];
1259
+ }, {
1260
+ domains?: string[] | undefined;
1261
+ tools?: {
1262
+ name: string;
1263
+ semver?: string | undefined;
1264
+ }[] | undefined;
1265
+ methodologies?: string[] | undefined;
1266
+ }>>;
1267
+ activationScope: z.ZodOptional<z.ZodEnum<["project", "user", "hybrid", "team", "global"]>>;
1268
+ detectedBy: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1269
+ kind: z.ZodLiteral<"file_exists">;
1270
+ path: z.ZodString;
1271
+ }, "strict", z.ZodTypeAny, {
1272
+ path: string;
1273
+ kind: "file_exists";
1274
+ }, {
1275
+ path: string;
1276
+ kind: "file_exists";
1277
+ }>, z.ZodObject<{
1278
+ kind: z.ZodLiteral<"dir_exists">;
1279
+ path: z.ZodString;
1280
+ }, "strict", z.ZodTypeAny, {
1281
+ path: string;
1282
+ kind: "dir_exists";
1283
+ }, {
1284
+ path: string;
1285
+ kind: "dir_exists";
1286
+ }>, z.ZodObject<{
1287
+ kind: z.ZodLiteral<"file_match">;
1288
+ path: z.ZodString;
1289
+ matches: z.ZodRecord<z.ZodString, z.ZodString>;
1290
+ }, "strict", z.ZodTypeAny, {
1291
+ path: string;
1292
+ kind: "file_match";
1293
+ matches: Record<string, string>;
1294
+ }, {
1295
+ path: string;
1296
+ kind: "file_match";
1297
+ matches: Record<string, string>;
1298
+ }>, z.ZodObject<{
1299
+ kind: z.ZodLiteral<"file_glob">;
1300
+ pattern: z.ZodString;
1301
+ min_count: z.ZodDefault<z.ZodNumber>;
1302
+ }, "strict", z.ZodTypeAny, {
1303
+ kind: "file_glob";
1304
+ pattern: string;
1305
+ min_count: number;
1306
+ }, {
1307
+ kind: "file_glob";
1308
+ pattern: string;
1309
+ min_count?: number | undefined;
1310
+ }>, z.ZodObject<{
1311
+ kind: z.ZodLiteral<"memory_match">;
1312
+ pattern: z.ZodString;
1313
+ }, "strict", z.ZodTypeAny, {
1314
+ kind: "memory_match";
1315
+ pattern: string;
1316
+ }, {
1317
+ kind: "memory_match";
1318
+ pattern: string;
1319
+ }>, z.ZodObject<{
1320
+ kind: z.ZodLiteral<"conversation_signal">;
1321
+ pattern: z.ZodString;
1322
+ }, "strict", z.ZodTypeAny, {
1323
+ kind: "conversation_signal";
1324
+ pattern: string;
1325
+ }, {
1326
+ kind: "conversation_signal";
1327
+ pattern: string;
1328
+ }>, z.ZodObject<{
1329
+ kind: z.ZodLiteral<"user_pinned">;
1330
+ }, "strict", z.ZodTypeAny, {
1331
+ kind: "user_pinned";
1332
+ }, {
1333
+ kind: "user_pinned";
1334
+ }>]>, "many">>;
1335
+ kind: z.ZodOptional<z.ZodEnum<["focused", "composite"]>>;
1336
+ usage: z.ZodOptional<z.ZodEnum<["active", "profession", "both"]>>;
1337
+ includes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1338
+ pack_id: z.ZodString;
1339
+ semver: z.ZodString;
1340
+ }, "strict", z.ZodTypeAny, {
1341
+ semver: string;
1342
+ pack_id: string;
1343
+ }, {
1344
+ semver: string;
1345
+ pack_id: string;
1346
+ }>, "many">>;
1347
+ team: z.ZodOptional<z.ZodObject<{
1348
+ name: z.ZodString;
1349
+ roles: z.ZodArray<z.ZodObject<{
1350
+ name: z.ZodString;
1351
+ pack: z.ZodString;
1352
+ model_alias: z.ZodString;
1353
+ handoff_signal: z.ZodOptional<z.ZodString>;
1354
+ instructions: z.ZodOptional<z.ZodString>;
1355
+ }, "strip", z.ZodTypeAny, {
1356
+ name: string;
1357
+ pack: string;
1358
+ model_alias: string;
1359
+ handoff_signal?: string | undefined;
1360
+ instructions?: string | undefined;
1361
+ }, {
1362
+ name: string;
1363
+ pack: string;
1364
+ model_alias: string;
1365
+ handoff_signal?: string | undefined;
1366
+ instructions?: string | undefined;
1367
+ }>, "many">;
1368
+ }, "strip", z.ZodTypeAny, {
1369
+ name: string;
1370
+ roles: {
1371
+ name: string;
1372
+ pack: string;
1373
+ model_alias: string;
1374
+ handoff_signal?: string | undefined;
1375
+ instructions?: string | undefined;
1376
+ }[];
1377
+ }, {
1378
+ name: string;
1379
+ roles: {
1380
+ name: string;
1381
+ pack: string;
1382
+ model_alias: string;
1383
+ handoff_signal?: string | undefined;
1384
+ instructions?: string | undefined;
1385
+ }[];
1386
+ }>>;
1387
+ baseVersion: z.ZodOptional<z.ZodString>;
1388
+ personalRevisionId: z.ZodOptional<z.ZodNumber>;
1389
+ lastMergedVanilla: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1390
+ livingVersion: z.ZodOptional<z.ZodObject<{
1391
+ base: z.ZodString;
1392
+ revision: z.ZodNumber;
1393
+ }, "strip", z.ZodTypeAny, {
1394
+ base: string;
1395
+ revision: number;
1396
+ }, {
1397
+ base: string;
1398
+ revision: number;
1399
+ }>>;
1400
+ seedLessons: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1401
+ title: z.ZodString;
1402
+ body: z.ZodOptional<z.ZodString>;
1403
+ body_path: z.ZodOptional<z.ZodString>;
1404
+ scope: z.ZodDefault<z.ZodEnum<["user", "global"]>>;
1405
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1406
+ source: z.ZodOptional<z.ZodString>;
1407
+ }, "strict", z.ZodTypeAny, {
1408
+ title: string;
1409
+ scope: "user" | "global";
1410
+ tags: string[];
1411
+ source?: string | undefined;
1412
+ body?: string | undefined;
1413
+ body_path?: string | undefined;
1414
+ }, {
1415
+ title: string;
1416
+ source?: string | undefined;
1417
+ body?: string | undefined;
1418
+ body_path?: string | undefined;
1419
+ scope?: "user" | "global" | undefined;
1420
+ tags?: string[] | undefined;
1421
+ }>, {
1422
+ title: string;
1423
+ scope: "user" | "global";
1424
+ tags: string[];
1425
+ source?: string | undefined;
1426
+ body?: string | undefined;
1427
+ body_path?: string | undefined;
1428
+ }, {
1429
+ title: string;
1430
+ source?: string | undefined;
1431
+ body?: string | undefined;
1432
+ body_path?: string | undefined;
1433
+ scope?: "user" | "global" | undefined;
1434
+ tags?: string[] | undefined;
1435
+ }>, "many">>;
1436
+ verifyGates: z.ZodOptional<z.ZodArray<z.ZodObject<{
1437
+ name: z.ZodString;
1438
+ when: z.ZodObject<{
1439
+ event_kind: z.ZodEnum<["tool_call", "prompt_submit", "stop", "session_end"]>;
1440
+ }, "strict", z.ZodTypeAny, {
1441
+ event_kind: "tool_call" | "prompt_submit" | "session_end" | "stop";
1442
+ }, {
1443
+ event_kind: "tool_call" | "prompt_submit" | "session_end" | "stop";
1444
+ }>;
1445
+ check: z.ZodString;
1446
+ on_fail: z.ZodObject<{
1447
+ level: z.ZodEnum<["warn", "block"]>;
1448
+ message: z.ZodString;
1449
+ }, "strict", z.ZodTypeAny, {
1450
+ message: string;
1451
+ level: "warn" | "block";
1452
+ }, {
1453
+ message: string;
1454
+ level: "warn" | "block";
1455
+ }>;
1456
+ }, "strict", z.ZodTypeAny, {
1457
+ name: string;
1458
+ when: {
1459
+ event_kind: "tool_call" | "prompt_submit" | "session_end" | "stop";
1460
+ };
1461
+ check: string;
1462
+ on_fail: {
1463
+ message: string;
1464
+ level: "warn" | "block";
1465
+ };
1466
+ }, {
1467
+ name: string;
1468
+ when: {
1469
+ event_kind: "tool_call" | "prompt_submit" | "session_end" | "stop";
1470
+ };
1471
+ check: string;
1472
+ on_fail: {
1473
+ message: string;
1474
+ level: "warn" | "block";
1475
+ };
1476
+ }>, "many">>;
1477
+ guards: z.ZodOptional<z.ZodArray<z.ZodObject<{
1478
+ name: z.ZodString;
1479
+ on: z.ZodDefault<z.ZodEnum<["tool_call", "prompt_submit", "stop", "session_end"]>>;
1480
+ detect: z.ZodOptional<z.ZodObject<{
1481
+ call: z.ZodString;
1482
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1483
+ }, "strict", z.ZodTypeAny, {
1484
+ call: string;
1485
+ args?: Record<string, unknown> | undefined;
1486
+ }, {
1487
+ call: string;
1488
+ args?: Record<string, unknown> | undefined;
1489
+ }>>;
1490
+ as: z.ZodDefault<z.ZodString>;
1491
+ when: z.ZodString;
1492
+ level: z.ZodEnum<["warn", "block"]>;
1493
+ message: z.ZodString;
1494
+ }, "strict", z.ZodTypeAny, {
1495
+ message: string;
1496
+ name: string;
1497
+ as: string;
1498
+ when: string;
1499
+ level: "warn" | "block";
1500
+ on: "tool_call" | "prompt_submit" | "session_end" | "stop";
1501
+ detect?: {
1502
+ call: string;
1503
+ args?: Record<string, unknown> | undefined;
1504
+ } | undefined;
1505
+ }, {
1506
+ message: string;
1507
+ name: string;
1508
+ when: string;
1509
+ level: "warn" | "block";
1510
+ as?: string | undefined;
1511
+ on?: "tool_call" | "prompt_submit" | "session_end" | "stop" | undefined;
1512
+ detect?: {
1513
+ call: string;
1514
+ args?: Record<string, unknown> | undefined;
1515
+ } | undefined;
1516
+ }>, "many">>;
1517
+ /** Pack-declared lifecycle FSM (slice A2; from `fsm.yaml`). Validated total. */
1518
+ fsm: z.ZodOptional<z.ZodObject<{
1519
+ initial: z.ZodString;
1520
+ states: z.ZodArray<z.ZodString, "many">;
1521
+ transitions: z.ZodDefault<z.ZodArray<z.ZodObject<{
1522
+ from: z.ZodString;
1523
+ on: z.ZodString;
1524
+ to: z.ZodString;
1525
+ when: z.ZodOptional<z.ZodString>;
1526
+ }, "strict", z.ZodTypeAny, {
1527
+ from: string;
1528
+ to: string;
1529
+ on: string;
1530
+ when?: string | undefined;
1531
+ }, {
1532
+ from: string;
1533
+ to: string;
1534
+ on: string;
1535
+ when?: string | undefined;
1536
+ }>, "many">>;
1537
+ }, "strict", z.ZodTypeAny, {
1538
+ initial: string;
1539
+ states: string[];
1540
+ transitions: {
1541
+ from: string;
1542
+ to: string;
1543
+ on: string;
1544
+ when?: string | undefined;
1545
+ }[];
1546
+ }, {
1547
+ initial: string;
1548
+ states: string[];
1549
+ transitions?: {
1550
+ from: string;
1551
+ to: string;
1552
+ on: string;
1553
+ when?: string | undefined;
1554
+ }[] | undefined;
1555
+ }>>;
1556
+ }, "strip", z.ZodTypeAny, {
1557
+ version: string;
1558
+ name: string;
1559
+ description: string;
1560
+ skills: {
1561
+ name: string;
1562
+ requires: ({
1563
+ kind: "automation_mode_on";
1564
+ } | {
1565
+ kind: "active_task_present";
1566
+ })[];
1567
+ load: "preload" | "lazy";
1568
+ when_to_load: unknown[];
1569
+ unloads_when: unknown[];
1570
+ triggers: ({
1571
+ kind: "tool_call";
1572
+ } | {
1573
+ kind: "post_tool_call";
1574
+ } | {
1575
+ kind: "prompt_submit";
1576
+ } | {
1577
+ kind: "session_end";
1578
+ } | {
1579
+ kind: "stop";
1580
+ } | {
1581
+ kind: "session_start";
1582
+ } | {
1583
+ kind: "schedule";
1584
+ cron?: string | undefined;
1585
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
1586
+ } | {
1587
+ kind: "webhook";
1588
+ path?: string | undefined;
1589
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
1590
+ } | {
1591
+ kind: "inbound_channel";
1592
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
1593
+ channel?: string | undefined;
1594
+ sender_pattern?: string | undefined;
1595
+ } | {
1596
+ kind: "file_changed";
1597
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
1598
+ paths?: string[] | undefined;
1599
+ ignored?: string[] | undefined;
1600
+ })[];
1601
+ rules: ({
1602
+ kind: "track_check";
1603
+ id: string;
1604
+ requires: ({
1605
+ kind: "automation_mode_on";
1606
+ } | {
1607
+ kind: "active_task_present";
1608
+ })[];
1609
+ process: {
1610
+ call: string;
1611
+ args?: Record<string, unknown> | undefined;
1612
+ as?: string | undefined;
1613
+ if?: string | undefined;
1614
+ on_empty?: "block" | "pass" | "continue" | undefined;
1615
+ on_error?: "continue" | "abort" | undefined;
1616
+ }[];
1617
+ } | {
1618
+ kind: "destination_check";
1619
+ id: string;
1620
+ model_alias: string;
1621
+ interval: {
1622
+ every_n_tool_calls: number;
1623
+ };
1624
+ prompt_template: string;
1625
+ })[];
1626
+ prose?: string | undefined;
1627
+ }[];
1628
+ scope: "universal" | "domain" | "specialty" | "workflow" | "project";
1629
+ goal: string;
1630
+ requires: string[];
1631
+ conflicts: string[];
1632
+ evolves: boolean;
1633
+ includes?: {
1634
+ semver: string;
1635
+ pack_id: string;
1636
+ }[] | undefined;
1637
+ kind?: "focused" | "composite" | undefined;
1638
+ team?: {
1639
+ name: string;
1640
+ roles: {
1641
+ name: string;
1642
+ pack: string;
1643
+ model_alias: string;
1644
+ handoff_signal?: string | undefined;
1645
+ instructions?: string | undefined;
1646
+ }[];
1647
+ } | undefined;
1648
+ extends?: string | undefined;
1649
+ foundation?: {
1650
+ domains: string[];
1651
+ tools: {
1652
+ name: string;
1653
+ semver?: string | undefined;
1654
+ }[];
1655
+ methodologies: string[];
1656
+ } | undefined;
1657
+ usage?: "active" | "profession" | "both" | undefined;
1658
+ guards?: {
1659
+ message: string;
1660
+ name: string;
1661
+ as: string;
1662
+ when: string;
1663
+ level: "warn" | "block";
1664
+ on: "tool_call" | "prompt_submit" | "session_end" | "stop";
1665
+ detect?: {
1666
+ call: string;
1667
+ args?: Record<string, unknown> | undefined;
1668
+ } | undefined;
1669
+ }[] | undefined;
1670
+ chatAgent?: {
1671
+ default_model: string;
1672
+ skills: string[];
1673
+ disable_builtins: ("chat_send" | "recall" | "store_lesson")[];
1674
+ max_tool_iterations: number;
1675
+ max_tokens: number;
1676
+ system_prompt?: string | undefined;
1677
+ } | undefined;
1678
+ models?: Record<string, {
1679
+ args: string[];
1680
+ description: string;
1681
+ mode: "subscription" | "api" | "local" | "mcp";
1682
+ tool?: string | undefined;
1683
+ cli?: string | undefined;
1684
+ sdk?: string | undefined;
1685
+ impl?: "cli" | "sdk" | undefined;
1686
+ model?: string | undefined;
1687
+ endpoint?: string | undefined;
1688
+ provider?: string | undefined;
1689
+ server?: string | undefined;
1690
+ }> | undefined;
1691
+ driftResponse?: {
1692
+ default: "block_tool" | "warn" | "full_stop_and_redo" | "notify_and_pause" | "auto_correct" | "escalate";
1693
+ per_rule: Record<string, "block_tool" | "warn" | "full_stop_and_redo" | "notify_and_pause" | "auto_correct" | "escalate">;
1694
+ corrective_skills: Record<string, string>;
1695
+ } | undefined;
1696
+ activationScope?: "user" | "project" | "hybrid" | "team" | "global" | undefined;
1697
+ detectedBy?: ({
1698
+ path: string;
1699
+ kind: "file_exists";
1700
+ } | {
1701
+ path: string;
1702
+ kind: "dir_exists";
1703
+ } | {
1704
+ path: string;
1705
+ kind: "file_match";
1706
+ matches: Record<string, string>;
1707
+ } | {
1708
+ kind: "file_glob";
1709
+ pattern: string;
1710
+ min_count: number;
1711
+ } | {
1712
+ kind: "memory_match";
1713
+ pattern: string;
1714
+ } | {
1715
+ kind: "conversation_signal";
1716
+ pattern: string;
1717
+ } | {
1718
+ kind: "user_pinned";
1719
+ })[] | undefined;
1720
+ baseVersion?: string | undefined;
1721
+ personalRevisionId?: number | undefined;
1722
+ lastMergedVanilla?: string | null | undefined;
1723
+ livingVersion?: {
1724
+ base: string;
1725
+ revision: number;
1726
+ } | undefined;
1727
+ seedLessons?: {
1728
+ title: string;
1729
+ scope: "user" | "global";
1730
+ tags: string[];
1731
+ source?: string | undefined;
1732
+ body?: string | undefined;
1733
+ body_path?: string | undefined;
1734
+ }[] | undefined;
1735
+ verifyGates?: {
1736
+ name: string;
1737
+ when: {
1738
+ event_kind: "tool_call" | "prompt_submit" | "session_end" | "stop";
1739
+ };
1740
+ check: string;
1741
+ on_fail: {
1742
+ message: string;
1743
+ level: "warn" | "block";
1744
+ };
1745
+ }[] | undefined;
1746
+ fsm?: {
1747
+ initial: string;
1748
+ states: string[];
1749
+ transitions: {
1750
+ from: string;
1751
+ to: string;
1752
+ on: string;
1753
+ when?: string | undefined;
1754
+ }[];
1755
+ } | undefined;
1756
+ }, {
1757
+ version: string;
1758
+ name: string;
1759
+ scope: "universal" | "domain" | "specialty" | "workflow" | "project";
1760
+ goal: string;
1761
+ includes?: {
1762
+ semver: string;
1763
+ pack_id: string;
1764
+ }[] | undefined;
1765
+ kind?: "focused" | "composite" | undefined;
1766
+ description?: string | undefined;
1767
+ skills?: {
1768
+ name: string;
1769
+ requires?: ({
1770
+ kind: "automation_mode_on";
1771
+ } | {
1772
+ kind: "active_task_present";
1773
+ })[] | undefined;
1774
+ load?: "preload" | "lazy" | undefined;
1775
+ when_to_load?: unknown[] | undefined;
1776
+ unloads_when?: unknown[] | undefined;
1777
+ triggers?: ({
1778
+ kind: "tool_call";
1779
+ } | {
1780
+ kind: "post_tool_call";
1781
+ } | {
1782
+ kind: "prompt_submit";
1783
+ } | {
1784
+ kind: "session_end";
1785
+ } | {
1786
+ kind: "stop";
1787
+ } | {
1788
+ kind: "session_start";
1789
+ } | {
1790
+ kind: "schedule";
1791
+ cron?: string | undefined;
1792
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
1793
+ } | {
1794
+ kind: "webhook";
1795
+ path?: string | undefined;
1796
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
1797
+ } | {
1798
+ kind: "inbound_channel";
1799
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
1800
+ channel?: string | undefined;
1801
+ sender_pattern?: string | undefined;
1802
+ } | {
1803
+ kind: "file_changed";
1804
+ cost_tier?: "cheap" | "balanced" | "premium" | undefined;
1805
+ paths?: string[] | undefined;
1806
+ ignored?: string[] | undefined;
1807
+ })[] | undefined;
1808
+ rules?: unknown[] | undefined;
1809
+ prose?: string | undefined;
1810
+ }[] | undefined;
1811
+ team?: {
1812
+ name: string;
1813
+ roles: {
1814
+ name: string;
1815
+ pack: string;
1816
+ model_alias: string;
1817
+ handoff_signal?: string | undefined;
1818
+ instructions?: string | undefined;
1819
+ }[];
1820
+ } | undefined;
1821
+ requires?: string[] | undefined;
1822
+ conflicts?: string[] | undefined;
1823
+ extends?: string | undefined;
1824
+ evolves?: boolean | undefined;
1825
+ foundation?: {
1826
+ domains?: string[] | undefined;
1827
+ tools?: {
1828
+ name: string;
1829
+ semver?: string | undefined;
1830
+ }[] | undefined;
1831
+ methodologies?: string[] | undefined;
1832
+ } | undefined;
1833
+ usage?: "active" | "profession" | "both" | undefined;
1834
+ guards?: {
1835
+ message: string;
1836
+ name: string;
1837
+ when: string;
1838
+ level: "warn" | "block";
1839
+ as?: string | undefined;
1840
+ on?: "tool_call" | "prompt_submit" | "session_end" | "stop" | undefined;
1841
+ detect?: {
1842
+ call: string;
1843
+ args?: Record<string, unknown> | undefined;
1844
+ } | undefined;
1845
+ }[] | undefined;
1846
+ chatAgent?: {
1847
+ default_model: string;
1848
+ system_prompt?: string | undefined;
1849
+ skills?: string[] | undefined;
1850
+ disable_builtins?: ("chat_send" | "recall" | "store_lesson")[] | undefined;
1851
+ max_tool_iterations?: number | undefined;
1852
+ max_tokens?: number | undefined;
1853
+ } | undefined;
1854
+ models?: Record<string, {
1855
+ mode: "subscription" | "api" | "local" | "mcp";
1856
+ tool?: string | undefined;
1857
+ args?: string[] | undefined;
1858
+ cli?: string | undefined;
1859
+ sdk?: string | undefined;
1860
+ description?: string | undefined;
1861
+ impl?: "cli" | "sdk" | undefined;
1862
+ model?: string | undefined;
1863
+ endpoint?: string | undefined;
1864
+ provider?: string | undefined;
1865
+ server?: string | undefined;
1866
+ }> | undefined;
1867
+ driftResponse?: {
1868
+ default?: "block_tool" | "warn" | "full_stop_and_redo" | "notify_and_pause" | "auto_correct" | "escalate" | undefined;
1869
+ per_rule?: Record<string, "block_tool" | "warn" | "full_stop_and_redo" | "notify_and_pause" | "auto_correct" | "escalate"> | undefined;
1870
+ corrective_skills?: Record<string, string> | undefined;
1871
+ } | undefined;
1872
+ activationScope?: "user" | "project" | "hybrid" | "team" | "global" | undefined;
1873
+ detectedBy?: ({
1874
+ path: string;
1875
+ kind: "file_exists";
1876
+ } | {
1877
+ path: string;
1878
+ kind: "dir_exists";
1879
+ } | {
1880
+ path: string;
1881
+ kind: "file_match";
1882
+ matches: Record<string, string>;
1883
+ } | {
1884
+ kind: "file_glob";
1885
+ pattern: string;
1886
+ min_count?: number | undefined;
1887
+ } | {
1888
+ kind: "memory_match";
1889
+ pattern: string;
1890
+ } | {
1891
+ kind: "conversation_signal";
1892
+ pattern: string;
1893
+ } | {
1894
+ kind: "user_pinned";
1895
+ })[] | undefined;
1896
+ baseVersion?: string | undefined;
1897
+ personalRevisionId?: number | undefined;
1898
+ lastMergedVanilla?: string | null | undefined;
1899
+ livingVersion?: {
1900
+ base: string;
1901
+ revision: number;
1902
+ } | undefined;
1903
+ seedLessons?: {
1904
+ title: string;
1905
+ source?: string | undefined;
1906
+ body?: string | undefined;
1907
+ body_path?: string | undefined;
1908
+ scope?: "user" | "global" | undefined;
1909
+ tags?: string[] | undefined;
1910
+ }[] | undefined;
1911
+ verifyGates?: {
1912
+ name: string;
1913
+ when: {
1914
+ event_kind: "tool_call" | "prompt_submit" | "session_end" | "stop";
1915
+ };
1916
+ check: string;
1917
+ on_fail: {
1918
+ message: string;
1919
+ level: "warn" | "block";
1920
+ };
1921
+ }[] | undefined;
1922
+ fsm?: {
1923
+ initial: string;
1924
+ states: string[];
1925
+ transitions?: {
1926
+ from: string;
1927
+ to: string;
1928
+ on: string;
1929
+ when?: string | undefined;
1930
+ }[] | undefined;
1931
+ } | undefined;
1932
+ }>;
1933
+ export type Pack = z.infer<typeof Pack>;
1934
+ /**
1935
+ * T-ASC ASC.3: RuleResult gains a `directive` variant that the dispatcher
1936
+ * aggregates separately from the `verdict` variant (which carries a
1937
+ * MessageVerdict only — directives don't flow through drift_response).
1938
+ * The evaluator forks at the verdict-primitive special-case: a value with
1939
+ * `level === 'directive'` becomes `{kind: 'directive'}`, every other level
1940
+ * becomes `{kind: 'verdict'}`.
1941
+ */
1942
+ export type RuleResult = {
1943
+ kind: 'verdict';
1944
+ verdict: MessageVerdict;
1945
+ } | {
1946
+ kind: 'directive';
1947
+ directive: Directive;
1948
+ } | {
1949
+ kind: 'no_verdict';
1950
+ } | {
1951
+ kind: 'error';
1952
+ error: string;
1953
+ step: number;
1954
+ } | {
1955
+ kind: 'inject_context';
1956
+ content: string;
1957
+ };
1958
+ export type DriftPolicy = 'block_tool' | 'warn' | 'full_stop_and_redo' | 'notify_and_pause' | 'auto_correct' | 'escalate';
1959
+ export type RuntimeAction = {
1960
+ kind: 'block_tool';
1961
+ message: string;
1962
+ } | {
1963
+ kind: 'warn';
1964
+ message: string;
1965
+ } | {
1966
+ kind: 'halt';
1967
+ reason: string;
1968
+ entrySkill?: string;
1969
+ } | {
1970
+ kind: 'notify_pause';
1971
+ reason: string;
1972
+ severity: 'critical' | 'error' | 'warning';
1973
+ } | {
1974
+ kind: 'auto_correct';
1975
+ correctiveSkill: string;
1976
+ verdict: Verdict;
1977
+ } | {
1978
+ kind: 'escalate';
1979
+ reroutedSeverity: 'critical';
1980
+ verdict: Verdict;
1981
+ };
1982
+ export interface PauseState {
1983
+ reason: string;
1984
+ triggeredAt: string;
1985
+ ruleId?: string;
1986
+ packId?: string;
1987
+ }
1988
+ //# sourceMappingURL=types.d.ts.map