dispach 0.2.1 → 0.2.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.
- package/README.md +94 -36
- package/dist/APEv2Parser-ysjr6adv.js +5 -0
- package/dist/{FlacParser-bf8y3e0w.js.map → APEv2Parser-ysjr6adv.js.map} +1 -1
- package/dist/{AiffParser-tbx3xkmk.js → AiffParser-9hj6fpmy.js} +3 -3
- package/dist/{AiffParser-tbx3xkmk.js.map → AiffParser-9hj6fpmy.js.map} +1 -1
- package/dist/App-2f72vhjv.js +11 -0
- package/dist/{App-hjn867nc.js.map → App-2f72vhjv.js.map} +3 -3
- package/dist/{AsfParser-d784ak3y.js → AsfParser-7emspn04.js} +3 -3
- package/dist/{AsfParser-d784ak3y.js.map → AsfParser-7emspn04.js.map} +1 -1
- package/dist/{ConfigEditor-g7eb2wsm.js → ConfigEditor-vk7vxaa6.js} +3 -3
- package/dist/{ConfigEditor-g7eb2wsm.js.map → ConfigEditor-vk7vxaa6.js.map} +1 -1
- package/dist/{DsdiffParser-vxnfx80c.js → DsdiffParser-dz88pnnr.js} +3 -3
- package/dist/{DsdiffParser-vxnfx80c.js.map → DsdiffParser-dz88pnnr.js.map} +1 -1
- package/dist/{DsfParser-0xsh0zzk.js → DsfParser-qgh63tbs.js} +3 -3
- package/dist/{DsfParser-0xsh0zzk.js.map → DsfParser-qgh63tbs.js.map} +1 -1
- package/dist/FlacParser-drm5wq0p.js +5 -0
- package/dist/{APEv2Parser-9wqew3zv.js.map → FlacParser-drm5wq0p.js.map} +1 -1
- package/dist/{KeyProbe-w8c37s9q.js → KeyProbe-5anphmb7.js} +3 -3
- package/dist/{KeyProbe-w8c37s9q.js.map → KeyProbe-5anphmb7.js.map} +1 -1
- package/dist/{MP4Parser-tq7r7wd4.js → MP4Parser-yr7p3z12.js} +3 -3
- package/dist/{MP4Parser-tq7r7wd4.js.map → MP4Parser-yr7p3z12.js.map} +1 -1
- package/dist/{MatroskaParser-a79gsmzb.js → MatroskaParser-jkbsbsk3.js} +3 -3
- package/dist/{MatroskaParser-a79gsmzb.js.map → MatroskaParser-jkbsbsk3.js.map} +1 -1
- package/dist/{MpegParser-zs61b3wq.js → MpegParser-t93vwnew.js} +3 -3
- package/dist/{MpegParser-zs61b3wq.js.map → MpegParser-t93vwnew.js.map} +1 -1
- package/dist/{MusepackParser-bp8dm6nz.js → MusepackParser-6e8kbh2d.js} +3 -3
- package/dist/{MusepackParser-bp8dm6nz.js.map → MusepackParser-6e8kbh2d.js.map} +1 -1
- package/dist/OggParser-ggcypmag.js +5 -0
- package/dist/{OggParser-7pxr1sn9.js.map → OggParser-ggcypmag.js.map} +1 -1
- package/dist/Picker-j7txnm7w.js +5 -0
- package/dist/{Picker-b09hr4tk.js.map → Picker-j7txnm7w.js.map} +1 -1
- package/dist/SessionPicker-hpv2ncsb.js +5 -0
- package/dist/{SessionPicker-wtfxwdxg.js.map → SessionPicker-hpv2ncsb.js.map} +3 -3
- package/dist/SkillBrowser-qc542n71.js +5 -0
- package/dist/{SkillBrowser-p9ht63c7.js.map → SkillBrowser-qc542n71.js.map} +1 -1
- package/dist/{WavPackParser-gpf3r92t.js → WavPackParser-jw9stzqp.js} +3 -3
- package/dist/{WavPackParser-gpf3r92t.js.map → WavPackParser-jw9stzqp.js.map} +1 -1
- package/dist/{WaveParser-3kcak550.js → WaveParser-epmncs9w.js} +3 -3
- package/dist/{WaveParser-3kcak550.js.map → WaveParser-epmncs9w.js.map} +1 -1
- package/dist/WizardApp-pgzcz9zq.js +5 -0
- package/dist/{WizardApp-494018sk.js.map → WizardApp-pgzcz9zq.js.map} +3 -3
- package/dist/{channels-yhdvxxrb.js → channels-m8nambmm.js} +14 -14
- package/dist/{channels-yhdvxxrb.js.map → channels-m8nambmm.js.map} +1 -1
- package/dist/client.d.ts +285 -1
- package/dist/client.js +11 -11
- package/dist/client.js.map +5 -5
- package/dist/components/App.d.ts.map +1 -1
- package/dist/{config-g0ybmm4t.js → config-hmgrqgf2.js} +17 -17
- package/dist/{config-g0ybmm4t.js.map → config-hmgrqgf2.js.map} +1 -1
- package/dist/{credential-pkme1sfe.js → credential-nkb2ya59.js} +5 -5
- package/dist/{credential-pkme1sfe.js.map → credential-nkb2ya59.js.map} +1 -1
- package/dist/{index-q8b1fc3k.js → index-0444sh6x.js} +4 -4
- package/dist/{index-q8b1fc3k.js.map → index-0444sh6x.js.map} +1 -1
- package/dist/{index-ec101x93.js → index-095hrkyr.js} +6 -6
- package/dist/{index-ec101x93.js.map → index-095hrkyr.js.map} +1 -1
- package/dist/index-1mbdz3f7.js +12 -0
- package/dist/{index-3fgq1acj.js.map → index-1mbdz3f7.js.map} +3 -3
- package/dist/index-1x8mzvz7.js +6 -0
- package/dist/{index-f056wkb4.js.map → index-1x8mzvz7.js.map} +1 -1
- package/dist/{index-633eqxry.js → index-22fzzn7z.js} +7 -7
- package/dist/{index-633eqxry.js.map → index-22fzzn7z.js.map} +1 -1
- package/dist/index-2bsardvh.js +5 -0
- package/dist/{index-9dmgk6d3.js.map → index-2bsardvh.js.map} +2 -2
- package/dist/{index-thmq816c.js → index-2zjh5zd5.js} +4 -4
- package/dist/{index-thmq816c.js.map → index-2zjh5zd5.js.map} +1 -1
- package/dist/{index-ad5c9t83.js → index-308y9xt0.js} +4 -4
- package/dist/{index-ad5c9t83.js.map → index-308y9xt0.js.map} +1 -1
- package/dist/{index-t6xnecdx.js → index-323jvr1g.js} +4 -4
- package/dist/{index-t6xnecdx.js.map → index-323jvr1g.js.map} +1 -1
- package/dist/{index-mn34kj95.js → index-3826kf9t.js} +5 -5
- package/dist/{index-mn34kj95.js.map → index-3826kf9t.js.map} +1 -1
- package/dist/index-38gs9anh.js +9 -0
- package/dist/{index-akv6e7ge.js.map → index-38gs9anh.js.map} +1 -1
- package/dist/index-3c5jt6by.js +5 -0
- package/dist/{index-3b3h8kyh.js.map → index-3c5jt6by.js.map} +2 -2
- package/dist/{index-a6mtqkth.js → index-3vzf253k.js} +7 -7
- package/dist/{index-a6mtqkth.js.map → index-3vzf253k.js.map} +1 -1
- package/dist/{index-5m9wydxb.js → index-42e29zs4.js} +4 -4
- package/dist/{index-5m9wydxb.js.map → index-42e29zs4.js.map} +1 -1
- package/dist/{index-v7mz396x.js → index-4fj1k64j.js} +4 -4
- package/dist/{index-v7mz396x.js.map → index-4fj1k64j.js.map} +1 -1
- package/dist/{index-s2tzq27a.js → index-51x0n5z0.js} +5 -5
- package/dist/{index-s2tzq27a.js.map → index-51x0n5z0.js.map} +1 -1
- package/dist/index-836hc2h1.js +6 -0
- package/dist/{index-xa9crtzq.js.map → index-836hc2h1.js.map} +2 -2
- package/dist/index-8edck2pr.js +6 -0
- package/dist/{index-7gsbzvnc.js.map → index-8edck2pr.js.map} +1 -1
- package/dist/index-8tmv33mr.js +6 -0
- package/dist/{index-vw2hf4d8.js.map → index-8tmv33mr.js.map} +1 -1
- package/dist/index-9t4dz145.js +8 -0
- package/dist/{index-0mz7wpbw.js.map → index-9t4dz145.js.map} +2 -2
- package/dist/{index-81vj1bxe.js → index-bqdkm3de.js} +4 -4
- package/dist/{index-81vj1bxe.js.map → index-bqdkm3de.js.map} +1 -1
- package/dist/index-djeqvfms.js +74 -0
- package/dist/index-djeqvfms.js.map +13 -0
- package/dist/{index-307qmvb0.js → index-dpcm1j62.js} +28 -28
- package/dist/{index-307qmvb0.js.map → index-dpcm1j62.js.map} +1 -1
- package/dist/index-dv9pdjy4.js +429 -0
- package/dist/index-dv9pdjy4.js.map +12 -0
- package/dist/{index-j20k6k0m.js → index-dzy19wtf.js} +4 -4
- package/dist/{index-j20k6k0m.js.map → index-dzy19wtf.js.map} +1 -1
- package/dist/{index-9qv87rq7.js → index-eztfverw.js} +7 -7
- package/dist/{index-9qv87rq7.js.map → index-eztfverw.js.map} +1 -1
- package/dist/{index-myg5enf5.js → index-fbsrhcga.js} +4 -4
- package/dist/{index-myg5enf5.js.map → index-fbsrhcga.js.map} +1 -1
- package/dist/{index-6r9h7ftn.js → index-fxpmx6cr.js} +117 -117
- package/dist/index-fxpmx6cr.js.map +21 -0
- package/dist/{index-ye2yb3xf.js → index-hgm2gchq.js} +6 -6
- package/dist/{index-ye2yb3xf.js.map → index-hgm2gchq.js.map} +1 -1
- package/dist/index-hpvfqq6r.js +1252 -0
- package/dist/{index-26ejkp8q.js.map → index-hpvfqq6r.js.map} +30 -26
- package/dist/{index-y34s71qe.js → index-hrwakb11.js} +3 -3
- package/dist/{index-y34s71qe.js.map → index-hrwakb11.js.map} +1 -1
- package/dist/{index-qh82wtpa.js → index-jc4kmfwa.js} +4 -4
- package/dist/{index-qh82wtpa.js.map → index-jc4kmfwa.js.map} +1 -1
- package/dist/{index-twcgf73h.js → index-jff5q27j.js} +4 -4
- package/dist/{index-twcgf73h.js.map → index-jff5q27j.js.map} +1 -1
- package/dist/index-k8e9f466.js +110 -0
- package/dist/index-k8e9f466.js.map +13 -0
- package/dist/{index-trx9xb59.js → index-m6fqx0ch.js} +7 -7
- package/dist/{index-trx9xb59.js.map → index-m6fqx0ch.js.map} +1 -1
- package/dist/{index-ac2wzspd.js → index-mjfv7k5w.js} +4 -4
- package/dist/{index-ac2wzspd.js.map → index-mjfv7k5w.js.map} +1 -1
- package/dist/index-nvc24414.js +6 -0
- package/dist/{index-1f1erzfx.js.map → index-nvc24414.js.map} +1 -1
- package/dist/index-nxhqf597.js +6 -0
- package/dist/{index-w97gprre.js.map → index-nxhqf597.js.map} +1 -1
- package/dist/{index-jh2az41t.js → index-p6ya59m6.js} +5 -5
- package/dist/{index-jh2az41t.js.map → index-p6ya59m6.js.map} +1 -1
- package/dist/{index-psk6q25h.js → index-pqw1n1pv.js} +4 -4
- package/dist/{index-psk6q25h.js.map → index-pqw1n1pv.js.map} +1 -1
- package/dist/{index-6c4p19m1.js → index-pszmnhgq.js} +2 -2
- package/dist/index-qgsdgbk8.js +5 -0
- package/dist/{index-wk6andxq.js.map → index-qgsdgbk8.js.map} +2 -2
- package/dist/index-qv6ktepc.js +6 -0
- package/dist/index-qv6ktepc.js.map +10 -0
- package/dist/{index-pdsey1ab.js → index-ry6a4bqh.js} +62 -62
- package/dist/{index-pdsey1ab.js.map → index-ry6a4bqh.js.map} +1 -1
- package/dist/{index-x9z2xnct.js → index-sh44ymqz.js} +5 -5
- package/dist/{index-x9z2xnct.js.map → index-sh44ymqz.js.map} +1 -1
- package/dist/{index-zg89tq04.js → index-snz49ndn.js} +4 -4
- package/dist/{index-zg89tq04.js.map → index-snz49ndn.js.map} +1 -1
- package/dist/{index-zjphh8ch.js → index-xg7s813b.js} +4 -4
- package/dist/{index-zjphh8ch.js.map → index-xg7s813b.js.map} +1 -1
- package/dist/{index-gqaa06yh.js → index-y7dxq4a4.js} +9 -9
- package/dist/{index-gqaa06yh.js.map → index-y7dxq4a4.js.map} +1 -1
- package/dist/index-ytxbw8py.js +63 -0
- package/dist/{index-0pddq849.js.map → index-ytxbw8py.js.map} +2 -2
- package/dist/index-yw3fby4n.js +6 -0
- package/dist/{index-4emtktc0.js.map → index-yw3fby4n.js.map} +2 -2
- package/dist/{index-skkddg44.js → index-zw6wyas6.js} +4 -4
- package/dist/{index-skkddg44.js.map → index-zw6wyas6.js.map} +1 -1
- package/dist/index.js +304 -288
- package/dist/index.js.map +15 -12
- package/dist/init.d.ts.map +1 -1
- package/dist/lib/agent-template.d.ts +5 -0
- package/dist/lib/agent-template.d.ts.map +1 -1
- package/dist/lib/commands.d.ts.map +1 -1
- package/dist/lib/init-flow.d.ts +7 -30
- package/dist/lib/init-flow.d.ts.map +1 -1
- package/dist/lib/owner.d.ts +49 -0
- package/dist/lib/owner.d.ts.map +1 -0
- package/dist/lib/presets.d.ts +44 -0
- package/dist/lib/presets.d.ts.map +1 -0
- package/dist/lib/provision.d.ts +8 -1
- package/dist/lib/provision.d.ts.map +1 -1
- package/dist/lib/relay-client.d.ts +17 -0
- package/dist/lib/relay-client.d.ts.map +1 -0
- package/dist/lib/schema.d.ts +2 -0
- package/dist/lib/schema.d.ts.map +1 -1
- package/dist/lib/sessions-view.d.ts +2 -0
- package/dist/lib/sessions-view.d.ts.map +1 -1
- package/dist/lib/source.d.ts +25 -0
- package/dist/lib/source.d.ts.map +1 -1
- package/dist/lib/types.d.ts +8 -2
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/wizard.d.ts.map +1 -1
- package/dist/owner.d.ts +16 -0
- package/dist/owner.d.ts.map +1 -0
- package/dist/run.d.ts.map +1 -1
- package/dist/serve.d.ts.map +1 -1
- package/dist/transcript.d.ts.map +1 -1
- package/dist/{web-f6869dy2.js → web-gfv0mzgs.js} +7 -7
- package/dist/{web-f6869dy2.js.map → web-gfv0mzgs.js.map} +1 -1
- package/dist/wire.d.ts +50 -0
- package/dist/wire.js +5 -5
- package/dist/wire.js.map +4 -4
- package/dist/wrapper-f662ny3r.js +5 -0
- package/dist/{wrapper-52c0vacs.js.map → wrapper-f662ny3r.js.map} +1 -1
- package/package.json +4 -1
- package/dist/APEv2Parser-9wqew3zv.js +0 -5
- package/dist/App-hjn867nc.js +0 -11
- package/dist/FlacParser-bf8y3e0w.js +0 -5
- package/dist/OggParser-7pxr1sn9.js +0 -5
- package/dist/Picker-b09hr4tk.js +0 -5
- package/dist/SessionPicker-wtfxwdxg.js +0 -5
- package/dist/SkillBrowser-p9ht63c7.js +0 -5
- package/dist/WizardApp-494018sk.js +0 -5
- package/dist/index-0mz7wpbw.js +0 -8
- package/dist/index-0pddq849.js +0 -63
- package/dist/index-1f1erzfx.js +0 -6
- package/dist/index-26ejkp8q.js +0 -1194
- package/dist/index-3b3h8kyh.js +0 -5
- package/dist/index-3fgq1acj.js +0 -12
- package/dist/index-4emtktc0.js +0 -6
- package/dist/index-4t3p7vm9.js +0 -6
- package/dist/index-4t3p7vm9.js.map +0 -10
- package/dist/index-6r9h7ftn.js.map +0 -21
- package/dist/index-7gsbzvnc.js +0 -6
- package/dist/index-94k4mh6s.js +0 -96
- package/dist/index-94k4mh6s.js.map +0 -13
- package/dist/index-9dmgk6d3.js +0 -5
- package/dist/index-akv6e7ge.js +0 -9
- package/dist/index-f056wkb4.js +0 -6
- package/dist/index-s57ztjhq.js +0 -74
- package/dist/index-s57ztjhq.js.map +0 -13
- package/dist/index-vw2hf4d8.js +0 -6
- package/dist/index-w97gprre.js +0 -6
- package/dist/index-wk6andxq.js +0 -5
- package/dist/index-xa9crtzq.js +0 -6
- package/dist/index-z0dgxd7d.js +0 -429
- package/dist/index-z0dgxd7d.js.map +0 -11
- package/dist/wrapper-52c0vacs.js +0 -5
- /package/dist/{index-6c4p19m1.js.map → index-pszmnhgq.js.map} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/lib/commands.ts"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"/**\n * The command table — data only, no rendering and no parsing.\n *\n * One source of truth for three consumers: `args.ts` parses against it, `help.ts` renders from it,\n * and error messages look flags up in it to say which command *does* accept a flag. Before this\n * existed the usage text was a hand-maintained string with no link to the parser, and it had\n * already drifted — `agents` accepted flags it never documented.\n *\n * Nothing here contains the product name. Command names come from `BRAND.slug`, so a rename stays\n * the one-commit operation hard rule 3 requires.\n */\n\nimport { BRAND } from \"@dispach/core\"\nimport { DEFAULT_ROW_LIMIT, MIN_ROW_LIMIT } from \"#lib/const\"\nimport { PRESETS } from \"#lib/init-flow\"\nimport type { ArgSpec, CommandSpec, FlagSpec } from \"#lib/schema\"\n\n/** Accepted by every command, so the render mode is answered the same way everywhere. */\nexport const GLOBAL_FLAGS: readonly FlagSpec[] = [\n {\n name: \"plain\",\n kind: \"boolean\",\n help: \"force plain text — no interactive rendering, no colour\",\n },\n { name: \"help\", short: \"h\", kind: \"boolean\", help: \"show this help and exit\" },\n { name: \"version\", short: \"v\", kind: \"boolean\", help: \"print the version and exit\" },\n {\n // Global rather than per command, because the first-run bootstrap is checked before any\n // `case` block runs — and because somebody who does not want it does not want it once.\n // `<PREFIX>NO_BOOTSTRAP` is the same switch for a script that cannot add a flag.\n name: \"no-bootstrap\",\n kind: \"boolean\",\n help: \"never start a background server on this run\",\n },\n]\n\nconst MANIFEST: ArgSpec = {\n name: \"manifest\",\n required: true,\n help: \"path to an agent.yaml, or the name of a sandbox agent\",\n}\n\nconst STORE: FlagSpec = {\n name: \"store\",\n kind: \"string\",\n placeholder: \"path\",\n help: \"session database\",\n defaultHelp: `~/${BRAND.stateDir}/store.db`,\n}\n\nconst SESSION: FlagSpec = {\n name: \"session\",\n kind: \"string\",\n placeholder: \"key\",\n help: \"session key\",\n // Written on its own, it means \"ask me which one\" — the interactive twin of `--continue`. Safe as a\n // bare form because a session key cannot start with a dash, which is the condition `FlagSpec.bare`\n // documents; `run` opens the picker and every other command reports that it needs a key.\n bare: \"\",\n}\n\nconst JSON_FLAG: FlagSpec = { name: \"json\", kind: \"boolean\", help: \"machine-readable output\" }\n\nexport const COMMANDS: readonly CommandSpec[] = [\n {\n // Interactive at a terminal; every question also has a flag so scripts and CI can run it.\n // It never asks for the API key itself — a prompt invites shoulder-surfing and a flag\n // writes the secret into shell history — so the generated .env has an empty line to fill.\n name: \"init\",\n\n inSession: \"hidden\",\n // Not the bootstrap's: `init` asks whether to keep a server running, and a bootstrap that\n // installed one before the question was asked made the answer decorative. `init` starts\n // the host itself, after the files exist, when the answer is `service`.\n needsServer: false,\n summary: \"create a new agent: manifest, workspace, and env files\",\n // No positional. It used to be the target *directory*, which read as the agent's name and\n // was not — `init milo` silently wrote ./milo into whatever checkout you were standing in,\n // and an agent outside the sandbox has no bare name, so every later command needed a path.\n args: [],\n unexpectedArgHint:\n \"init takes no positional argument. To name the agent, --name <name>; to place it somewhere other than the sandbox, --dir <path>.\",\n flags: [\n { name: \"user\", kind: \"string\", placeholder: \"name\", help: \"your name\" },\n { name: \"name\", kind: \"string\", placeholder: \"name\", help: \"the agent's name\" },\n {\n name: \"purpose\",\n kind: \"string\",\n placeholder: \"text\",\n help: \"one line: what the agent is for\",\n },\n {\n name: \"preset\",\n kind: \"string\",\n placeholder: \"id\",\n // Derived, not written down. This list said \"openai | anthropic | deepseek |\n // ollama | custom\" while `PRESETS` had grown to nine — a hand-kept copy beside a\n // real table, which is the drift this repo keeps paying for and which `--help`\n // exists to be the authority on.\n help: `model endpoint: ${PRESETS.map((preset) => preset.id).join(\" | \")}`,\n defaultHelp: \"openai\",\n },\n { name: \"model\", kind: \"string\", placeholder: \"id\", help: \"model id\" },\n { name: \"base-url\", kind: \"string\", placeholder: \"url\", help: \"endpoint base URL\" },\n {\n name: \"region\",\n kind: \"string\",\n placeholder: \"aws-region\",\n help: \"AWS region, with --preset bedrock (credentials come from the AWS chain)\",\n },\n {\n name: \"api-key-env\",\n kind: \"string\",\n placeholder: \"VAR\",\n help: \"env var that will hold the key; omitted for ollama\",\n defaultHelp: \"MODEL_API_KEY\",\n },\n {\n name: \"system\",\n kind: \"string\",\n placeholder: \"level\",\n help: \"what it may touch on this machine: none | read | write | full\",\n defaultHelp: \"none\",\n },\n {\n name: \"web\",\n kind: \"string\",\n placeholder: \"level\",\n help: \"internet access: none | fetch | search\",\n defaultHelp: \"none\",\n },\n {\n name: \"web-backend\",\n kind: \"string\",\n placeholder: \"id\",\n help: \"search backend when --web search: tavily | brave | exa\",\n defaultHelp: \"tavily\",\n },\n {\n name: \"composio\",\n kind: \"string\",\n placeholder: \"level\",\n help: \"your other apps via Composio: none | connected\",\n defaultHelp: \"none\",\n },\n {\n name: \"telegram\",\n kind: \"string\",\n placeholder: \"level\",\n help: \"reachable on Telegram: none | connected\",\n defaultHelp: \"none\",\n },\n {\n name: \"telegram-allow\",\n kind: \"string\",\n placeholder: \"@handle\",\n help: \"who may message it — empty permits nobody, which is the safe default\",\n },\n {\n name: \"whatsapp\",\n kind: \"string\",\n placeholder: \"level\",\n help: \"reachable on WhatsApp: none | connected — unofficial, bundled with the binary\",\n defaultHelp: \"none\",\n },\n {\n // A number, not a secret: unlike a bot token there is nothing here worth keeping out\n // of shell history, so this one gets a flag and `--telegram-allow`'s twin does not\n // need explaining twice.\n name: \"whatsapp-number\",\n kind: \"string\",\n placeholder: \"digits\",\n help: \"the account's own number to pair with (pairWith) — digits with no +; empty pairs by QR\",\n },\n {\n name: \"server\",\n kind: \"string\",\n placeholder: \"level\",\n // No wizard step since 0.1.2 — flag-only, like `--schedules`. An always-on server is\n // the product, so `local` is the default and `none` is the deliberate opt-out.\n help: \"serve the HTTP API: none | local\",\n defaultHelp: \"local\",\n },\n {\n name: \"schedules\",\n kind: \"string\",\n placeholder: \"what\",\n help: \"run something on a schedule: none | daily | hourly\",\n defaultHelp: \"none\",\n },\n {\n name: \"skills\",\n kind: \"string\",\n placeholder: \"level\",\n // A phrase as well as a level, because the interesting answer is \"find me one\". The\n // default stays `starter` so a scripted run reaches no network.\n help: 'none | starter, or words to search the catalogues for — --skills \"pdf tables\"',\n defaultHelp: \"starter\",\n },\n {\n name: \"daemon\",\n kind: \"string\",\n placeholder: \"level\",\n help: \"keep it running in the background: none | service\",\n defaultHelp: \"none\",\n },\n {\n name: \"dir\",\n kind: \"string\",\n placeholder: \"path\",\n help: \"write the agent here instead of the sandbox\",\n defaultHelp: `~/${BRAND.stateDir}/agents/<agent-name-slug>`,\n },\n {\n name: \"yes\",\n kind: \"boolean\",\n help: \"take every default; never ask, even at a terminal\",\n },\n {\n name: \"measure-window\",\n kind: \"boolean\",\n help: \"ask the endpoint for the model's window and write it (the wizard always asks)\",\n },\n ],\n },\n {\n name: \"run\",\n\n inSession: \"hidden\",\n needsServer: true,\n summary: \"start an interactive session — bare `run` picks from the sandbox\",\n args: [\n {\n ...MANIFEST,\n required: false,\n help: \"path or sandbox agent name (omit to pick from the sandbox)\",\n },\n ],\n flags: [\n { ...SESSION, defaultHelp: \"a new one each run; bare --session picks from the list\" },\n {\n name: \"continue\",\n short: \"c\",\n kind: \"boolean\",\n help: \"pick up the most recent conversation with this agent\",\n },\n {\n name: \"input\",\n kind: \"string\",\n placeholder: \"text\",\n help: \"run one turn, print the reply, exit\",\n },\n STORE,\n {\n name: \"ephemeral\",\n kind: \"boolean\",\n help: \"keep this session in memory only; nothing is written\",\n },\n { name: \"quiet\", kind: \"boolean\", help: \"suppress the banner and per-turn stats\" },\n {\n // The same override `keys` carries, on the command that actually holds a session. The env\n // form works everywhere; a flag exists because the case this covers is \"try it without,\n // once\" and reaching for a variable to answer a one-off question is friction.\n name: \"no-enhanced-keys\",\n kind: \"boolean\",\n help: \"do not negotiate the kitty keyboard protocol (cmd chords stop arriving)\",\n },\n {\n name: \"no-reasoning\",\n kind: \"boolean\",\n help: \"hide the thinking a reasoning model streams (shown by default)\",\n },\n {\n // Kept so existing scripts keep working. Reasoning is on by default now, so this\n // asks for what already happens — harmless, and cheaper than breaking a flag people\n // have in their shell history.\n name: \"show-reasoning\",\n kind: \"boolean\",\n help: \"no-op: reasoning is shown by default when the model has any\",\n },\n ],\n },\n {\n // Reading, enabling and disabling — but never *writing* a schedule.\n //\n // Creating one from the CLI would be a third writer beside the manifest and the API, each\n // with its own idea of what a valid expression is; the manifest is where a schedule belongs,\n // because it is the thing that survives a rebuild and shows up in a diff. What the CLI adds\n // is the two questions a file cannot answer: when does this actually fire next, and did the\n // last run work.\n name: \"schedules\",\n\n // A view: a list somebody reads and then acts on, like `sessions`.\n inSession: \"view\",\n needsServer: true,\n summary: \"list schedules, when they next fire, and how the last run went\",\n args: [MANIFEST],\n flags: [\n {\n name: \"id\",\n kind: \"string\",\n placeholder: \"schedule\",\n help: \"show one schedule in full instead of the list\",\n },\n {\n name: \"enable\",\n kind: \"string\",\n placeholder: \"schedule\",\n help: \"switch an API-created schedule on; a manifest one is enabled in agent.yaml\",\n },\n {\n name: \"disable\",\n kind: \"string\",\n placeholder: \"schedule\",\n help: \"switch an API-created schedule off; a manifest one is disabled in agent.yaml\",\n },\n {\n name: \"recipients\",\n kind: \"boolean\",\n // The question a manifest cannot answer and this command is already holding the\n // store to answer: what do I put in `deliver.to`. A handle is the form a person\n // knows and the form that fails.\n help: \"list the addresses this agent can deliver to — what deliver.to takes\",\n },\n STORE,\n JSON_FLAG,\n ],\n },\n {\n name: \"sessions\",\n\n // A view rather than an output pane: the list is a *choice*, and reading it read-only was the one\n // thing you could already do by exiting and passing `--session`. Enter switches.\n inSession: \"view\",\n needsServer: false,\n summary: \"list stored sessions, or inspect one\",\n args: [MANIFEST],\n flags: [\n { ...SESSION, help: \"show one session instead of the list\" },\n { name: \"turns\", kind: \"boolean\", help: \"show turn records instead of messages\" },\n {\n name: \"clear\",\n kind: \"boolean\",\n help: \"delete the named session's history; memory files are untouched\",\n },\n {\n name: \"limit\",\n kind: \"number\",\n placeholder: \"n\",\n help: \"rows to show\",\n defaultHelp: String(DEFAULT_ROW_LIMIT),\n min: MIN_ROW_LIMIT,\n integer: true,\n },\n STORE,\n JSON_FLAG,\n ],\n },\n {\n // Two questions, and they are asked of the *index* rather than of the files. `search` is what\n // makes a ranking explicable — it prints the lexical score beside the boosted one, so \"retrieved\n // because it is about your question\" and \"retrieved because it is recent\" are distinguishable\n // without reading the code. `rebuild` exists because staleness detection is mtime plus size, and\n // an edit that preserves both is a real blind spot rather than a hypothetical one.\n name: \"memory\",\n\n // A view: the result is a list somebody reads and then wants to act on. Read-only for now —\n // deleting a memory means editing the file, which is the point of files being canonical.\n inSession: \"view\",\n needsServer: false,\n summary: \"search what the agent remembers, or rebuild the index from the files\",\n args: [\n {\n name: \"action\",\n required: true,\n help: \"what to do\",\n choices: [\n {\n value: \"search\",\n help: \"rank the corpus against a query, exactly as a turn would\",\n },\n {\n value: \"rebuild\",\n help: \"forget the index and re-read every file — for an edit that kept the mtime\",\n },\n ],\n },\n { ...MANIFEST, required: true },\n {\n name: \"query\",\n required: false,\n help: \"the words to search for (search only); quote a phrase\",\n },\n ],\n flags: [\n STORE,\n {\n name: \"limit\",\n kind: \"number\",\n placeholder: \"n\",\n help: \"passages to show\",\n defaultHelp: \"10\",\n min: 1,\n integer: true,\n },\n {\n // The manifest's `memory.threshold` is what a *turn* applies. A search is a person\n // asking what is in there, and a floor that hid the near-misses would make the command\n // useless for the question it exists to answer — \"why did it not recall that?\"\n name: \"all\",\n kind: \"boolean\",\n help: \"show passages below the manifest's threshold too, marked\",\n },\n JSON_FLAG,\n ],\n },\n {\n // A person's editor for the manifest. `config_read`/`config_set` are the *agent's*, and they\n // are deliberately floored on the fields decision 11.29 reserves for a person — which left\n // those fields with no editor at all until this existed.\n //\n // `view`, because bare `/config` opens the editor — a surface somebody navigates — while every\n // other action is a listing or a one-line report and falls through to an output pane. That\n // fallthrough is the existing contract for a view: \"a view named in the table with nothing built\n // yet falls back to its own output\".\n name: \"config\",\n\n inSession: \"view\",\n needsServer: false,\n summary: \"read and change an agent's settings, and fill in its secrets\",\n args: [\n {\n name: \"action\",\n // Optional, because `config <agent>` with no action opens the editor. `readAction`\n // decides which of the two the first positional is; the six action words win.\n required: false,\n help: \"what to do (default: edit)\",\n choices: [\n {\n value: \"edit\",\n help: \"the full-screen editor — also what bare `config <agent>` opens\",\n },\n { value: \"list\", help: \"every setting, its current value, and who may set it\" },\n { value: \"get\", help: \"one setting\" },\n { value: \"set\", help: \"change one setting\" },\n {\n value: \"env\",\n help: \"put a secret in the .env beside the manifest, prompted and not echoed\",\n },\n {\n value: \"allow\",\n help: \"add or remove a handle a channel accepts messages from\",\n },\n ],\n },\n // Not required: `config <agent>` puts the agent in positional 0, and `readAction` moves it.\n // Declaring it required would fail on arity before that ever ran.\n { ...MANIFEST, required: false },\n {\n name: \"name\",\n required: false,\n help: \"the setting's dotted path, an env variable name, or a handle\",\n },\n { name: \"value\", required: false, help: \"the new value (set only)\" },\n ],\n flags: [\n STORE,\n {\n name: \"channel\",\n kind: \"string\",\n placeholder: \"id\",\n help: \"which channel to allow on, when there is more than one\",\n },\n {\n name: \"remove\",\n kind: \"boolean\",\n help: \"take the handle off instead of adding it (allow only)\",\n },\n {\n // Only reaches the two edits that stop a check running. Everything else applies\n // without asking, so this is not the flag people learn to type by reflex.\n name: \"yes\",\n kind: \"boolean\",\n help: \"skip the confirmation on an edit that weakens a check\",\n },\n ],\n },\n {\n // Who owns the agents on this machine (decisions 15.7, 15.14). `init` makes you the owner of\n // what it creates; `adopt` does it for an agent that already existed. `hidden` for the reason\n // `stop` is: adopting reloads the agent, which would be the one a session is attached to.\n name: \"owner\",\n\n inSession: \"hidden\",\n needsServer: false,\n summary: \"show who owns this machine's agents, or make an existing agent yours\",\n args: [\n {\n name: \"action\",\n required: true,\n help: \"what to do\",\n choices: [\n { value: \"show\", help: \"print the owner id init minted for this sandbox\" },\n {\n value: \"adopt\",\n help: \"make an agent yours: assign it, recognise you on its channels, one conversation everywhere\",\n },\n ],\n },\n { ...MANIFEST, required: false },\n ],\n flags: [STORE, JSON_FLAG],\n },\n {\n name: \"validate\",\n\n inSession: \"output\",\n needsServer: false,\n summary: \"load and validate a manifest, then exit\",\n args: [MANIFEST],\n flags: [JSON_FLAG],\n },\n {\n // Distinct from `validate`, which asks whether the manifest loads. This asks whether the\n // *writing* is any good — the authoring rules of 07-SPEC-WORKSPACE.md, which are judgements\n // rather than facts and are therefore warnings that never fail the command.\n name: \"workspace\",\n\n inSession: \"output\",\n needsServer: false,\n summary: \"check the workspace files against the authoring rules\",\n args: [MANIFEST],\n flags: [\n {\n name: \"strict\",\n kind: \"boolean\",\n help: \"exit non-zero when any authoring warning is reported\",\n },\n JSON_FLAG,\n ],\n },\n {\n // A scaffold, never a summary: headings and <rules> blocks survive verbatim, prose becomes\n // placeholders a person fills. Automatic distillation of an identity document drops exactly\n // the parts that produce voice, which is why this is a command and not something load does.\n name: \"soul\",\n\n inSession: \"output\",\n needsServer: false,\n summary: \"scaffold a hand-edited compact identity from a long-form document\",\n args: [\n {\n name: \"action\",\n required: true,\n help: \"what to do\",\n choices: [\n { value: \"distill\", help: \"scaffold a compact identity beside the source\" },\n ],\n },\n { name: \"file\", required: true, help: \"path to the long-form identity document\" },\n ],\n flags: [\n {\n name: \"out\",\n kind: \"string\",\n placeholder: \"path\",\n help: \"where to write the scaffold\",\n defaultHelp: \"<file>.compact.md beside the source\",\n },\n ],\n },\n {\n // Three questions rather than one. `validate` warns and exits 0 like `workspace` does, because\n // everything it reports is a judgement — a skill that does not load has already failed by then.\n name: \"skills\",\n\n inSession: \"view\",\n needsServer: false,\n summary: \"browse the catalogue and install — or list, scaffold, check one agent's skills\",\n args: [\n {\n name: \"action\",\n // Optional, so bare `skills` is the browse screen. That is the entry point somebody who\n // wants a skill actually has: every other form needs an agent, a query or a slug they\n // have not seen yet.\n required: false,\n help: \"what to do — omit to browse the catalogue and tick what you want\",\n choices: [\n { value: \"list\", help: \"every skill, its size, and whether it ships scripts\" },\n {\n value: \"show\",\n help: \"one skill in full, including what the model never sees\",\n },\n {\n value: \"new\",\n help: \"scaffold a skill, turning skills on for this agent if they are not\",\n },\n {\n value: \"install\",\n help: \"install one by name — anthropic/pdf — or copy from a local path (see `sources`)\",\n },\n { value: \"remove\", help: \"delete a skill's directory and everything in it\" },\n { value: \"validate\", help: \"authoring warnings — never a refusal\" },\n ],\n },\n {\n ...MANIFEST,\n required: false,\n help: \"path or sandbox agent name (not used when browsing)\",\n },\n {\n name: \"name\",\n required: false,\n help: \"the skill for show, new and remove — for install, <source>/<skill> or a local path\",\n },\n ],\n flags: [\n {\n name: \"strict\",\n kind: \"boolean\",\n help: \"exit non-zero when any authoring warning is reported\",\n },\n JSON_FLAG,\n ],\n },\n {\n // Machine-level, so it takes no manifest — the split from `skills` that keeps every positional\n // here meaning one thing. A source is a place the person trusts; a skill is one agent's.\n name: \"sources\",\n\n inSession: \"view\",\n needsServer: false,\n summary: \"the repositories skills come from: list, add, search\",\n args: [\n {\n name: \"action\",\n required: true,\n help: \"what to do\",\n choices: [\n { value: \"list\", help: \"every source, and whether it has been fetched\" },\n { value: \"add\", help: \"add a repository — a URL, or a name and a URL\" },\n { value: \"remove\", help: \"stop searching a source; built-ins included\" },\n { value: \"update\", help: \"re-fetch every source, or the ones named\" },\n {\n value: \"search\",\n help: \"find a skill across every source; fetches on first use\",\n },\n ],\n },\n {\n name: \"rest\",\n required: false,\n variadic: true,\n help: \"a name and URL for add, a name for remove or update, words for search\",\n },\n ],\n flags: [\n {\n name: \"path\",\n kind: \"string\",\n placeholder: \"dir\",\n help: \"subdirectory holding the skills (add)\",\n defaultHelp: \"the whole repository\",\n },\n {\n name: \"ref\",\n kind: \"string\",\n placeholder: \"branch\",\n help: \"branch or tag to track (add)\",\n defaultHelp: \"the remote's default branch\",\n },\n JSON_FLAG,\n ],\n },\n {\n // Action first, manifest second, like `config`, `memory` and `plugins`. The action is\n // *optional* here because bare `channels <agent>` is the question people actually have —\n // \"what is this reachable on, and is it set up\" — and making them type `list` for it would\n // be ceremony. That is `skills`'s shape rather than `plugins`'s, and the difference is real:\n // `plugins` has no useful bare form, since a plugin is named in one place.\n name: \"channels\",\n\n inSession: \"output\",\n needsServer: false,\n summary: \"what an agent is reachable on: connect, disconnect, set a credential, unpair\",\n args: [\n {\n name: \"action\",\n required: false,\n help: \"what to do — omit for the listing\",\n choices: [\n {\n value: \"list\",\n help: \"every channel, whether it is on, and whether its credential is filled in\",\n },\n {\n value: \"connect\",\n help: \"switch a channel on; it starts at the agent's next start\",\n },\n {\n value: \"disconnect\",\n help: \"switch it off — a disabled channel is never constructed\",\n },\n {\n value: \"credential\",\n help: \"set the channel's token in the .env, prompted and not echoed\",\n },\n {\n value: \"pair\",\n help: \"connect it the way that channel needs — a code for WhatsApp, a token for Telegram\",\n },\n {\n value: \"unpair\",\n help: \"forget a scanned pairing, so the next start offers a new code\",\n },\n ],\n },\n { ...MANIFEST, required: false, help: \"path or sandbox agent name\" },\n {\n name: \"channel\",\n required: false,\n help: \"which channel — its id, not its type. Optional when the agent has exactly one\",\n },\n ],\n flags: [JSON_FLAG],\n },\n {\n // Action first, manifest second — the shape `config` and `memory` already use. `plugins <agent>`\n // was the whole command until there was something to install, and a bare positional cannot stay\n // the agent once `add` and `remove` exist: an agent may legitimately be named `add`.\n name: \"plugins\",\n\n inSession: \"output\",\n needsServer: false,\n summary: \"install a plugin, list what an agent loaded, or remove one\",\n args: [\n {\n name: \"action\",\n required: true,\n help: \"what to do\",\n choices: [\n {\n value: \"list\",\n help: \"what this agent loaded, from where, and what it asked for\",\n },\n { value: \"add\", help: \"fetch a plugin from git and name it in this agent\" },\n {\n value: \"remove\",\n help: \"drop the entry, and the directory when no agent needs it\",\n },\n ],\n },\n MANIFEST,\n {\n name: \"rest\",\n required: false,\n variadic: true,\n help: \"a repository for add — owner/repo, a clone URL, or a page URL — or a name for remove\",\n },\n ],\n flags: [\n {\n name: \"ref\",\n kind: \"string\",\n placeholder: \"tag\",\n help: \"branch, tag or commit to fetch (add) — the only thing that pins the code\",\n defaultHelp: \"the remote's default branch\",\n },\n {\n name: \"name\",\n kind: \"string\",\n placeholder: \"name\",\n help: \"install under this name (add), which is what the `plugins:` entry will say\",\n defaultHelp: \"the repository or subdirectory name\",\n },\n JSON_FLAG,\n ],\n },\n {\n name: \"agents\",\n\n inSession: \"output\",\n needsServer: false,\n summary: \"the agents in the sandbox, and whether anything is serving them\",\n args: [\n {\n ...MANIFEST,\n required: false,\n variadic: true,\n help: \"paths or sandbox names to describe in full — bare, lists the sandbox\",\n },\n ],\n flags: [STORE, JSON_FLAG],\n },\n {\n // `daemon restart` restarts the *service* — every agent it hosts. This reloads one agent in\n // place, which is what a person wants after pairing a channel or editing agent.yaml, and it\n // was reachable only as `/restart` inside a session or as `POST /v1/agents/:id/reload`.\n name: \"restart\",\n\n inSession: \"hidden\",\n needsServer: false,\n summary: \"reload one agent on the running host, or restart the whole service\",\n args: [\n {\n ...MANIFEST,\n required: false,\n help: \"path or sandbox agent name — bare, restarts the background service\",\n },\n ],\n flags: [STORE, JSON_FLAG],\n },\n {\n // One screen for the question people actually have — \"is it running and is it working?\" —\n // which `daemon status`, `agents` and `/status` each answered a third of.\n name: \"status\",\n\n inSession: \"output\",\n needsServer: false,\n summary: \"the service, the hosts, every agent and its channels — one screen\",\n args: [],\n flags: [STORE, JSON_FLAG],\n },\n {\n name: \"logs\",\n\n // Hidden from the session palette, where `/daemon logs` already is: two rows for one log\n // would spend a landing row on a duplicate.\n inSession: \"hidden\",\n needsServer: false,\n summary: \"the server's stderr tail — the same as `daemon logs`\",\n args: [\n {\n ...MANIFEST,\n required: false,\n help: \"path or sandbox agent name — bare, the server's own log\",\n },\n ],\n flags: [\n {\n name: \"lines\",\n kind: \"number\",\n placeholder: \"n\",\n integer: true,\n min: 1,\n help: \"how much of the log to show\",\n defaultHelp: \"40\",\n },\n {\n name: \"follow\",\n short: \"f\",\n kind: \"boolean\",\n help: \"keep printing new lines until interrupted\",\n },\n { name: \"truncate\", kind: \"boolean\", help: \"empty the log first, in place\" },\n STORE,\n JSON_FLAG,\n ],\n },\n {\n // The one command whose whole purpose is to make a network call, which is why it is a command\n // rather than something boot does: boot resolves a remote catalogue from disk so that nothing\n // touches the network before readiness, and an empty cache would otherwise deadlock — the load\n // fails on unresolved slugs, so the post-readiness refresh that would have filled it never runs.\n name: \"tools\",\n\n inSession: \"output\",\n needsServer: false,\n summary:\n \"show the resolved tool catalogue, or fetch a remote provider's schemas into the cache\",\n args: [MANIFEST],\n flags: [\n {\n name: \"warm\",\n kind: \"boolean\",\n help: \"fetch every pinned slug from the provider and write the resolution cache\",\n },\n JSON_FLAG,\n ],\n },\n {\n // The only command that opens a listening socket, and the only one that starts channels.\n // `run` builds the same runtime without them: a REPL that quietly began answering Telegram\n // while you typed at it would be a surprise.\n name: \"serve\",\n\n inSession: \"hidden\",\n needsServer: false,\n summary: \"run the HTTP API and connect the agents' channels\",\n // Variadic since 16.2a. One process hosts N agents — decision 8.5 has said so since the\n // beginning, and only this line pinned the product to one. The bind is process-level, so a\n // second manifest declaring a *different* `server.port`, `host` or `tokenEnv` is refused\n // rather than silently ignored.\n //\n // **Optional since 16.3**, which is what makes the product always-on: naming nothing hosts\n // the sandbox's enabled agents, so a host does not have to be told which agents to serve —\n // and one that did could never serve an agent provisioned after it started. Naming\n // manifests is the container's shape, where the agent arrives on a mount.\n args: [\n {\n ...MANIFEST,\n required: false,\n variadic: true,\n help: \"paths to an agent.yaml, or sandbox agent names (omit for every enabled agent)\",\n },\n ],\n flags: [\n {\n name: \"port\",\n kind: \"number\",\n placeholder: \"n\",\n help: \"port to bind\",\n defaultHelp: \"server.port, or 7420\",\n },\n {\n name: \"host\",\n kind: \"string\",\n placeholder: \"addr\",\n help: \"address to bind — a non-loopback host requires an API token\",\n defaultHelp: \"server.host, or 127.0.0.1\",\n },\n {\n // The escape from a lockout, and the reason it needs to exist: a claim is printed\n // only while no operator key is live, so an operator who loses the only key on a\n // server with no configured token has no route back in. A person able to run\n // `serve` on that machine already holds the store file, so the flag confers nothing\n // they could not get with sqlite3 — it just makes the recovery nameable.\n name: \"claim\",\n kind: \"boolean\",\n help: \"print a one-time claim even when a key already exists\",\n },\n STORE,\n JSON_FLAG,\n ],\n },\n {\n /**\n * Operator credentials, from a terminal.\n *\n * **Not `keys`**, which is taken by the keyboard diagnostic below — two unrelated meanings\n * under one verb costs somebody a confused minute every time they reach for either. `token`\n * loses to `server.tokenEnv`, a different credential this command can neither mint nor\n * revoke. `credential` is the word the spec and the store already use.\n *\n * `needsServer` is **true**: a credential belongs to a server rather than to a file, and\n * this is an HTTP client. Writing the store directly would bypass the label rule, the scope\n * validation and the refusal of a scope naming an agent that does not exist — the two\n * surfaces would then disagree about what a valid credential is.\n */\n name: \"credential\",\n // Minting a credential from inside a chat would print a secret into a transcript that is\n // then stored, indexed and retrievable. The one place it must not appear.\n inSession: \"hidden\",\n needsServer: true,\n summary: \"mint, list and revoke operator credentials, optionally scoped\",\n args: [\n {\n name: \"action\",\n required: true,\n help: \"what to do\",\n choices: [\n { value: \"create\", help: \"mint one and print the secret, once\" },\n { value: \"list\", help: \"every credential, live and revoked, with its scope\" },\n { value: \"revoke\", help: \"kill one permanently\" },\n ],\n },\n {\n name: \"keyId\",\n required: false,\n help: \"which credential, for revoke (`credential list` prints the ids)\",\n },\n ],\n flags: [\n {\n name: \"label\",\n kind: \"string\",\n placeholder: \"text\",\n help: \"how it is shown in a listing — required for create\",\n },\n {\n name: \"agents\",\n kind: \"string\",\n placeholder: \"a,b\",\n help: \"narrow it to these agents\",\n defaultHelp: \"every agent\",\n },\n {\n name: \"sessions\",\n kind: \"string\",\n placeholder: \"prefix\",\n help: \"narrow it to session keys starting with this\",\n defaultHelp: \"every session\",\n },\n {\n name: \"can\",\n kind: \"string\",\n placeholder: \"list\",\n help: \"narrow it to these capabilities: read | chat | write | admin\",\n defaultHelp: \"all of them\",\n },\n {\n name: \"expires\",\n kind: \"string\",\n placeholder: \"dur\",\n help: \"how long it lives: 30s, 15m, 2h, 7d, or seconds\",\n defaultHelp: \"never\",\n },\n STORE,\n JSON_FLAG,\n ],\n },\n {\n // The instrument, not a setting. `terminal-setup` below changes a terminal's configuration; this\n // one only reports what the current terminal already does, which is the question that has to be\n // answered first and could not be until now.\n name: \"keys\",\n inSession: \"hidden\",\n needsServer: false,\n summary: \"press a chord and see the bytes, Ink's reading of them, and the intent\",\n args: [],\n flags: [\n {\n name: \"no-enhanced-keys\",\n kind: \"boolean\",\n help: \"do not negotiate the kitty keyboard protocol\",\n },\n ],\n },\n {\n // The only command that edits a file outside the workspace, which is why it prints the change\n // first and asks. ⌥⏎ needs none of it — this is for people who want shift+⏎ as well.\n name: \"terminal-setup\",\n\n inSession: \"hidden\",\n needsServer: false,\n summary: \"teach this terminal to send shift+enter as a new line\",\n args: [],\n flags: [\n { name: \"dry-run\", kind: \"boolean\", help: \"print the change and write nothing\" },\n { name: \"yes\", kind: \"boolean\", help: \"write it without asking\" },\n JSON_FLAG,\n ],\n },\n {\n // The switch that turns everything off. Separate from `daemon stop`, which needs you to\n // know the agent: this one finds the services *and* a `serve` left in a forgotten tab.\n // The mirror of `init`: it created a directory, a manifest and a workspace, and everything since\n // has scattered into a shared store keyed by manifest id, a log pair, and possibly a LaunchAgent.\n // `hidden` for the same reason `stop` is — removing the agent you are talking to is worse than\n // stopping it.\n name: \"remove\",\n\n inSession: \"hidden\",\n needsServer: false,\n summary: \"delete a sandbox agent: its directory, sessions, memory, logs and service\",\n args: [\n {\n name: \"agent\",\n required: false,\n help: \"sandbox agent name (a path is refused — remove only manages agents `init` made)\",\n },\n ],\n flags: [\n {\n name: \"dry-run\",\n kind: \"boolean\",\n help: \"show exactly what would go; delete nothing\",\n },\n {\n name: \"files-only\",\n kind: \"boolean\",\n help: \"delete the directory and keep the sessions, memory and logs\",\n },\n {\n name: \"prune\",\n kind: \"boolean\",\n help: \"delete sessions, memory and logs that no sandbox agent claims any more\",\n },\n { name: \"all\", kind: \"boolean\", help: \"remove every agent in the sandbox\" },\n {\n name: \"yes\",\n kind: \"boolean\",\n help: \"skip the typed confirmation (required to delete anything non-interactively)\",\n },\n STORE,\n JSON_FLAG,\n ],\n },\n {\n name: \"stop\",\n\n inSession: \"hidden\",\n needsServer: false,\n summary: \"stop one agent for good, or everything — named, it stays stopped across restarts\",\n args: [\n {\n name: \"agent\",\n required: false,\n help: \"path or sandbox agent name (omit to stop the whole host)\",\n },\n ],\n flags: [\n {\n name: \"dry-run\",\n kind: \"boolean\",\n help: \"list what would be stopped; stop nothing\",\n },\n {\n name: \"reason\",\n kind: \"string\",\n help: \"why — recorded, and shown wherever the agent is reported as off\",\n },\n STORE,\n JSON_FLAG,\n ],\n },\n {\n // The other half of `stop <agent>`. Not `daemon start`, which starts a *process*: this\n // decides what a running process holds, which since 16.2a is a different question.\n name: \"start\",\n\n inSession: \"hidden\",\n needsServer: true,\n summary: \"switch an agent back on, and have a running host adopt it now\",\n args: [MANIFEST],\n flags: [STORE, JSON_FLAG],\n },\n {\n // `serve` stays up only as long as its terminal, which makes an agent configured for a\n // channel answer only while a window is open. This installs it as a supervised service.\n //\n name: \"model\",\n\n inSession: \"output\",\n needsServer: false,\n summary: \"ask the endpoint what it can actually do — window, output cap, prompt caching\",\n args: [\n {\n name: \"action\",\n required: true,\n help: \"what to do\",\n choices: [\n {\n value: \"probe\",\n help: \"measure every configured role against its own endpoint\",\n },\n ],\n },\n { name: \"agent\", required: true, help: \"path or sandbox agent name\" },\n ],\n flags: [\n {\n name: \"window\",\n kind: \"boolean\",\n help: \"search for the window by growing a prompt until it is refused — costs real tokens, and prints the estimate first\",\n },\n {\n name: \"price\",\n kind: \"number\",\n placeholder: \"usd\",\n help: \"dollars per million input tokens, if you want --window's estimate in money\",\n },\n {\n name: \"write\",\n kind: \"boolean\",\n help: \"record a measured ceiling in the manifest; a floor is refused, because a floor is not a window\",\n },\n {\n name: \"yes\",\n kind: \"boolean\",\n help: \"answer the --window spend prompt; nothing else is affected\",\n },\n { name: \"json\", kind: \"boolean\", help: \"machine-readable findings\" },\n ],\n },\n {\n name: \"web\",\n\n // A pane runs a command as a child and shows its output, which is right here: the effect is\n // a browser window, and one line saying where it went is all a session needs to report.\n inSession: \"output\",\n // `run` needs a host to point a browser at, and the first-run bootstrap is what makes\n // \"install, then open the page\" one step. `open` and `url` are read-only and say so when\n // nothing is running, rather than starting something on a machine that did not ask for it.\n needsServer: true,\n summary: \"open the browser view of a running agent\",\n args: [\n {\n name: \"action\",\n required: true,\n help: \"what to do\",\n choices: [\n { value: \"run\", help: \"start a server if needed, then open the page\" },\n { value: \"open\", help: \"open the page of a server already running\" },\n {\n value: \"url\",\n help: \"print the address and open nothing — the form a pipe reads\",\n },\n ],\n },\n {\n name: \"agent\",\n // Optional: a bare `web open` points at the page, which lists what the host has.\n // Naming an agent is what puts `?agent=` in the URL for the page to read.\n required: false,\n help: \"path or sandbox agent name (omit to open the page itself)\",\n },\n ],\n flags: [\n {\n name: \"no-open\",\n kind: \"boolean\",\n help: \"print the URL instead of opening it\",\n },\n STORE,\n JSON_FLAG,\n ],\n },\n {\n // Second action-as-positional command after `soul` — and the reason `ArgSpec.choices`\n // exists, since seven verbs hidden inside a prose help string is a set nothing can check.\n name: \"daemon\",\n\n inSession: \"output\",\n needsServer: false,\n summary: \"keep an agent serving in the background — starts at login, restarts on crash\",\n args: [\n {\n name: \"action\",\n required: true,\n help: \"what to do\",\n choices: [\n {\n value: \"install\",\n help: \"check it will boot, write the service, load it, and watch it start\",\n },\n { value: \"uninstall\", help: \"unload it and remove the service definition\" },\n { value: \"start\", help: \"load it again after a stop\" },\n { value: \"stop\", help: \"unload it, and keep it stopped across a login\" },\n { value: \"restart\", help: \"what you run after editing agent.yaml or .env\" },\n {\n value: \"status\",\n help: \"running? how many restarts? why did it stop? — bare, reports every agent\",\n },\n {\n value: \"logs\",\n help: \"the tail of stderr; --lines, --follow, --truncate\",\n },\n ],\n },\n {\n name: \"agent\",\n // Optional so a bare `daemon status` can answer \"is anything running?\" — the\n // question people actually have, and one that should not require naming an agent.\n required: false,\n help: \"path or sandbox agent name (omit only for status)\",\n },\n ],\n flags: [\n {\n name: \"lines\",\n kind: \"number\",\n placeholder: \"n\",\n integer: true,\n min: 1,\n help: \"how much of the log to show\",\n defaultHelp: \"40\",\n },\n {\n name: \"follow\",\n short: \"f\",\n kind: \"boolean\",\n help: \"keep printing as the service writes — both streams; ctrl-C stops (logs)\",\n },\n { name: \"truncate\", kind: \"boolean\", help: \"empty the log files (logs)\" },\n {\n name: \"dry-run\",\n kind: \"boolean\",\n help: \"print the service definition and the checks; write nothing\",\n },\n // The server preflight reads the lease table to report agents another process holds,\n // so this command has a store to point at like the others do.\n STORE,\n JSON_FLAG,\n ],\n },\n]\n\nexport function findCommand(name: string): CommandSpec | undefined {\n return COMMANDS.find((command) => command.name === name)\n}\n\n/** Every flag a command accepts: its own plus the global ones. */\nexport function flagsFor(command: CommandSpec): readonly FlagSpec[] {\n return [...command.flags, ...GLOBAL_FLAGS]\n}\n\n/**\n * Commands other than `exclude` that declare `flag`.\n *\n * Turns \"unknown flag --json\" — true but useless, since `--json` plainly exists — into a message\n * that names where it does work.\n */\nexport function commandsAccepting(flag: string, exclude: string): readonly string[] {\n return COMMANDS.filter(\n (command) => command.name !== exclude && command.flags.some((f) => f.name === flag),\n ).map((command) => command.name)\n}\n\n/**\n * Split \"an action word, or an agent\" for a command whose action is optional.\n *\n * `channels <agent>` and `channels list <agent>` are both meant, so the first positional is one or\n * the other and only its *value* says which. The action words win, exactly as a slash command\n * resolves and as `config`'s own reader does — the difference being that this one reads the\n * **command's spec** for the words rather than holding a second copy of them, so an action added to\n * the table is covered with nothing to remember.\n */\nexport function actionOrRef(\n command: string,\n first: string | undefined,\n): { readonly action: string | undefined; readonly ref: string | undefined } {\n const given = (first ?? \"\").trim()\n if (given === \"\") return { action: undefined, ref: undefined }\n const actions = (findCommand(command)?.args ?? [])\n .find((arg) => arg.name === \"action\")\n ?.choices?.map((choice) => choice.value)\n return actions?.includes(given) === true\n ? { action: given, ref: undefined }\n : { action: undefined, ref: given }\n}\n"
|
|
6
|
+
],
|
|
7
|
+
"mappings": ";8GAkBO,IAAM,GAAoC,CAC7C,CACI,KAAM,QACN,KAAM,UACN,KAAM,wDACV,EACA,CAAE,KAAM,OAAQ,MAAO,IAAK,KAAM,UAAW,KAAM,yBAA0B,EAC7E,CAAE,KAAM,UAAW,MAAO,IAAK,KAAM,UAAW,KAAM,4BAA6B,EACnF,CAII,KAAM,eACN,KAAM,UACN,KAAM,6CACV,CACJ,EAEM,EAAoB,CACtB,KAAM,WACN,SAAU,GACV,KAAM,uDACV,EAEM,EAAkB,CACpB,KAAM,QACN,KAAM,SACN,YAAa,OACb,KAAM,mBACN,YAAa,KAAK,EAAM,mBAC5B,EAEM,EAAoB,CACtB,KAAM,UACN,KAAM,SACN,YAAa,MACb,KAAM,cAIN,KAAM,EACV,EAEM,EAAsB,CAAE,KAAM,OAAQ,KAAM,UAAW,KAAM,yBAA0B,EAEhF,GAAmC,CAC5C,CAII,KAAM,OAEN,UAAW,SAIX,YAAa,GACb,QAAS,yDAIT,KAAM,CAAC,EACP,kBACI,mIACJ,MAAO,CACH,CAAE,KAAM,OAAQ,KAAM,SAAU,YAAa,OAAQ,KAAM,WAAY,EACvE,CAAE,KAAM,OAAQ,KAAM,SAAU,YAAa,OAAQ,KAAM,kBAAmB,EAC9E,CACI,KAAM,UACN,KAAM,SACN,YAAa,OACb,KAAM,iCACV,EACA,CACI,KAAM,SACN,KAAM,SACN,YAAa,KAKb,KAAM,mBAAmB,GAAQ,IAAI,CAAC,IAAW,EAAO,EAAE,EAAE,KAAK,KAAK,IACtE,YAAa,QACjB,EACA,CAAE,KAAM,QAAS,KAAM,SAAU,YAAa,KAAM,KAAM,UAAW,EACrE,CAAE,KAAM,WAAY,KAAM,SAAU,YAAa,MAAO,KAAM,mBAAoB,EAClF,CACI,KAAM,SACN,KAAM,SACN,YAAa,aACb,KAAM,yEACV,EACA,CACI,KAAM,cACN,KAAM,SACN,YAAa,MACb,KAAM,qDACN,YAAa,eACjB,EACA,CACI,KAAM,SACN,KAAM,SACN,YAAa,QACb,KAAM,gEACN,YAAa,MACjB,EACA,CACI,KAAM,MACN,KAAM,SACN,YAAa,QACb,KAAM,yCACN,YAAa,MACjB,EACA,CACI,KAAM,cACN,KAAM,SACN,YAAa,KACb,KAAM,yDACN,YAAa,QACjB,EACA,CACI,KAAM,WACN,KAAM,SACN,YAAa,QACb,KAAM,iDACN,YAAa,MACjB,EACA,CACI,KAAM,WACN,KAAM,SACN,YAAa,QACb,KAAM,0CACN,YAAa,MACjB,EACA,CACI,KAAM,iBACN,KAAM,SACN,YAAa,UACb,KAAM,sEACV,EACA,CACI,KAAM,WACN,KAAM,SACN,YAAa,QACb,KAAM,gFACN,YAAa,MACjB,EACA,CAII,KAAM,kBACN,KAAM,SACN,YAAa,SACb,KAAM,wFACV,EACA,CACI,KAAM,SACN,KAAM,SACN,YAAa,QAGb,KAAM,mCACN,YAAa,OACjB,EACA,CACI,KAAM,YACN,KAAM,SACN,YAAa,OACb,KAAM,qDACN,YAAa,MACjB,EACA,CACI,KAAM,SACN,KAAM,SACN,YAAa,QAGb,KAAM,gFACN,YAAa,SACjB,EACA,CACI,KAAM,SACN,KAAM,SACN,YAAa,QACb,KAAM,oDACN,YAAa,MACjB,EACA,CACI,KAAM,MACN,KAAM,SACN,YAAa,OACb,KAAM,8CACN,YAAa,KAAK,EAAM,mCAC5B,EACA,CACI,KAAM,MACN,KAAM,UACN,KAAM,mDACV,EACA,CACI,KAAM,iBACN,KAAM,UACN,KAAM,+EACV,CACJ,CACJ,EACA,CACI,KAAM,MAEN,UAAW,SACX,YAAa,GACb,QAAS,mEACT,KAAM,CACF,IACO,EACH,SAAU,GACV,KAAM,4DACV,CACJ,EACA,MAAO,CACH,IAAK,EAAS,YAAa,wDAAyD,EACpF,CACI,KAAM,WACN,MAAO,IACP,KAAM,UACN,KAAM,sDACV,EACA,CACI,KAAM,QACN,KAAM,SACN,YAAa,OACb,KAAM,qCACV,EACA,EACA,CACI,KAAM,YACN,KAAM,UACN,KAAM,sDACV,EACA,CAAE,KAAM,QAAS,KAAM,UAAW,KAAM,wCAAyC,EACjF,CAII,KAAM,mBACN,KAAM,UACN,KAAM,yEACV,EACA,CACI,KAAM,eACN,KAAM,UACN,KAAM,gEACV,EACA,CAII,KAAM,iBACN,KAAM,UACN,KAAM,6DACV,CACJ,CACJ,EACA,CAQI,KAAM,YAGN,UAAW,OACX,YAAa,GACb,QAAS,iEACT,KAAM,CAAC,CAAQ,EACf,MAAO,CACH,CACI,KAAM,KACN,KAAM,SACN,YAAa,WACb,KAAM,+CACV,EACA,CACI,KAAM,SACN,KAAM,SACN,YAAa,WACb,KAAM,4EACV,EACA,CACI,KAAM,UACN,KAAM,SACN,YAAa,WACb,KAAM,8EACV,EACA,CACI,KAAM,aACN,KAAM,UAIN,KAAM,sEACV,EACA,EACA,CACJ,CACJ,EACA,CACI,KAAM,WAIN,UAAW,OACX,YAAa,GACb,QAAS,uCACT,KAAM,CAAC,CAAQ,EACf,MAAO,CACH,IAAK,EAAS,KAAM,sCAAuC,EAC3D,CAAE,KAAM,QAAS,KAAM,UAAW,KAAM,uCAAwC,EAChF,CACI,KAAM,QACN,KAAM,UACN,KAAM,gEACV,EACA,CACI,KAAM,QACN,KAAM,SACN,YAAa,IACb,KAAM,eACN,YAAa,OAAO,EAAiB,EACrC,IAAK,GAC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ACb,QAAS,uDACT,KAAM,CACF,CACI,KAAM,SACN,SAAU,GACV,KAAM,aACN,QAAS,CACL,CAAE,MAAO,OAAQ,KAAM,+CAAgD,EACvE,CAAE,MAAO,MAAO,KAAM,+CAAgD,EACtE,CAAE,MAAO,SAAU,KAAM,6CAA8C,EACvE,CAAE,MAAO,SAAU,KAAM,0CAA2C,EACpE,CACI,MAAO,SACP,KAAM,wDACV,CACJ,CACJ,EACA,CACI,KAAM,OACN,SAAU,GACV,SAAU,GACV,KAAM,uEACV,CACJ,EACA,MAAO,CACH,CACI,KAAM,OACN,KAAM,SACN,YAAa,MACb,KAAM,wCACN,YAAa,sBACjB,EACA,CACI,KAAM,MACN,KAAM,SACN,YAAa,SACb,KAAM,+BACN,YAAa,6BACjB,EACA,CACJ,CACJ,EACA,CAMI,KAAM,WAEN,UAAW,SACX,YAAa,GACb,QAAS,+EACT,KAAM,CACF,CACI,KAAM,SACN,SAAU,GACV,KAAM,oCACN,QAAS,CACL,CACI,MAAO,OACP,KAAM,0EACV,EACA,CACI,MAAO,UACP,KAAM,0DACV,EACA,CACI,MAAO,aACP,KAAM,yDACV,EACA,CACI,MAAO,aACP,KAAM,8DACV,EACA,CACI,MAAO,OACP,KAAM,mFACV,EACA,CACI,MAAO,SACP,KAAM,+DACV,CACJ,CACJ,EACA,IAAK,EAAU,SAAU,GAAO,KAAM,4BAA6B,EACnE,CACI,KAAM,UACN,SAAU,GACV,KAAM,+EACV,CACJ,EACA,MAAO,CAAC,CAAS,CACrB,EACA,CAII,KAAM,UAEN,UAAW,SACX,YAAa,GACb,QAAS,6DACT,KAAM,CACF,CACI,KAAM,SACN,SAAU,GACV,KAAM,aACN,QAAS,CACL,CACI,MAAO,OACP,KAAM,2DACV,EACA,CAAE,MAAO,MAAO,KAAM,mDAAoD,EAC1E,CACI,MAAO,SACP,KAAM,0DACV,CACJ,CACJ,EACA,EACA,CACI,KAAM,OACN,SAAU,GACV,SAAU,GACV,KAAM,sFACV,CACJ,EACA,MA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I,EAY5B,SAAS,EAAW,CACvB,EACA,EACyE,CACzE,IAAM,GAAS,GAAS,IAAI,KAAK,EACjC,GAAI,IAAU,GAAI,MAAO,CAAE,OAAQ,OAAW,IAAK,MAAU,EAI7D,OAHiB,GAAY,CAAO,GAAG,MAAQ,CAAC,GAC3C,KAAK,CAAC,IAAQ,EAAI,OAAS,QAAQ,GAClC,SAAS,IAAI,CAAC,IAAW,EAAO,KAAK,GAC3B,SAAS,CAAK,IAAM,GAC9B,CAAE,OAAQ,EAAO,IAAK,MAAU,EAChC,CAAE,OAAQ,OAAW,IAAK,CAAM",
|
|
8
|
+
"debugId": "57DDBC4A325EEA2B64756E2164756E21",
|
|
9
|
+
"names": []
|
|
10
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{t,j,
|
|
3
|
-
`)}function
|
|
4
|
-
`),{commit:b,skills:
|
|
5
|
-
`).slice(-3).join(" ");if(n.timedOut===!0)return new A({code:"skill_source_timeout",message:`${e.name}: git did not finish within ${Math.round(ee/1000)}s`,hint:`Check the network, then try again — a partly fetched source was discarded, so the previous copy of ${e.name} is untouched.`});return new A({code:"skill_source_fetch_failed",message:`${e.name}: could not clone ${e.url}${r.length===0?"":` — ${r}`}`,hint:"A private repository needs a credential helper git can use without prompting. Check the URL and the branch; `sources remove` drops a source you no longer want."})}var
|
|
6
|
-
`)}function
|
|
7
|
-
`)}var
|
|
8
|
-
`),
|
|
2
|
+
import{t,j,p,A,H,ye,li,V,J,Xt,ui,eA,dA,Ei,k}from"./index-hpvfqq6r.js";import{qs,Vs,mn}from"./index-2zjh5zd5.js";import{ue}from"./index-fxpmx6cr.js";import{Ue,it}from"./index-308y9xt0.js";import{St,U,We,Ct}from"./index-38gs9anh.js";import{u,v,Q,y}from"./index-3vzf253k.js";import{wt}from"./index-zw6wyas6.js";import{mr,lo}from"./index-dv9pdjy4.js";import{we,Ae}from"./index-9t4dz145.js";import{To,Ro}from"./index-0444sh6x.js";import{Rt,o,d}from"./index-8tmv33mr.js";import{existsSync as _,mkdirSync as ke,readdirSync as z,readFileSync as Y,renameSync as ve,rmSync as T,statSync as Re,writeFileSync as Oe}from"node:fs";import{join as O,relative as xe}from"node:path";import{existsSync as he,mkdirSync as pe,readFileSync as $e,writeFileSync as Se}from"node:fs";import{join as D}from"node:path";var _A=[{name:"anthropic",url:"https://github.com/anthropics/skills",path:"skills",builtin:!0},{name:"github",url:"https://github.com/github/awesome-copilot",path:"skills",builtin:!0,curated:qs}],be=/^[a-z0-9]+(?:-[a-z0-9]+)*$/;function kA(e){return e.length>0&&e.length<=64&&be.test(e)}var G=1;function to(e){return D(we(e),"sources.json")}function F(e){return D(we(e),"sources")}function L(e,n){return D(F(n),e)}function M(e){let n=to(e);if(!he(n))return{};let r;try{r=JSON.parse($e(n,"utf8"))}catch(a){throw new A({code:"skill_sources_unreadable",message:`${n} is not valid JSON: ${a instanceof Error?a.message:String(a)}`,hint:"Fix the file, or delete it — the built-in sources work with no file at all."})}if(typeof r!=="object"||r===null||Array.isArray(r))throw new A({code:"skill_sources_unreadable",message:`${n} does not hold a JSON object`,hint:`Expected {"version": ${G}, "sources": [...]}. Delete the file to start from the built-in sources.`});return r}function Fe(e){let n=M(e),r=(n.sources??[]).filter((l)=>kA(l.name)),a=new Set(n.disabled??[]),s=new Map(r.map((l)=>[l.name,l])),i=[];for(let l of _A){if(a.has(l.name))continue;let c=s.get(l.name);i.push(c===void 0?l:{...c,builtin:!1})}for(let l of r){if(_A.some((c)=>c.name===l.name))continue;i.push({...l,builtin:!1})}return i}function X(e,n){let r=to(n);pe(we(n),{recursive:!0});let a={version:G,sources:e.sources??[],...e.disabled===void 0||e.disabled.length===0?{}:{disabled:e.disabled}};Se(r,`${JSON.stringify(a,null,4)}
|
|
3
|
+
`)}function ls(e,n){let r=M(n),a=(r.sources??[]).filter((i)=>i.name!==e.name),s=(r.disabled??[]).filter((i)=>i!==e.name);X({...r,sources:[...a,e],disabled:s},n)}function Is(e,n){let r=M(n),a=(r.sources??[]).filter((g)=>g.name!==e),s=a.length!==(r.sources??[]).length,i=_A.some((g)=>g.name===e),l=(r.disabled??[]).includes(e);if(!s&&!i)return!1;if(i&&l&&!s)return!1;let c=i&&!l?[...r.disabled??[],e]:r.disabled??[];return X({...r,sources:a,disabled:c},n),!0}function sr(e){let n=e.trim();if(n.length===0)throw P(e);if(/^[\w.-]+\/[\w.-]+$/.test(n))return{url:`https://github.com/${n.replace(/\.git$/,"")}`};if(n.startsWith("git@")||n.startsWith("ssh://"))return{url:n};let r;try{r=new URL(n)}catch{throw P(e)}if(r.protocol!=="https:"&&r.protocol!=="http:")throw P(e);let a=r.pathname.split("/").filter((g)=>g.length>0),s=a.findIndex((g)=>g==="tree"||g==="blob");if(s<2)return{url:`${r.origin}/${a.join("/")}`.replace(/\.git$/,"")};let i=a.slice(0,s).join("/"),l=a[s+1],c=a.slice(s+2).join("/");return{url:`${r.origin}/${i}`.replace(/\.git$/,""),...l===void 0?{}:{ref:l},...c.length===0?{}:{path:c}}}function P(e){return new A({code:"skill_source_url_invalid",message:`${JSON.stringify(e)} is not a repository`,hint:"Accepted: owner/repo, an https:// clone URL, a git@ SSH URL, or the page URL you were reading — .../tree/<branch>/<subdir> is understood."})}function q(e){let n=e.split("/").filter((r)=>r.length>0);if(n.length===1)return{skill:n[0]};if(n.length===2)return{source:n[0],skill:n[1]};throw new A({code:"skill_ref_invalid",message:`${JSON.stringify(e)} is neither a skill name nor <source>/<skill>`,hint:"Use `pdf` to search every source, or `anthropic/pdf` to name one. A path is taken as a path only if it exists on disk."})}var Z="SKILL.md",ee=180000,jr=async(e,n)=>{let r=await wt({command:"git",args:e,...n===void 0?{}:{cwd:n},timeoutMs:ee,maxBuffer:33554432,env:{...process.env,GIT_TERMINAL_PROMPT:"0",GIT_ASKPASS:"",SSH_ASKPASS:"",SSH_ASKPASS_REQUIRE:"never",GIT_SSH_COMMAND:"ssh -oBatchMode=yes -oStrictHostKeyChecking=accept-new"}});if(r.notFound)throw new A({code:"git_missing",message:"git is not on PATH, and a skill source is a git repository",hint:"Install git — on macOS `xcode-select --install` is enough. Until then, clone a repository by hand and use `skills install <agent> <path>`."});return{code:r.code,stdout:r.stdout,stderr:r.stderr,...r.signalled?{timedOut:!0}:{}}};function te(e,n){return O(F(n),`${e}.json`)}function ar(e,n){let r=te(e,n);if(!_(r))return{};try{return JSON.parse(Y(r,"utf8"))}catch{return{}}}function Et(e,n){return _(O(L(e,n),".git"))}function gr(e){return e.startsWith(".")||e.startsWith("/")||e.startsWith("~")||_(e)}async function vA(e,n={}){let r=n.git??jr,a=n.env,s=L(e.name,a),i=`${s}.partial`;ke(F(a),{recursive:!0}),T(i,{recursive:!0,force:!0});let l=["clone","--depth","1","--single-branch",...e.ref===void 0?[]:["--branch",e.ref]],c=e.path!==void 0,g=!c,f=c?await r([...l,"--filter=blob:none","--sparse",e.url,i]):await r([...l,e.url,i]);if(f.code!==0&&c){T(i,{recursive:!0,force:!0});let h=await r([...l,e.url,i]);if(h.code===0)g=!0,f=h}if(f.code!==0)throw T(i,{recursive:!0,force:!0}),Ee(e,f);if(e.path!==void 0&&!g){let h=await r(["sparse-checkout","set",e.path],i);if(h.code!==0)throw T(i,{recursive:!0,force:!0}),new A({code:"skill_source_path_missing",message:`${e.name}: could not narrow the checkout to ${e.path}`,hint:`Check the path exists in ${e.url}. ${h.stderr.trim()||"git said nothing."}`})}let w=await r(["rev-parse","--short","HEAD"],i),b=w.code===0?w.stdout.trim():"unknown";T(s,{recursive:!0,force:!0}),ve(i,s);let m=Ht(e,a).length;return Oe(te(e.name,a),`${JSON.stringify({commit:b,fetchedAt:new Date().toISOString(),skills:m},null,4)}
|
|
4
|
+
`),{commit:b,skills:m,unfiltered:g}}function Ee(e,n){let r=n.stderr.trim().split(`
|
|
5
|
+
`).slice(-3).join(" ");if(n.timedOut===!0)return new A({code:"skill_source_timeout",message:`${e.name}: git did not finish within ${Math.round(ee/1000)}s`,hint:`Check the network, then try again — a partly fetched source was discarded, so the previous copy of ${e.name} is untouched.`});return new A({code:"skill_source_fetch_failed",message:`${e.name}: could not clone ${e.url}${r.length===0?"":` — ${r}`}`,hint:"A private repository needs a credential helper git can use without prompting. Check the URL and the branch; `sources remove` drops a source you no longer want."})}var Ie=4,ne=new Set(["node_modules","dist","build","target","vendor",".git"]);function Te(e){let n=[],r=(a,s)=>{if(s>Ie)return;let i;try{i=z(a,{withFileTypes:!0})}catch{return}if(_(O(a,Z)))n.push(a);for(let l of i){if(!l.isDirectory())continue;if(l.name.startsWith(".")||ne.has(l.name))continue;r(O(a,l.name),s+1)}};return r(e,0),n.sort()}var _e=[".py",".sh",".js",".ts",".mjs",".rb",".pl"];function re(e,n=0){if(n>3)return[];let r=[],a;try{a=z(e,{withFileTypes:!0})}catch{return[]}for(let s of a){let i=O(e,s.name);if(s.isDirectory()){if(s.name.startsWith(".")||ne.has(s.name))continue;r.push(...re(i,n+1));continue}if(!s.isFile())continue;if((Re(i).mode&73)!==0||_e.some((c)=>s.name.endsWith(c)))r.push(i)}return r}function Ht(e,n){let r=L(e.name,n),a=e.path===void 0?r:O(r,e.path);if(!_(a))return[];let s=[];for(let i of Te(a)){let l=Y(O(i,Z),"utf8"),c=i.slice(i.lastIndexOf("/")+1),g={source:e.name,dir:i,repoPath:xe(r,i),scripts:re(i)};try{let f=eA(c,l);s.push({...g,skill:f.frontmatter.name,description:f.frontmatter.description,tokens:H(f.body)})}catch(f){s.push({...g,skill:c,description:"",tokens:H(l),problem:f instanceof Error?f.message:String(f)})}}return s}import{cpSync as Pe,existsSync as R,mkdirSync as le,readdirSync as C,readFileSync as De,rmSync as Me,statSync as ce,writeFileSync as Ke}from"node:fs";import{basename as ae,isAbsolute as de,join as S,relative as Be,resolve as B}from"node:path";import{existsSync as Ne,readFileSync as Le,writeFileSync as se}from"node:fs";import{join as Ce}from"node:path";var je=".origins.json",oe=1;function K(e){return Ce(e,je)}function N(e){let n=K(e);if(!Ne(n))return{};try{return JSON.parse(Le(n,"utf8")).origins??{}}catch{return{}}}function ie(e,n){let r={...N(e),...n};se(K(e),`${JSON.stringify({version:oe,origins:r},null,4)}
|
|
6
|
+
`)}function cr(e,n){let r=N(e);if(r[n]===void 0)return;let a=Object.fromEntries(Object.entries(r).filter(([s])=>s!==n));se(K(e),`${JSON.stringify({version:oe,origins:a},null,4)}
|
|
7
|
+
`)}var E="SKILL.md";function Kt(e){try{let n=V(e.manifestPath,{env:{...k([e.manifestPath]),...e.envOverlay}}),a=e.action==="new"||e.action==="install"?Ve(n.path,n.dir,n.manifest.skills):n.manifest.skills;if(a===void 0)return Je(e);let s=ye(n.manifest.model.main.id,n.manifest.model.main.capabilities),i=de(a.dir)?a.dir:B(n.dir,a.dir);if(e.action==="new")return Ye(i,e);if(e.action==="remove")return tt(i,e);let l=dA({dir:i,maxActive:a.maxActive,threshold:a.threshold,style:s.promptStyle,agentDir:n.dir,runner:ue()});switch(e.action){case"list":return He(i,l.skills,l,e);case"show":return Ge(l.skills,e);case"install":return Qe(i,e);default:return Xe(l.skills,e)}}catch(n){if(e.json===!0&&p(n))return process.stdout.write(`${JSON.stringify({ok:!1,error:n.toDetail(),details:n.details},null,2)}
|
|
8
|
+
`),d;throw n}}function Je(e){if(e.json===!0)return process.stdout.write(`${JSON.stringify({ok:!0,configured:!1,skills:[]},null,2)}
|
|
9
9
|
`),o;return process.stdout.write(`this agent has no skills configured
|
|
10
10
|
|
|
11
11
|
`+` · find one and install it — searches the catalogues, 440+ skills:
|
|
@@ -21,27 +21,27 @@ import{t,j,f,A,H,ye,oi,q,J,Zt,si,Xt,lA,ai,_}from"./index-26ejkp8q.js";import{Us,
|
|
|
21
21
|
|
|
22
22
|
\`sources search <what it should do>\` ranks 440+ from the configured catalogues, then
|
|
23
23
|
\`skills install <agent> <source>/<skill>\`. \`skills new <agent> <name>\` writes one from a template.
|
|
24
|
-
`),o;process.stdout.write(`${
|
|
25
|
-
`),process.stdout.write(`${
|
|
26
|
-
`);for(let i of n){let l=i.scripts.length===0?"":` ${i.scripts.length} script(s)`,c=i.frontmatter.whenNotToUse===void 0?" no when-not-to-use":"",
|
|
27
|
-
`)}return o}function
|
|
28
|
-
`),
|
|
29
|
-
`),o;let{frontmatter:s}=a;if(process.stdout.write(`${
|
|
30
|
-
`),process.stdout.write(`${
|
|
24
|
+
`),o;process.stdout.write(`${u([{label:"skills",value:String(n.length)},{label:"per turn",value:`at most ${r.maxActive}`},{label:"threshold",value:r.threshold.toFixed(2)},{label:"index",value:r.cached?"cached":"scanned"}])}
|
|
25
|
+
`),process.stdout.write(`${v("catalogue")}
|
|
26
|
+
`);for(let i of n){let l=i.scripts.length===0?"":` ${i.scripts.length} script(s)`,c=i.frontmatter.whenNotToUse===void 0?" no when-not-to-use":"",g=s[i.name],f=g===void 0?"":` ${g.source}@${g.commit}`;process.stdout.write(` ${i.name.padEnd(20)} ${String(i.tokens).padStart(5)} tokens${l}${f}${c}
|
|
27
|
+
`)}return o}function Ge(e,n){let r=n.name;if(r===void 0)return process.stdout.write("skills show needs a skill name — `skills list` names them\n"),d;let a=e.find((l)=>l.name===r);if(a===void 0){let l=e.map((c)=>c.name).join(", ");return process.stdout.write(`no skill named ${r}${l===""?"":`. Known: ${l}`}
|
|
28
|
+
`),d}if(n.json===!0)return process.stdout.write(`${JSON.stringify({ok:!0,skill:qe(a)},null,2)}
|
|
29
|
+
`),o;let{frontmatter:s}=a;if(process.stdout.write(`${u([{label:"name",value:a.name},{label:"directory",value:a.dir},{label:"body",value:`${a.tokens} tokens`},...s.license===void 0?[]:[{label:"license",value:s.license}],...s.compatibility===void 0?[]:[{label:"needs",value:s.compatibility}]])}
|
|
30
|
+
`),process.stdout.write(`${v("description")}
|
|
31
31
|
`),process.stdout.write(`${y(s.description)}
|
|
32
|
-
`),process.stdout.write(`${
|
|
33
|
-
`),process.stdout.write(`${y(s.whenNotToUse??`not declared — add metadata.${
|
|
34
|
-
`),a.scripts.length>0){process.stdout.write(`${
|
|
32
|
+
`),process.stdout.write(`${v("when not to use")}
|
|
33
|
+
`),process.stdout.write(`${y(s.whenNotToUse??`not declared — add metadata.${Xt()} to improve routing`)}
|
|
34
|
+
`),a.scripts.length>0){process.stdout.write(`${v("scripts")}
|
|
35
35
|
`);for(let l of a.scripts)process.stdout.write(`${Q(`${l.slug} — scripts/${l.file} via ${l.interpreter??"its own shebang"}`)}
|
|
36
|
-
`)}if(a.ignoredScripts.length>0){process.stdout.write(`${
|
|
36
|
+
`)}if(a.ignoredScripts.length>0){process.stdout.write(`${v("in scripts/ and not runnable")}
|
|
37
37
|
`);for(let l of a.ignoredScripts)process.stdout.write(`${Q(`${l.file} — ${l.reason}`)}
|
|
38
|
-
`)}if(s.allowedTools!==void 0)process.stdout.write(`${
|
|
38
|
+
`)}if(s.allowedTools!==void 0)process.stdout.write(`${v("allowed-tools, declared and not honoured")}
|
|
39
39
|
`),process.stdout.write(`${y(s.allowedTools)}
|
|
40
40
|
`),process.stdout.write(`${y("this runtime reads the field and never acts on it; permissions live in tools.policy")}
|
|
41
|
-
`);let i=Object.entries(s.metadata).filter(([l])=>l!==
|
|
42
|
-
`),process.stdout.write(`${
|
|
43
|
-
`);return o}function
|
|
44
|
-
`),n.strict===!0&&r.length>0?
|
|
41
|
+
`);let i=Object.entries(s.metadata).filter(([l])=>l!==Xt());if(i.length>0)process.stdout.write(`${v("metadata")}
|
|
42
|
+
`),process.stdout.write(`${u(i.map(([l,c])=>({label:l,value:c})))}
|
|
43
|
+
`);return o}function Xe(e,n){let r=Ei(e);if(n.json===!0)return process.stdout.write(`${JSON.stringify({ok:r.length===0,skills:e.map(W),findings:r},null,2)}
|
|
44
|
+
`),n.strict===!0&&r.length>0?d:o;let a=new Map;for(let s of r){let l=e.find((c)=>s.message.includes(` ${c.name}:`))?.name??"";a.set(l,[...a.get(l)??[],s])}for(let s of e){let i=a.get(s.name)??[];process.stdout.write(` ${s.name.padEnd(20)} ${i.length===0?"ok":`${i.length} warning(s)`}
|
|
45
45
|
`)}if(r.length===0)return process.stdout.write(`
|
|
46
46
|
no findings
|
|
47
47
|
`),o;for(let s of r)process.stdout.write(`
|
|
@@ -49,78 +49,78 @@ no findings
|
|
|
49
49
|
`),process.stdout.write(` hint: ${s.hint}
|
|
50
50
|
`);return process.stdout.write(`
|
|
51
51
|
${r.length} finding(s) — warnings, not failures. --strict exits non-zero.
|
|
52
|
-
`),n.strict===!0?
|
|
52
|
+
`),n.strict===!0?d:o}function W(e){return{name:e.name,tokens:e.tokens,hasWhenNotToUse:e.frontmatter.whenNotToUse!==void 0,scripts:e.scripts.map((n)=>n.slug),ignoredScripts:e.ignoredScripts}}function qe(e){return{...W(e),dir:e.dir,description:e.frontmatter.description,...e.frontmatter.whenNotToUse===void 0?{}:{whenNotToUse:e.frontmatter.whenNotToUse},...e.frontmatter.license===void 0?{}:{license:e.frontmatter.license},...e.frontmatter.compatibility===void 0?{}:{compatibility:e.frontmatter.compatibility},...e.frontmatter.allowedTools===void 0?{}:{allowedToolsDeclaredNotHonoured:e.frontmatter.allowedTools},metadata:e.frontmatter.metadata}}function Ve(e,n,r){let a=r?.dir??"./skills",s=de(a)?a:B(n,a);if(le(s,{recursive:!0}),r!==void 0)return r;let i=li({file:e,path:["skills"],value:ze(a)});if(process.stdout.write(`${u([{label:"enabled",value:`skills.dir = ${a}`}])}
|
|
53
53
|
`),i.reflowed)process.stdout.write(`${Q("the file was re-serialised to add the block — it is valid, and comments may have moved")}
|
|
54
|
-
`);return{dir:a,...
|
|
55
|
-
`),
|
|
56
|
-
`),
|
|
57
|
-
`),process.stdout.write(`${
|
|
54
|
+
`);return{dir:a,...fe}}var fe={maxActive:1,threshold:0.35};function ze(e){return{dir:e,...fe}}function Ye(e,n){let r=n.name;if(r===void 0)return process.stdout.write("skills new needs a name — `skills new <manifest> <name>`\n"),d;if(!ui(r))return process.stdout.write(`${r} is not a legal skill name: lowercase letters, digits and single hyphens, never leading, trailing or doubled, at most 64 characters.
|
|
55
|
+
`),d;let a=S(e,r);if(R(a))return process.stdout.write(`${a} already exists — nothing was written
|
|
56
|
+
`),d;return le(a,{recursive:!0}),Ke(S(a,"SKILL.md"),lo(mr,{SKILL_NAME:r,WHEN_NOT_TO_USE_KEY:Xt()}),"utf8"),process.stdout.write(`${u([{label:"created",value:S(a,"SKILL.md")},{label:"name",value:r}])}
|
|
57
|
+
`),process.stdout.write(`${v("next")}
|
|
58
58
|
${Q("edit the description — it is the only thing selection reads, so name the words someone would actually type")}
|
|
59
59
|
${Q("write the steps in place of the placeholder body")}
|
|
60
60
|
${Q("skills validate — it warns until the scaffold is replaced")}
|
|
61
61
|
${Q("restart the agent: the catalogue is scanned once at boot")}
|
|
62
|
-
`),o}function Qe(e,n){let r=n.name;if(r===void 0)return process.stdout.write("skills install needs something to install — `skills install <manifest> anthropic/pdf`, or a local path\n\n `sources search <what you need>` finds one.\n"),
|
|
63
|
-
`),
|
|
62
|
+
`),o}function Qe(e,n){let r=n.name;if(r===void 0)return process.stdout.write("skills install needs something to install — `skills install <manifest> anthropic/pdf`, or a local path\n\n `sources search <what you need>` finds one.\n"),d;let a=gr(r),s;if(!a){let m=Ze(r,n.sandboxEnv);if(m===void 0)return d;s=m}let i=s===void 0?B(r):s.entry.dir;if(s===void 0){if(!R(i)||!ce(i).isDirectory())return process.stdout.write(`${i} is not a directory
|
|
63
|
+
`),d;if(R(r)&&Fe(n.sandboxEnv).some((m)=>m.name===r))process.stdout.write(`note: ${r} is also a source, and a directory of that name here wins — \`sources search\` to install from the source instead
|
|
64
64
|
|
|
65
|
-
`)}let l={},c=[],
|
|
66
|
-
`),
|
|
67
|
-
`);for(let
|
|
68
|
-
`);if(c.length>0){if(process.stdout.write(`${
|
|
69
|
-
${c.slice(0,12).map((
|
|
65
|
+
`)}let l={},c=[],f=R(S(i,E))?[i]:C(i,{withFileTypes:!0}).filter((m)=>m.isDirectory()&&R(S(i,m.name,E))).map((m)=>S(i,m.name));if(f.length===0)return process.stdout.write(`no ${E} in ${i} or in any directory directly inside it
|
|
66
|
+
`),d;let w=[],b=[];for(let m of f){let h;try{h=eA(ae(m),De(S(m,E),"utf8")).frontmatter.name}catch(x){b.push(`${ae(m)} — ${x instanceof Error?x.message:String(x)}`);continue}let I=S(e,h);if(R(I)){b.push(`${h} — already installed at ${I}`);continue}if(Pe(m,I,{recursive:!0,preserveTimestamps:!0}),w.push(h),s!==void 0)l[h]={source:s.spec.name,url:s.spec.url,repoPath:s.entry.repoPath,commit:s.commit,...s.spec.ref===void 0?{}:{ref:s.spec.ref},installedAt:new Date().toISOString()};c.push(...me(I).map((x)=>`${h}/${Be(I,x)}`))}if(Object.keys(l).length>0)ie(e,l);if(n.collect!==void 0){for(let m of w)n.collect.push({name:m,ok:!0,runnable:c.filter((h)=>h.startsWith(`${m}/`))});for(let m of b){let h=m.indexOf(" — ");n.collect.push({name:h===-1?m:m.slice(0,h),ok:!1,reason:h===-1?m:m.slice(h+3),runnable:[]})}}if(n.quiet===!0)return w.length===0?d:o;process.stdout.write(`${u([{label:"from",value:s===void 0?i:`${s.spec.name} (${s.spec.url}) at ${s.commit}`},{label:"installed",value:w.join(", ")},{label:"skipped",value:b.length===0?"":String(b.length)}])}
|
|
67
|
+
`);for(let m of b)process.stdout.write(`${Q(m)}
|
|
68
|
+
`);if(c.length>0){if(process.stdout.write(`${v("this installed code, which the agent can run")}
|
|
69
|
+
${c.slice(0,12).map((m)=>Q(m)).join(`
|
|
70
70
|
`)}
|
|
71
71
|
`),c.length>12)process.stdout.write(`${y(`… and ${c.length-12} more`)}
|
|
72
72
|
`);process.stdout.write(`${y("read them before the agent does; `tools.policy` can name a skill script by slug")}
|
|
73
|
-
`)}if(w.length>0)process.stdout.write(`${
|
|
73
|
+
`)}if(w.length>0)process.stdout.write(`${v("next")}
|
|
74
74
|
${Q("skills validate — a vendored skill usually has no negative guidance, which is a warning and not a problem")}
|
|
75
75
|
${Q("restart the agent: the catalogue is scanned once at boot")}
|
|
76
|
-
`);return w.length===0?
|
|
76
|
+
`);return w.length===0?d:o}function Ze(e,n){let r;try{r=q(e)}catch(f){if(!p(f))throw f;process.stdout.write(`${f.message}
|
|
77
77
|
|
|
78
|
-
${
|
|
79
|
-
`);return}let a=
|
|
78
|
+
${f.hint}
|
|
79
|
+
`);return}let a=Fe(n),s=r.source===void 0?a:a.filter((f)=>f.name===r.source);if(s.length===0){let f=j(r.source??"",a.map((w)=>w.name));process.stdout.write(`no source called ${r.source}
|
|
80
80
|
|
|
81
|
-
${
|
|
82
|
-
`);return}if(s.filter((
|
|
81
|
+
${f===void 0?"`sources list` shows them.":`Did you mean ${f}?`}
|
|
82
|
+
`);return}if(s.filter((f)=>!Et(f.name,n)).length===s.length){process.stdout.write(`${s.length===1?`${s[0]?.name} has not`:"no source has"} been fetched yet, so there is nothing to install from
|
|
83
83
|
|
|
84
84
|
\`sources update${r.source===void 0?"":` ${r.source}`}\` first, or \`sources search ${r.skill}\` which fetches on demand.
|
|
85
|
-
`);return}let l=s.filter((
|
|
85
|
+
`);return}let l=s.filter((f)=>Et(f.name,n)).flatMap((f)=>Ht(f,n).map((w)=>({entry:w,spec:f}))),c=l.filter((f)=>f.entry.skill===r.skill);if(c.length===0){let f=j(r.skill,l.map((w)=>w.entry.skill));process.stdout.write(`no skill called ${r.skill} in ${s.map((w)=>w.name).join(", ")}
|
|
86
86
|
|
|
87
|
-
${
|
|
87
|
+
${f===void 0?`\`sources search ${r.skill}\` ranks what is there.`:`Did you mean ${f}? \`sources search ${r.skill}\` ranks the alternatives.`}
|
|
88
88
|
`);return}if(c.length>1){process.stdout.write(`${c.length} sources carry a skill called ${r.skill}
|
|
89
89
|
|
|
90
|
-
${c.map((
|
|
90
|
+
${c.map((f)=>` ${f.spec.name}/${f.entry.skill} — ${f.spec.url}
|
|
91
91
|
`).join("")}
|
|
92
92
|
Name one.
|
|
93
|
-
`);return}let
|
|
93
|
+
`);return}let g=c[0];if(g.entry.problem!==void 0){process.stdout.write(`${g.spec.name}/${g.entry.skill} will not load: ${g.entry.problem}
|
|
94
94
|
|
|
95
95
|
Nothing was copied. That is upstream's to fix — installing a hand-edited copy from a path is the way round it.
|
|
96
|
-
`);return}return{entry:
|
|
97
|
-
`),
|
|
96
|
+
`);return}return{entry:g.entry,spec:g.spec,commit:ar(g.spec.name,n).commit??"unknown"}}function me(e,n=0){if(n>3)return[];let r=[];for(let a of C(e,{withFileTypes:!0})){let s=S(e,a.name);if(a.isDirectory()){if(a.name.startsWith("."))continue;r.push(...me(s,n+1));continue}if(!a.isFile())continue;if((ce(s).mode&73)!==0||et.some((l)=>a.name.endsWith(l)))r.push(s)}return r}var et=[".py",".sh",".js",".ts",".mjs",".rb",".pl"];function tt(e,n){let r=n.name;if(r===void 0)return process.stdout.write("skills remove needs a name — `skills list` names them\n"),d;let a=S(e,r);if(!R(S(a,E))){let l=R(e)?C(e,{withFileTypes:!0}).filter((c)=>c.isDirectory()&&R(S(e,c.name,E))).map((c)=>c.name).join(", "):"";return process.stdout.write(`no skill named ${r}${l===""?"":`. Known: ${l}`}
|
|
97
|
+
`),d}let s=ge(a),i=N(e)[r];return Me(a,{recursive:!0,force:!0}),cr(e,r),process.stdout.write(`${u([{label:"removed",value:a},{label:"files",value:String(s)},...i===void 0?[]:[{label:"came from",value:`${i.source} (${i.url}) at ${i.commit}`}]])}
|
|
98
98
|
`),process.stdout.write(`${Q("restart the agent: the catalogue is scanned once at boot")}
|
|
99
|
-
`),o}function
|
|
100
|
-
`)})}function
|
|
99
|
+
`),o}function ge(e){let n=0;for(let r of C(e,{withFileTypes:!0}))n+=r.isDirectory()?ge(S(e,r.name)):1;return n}async function LA(e){let n=e.onStatus??(()=>{}),r=Fe(e.env),a=r.filter((i)=>!Et(i.name,e.env));for(let[i,l]of a.entries()){n(`fetching ${l.name} (${i+1} of ${a.length}) — once per machine, shared by every agent`);try{let c=await vA(l,{...e.env===void 0?{}:{env:e.env},...e.git===void 0?{}:{git:e.git}});n(`${l.name}: ${c.skills} skills`)}catch(c){n(`${l.name} could not be fetched: ${p(c)?c.message:String(c)}`)}}let s=r.filter((i)=>Et(i.name,e.env)).map((i)=>({spec:i,entries:Ht(i,e.env)}));return Vs(s)}async function nt(e){return await LA({...e,onStatus:(n)=>process.stdout.write(`${n}
|
|
100
|
+
`)})}function ds(e,n,r){let a=[];for(let s of e)Kt({action:"install",manifestPath:n,name:s,quiet:!0,collect:a,...r.env===void 0?{}:{sandboxEnv:r.env},...r.envOverlay===void 0?{}:{envOverlay:r.envOverlay}});return st(a)}function rt(e,n,r){let a=[];for(let s of e)Kt({action:"install",manifestPath:n,name:`${s.source}/${s.skill}`,quiet:!0,collect:a,...r.env===void 0?{}:{sandboxEnv:r.env},...r.envOverlay===void 0?{}:{envOverlay:r.envOverlay}});return a}function st(e){let n=mn(e);if(process.stdout.write(`${v(`installed ${n.installed.length} of ${n.total} skill${n.total===1?"":"s"}`,!0)}
|
|
101
101
|
`),n.installed.length>0)process.stdout.write(`${y(n.installed.join(", "))}
|
|
102
102
|
`);for(let r of n.failed)process.stdout.write(`${Q(`${r.name} — ${r.reason}`)}
|
|
103
|
-
`);if(n.runnable>0)process.stdout.write(`${
|
|
103
|
+
`);if(n.runnable>0)process.stdout.write(`${v("code that came with them")}
|
|
104
104
|
${y(`${n.runnable} runnable file${n.runnable===1?"":"s"} across ${n.withCode} skill${n.withCode===1?"":"s"} — \`skills show <agent> <skill>\` names them`)}
|
|
105
|
-
`);return n.failed.length}async function
|
|
105
|
+
`);return n.failed.length}async function us(e){if(Fe(e.env).length===0)return process.stdout.write(`no skill sources are configured
|
|
106
106
|
|
|
107
107
|
\`${t.slug} sources add <url>\` adds one — a repository holding a skills/ directory.
|
|
108
|
-
`),
|
|
108
|
+
`),d;if(!(it({plain:e.plain===!0,json:e.json===!0,oneShot:!1}).mode==="rich"&&e.json!==!0)){let m=await nt(e);if(m.length===0)return process.stdout.write(`nothing to show — no catalogue could be read
|
|
109
109
|
|
|
110
110
|
\`${t.slug} sources update\` reports why.
|
|
111
|
-
`),
|
|
111
|
+
`),d;if(e.json===!0)return ot(m);return lt(m,Ae(e.env))}let s=Ae(e.env);if(s.length===0)return process.stdout.write(`${v("no agent to install into",!0)}
|
|
112
112
|
${y(`\`${t.slug} init\` creates one, then this command installs into it.`)}
|
|
113
|
-
`),
|
|
114
|
-
`);if(
|
|
115
|
-
`);return
|
|
116
|
-
`),o}function at(e){let r=e.reduce((i,l)=>l.kind==="item"?Math.max(i,l.label.length):i,0),a=
|
|
117
|
-
${i.label}`);continue}if(i.kind==="group"){s.push(` ${i.label}`);continue}let l=
|
|
113
|
+
`),d;let[{render:i},{createElement:l},{SkillBrowser:c}]=await Promise.all([import("ink"),import("react"),import("./SkillBrowser-qc542n71.js")]),g,f=()=>{},w=new Promise((m)=>{f=m});St(),process.stdout.write(Rt);let b=i(l(c,{title:ct,agents:s,load:(m)=>LA({...e,onStatus:m}),install:async(m,h)=>mn(rt(m,h,e)),onDone:(m)=>{g=m,f()}}),{exitOnCtrlC:!1,...Ue()});if(U(()=>b.unmount()),await w,b.unmount(),We(),await Ct(),g===void 0)return o;for(let m of g.failed)process.stderr.write(`${m.name} — ${m.reason}
|
|
114
|
+
`);if(g.installed.length>0)process.stdout.write(`${g.installed.length} skill${g.installed.length===1?"":"s"} installed — \`${t.slug} skills list <agent>\` shows them
|
|
115
|
+
`);return g.failed.length===g.total&&g.total>0?d:o}function ot(e){return process.stdout.write(`${JSON.stringify({skills:e.filter((n)=>n.entry!==void 0).map((n)=>({ref:`${n.entry?.source}/${n.entry?.skill}`,source:n.entry?.source,skill:n.entry?.skill,tokens:n.entry?.tokens,scripts:n.entry?.scripts.length??0,description:n.entry?.description}))},null,2)}
|
|
116
|
+
`),o}function at(e){let r=e.reduce((i,l)=>l.kind==="item"?Math.max(i,l.label.length):i,0),a=To(100,r+12,{nameMax:46}),s=[];for(let i of e){if(i.kind==="source"){s.push(`
|
|
117
|
+
${i.label}`);continue}if(i.kind==="group"){s.push(` ${i.label}`);continue}let l=Ro({name:`${i.entry?.source}/${i.label}`,meta:i.meta??"",description:i.description??""},a);s.push(` ${l.name} ${l.meta} ${l.description}`.trimEnd())}return s.join(`
|
|
118
118
|
`)}function lt(e,n){process.stdout.write(`${at(e)}
|
|
119
|
-
`);let r=e.find((s)=>s.entry!==void 0)?.entry,a=n[0]?.ref??"<agent>";return process.stdout.write(`${
|
|
119
|
+
`);let r=e.find((s)=>s.entry!==void 0)?.entry,a=n[0]?.ref??"<agent>";return process.stdout.write(`${v("install")}
|
|
120
120
|
${y(`${t.slug} skills install ${a} ${r?.source??"anthropic"}/${r?.skill??"pdf"}`)}
|
|
121
121
|
${y(`${t.slug} skills — at a terminal, ticks several at once`,2)}
|
|
122
122
|
`),o}var ct=`${t.name} ${J}`;
|
|
123
|
-
export{
|
|
123
|
+
export{_A,kA,to,Fe,ls,Is,sr,jr,ar,Et,gr,vA,Ht,cr,Kt,LA,ds,us};
|
|
124
124
|
|
|
125
|
-
//# debugId=
|
|
126
|
-
//# sourceMappingURL=index-
|
|
125
|
+
//# debugId=1B827DA423CF072364756E2164756E21
|
|
126
|
+
//# sourceMappingURL=index-ry6a4bqh.js.map
|
|
@@ -9,6 +9,6 @@
|
|
|
9
9
|
"/**\n * Bare `skills`, with no arguments: the catalogue, ticked, installed into an agent you pick.\n *\n * This is the entry point the owner asked for and the one the surface was missing. Everything else\n * required knowing something first — `skills list <agent>` needs an agent, `sources search <words>` needs\n * words, and `skills install <agent> <source>/<skill>` needs the name of a skill you have not seen yet.\n * A person who wants skills has none of those, so the command that takes no arguments has to be the one\n * that shows what exists.\n *\n * ## What it does not do\n *\n * It does not fetch on a pipe. `--plain`, a redirect, or CI gets the same list as text, from the same\n * `browseRows`, with the two commands that install a skill non-interactively printed underneath — because\n * a picker is not scriptable and pretending otherwise means somebody's CI job hangs on a keypress.\n *\n * It also does not resolve an agent for you when there are several. Installing somebody else's executable\n * code into whichever agent happened to sort first is not a default worth having, so the second screen\n * asks — and with exactly one agent it does not, because there is nothing to ask.\n */\n\nimport { BRAND, isHarnessError, VERSION } from \"@dispach/core\"\nimport {\n type BrowseInput,\n type BrowseRow,\n browseRows,\n type InstallReport,\n installReport,\n} from \"#lib/browse\"\nimport { ENTER_ALT_SCREEN, EXIT_FAILURE, EXIT_OK } from \"#lib/const\"\nimport { flushOutput, markAltScreen, onExit, restoreTerminal } from \"#lib/exit\"\nimport { negotiateKeyboard } from \"#lib/keyboard\"\nimport { resolveModeFromProcess } from \"#lib/output\"\nimport { bullet, indent, section } from \"#lib/render\"\nimport { columnsFor, layoutRow } from \"#lib/rows\"\nimport { listAgents, type SandboxAgent } from \"#lib/sandbox\"\nimport {\n type CatalogueEntry,\n fetchSource,\n type Git,\n isCached,\n readCatalogue,\n} from \"#lib/source-cache\"\nimport { loadSources } from \"#lib/sources\"\nimport { type InstallOutcome, skillsCommand } from \"#skills\"\n\nexport interface BrowseOptions {\n readonly plain?: boolean\n readonly json?: boolean\n /** Injected by the tests, which never reach a network. */\n readonly git?: Git\n readonly env?: Readonly<Record<string, string | undefined>>\n /** Both overridden in tests; at a terminal they are measured from the stream. */\n readonly rows?: number\n readonly width?: number\n}\n\n/**\n * Fetch what is not cached, then build the rows. Shared by the command and by `init`.\n *\n * Announced before the work: the first run pays ~40 MB once per machine and every agent on it shares the\n * result, and a command that pauses for twenty seconds with no output is indistinguishable from one that\n * has hung — the failure this whole area's git wrapper exists to prevent.\n */\n/**\n * Fetch what is not cached, then build the rows — reporting progress through a callback.\n *\n * A callback rather than `process.stdout` because one caller is *inside* a rendered screen, where writing\n * to stdout paints over the frame Ink is managing. The other caller passes a writer and gets the same lines\n * on a pipe. This is the seam that lets the init wizard show a spinner instead of a printed line.\n */\nexport async function fetchCatalogue(\n options: BrowseOptions & { readonly onStatus?: (line: string) => void },\n): Promise<readonly BrowseRow[]> {\n const say = options.onStatus ?? (() => {})\n const sources = loadSources(options.env)\n const cold = sources.filter((spec) => !isCached(spec.name, options.env))\n for (const [at, spec] of cold.entries()) {\n say(\n `fetching ${spec.name} (${at + 1} of ${cold.length}) — once per machine, shared by every agent`,\n )\n try {\n const result = await fetchSource(spec, {\n ...(options.env === undefined ? {} : { env: options.env }),\n ...(options.git === undefined ? {} : { git: options.git }),\n })\n say(`${spec.name}: ${result.skills} skills`)\n } catch (error) {\n say(\n `${spec.name} could not be fetched: ${isHarnessError(error) ? error.message : String(error)}`,\n )\n }\n }\n const inputs: BrowseInput[] = sources\n .filter((spec) => isCached(spec.name, options.env))\n .map((spec) => ({ spec, entries: readCatalogue(spec, options.env) }))\n return browseRows(inputs)\n}\n\n/** The same thing for the paths that own the terminal, printing each line as it happens. */\nexport async function catalogueRows(options: BrowseOptions): Promise<readonly BrowseRow[]> {\n return await fetchCatalogue({\n ...options,\n onStatus: (line) => process.stdout.write(`${line}\\n`),\n })\n}\n\n/**\n * Install a list of `<source>/<skill>` refs, reporting once.\n *\n * Exported for `init`, whose wizard already collected the refs on its own screen — so it needs the install\n * without the picker.\n */\nexport function installRefs(\n refs: readonly string[],\n manifestPath: string,\n options: BrowseOptions & { readonly envOverlay?: Readonly<Record<string, string | undefined>> },\n): number {\n const outcomes: InstallOutcome[] = []\n for (const ref of refs) {\n skillsCommand({\n action: \"install\",\n manifestPath,\n name: ref,\n quiet: true,\n collect: outcomes,\n ...(options.env === undefined ? {} : { sandboxEnv: options.env }),\n ...(options.envOverlay === undefined ? {} : { envOverlay: options.envOverlay }),\n })\n }\n return report(outcomes)\n}\n\n/**\n * One `skills install` per skill rather than one call with a list.\n *\n * The command's contract is one ref, it reports per skill, and a partial failure leaves the successful\n * ones installed with a named reason for the rest — batching would have to reimplement all of that.\n */\nfunction collectInstall(\n skills: readonly CatalogueEntry[],\n manifestPath: string,\n options: BrowseOptions & { readonly envOverlay?: Readonly<Record<string, string | undefined>> },\n): readonly InstallOutcome[] {\n const outcomes: InstallOutcome[] = []\n for (const entry of skills) {\n skillsCommand({\n action: \"install\",\n manifestPath,\n name: `${entry.source}/${entry.skill}`,\n quiet: true,\n collect: outcomes,\n ...(options.env === undefined ? {} : { sandboxEnv: options.env }),\n ...(options.envOverlay === undefined ? {} : { envOverlay: options.envOverlay }),\n })\n }\n return outcomes\n}\n\n/**\n * The one report for a batch, as text.\n *\n * Renders from `installReport`, which the rich result card also reads — so a pipe and a terminal cannot\n * disagree about what happened. Eleven ticked skills used to produce eleven of these.\n */\nfunction report(outcomes: readonly InstallOutcome[]): number {\n const summary = installReport(outcomes)\n process.stdout.write(\n `${section(`installed ${summary.installed.length} of ${summary.total} skill${summary.total === 1 ? \"\" : \"s\"}`, true)}\\n`,\n )\n if (summary.installed.length > 0) {\n process.stdout.write(`${indent(summary.installed.join(\", \"))}\\n`)\n }\n for (const failure of summary.failed) {\n process.stdout.write(`${bullet(`${failure.name} — ${failure.reason}`)}\\n`)\n }\n if (summary.runnable > 0) {\n // Counted here and named per skill by `skills show`. Twelve file paths per skill across eleven\n // skills is 130 lines of disclosure nobody reads, which discloses less than one honest sentence.\n process.stdout.write(\n `${section(\"code that came with them\")}\\n${indent(\n `${summary.runnable} runnable file${summary.runnable === 1 ? \"\" : \"s\"} across ${summary.withCode} skill${summary.withCode === 1 ? \"\" : \"s\"} — \\`skills show <agent> <skill>\\` names them`,\n )}\\n`,\n )\n }\n return summary.failed.length\n}\n\nexport async function browseCommand(options: BrowseOptions): Promise<number> {\n const sources = loadSources(options.env)\n if (sources.length === 0) {\n process.stdout.write(\n `no skill sources are configured\\n\\n \\`${BRAND.slug} sources add <url>\\` adds one — a repository holding a skills/ directory.\\n`,\n )\n return EXIT_FAILURE\n }\n\n const decision = resolveModeFromProcess({\n plain: options.plain === true,\n json: options.json === true,\n oneShot: false,\n })\n const interactive = decision.mode === \"rich\" && options.json !== true\n\n // The plain and JSON paths still fetch first, because they have nothing to render while they wait\n // and a spinner on a pipe is noise. The rich path does the opposite, and that inversion is the\n // whole point of this stage.\n if (!interactive) {\n const rows = await catalogueRows(options)\n if (rows.length === 0) {\n process.stdout.write(\n `nothing to show — no catalogue could be read\\n\\n \\`${BRAND.slug} sources update\\` reports why.\\n`,\n )\n return EXIT_FAILURE\n }\n if (options.json === true) return printJson(rows)\n return plainList(rows, listAgents(options.env))\n }\n\n const agents = listAgents(options.env)\n if (agents.length === 0) {\n // Checked before the mount because it needs no catalogue: fetching 40 MB to then say there is\n // nowhere to put it would be the wrong order to find out in.\n process.stdout.write(\n `${section(\"no agent to install into\", true)}\\n${indent(`\\`${BRAND.slug} init\\` creates one, then this command installs into it.`)}\\n`,\n )\n return EXIT_FAILURE\n }\n\n const [{ render }, { createElement }, { SkillBrowser }] = await Promise.all([\n import(\"ink\"),\n import(\"react\"),\n import(\"#components/SkillBrowser\"),\n ])\n\n let report: InstallReport | undefined\n let finish: () => void = () => {}\n const closed = new Promise<void>((resolve) => {\n finish = resolve\n })\n\n // Alternate screen: this waits for a keypress, so it takes the terminal and gives it back. The\n // enter sequence and the flag are written together — a flag set without the sequence would make the\n // restore clear the screen the output was just written to.\n markAltScreen()\n process.stdout.write(ENTER_ALT_SCREEN)\n\n const instance = render(\n createElement(SkillBrowser, {\n title: BROWSE_TITLE,\n agents,\n load: (onStatus: (line: string) => void) => fetchCatalogue({ ...options, onStatus }),\n install: async (skills: readonly CatalogueEntry[], manifestPath: string) =>\n installReport(collectInstall(skills, manifestPath, options)),\n onDone: (result: InstallReport | undefined) => {\n report = result\n finish()\n },\n }),\n { exitOnCtrlC: false, ...negotiateKeyboard() },\n )\n onExit(() => instance.unmount())\n await closed\n instance.unmount()\n restoreTerminal()\n await flushOutput()\n\n // Restored first, then one line on the real screen. A clean exit leaves no trace of the browsing;\n // what it does leave is the pointer to what changed, and any failure, because hard rule 8 does not\n // stop applying because a screen has closed.\n if (report === undefined) return EXIT_OK\n for (const failure of report.failed) {\n process.stderr.write(`${failure.name} — ${failure.reason}\\n`)\n }\n if (report.installed.length > 0) {\n process.stdout.write(\n `${report.installed.length} skill${report.installed.length === 1 ? \"\" : \"s\"} installed — \\`${BRAND.slug} skills list <agent>\\` shows them\\n`,\n )\n }\n return report.failed.length === report.total && report.total > 0 ? EXIT_FAILURE : EXIT_OK\n}\n\n/** The JSON form, unchanged and deliberately not rendered. */\nfunction printJson(rows: readonly BrowseRow[]): number {\n process.stdout.write(\n `${JSON.stringify(\n {\n skills: rows\n .filter((row) => row.entry !== undefined)\n .map((row) => ({\n ref: `${row.entry?.source}/${row.entry?.skill}`,\n source: row.entry?.source,\n skill: row.entry?.skill,\n tokens: row.entry?.tokens,\n scripts: row.entry?.scripts.length ?? 0,\n description: row.entry?.description,\n })),\n },\n null,\n 2,\n )}\\n`,\n )\n return EXIT_OK\n}\n\n/**\n * The pipe's rendering: the same rows, laid out in the same columns, at a fixed 100.\n *\n * Fixed rather than measured, because a redirected stream has no width and output that changed shape\n * depending on the terminal it was *not* written to is output no test can pin.\n */\nfunction plainListText(rows: readonly BrowseRow[]): string {\n const width = 100\n const longest = rows.reduce(\n (max, row) => (row.kind === \"item\" ? Math.max(max, row.label.length) : max),\n 0,\n )\n // `longest + 12` and a matching ceiling, because each name is printed as `<source>/<skill>` here.\n const columns = columnsFor(width, longest + 12, { nameMax: 46 })\n const lines: string[] = []\n for (const row of rows) {\n if (row.kind === \"source\") {\n lines.push(`\\n${row.label}`)\n continue\n }\n if (row.kind === \"group\") {\n lines.push(` ${row.label}`)\n continue\n }\n const cells = layoutRow(\n {\n name: `${row.entry?.source}/${row.label}`,\n meta: row.meta ?? \"\",\n description: row.description ?? \"\",\n },\n columns,\n )\n lines.push(` ${cells.name} ${cells.meta} ${cells.description}`.trimEnd())\n }\n return lines.join(\"\\n\")\n}\n\n/**\n * The pipe's answer: the same rows, plus the two commands that install one without a keypress.\n *\n * Exits 0. Asking what exists is a legitimate question and it was answered — unlike bare `run`, which\n * exits non-zero on a pipe because nothing ran and something was supposed to.\n */\nfunction plainList(rows: readonly BrowseRow[], agents: readonly SandboxAgent[]): number {\n process.stdout.write(`${plainListText(rows)}\\n`)\n const example = rows.find((row) => row.entry !== undefined)?.entry\n const agent = agents[0]?.ref ?? \"<agent>\"\n process.stdout.write(\n `${section(\"install\")}\\n${indent(`${BRAND.slug} skills install ${agent} ${example?.source ?? \"anthropic\"}/${example?.skill ?? \"pdf\"}`)}\\n${indent(`${BRAND.slug} skills — at a terminal, ticks several at once`, 2)}\\n`,\n )\n return EXIT_OK\n}\n\n/** Kept beside the command so the banner and the picker cannot disagree about the version. */\nexport const BROWSE_TITLE = `${BRAND.name} ${VERSION}`\n"
|
|
10
10
|
],
|
|
11
11
|
"mappings": ";idA+BA,qBACI,eACA,kBACA,kBACA,gBACA,aACA,cACA,oBACA,iBAEJ,eAAS,cAAM,mBChBf,qBAAS,gBAAY,mBAAW,oBAAc,iBAC9C,eAAS,kBAmDF,IAAM,GAAyC,CAClD,CACI,KAAM,YACN,IAAK,uCACL,KAAM,SACN,QAAS,EACb,EACA,CACI,KAAM,SACN,IAAK,4CACL,KAAM,SACN,QAAS,GAET,QAAS,EACb,CACJ,EAGM,GAAc,6BAEb,SAAS,EAAY,CAAC,EAAuB,CAChD,OAAO,EAAK,OAAS,GAAK,EAAK,QAAU,IAAM,GAAY,KAAK,CAAI,EASxE,IAAM,EAAU,EAET,SAAS,EAAY,CAAC,EAA4D,CACrF,OAAO,EAAK,GAAY,CAAG,EAAG,cAAc,EAIzC,SAAS,CAAS,CAAC,EAA4D,CAClF,OAAO,EAAK,GAAY,CAAG,EAAG,SAAS,EAGpC,SAAS,CAAQ,CAAC,EAAc,EAA4D,CAC/F,OAAO,EAAK,EAAU,CAAG,EAAG,CAAI,EAGpC,SAAS,CAAY,CAAC,EAAkE,CACpF,IAAM,EAAO,GAAa,CAAG,EAC7B,GAAI,CAAC,GAAW,CAAI,EAAG,MAAO,CAAC,EAC/B,IAAI,EACJ,GAAI,CACA,EAAS,KAAK,MAAM,GAAa,EAAM,MAAM,CAAC,EAChD,MAAO,EAAO,CACZ,MAAM,IAAI,EAAa,CACnB,KAAM,2BACN,QAAS,GAAG,wBAA2B,aAAiB,MAAQ,EAAM,QAAU,OAAO,CAAK,IAC5F,KAAM,6EACV,CAAC,EAEL,GAAI,OAAO,IAAW,UAAY,IAAW,MAAQ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