dispach 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) hide show
  1. package/README.md +596 -0
  2. package/dist/App-dxqm39zx.js +11 -0
  3. package/dist/App-dxqm39zx.js.map +25 -0
  4. package/dist/ConfigEditor-7v5nebvy.js +6 -0
  5. package/dist/ConfigEditor-7v5nebvy.js.map +11 -0
  6. package/dist/KeyProbe-vjhmdpx6.js +5 -0
  7. package/dist/KeyProbe-vjhmdpx6.js.map +11 -0
  8. package/dist/Picker-jxaesaxy.js +5 -0
  9. package/dist/Picker-jxaesaxy.js.map +10 -0
  10. package/dist/SessionPicker-z2t0p4b5.js +5 -0
  11. package/dist/SessionPicker-z2t0p4b5.js.map +11 -0
  12. package/dist/SkillBrowser-yyf2gy0q.js +5 -0
  13. package/dist/SkillBrowser-yyf2gy0q.js.map +11 -0
  14. package/dist/WizardApp-12ndxgqv.js +5 -0
  15. package/dist/WizardApp-12ndxgqv.js.map +13 -0
  16. package/dist/agents.d.ts +9 -0
  17. package/dist/agents.d.ts.map +1 -0
  18. package/dist/browse.d.ts +63 -0
  19. package/dist/browse.d.ts.map +1 -0
  20. package/dist/client.d.ts +25 -0
  21. package/dist/client.d.ts.map +1 -0
  22. package/dist/client.js +34 -0
  23. package/dist/client.js.map +11 -0
  24. package/dist/components/App.d.ts +28 -0
  25. package/dist/components/App.d.ts.map +1 -0
  26. package/dist/components/Banner.d.ts +16 -0
  27. package/dist/components/Banner.d.ts.map +1 -0
  28. package/dist/components/Brandmark.d.ts +31 -0
  29. package/dist/components/Brandmark.d.ts.map +1 -0
  30. package/dist/components/CheckList.d.ts +38 -0
  31. package/dist/components/CheckList.d.ts.map +1 -0
  32. package/dist/components/CommandOutput.d.ts +29 -0
  33. package/dist/components/CommandOutput.d.ts.map +1 -0
  34. package/dist/components/ConfigEditor.d.ts +64 -0
  35. package/dist/components/ConfigEditor.d.ts.map +1 -0
  36. package/dist/components/HistorySearch.d.ts +23 -0
  37. package/dist/components/HistorySearch.d.ts.map +1 -0
  38. package/dist/components/KeyProbe.d.ts +36 -0
  39. package/dist/components/KeyProbe.d.ts.map +1 -0
  40. package/dist/components/LineCursor.d.ts +55 -0
  41. package/dist/components/LineCursor.d.ts.map +1 -0
  42. package/dist/components/Live.d.ts +17 -0
  43. package/dist/components/Live.d.ts.map +1 -0
  44. package/dist/components/Palette.d.ts +21 -0
  45. package/dist/components/Palette.d.ts.map +1 -0
  46. package/dist/components/Picker.d.ts +23 -0
  47. package/dist/components/Picker.d.ts.map +1 -0
  48. package/dist/components/Prompt.d.ts +20 -0
  49. package/dist/components/Prompt.d.ts.map +1 -0
  50. package/dist/components/Screen.d.ts +39 -0
  51. package/dist/components/Screen.d.ts.map +1 -0
  52. package/dist/components/SelectList.d.ts +34 -0
  53. package/dist/components/SelectList.d.ts.map +1 -0
  54. package/dist/components/SessionPicker.d.ts +26 -0
  55. package/dist/components/SessionPicker.d.ts.map +1 -0
  56. package/dist/components/SkillBrowser.d.ts +39 -0
  57. package/dist/components/SkillBrowser.d.ts.map +1 -0
  58. package/dist/components/Spinner.d.ts +13 -0
  59. package/dist/components/Spinner.d.ts.map +1 -0
  60. package/dist/components/StatusBar.d.ts +11 -0
  61. package/dist/components/StatusBar.d.ts.map +1 -0
  62. package/dist/components/SummaryCard.d.ts +11 -0
  63. package/dist/components/SummaryCard.d.ts.map +1 -0
  64. package/dist/components/TextField.d.ts +39 -0
  65. package/dist/components/TextField.d.ts.map +1 -0
  66. package/dist/components/Transcript.d.ts +23 -0
  67. package/dist/components/Transcript.d.ts.map +1 -0
  68. package/dist/components/WizardApp.d.ts +18 -0
  69. package/dist/components/WizardApp.d.ts.map +1 -0
  70. package/dist/components/WizardFrame.d.ts +19 -0
  71. package/dist/components/WizardFrame.d.ts.map +1 -0
  72. package/dist/config-yz0nz51b.js +24 -0
  73. package/dist/config-yz0nz51b.js.map +10 -0
  74. package/dist/config.d.ts +71 -0
  75. package/dist/config.d.ts.map +1 -0
  76. package/dist/credential-wgt4gvcz.js +19 -0
  77. package/dist/credential-wgt4gvcz.js.map +10 -0
  78. package/dist/credential.d.ts +68 -0
  79. package/dist/credential.d.ts.map +1 -0
  80. package/dist/daemon.d.ts +47 -0
  81. package/dist/daemon.d.ts.map +1 -0
  82. package/dist/editor.d.ts +81 -0
  83. package/dist/editor.d.ts.map +1 -0
  84. package/dist/hooks/useElapsed.d.ts +10 -0
  85. package/dist/hooks/useElapsed.d.ts.map +1 -0
  86. package/dist/hooks/useTerminalSize.d.ts +14 -0
  87. package/dist/hooks/useTerminalSize.d.ts.map +1 -0
  88. package/dist/hooks/useTurn.d.ts +41 -0
  89. package/dist/hooks/useTurn.d.ts.map +1 -0
  90. package/dist/index-2cvtz0fy.js +903 -0
  91. package/dist/index-2cvtz0fy.js.map +194 -0
  92. package/dist/index-3nwfz9jq.js +12 -0
  93. package/dist/index-3nwfz9jq.js.map +11 -0
  94. package/dist/index-6b7qvh1x.js +6 -0
  95. package/dist/index-6b7qvh1x.js.map +10 -0
  96. package/dist/index-6z0yr17z.js +12 -0
  97. package/dist/index-6z0yr17z.js.map +11 -0
  98. package/dist/index-7da4fqcr.js +7 -0
  99. package/dist/index-7da4fqcr.js.map +11 -0
  100. package/dist/index-8bmhd2hj.js +6 -0
  101. package/dist/index-8bmhd2hj.js.map +10 -0
  102. package/dist/index-9d011p3q.js +6 -0
  103. package/dist/index-9d011p3q.js.map +10 -0
  104. package/dist/index-9f9pp2ef.js +6 -0
  105. package/dist/index-9f9pp2ef.js.map +10 -0
  106. package/dist/index-9nsfs0vy.js +6 -0
  107. package/dist/index-9nsfs0vy.js.map +10 -0
  108. package/dist/index-9pj1ws0p.js +77 -0
  109. package/dist/index-9pj1ws0p.js.map +12 -0
  110. package/dist/index-b5wwtxzk.js +66 -0
  111. package/dist/index-b5wwtxzk.js.map +12 -0
  112. package/dist/index-b8zwg8a3.js +6 -0
  113. package/dist/index-b8zwg8a3.js.map +10 -0
  114. package/dist/index-bry9bzt3.js +427 -0
  115. package/dist/index-bry9bzt3.js.map +11 -0
  116. package/dist/index-bwckzbf8.js +6 -0
  117. package/dist/index-bwckzbf8.js.map +10 -0
  118. package/dist/index-cx3vz7sf.js +6 -0
  119. package/dist/index-cx3vz7sf.js.map +11 -0
  120. package/dist/index-e8n70sgj.js +6 -0
  121. package/dist/index-e8n70sgj.js.map +11 -0
  122. package/dist/index-fvhg0xyd.js +167 -0
  123. package/dist/index-fvhg0xyd.js.map +19 -0
  124. package/dist/index-gbnc99j8.js +14 -0
  125. package/dist/index-gbnc99j8.js.map +13 -0
  126. package/dist/index-h2yds678.js +7 -0
  127. package/dist/index-h2yds678.js.map +11 -0
  128. package/dist/index-j97vttdt.js +10 -0
  129. package/dist/index-j97vttdt.js.map +10 -0
  130. package/dist/index-jk0def33.js +6 -0
  131. package/dist/index-jk0def33.js.map +12 -0
  132. package/dist/index-jym27m75.js +6 -0
  133. package/dist/index-jym27m75.js.map +10 -0
  134. package/dist/index-mgdgx22q.js +10 -0
  135. package/dist/index-mgdgx22q.js.map +10 -0
  136. package/dist/index-mrtb5y08.js +6 -0
  137. package/dist/index-mrtb5y08.js.map +11 -0
  138. package/dist/index-my5cjx00.js +6 -0
  139. package/dist/index-my5cjx00.js.map +10 -0
  140. package/dist/index-qc2vrq9z.js +7 -0
  141. package/dist/index-qc2vrq9z.js.map +11 -0
  142. package/dist/index-rqbtm761.js +6 -0
  143. package/dist/index-rqbtm761.js.map +10 -0
  144. package/dist/index-rqzg861g.js +6 -0
  145. package/dist/index-rqzg861g.js.map +10 -0
  146. package/dist/index-t1xvacym.js +6 -0
  147. package/dist/index-t1xvacym.js.map +11 -0
  148. package/dist/index-xgqzk5cq.js +9 -0
  149. package/dist/index-xgqzk5cq.js.map +12 -0
  150. package/dist/index-xqyms08r.js +6 -0
  151. package/dist/index-xqyms08r.js.map +10 -0
  152. package/dist/index-yr25dnf5.js +6 -0
  153. package/dist/index-yr25dnf5.js.map +10 -0
  154. package/dist/index.d.ts +23 -0
  155. package/dist/index.d.ts.map +1 -0
  156. package/dist/index.js +527 -0
  157. package/dist/index.js.map +48 -0
  158. package/dist/init.d.ts +34 -0
  159. package/dist/init.d.ts.map +1 -0
  160. package/dist/keymap.d.ts +126 -0
  161. package/dist/keymap.d.ts.map +1 -0
  162. package/dist/keys.d.ts +17 -0
  163. package/dist/keys.d.ts.map +1 -0
  164. package/dist/lib/ambient.d.ts +69 -0
  165. package/dist/lib/ambient.d.ts.map +1 -0
  166. package/dist/lib/args.d.ts +33 -0
  167. package/dist/lib/args.d.ts.map +1 -0
  168. package/dist/lib/bootstrap.d.ts +84 -0
  169. package/dist/lib/bootstrap.d.ts.map +1 -0
  170. package/dist/lib/browse.d.ts +89 -0
  171. package/dist/lib/browse.d.ts.map +1 -0
  172. package/dist/lib/browser.d.ts +55 -0
  173. package/dist/lib/browser.d.ts.map +1 -0
  174. package/dist/lib/chat-frame.d.ts +156 -0
  175. package/dist/lib/chat-frame.d.ts.map +1 -0
  176. package/dist/lib/clipboard.d.ts +32 -0
  177. package/dist/lib/clipboard.d.ts.map +1 -0
  178. package/dist/lib/commands.d.ts +26 -0
  179. package/dist/lib/commands.d.ts.map +1 -0
  180. package/dist/lib/composer.d.ts +85 -0
  181. package/dist/lib/composer.d.ts.map +1 -0
  182. package/dist/lib/config-apply.d.ts +51 -0
  183. package/dist/lib/config-apply.d.ts.map +1 -0
  184. package/dist/lib/config-editor.d.ts +113 -0
  185. package/dist/lib/config-editor.d.ts.map +1 -0
  186. package/dist/lib/config-env.d.ts +110 -0
  187. package/dist/lib/config-env.d.ts.map +1 -0
  188. package/dist/lib/config-rows.d.ts +37 -0
  189. package/dist/lib/config-rows.d.ts.map +1 -0
  190. package/dist/lib/config-view.d.ts +133 -0
  191. package/dist/lib/config-view.d.ts.map +1 -0
  192. package/dist/lib/confirm.d.ts +86 -0
  193. package/dist/lib/confirm.d.ts.map +1 -0
  194. package/dist/lib/const.d.ts +213 -0
  195. package/dist/lib/const.d.ts.map +1 -0
  196. package/dist/lib/csi.d.ts +70 -0
  197. package/dist/lib/csi.d.ts.map +1 -0
  198. package/dist/lib/curated.d.ts +44 -0
  199. package/dist/lib/curated.d.ts.map +1 -0
  200. package/dist/lib/daemon-plan.d.ts +151 -0
  201. package/dist/lib/daemon-plan.d.ts.map +1 -0
  202. package/dist/lib/dotenv-edit.d.ts +30 -0
  203. package/dist/lib/dotenv-edit.d.ts.map +1 -0
  204. package/dist/lib/env.d.ts +10 -0
  205. package/dist/lib/env.d.ts.map +1 -0
  206. package/dist/lib/exit.d.ts +170 -0
  207. package/dist/lib/exit.d.ts.map +1 -0
  208. package/dist/lib/help.d.ts +10 -0
  209. package/dist/lib/help.d.ts.map +1 -0
  210. package/dist/lib/init-flow.d.ts +539 -0
  211. package/dist/lib/init-flow.d.ts.map +1 -0
  212. package/dist/lib/init-skills.d.ts +46 -0
  213. package/dist/lib/init-skills.d.ts.map +1 -0
  214. package/dist/lib/keyboard.d.ts +76 -0
  215. package/dist/lib/keyboard.d.ts.map +1 -0
  216. package/dist/lib/keys-view.d.ts +57 -0
  217. package/dist/lib/keys-view.d.ts.map +1 -0
  218. package/dist/lib/launchd.d.ts +151 -0
  219. package/dist/lib/launchd.d.ts.map +1 -0
  220. package/dist/lib/lifecycle.d.ts +126 -0
  221. package/dist/lib/lifecycle.d.ts.map +1 -0
  222. package/dist/lib/log-follow.d.ts +71 -0
  223. package/dist/lib/log-follow.d.ts.map +1 -0
  224. package/dist/lib/mouse.d.ts +84 -0
  225. package/dist/lib/mouse.d.ts.map +1 -0
  226. package/dist/lib/multiselect.d.ts +37 -0
  227. package/dist/lib/multiselect.d.ts.map +1 -0
  228. package/dist/lib/origins.d.ts +40 -0
  229. package/dist/lib/origins.d.ts.map +1 -0
  230. package/dist/lib/output.d.ts +29 -0
  231. package/dist/lib/output.d.ts.map +1 -0
  232. package/dist/lib/palette.d.ts +69 -0
  233. package/dist/lib/palette.d.ts.map +1 -0
  234. package/dist/lib/probe.d.ts +158 -0
  235. package/dist/lib/probe.d.ts.map +1 -0
  236. package/dist/lib/providers.d.ts +63 -0
  237. package/dist/lib/providers.d.ts.map +1 -0
  238. package/dist/lib/provision.d.ts +163 -0
  239. package/dist/lib/provision.d.ts.map +1 -0
  240. package/dist/lib/remove-plan.d.ts +120 -0
  241. package/dist/lib/remove-plan.d.ts.map +1 -0
  242. package/dist/lib/render.d.ts +78 -0
  243. package/dist/lib/render.d.ts.map +1 -0
  244. package/dist/lib/resume.d.ts +69 -0
  245. package/dist/lib/resume.d.ts.map +1 -0
  246. package/dist/lib/rows.d.ts +69 -0
  247. package/dist/lib/rows.d.ts.map +1 -0
  248. package/dist/lib/sandbox.d.ts +101 -0
  249. package/dist/lib/sandbox.d.ts.map +1 -0
  250. package/dist/lib/schema.d.ts +491 -0
  251. package/dist/lib/schema.d.ts.map +1 -0
  252. package/dist/lib/screen.d.ts +102 -0
  253. package/dist/lib/screen.d.ts.map +1 -0
  254. package/dist/lib/scroll.d.ts +64 -0
  255. package/dist/lib/scroll.d.ts.map +1 -0
  256. package/dist/lib/select.d.ts +23 -0
  257. package/dist/lib/select.d.ts.map +1 -0
  258. package/dist/lib/service-env.d.ts +38 -0
  259. package/dist/lib/service-env.d.ts.map +1 -0
  260. package/dist/lib/service.d.ts +102 -0
  261. package/dist/lib/service.d.ts.map +1 -0
  262. package/dist/lib/session-commands.d.ts +229 -0
  263. package/dist/lib/session-commands.d.ts.map +1 -0
  264. package/dist/lib/session-key.d.ts +55 -0
  265. package/dist/lib/session-key.d.ts.map +1 -0
  266. package/dist/lib/sessions-view.d.ts +31 -0
  267. package/dist/lib/sessions-view.d.ts.map +1 -0
  268. package/dist/lib/source-cache.d.ts +105 -0
  269. package/dist/lib/source-cache.d.ts.map +1 -0
  270. package/dist/lib/source.d.ts +281 -0
  271. package/dist/lib/source.d.ts.map +1 -0
  272. package/dist/lib/sources.d.ts +107 -0
  273. package/dist/lib/sources.d.ts.map +1 -0
  274. package/dist/lib/spawn.d.ts +56 -0
  275. package/dist/lib/spawn.d.ts.map +1 -0
  276. package/dist/lib/stdin-tap.d.ts +41 -0
  277. package/dist/lib/stdin-tap.d.ts.map +1 -0
  278. package/dist/lib/subcommand.d.ts +57 -0
  279. package/dist/lib/subcommand.d.ts.map +1 -0
  280. package/dist/lib/systemd.d.ts +60 -0
  281. package/dist/lib/systemd.d.ts.map +1 -0
  282. package/dist/lib/templates.d.ts +35 -0
  283. package/dist/lib/templates.d.ts.map +1 -0
  284. package/dist/lib/terminal.d.ts +98 -0
  285. package/dist/lib/terminal.d.ts.map +1 -0
  286. package/dist/lib/text-selection.d.ts +75 -0
  287. package/dist/lib/text-selection.d.ts.map +1 -0
  288. package/dist/lib/theme.d.ts +90 -0
  289. package/dist/lib/theme.d.ts.map +1 -0
  290. package/dist/lib/types.d.ts +467 -0
  291. package/dist/lib/types.d.ts.map +1 -0
  292. package/dist/lib/warnings.d.ts +79 -0
  293. package/dist/lib/warnings.d.ts.map +1 -0
  294. package/dist/lib/width.d.ts +39 -0
  295. package/dist/lib/width.d.ts.map +1 -0
  296. package/dist/lib/wizard.d.ts +95 -0
  297. package/dist/lib/wizard.d.ts.map +1 -0
  298. package/dist/lib/wordmark.d.ts +60 -0
  299. package/dist/lib/wordmark.d.ts.map +1 -0
  300. package/dist/lib/wrap.d.ts +74 -0
  301. package/dist/lib/wrap.d.ts.map +1 -0
  302. package/dist/memory.d.ts +25 -0
  303. package/dist/memory.d.ts.map +1 -0
  304. package/dist/model.d.ts +47 -0
  305. package/dist/model.d.ts.map +1 -0
  306. package/dist/plugins.d.ts +15 -0
  307. package/dist/plugins.d.ts.map +1 -0
  308. package/dist/remove.d.ts +52 -0
  309. package/dist/remove.d.ts.map +1 -0
  310. package/dist/run.d.ts +42 -0
  311. package/dist/run.d.ts.map +1 -0
  312. package/dist/schedules.d.ts +41 -0
  313. package/dist/schedules.d.ts.map +1 -0
  314. package/dist/serve.d.ts +41 -0
  315. package/dist/serve.d.ts.map +1 -0
  316. package/dist/sessions.d.ts +13 -0
  317. package/dist/sessions.d.ts.map +1 -0
  318. package/dist/skills.d.ts +80 -0
  319. package/dist/skills.d.ts.map +1 -0
  320. package/dist/soul.d.ts +19 -0
  321. package/dist/soul.d.ts.map +1 -0
  322. package/dist/sources.d.ts +32 -0
  323. package/dist/sources.d.ts.map +1 -0
  324. package/dist/start.d.ts +26 -0
  325. package/dist/start.d.ts.map +1 -0
  326. package/dist/stop.d.ts +58 -0
  327. package/dist/stop.d.ts.map +1 -0
  328. package/dist/terminal-setup.d.ts +31 -0
  329. package/dist/terminal-setup.d.ts.map +1 -0
  330. package/dist/tools.d.ts +22 -0
  331. package/dist/tools.d.ts.map +1 -0
  332. package/dist/transcript.d.ts +124 -0
  333. package/dist/transcript.d.ts.map +1 -0
  334. package/dist/validate.d.ts +36 -0
  335. package/dist/validate.d.ts.map +1 -0
  336. package/dist/web-w7r68df1.js +14 -0
  337. package/dist/web-w7r68df1.js.map +11 -0
  338. package/dist/web.d.ts +36 -0
  339. package/dist/web.d.ts.map +1 -0
  340. package/dist/wire.d.ts +10 -0
  341. package/dist/wire.d.ts.map +1 -0
  342. package/dist/wire.js +33 -0
  343. package/dist/wire.js.map +10 -0
  344. package/dist/workspace.d.ts +19 -0
  345. package/dist/workspace.d.ts.map +1 -0
  346. package/package.json +78 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AA4CH,MAAM,WAAW,oBAAoB;IACjC,gDAAgD;IAChD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,sCAAsC;IACtC,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB,kFAAkF;IAClF,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC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?$/.exec(n.trim());if(t===null)throw new se({code:"credential_usage",message:`--expires ${JSON.stringify(n)} is not a duration.`,hint:"Write it as 30s, 15m, 2h or 7d — or as a plain number of seconds."});let i=Number(t[1]);if(i===0)throw new se({code:"credential_usage",message:"--expires 0 would mint a credential that has already expired.",hint:"Leave the flag off for a key that never expires, or give it a real duration like 1h."});let s={s:1,m:60,h:3600,d:86400}[t[2]??"s"]??1;return i*s}function y(n){let t=n.split(",").map((s)=>s.trim().toLowerCase()).filter((s)=>s!==""),i=t.filter((s)=>!Xn.includes(s));if(i.length>0)throw new se({code:"credential_usage",message:`--can names ${i.map((s)=>JSON.stringify(s)).join(", ")}, which is not a capability.`,hint:`The four are: ${Xn.join(", ")}. read is every GET; chat sends a message, answers an approval and stops a turn; write covers schedules, phase and clearing a session; admin covers credentials, provisioning and start/stop.`});return t}function f(n){return n.split(",").map((t)=>t.trim()).filter((t)=>t!=="")}function l(n){let t=[];if(t.push(n.scope?.agents===void 0?"every agent":n.scope.agents.join(", ")),n.scope?.sessions!==void 0)t.push(`sessions ${n.scope.sessions}`);if(t.push(n.scope?.can===void 0?"all capabilities":n.scope.can.join("+")),n.expiresAt!==void 0)t.push(`until ${n.expiresAt}`);return t.join(" · ")}async function d(n){let t=await Ne(n);if(t===void 0)throw new se({code:"credential_usage",message:"No server is running, so there is nothing to mint a credential on.",hint:`A credential belongs to a server rather than to a file, so this command is an API client. Start one with \`${e.slug} serve\`, or use POST /v1/keys directly against a server you can already reach.`});return{lease:t,manifest:Ut(t.agentId)}}async function v(n){if(n.action==="create")return await h(n);if(n.action==="list")return await p(n);if(n.action==="revoke")return await m(n);throw new se({code:"credential_usage",message:`Unknown action ${JSON.stringify(n.action)}.`,hint:"The actions are create, list and revoke."})}async function h(n){let t=n.label?.trim();if(t===void 0||t==="")throw new se({code:"credential_usage",message:"--label is required.",hint:'A label is the only thing distinguishing two credentials in a listing, and "key 2" is a name nobody can act on when deciding which to revoke.'});let i={...n.agents===void 0?{}:{agents:f(n.agents)},...n.sessions===void 0?{}:{sessions:n.sessions},...n.can===void 0?{}:{can:y(n.can)},...n.expires===void 0?{}:{expiresIn:g(n.expires)}},{lease:s,manifest:o}=await d(n.store),a=await Xe(s,"/v1/keys",{label:t,...Object.keys(i).length===0?{}:{scope:i}},o);if(!a.ok)return c(a,"mint a credential");let r=a.body;if(n.json===!0)return process.stdout.write(`${JSON.stringify(r,null,2)}
3
+ `),0;return process.stdout.write(`${r.secret}
4
+ `),process.stderr.write(` ${r.label} · ${r.keyId}
5
+ `),process.stderr.write(` reaches ${l(r)}
6
+ `),process.stderr.write(` This is the only time the secret is shown. It is stored as a fingerprint and no route returns it.
7
+ `),0}async function p(n){let{lease:t,manifest:i}=await d(n.store),s=await ir(t,"GET","/v1/keys",i);if(!s.ok)return c(s,"list credentials");let o=s.body,a=o.keys??[];if(n.json===!0)return process.stdout.write(`${JSON.stringify(o,null,2)}
8
+ `),0;if(a.length===0)return process.stdout.write(`No credentials. The server token is the only way in.
9
+ `),0;for(let r of a){let u=r.revokedAt===void 0?"live":"revoked";process.stdout.write(`${r.keyId} ${u.padEnd(7)} ${r.label}
10
+ `),process.stdout.write(` reaches ${l(r)}
11
+ `),process.stdout.write(` created ${r.createdAt}${r.lastUsedAt===void 0?" · never used":` · last used ${r.lastUsedAt}`}
12
+ `)}return 0}async function m(n){let t=n.keyId?.trim();if(t===void 0||t==="")throw new se({code:"credential_usage",message:"Which credential?",hint:`\`${e.slug} credential list\` prints the ids. Revoking is permanent — a revoked secret can never be re-presented.`});let{lease:i,manifest:s}=await d(n.store),o=await ir(i,"DELETE",`/v1/keys/${encodeURIComponent(t)}`,s);if(!o.ok)return c(o,"revoke that credential");let a=o.body;if(n.json===!0)return process.stdout.write(`${JSON.stringify(a,null,2)}
13
+ `),0;return process.stdout.write(`revoked ${a.keyId} · ${a.label}
14
+ `),0}function c(n,t){if(process.stderr.write(`Could not ${t}${n.status===0?"":` (${n.status})`}: ${n.detail??"the host did not answer"}
15
+ `),n.hint!==void 0)process.stderr.write(` hint: ${n.hint}
16
+ `);return 1}export{v as credentialCommand};
17
+
18
+ //# debugId=20874B121AF8BD2664756E2164756E21
19
+ //# sourceMappingURL=credential-wgt4gvcz.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/credential.ts"],
4
+ "sourcesContent": [
5
+ "/**\n * Operator credentials from a terminal: mint one, list them, revoke one.\n *\n * ## Why this is not called `keys`\n *\n * The `keys` command already exists and prints the bytes a terminal sends for a chord — a keyboard\n * diagnostic, nothing to do with credentials. Two unrelated meanings under one verb is the kind of\n * collision that costs somebody a confused minute every time they reach for either, so the new\n * surface takes the word the code and the spec already use for the thing: a **credential**.\n * `token` was the other candidate and loses to `server.tokenEnv`, which is a different credential\n * this command cannot mint or revoke.\n *\n * ## Why it talks to a running server rather than the store\n *\n * A key is a fingerprint in the shared store, so writing one directly would work — and would\n * bypass every check `POST /v1/keys` performs: the label rule, the scope validation, and the\n * refusal of a scope naming an agent that does not exist. That is the *\"a check only one surface\n * performs is a check the two disagree about\"* shape, on the surface where disagreeing means a\n * credential that the API would never have issued. So this is an HTTP client, and it says so when\n * there is no server to talk to.\n */\n\nimport { BRAND, CAPABILITIES, type Capability } from \"@dispach/core\"\nimport { UsageError } from \"#lib/args\"\nimport { anyLiveHost, callHost, manifestForId, postToHost } from \"#lib/lifecycle\"\n\nexport interface CredentialOptions {\n readonly action: string\n readonly keyId?: string\n readonly label?: string\n readonly agents?: string\n readonly sessions?: string\n readonly can?: string\n readonly expires?: string\n readonly json?: boolean\n readonly store?: string\n}\n\n/**\n * `1h`, `30m`, `7d`, `90s`, or plain seconds — into whole seconds.\n *\n * A suffix because \"how long should this credential live\" is a question people answer in hours and\n * days, and `3600` is a number somebody has to compute and can get wrong by a factor of sixty. Bare\n * digits stay accepted, since that is what the wire takes and a script already has the number.\n */\nexport function parseDuration(raw: string): number {\n const match = /^(\\d+)\\s*(s|m|h|d)?$/.exec(raw.trim())\n if (match === null) {\n throw new UsageError({\n code: \"credential_usage\",\n message: `--expires ${JSON.stringify(raw)} is not a duration.`,\n hint: \"Write it as 30s, 15m, 2h or 7d — or as a plain number of seconds.\",\n })\n }\n const value = Number(match[1])\n if (value === 0) {\n throw new UsageError({\n code: \"credential_usage\",\n message: \"--expires 0 would mint a credential that has already expired.\",\n hint: \"Leave the flag off for a key that never expires, or give it a real duration like 1h.\",\n })\n }\n const unit = { s: 1, m: 60, h: 3600, d: 86_400 }[match[2] ?? \"s\"] ?? 1\n return value * unit\n}\n\n/** `chat,read` → the capabilities, refusing anything that is not one rather than dropping it. */\nexport function parseCapabilities(raw: string): readonly Capability[] {\n const names = raw\n .split(\",\")\n .map((entry) => entry.trim().toLowerCase())\n .filter((entry) => entry !== \"\")\n const unknown = names.filter((name) => !(CAPABILITIES as readonly string[]).includes(name))\n if (unknown.length > 0) {\n throw new UsageError({\n code: \"credential_usage\",\n message: `--can names ${unknown.map((name) => JSON.stringify(name)).join(\", \")}, which is not a capability.`,\n hint: `The four are: ${CAPABILITIES.join(\", \")}. read is every GET; chat sends a message, answers an approval and stops a turn; write covers schedules, phase and clearing a session; admin covers credentials, provisioning and start/stop.`,\n })\n }\n // An empty list is *not* silently promoted to \"everything\": `--can \"\"` is a key that may do\n // nothing, which is a coherent thing to ask for and a confusing thing to be given instead.\n return names as readonly Capability[]\n}\n\n/** A comma list into ids, with the empty entries dropped rather than sent as `\"\"`. */\nfunction parseList(raw: string): readonly string[] {\n return raw\n .split(\",\")\n .map((entry) => entry.trim())\n .filter((entry) => entry !== \"\")\n}\n\ninterface KeyLike {\n readonly keyId: string\n readonly label: string\n readonly createdAt: string\n readonly lastUsedAt?: string\n readonly revokedAt?: string\n readonly expiresAt?: string\n readonly scope?: {\n readonly agents?: readonly string[]\n readonly sessions?: string\n readonly can?: readonly string[]\n }\n}\n\n/**\n * One line describing what a key reaches, for a listing.\n *\n * **Printed back after minting too**, which is the half that matters: a prefix is not a namespace —\n * `team_4` also matches `team_42:x` — so showing what the scope *says* at the moment it is created\n * is the only cheap place to notice that it says something other than what was meant. The same\n * argument `telegramHandle` makes about a username that cannot exist.\n */\nexport function describeScope(key: KeyLike): string {\n const parts: string[] = []\n parts.push(key.scope?.agents === undefined ? \"every agent\" : key.scope.agents.join(\", \"))\n if (key.scope?.sessions !== undefined) parts.push(`sessions ${key.scope.sessions}`)\n parts.push(key.scope?.can === undefined ? \"all capabilities\" : key.scope.can.join(\"+\"))\n if (key.expiresAt !== undefined) parts.push(`until ${key.expiresAt}`)\n return parts.join(\" · \")\n}\n\n/** The host to ask, or a refusal naming why there is none. */\nasync function host(store?: string) {\n const lease = await anyLiveHost(store)\n if (lease === undefined) {\n throw new UsageError({\n code: \"credential_usage\",\n message: \"No server is running, so there is nothing to mint a credential on.\",\n hint: `A credential belongs to a server rather than to a file, so this command is an API client. Start one with \\`${BRAND.slug} serve\\`, or use POST /v1/keys directly against a server you can already reach.`,\n })\n }\n return { lease, manifest: manifestForId(lease.agentId) }\n}\n\nexport async function credentialCommand(options: CredentialOptions): Promise<number> {\n if (options.action === \"create\") return await create(options)\n if (options.action === \"list\") return await list(options)\n if (options.action === \"revoke\") return await revoke(options)\n throw new UsageError({\n code: \"credential_usage\",\n message: `Unknown action ${JSON.stringify(options.action)}.`,\n hint: \"The actions are create, list and revoke.\",\n })\n}\n\nasync function create(options: CredentialOptions): Promise<number> {\n const label = options.label?.trim()\n if (label === undefined || label === \"\") {\n throw new UsageError({\n code: \"credential_usage\",\n message: \"--label is required.\",\n hint: 'A label is the only thing distinguishing two credentials in a listing, and \"key 2\" is a name nobody can act on when deciding which to revoke.',\n })\n }\n const scope = {\n ...(options.agents === undefined ? {} : { agents: parseList(options.agents) }),\n ...(options.sessions === undefined ? {} : { sessions: options.sessions }),\n ...(options.can === undefined ? {} : { can: parseCapabilities(options.can) }),\n ...(options.expires === undefined ? {} : { expiresIn: parseDuration(options.expires) }),\n }\n\n const { lease, manifest } = await host(options.store)\n const reply = await postToHost(\n lease,\n \"/v1/keys\",\n { label, ...(Object.keys(scope).length === 0 ? {} : { scope }) },\n manifest,\n )\n if (!reply.ok) return refused(reply, \"mint a credential\")\n\n const key = reply.body as KeyLike & { readonly secret: string }\n if (options.json === true) {\n process.stdout.write(`${JSON.stringify(key, null, 2)}\\n`)\n return 0\n }\n /**\n * The secret, on its own line, **once**.\n *\n * It is not stored anywhere in a readable form and no route returns it again, so this is the\n * only moment it exists outside the caller's memory. Printed bare rather than inside a sentence\n * so that copying the line copies the credential and nothing else.\n */\n process.stdout.write(`${key.secret}\\n`)\n process.stderr.write(` ${key.label} · ${key.keyId}\\n`)\n process.stderr.write(` reaches ${describeScope(key)}\\n`)\n process.stderr.write(\n \" This is the only time the secret is shown. It is stored as a fingerprint and no route returns it.\\n\",\n )\n return 0\n}\n\nasync function list(options: CredentialOptions): Promise<number> {\n const { lease, manifest } = await host(options.store)\n const reply = await callHost(lease, \"GET\", \"/v1/keys\", manifest)\n if (!reply.ok) return refused(reply, \"list credentials\")\n\n const body = reply.body as { readonly keys?: readonly KeyLike[]; readonly scope?: string }\n const keys = body.keys ?? []\n if (options.json === true) {\n process.stdout.write(`${JSON.stringify(body, null, 2)}\\n`)\n return 0\n }\n if (keys.length === 0) {\n process.stdout.write(\"No credentials. The server token is the only way in.\\n\")\n return 0\n }\n for (const key of keys) {\n // Revoked ones are shown rather than hidden, the same as the API's listing: the row is the\n // only record a credential ever existed, and hiding it makes a revocation unverifiable.\n const state = key.revokedAt === undefined ? \"live\" : \"revoked\"\n process.stdout.write(`${key.keyId} ${state.padEnd(7)} ${key.label}\\n`)\n process.stdout.write(` reaches ${describeScope(key)}\\n`)\n process.stdout.write(\n ` created ${key.createdAt}${key.lastUsedAt === undefined ? \" · never used\" : ` · last used ${key.lastUsedAt}`}\\n`,\n )\n }\n return 0\n}\n\nasync function revoke(options: CredentialOptions): Promise<number> {\n const keyId = options.keyId?.trim()\n if (keyId === undefined || keyId === \"\") {\n throw new UsageError({\n code: \"credential_usage\",\n message: \"Which credential?\",\n hint: `\\`${BRAND.slug} credential list\\` prints the ids. Revoking is permanent — a revoked secret can never be re-presented.`,\n })\n }\n const { lease, manifest } = await host(options.store)\n const reply = await callHost(lease, \"DELETE\", `/v1/keys/${encodeURIComponent(keyId)}`, manifest)\n if (!reply.ok) return refused(reply, \"revoke that credential\")\n const key = reply.body as KeyLike\n if (options.json === true) {\n process.stdout.write(`${JSON.stringify(key, null, 2)}\\n`)\n return 0\n }\n process.stdout.write(`revoked ${key.keyId} · ${key.label}\\n`)\n return 0\n}\n\n/** The server's own words, not a paraphrase — it knows why far better than this command does. */\nfunction refused(reply: { status: number; detail?: string; hint?: string }, what: string): number {\n process.stderr.write(\n `Could not ${what}${reply.status === 0 ? \"\" : ` (${reply.status})`}: ${reply.detail ?? \"the host did not answer\"}\\n`,\n )\n if (reply.hint !== undefined) process.stderr.write(` hint: ${reply.hint}\\n`)\n return 1\n}\n"
6
+ ],
7
+ "mappings": ";+KA6CO,SAAS,CAAa,CAAC,EAAqB,CAC/C,IAAM,EAAQ,uBAAuB,KAAK,EAAI,KAAK,CAAC,EACpD,GAAI,IAAU,KACV,MAAM,IAAI,GAAW,CACjB,KAAM,mBACN,QAAS,aAAa,KAAK,UAAU,CAAG,uBACxC,KAAM,mEACV,CAAC,EAEL,IAAM,EAAQ,OAAO,EAAM,EAAE,EAC7B,GAAI,IAAU,EACV,MAAM,IAAI,GAAW,CACjB,KAAM,mBACN,QAAS,gEACT,KAAM,sFACV,CAAC,EAEL,IAAM,EAAO,CAAE,EAAG,EAAG,EAAG,GAAI,EAAG,KAAM,EAAG,KAAO,EAAE,EAAM,IAAM,MAAQ,EACrE,OAAO,EAAQ,EAIZ,SAAS,CAAiB,CAAC,EAAoC,CAClE,IAAM,EAAQ,EACT,MAAM,GAAG,EACT,IAAI,CAAC,IAAU,EAAM,KAAK,EAAE,YAAY,CAAC,EACzC,OAAO,CAAC,IAAU,IAAU,EAAE,EAC7B,EAAU,EAAM,OAAO,CAAC,IAAS,CAAE,GAA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ACrD,EAIX,SAAS,CAAO,CAAC,EAA2D,EAAsB,CAI9F,GAHA,QAAQ,OAAO,MACX,aAAa,IAAO,EAAM,SAAW,EAAI,GAAK,KAAK,EAAM,cAAc,EAAM,QAAU;AAAA,CAC3F,EACI,EAAM,OAAS,OAAW,QAAQ,OAAO,MAAM,WAAW,EAAM;AAAA,CAAQ,EAC5E,MAAO",
8
+ "debugId": "20874B121AF8BD2664756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Operator credentials from a terminal: mint one, list them, revoke one.
3
+ *
4
+ * ## Why this is not called `keys`
5
+ *
6
+ * The `keys` command already exists and prints the bytes a terminal sends for a chord — a keyboard
7
+ * diagnostic, nothing to do with credentials. Two unrelated meanings under one verb is the kind of
8
+ * collision that costs somebody a confused minute every time they reach for either, so the new
9
+ * surface takes the word the code and the spec already use for the thing: a **credential**.
10
+ * `token` was the other candidate and loses to `server.tokenEnv`, which is a different credential
11
+ * this command cannot mint or revoke.
12
+ *
13
+ * ## Why it talks to a running server rather than the store
14
+ *
15
+ * A key is a fingerprint in the shared store, so writing one directly would work — and would
16
+ * bypass every check `POST /v1/keys` performs: the label rule, the scope validation, and the
17
+ * refusal of a scope naming an agent that does not exist. That is the *"a check only one surface
18
+ * performs is a check the two disagree about"* shape, on the surface where disagreeing means a
19
+ * credential that the API would never have issued. So this is an HTTP client, and it says so when
20
+ * there is no server to talk to.
21
+ */
22
+ import { type Capability } from "@dispach/core";
23
+ export interface CredentialOptions {
24
+ readonly action: string;
25
+ readonly keyId?: string;
26
+ readonly label?: string;
27
+ readonly agents?: string;
28
+ readonly sessions?: string;
29
+ readonly can?: string;
30
+ readonly expires?: string;
31
+ readonly json?: boolean;
32
+ readonly store?: string;
33
+ }
34
+ /**
35
+ * `1h`, `30m`, `7d`, `90s`, or plain seconds — into whole seconds.
36
+ *
37
+ * A suffix because "how long should this credential live" is a question people answer in hours and
38
+ * days, and `3600` is a number somebody has to compute and can get wrong by a factor of sixty. Bare
39
+ * digits stay accepted, since that is what the wire takes and a script already has the number.
40
+ */
41
+ export declare function parseDuration(raw: string): number;
42
+ /** `chat,read` → the capabilities, refusing anything that is not one rather than dropping it. */
43
+ export declare function parseCapabilities(raw: string): readonly Capability[];
44
+ interface KeyLike {
45
+ readonly keyId: string;
46
+ readonly label: string;
47
+ readonly createdAt: string;
48
+ readonly lastUsedAt?: string;
49
+ readonly revokedAt?: string;
50
+ readonly expiresAt?: string;
51
+ readonly scope?: {
52
+ readonly agents?: readonly string[];
53
+ readonly sessions?: string;
54
+ readonly can?: readonly string[];
55
+ };
56
+ }
57
+ /**
58
+ * One line describing what a key reaches, for a listing.
59
+ *
60
+ * **Printed back after minting too**, which is the half that matters: a prefix is not a namespace —
61
+ * `team_4` also matches `team_42:x` — so showing what the scope *says* at the moment it is created
62
+ * is the only cheap place to notice that it says something other than what was meant. The same
63
+ * argument `telegramHandle` makes about a username that cannot exist.
64
+ */
65
+ export declare function describeScope(key: KeyLike): string;
66
+ export declare function credentialCommand(options: CredentialOptions): Promise<number>;
67
+ export {};
68
+ //# sourceMappingURL=credential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credential.d.ts","sourceRoot":"","sources":["../src/credential.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAAuB,KAAK,UAAU,EAAE,MAAM,eAAe,CAAA;AAIpE,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAmBjD;AAED,iGAAiG;AACjG,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,UAAU,EAAE,CAgBpE;AAUD,UAAU,OAAO;IACb,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE;QACb,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;QACnC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;QAC1B,QAAQ,CAAC,GAAG,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;KACnC,CAAA;CACJ;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAOlD;AAeD,wBAAsB,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CASnF"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * `daemon <action> <agent>` — keep an agent serving without a terminal open.
3
+ *
4
+ * ## Why this is a command and not a paragraph in the README
5
+ *
6
+ * Path resolution, and it is provable rather than arguable. The obvious hand-written plist —
7
+ * `ProgramArguments: ["~/.bun/bin/<binary>", "serve", "milo"]` — **exits 127 forever**: the built
8
+ * binary's first line is `#!/usr/bin/env node`, launchd's PATH is `/usr/bin:/bin:/usr/sbin:/sbin`,
9
+ * and on a machine using a version manager there is no `node` in any of those. The failure lands in
10
+ * a log file nobody has been told about. The gateway this runtime replaces ships an installer and
11
+ * still got a version of this half-wrong — a Homebrew interpreter running an nvm-installed script.
12
+ *
13
+ * So the job is: resolve the interpreter and the script absolutely, resolve the manifest absolutely
14
+ * (a bare agent name means something different from launchd's cwd of `/` than it does from the
15
+ * directory you typed it in), carry no secrets, and refuse to install something that will not boot.
16
+ *
17
+ * No Ink and no React — a service command's output is read from a log at least as often as from a
18
+ * terminal.
19
+ */
20
+ import { isLoopbackHost } from "#lib/daemon-plan";
21
+ import { bytes } from "#lib/render";
22
+ import { type Exec } from "#lib/service";
23
+ export declare const DAEMON_ACTIONS: readonly ["install", "uninstall", "start", "stop", "restart", "status", "logs"];
24
+ export type DaemonAction = (typeof DAEMON_ACTIONS)[number];
25
+ export interface DaemonOptions {
26
+ readonly action: string;
27
+ /** Absolute manifest path. Optional only for `status`, which can report on everything. */
28
+ readonly manifestPath?: string;
29
+ readonly lines?: number;
30
+ readonly follow?: boolean;
31
+ readonly truncate?: boolean;
32
+ readonly dryRun?: boolean;
33
+ readonly json?: boolean;
34
+ /** Test seams. Nothing in `src/` outside this file passes them. */
35
+ readonly exec?: Exec;
36
+ readonly platform?: string;
37
+ /** For the sandbox root and `XDG_CONFIG_HOME`. Injectable so a test needs no real HOME. */
38
+ readonly env?: Readonly<Record<string, string | undefined>>;
39
+ /** The database to read leases from. Defaults to the sandbox's. */
40
+ readonly store?: string;
41
+ }
42
+ export declare function daemonCommand(options: DaemonOptions): Promise<number>;
43
+ /** Re-exported so the boundaries test can assert this module carries no renderer import. */
44
+ export declare const DAEMON_ENV_ALLOWED: readonly string[];
45
+ export declare const DAEMON_LOOPBACK: typeof isLoopbackHost;
46
+ export declare const DAEMON_BYTES: typeof bytes;
47
+ //# sourceMappingURL=daemon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daemon.d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A;AAC7C,eAAO,MAAM,YAAY,cAAQ,CAAA"}
@@ -0,0 +1,81 @@
1
+ /**
2
+ * The input buffer, as data. Pure — no Ink, no React, no terminal.
3
+ *
4
+ * Ink gives you keystrokes and nothing else: there is no text field, so cursor movement, word motion,
5
+ * history, undo and line breaks are this file's job. Keeping them here rather than inside a component
6
+ * is what makes them testable, and they are exactly the behaviours that are tedious to check by hand
7
+ * and embarrassing when wrong.
8
+ *
9
+ * **Positions are code points, not UTF-16 units.** `"👍".length` is 2, so a cursor counted in string
10
+ * indices lands *inside* the surrogate pair, and one backspace leaves half a character behind that
11
+ * renders as a replacement glyph and gets sent to the model. Every operation here goes through an
12
+ * array of code points for that reason.
13
+ *
14
+ * **The buffer is multi-line.** A message is composed rather than typed on one line, so `value` may
15
+ * contain `\n` and the line helpers derive bounds on demand. That choice is argued in
16
+ * `EditorState.value`; the consequence here is that "start of line" and "start of buffer" are now
17
+ * different places, and `cursorHome` means the first.
18
+ *
19
+ * **Undo coalesces.** One snapshot per keystroke makes undo useless — nobody wants to press it forty
20
+ * times to take back a sentence — so a run of plain typing is one step, and anything structural
21
+ * (deletion, a line break, a paste, recalling history) opens a new one. That is the granularity every
22
+ * editor converged on, and it is decided by `remember`'s single argument rather than scattered.
23
+ */
24
+ import type { EditorState, Intent } from "#lib/types";
25
+ export declare const EMPTY_EDITOR: EditorState;
26
+ interface LineBounds {
27
+ readonly start: number;
28
+ readonly end: number;
29
+ }
30
+ /** The bounds of the line the cursor sits on, in code points. `end` is the newline or the buffer end. */
31
+ export declare function lineAt(value: string, cursor: number): LineBounds;
32
+ /** Which line the cursor is on, and how many there are. Used to decide what an arrow means. */
33
+ export declare function lineInfo(state: EditorState): {
34
+ readonly line: number;
35
+ readonly lines: number;
36
+ readonly column: number;
37
+ };
38
+ /**
39
+ * History entries containing the query, newest first.
40
+ *
41
+ * Substring rather than prefix, and case-insensitive: a message is prose, and remembering how one
42
+ * started is much harder than remembering a word in the middle of it. Deduplicated, because the same
43
+ * question asked twice should not take two presses of ↓ to walk past.
44
+ */
45
+ export declare function searchMatches(state: EditorState): readonly string[];
46
+ /** The entry the search has landed on, or `undefined` when nothing matches. */
47
+ export declare function searchSelection(state: EditorState): string | undefined;
48
+ /** The selected range, normalised so `start <= end`. `undefined` when nothing is selected. */
49
+ export declare function selectionRange(state: EditorState): {
50
+ readonly start: number;
51
+ readonly end: number;
52
+ } | undefined;
53
+ export declare function applyIntent(state: EditorState, intent: Intent): EditorState;
54
+ /**
55
+ * Does enter send the message, or continue it on a new line?
56
+ *
57
+ * A trailing backslash means continue — the shell's convention, and the fallback for terminals where
58
+ * shift+enter is indistinguishable from enter. Counted rather than tested for one character, so an
59
+ * escaped backslash (`a\\`) sends and does not silently swallow the pair.
60
+ *
61
+ * Only at the very end of the buffer. Mid-message a backslash is ordinary text, and a message about
62
+ * Windows paths should not become unsendable.
63
+ */
64
+ export declare function submitIntent(state: EditorState): "send" | "newline";
65
+ /** Drop the trailing continuation backslash and break the line. Paired with `submitIntent`. */
66
+ export declare function continueLine(state: EditorState): EditorState;
67
+ /**
68
+ * Commit the message. Returns the text to send and the state to keep.
69
+ *
70
+ * Empty submits nothing, and a repeat of the previous entry is not added to history — otherwise
71
+ * pressing Enter twice fills history with duplicates that the arrows then have to walk.
72
+ *
73
+ * The undo stack does not survive: it describes a message that has been sent, and offering to undo
74
+ * into text that is already in the transcript would be a lie about what the buffer is.
75
+ */
76
+ export declare function submit(state: EditorState): {
77
+ readonly text: string;
78
+ readonly state: EditorState;
79
+ };
80
+ export {};
81
+ //# sourceMappingURL=editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../src/editor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,KAAK,EAAkB,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAErE,eAAO,MAAM,YAAY,EAAE,WAU1B,CAAA;AA2HD,UAAU,UAAU;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
+ * Milliseconds since `active` became true, ticking while it stays true.
3
+ *
4
+ * This is the only clock in the CLI's view layer, and it is deliberately isolated: the transcript
5
+ * reducer takes its durations from `turn.end`, so it needs no clock and stays deterministic. What
6
+ * needs a clock is the "thinking for 4s" counter, whose entire job is to distinguish a slow model
7
+ * from a hung one — the case where showing nothing is worst.
8
+ */
9
+ export declare function useElapsed(active: boolean): number;
10
+ //# sourceMappingURL=useElapsed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useElapsed.d.ts","sourceRoot":"","sources":["../../src/hooks/useElapsed.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAMH,wBAAgB,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAelD"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Terminal width, kept current across resizes.
3
+ *
4
+ * `columns` can genuinely be 0 — measured, under a pty allocated by `script -q`, which is how a real
5
+ * TTY gets driven in a test harness. Anything dividing by the width has to survive that, so the
6
+ * fallback is applied here rather than at each call site.
7
+ */
8
+ interface Size {
9
+ readonly columns: number;
10
+ readonly rows: number;
11
+ }
12
+ export declare function useTerminalSize(): Size;
13
+ export {};
14
+ //# sourceMappingURL=useTerminalSize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTerminalSize.d.ts","sourceRoot":"","sources":["../../src/hooks/useTerminalSize.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,UAAU,IAAI;IACV,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACxB;AAgBD,wBAAgB,eAAe,IAAI,IAAI,CAYtC"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * The bridge between the event bus and React state.
3
+ *
4
+ * The CLI has always subscribed to `runtime.bus`; this makes it a reducer over that bus rather than
5
+ * a set of callbacks writing to stdout. All the interesting logic lives in `transcript.ts`, which is
6
+ * pure and tested — this hook only owns the subscription, the abort controller, and the promise.
7
+ */
8
+ import type { AgentSource } from "#lib/source";
9
+ import type { TranscriptState } from "#lib/types";
10
+ export interface UseTurn {
11
+ readonly state: TranscriptState;
12
+ /** A turn is in flight. Drives the Ctrl-C contract and the status bar. */
13
+ readonly busy: boolean;
14
+ send(text: string): void;
15
+ cancel(): void;
16
+ note(text: string): void;
17
+ /**
18
+ * Drop the oldest items if the buffer is over its cap. Safe to call on every change — a buffer
19
+ * under the cap returns identical state and React skips the render.
20
+ *
21
+ * Exposed rather than done inside the reducer because the caller owns the scroll state, and
22
+ * eviction while somebody is parked in history would move rows under them. `App` calls this only
23
+ * while following the tail.
24
+ */
25
+ trim(): void;
26
+ }
27
+ export declare function useTurn(options: {
28
+ /**
29
+ * Where the agent is, rather than which object it is.
30
+ *
31
+ * This took an `Agent` and an `EventBus` directly, which is what made the TUI a second *owner*
32
+ * of a runtime rather than a view of one. Nothing in this hook changes between the two: it
33
+ * subscribes, it sends, it aborts, and each of those is one call the source implements its own
34
+ * way — attached, an abort becomes a request naming the turn, because a turn belongs to the
35
+ * server and is never cancelled by a disconnect.
36
+ */
37
+ readonly source: AgentSource;
38
+ readonly sessionKey: string;
39
+ readonly initial: TranscriptState;
40
+ }): UseTurn;
41
+ //# sourceMappingURL=useTurn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTurn.d.ts","sourceRoot":"","sources":["../../src/hooks/useTurn.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAGjD,MAAM,WAAW,OAAO;IACpB,QAAQ,CAAC,KAAK,EAAE,eAAe,CAAA;IAC/B,0EAA0E;IAC1E,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,MAAM,IAAI,IAAI,CAAA;IACd,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB;;;;;;;OAOG;IACH,IAAI,IAAI,IAAI,CAAA;CACf;AAED,wBAAgB,OAAO,CAAC,OAAO,EAAE;IAC7B;;;;;;;;OAQG;IACH,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;CACpC,GAAG,OAAO,CAuGV"}