@claudiolabs/claudin 1.1.27 → 1.1.28
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/dist/chunks/AgentTool-1.1.28-hdgcephe.mjs +1 -0
- package/dist/chunks/App-1.1.28-rdhr58j6.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.28-dn460p70.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.28-k16de89c.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.28-19td2te8.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.28-011pgh7b.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.28-ych5693j.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.28-7p5bx0b5.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.28-nkct57y5.mjs +6 -0
- package/dist/chunks/Doctor-1.1.28-xerfvzx5.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.28-ne9ftnxx.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.28-07enf929.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.28-mcsd53vd.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.28-rmrgfzbv.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.28-w5mh2w2b.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.28-7q9nc8c9.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.28-08ytr6ma.mjs +1 -0
- package/dist/chunks/REPL-1.1.28-pxy1ag0k.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.28-b2pk1nan.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.28-xa772x92.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.28-6x6ca6kq.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.28-vy7p3j3e.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.28-egnv67by.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.28-y1ss2e0h.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.28-7w099741.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.28-49aey2f6.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.28-gw9e23bc.mjs +1 -0
- package/dist/chunks/add-dir-1.1.28-5j989gf2.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.28-hxk0wpj5.mjs +1 -0
- package/dist/chunks/agents-1.1.28-3yth9sa4.mjs +110 -0
- package/dist/chunks/agents-1.1.28-4qdh001q.mjs +3 -0
- package/dist/chunks/api-1.1.28-znpy0eyy.mjs +1 -0
- package/dist/chunks/asciicast-1.1.28-r6dsend4.mjs +1 -0
- package/dist/chunks/assistant-1.1.28-16hn1f6b.mjs +1 -0
- package/dist/chunks/auth-1.1.28-bw7dane8.mjs +1 -0
- package/dist/chunks/auth-1.1.28-ht6j3ag3.mjs +1 -0
- package/dist/chunks/autoMode-1.1.28-nyaf1s0s.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.28-sjjeha2m.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.28-070wmr6y.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.28-y5mjznxx.mjs +1 -0
- package/dist/chunks/branch-1.1.28-5d97ysjr.mjs +4 -0
- package/dist/chunks/bridge-1.1.28-62qv0wgq.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.28-m986jcxg.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.28-0fs5tkxx.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.28-pyr5gvmx.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.28-wpzz2yca.mjs +1 -0
- package/dist/chunks/btw-1.1.28-p1tk901s.mjs +1 -0
- package/dist/chunks/buddy-1.1.28-thrnzpdp.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.28-bb4xsnev.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.28-9p9fmxas.mjs +4 -0
- package/dist/chunks/caches-1.1.28-t6dq2xtp.mjs +1 -0
- package/dist/chunks/cd-1.1.28-84z1kqam.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.28-3x0y2w87.mjs +1 -0
- package/dist/chunks/claudemd-1.1.28-skmb6ar5.mjs +1 -0
- package/dist/chunks/clear-1.1.28-78f1rnc5.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.28-sx5qqtxb.mjs +1 -0
- package/dist/chunks/cli-1.1.28-01g60h7m.mjs +2 -0
- package/dist/chunks/cli-1.1.28-040xb4f8.mjs +2 -0
- package/dist/chunks/cli-1.1.28-0c0kb6x2.mjs +24 -0
- package/dist/chunks/cli-1.1.28-0njtm2nf.mjs +60 -0
- package/dist/chunks/cli-1.1.28-0vgve5rw.mjs +24 -0
- package/dist/chunks/cli-1.1.28-12g8qyfk.mjs +58 -0
- package/dist/chunks/cli-1.1.28-130w2y17.mjs +50 -0
- package/dist/chunks/cli-1.1.28-13j6r7pz.mjs +2 -0
- package/dist/chunks/cli-1.1.28-14abe08r.mjs +4 -0
- package/dist/chunks/cli-1.1.28-1jd8x2af.mjs +2 -0
- package/dist/chunks/cli-1.1.28-1mscaejt.mjs +2 -0
- package/dist/chunks/cli-1.1.28-1q409efb.mjs +2 -0
- package/dist/chunks/cli-1.1.28-1rrn1mhr.mjs +2 -0
- package/dist/chunks/cli-1.1.28-1vrff9a3.mjs +5 -0
- package/dist/chunks/cli-1.1.28-2arzkhzs.mjs +2 -0
- package/dist/chunks/cli-1.1.28-2dafhgjv.mjs +34 -0
- package/dist/chunks/cli-1.1.28-2esp2ssp.mjs +6 -0
- package/dist/chunks/cli-1.1.28-2q7dztmb.mjs +2 -0
- package/dist/chunks/cli-1.1.28-2wem9fnx.mjs +2 -0
- package/dist/chunks/cli-1.1.28-2ykcw73j.mjs +2 -0
- package/dist/chunks/cli-1.1.28-2zhmwh7t.mjs +2 -0
- package/dist/chunks/cli-1.1.28-30yw5q4z.mjs +4 -0
- package/dist/chunks/cli-1.1.28-347ygvzg.mjs +6 -0
- package/dist/chunks/cli-1.1.28-36891pwy.mjs +2 -0
- package/dist/chunks/cli-1.1.28-36y6830c.mjs +2 -0
- package/dist/chunks/cli-1.1.28-37rkgevh.mjs +2 -0
- package/dist/chunks/cli-1.1.28-3bj091x6.mjs +2 -0
- package/dist/chunks/cli-1.1.28-3fssr567.mjs +2 -0
- package/dist/chunks/cli-1.1.28-3p6j7k4a.mjs +2 -0
- package/dist/chunks/cli-1.1.28-4kda7s33.mjs +2 -0
- package/dist/chunks/cli-1.1.28-4kxqqtpz.mjs +2 -0
- package/dist/chunks/cli-1.1.28-4mpm44jj.mjs +9 -0
- package/dist/chunks/cli-1.1.28-4qh42y9g.mjs +2 -0
- package/dist/chunks/cli-1.1.28-4sx3zr2c.mjs +3 -0
- package/dist/chunks/cli-1.1.28-58rs1ja0.mjs +2 -0
- package/dist/chunks/cli-1.1.28-5edzsdcr.mjs +6 -0
- package/dist/chunks/cli-1.1.28-5y1xeh89.mjs +206 -0
- package/dist/chunks/cli-1.1.28-638dshxx.mjs +42 -0
- package/dist/chunks/cli-1.1.28-6bc84c0n.mjs +2 -0
- package/dist/chunks/cli-1.1.28-6x9c71q9.mjs +2 -0
- package/dist/chunks/cli-1.1.28-6y7vtevf.mjs +17 -0
- package/dist/chunks/cli-1.1.28-75thpvfa.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7amn29ks.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7e3nqd5c.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7fz4fqgd.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7g65bppm.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7nye6zs7.mjs +4 -0
- package/dist/chunks/cli-1.1.28-7pmtq82j.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7vvtkeeh.mjs +25 -0
- package/dist/chunks/cli-1.1.28-7x94aewp.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7zpfvkxq.mjs +2 -0
- package/dist/chunks/cli-1.1.28-81p0zmxc.mjs +2 -0
- package/dist/chunks/cli-1.1.28-83k0knzj.mjs +2 -0
- package/dist/chunks/cli-1.1.28-8ahmbnjh.mjs +2 -0
- package/dist/chunks/cli-1.1.28-8avwqt1z.mjs +4 -0
- package/dist/chunks/cli-1.1.28-8jrfznkw.mjs +2 -0
- package/dist/chunks/cli-1.1.28-8v2vx373.mjs +2 -0
- package/dist/chunks/cli-1.1.28-943993zt.mjs +2 -0
- package/dist/chunks/cli-1.1.28-94sk1z8g.mjs +5 -0
- package/dist/chunks/cli-1.1.28-95fs05hq.mjs +2 -0
- package/dist/chunks/cli-1.1.28-9e74kqtd.mjs +2 -0
- package/dist/chunks/cli-1.1.28-9s4pee5a.mjs +2 -0
- package/dist/chunks/cli-1.1.28-a00k75hj.mjs +2 -0
- package/dist/chunks/cli-1.1.28-a79xcdg3.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ad15rvp0.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ak2bzv1v.mjs +16 -0
- package/dist/chunks/cli-1.1.28-atrbc4s7.mjs +2 -0
- package/dist/chunks/cli-1.1.28-avxe0zxq.mjs +15 -0
- package/dist/chunks/cli-1.1.28-b2jq83aj.mjs +15 -0
- package/dist/chunks/cli-1.1.28-be8cxh1e.mjs +2 -0
- package/dist/chunks/cli-1.1.28-bfs5hmfp.mjs +3 -0
- package/dist/chunks/cli-1.1.28-bqtpnyqr.mjs +2 -0
- package/dist/chunks/cli-1.1.28-brh6rw23.mjs +2 -0
- package/dist/chunks/cli-1.1.28-bsqgt8m4.mjs +2 -0
- package/dist/chunks/cli-1.1.28-bwbz3v3j.mjs +2 -0
- package/dist/chunks/cli-1.1.28-bwgr7j8z.mjs +2 -0
- package/dist/chunks/cli-1.1.28-by5acg3a.mjs +2 -0
- package/dist/chunks/cli-1.1.28-c9nh8cpr.mjs +2 -0
- package/dist/chunks/cli-1.1.28-cb5wemmj.mjs +7 -0
- package/dist/chunks/cli-1.1.28-cfq2wwx5.mjs +2 -0
- package/dist/chunks/cli-1.1.28-cyrrpdkd.mjs +2 -0
- package/dist/chunks/cli-1.1.28-d5h3kve6.mjs +24 -0
- package/dist/chunks/cli-1.1.28-davs3ve8.mjs +58 -0
- package/dist/chunks/cli-1.1.28-denmqz0s.mjs +2 -0
- package/dist/chunks/cli-1.1.28-dqsxqszf.mjs +2 -0
- package/dist/chunks/cli-1.1.28-dy3tnnyd.mjs +3 -0
- package/dist/chunks/cli-1.1.28-e2mfhtpx.mjs +2 -0
- package/dist/chunks/cli-1.1.28-egskcwa5.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ek683x01.mjs +2 -0
- package/dist/chunks/cli-1.1.28-epzkhgww.mjs +2 -0
- package/dist/chunks/cli-1.1.28-erqn7gwg.mjs +6 -0
- package/dist/chunks/cli-1.1.28-es8var4t.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ev0gfjgf.mjs +24 -0
- package/dist/chunks/cli-1.1.28-evvcbjb6.mjs +2 -0
- package/dist/chunks/cli-1.1.28-f0vrbk1t.mjs +2 -0
- package/dist/chunks/cli-1.1.28-f1n8p9v2.mjs +12 -0
- package/dist/chunks/cli-1.1.28-f3rdt4zg.mjs +2 -0
- package/dist/chunks/cli-1.1.28-f8av9yzr.mjs +39 -0
- package/dist/chunks/cli-1.1.28-fetsedc8.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ffy07rnm.mjs +2 -0
- package/dist/chunks/cli-1.1.28-fjbefwwe.mjs +2 -0
- package/dist/chunks/cli-1.1.28-fnd6z5bq.mjs +2 -0
- package/dist/chunks/cli-1.1.28-fv1twt9b.mjs +8 -0
- package/dist/chunks/cli-1.1.28-h00s5n5y.mjs +2 -0
- package/dist/chunks/cli-1.1.28-h7p3dmnv.mjs +2 -0
- package/dist/chunks/cli-1.1.28-hb02sa63.mjs +2 -0
- package/dist/chunks/cli-1.1.28-hkfays5k.mjs +2 -0
- package/dist/chunks/cli-1.1.28-hx5j3q23.mjs +17 -0
- package/dist/chunks/cli-1.1.28-hxbkncxe.mjs +2 -0
- package/dist/chunks/cli-1.1.28-hyd7kkyr.mjs +2 -0
- package/dist/chunks/cli-1.1.28-j5m0kc75.mjs +3 -0
- package/dist/chunks/cli-1.1.28-j6nysca9.mjs +2 -0
- package/dist/chunks/cli-1.1.28-jqnzq23v.mjs +3 -0
- package/dist/chunks/cli-1.1.28-jr3jtfkf.mjs +2 -0
- package/dist/chunks/cli-1.1.28-jwg70mjs.mjs +2 -0
- package/dist/chunks/cli-1.1.28-k0ewezmj.mjs +20 -0
- package/dist/chunks/cli-1.1.28-k10f3f7z.mjs +3 -0
- package/dist/chunks/cli-1.1.28-k7pnt9ba.mjs +2 -0
- package/dist/chunks/cli-1.1.28-kaddwxsy.mjs +2 -0
- package/dist/chunks/cli-1.1.28-kc8f0nz7.mjs +3 -0
- package/dist/chunks/cli-1.1.28-khcgtk4a.mjs +2 -0
- package/dist/chunks/cli-1.1.28-knfg26kb.mjs +2 -0
- package/dist/chunks/cli-1.1.28-m6k4d2wx.mjs +2 -0
- package/dist/chunks/cli-1.1.28-mdexghj2.mjs +2 -0
- package/dist/chunks/cli-1.1.28-mk8zwqb2.mjs +4 -0
- package/dist/chunks/cli-1.1.28-mkm05wf9.mjs +2 -0
- package/dist/chunks/cli-1.1.28-mpjz8znf.mjs +3 -0
- package/dist/chunks/cli-1.1.28-mqmy0gy0.mjs +2 -0
- package/dist/chunks/cli-1.1.28-mvkxhjmj.mjs +2 -0
- package/dist/chunks/cli-1.1.28-mx413hqd.mjs +3 -0
- package/dist/chunks/cli-1.1.28-n2jx5w3n.mjs +2 -0
- package/dist/chunks/cli-1.1.28-n7v87yyn.mjs +2 -0
- package/dist/chunks/cli-1.1.28-n8d1x31e.mjs +2 -0
- package/dist/chunks/cli-1.1.28-neqd5cwa.mjs +2 -0
- package/dist/chunks/cli-1.1.28-nq2qxnzx.mjs +10 -0
- package/dist/chunks/cli-1.1.28-nqjbqqb6.mjs +4 -0
- package/dist/chunks/cli-1.1.28-nyvjfkx6.mjs +2 -0
- package/dist/chunks/cli-1.1.28-p11zcjmv.mjs +2 -0
- package/dist/chunks/cli-1.1.28-pabfwpqr.mjs +2 -0
- package/dist/chunks/cli-1.1.28-pdxwmetp.mjs +25 -0
- package/dist/chunks/cli-1.1.28-pfnc9p9n.mjs +2 -0
- package/dist/chunks/cli-1.1.28-prd0t983.mjs +9 -0
- package/dist/chunks/cli-1.1.28-pykx8k1j.mjs +4 -0
- package/dist/chunks/cli-1.1.28-q14qmewe.mjs +2 -0
- package/dist/chunks/cli-1.1.28-q43r6snq.mjs +2 -0
- package/dist/chunks/cli-1.1.28-q6dv65zx.mjs +2 -0
- package/dist/chunks/cli-1.1.28-qb921m5a.mjs +3 -0
- package/dist/chunks/cli-1.1.28-qf1qq8t0.mjs +3 -0
- package/dist/chunks/cli-1.1.28-qhqkr80z.mjs +45 -0
- package/dist/chunks/cli-1.1.28-qj312jgw.mjs +2 -0
- package/dist/chunks/cli-1.1.28-qjn28vhw.mjs +2 -0
- package/dist/chunks/cli-1.1.28-qrx5ata3.mjs +2 -0
- package/dist/chunks/cli-1.1.28-qvpamm5s.mjs +4 -0
- package/dist/chunks/cli-1.1.28-qvr8rkg2.mjs +2 -0
- package/dist/chunks/cli-1.1.28-qzg6n6hj.mjs +2 -0
- package/dist/chunks/cli-1.1.28-r81y1681.mjs +3 -0
- package/dist/chunks/cli-1.1.28-rbjeq16x.mjs +2 -0
- package/dist/chunks/cli-1.1.28-rbne7wtq.mjs +4 -0
- package/dist/chunks/cli-1.1.28-rez81jab.mjs +6 -0
- package/dist/chunks/cli-1.1.28-rq49kn4q.mjs +2 -0
- package/dist/chunks/cli-1.1.28-rt0aect8.mjs +2 -0
- package/dist/chunks/cli-1.1.28-rwfwz209.mjs +2 -0
- package/dist/chunks/cli-1.1.28-s1pbcd86.mjs +3 -0
- package/dist/chunks/cli-1.1.28-s2pcpdyc.mjs +2 -0
- package/dist/chunks/cli-1.1.28-s6w8jb6z.mjs +2 -0
- package/dist/chunks/cli-1.1.28-smb1frk6.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ss8nzmnb.mjs +12 -0
- package/dist/chunks/cli-1.1.28-sx3mmc5d.mjs +2 -0
- package/dist/chunks/cli-1.1.28-sz8sgxj4.mjs +2 -0
- package/dist/chunks/cli-1.1.28-t5yawarz.mjs +2 -0
- package/dist/chunks/cli-1.1.28-tt0c354s.mjs +2 -0
- package/dist/chunks/cli-1.1.28-v1p12e3g.mjs +2 -0
- package/dist/chunks/cli-1.1.28-v5r7bmzh.mjs +2 -0
- package/dist/chunks/cli-1.1.28-v5ypq0r2.mjs +2 -0
- package/dist/chunks/cli-1.1.28-v6ewa1y0.mjs +2 -0
- package/dist/chunks/cli-1.1.28-vctvnrwx.mjs +133 -0
- package/dist/chunks/cli-1.1.28-vf3j29kt.mjs +2 -0
- package/dist/chunks/cli-1.1.28-vgfss8e4.mjs +2 -0
- package/dist/chunks/cli-1.1.28-vje1ac31.mjs +7 -0
- package/dist/chunks/cli-1.1.28-vphadsag.mjs +2 -0
- package/dist/chunks/cli-1.1.28-vyzp74xh.mjs +3 -0
- package/dist/chunks/cli-1.1.28-w0kxa99b.mjs +2 -0
- package/dist/chunks/cli-1.1.28-w6cd3j36.mjs +20 -0
- package/dist/chunks/cli-1.1.28-wew8jymx.mjs +2 -0
- package/dist/chunks/cli-1.1.28-wmyy1pdj.mjs +2 -0
- package/dist/chunks/cli-1.1.28-wvj52k91.mjs +2 -0
- package/dist/chunks/cli-1.1.28-wze93r29.mjs +2 -0
- package/dist/chunks/cli-1.1.28-x04zkwy5.mjs +18 -0
- package/dist/chunks/cli-1.1.28-x0ypcq4e.mjs +2 -0
- package/dist/chunks/cli-1.1.28-x13sctb2.mjs +2 -0
- package/dist/chunks/cli-1.1.28-xv2tg10n.mjs +2 -0
- package/dist/chunks/cli-1.1.28-y173v5ak.mjs +133 -0
- package/dist/chunks/cli-1.1.28-y4k1f7he.mjs +2 -0
- package/dist/chunks/cli-1.1.28-y5w3ev7m.mjs +2 -0
- package/dist/chunks/cli-1.1.28-yaa1gft3.mjs +15 -0
- package/dist/chunks/cli-1.1.28-ypzyse5q.mjs +2 -0
- package/dist/chunks/cli-1.1.28-yv5gzenz.mjs +2 -0
- package/dist/chunks/cli-1.1.28-yyk292aq.mjs +6 -0
- package/dist/chunks/cli-1.1.28-z4kzjv3v.mjs +21 -0
- package/dist/chunks/cli-1.1.28-z5mbbt38.mjs +2 -0
- package/dist/chunks/cli-1.1.28-zarbrcn7.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ze1j03ww.mjs +1 -0
- package/dist/chunks/cli-1.1.28-zhftjycn.mjs +5553 -0
- package/dist/chunks/cli-1.1.28-zqpvgqxf.mjs +2 -0
- package/dist/chunks/cli-1.1.28-zv9zfwz9.mjs +2 -0
- package/dist/chunks/client-1.1.28-59t63af8.mjs +1 -0
- package/dist/chunks/color-1.1.28-gmbrq89g.mjs +1 -0
- package/dist/chunks/compact-1.1.28-14hmkmd6.mjs +3 -0
- package/dist/chunks/config-1.1.28-b69ey9g1.mjs +1 -0
- package/dist/chunks/config-1.1.28-cryax439.mjs +1 -0
- package/dist/chunks/constants-1.1.28-63cv4s6z.mjs +1 -0
- package/dist/chunks/context-1.1.28-09kfp2sa.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.28-h9279pbh.mjs +1 -0
- package/dist/chunks/conversation-1.1.28-qnj7ywxq.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.28-yjrmx9z1.mjs +1 -0
- package/dist/chunks/copy-1.1.28-az1n9y3n.mjs +9 -0
- package/dist/chunks/cost-1.1.28-507xt42s.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.28-m9ecjhc1.mjs +1 -0
- package/dist/chunks/createSession-1.1.28-gbrmw9ad.mjs +1 -0
- package/dist/chunks/debug-1.1.28-k9m06yz6.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.28-4sxh2jyw.mjs +1534 -0
- package/dist/chunks/desktop-1.1.28-ycc1hv5c.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.28-mxrqqjv6.mjs +1 -0
- package/dist/chunks/detection-1.1.28-06p2mev8.mjs +1 -0
- package/dist/chunks/diff-1.1.28-d9a2n60t.mjs +1 -0
- package/dist/chunks/doctor-1.1.28-qef12k2p.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.28-v5rq4x27.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.28-xr89w719.mjs +1 -0
- package/dist/chunks/effort-1.1.28-yjbwr68r.mjs +13 -0
- package/dist/chunks/engine-1.1.28-yv6qdcgp.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.28-tpjzc2ar.mjs +1 -0
- package/dist/chunks/envUtils-1.1.28-n17cxj8h.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.28-c7vj172q.mjs +1 -0
- package/dist/chunks/environments-1.1.28-08b7gpg6.mjs +1 -0
- package/dist/chunks/errors-1.1.28-eysc80qa.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.28-gk1ma509.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.28-4nc53n56.mjs +1 -0
- package/dist/chunks/exit-1.1.28-7rjnfzc2.mjs +1 -0
- package/dist/chunks/explorer-1.1.28-hf7jvkfg.mjs +1 -0
- package/dist/chunks/export-1.1.28-3xgdy7gr.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.28-6wkgsscs.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.28-03hnqa8n.mjs +1 -0
- package/dist/chunks/fast-1.1.28-gf0rb9by.mjs +1 -0
- package/dist/chunks/feedback-1.1.28-dvdyq5v7.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.28-rd6eskzg.mjs +1 -0
- package/dist/chunks/git-1.1.28-ktf61jaz.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.28-re8t0b2z.mjs +1 -0
- package/dist/chunks/goal-1.1.28-s7n55rqn.mjs +4 -0
- package/dist/chunks/growthbook-1.1.28-jcs0qzz8.mjs +1 -0
- package/dist/chunks/headless-1.1.28-yzfk04g2.mjs +2 -0
- package/dist/chunks/heapdump-1.1.28-hgfac8pe.mjs +6 -0
- package/dist/chunks/help-1.1.28-yhrv28x1.mjs +1 -0
- package/dist/chunks/hookChains-1.1.28-9y5pz734.mjs +3 -0
- package/dist/chunks/hooks-1.1.28-pwy1h39c.mjs +79 -0
- package/dist/chunks/hooks-1.1.28-xhtrbwa5.mjs +1 -0
- package/dist/chunks/ide-1.1.28-27vb56tk.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.28-b092deny.mjs +1 -0
- package/dist/chunks/import-1.1.28-bqs6ebec.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.28-0jb4nc2j.mjs +1 -0
- package/dist/chunks/index-1.1.28-0p3tfhd7.mjs +23 -0
- package/dist/chunks/index-1.1.28-30ges9rx.mjs +1 -0
- package/dist/chunks/index-1.1.28-3kg2kmpd.mjs +1 -0
- package/dist/chunks/index-1.1.28-76ztpb54.mjs +1 -0
- package/dist/chunks/index-1.1.28-a6fzpa8n.mjs +1 -0
- package/dist/chunks/index-1.1.28-ac1sbem8.mjs +9 -0
- package/dist/chunks/index-1.1.28-axnrgqkq.mjs +1 -0
- package/dist/chunks/index-1.1.28-b5b1qact.mjs +1 -0
- package/dist/chunks/index-1.1.28-bqm5cnw1.mjs +1 -0
- package/dist/chunks/index-1.1.28-bt937784.mjs +1 -0
- package/dist/chunks/index-1.1.28-bxtzy977.mjs +2 -0
- package/dist/chunks/index-1.1.28-dgnx1m4x.mjs +9 -0
- package/dist/chunks/index-1.1.28-dtfxav1q.mjs +1 -0
- package/dist/chunks/index-1.1.28-gk3v69b8.mjs +1 -0
- package/dist/chunks/index-1.1.28-m2nnkj3d.mjs +1 -0
- package/dist/chunks/index-1.1.28-qk8rhq5n.mjs +1 -0
- package/dist/chunks/index-1.1.28-vgc6r0g0.mjs +1 -0
- package/dist/chunks/index-1.1.28-w2a4k4md.mjs +2 -0
- package/dist/chunks/index-1.1.28-wajajmmp.mjs +1 -0
- package/dist/chunks/index-1.1.28-xaw4tf13.mjs +30 -0
- package/dist/chunks/index-1.1.28-y7jd8m9f.mjs +1 -0
- package/dist/chunks/index-1.1.28-ymg3kz4x.mjs +5 -0
- package/dist/chunks/index-1.1.28-z85wbmey.mjs +1 -0
- package/dist/chunks/init-1.1.28-vt168swt.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.28-vtkc85kf.mjs +1 -0
- package/dist/chunks/ink-1.1.28-8bcvzs97.mjs +1 -0
- package/dist/chunks/insights-1.1.28-hcccjwbm.mjs +870 -0
- package/dist/chunks/install-1.1.28-azeaj14w.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.28-jr58yj7c.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.28-ca73e004.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.28-v5fj6zfn.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.28-k8pjx51r.mjs +1 -0
- package/dist/chunks/keybindings-1.1.28-szefym9t.mjs +2 -0
- package/dist/chunks/knowledge-1.1.28-twc2bf6q.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.28-swqk1ppm.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.28-gvzkk593.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.28-j5fvzh5b.mjs +1 -0
- package/dist/chunks/log-1.1.28-744tvnnz.mjs +1 -0
- package/dist/chunks/main-1.1.28-ngd4qj24.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.28-v3t5y08t.mjs +1 -0
- package/dist/chunks/mcp-1.1.28-bjtwbjwv.mjs +17 -0
- package/dist/chunks/mcp-1.1.28-k0p4t3rs.mjs +1 -0
- package/dist/chunks/mcp-1.1.28-pxxge6kd.mjs +4 -0
- package/dist/chunks/mcpb-1.1.28-rjvsf8d4.mjs +1 -0
- package/dist/chunks/memory-1.1.28-437zyh3m.mjs +77 -0
- package/dist/chunks/model-1.1.28-1weg50dg.mjs +2 -0
- package/dist/chunks/model-1.1.28-qbnnaa17.mjs +1 -0
- package/dist/chunks/node-1.1.28-f9q7m0bb.mjs +15 -0
- package/dist/chunks/node-1.1.28-q18jbvyv.mjs +1 -0
- package/dist/chunks/oauth-1.1.28-nv1bmgrh.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.28-qt0bgn0p.mjs +14 -0
- package/dist/chunks/output-style-1.1.28-xpmnvzvz.mjs +1 -0
- package/dist/chunks/package-OS7RONXY-1.1.28-s8fma63p.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.28-9e7g8r3q.mjs +1 -0
- package/dist/chunks/parser-1.1.28-hahczgmc.mjs +1 -0
- package/dist/chunks/passes-1.1.28-73vxd2mh.mjs +1 -0
- package/dist/chunks/permissions-1.1.28-4dzfyh6m.mjs +1 -0
- package/dist/chunks/permissions-1.1.28-mh27xg9k.mjs +3 -0
- package/dist/chunks/plan-1.1.28-awnhzrk0.mjs +1 -0
- package/dist/chunks/plist-1.1.28-yf5fjx19.mjs +1 -0
- package/dist/chunks/plugin-1.1.28-m9j8cnkz.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.28-w4yvsmat.mjs +1 -0
- package/dist/chunks/plugins-1.1.28-rgr19gwa.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.28-bq157gz5.mjs +2 -0
- package/dist/chunks/print-1.1.28-g8smjzce.mjs +57 -0
- package/dist/chunks/process-1.1.28-tk5w2b0a.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.28-0a601ws2.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.28-2mq2y7nd.mjs +9 -0
- package/dist/chunks/prompt-1.1.28-tj8v37yx.mjs +1 -0
- package/dist/chunks/prompt-1.1.28-x4mxe7n2.mjs +1 -0
- package/dist/chunks/prompts-1.1.28-z2rx5cb6.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.28-cvce24s6.mjs +13 -0
- package/dist/chunks/provider-1.1.28-wd0k9dj9.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.28-ansdm0bp.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.28-xkpar3nj.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.28-kv8762wq.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.28-464hjqs0.mjs +26 -0
- package/dist/chunks/registry-1.1.28-a9wz892f.mjs +1 -0
- package/dist/chunks/release-notes-1.1.28-3dsn738r.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.28-8kfgxbx6.mjs +2 -0
- package/dist/chunks/remote-env-1.1.28-x46beyd7.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.28-1pr9890h.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.28-0dbsb9gr.mjs +1 -0
- package/dist/chunks/rename-1.1.28-m7z3qe6s.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.28-h8cn3e2b.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.28-dc94xnm0.mjs +1 -0
- package/dist/chunks/resume-1.1.28-mr6necqk.mjs +2 -0
- package/dist/chunks/rewind-1.1.28-dk5z09nd.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.28-g6c2bc4a.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.28-2r5z099n.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.28-9gkyj8zg.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.28-mvyww40e.mjs +1 -0
- package/dist/chunks/session-1.1.28-8xwfxnzq.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.28-6twnc7gm.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.28-w6yt6st1.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.28-rfvff5qy.mjs +1 -0
- package/dist/chunks/settings-1.1.28-b3wrgfej.mjs +1 -0
- package/dist/chunks/setup-1.1.28-6vt58sg8.mjs +12 -0
- package/dist/chunks/sinks-1.1.28-rdvsx829.mjs +1 -0
- package/dist/chunks/skills-1.1.28-b53h2c2v.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.28-mk4vmdef.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.28-0p8x3xh5.mjs +1 -0
- package/dist/chunks/state-1.1.28-fd27gqw0.mjs +1 -0
- package/dist/chunks/stats-1.1.28-fmezsyc4.mjs +1 -0
- package/dist/chunks/status-1.1.28-67a4bkc3.mjs +1 -0
- package/dist/chunks/stickers-1.1.28-0g68m8nd.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.28-548a2kyv.mjs +1 -0
- package/dist/chunks/tasks-1.1.28-h3xfz4f4.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.28-4twfmqhf.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.28-7p6f8wg0.mjs +1 -0
- package/dist/chunks/teleport-1.1.28-zdrc7v25.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.28-fbkk7v65.mjs +1 -0
- package/dist/chunks/theme-1.1.28-tj36fh0f.mjs +1 -0
- package/dist/chunks/thinkback-1.1.28-x1bq9k3h.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.28-3jdfk2q7.mjs +1 -0
- package/dist/chunks/toolPool-1.1.28-fpt8xrnv.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.28-mvqt18a8.mjs +1 -0
- package/dist/chunks/tools-1.1.28-a9t3fc6d.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.28-9e0gqehg.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.28-dhs0afg7.mjs +69 -0
- package/dist/chunks/types-1.1.28-51fcbp8c.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.28-d4ca5c58.mjs +4 -0
- package/dist/chunks/update-1.1.28-t9v2gpbh.mjs +72 -0
- package/dist/chunks/upgrade-1.1.28-12174ed0.mjs +1 -0
- package/dist/chunks/upload-1.1.28-whe18m8m.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.28-bnjrek99.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.28-0gh9dbnj.mjs +1 -0
- package/dist/chunks/usage-1.1.28-6m1bv4x5.mjs +1 -0
- package/dist/chunks/util-1.1.28-cvpx898d.mjs +1 -0
- package/dist/chunks/utils-1.1.28-ztac8cf7.mjs +1 -0
- package/dist/chunks/vim-1.1.28-rrv9qbr2.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.28-rtznty0c.mjs +13 -0
- package/dist/chunks/watcher-1.1.28-7v4bd9pm.mjs +1 -0
- package/dist/chunks/wiki-1.1.28-m0y2n8rc.mjs +132 -0
- package/dist/chunks/workflows-1.1.28-k9wt163q.mjs +1 -0
- package/dist/chunks/worktree-1.1.28-5bjehwgc.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.28-d1yy7627.mjs +1 -0
- package/dist/chunks/wrapper-1.1.28-qgyry9mh.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.27-db5m9gzv.mjs +0 -1
- package/dist/chunks/App-1.1.27-jz9pzpv7.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.27-b5mwy6bs.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.27-2kwhe57h.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.27-g5rhes32.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.27-jxn4ptdz.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.27-2veddc9s.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.27-mt31pcwm.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.27-ts2drs72.mjs +0 -6
- package/dist/chunks/Doctor-1.1.27-mh9ttzx4.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.27-qh4nye9z.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.27-054hfzze.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.27-gyk98cx3.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.27-agv9khdv.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.27-fhzyv0es.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.27-e7a3yzxe.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.27-zc2zrqpt.mjs +0 -1
- package/dist/chunks/REPL-1.1.27-zm25dsxc.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.27-93vdmd0g.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.27-rcmc5990.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.27-7mwc4ntd.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.27-jyjyshza.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.27-g4s9ej88.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.27-bfqad2sg.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.27-b39dysny.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.27-nerfy2hh.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.27-7akd7pzq.mjs +0 -1
- package/dist/chunks/add-dir-1.1.27-jfd8t81g.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.27-gvc8sgz1.mjs +0 -1
- package/dist/chunks/agents-1.1.27-pdcva4bt.mjs +0 -110
- package/dist/chunks/agents-1.1.27-vdvjpsev.mjs +0 -3
- package/dist/chunks/api-1.1.27-v0jrrv5d.mjs +0 -1
- package/dist/chunks/asciicast-1.1.27-a6ydv5ce.mjs +0 -1
- package/dist/chunks/assistant-1.1.27-gazcm6s7.mjs +0 -1
- package/dist/chunks/auth-1.1.27-d561ngfq.mjs +0 -1
- package/dist/chunks/auth-1.1.27-gp1b9bvj.mjs +0 -1
- package/dist/chunks/autoMode-1.1.27-187c13xb.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.27-v3ap18cy.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.27-hty6t0t8.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.27-efmykd33.mjs +0 -1
- package/dist/chunks/branch-1.1.27-d16zzy8m.mjs +0 -4
- package/dist/chunks/bridge-1.1.27-3znqrqgh.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.27-bbn4xfe7.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.27-hky0jg83.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.27-j9tfnew8.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.27-95k3w0tb.mjs +0 -1
- package/dist/chunks/btw-1.1.27-wx6yv865.mjs +0 -1
- package/dist/chunks/buddy-1.1.27-9afpekx4.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.27-f84tajyp.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.27-g9qwr4y9.mjs +0 -4
- package/dist/chunks/caches-1.1.27-fw7fsfx6.mjs +0 -1
- package/dist/chunks/cd-1.1.27-y9t4zyf7.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.27-182n35a2.mjs +0 -1
- package/dist/chunks/claudemd-1.1.27-gp9ndxg8.mjs +0 -1
- package/dist/chunks/clear-1.1.27-rrvq1asb.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.27-6esk4j27.mjs +0 -1
- package/dist/chunks/cli-1.1.27-090g18py.mjs +0 -2
- package/dist/chunks/cli-1.1.27-0h1xdjxp.mjs +0 -2
- package/dist/chunks/cli-1.1.27-0rz9qd34.mjs +0 -4
- package/dist/chunks/cli-1.1.27-0wv0k9sb.mjs +0 -2
- package/dist/chunks/cli-1.1.27-14xp8pk4.mjs +0 -2
- package/dist/chunks/cli-1.1.27-1hdrfsqd.mjs +0 -2
- package/dist/chunks/cli-1.1.27-1qrkn0zf.mjs +0 -25
- package/dist/chunks/cli-1.1.27-1rztfj2j.mjs +0 -2
- package/dist/chunks/cli-1.1.27-1vmmkyhn.mjs +0 -3
- package/dist/chunks/cli-1.1.27-1yvzf2v8.mjs +0 -2
- package/dist/chunks/cli-1.1.27-1yyef8w3.mjs +0 -2
- package/dist/chunks/cli-1.1.27-1ztbchyz.mjs +0 -2
- package/dist/chunks/cli-1.1.27-22f6jd6a.mjs +0 -2
- package/dist/chunks/cli-1.1.27-2922x4n2.mjs +0 -5
- package/dist/chunks/cli-1.1.27-2e7wwbbp.mjs +0 -2
- package/dist/chunks/cli-1.1.27-2mtc2dbf.mjs +0 -2
- package/dist/chunks/cli-1.1.27-3cjhx8c4.mjs +0 -4
- package/dist/chunks/cli-1.1.27-3eax0jv3.mjs +0 -6
- package/dist/chunks/cli-1.1.27-3mpdw95c.mjs +0 -2
- package/dist/chunks/cli-1.1.27-3qx1npht.mjs +0 -2
- package/dist/chunks/cli-1.1.27-42wr3qtg.mjs +0 -2
- package/dist/chunks/cli-1.1.27-48ezce33.mjs +0 -206
- package/dist/chunks/cli-1.1.27-4ch8wq6c.mjs +0 -3
- package/dist/chunks/cli-1.1.27-4cjm0m5c.mjs +0 -24
- package/dist/chunks/cli-1.1.27-4pm4y79r.mjs +0 -2
- package/dist/chunks/cli-1.1.27-4xegg6js.mjs +0 -2
- package/dist/chunks/cli-1.1.27-51sqdnt6.mjs +0 -2
- package/dist/chunks/cli-1.1.27-55evh9sy.mjs +0 -21
- package/dist/chunks/cli-1.1.27-575dbhvc.mjs +0 -2
- package/dist/chunks/cli-1.1.27-5jvkkbcy.mjs +0 -2
- package/dist/chunks/cli-1.1.27-5vejs4bz.mjs +0 -3
- package/dist/chunks/cli-1.1.27-6dm0tj1c.mjs +0 -2
- package/dist/chunks/cli-1.1.27-6f5wmt15.mjs +0 -2
- package/dist/chunks/cli-1.1.27-6g67vpnz.mjs +0 -2
- package/dist/chunks/cli-1.1.27-6s7e0eyt.mjs +0 -2
- package/dist/chunks/cli-1.1.27-6spv5ha8.mjs +0 -60
- package/dist/chunks/cli-1.1.27-704q0rhh.mjs +0 -2
- package/dist/chunks/cli-1.1.27-79504h3t.mjs +0 -2
- package/dist/chunks/cli-1.1.27-7a101p3z.mjs +0 -2
- package/dist/chunks/cli-1.1.27-7gnbh46g.mjs +0 -2
- package/dist/chunks/cli-1.1.27-7hws4y92.mjs +0 -4
- package/dist/chunks/cli-1.1.27-7jakzfss.mjs +0 -24
- package/dist/chunks/cli-1.1.27-7jc0gzqt.mjs +0 -4
- package/dist/chunks/cli-1.1.27-7wrz865m.mjs +0 -2
- package/dist/chunks/cli-1.1.27-7zpnm6dn.mjs +0 -2
- package/dist/chunks/cli-1.1.27-83exfkej.mjs +0 -2
- package/dist/chunks/cli-1.1.27-8em170zt.mjs +0 -2
- package/dist/chunks/cli-1.1.27-8fve969w.mjs +0 -2
- package/dist/chunks/cli-1.1.27-8gsqhqyf.mjs +0 -42
- package/dist/chunks/cli-1.1.27-8vkygf4q.mjs +0 -2
- package/dist/chunks/cli-1.1.27-8vrv0ver.mjs +0 -2
- package/dist/chunks/cli-1.1.27-8zkr609d.mjs +0 -4
- package/dist/chunks/cli-1.1.27-91eh3cyz.mjs +0 -3
- package/dist/chunks/cli-1.1.27-9427t707.mjs +0 -2
- package/dist/chunks/cli-1.1.27-94qc7asn.mjs +0 -2
- package/dist/chunks/cli-1.1.27-96ccvbyj.mjs +0 -2
- package/dist/chunks/cli-1.1.27-96yksxag.mjs +0 -2
- package/dist/chunks/cli-1.1.27-98bpezgc.mjs +0 -45
- package/dist/chunks/cli-1.1.27-9chfrr9e.mjs +0 -2
- package/dist/chunks/cli-1.1.27-9d0bkxf6.mjs +0 -15
- package/dist/chunks/cli-1.1.27-9m09gcqr.mjs +0 -2
- package/dist/chunks/cli-1.1.27-9sswt66t.mjs +0 -12
- package/dist/chunks/cli-1.1.27-a454a3rb.mjs +0 -2
- package/dist/chunks/cli-1.1.27-aahmf6wc.mjs +0 -2
- package/dist/chunks/cli-1.1.27-b0s2nhr1.mjs +0 -24
- package/dist/chunks/cli-1.1.27-b3bkjfyh.mjs +0 -2
- package/dist/chunks/cli-1.1.27-b42yen3p.mjs +0 -2
- package/dist/chunks/cli-1.1.27-bpbp93hw.mjs +0 -2
- package/dist/chunks/cli-1.1.27-bwc1f1yx.mjs +0 -15
- package/dist/chunks/cli-1.1.27-byba8306.mjs +0 -20
- package/dist/chunks/cli-1.1.27-byxgdj3w.mjs +0 -2
- package/dist/chunks/cli-1.1.27-cth2wwrh.mjs +0 -2
- package/dist/chunks/cli-1.1.27-cth3rq9k.mjs +0 -2
- package/dist/chunks/cli-1.1.27-cw1p9ac2.mjs +0 -3
- package/dist/chunks/cli-1.1.27-cw9bqwta.mjs +0 -2
- package/dist/chunks/cli-1.1.27-cxy3fqs0.mjs +0 -2
- package/dist/chunks/cli-1.1.27-d0k9rgj1.mjs +0 -2
- package/dist/chunks/cli-1.1.27-d1zgycfk.mjs +0 -2
- package/dist/chunks/cli-1.1.27-d4km9s81.mjs +0 -2
- package/dist/chunks/cli-1.1.27-d4w9gqgs.mjs +0 -50
- package/dist/chunks/cli-1.1.27-d5q76t7c.mjs +0 -3
- package/dist/chunks/cli-1.1.27-d7r6x0ew.mjs +0 -2
- package/dist/chunks/cli-1.1.27-dfww0knt.mjs +0 -2
- package/dist/chunks/cli-1.1.27-dhzbmaf3.mjs +0 -2
- package/dist/chunks/cli-1.1.27-e2p4abq5.mjs +0 -2
- package/dist/chunks/cli-1.1.27-e53f6at7.mjs +0 -2
- package/dist/chunks/cli-1.1.27-eag2dgb4.mjs +0 -2
- package/dist/chunks/cli-1.1.27-es2rn3j6.mjs +0 -2
- package/dist/chunks/cli-1.1.27-eypype7d.mjs +0 -8
- package/dist/chunks/cli-1.1.27-f218cppx.mjs +0 -34
- package/dist/chunks/cli-1.1.27-f3cv6wk1.mjs +0 -2
- package/dist/chunks/cli-1.1.27-fary910g.mjs +0 -2
- package/dist/chunks/cli-1.1.27-fc1my4zp.mjs +0 -2
- package/dist/chunks/cli-1.1.27-fdhry9qy.mjs +0 -2
- package/dist/chunks/cli-1.1.27-fr8vw4x1.mjs +0 -2
- package/dist/chunks/cli-1.1.27-fw9r8cwg.mjs +0 -4
- package/dist/chunks/cli-1.1.27-fxmty4t4.mjs +0 -5
- package/dist/chunks/cli-1.1.27-g8n6nr2e.mjs +0 -1
- package/dist/chunks/cli-1.1.27-gan2msv5.mjs +0 -3
- package/dist/chunks/cli-1.1.27-ge84mp6e.mjs +0 -2
- package/dist/chunks/cli-1.1.27-ggg6m9qt.mjs +0 -2
- package/dist/chunks/cli-1.1.27-gmknn4xh.mjs +0 -2
- package/dist/chunks/cli-1.1.27-gnhg7s3x.mjs +0 -2
- package/dist/chunks/cli-1.1.27-gnvm8gat.mjs +0 -2
- package/dist/chunks/cli-1.1.27-h7ytc7jg.mjs +0 -9
- package/dist/chunks/cli-1.1.27-hafa2nxa.mjs +0 -2
- package/dist/chunks/cli-1.1.27-hcnrf84n.mjs +0 -2
- package/dist/chunks/cli-1.1.27-hh78rvvf.mjs +0 -2
- package/dist/chunks/cli-1.1.27-hhkkts5k.mjs +0 -6
- package/dist/chunks/cli-1.1.27-hrwxg46q.mjs +0 -2
- package/dist/chunks/cli-1.1.27-hs6hv3bh.mjs +0 -20
- package/dist/chunks/cli-1.1.27-j362egg2.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jcn2gvsw.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jfqvck1y.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jg3tymed.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jh817v59.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jm7jbypb.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jmegwyzr.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jmz9pczh.mjs +0 -3
- package/dist/chunks/cli-1.1.27-jt1gb6nf.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jvs6enw9.mjs +0 -2
- package/dist/chunks/cli-1.1.27-k115ge4q.mjs +0 -6
- package/dist/chunks/cli-1.1.27-k2fyp83y.mjs +0 -2
- package/dist/chunks/cli-1.1.27-k6dwtkrp.mjs +0 -2
- package/dist/chunks/cli-1.1.27-k9jt24bv.mjs +0 -2
- package/dist/chunks/cli-1.1.27-kdv6nw9e.mjs +0 -12
- package/dist/chunks/cli-1.1.27-kerbk21s.mjs +0 -2
- package/dist/chunks/cli-1.1.27-kgpk1m6k.mjs +0 -2
- package/dist/chunks/cli-1.1.27-kkt8se1z.mjs +0 -2
- package/dist/chunks/cli-1.1.27-kpqha1ce.mjs +0 -2
- package/dist/chunks/cli-1.1.27-krtd4rf3.mjs +0 -3
- package/dist/chunks/cli-1.1.27-m2n4m352.mjs +0 -2
- package/dist/chunks/cli-1.1.27-m5wtrd2b.mjs +0 -2
- package/dist/chunks/cli-1.1.27-m6ne80zc.mjs +0 -2
- package/dist/chunks/cli-1.1.27-maxx6jt7.mjs +0 -4
- package/dist/chunks/cli-1.1.27-me6jhh1k.mjs +0 -2
- package/dist/chunks/cli-1.1.27-mqt20a61.mjs +0 -2
- package/dist/chunks/cli-1.1.27-mr1wxvzb.mjs +0 -3
- package/dist/chunks/cli-1.1.27-n09bs0db.mjs +0 -2
- package/dist/chunks/cli-1.1.27-n3fg97y6.mjs +0 -2
- package/dist/chunks/cli-1.1.27-n6vfvfw4.mjs +0 -2
- package/dist/chunks/cli-1.1.27-nbgxr715.mjs +0 -10
- package/dist/chunks/cli-1.1.27-njcbrvnc.mjs +0 -58
- package/dist/chunks/cli-1.1.27-nmp82pea.mjs +0 -3
- package/dist/chunks/cli-1.1.27-nx2yxmg9.mjs +0 -3
- package/dist/chunks/cli-1.1.27-nxkc7nfr.mjs +0 -2
- package/dist/chunks/cli-1.1.27-ny95570d.mjs +0 -133
- package/dist/chunks/cli-1.1.27-p1sh0ft2.mjs +0 -2
- package/dist/chunks/cli-1.1.27-p7kjkqhn.mjs +0 -2
- package/dist/chunks/cli-1.1.27-p99q7a22.mjs +0 -133
- package/dist/chunks/cli-1.1.27-pab2avnw.mjs +0 -2
- package/dist/chunks/cli-1.1.27-pyjha53q.mjs +0 -2
- package/dist/chunks/cli-1.1.27-q2msmggk.mjs +0 -2
- package/dist/chunks/cli-1.1.27-q830jx95.mjs +0 -2
- package/dist/chunks/cli-1.1.27-qcvp3n4v.mjs +0 -2
- package/dist/chunks/cli-1.1.27-qkzc0vzs.mjs +0 -2
- package/dist/chunks/cli-1.1.27-qnzhd86k.mjs +0 -2
- package/dist/chunks/cli-1.1.27-r32k5nw7.mjs +0 -4
- package/dist/chunks/cli-1.1.27-r335xv52.mjs +0 -6
- package/dist/chunks/cli-1.1.27-r3r36jvq.mjs +0 -25
- package/dist/chunks/cli-1.1.27-r4ck0s0j.mjs +0 -2
- package/dist/chunks/cli-1.1.27-r9jjyax0.mjs +0 -7
- package/dist/chunks/cli-1.1.27-rct7c74m.mjs +0 -2
- package/dist/chunks/cli-1.1.27-rnwaxvgf.mjs +0 -2
- package/dist/chunks/cli-1.1.27-rqdq9mhj.mjs +0 -2
- package/dist/chunks/cli-1.1.27-ryd2t3vk.mjs +0 -2
- package/dist/chunks/cli-1.1.27-s62prq89.mjs +0 -2
- package/dist/chunks/cli-1.1.27-sbj1hdj9.mjs +0 -2
- package/dist/chunks/cli-1.1.27-scfswqdr.mjs +0 -2
- package/dist/chunks/cli-1.1.27-sdw0p0c4.mjs +0 -58
- package/dist/chunks/cli-1.1.27-sngxwsap.mjs +0 -2
- package/dist/chunks/cli-1.1.27-sr4a2gd6.mjs +0 -2
- package/dist/chunks/cli-1.1.27-sw6tnehx.mjs +0 -2
- package/dist/chunks/cli-1.1.27-t13xq38e.mjs +0 -2
- package/dist/chunks/cli-1.1.27-t1dxp2pw.mjs +0 -2
- package/dist/chunks/cli-1.1.27-t32zh7r1.mjs +0 -2
- package/dist/chunks/cli-1.1.27-t4rm4dqf.mjs +0 -6
- package/dist/chunks/cli-1.1.27-tc4b7enb.mjs +0 -17
- package/dist/chunks/cli-1.1.27-tpefzkds.mjs +0 -4
- package/dist/chunks/cli-1.1.27-tw693ept.mjs +0 -2
- package/dist/chunks/cli-1.1.27-v24sqtag.mjs +0 -24
- package/dist/chunks/cli-1.1.27-v49qz5nz.mjs +0 -2
- package/dist/chunks/cli-1.1.27-v9dwxgsv.mjs +0 -15
- package/dist/chunks/cli-1.1.27-vh1r16sd.mjs +0 -6
- package/dist/chunks/cli-1.1.27-vhdd7ed4.mjs +0 -39
- package/dist/chunks/cli-1.1.27-w0jz23zw.mjs +0 -2
- package/dist/chunks/cli-1.1.27-w8pwj9ef.mjs +0 -5522
- package/dist/chunks/cli-1.1.27-wbtq2bbb.mjs +0 -2
- package/dist/chunks/cli-1.1.27-wj32ftfy.mjs +0 -2
- package/dist/chunks/cli-1.1.27-wpnpp1vg.mjs +0 -2
- package/dist/chunks/cli-1.1.27-wtthtmes.mjs +0 -3
- package/dist/chunks/cli-1.1.27-wz24bwzn.mjs +0 -2
- package/dist/chunks/cli-1.1.27-x6dqasdj.mjs +0 -17
- package/dist/chunks/cli-1.1.27-xdfkhk5m.mjs +0 -16
- package/dist/chunks/cli-1.1.27-xjabxtdd.mjs +0 -7
- package/dist/chunks/cli-1.1.27-xx0q9f0f.mjs +0 -2
- package/dist/chunks/cli-1.1.27-y6pe4jk6.mjs +0 -2
- package/dist/chunks/cli-1.1.27-y712t8h2.mjs +0 -2
- package/dist/chunks/cli-1.1.27-y935z28w.mjs +0 -2
- package/dist/chunks/cli-1.1.27-yghv5btz.mjs +0 -2
- package/dist/chunks/cli-1.1.27-z32qkf2d.mjs +0 -18
- package/dist/chunks/cli-1.1.27-zbbzy1ze.mjs +0 -2
- package/dist/chunks/cli-1.1.27-zgweqxf0.mjs +0 -9
- package/dist/chunks/cli-1.1.27-zq9wak2z.mjs +0 -2
- package/dist/chunks/cli-1.1.27-zr523fbq.mjs +0 -3
- package/dist/chunks/client-1.1.27-ex7wh5hg.mjs +0 -1
- package/dist/chunks/color-1.1.27-58s1yrz1.mjs +0 -1
- package/dist/chunks/compact-1.1.27-c1wgqww4.mjs +0 -3
- package/dist/chunks/config-1.1.27-7vwe1qph.mjs +0 -1
- package/dist/chunks/config-1.1.27-ymfcbn84.mjs +0 -1
- package/dist/chunks/constants-1.1.27-3r2715sd.mjs +0 -1
- package/dist/chunks/context-1.1.27-yznf0qn9.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.27-g15en4j2.mjs +0 -1
- package/dist/chunks/conversation-1.1.27-jmmsnhbw.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.27-g0p5y9rf.mjs +0 -1
- package/dist/chunks/copy-1.1.27-pr6pzthk.mjs +0 -9
- package/dist/chunks/cost-1.1.27-q1yqmxr9.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.27-4cwnpwje.mjs +0 -1
- package/dist/chunks/createSession-1.1.27-xdq80vrv.mjs +0 -1
- package/dist/chunks/debug-1.1.27-42bn4afg.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.27-t14xxt79.mjs +0 -1534
- package/dist/chunks/desktop-1.1.27-c8h6b96d.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.27-qx3djtsx.mjs +0 -1
- package/dist/chunks/detection-1.1.27-0974kbef.mjs +0 -1
- package/dist/chunks/diff-1.1.27-1cb81w47.mjs +0 -1
- package/dist/chunks/doctor-1.1.27-5ky6nxzq.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.27-jcx2c92k.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.27-btzh8ch0.mjs +0 -1
- package/dist/chunks/effort-1.1.27-5yvfxd52.mjs +0 -13
- package/dist/chunks/engine-1.1.27-xcjbgefa.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.27-tdwb5zkz.mjs +0 -1
- package/dist/chunks/envUtils-1.1.27-r07jyd3m.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.27-dr64k9he.mjs +0 -1
- package/dist/chunks/environments-1.1.27-s1z96vy8.mjs +0 -1
- package/dist/chunks/errors-1.1.27-bm50fpjg.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.27-wnw6egjm.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.27-evt4sr84.mjs +0 -1
- package/dist/chunks/exit-1.1.27-vgdg65b7.mjs +0 -1
- package/dist/chunks/explorer-1.1.27-zkb8zkpf.mjs +0 -1
- package/dist/chunks/export-1.1.27-tda60v40.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.27-2bmjnc65.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.27-m7byqk30.mjs +0 -1
- package/dist/chunks/fast-1.1.27-8bjn4w16.mjs +0 -1
- package/dist/chunks/feedback-1.1.27-vzfx84xw.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.27-57d5r280.mjs +0 -1
- package/dist/chunks/git-1.1.27-pe9yjmar.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.27-r2w00yyn.mjs +0 -1
- package/dist/chunks/goal-1.1.27-da40b321.mjs +0 -4
- package/dist/chunks/growthbook-1.1.27-rmhw14zh.mjs +0 -1
- package/dist/chunks/headless-1.1.27-gwzekzne.mjs +0 -2
- package/dist/chunks/heapdump-1.1.27-0702z5xd.mjs +0 -6
- package/dist/chunks/help-1.1.27-gwcwagyv.mjs +0 -1
- package/dist/chunks/hookChains-1.1.27-jyc4rzjs.mjs +0 -3
- package/dist/chunks/hooks-1.1.27-8p1xt4z2.mjs +0 -1
- package/dist/chunks/hooks-1.1.27-vvzpa77q.mjs +0 -79
- package/dist/chunks/ide-1.1.27-w2am9w2t.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.27-fk490n21.mjs +0 -1
- package/dist/chunks/import-1.1.27-69zkqd7t.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.27-7whcznny.mjs +0 -1
- package/dist/chunks/index-1.1.27-03qtf3bh.mjs +0 -9
- package/dist/chunks/index-1.1.27-2w3eyz3g.mjs +0 -1
- package/dist/chunks/index-1.1.27-4td4kk2r.mjs +0 -2
- package/dist/chunks/index-1.1.27-72s4gvww.mjs +0 -1
- package/dist/chunks/index-1.1.27-7rmx1z0f.mjs +0 -9
- package/dist/chunks/index-1.1.27-949q66tk.mjs +0 -1
- package/dist/chunks/index-1.1.27-9w6rbss1.mjs +0 -1
- package/dist/chunks/index-1.1.27-9w6y0sqf.mjs +0 -5
- package/dist/chunks/index-1.1.27-9za77x22.mjs +0 -2
- package/dist/chunks/index-1.1.27-av965j5w.mjs +0 -1
- package/dist/chunks/index-1.1.27-dpf9bwn3.mjs +0 -1
- package/dist/chunks/index-1.1.27-dzzkz91c.mjs +0 -1
- package/dist/chunks/index-1.1.27-ed0cj234.mjs +0 -30
- package/dist/chunks/index-1.1.27-fz6pezpj.mjs +0 -1
- package/dist/chunks/index-1.1.27-haym7ds6.mjs +0 -1
- package/dist/chunks/index-1.1.27-k2zye2ba.mjs +0 -1
- package/dist/chunks/index-1.1.27-ktav82bw.mjs +0 -1
- package/dist/chunks/index-1.1.27-qj3j1rkb.mjs +0 -1
- package/dist/chunks/index-1.1.27-r6ypg71x.mjs +0 -1
- package/dist/chunks/index-1.1.27-r8jqe3yp.mjs +0 -1
- package/dist/chunks/index-1.1.27-rcxd3h0n.mjs +0 -23
- package/dist/chunks/index-1.1.27-spc0z43g.mjs +0 -1
- package/dist/chunks/index-1.1.27-xvd24vg3.mjs +0 -1
- package/dist/chunks/init-1.1.27-kbwzggfn.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.27-r8gnhged.mjs +0 -1
- package/dist/chunks/ink-1.1.27-btbyg6z5.mjs +0 -1
- package/dist/chunks/insights-1.1.27-r17n37gt.mjs +0 -870
- package/dist/chunks/install-1.1.27-rst7c5sr.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.27-qe83k348.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.27-9btj28ve.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.27-zs5yatff.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.27-vkw6dmnx.mjs +0 -1
- package/dist/chunks/keybindings-1.1.27-1sx34z24.mjs +0 -2
- package/dist/chunks/knowledge-1.1.27-3vda7yge.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.27-8vg474pc.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.27-ax53z9hj.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.27-34tp38m5.mjs +0 -1
- package/dist/chunks/log-1.1.27-trbh6pmv.mjs +0 -1
- package/dist/chunks/main-1.1.27-y8ep0qqz.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.27-xf362k5y.mjs +0 -1
- package/dist/chunks/mcp-1.1.27-af12t0f2.mjs +0 -1
- package/dist/chunks/mcp-1.1.27-qzntdrh6.mjs +0 -17
- package/dist/chunks/mcp-1.1.27-vsgp33q0.mjs +0 -4
- package/dist/chunks/mcpb-1.1.27-m9bw286t.mjs +0 -1
- package/dist/chunks/memory-1.1.27-tzff1b9e.mjs +0 -72
- package/dist/chunks/model-1.1.27-968y8qcm.mjs +0 -2
- package/dist/chunks/model-1.1.27-p2b82a7t.mjs +0 -1
- package/dist/chunks/node-1.1.27-bghx5g4n.mjs +0 -1
- package/dist/chunks/node-1.1.27-rjfnqhpk.mjs +0 -15
- package/dist/chunks/oauth-1.1.27-19qatx62.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.27-p50pa80m.mjs +0 -14
- package/dist/chunks/output-style-1.1.27-6h4astb5.mjs +0 -1
- package/dist/chunks/package-OS7RONXY-1.1.27-nvbtkqpn.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.27-3gy61f1e.mjs +0 -1
- package/dist/chunks/parser-1.1.27-6m7zhkr7.mjs +0 -1
- package/dist/chunks/passes-1.1.27-2n9jw11x.mjs +0 -1
- package/dist/chunks/permissions-1.1.27-ah7j2bj9.mjs +0 -3
- package/dist/chunks/permissions-1.1.27-qnhk36mh.mjs +0 -1
- package/dist/chunks/plan-1.1.27-vkhc8mq9.mjs +0 -1
- package/dist/chunks/plist-1.1.27-vg4h3pf9.mjs +0 -1
- package/dist/chunks/plugin-1.1.27-benemmgh.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.27-tyd8w4ay.mjs +0 -1
- package/dist/chunks/plugins-1.1.27-er0je2r7.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.27-8w2hxz61.mjs +0 -2
- package/dist/chunks/print-1.1.27-nf4vjdv0.mjs +0 -57
- package/dist/chunks/process-1.1.27-1en4vj8c.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.27-y2nx754j.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.27-mert7w0e.mjs +0 -9
- package/dist/chunks/prompt-1.1.27-0qqepg5j.mjs +0 -1
- package/dist/chunks/prompt-1.1.27-40pnv6x7.mjs +0 -1
- package/dist/chunks/prompts-1.1.27-kvtvsbhd.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.27-27de09ht.mjs +0 -13
- package/dist/chunks/provider-1.1.27-g4r1c84c.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.27-tp6zknw0.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.27-ntakvdzk.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.27-fvdwd7xd.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.27-5pprq81w.mjs +0 -26
- package/dist/chunks/registry-1.1.27-vccj3rtk.mjs +0 -1
- package/dist/chunks/release-notes-1.1.27-a7x9237x.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.27-7yf3667k.mjs +0 -2
- package/dist/chunks/remote-env-1.1.27-2vdhr1s9.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.27-0qn70btv.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.27-21n6mx7d.mjs +0 -1
- package/dist/chunks/rename-1.1.27-x0qfjvj2.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.27-661m032k.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.27-48an8y55.mjs +0 -1
- package/dist/chunks/resume-1.1.27-0n7jaz71.mjs +0 -2
- package/dist/chunks/rewind-1.1.27-0dhz50d0.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.27-8k0jbnfk.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.27-3a15vms4.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.27-j8pr6jz7.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.27-r1nrcxaz.mjs +0 -1
- package/dist/chunks/session-1.1.27-bv5zha49.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.27-z50hzta3.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.27-vc8ajjh0.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.27-0vfss5b6.mjs +0 -1
- package/dist/chunks/settings-1.1.27-jar0d6ey.mjs +0 -1
- package/dist/chunks/setup-1.1.27-ggnhb2c8.mjs +0 -12
- package/dist/chunks/sinks-1.1.27-qevt5nft.mjs +0 -1
- package/dist/chunks/skills-1.1.27-wjq94pk8.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.27-q5yb3a35.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.27-k3spb2gh.mjs +0 -1
- package/dist/chunks/state-1.1.27-fpyqkxby.mjs +0 -1
- package/dist/chunks/stats-1.1.27-xb10zj7e.mjs +0 -1
- package/dist/chunks/status-1.1.27-7vscpczw.mjs +0 -1
- package/dist/chunks/stickers-1.1.27-j4em7gfg.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.27-0dm2v5n5.mjs +0 -1
- package/dist/chunks/tasks-1.1.27-a7d9cx1a.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.27-2jkv3830.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.27-8vmyznjc.mjs +0 -1
- package/dist/chunks/teleport-1.1.27-d6bgvctx.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.27-8k6bdqzf.mjs +0 -1
- package/dist/chunks/theme-1.1.27-dzme81zx.mjs +0 -1
- package/dist/chunks/thinkback-1.1.27-8hrqe8zc.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.27-7pf0t9jk.mjs +0 -1
- package/dist/chunks/toolPool-1.1.27-yndm4vnc.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.27-m1tpg8zj.mjs +0 -1
- package/dist/chunks/tools-1.1.27-f6v2cxn6.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.27-bkp7wbqw.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.27-ev0anxmd.mjs +0 -69
- package/dist/chunks/types-1.1.27-pgjcgwmr.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.27-fzpef911.mjs +0 -4
- package/dist/chunks/update-1.1.27-0rwrmj8m.mjs +0 -72
- package/dist/chunks/upgrade-1.1.27-zacn9g92.mjs +0 -1
- package/dist/chunks/upload-1.1.27-9natjvcx.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.27-484n2sck.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.27-e0vf9zwd.mjs +0 -1
- package/dist/chunks/usage-1.1.27-qdx2zhbe.mjs +0 -1
- package/dist/chunks/util-1.1.27-m60qqy4m.mjs +0 -1
- package/dist/chunks/utils-1.1.27-bpj1f9q9.mjs +0 -1
- package/dist/chunks/vim-1.1.27-dvj5bk5p.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.27-1vydfkzw.mjs +0 -13
- package/dist/chunks/watcher-1.1.27-jxayr96k.mjs +0 -1
- package/dist/chunks/wiki-1.1.27-t7nxcbah.mjs +0 -132
- package/dist/chunks/workflows-1.1.27-7bdgxjth.mjs +0 -1
- package/dist/chunks/worktree-1.1.27-6kkgvwks.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.27-ax7kv7qq.mjs +0 -1
- package/dist/chunks/wrapper-1.1.27-q9kmdf61.mjs +0 -7
- /package/dist/chunks/{cli-1.1.27-f8njyndt.mjs → cli-1.1.28-43p679k7.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.27-4an77vdm.mjs → cli-1.1.28-7d7hz6b4.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.27-5mn2zxpk.mjs → cli-1.1.28-f658tc1w.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.27-097en7tp.mjs → cli-1.1.28-m37hk495.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.27-sgvc7y72.mjs → cli-1.1.28-m7x3ax7z.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.27-r2qyxh4t.mjs → cli-1.1.28-qzdtd4w8.mjs} +0 -0
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import{ea as yJ,fa as xz,ga as rz,ha as cz,ia as iz,ja as kJ}from"./cli-1.1.27-n6vfvfw4.mjs";import{la as Tz}from"./cli-1.1.27-fary910g.mjs";import{va as EJ,wa as TJ,xa as xJ,ya as MJ,za as wJ}from"./cli-1.1.27-hafa2nxa.mjs";import{Ba as fJ}from"./cli-1.1.27-jm7jbypb.mjs";import{ie as LJ,ke as oz,me as RK}from"./cli-1.1.27-42wr3qtg.mjs";import{Oe as mz,Qe as UJ,Ue as OJ}from"./cli-1.1.27-t13xq38e.mjs";import{qf as jJ,rf as cJ}from"./cli-1.1.27-v9dwxgsv.mjs";import{ao as AJ,bo as PK,hI as JJ,iI as Cz,jI as KJ,kI as ZJ,mI as $J,nI as YJ,oI as XJ,pI as QJ,qI as WJ,qm as DJ,rm as vz,tk as CJ,uk as FK,vm as NK}from"./cli-1.1.27-w8pwj9ef.mjs";import"./cli-1.1.27-96ccvbyj.mjs";import"./cli-1.1.27-9d0bkxf6.mjs";import"./cli-1.1.27-f3cv6wk1.mjs";import"./cli-1.1.27-sr4a2gd6.mjs";import"./cli-1.1.27-3mpdw95c.mjs";import"./cli-1.1.27-x6dqasdj.mjs";import{YV as RJ,cW as _K}from"./cli-1.1.27-22f6jd6a.mjs";import"./cli-1.1.27-gmknn4xh.mjs";import"./cli-1.1.27-2mtc2dbf.mjs";import"./cli-1.1.27-gan2msv5.mjs";import"./cli-1.1.27-pab2avnw.mjs";import{lX as az,pX as CK}from"./cli-1.1.27-090g18py.mjs";import"./cli-1.1.27-nx2yxmg9.mjs";import"./cli-1.1.27-7zpnm6dn.mjs";import"./cli-1.1.27-jvs6enw9.mjs";import"./cli-1.1.27-7jakzfss.mjs";import"./cli-1.1.27-nxkc7nfr.mjs";import"./cli-1.1.27-wbtq2bbb.mjs";import"./cli-1.1.27-q830jx95.mjs";import"./cli-1.1.27-9chfrr9e.mjs";import"./cli-1.1.27-f218cppx.mjs";import"./cli-1.1.27-6spv5ha8.mjs";import"./cli-1.1.27-zr523fbq.mjs";import"./cli-1.1.27-hrwxg46q.mjs";import{b3 as pz,e3 as BK}from"./cli-1.1.27-m2n4m352.mjs";import"./cli-1.1.27-xx0q9f0f.mjs";import"./cli-1.1.27-6g67vpnz.mjs";import"./cli-1.1.27-zq9wak2z.mjs";import"./cli-1.1.27-hhkkts5k.mjs";import"./cli-1.1.27-scfswqdr.mjs";import"./cli-1.1.27-4xegg6js.mjs";import"./cli-1.1.27-94qc7asn.mjs";import"./cli-1.1.27-3eax0jv3.mjs";import"./cli-1.1.27-kgpk1m6k.mjs";import"./cli-1.1.27-m5wtrd2b.mjs";import"./cli-1.1.27-d4km9s81.mjs";import"./cli-1.1.27-8vkygf4q.mjs";import"./cli-1.1.27-1rztfj2j.mjs";import"./cli-1.1.27-wtthtmes.mjs";import{A8 as OK,z8 as i}from"./cli-1.1.27-xdfkhk5m.mjs";import"./cli-1.1.27-kdv6nw9e.mjs";import{$9 as V,a_ as gJ}from"./cli-1.1.27-vh1r16sd.mjs";import"./cli-1.1.27-ny95570d.mjs";import"./cli-1.1.27-dhzbmaf3.mjs";import"./cli-1.1.27-k9jt24bv.mjs";import{$ca as ez,D$ as Wz,F$ as GK,Sha as Ez,_ca as fz,_ha as qK,ada as zJ,bda as pJ,yca as PJ,zca as HK}from"./cli-1.1.27-48ezce33.mjs";import{dia as sz,eia as uJ,gia as Rz,nia as qz,via as jK}from"./cli-1.1.27-fw9r8cwg.mjs";import"./cli-1.1.27-eag2dgb4.mjs";import"./cli-1.1.27-n3fg97y6.mjs";import{aja as BJ,ija as VK}from"./cli-1.1.27-dfww0knt.mjs";import"./cli-1.1.27-njcbrvnc.mjs";import"./cli-1.1.27-cxy3fqs0.mjs";import"./cli-1.1.27-y712t8h2.mjs";import{uka as zz,vka as _J,xka as XK}from"./cli-1.1.27-7gnbh46g.mjs";import{Ala as tz,ala as qJ,bla as uz,fla as aJ,xla as q}from"./cli-1.1.27-r335xv52.mjs";import"./cli-1.1.27-jt1gb6nf.mjs";import{Xla as g,cma as WK}from"./cli-1.1.27-0rz9qd34.mjs";import{ima as NJ,qma as QK}from"./cli-1.1.27-t1dxp2pw.mjs";import"./cli-1.1.27-m6ne80zc.mjs";import"./cli-1.1.27-jg3tymed.mjs";import"./cli-1.1.27-8gsqhqyf.mjs";import"./cli-1.1.27-4cjm0m5c.mjs";import"./cli-1.1.27-t4rm4dqf.mjs";import"./cli-1.1.27-n09bs0db.mjs";import{Nta as I}from"./cli-1.1.27-8vrv0ver.mjs";PK();FK();_K();VK();XK();HK();tz();GK();QK();WK();jK();qK();OK();NK();import{randomUUID as Sz}from"crypto";import{hostname as bJ,tmpdir as DK}from"os";import{basename as AK,join as UK,resolve as lz}from"path";WJ();gJ();cJ();pJ();uJ();tz();WJ();var lJ={type:"utf8",errorCorrectionLevel:"L",small:!0};async function dJ(z){return(await jJ(z,lJ)).split(`
|
|
2
|
-
`).filter((K)=>K.length>0)}function VJ(z){let J=z.write??(($)=>process.stdout.write($)),K=z.verbose,Y=0,O="idle",Z="Ready",R="",B="",U="",F="",L="",A=null,_=[],M=!1,y=null,P=0,x=0,N=1,f=null,k="single-session",b=new Map,d=null,S=0;function Xz($){let G=process.stdout.columns||80,w=0;for(let Vz of $.split(`
|
|
3
|
-
`)){if(Vz.length===0){w++;continue}let _z=sz(Vz);w+=Math.max(1,Math.ceil(_z/G))}if($.endsWith(`
|
|
4
|
-
`))w--;return w}function m($){J($),Y+=Xz($)}function a(){if(Y<=0)return;q(`[bridge:ui] clearStatusLines count=${Y}`),J(`\x1B[${Y}A`),J("\x1B[J"),Y=0}function $z($){a(),J($)}function n($){dJ($).then((G)=>{_=G,p()}).catch((G)=>{q(`QR code generation failed: ${G}`,{level:"error"})})}function o(){a();let $=fz[S%fz.length],G="";if(R)G+=V.dim(" · ")+V.dim(R);if(B)G+=V.dim(" · ")+V.dim(B);m(`${V.yellow($)} ${V.yellow("Connecting")}${G}
|
|
5
|
-
`)}function jz(){t(),o(),d=setInterval(()=>{S++,o()},150)}function t(){if(d)clearInterval(d),d=null}function p(){if(O==="reconnecting"||O==="failed")return;a();let $=O==="idle";if(M)for(let Jz of _)m(`${V.dim(Jz)}
|
|
6
|
-
`);let G=ez,w=$?V.green:V.cyan,_z=($?V.green:V.cyan)(Z),Oz="";if(R)Oz+=V.dim(" · ")+V.dim(R);if(B&&k!=="worktree")Oz+=V.dim(" · ")+V.dim(B);if(m(`${w(G)} ${_z}${Oz}
|
|
7
|
-
`),N>1){let Jz=k==="worktree"?"New sessions will be created in an isolated worktree":"New sessions will be created in the current directory";m(` ${V.dim(`Capacity: ${x}/${N} · ${Jz}`)}
|
|
8
|
-
`);for(let[,Kz]of b){let r=Kz.title?Rz(Kz.title,35):V.dim("Attached"),Mz=QJ(r,Kz.url),Fz=Kz.activity,j=Fz&&Fz.type!=="result"&&Fz.type!=="error"?V.dim(` ${Rz(Fz.summary,40)}`):"";m(` ${Mz}${j}
|
|
9
|
-
`)}}if(N===1){let Jz=k==="single-session"?"Single session · exits when complete":k==="worktree"?`Capacity: ${x}/1 · New sessions will be created in an isolated worktree`:`Capacity: ${x}/1 · New sessions will be created in the current directory`;m(` ${V.dim(Jz)}
|
|
10
|
-
`)}if(N===1&&!$&&y&&Date.now()-P<JJ)m(` ${V.dim(Rz(y,60))}
|
|
11
|
-
`);let Qz=A??U;if(Qz){m(`
|
|
12
|
-
`);let Jz=$?$J(Qz):YJ(Qz),Kz=M?V.dim.italic("space to hide QR code"):V.dim.italic("space to show QR code"),r=f?V.dim.italic(" · w to toggle spawn mode"):"";m(`${V.dim(Jz)}
|
|
13
|
-
`),m(`${Kz}${r}
|
|
14
|
-
`)}}return{printBanner($,G){if(F=$.sessionIngressUrl,L=G,U=KJ(G,F),n(U),K)J(V.dim("Remote Control")+` v99.0.0
|
|
15
|
-
`);if(K){if($.spawnMode!=="single-session")J(V.dim("Spawn mode: ")+`${$.spawnMode}
|
|
16
|
-
`),J(V.dim("Max concurrent sessions: ")+`${$.maxSessions}
|
|
17
|
-
`);J(V.dim("Environment ID: ")+`${G}
|
|
18
|
-
`)}if($.sandbox)J(V.dim("Sandbox: ")+`${V.green("Enabled")}
|
|
19
|
-
`);J(`
|
|
20
|
-
`),jz()},logSessionStart($,G){if(K){let w=Rz(G,80);$z(V.dim(`[${Cz()}]`)+` Session started: ${V.white(`"${w}"`)} (${V.dim($)})
|
|
21
|
-
`)}},logSessionComplete($,G){$z(V.dim(`[${Cz()}]`)+` Session ${V.green("completed")} (${qz(G)}) ${V.dim($)}
|
|
22
|
-
`)},logSessionFailed($,G){$z(V.dim(`[${Cz()}]`)+` Session ${V.red("failed")}: ${G} ${V.dim($)}
|
|
23
|
-
`)},logStatus($){$z(V.dim(`[${Cz()}]`)+` ${$}
|
|
24
|
-
`)},logVerbose($){if(K)$z(V.dim(`[${Cz()}] ${$}`)+`
|
|
25
|
-
`)},logError($){$z(V.red(`[${Cz()}] Error: ${$}`)+`
|
|
26
|
-
`)},logReconnected($){$z(V.dim(`[${Cz()}]`)+` ${V.green("Reconnected")} after ${qz($)}
|
|
27
|
-
`)},setRepoInfo($,G){R=$,B=G},updateIdleStatus(){t(),O="idle",Z="Ready",y=null,P=0,A=null,n(U),p()},setAttached($){if(t(),O="attached",Z="Connected",y=null,P=0,N<=1)A=ZJ($,L,F),n(A);p()},updateReconnectingStatus($,G){if(t(),a(),O="reconnecting",M)for(let Vz of _)m(`${V.dim(Vz)}
|
|
28
|
-
`);let w=fz[S%fz.length];S++,m(`${V.yellow(w)} ${V.yellow("Reconnecting")} ${V.dim("·")} ${V.dim(`retrying in ${$}`)} ${V.dim("·")} ${V.dim(`disconnected ${G}`)}
|
|
29
|
-
`)},updateFailedStatus($){t(),a(),O="failed";let G="";if(R)G+=V.dim(" · ")+V.dim(R);if(B)G+=V.dim(" · ")+V.dim(B);if(m(`${V.red(zJ)} ${V.red("Remote Control Failed")}${G}
|
|
30
|
-
`),m(`${V.dim(XJ)}
|
|
31
|
-
`),$)m(`${V.red($)}
|
|
32
|
-
`)},updateSessionStatus($,G,w,Vz){if(w.type==="tool_start")y=w.summary,P=Date.now();p()},clearStatus(){t(),a()},toggleQr(){M=!M,p()},updateSessionCount($,G,w){if(x===$&&N===G&&k===w)return;x=$,N=G,k=w},setSpawnModeDisplay($){if(f===$)return;if(f=$,$)k=$},addSession($,G){b.set($,{url:G})},updateSessionActivity($,G){let w=b.get($);if(!w)return;w.activity=G},setSessionTitle($,G){let w=b.get($);if(!w)return;if(w.title=G,O==="reconnecting"||O==="failed")return;if(N===1)O="titled",Z=Rz(G,40);p()},removeSession($){b.delete($)},refreshDisplay(){if(O==="reconnecting"||O==="failed")return;p()}}}OJ();BK();aJ();OJ();import{spawn as oJ}from"child_process";import{createWriteStream as rJ}from"fs";import{tmpdir as iJ}from"os";import{dirname as nJ,join as GJ}from"path";import{createInterface as HJ}from"readline";var tJ=10,sJ=10,eJ=new Set(["PATH","HOME","USERPROFILE","HOMEPATH","HOMEDRIVE","USERNAME","USER","LOGNAME","TEMP","TMP","TMPDIR","SYSTEMROOT","SYSTEMDRIVE","COMSPEC","WINDIR","LANG","LC_ALL","LC_CTYPE","NODE_OPTIONS","NODE_PATH","NODE_ENV","CLAUDE_CODE_ENVIRONMENT_KIND","CLAUDE_CODE_FORCE_SANDBOX","CLAUDIN_BUBBLEWRAP","CLAUDE_CODE_ENTRYPOINT","CLAUDIN_COORDINATOR_MODE","CLAUDE_CODE_PERMISSIONS_VERSION","CLAUDE_CODE_PERMISSIONS_SETTING","TERM","COLORTERM","FORCE_COLOR","NO_COLOR"]);function zK(z,J){let K={};for(let Y of Object.keys(z))if(eJ.has(Y))K[Y]=z[Y];if(K.CLAUDE_CODE_OAUTH_TOKEN=void 0,K.CLAUDE_CODE_ENVIRONMENT_KIND="bridge",J.sandbox)K.CLAUDE_CODE_FORCE_SANDBOX="1";if(K.CLAUDE_CODE_SESSION_ACCESS_TOKEN=J.accessToken,K.CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2="1",J.useCcrV2)K.CLAUDE_CODE_USE_CCR_V2="1",K.CLAUDE_CODE_WORKER_EPOCH=String(J.workerEpoch);return K}function Iz(z){return z.replace(/[^a-zA-Z0-9_-]/g,"_")}var JK={Read:"Reading",Write:"Writing",Edit:"Editing",MultiEdit:"Editing",Bash:"Running",Glob:"Searching",Grep:"Searching",WebFetch:"Fetching",WebSearch:"Searching",Task:"Running task",FileReadTool:"Reading",FileWriteTool:"Writing",FileEditTool:"Editing",GlobTool:"Searching",GrepTool:"Searching",BashTool:"Running",NotebookEditTool:"Editing notebook",LSP:"LSP"};function KK(z,J){let K=JK[z]??z,Y=J.file_path??J.filePath??J.pattern??J.command?.slice(0,60)??J.url??J.query??"";if(Y)return`${K} ${Y}`;return K}function ZK(z,J,K){let Y;try{Y=uz(z)}catch{return[]}if(!Y||typeof Y!=="object")return[];let O=Y,Z=[],R=Date.now();switch(O.type){case"assistant":{let B=O.message;if(!B)break;let U=B.content;if(!Array.isArray(U))break;for(let F of U){if(!F||typeof F!=="object")continue;let L=F;if(L.type==="tool_use"){let A=L.name??"Tool",_=L.input??{},M=KK(A,_);Z.push({type:"tool_start",summary:M,timestamp:R}),K(`[bridge:activity] sessionId=${J} tool_use name=${A} ${YK(_)}`)}else if(L.type==="text"){let A=L.text??"";if(A.length>0)Z.push({type:"text",summary:A.slice(0,80),timestamp:R}),K(`[bridge:activity] sessionId=${J} text "${A.slice(0,100)}"`)}}break}case"result":{let B=O.subtype;if(B==="success")Z.push({type:"result",summary:"Session completed",timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=success`);else if(B){let F=O.errors?.[0]??`Error: ${B}`;Z.push({type:"error",summary:F,timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=${B} error="${F}"`)}else K(`[bridge:activity] sessionId=${J} result subtype=undefined`);break}default:break}return Z}function $K(z){if(z.parent_tool_use_id!=null||z.isSynthetic||z.isReplay)return;let K=z.message?.content,Y;if(typeof K==="string")Y=K;else if(Array.isArray(K)){for(let O of K)if(O&&typeof O==="object"&&O.type==="text"){Y=O.text;break}}return Y=Y?.trim(),Y?Y:void 0}function YK(z){let J=[];for(let[K,Y]of Object.entries(z)){if(typeof Y==="string")J.push(`${K}="${Y.slice(0,100)}"`);if(J.length>=3)break}return J.join(" ")}function gz(z){return{spawn(J,K){let Y=Iz(J.sessionId),O;if(z.debugFile){let N=z.debugFile.lastIndexOf(".");if(N>0)O=`${z.debugFile.slice(0,N)}-${Y}${z.debugFile.slice(N)}`;else O=`${z.debugFile}-${Y}`}else if(z.verbose)O=GJ(iJ(),"claude",`bridge-session-${Y}.log`);let Z=null,R;if(z.debugFile)R=GJ(nJ(z.debugFile),`bridge-transcript-${Y}.jsonl`),Z=rJ(R,{flags:"a"}),Z.on("error",(N)=>{z.onDebug(`[bridge:session] Transcript write error: ${N.message}`),Z=null}),z.onDebug(`[bridge:session] Transcript log: ${R}`);let B=[...z.scriptArgs,"--print","--sdk-url",J.sdkUrl,"--session-id",J.sessionId,"--input-format","stream-json","--output-format","stream-json","--replay-user-messages",...z.verbose?["--verbose"]:[],...O?["--debug-file",O]:[],...z.permissionMode?["--permission-mode",z.permissionMode]:[]],U=zK(z.env,{accessToken:J.accessToken,useCcrV2:J.useCcrV2??!1,workerEpoch:J.workerEpoch,sandbox:z.sandbox});if(z.onDebug(`[bridge:session] Spawning sessionId=${J.sessionId} sdkUrl=${J.sdkUrl} accessToken=${J.accessToken?"present":"MISSING"}`),z.onDebug(`[bridge:session] Child args: ${B.join(" ")}`),O)z.onDebug(`[bridge:session] Debug log: ${O}`);let F=oJ(z.execPath,B,{cwd:K,stdio:["pipe","pipe","pipe"],env:U,windowsHide:!0});z.onDebug(`[bridge:session] sessionId=${J.sessionId} pid=${F.pid}`);let L=[],A=null,_=[],M=!1,y=!1;if(F.stderr)HJ({input:F.stderr}).on("line",(f)=>{if(z.verbose)process.stderr.write(f+`
|
|
33
|
-
`);if(_.length>=sJ)_.shift();_.push(f)});if(F.stdout)HJ({input:F.stdout}).on("line",(f)=>{if(Z)Z.write(f+`
|
|
34
|
-
`);if(z.onDebug(`[bridge:ws] sessionId=${J.sessionId} <<< ${mz(f)}`),z.verbose)process.stderr.write(f+`
|
|
35
|
-
`);let k=ZK(f,J.sessionId,z.onDebug);for(let b of k){if(L.length>=tJ)L.shift();L.push(b),A=b,z.onActivity?.(J.sessionId,b)}{let b;try{b=uz(f)}catch{}if(b&&typeof b==="object"){let d=b;if(d.type==="control_request"){if(d.request?.subtype==="can_use_tool"&&z.onPermissionRequest)z.onPermissionRequest(J.sessionId,b,J.accessToken)}else if(d.type==="user"&&!y&&J.onFirstUserMessage){let S=$K(d);if(S)y=!0,J.onFirstUserMessage(S)}}}});let P=new Promise((N)=>{F.on("close",(f,k)=>{if(Z)Z.end(),Z=null;if(k==="SIGTERM"||k==="SIGINT")z.onDebug(`[bridge:session] sessionId=${J.sessionId} interrupted signal=${k} pid=${F.pid}`),N("interrupted");else if(f===0)z.onDebug(`[bridge:session] sessionId=${J.sessionId} completed exit_code=0 pid=${F.pid}`),N("completed");else z.onDebug(`[bridge:session] sessionId=${J.sessionId} failed exit_code=${f} pid=${F.pid}`),N("failed")}),F.on("error",(f)=>{z.onDebug(`[bridge:session] sessionId=${J.sessionId} spawn error: ${f.message}`),N("failed")})}),x={sessionId:J.sessionId,done:P,activities:L,accessToken:J.accessToken,lastStderr:_,get currentActivity(){return A},kill(){if(!F.killed)if(z.onDebug(`[bridge:session] Sending SIGTERM to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGTERM")},forceKill(){if(!M&&F.pid)if(M=!0,z.onDebug(`[bridge:session] Sending SIGKILL to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGKILL")},writeStdin(N){if(F.stdin&&!F.stdin.destroyed)z.onDebug(`[bridge:ws] sessionId=${J.sessionId} >>> ${mz(N)}`),F.stdin.write(N)},updateAccessToken(N){x.accessToken=N,x.writeStdin(qJ({type:"update_environment_variables",variables:{CLAUDE_CODE_SESSION_ACCESS_TOKEN:N}})+`
|
|
36
|
-
`),z.onDebug(`[bridge:session] Sent token refresh via stdin for sessionId=${J.sessionId}`)}};return x}}}CK();RK();var LK={connInitialMs:2000,connCapMs:120000,connGiveUpMs:600000,generalInitialMs:500,generalCapMs:30000,generalGiveUpMs:600000},yK=1000,IJ=32;async function vJ(){return BJ("tengu_ccr_bridge_multi_session")}function FJ(z){return z.connCapMs*2}function hJ(){if(PJ()||!process.argv[1])return[];return[process.argv[1]]}function EK(z,J,K){try{return z.spawn(J,K)}catch(Y){let O=g(Y);return Ez(Error(`Session spawn failed: ${O}`)),O}}async function SJ(z,J,K,Y,O,Z,R,B=LK,U,F){let L=new AbortController;if(R.aborted)L.abort();else R.addEventListener("abort",()=>L.abort(),{once:!0});let A=L.signal,_=new Map,M=new Map,y=new Map,P=new Map,x=new Map,N=new Map,f=new Set,k=new Map,b=new Set,d=new Set,S=kJ(A);async function Xz(){let Q=!1,j=!1,E=[];for(let[H]of _){let D=y.get(H),v=x.get(H);if(!D||!v)continue;try{await Y.heartbeatWork(J,D,v),Q=!0}catch(u){if(q(`[bridge:heartbeat] Failed for sessionId=${H} workId=${D}: ${g(u)}`),u instanceof xz)if(zz("",{status:u.status,error_type:u.status===401||u.status===403?"auth_failed":"fatal"}),u.status===401||u.status===403)E.push(H);else j=!0}}for(let H of E){Z.logVerbose(`Session ${H} token expired — re-queuing via bridge/reconnect`);try{await Y.reconnectSession(J,H),q(`[bridge:heartbeat] Re-queued sessionId=${H} via bridge/reconnect`)}catch(D){Z.logError(`Failed to refresh session ${H} token: ${g(D)}`),q(`[bridge:heartbeat] reconnectSession(${H}) failed: ${g(D)}`,{level:"error"})}}if(j)return"fatal";if(E.length>0)return"auth_failed";return Q?"ok":"failed"}let m=new Set,a=F?fJ({getAccessToken:F,onRefresh:(Q,j)=>{let E=_.get(Q);if(!E)return;if(m.has(Q))Z.logVerbose(`Refreshing session ${Q} token via bridge/reconnect`),Y.reconnectSession(J,Q).catch((H)=>{Z.logError(`Failed to refresh session ${Q} token: ${g(H)}`),q(`[bridge:token] reconnectSession(${Q}) failed: ${g(H)}`,{level:"error"})});else E.updateAccessToken(j)},label:"bridge"}):null,$z=Date.now(),n=new Set;function o(Q){n.add(Q),Q.finally(()=>n.delete(Q))}let jz=0,t=0,p=null,$=null,G=null,w=null,Vz=!1;if(q(`[bridge:work] Starting poll loop spawnMode=${z.spawnMode} maxSessions=${z.maxSessions} environmentId=${J}`),Wz("info","bridge_loop_started",{max_sessions:z.maxSessions,spawn_mode:z.spawnMode}),Z.printBanner(z,J),Z.updateSessionCount(0,z.maxSessions,z.spawnMode),U)Z.setAttached(U);function _z(){Z.updateSessionCount(_.size,z.maxSessions,z.spawnMode);for(let[u,X]of _){let T=X.currentActivity;if(T)Z.updateSessionActivity(P.get(u)??u,T)}if(_.size===0){Z.updateIdleStatus();return}let[Q,j]=[..._.entries()].pop(),E=M.get(Q);if(!E)return;let H=j.currentActivity;if(!H||H.type==="result"||H.type==="error"){if(z.maxSessions>1)Z.refreshDisplay();return}let D=qz(Date.now()-E),v=j.activities.filter((u)=>u.type==="tool_start").slice(-5).map((u)=>u.summary);Z.updateSessionStatus(Q,D,H,v)}function Oz(){Qz(),_z(),w=setInterval(_z,yK)}function Qz(){if(w)clearInterval(w),w=null}function Jz(Q,j,E){return(H)=>{let D=y.get(Q);_.delete(Q),M.delete(Q),y.delete(Q),x.delete(Q);let v=P.get(Q)??Q;P.delete(Q),Z.removeSession(v),d.delete(v),m.delete(Q);let u=N.get(Q);if(u)clearTimeout(u),N.delete(Q);a?.cancel(Q),S.wake();let X=b.delete(Q),T=X&&H==="interrupted"?"failed":H,c=Date.now()-j;q(`[bridge:session] sessionId=${Q} workId=${D??"unknown"} exited status=${T} duration=${qz(c)}`),zz("",{status:T,duration_ms:c}),Wz("info","bridge_session_done",{status:T,duration_ms:c}),Z.clearStatus(),Qz();let s=E.lastStderr.length>0?E.lastStderr.join(`
|
|
37
|
-
`):void 0,Yz;switch(T){case"completed":Z.logSessionComplete(Q,c);break;case"failed":if(!X&&!A.aborted)Yz=s??"Process exited with error",Z.logSessionFailed(Q,Yz),Ez(Error(`Bridge session failed: ${Yz}`));break;case"interrupted":Z.logVerbose(`Session ${Q} interrupted`);break}if(T!=="interrupted"&&D)o(kz(Y,J,D,Z,B.stopWorkBaseDelayMs)),f.add(D);let Zz=k.get(Q);if(Zz)k.delete(Q),o(vz(Zz.worktreePath,Zz.worktreeBranch,Zz.gitRoot,Zz.hookBased).catch((l)=>Z.logVerbose(`Failed to remove worktree ${Zz.worktreePath}: ${g(l)}`)));if(T!=="interrupted"&&!A.aborted)if(z.spawnMode!=="single-session")o(Y.archiveSession(v).catch((l)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(l)}`))),q(`[bridge:session] Session ${T}, returning to idle (multi-session mode)`);else{q(`[bridge:session] Session ${T}, aborting poll loop to tear down environment`),L.abort();return}if(!A.aborted)Oz()}}if(!U)Oz();while(!A.aborted){let Q=Tz();try{let j=await Y.pollForWork(J,K,A,Q.reclaim_older_than_ms);if(p!==null||$!==null){let X=Date.now()-(p??$??Date.now());Z.logReconnected(X),q(`[bridge:poll] Reconnected after ${qz(X)}`),zz("",{disconnected_ms:X})}if(jz=0,t=0,p=null,$=null,G=null,!j){if(_.size>=z.maxSessions){let T=Q.multisession_poll_interval_ms_at_capacity;if(Q.non_exclusive_heartbeat_interval_ms>0){zz("",{active_sessions:_.size,heartbeat_interval_ms:Q.non_exclusive_heartbeat_interval_ms});let c=T>0?Date.now()+T:null,s="ok",Yz=0;while(!A.aborted&&_.size>=z.maxSessions&&(c===null||Date.now()<c)){let l=Tz();if(l.non_exclusive_heartbeat_interval_ms<=0)break;let Nz=S.signal();if(s=await Xz(),s==="auth_failed"||s==="fatal"){Nz.cleanup();break}Yz++,await i(l.non_exclusive_heartbeat_interval_ms,Nz.signal),Nz.cleanup()}let Zz=s==="auth_failed"||s==="fatal"?s:A.aborted?"shutdown":_.size<z.maxSessions?"capacity_changed":c!==null&&Date.now()>=c?"poll_due":"config_disabled";if(zz("",{reason:Zz,heartbeat_cycles:Yz,active_sessions:_.size}),Zz==="poll_due")q(`[bridge:poll] Heartbeat poll_due after ${Yz} cycles — falling through to pollForWork`);if(s==="auth_failed"||s==="fatal"){let l=S.signal();await i(T>0?T:Q.non_exclusive_heartbeat_interval_ms,l.signal),l.cleanup()}}else if(T>0){let c=S.signal();await i(T,c.signal),c.cleanup()}}else{let T=_.size>0?Q.multisession_poll_interval_ms_partial_capacity:Q.multisession_poll_interval_ms_not_at_capacity;await i(T,A)}continue}let H=_.size>=z.maxSessions;if(f.has(j.id)){if(q(`[bridge:work] Skipping already-completed workId=${j.id}`),H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}else await i(1000,A);continue}let D;try{D=EJ(j.secret)}catch(X){let T=g(X);if(Z.logError(`Failed to decode work secret for workId=${j.id}: ${T}`),zz("",{}),f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs)),H){let c=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,c.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,c.signal);c.cleanup()}continue}let v=async()=>{q(`[bridge:work] Acknowledging workId=${j.id}`);try{await Y.acknowledgeWork(J,j.id,D.session_ingress_token)}catch(X){q(`[bridge:work] Acknowledge failed workId=${j.id}: ${g(X)}`)}},u=j.data.type;switch(j.data.type){case"healthcheck":await v(),q("[bridge:work] Healthcheck received"),Z.logVerbose("Healthcheck received");break;case"session":{let X=j.data.id;try{yJ(X,"session_id")}catch{await v(),Z.logError(`Invalid session_id received: ${X}`);break}let T=_.get(X);if(T){T.updateAccessToken(D.session_ingress_token),x.set(X,D.session_ingress_token),y.set(X,j.id),a?.schedule(X,D.session_ingress_token),q(`[bridge:work] Updated access token for existing sessionId=${X} workId=${j.id}`),await v();break}if(_.size>=z.maxSessions){q(`[bridge:work] At capacity (${_.size}/${z.maxSessions}), cannot spawn new session for workId=${j.id}`);break}await v();let c=Date.now(),s,Yz=!1,Zz;if(D.use_code_sessions===!0||NJ(process.env.CLAUDE_BRIDGE_USE_CCR_V2)){s=MJ(z.apiBaseUrl,X);for(let W=1;W<=2;W++)try{Zz=await wJ(s,D.session_ingress_token),Yz=!0,q(`[bridge:session] CCR v2: registered worker sessionId=${X} epoch=${Zz} attempt=${W}`);break}catch(C){let h=g(C);if(W<2){if(q(`[bridge:session] CCR v2: registerWorker attempt ${W} failed, retrying: ${h}`),await i(2000,A),A.aborted)break;continue}Z.logError(`CCR v2 worker registration failed for session ${X}: ${h}`),Ez(Error(`registerWorker failed: ${h}`)),f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs))}if(!Yz)break}else s=TJ(z.sessionIngressUrl,X);let{spawnMode:l,dir:Nz}=z,Uz=0;if(l==="worktree"&&(U===void 0||!xJ(X,U))){let W=Date.now();try{let C=await DJ(`bridge-${Iz(X)}`);Uz=Date.now()-W,k.set(X,{worktreePath:C.worktreePath,worktreeBranch:C.worktreeBranch,gitRoot:C.gitRoot,hookBased:C.hookBased}),Nz=C.worktreePath,q(`[bridge:session] Created worktree for sessionId=${X} at ${C.worktreePath}`)}catch(C){let h=g(C);Z.logError(`Failed to create worktree for session ${X}: ${h}`),Ez(Error(`Worktree creation failed: ${h}`)),f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs));break}}q(`[bridge:session] Spawning sessionId=${X} sdkUrl=${s}`);let e=pz(X),Lz=EK(O,{sessionId:X,sdkUrl:s,accessToken:D.session_ingress_token,useCcrV2:Yz,workerEpoch:Zz,onFirstUserMessage:(W)=>{if(d.has(e))return;d.add(e);let C=SK(W);Z.setSessionTitle(e,C),q(`[bridge:title] derived title for ${e}: ${C}`),import("./createSession-1.1.27-xdq80vrv.mjs").then(({updateBridgeSessionTitle:h})=>h(e,C,{baseUrl:z.apiBaseUrl})).catch((h)=>q(`[bridge:title] failed to update title for ${e}: ${h}`,{level:"error"}))}},Nz);if(typeof Lz==="string"){Z.logError(`Failed to spawn session ${X}: ${Lz}`);let W=k.get(X);if(W)k.delete(X),o(vz(W.worktreePath,W.worktreeBranch,W.gitRoot,W.hookBased).catch((C)=>Z.logVerbose(`Failed to remove worktree ${W.worktreePath}: ${g(C)}`)));f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs));break}let Dz=Lz,Az=Date.now()-c;zz("",{active_sessions:_.size,spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),Wz("info","bridge_session_started",{spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),_.set(X,Dz),y.set(X,j.id),x.set(X,D.session_ingress_token),P.set(X,e);let wz=Date.now();M.set(X,wz),Z.logSessionStart(X,`Session ${X}`);let yz=Iz(X),Gz;if(z.debugFile){let W=z.debugFile.lastIndexOf(".");if(W>0)Gz=`${z.debugFile.slice(0,W)}-${yz}${z.debugFile.slice(W)}`;else Gz=`${z.debugFile}-${yz}`}else if(z.verbose)Gz=UK(DK(),"claude",`bridge-session-${yz}.log`);if(Gz)Z.logVerbose(`Debug log: ${Gz}`);Z.addSession(e,AJ(e,z.sessionIngressUrl)),Oz(),Z.setAttached(e),mK(e,z.apiBaseUrl).then((W)=>{if(W&&_.has(X))d.add(e),Z.setSessionTitle(e,W),q(`[bridge:title] server title for ${e}: ${W}`)}).catch((W)=>q(`[bridge:title] failed to fetch title for ${e}: ${W}`,{level:"error"}));let Bz=z.sessionTimeoutMs??LJ;if(Bz>0){let W=setTimeout(wK,Bz,X,Bz,Z,b,Dz);N.set(X,W)}if(Yz)m.add(X);a?.schedule(X,D.session_ingress_token),Dz.done.then(Jz(X,wz,Dz));break}default:await v(),q(`[bridge:work] Unknown work type: ${u}, skipping`);break}if(H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}}catch(j){if(A.aborted)break;if(j instanceof xz){if(Vz=!0,cz(j.errorType))Z.logStatus(j.message);else if(iz(j))q(`[bridge:work] Suppressed 403 error: ${j.message}`);else Z.logError(j.message),Ez(j);zz("",{status:j.status,error_type:j.errorType}),Wz(cz(j.errorType)?"info":"error","bridge_fatal_error",{status:j.status,error_type:j.errorType});break}let E=UJ(j);if(xK(j)||MK(j)){let H=Date.now();if(G!==null&&H-G>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-G)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-G}),p=null,jz=0,$=null,t=0;if(G=H,!p)p=H;let D=H-p;if(D>=B.connGiveUpMs){Z.logError(`Server unreachable for ${Math.round(D/60000)} minutes, giving up.`),zz("",{error_type:"connection",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Vz=!0;break}$=null,t=0,jz=jz?Math.min(jz*2,B.connCapMs):B.connInitialMs;let v=dz(jz);if(Z.logVerbose(`Connection error, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${E}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}else{let H=Date.now();if(G!==null&&H-G>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-G)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-G}),p=null,jz=0,$=null,t=0;if(G=H,!$)$=H;let D=H-$;if(D>=B.generalGiveUpMs){Z.logError(`Persistent errors for ${Math.round(D/60000)} minutes, giving up.`),zz("",{error_type:"general",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Vz=!0;break}p=null,jz=0,t=t?Math.min(t*2,B.generalCapMs):B.generalInitialMs;let v=dz(t);if(Z.logVerbose(`Poll failed, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${E}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}}}Qz(),Z.clearStatus();let Kz=Date.now()-$z;zz("",{active_sessions:_.size,loop_duration_ms:Kz}),Wz("info","bridge_shutdown",{active_sessions:_.size,loop_duration_ms:Kz});let r=new Set(_.keys());if(U)r.add(U);let Mz=new Map(P);if(_.size>0){q(`[bridge:shutdown] Shutting down ${_.size} active session(s)`),Z.logStatus(`Shutting down ${_.size} active session(s)…`);let Q=new Map(y);for(let[E,H]of _.entries())q(`[bridge:shutdown] Sending SIGTERM to sessionId=${E}`),H.kill();let j=new AbortController;await Promise.race([Promise.allSettled([..._.values()].map((E)=>E.done)),i(B.shutdownGraceMs??30000,j.signal)]),j.abort();for(let[E,H]of _.entries())q(`[bridge:shutdown] Force-killing stuck sessionId=${E}`),H.forceKill();for(let E of N.values())clearTimeout(E);if(N.clear(),a?.cancelAll(),k.size>0){let E=[...k.values()];k.clear(),q(`[bridge:shutdown] Cleaning up ${E.length} worktree(s)`),await Promise.allSettled(E.map((H)=>vz(H.worktreePath,H.worktreeBranch,H.gitRoot,H.hookBased)))}await Promise.allSettled([...Q.entries()].map(([E,H])=>{return Y.stopWork(J,H,!0).catch((D)=>Z.logVerbose(`Failed to stop work ${H} for session ${E}: ${g(D)}`))}))}if(n.size>0)await Promise.allSettled([...n]);if(r.size>0)q(`[bridge:shutdown] Archiving ${r.size} session(s)`),await Promise.allSettled([...r].map((Q)=>Y.archiveSession(Mz.get(Q)??pz(Q)).catch((j)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(j)}`))));try{await Y.deregisterEnvironment(J),q("[bridge:shutdown] Environment deregistered, bridge offline"),Z.logVerbose("Environment deregistered.")}catch(Q){Z.logVerbose(`Failed to deregister environment: ${g(Q)}`)}let{clearBridgePointer:Fz}=await import("./bridgePointer-1.1.27-95k3w0tb.mjs");await Fz(z.dir),Z.logVerbose("Environment offline.")}var TK=new Set(["ECONNREFUSED","ECONNRESET","ETIMEDOUT","ENETUNREACH","EHOSTUNREACH"]);function xK(z){if(z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&TK.has(z.code))return!0;return!1}function MK(z){return!!z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&z.code==="ERR_BAD_RESPONSE"}function dz(z){return Math.max(0,z+z*0.25*(2*Math.random()-1))}function bz(z){return z>=1000?`${(z/1000).toFixed(1)}s`:`${Math.round(z)}ms`}async function kz(z,J,K,Y,O=1000){for(let R=1;R<=3;R++)try{await z.stopWork(J,K,!1),q(`[bridge:work] stopWork succeeded for workId=${K} on attempt ${R}/3`);return}catch(B){if(B instanceof xz){if(iz(B))q(`[bridge:work] Suppressed stopWork 403 for ${K}: ${B.message}`);else Y.logError(`Failed to stop work ${K}: ${B.message}`);Wz("error","bridge_stop_work_failed",{attempts:R,fatal:!0});return}let U=g(B);if(R<3){let F=dz(O*Math.pow(2,R-1));Y.logVerbose(`Failed to stop work ${K} (attempt ${R}/3), retrying in ${bz(F)}: ${U}`),await i(F)}else Y.logError(`Failed to stop work ${K} after 3 attempts: ${U}`),Wz("error","bridge_stop_work_failed",{attempts:3})}}function wK(z,J,K,Y,O){q(`[bridge:session] sessionId=${z} timed out after ${qz(J)}`),zz("",{timeout_ms:J}),K.logSessionFailed(z,`Session timed out after ${qz(J)}`),Y.add(z),O.kill()}var fK=["session","same-dir","worktree"];function kK(z){if(z==="session")return"single-session";if(z==="same-dir")return"same-dir";if(z==="worktree")return"worktree";return`--spawn requires one of: ${fK.join(", ")} (got: ${z??"<missing>"})`}function bK(z){let J=z===void 0?NaN:parseInt(z,10);if(isNaN(J)||J<1)return`--capacity requires a positive integer (got: ${z??"<missing>"})`;return J}function IK(z){let J=!1,K=!1,Y,O,Z,R,B=!1,U,F,L,A,_=!1;for(let y=0;y<z.length;y++){let P=z[y];if(P==="--help"||P==="-h")B=!0;else if(P==="--verbose"||P==="-v")J=!0;else if(P==="--sandbox")K=!0;else if(P==="--no-sandbox")K=!1;else if(P==="--debug-file"&&y+1<z.length)Y=lz(z[++y]);else if(P.startsWith("--debug-file="))Y=lz(P.slice(13));else if(P==="--session-timeout"&&y+1<z.length)O=parseInt(z[++y],10)*1000;else if(P.startsWith("--session-timeout="))O=parseInt(P.slice(18),10)*1000;else if(P==="--permission-mode"&&y+1<z.length)Z=z[++y];else if(P.startsWith("--permission-mode="))Z=P.slice(18);else if(P==="--name"&&y+1<z.length)R=z[++y];else if(P.startsWith("--name="))R=P.slice(7);else if(P==="--spawn"||P.startsWith("--spawn=")){if(U!==void 0)return M("--spawn may only be specified once");let x=P.startsWith("--spawn=")?P.slice(8):z[++y],N=kK(x);if(N==="single-session"||N==="same-dir"||N==="worktree")U=N;else return M(N)}else if(P==="--capacity"||P.startsWith("--capacity=")){if(F!==void 0)return M("--capacity may only be specified once");let x=P.startsWith("--capacity=")?P.slice(11):z[++y],N=bK(x);if(typeof N==="number")F=N;else return M(N)}else if(P==="--create-session-in-dir")L=!0;else if(P==="--no-create-session-in-dir")L=!1;else return M(`Unknown argument: ${P}
|
|
38
|
-
Run 'claudin remote-control --help' for usage.`)}if(U==="single-session"&&F!==void 0)return M("--capacity cannot be used with --spawn=session (single-session mode has fixed capacity 1).");if((A||_)&&(U!==void 0||F!==void 0||L!==void 0))return M("--session-id and --continue cannot be used with --spawn, --capacity, or --create-session-in-dir.");if(A&&_)return M("--session-id and --continue cannot be used together.");return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:_,help:B};function M(y){return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:_,help:B,error:y}}}async function vK(){let{EXTERNAL_PERMISSION_MODES:z}=await import("./permissions-1.1.27-qnhk36mh.mjs"),J=z.join(", "),K=await vJ(),Y=K?` --spawn <mode> Spawn mode: same-dir, worktree, session
|
|
39
|
-
(default: same-dir)
|
|
40
|
-
--capacity <N> Max concurrent sessions in worktree or
|
|
41
|
-
same-dir mode (default: ${IJ})
|
|
42
|
-
--[no-]create-session-in-dir Pre-create a session in the current
|
|
43
|
-
directory; in worktree mode this session
|
|
44
|
-
stays in cwd while on-demand sessions get
|
|
45
|
-
isolated worktrees (default: on)
|
|
46
|
-
`:"",R=`
|
|
47
|
-
Remote Control - Connect your local environment to claude.ai/code
|
|
48
|
-
|
|
49
|
-
USAGE
|
|
50
|
-
claudin remote-control [options]
|
|
51
|
-
OPTIONS
|
|
52
|
-
--name <name> Name for the session (shown in claude.ai/code)
|
|
53
|
-
--permission-mode <mode> Permission mode for spawned sessions
|
|
54
|
-
(${J})
|
|
55
|
-
--debug-file <path> Write debug logs to file
|
|
56
|
-
-v, --verbose Enable verbose output
|
|
57
|
-
-h, --help Show this help
|
|
58
|
-
${Y}
|
|
59
|
-
DESCRIPTION
|
|
60
|
-
Remote Control allows you to control sessions on your local device from
|
|
61
|
-
claude.ai/code (https://claude.ai/code). Run this command in the
|
|
62
|
-
directory you want to work in, then connect from the Claude app or web.
|
|
63
|
-
${K?`
|
|
64
|
-
Remote Control runs as a persistent server that accepts multiple concurrent
|
|
65
|
-
sessions in the current directory. One session is pre-created on start so
|
|
66
|
-
you have somewhere to type immediately. Use --spawn=worktree to isolate
|
|
67
|
-
each on-demand session in its own git worktree, or --spawn=session for
|
|
68
|
-
the classic single-session mode (exits when that session ends). Press 'w'
|
|
69
|
-
during runtime to toggle between same-dir and worktree.
|
|
70
|
-
`:""}
|
|
71
|
-
NOTES
|
|
72
|
-
- You must be logged in with a Claude account that has a subscription
|
|
73
|
-
- Run \`claudin\` first in the directory to accept the workspace trust dialog
|
|
74
|
-
${K?` - Worktree mode requires a git repository or WorktreeCreate/WorktreeRemove hooks
|
|
75
|
-
`:""}`;console.log(R)}var hK=80;function SK(z){let J=z.replace(/\s+/g," ").trim();return Rz(J,hK)}async function mK(z,J){let{getBridgeSession:K}=await import("./createSession-1.1.27-xdq80vrv.mjs");return(await K(z,{baseUrl:J}))?.title||void 0}async function fZ(z){let J=IK(z);if(J.help){await vK();return}if(J.error)console.error(`Error: ${J.error}`),process.exit(1);let{verbose:K,sandbox:Y,debugFile:O,sessionTimeoutMs:Z,permissionMode:R,name:B,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:_}=J,M=A,y,P=U!==void 0||F!==void 0||L!==void 0;if(R!==void 0){let{PERMISSION_MODES:W}=await import("./permissions-1.1.27-qnhk36mh.mjs"),C=W;if(!C.includes(R))console.error(`Error: Invalid permission mode '${R}'. Valid modes: ${C.join(", ")}`),process.exit(1)}let x=lz("."),{enableConfigs:N,checkHasTrustDialogAccepted:f}=await import("./config-1.1.27-7vwe1qph.mjs");N();let{initSinks:k}=await import("./sinks-1.1.27-qevt5nft.mjs");k();let b=await vJ();if(P&&!b)await _J("",{used_spawn:U!==void 0,used_capacity:F!==void 0,used_create_session_in_dir:L!==void 0}),await Promise.race([Promise.all([RJ(),CJ()]),i(500,void 0,{unref:!0})]).catch(()=>{}),console.error("Error: Multi-session Remote Control is not enabled for your account yet."),process.exit(1);let{setOriginalCwd:d,setCwdState:S}=await import("./state-1.1.27-fpyqkxby.mjs");if(d(x),S(x),!f())console.error(`Error: Workspace not trusted. Please run \`claude\` in ${x} first to review and accept the workspace trust dialog.`),process.exit(1);let{clearOAuthTokenCache:Xz,checkAndRefreshOAuthTokenIfNeeded:m}=await import("./auth-1.1.27-gp1b9bvj.mjs"),{getBridgeAccessToken:a,getBridgeBaseUrl:$z}=await import("./bridgeConfig-1.1.27-bbn4xfe7.mjs");if(!a())console.error(oz),process.exit(1);let{getGlobalConfig:o,saveGlobalConfig:jz,getCurrentProjectConfig:t,saveCurrentProjectConfig:p}=await import("./config-1.1.27-7vwe1qph.mjs");if(!o().remoteDialogSeen){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
|
|
76
|
-
Remote Control lets you access this CLI session from the web (claude.ai/code)
|
|
77
|
-
or the Claude app, so you can pick up where you left off on any device.
|
|
78
|
-
|
|
79
|
-
You can disconnect remote access anytime by running /remote-control again.
|
|
80
|
-
`);let h=await new Promise((Hz)=>{C.question("Enable Remote Control? (y/n) ",Hz)});if(C.close(),jz((Hz)=>{if(Hz.remoteDialogSeen)return Hz;return{...Hz,remoteDialogSeen:!0}}),h.toLowerCase()!=="y"&&h.toLowerCase()!=="yes")process.exit(0)}let $=$z();if($.startsWith("http://")&&!$.includes("localhost")&&!$.includes("127.0.0.1"))console.error("Error: Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed."),process.exit(1);let G=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||$,{getBranch:w,getRemoteUrl:Vz,findGitRoot:_z}=await import("./git-1.1.27-pe9yjmar.mjs"),{hasWorktreeCreateHook:Oz}=await import("./hooks-1.1.27-8p1xt4z2.mjs"),Qz=Oz()||_z(x)!==null,Jz=b?t().remoteControlSpawnMode:void 0;if(Jz==="worktree"&&!Qz)console.error("Warning: Saved spawn mode is worktree but this directory is not a git repository. Falling back to same-dir."),Jz=void 0,p((W)=>{if(W.remoteControlSpawnMode===void 0)return W;return{...W,remoteControlSpawnMode:void 0}});if(b&&!Jz&&Qz&&U===void 0&&!M&&process.stdin.isTTY){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
|
|
81
|
-
Claude Remote Control is launching in spawn mode which lets you create new sessions in this project from Claude Code on Web or your Mobile app. Learn more here: https://code.claude.com/docs/en/remote-control
|
|
82
|
-
|
|
83
|
-
Spawn mode for this project:
|
|
84
|
-
`+` [1] same-dir — sessions share the current directory (default)
|
|
85
|
-
`+` [2] worktree — each session gets an isolated git worktree
|
|
86
|
-
|
|
87
|
-
`+`This can be changed later or explicitly set with --spawn=same-dir or --spawn=worktree.
|
|
88
|
-
`);let h=await new Promise((Pz)=>{C.question("Choose [1/2] (default: 1): ",Pz)});C.close();let Hz=h.trim()==="2"?"worktree":"same-dir";Jz=Hz,zz("",{spawn_mode:Hz}),p((Pz)=>{if(Pz.remoteControlSpawnMode===Hz)return Pz;return{...Pz,remoteControlSpawnMode:Hz}})}let Kz,r;if(M)r="single-session",Kz="resume";else if(U!==void 0)r=U,Kz="flag";else if(Jz!==void 0)r=Jz,Kz="saved";else r=b?"same-dir":"single-session",Kz="gate_default";let Mz=r==="single-session"?1:F??IJ,Fz=L??!0;if(!M){let{clearBridgePointer:W}=await import("./bridgePointer-1.1.27-95k3w0tb.mjs");await W(x)}if(r==="worktree"&&!Qz)console.error("Error: Worktree mode requires a git repository or WorktreeCreate hooks configured. Use --spawn=session for single-session mode."),process.exit(1);let Q=await w(),j=await Vz(),E=bJ(),H=Sz(),{handleOAuth401Error:D}=await import("./auth-1.1.27-gp1b9bvj.mjs"),v=rz({baseUrl:$,getAccessToken:a,runnerVersion:"99.0.0",onDebug:q,onAuth401:D,getTrustedDeviceToken:az}),u,X={dir:x,machineName:E,branch:Q,gitRepoUrl:j,maxSessions:Mz,spawnMode:r,verbose:K,sandbox:Y,bridgeId:H,workerType:"claude_code",environmentId:Sz(),reuseEnvironmentId:u,apiBaseUrl:$,sessionIngressUrl:G,debugFile:O,sessionTimeoutMs:Z};q(`[bridge:init] bridgeId=${H}${u?` reuseEnvironmentId=${u}`:""} dir=${x} branch=${Q} gitRepoUrl=${j} machine=${E}`),q(`[bridge:init] apiBaseUrl=${$} sessionIngressUrl=${G}`),q(`[bridge:init] sandbox=${Y}${O?` debugFile=${O}`:""}`);let T,c;try{let W=await v.registerBridgeEnvironment(X);T=W.environment_id,c=W.environment_secret}catch(W){zz("",{status:W instanceof xz?W.status:void 0}),console.error(W instanceof xz&&W.status===404?"Remote Control environments are not available for your account.":`Error: ${g(W)}`),process.exit(1)}let s;q(`[bridge:init] Registered, server environmentId=${T}`);let Yz=Tz();zz("",{max_sessions:X.maxSessions,has_debug_file:!!X.debugFile,sandbox:X.sandbox,verbose:X.verbose,heartbeat_interval_ms:Yz.non_exclusive_heartbeat_interval_ms,spawn_mode:X.spawnMode,spawn_mode_source:Kz,multi_session_gate:b,pre_create_session:Fz,worktree_available:Qz}),Wz("info","bridge_started",{max_sessions:X.maxSessions,sandbox:X.sandbox,spawn_mode:X.spawnMode});let Zz=gz({execPath:process.execPath,scriptArgs:hJ(),env:process.env,verbose:K,sandbox:Y,debugFile:O,permissionMode:R,onDebug:q,onActivity:(W,C)=>{q(`[bridge:activity] sessionId=${W} ${C.type} ${C.summary}`)},onPermissionRequest:(W,C,h)=>{q(`[bridge:perm] sessionId=${W} tool=${C.request.tool_name} request_id=${C.request_id} (not auto-approving)`)}}),l=VJ({verbose:K}),{parseGitHubRepository:Nz}=await import("./detectRepository-1.1.27-qx3djtsx.mjs"),Uz=j?Nz(j):null,e=Uz?Uz.split("/").pop():AK(x);l.setRepoInfo(e,Q);let Lz=r!=="single-session"&&Qz;if(Lz)l.setSpawnModeDisplay(r);let Dz=(W)=>{if(W[0]===3||W[0]===4){process.emit("SIGINT");return}if(W[0]===32){l.toggleQr();return}if(W[0]===119){if(!Lz)return;let C=X.spawnMode==="same-dir"?"worktree":"same-dir";X.spawnMode=C,zz("",{spawn_mode:C}),l.logStatus(C==="worktree"?"Spawn mode: worktree (new sessions get isolated git worktrees)":"Spawn mode: same-dir (new sessions share the current directory)"),l.setSpawnModeDisplay(C),l.refreshDisplay(),p((h)=>{if(h.remoteControlSpawnMode===C)return h;return{...h,remoteControlSpawnMode:C}});return}};if(process.stdin.isTTY)process.stdin.setRawMode(!0),process.stdin.resume(),process.stdin.on("data",Dz);let Az=new AbortController,wz=()=>{q("[bridge:shutdown] SIGINT received, shutting down"),Az.abort()},yz=()=>{q("[bridge:shutdown] SIGTERM received, shutting down"),Az.abort()};process.on("SIGINT",wz),process.on("SIGTERM",yz);let Gz=null;if(Fz){let{createBridgeSession:W}=await import("./createSession-1.1.27-xdq80vrv.mjs");try{if(Gz=await W({environmentId:T,title:B,events:[],gitRepoUrl:j,branch:Q,signal:Az.signal,baseUrl:$,getAccessToken:a,permissionMode:R}),Gz)q(`[bridge:init] Created initial session ${Gz}`)}catch(C){q(`[bridge:init] Session creation failed (non-fatal): ${g(C)}`)}}let Bz=null;if(Gz&&r==="single-session"){let{writeBridgePointer:W}=await import("./bridgePointer-1.1.27-95k3w0tb.mjs"),C={sessionId:Gz,environmentId:T,source:"standalone"};await W(X.dir,C),Bz=setInterval(W,3600000,X.dir,C),Bz.unref?.()}try{await SJ(X,T,c,v,Zz,l,Az.signal,void 0,Gz??void 0,async()=>{return Xz(),await m(),a()})}finally{if(Bz!==null)clearInterval(Bz);if(process.off("SIGINT",wz),process.off("SIGTERM",yz),process.stdin.off("data",Dz),process.stdin.isTTY)process.stdin.setRawMode(!1);process.stdin.pause()}process.exit(0)}class hz extends Error{constructor(z){super(z);this.name="BridgeHeadlessPermanentError"}}async function kZ(z,J){let{dir:K,log:Y}=z;process.chdir(K);let{setOriginalCwd:O,setCwdState:Z}=await import("./state-1.1.27-fpyqkxby.mjs");O(K),Z(K);let{enableConfigs:R,checkHasTrustDialogAccepted:B}=await import("./config-1.1.27-7vwe1qph.mjs");R();let{initSinks:U}=await import("./sinks-1.1.27-qevt5nft.mjs");if(U(),!B())throw new hz(`Workspace not trusted: ${K}. Run \`claude\` in that directory first to accept the trust dialog.`);if(!z.getAccessToken())throw Error(oz);let{getBridgeBaseUrl:F}=await import("./bridgeConfig-1.1.27-bbn4xfe7.mjs"),L=F();if(L.startsWith("http://")&&!L.includes("localhost")&&!L.includes("127.0.0.1"))throw new hz("Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed.");let A=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||L,{getBranch:_,getRemoteUrl:M,findGitRoot:y}=await import("./git-1.1.27-pe9yjmar.mjs"),{hasWorktreeCreateHook:P}=await import("./hooks-1.1.27-8p1xt4z2.mjs");if(z.spawnMode==="worktree"){if(!(P()||y(K)!==null))throw new hz(`Worktree mode requires a git repository or WorktreeCreate hooks. Directory ${K} has neither.`)}let x=await _(),N=await M(),f=bJ(),k=Sz(),b={dir:K,machineName:f,branch:x,gitRepoUrl:N,maxSessions:z.capacity,spawnMode:z.spawnMode,verbose:!1,sandbox:z.sandbox,bridgeId:k,workerType:"claude_code",environmentId:Sz(),apiBaseUrl:L,sessionIngressUrl:A,sessionTimeoutMs:z.sessionTimeoutMs},d=rz({baseUrl:L,getAccessToken:z.getAccessToken,runnerVersion:"99.0.0",onDebug:Y,onAuth401:z.onAuth401,getTrustedDeviceToken:az}),S,Xz;try{let n=await d.registerBridgeEnvironment(b);S=n.environment_id,Xz=n.environment_secret}catch(n){throw Error(`Bridge registration failed: ${g(n)}`)}let m=gz({execPath:process.execPath,scriptArgs:hJ(),env:process.env,verbose:!1,sandbox:z.sandbox,permissionMode:z.permissionMode,onDebug:Y}),a=uK(Y);a.printBanner(b,S);let $z;if(z.createSessionOnStart){let{createBridgeSession:n}=await import("./createSession-1.1.27-xdq80vrv.mjs");try{let o=await n({environmentId:S,title:z.name,events:[],gitRepoUrl:N,branch:x,signal:J,baseUrl:L,getAccessToken:z.getAccessToken,permissionMode:z.permissionMode});if(o)$z=o,Y(`created initial session ${o}`)}catch(o){Y(`session pre-creation failed (non-fatal): ${g(o)}`)}}await SJ(b,S,Xz,d,m,a,J,void 0,$z,async()=>z.getAccessToken())}function uK(z){let J=()=>{};return{printBanner:(K,Y)=>z(`registered environmentId=${Y} dir=${K.dir} spawnMode=${K.spawnMode} capacity=${K.maxSessions}`),logSessionStart:(K,Y)=>z(`session start ${K}`),logSessionComplete:(K,Y)=>z(`session complete ${K} (${Y}ms)`),logSessionFailed:(K,Y)=>z(`session failed ${K}: ${Y}`),logStatus:z,logVerbose:z,logError:(K)=>z(`error: ${K}`),logReconnected:(K)=>z(`reconnected after ${K}ms`),addSession:(K,Y)=>z(`session attached ${K}`),removeSession:(K)=>z(`session detached ${K}`),updateIdleStatus:J,updateReconnectingStatus:J,updateSessionStatus:J,updateSessionActivity:J,updateSessionCount:J,updateFailedStatus:J,setSpawnModeDisplay:J,setRepoInfo:J,setAttached:J,setSessionTitle:J,clearStatus:J,toggleQr:J,refreshDisplay:J}}export{SJ as runBridgeLoop,kZ as runBridgeHeadless,IK as parseArgs,MK as isServerError,xK as isConnectionError,fZ as bridgeMain,hz as BridgeHeadlessPermanentError};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{YW as S,ZW as c}from"./cli-1.1.27-gan2msv5.mjs";import{Aja as Y,Bja as O,Cja as N,Dja as _,sja as G,tja as A,xja as M}from"./cli-1.1.27-njcbrvnc.mjs";import{Ala as k,ala as K,bla as W,fla as R,xla as C}from"./cli-1.1.27-r335xv52.mjs";import"./cli-1.1.27-jt1gb6nf.mjs";import{Zla as y,cma as j}from"./cli-1.1.27-0rz9qd34.mjs";import"./cli-1.1.27-t1dxp2pw.mjs";import"./cli-1.1.27-m6ne80zc.mjs";import"./cli-1.1.27-jg3tymed.mjs";import"./cli-1.1.27-8gsqhqyf.mjs";import"./cli-1.1.27-8vrv0ver.mjs";O();k();j();c();_();M();R();import{mkdir as z,readFile as E,stat as T,unlink as m,writeFile as B}from"fs/promises";import{dirname as b,join as f}from"path";var I=50,u=14400000,D=N(()=>Y.object({sessionId:Y.string(),environmentId:Y.string(),source:Y.enum(["standalone","repl"])}));function J(q){return f(A(),G(q),"bridge-pointer.json")}async function g(q,x){let v=J(q);try{await z(b(v),{recursive:!0}),await B(v,K(x),"utf8"),C(`[bridge:pointer] wrote ${v}`)}catch(V){C(`[bridge:pointer] write failed: ${V}`,{level:"warn"})}}async function U(q){let x=J(q),v,V;try{V=(await T(x)).mtimeMs,v=await E(x,"utf8")}catch{return null}let Z=D().safeParse(F(v));if(!Z.success)return C(`[bridge:pointer] invalid schema, clearing: ${x}`),await X(q),null;let $=Math.max(0,Date.now()-V);if($>u)return C(`[bridge:pointer] stale (>4h mtime), clearing: ${x}`),await X(q),null;return{...Z.data,ageMs:$}}async function s(q){let x=await U(q);if(x)return{pointer:x,dir:q};let v=await S(q);if(v.length<=1)return null;if(v.length>I)return C(`[bridge:pointer] ${v.length} worktrees exceeds fanout cap ${I}, skipping`),null;let V=G(q),Z=v.filter((H)=>G(H)!==V),$=await Promise.all(Z.map(async(H)=>{let L=await U(H);return L?{pointer:L,dir:H}:null})),Q=null;for(let H of $)if(H&&(!Q||H.pointer.ageMs<Q.pointer.ageMs))Q=H;if(Q)C(`[bridge:pointer] fanout found pointer in worktree ${Q.dir} (ageMs=${Q.pointer.ageMs})`);return Q}async function X(q){let x=J(q);try{await m(x),C(`[bridge:pointer] cleared ${x}`)}catch(v){if(!y(v))C(`[bridge:pointer] clear failed: ${v}`,{level:"warn"})}}function F(q){try{return W(q)}catch{return null}}export{g as writeBridgePointer,s as readBridgePointerAcrossWorktrees,U as readBridgePointer,J as getBridgePointerPath,X as clearBridgePointer,u as BRIDGE_POINTER_TTL_MS};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Gi as a,Hi as AJ}from"./cli-1.1.27-55evh9sy.mjs";import{Ii as x,Ji as vJ}from"./cli-1.1.27-6dm0tj1c.mjs";import{CR as TJ,Gx as u,Hx as IJ,JS as hJ,NU as s,OU as t,PU as DJ,Vy as m,Xy as HJ,fF as c,io as g,jo as UJ,lF as WJ,rR as r,uS as o,yI as $,zI as bJ}from"./cli-1.1.27-w8pwj9ef.mjs";import"./cli-1.1.27-96ccvbyj.mjs";import"./cli-1.1.27-9d0bkxf6.mjs";import"./cli-1.1.27-f3cv6wk1.mjs";import"./cli-1.1.27-sr4a2gd6.mjs";import"./cli-1.1.27-3mpdw95c.mjs";import"./cli-1.1.27-x6dqasdj.mjs";import"./cli-1.1.27-22f6jd6a.mjs";import"./cli-1.1.27-gmknn4xh.mjs";import"./cli-1.1.27-2mtc2dbf.mjs";import"./cli-1.1.27-gan2msv5.mjs";import"./cli-1.1.27-pab2avnw.mjs";import"./cli-1.1.27-090g18py.mjs";import"./cli-1.1.27-nx2yxmg9.mjs";import"./cli-1.1.27-7zpnm6dn.mjs";import"./cli-1.1.27-jvs6enw9.mjs";import"./cli-1.1.27-7jakzfss.mjs";import"./cli-1.1.27-nxkc7nfr.mjs";import"./cli-1.1.27-wbtq2bbb.mjs";import"./cli-1.1.27-q830jx95.mjs";import{SY as i,TY as QJ,nZ as l,pZ as kJ}from"./cli-1.1.27-9chfrr9e.mjs";import"./cli-1.1.27-f218cppx.mjs";import{F1 as W,H1 as b,Y1 as S,_1 as KJ,g0 as GJ,k2 as NJ}from"./cli-1.1.27-6spv5ha8.mjs";import"./cli-1.1.27-zr523fbq.mjs";import"./cli-1.1.27-hrwxg46q.mjs";import"./cli-1.1.27-m2n4m352.mjs";import"./cli-1.1.27-xx0q9f0f.mjs";import"./cli-1.1.27-6g67vpnz.mjs";import"./cli-1.1.27-zq9wak2z.mjs";import"./cli-1.1.27-hhkkts5k.mjs";import"./cli-1.1.27-scfswqdr.mjs";import"./cli-1.1.27-4xegg6js.mjs";import"./cli-1.1.27-94qc7asn.mjs";import"./cli-1.1.27-3eax0jv3.mjs";import{U4 as F,V4 as H,W4 as _}from"./cli-1.1.27-kgpk1m6k.mjs";import{X4 as zJ}from"./cli-1.1.27-m5wtrd2b.mjs";import"./cli-1.1.27-d4km9s81.mjs";import"./cli-1.1.27-8vkygf4q.mjs";import"./cli-1.1.27-1rztfj2j.mjs";import"./cli-1.1.27-wtthtmes.mjs";import"./cli-1.1.27-xdfkhk5m.mjs";import"./cli-1.1.27-kdv6nw9e.mjs";import"./cli-1.1.27-vh1r16sd.mjs";import"./cli-1.1.27-ny95570d.mjs";import"./cli-1.1.27-dhzbmaf3.mjs";import"./cli-1.1.27-k9jt24bv.mjs";import{Kca as j,Lca as p,Wfa as C,bda as ZJ,sga as FJ}from"./cli-1.1.27-48ezce33.mjs";import"./cli-1.1.27-fw9r8cwg.mjs";import"./cli-1.1.27-eag2dgb4.mjs";import"./cli-1.1.27-n3fg97y6.mjs";import"./cli-1.1.27-dfww0knt.mjs";import"./cli-1.1.27-njcbrvnc.mjs";import"./cli-1.1.27-cxy3fqs0.mjs";import"./cli-1.1.27-y712t8h2.mjs";import"./cli-1.1.27-7gnbh46g.mjs";import"./cli-1.1.27-r335xv52.mjs";import"./cli-1.1.27-jt1gb6nf.mjs";import{Xla as f,cma as YJ}from"./cli-1.1.27-0rz9qd34.mjs";import"./cli-1.1.27-t1dxp2pw.mjs";import"./cli-1.1.27-m6ne80zc.mjs";import"./cli-1.1.27-jg3tymed.mjs";import"./cli-1.1.27-8gsqhqyf.mjs";import"./cli-1.1.27-4cjm0m5c.mjs";import"./cli-1.1.27-t4rm4dqf.mjs";import"./cli-1.1.27-n09bs0db.mjs";import{Ita as R,Mta as XJ}from"./cli-1.1.27-8vrv0ver.mjs";function BJ(V){let J=n.c(25),{question:Y,context:z,onDone:G}=V,[Z,e]=N.useState(null),[K,y]=N.useState(null),[P,JJ]=N.useState(0),T=N.useRef(null),{rows:VJ}=l(i()),v;if(J[0]===Symbol.for("react.memo_cache_sentinel"))v=()=>JJ(EJ),J[0]=v;else v=J[0];S(v,Z||K?null:80);let A;if(J[1]!==G)A=function(X){if(X.key==="escape"||X.key==="return"||X.key===" "||X.ctrl&&(X.key==="c"||X.key==="d")){X.preventDefault(),G(void 0,{display:"skip"});return}if(X.key==="up"||X.ctrl&&X.key==="p")X.preventDefault(),T.current?.scrollBy(-d);if(X.key==="down"||X.ctrl&&X.key==="n")X.preventDefault(),T.current?.scrollBy(d)},J[1]=G,J[2]=A;else A=J[2];let h=A,w,L;if(J[3]!==z||J[4]!==Y)w=()=>{let q=g();return async function(){try{let O=await MJ(z),M=await a({question:Y,cacheSafeParams:O});if(!q.signal.aborted)if(M.response)e(M.response);else y("No response received")}catch(O){let M=O;if(!q.signal.aborted)y(f(M)||"Failed to get response")}}(),()=>{q.abort()}},L=[Y,z],J[3]=z,J[4]=Y,J[5]=w,J[6]=L;else w=J[5],L=J[6];N.useEffect(w,L);let D=Math.max(5,VJ-wJ-LJ),B;if(J[7]===Symbol.for("react.memo_cache_sentinel"))B=H(b,{color:"warning",bold:!0,children:["/btw"," "]}),J[7]=B;else B=J[7];let Q;if(J[8]!==Y)Q=H(W,{children:[B,F(b,{dimColor:!0,children:Y})]}),J[8]=Y,J[9]=Q;else Q=J[9];let U;if(J[10]!==K||J[11]!==P||J[12]!==Z)U=F(x,{ref:T,flexDirection:"column",flexGrow:1,children:K?F(b,{color:"error",children:K}):Z?F(m,{children:Z}):H(W,{children:[F($,{frame:P,messageColor:"warning"}),F(b,{color:"warning",children:"Answering..."})]})}),J[10]=K,J[11]=P,J[12]=Z,J[13]=U;else U=J[13];let k;if(J[14]!==D||J[15]!==U)k=F(W,{marginTop:1,marginLeft:2,maxHeight:D,children:U}),J[14]=D,J[15]=U,J[16]=k;else k=J[16];let I;if(J[17]!==K||J[18]!==Z)I=(Z||K)&&F(W,{marginTop:1,children:H(b,{dimColor:!0,children:[j,"/",p," to scroll · Space, Enter, or Escape to dismiss"]})}),J[17]=K,J[18]=Z,J[19]=I;else I=J[19];let E;if(J[20]!==h||J[21]!==Q||J[22]!==k||J[23]!==I)E=H(W,{flexDirection:"column",paddingLeft:2,marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:h,children:[Q,k,I]}),J[20]=h,J[21]=Q,J[22]=k,J[23]=I,J[24]=E;else E=J[24];return E}function EJ(V){return V+1}function qJ(V){let J=V.at(-1);if(J?.type==="assistant"&&J.message.stop_reason===null)return V.slice(0,-1);return V}async function MJ(V){let J=o(qJ(V.messages)),Y=c();if(Y)return{systemPrompt:Y.systemPrompt,userContext:Y.userContext,systemContext:Y.systemContext,toolUseContext:V,forkContextMessages:J};let[z,G,Z]=await Promise.all([r(V.options.tools,V.options.mainLoopModel,[],V.options.mcpClients),t(),s()]);return{systemPrompt:u(z),userContext:G,systemContext:Z,toolUseContext:V,forkContextMessages:J}}async function aJ(V,J,Y){let z=Y?.trim();if(!z)return V("Usage: /btw <your question>",{display:"system"}),null;return C((G)=>({...G,btwUseCount:G.btwUseCount+1})),F(BJ,{question:z,context:J,onDone:V})}var n,N,wJ=5,LJ=6,d=3;var PJ=XJ(()=>{KJ();HJ();bJ();ZJ();TJ();kJ();DJ();QJ();vJ();NJ();UJ();FJ();YJ();WJ();hJ();AJ();IJ();_();n=R(GJ(),1),N=R(zJ(),1)});PJ();export{aJ as call};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{OY as p,PY as f,QY as a,RY as S}from"./cli-1.1.27-q830jx95.mjs";import{Wfa as d,sga as C}from"./cli-1.1.27-48ezce33.mjs";import"./cli-1.1.27-fw9r8cwg.mjs";import"./cli-1.1.27-eag2dgb4.mjs";import"./cli-1.1.27-n3fg97y6.mjs";import"./cli-1.1.27-dfww0knt.mjs";import"./cli-1.1.27-njcbrvnc.mjs";import{hka as m,ika as y,jka as b}from"./cli-1.1.27-cxy3fqs0.mjs";import"./cli-1.1.27-y712t8h2.mjs";import"./cli-1.1.27-7gnbh46g.mjs";import"./cli-1.1.27-r335xv52.mjs";import"./cli-1.1.27-jt1gb6nf.mjs";import"./cli-1.1.27-0rz9qd34.mjs";import"./cli-1.1.27-t1dxp2pw.mjs";import"./cli-1.1.27-m6ne80zc.mjs";import"./cli-1.1.27-jg3tymed.mjs";import"./cli-1.1.27-8gsqhqyf.mjs";import{Mta as g}from"./cli-1.1.27-8vrv0ver.mjs";function R(t){let o=2166136261;for(let s=0;s<t.length;s++)o^=t.charCodeAt(s),o=Math.imul(o,16777619);return o>>>0}function r(t,o){return t[R(o)%t.length]}function M(t){return t.charAt(0).toUpperCase()+t.slice(1)}function O(){let t=f(),{bones:o}=p(`${t}:buddy`),s=r($,`${t}:prefix`),n=r(A,`${t}:suffix`),i=r(w,`${t}:personality`);return{name:`${s}${n}`,personality:`${i}.`,hatchedAt:Date.now()}}function l(t,o,s=!1){t.setAppState((n)=>({...n,companionReaction:o,companionPetAt:s?Date.now():n.companionPetAt}))}function c(t){t(`Usage: /buddy [status|mute|unmute]
|
|
2
|
-
|
|
3
|
-
Run /buddy with no args to hatch your companion the first time, then pet it on later runs.`,{display:"system"})}async function X(t,o,s){let n=s?.trim().toLowerCase()??"";if(m.includes(n)||n===""){let e=a();if(n!==""||e){if(n!=="")return c(t),null}}if(m.includes(n))return c(t),null;if(y.includes(n)||n==="status"){let e=a();if(!e)return t("No buddy hatched yet. Run /buddy to hatch one.",{display:"system"}),null;return t(`${e.name} is your ${M(e.rarity)} ${e.species}. ${e.personality}`,{display:"system"}),null}if(n==="mute"||n==="unmute"){let e=n==="mute";if(d((u)=>({...u,companionMuted:e})),e)l(o,void 0);return t(`Buddy ${e?"muted":"unmuted"}.`,{display:"system"}),null}if(n!=="")return c(t),null;let i=a();if(!i){let e=O();return d((u)=>({...u,companion:e,companionMuted:!1})),i={...p(`${f()}:buddy`).bones,...e},l(o,`${i.name} the ${i.species} has hatched.`,!0),t(`${i.name} the ${i.species} is now your buddy. Run /buddy again to pet them.`,{display:"system"}),null}let h=`${i.name} ${r(E,`${Date.now()}:${i.name}`)}`;return l(o,h,!0),t(void 0,{display:"skip"}),null}var $,A,w,E;var L=g(()=>{C();S();b();$=["Byte","Echo","Glint","Miso","Nova","Pixel","Rune","Static","Vector","Whisk"],A=["bean","bit","bud","dot","ling","loop","moss","patch","puff","spark"],w=["Curious and quietly encouraging","A patient little watcher with strong debugging instincts","Playful, observant, and suspicious of flaky tests","Calm under pressure and fond of clean diffs","A tiny terminal gremlin who likes successful builds"],E=["leans into the headpat","does a proud little bounce","emits a content beep","looks delighted","wiggles happily"]});L();export{X as call};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import{N3 as h,R3 as zz}from"./cli-1.1.27-zq9wak2z.mjs";import"./cli-1.1.27-wtthtmes.mjs";import{W7 as e,w7 as m}from"./cli-1.1.27-xdfkhk5m.mjs";import"./cli-1.1.27-kdv6nw9e.mjs";import"./cli-1.1.27-vh1r16sd.mjs";import"./cli-1.1.27-ny95570d.mjs";import"./cli-1.1.27-dhzbmaf3.mjs";import{Aha as s,Dha as v,Gha as r,sha as y}from"./cli-1.1.27-48ezce33.mjs";import"./cli-1.1.27-fw9r8cwg.mjs";import"./cli-1.1.27-eag2dgb4.mjs";import"./cli-1.1.27-n3fg97y6.mjs";import"./cli-1.1.27-dfww0knt.mjs";import"./cli-1.1.27-njcbrvnc.mjs";import"./cli-1.1.27-cxy3fqs0.mjs";import"./cli-1.1.27-y712t8h2.mjs";import"./cli-1.1.27-7gnbh46g.mjs";import{Ala as o,xla as k}from"./cli-1.1.27-r335xv52.mjs";import"./cli-1.1.27-jt1gb6nf.mjs";import"./cli-1.1.27-0rz9qd34.mjs";import"./cli-1.1.27-t1dxp2pw.mjs";import{Vra as a,Wna as b}from"./cli-1.1.27-m6ne80zc.mjs";import"./cli-1.1.27-jg3tymed.mjs";import"./cli-1.1.27-8gsqhqyf.mjs";import"./cli-1.1.27-4cjm0m5c.mjs";import"./cli-1.1.27-t4rm4dqf.mjs";import"./cli-1.1.27-n09bs0db.mjs";import{Mta as n}from"./cli-1.1.27-8vrv0ver.mjs";function Nz(J){if(!J)return"unknown";return J.replace(/-\d{4,}$/,"").replace(/-latest$/,"").replace(/-preview$/,"")}function Y(J,Q){return Q.split(".").reduce((X,O)=>X!=null?X[O]:void 0,J)}async function R(J,Q,X,O){let q=Date.now(),V;try{V=await fetch(J,{method:"POST",headers:Q,body:JSON.stringify(X)})}catch(B){return{label:O,status:0,elapsed:Date.now()-q,headers:{},usage:null,responseId:null,error:B.message}}let A=Date.now()-q,U={};if(V.headers.forEach((B,w)=>{U[w]=B}),!V.ok){let B=await V.text().catch(()=>"");return{label:O,status:V.status,elapsed:A,headers:U,usage:null,responseId:null,error:B}}let L=await V.text(),$=null,T=null,_=J.endsWith("/responses");for(let B of L.split(`
|
|
2
|
-
|
|
3
|
-
`)){let w=B.split(`
|
|
4
|
-
`).map((x)=>x.trim()).filter(Boolean);if(_){let x=w.find((z)=>z.startsWith("event: ")),j=w.filter((z)=>z.startsWith("data: "));if(!x||!j.length)continue;let C=x.slice(7).trim();if(C==="response.completed"||C==="response.incomplete")try{let z=JSON.parse(j.map((W)=>W.slice(6)).join(`
|
|
5
|
-
`));$=z?.response?.usage??null,T=z?.response?.id??null}catch{}}else for(let x of w){if(!x.startsWith("data: "))continue;let j=x.slice(6).trim();if(j==="[DONE]")continue;try{let C=JSON.parse(j);if(C.usage)$=C.usage,T=C.id??null}catch{}}}return{label:O,status:V.status,elapsed:A,headers:U,usage:$,responseId:T,error:null}}function S(J){let Q=[`--- ${J.label} ---`];if(J.error)return Q.push(` ERROR (HTTP ${J.status}): ${J.error.slice(0,200)}`),Q.join(`
|
|
6
|
-
`);if(Q.push(` HTTP ${J.status} — ${J.elapsed}ms`),J.responseId)Q.push(` response.id: ${J.responseId}`);if(J.usage)Q.push(" Usage:"),Q.push(` ${JSON.stringify(J.usage,null,2).replace(/\n/g,`
|
|
7
|
-
`)}`);else Q.push(" Usage: null");for(let X of["openai-processing-ms","x-ratelimit-remaining","x-ratelimit-limit","x-ms-region","x-github-request-id","x-request-id"])if(J.headers[X])Q.push(` ${X}: ${J.headers[X]}`);return Q.join(`
|
|
8
|
-
`)}var Jz,K,M='Say "hello" and nothing else.',g=3000,jz=async(J)=>{let Q=(J??"").trim().split(/\s+/).filter(Boolean),X=Q.includes("--no-key"),q=(Q.find((N)=>!N.startsWith("--"))||void 0)??m(),V=y({model:q}),A=v(),U=A?.transport==="github_copilot";if(U)h();let L=A?.apiKey??A?.extras?.githubToken??"";if(!L)return{type:"text",value:`No API key found. Make sure you are in an active OpenAI-compatible or GitHub Copilot session.
|
|
9
|
-
For GitHub Copilot: run /provider and choose GitHub Copilot.
|
|
10
|
-
For OpenAI-compatible: configure a profile via /provider.`};let $=V.transport==="codex_responses",T=$?"/responses":"/chat/completions",_=`${V.baseUrl}${T}`,B=Nz(V.resolvedModel),w=`${b()}:${B}`,x={"Content-Type":"application/json",Authorization:`Bearer ${L}`,originator:"claudin"};if(U)Object.assign(x,Jz);let j;if($)j={model:V.resolvedModel,instructions:K,input:[{type:"message",role:"user",content:[{type:"input_text",text:M}]}],stream:!0,...X?{}:{store:!1,prompt_cache_key:w}};else j={model:V.resolvedModel,messages:[{role:"system",content:K},{role:"user",content:M}],stream:!0,stream_options:{include_usage:!0},max_tokens:20,...X?{}:{store:!1,prompt_cache_key:w}};let C=[`[cache-probe] Starting cache probe${X?" (--no-key: cache params OMITTED)":""}`,` model: ${V.resolvedModel} (family: ${B})`,` transport: ${V.transport}`,` endpoint: ${_}`,` prompt_cache_key: ${X?"NOT SENT":w}`,` store: ${X?"NOT SENT":"false"}`,` system prompt: ~${Math.round(K.length/4)} tokens`,` delay between calls: ${g}ms`].join(`
|
|
11
|
-
`);k(C);let z=await R(_,x,j,"CALL 1 — Cold (no cache)");if(k(`[cache-probe]
|
|
12
|
-
${S(z)}`),z.error)return{type:"text",value:`Cache probe failed on first call: HTTP ${z.status}
|
|
13
|
-
${z.error.slice(0,300)}
|
|
14
|
-
|
|
15
|
-
Full details in debug log.`};await new Promise((N)=>setTimeout(N,g));let W=await R(_,x,j,"CALL 2 — Warm (cache expected)");k(`[cache-probe]
|
|
16
|
-
${S(W)}`);let c=["input_tokens","output_tokens","total_tokens","prompt_tokens","completion_tokens","input_tokens_details.cached_tokens","prompt_tokens_details.cached_tokens","output_tokens_details.reasoning_tokens"],Z=["[cache-probe] COMPARISON"];Z.push(` ${"Field".padEnd(42)} ${"Call 1".padStart(8)} ${"Call 2".padStart(8)} ${"Delta".padStart(8)}`),Z.push(` ${"-".repeat(72)}`);for(let N of c){let H=Y(z.usage,N),I=Y(W.usage,N);if(H===void 0&&I===void 0)continue;let i=typeof H==="number"&&typeof I==="number"?I-H:"";Z.push(` ${N.padEnd(42)} ${String(H??"-").padStart(8)} ${String(I??"-").padStart(8)} ${String(i).padStart(8)}`)}Z.push(""),Z.push(` Latency: ${z.elapsed}ms → ${W.elapsed}ms (${W.elapsed-z.elapsed>0?"+":""}${W.elapsed-z.elapsed}ms)`);for(let N of["openai-processing-ms","x-ms-region","x-ratelimit-remaining"]){let H=z.headers[N],I=W.headers[N];if(H||I)Z.push(` ${N}: ${H??"-"} → ${I??"-"}`)}let D=Y(W.usage,"input_tokens_details.cached_tokens")??Y(W.usage,"prompt_tokens_details.cached_tokens")??0,F=z.usage?.input_tokens??z.usage?.prompt_tokens??0,P=W.usage?.input_tokens??W.usage?.prompt_tokens??0,G;if(D>0){let N=P>0?Math.round(D/P*100):"?";G=`CACHE HIT: ${D} cached tokens (${N}% of input)`}else if(F===0&&P===0)G="INCONCLUSIVE: Server returns 0 input_tokens — cannot measure";else if(W.elapsed<z.elapsed*0.6&&F>100)G=`POSSIBLE SILENT CACHING: Call 2 was ${Math.round((1-W.elapsed/z.elapsed)*100)}% faster but no cached_tokens reported`;else G="NO CACHE DETECTED";Z.push(`
|
|
17
|
-
Verdict: ${G}`);function u(N){return{input_tokens:N?.input_tokens??0,output_tokens:N?.output_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}function p(N){return{input_tokens:N?.prompt_tokens??0,output_tokens:N?.completion_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:N?.prompt_tokens_details?.cached_tokens??0}}let f=$?u:p,d=f(z.usage),E=f(W.usage);if(Z.push(""),Z.push(` --- What main's shim reports (${$?"codexShim.makeUsage":"openaiShim.convertChunkUsage"}) ---`),Z.push(` Call 1: cache_read_input_tokens=${d.cache_read_input_tokens}`),Z.push(` Call 2: cache_read_input_tokens=${E.cache_read_input_tokens}`),$&&D>0)Z.push(` BUG: Server returned ${D} cached tokens but main's makeUsage() drops it → reports 0`);else if(!$&&E.cache_read_input_tokens>0)Z.push(" OK: Chat Completions path on main correctly reads cached_tokens");k(Z.join(`
|
|
18
|
-
`));let t=X?" (NO cache key sent)":"",l=$?"codexShim.makeUsage()":"openaiShim.convertChunkUsage()";return{type:"text",value:[`Cache Probe — ${V.resolvedModel} via ${$?"Responses API":"Chat Completions"}${t}`,"",`Call 1: ${z.elapsed}ms, input=${F}, cached=${Y(z.usage,"input_tokens_details.cached_tokens")??Y(z.usage,"prompt_tokens_details.cached_tokens")??0}`,`Call 2: ${W.elapsed}ms, input=${P}, cached=${D}`,"",G,"",`What main's ${l} reports:`,` Call 2 cache_read_input_tokens = ${E.cache_read_input_tokens}${$&&D>0?" ← BUG: server sent "+D+" but main drops it":""}`,"","Full details written to debug log."].join(`
|
|
19
|
-
`)}};var Qz=n(()=>{a();r();s();o();zz();e();Jz={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},K=["You are a coding assistant. Answer concisely.","CONTEXT: User is working on a TypeScript project with Bun runtime.",...Array.from({length:80},(J,Q)=>`Rule ${Q+1}: Follow best practices for TypeScript including strict typing, error handling, testing, and clean code. Prefer explicit types over any. Use const assertions. Await all async operations.`)].join(`
|
|
20
|
-
|
|
21
|
-
`)});Qz();export{jz as call};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{i3 as P,j3 as Q,k3 as w,q3 as U,t3 as V,u3 as Y,v3 as Z,w3 as A}from"./cli-1.1.27-xx0q9f0f.mjs";import{Mta as j}from"./cli-1.1.27-8vrv0ver.mjs";function H(k,D){let I=new Date(k.timestamp).toISOString(),B=`${I.slice(0,10)} ${I.slice(11,19)}`,J=P(k.metrics);return` #${String(D+1).padStart(3)} ${B} ${k.label.padEnd(28).slice(0,28)} ${J}`}function L(k,D){return`${k.padEnd(18)}${Q(D)}`}var F=20,b=async()=>{let k=Z(),D=Y(),I=U();if(k.length===0)return{type:"text",value:`Cache stats
|
|
2
|
-
No API requests yet this session.
|
|
3
|
-
Start a turn and re-run /cache-stats to see results.`};let B=k.slice(-F),J=k.length-B.length,q=["Cache stats",""];q.push(L("Current turn:",I)),q.push(L("Session total:",D));let G=V();if(G.events>0)q.push(`${"Server clears:".padEnd(18)}${G.events} event${G.events===1?"":"s"}, ${G.clearedToolUses} tool results, ${G.clearedInputTokens.toLocaleString("en-US")} input tokens cleared`);q.push(""),q.push(`Recent requests (${B.length}${J>0?` of ${k.length}, ${J} older omitted`:""}):`),q.push(" # time model cache");for(let[K,$]of B.entries())q.push(H($,k.length-B.length+K));if(B.some((K)=>!K.metrics.supported))q.push(""),q.push(" N/A rows: provider API does not expose cache usage (GitHub Copilot, Ollama)."),q.push(" The request still ran normally — only the metric is unavailable.");return{type:"text",value:q.join(`
|
|
4
|
-
`)}};var N=j(()=>{A();w()});N();export{b as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{dh as a,eh as b}from"./cli-1.1.27-1hdrfsqd.mjs";import"./cli-1.1.27-sdw0p0c4.mjs";import"./cli-1.1.27-3cjhx8c4.mjs";import"./cli-1.1.27-w8pwj9ef.mjs";import"./cli-1.1.27-96ccvbyj.mjs";import"./cli-1.1.27-9d0bkxf6.mjs";import"./cli-1.1.27-f3cv6wk1.mjs";import"./cli-1.1.27-sr4a2gd6.mjs";import"./cli-1.1.27-3mpdw95c.mjs";import"./cli-1.1.27-x6dqasdj.mjs";import"./cli-1.1.27-22f6jd6a.mjs";import"./cli-1.1.27-gmknn4xh.mjs";import"./cli-1.1.27-2mtc2dbf.mjs";import"./cli-1.1.27-gan2msv5.mjs";import"./cli-1.1.27-pab2avnw.mjs";import"./cli-1.1.27-090g18py.mjs";import"./cli-1.1.27-nx2yxmg9.mjs";import"./cli-1.1.27-7zpnm6dn.mjs";import"./cli-1.1.27-jvs6enw9.mjs";import"./cli-1.1.27-7jakzfss.mjs";import"./cli-1.1.27-nxkc7nfr.mjs";import"./cli-1.1.27-wbtq2bbb.mjs";import"./cli-1.1.27-q830jx95.mjs";import"./cli-1.1.27-9chfrr9e.mjs";import"./cli-1.1.27-f218cppx.mjs";import"./cli-1.1.27-6spv5ha8.mjs";import"./cli-1.1.27-zr523fbq.mjs";import"./cli-1.1.27-hrwxg46q.mjs";import"./cli-1.1.27-m2n4m352.mjs";import"./cli-1.1.27-xx0q9f0f.mjs";import"./cli-1.1.27-6g67vpnz.mjs";import"./cli-1.1.27-zq9wak2z.mjs";import"./cli-1.1.27-hhkkts5k.mjs";import"./cli-1.1.27-scfswqdr.mjs";import"./cli-1.1.27-4xegg6js.mjs";import"./cli-1.1.27-94qc7asn.mjs";import"./cli-1.1.27-3eax0jv3.mjs";import"./cli-1.1.27-kgpk1m6k.mjs";import"./cli-1.1.27-m5wtrd2b.mjs";import"./cli-1.1.27-d4km9s81.mjs";import"./cli-1.1.27-8vkygf4q.mjs";import"./cli-1.1.27-1rztfj2j.mjs";import"./cli-1.1.27-wtthtmes.mjs";import"./cli-1.1.27-xdfkhk5m.mjs";import"./cli-1.1.27-kdv6nw9e.mjs";import"./cli-1.1.27-vh1r16sd.mjs";import"./cli-1.1.27-ny95570d.mjs";import"./cli-1.1.27-dhzbmaf3.mjs";import"./cli-1.1.27-k9jt24bv.mjs";import"./cli-1.1.27-48ezce33.mjs";import"./cli-1.1.27-fw9r8cwg.mjs";import"./cli-1.1.27-eag2dgb4.mjs";import"./cli-1.1.27-n3fg97y6.mjs";import"./cli-1.1.27-dfww0knt.mjs";import"./cli-1.1.27-njcbrvnc.mjs";import"./cli-1.1.27-cxy3fqs0.mjs";import"./cli-1.1.27-y712t8h2.mjs";import"./cli-1.1.27-7gnbh46g.mjs";import"./cli-1.1.27-r335xv52.mjs";import"./cli-1.1.27-jt1gb6nf.mjs";import"./cli-1.1.27-0rz9qd34.mjs";import"./cli-1.1.27-t1dxp2pw.mjs";import"./cli-1.1.27-m6ne80zc.mjs";import"./cli-1.1.27-jg3tymed.mjs";import"./cli-1.1.27-8gsqhqyf.mjs";import"./cli-1.1.27-4cjm0m5c.mjs";import"./cli-1.1.27-t4rm4dqf.mjs";import"./cli-1.1.27-n09bs0db.mjs";import"./cli-1.1.27-8vrv0ver.mjs";b();export{a as clearSessionCaches};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{ED as Z,FD as Bz,Im as M,KU as Kz,Nm as s,PL as j,QL as Ez,Zk as F,_k as r,am as c,dn as W,en as e,jn as u,nP as n,on as Uz,pP as Xz,qP as p,sP as l,sp as v,tP as Yz,tp as Vz,vm as Qz,vu as x,wu as zz,xU as P}from"./cli-1.1.27-w8pwj9ef.mjs";import"./cli-1.1.27-96ccvbyj.mjs";import"./cli-1.1.27-9d0bkxf6.mjs";import"./cli-1.1.27-f3cv6wk1.mjs";import"./cli-1.1.27-sr4a2gd6.mjs";import"./cli-1.1.27-3mpdw95c.mjs";import"./cli-1.1.27-x6dqasdj.mjs";import"./cli-1.1.27-22f6jd6a.mjs";import"./cli-1.1.27-gmknn4xh.mjs";import"./cli-1.1.27-2mtc2dbf.mjs";import"./cli-1.1.27-gan2msv5.mjs";import"./cli-1.1.27-pab2avnw.mjs";import"./cli-1.1.27-090g18py.mjs";import"./cli-1.1.27-nx2yxmg9.mjs";import"./cli-1.1.27-7zpnm6dn.mjs";import"./cli-1.1.27-jvs6enw9.mjs";import"./cli-1.1.27-7jakzfss.mjs";import"./cli-1.1.27-nxkc7nfr.mjs";import"./cli-1.1.27-wbtq2bbb.mjs";import"./cli-1.1.27-q830jx95.mjs";import"./cli-1.1.27-9chfrr9e.mjs";import"./cli-1.1.27-f218cppx.mjs";import"./cli-1.1.27-6spv5ha8.mjs";import"./cli-1.1.27-zr523fbq.mjs";import"./cli-1.1.27-hrwxg46q.mjs";import"./cli-1.1.27-m2n4m352.mjs";import"./cli-1.1.27-xx0q9f0f.mjs";import"./cli-1.1.27-6g67vpnz.mjs";import"./cli-1.1.27-zq9wak2z.mjs";import"./cli-1.1.27-hhkkts5k.mjs";import"./cli-1.1.27-scfswqdr.mjs";import"./cli-1.1.27-4xegg6js.mjs";import"./cli-1.1.27-94qc7asn.mjs";import"./cli-1.1.27-3eax0jv3.mjs";import"./cli-1.1.27-kgpk1m6k.mjs";import"./cli-1.1.27-m5wtrd2b.mjs";import"./cli-1.1.27-d4km9s81.mjs";import"./cli-1.1.27-8vkygf4q.mjs";import"./cli-1.1.27-1rztfj2j.mjs";import"./cli-1.1.27-wtthtmes.mjs";import"./cli-1.1.27-xdfkhk5m.mjs";import"./cli-1.1.27-kdv6nw9e.mjs";import{$9 as E,a_ as Lz}from"./cli-1.1.27-vh1r16sd.mjs";import"./cli-1.1.27-ny95570d.mjs";import"./cli-1.1.27-dhzbmaf3.mjs";import"./cli-1.1.27-k9jt24bv.mjs";import{Gaa as o,Sha as g,_ha as Nz,jaa as q,lfa as R,ofa as t}from"./cli-1.1.27-48ezce33.mjs";import"./cli-1.1.27-fw9r8cwg.mjs";import"./cli-1.1.27-eag2dgb4.mjs";import"./cli-1.1.27-n3fg97y6.mjs";import"./cli-1.1.27-dfww0knt.mjs";import{uja as y,xja as d}from"./cli-1.1.27-njcbrvnc.mjs";import{Gja as Y,Ija as f}from"./cli-1.1.27-cxy3fqs0.mjs";import"./cli-1.1.27-y712t8h2.mjs";import"./cli-1.1.27-7gnbh46g.mjs";import"./cli-1.1.27-r335xv52.mjs";import"./cli-1.1.27-jt1gb6nf.mjs";import"./cli-1.1.27-0rz9qd34.mjs";import"./cli-1.1.27-t1dxp2pw.mjs";import{$na as T,Iqa as C,Vra as O,Wna as G,Zna as H,aoa as b,coa as A,doa as I,xra as m,yra as w}from"./cli-1.1.27-m6ne80zc.mjs";import"./cli-1.1.27-jg3tymed.mjs";import"./cli-1.1.27-8gsqhqyf.mjs";import"./cli-1.1.27-4cjm0m5c.mjs";import"./cli-1.1.27-t4rm4dqf.mjs";import"./cli-1.1.27-n09bs0db.mjs";import{Mta as $}from"./cli-1.1.27-8vrv0ver.mjs";function h(){return k}function S(J){let B=Y();Z(J);let z=Y();try{process.chdir(z)}catch(N){throw Z(B),N}return H(G(),T()??y(b())),A(z),I(z),k=B,Jz(),{previousCwd:B,newCwd:z}}function Jz(){W(),P(),M.cache.clear?.(),F(),j.cache?.clear?.(),R.cache?.clear?.(),q.cache?.clear?.(),x()}var k=null;var D=$(()=>{s();e();r();Kz();Ez();t();O();zz();d();f();Bz();o()});import{dirname as Zz}from"node:path";function _z(J){let B=J.trim();if(!B)return{kind:"empty"};if(B==="-")return{kind:"previous"};return{kind:"path",path:B}}function $z(J,B,z){let N=[B?`${J.previousCwd} kept accessible for this session`:null,"transcript stays under the original project",z?"cancelled the pending /loop wakeup":null,"/cd - to return"].filter((V)=>V!==null);return`Moved this session to ${E.bold(J.newCwd)}
|
|
2
|
-
${E.dim(N.join(" · "))}`}function L(J){return{type:"text",value:J}}async function uz(J,B,z=Gz){let N=_z(J);if(N.kind==="empty")return L(`Usage: ${E.bold("/cd <path>")} — moves this session to another directory.
|
|
3
|
-
${E.dim("/cd - returns to the previous one.")}`);if(z.currentWorktreeSession())return L(`This session is inside a worktree. Use ${E.bold("ExitWorktree")} to leave it first, then ${E.bold("/cd")}.`);let V;if(N.kind==="previous"){let U=z.previousDir();if(!U)return L("This session has not moved yet, so there is no previous directory.");V=U}else V=N.path;let K=await z.resolveDirectory(V);if(K.resultType!=="success"){if(K.resultType==="notADirectory")return L(`${E.bold(K.directoryPath)} is not a directory. Did you mean ${E.bold(Zz(K.absolutePath))}?`);return L(l(K))}if(K.absolutePath===z.currentCwd())return L(`Already in ${E.bold(K.absolutePath)}.`);let a=z.hasPendingWakeup(),Q;try{Q=z.reroot(K.absolutePath)}catch(U){let X=U instanceof Error?U.message:"Unknown error";return g(Error(`/cd failed to move to ${K.absolutePath}: ${X}`)),L(`Could not move to ${E.bold(K.absolutePath)}: ${X}`)}let _=!n(Q.previousCwd,Q.newCwd);if(_){let U=u(B.getAppState().toolPermissionContext,{type:"addDirectories",directories:[Q.previousCwd],destination:"session"});B.setAppState((i)=>({...i,toolPermissionContext:U}));let X=m();if(!X.includes(Q.previousCwd))w([...X,Q.previousCwd])}return z.refreshSandbox(),L($z(Q,_,a))}var Gz;var Hz=$(()=>{Lz();Yz();Uz();Xz();O();Vz();D();f();Nz();Qz();Gz={currentWorktreeSession:c,resolveDirectory:p,reroot:S,previousDir:h,hasPendingWakeup:()=>C()!==null,currentCwd:Y,refreshSandbox:()=>v.refreshConfig()}});Hz();export{_z as parseCdTarget,$z as formatCdResult,uz as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Haa as V,Iaa as W,Jaa as J,Sha as X,Tba as k,Yba as N,_ha as H,uda as x,xda as A}from"./cli-1.1.27-48ezce33.mjs";import"./cli-1.1.27-fw9r8cwg.mjs";import"./cli-1.1.27-eag2dgb4.mjs";import"./cli-1.1.27-n3fg97y6.mjs";import"./cli-1.1.27-dfww0knt.mjs";import"./cli-1.1.27-njcbrvnc.mjs";import"./cli-1.1.27-cxy3fqs0.mjs";import"./cli-1.1.27-y712t8h2.mjs";import"./cli-1.1.27-7gnbh46g.mjs";import"./cli-1.1.27-r335xv52.mjs";import"./cli-1.1.27-jt1gb6nf.mjs";import{Yla as b,cma as y}from"./cli-1.1.27-0rz9qd34.mjs";import"./cli-1.1.27-t1dxp2pw.mjs";import"./cli-1.1.27-m6ne80zc.mjs";import"./cli-1.1.27-jg3tymed.mjs";import"./cli-1.1.27-8gsqhqyf.mjs";import"./cli-1.1.27-8vrv0ver.mjs";A();y();N();H();J();import{readdir as L,readFile as U,stat as Z}from"fs/promises";import{homedir as _}from"os";import{join as $}from"path";async function F(){let B=W();if(!V.includes(B))throw Error(`Unsupported platform: ${B} - Claude Desktop integration only works on macOS and WSL.`);if(B==="macos")return $(_(),"Library","Application Support","Claude","claude_desktop_config.json");let K=process.env.USERPROFILE?process.env.USERPROFILE.replace(/\\/g,"/"):null;if(K){let q=`/mnt/c${K.replace(/^[A-Z]:/,"")}/AppData/Roaming/Claude/claude_desktop_config.json`;try{return await Z(q),q}catch{}}try{try{let q=await L("/mnt/c/Users",{withFileTypes:!0});for(let z of q){if(z.name==="Public"||z.name==="Default"||z.name==="Default User"||z.name==="All Users")continue;let I=$("/mnt/c/Users",z.name,"AppData","Roaming","Claude","claude_desktop_config.json");try{return await Z(I),I}catch{}}}catch{}}catch(G){X(G)}throw Error("Could not find Claude Desktop config file in Windows. Make sure Claude Desktop is installed on Windows.")}async function v(){if(!V.includes(W()))throw Error("Unsupported platform - Claude Desktop integration only works on macOS and WSL.");try{let B=await F(),K;try{K=await U(B,{encoding:"utf8"})}catch(I){if(b(I)==="ENOENT")return{};throw I}let G=k(K);if(!G||typeof G!=="object")return{};let q=G.mcpServers;if(!q||typeof q!=="object")return{};let z={};for(let[I,Q]of Object.entries(q)){if(!Q||typeof Q!=="object")continue;let Y=x().safeParse(Q);if(Y.success)z[I]=Y.data}return z}catch(B){return X(B),{}}}export{v as readClaudeDesktopMcpServers,F as getClaudeDesktopConfigPath};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{AU as h,BU as i,CU as j,DU as k,EU as l,FU as m,GU as n,HU as o,IU as p,JU as q,KU as r,tU as a,uU as b,vU as c,wU as d,xU as e,yU as f,zU as g}from"./cli-1.1.27-w8pwj9ef.mjs";import"./cli-1.1.27-96ccvbyj.mjs";import"./cli-1.1.27-9d0bkxf6.mjs";import"./cli-1.1.27-f3cv6wk1.mjs";import"./cli-1.1.27-sr4a2gd6.mjs";import"./cli-1.1.27-3mpdw95c.mjs";import"./cli-1.1.27-x6dqasdj.mjs";import"./cli-1.1.27-22f6jd6a.mjs";import"./cli-1.1.27-gmknn4xh.mjs";import"./cli-1.1.27-2mtc2dbf.mjs";import"./cli-1.1.27-gan2msv5.mjs";import"./cli-1.1.27-pab2avnw.mjs";import"./cli-1.1.27-090g18py.mjs";import"./cli-1.1.27-nx2yxmg9.mjs";import"./cli-1.1.27-7zpnm6dn.mjs";import"./cli-1.1.27-jvs6enw9.mjs";import"./cli-1.1.27-7jakzfss.mjs";import"./cli-1.1.27-nxkc7nfr.mjs";import"./cli-1.1.27-wbtq2bbb.mjs";import"./cli-1.1.27-q830jx95.mjs";import"./cli-1.1.27-9chfrr9e.mjs";import"./cli-1.1.27-f218cppx.mjs";import"./cli-1.1.27-6spv5ha8.mjs";import"./cli-1.1.27-zr523fbq.mjs";import"./cli-1.1.27-hrwxg46q.mjs";import"./cli-1.1.27-m2n4m352.mjs";import"./cli-1.1.27-xx0q9f0f.mjs";import"./cli-1.1.27-6g67vpnz.mjs";import"./cli-1.1.27-zq9wak2z.mjs";import"./cli-1.1.27-hhkkts5k.mjs";import"./cli-1.1.27-scfswqdr.mjs";import"./cli-1.1.27-4xegg6js.mjs";import"./cli-1.1.27-94qc7asn.mjs";import"./cli-1.1.27-3eax0jv3.mjs";import"./cli-1.1.27-kgpk1m6k.mjs";import"./cli-1.1.27-m5wtrd2b.mjs";import"./cli-1.1.27-d4km9s81.mjs";import"./cli-1.1.27-8vkygf4q.mjs";import"./cli-1.1.27-1rztfj2j.mjs";import"./cli-1.1.27-wtthtmes.mjs";import"./cli-1.1.27-xdfkhk5m.mjs";import"./cli-1.1.27-kdv6nw9e.mjs";import"./cli-1.1.27-vh1r16sd.mjs";import"./cli-1.1.27-ny95570d.mjs";import"./cli-1.1.27-dhzbmaf3.mjs";import"./cli-1.1.27-k9jt24bv.mjs";import"./cli-1.1.27-48ezce33.mjs";import"./cli-1.1.27-fw9r8cwg.mjs";import"./cli-1.1.27-eag2dgb4.mjs";import"./cli-1.1.27-n3fg97y6.mjs";import"./cli-1.1.27-dfww0knt.mjs";import"./cli-1.1.27-njcbrvnc.mjs";import"./cli-1.1.27-cxy3fqs0.mjs";import"./cli-1.1.27-y712t8h2.mjs";import"./cli-1.1.27-7gnbh46g.mjs";import"./cli-1.1.27-r335xv52.mjs";import"./cli-1.1.27-jt1gb6nf.mjs";import"./cli-1.1.27-0rz9qd34.mjs";import"./cli-1.1.27-t1dxp2pw.mjs";import"./cli-1.1.27-m6ne80zc.mjs";import"./cli-1.1.27-jg3tymed.mjs";import"./cli-1.1.27-8gsqhqyf.mjs";import"./cli-1.1.27-4cjm0m5c.mjs";import"./cli-1.1.27-t4rm4dqf.mjs";import"./cli-1.1.27-n09bs0db.mjs";import"./cli-1.1.27-8vrv0ver.mjs";r();export{p as shouldShowClaudeMdExternalIncludesWarning,f as resetGetMemoryFilesCache,b as processMemoryFile,c as processMdRules,m as processConditionedMdRules,q as isMemoryFilePath,o as hasExternalClaudeMdIncludes,k as getMemoryFilesForNestedDirectory,d as getMemoryFiles,j as getManagedAndUserConditionalRules,g as getLargeMemoryFiles,n as getExternalClaudeMdIncludes,l as getConditionalRulesForCwdLevelDirectory,i as getClaudeMds,h as filterInjectedMemoryFiles,e as clearMemoryFileCaches,a as MAX_MEMORY_CHARACTER_COUNT};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bh as b,ch as h}from"./cli-1.1.27-1yvzf2v8.mjs";import"./cli-1.1.27-1hdrfsqd.mjs";import"./cli-1.1.27-z32qkf2d.mjs";import"./cli-1.1.27-sdw0p0c4.mjs";import"./cli-1.1.27-3cjhx8c4.mjs";import"./cli-1.1.27-w8pwj9ef.mjs";import"./cli-1.1.27-96ccvbyj.mjs";import"./cli-1.1.27-9d0bkxf6.mjs";import"./cli-1.1.27-f3cv6wk1.mjs";import"./cli-1.1.27-sr4a2gd6.mjs";import"./cli-1.1.27-3mpdw95c.mjs";import"./cli-1.1.27-x6dqasdj.mjs";import"./cli-1.1.27-22f6jd6a.mjs";import"./cli-1.1.27-gmknn4xh.mjs";import"./cli-1.1.27-2mtc2dbf.mjs";import"./cli-1.1.27-gan2msv5.mjs";import"./cli-1.1.27-pab2avnw.mjs";import"./cli-1.1.27-090g18py.mjs";import"./cli-1.1.27-nx2yxmg9.mjs";import"./cli-1.1.27-7zpnm6dn.mjs";import"./cli-1.1.27-jvs6enw9.mjs";import"./cli-1.1.27-7jakzfss.mjs";import"./cli-1.1.27-nxkc7nfr.mjs";import"./cli-1.1.27-wbtq2bbb.mjs";import"./cli-1.1.27-q830jx95.mjs";import"./cli-1.1.27-9chfrr9e.mjs";import"./cli-1.1.27-f218cppx.mjs";import"./cli-1.1.27-6spv5ha8.mjs";import"./cli-1.1.27-zr523fbq.mjs";import"./cli-1.1.27-hrwxg46q.mjs";import"./cli-1.1.27-m2n4m352.mjs";import"./cli-1.1.27-xx0q9f0f.mjs";import"./cli-1.1.27-6g67vpnz.mjs";import"./cli-1.1.27-zq9wak2z.mjs";import"./cli-1.1.27-hhkkts5k.mjs";import"./cli-1.1.27-scfswqdr.mjs";import"./cli-1.1.27-4xegg6js.mjs";import"./cli-1.1.27-94qc7asn.mjs";import"./cli-1.1.27-3eax0jv3.mjs";import"./cli-1.1.27-kgpk1m6k.mjs";import"./cli-1.1.27-m5wtrd2b.mjs";import"./cli-1.1.27-d4km9s81.mjs";import"./cli-1.1.27-8vkygf4q.mjs";import"./cli-1.1.27-1rztfj2j.mjs";import"./cli-1.1.27-wtthtmes.mjs";import"./cli-1.1.27-xdfkhk5m.mjs";import"./cli-1.1.27-kdv6nw9e.mjs";import"./cli-1.1.27-vh1r16sd.mjs";import"./cli-1.1.27-ny95570d.mjs";import"./cli-1.1.27-dhzbmaf3.mjs";import"./cli-1.1.27-k9jt24bv.mjs";import"./cli-1.1.27-48ezce33.mjs";import"./cli-1.1.27-fw9r8cwg.mjs";import"./cli-1.1.27-eag2dgb4.mjs";import"./cli-1.1.27-n3fg97y6.mjs";import"./cli-1.1.27-dfww0knt.mjs";import"./cli-1.1.27-njcbrvnc.mjs";import"./cli-1.1.27-cxy3fqs0.mjs";import"./cli-1.1.27-y712t8h2.mjs";import"./cli-1.1.27-7gnbh46g.mjs";import"./cli-1.1.27-r335xv52.mjs";import"./cli-1.1.27-jt1gb6nf.mjs";import"./cli-1.1.27-0rz9qd34.mjs";import"./cli-1.1.27-t1dxp2pw.mjs";import"./cli-1.1.27-m6ne80zc.mjs";import"./cli-1.1.27-jg3tymed.mjs";import"./cli-1.1.27-8gsqhqyf.mjs";import"./cli-1.1.27-4cjm0m5c.mjs";import"./cli-1.1.27-t4rm4dqf.mjs";import"./cli-1.1.27-n09bs0db.mjs";import{Mta as g}from"./cli-1.1.27-8vrv0ver.mjs";var u=async(p,f)=>{return await b(f),{type:"text",value:""}};var k=g(()=>{h()});k();export{u as call};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$2 as c,Z2 as a,_2 as b}from"./cli-1.1.27-hrwxg46q.mjs";import"./cli-1.1.27-8vrv0ver.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{E9 as v,F9 as C}from"./cli-1.1.27-xdfkhk5m.mjs";import{Tga as x,Uga as Y,sfa as Z,tfa as V}from"./cli-1.1.27-48ezce33.mjs";import{Yia as R,aja as W,ija as O}from"./cli-1.1.27-dfww0knt.mjs";import{ska as Q,tka as M}from"./cli-1.1.27-y712t8h2.mjs";import{Ala as L,ala as P,fla as I,xla as f}from"./cli-1.1.27-r335xv52.mjs";import{Xla as w,cma as H}from"./cli-1.1.27-0rz9qd34.mjs";import{ssa as N,tsa as F}from"./cli-1.1.27-jg3tymed.mjs";import{Ysa as X,ota as U}from"./cli-1.1.27-4cjm0m5c.mjs";import{Jta as h,Mta as B}from"./cli-1.1.27-8vrv0ver.mjs";import{hostname as E}from"os";function $(){return R(G,!1)}function u(){if(!$())return;return y()}function n(){y.cache?.clear?.()}function o(){if(!$())return;let i=x();try{let q=i.read();if(q?.trustedDeviceToken)delete q.trustedDeviceToken,i.update(q)}catch{}y.cache?.clear?.()}async function t(){try{if(!await W(G)){f(`[trusted-device] Gate ${G} is off, skipping enrollment`);return}if(process.env.CLAUDE_TRUSTED_DEVICE_TOKEN){f("[trusted-device] CLAUDE_TRUSTED_DEVICE_TOKEN env var is set, skipping enrollment (env var takes precedence)");return}let{getClaudeAIOAuthTokens:i}=(C(),h(v)),q=i()?.accessToken;if(!q){f("[trusted-device] No OAuth token, skipping enrollment");return}let J=x();if(Z()){f("[trusted-device] Essential traffic only, skipping enrollment");return}let b=Q().BASE_API_URL,m;try{m=await X.post(`${b}/api/auth/trusted_devices`,{display_name:`Claude Code on ${E()} · ${process.platform}`},{headers:{Authorization:`Bearer ${q}`,"Content-Type":"application/json"},timeout:1e4,validateStatus:(j)=>j<500})}catch(j){f(`[trusted-device] Enrollment request failed: ${w(j)}`);return}if(m.status!==200&&m.status!==201){f(`[trusted-device] Enrollment failed ${m.status}: ${P(m.data).slice(0,200)}`);return}let z=m.data?.device_token;if(!z||typeof z!=="string"){f("[trusted-device] Enrollment response missing device_token field");return}try{let j=J.read();if(!j){f("[trusted-device] Cannot read storage, skipping token persist");return}j.trustedDeviceToken=z;let K=J.update(j);if(!K.success){f(`[trusted-device] Failed to persist token: ${K.warning??"unknown"}`);return}y.cache?.clear?.(),f(`[trusted-device] Enrolled device_id=${m.data.device_id??"unknown"}`)}catch(j){f(`[trusted-device] Storage write failed: ${w(j)}`)}}catch(i){f(`[trusted-device] Enrollment error: ${w(i)}`)}}var G="tengu_sessions_elevated_auth_enforcement",y;var d=B(()=>{U();F();M();O();L();H();V();Y();I();y=N(()=>{let i=process.env.CLAUDE_TRUSTED_DEVICE_TOKEN;if(i)return i;return x().read()?.trustedDeviceToken})});
|
|
2
|
-
export{u as lX,n as mX,o as nX,t as oX,d as pX};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{SG as h,ZG as Fq,ky as u,lA as c,ly as g,ny as Wq,oA as T,oT as a,oo as S,pA as _q,po as Zq,qT as Kq,qo as V,ro as $q,sA as r,tA as Vq,uo as p,vo as zq}from"./cli-1.1.27-w8pwj9ef.mjs";import{SY as j,TY as Nq,cZ as w,dZ as Qq,eZ as m,gZ as Xq,jZ as d,kZ as Yq}from"./cli-1.1.27-9chfrr9e.mjs";import{F1 as J,H1 as N,k2 as Lq,p0 as H,q0 as v,r0 as y}from"./cli-1.1.27-6spv5ha8.mjs";import{T4 as _,U4 as q,V4 as G,W4 as b}from"./cli-1.1.27-kgpk1m6k.mjs";import{X4 as Jq}from"./cli-1.1.27-m5wtrd2b.mjs";import{Sea as B,gfa as Gq}from"./cli-1.1.27-48ezce33.mjs";import{Ita as e,Mta as qq}from"./cli-1.1.27-8vrv0ver.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[K]=H(),U=v(),{columns:i}=j(),Y=Q.useMemo(()=>c(),[]),Z=Y===null?T(K):null,{setPreviewTheme:k,savePreview:M,cancelPreview:R}=y(),z=u((L)=>L.settings.syntaxHighlightingDisabled??!1),f=g();w("ThemePicker",!0);let W=S("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),l=Q.useCallback(()=>{if(Y===null){let L=!z;B("userSettings",{syntaxHighlightingDisabled:L}),f((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,f]);m("theme:toggleSyntaxHighlighting",l,{context:"ThemePicker"});let D=d($?()=>{}:void 0),E=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"},{label:"Terminal default (inherit colors)",value:"terminal"},{label:"Dracula",value:"dracula"},{label:"Catppuccin Mocha (dark)",value:"catppuccin-mocha"},{label:"Catppuccin Latte (light)",value:"catppuccin-latte"},{label:"Tokyo Night",value:"tokyo-night"},{label:"Nord",value:"nord"},{label:"Gruvbox Dark",value:"gruvbox-dark"}],[]),o=Q.useCallback((L)=>{k(L)},[k]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else a(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDIN_SYNTAX_HIGHLIGHT=${process.env.CLAUDIN_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(h,{options:E,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:E.length,defaultValue:U,defaultFocusValue:U})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Iq,{patch:Oq,dim:!1,filePath:"demo.js",firstLine:null,width:i})},K),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:D.pending?G(_,{children:["Press ",D.keyName," again to exit"]}):G(p,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Iq,Oq;var Aq=qq(()=>{Yq();Nq();Lq();Qq();Xq();Zq();Wq();Kq();Gq();Fq();zq();$q();_q();Vq();b();Q=e(Jq(),1),Iq=r,Oq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
|
|
2
|
-
export{mq as ei,Aq as fi};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Asa as W,Bsa as X,Csa as Y,Dsa as Z,Xsa as w,ysa as Q,zsa as V}from"./cli-1.1.27-8gsqhqyf.mjs";import{Mta as v}from"./cli-1.1.27-8vrv0ver.mjs";function J(j,z){if(!(j instanceof Error))return!1;for(let G=Object.getPrototypeOf(j);G!==null;G=Object.getPrototypeOf(G))if(G.constructor?.name===z)return!0;return!1}function S(j){return j instanceof Q||J(j,"APIError")}function k(j){return j instanceof W||J(j,"APIConnectionError")}function F(j){return j instanceof X||J(j,"APIConnectionTimeoutError")}function D(j){return j instanceof V||J(j,"APIUserAbortError")}function P(j){return j instanceof Y||J(j,"AuthenticationError")}function x(j){return j instanceof Z||J(j,"NotFoundError")}function y(j){return j instanceof _||D(j)||j instanceof Error&&j.name==="AbortError"}function f(j,z){return j instanceof Error&&j.message===z}function N(j){return j instanceof Error?j:Error(String(j))}function I(j){return j instanceof Error?j.message:String(j)}function $(j){if(j&&typeof j==="object"&&"code"in j&&typeof j.code==="string")return j.code;return}function A(j){return $(j)==="ENOENT"}function p(j){if(j&&typeof j==="object"&&"path"in j&&typeof j.path==="string")return j.path;return}function C(j,z=5){if(!(j instanceof Error))return String(j);if(!j.stack)return j.message;let G=j.stack.split(`
|
|
2
|
-
`),H=G[0]??j.message,K=G.slice(1).filter((q)=>q.trim().startsWith("at "));if(K.length<=z)return j.stack;return[H,...K.slice(0,z)].join(`
|
|
3
|
-
`)}function h(j){let z=$(j);return z==="ENOENT"||z==="EACCES"||z==="EPERM"||z==="ENOTDIR"||z==="ELOOP"}function E(j){let z=I(j);if(!j||typeof j!=="object"||!("isAxiosError"in j)||!j.isAxiosError)return{kind:"other",message:z};let G=j,H=G.response?.status;if(H===401||H===403)return{kind:"auth",status:H,message:z};if(G.code==="ECONNABORTED")return{kind:"timeout",status:H,message:z};if(G.code==="ECONNREFUSED"||G.code==="ENOTFOUND")return{kind:"network",status:H,message:z};return{kind:"http",status:H,message:z}}var B,L,_,T,O,R,U;var b=v(()=>{w();B=class B extends Error{constructor(j,z){super(j,z);this.name=this.constructor.name}};L=class L extends Error{};_=class _ extends Error{constructor(j){super(j);this.name="AbortError"}};T=class T extends Error{filePath;defaultConfig;constructor(j,z,G){super(j);this.name="ConfigParseError",this.filePath=z,this.defaultConfig=G}};O=class O extends Error{stdout;stderr;code;interrupted;constructor(j,z,G,H){super("Shell command failed");this.stdout=j;this.stderr=z;this.code=G;this.interrupted=H;this.name="ShellError"}};R=class R extends Error{formattedMessage;constructor(j,z){super(j);this.formattedMessage=z;this.name="TeleportOperationError"}};U=class U extends Error{telemetryMessage;constructor(j,z){super(j);this.name="TelemetrySafeError",this.telemetryMessage=z??j}}});
|
|
4
|
-
export{B as Hla,L as Ila,_ as Jla,S as Kla,k as Lla,F as Mla,D as Nla,P as Ola,x as Pla,y as Qla,T as Rla,O as Sla,R as Tla,U as Ula,f as Vla,N as Wla,I as Xla,$ as Yla,A as Zla,p as _la,C as $la,h as ama,E as bma,b as cma};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Mta as B}from"./cli-1.1.27-8vrv0ver.mjs";function D(g,q){switch(q.type){case"set_local_jsx":{if(q.generation<g.generation)return g;return{state:{...q.payload,isLocalJSXCommand:!0},generation:g.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:g.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(g.hasLocalJSXActive)return g;return{...g,state:q.payload}}case"set_null":{if(g.hasLocalJSXActive)return g;if(g.state===null)return g;return{...g,state:null}}}}var C;var F=B(()=>{C={state:null,generation:0,hasLocalJSXActive:!1}});function K(g){return z=g,()=>{if(z===g)z=null}}function L(g){let q=D(w,g);if(q===w)return;w=q,z?.(q.state)}function M(){return w.generation}var w,z=null;var G=B(()=>{F();w=C});
|
|
2
|
-
export{K as Ti,L as Ui,M as Vi,G as Wi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Mta as J}from"./cli-1.1.27-8vrv0ver.mjs";import v from"node:path";function Z(q){if(q.endsWith(v.sep)||q.endsWith("/"))return K;let j=v.basename(q).toLowerCase();if(j.startsWith("readme"))return B[".md"];if(j.startsWith(".env"))return Q;let z=U[j];if(z)return z;let H=v.extname(j);return B[H]??P}var K="",Y="",P="",Q="",U,B;var V=J(()=>{U={"package.json":"",dockerfile:"",".dockerignore":"",".gitignore":"",".gitattributes":"",license:"","bun.lock":""},B={".ts":"",".tsx":"",".js":"",".jsx":"",".mjs":"",".cjs":"",".json":"",".md":"",".markdown":"",".toml":"",".yaml":"",".yml":"",".py":"",".rs":"",".go":"",".sh":"",".bash":"",".zsh":"",".css":"",".scss":"",".html":"",".htm":"",".png":"",".jpg":"",".jpeg":"",".gif":"",".svg":"",".webp":"",".lock":""}});
|
|
2
|
-
export{K as zi,Y as Ai,Z as Bi,V as Ci};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{lh as j,nh as l}from"./cli-1.1.27-sdw0p0c4.mjs";import{rh as W,xh as i}from"./cli-1.1.27-3cjhx8c4.mjs";import{$D as L,Bz as S,KU as r,LU as R,Lx as U,MU as f,Mx as m,NU as F,OU as u,PU as t,Rv as _,VO as M,WQ as x,XO as n,Zw as B,aE as h,cw as $,cx as p,dw as D,eD as d,eR as s,ex as N,fx as g,iD as E,jD as C,ok as Z,pk as P,sj as Y,tj as A,wP as b,xP as o,yU as G,zz as V}from"./cli-1.1.27-w8pwj9ef.mjs";import{c$ as Q,i$ as k}from"./cli-1.1.27-k9jt24bv.mjs";import{N$ as O,U$ as I,oba as X,pba as v}from"./cli-1.1.27-48ezce33.mjs";import{Vra as T,kra as J,wra as K}from"./cli-1.1.27-m6ne80zc.mjs";import{Mta as y,Nta as w}from"./cli-1.1.27-8vrv0ver.mjs";function Mq(H=new Set){let z=H.size>0;if(u.cache.clear?.(),F.cache.clear?.(),f.cache.clear?.(),Y.cache.clear?.(),W(),x(),!z)N();if(R(null),K(null),b(),_(),G("session_start"),V(),X.clear(),Z(),!z)B();if(Q(),M(),!z)U();J(H),O(),L(),$(),j(),E(),import("./utils-1.1.27-bpj1f9q9.mjs").then(({clearWebFetchCache:q})=>q()),import("./ToolSearchTool-1.1.27-b39dysny.mjs").then(({clearToolSearchDescriptionCache:q})=>q()),import("./loadAgentsDir-1.1.27-ax53z9hj.mjs").then(({clearAgentDefinitionsCache:q})=>q()),import("./prompt-1.1.27-40pnv6x7.mjs").then(({clearPromptCache:q})=>q())}var c=y(()=>{T();s();A();t();i();p();m();g();P();o();D();l();h();d();n();r();k();I();v();S();C()});
|
|
2
|
-
export{Mq as dh,c as eh};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import{$x as e,AK as zq,Av as Wq,BK as Bq,CK as I,DK as b,KK as Gq,LK as Jq,PK as hq,SK as Qq,TK as Oq,VK as Vq,ZR as Zq,ay as Hq,dS as yq,fC as qq,gC as Nq,hL as Pq,jq as a,lq as Kq,oL as Yq,ov as s,qL as Uq,sl as r,tK as S,uK as R,ul as vq,uv as t,vK as Xq,yK as p,zK as k}from"./cli-1.1.27-w8pwj9ef.mjs";import{Sha as w,_ha as Fq}from"./cli-1.1.27-48ezce33.mjs";import{Gja as o,Ija as Lq}from"./cli-1.1.27-cxy3fqs0.mjs";import{Qla as y,cma as jq}from"./cli-1.1.27-0rz9qd34.mjs";import{Mta as M}from"./cli-1.1.27-8vrv0ver.mjs";function x(B,z){let G=m[z]??1,Y=B!==void 0?m[B]:void 0;if(Y===void 0)return z;return Y<=G?B:z}var m;var g=M(()=>{m={plan:0,default:1,acceptEdits:2,bypassPermissions:3}});function C(B,z){if(B.length<=z)return B;return`${B.slice(0,z)}
|
|
2
|
-
…[truncated ${B.length-z} chars]`}function u(B,z,G,Y){let V=[];if(V.push(`You are a worker agent in the "${B.name}" workflow, phase "${Y.name}".`),B.instructions.trim())V.push(`Workflow instructions:
|
|
3
|
-
${B.instructions.trim()}`);if(V.push(`Task:
|
|
4
|
-
${z}`),G.trim())V.push(`Work so far (accumulated artifact from earlier phases):
|
|
5
|
-
${C(G.trim(),$q)}`);return V.push("Do your part of this phase and report your findings/output. Another agent (the orchestrator) will synthesize the phase and decide what happens next — you do not decide the flow."),V.join(`
|
|
6
|
-
|
|
7
|
-
`)}function c(B,z){let G=[];if(G.push(`You are the orchestrator (main) of the "${z.name}" workflow. You control the flow.`),z.instructions.trim())G.push(`Workflow instructions:
|
|
8
|
-
${z.instructions.trim()}`);G.push(`Task:
|
|
9
|
-
${B.task}`);let Y=z.steps.findIndex((Q)=>Q.name===B.currentStep),V=z.steps.map((Q,J)=>{let j=J<Y?"[done]":J===Y?"[current]":"[pending]",W=I(Q)?" (terminal)":"";return` ${J+1}. ${Q.name} ${j}${W}`}).join(`
|
|
10
|
-
`);if(G.push(`Phases:
|
|
11
|
-
${V}`),B.history.length>0){let Q=B.history.map((J)=>{let j=J.agents.map((q)=>{let L=q.failed?" (FAILED)":"";return` • ${q.label}${L}:
|
|
12
|
-
${C(q.output,f).split(`
|
|
13
|
-
`).map((H)=>` ${H}`).join(`
|
|
14
|
-
`)}`}).join(`
|
|
15
|
-
`),W=J.decision?` decision: ${J.decision.decision}${J.decision.target?` → ${J.decision.target}`:""} — ${J.decision.notes}`:" decision: (pending — this is the phase you are deciding now)";return` Phase "${J.step}":
|
|
16
|
-
${j}
|
|
17
|
-
${J.synthesis?` synthesis: ${C(J.synthesis,f)}
|
|
18
|
-
`:""}${W}`}).join(`
|
|
19
|
-
|
|
20
|
-
`);G.push(`History (all phases so far):
|
|
21
|
-
${Q}`)}let $=z.steps[Y]?.handbackTo??[];return G.push($.length>0?`From the current phase you may hand back to: ${$.join(", ")}.`:"The current phase has no handback targets; you may only advance or refine."),G.push("Synthesize the current phase's worker outputs into an updated artifact (your final text), then call the StructuredOutput tool with your decision: advance (next phase), refine (re-run this phase), or handback (return to an allowed earlier phase). Include a short `notes` explaining why."),G.join(`
|
|
22
|
-
|
|
23
|
-
`)}var f=4000,$q=6000;var l=M(()=>{b()});function d(B,z,G){let Y=G.steps,V=Y.findIndex((j)=>j.name===B.currentStep),Z={...B.refineCounts},$=B.transitions+1,Q=B.currentStep,J="running";if(z.decision==="advance"){let j=Y[V+1];if(I(j)){if(J="done",j)Q=j.name}else Q=j.name}else if(z.decision==="refine"){if(Z[Q]=(Z[Q]??0)+1,Z[Q]>k)J="stalled"}else{let j=Y[V]?.handbackTo??[];if(!z.target||!j.includes(z.target))J="stalled";else if(Z[z.target]=(Z[z.target]??0)+1,Z[z.target]>k)J="stalled";else Q=z.target}if(J==="running"&&$>=p)J="stalled";return{...B,currentStep:Q,status:J,refineCounts:Z,transitions:$,updatedAt:Date.now()}}var i=M(()=>{b()});import Dq from"os";function Iq(){return Math.max(1,Math.min(8,Dq.cpus().length-1))}function wq(B){let z="",G=0;for(let V=B.length-1;V>=0;V--){let Z=B[V];if(Z.type!=="assistant"||!Z.message)continue;if(!z){let $=(Z.message.content??[]).filter((Q)=>Q.type==="text"&&Q.text);if($.length>0)z=$.map((Q)=>Q.text??"").join(`
|
|
24
|
-
`)}if(G===0&&Z.message.usage)G=Zq(Z.message.usage);if(z&&G)break}let Y=e(B);return{text:z,tokens:G,tools:Y}}async function n(B){let{label:z,agentDef:G,promptText:Y,toolUseContext:V,canUseTool:Z,extraTools:$,runId:Q}=B,J=Date.now(),j=V.getAppState(),W=j.toolPermissionContext.mode,q={...j.toolPermissionContext,mode:x(G.permissionMode,W)},L=Yq(q,j.mcp.tools);if($&&$.length>0)L=[...L,...$];let H=G.model??String(V.options.mainLoopModel??""),F=[],N,P=!1;try{let K=qq({agentDefinition:G,promptMessages:[Vq({content:Y})],toolUseContext:V,canUseTool:Z,isAsync:!1,querySource:a(G.agentType,s(G)),availableTools:L,transcriptSubdir:`workflows/${Q}`,description:`${z} (workflow)`,override:{abortController:B.abortController}});for await(let h of K)if(F.push(h),h.type==="attachment"&&h.attachment?.type==="structured_output")N=h.attachment.data}catch(K){if(y(K))throw K;w(K),P=!0}let{text:E,tokens:_,tools:X}=wq(F);return{run:{label:z,model:H,tokens:_,tools:X,ms:Date.now()-J,output:P?"":E,failed:P},structuredOutput:N}}async function tq(B){let{def:z,task:G,toolUseContext:Y,canUseTool:V,onProgress:Z,signal:$}=B,{allAgents:Q}=await t(o()),J=new Map(Q.map((H)=>[H.agentType,H]));J.set(S,R);let j=J.get(z.main??S)??R,W=new AbortController;if($)if($.aborted)W.abort();else $.addEventListener("abort",()=>W.abort(),{once:!0});let q=await Gq({workflow:z.name,description:z.description,task:G,firstStep:z.steps[0].name});Z?.(q);let L=async()=>{await Jq(q),Z?.(q)};while(q.status==="running"){if($?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let H=z.steps.findIndex((v)=>v.name===q.currentStep),F=z.steps[H];if(I(F)){q={...q,status:"done",updatedAt:Date.now()},await L();break}q={...q,agentsInPhase:F.agents.length,agentsDone:0,updatedAt:Date.now()},await L();let N;try{N=(await Qq(F.agents,async(O)=>{let T={run:{label:`${F.name}:${O}`,model:"",tokens:0,tools:0,ms:0,output:"",failed:!0}},A;try{let D=J.get(O);A=D?await n({label:`${F.name}:${O}`,agentDef:D,promptText:u(z,G,q.artifact,F),toolUseContext:Y,canUseTool:V,runId:q.runId,abortController:W}):T}catch(D){if(y(D))throw D;w(D),A=T}return q={...q,agentsDone:(q.agentsDone??0)+1,updatedAt:Date.now()},await L(),A},{concurrency:Iq()})).map((O)=>O.run)}catch(v){if(y(v)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw v}let P={step:F.name,stepIndex:H,agents:N,synthesis:"",decision:null,at:Date.now()};if(q={...q,history:[...q.history,P],totalTokens:q.totalTokens+N.reduce((v,O)=>v+O.tokens,0),updatedAt:Date.now()},await L(),F.agents.length>0&&N.every((v)=>v.failed)){w(Error(`workflow phase "${F.name}": all ${N.length} worker(s) failed`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}if($?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let E=r(Bq(F));if(!("tool"in E)){w(Error(`workflow decision schema build failed: ${E.error}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let _=[E.tool],X;try{X=await n({label:"main",agentDef:j,promptText:c(q,z),toolUseContext:Y,canUseTool:V,extraTools:_,runId:q.runId,abortController:W})}catch(v){if(y(v)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw v}let K=zq.safeParse(X.structuredOutput),h=[...q.history];if(h[h.length-1]={...P,synthesis:X.run.output,decision:K.success?K.data:null,agents:[...N,X.run]},q={...q,history:h,artifact:X.run.output.trim()?X.run.output:q.artifact,totalTokens:q.totalTokens+X.run.tokens,updatedAt:Date.now()},!K.success){w(Error(`workflow main produced no valid decision: ${K.error?.message??"no decision"}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let U=d(q,K.data,z);q={...q,currentStep:U.currentStep,status:U.status,refineCounts:U.refineCounts,transitions:U.transitions,updatedAt:U.updatedAt},await L()}return q}var Eq=M(()=>{Oq();Uq();Wq();Hq();Nq();vq();Lq();jq();Fq();Pq();Kq();yq();Xq();g();l();hq();i();b()});
|
|
25
|
-
export{tq as Ri,Eq as Si};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A8 as l,F9 as c,f9 as S,l6 as j,o6 as h,z8 as b}from"./cli-1.1.27-xdfkhk5m.mjs";import{h$ as F,i$ as D}from"./cli-1.1.27-k9jt24bv.mjs";import{Sha as y,_ha as I}from"./cli-1.1.27-48ezce33.mjs";import{Aja as $,Bja as R,Cja as _,Dja as E}from"./cli-1.1.27-njcbrvnc.mjs";import{ska as v,tka as m}from"./cli-1.1.27-y712t8h2.mjs";import{Ala as z,ala as M,fla as U,xla as W}from"./cli-1.1.27-r335xv52.mjs";import{Wla as k,Xla as q,cma as O}from"./cli-1.1.27-0rz9qd34.mjs";import{Ysa as Y,ota as T}from"./cli-1.1.27-4cjm0m5c.mjs";import{Mta as A}from"./cli-1.1.27-8vrv0ver.mjs";import{randomUUID as d}from"crypto";function u(J){if(!Y.isAxiosError(J))return!1;if(!J.response)return!0;if(J.response.status>=500)return!0;return!1}async function p(J,B){let N;for(let K=0;K<=x;K++)try{return await Y.get(J,B)}catch(Q){if(N=Q,!u(Q))throw Q;if(K>=x)throw W(`Teleport request failed after ${K+1} attempts: ${q(Q)}`),Q;let V=f[K]??2000;W(`Teleport request failed (attempt ${K+1}/${x+1}), retrying in ${V}ms: ${q(Q)}`),await b(V)}throw N}async function C(){let J=S()?.accessToken;if(J===void 0)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let B=await j();if(!B)throw Error("Unable to get organization UUID");return{accessToken:J,orgUUID:B}}async function BJ(){let{accessToken:J,orgUUID:B}=await C(),N=`${v().BASE_API_URL}/v1/sessions`;try{let K={...L(J),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},Q=await p(N,{headers:K});if(Q.status!==200)throw Error(`Failed to fetch code sessions: ${Q.statusText}`);return Q.data.data.map((Z)=>{let X=Z.session_context.sources.find((G)=>G.type==="git_repository"),H=null;if(X?.url){let G=F(X.url);if(G){let[w,P]=G.split("/");if(w&&P)H={name:P,owner:{login:w},default_branch:X.revision||void 0}}}return{id:Z.id,title:Z.title||"Untitled",description:"",status:Z.session_status,repo:H,turns:[],created_at:Z.created_at,updated_at:Z.updated_at}})}catch(K){let Q=k(K);throw y(Q),K}}function L(J){return{Authorization:`Bearer ${J}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"}}async function NJ(J){let{accessToken:B,orgUUID:N}=await C(),K=`${v().BASE_API_URL}/v1/sessions/${J}`,Q={...L(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":N},V=await Y.get(K,{headers:Q,timeout:15000,validateStatus:(Z)=>Z<500});if(V.status!==200){let X=V.data?.error?.message;if(V.status===404)throw Error(`Session not found: ${J}`);if(V.status===401)throw Error("Session expired. Please run /login to sign in again.");throw Error(X||`Failed to fetch session: ${V.status} ${V.statusText}`)}return V.data}function WJ(J){return J.session_context.outcomes?.find((N)=>N.type==="git_repository")?.git_info?.branches[0]}async function GJ(J,B,N){try{let{accessToken:K,orgUUID:Q}=await C(),V=`${v().BASE_API_URL}/v1/sessions/${J}/events`,Z={...L(K),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Q},H={events:[{uuid:N?.uuid??d(),session_id:J,type:"user",parent_tool_use_id:null,message:{role:"user",content:B}}]};W(`[sendEventToRemoteSession] Sending event to session ${J}`);let G=await Y.post(V,H,{headers:Z,validateStatus:(w)=>w<500,timeout:30000});if(G.status===200||G.status===201)return W(`[sendEventToRemoteSession] Successfully sent event to session ${J}`),!0;return W(`[sendEventToRemoteSession] Failed with status ${G.status}: ${M(G.data)}`),!1}catch(K){return W(`[sendEventToRemoteSession] Error: ${q(K)}`),!1}}async function XJ(J,B){try{let{accessToken:N,orgUUID:K}=await C(),Q=`${v().BASE_API_URL}/v1/sessions/${J}`,V={...L(N),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":K};W(`[updateSessionTitle] Updating title for session ${J}: "${B}"`);let Z=await Y.patch(Q,{title:B},{headers:V,validateStatus:(X)=>X<500});if(Z.status===200)return W(`[updateSessionTitle] Successfully updated title for session ${J}`),!0;return W(`[updateSessionTitle] Failed with status ${Z.status}: ${M(Z.data)}`),!1}catch(N){return W(`[updateSessionTitle] Error: ${q(N)}`),!1}}var f,x,$J;var g=A(()=>{T();m();h();R();c();z();D();O();E();I();l();U();f=[2000,4000,8000,16000],x=f.length;$J=_(()=>$.object({id:$.string(),title:$.string(),description:$.string(),status:$.enum(["idle","working","waiting","completed","archived","cancelled","rejected"]),repo:$.object({name:$.string(),owner:$.object({login:$.string()}),default_branch:$.string().optional()}).nullable(),turns:$.array($.string()),created_at:$.string(),updated_at:$.string()}))});
|
|
2
|
-
export{u as i5,p as j5,$J as k5,C as l5,BJ as m5,L as n5,NJ as o5,WJ as p5,GJ as q5,XJ as r5,g as s5};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{tX as Q,yX as w}from"./cli-1.1.27-nx2yxmg9.mjs";import{A3 as x,C3 as j}from"./cli-1.1.27-6g67vpnz.mjs";import{Xia as K,ija as Y}from"./cli-1.1.27-dfww0knt.mjs";import{Aja as k,Bja as Z,Cja as M,Dja as $}from"./cli-1.1.27-njcbrvnc.mjs";import{Mta as X}from"./cli-1.1.27-8vrv0ver.mjs";async function W(){let q=await K("tengu_bridge_repl_v2_config",J),H=y().safeParse(q);return H.success?H.data:J}async function p(){let q=await W();if(q.min_version&&x("99.0.0",q.min_version))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
-
Version ${q.min_version} or higher is required. Run \`claudin update\` to update.`;return null}async function A(){if(!Q())return!1;return(await W()).should_show_app_upgrade_message}var J,y;var P=X(()=>{Z();Y();$();j();w();J={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:0.25,init_retry_max_delay_ms:4000,http_timeout_ms:1e4,uuid_dedup_buffer_size:2000,heartbeat_interval_ms:20000,heartbeat_jitter_fraction:0.1,token_refresh_buffer_ms:300000,teardown_archive_timeout_ms:1500,connect_timeout_ms:15000,min_version:"0.0.0",should_show_app_upgrade_message:!1},y=M(()=>k.object({init_retry_max_attempts:k.number().int().min(1).max(10).default(3),init_retry_base_delay_ms:k.number().int().min(100).default(500),init_retry_jitter_fraction:k.number().min(0).max(1).default(0.25),init_retry_max_delay_ms:k.number().int().min(500).default(4000),http_timeout_ms:k.number().int().min(2000).default(1e4),uuid_dedup_buffer_size:k.number().int().min(100).max(50000).default(2000),heartbeat_interval_ms:k.number().int().min(5000).max(30000).default(20000),heartbeat_jitter_fraction:k.number().min(0).max(0.5).default(0.1),token_refresh_buffer_ms:k.number().int().min(30000).max(1800000).default(300000),teardown_archive_timeout_ms:k.number().int().min(500).max(2000).default(1500),connect_timeout_ms:k.number().int().min(5000).max(60000).default(15000),min_version:k.string().refine((q)=>{try{return x(q,"0.0.0"),!0}catch{return!1}}).default("0.0.0"),should_show_app_upgrade_message:k.boolean().default(!1)}))});
|
|
3
|
-
export{J as Xb,W as Yb,p as Zb,A as _b,P as $b};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{dh as g,eh as Uf}from"./cli-1.1.27-1hdrfsqd.mjs";import{ih as A,kh as Kf}from"./cli-1.1.27-z32qkf2d.mjs";import{$T as k,ED as I,FD as $f,HT as S,Hm as N,Ht as h,IF as v,It as Yf,KS as l,Nm as Qf,PF as Df,Qz as C,Sv as m,Tv as Zf,UT as p,Us as E,Uz as T,Vl as Bf,Vs as P,Wl as Gf,Ws as Xf,Yz as _f,Zm as L,am as y,cn as Vf,ek as W,kT as Ff,lU as Hf,mU as d,pD as M,qE as u,rk as w,sF as c,sk as zf,tE as bf,tF as jf,vm as Jf}from"./cli-1.1.27-w8pwj9ef.mjs";import{Sha as R,_ha as ff}from"./cli-1.1.27-48ezce33.mjs";import{uka as O,xka as e}from"./cli-1.1.27-7gnbh46g.mjs";import{Kqa as H,Vra as s,Wna as U,Xna as q,Xoa as F,aoa as x}from"./cli-1.1.27-m6ne80zc.mjs";import{Jta as K,Mta as t}from"./cli-1.1.27-8vrv0ver.mjs";import{randomUUID as qf}from"crypto";async function lf({setMessages:V,readFileState:i,discoveredSkillNames:n,loadedNestedMemoryPaths:r,getAppState:G,setAppState:J,setConversationId:X}){let Y=l();await M("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Y),timeoutMs:Y});let Z=F();if(Z)O("",{scope:"conversation_clear",last_request_id:Z});let Q=new Set,_=[],$=(f)=>("isBackgrounded"in f)&&f.isBackgrounded===!1;if(G)for(let f of Object.values(G().tasks)){if($(f))continue;if(v(f))Q.add(f.agentId),_.push(f);else if(m(f))Q.add(f.identity.agentId)}if(V(()=>[]),X)X(qf());if(g(Q),I(x()),i.clear(),n?.clear(),r?.clear(),J)J((f)=>{let B={};for(let[D,z]of Object.entries(f.tasks)){if(!$(z)){B[D]=z;continue}try{if(z.status==="running"){if(h(z)){if(z.shellCommand?.kill(),z.shellCommand?.cleanup(),z.cleanupTimeoutId)clearTimeout(z.cleanupTimeoutId)}if("abortController"in z)z.abortController?.abort();if("unregisterCleanup"in z)z.unregisterCleanup?.()}}catch(a){R(a)}E(D)}return{...f,tasks:B,attribution:c(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:f.mcp.pluginReconnectKey}}});N(),p(),H(),A(),T(),C();let o=U();q({setCurrentAsParent:!0}),L(o),await S();for(let f of _){if(f.status!=="running")continue;P(f.id,W(w(f.agentId)))}{let{saveMode:f}=(d(),K(Hf)),{isCoordinatorMode:B}=(Gf(),K(Bf));f(B()?"coordinator":"normal")}let b=y();if(b)k(b);let j=await u("clear");if(j.length>0)V(()=>j)}var xf=t(()=>{s();e();Zf();Df();Yf();zf();_f();jf();Ff();ff();Kf();Qf();$f();bf();d();Xf();Vf();Jf();Uf()});
|
|
2
|
-
export{lf as bh,xf as ch};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{qt as I,tt as X}from"./cli-1.1.27-w8pwj9ef.mjs";import{ima as H,qma as W}from"./cli-1.1.27-t1dxp2pw.mjs";import{Mta as V}from"./cli-1.1.27-8vrv0ver.mjs";function q(f){J=f}function F(f){z=f}function K(f){N=f}function Q(){return O}function R(f,B){if(O=f,J?.(f,B),f==="requires_action"&&B)G=!0,z?.({pending_action:B});else if(G)G=!1,z?.({pending_action:null});if(f==="idle")z?.({task_summary:null});if(H(process.env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS))I({type:"system",subtype:"session_state_changed",state:f})}function _(f){z?.(f)}function j(f){N?.(f)}var J=null,z=null,N=null,G=!1,O="idle";var Y=V(()=>{W();X()});
|
|
2
|
-
export{q as td,F as ud,K as vd,Q as wd,R as xd,_ as yd,j as zd,Y as Ad};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s5 as Z}from"./cli-1.1.27-1rztfj2j.mjs";import{F9 as Y,n9 as F}from"./cli-1.1.27-xdfkhk5m.mjs";import{Wfa as N,Zfa as B,_ha as X,sga as W,tfa as V}from"./cli-1.1.27-48ezce33.mjs";import{tka as Q}from"./cli-1.1.27-y712t8h2.mjs";import{Mta as P}from"./cli-1.1.27-8vrv0ver.mjs";function E(){let w=F()?.organizationUuid;if(!w)return null;let z=B().overageCreditGrantCache?.[w];if(!z)return null;if(Date.now()-z.timestamp>$)return null;return z.info}function U(){let w=F()?.organizationUuid;if(!w)return;let z=B().overageCreditGrantCache;if(!z||!(w in z))return;N((J)=>{let K={...J.overageCreditGrantCache};return delete K[w],{...J,overageCreditGrantCache:K}})}function _(w){if(w.amount_minor_units==null||!w.currency)return null;if(w.currency.toUpperCase()==="USD"){let z=w.amount_minor_units/100;return Number.isInteger(z)?`$${z}`:`$${z.toFixed(2)}`}return null}var $=3600000;var k=P(()=>{Q();Y();W();X();V();Z()});
|
|
2
|
-
export{E as mj,U as nj,_ as oj,k as pj};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Mta as n}from"./cli-1.1.27-8vrv0ver.mjs";function o(){return{}}function e(){return null}async function i(){}function g(){return!1}function r(){}function u(){}function f(){}async function l(){}var t=()=>{};
|
|
2
|
-
export{o as WV,e as XV,i as YV,g as ZV,r as _V,u as $V,f as aW,l as bW,t as cW};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{ra as F}from"./cli-1.1.27-xjabxtdd.mjs";import{iu as N,ju as b}from"./cli-1.1.27-w8pwj9ef.mjs";import{_W as U,bX as d,cX as _,dX as M,iX as I}from"./cli-1.1.27-pab2avnw.mjs";import{J9 as z,M9 as T,T9 as x,U9 as H,Z9 as v}from"./cli-1.1.27-kdv6nw9e.mjs";import{D$ as Z,F$ as P}from"./cli-1.1.27-48ezce33.mjs";import{uka as B,xka as D}from"./cli-1.1.27-7gnbh46g.mjs";import{Ala as A,ala as O,fla as f,xla as Y}from"./cli-1.1.27-r335xv52.mjs";import{ima as L,qma as S}from"./cli-1.1.27-t1dxp2pw.mjs";import{Ysa as y,ota as i}from"./cli-1.1.27-4cjm0m5c.mjs";import{Nta as k}from"./cli-1.1.27-8vrv0ver.mjs";i();A();P();d();D();b();A();P();S();T();v();I();f();var u=`{"type":"keep_alive"}
|
|
2
|
-
`,C=1000,h=1000,R=30000,w=600000,p=1e4,m=300000,E=R*2,c=new Set([1002,4001,4003]);class W{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new N(C)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:H(this.url.href),tls:z()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-1.1.27-q9kmdf61.mjs"),Q=new K(this.url.href,{headers:J,agent:x(this.url.href),...z()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)B("",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),_(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)B("",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&c.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>E)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<w){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let G=this.refreshHeaders();Object.assign(this.headers,G),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(h*Math.pow(2,this.reconnectAttempts-1),R),j=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(j)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)B("",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(j)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},j)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((j)=>("uuid"in j)&&j.uuid===J);if($>=0){Q=$+1;let j=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(j),j.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${j.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:j.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let j=O($)+`
|
|
3
|
-
`;if(!this.sendLine(j)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=O(J)+`
|
|
4
|
-
`;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>E){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},p)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),L(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(u),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},m)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var g=100,t=15000,l=3000;class n extends W{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:j,onBatchDropped:G}=$??{};this.postUrl=r(J),this.uploader=new F({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:j,onBatchDropped:(V,q)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:V,failures:q}),G?.(V,q)},send:(V)=>this.postOnce(V)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),g);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,l)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=U();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await y.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:t})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function r(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
|
|
5
|
-
export{W as ca,n as da};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{H1 as K,g0 as Z,k2 as k}from"./cli-1.1.27-6spv5ha8.mjs";import{V4 as J,W4 as H}from"./cli-1.1.27-kgpk1m6k.mjs";import{r$ as v,s$ as Y}from"./cli-1.1.27-48ezce33.mjs";import{Ita as V,Mta as X}from"./cli-1.1.27-8vrv0ver.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
|
|
2
|
-
export{N as li,C as mi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_X as Xq,cY as wq,gY as xq,hY as c,iY as zq,qY as Yq}from"./cli-1.1.27-nxkc7nfr.mjs";import{h4 as vq,o4 as Nq}from"./cli-1.1.27-94qc7asn.mjs";import{Gaa as Fq,J$ as Oq,K$ as Lq,Sha as b,_ha as yq,iaa as jq,pfa as C,rfa as Mq}from"./cli-1.1.27-48ezce33.mjs";import{Aja as R,Bja as Qq,Cja as w,Dja as Vq}from"./cli-1.1.27-njcbrvnc.mjs";import{Ala as Jq,ala as z,bla as y,fla as qq,xla as G}from"./cli-1.1.27-r335xv52.mjs";import{Xla as W,Yla as x,cma as e}from"./cli-1.1.27-0rz9qd34.mjs";import{fma as s,gma as l,ima as t,qma as a}from"./cli-1.1.27-t1dxp2pw.mjs";import{Lpa as i,Sna as r,Tna as Aq,Vra as m,Wna as d,dra as u}from"./cli-1.1.27-m6ne80zc.mjs";import{Mta as T,Nta as Hq}from"./cli-1.1.27-8vrv0ver.mjs";import{mkdir as Dq,readdir as I,readFile as Zq,unlink as $q,writeFile as h}from"fs/promises";import{join as D}from"path";function _J(q){if(M===q)return;M=q,E()}function WJ(){if(M===void 0)return;M=void 0,E()}function E(){try{Gq.emit()}catch{}}function Kq(q){return D(U(q),pq)}async function g(q){let J=Kq(q);try{let Q=(await Zq(J,"utf-8")).trim(),V=parseInt(Q,10);return isNaN(V)?0:V}catch{return 0}}async function Rq(q,J){let Q=Kq(q);await h(Q,String(J))}function BJ(){if(t(process.env.CLAUDIN_ENABLE_TASKS))return!0;return!i()}async function EJ(q){let J=U(q),Q=await o(q),V;try{V=await C(Q,f);let Y=await Wq(q);if(Y>0){let Z=await g(q);if(Y>Z)await Rq(q,Y)}let X;try{X=await I(J)}catch{X=[]}for(let Z of X)if(Z.endsWith(".json")&&!Z.startsWith(".")){let $=D(J,Z);try{await $q($)}catch{}}E()}finally{if(V)await V()}}async function HJ(q){let J=await P(q),Q=0;for(let V of J){if(V.status!=="completed"||V.metadata?._internal)continue;if(await v(q,V.id,{metadata:{...V.metadata,_internal:!0}}))Q++}return Q}function OJ(){if(process.env.CLAUDIN_TASK_LIST_ID)return process.env.CLAUDIN_TASK_LIST_ID;let q=Xq();if(q)return q.teamName;return c()||M||d()}function _q(q){return q.replace(/[^a-zA-Z0-9_-]/g,"-")}function U(q){return D(s(),"tasks",_q(q))}function S(q,J){return D(U(q),`${_q(J)}.json`)}async function bq(q){let J=U(q);try{await Dq(J,{recursive:!0})}catch{}}async function Wq(q){let J=U(q),Q;try{Q=await I(J)}catch{return 0}let V=0;for(let Y of Q){if(!Y.endsWith(".json"))continue;let X=parseInt(Y.replace(".json",""),10);if(!isNaN(X)&&X>V)V=X}return V}async function cq(q){let[J,Q]=await Promise.all([Wq(q),g(q)]);return Math.max(J,Q)}async function jJ(q,J){let Q=await o(q),V;try{V=await C(Q,f);let Y=await cq(q),X=String(Y+1),Z={id:X,...J},$=S(q,X);return await h($,z(Z,null,2)),E(),X}finally{if(V)await V()}}async function O(q,J){let Q=S(q,J);try{let V=await Zq(Q,"utf-8"),Y=y(V),X=Pq().safeParse(Y);if(!X.success)return G(`[Tasks] Task ${J} failed schema validation: ${X.error.message}`),null;return X.data}catch(V){if(x(V)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${J}: ${W(V)}`),b(V),null}}async function Uq(q,J,Q){let V=await O(q,J);if(!V)return null;let Y={...V,...Q,id:J},X=S(q,J);return await h(X,z(Y,null,2)),E(),Y}async function v(q,J,Q){let V=S(q,J);if(!await O(q,J))return null;let X;try{return X=await C(V,f),await Uq(q,J,Q)}finally{await X?.()}}async function vJ(q,J){let Q=S(q,J);try{let V=parseInt(J,10);if(!isNaN(V)){let X=await g(q);if(V>X)await Rq(q,V)}try{await $q(Q)}catch(X){if(x(X)==="ENOENT")return!1;throw X}let Y=await P(q);for(let X of Y){let Z=X.blocks.filter((K)=>K!==J),$=X.blockedBy.filter((K)=>K!==J);if(Z.length!==X.blocks.length||$.length!==X.blockedBy.length)await v(q,X.id,{blocks:Z,blockedBy:$})}return E(),!0}catch{return!1}}async function P(q){let J=U(q),Q;try{Q=await I(J)}catch{return[]}let V=Q.filter((X)=>X.endsWith(".json")).map((X)=>X.replace(".json",""));return(await Promise.all(V.map((X)=>O(q,X)))).filter((X)=>X!==null)}async function xJ(q,J,Q){let[V,Y]=await Promise.all([O(q,J),O(q,Q)]);if(!V||!Y)return!1;if(!V.blocks.includes(Q))await v(q,J,{blocks:[...V.blocks,Q]});if(!Y.blockedBy.includes(J))await v(q,Q,{blockedBy:[...Y.blockedBy,J]});return!0}function hq(q){return D(U(q),".lock")}async function o(q){await bq(q);let J=hq(q);try{await h(J,"",{flag:"wx"})}catch{}return J}async function zJ(q,J,Q,V={}){let Y=S(q,J);if(!await O(q,J))return{success:!1,reason:"task_not_found"};if(V.checkAgentBusy)return uq(q,J,Q);let Z;try{Z=await C(Y,f);let $=await O(q,J);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==Q)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let K=await P(q),H=new Set(K.filter((A)=>A.status!=="completed").map((A)=>A.id)),N=$.blockedBy.filter((A)=>H.has(A));if(N.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:N};return{success:!0,task:await Uq(q,J,{owner:Q})}}catch($){return G(`[Tasks] Failed to claim task ${J}: ${W($)}`),b($),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function uq(q,J,Q){let V=await o(q),Y;try{Y=await C(V,f);let X=await P(q),Z=X.find((_)=>_.id===J);if(!Z)return{success:!1,reason:"task_not_found"};if(Z.owner&&Z.owner!==Q)return{success:!1,reason:"already_claimed",task:Z};if(Z.status==="completed")return{success:!1,reason:"already_resolved",task:Z};let $=new Set(X.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=Z.blockedBy.filter((_)=>$.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:Z,blockedByTasks:K};let H=X.filter((_)=>_.status!=="completed"&&_.owner===Q&&_.id!==J);if(H.length>0)return{success:!1,reason:"agent_busy",task:Z,busyWithTasks:H.map((_)=>_.id)};return{success:!0,task:await v(q,J,{owner:Q})}}catch(X){return G(`[Tasks] Failed to claim task ${J} with busy check: ${W(X)}`),b(X),{success:!1,reason:"task_not_found"}}finally{if(Y)await Y()}}async function CJ(q,J,Q,V){let X=(await P(q)).filter((K)=>K.status!=="completed"&&(K.owner===J||K.owner===Q));for(let K of X)await v(q,K.id,{owner:void 0,status:"pending"});if(X.length>0)G(`[Tasks] Unassigned ${X.length} task(s) from ${Q}`);let $=`${Q} ${V==="terminated"?"was terminated":"has shut down"}.`;if(X.length>0){let K=X.map((H)=>`#${H.id} "${H.subject}"`).join(", ");$+=` ${X.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:X.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:$}}var Gq,M,UJ,fq,Pq,pq=".highwatermark",f;var Bq=T(()=>{Qq();m();Jq();a();e();Vq();Mq();yq();Aq();qq();Yq();wq();Gq=r();UJ=Gq.subscribe;fq=w(()=>R.enum(["pending","in_progress","completed"])),Pq=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fq(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),f={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(q){return q==="tmux"||q==="iterm2"}var Eq=()=>{};import{mkdirSync as Tq,readFileSync as lq,writeFileSync as Iq}from"fs";import{mkdir as gq,readFile as Cq,rm as k,writeFile as oq}from"fs/promises";import{join as p}from"path";function Sq(q){return q.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function gJ(q){return q.replace(/@/g,"-")}function L(q){return p(l(),Sq(q))}function F(q){return p(L(q),"config.json")}function B(q){try{let J=lq(F(q),"utf-8");return y(J)}catch(J){if(x(J)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${q}: ${W(J)}`),null}}async function nq(q){try{let J=await Cq(F(q),"utf-8");return y(J)}catch(J){if(x(J)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${q}: ${W(J)}`),null}}function j(q,J){let Q=L(q);Tq(Q,{recursive:!0}),Iq(F(q),z(J,null,2))}async function kq(q,J){let Q=L(q);await gq(Q,{recursive:!0}),await oq(F(q),z(J,null,2))}function oJ(q,J){let Q=J.agentId||J.name;if(!Q)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let V=B(q);if(!V)return G(`[TeammateTool] Cannot remove teammate ${Q}: failed to read team file for "${q}"`),!1;let Y=V.members.length;if(V.members=V.members.filter((X)=>{if(J.agentId&&X.agentId===J.agentId)return!1;if(J.name&&X.name===J.name)return!1;return!0}),V.members.length===Y)return G(`[TeammateTool] Teammate ${Q} not found in team file for "${q}"`),!1;return j(q,V),G(`[TeammateTool] Removed teammate from team file: ${Q}`),!0}function nJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.hiddenPaneIds??[];if(!V.includes(J))V.push(J),Q.hiddenPaneIds=V,j(q,Q),G(`[TeammateTool] Added ${J} to hidden panes for team ${q}`);return!0}function kJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.hiddenPaneIds??[],Y=V.indexOf(J);if(Y!==-1)V.splice(Y,1),Q.hiddenPaneIds=V,j(q,Q),G(`[TeammateTool] Removed ${J} from hidden panes for team ${q}`);return!0}function rJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.members.findIndex((Y)=>Y.tmuxPaneId===J);if(V===-1)return!1;if(Q.members.splice(V,1),Q.hiddenPaneIds){let Y=Q.hiddenPaneIds.indexOf(J);if(Y!==-1)Q.hiddenPaneIds.splice(Y,1)}return j(q,Q),G(`[TeammateTool] Removed member with pane ${J} from team ${q}`),!0}function dJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.members.findIndex((Y)=>Y.agentId===J);if(V===-1)return!1;return Q.members.splice(V,1),j(q,Q),G(`[TeammateTool] Removed member ${J} from team ${q}`),!0}function rq(q,J,Q){let V=B(q);if(!V)return!1;let Y=V.members.find((Z)=>Z.name===J);if(!Y)return G(`[TeammateTool] Cannot set member mode: member ${J} not found in team ${q}`),!1;if(Y.mode===Q)return!0;let X=V.members.map((Z)=>Z.name===J?{...Z,mode:Q}:Z);return j(q,{...V,members:X}),G(`[TeammateTool] Set member ${J} in team ${q} to mode: ${Q}`),!0}function iJ(q,J){if(!zq())return;let Q=J??c(),V=xq();if(Q&&V)rq(Q,V,q)}function mJ(q,J){let Q=B(q);if(!Q)return!1;let V=new Map(J.map((Z)=>[Z.memberName,Z.mode])),Y=!1,X=Q.members.map((Z)=>{let $=V.get(Z.name);if($!==void 0&&Z.mode!==$)return Y=!0,{...Z,mode:$};return Z});if(Y)j(q,{...Q,members:X}),G(`[TeammateTool] Set ${J.length} member modes in team ${q}`);return!0}async function sJ(q,J,Q){let V=await nq(q);if(!V){G(`[TeammateTool] Cannot set member active: team ${q} not found`);return}let Y=V.members.find((X)=>X.name===J);if(!Y){G(`[TeammateTool] Cannot set member active: member ${J} not found in team ${q}`);return}if(Y.isActive===Q)return;Y.isActive=Q,await kq(q,V),G(`[TeammateTool] Set member ${J} in team ${q} to ${Q?"active":"idle"}`)}async function dq(q){let J=p(q,".git"),Q=null;try{let Y=(await Cq(J,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Y&&Y[1]){let X=Y[1],Z=p(X,"..","..");Q=p(Z,"..")}}catch{}if(Q){let V=await Oq(jq(),["worktree","remove","--force",q],{cwd:Q});if(V.code===0){G(`[TeammateTool] Removed worktree via git: ${q}`);return}if(V.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${q}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${V.stderr}`)}try{await k(q,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${q}`)}catch(V){G(`[TeammateTool] Failed to remove worktree ${q}: ${W(V)}`)}}function tJ(q){u().add(q)}function aJ(q){u().delete(q)}async function eJ(){let q=u();if(q.size===0)return;let J=Array.from(q);G(`cleanupSessionTeams: removing ${J.length} orphan team dir(s): ${J.join(", ")}`),await Promise.allSettled(J.map((Q)=>iq(Q))),await Promise.allSettled(J.map((Q)=>mq(Q))),q.clear()}async function iq(q){let J=B(q);if(!J)return;let Q=J.members.filter(($)=>$.name!==vq&&$.tmuxPaneId&&$.backendType&&n($.backendType));if(Q.length===0)return;let[{ensureBackendsRegistered:V,getBackendByType:Y},{isInsideTmux:X}]=await Promise.all([import("./registry-1.1.27-vccj3rtk.mjs"),import("./detection-1.1.27-0974kbef.mjs")]);await V();let Z=!await X();await Promise.allSettled(Q.map(async($)=>{if(!$.tmuxPaneId||!$.backendType||!n($.backendType))return;let K=await Y($.backendType).killPane($.tmuxPaneId,Z);G(`cleanupSessionTeams: killPane ${$.name} (${$.backendType} ${$.tmuxPaneId}) → ${K}`)}))}async function mq(q){let J=Sq(q),Q=B(q),V=[];if(Q){for(let Z of Q.members)if(Z.worktreePath)V.push(Z.worktreePath)}for(let Z of V)await dq(Z);let Y=L(q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Y}`)}catch(Z){G(`[TeammateTool] Failed to clean up team directory ${Y}: ${W(Z)}`)}let X=U(J);try{await k(X,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${X}`),E()}catch(Z){G(`[TeammateTool] Failed to clean up tasks directory ${X}: ${W(Z)}`)}}var IJ;var sq=T(()=>{Qq();m();Jq();a();e();Lq();Fq();Vq();qq();Bq();Yq();Eq();Nq();IJ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
|
|
2
|
-
export{_J as gW,WJ as hW,UJ as iW,fq as jW,BJ as kW,EJ as lW,HJ as mW,OJ as nW,_q as oW,U as pW,bq as qW,jJ as rW,O as sW,v as tW,vJ as uW,P as vW,xJ as wW,zJ as xW,CJ as yW,Bq as zW,n as AW,Eq as BW,IJ as CW,Sq as DW,gJ as EW,L as FW,F as GW,B as HW,nq as IW,kq as JW,oJ as KW,nJ as LW,kJ as MW,rJ as NW,dJ as OW,rq as PW,iJ as QW,mJ as RW,sJ as SW,tJ as TW,aJ as UW,eJ as VW,mq as WW,sq as XW};
|