@pleri/olam-cli 0.1.201 → 0.1.205

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 (833) hide show
  1. package/README.md +102 -169
  2. package/dist/agent-stream/agent-sdk-to-chunks.js +1 -1
  3. package/dist/agent-stream/driver-runner.js +73 -7
  4. package/dist/agent-stream/host-driver-launch.js +14 -1
  5. package/dist/agent-stream/prototype-gen-launch.js +113 -0
  6. package/dist/agent-stream/question-broker-bridge.js +335 -0
  7. package/dist/agent-stream/sdk-env-merge.demo.js +35 -0
  8. package/dist/agent-stream/sdk-env-merge.js +98 -0
  9. package/dist/image-digests.json +8 -8
  10. package/dist/index.js +9533 -6258
  11. package/dist/index.js.map +1 -1
  12. package/dist/mcp-server.js +24721 -12934
  13. package/hermes-bundle/version.json +1 -1
  14. package/hooks/__tests__/_loader.py +26 -0
  15. package/hooks/__tests__/prompts.py +63 -0
  16. package/hooks/__tests__/test_classify_bench.py +94 -0
  17. package/hooks/__tests__/test_classify_pins.py +78 -0
  18. package/hooks/model-router.py +17 -4
  19. package/host-cp/k8s/manifests/50-deployment.yaml +1 -1
  20. package/host-cp/k8s/manifests/auth-service/50-deployment.yaml +1 -1
  21. package/host-cp/k8s/manifests/kg-service/50-deployment.yaml +1 -1
  22. package/host-cp/k8s/manifests/mcp-auth-service/50-deployment.yaml +1 -1
  23. package/host-cp/k8s/manifests/memory-service/50-deployment.yaml +1 -1
  24. package/host-cp/src/op-side-longpoll.mjs +212 -0
  25. package/host-cp/src/plan-chat-proxy-headers.mjs +53 -0
  26. package/host-cp/src/plan-chat-service.mjs +100 -0
  27. package/host-cp/src/plan-orchestrator.mjs +100 -6
  28. package/host-cp/src/server.mjs +607 -45
  29. package/memory-hooks/agentmemory-classify-queue.mjs +363 -0
  30. package/memory-hooks/agentmemory-recall-trigger.mjs +233 -0
  31. package/memory-hooks/agentmemory-reflect-cite.mjs +332 -0
  32. package/memory-hooks/agentmemory-session-recall.js +332 -0
  33. package/memory-hooks/recall-log.mjs +185 -0
  34. package/package.json +9 -4
  35. package/dist/ask/checkout.d.ts +0 -19
  36. package/dist/ask/checkout.d.ts.map +0 -1
  37. package/dist/ask/checkout.js +0 -40
  38. package/dist/ask/checkout.js.map +0 -1
  39. package/dist/ask/knowledge-pack-builder.d.ts +0 -72
  40. package/dist/ask/knowledge-pack-builder.d.ts.map +0 -1
  41. package/dist/ask/knowledge-pack-builder.js +0 -96
  42. package/dist/ask/knowledge-pack-builder.js.map +0 -1
  43. package/dist/ask/knowledge-pack.generated.d.ts +0 -8
  44. package/dist/ask/knowledge-pack.generated.d.ts.map +0 -1
  45. package/dist/ask/knowledge-pack.generated.js +0 -2362
  46. package/dist/ask/knowledge-pack.generated.js.map +0 -1
  47. package/dist/ask/one-shot.d.ts +0 -21
  48. package/dist/ask/one-shot.d.ts.map +0 -1
  49. package/dist/ask/one-shot.js +0 -50
  50. package/dist/ask/one-shot.js.map +0 -1
  51. package/dist/ask/repl.d.ts +0 -30
  52. package/dist/ask/repl.d.ts.map +0 -1
  53. package/dist/ask/repl.js +0 -109
  54. package/dist/ask/repl.js.map +0 -1
  55. package/dist/ask/sdk-client.d.ts +0 -87
  56. package/dist/ask/sdk-client.d.ts.map +0 -1
  57. package/dist/ask/sdk-client.js +0 -118
  58. package/dist/ask/sdk-client.js.map +0 -1
  59. package/dist/ask/system-prompt.d.ts +0 -30
  60. package/dist/ask/system-prompt.d.ts.map +0 -1
  61. package/dist/ask/system-prompt.js +0 -31
  62. package/dist/ask/system-prompt.js.map +0 -1
  63. package/dist/cli-version.d.ts +0 -16
  64. package/dist/cli-version.d.ts.map +0 -1
  65. package/dist/cli-version.js +0 -39
  66. package/dist/cli-version.js.map +0 -1
  67. package/dist/commands/ask.d.ts +0 -27
  68. package/dist/commands/ask.d.ts.map +0 -1
  69. package/dist/commands/ask.js +0 -63
  70. package/dist/commands/ask.js.map +0 -1
  71. package/dist/commands/auth-list-json.d.ts +0 -87
  72. package/dist/commands/auth-list-json.d.ts.map +0 -1
  73. package/dist/commands/auth-list-json.js +0 -71
  74. package/dist/commands/auth-list-json.js.map +0 -1
  75. package/dist/commands/auth-migrate.d.ts +0 -212
  76. package/dist/commands/auth-migrate.d.ts.map +0 -1
  77. package/dist/commands/auth-migrate.js +0 -465
  78. package/dist/commands/auth-migrate.js.map +0 -1
  79. package/dist/commands/auth-status.d.ts +0 -51
  80. package/dist/commands/auth-status.d.ts.map +0 -1
  81. package/dist/commands/auth-status.js +0 -250
  82. package/dist/commands/auth-status.js.map +0 -1
  83. package/dist/commands/auth-upgrade.d.ts +0 -88
  84. package/dist/commands/auth-upgrade.d.ts.map +0 -1
  85. package/dist/commands/auth-upgrade.js +0 -431
  86. package/dist/commands/auth-upgrade.js.map +0 -1
  87. package/dist/commands/auth.d.ts +0 -31
  88. package/dist/commands/auth.d.ts.map +0 -1
  89. package/dist/commands/auth.js +0 -784
  90. package/dist/commands/auth.js.map +0 -1
  91. package/dist/commands/begin.d.ts +0 -27
  92. package/dist/commands/begin.d.ts.map +0 -1
  93. package/dist/commands/begin.js +0 -45
  94. package/dist/commands/begin.js.map +0 -1
  95. package/dist/commands/bootstrap.d.ts +0 -111
  96. package/dist/commands/bootstrap.d.ts.map +0 -1
  97. package/dist/commands/bootstrap.js +0 -485
  98. package/dist/commands/bootstrap.js.map +0 -1
  99. package/dist/commands/clean.d.ts +0 -41
  100. package/dist/commands/clean.d.ts.map +0 -1
  101. package/dist/commands/clean.js +0 -382
  102. package/dist/commands/clean.js.map +0 -1
  103. package/dist/commands/completion.d.ts +0 -30
  104. package/dist/commands/completion.d.ts.map +0 -1
  105. package/dist/commands/completion.js +0 -50
  106. package/dist/commands/completion.js.map +0 -1
  107. package/dist/commands/config.d.ts +0 -3
  108. package/dist/commands/config.d.ts.map +0 -1
  109. package/dist/commands/config.js +0 -146
  110. package/dist/commands/config.js.map +0 -1
  111. package/dist/commands/create.d.ts +0 -8
  112. package/dist/commands/create.d.ts.map +0 -1
  113. package/dist/commands/create.js +0 -775
  114. package/dist/commands/create.js.map +0 -1
  115. package/dist/commands/crystallize.d.ts +0 -18
  116. package/dist/commands/crystallize.d.ts.map +0 -1
  117. package/dist/commands/crystallize.js +0 -123
  118. package/dist/commands/crystallize.js.map +0 -1
  119. package/dist/commands/destroy.d.ts +0 -59
  120. package/dist/commands/destroy.d.ts.map +0 -1
  121. package/dist/commands/destroy.js +0 -148
  122. package/dist/commands/destroy.js.map +0 -1
  123. package/dist/commands/diagnose.d.ts +0 -36
  124. package/dist/commands/diagnose.d.ts.map +0 -1
  125. package/dist/commands/diagnose.js +0 -177
  126. package/dist/commands/diagnose.js.map +0 -1
  127. package/dist/commands/dispatch-resolve.d.ts +0 -54
  128. package/dist/commands/dispatch-resolve.d.ts.map +0 -1
  129. package/dist/commands/dispatch-resolve.js +0 -105
  130. package/dist/commands/dispatch-resolve.js.map +0 -1
  131. package/dist/commands/dispatch.d.ts +0 -18
  132. package/dist/commands/dispatch.d.ts.map +0 -1
  133. package/dist/commands/dispatch.js +0 -159
  134. package/dist/commands/dispatch.js.map +0 -1
  135. package/dist/commands/doctor.d.ts +0 -258
  136. package/dist/commands/doctor.d.ts.map +0 -1
  137. package/dist/commands/doctor.js +0 -1073
  138. package/dist/commands/doctor.js.map +0 -1
  139. package/dist/commands/enter.d.ts +0 -63
  140. package/dist/commands/enter.d.ts.map +0 -1
  141. package/dist/commands/enter.js +0 -230
  142. package/dist/commands/enter.js.map +0 -1
  143. package/dist/commands/flywheel/check-persona-skeleton.d.ts +0 -35
  144. package/dist/commands/flywheel/check-persona-skeleton.d.ts.map +0 -1
  145. package/dist/commands/flywheel/check-persona-skeleton.js +0 -151
  146. package/dist/commands/flywheel/check-persona-skeleton.js.map +0 -1
  147. package/dist/commands/flywheel/diversity-check.d.ts +0 -17
  148. package/dist/commands/flywheel/diversity-check.d.ts.map +0 -1
  149. package/dist/commands/flywheel/diversity-check.js +0 -64
  150. package/dist/commands/flywheel/diversity-check.js.map +0 -1
  151. package/dist/commands/flywheel/emit-breadcrumb.d.ts +0 -20
  152. package/dist/commands/flywheel/emit-breadcrumb.d.ts.map +0 -1
  153. package/dist/commands/flywheel/emit-breadcrumb.js +0 -137
  154. package/dist/commands/flywheel/emit-breadcrumb.js.map +0 -1
  155. package/dist/commands/flywheel/index.d.ts +0 -27
  156. package/dist/commands/flywheel/index.d.ts.map +0 -1
  157. package/dist/commands/flywheel/index.js +0 -54
  158. package/dist/commands/flywheel/index.js.map +0 -1
  159. package/dist/commands/flywheel/install-sessionstart-hook.d.ts +0 -64
  160. package/dist/commands/flywheel/install-sessionstart-hook.d.ts.map +0 -1
  161. package/dist/commands/flywheel/install-sessionstart-hook.js +0 -197
  162. package/dist/commands/flywheel/install-sessionstart-hook.js.map +0 -1
  163. package/dist/commands/flywheel/install-shims.d.ts +0 -41
  164. package/dist/commands/flywheel/install-shims.d.ts.map +0 -1
  165. package/dist/commands/flywheel/install-shims.js +0 -126
  166. package/dist/commands/flywheel/install-shims.js.map +0 -1
  167. package/dist/commands/flywheel/k10-measure.d.ts +0 -17
  168. package/dist/commands/flywheel/k10-measure.d.ts.map +0 -1
  169. package/dist/commands/flywheel/k10-measure.js +0 -63
  170. package/dist/commands/flywheel/k10-measure.js.map +0 -1
  171. package/dist/commands/flywheel/k5-score.d.ts +0 -14
  172. package/dist/commands/flywheel/k5-score.d.ts.map +0 -1
  173. package/dist/commands/flywheel/k5-score.js +0 -59
  174. package/dist/commands/flywheel/k5-score.js.map +0 -1
  175. package/dist/commands/flywheel/k5-validate.d.ts +0 -46
  176. package/dist/commands/flywheel/k5-validate.d.ts.map +0 -1
  177. package/dist/commands/flywheel/k5-validate.js +0 -246
  178. package/dist/commands/flywheel/k5-validate.js.map +0 -1
  179. package/dist/commands/flywheel/migrate-overlays.d.ts +0 -116
  180. package/dist/commands/flywheel/migrate-overlays.d.ts.map +0 -1
  181. package/dist/commands/flywheel/migrate-overlays.js +0 -792
  182. package/dist/commands/flywheel/migrate-overlays.js.map +0 -1
  183. package/dist/commands/flywheel/ping.d.ts +0 -21
  184. package/dist/commands/flywheel/ping.d.ts.map +0 -1
  185. package/dist/commands/flywheel/ping.js +0 -79
  186. package/dist/commands/flywheel/ping.js.map +0 -1
  187. package/dist/commands/flywheel/sanitize-persona-output.d.ts +0 -38
  188. package/dist/commands/flywheel/sanitize-persona-output.d.ts.map +0 -1
  189. package/dist/commands/flywheel/sanitize-persona-output.js +0 -102
  190. package/dist/commands/flywheel/sanitize-persona-output.js.map +0 -1
  191. package/dist/commands/flywheel/session-start.d.ts +0 -26
  192. package/dist/commands/flywheel/session-start.d.ts.map +0 -1
  193. package/dist/commands/flywheel/session-start.js +0 -119
  194. package/dist/commands/flywheel/session-start.js.map +0 -1
  195. package/dist/commands/hermes-kg-hook.d.ts +0 -36
  196. package/dist/commands/hermes-kg-hook.d.ts.map +0 -1
  197. package/dist/commands/hermes-kg-hook.js +0 -80
  198. package/dist/commands/hermes-kg-hook.js.map +0 -1
  199. package/dist/commands/hermes.d.ts +0 -46
  200. package/dist/commands/hermes.d.ts.map +0 -1
  201. package/dist/commands/hermes.js +0 -320
  202. package/dist/commands/hermes.js.map +0 -1
  203. package/dist/commands/host-cp.d.ts +0 -216
  204. package/dist/commands/host-cp.d.ts.map +0 -1
  205. package/dist/commands/host-cp.js +0 -913
  206. package/dist/commands/host-cp.js.map +0 -1
  207. package/dist/commands/implode.d.ts +0 -86
  208. package/dist/commands/implode.d.ts.map +0 -1
  209. package/dist/commands/implode.js +0 -468
  210. package/dist/commands/implode.js.map +0 -1
  211. package/dist/commands/init.d.ts +0 -86
  212. package/dist/commands/init.d.ts.map +0 -1
  213. package/dist/commands/init.js +0 -357
  214. package/dist/commands/init.js.map +0 -1
  215. package/dist/commands/install.d.ts +0 -22
  216. package/dist/commands/install.d.ts.map +0 -1
  217. package/dist/commands/install.js +0 -203
  218. package/dist/commands/install.js.map +0 -1
  219. package/dist/commands/keys-list-json.d.ts +0 -55
  220. package/dist/commands/keys-list-json.d.ts.map +0 -1
  221. package/dist/commands/keys-list-json.js +0 -54
  222. package/dist/commands/keys-list-json.js.map +0 -1
  223. package/dist/commands/keys.d.ts +0 -26
  224. package/dist/commands/keys.d.ts.map +0 -1
  225. package/dist/commands/keys.js +0 -157
  226. package/dist/commands/keys.js.map +0 -1
  227. package/dist/commands/kg-build.d.ts +0 -80
  228. package/dist/commands/kg-build.d.ts.map +0 -1
  229. package/dist/commands/kg-build.js +0 -282
  230. package/dist/commands/kg-build.js.map +0 -1
  231. package/dist/commands/kg-classify.d.ts +0 -30
  232. package/dist/commands/kg-classify.d.ts.map +0 -1
  233. package/dist/commands/kg-classify.js +0 -88
  234. package/dist/commands/kg-classify.js.map +0 -1
  235. package/dist/commands/kg-doctor.d.ts +0 -76
  236. package/dist/commands/kg-doctor.d.ts.map +0 -1
  237. package/dist/commands/kg-doctor.js +0 -262
  238. package/dist/commands/kg-doctor.js.map +0 -1
  239. package/dist/commands/kg-install-hook.d.ts +0 -20
  240. package/dist/commands/kg-install-hook.d.ts.map +0 -1
  241. package/dist/commands/kg-install-hook.js +0 -208
  242. package/dist/commands/kg-install-hook.js.map +0 -1
  243. package/dist/commands/kg-mirror.d.ts +0 -72
  244. package/dist/commands/kg-mirror.d.ts.map +0 -1
  245. package/dist/commands/kg-mirror.js +0 -397
  246. package/dist/commands/kg-mirror.js.map +0 -1
  247. package/dist/commands/kg-savings.d.ts +0 -20
  248. package/dist/commands/kg-savings.d.ts.map +0 -1
  249. package/dist/commands/kg-savings.js +0 -77
  250. package/dist/commands/kg-savings.js.map +0 -1
  251. package/dist/commands/kg-service-container.d.ts +0 -68
  252. package/dist/commands/kg-service-container.d.ts.map +0 -1
  253. package/dist/commands/kg-service-container.js +0 -191
  254. package/dist/commands/kg-service-container.js.map +0 -1
  255. package/dist/commands/kg-status.d.ts +0 -59
  256. package/dist/commands/kg-status.d.ts.map +0 -1
  257. package/dist/commands/kg-status.js +0 -344
  258. package/dist/commands/kg-status.js.map +0 -1
  259. package/dist/commands/kg-uninstall-hook.d.ts +0 -12
  260. package/dist/commands/kg-uninstall-hook.d.ts.map +0 -1
  261. package/dist/commands/kg-uninstall-hook.js +0 -121
  262. package/dist/commands/kg-uninstall-hook.js.map +0 -1
  263. package/dist/commands/kg-watch.d.ts +0 -49
  264. package/dist/commands/kg-watch.d.ts.map +0 -1
  265. package/dist/commands/kg-watch.js +0 -172
  266. package/dist/commands/kg-watch.js.map +0 -1
  267. package/dist/commands/lanes-list-json.d.ts +0 -69
  268. package/dist/commands/lanes-list-json.d.ts.map +0 -1
  269. package/dist/commands/lanes-list-json.js +0 -42
  270. package/dist/commands/lanes-list-json.js.map +0 -1
  271. package/dist/commands/lanes.d.ts +0 -18
  272. package/dist/commands/lanes.d.ts.map +0 -1
  273. package/dist/commands/lanes.js +0 -133
  274. package/dist/commands/lanes.js.map +0 -1
  275. package/dist/commands/list.d.ts +0 -33
  276. package/dist/commands/list.d.ts.map +0 -1
  277. package/dist/commands/list.js +0 -87
  278. package/dist/commands/list.js.map +0 -1
  279. package/dist/commands/logs.d.ts +0 -52
  280. package/dist/commands/logs.d.ts.map +0 -1
  281. package/dist/commands/logs.js +0 -180
  282. package/dist/commands/logs.js.map +0 -1
  283. package/dist/commands/mcp/add.d.ts +0 -9
  284. package/dist/commands/mcp/add.d.ts.map +0 -1
  285. package/dist/commands/mcp/add.js +0 -87
  286. package/dist/commands/mcp/add.js.map +0 -1
  287. package/dist/commands/mcp/client.d.ts +0 -60
  288. package/dist/commands/mcp/client.d.ts.map +0 -1
  289. package/dist/commands/mcp/client.js +0 -70
  290. package/dist/commands/mcp/client.js.map +0 -1
  291. package/dist/commands/mcp/complete.d.ts +0 -36
  292. package/dist/commands/mcp/complete.d.ts.map +0 -1
  293. package/dist/commands/mcp/complete.js +0 -66
  294. package/dist/commands/mcp/complete.js.map +0 -1
  295. package/dist/commands/mcp/import-discovery.d.ts +0 -25
  296. package/dist/commands/mcp/import-discovery.d.ts.map +0 -1
  297. package/dist/commands/mcp/import-discovery.js +0 -135
  298. package/dist/commands/mcp/import-discovery.js.map +0 -1
  299. package/dist/commands/mcp/import-validate.d.ts +0 -15
  300. package/dist/commands/mcp/import-validate.d.ts.map +0 -1
  301. package/dist/commands/mcp/import-validate.js +0 -55
  302. package/dist/commands/mcp/import-validate.js.map +0 -1
  303. package/dist/commands/mcp/import.d.ts +0 -12
  304. package/dist/commands/mcp/import.d.ts.map +0 -1
  305. package/dist/commands/mcp/import.js +0 -126
  306. package/dist/commands/mcp/import.js.map +0 -1
  307. package/dist/commands/mcp/index.d.ts +0 -14
  308. package/dist/commands/mcp/index.d.ts.map +0 -1
  309. package/dist/commands/mcp/index.js +0 -39
  310. package/dist/commands/mcp/index.js.map +0 -1
  311. package/dist/commands/mcp/install-shared.d.ts +0 -24
  312. package/dist/commands/mcp/install-shared.d.ts.map +0 -1
  313. package/dist/commands/mcp/install-shared.js +0 -42
  314. package/dist/commands/mcp/install-shared.js.map +0 -1
  315. package/dist/commands/mcp/install.d.ts +0 -20
  316. package/dist/commands/mcp/install.d.ts.map +0 -1
  317. package/dist/commands/mcp/install.js +0 -59
  318. package/dist/commands/mcp/install.js.map +0 -1
  319. package/dist/commands/mcp/list.d.ts +0 -6
  320. package/dist/commands/mcp/list.d.ts.map +0 -1
  321. package/dist/commands/mcp/list.js +0 -56
  322. package/dist/commands/mcp/list.js.map +0 -1
  323. package/dist/commands/mcp/login.d.ts +0 -6
  324. package/dist/commands/mcp/login.d.ts.map +0 -1
  325. package/dist/commands/mcp/login.js +0 -38
  326. package/dist/commands/mcp/login.js.map +0 -1
  327. package/dist/commands/mcp/remove.d.ts +0 -6
  328. package/dist/commands/mcp/remove.d.ts.map +0 -1
  329. package/dist/commands/mcp/remove.js +0 -21
  330. package/dist/commands/mcp/remove.js.map +0 -1
  331. package/dist/commands/mcp/revoke.d.ts +0 -11
  332. package/dist/commands/mcp/revoke.d.ts.map +0 -1
  333. package/dist/commands/mcp/revoke.js +0 -51
  334. package/dist/commands/mcp/revoke.js.map +0 -1
  335. package/dist/commands/mcp/serve.d.ts +0 -23
  336. package/dist/commands/mcp/serve.d.ts.map +0 -1
  337. package/dist/commands/mcp/serve.js +0 -55
  338. package/dist/commands/mcp/serve.js.map +0 -1
  339. package/dist/commands/mcp/status.d.ts +0 -6
  340. package/dist/commands/mcp/status.d.ts.map +0 -1
  341. package/dist/commands/mcp/status.js +0 -57
  342. package/dist/commands/mcp/status.js.map +0 -1
  343. package/dist/commands/mcp/uninstall.d.ts +0 -20
  344. package/dist/commands/mcp/uninstall.d.ts.map +0 -1
  345. package/dist/commands/mcp/uninstall.js +0 -60
  346. package/dist/commands/mcp/uninstall.js.map +0 -1
  347. package/dist/commands/memory/_paths.d.ts +0 -25
  348. package/dist/commands/memory/_paths.d.ts.map +0 -1
  349. package/dist/commands/memory/_paths.js +0 -57
  350. package/dist/commands/memory/_paths.js.map +0 -1
  351. package/dist/commands/memory/bridge.d.ts +0 -57
  352. package/dist/commands/memory/bridge.d.ts.map +0 -1
  353. package/dist/commands/memory/bridge.js +0 -152
  354. package/dist/commands/memory/bridge.js.map +0 -1
  355. package/dist/commands/memory/index.d.ts +0 -20
  356. package/dist/commands/memory/index.d.ts.map +0 -1
  357. package/dist/commands/memory/index.js +0 -47
  358. package/dist/commands/memory/index.js.map +0 -1
  359. package/dist/commands/memory/install-hooks.d.ts +0 -22
  360. package/dist/commands/memory/install-hooks.d.ts.map +0 -1
  361. package/dist/commands/memory/install-hooks.js +0 -156
  362. package/dist/commands/memory/install-hooks.js.map +0 -1
  363. package/dist/commands/memory/install.d.ts +0 -57
  364. package/dist/commands/memory/install.d.ts.map +0 -1
  365. package/dist/commands/memory/install.js +0 -114
  366. package/dist/commands/memory/install.js.map +0 -1
  367. package/dist/commands/memory/logs.d.ts +0 -19
  368. package/dist/commands/memory/logs.d.ts.map +0 -1
  369. package/dist/commands/memory/logs.js +0 -50
  370. package/dist/commands/memory/logs.js.map +0 -1
  371. package/dist/commands/memory/mode.d.ts +0 -47
  372. package/dist/commands/memory/mode.d.ts.map +0 -1
  373. package/dist/commands/memory/mode.js +0 -185
  374. package/dist/commands/memory/mode.js.map +0 -1
  375. package/dist/commands/memory/reclassify.d.ts +0 -56
  376. package/dist/commands/memory/reclassify.d.ts.map +0 -1
  377. package/dist/commands/memory/reclassify.js +0 -177
  378. package/dist/commands/memory/reclassify.js.map +0 -1
  379. package/dist/commands/memory/secret.d.ts +0 -16
  380. package/dist/commands/memory/secret.d.ts.map +0 -1
  381. package/dist/commands/memory/secret.js +0 -80
  382. package/dist/commands/memory/secret.js.map +0 -1
  383. package/dist/commands/memory/start.d.ts +0 -25
  384. package/dist/commands/memory/start.d.ts.map +0 -1
  385. package/dist/commands/memory/start.js +0 -83
  386. package/dist/commands/memory/start.js.map +0 -1
  387. package/dist/commands/memory/stats.d.ts +0 -69
  388. package/dist/commands/memory/stats.d.ts.map +0 -1
  389. package/dist/commands/memory/stats.js +0 -164
  390. package/dist/commands/memory/stats.js.map +0 -1
  391. package/dist/commands/memory/status.d.ts +0 -45
  392. package/dist/commands/memory/status.d.ts.map +0 -1
  393. package/dist/commands/memory/status.js +0 -134
  394. package/dist/commands/memory/status.js.map +0 -1
  395. package/dist/commands/memory/stop.d.ts +0 -13
  396. package/dist/commands/memory/stop.d.ts.map +0 -1
  397. package/dist/commands/memory/stop.js +0 -52
  398. package/dist/commands/memory/stop.js.map +0 -1
  399. package/dist/commands/memory/uninstall.d.ts +0 -19
  400. package/dist/commands/memory/uninstall.d.ts.map +0 -1
  401. package/dist/commands/memory/uninstall.js +0 -60
  402. package/dist/commands/memory/uninstall.js.map +0 -1
  403. package/dist/commands/memory-service-container.d.ts +0 -130
  404. package/dist/commands/memory-service-container.d.ts.map +0 -1
  405. package/dist/commands/memory-service-container.js +0 -251
  406. package/dist/commands/memory-service-container.js.map +0 -1
  407. package/dist/commands/observe.d.ts +0 -9
  408. package/dist/commands/observe.d.ts.map +0 -1
  409. package/dist/commands/observe.js +0 -42
  410. package/dist/commands/observe.js.map +0 -1
  411. package/dist/commands/plans-list-json.d.ts +0 -77
  412. package/dist/commands/plans-list-json.d.ts.map +0 -1
  413. package/dist/commands/plans-list-json.js +0 -61
  414. package/dist/commands/plans-list-json.js.map +0 -1
  415. package/dist/commands/plans.d.ts +0 -3
  416. package/dist/commands/plans.d.ts.map +0 -1
  417. package/dist/commands/plans.js +0 -221
  418. package/dist/commands/plans.js.map +0 -1
  419. package/dist/commands/policy-check.d.ts +0 -14
  420. package/dist/commands/policy-check.d.ts.map +0 -1
  421. package/dist/commands/policy-check.js +0 -76
  422. package/dist/commands/policy-check.js.map +0 -1
  423. package/dist/commands/pr.d.ts +0 -17
  424. package/dist/commands/pr.d.ts.map +0 -1
  425. package/dist/commands/pr.js +0 -148
  426. package/dist/commands/pr.js.map +0 -1
  427. package/dist/commands/ps.d.ts +0 -57
  428. package/dist/commands/ps.d.ts.map +0 -1
  429. package/dist/commands/ps.js +0 -202
  430. package/dist/commands/ps.js.map +0 -1
  431. package/dist/commands/refresh-helpers.d.ts +0 -25
  432. package/dist/commands/refresh-helpers.d.ts.map +0 -1
  433. package/dist/commands/refresh-helpers.js +0 -56
  434. package/dist/commands/refresh-helpers.js.map +0 -1
  435. package/dist/commands/refresh.d.ts +0 -23
  436. package/dist/commands/refresh.d.ts.map +0 -1
  437. package/dist/commands/refresh.js +0 -237
  438. package/dist/commands/refresh.js.map +0 -1
  439. package/dist/commands/rekey.d.ts +0 -84
  440. package/dist/commands/rekey.d.ts.map +0 -1
  441. package/dist/commands/rekey.js +0 -209
  442. package/dist/commands/rekey.js.map +0 -1
  443. package/dist/commands/repos-list-json.d.ts +0 -58
  444. package/dist/commands/repos-list-json.d.ts.map +0 -1
  445. package/dist/commands/repos-list-json.js +0 -45
  446. package/dist/commands/repos-list-json.js.map +0 -1
  447. package/dist/commands/repos.d.ts +0 -11
  448. package/dist/commands/repos.d.ts.map +0 -1
  449. package/dist/commands/repos.js +0 -102
  450. package/dist/commands/repos.js.map +0 -1
  451. package/dist/commands/restart.d.ts +0 -18
  452. package/dist/commands/restart.d.ts.map +0 -1
  453. package/dist/commands/restart.js +0 -113
  454. package/dist/commands/restart.js.map +0 -1
  455. package/dist/commands/resume.d.ts +0 -63
  456. package/dist/commands/resume.d.ts.map +0 -1
  457. package/dist/commands/resume.js +0 -174
  458. package/dist/commands/resume.js.map +0 -1
  459. package/dist/commands/runbooks.d.ts +0 -45
  460. package/dist/commands/runbooks.d.ts.map +0 -1
  461. package/dist/commands/runbooks.js +0 -313
  462. package/dist/commands/runbooks.js.map +0 -1
  463. package/dist/commands/seed.d.ts +0 -27
  464. package/dist/commands/seed.d.ts.map +0 -1
  465. package/dist/commands/seed.js +0 -303
  466. package/dist/commands/seed.js.map +0 -1
  467. package/dist/commands/services-tls.d.ts +0 -120
  468. package/dist/commands/services-tls.d.ts.map +0 -1
  469. package/dist/commands/services-tls.js +0 -489
  470. package/dist/commands/services-tls.js.map +0 -1
  471. package/dist/commands/services.d.ts +0 -218
  472. package/dist/commands/services.d.ts.map +0 -1
  473. package/dist/commands/services.js +0 -830
  474. package/dist/commands/services.js.map +0 -1
  475. package/dist/commands/setup-linux-gate.d.ts +0 -26
  476. package/dist/commands/setup-linux-gate.d.ts.map +0 -1
  477. package/dist/commands/setup-linux-gate.js +0 -40
  478. package/dist/commands/setup-linux-gate.js.map +0 -1
  479. package/dist/commands/setup-metrics.d.ts +0 -26
  480. package/dist/commands/setup-metrics.d.ts.map +0 -1
  481. package/dist/commands/setup-metrics.js +0 -56
  482. package/dist/commands/setup-metrics.js.map +0 -1
  483. package/dist/commands/setup-phase-5a-skill-source.d.ts +0 -84
  484. package/dist/commands/setup-phase-5a-skill-source.d.ts.map +0 -1
  485. package/dist/commands/setup-phase-5a-skill-source.js +0 -259
  486. package/dist/commands/setup-phase-5a-skill-source.js.map +0 -1
  487. package/dist/commands/setup-phase-5b-project-sweep.d.ts +0 -38
  488. package/dist/commands/setup-phase-5b-project-sweep.d.ts.map +0 -1
  489. package/dist/commands/setup-phase-5b-project-sweep.js +0 -175
  490. package/dist/commands/setup-phase-5b-project-sweep.js.map +0 -1
  491. package/dist/commands/setup-phase-8-kg-hook.d.ts +0 -48
  492. package/dist/commands/setup-phase-8-kg-hook.d.ts.map +0 -1
  493. package/dist/commands/setup-phase-8-kg-hook.js +0 -93
  494. package/dist/commands/setup-phase-8-kg-hook.js.map +0 -1
  495. package/dist/commands/setup-phase-9-memory-bridge.d.ts +0 -36
  496. package/dist/commands/setup-phase-9-memory-bridge.d.ts.map +0 -1
  497. package/dist/commands/setup-phase-9-memory-bridge.js +0 -59
  498. package/dist/commands/setup-phase-9-memory-bridge.js.map +0 -1
  499. package/dist/commands/setup.d.ts +0 -231
  500. package/dist/commands/setup.d.ts.map +0 -1
  501. package/dist/commands/setup.js +0 -1374
  502. package/dist/commands/setup.js.map +0 -1
  503. package/dist/commands/skills-100x.d.ts +0 -34
  504. package/dist/commands/skills-100x.d.ts.map +0 -1
  505. package/dist/commands/skills-100x.js +0 -405
  506. package/dist/commands/skills-100x.js.map +0 -1
  507. package/dist/commands/skills-doctor.d.ts +0 -14
  508. package/dist/commands/skills-doctor.d.ts.map +0 -1
  509. package/dist/commands/skills-doctor.js +0 -126
  510. package/dist/commands/skills-doctor.js.map +0 -1
  511. package/dist/commands/skills-hook.d.ts +0 -19
  512. package/dist/commands/skills-hook.d.ts.map +0 -1
  513. package/dist/commands/skills-hook.js +0 -99
  514. package/dist/commands/skills-hook.js.map +0 -1
  515. package/dist/commands/skills-install-model-router.d.ts +0 -20
  516. package/dist/commands/skills-install-model-router.d.ts.map +0 -1
  517. package/dist/commands/skills-install-model-router.js +0 -55
  518. package/dist/commands/skills-install-model-router.js.map +0 -1
  519. package/dist/commands/skills-migrate-back.d.ts +0 -21
  520. package/dist/commands/skills-migrate-back.d.ts.map +0 -1
  521. package/dist/commands/skills-migrate-back.js +0 -222
  522. package/dist/commands/skills-migrate-back.js.map +0 -1
  523. package/dist/commands/skills-migrate-hooks-back.d.ts +0 -19
  524. package/dist/commands/skills-migrate-hooks-back.d.ts.map +0 -1
  525. package/dist/commands/skills-migrate-hooks-back.js +0 -83
  526. package/dist/commands/skills-migrate-hooks-back.js.map +0 -1
  527. package/dist/commands/skills-migrate-hooks.d.ts +0 -40
  528. package/dist/commands/skills-migrate-hooks.d.ts.map +0 -1
  529. package/dist/commands/skills-migrate-hooks.js +0 -178
  530. package/dist/commands/skills-migrate-hooks.js.map +0 -1
  531. package/dist/commands/skills-migrate.d.ts +0 -33
  532. package/dist/commands/skills-migrate.d.ts.map +0 -1
  533. package/dist/commands/skills-migrate.js +0 -216
  534. package/dist/commands/skills-migrate.js.map +0 -1
  535. package/dist/commands/skills-onboard.d.ts +0 -26
  536. package/dist/commands/skills-onboard.d.ts.map +0 -1
  537. package/dist/commands/skills-onboard.js +0 -230
  538. package/dist/commands/skills-onboard.js.map +0 -1
  539. package/dist/commands/skills-shadow-backups.d.ts +0 -15
  540. package/dist/commands/skills-shadow-backups.d.ts.map +0 -1
  541. package/dist/commands/skills-shadow-backups.js +0 -132
  542. package/dist/commands/skills-shadow-backups.js.map +0 -1
  543. package/dist/commands/skills-source.d.ts +0 -61
  544. package/dist/commands/skills-source.d.ts.map +0 -1
  545. package/dist/commands/skills-source.js +0 -895
  546. package/dist/commands/skills-source.js.map +0 -1
  547. package/dist/commands/skills.d.ts +0 -59
  548. package/dist/commands/skills.d.ts.map +0 -1
  549. package/dist/commands/skills.js +0 -461
  550. package/dist/commands/skills.js.map +0 -1
  551. package/dist/commands/status.d.ts +0 -65
  552. package/dist/commands/status.d.ts.map +0 -1
  553. package/dist/commands/status.js +0 -249
  554. package/dist/commands/status.js.map +0 -1
  555. package/dist/commands/stop.d.ts +0 -10
  556. package/dist/commands/stop.d.ts.map +0 -1
  557. package/dist/commands/stop.js +0 -17
  558. package/dist/commands/stop.js.map +0 -1
  559. package/dist/commands/substrate-audit-log.d.ts +0 -51
  560. package/dist/commands/substrate-audit-log.d.ts.map +0 -1
  561. package/dist/commands/substrate-audit-log.js +0 -161
  562. package/dist/commands/substrate-audit-log.js.map +0 -1
  563. package/dist/commands/substrate.d.ts +0 -87
  564. package/dist/commands/substrate.d.ts.map +0 -1
  565. package/dist/commands/substrate.js +0 -194
  566. package/dist/commands/substrate.js.map +0 -1
  567. package/dist/commands/update.d.ts +0 -89
  568. package/dist/commands/update.d.ts.map +0 -1
  569. package/dist/commands/update.js +0 -331
  570. package/dist/commands/update.js.map +0 -1
  571. package/dist/commands/upgrade-history.d.ts +0 -15
  572. package/dist/commands/upgrade-history.d.ts.map +0 -1
  573. package/dist/commands/upgrade-history.js +0 -34
  574. package/dist/commands/upgrade-history.js.map +0 -1
  575. package/dist/commands/upgrade-lock.d.ts +0 -93
  576. package/dist/commands/upgrade-lock.d.ts.map +0 -1
  577. package/dist/commands/upgrade-lock.js +0 -225
  578. package/dist/commands/upgrade-lock.js.map +0 -1
  579. package/dist/commands/upgrade-log.d.ts +0 -86
  580. package/dist/commands/upgrade-log.d.ts.map +0 -1
  581. package/dist/commands/upgrade-log.js +0 -146
  582. package/dist/commands/upgrade-log.js.map +0 -1
  583. package/dist/commands/upgrade.d.ts +0 -445
  584. package/dist/commands/upgrade.d.ts.map +0 -1
  585. package/dist/commands/upgrade.js +0 -1718
  586. package/dist/commands/upgrade.js.map +0 -1
  587. package/dist/commands/workspace-list-json.d.ts +0 -73
  588. package/dist/commands/workspace-list-json.d.ts.map +0 -1
  589. package/dist/commands/workspace-list-json.js +0 -59
  590. package/dist/commands/workspace-list-json.js.map +0 -1
  591. package/dist/commands/workspace.d.ts +0 -23
  592. package/dist/commands/workspace.d.ts.map +0 -1
  593. package/dist/commands/workspace.js +0 -203
  594. package/dist/commands/workspace.js.map +0 -1
  595. package/dist/commands/world-snapshot.d.ts +0 -32
  596. package/dist/commands/world-snapshot.d.ts.map +0 -1
  597. package/dist/commands/world-snapshot.js +0 -531
  598. package/dist/commands/world-snapshot.js.map +0 -1
  599. package/dist/commands/world-upgrade.d.ts +0 -33
  600. package/dist/commands/world-upgrade.d.ts.map +0 -1
  601. package/dist/commands/world-upgrade.js +0 -82
  602. package/dist/commands/world-upgrade.js.map +0 -1
  603. package/dist/commands/world.d.ts +0 -12
  604. package/dist/commands/world.d.ts.map +0 -1
  605. package/dist/commands/world.js +0 -18
  606. package/dist/commands/world.js.map +0 -1
  607. package/dist/commands/worldspec/compile.d.ts +0 -20
  608. package/dist/commands/worldspec/compile.d.ts.map +0 -1
  609. package/dist/commands/worldspec/compile.js +0 -130
  610. package/dist/commands/worldspec/compile.js.map +0 -1
  611. package/dist/commands/worldspec/index.d.ts +0 -12
  612. package/dist/commands/worldspec/index.d.ts.map +0 -1
  613. package/dist/commands/worldspec/index.js +0 -23
  614. package/dist/commands/worldspec/index.js.map +0 -1
  615. package/dist/commands/worldspec/init.d.ts +0 -15
  616. package/dist/commands/worldspec/init.d.ts.map +0 -1
  617. package/dist/commands/worldspec/init.js +0 -166
  618. package/dist/commands/worldspec/init.js.map +0 -1
  619. package/dist/commands/worldspec/schema.d.ts +0 -11
  620. package/dist/commands/worldspec/schema.d.ts.map +0 -1
  621. package/dist/commands/worldspec/schema.js +0 -55
  622. package/dist/commands/worldspec/schema.js.map +0 -1
  623. package/dist/commands/worldspec/validate.d.ts +0 -15
  624. package/dist/commands/worldspec/validate.d.ts.map +0 -1
  625. package/dist/commands/worldspec/validate.js +0 -66
  626. package/dist/commands/worldspec/validate.js.map +0 -1
  627. package/dist/commands/yolo.d.ts +0 -95
  628. package/dist/commands/yolo.d.ts.map +0 -1
  629. package/dist/commands/yolo.js +0 -377
  630. package/dist/commands/yolo.js.map +0 -1
  631. package/dist/context.d.ts +0 -30
  632. package/dist/context.d.ts.map +0 -1
  633. package/dist/context.js +0 -56
  634. package/dist/context.js.map +0 -1
  635. package/dist/docker-host.d.ts +0 -18
  636. package/dist/docker-host.d.ts.map +0 -1
  637. package/dist/docker-host.js +0 -17
  638. package/dist/docker-host.js.map +0 -1
  639. package/dist/exit-codes.d.ts +0 -67
  640. package/dist/exit-codes.d.ts.map +0 -1
  641. package/dist/exit-codes.js +0 -67
  642. package/dist/exit-codes.js.map +0 -1
  643. package/dist/from-manifest.d.ts +0 -53
  644. package/dist/from-manifest.d.ts.map +0 -1
  645. package/dist/from-manifest.js +0 -95
  646. package/dist/from-manifest.js.map +0 -1
  647. package/dist/image-presence.d.ts +0 -40
  648. package/dist/image-presence.d.ts.map +0 -1
  649. package/dist/image-presence.js +0 -39
  650. package/dist/image-presence.js.map +0 -1
  651. package/dist/index.d.ts +0 -9
  652. package/dist/index.d.ts.map +0 -1
  653. package/dist/install-root.d.ts +0 -74
  654. package/dist/install-root.d.ts.map +0 -1
  655. package/dist/install-root.js +0 -98
  656. package/dist/install-root.js.map +0 -1
  657. package/dist/lib/anthropic-base-url-file.d.ts +0 -37
  658. package/dist/lib/anthropic-base-url-file.d.ts.map +0 -1
  659. package/dist/lib/anthropic-base-url-file.js +0 -46
  660. package/dist/lib/anthropic-base-url-file.js.map +0 -1
  661. package/dist/lib/auth-backend.d.ts +0 -168
  662. package/dist/lib/auth-backend.d.ts.map +0 -1
  663. package/dist/lib/auth-backend.js +0 -172
  664. package/dist/lib/auth-backend.js.map +0 -1
  665. package/dist/lib/auth-list-cache.d.ts +0 -67
  666. package/dist/lib/auth-list-cache.d.ts.map +0 -1
  667. package/dist/lib/auth-list-cache.js +0 -84
  668. package/dist/lib/auth-list-cache.js.map +0 -1
  669. package/dist/lib/auth-list.d.ts +0 -107
  670. package/dist/lib/auth-list.d.ts.map +0 -1
  671. package/dist/lib/auth-list.js +0 -123
  672. package/dist/lib/auth-list.js.map +0 -1
  673. package/dist/lib/auth-login.d.ts +0 -92
  674. package/dist/lib/auth-login.d.ts.map +0 -1
  675. package/dist/lib/auth-login.js +0 -124
  676. package/dist/lib/auth-login.js.map +0 -1
  677. package/dist/lib/auth-mutator-backend.d.ts +0 -54
  678. package/dist/lib/auth-mutator-backend.d.ts.map +0 -1
  679. package/dist/lib/auth-mutator-backend.js +0 -62
  680. package/dist/lib/auth-mutator-backend.js.map +0 -1
  681. package/dist/lib/auth-refresh-kubernetes.d.ts +0 -65
  682. package/dist/lib/auth-refresh-kubernetes.d.ts.map +0 -1
  683. package/dist/lib/auth-refresh-kubernetes.js +0 -125
  684. package/dist/lib/auth-refresh-kubernetes.js.map +0 -1
  685. package/dist/lib/auth-remote.d.ts +0 -172
  686. package/dist/lib/auth-remote.d.ts.map +0 -1
  687. package/dist/lib/auth-remote.js +0 -394
  688. package/dist/lib/auth-remote.js.map +0 -1
  689. package/dist/lib/bootstrap-kubernetes.d.ts +0 -164
  690. package/dist/lib/bootstrap-kubernetes.d.ts.map +0 -1
  691. package/dist/lib/bootstrap-kubernetes.js +0 -1002
  692. package/dist/lib/bootstrap-kubernetes.js.map +0 -1
  693. package/dist/lib/build-if-stale.d.ts +0 -33
  694. package/dist/lib/build-if-stale.d.ts.map +0 -1
  695. package/dist/lib/build-if-stale.js +0 -156
  696. package/dist/lib/build-if-stale.js.map +0 -1
  697. package/dist/lib/bundle-freshness.d.ts +0 -57
  698. package/dist/lib/bundle-freshness.d.ts.map +0 -1
  699. package/dist/lib/bundle-freshness.js +0 -223
  700. package/dist/lib/bundle-freshness.js.map +0 -1
  701. package/dist/lib/bundle-source.d.ts +0 -52
  702. package/dist/lib/bundle-source.d.ts.map +0 -1
  703. package/dist/lib/bundle-source.js +0 -83
  704. package/dist/lib/bundle-source.js.map +0 -1
  705. package/dist/lib/cf-access-token.d.ts +0 -32
  706. package/dist/lib/cf-access-token.d.ts.map +0 -1
  707. package/dist/lib/cf-access-token.js +0 -51
  708. package/dist/lib/cf-access-token.js.map +0 -1
  709. package/dist/lib/completion-generator.d.ts +0 -107
  710. package/dist/lib/completion-generator.d.ts.map +0 -1
  711. package/dist/lib/completion-generator.js +0 -226
  712. package/dist/lib/completion-generator.js.map +0 -1
  713. package/dist/lib/config.d.ts +0 -114
  714. package/dist/lib/config.d.ts.map +0 -1
  715. package/dist/lib/config.js +0 -246
  716. package/dist/lib/config.js.map +0 -1
  717. package/dist/lib/flywheel-probes.d.ts +0 -58
  718. package/dist/lib/flywheel-probes.d.ts.map +0 -1
  719. package/dist/lib/flywheel-probes.js +0 -163
  720. package/dist/lib/flywheel-probes.js.map +0 -1
  721. package/dist/lib/health-probes.d.ts +0 -267
  722. package/dist/lib/health-probes.d.ts.map +0 -1
  723. package/dist/lib/health-probes.js +0 -933
  724. package/dist/lib/health-probes.js.map +0 -1
  725. package/dist/lib/help-groups.d.ts +0 -36
  726. package/dist/lib/help-groups.d.ts.map +0 -1
  727. package/dist/lib/help-groups.js +0 -124
  728. package/dist/lib/help-groups.js.map +0 -1
  729. package/dist/lib/host-side-proxy.d.ts +0 -67
  730. package/dist/lib/host-side-proxy.d.ts.map +0 -1
  731. package/dist/lib/host-side-proxy.js +0 -177
  732. package/dist/lib/host-side-proxy.js.map +0 -1
  733. package/dist/lib/instrumentation.d.ts +0 -85
  734. package/dist/lib/instrumentation.d.ts.map +0 -1
  735. package/dist/lib/instrumentation.js +0 -104
  736. package/dist/lib/instrumentation.js.map +0 -1
  737. package/dist/lib/k8s-bootstrap.d.ts +0 -126
  738. package/dist/lib/k8s-bootstrap.d.ts.map +0 -1
  739. package/dist/lib/k8s-bootstrap.js +0 -218
  740. package/dist/lib/k8s-bootstrap.js.map +0 -1
  741. package/dist/lib/k8s-context-discovery.d.ts +0 -80
  742. package/dist/lib/k8s-context-discovery.d.ts.map +0 -1
  743. package/dist/lib/k8s-context-discovery.js +0 -102
  744. package/dist/lib/k8s-context-discovery.js.map +0 -1
  745. package/dist/lib/k8s-secret-render.d.ts +0 -141
  746. package/dist/lib/k8s-secret-render.d.ts.map +0 -1
  747. package/dist/lib/k8s-secret-render.js +0 -318
  748. package/dist/lib/k8s-secret-render.js.map +0 -1
  749. package/dist/lib/kg-caps.d.ts +0 -19
  750. package/dist/lib/kg-caps.d.ts.map +0 -1
  751. package/dist/lib/kg-caps.js +0 -19
  752. package/dist/lib/kg-caps.js.map +0 -1
  753. package/dist/lib/kubectl-context.d.ts +0 -87
  754. package/dist/lib/kubectl-context.d.ts.map +0 -1
  755. package/dist/lib/kubectl-context.js +0 -105
  756. package/dist/lib/kubectl-context.js.map +0 -1
  757. package/dist/lib/kubectl-wrap.d.ts +0 -65
  758. package/dist/lib/kubectl-wrap.d.ts.map +0 -1
  759. package/dist/lib/kubectl-wrap.js +0 -135
  760. package/dist/lib/kubectl-wrap.js.map +0 -1
  761. package/dist/lib/manifest-refresh.d.ts +0 -136
  762. package/dist/lib/manifest-refresh.d.ts.map +0 -1
  763. package/dist/lib/manifest-refresh.js +0 -298
  764. package/dist/lib/manifest-refresh.js.map +0 -1
  765. package/dist/lib/memory-host-process-migration.d.ts +0 -56
  766. package/dist/lib/memory-host-process-migration.d.ts.map +0 -1
  767. package/dist/lib/memory-host-process-migration.js +0 -156
  768. package/dist/lib/memory-host-process-migration.js.map +0 -1
  769. package/dist/lib/memory-secret.d.ts +0 -83
  770. package/dist/lib/memory-secret.d.ts.map +0 -1
  771. package/dist/lib/memory-secret.js +0 -147
  772. package/dist/lib/memory-secret.js.map +0 -1
  773. package/dist/lib/peripheral-registry.d.ts +0 -53
  774. package/dist/lib/peripheral-registry.d.ts.map +0 -1
  775. package/dist/lib/peripheral-registry.js +0 -73
  776. package/dist/lib/peripheral-registry.js.map +0 -1
  777. package/dist/lib/plans-client.d.ts +0 -69
  778. package/dist/lib/plans-client.d.ts.map +0 -1
  779. package/dist/lib/plans-client.js +0 -140
  780. package/dist/lib/plans-client.js.map +0 -1
  781. package/dist/lib/port-forward.d.ts +0 -168
  782. package/dist/lib/port-forward.d.ts.map +0 -1
  783. package/dist/lib/port-forward.js +0 -393
  784. package/dist/lib/port-forward.js.map +0 -1
  785. package/dist/lib/shell-rc.d.ts +0 -90
  786. package/dist/lib/shell-rc.d.ts.map +0 -1
  787. package/dist/lib/shell-rc.js +0 -91
  788. package/dist/lib/shell-rc.js.map +0 -1
  789. package/dist/lib/shim-generator.d.ts +0 -51
  790. package/dist/lib/shim-generator.d.ts.map +0 -1
  791. package/dist/lib/shim-generator.js +0 -88
  792. package/dist/lib/shim-generator.js.map +0 -1
  793. package/dist/lib/skills-apply-overlays.d.ts +0 -35
  794. package/dist/lib/skills-apply-overlays.d.ts.map +0 -1
  795. package/dist/lib/skills-apply-overlays.js +0 -243
  796. package/dist/lib/skills-apply-overlays.js.map +0 -1
  797. package/dist/lib/symlink-reconcile.d.ts +0 -32
  798. package/dist/lib/symlink-reconcile.d.ts.map +0 -1
  799. package/dist/lib/symlink-reconcile.js +0 -80
  800. package/dist/lib/symlink-reconcile.js.map +0 -1
  801. package/dist/lib/upgrade-check.d.ts +0 -60
  802. package/dist/lib/upgrade-check.d.ts.map +0 -1
  803. package/dist/lib/upgrade-check.js +0 -169
  804. package/dist/lib/upgrade-check.js.map +0 -1
  805. package/dist/lib/upgrade-kubernetes.d.ts +0 -193
  806. package/dist/lib/upgrade-kubernetes.d.ts.map +0 -1
  807. package/dist/lib/upgrade-kubernetes.js +0 -1014
  808. package/dist/lib/upgrade-kubernetes.js.map +0 -1
  809. package/dist/lib/world-mcp-register.d.ts +0 -98
  810. package/dist/lib/world-mcp-register.d.ts.map +0 -1
  811. package/dist/lib/world-mcp-register.js +0 -117
  812. package/dist/lib/world-mcp-register.js.map +0 -1
  813. package/dist/output.d.ts +0 -10
  814. package/dist/output.d.ts.map +0 -1
  815. package/dist/output.js +0 -31
  816. package/dist/output.js.map +0 -1
  817. package/dist/pleri-config.d.ts +0 -22
  818. package/dist/pleri-config.d.ts.map +0 -1
  819. package/dist/pleri-config.js +0 -42
  820. package/dist/pleri-config.js.map +0 -1
  821. package/dist/protocol-version.d.ts +0 -79
  822. package/dist/protocol-version.d.ts.map +0 -1
  823. package/dist/protocol-version.js +0 -133
  824. package/dist/protocol-version.js.map +0 -1
  825. package/dist/registry-allowlist.d.ts +0 -47
  826. package/dist/registry-allowlist.d.ts.map +0 -1
  827. package/dist/registry-allowlist.js +0 -67
  828. package/dist/registry-allowlist.js.map +0 -1
  829. package/dist/spawn/home-override.d.ts +0 -82
  830. package/dist/spawn/home-override.d.ts.map +0 -1
  831. package/dist/spawn/home-override.js +0 -107
  832. package/dist/spawn/home-override.js.map +0 -1
  833. package/host-cp/src/linear-sync.mjs +0 -43
package/README.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # @pleri/olam-cli
2
2
 
3
- Standalone CLI for [Olam](https://github.com/pleri/olam) — isolated
4
- development worlds with thought-graph capture, autonomous Build, and
5
- an MCP server for Claude Code.
3
+ Standalone CLI for [Olam](https://github.com/pleri/olam) — a **cloud-first**
4
+ agent platform: curated skills, persistent agent memory, symbol-aware code
5
+ search, and dispatch of autonomous coding agents to the cloud, all wired into
6
+ Claude Code.
6
7
 
7
8
  ```sh
8
9
  # Install
@@ -13,170 +14,135 @@ curl -fsSL https://olam.bar.dev/install | sh
13
14
  olam --version
14
15
  ```
15
16
 
16
- The installer publishes from npmjs.org. Requires **Node.js ≥ 20** and
17
- `npm`. Track the prerelease tag with `OLAM_CHANNEL=canary`.
17
+ Requires **Node.js ≥ 20** and `npm`. Track the prerelease tag with
18
+ `OLAM_CHANNEL=canary`.
18
19
 
19
- ## Run modes
20
+ ## Cloud-first by default
20
21
 
21
- Olam ships in two substrate-aware run modes. `olam setup` is the canonical fresh-host wizard; it dispatches to the right backend based on `~/.olam/config.json`'s `host.substrate` value (`bootstrap`, `services`, `upgrade`, and `doctor` are all substrate-aware too).
22
+ A fresh install is **cloud mode**: `olam --help` shows only the cloud surface
23
+ no Docker, k3s, or compose. The four cloud workflows are the default:
22
24
 
23
- | Mode | What runs | When to use | Bring up |
24
- |---|---|---|---|
25
- | **K3s** (default) | Full Kubernetes deployment on a local k3d cluster (`host-cp`, `auth-service`, `mcp-auth-service`, `kg-service`, `memory-service`) plus a `monitoring` namespace with kube-prometheus-stack + Loki + Grafana. | Same cluster topology olam runs in cloud/dogfood, ingress routing, observability dashboards, NetworkPolicy isolation. | `olam setup` — on macOS, auto-installs missing brew formulae by default. Guide: [olam.bar.dev/wiki?p=k3s](https://olam.bar.dev/wiki?p=k3s) |
26
- | **Compose** | 3 host containers (`olam-auth`, `olam-mcp-auth`, `olam-kg-service`) brought up via docker compose. | Lighter setup for hosts that can't run a Kubernetes cluster locally, or for CI. | `olam setup --substrate=docker`. Guide: [olam.bar.dev/wiki?p=setup](https://olam.bar.dev/wiki?p=setup) |
27
-
28
- K3s mode requires `k3d`, `kubectl`, `helm`, `gh`, and `docker`. `olam setup` prompts to install missing tools on macOS (via brew) and Linux (via upstream install scripts); pass `-y` to skip all prompts. Full prereq list at [olam.bar.dev/wiki?p=k3s](https://olam.bar.dev/wiki?p=k3s).
29
-
30
- ## Wire the MCP server into Claude Code
31
-
32
- Olam ships an MCP server with `olam_create`, `olam_dispatch`,
33
- `olam_destroy`, `olam_list`, `olam_status`, `olam_enter`, `olam_pr`,
34
- `olam_observe`, `olam_lane_*`, and `olam_capture_view`. Three wiring
35
- paths:
36
-
37
- ### One command (recommended)
25
+ | Workflow | What it gives you | Wire it up |
26
+ |---|---|---|
27
+ | **Skills** | sync curated skills + agents into `~/.claude` | `olam skills source add` `sync` `install-hook` |
28
+ | **Memory** | persistent agent memory across sessions | `olam memory connect <url>` `install-hooks` |
29
+ | **Knowledge graph** | symbol-aware code search | `olam kg connect <url>` → `install-hook` |
30
+ | **Remote** | plan + dispatch agents on the cloud | `olam remote connect <url>` `olam dispatch --executor cloud` |
38
31
 
39
32
  ```sh
40
- olam mcp install # default --scope=user
41
- olam mcp install --scope=project # writes to project .mcp.json
42
- olam mcp uninstall # idempotent; symmetric
43
- ```
44
-
45
- Auto-detects whether `olam` is on PATH. If so, writes
46
- `command: "olam"`. Otherwise falls back to
47
- `command: "npx", args: ["-y", "@pleri/olam-cli", "mcp", "serve"]`.
48
-
49
- ### Paste-in JSON
50
-
51
- Drop into `~/.claude.json` (user scope) or a project's `.mcp.json`:
52
-
53
- ```json
54
- {
55
- "mcpServers": {
56
- "olam": {
57
- "command": "npx",
58
- "args": ["-y", "@pleri/olam-cli", "mcp", "serve"]
59
- }
60
- }
61
- }
33
+ olam setup # guided cloud-first wizard (no Docker required)
62
34
  ```
63
35
 
64
- If `olam` is already on PATH, `command: "olam", args: ["mcp", "serve"]`
65
- is faster (no `npx` cold-start).
66
-
67
- ### Marketplace alias
68
-
69
- `olam --mcp` is a thin alias for `olam mcp serve`, matching the MCP
70
- marketplace convention where snippets invoke `npx -y <pkg> --mcp`. The
71
- two invocations produce identical stdio output.
72
-
73
- ### Verify
36
+ The CLI ships **no baked-in endpoints** you supply your team's service URLs.
37
+ Hidden local commands stay fully callable; reveal them any time:
74
38
 
75
39
  ```sh
76
- claude mcp list | grep olam
40
+ olam config local-mode # show the full docker/k3s command surface
41
+ olam config cloud-mode # back to cloud-first (default)
77
42
  ```
78
43
 
79
- Restart Claude Code; the `olam_*` tools surface automatically.
44
+ ## One-shot team setup (URLs as args, secrets via GCP IAM)
80
45
 
81
- ## Bootstrap the world stack
46
+ The most secure path for a team: **public URLs are args; secret bearers flow
47
+ through a shared GCS bucket gated by GCP IAM** — nothing sensitive touches the
48
+ command line or shell history.
82
49
 
83
50
  ```sh
84
- olam bootstrap # pull host-cp + auth + devbox; start services; auth login
85
- olam bootstrap --with-smoke # also create a smoke-test world
86
- olam bootstrap --skip-auth-login
87
- olam bootstrap --registry ghcr.io/pleri
51
+ olam setup \
52
+ --skills-source=<git-url> \
53
+ --remote-memory-url=<memory-url> \
54
+ --remote-kg-url=<kg-url> \
55
+ --remote-dispatch-url=<dispatch-url> \
56
+ --credentials=gcp # pull bearers from gs://olam-credentials
88
57
  ```
89
58
 
90
- What it does (digest-pinned, idempotent, parallel pulls, retries on
91
- transient failure): see
92
- [`docs/architecture/bootstrap.md`](https://github.com/pleri/olam/blob/main/docs/architecture/bootstrap.md).
93
- For the full stack setup, see
94
- [`docs/onboarding/k3s-mode-setup.md`](https://github.com/pleri/olam/blob/main/docs/onboarding/k3s-mode-setup.md).
59
+ - **Admin (once):** `olam credentials push` uploads the team's bearers to the
60
+ bucket (auto-created, uniform bucket-level access). Grant teammates
61
+ `roles/storage.objectViewer`.
62
+ - **Teammate:** `--credentials=gcp` runs `olam credentials pull` — `gcloud`
63
+ downloads the bearers with the teammate's own ADC and writes them `0600`.
64
+ Their GCP permission *is* the access gate.
65
+ - **Verify:** `olam remote status` and `olam doctor` (cloud-aware — it probes
66
+ the four connections, skipping Docker/k8s checks).
95
67
 
96
- State lands under `~/.olam/`:
68
+ `olam credentials status` lists which bearers exist locally.
97
69
 
98
- - `~/.olam/secrets/auth-secret` shared secret (`0600`) generated on first
99
- `auth up`.
100
- - `~/.olam/worlds/<world-id>/` — per-world worktree + thought DB.
101
- - `~/.olam/worlds.db` — world registry.
102
- - `~/.olam/upgrade.log` — JSONL audit log of `olam upgrade`.
70
+ ## Wire the MCP server into Claude Code
103
71
 
104
- ## Common commands
72
+ Olam ships an MCP server exposing `olam_create`, `olam_dispatch`,
73
+ `olam_destroy`, `olam_list`, `olam_status`, and more.
105
74
 
106
75
  ```sh
107
- olam create --name <slug> --task "<one-line goal>"
108
- olam list
109
- olam status <world>
110
- olam enter <world> # cd into the world's host clone
111
- olam dispatch <world> "<msg>"
112
- olam observe <world> # tail the world's thought stream
113
- olam pr <world> # open / inspect the world's PR
114
- olam destroy <world>
76
+ olam mcp install # default --scope=user
77
+ olam mcp install --scope=project # writes to project .mcp.json
78
+ olam mcp uninstall # idempotent; symmetric
115
79
  ```
116
80
 
117
- Full surface:
81
+ Auto-detects whether `olam` is on PATH (writes `command: "olam"`); otherwise
82
+ falls back to `npx -y @pleri/olam-cli mcp serve`. Paste-in for `~/.claude.json`
83
+ or a project `.mcp.json`:
118
84
 
119
- ```sh
120
- olam --help
121
- olam <command> --help
85
+ ```json
86
+ {
87
+ "mcpServers": {
88
+ "olam": { "command": "npx", "args": ["-y", "@pleri/olam-cli", "mcp", "serve"] }
89
+ }
90
+ }
122
91
  ```
123
92
 
124
- ## Agentic coding yolo dispatch
93
+ `olam --mcp` is a thin alias for `olam mcp serve` (MCP marketplace convention).
94
+ Verify with `claude mcp list | grep olam`, then restart Claude Code.
125
95
 
126
- `olam yolo` dispatches a parallel Claude Code session (`--dangerously-skip-permissions`)
127
- in a new tmux window backed by an isolated git worktree. Each session gets its
128
- own branch so it can't clobber the operator's main shell.
96
+ ## Cloud dispatch
129
97
 
130
98
  ```sh
131
- # Spawn a yolo on a bounded task
132
- olam yolo my-task --branch feat/my-task --prompt-file /tmp/my-task.txt
99
+ olam dispatch <world> "<task>" --executor cloud # CF Sandbox / plan-DO runner
100
+ ```
133
101
 
134
- # List active yolo windows
135
- olam yolo --list
102
+ `--executor` accepts `docker | do | sandbox | cloud`. With no flag, dispatch
103
+ routes to the cloud when you're in cloud mode **and** a remote is connected;
104
+ otherwise it uses a local Docker world. The chosen route is always printed.
136
105
 
137
- # Clean up after merge
138
- olam yolo --cleanup my-task
139
- ```
106
+ State lands under `~/.olam/` (all secrets `0600`):
140
107
 
141
- Full reference: `olam yolo --help` and [`docs/runbooks/olam-yolo-cli.md`](../../docs/runbooks/olam-yolo-cli.md).
108
+ - `~/.olam/memory-connection.json`, `~/.olam/kg-proxy-{url,bearer}`,
109
+ `~/.olam/plan-chat-bearer.json` — the cloud connections.
110
+ - `~/.olam/secrets/` — bearer secrets (the GCS-distributed set).
142
111
 
143
- ## Multi-account Claude Code (`--claude-home`)
112
+ ## Cloud auth vault
113
+
114
+ `withCredential` (in `@olam/auth-client`) routes Claude API calls through a
115
+ cloud auth-worker by default — credential rotation + 429 cooldown stay
116
+ server-side. Resolution order:
144
117
 
145
- Inspired by [t3code](https://github.com/pingdotgg/t3code) one operator,
146
- many Claude Code instances, each with its own `HOME` env var pointing at
147
- a separate `~/.claude.instance-N/` directory.
118
+ 1. `OLAM_CREDENTIAL_BACKEND=local` local `olam-auth` container.
119
+ 2. `OLAM_CREDENTIAL_BACKEND=remote` cloud auth-worker.
120
+ 3. Auto-discovery via `OLAM_ANTHROPIC_BASE_URL` / `~/.olam/anthropic-base-url`
121
+ / `~/.olam/cloud-bearer.json`.
148
122
 
149
123
  ```sh
150
- olam create my-world --claude-home work-account
151
- olam create other-world --claude-home personal-account
124
+ olam auth login # cloud auth-worker (supply your worker URL)
125
+ olam auth login --local # legacy local container (deprecated)
126
+ olam auth migrate --dry-run # plan a local → cloud migration
152
127
  ```
153
128
 
154
- Each instance gets its own:
129
+ The auth-worker URL is operator-supplied (`--remote <url>`,
130
+ `OLAM_AUTH_WORKER_URL`, or `~/.olam/auth-worker-url`) — there is no baked-in
131
+ default endpoint.
155
132
 
156
- - login (`claude login` is per-`HOME`)
157
- - hooks (`settings.json` scoped to the per-world Claude home)
158
- - MCP topology
159
- - 429 rate-limit bucket
133
+ ## Multi-account Claude Code (`--claude-home`)
160
134
 
161
- One-time setup per home:
135
+ One operator, many Claude Code instances, each with its own `HOME` pointing at a
136
+ separate `~/.claude.instance-N/` (login, hooks, MCP topology, and 429 bucket are
137
+ all per-`HOME`):
162
138
 
163
139
  ```sh
140
+ olam create my-world --claude-home work-account
164
141
  HOME="$HOME/.olam/claude-homes/work-account" claude login
165
- HOME="$HOME/.olam/claude-homes/personal-account" claude login
166
142
  ```
167
143
 
168
- The `--claude-home <id>` value is persisted to the world's metadata, so
169
- `olam enter <world>` and subsequent operations stay bound to the same
170
- account. Absolute paths are accepted verbatim
171
- (`--claude-home /opt/shared-claude`).
172
-
173
- Composes with `@olam/auth-client`'s vault — the vault still rotates
174
- credentials **within** a HOME; `--claude-home` isolates **different**
175
- HOMEs from each other so two worlds on the same host genuinely use
176
- different accounts without rotation choreography.
177
-
178
- See [ADR 045](../../docs/decisions/045-claude-home-override.md) for the
179
- full rationale + operator workflow.
144
+ The value persists to the world's metadata. See
145
+ [ADR 045](https://github.com/pleri/olam/blob/main/docs/decisions/045-claude-home-override.md).
180
146
 
181
147
  ## Self-upgrade
182
148
 
@@ -186,61 +152,28 @@ olam upgrade -y # pull latest digests; restart services
186
152
 
187
153
  JSONL audit log at `~/.olam/upgrade.log`.
188
154
 
189
- ## Cloud-only auth vault (Phase B)
155
+ ## Local mode (advanced)
190
156
 
191
- Olam's credential vault ships two migration phases:
192
-
193
- **Phase A** (`@olam/auth-client` — already live): `withCredential` selects the
194
- cloud auth-worker by default. Resolution order:
195
- 1. `OLAM_CREDENTIAL_BACKEND=local` → local `olam-auth` container at `127.0.0.1:9999`.
196
- 2. `OLAM_CREDENTIAL_BACKEND=remote` → cloud auth-worker.
197
- 3. Auto-discovery via `OLAM_ANTHROPIC_BASE_URL` / `~/.olam/anthropic-base-url` / `~/.olam/cloud-bearer.json`.
198
- 4. Hard-coded fallback → cloud auth-worker (`https://auth-worker.kaluga.co`).
199
-
200
- **Phase B** (CLI — this package): `olam auth login | list | list-json` default to
201
- the cloud auth-worker. Operators with an existing local vault can migrate:
157
+ Run the full stack host control-plane, auth/KG/memory services, and isolated
158
+ Docker/k3s worlds — locally. Reveal the commands first:
202
159
 
203
160
  ```sh
204
- # Plan the migration (read-only, no writes)
205
- olam auth migrate --dry-run
206
-
207
- # Run the migration
208
- olam auth migrate
209
-
210
- # Opt out: stay on the local container vault
211
- olam auth login --local
212
- olam auth list --local
213
- OLAM_CREDENTIAL_BACKEND=local olam auth list # host-wide env override; no deprecation warning
161
+ olam config local-mode
162
+ olam setup --local-mode # guided local bootstrap (K3s default, or --substrate=docker)
163
+ olam bootstrap # pull + start the host stack
164
+ olam create --name <slug> --task "<goal>"
165
+ olam enter <world> # shell into the world
166
+ olam yolo my-task --branch feat/x --prompt-file /tmp/task.txt
214
167
  ```
215
168
 
216
- `--local` emits a deprecation warning. The flag will be removed in a future
217
- release. `OLAM_CREDENTIAL_BACKEND=local` is the quiet host-wide opt-out.
218
-
219
- **Deferred (OQ7):** `olam auth refresh | disable | enable` are LOCAL ONLY pending
220
- the admin-mutator UX design tracked in
221
- [`docs/plans/cloud-only-vault/README.md`](https://github.com/pleri/olam/blob/main/docs/plans/cloud-only-vault/README.md).
222
-
223
- ### `olam doctor` — auth vault health
224
-
225
- `olam doctor` reports both backends' health at probe position 4:
226
-
227
- ```
228
- ✓ auth vault remote (auth-worker.kaluga.co) healthy (42ms); local (olam-auth:9999) absent
229
- ```
230
-
231
- Three remote states: `healthy` / `unreachable` / `unauthenticated`.
232
- Three local states: `present-active` / `present-stale` / `absent`.
233
-
234
- When both backends are present (`remote=healthy` + `local=present-active|present-stale`),
235
- doctor suggests `olam auth migrate --dry-run` to plan cloud migration.
236
-
237
- Full design:
238
- [`docs/architecture/cloud-only-vault.md`](https://github.com/pleri/olam/blob/main/docs/architecture/cloud-only-vault.md),
239
- [`docs/plans/cloud-only-vault/README.md`](https://github.com/pleri/olam/blob/main/docs/plans/cloud-only-vault/README.md).
169
+ K3s mode requires `k3d`, `kubectl`, `helm`, `gh`, and `docker`. Full guide:
170
+ [k3s-mode setup](https://github.com/pleri/olam/blob/main/docs/onboarding/k3s-mode-setup.md).
171
+ Local development keeps the three cloud boosts (Skills / Memory / KG) and can
172
+ shift workloads to the cloud at any time.
240
173
 
241
174
  ## Docs
242
175
 
243
- - [Full README](https://github.com/pleri/olam#readme)
176
+ - [Cloud-first CLI guide](https://github.com/pleri/olam/blob/main/docs/architecture/cloud-first-cli.md)
244
177
  - [MCP wiring deep-dive](https://github.com/pleri/olam/blob/main/docs/architecture/mcp-as-npx-served.md)
245
178
  - [Architecture index](https://github.com/pleri/olam/tree/main/docs/architecture)
246
179
 
@@ -233,7 +233,7 @@ export async function streamMultiTurnSdkToChunks(input) {
233
233
  * literal per block was pure parameter-passing garbage. Output is identical;
234
234
  * only the intermediate allocation is removed.
235
235
  */
236
- function blockToChunkDraft(block, worldId, sessionId, messageId, seq, createdAt) {
236
+ export function blockToChunkDraft(block, worldId, sessionId, messageId, seq, createdAt) {
237
237
  if (block.type === 'text') {
238
238
  const text = block.text;
239
239
  if (!text)
@@ -38,6 +38,7 @@ import { randomUUID } from 'node:crypto';
38
38
  import { makeHostCpChunkPoster, streamMultiTurnSdkToChunks, } from './agent-sdk-to-chunks.js';
39
39
  import { subscribeToChunks } from './chunks-subscriber-transport.js';
40
40
  import { filterOperatorPickups, pickupConsumedKey, pickupsToPromptPrefix, } from './operator-subscription.js';
41
+ import { makeAskUserQuestionCanUseTool } from './question-broker-bridge.js';
41
42
  /**
42
43
  * Default `append` text for the Claude Code preset system prompt.
43
44
  * Exported so the regression test can assert non-empty + coordinator-shaped
@@ -84,9 +85,19 @@ export const DEFAULT_SYSTEM_PROMPT_APPEND = `You are the driver agent inside an
84
85
  export function buildSdkOptions(input) {
85
86
  const driverToolsEnabled = process.env.AGENT_DRIVER_TOOLS_ENABLED === '1';
86
87
  const baseAllowedTools = [];
87
- const allowedTools = input.extraAllowedTools
88
- ? [...baseAllowedTools, ...input.extraAllowedTools]
89
- : baseAllowedTools;
88
+ // Phase B (answer-anywhere): AskUserQuestion MUST be in the allowlist whenever
89
+ // a broker `canUseTool` is wired — otherwise the SDK filters it out of the
90
+ // Claude Code preset and NEVER invokes it, leaving the canUseTool bridge
91
+ // dormant (the question-broker-bridge's interceptor only fires when the SDK
92
+ // actually calls the tool). Gated strictly on `canUseTool` presence so the
93
+ // no-broker default stays byte-identical (`allowedTools: []`): the snapshot
94
+ // regression gate + the D10 coordinator-only guards both pass unchanged.
95
+ const brokerAllowedTools = input.canUseTool ? ['AskUserQuestion'] : [];
96
+ const allowedTools = [
97
+ ...baseAllowedTools,
98
+ ...(input.extraAllowedTools ?? []),
99
+ ...brokerAllowedTools,
100
+ ];
90
101
  return {
91
102
  systemPrompt: {
92
103
  type: 'preset',
@@ -95,6 +106,9 @@ export function buildSdkOptions(input) {
95
106
  },
96
107
  // Empty allowlist = strict coordinator (no tools); undefined = full preset tools.
97
108
  ...(driverToolsEnabled ? {} : { allowedTools }),
109
+ // Question-broker seam (Phase B). Only attached when the caller supplies a
110
+ // callback — keeps the snapshot stable for the default path.
111
+ ...(input.canUseTool ? { canUseTool: input.canUseTool } : {}),
98
112
  effort: 'low',
99
113
  thinking: { type: 'disabled' },
100
114
  model: 'claude-sonnet-4-6',
@@ -127,7 +141,7 @@ export function buildSdkOptions(input) {
127
141
  * - The `prompt` is passed through unchanged.
128
142
  */
129
143
  export function createSdkQuery(query) {
130
- return ({ prompt, abortSignal, systemPromptAppend, extraAllowedTools }) => {
144
+ return ({ prompt, abortSignal, systemPromptAppend, extraAllowedTools, canUseTool }) => {
131
145
  // eslint-disable-next-line no-console
132
146
  console.error(`[driver] sdkQuery fired (prompt: ${typeof prompt === 'string' ? `${prompt.length} chars` : 'AsyncIterable<SdkUserMessage>'})`);
133
147
  // Forward the runDriver-owned abortSignal to a fresh AbortController
@@ -143,7 +157,7 @@ export function createSdkQuery(query) {
143
157
  });
144
158
  }
145
159
  const options = {
146
- ...buildSdkOptions({ systemPromptAppend, extraAllowedTools }),
160
+ ...buildSdkOptions({ systemPromptAppend, extraAllowedTools, canUseTool }),
147
161
  abortController: sdkAbortController,
148
162
  };
149
163
  return query({ prompt, options });
@@ -156,7 +170,7 @@ export function createSdkQuery(query) {
156
170
  * (SIGTERM via the supervisor → the abortSignal here).
157
171
  */
158
172
  export function runDriver(opts) {
159
- const { hostCpUrl, bearer, worldId, sessionId, systemPromptAppend = DEFAULT_SYSTEM_PROMPT_APPEND, extraAllowedTools, sdkQuery, abortSignal: externalSignal, subscribeImpl = subscribeToChunks, postChunkImpl = (url, b) => makeHostCpChunkPoster({ sidecarUrl: url, bearer: b }), } = opts;
173
+ const { hostCpUrl, bearer, worldId, sessionId, systemPromptAppend = DEFAULT_SYSTEM_PROMPT_APPEND, extraAllowedTools, sdkQuery, allocateMessageId = () => `driver-${randomUUID()}`, canUseTool, abortSignal: externalSignal, subscribeImpl = subscribeToChunks, postChunkImpl = (url, b) => makeHostCpChunkPoster({ sidecarUrl: url, bearer: b }), } = opts;
160
174
  const controller = new AbortController();
161
175
  if (externalSignal) {
162
176
  if (externalSignal.aborted)
@@ -259,12 +273,17 @@ export function runDriver(opts) {
259
273
  abortSignal: signal,
260
274
  systemPromptAppend,
261
275
  extraAllowedTools,
276
+ // Phase B: route AskUserQuestion through the operator's mobile inbox
277
+ // when a broker is configured. Conditionally spread so the default
278
+ // (no-broker) path is byte-identical (createSdkQuery/buildSdkOptions
279
+ // only attach canUseTool when this is truthy).
280
+ ...(canUseTool ? { canUseTool } : {}),
262
281
  });
263
282
  await streamMultiTurnSdkToChunks({
264
283
  messages,
265
284
  worldId,
266
285
  sessionId,
267
- allocateMessageId: () => `driver-${randomUUID()}`,
286
+ allocateMessageId,
268
287
  postChunk,
269
288
  });
270
289
  }
@@ -304,6 +323,44 @@ export function runDriver(opts) {
304
323
  done,
305
324
  };
306
325
  }
326
+ /**
327
+ * Build the AskUserQuestion broker `canUseTool` callback from env, when both
328
+ * broker env vars are present. Returns `undefined` otherwise → the SDK uses its
329
+ * own local picker (byte-identical, no-broker default).
330
+ *
331
+ * Shared by `main()` (in-world supervisor fork) AND `launchHostDriver` (the
332
+ * host-side planning driver, the production SPA-agent launcher) so the
333
+ * question-broker seam wires identically at every launch site — no
334
+ * two-call-site drift (the host path previously omitted the bridge entirely).
335
+ *
336
+ * OLAM_QUESTION_BROKER_URL — auth-worker origin hosting the per-operator
337
+ * broker DO (the same path-transport base the
338
+ * SPA inbox proxy resolves via
339
+ * resolveBearerBaseUrl).
340
+ * OLAM_QUESTION_BROKER_BEARER — operator Anthropic bearer (Basic
341
+ * b64(sub:secret)); routes register/poll to
342
+ * idFromName(sub).
343
+ *
344
+ * Explicit `brokerUrl`/`brokerBearer` args win over env (test seam); omit them
345
+ * to read the env vars. `logEnabled` emits the one-line ENABLED breadcrumb only
346
+ * when the seam actually activates.
347
+ */
348
+ export function buildBrokerCanUseTool(input) {
349
+ const brokerUrl = input.brokerUrl ?? process.env.OLAM_QUESTION_BROKER_URL;
350
+ const brokerBearer = input.brokerBearer ?? process.env.OLAM_QUESTION_BROKER_BEARER;
351
+ if (!brokerUrl || !brokerBearer)
352
+ return undefined;
353
+ if (input.logEnabled) {
354
+ // eslint-disable-next-line no-console
355
+ console.error(`[driver] AskUserQuestion broker ENABLED · broker=${brokerUrl}`);
356
+ }
357
+ return makeAskUserQuestionCanUseTool({
358
+ brokerBaseUrl: brokerUrl,
359
+ bearer: brokerBearer,
360
+ worldId: input.worldId,
361
+ sessionId: input.sessionId,
362
+ });
363
+ }
307
364
  /**
308
365
  * CLI entry point when this module is run directly (via supervisor fork).
309
366
  * Reads env, validates, calls runDriver, installs SIGTERM handler.
@@ -323,6 +380,14 @@ export async function main() {
323
380
  const controller = new AbortController();
324
381
  process.on('SIGTERM', () => controller.abort());
325
382
  process.on('SIGINT', () => controller.abort());
383
+ // Phase B (mobile-question-inbox): wire the AskUserQuestion broker seam when
384
+ // a broker is configured. Both env vars must be present; otherwise the seam
385
+ // stays off and the SDK uses its own local picker (byte-identical default).
386
+ // OLAM_QUESTION_BROKER_URL — the auth-worker origin hosting the broker.
387
+ // OLAM_QUESTION_BROKER_BEARER — the operator's Anthropic bearer
388
+ // (Basic b64(sub:secret)); routes the
389
+ // register/poll to idFromName(sub).
390
+ const canUseTool = buildBrokerCanUseTool({ worldId, sessionId, logEnabled: true });
326
391
  // eslint-disable-next-line no-console
327
392
  console.error(`[driver] starting · world=${worldId} session=${sessionId} ` +
328
393
  `hostCp=${hostCpUrl}`);
@@ -336,6 +401,7 @@ export async function main() {
336
401
  // operators with legacy supervisor configs.
337
402
  systemPromptAppend: process.env.DRIVER_SYSTEM_PROMPT_APPEND ?? process.env.DRIVER_SYSTEM_PROMPT,
338
403
  sdkQuery: createSdkQuery(query),
404
+ canUseTool,
339
405
  abortSignal: controller.signal,
340
406
  });
341
407
  try {
@@ -17,7 +17,7 @@
17
17
  * directly with the planning-agent system-prompt-append default.
18
18
  */
19
19
  import { PLANNING_SYSTEM_PROMPT } from '../prompts/planning-agent.js';
20
- import { runDriver, } from './driver-runner.js';
20
+ import { runDriver, buildBrokerCanUseTool, } from './driver-runner.js';
21
21
  /**
22
22
  * Launch a planning-driver in the host process. Delegates everything
23
23
  * substantive to `runDriver`; this function only translates the
@@ -42,6 +42,19 @@ export function launchHostDriver(opts) {
42
42
  sdkQuery: opts.sdkQuery,
43
43
  systemPromptAppend: opts.systemPromptAppend ?? PLANNING_SYSTEM_PROMPT,
44
44
  extraAllowedTools: opts.extraAllowedTools ?? PLANNING_DRIVER_EXTRA_ALLOWED_TOOLS,
45
+ // Phase B (answer-anywhere): wire the AskUserQuestion broker seam from env,
46
+ // at parity with driver-runner.main(). The host-side launcher previously
47
+ // omitted canUseTool entirely, so the production SPA-agent path could never
48
+ // route AskUserQuestion through the operator's inbox. Undefined when no
49
+ // broker is configured → byte-identical default (SDK local picker).
50
+ // Cancellation propagates: opts.abortSignal → runDriver signal → the SDK's
51
+ // options.signal → the bridge's composite abort, so a blocked await never
52
+ // leaks when the run is aborted.
53
+ canUseTool: buildBrokerCanUseTool({
54
+ worldId: opts.worldId,
55
+ sessionId: opts.sessionId,
56
+ logEnabled: true,
57
+ }),
45
58
  abortSignal: opts.abortSignal,
46
59
  });
47
60
  }
@@ -0,0 +1,113 @@
1
+ /**
2
+ * prototype-gen-launch.ts — thin host-side launcher for the prototype-gen
3
+ * driver (producer plan §6, P3 mechanism — Option B).
4
+ *
5
+ * HOST_DRIVER_CONTRACT (inherited from `host-driver-launch.ts`): this module
6
+ * ONLY overrides the launch path — every agent-logic decision delegates to
7
+ * `runDriver()` in driver-runner.ts. It defaults `systemPromptAppend` to the
8
+ * prototype-gen persona, widens `extraAllowedTools` with the prototype tools,
9
+ * and installs a lineage-pinned `allocateMessageId` so revisions of one
10
+ * prototype collapse under a single `message_id` (locked Q2 — render side keys
11
+ * supersession on `message_id`). Adding agent-logic branches here is a
12
+ * code-smell; extend `DriverRunnerOptions` instead.
13
+ *
14
+ * Mirrors `launchHostDriver`: the caller owns SDK construction (`sdkQuery`),
15
+ * keeping this launcher sync and the SDK import out of the load graph.
16
+ *
17
+ * Scope (Option B, smallest blast radius): this is a launcher FUNCTION, not a
18
+ * dispatch-config schema change. The first-class `olam dispatch --mode
19
+ * prototype-gen` ergonomics (Option C) + host token pre-ingest/publish are
20
+ * gated follow-ups (producer plan §6/§7 P3-P4) — this file wires the prompt,
21
+ * tools, and lineage allocator that those phases build on.
22
+ *
23
+ * Producer plan: docs/plans/prototype-gen-producer/plan.md §1, §4, §6, §7.
24
+ * Prompt spec: docs/plans/prototype-gen-prompt-spec/plan.md §3, §9.
25
+ */
26
+ import { makeLineageMessageIdAllocator } from '@olam/core/src/prototype/lineage-message-id-allocator.js';
27
+ import { buildPrototypeGenSystemPrompt } from '../prompts/prototype-gen-agent.js';
28
+ import { PROTOTYPE_GEN_TOOLS } from '../prompts/prototype-gen-agent.js';
29
+ import { runDriver, } from './driver-runner.js';
30
+ /**
31
+ * The tool patterns the prototype-gen driver adds to the `allowedTools`
32
+ * allowlist. The agent emits prototypes + style guides via these two tools;
33
+ * the SDK surfaces them as `tool_use` blocks that the adapter persists as
34
+ * `prototype` / `style_guide` chunks (zero adapter changes — producer plan §0).
35
+ *
36
+ * Derived from `PROTOTYPE_GEN_TOOLS` so the allowlist can never drift from the
37
+ * tool definitions.
38
+ */
39
+ export const PROTOTYPE_GEN_EXTRA_ALLOWED_TOOLS = PROTOTYPE_GEN_TOOLS.map((t) => t.name);
40
+ /**
41
+ * Normalize a prototype title into a lineage key. Lowercase + collapse internal
42
+ * whitespace + trim, so cosmetic title variation ("Primary CTA button" vs
43
+ * "primary cta button") does not fork a lineage. Per Q-A (operator-gated):
44
+ * the title keys the lineage WITHIN a single bounded dispatch — collisions are
45
+ * the operator's own naming, low-stakes — NOT a global identity.
46
+ */
47
+ export function normalizeLineageKey(title) {
48
+ return title.trim().toLowerCase().replace(/\s+/g, ' ');
49
+ }
50
+ /**
51
+ * Build a dispatch-scoped lineage allocator. Pure: the only state is the
52
+ * in-memory title→root map, which lives for the dispatch's lifetime.
53
+ */
54
+ export function makePrototypeLineageAllocator(options = {}) {
55
+ const dispatchPrefix = options.dispatchPrefix ?? `proto-${Math.random().toString(36).slice(2) || '0'}`;
56
+ const nonceSource = options.nonceSource ?? (() => Math.random().toString(36).slice(2) || '0');
57
+ const clock = options.clock ?? (() => Date.now());
58
+ // lineageKey → lineageRoot. Same title reuses the recorded root; a new title
59
+ // mints a fresh one via the core per-lineage allocator.
60
+ const lineages = new Map();
61
+ let untitledCounter = 0;
62
+ function mintRoot(seed) {
63
+ // Anchor a core allocator at a dispatch-unique seed and take its lineageRoot
64
+ // for the per-revision messageId structure. We use the allocator's
65
+ // `lineageRoot` (stable) as the chunk message_id per the core contract.
66
+ const anchor = `${dispatchPrefix}-${seed}-${clock()}-${nonceSource()}`;
67
+ return makeLineageMessageIdAllocator(anchor, { clock, nonceSource }).allocate()
68
+ .lineageRoot;
69
+ }
70
+ return {
71
+ resolveForTitle(title) {
72
+ const key = normalizeLineageKey(title);
73
+ const existing = lineages.get(key);
74
+ if (existing !== undefined)
75
+ return existing;
76
+ const root = mintRoot(key || `untitled-${untitledCounter++}`);
77
+ lineages.set(key, root);
78
+ return root;
79
+ },
80
+ allocate() {
81
+ return mintRoot(`turn-${untitledCounter++}`);
82
+ },
83
+ };
84
+ }
85
+ /**
86
+ * Launch a prototype-gen driver in the host process. Delegates everything
87
+ * substantive to `runDriver`; this function only:
88
+ * 1. defaults `systemPromptAppend` to the guide-pinned prototype-gen persona,
89
+ * 2. widens `extraAllowedTools` with the prototype + style_guide tools,
90
+ * 3. installs a lineage-pinned `allocateMessageId` (Q2 mechanism).
91
+ *
92
+ * The host token pre-ingest + `style_guide` chunk publish (producer plan
93
+ * §3.2-A) is a gated P3 responsibility layered ABOVE this launcher — it runs
94
+ * before the call so the prompt-pinned guide id resolves on the agent's first
95
+ * `prototype` emission.
96
+ */
97
+ export function launchPrototypeGenDriver(opts) {
98
+ const systemPromptAppend = opts.systemPromptAppend ??
99
+ buildPrototypeGenSystemPrompt(opts.styleGuideId, opts.styleGuideVersion);
100
+ const allocateMessageId = opts.allocateMessageId ?? makePrototypeLineageAllocator().allocate;
101
+ return runDriver({
102
+ worldId: opts.worldId,
103
+ sessionId: opts.sessionId,
104
+ hostCpUrl: opts.hostCpUrl,
105
+ bearer: opts.bearer,
106
+ sdkQuery: opts.sdkQuery,
107
+ systemPromptAppend,
108
+ extraAllowedTools: opts.extraAllowedTools ?? PROTOTYPE_GEN_EXTRA_ALLOWED_TOOLS,
109
+ allocateMessageId,
110
+ abortSignal: opts.abortSignal,
111
+ });
112
+ }
113
+ //# sourceMappingURL=prototype-gen-launch.js.map