dispach 0.2.2 → 0.2.4
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 +34 -27
- package/dist/APEv2Parser-x13n424p.js +5 -0
- package/dist/{FlacParser-7t7da7qy.js.map → APEv2Parser-x13n424p.js.map} +1 -1
- package/dist/{AiffParser-y21k3fak.js → AiffParser-ns1y9f0g.js} +3 -3
- package/dist/{AiffParser-y21k3fak.js.map → AiffParser-ns1y9f0g.js.map} +1 -1
- package/dist/App-wkpkwgjt.js +11 -0
- package/dist/{App-4w3qkcs4.js.map → App-wkpkwgjt.js.map} +3 -3
- package/dist/AsfParser-bae2a1yf.js +5 -0
- package/dist/{AsfParser-wd98k2h4.js.map → AsfParser-bae2a1yf.js.map} +1 -1
- package/dist/ConfigEditor-hy9jtas3.js +6 -0
- package/dist/{ConfigEditor-vk7vxaa6.js.map → ConfigEditor-hy9jtas3.js.map} +1 -1
- package/dist/DsdiffParser-s0zvxnfa.js +5 -0
- package/dist/{DsdiffParser-cbfaj500.js.map → DsdiffParser-s0zvxnfa.js.map} +1 -1
- package/dist/{DsfParser-tybrja4x.js → DsfParser-90mvzt4v.js} +3 -3
- package/dist/{DsfParser-tybrja4x.js.map → DsfParser-90mvzt4v.js.map} +1 -1
- package/dist/FlacParser-8xprykrh.js +5 -0
- package/dist/{APEv2Parser-etzjd528.js.map → FlacParser-8xprykrh.js.map} +1 -1
- package/dist/{KeyProbe-5anphmb7.js → KeyProbe-fk5krzks.js} +3 -3
- package/dist/{KeyProbe-5anphmb7.js.map → KeyProbe-fk5krzks.js.map} +1 -1
- package/dist/MP4Parser-nmvbkq21.js +5 -0
- package/dist/{MP4Parser-gc94h1n9.js.map → MP4Parser-nmvbkq21.js.map} +2 -2
- package/dist/{MatroskaParser-cy2k4fac.js → MatroskaParser-tsmz2qfq.js} +3 -3
- package/dist/{MatroskaParser-cy2k4fac.js.map → MatroskaParser-tsmz2qfq.js.map} +1 -1
- package/dist/{MpegParser-c460fwf0.js → MpegParser-y5fjpaz9.js} +3 -3
- package/dist/{MpegParser-c460fwf0.js.map → MpegParser-y5fjpaz9.js.map} +1 -1
- package/dist/MusepackParser-544q0byg.js +5 -0
- package/dist/{MusepackParser-8mq2eabg.js.map → MusepackParser-544q0byg.js.map} +2 -2
- package/dist/OggParser-v77rbjnt.js +5 -0
- package/dist/{OggParser-7dnc6apg.js.map → OggParser-v77rbjnt.js.map} +1 -1
- package/dist/Picker-32m79nmp.js +5 -0
- package/dist/{Picker-j7txnm7w.js.map → Picker-32m79nmp.js.map} +1 -1
- package/dist/SessionPicker-9p06npt5.js +5 -0
- package/dist/{SessionPicker-hpv2ncsb.js.map → SessionPicker-9p06npt5.js.map} +1 -1
- package/dist/SkillBrowser-ezdx3xsh.js +5 -0
- package/dist/{SkillBrowser-qc542n71.js.map → SkillBrowser-ezdx3xsh.js.map} +1 -1
- package/dist/WavPackParser-k623m0hk.js +5 -0
- package/dist/{WavPackParser-kt7cds9c.js.map → WavPackParser-k623m0hk.js.map} +1 -1
- package/dist/WaveParser-nj4p1vx8.js +5 -0
- package/dist/{WaveParser-g47ja0vy.js.map → WaveParser-nj4p1vx8.js.map} +1 -1
- package/dist/WizardApp-p350qspw.js +5 -0
- package/dist/{WizardApp-q4p979d1.js.map → WizardApp-p350qspw.js.map} +1 -1
- package/dist/channels-a9zx9yba.js +31 -0
- package/dist/{channels-4t89qpdt.js.map → channels-a9zx9yba.js.map} +1 -1
- package/dist/client.d.ts +43 -0
- package/dist/client.js +9 -9
- package/dist/client.js.map +5 -5
- package/dist/components/App.d.ts.map +1 -1
- package/dist/config-3mz4zwsf.js +24 -0
- package/dist/{config-35r6n1gh.js.map → config-3mz4zwsf.js.map} +2 -2
- package/dist/credential-ja7zmd4c.js +19 -0
- package/dist/{credential-dpdgg4j6.js.map → credential-ja7zmd4c.js.map} +1 -1
- package/dist/index-039ew35r.js +6 -0
- package/dist/index-039ew35r.js.map +10 -0
- package/dist/index-0dvs3a06.js +6 -0
- package/dist/{index-jc4kmfwa.js.map → index-0dvs3a06.js.map} +1 -1
- package/dist/{index-pszmnhgq.js → index-1cagdzqe.js} +9 -9
- package/dist/{index-pszmnhgq.js.map → index-1cagdzqe.js.map} +1 -1
- package/dist/index-2fw9e5gg.js +6 -0
- package/dist/{index-0444sh6x.js.map → index-2fw9e5gg.js.map} +1 -1
- package/dist/{index-a2eh8dnk.js → index-2td5h856.js} +12 -12
- package/dist/{index-a2eh8dnk.js.map → index-2td5h856.js.map} +1 -1
- package/dist/{index-m6fqx0ch.js → index-446exxcb.js} +7 -7
- package/dist/{index-m6fqx0ch.js.map → index-446exxcb.js.map} +1 -1
- package/dist/{index-snz49ndn.js → index-4fajxhdv.js} +4 -4
- package/dist/{index-snz49ndn.js.map → index-4fajxhdv.js.map} +1 -1
- package/dist/index-4j65jp20.js +9 -0
- package/dist/{index-38gs9anh.js.map → index-4j65jp20.js.map} +1 -1
- package/dist/index-5gn74n56.js +10 -0
- package/dist/{index-ew997be5.js.map → index-5gn74n56.js.map} +2 -2
- package/dist/index-5zpfz4kb.js +9 -0
- package/dist/{index-8h6kewy1.js.map → index-5zpfz4kb.js.map} +1 -1
- package/dist/index-60h4knj6.js +126 -0
- package/dist/{index-zce9gy22.js.map → index-60h4knj6.js.map} +2 -2
- package/dist/index-635wcsh1.js +5 -0
- package/dist/{index-2bsardvh.js.map → index-635wcsh1.js.map} +1 -1
- package/dist/index-67sfck4d.js +110 -0
- package/dist/index-67sfck4d.js.map +13 -0
- package/dist/index-7p8d1gf0.js +63 -0
- package/dist/{index-ytxbw8py.js.map → index-7p8d1gf0.js.map} +1 -1
- package/dist/index-7zgjkbb0.js +5 -0
- package/dist/{index-qgsdgbk8.js.map → index-7zgjkbb0.js.map} +1 -1
- package/dist/{index-zw6wyas6.js → index-86rb86nr.js} +4 -4
- package/dist/{index-zw6wyas6.js.map → index-86rb86nr.js.map} +1 -1
- package/dist/{index-fbsrhcga.js → index-8jejze0z.js} +4 -4
- package/dist/{index-fbsrhcga.js.map → index-8jejze0z.js.map} +1 -1
- package/dist/index-8k8y7edx.js +7 -0
- package/dist/{index-3826kf9t.js.map → index-8k8y7edx.js.map} +1 -1
- package/dist/index-8mkatm20.js +6 -0
- package/dist/{index-42e29zs4.js.map → index-8mkatm20.js.map} +1 -1
- package/dist/{index-3vzf253k.js → index-9k6qa50r.js} +7 -7
- package/dist/{index-3vzf253k.js.map → index-9k6qa50r.js.map} +1 -1
- package/dist/{index-yw3fby4n.js → index-a1axc952.js} +4 -4
- package/dist/{index-yw3fby4n.js.map → index-a1axc952.js.map} +1 -1
- package/dist/index-ayhdn87b.js +6 -0
- package/dist/{index-dzy19wtf.js.map → index-ayhdn87b.js.map} +1 -1
- package/dist/index-b8bfzbfe.js +6 -0
- package/dist/{index-7mn8ack9.js.map → index-b8bfzbfe.js.map} +2 -2
- package/dist/index-brh25jhq.js +6 -0
- package/dist/{index-fa9wvpyw.js.map → index-brh25jhq.js.map} +2 -2
- package/dist/index-c6qrcweh.js +6 -0
- package/dist/{index-nxhqf597.js.map → index-c6qrcweh.js.map} +1 -1
- package/dist/index-cb45233h.js +6 -0
- package/dist/{index-nvc24414.js.map → index-cb45233h.js.map} +1 -1
- package/dist/{index-51x0n5z0.js → index-dcy14zdn.js} +5 -5
- package/dist/{index-51x0n5z0.js.map → index-dcy14zdn.js.map} +1 -1
- package/dist/index-f6r3h2yh.js +8 -0
- package/dist/{index-twn9bfm2.js.map → index-f6r3h2yh.js.map} +1 -1
- package/dist/index-gezqawvw.js +11 -0
- package/dist/{index-fcsg95m5.js.map → index-gezqawvw.js.map} +1 -1
- package/dist/index-h787rq0h.js +12 -0
- package/dist/{index-wc4entme.js.map → index-h787rq0h.js.map} +3 -3
- package/dist/index-hd5nkwd7.js +74 -0
- package/dist/index-hd5nkwd7.js.map +13 -0
- package/dist/index-k6wq0j4q.js +6 -0
- package/dist/{index-gq1npngp.js.map → index-k6wq0j4q.js.map} +1 -1
- package/dist/index-kz01jz58.js +6 -0
- package/dist/{index-323jvr1g.js.map → index-kz01jz58.js.map} +1 -1
- package/dist/{index-kjqksgch.js → index-mgef1n4e.js} +10 -10
- package/dist/{index-kjqksgch.js.map → index-mgef1n4e.js.map} +1 -1
- package/dist/{index-haypwvzd.js → index-n197qdw1.js} +188 -188
- package/dist/{index-haypwvzd.js.map → index-n197qdw1.js.map} +3 -3
- package/dist/index-nndwx2wp.js +153 -0
- package/dist/{index-z157at3s.js.map → index-nndwx2wp.js.map} +2 -2
- package/dist/index-pz92ksp8.js +5 -0
- package/dist/{index-3c5jt6by.js.map → index-pz92ksp8.js.map} +1 -1
- package/dist/index-qj4adnfe.js +14 -0
- package/dist/{index-eqqd4k4f.js.map → index-qj4adnfe.js.map} +2 -2
- package/dist/index-r83jpct7.js +6 -0
- package/dist/{index-gbkma7ds.js.map → index-r83jpct7.js.map} +2 -2
- package/dist/{index-2zjh5zd5.js → index-rqfwd7j5.js} +4 -4
- package/dist/{index-2zjh5zd5.js.map → index-rqfwd7j5.js.map} +1 -1
- package/dist/index-s0f0s6n5.js +6 -0
- package/dist/{index-p1zy871m.js.map → index-s0f0s6n5.js.map} +1 -1
- package/dist/index-s0t15ndj.js +6 -0
- package/dist/{index-8edck2pr.js.map → index-s0t15ndj.js.map} +1 -1
- package/dist/index-tc054tcb.js +6 -0
- package/dist/{index-8tmv33mr.js.map → index-tc054tcb.js.map} +1 -1
- package/dist/{index-095hrkyr.js → index-ts8a1sdn.js} +6 -6
- package/dist/{index-095hrkyr.js.map → index-ts8a1sdn.js.map} +1 -1
- package/dist/index-tv52jhac.js +1252 -0
- package/dist/{index-qg9bn980.js.map → index-tv52jhac.js.map} +15 -14
- package/dist/index-x9nn57kk.js +6 -0
- package/dist/{index-1x8mzvz7.js.map → index-x9nn57kk.js.map} +1 -1
- package/dist/{index-ynsvkqgb.js → index-xyh98x7p.js} +4 -4
- package/dist/{index-ynsvkqgb.js.map → index-xyh98x7p.js.map} +1 -1
- package/dist/{index-ma6p7bt4.js → index-yy4v9kca.js} +4 -4
- package/dist/{index-ma6p7bt4.js.map → index-yy4v9kca.js.map} +1 -1
- package/dist/{index-bqdkm3de.js → index-yz0fcxky.js} +4 -4
- package/dist/{index-bqdkm3de.js.map → index-yz0fcxky.js.map} +1 -1
- package/dist/{index-p6ya59m6.js → index-z4adxmzm.js} +5 -5
- package/dist/{index-p6ya59m6.js.map → index-z4adxmzm.js.map} +1 -1
- package/dist/{index-4fj1k64j.js → index-zzpgsbn3.js} +4 -4
- package/dist/{index-4fj1k64j.js.map → index-zzpgsbn3.js.map} +1 -1
- package/dist/index.js +343 -343
- package/dist/index.js.map +7 -7
- package/dist/lib/source.d.ts +8 -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/run.d.ts.map +1 -1
- package/dist/transcript.d.ts.map +1 -1
- package/dist/web-7mdrcb8a.js +14 -0
- package/dist/{web-zph4h3p9.js.map → web-7mdrcb8a.js.map} +1 -1
- package/dist/wire.d.ts +19 -0
- package/dist/wire.js +5 -5
- package/dist/wire.js.map +4 -4
- package/dist/wrapper-4hdmdwft.js +5 -0
- package/dist/{wrapper-f662ny3r.js.map → wrapper-4hdmdwft.js.map} +1 -1
- package/package.json +1 -1
- package/dist/APEv2Parser-etzjd528.js +0 -5
- package/dist/App-4w3qkcs4.js +0 -11
- package/dist/AsfParser-wd98k2h4.js +0 -5
- package/dist/ConfigEditor-vk7vxaa6.js +0 -6
- package/dist/DsdiffParser-cbfaj500.js +0 -5
- package/dist/FlacParser-7t7da7qy.js +0 -5
- package/dist/MP4Parser-gc94h1n9.js +0 -5
- package/dist/MusepackParser-8mq2eabg.js +0 -5
- package/dist/OggParser-7dnc6apg.js +0 -5
- package/dist/Picker-j7txnm7w.js +0 -5
- package/dist/SessionPicker-hpv2ncsb.js +0 -5
- package/dist/SkillBrowser-qc542n71.js +0 -5
- package/dist/WavPackParser-kt7cds9c.js +0 -5
- package/dist/WaveParser-g47ja0vy.js +0 -5
- package/dist/WizardApp-q4p979d1.js +0 -5
- package/dist/channels-4t89qpdt.js +0 -31
- package/dist/config-35r6n1gh.js +0 -24
- package/dist/credential-dpdgg4j6.js +0 -19
- package/dist/index-0444sh6x.js +0 -6
- package/dist/index-1x8mzvz7.js +0 -6
- package/dist/index-2bsardvh.js +0 -5
- package/dist/index-323jvr1g.js +0 -6
- package/dist/index-3826kf9t.js +0 -7
- package/dist/index-38gs9anh.js +0 -9
- package/dist/index-3c5jt6by.js +0 -5
- package/dist/index-42e29zs4.js +0 -6
- package/dist/index-664xcamy.js +0 -110
- package/dist/index-664xcamy.js.map +0 -13
- package/dist/index-7mn8ack9.js +0 -6
- package/dist/index-8edck2pr.js +0 -6
- package/dist/index-8h6kewy1.js +0 -9
- package/dist/index-8tmv33mr.js +0 -6
- package/dist/index-9914wh1d.js +0 -6
- package/dist/index-9914wh1d.js.map +0 -10
- package/dist/index-dzy19wtf.js +0 -6
- package/dist/index-eqqd4k4f.js +0 -14
- package/dist/index-ew997be5.js +0 -10
- package/dist/index-fa9wvpyw.js +0 -6
- package/dist/index-fcsg95m5.js +0 -11
- package/dist/index-gbkma7ds.js +0 -6
- package/dist/index-gq1npngp.js +0 -6
- package/dist/index-jc4kmfwa.js +0 -6
- package/dist/index-nvc24414.js +0 -6
- package/dist/index-nxhqf597.js +0 -6
- package/dist/index-p1zy871m.js +0 -6
- package/dist/index-qg9bn980.js +0 -1213
- package/dist/index-qgsdgbk8.js +0 -5
- package/dist/index-r4ax3x4d.js +0 -74
- package/dist/index-r4ax3x4d.js.map +0 -13
- package/dist/index-twn9bfm2.js +0 -8
- package/dist/index-wc4entme.js +0 -12
- package/dist/index-ytxbw8py.js +0 -63
- package/dist/index-z157at3s.js +0 -153
- package/dist/index-zce9gy22.js +0 -126
- package/dist/web-zph4h3p9.js +0 -14
- package/dist/wrapper-f662ny3r.js +0 -5
package/dist/index-twn9bfm2.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{t,j,A,F,Qn}from"./index-qg9bn980.js";import{existsSync as l,mkdirSync as R,readdirSync as y,readFileSync as w,statSync as p,writeFileSync as S}from"node:fs";import{homedir as P}from"node:os";import{isAbsolute as k,join as i,resolve as m,sep as x}from"node:path";function f(n){return n!==void 0&&n!==""}function zt(n=process.env){return{noColor:f(n.NO_COLOR),dumbTerminal:n.TERM==="dumb",ci:f(n.CI)&&n.CI!=="false",debug:f(n.DEBUG),sandboxHome:f(n[`${t.envPrefix}HOME`])?n[`${t.envPrefix}HOME`]:void 0,noEnhancedKeys:f(n[`${t.envPrefix}NO_CSI_U`])}}function we(n=process.env){return zt(n).sandboxHome??i(P(),t.stateDir)}function q(n){return i(we(n),"agents")}function Dr(n){return i(we(n),"templates")}function G(n){return i(we(n),"store.db")}function ae(n){return i(we(n),"plugins")}function br(n,e){return i(ae(e),n)}function Eo(n){let e=i(we(n),"logs","server");return{out:i(e,"out.log"),err:i(e,"err.log")}}function pn(n,e){let o=i(we(e),"logs");return{out:i(o,`${n}.out.log`),err:i(o,`${n}.err.log`)}}function b(n){return i(n,".api-token")}function fn(n){try{let e=w(b(n),"utf8").trim();return e===""?void 0:e}catch{return}}function ri(n,e){R(n,{recursive:!0}),S(b(n),`${e}
|
|
3
|
-
`,{encoding:"utf8",mode:384})}function xs(n,e){let o=fn(n);if(o!==void 0)return o;let s=[];try{s=y(n).sort()}catch{}let g=s.map((r)=>Qn(i(n,r))[`${t.envPrefix}API_TOKEN`]).find((r)=>r!==void 0&&r!=="")??e();return ri(n,g),g}function Zt(n,e){let o=m(q(e)),s=m(n);return s===o||s.startsWith(o+x)}function Hs(n,e){if(Zt(n,e))return;return`note: ${m(n)} is outside the sandbox (${q(e)}) — this agent has no bare name, so every later command needs its path. Omit --dir to put it in the sandbox.`}function Ae(n){let e=q(n),o;try{o=y(e)}catch{return[]}let s=[];for(let r of o.sort()){let c=i(e,r),a=i(c,"agent.yaml");try{if(!p(c).isDirectory())continue}catch{continue}if(!l(a))continue;let h=0;try{h=p(a).mtimeMs}catch{}try{let u=F(a);s.push({ref:r,dir:c,manifestPath:a,mtimeMs:h,...u.id===void 0?{}:{id:u.id},...u.name===void 0?{}:{name:u.name},...u.modelId===void 0?{}:{modelId:u.modelId}})}catch(u){s.push({ref:r,dir:c,manifestPath:a,mtimeMs:h,problem:u instanceof Error?u.message:String(u)})}}let d=new Map;for(let r of s){if(r.id===void 0)continue;d.set(r.id,[...d.get(r.id)??[],r])}let g=s.map((r)=>{if(r.id===void 0||(d.get(r.id)?.length??0)<2)return r;return{...r,problem:`manifest id "${r.id}" is shared with another sandbox agent — their sessions share one history`}});return[...g.filter((r)=>r.problem===void 0),...g.filter((r)=>r.problem!==void 0)]}function ve(n,e,o=process.cwd()){let s=n.includes(x)||n.includes("/")||n.endsWith(".yaml")||n.endsWith(".yml"),d=k(n)?n:m(o,n);if(!s&&l(d)&&l(i(q(e),n)))process.stderr.write(`note: using ./${n} from the current directory; a sandbox agent "${n}" also exists — run it from elsewhere, or as ${i(q(e),n)}
|
|
4
|
-
`);if(s||l(d)){if(l(d)){if(p(d).isDirectory()){let a=i(d,"agent.yaml");if(l(a))return a;throw new A({code:"cli_agent_dir_without_manifest",message:`${n} is a directory with no agent.yaml inside.`,hint:"Point at the manifest itself, or at a directory that holds one. Sandbox agents are run by bare name, with no path separators."})}return d}throw new A({code:"cli_agent_path_missing",message:`${n} looks like a path, and nothing is there.`,hint:`Paths resolve against the current directory. For an agent in the sandbox, use its bare name — \`${t.slug} run <name>\` — which resolves under ${q(e)}.`})}let g=i(q(e),n,"agent.yaml");if(l(g))return g;let r=Ae(e).map((a)=>a.ref),c=j(n,r);throw new A({code:"cli_agent_unknown",message:`No agent named "${n}" in the sandbox${r.length===0?", which is empty":""}.`,hint:r.length===0?`Create one with \`${t.slug} init\`, or pass a path to an agent.yaml.`:`Known agents: ${r.join(", ")}.${c===void 0?"":` Did you mean ${c}?`} A path (./dir or file.yaml) is also accepted.`})}
|
|
5
|
-
export{zt,we,q,Dr,G,ae,br,Eo,pn,fn,ri,xs,Zt,Hs,Ae,ve};
|
|
6
|
-
|
|
7
|
-
//# debugId=BFDEA34526A327BA64756E2164756E21
|
|
8
|
-
//# sourceMappingURL=index-twn9bfm2.js.map
|
package/dist/index-wc4entme.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import{j,Mt,Ci}from"./index-qg9bn980.js";import{rt}from"./index-9914wh1d.js";import{ga}from"./index-dzy19wtf.js";import{In}from"./index-p6ya59m6.js";import{u}from"./index-3vzf253k.js";import{yi}from"./index-0444sh6x.js";import{Ca,fa}from"./index-8tmv33mr.js";var x=[{kind:"help",word:"/help",aliases:[],summary:"this list"},{kind:"status",word:"/status",aliases:[],summary:"model, channels, server, store — what this agent is and what is actually running"},{kind:"context",word:"/context",aliases:[],summary:"what is in the prompt right now, per slot, and what the percentage is a percentage of"},{kind:"restart",word:"/restart",aliases:[],summary:"restart the agent, for any configuration changes to take effect (memory files on disk are untouched)"},{kind:"tools",word:"/tools",aliases:[],summary:"what the model may call, and what the catalogue costs every turn"},{kind:"new",word:"/new",aliases:[],summary:"start a fresh conversation — this one stays in the store under its own key, and /sessions goes back to it"},{kind:"reset",word:"/reset",aliases:[],summary:"clear this conversation's history in place, keeping its key — memory files on disk are untouched"},{kind:"exit",word:"/exit",aliases:["/quit",":q"],summary:"leave — asks first, because the screen goes with it"}],Ki="⌥⏎ or a trailing \\ for a new line · ⏎ sends",Yi="/ commands · ⏎ sends · ⇧⏎ new line · ^C twice leaves",k=[{chord:"^C",summary:"cancel the turn in flight — at an idle prompt, press it twice to leave (the screen goes with it)"},{chord:"^D",summary:"leave when the line is empty; delete forward when it is not"},{chord:"^A / ^E",summary:"start of line / end of line"},{chord:"^B / ^F",summary:"back one character / forward one"},{chord:"^U / ^K",summary:"delete to the start of the line / to the end"},{chord:"^W",summary:"delete the word before the cursor"},{chord:"^P / ^N",summary:"previous / next of what you have already sent"},{chord:"↑ / ↓",summary:"a line up or down inside the message — the same history at its first and last line"},{chord:"⌥⏎ / ⇧⏎",summary:"a new line in the message — ⌥⏎ everywhere, ⇧⏎ where the terminal can tell it apart (`keys` says); a trailing \\ does the same; ⏎ sends it"},{chord:"⌥← / ⌥→",summary:"back one word / forward one — ^← / ^→ do the same"},{chord:"⌥⌫ / ⌥d",summary:"delete the word before the cursor / after it"},{chord:"Home / End",summary:"start of line / end of line, the same as ^A / ^E"},{chord:"cmd← / cmd→",summary:"start of line / end of line, where the terminal reports cmd (else ^A / ^E)"},{chord:"cmd↑ / cmd↓",summary:"the start / end of the whole message, however many lines it has"},{chord:"cmd⌫ / cmd⌦",summary:"delete to the start of the line / to the end"},{chord:"cmdz / cmd⇧z",summary:"undo / redo, the same as ^Z / ^Y"},{chord:"⇧ + any motion",summary:"select as the cursor moves — ⇧← a character, ⇧⌥← a word, ⇧cmd← to the line start, ⇧cmd↑ to the top; typing or ⌫ replaces what is selected"},{chord:"cmda",summary:"select the whole message"},{chord:"^R",summary:"search what you have already sent — ↑↓ to pick, ⏎ to use it, esc to cancel"},{chord:"^Z / ^Y",summary:"undo / redo the last edit — suspend is not available inside a session"},{chord:"PgUp / PgDn",summary:"back and forward through the conversation a screen at a time"},{chord:"⌥↑ / ⌥↓",summary:"the same, one row at a time"},{chord:"⌥PgUp / ⌥PgDn",summary:"the start of the conversation / back to the newest reply"},{chord:"^O / ⌥r",summary:"show the model's reasoning whole — folded to a few rows so the reply stays findable; ^O works on every terminal, ⌥r needs one that reports it"},{chord:"drag",summary:"select text — in the conversation it goes to the clipboard when you let go, so ⌘V works; in the input box it does not, because you are usually about to type over it (⌘C copies, ⌘X cuts). Double-click a word, triple-click a line, esc clears"},{chord:"esc",summary:"return to the newest reply when you have scrolled away"}],H=k.flatMap((e)=>[...e.chord.matchAll(/\^([A-Za-z])/g)].map((t)=>(t[1]??"").toLowerCase())),z=k.flatMap((e)=>[...e.chord.matchAll(/⌥([a-z])(?![A-Za-z])/g)].map((t)=>t[1]??""));var E=/^\/[A-Za-z][\w-]*$/,O=/^(\/[A-Za-z][\w-]*)\s+(.*)$/,b=new Map(x.flatMap((e)=>[e.word,...e.aliases].map((t)=>[t.toLowerCase(),e.kind])));function Hn(e,t=[]){let n=e.trim(),r=b.get(n.toLowerCase());if(r!==void 0)return{kind:r};let o=new Set(t);if(o.has(n.slice(1).toLowerCase())&&E.test(n))return{kind:"command",name:n.slice(1).toLowerCase(),rest:""};let d=O.exec(n);if(d!==null){let i=(d[1]??"").toLowerCase(),a=d[2]??"",l=b.get(i);if(l!==void 0)return{kind:l,rest:a};if(o.has(i.slice(1)))return{kind:"command",name:i.slice(1),rest:a};return}if(!E.test(n))return;let s=j(n.toLowerCase(),[...b.keys(),...t.map((i)=>`/${i}`)]);return{kind:"unknown",word:n,...s===void 0?{}:{nearest:s}}}var C=20;function _(e){return` ${[e.word,...e.aliases].join(" / ").padEnd(C)}${e.summary}`}function P(e){return` ${e.chord.padEnd(C)}${e.summary}`}function Kn(){return["commands:",...x.map(_),"","keys:",...k.map(P)].join(`
|
|
3
|
-
`)}function nn(e){let t=e.nearest===void 0?"":` Did you mean ${e.nearest}?`;return`${e.word} is not a command.${t} Type /help for the list — or add a space if you meant to say it to the model.`}function Xo(e){let t=e.describe();return{dialect:t.dialect,catalogueTokens:t.catalogueTokens,tools:e.tools.specs().map((n)=>({slug:n.slug,mutating:n.mutating,trust:n.trust??"trusted",...n.trustReason===void 0?{}:{trustReason:n.trustReason},summary:n.summary}))}}function DA(e){if(e.tools.length===0)return`no tools — this agent pinned none, so the model can only reply. Add them under tools.local or tools.pinned. (call format ${e.dialect})`;let t=e.tools.reduce((r,o)=>Math.max(r,o.slug.length),0),n=e.tools.flatMap((r)=>[` ${r.slug.padEnd(t)} ${r.mutating?"write":"read "} ${r.trust==="untrusted"?"untrusted":"trusted "} ${r.summary}`,...r.trustReason===void 0?[]:[`${" ".repeat(2+t+2+5+2+9+2)}trusted: ${r.trustReason}`]]);return[`${e.tools.length} tool${e.tools.length===1?"":"s"} · call format ${e.dialect} · catalogue ${e.catalogueTokens} tokens, on every turn`,...n].join(`
|
|
4
|
-
`)}function ji(e){let t=Math.max(1,e.window-e.wireTokens-e.reserveOutput),n=(e.total/t*100).toFixed(1),r=e.calibration.samples===0?"estimated — the estimator runs low on tool-heavy prompts":`corrected ×${e.calibration.ratio.toFixed(2)} from ${e.calibration.samples} reported ${e.calibration.samples===1?"figure":"figures"}`,o=e.slots.reduce((a,l)=>Math.max(a,l.label.length),0),d=e.slots.map((a)=>` ${String(a.slot).padStart(2)} ${a.label.padEnd(o)} ${String(a.tokens).padStart(6)}${a.pinned?" pinned":""}`),s=e.history.reduce((a,l)=>Math.max(a,l.label.length),0),i=e.history.length===0?[]:e.history.map((a)=>` ${a.label.padEnd(s)} ${String(a.tokens).padStart(6)} ${I(a.tokens,e.total).padStart(6)} ${String(a.messages).padStart(3)} msg`);return[u([{label:"window",value:`${e.window} (${e.windowSource})`},{label:"budget",value:`${t} = window ${e.window} − wire ${e.wireTokens} − reserveOutput ${e.reserveOutput}`},{label:"prompt",value:`${e.total} tokens · ${n}% of budget`},{label:"counted",value:r},{label:"compaction",value:e.lastCompaction??"none this session"},{label:"cache",value:e.cache===void 0?"not reported by this endpoint":`${e.cache.cached} of ${e.cache.prompt} prompt tokens (${I(e.cache.cached,e.cache.prompt)}) over ${e.cache.turns} turn${e.cache.turns===1?"":"s"} · ${e.cache.source}`}]),""," slots",...d,...i.length===0?[]:[""," history, by kind — share of the whole prompt",...i]].join(`
|
|
5
|
-
`)}function I(e,t){return t<=0?"—":`${(e/t*100).toFixed(1)}%`}function er(){let e=x.map((r)=>({word:r.word,summary:r.summary,kind:"session"})),t=new Set(e.map((r)=>r.word)),n=rt.filter((r)=>r.inSession!=="hidden").filter((r)=>!t.has(`/${r.name}`)).map((r)=>({word:`/${r.name}`,summary:r.summary,kind:r.inSession==="view"?"view":"output",spec:r}));return[...e,...n]}function Ji(e,t=er()){if(!/^\/[A-Za-z-]*$/.test(e))return;let n=e.slice(1).toLowerCase(),r=t.filter((o)=>o.word.slice(1).toLowerCase().startsWith(n));return{query:n,matches:r}}function Fr(e,t){if(e.matches.length===0)return;return e.matches[Math.max(0,Math.min(t,e.matches.length-1))]}function Yn(){return er().filter((e)=>e.kind!=="session").map((e)=>e.word.slice(1))}var M={items:[],live:void 0,status:"idle",nextId:0,turnFrom:void 0};function m(e,t,n,r={}){let o={id:`t${e.nextId}`,role:t,text:n,...r.stats===void 0?{}:{stats:r.stats},...r.callId===void 0?{}:{callId:r.callId},...r.pending===void 0?{}:{pending:r.pending}};return{...e,items:[...e.items,o],nextId:e.nextId+1}}function T(e){let t=e.live;if(t===void 0)return e;let n=e;if(t.reasoning!=="")n=m(n,"reasoning",t.reasoning);if(t.text!=="")n=m(n,"assistant",t.text);return{...n,live:void 0}}function qi(e,t){switch(t.kind){case"user":return m(e,"user",t.text);case"note":return m(e,"note",t.text);case"cancelling":return e.status==="idle"?e:{...e,status:"cancelling"};case"delta":return R(e,t.of,t.text);case"event":return K(e,t.event);case"trim":return L(e)}}function L(e){let t=e.items.length-fa;return t<=0?e:{...e,items:e.items.slice(t)}}function R(e,t,n){if(n==="")return e;let r=e.live??{text:"",reasoning:"",last:void 0};return{...e,live:{text:t==="text"?r.text+n:r.text,reasoning:t==="reasoning"?r.reasoning+n:r.reasoning,last:t},status:e.status==="cancelling"?"cancelling":"streaming"}}function w(e,t,n){let r=e.items.findIndex(t);if(r===-1)return e;let o=[...e.items],d=o[r],s=n(d.subagent,d);if(s===void 0)return e;return o[r]={...d,subagent:s},{...e,items:o}}function D(e,t){let n=(r)=>r.subagent?.sessionKey===t.sessionKey;if("slug"in t.data&&t.data.slug===Ci)return e;switch(t.type){case"tool.call":return w(e,n,(r)=>r===void 0?void 0:{...r,lines:[...r.lines,{callId:t.data.callId,text:`${t.data.slug} …`}]});case"tool.result":{let{slug:r,callId:o,ok:d,latencyMs:s}=t.data,i=`${r} — ${d?"ok":"failed"} · ${s} ms`;return w(e,n,(a)=>a===void 0?void 0:{...a,lines:a.lines.some((l)=>l.callId===o)?a.lines.map((l)=>l.callId===o?{callId:o,text:i}:l):[...a.lines,{callId:o,text:i}]})}case"tool.gated":return w(e,n,(r)=>r===void 0?void 0:{...r,lines:[...r.lines,{text:`${t.data.slug} — blocked: ${t.data.reason}`}]});default:return e}}function K(e,t){if(t.parentTurnId!==void 0)return D(e,t);switch(t.type){case"handoff.start":{let{kind:n,name:r,callId:o,sessionKey:d}=t.data;if(n!=="self"||o===void 0)return e;return w(e,(s)=>s.callId===o,()=>({name:r??"subagent",sessionKey:d,lines:[]}))}case"handoff.result":{let{sessionKey:n,steps:r,tokens:o,outcome:d}=t.data,s=`${r} step${r===1?"":"s"} · ${yi(o.prompt+o.output)} tokens · ${d==="ok"?"ok":d.replace("_"," ")}`;return w(e,(i)=>i.subagent?.sessionKey===n,(i)=>i===void 0?void 0:{...i,summary:s})}case"turn.start":return{...e,live:{text:"",reasoning:"",last:void 0},status:"thinking",turnFrom:e.items.length};case"model.result":return T(e);case"model.chunk":return R(e,t.data.kind,t.data.delta);case"tool.call":return{...m(T(e),"tool",`${t.data.slug}${t.data.mutating?" (changes state)":""}`,{callId:t.data.callId,pending:!0}),status:e.status==="cancelling"?"cancelling":"working"};case"tool.result":{let{slug:n,callId:r,ok:o,latencyMs:d,truncated:s}=t.data,i=`${n} — ${o?"ok":"failed"} · ${d} ms${s?" · observation trimmed":""}`,a=e.items.findIndex((p)=>p.callId===r&&p.pending===!0);if(a===-1)return m(e,o?"tool":"error",i);let l=[...e.items],c=l[a];return l[a]={id:c.id,role:o?"tool":"error",text:i,callId:r,...c.subagent===void 0?{}:{subagent:c.subagent}},{...e,items:l}}case"tool.gated":return m(e,"note",`${t.data.slug} — blocked: ${t.data.reason}`);case"tool.repair":return m(e,"note",t.data.slugs.length===0?`reply stopped short (${t.data.errors.join("; ")}), asking the model to finish`:`${t.data.slugs.join(", ")} — could not be used, asking the model again`);case"model.retry":{let{status:n,attempt:r,delayMs:o}=t.data;return m(e,"note",`retrying after HTTP ${n} — attempt ${r}, waiting ${o} ms`)}case"turn.end":{let{reason:n,steps:r,tokens:o,durationMs:d}=t.data,s={promptTokens:o.prompt,outputTokens:o.output,durationMs:d,steps:r,reason:n},i=T(e),a=e.turnFrom??0,l=-1;for(let h=i.items.length-1;h>=a;h-=1)if(i.items[h]?.role==="assistant"){l=h;break}let c=Mt(n,{steps:r,durationMs:d});if(l===-1)return{...m(i,"note",c??(n==="final"?"the model returned no text":""),{stats:s}),live:void 0,status:"idle",turnFrom:void 0};let p=[...i.items],y=p[l];p[l]={...y,stats:s};let g={...i,items:p,live:void 0,status:"idle",turnFrom:void 0};return c===void 0?g:m(g,"note",c)}case"error":{let{code:n,message:r,hint:o}=t.data;return m(e,"error",`${n}: ${r}
|
|
6
|
-
hint: ${o}`)}case"context.dropped":{let{messages:n,budget:r}=t.data;return m(e,"note",`context: ${n} older message(s) did not fit the ${r}-token budget and were left out`)}case"agent.warning":{let{code:n,message:r}=t.data;return m(e,"note",`${n}: ${r}`)}case"context.pressure":return{...e,pressure:t.data.fraction};case"compaction.stage":{let{stage:n,changed:r,before:o,after:d}=t.data;if(!r||n!=="collapse"&&n!=="reset")return e;return m(e,"note",`context: ${n==="reset"?"the conversation so far was replaced by a summary":"earlier turns were replaced by a summary"} (${o} → ${d} tokens)`)}case"phase.changed":{let{to:n,tools:r}=t.data;return{...m(e,"note",`phase: now in ${n} · ${r} tool${r===1?"":"s"} available`),phase:n}}case"context.reset":{let{warning:n}=t.data;return n===void 0?e:m(e,"note",`context: ${n}`)}default:return e}}function Ur(e){return`${e.promptTokens} prompt · ${e.outputTokens} output · ${e.durationMs} ms`}function Vi(e){if(e.length===0)return M;return m(M,"banner",e.join(`
|
|
7
|
-
`))}function Wi(e,t){let n=e;for(let r of t){if(r.text.trim()==="")continue;n=m(n,r.role,r.text)}return n}function zi(e){for(let t=e.length-1;t>=0;t-=1){let n=e[t]?.stats;if(n!==void 0)return n}return}function Zi(e,t){let n=[],r=e.filter((d)=>d.role!=="reasoning"||t.showReasoning),o=(d)=>({...d,lead:0,continuation:!1});for(let[d,s]of r.entries()){if(d>0)n.push(o({key:`${s.id}:gap`,role:s.role,text:""}));if(s.role==="banner"){let[c="",...p]=s.text.split(`
|
|
8
|
-
`);n.push(o({key:`${s.id}:title`,role:"banner",text:c,bold:!0}));for(let[y,g]of p.entries())for(let[h,f]of In(g,t.columns).entries())n.push({key:`${s.id}:note-${y}-${h}`,role:"banner",text:f,dim:!0,lead:0,continuation:h>0});continue}let i=ga[s.role],a=" ".repeat([...i].length),l=In(s.text,Math.max(1,t.columns-[...i].length));if(s.role==="reasoning"){let c=t.expandReasoning===!0?l.length:Math.min(l.length,Ca),p=l.length-c;n.push(o({key:`${s.id}:label`,role:"reasoning",dim:!0,text:p>0?`· reasoning · ${l.length} rows · ⌥r expands`:`· reasoning · ${l.length} row${l.length===1?"":"s"}`}));for(let[y,g]of l.slice(0,c).entries())n.push({key:`${s.id}:${y}`,role:"reasoning",text:`${a}${g}`,lead:a.length,continuation:y>0});if(p>0)n.push(o({key:`${s.id}:folded`,role:"reasoning",dim:!0,text:`${a}… ${p} more row${p===1?"":"s"}`}));continue}for(let[c,p]of l.entries())n.push({key:`${s.id}:${c}`,role:s.role,text:`${c===0?i:a}${p}`,lead:[...i].length,continuation:c>0});if(s.subagent!==void 0){let c=s.subagent,p=t.expandReasoning===!0,y=c.summary??"running",g=!p&&c.lines.length>0?` · ⌥r shows ${c.lines.length} call${c.lines.length===1?"":"s"}`:"";for(let[h,f]of In(`↳ subagent ${c.name} · ${y}${g}`,Math.max(1,t.columns-a.length)).entries())n.push(o({key:`${s.id}:sub-${h}`,role:s.role,text:`${a}${f}`,dim:!0}));if(p){let h=`${a} `;for(let[f,A]of c.lines.entries())for(let[S,N]of In(A.text,Math.max(1,t.columns-h.length)).entries())n.push({key:`${s.id}:sub-${f}-${S}`,role:s.role,text:`${h}${N}`,dim:!0,lead:h.length,continuation:S>0})}}if(s.stats!==void 0&&!t.quiet)n.push(o({key:`${s.id}:stats`,role:s.role,text:` ${Ur(s.stats)}`,dim:!0}))}return n}
|
|
9
|
-
export{Ki,Yi,Hn,Kn,nn,Xo,DA,ji,er,Ji,Fr,Yn,qi,Ur,Vi,Wi,zi,Zi};
|
|
10
|
-
|
|
11
|
-
//# debugId=5F962D660F0E2DE864756E2164756E21
|
|
12
|
-
//# sourceMappingURL=index-wc4entme.js.map
|