dispach 0.1.1 → 0.1.3

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 (198) hide show
  1. package/README.md +188 -80
  2. package/dist/App-qfqvx9c7.js +11 -0
  3. package/dist/{App-5a35bjkt.js.map → App-qfqvx9c7.js.map} +6 -7
  4. package/dist/ConfigEditor-apcnj4nj.js +6 -0
  5. package/dist/{ConfigEditor-7nnc2ke6.js.map → ConfigEditor-apcnj4nj.js.map} +2 -2
  6. package/dist/KeyProbe-ya5t3v3v.js +5 -0
  7. package/dist/{KeyProbe-kbz0j6sm.js.map → KeyProbe-ya5t3v3v.js.map} +2 -2
  8. package/dist/Picker-b7mn0mjg.js +5 -0
  9. package/dist/{Picker-2zjjt17a.js.map → Picker-b7mn0mjg.js.map} +1 -1
  10. package/dist/SessionPicker-vacfwczg.js +5 -0
  11. package/dist/{SessionPicker-fyyvxy40.js.map → SessionPicker-vacfwczg.js.map} +2 -2
  12. package/dist/SkillBrowser-66ntwaa9.js +5 -0
  13. package/dist/{SkillBrowser-x7r51zy0.js.map → SkillBrowser-66ntwaa9.js.map} +1 -1
  14. package/dist/WizardApp-123998yh.js +5 -0
  15. package/dist/{WizardApp-v0dghsyw.js.map → WizardApp-123998yh.js.map} +3 -3
  16. package/dist/agents.d.ts +19 -3
  17. package/dist/agents.d.ts.map +1 -1
  18. package/dist/channels-q4fwqq87.js +31 -0
  19. package/dist/channels-q4fwqq87.js.map +10 -0
  20. package/dist/channels.d.ts +26 -0
  21. package/dist/channels.d.ts.map +1 -0
  22. package/dist/client.js +10 -10
  23. package/dist/client.js.map +5 -5
  24. package/dist/config-64q4mgxc.js +24 -0
  25. package/dist/{config-9cv76yrk.js.map → config-64q4mgxc.js.map} +2 -2
  26. package/dist/credential-2sj7vsmw.js +19 -0
  27. package/dist/{credential-yxqj8x1f.js.map → credential-2sj7vsmw.js.map} +2 -2
  28. package/dist/daemon.d.ts.map +1 -1
  29. package/dist/index-0k3w2mxf.js +6 -0
  30. package/dist/{index-5x4dn0gg.js.map → index-0k3w2mxf.js.map} +1 -1
  31. package/dist/index-1s81qstp.js +6 -0
  32. package/dist/{index-v8e92nfw.js.map → index-1s81qstp.js.map} +1 -1
  33. package/dist/index-2rycma8x.js +12 -0
  34. package/dist/{index-zxh0ntgf.js.map → index-2rycma8x.js.map} +4 -3
  35. package/dist/index-2zye08c4.js +6 -0
  36. package/dist/{index-2wmsmcbr.js.map → index-2zye08c4.js.map} +2 -2
  37. package/dist/{index-gme2egyq.js → index-3km1jwh7.js} +4 -4
  38. package/dist/{index-gme2egyq.js.map → index-3km1jwh7.js.map} +1 -1
  39. package/dist/index-3mtgcvkq.js +429 -0
  40. package/dist/index-3mtgcvkq.js.map +11 -0
  41. package/dist/index-4knb5vjm.js +90 -0
  42. package/dist/index-4knb5vjm.js.map +13 -0
  43. package/dist/{index-3g3ny01d.js → index-5nwwekk0.js} +4 -4
  44. package/dist/{index-3g3ny01d.js.map → index-5nwwekk0.js.map} +1 -1
  45. package/dist/index-5rm7dwq4.js +6 -0
  46. package/dist/index-5rm7dwq4.js.map +11 -0
  47. package/dist/index-79epttpm.js +6 -0
  48. package/dist/index-79epttpm.js.map +10 -0
  49. package/dist/{index-4cf6v9nb.js → index-7yk1zvds.js} +4 -4
  50. package/dist/{index-4cf6v9nb.js.map → index-7yk1zvds.js.map} +1 -1
  51. package/dist/index-81gb4ey4.js +6 -0
  52. package/dist/{index-4z7axw4r.js.map → index-81gb4ey4.js.map} +1 -1
  53. package/dist/index-8a5d8sfe.js +6 -0
  54. package/dist/{index-a4xqgdrm.js.map → index-8a5d8sfe.js.map} +1 -1
  55. package/dist/index-a21zyy54.js +6 -0
  56. package/dist/index-a21zyy54.js.map +9 -0
  57. package/dist/index-b6da6c16.js +92 -0
  58. package/dist/index-b6da6c16.js.map +15 -0
  59. package/dist/index-byxrc961.js +903 -0
  60. package/dist/{index-7z4sw2dm.js.map → index-byxrc961.js.map} +18 -17
  61. package/dist/{index-ammv5st7.js → index-cgfg6t5a.js} +6 -6
  62. package/dist/{index-ammv5st7.js.map → index-cgfg6t5a.js.map} +1 -1
  63. package/dist/{index-ez2mb28y.js → index-ehzwdnc3.js} +4 -4
  64. package/dist/{index-ez2mb28y.js.map → index-ehzwdnc3.js.map} +1 -1
  65. package/dist/index-fzmmhmk2.js +7 -0
  66. package/dist/index-fzmmhmk2.js.map +11 -0
  67. package/dist/index-g3pk0kc0.js +6 -0
  68. package/dist/{index-9r0wyj6w.js.map → index-g3pk0kc0.js.map} +2 -2
  69. package/dist/index-h828nk24.js +153 -0
  70. package/dist/index-h828nk24.js.map +20 -0
  71. package/dist/{index-zked16y4.js → index-jq999vcw.js} +5 -5
  72. package/dist/{index-zked16y4.js.map → index-jq999vcw.js.map} +2 -2
  73. package/dist/index-k2aq5bg0.js +9 -0
  74. package/dist/{index-nvm5hwe4.js.map → index-k2aq5bg0.js.map} +4 -6
  75. package/dist/{index-cqqb6gaq.js → index-k3y8y3wj.js} +5 -5
  76. package/dist/{index-cqqb6gaq.js.map → index-k3y8y3wj.js.map} +1 -1
  77. package/dist/index-k59wwdgz.js +9 -0
  78. package/dist/{index-83bqtze0.js.map → index-k59wwdgz.js.map} +3 -5
  79. package/dist/index-nmnnwa02.js +6 -0
  80. package/dist/{index-73jfw4jp.js.map → index-nmnnwa02.js.map} +1 -1
  81. package/dist/index-nn3tk25c.js +6 -0
  82. package/dist/{index-d4x6yvqh.js.map → index-nn3tk25c.js.map} +3 -4
  83. package/dist/index-q0hxh57v.js +126 -0
  84. package/dist/index-q0hxh57v.js.map +14 -0
  85. package/dist/index-srmhk9g5.js +11 -0
  86. package/dist/index-srmhk9g5.js.map +11 -0
  87. package/dist/index-swtyfhha.js +6 -0
  88. package/dist/{index-fex44816.js.map → index-swtyfhha.js.map} +2 -2
  89. package/dist/index-whq42sat.js +6 -0
  90. package/dist/{index-17an0jqq.js.map → index-whq42sat.js.map} +1 -1
  91. package/dist/{index-j7gyr5nx.js → index-wzsmh5j0.js} +7 -7
  92. package/dist/{index-j7gyr5nx.js.map → index-wzsmh5j0.js.map} +1 -1
  93. package/dist/{index-e0j1jafd.js → index-x7v1zq89.js} +7 -7
  94. package/dist/{index-e0j1jafd.js.map → index-x7v1zq89.js.map} +2 -2
  95. package/dist/index-xhzmv4dh.js +66 -0
  96. package/dist/index-xhzmv4dh.js.map +12 -0
  97. package/dist/index-xmv47vs0.js +6 -0
  98. package/dist/{index-gz9x25tz.js.map → index-xmv47vs0.js.map} +2 -2
  99. package/dist/index-y4c32wn7.js +6 -0
  100. package/dist/{index-dwyr2kdm.js.map → index-y4c32wn7.js.map} +2 -2
  101. package/dist/index-yjcdp72k.js +6 -0
  102. package/dist/{index-0b1hdwnm.js.map → index-yjcdp72k.js.map} +1 -1
  103. package/dist/index-zn24991r.js +6 -0
  104. package/dist/index-zn24991r.js.map +10 -0
  105. package/dist/index.js +374 -443
  106. package/dist/index.js.map +23 -27
  107. package/dist/init.d.ts.map +1 -1
  108. package/dist/lib/channel-actions.d.ts +103 -0
  109. package/dist/lib/channel-actions.d.ts.map +1 -0
  110. package/dist/lib/chat-frame.d.ts +12 -1
  111. package/dist/lib/chat-frame.d.ts.map +1 -1
  112. package/dist/lib/commands.d.ts +13 -0
  113. package/dist/lib/commands.d.ts.map +1 -1
  114. package/dist/lib/const.d.ts +1 -1
  115. package/dist/lib/host-actions.d.ts +121 -0
  116. package/dist/lib/host-actions.d.ts.map +1 -0
  117. package/dist/lib/init-flow.d.ts +49 -4
  118. package/dist/lib/init-flow.d.ts.map +1 -1
  119. package/dist/lib/init-whatsapp.d.ts +52 -0
  120. package/dist/lib/init-whatsapp.d.ts.map +1 -0
  121. package/dist/lib/plugin-install.d.ts +120 -0
  122. package/dist/lib/plugin-install.d.ts.map +1 -0
  123. package/dist/lib/providers.d.ts.map +1 -1
  124. package/dist/lib/provision.d.ts.map +1 -1
  125. package/dist/lib/readme-table.d.ts +15 -0
  126. package/dist/lib/readme-table.d.ts.map +1 -0
  127. package/dist/lib/sandbox.d.ts +15 -0
  128. package/dist/lib/sandbox.d.ts.map +1 -1
  129. package/dist/lib/schema.d.ts +34 -1
  130. package/dist/lib/schema.d.ts.map +1 -1
  131. package/dist/lib/subcommand.d.ts.map +1 -1
  132. package/dist/lib/web-url.d.ts +15 -0
  133. package/dist/lib/web-url.d.ts.map +1 -0
  134. package/dist/lib/wizard.d.ts.map +1 -1
  135. package/dist/memory.d.ts.map +1 -1
  136. package/dist/model.d.ts.map +1 -1
  137. package/dist/plugins.d.ts +27 -8
  138. package/dist/plugins.d.ts.map +1 -1
  139. package/dist/restart.d.ts +21 -0
  140. package/dist/restart.d.ts.map +1 -0
  141. package/dist/run.d.ts.map +1 -1
  142. package/dist/schedules.d.ts.map +1 -1
  143. package/dist/serve.d.ts.map +1 -1
  144. package/dist/sessions.d.ts.map +1 -1
  145. package/dist/skills.d.ts.map +1 -1
  146. package/dist/status.d.ts +16 -0
  147. package/dist/status.d.ts.map +1 -0
  148. package/dist/tools.d.ts.map +1 -1
  149. package/dist/validate.d.ts.map +1 -1
  150. package/dist/web-923c7f5e.js +14 -0
  151. package/dist/{web-x77y8w3v.js.map → web-923c7f5e.js.map} +3 -3
  152. package/dist/web.d.ts +2 -13
  153. package/dist/web.d.ts.map +1 -1
  154. package/dist/wire.js +10 -10
  155. package/dist/wire.js.map +4 -4
  156. package/dist/workspace.d.ts.map +1 -1
  157. package/dist/wrapper-0w9b3my0.js +11 -0
  158. package/dist/wrapper-0w9b3my0.js.map +23 -0
  159. package/package.json +6 -3
  160. package/dist/App-5a35bjkt.js +0 -11
  161. package/dist/ConfigEditor-7nnc2ke6.js +0 -6
  162. package/dist/KeyProbe-kbz0j6sm.js +0 -5
  163. package/dist/Picker-2zjjt17a.js +0 -5
  164. package/dist/SessionPicker-fyyvxy40.js +0 -5
  165. package/dist/SkillBrowser-x7r51zy0.js +0 -5
  166. package/dist/WizardApp-v0dghsyw.js +0 -5
  167. package/dist/config-9cv76yrk.js +0 -24
  168. package/dist/credential-yxqj8x1f.js +0 -19
  169. package/dist/index-000rxxy3.js +0 -7
  170. package/dist/index-000rxxy3.js.map +0 -11
  171. package/dist/index-0b1hdwnm.js +0 -6
  172. package/dist/index-17an0jqq.js +0 -6
  173. package/dist/index-2wmsmcbr.js +0 -6
  174. package/dist/index-4z7axw4r.js +0 -6
  175. package/dist/index-5t6wahx8.js +0 -66
  176. package/dist/index-5t6wahx8.js.map +0 -12
  177. package/dist/index-5x4dn0gg.js +0 -6
  178. package/dist/index-73jfw4jp.js +0 -6
  179. package/dist/index-7z4sw2dm.js +0 -903
  180. package/dist/index-83bqtze0.js +0 -14
  181. package/dist/index-9bkd0fdj.js +0 -427
  182. package/dist/index-9bkd0fdj.js.map +0 -11
  183. package/dist/index-9r0wyj6w.js +0 -6
  184. package/dist/index-a4xqgdrm.js +0 -6
  185. package/dist/index-d4x6yvqh.js +0 -6
  186. package/dist/index-d69d6pkm.js +0 -167
  187. package/dist/index-d69d6pkm.js.map +0 -19
  188. package/dist/index-dwyr2kdm.js +0 -6
  189. package/dist/index-fex44816.js +0 -6
  190. package/dist/index-gz9x25tz.js +0 -6
  191. package/dist/index-nvm5hwe4.js +0 -9
  192. package/dist/index-r3wwvqzb.js +0 -77
  193. package/dist/index-r3wwvqzb.js.map +0 -12
  194. package/dist/index-v8e92nfw.js +0 -6
  195. package/dist/index-xf178c4m.js +0 -6
  196. package/dist/index-xf178c4m.js.map +0 -10
  197. package/dist/index-zxh0ntgf.js +0 -12
  198. package/dist/web-x77y8w3v.js +0 -14
@@ -1 +1 @@
1
- {"version":3,"file":"provision.d.ts","sourceRoot":"","sources":["../../src/lib/provision.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAKH,OAAO,EAEH,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,QAAQ,EAKb,KAAK,QAAQ,EACb,KAAK,gBAAgB,EAKxB,MAAM,gBAAgB,CAAA;AAEvB,eAAO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;;GAiCG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,gBAAgB,GAAG,SAAS,aAAa,EAAE,CAyDnF;AAED,MAAM,WAAW,gBAAgB;IAC7B,sFAAsF;IACtF,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAClD,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAA;CACtC;AAED,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,+FAA+F;IAC/F,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CACpC;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,eAAe,CAiHvE"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The README's command table, rendered from `COMMANDS`.
3
+ *
4
+ * The table was hand-written and its own intro admitted it had drifted — five commands missing at
5
+ * one point, `model probe` listed as a command name. `--help` is generated from the spec table and
6
+ * cannot drift, so the README's copy is generated from the same one: `scripts/readme-commands.ts`
7
+ * writes it between two markers, and `readme.test.ts` fails when the README disagrees with what
8
+ * this renders. One source, two renderings, and a test rather than a sentence saying "keep in step".
9
+ */
10
+ export declare const TABLE_BEGIN = "<!-- commands:begin \u2014 generated by scripts/readme-commands.ts; do not edit by hand -->";
11
+ export declare const TABLE_END = "<!-- commands:end -->";
12
+ export declare function renderCommandTable(): string;
13
+ /** The README with its table replaced, or `undefined` when the markers are missing. */
14
+ export declare function withCommandTable(readme: string): string | undefined;
15
+ //# sourceMappingURL=readme-table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readme-table.d.ts","sourceRoot":"","sources":["../../src/lib/readme-table.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,eAAO,MAAM,WAAW,gGACoE,CAAA;AAC5F,eAAO,MAAM,SAAS,0BAA0B,CAAA;AAEhD,wBAAgB,kBAAkB,IAAI,MAAM,CAG3C;AAED,uFAAuF;AACvF,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAKnE"}
@@ -17,6 +17,21 @@
17
17
  export declare function sandboxRoot(env?: Readonly<Record<string, string | undefined>>): string;
18
18
  export declare function agentsDir(env?: Readonly<Record<string, string | undefined>>): string;
19
19
  export declare function storePath(env?: Readonly<Record<string, string | undefined>>): string;
20
+ /**
21
+ * Where installed plugins live — one directory per plugin, machine-level.
22
+ *
23
+ * The same shape and the same reasoning as the skills cache (`sources`) beside it: a plugin is code
24
+ * the *person* trusts, fetched once and shared by every agent on the machine, and which agents
25
+ * actually load it is decided by each manifest's own `plugins:` block. That is why there is no
26
+ * registry file here — the manifest is the registry, and a second list of "installed plugins" would be
27
+ * exactly the drift this project keeps paying for. `plugins list` reads the loader's own provenance
28
+ * instead.
29
+ *
30
+ * Here rather than computed by a caller, because that is what makes `<ENVPREFIX>HOME` redirect it: a
31
+ * caller that derived its own path wrote three agents into the author's real home directory once.
32
+ */
33
+ export declare function pluginRoot(env?: Readonly<Record<string, string | undefined>>): string;
34
+ export declare function pluginDir(name: string, env?: Readonly<Record<string, string | undefined>>): string;
20
35
  /**
21
36
  * Where a service writes its output, keyed by the agent's **manifest id**.
22
37
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sandbox.d.ts","sourceRoot":"","sources":["../../src/lib/sandbox.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAQH,wBAAgB,WAAW,CACvB,GAAG,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAe,GAChE,MAAM,CAGR;AAED,wBAAgB,SAAS,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,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;IACvC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,mFAAmF;IACnF,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,oEAAoE;IACpE,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,qFAAqF;IACrF,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CACtB,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,GACnD,SAAS,YAAY,EAAE,CAoEzB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC3B,GAAG,EAAE,MAAM,EACX,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,EAClD,GAAG,GAAE,MAAsB,GAC5B,MAAM,CA8CR"}
@@ -2,11 +2,12 @@
2
2
  * Contracts between modules — what the parser produces, what a command takes, what a component
3
3
  * receives. Domain shapes live in `types.ts`.
4
4
  */
5
+ import type { BootstrapResult } from "#lib/bootstrap";
5
6
  import type { BrowseRow, InstallReport } from "#lib/browse";
6
7
  import type { Slice } from "#lib/scroll";
7
8
  import type { SessionRowSource } from "#lib/sessions-view";
8
9
  import type { AgentSource } from "#lib/source";
9
- import type { CatalogueEntry } from "#lib/source-cache";
10
+ import type { CatalogueEntry, Git } from "#lib/source-cache";
10
11
  import type { TextSelection } from "#lib/text-selection";
11
12
  import type { EditorState, EnvFacts, KeyState, LiveTurn, RenderMode, TranscriptRow, TranscriptState, TurnStats, TurnStatus } from "#lib/types";
12
13
  export type FlagKind = "boolean" | "string" | "number";
@@ -268,6 +269,10 @@ export interface InitOptions {
268
269
  readonly telegram?: string;
269
270
  /** One Telegram handle, or empty for an allowlist that permits nobody. */
270
271
  readonly telegramAllow?: string;
272
+ /** `none` or `connected` — reachable on WhatsApp, through the opt-in plugin. */
273
+ readonly whatsapp?: string;
274
+ /** One WhatsApp number in digits, or empty for an allowlist that permits nobody. */
275
+ readonly whatsappNumber?: string;
271
276
  /** `none` or `local` — whether to serve the HTTP API on loopback. */
272
277
  readonly server?: string;
273
278
  /** `none`, `daily` or `hourly` — what the agent runs on a schedule. */
@@ -278,14 +283,42 @@ export interface InitOptions {
278
283
  /** Take every default; never ask, even at a terminal. */
279
284
  readonly yes?: boolean;
280
285
  readonly plain?: boolean;
286
+ /**
287
+ * How to start the background server when the answer is `service`. Injected by the entry point
288
+ * (`installServerUnit`); absent in tests and for a caller that must not install anything, in
289
+ * which case `init` prints the command instead of running it.
290
+ */
291
+ readonly installServer?: () => Promise<BootstrapResult>;
281
292
  }
282
293
  export interface AgentsOptions {
294
+ /** Empty lists the sandbox. */
283
295
  readonly manifestPaths: readonly string[];
296
+ readonly store?: string;
297
+ readonly json?: boolean;
298
+ }
299
+ export interface ChannelsOptions {
300
+ /** `list` (the default), `connect`, `disconnect`, `credential`, `pair` or `unpair`. */
301
+ readonly action?: string;
302
+ readonly manifestPath: string;
303
+ /** Which channel. Optional when the agent declares exactly one. */
304
+ readonly channelId?: string;
284
305
  readonly json?: boolean;
306
+ /** For `pair`: how to start a host when none is up. See `InitOptions.installServer`. */
307
+ readonly installServer?: () => Promise<BootstrapResult>;
285
308
  }
286
309
  export interface PluginsOptions {
310
+ readonly action: string;
287
311
  readonly manifestPath: string;
312
+ /** A repository for add, a plugin name for remove. Unused by list. */
313
+ readonly rest?: readonly string[];
314
+ /** Branch, tag or commit to pin (add). Beats a branch read out of the URL. */
315
+ readonly ref?: string;
316
+ /** The directory to install into (add), overriding the one derived from the URL. */
317
+ readonly name?: string;
288
318
  readonly json?: boolean;
319
+ /** Injected by the tests, which never reach a network. */
320
+ readonly git?: Git;
321
+ readonly env?: Readonly<Record<string, string | undefined>>;
289
322
  }
290
323
  export interface AppProps {
291
324
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/lib/schema.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,KAAK,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,aAAa,EACb,eAAe,EACf,SAAS,EACT,UAAU,EACb,MAAM,YAAY,CAAA;AAInB,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEtD,MAAM,WAAW,QAAQ;IACrB,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,4EAA4E;IAC5E,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,gDAAgD;IAChD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,2EAA2E;IAC3E,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAA;IAC1B;;;;;;;;;;;;OAYG;IACH,QAAQ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AQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAChC;AAED,MAAM,WAAW,cAAc;IAC3B;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CACpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"subcommand.d.ts","sourceRoot":"","sources":["../../src/lib/subcommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,sEAAsE;IACtE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,sFAAsF;IACtF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,6EAA6E;IAC7E,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;IAC3D,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC9B;AAuBD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,iBAAiB,GAAG,SAAS,MAAM,EAAE,CAY5E;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAY1E;AAED,wBAAsB,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CA0BzF"}
1
+ {"version":3,"file":"subcommand.d.ts","sourceRoot":"","sources":["../../src/lib/subcommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAKH,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,sEAAsE;IACtE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,sFAAsF;IACtF,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,6EAA6E;IAC7E,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;IAC3D,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAC9B;AAuBD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,iBAAiB,GAAG,SAAS,MAAM,EAAE,CAY5E;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAY1E;AAED,wBAAsB,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CA+BzF"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The address a person opens for an agent's browser view.
3
+ *
4
+ * In `lib/` rather than in `web.ts` because three commands print it — `web`, `init` and
5
+ * `channels pair` — and `web.ts` is imported lazily by the entry point, so a static import of it
6
+ * from another command would make one module both static and dynamic, which the bundler splits
7
+ * into a duplicate export (`boundaries.test.ts` refuses the mix for that reason).
8
+ */
9
+ /**
10
+ * No credential is attached. A claim is minted at boot and printed by `serve`, deliberately once —
11
+ * a fresh one per invocation would leave a standing credential in a log — and a durable key in an
12
+ * address bar lands in history, a bookmark and whatever syncs them. The page asks when it has to.
13
+ */
14
+ export declare function webUrl(baseUrl: string, agentId?: string): string;
15
+ //# sourceMappingURL=web-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-url.d.ts","sourceRoot":"","sources":["../../src/lib/web-url.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAehE"}
@@ -1 +1 @@
1
- {"version":3,"file":"wizard.d.ts","sourceRoot":"","sources":["../../src/lib/wizard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAEH,KAAK,QAAQ,EAEb,KAAK,cAAc,EAGnB,KAAK,QAAQ,EACb,KAAK,gBAAgB,EAGxB,MAAM,gBAAgB,CAAA;AACvB,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,aAAa,CAAA;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAErD,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAA;AAEnE,MAAM,WAAW,WAAW;IACxB,+CAA+C;IAC/C,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAA;IAC9B,qEAAqE;IACrE,QAAQ,CAAC,GAAG,EAAE,SAAS;QAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IAC5E,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAA;IAC3B,iFAAiF;IACjF,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;IAC5B,gFAAgF;IAChF,QAAQ,CAAC,M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C,MAAM,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAA;CAAE,GACtD;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAC3B;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CAAE,CAAA;AAmChC,wBAAgB,YAAY,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,YAAY,GAAG,WAAW,CAoElF;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIhD;AAED,uEAAuE;AACvE,wBAAgB,WAAW,CACvB,KAAK,EAAE,WAAW,GACnB,SAAS;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAsB/D;AAED,8CAA8C;AAC9C,wBAAgB,YAAY,CACxB,KAAK,EAAE,WAAW,GACnB,SAAS;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAuC/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../src/memory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAQH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAKhD,wBAAsB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CA6J3E"}
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../src/memory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAQH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAKhD,wBAAsB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CA8J3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAoDH,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,sFAAsF;IACtF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,oEAAoE;IACpE,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,wEAAwE;IACxE,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAA;CAC3C;AAiTD,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CA0HzE"}
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAmDH,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,sFAAsF;IACtF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,oEAAoE;IACpE,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;IACtB,wEAAwE;IACxE,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,UAAU,CAAC,KAAK,CAAA;CAC3C;AAiTD,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAwHzE"}
package/dist/plugins.d.ts CHANGED
@@ -1,14 +1,33 @@
1
1
  /**
2
- * `plugins` — what an agent's `plugins:` actually loaded.
2
+ * `plugins` — install one, list what an agent loaded, or remove one.
3
3
  *
4
- * The surface decision 7.5 promised: `permissions` is advisory vocabulary, recorded and **surfaced**,
5
- * and a vocabulary nobody can read is a vocabulary nobody declares accurately. So this prints the
6
- * declarations beside what each plugin registered, which together answer the only two questions
7
- * worth asking of a plugin list — what did naming this buy me, and what did it ask for.
4
+ * ## Three questions, and why `list` answers two of them
8
5
  *
9
- * Built as a command rather than a line in `validate` because the answer is per agent and includes
10
- * timing: `plugin.loaded` fires during boot, before anything can subscribe, so the runtime carries
11
- * the report and this reads it.
6
+ * `plugins list` was the whole command for three phases: the surface decision 7.5 promised, since
7
+ * `permissions` is advisory vocabulary and a vocabulary nobody can read is one nobody declares
8
+ * accurately. It prints the declarations beside what each plugin registered, which together answer
9
+ * the only two questions worth asking of a plugin — what did naming this buy me, and what did it ask
10
+ * for. It is a command rather than a line in `validate` because `plugin.loaded` fires during boot,
11
+ * before anything can subscribe, so the runtime carries the report and this reads it.
12
+ *
13
+ * It now also prints **which lookup answered** for each entry. With three lookups — the binary's own
14
+ * registry, the plugin root, then a module import — "which code is loaded" stops being derivable from
15
+ * the manifest alone, and an installed plugin shadowed by a same-named bundled one would otherwise be
16
+ * invisible.
17
+ *
18
+ * ## Why `add` verifies before it writes
19
+ *
20
+ * A manifest naming a plugin that will not load **does not load**, so an `add` that wrote the entry
21
+ * and left a broken directory behind would brick the agent and report success — and `plugins remove`,
22
+ * the command that undoes it, would be reachable only by hand-editing the file. So the order is:
23
+ * fetch to a partial directory, refuse there, and only then rename into place and write the entry.
24
+ *
25
+ * The verification is `conformance()` from `@dispach/core/testing` — the same suite the plugin's own
26
+ * author runs, rather than a second definition of "well-formed" living here. It calls `setup` once
27
+ * into a void, so nothing is constructed and no credential is read. That does mean **reading the
28
+ * declarations runs the plugin's module scope**, which `add` says out loud: there is no way to learn
29
+ * what a plugin declares without loading it, because the declarations are its default export, and a
30
+ * second place to declare them would be a second thing to keep in step.
12
31
  */
13
32
  import type { PluginsOptions } from "#lib/schema";
14
33
  export declare function pluginsCommand(options: PluginsOptions): Promise<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAeH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,wBAAsB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAgE7E"}
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAoCH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAIjD,wBAAsB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAe7E"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * `restart` — reload one agent where it is running, or restart the service that runs them all.
3
+ *
4
+ * Two different sizes of the same verb. Named an agent, this asks the host holding it to rebuild
5
+ * that agent from disk (`POST /v1/agents/:id/reload`): the pairing written a moment ago, the token
6
+ * added to `.env`, the edited `agent.yaml` — picked up without touching the other agents in the
7
+ * process. Bare, it is `daemon restart`: the whole service, which is what you want when the *host*
8
+ * is the thing that changed (a new version, a bad state).
9
+ *
10
+ * An agent nothing is hosting is adopted rather than refused, when a host exists to adopt it:
11
+ * "restart this" on an agent that was never started means "make it run", and answering "it is not
12
+ * running" to that is correct and useless.
13
+ */
14
+ export interface RestartOptions {
15
+ /** Absent restarts the background service. */
16
+ readonly manifestPath?: string;
17
+ readonly store?: string;
18
+ readonly json?: boolean;
19
+ }
20
+ export declare function restartCommand(options: RestartOptions): Promise<number>;
21
+ //# sourceMappingURL=restart.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restart.d.ts","sourceRoot":"","sources":["../src/restart.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AASH,MAAM,WAAW,cAAc;IAC3B,8CAA8C;IAC9C,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,wBAAsB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAmE7E"}
package/dist/run.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAiDH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAiH7C,wBAAsB,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAwPrE;AA8HD;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;CAC1B"}
1
+ {"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAkDH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAiH7C,wBAAsB,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAyPrE;AA8HD;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,eAAe;IAC5B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B;;;;;;OAMG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;CAC1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"schedules.d.ts","sourceRoot":"","sources":["../src/schedules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AASH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AA0FnD,yFAAyF;AACzF,MAAM,WAAW,SAAS;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC5B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAC1B,QAAQ,EAAE,SAAS;IACf,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;CAClC,EAAE,EACH,UAAU,EAAE,SAAS,MAAM,EAAE,GAC9B,SAAS,SAAS,EAAE,CAuBtB;AAkCD,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,CAoGjF"}
1
+ {"version":3,"file":"schedules.d.ts","sourceRoot":"","sources":["../src/schedules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AASH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AA0FnD,yFAAyF;AACzF,MAAM,WAAW,SAAS;IACtB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC5B;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAC1B,QAAQ,EAAE,SAAS;IACf,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAA;CAClC,EAAE,EACH,UAAU,EAAE,SAAS,MAAM,EAAE,GAC9B,SAAS,SAAS,EAAE,CAuBtB;AAkCD,wBAAsB,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,CAAC,CAqGjF"}
@@ -1 +1 @@
1
- {"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../src/serve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AA+BH,MAAM,WAAW,YAAY;IACzB;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAA;IACzC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,iFAAiF;IACjF,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAC1B;AAcD,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAynBzE;AAqBD,0FAA0F;AAC1F,eAAO,MAAM,kBAAkB,IAAe,CAAA"}
1
+ {"version":3,"file":"serve.d.ts","sourceRoot":"","sources":["../src/serve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AA6BH,MAAM,WAAW,YAAY;IACzB;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAA;IACzC,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,iFAAiF;IACjF,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAC1B;AAcD,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAwrBzE;AAqBD,0FAA0F;AAC1F,eAAO,MAAM,kBAAkB,IAAe,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../src/sessions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AASH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAoIlD,wBAAsB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAqE/E"}
1
+ {"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../src/sessions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AASH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAoIlD,wBAAsB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAsE/E"}
@@ -1 +1 @@
1
- {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../src/skills.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAoDH;;;;;GAKG;AACH,eAAO,MAAM,cAAc,mEAAoE,CAAA;AAE/F,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,4FAA4F;IAC5F,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,iEAAiE;IACjE,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;IACzB;;;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AU,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;IAClE;;;;;;;OAOG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;IAClE;;;;;;;OAOG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,8EAA8E;IAC9E,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;CACtC;AAED,8DAA8D;AAC9D,MAAM,WAAW,cAAc;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,EAAE,OAAO,CAAA;IACpB,mCAAmC;IACnC,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;IACxB,8DAA8D;IAC9D,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CACvC;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAgE5D"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * `status` — one screen for "is it running, and is it working?"
3
+ *
4
+ * Three surfaces each answered a third of that: `daemon status` knows the service unit and the
5
+ * attention items in its log, `agents` knows what the sandbox holds and who serves it, and `/status`
6
+ * inside a session knows one agent's channels. Somebody asking the whole question had to know all
7
+ * three names. This prints the service report first (unchanged — it is the part with the verdicts),
8
+ * then every agent with its host, and for each hosted agent what its channels are doing — including
9
+ * a pairing code a host is offering, which is otherwise visible only to whoever ran `init`.
10
+ */
11
+ export interface StatusOptions {
12
+ readonly store?: string;
13
+ readonly json?: boolean;
14
+ }
15
+ export declare function statusCommand(options: StatusOptions): Promise<number>;
16
+ //# sourceMappingURL=status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../src/status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAQH,MAAM,WAAW,aAAa;IAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,wBAAsB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAiD3E"}
@@ -1 +1 @@
1
- {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAeH,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAC1B;AAUD,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAEzE"}
1
+ {"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,MAAM,WAAW,YAAY;IACzB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAC1B;AAUD,wBAAsB,YAAY,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAEzE"}
@@ -1 +1 @@
1
- {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../src/validate.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAsBH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD;;;;;;;;GAQG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CAkP/E;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAStE"}
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../src/validate.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAyBH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAElD;;;;;;;;GAQG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CA+Q/E;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAStE"}
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+ import{e}from"./index-byxrc961.js";import"./index-xhzmv4dh.js";import{Je}from"./index-4knb5vjm.js";import{ne,oe,H,fA}from"./index-y4c32wn7.js";import{ye}from"./index-ehzwdnc3.js";import"./index-fzmmhmk2.js";import{t,i}from"./index-2zye08c4.js";function p(n){if(n==="darwin")return{command:"open",args:[]};if(n==="linux")return{command:"xdg-open",args:[]};if(n==="win32")return{command:"cmd",args:["/c","start",""]};return}var l=5000;async function u(n,r={}){if(r.noOpen===!0)return{opened:!1,refusal:"asked-not-to"};if(r.isTty!==!0)return{opened:!1,refusal:"not-a-terminal"};let o=p(r.platform??process.platform);if(o===void 0)return{opened:!1,refusal:"no-opener"};let s=await(r.spawn??ye)({command:o.command,args:[...o.args,n],timeoutMs:l});if(s.notFound)return{opened:!1,refusal:"no-opener"};if(s.code!==0||s.signalled)return{opened:!1,refusal:"opener-failed",...s.stderr.trim()===""?{}:{detail:s.stderr.trim()}};return{opened:!0}}function f(n,r){if(r.opened)return`opening ${n}`;switch(r.refusal){case"asked-not-to":return n;case"not-a-terminal":return n;case"no-opener":return`no browser here — open this from a machine that has one:
3
+ ${n}`;default:return`could not open a browser${r.detail===void 0?"":` (${r.detail})`} — open this:
4
+ ${n}`}}async function h(n){let r=n.action??"run",o=n.manifestPath===void 0?void 0:H(n.manifestPath),a=o===void 0?await oe(n.store):await ne(o,n.store);if(a?.baseUrl===void 0||a.baseUrl==="")return process.stderr.write(`no ${e.name} server is running${o===void 0?"":` for "${o}"`}.
5
+ hint: ${e.slug} serve${o===void 0?"":` ${o}`} starts one in this terminal, and ${e.slug} daemon install keeps it running.
6
+ `),i;let s=Je(a.baseUrl,o);if(r==="url")return process.stdout.write(`${s}
7
+ `),t;let d=await u(s,{isTty:process.stdout.isTTY===!0,...n.noOpen===!0?{noOpen:!0}:{}});if(process.stdout.write(`${f(s,d)}
8
+ `),!d.opened&&n.json===!0)process.stdout.write(`${JSON.stringify({url:s,opened:!1,why:d.refusal})}
9
+ `);if(d.opened&&fA(n.manifestPath??"")!==void 0)process.stdout.write(` if the page asks for a credential, mint one:
10
+ ${e.slug} credential create --label 'my browser'
11
+ `);return t}export{h as webCommand};
12
+
13
+ //# debugId=DD90CD90341F479264756E2164756E21
14
+ //# sourceMappingURL=web-923c7f5e.js.map
@@ -3,9 +3,9 @@
3
3
  "sources": ["../src/lib/browser.ts", "../src/web.ts"],
4
4
  "sourcesContent": [
5
5
  "/**\n * Opening a URL in whatever the operating system thinks a browser is.\n *\n * Nothing in this repo opened a browser before, and the temptation is a dependency — there are\n * several, and every one of them is this file plus a matrix of platforms nobody here runs. What it\n * actually takes is one command per platform and an honest answer when there is no browser at all,\n * which is the case that matters most: **a container has none**, and the container is where this\n * runtime is deployed. So \"could not open\" is a first-class outcome with the URL printed beside it,\n * not an error.\n *\n * Three properties, each of which was a decision:\n *\n * **It never blocks.** `open`/`xdg-open` hand off to a browser and exit, but `xdg-open` on a box\n * with no desktop can sit there — and a command that hangs while claiming to have opened a page is\n * worse than one that prints a link. Every call is bounded.\n *\n * **It never fails the command.** The URL is the deliverable; the browser is a convenience. A\n * non-zero exit from `open` means the operator gets a link to click instead, which is exactly what\n * they would have got from `web url`.\n *\n * **It refuses without a TTY.** A piped or scripted run must not sprout a browser window on\n * somebody's screen — and in CI it would open nothing and waste a timeout finding out.\n */\n\nimport { spawnCaptureAsync } from \"#lib/spawn\"\n\n/** Why a URL was not opened. Absent means it was. */\nexport type OpenRefusal =\n /** No terminal, so nothing asked for a window. */\n | \"not-a-terminal\"\n /** `--no-open`. */\n | \"asked-not-to\"\n /** No opener on this platform — a container, a bare server, an unrecognised OS. */\n | \"no-opener\"\n /** There is an opener and it said no. */\n | \"opener-failed\"\n\nexport interface OpenOutcome {\n readonly opened: boolean\n readonly refusal?: OpenRefusal\n /** What the opener said, when it said something worth repeating. */\n readonly detail?: string\n}\n\n/**\n * The command that opens a URL, per platform.\n *\n * `xdg-open` is the freedesktop standard and is what Linux desktops implement; a *server* has none,\n * which is the honest reason this can return nothing. Windows needs the `\"\"` title argument before\n * the URL, because `start` reads a first quoted argument as the window title and would otherwise\n * open a console named after the address.\n */\nfunction openerFor(platform: string): { command: string; args: readonly string[] } | undefined {\n if (platform === \"darwin\") return { command: \"open\", args: [] }\n if (platform === \"linux\") return { command: \"xdg-open\", args: [] }\n if (platform === \"win32\") return { command: \"cmd\", args: [\"/c\", \"start\", \"\"] }\n return undefined\n}\n\n/** Bounded: `xdg-open` on a box with no desktop session can sit indefinitely. */\nconst OPEN_TIMEOUT_MS = 5_000\n\nexport async function openInBrowser(\n url: string,\n options: {\n readonly platform?: string\n readonly isTty?: boolean\n readonly noOpen?: boolean\n readonly spawn?: typeof spawnCaptureAsync\n } = {},\n): Promise<OpenOutcome> {\n if (options.noOpen === true) return { opened: false, refusal: \"asked-not-to\" }\n if (options.isTty !== true) return { opened: false, refusal: \"not-a-terminal\" }\n\n const opener = openerFor(options.platform ?? process.platform)\n if (opener === undefined) return { opened: false, refusal: \"no-opener\" }\n\n const run = options.spawn ?? spawnCaptureAsync\n const result = await run({\n command: opener.command,\n args: [...opener.args, url],\n timeoutMs: OPEN_TIMEOUT_MS,\n })\n\n // `notFound` is its own answer: `xdg-open` missing means this is a server or a container, which\n // is a fact about the deployment rather than a failure to report as one.\n if (result.notFound) return { opened: false, refusal: \"no-opener\" }\n if (result.code !== 0 || result.signalled) {\n return {\n opened: false,\n refusal: \"opener-failed\",\n ...(result.stderr.trim() === \"\" ? {} : { detail: result.stderr.trim() }),\n }\n }\n return { opened: true }\n}\n\n/**\n * What to print. One sentence, and it always ends with the URL.\n *\n * The URL is the deliverable in every branch — including success, because a browser that opened\n * behind another window looks like nothing happened, and because a terminal that prints the link is\n * one somebody can copy out of over SSH.\n */\nexport function openMessage(url: string, outcome: OpenOutcome): string {\n if (outcome.opened) return `opening ${url}`\n switch (outcome.refusal) {\n case \"asked-not-to\":\n return url\n case \"not-a-terminal\":\n return url\n case \"no-opener\":\n // Named rather than apologised for: this is the ordinary state inside a container, and\n // an operator reading \"failed to open a browser\" would go looking for a fault.\n return `no browser here — open this from a machine that has one:\\n ${url}`\n default:\n return `could not open a browser${outcome.detail === undefined ? \"\" : ` (${outcome.detail})`} — open this:\\n ${url}`\n }\n}\n",
6
- "/**\n * The `web` command — the browser as a second view onto the same running agent.\n *\n * The terminal twin of 17.1, and it exists for the same reason: the server owns the agent, and a\n * front end attaches. `run` opens a terminal onto a host; this opens a browser onto the same one,\n * at the same address, holding the same conversation. Neither starts or stops anything.\n *\n * ## Why this is three verbs and not one\n *\n * `run` is what a person types. It needs a host, so it declares `needsServer` and the first-run\n * bootstrap gets one. `open` assumes a host is already there and says so when it is not — the\n * difference matters on a machine where starting a service is not wanted. `url` prints and opens\n * nothing, which is the only form that works in a pipe, in CI, and over SSH.\n *\n * ## The container\n *\n * There is no browser in a container and there never will be, so `no-opener` is an ordinary answer\n * rather than a failure: the URL is printed and the operator opens it from the machine whose port\n * is published. This is the deployment target, so it is the case the wording is written for.\n */\n\nimport { BRAND } from \"@dispach/core\"\nimport { browsableHost } from \"@dispach/server\"\nimport { openInBrowser, openMessage } from \"#lib/browser\"\nimport { EXIT_FAILURE, EXIT_OK } from \"#lib/const\"\nimport { agentIdFor, anyLiveHost, hostToken, liveHostOf } from \"#lib/lifecycle\"\nimport type { WebOptions } from \"#lib/schema\"\n\n/**\n * Where the page lives, with the agent it should open.\n *\n * `?agent=` rather than `/agents/milo` for the reason `04-SPEC-WIRE.md` gives for having no\n * catch-all: a path needs a route, a `WEB_ASSETS` entry, a spec row and a `spec.test.ts` change,\n * and a wildcard would make `/v1/agentss` answer `200 text/html`. A query parameter needs none of\n * them, and the page reads it.\n *\n * No credential is attached. A claim is minted at boot and printed by `serve`, deliberately once —\n * a fresh one per invocation would leave a standing credential in a log — and a durable key in an\n * address bar lands in history, a bookmark and whatever syncs them. The page asks when it has to.\n */\nexport function webUrl(baseUrl: string, agentId?: string): string {\n const url = new URL(baseUrl)\n url.pathname = \"/\"\n /**\n * A bind is not an address, and the container is where that stops being theoretical.\n *\n * The lease publishes what was actually bound, which inside the image is `0.0.0.0` — every\n * interface, and a link no browser can open. `browsableHost` is the same substitution\n * `claimUrl` has always made, shared rather than copied a third time. Found by running this\n * *in the container*: on a laptop `serve` binds `127.0.0.1` and the substitution never fires,\n * so the defect is invisible everywhere except where it is deployed.\n */\n url.hostname = browsableHost(url.hostname)\n if (agentId !== undefined && agentId !== \"\") url.searchParams.set(\"agent\", agentId)\n return url.toString()\n}\n\nexport async function webCommand(options: WebOptions): Promise<number> {\n const action = options.action ?? \"run\"\n const agentId =\n options.manifestPath === undefined ? undefined : agentIdFor(options.manifestPath)\n\n /**\n * Which host, and the same two-part answer `stop` and `run` use.\n *\n * A lease says who is serving an agent; its `base_url` says where, and is published after the\n * bind rather than derived from a manifest — `--port 0` means the port does not exist until the\n * socket does. With no agent named, any live host will do: the page lists what it hosts.\n */\n const lease =\n agentId === undefined\n ? await anyLiveHost(options.store)\n : await liveHostOf(agentId, options.store)\n\n if (lease?.baseUrl === undefined || lease.baseUrl === \"\") {\n process.stderr.write(\n `no ${BRAND.name} server is running${agentId === undefined ? \"\" : ` for \"${agentId}\"`}.\\n` +\n ` hint: ${BRAND.slug} serve${agentId === undefined ? \"\" : ` ${agentId}`} starts one in this terminal, and ${BRAND.slug} daemon install keeps it running.\\n`,\n )\n return EXIT_FAILURE\n }\n\n const url = webUrl(lease.baseUrl, agentId)\n if (action === \"url\") {\n // Only the URL, on stdout, with nothing else — this is the form a script reads.\n process.stdout.write(`${url}\\n`)\n return EXIT_OK\n }\n\n const outcome = await openInBrowser(url, {\n isTty: process.stdout.isTTY === true,\n ...(options.noOpen === true ? { noOpen: true } : {}),\n })\n process.stdout.write(`${openMessage(url, outcome)}\\n`)\n\n // A browser that did not open is not a failed command: the URL is the deliverable and it has\n // been printed. `web url` exists for the caller that wants only that and no sentence around it.\n if (!outcome.opened && options.json === true) {\n process.stdout.write(`${JSON.stringify({ url, opened: false, why: outcome.refusal })}\\n`)\n }\n\n // The credential the page may ask for, named where somebody is already looking — and only when\n // this server has one to demand. A token-less loopback server needs nothing, and telling its\n // operator to mint a key would send them after a problem they do not have.\n if (outcome.opened && hostToken(options.manifestPath ?? \"\") !== undefined) {\n process.stdout.write(\n ` if the page asks for a credential, mint one:\\n` +\n ` ${BRAND.slug} keys new --label 'my browser'\\n`,\n )\n }\n return EXIT_OK\n}\n"
6
+ "/**\n * The `web` command — the browser as a second view onto the same running agent.\n *\n * The terminal twin of 17.1, and it exists for the same reason: the server owns the agent, and a\n * front end attaches. `run` opens a terminal onto a host; this opens a browser onto the same one,\n * at the same address, holding the same conversation. Neither starts or stops anything.\n *\n * ## Why this is three verbs and not one\n *\n * `run` is what a person types. It needs a host, so it declares `needsServer` and the first-run\n * bootstrap gets one. `open` assumes a host is already there and says so when it is not — the\n * difference matters on a machine where starting a service is not wanted. `url` prints and opens\n * nothing, which is the only form that works in a pipe, in CI, and over SSH.\n *\n * ## The container\n *\n * There is no browser in a container and there never will be, so `no-opener` is an ordinary answer\n * rather than a failure: the URL is printed and the operator opens it from the machine whose port\n * is published. This is the deployment target, so it is the case the wording is written for.\n */\n\nimport { BRAND } from \"@dispach/core\"\nimport { openInBrowser, openMessage } from \"#lib/browser\"\nimport { EXIT_FAILURE, EXIT_OK } from \"#lib/const\"\nimport { agentIdFor, anyLiveHost, hostToken, liveHostOf } from \"#lib/lifecycle\"\nimport type { WebOptions } from \"#lib/schema\"\nimport { webUrl } from \"#lib/web-url\"\n\nexport { webUrl }\n\nexport async function webCommand(options: WebOptions): Promise<number> {\n const action = options.action ?? \"run\"\n const agentId =\n options.manifestPath === undefined ? undefined : agentIdFor(options.manifestPath)\n\n /**\n * Which host, and the same two-part answer `stop` and `run` use.\n *\n * A lease says who is serving an agent; its `base_url` says where, and is published after the\n * bind rather than derived from a manifest — `--port 0` means the port does not exist until the\n * socket does. With no agent named, any live host will do: the page lists what it hosts.\n */\n const lease =\n agentId === undefined\n ? await anyLiveHost(options.store)\n : await liveHostOf(agentId, options.store)\n\n if (lease?.baseUrl === undefined || lease.baseUrl === \"\") {\n process.stderr.write(\n `no ${BRAND.name} server is running${agentId === undefined ? \"\" : ` for \"${agentId}\"`}.\\n` +\n ` hint: ${BRAND.slug} serve${agentId === undefined ? \"\" : ` ${agentId}`} starts one in this terminal, and ${BRAND.slug} daemon install keeps it running.\\n`,\n )\n return EXIT_FAILURE\n }\n\n const url = webUrl(lease.baseUrl, agentId)\n if (action === \"url\") {\n // Only the URL, on stdout, with nothing else — this is the form a script reads.\n process.stdout.write(`${url}\\n`)\n return EXIT_OK\n }\n\n const outcome = await openInBrowser(url, {\n isTty: process.stdout.isTTY === true,\n ...(options.noOpen === true ? { noOpen: true } : {}),\n })\n process.stdout.write(`${openMessage(url, outcome)}\\n`)\n\n // A browser that did not open is not a failed command: the URL is the deliverable and it has\n // been printed. `web url` exists for the caller that wants only that and no sentence around it.\n if (!outcome.opened && options.json === true) {\n process.stdout.write(`${JSON.stringify({ url, opened: false, why: outcome.refusal })}\\n`)\n }\n\n // The credential the page may ask for, named where somebody is already looking — and only when\n // this server has one to demand. A token-less loopback server needs nothing, and telling its\n // operator to mint a key would send them after a problem they do not have.\n if (outcome.opened && hostToken(options.manifestPath ?? \"\") !== undefined) {\n process.stdout.write(\n ` if the page asks for a credential, mint one:\\n` +\n ` ${BRAND.slug} credential create --label 'my browser'\\n`,\n )\n }\n return EXIT_OK\n}\n"
7
7
  ],
8
- "mappings": ";qPAoDA,SAAS,CAAS,CAAC,EAA4E,CAC3F,GAAI,IAAa,SAAU,MAAO,CAAE,QAAS,OAAQ,KAAM,CAAC,CAAE,EAC9D,GAAI,IAAa,QAAS,MAAO,CAAE,QAAS,WAAY,KAAM,CAAC,CAAE,EACjE,GAAI,IAAa,QAAS,MAAO,CAAE,QAAS,MAAO,KAAM,CAAC,KAAM,QAAS,EAAE,CAAE,EAC7E,OAIJ,IAAM,EAAkB,KAExB,eAAsB,CAAa,CAC/B,EACA,EAKI,CAAC,EACe,CACpB,GAAI,EAAQ,SAAW,GAAM,MAAO,CAAE,OAAQ,GAAO,QAAS,cAAe,EAC7E,GAAI,EAAQ,QAAU,GAAM,MAAO,CAAE,OAAQ,GAAO,QAAS,gBAAiB,EAE9E,IAAM,EAAS,EAAU,EAAQ,UAAY,QAAQ,QAAQ,EAC7D,GAAI,IAAW,OAAW,MAAO,CAAE,OAAQ,GAAO,QAAS,WAAY,EAGvE,IAAM,EAAS,MADH,EAAQ,OAAS,IACJ,CACrB,QAAS,EAAO,QAChB,KAAM,CAAC,GAAG,EAAO,KAAM,CAAG,EAC1B,UAAW,CACf,CAAC,EAID,GAAI,EAAO,SAAU,MAAO,CAAE,OAAQ,GAAO,QAAS,WAAY,EAClE,GAAI,EAAO,OAAS,GAAK,EAAO,UAC5B,MAAO,CACH,OAAQ,GACR,QAAS,mBACL,EAAO,OAAO,KAAK,IAAM,GAAK,CAAC,EAAI,CAAE,OAAQ,EAAO,OAAO,KAAK,CAAE,CAC1E,EAEJ,MAAO,CAAE,OAAQ,EAAK,EAUnB,SAAS,CAAW,CAAC,EAAa,EAA8B,CACnE,GAAI,EAAQ,OAAQ,MAAO,WAAW,IACtC,OAAQ,EAAQ,aACP,eACD,OAAO,MACN,iBACD,OA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. This is the deployment target, so it is the case the wording is written for.
20
20
  */
21
21
  import type { WebOptions } from "#lib/schema";
22
- /**
23
- * Where the page lives, with the agent it should open.
24
- *
25
- * `?agent=` rather than `/agents/milo` for the reason `04-SPEC-WIRE.md` gives for having no
26
- * catch-all: a path needs a route, a `WEB_ASSETS` entry, a spec row and a `spec.test.ts` change,
27
- * and a wildcard would make `/v1/agentss` answer `200 text/html`. A query parameter needs none of
28
- * them, and the page reads it.
29
- *
30
- * No credential is attached. A claim is minted at boot and printed by `serve`, deliberately once —
31
- * a fresh one per invocation would leave a standing credential in a log — and a durable key in an
32
- * address bar lands in history, a bookmark and whatever syncs them. The page asks when it has to.
33
- */
34
- export declare function webUrl(baseUrl: string, agentId?: string): string;
22
+ import { webUrl } from "#lib/web-url";
23
+ export { webUrl };
35
24
  export declare function webCommand(options: WebOptions): Promise<number>;
36
25
  //# sourceMappingURL=web.d.ts.map
package/dist/web.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAOH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C;;;;;;;;;;;GAWG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAehE;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAsDrE"}
1
+ {"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAMH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAErC,OAAO,EAAE,MAAM,EAAE,CAAA;AAEjB,wBAAsB,UAAU,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAsDrE"}
package/dist/wire.js CHANGED
@@ -1,12 +1,12 @@
1
- var q="What I already know, carried from before this conversation and kept current. "+"Not a transcript — these are standing facts about the person I work for and my own working notes. "+"If they ask what I know or remember about them, this is the answer.";var R=["runtime.ready","store.ready","runtime.stopping","agent.loaded","agent.disposed","agent.warning","plugin.loaded","plugin.slow","approval.requested","approval.resolved","handoff.start","handoff.result","turn.start","context.assembled","context.dropped","context.pressure","compaction.stage","context.reset","phase.changed","model.call","model.chunk","model.retry","model.result","tool.call","tool.result","tool.gated","tool.repair","tools.refreshed","agent.channel.status","agent.channel.error","agent.channel.rejected","delivery.sent","delivery.retry","delivery.failed","delivery.uncertain","runtime.released","schedules.reconciled","schedule.fired","schedule.skipped","schedule.deferred","schedule.error","turn.end","error"],c=(e)=>String.fromCharCode(e),g=c(27),C=c(7),G=new RegExp(`${g}\\[[0-?]*[ -/]*[@-~]`,"g"),V=new RegExp(`${g}\\][\\s\\S]*?(?:${C}|${g}\\\\|$)`,"g"),z=new RegExp(`${g}[P^_X][\\s\\S]*?(?:${g}\\\\|${C}|$)`,"g"),Y=new RegExp(`${g}[@-Z\\\\-_0-9=><]?`,"g"),Z=new RegExp(`[${c(128)}-${c(159)}]`,"g"),X=new RegExp(`[${c(0)}-${c(8)}${c(11)}${c(12)}${c(14)}-${c(31)}${c(127)}]`,"g");var L=/\r\n\r\n|\n\n|\r\r/;function T(e){let t=[],o,n,a;for(let l of e.split(/\r\n|\n|\r/)){if(l===""||l.startsWith(":"))continue;let r=l.indexOf(":"),u=r===-1?l:l.slice(0,r),f=r===-1?"":l.slice(r+1);if(f.startsWith(" "))f=f.slice(1);switch(u){case"data":t.push(f);break;case"event":o=f;break;case"id":n=f;break;case"retry":{let m=Number.parseInt(f,10);if(Number.isFinite(m))a=m;break}default:break}}if(t.length===0&&o===void 0)return;return{...o===void 0?{}:{event:o},data:t.join(`
2
- `),...n===void 0?{}:{id:n},...a===void 0?{}:{retry:a}}}async function*M(e){let t=new TextDecoder,o="";for await(let n of e){o+=typeof n==="string"?n:t.decode(n,{stream:!0});while(!0){let a=L.exec(o);if(a===null)break;let l=o.slice(0,a.index);o=o.slice(a.index+a[0].length);let r=T(l);if(r!==void 0)yield r}}if(o+=t.decode(),o.trim()!==""){let n=T(o);if(n!==void 0)yield n}}function j(){return{push:(e)=>e,endStep:()=>"",end:()=>""}}function D(e){return e!=="final"&&e!=="stopped"}function F(e,t={}){switch(e){case"final":return;case"max_steps":return`stopped${t.steps===void 0?"":` after ${t.steps} steps`} without finishing — say "continue" to carry on, or raise limits.maxSteps`;case"no_progress":return'stopped: the same tool call was repeated with no change — say "continue" with more to go on, or check whether that tool is telling it anything useful';case"truncated":return"the reply was cut off at the output limit — raise model.<role>.maxTokens, or ask for less";case"timeout":return`timed out${t.durationMs===void 0?"":` after ${t.durationMs} ms`} — raise limits.turnTimeoutMs`;case"stopped":return t.cancelledAfterMs===void 0?"cancelled":`cancelled after ${t.cancelledAfterMs.toFixed(0)} ms`;case"error":return}}var O="<<<",x=">>>",y=/^\s*(?:[-*+]\s+|\d+[.)]\s+)?<?\s*action\s*:\s*(.+?)\s*>?\s*$/i,K=/^\s*(?:[-*+]\s+|\d+[.)]\s+)?([A-Za-z_][\w.-]*?)\s*:\s*(.*)$/,v=/^\s*`{3,}\s*[\w+-]*\s*$/,S=/^\s*end\s*$/i,U=/^\s*<\s*action\s*>\s*$/i,N=/^\s*<\s*\/\s*action\s*>\s*$/i,P=/^\s*<\/?\s*[A-Za-z_][\w.:-]*\s*\/?\s*>\s*$/;function k(e){return e.replace(/^[`'"*<]+/,"").replace(/[`'"*>]+$/,"").replace(/[.,;:]+$/,"").trim()}function A(e,t,o){let n=e.fields.get(t);if(n===void 0)e.fields.set(t,[o]);else n.push(o)}function I(e){if(e.block===void 0||e.heredocKey===void 0)return;let t=[...e.heredocLines];if(t[t.length-1]==="")t.pop();A(e.block,e.heredocKey,t.join(`
3
- `)),e.block.wrapped.add(e.heredocKey),e.heredocKey=void 0,e.heredocLines=[]}function h(e){if(I(e),e.block!==void 0)e.blocks.push(e.block);e.block=void 0,e.openKey=void 0,e.awaitingSlug=!1}function _(){return{block:void 0,openKey:void 0,heredocKey:void 0,heredocLines:[],justClosed:!1,awaitingSlug:!1,text:[],blocks:[]}}function W(e,t,o){let n=t.trim();if(e.heredocKey!==void 0){if(n===x){I(e);return}if(S.test(n)){h(e),e.justClosed=!0;return}if(y.test(t)){h(e);let r=y.exec(t),u=k(r?.[1]??"");if(u!=="")e.block={slug:u,fields:new Map,wrapped:new Set};return}e.heredocLines.push(t);return}let a=y.exec(t);if(a!==null){let r=k(a[1]??"");if(h(e),r==="")return;e.block={slug:r,fields:new Map,wrapped:new Set};return}if(U.test(t)){h(e),e.awaitingSlug=!0;return}if(e.awaitingSlug){if(n==="")return;if(N.test(t)){e.awaitingSlug=!1;return}let r=k(n);if(e.awaitingSlug=!1,r!=="")e.block={slug:r,fields:new Map,wrapped:new Set};return}if(N.test(t)){if(e.block!==void 0)h(e),e.justClosed=!0;return}if(P.test(t))return;if(e.block===void 0){if(v.test(t)&&(e.justClosed||o())){e.justClosed=!1;return}if(e.text.push(t),n!=="")e.justClosed=!1;return}if(n===""){e.openKey=void 0;return}if(S.test(n)){h(e),e.justClosed=!0;return}if(v.test(t))return;let l=K.exec(t);if(l!==null){let r=(l[1]??"").trim(),u=(l[2]??"").trim();if(u===O)e.heredocKey=r,e.heredocLines=[],e.openKey=void 0;else A(e.block,r,u),e.openKey=r;return}if(e.openKey!==void 0){let r=e.block.fields.get(e.openKey),u=r?.[r.length-1];if(r!==void 0&&u!==void 0)r[r.length-1]=u===""?n:`${u}
4
- ${n}`;return}h(e),e.text.push(t)}function H(e){if(/^\s*(?:[-*+]|\d+[.)]?)?\s*$/.test(e))return!0;let t=e.replace(/^\s*(?:[-*+]\s+|\d+[.)]\s+)?/,"").toLowerCase(),o=t.startsWith("<")?t.slice(1):t;if("action:".startsWith(o)||o.startsWith("action:"))return!0;if(/^<\/?$/.test(t)||/^<\/?[a-z_][\w.:-]*>?$/.test(t))return!0;return/^`{1,3}[\w+-]*$/.test(t)}function b(e){return e.endsWith("\r")?e.slice(0,-1):e}function B(){let e=_(),t="",o=0,n,a="",l=!1,r=(s)=>{if(s==="")return"";if(s.trim()==="")return a+=s,"";let i=a+s;if(a="",l)return i;return l=!0,i.replace(/^\s+/,"")},u=(s,i)=>{let d=e.text.length;return W(e,s,()=>i!==void 0&&y.test(i)),e.text.length>d?s:void 0},f=(s,i,d)=>{let p=u(s,i);if(p===void 0)return"";return r(p.slice(d))+r(`
5
- `)},m=(s)=>{if(n===void 0)return"";let i=n;return n=void 0,f(i,s,0)};return{push(s){let i="";t+=s;let d=t.indexOf(`
6
- `);while(d!==-1){let w=b(t.slice(0,d));if(t=t.slice(d+1),i+=m(w),e.block===void 0&&v.test(w)&&!e.justClosed)n=w;else i+=f(w,void 0,o);o=0,d=t.indexOf(`
7
- `)}let p=b(t);if(e.block===void 0&&!e.awaitingSlug&&n===void 0&&!H(p))i+=r(p.slice(o)),o=p.length;return i},endStep(){let s=E();return a=`
1
+ var q="What I already know, carried from before this conversation and kept current. "+"Not a transcript — these are standing facts about the person I work for and my own working notes. "+"If they ask what I know or remember about them, this is the answer.";var R=["runtime.ready","store.ready","runtime.stopping","agent.loaded","agent.disposed","agent.warning","plugin.loaded","plugin.slow","approval.requested","approval.resolved","handoff.start","handoff.result","turn.start","context.assembled","context.dropped","context.pressure","compaction.stage","context.reset","phase.changed","model.call","model.chunk","model.retry","model.result","tool.call","tool.result","tool.gated","tool.repair","tools.refreshed","agent.channel.status","agent.channel.error","agent.channel.rejected","delivery.sent","delivery.retry","delivery.failed","delivery.uncertain","runtime.released","schedules.reconciled","schedule.fired","schedule.skipped","schedule.deferred","schedule.error","turn.end","error"],c=(e)=>String.fromCharCode(e),g=c(27),C=c(7),G=new RegExp(`${g}\\[[0-?]*[ -/]*[@-~]`,"g"),V=new RegExp(`${g}\\][\\s\\S]*?(?:${C}|${g}\\\\|$)`,"g"),z=new RegExp(`${g}[P^_X][\\s\\S]*?(?:${g}\\\\|${C}|$)`,"g"),Y=new RegExp(`${g}[@-Z\\\\-_0-9=><]?`,"g"),Z=new RegExp(`[${c(128)}-${c(159)}]`,"g"),X=new RegExp(`[${c(0)}-${c(8)}${c(11)}${c(12)}${c(14)}-${c(31)}${c(127)}]`,"g");var L=/\r\n\r\n|\n\n|\r\r/;function S(e){let n=[],o,t,a;for(let l of e.split(/\r\n|\n|\r/)){if(l===""||l.startsWith(":"))continue;let r=l.indexOf(":"),d=r===-1?l:l.slice(0,r),f=r===-1?"":l.slice(r+1);if(f.startsWith(" "))f=f.slice(1);switch(d){case"data":n.push(f);break;case"event":o=f;break;case"id":t=f;break;case"retry":{let m=Number.parseInt(f,10);if(Number.isFinite(m))a=m;break}default:break}}if(n.length===0&&o===void 0)return;return{...o===void 0?{}:{event:o},data:n.join(`
2
+ `),...t===void 0?{}:{id:t},...a===void 0?{}:{retry:a}}}async function*K(e){let n=new TextDecoder,o="";for await(let t of e){o+=typeof t==="string"?t:n.decode(t,{stream:!0});while(!0){let a=L.exec(o);if(a===null)break;let l=o.slice(0,a.index);o=o.slice(a.index+a[0].length);let r=S(l);if(r!==void 0)yield r}}if(o+=n.decode(),o.trim()!==""){let t=S(o);if(t!==void 0)yield t}}function M(){return{push:(e)=>e,endStep:()=>"",end:()=>""}}function j(e){return e!=="final"&&e!=="stopped"}function P(e,n={}){switch(e){case"final":return;case"max_steps":return`stopped${n.steps===void 0?"":` after ${n.steps} steps`} without finishing — say "continue" to carry on, or raise limits.maxSteps`;case"no_progress":return'stopped: the same tool call was repeated with no change — say "continue" with more to go on, or check whether that tool is telling it anything useful';case"truncated":return"the reply was cut off at the output limit — raise model.<role>.maxTokens, or ask for less";case"timeout":return`timed out${n.durationMs===void 0?"":` after ${n.durationMs} ms`} — raise limits.turnTimeoutMs`;case"stopped":return n.cancelledAfterMs===void 0?"cancelled":`cancelled after ${n.cancelledAfterMs.toFixed(0)} ms`;case"error":return}}var O="<<<",x=">>>",w=/^\s*(?:[-*+]\s+|\d+[.)]\s+)?<?\s*action\s*:\s*(.+?)\s*>?\s*$/i,D=/^\s*(?:[-*+]\s+|\d+[.)]\s+)?([A-Za-z_][\w.-]*?)\s*:\s*(.*)$/,E=/^\s*`{3,}\s*[\w+-]*\s*$/,v=/^\s*end\s*$/i,F=/^\s*<\s*action\s*>\s*$/i,N=/^\s*<\s*\/\s*action\s*>\s*$/i,U=/^\s*<\/?\s*[A-Za-z_][\w.:-]*\s*\/?\s*>\s*$/;function k(e){return e.replace(/^[`'"*<]+/,"").replace(/[`'"*>]+$/,"").replace(/[.,;:]+$/,"").trim()}function A(e,n,o){let t=e.fields.get(n);if(t===void 0)e.fields.set(n,[o]);else t.push(o)}function I(e){if(e.block===void 0||e.heredocKey===void 0)return;let n=[...e.heredocLines];if(n[n.length-1]==="")n.pop();A(e.block,e.heredocKey,n.join(`
3
+ `)),e.block.wrapped.add(e.heredocKey),e.heredocKey=void 0,e.heredocLines=[]}function h(e){if(I(e),e.block!==void 0)e.blocks.push(e.block);e.block=void 0,e.openKey=void 0,e.awaitingSlug=!1}function _(){return{block:void 0,openKey:void 0,severedKey:void 0,severedPending:void 0,heredocKey:void 0,heredocLines:[],justClosed:!1,awaitingSlug:!1,text:[],blocks:[]}}function W(e,n,o){let t=n.trim();if(e.heredocKey!==void 0){if(t===x){I(e);return}if(v.test(t)){h(e),e.justClosed=!0;return}if(w.test(n)){h(e);let r=w.exec(n),d=k(r?.[1]??"");if(d!=="")e.block={slug:d,fields:new Map,wrapped:new Set,severed:new Set};return}e.heredocLines.push(n);return}let a=w.exec(n);if(a!==null){let r=k(a[1]??"");if(h(e),r==="")return;e.block={slug:r,fields:new Map,wrapped:new Set,severed:new Set};return}if(F.test(n)){h(e),e.awaitingSlug=!0;return}if(e.awaitingSlug){if(t==="")return;if(N.test(n)){e.awaitingSlug=!1;return}let r=k(t);if(e.awaitingSlug=!1,r!=="")e.block={slug:r,fields:new Map,wrapped:new Set,severed:new Set};return}if(N.test(n)){if(e.block!==void 0)h(e),e.justClosed=!0;return}if(U.test(n))return;if(e.block===void 0){if(E.test(n)&&(e.justClosed||o())){e.justClosed=!1;return}if(v.test(t)&&e.severedPending!==void 0){e.severedPending.block.severed.add(e.severedPending.key),e.severedPending=void 0;return}if(w.test(n))e.severedPending=void 0;if(e.text.push(n),t!=="")e.justClosed=!1;return}if(t===""){if(e.openKey!==void 0)e.severedKey=e.openKey;e.openKey=void 0;return}if(v.test(t)){e.severedKey=void 0,h(e),e.justClosed=!0;return}if(E.test(n))return;let l=D.exec(n);if(l!==null){let r=(l[1]??"").trim(),d=(l[2]??"").trim();if(e.severedKey=void 0,d===O)e.heredocKey=r,e.heredocLines=[],e.openKey=void 0;else A(e.block,r,d),e.openKey=r;return}if(e.openKey!==void 0){let r=e.block.fields.get(e.openKey),d=r?.[r.length-1];if(r!==void 0&&d!==void 0)r[r.length-1]=d===""?t:`${d}
4
+ ${t}`;return}if(e.severedKey!==void 0)e.severedPending={block:e.block,key:e.severedKey},e.severedKey=void 0;h(e),e.text.push(n)}function H(e){if(/^\s*(?:[-*+]|\d+[.)]?)?\s*$/.test(e))return!0;let n=e.replace(/^\s*(?:[-*+]\s+|\d+[.)]\s+)?/,"").toLowerCase(),o=n.startsWith("<")?n.slice(1):n;if("action:".startsWith(o)||o.startsWith("action:"))return!0;if(/^<\/?$/.test(n)||/^<\/?[a-z_][\w.:-]*>?$/.test(n))return!0;return/^`{1,3}[\w+-]*$/.test(n)}function b(e){return e.endsWith("\r")?e.slice(0,-1):e}function B(){let e=_(),n="",o=0,t,a="",l=!1,r=(i)=>{if(i==="")return"";if(i.trim()==="")return a+=i,"";let s=a+i;if(a="",l)return s;return l=!0,s.replace(/^\s+/,"")},d=(i,s)=>{let u=e.text.length;return W(e,i,()=>s!==void 0&&w.test(s)),e.text.length>u?i:void 0},f=(i,s,u)=>{let p=d(i,s);if(p===void 0)return"";return r(p.slice(u))+r(`
5
+ `)},m=(i)=>{if(t===void 0)return"";let s=t;return t=void 0,f(s,i,0)};return{push(i){let s="";n+=i;let u=n.indexOf(`
6
+ `);while(u!==-1){let y=b(n.slice(0,u));if(n=n.slice(u+1),s+=m(y),e.block===void 0&&E.test(y)&&!e.justClosed)t=y;else s+=f(y,void 0,o);o=0,u=n.indexOf(`
7
+ `)}let p=b(n);if(e.block===void 0&&!e.awaitingSlug&&t===void 0&&!H(p))s+=r(p.slice(o)),o=p.length;return s},endStep(){let i=T();return a=`
8
8
 
9
- `,e=_(),s},end:E};function E(){let s=m(void 0),i=b(t);if(i!==""){let d=u(i,void 0);if(d!==void 0)s+=r(d.slice(o))}return t="",o=0,n=void 0,s}}var J=`# Tools
9
+ `,e=_(),i},end:T};function T(){let i=m(void 0),s=b(n);if(s!==""){let u=d(s,void 0);if(u!==void 0)i+=r(u.slice(o))}return n="",o=0,t=void 0,i}}var J=`# Tools
10
10
 
11
11
  To use a tool, write an ACTION block. Start each line at the left margin, exactly like this:
12
12
 
@@ -27,7 +27,7 @@ Rules for a block:
27
27
 
28
28
  Anything you write outside a block is shown to the person you are talking to, so keep explanations
29
29
  short and keep them out of the block. When no tool fits, simply reply — never invent a tool, and
30
- never guess a value for a required field you have not been given.`;export{R as EVENT_TYPES,B as createNltStreamFilter,F as endNote,D as endedBadly,M as parseSSE,j as passThroughFilter};
30
+ never guess a value for a required field you have not been given.`;export{R as EVENT_TYPES,B as createNltStreamFilter,P as endNote,j as endedBadly,K as parseSSE,M as passThroughFilter};
31
31
 
32
- //# debugId=23CA2B8D5926A2FA64756E2164756E21
32
+ //# debugId=7A9A5C2CB3C1CD9564756E2164756E21
33
33
  //# sourceMappingURL=wire.js.map