@claudiolabs/claudin 1.1.12 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -24
- package/dist/chunks/AgentTool-1.1.13-63r89cdz.mjs +1 -0
- package/dist/chunks/App-1.1.13-d46t1gxs.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.13-ss1skn67.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.13-akb18zhk.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.13-wy2pstpa.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.13-nrs4ahv7.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.13-p12n7vw3.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.13-tqx20akq.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.13-6nf4k00f.mjs +6 -0
- package/dist/chunks/Doctor-1.1.13-sab3pc3m.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.13-8j4yph77.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.13-ezctrhfh.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.13-fn55xkky.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.13-v601bm3n.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.13-m30010yq.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.13-r6p8ac38.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.13-2mn20qcd.mjs +1 -0
- package/dist/chunks/REPL-1.1.13-mn8t5yw9.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.13-ayr9p9vf.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.13-wvmmeycx.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.13-wy75ekbh.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.13-mbjqq83z.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.13-590kxc7c.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.13-3z3twxzs.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.13-wzknhxkr.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.13-ev0qre9c.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.13-mf4z3aws.mjs +1 -0
- package/dist/chunks/add-dir-1.1.13-r8re3j87.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.13-nxkcga73.mjs +1 -0
- package/dist/chunks/agents-1.1.13-86a1wgye.mjs +110 -0
- package/dist/chunks/agents-1.1.13-w1pmkekd.mjs +3 -0
- package/dist/chunks/api-1.1.13-5ffq20rc.mjs +1 -0
- package/dist/chunks/asciicast-1.1.13-633wvh0n.mjs +1 -0
- package/dist/chunks/assistant-1.1.13-9q7zxtfz.mjs +1 -0
- package/dist/chunks/auth-1.1.13-a50e1ztc.mjs +1 -0
- package/dist/chunks/auth-1.1.13-xv576tj3.mjs +1 -0
- package/dist/chunks/autoMode-1.1.13-3n3c9p8y.mjs +48 -0
- package/dist/chunks/autoUpdater-1.1.13-mb65jkk5.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.13-avr9z4k0.mjs +1 -0
- package/dist/chunks/branch-1.1.13-gmg9we2y.mjs +4 -0
- package/dist/chunks/bridge-1.1.13-hvfvhpm1.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.13-zzxf7mvh.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.13-f2fjmfs0.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.13-8tn5vy8z.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.13-97d9ec9y.mjs +1 -0
- package/dist/chunks/btw-1.1.13-v2hwppkk.mjs +1 -0
- package/dist/chunks/buddy-1.1.13-svfg8x3f.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.13-td1bna05.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.13-tmmf2k7r.mjs +4 -0
- package/dist/chunks/caches-1.1.13-s55yzhpm.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.13-8d0bp8yb.mjs +1 -0
- package/dist/chunks/claudemd-1.1.13-3mc0z25q.mjs +1 -0
- package/dist/chunks/clear-1.1.13-1d9yvw3f.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.13-882kpw7s.mjs +1 -0
- package/dist/chunks/cli-1.1.13-03rdpsbf.mjs +2 -0
- package/dist/chunks/cli-1.1.13-0dha376x.mjs +3 -0
- package/dist/chunks/cli-1.1.13-0h48j6a1.mjs +7 -0
- package/dist/chunks/cli-1.1.13-0qy978b3.mjs +3 -0
- package/dist/chunks/cli-1.1.13-0x1mk1dp.mjs +2 -0
- package/dist/chunks/cli-1.1.13-0y4933cs.mjs +2 -0
- package/dist/chunks/cli-1.1.13-0yte5zpd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-15nbdw38.mjs +2 -0
- package/dist/chunks/cli-1.1.13-17xy86gy.mjs +24 -0
- package/dist/chunks/cli-1.1.13-1d70jtz7.mjs +6 -0
- package/dist/chunks/cli-1.1.13-1frz0zm3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-1jf910f2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-1qk5qhgt.mjs +2 -0
- package/dist/chunks/cli-1.1.13-1rfveg0v.mjs +2 -0
- package/dist/chunks/cli-1.1.13-1x4z2mj8.mjs +2 -0
- package/dist/chunks/cli-1.1.13-24284zna.mjs +2 -0
- package/dist/chunks/cli-1.1.13-284pjmzy.mjs +4 -0
- package/dist/chunks/cli-1.1.13-2964cc2e.mjs +2 -0
- package/dist/chunks/cli-1.1.13-2a8k8qw7.mjs +2 -0
- package/dist/chunks/cli-1.1.13-2f0gzs1e.mjs +2 -0
- package/dist/chunks/cli-1.1.13-2m39r998.mjs +2 -0
- package/dist/chunks/cli-1.1.13-2mrqqgcm.mjs +202 -0
- package/dist/chunks/cli-1.1.13-2sx1bxbt.mjs +2 -0
- package/dist/chunks/cli-1.1.13-2txesqy8.mjs +2 -0
- package/dist/chunks/cli-1.1.13-3dmbtx8g.mjs +2 -0
- package/dist/chunks/cli-1.1.13-3wxfn6t5.mjs +2 -0
- package/dist/chunks/cli-1.1.13-46jvx14j.mjs +2 -0
- package/dist/chunks/cli-1.1.13-49gvv5kd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-4tt8dq0e.mjs +42 -0
- package/dist/chunks/cli-1.1.13-4vt96sm8.mjs +2 -0
- package/dist/chunks/cli-1.1.13-53ght581.mjs +3 -0
- package/dist/chunks/cli-1.1.13-53zq1gs2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-5kpppj1f.mjs +6 -0
- package/dist/chunks/cli-1.1.13-61mygvzg.mjs +2 -0
- package/dist/chunks/cli-1.1.13-64d0d5ye.mjs +2 -0
- package/dist/chunks/cli-1.1.13-65c7kxwt.mjs +12 -0
- package/dist/chunks/cli-1.1.13-669vhsjj.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6727vw4f.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6b845car.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6c4qxmj3.mjs +4 -0
- package/dist/chunks/cli-1.1.13-6dcpjy34.mjs +17 -0
- package/dist/chunks/cli-1.1.13-6ebd7gpv.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6jy1pnge.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6k71beqh.mjs +2 -0
- package/dist/chunks/cli-1.1.13-6tf67wfm.mjs +2 -0
- package/dist/chunks/cli-1.1.13-74rczf0f.mjs +2 -0
- package/dist/chunks/cli-1.1.13-7h18kpv0.mjs +2 -0
- package/dist/chunks/cli-1.1.13-7k2bp2pf.mjs +2 -0
- package/dist/chunks/cli-1.1.13-7s34jqge.mjs +133 -0
- package/dist/chunks/cli-1.1.13-7srn3vy6.mjs +2 -0
- package/dist/chunks/cli-1.1.13-7wyfj1qp.mjs +2 -0
- package/dist/chunks/cli-1.1.13-82y6dszx.mjs +2 -0
- package/dist/chunks/cli-1.1.13-86kjp502.mjs +2 -0
- package/dist/chunks/cli-1.1.13-91q67gqp.mjs +2 -0
- package/dist/chunks/cli-1.1.13-9609q0ww.mjs +2 -0
- package/dist/chunks/cli-1.1.13-9ktdmvzq.mjs +15 -0
- package/dist/chunks/cli-1.1.13-9qhgyzkx.mjs +2 -0
- package/dist/chunks/cli-1.1.13-9s0arh3g.mjs +25 -0
- package/dist/chunks/cli-1.1.13-9v3mg87v.mjs +2 -0
- package/dist/chunks/cli-1.1.13-9x53mnyd.mjs +5 -0
- package/dist/chunks/cli-1.1.13-a3q7qm6t.mjs +2 -0
- package/dist/chunks/cli-1.1.13-a3s5tdea.mjs +2 -0
- package/dist/chunks/cli-1.1.13-a3zfe19b.mjs +25 -0
- package/dist/chunks/cli-1.1.13-a40ncbc3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-a96dm0r5.mjs +4 -0
- package/dist/chunks/cli-1.1.13-aac9pss7.mjs +59 -0
- package/dist/chunks/cli-1.1.13-aeq919w1.mjs +2 -0
- package/dist/chunks/cli-1.1.13-aqph7zr1.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ayx92dtj.mjs +6 -0
- package/dist/chunks/cli-1.1.13-b47k2p92.mjs +21 -0
- package/dist/chunks/cli-1.1.13-b9sg0jsz.mjs +2 -0
- package/dist/chunks/cli-1.1.13-baxww5k9.mjs +3 -0
- package/dist/chunks/cli-1.1.13-c4zxjf91.mjs +2 -0
- package/dist/chunks/cli-1.1.13-cd7jraqe.mjs +2 -0
- package/dist/chunks/cli-1.1.13-cey8v1xc.mjs +2 -0
- package/dist/chunks/cli-1.1.13-cg1m9a2x.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ck2qzqbj.mjs +2 -0
- package/dist/chunks/cli-1.1.13-cm4vwx6e.mjs +2 -0
- package/dist/chunks/cli-1.1.13-cn9g3704.mjs +12 -0
- package/dist/chunks/cli-1.1.13-cqhxyzrd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-d4z9sv3g.mjs +2 -0
- package/dist/chunks/cli-1.1.13-d54qh52e.mjs +3 -0
- package/dist/chunks/cli-1.1.13-d8d30wps.mjs +3 -0
- package/dist/chunks/cli-1.1.13-djvyb4s5.mjs +3 -0
- package/dist/chunks/cli-1.1.13-dpsjxc84.mjs +2 -0
- package/dist/chunks/cli-1.1.13-dthjfxxw.mjs +2 -0
- package/dist/chunks/cli-1.1.13-e4hsds4b.mjs +2 -0
- package/dist/chunks/cli-1.1.13-e4k7980n.mjs +2 -0
- package/dist/chunks/cli-1.1.13-e68npf24.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ehaqachs.mjs +2 -0
- package/dist/chunks/cli-1.1.13-epjmphrz.mjs +133 -0
- package/dist/chunks/cli-1.1.13-ev08z5ye.mjs +24 -0
- package/dist/chunks/cli-1.1.13-ewxej7em.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ey931psa.mjs +2 -0
- package/dist/chunks/cli-1.1.13-f5s7e6kg.mjs +2 -0
- package/dist/chunks/cli-1.1.13-far5gqfj.mjs +2 -0
- package/dist/chunks/cli-1.1.13-fccy9c48.mjs +2 -0
- package/dist/chunks/cli-1.1.13-fjxx2wgm.mjs +2 -0
- package/dist/chunks/cli-1.1.13-fkcaczca.mjs +2 -0
- package/dist/chunks/cli-1.1.13-fkvcsg0a.mjs +2 -0
- package/dist/chunks/cli-1.1.13-fr4zp0cx.mjs +3 -0
- package/dist/chunks/cli-1.1.13-g8k8na90.mjs +2 -0
- package/dist/chunks/cli-1.1.13-gaa8s22w.mjs +8 -0
- package/dist/chunks/cli-1.1.13-gechs2yp.mjs +4 -0
- package/dist/chunks/cli-1.1.13-gfyds6b8.mjs +18 -0
- package/dist/chunks/cli-1.1.13-gh95gh19.mjs +2 -0
- package/dist/chunks/cli-1.1.13-gmqmzw50.mjs +2 -0
- package/dist/chunks/cli-1.1.13-gzfw6n93.mjs +39 -0
- package/dist/chunks/cli-1.1.13-gznvgt6g.mjs +16 -0
- package/dist/chunks/cli-1.1.13-h1v6cap9.mjs +2 -0
- package/dist/chunks/cli-1.1.13-h7n0z0dz.mjs +2 -0
- package/dist/chunks/cli-1.1.13-h7xrb6x3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-hb5bb8jk.mjs +3 -0
- package/dist/chunks/cli-1.1.13-hg8x8693.mjs +6 -0
- package/dist/chunks/cli-1.1.13-hzneg4va.mjs +2 -0
- package/dist/chunks/cli-1.1.13-j02dcs05.mjs +2 -0
- package/dist/chunks/cli-1.1.13-j7dbk8te.mjs +2 -0
- package/dist/chunks/cli-1.1.13-j98qjhp9.mjs +15 -0
- package/dist/chunks/cli-1.1.13-jdcqc6bd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-je6371k7.mjs +2 -0
- package/dist/chunks/cli-1.1.13-jevpf9b3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-k5sbyjwd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-k6ef9cy7.mjs +34 -0
- package/dist/chunks/cli-1.1.13-kbf9vss4.mjs +4 -0
- package/dist/chunks/cli-1.1.13-kct81ph3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-kjdr6edt.mjs +15 -0
- package/dist/chunks/cli-1.1.13-kmrz3wh8.mjs +2 -0
- package/dist/chunks/cli-1.1.13-kq8spsav.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ksvd60yr.mjs +2 -0
- package/dist/chunks/cli-1.1.13-kw2fntc3.mjs +3 -0
- package/dist/chunks/cli-1.1.13-m5grg33r.mjs +4 -0
- package/dist/chunks/cli-1.1.13-mct1fasm.mjs +2 -0
- package/dist/chunks/cli-1.1.13-mt0y53s0.mjs +17 -0
- package/dist/chunks/cli-1.1.13-mzq23677.mjs +2 -0
- package/dist/chunks/cli-1.1.13-n24mxjbh.mjs +2 -0
- package/dist/chunks/cli-1.1.13-n8nv58q7.mjs +2 -0
- package/dist/chunks/cli-1.1.13-nbdp9ez1.mjs +3 -0
- package/dist/chunks/cli-1.1.13-nr09192d.mjs +2 -0
- package/dist/chunks/cli-1.1.13-pa4chrcw.mjs +2 -0
- package/dist/chunks/cli-1.1.13-pam922jf.mjs +2 -0
- package/dist/chunks/cli-1.1.13-pedv9sma.mjs +9 -0
- package/dist/chunks/cli-1.1.13-pjxb9g99.mjs +2 -0
- package/dist/chunks/cli-1.1.13-pmejqt4x.mjs +2 -0
- package/dist/chunks/cli-1.1.13-pscw4dkq.mjs +2 -0
- package/dist/chunks/cli-1.1.13-psmq4bkh.mjs +50 -0
- package/dist/chunks/cli-1.1.13-q1hx591h.mjs +2 -0
- package/dist/chunks/cli-1.1.13-q1yggv9b.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qc5bvtyx.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qd5r2qba.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qhavh0s1.mjs +9 -0
- package/dist/chunks/cli-1.1.13-qr4adses.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qtzpy08k.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qv85wtc7.mjs +2 -0
- package/dist/chunks/cli-1.1.13-qxrjvprg.mjs +3 -0
- package/dist/chunks/cli-1.1.13-qyjx1fky.mjs +2 -0
- package/dist/chunks/cli-1.1.13-r2qnta4s.mjs +2 -0
- package/dist/chunks/cli-1.1.13-r4znfhyr.mjs +2 -0
- package/dist/chunks/cli-1.1.13-r9tfxszp.mjs +2 -0
- package/dist/chunks/cli-1.1.13-rcgr5xjp.mjs +1 -0
- package/dist/chunks/cli-1.1.13-rh27w2xj.mjs +24 -0
- package/dist/chunks/cli-1.1.13-rhtvcdjb.mjs +3 -0
- package/dist/chunks/cli-1.1.13-rmt4z6qm.mjs +2 -0
- package/dist/chunks/cli-1.1.13-rnajmfsp.mjs +2 -0
- package/dist/chunks/cli-1.1.13-rrp2vm36.mjs +2 -0
- package/dist/chunks/cli-1.1.13-segzta4x.mjs +2 -0
- package/dist/chunks/cli-1.1.13-shz97pa0.mjs +2 -0
- package/dist/chunks/cli-1.1.13-smefk747.mjs +2 -0
- package/dist/chunks/cli-1.1.13-snkbv1w2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-sqg8rfkh.mjs +2 -0
- package/dist/chunks/cli-1.1.13-sycf9s0v.mjs +3 -0
- package/dist/chunks/cli-1.1.13-t4z97zfd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-t8ypngwg.mjs +4 -0
- package/dist/chunks/cli-1.1.13-tma5xwa2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-tx4y2gtw.mjs +2 -0
- package/dist/chunks/cli-1.1.13-tz8pn7w4.mjs +24 -0
- package/dist/chunks/cli-1.1.13-v06xvs9s.mjs +2 -0
- package/dist/chunks/cli-1.1.13-v2synpdg.mjs +2 -0
- package/dist/chunks/cli-1.1.13-v32emtk0.mjs +26 -0
- package/dist/chunks/cli-1.1.13-vm8xs878.mjs +3 -0
- package/dist/chunks/cli-1.1.13-vpgfmshm.mjs +4 -0
- package/dist/chunks/cli-1.1.13-vx6r9z72.mjs +45 -0
- package/dist/chunks/cli-1.1.13-vxpmt3js.mjs +66 -0
- package/dist/chunks/cli-1.1.13-wh5smpta.mjs +2 -0
- package/dist/chunks/cli-1.1.13-wje228e3.mjs +2 -0
- package/dist/chunks/cli-1.1.13-wmpc2gzg.mjs +2 -0
- package/dist/chunks/cli-1.1.13-wqteqtr2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ws1mny6h.mjs +58 -0
- package/dist/chunks/cli-1.1.13-x663d461.mjs +2 -0
- package/dist/chunks/cli-1.1.13-x79qava2.mjs +5413 -0
- package/dist/chunks/cli-1.1.13-x83epxhw.mjs +2 -0
- package/dist/chunks/cli-1.1.13-x92dpkgj.mjs +6 -0
- package/dist/chunks/cli-1.1.13-xbxnp58a.mjs +2 -0
- package/dist/chunks/cli-1.1.13-xjr3rwfq.mjs +6 -0
- package/dist/chunks/cli-1.1.13-xpwxcmvd.mjs +2 -0
- package/dist/chunks/cli-1.1.13-xqqf08vq.mjs +2 -0
- package/dist/chunks/cli-1.1.13-y5d299s9.mjs +2 -0
- package/dist/chunks/cli-1.1.13-y6pa258f.mjs +4 -0
- package/dist/chunks/cli-1.1.13-y6vdh2z1.mjs +2 -0
- package/dist/chunks/cli-1.1.13-ykzv8nyq.mjs +2 -0
- package/dist/chunks/cli-1.1.13-z39hx0gz.mjs +20 -0
- package/dist/chunks/cli-1.1.13-z3t7b0fc.mjs +2 -0
- package/dist/chunks/cli-1.1.13-z4p8zcbq.mjs +2 -0
- package/dist/chunks/cli-1.1.13-z9471mhs.mjs +4 -0
- package/dist/chunks/cli-1.1.13-zb95jpx7.mjs +4 -0
- package/dist/chunks/cli-1.1.13-zgnxf8h2.mjs +2 -0
- package/dist/chunks/cli-1.1.13-zmb192fn.mjs +18 -0
- package/dist/chunks/cli-1.1.13-zq5f89xg.mjs +5 -0
- package/dist/chunks/cli-1.1.13-zwkd4wt2.mjs +2 -0
- package/dist/chunks/client-1.1.13-6axfwqya.mjs +1 -0
- package/dist/chunks/color-1.1.13-g1rjvg86.mjs +1 -0
- package/dist/chunks/compact-1.1.13-9k4jts81.mjs +3 -0
- package/dist/chunks/config-1.1.13-58bj6t43.mjs +1 -0
- package/dist/chunks/config-1.1.13-csmwn3d0.mjs +1 -0
- package/dist/chunks/constants-1.1.13-cydjncsk.mjs +1 -0
- package/dist/chunks/context-1.1.13-04y3svxc.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.13-03weyc85.mjs +1 -0
- package/dist/chunks/conversation-1.1.13-3e1jc3w3.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.13-51e32r1x.mjs +1 -0
- package/dist/chunks/copy-1.1.13-4zq95frp.mjs +9 -0
- package/dist/chunks/cost-1.1.13-fwm0etgk.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.13-j73jx662.mjs +1 -0
- package/dist/chunks/createSession-1.1.13-2qt6zyq3.mjs +1 -0
- package/dist/chunks/debug-1.1.13-v33s5nkx.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.13-jyb9mebt.mjs +1526 -0
- package/dist/chunks/desktop-1.1.13-3pyvc57q.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.13-c8evf71r.mjs +1 -0
- package/dist/chunks/detection-1.1.13-k5td7n26.mjs +1 -0
- package/dist/chunks/diff-1.1.13-d31m696z.mjs +1 -0
- package/dist/chunks/doctor-1.1.13-59947n3f.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.13-tvrr2smf.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.13-yngv0q4n.mjs +1 -0
- package/dist/chunks/effort-1.1.13-mknzxvcm.mjs +13 -0
- package/dist/chunks/engine-1.1.13-p9g24e16.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.13-wvdxmeaw.mjs +1 -0
- package/dist/chunks/envUtils-1.1.13-v5y7eb11.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.13-5fx84mw2.mjs +1 -0
- package/dist/chunks/environments-1.1.13-dkqy0n2f.mjs +1 -0
- package/dist/chunks/errors-1.1.13-xf58n7yx.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.13-1mqkdys8.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.13-08pbvmpc.mjs +1 -0
- package/dist/chunks/exit-1.1.13-n91w8c6v.mjs +1 -0
- package/dist/chunks/explorer-1.1.13-zh3tbspv.mjs +1 -0
- package/dist/chunks/export-1.1.13-vgfr4wyy.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.13-ww6z773x.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.13-sfm57e8v.mjs +1 -0
- package/dist/chunks/fast-1.1.13-2an1j0he.mjs +1 -0
- package/dist/chunks/feedback-1.1.13-dz4kng15.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.13-zdhe9x8w.mjs +1 -0
- package/dist/chunks/git-1.1.13-n4743t7m.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.13-39mkwpe0.mjs +1 -0
- package/dist/chunks/goal-1.1.13-kt16xsn7.mjs +4 -0
- package/dist/chunks/growthbook-1.1.13-12sbk0rh.mjs +1 -0
- package/dist/chunks/headless-1.1.13-me11khs4.mjs +2 -0
- package/dist/chunks/heapdump-1.1.13-2m1pfhn8.mjs +6 -0
- package/dist/chunks/help-1.1.13-sdyj6mfj.mjs +1 -0
- package/dist/chunks/hookChains-1.1.13-kwx32g3b.mjs +3 -0
- package/dist/chunks/hooks-1.1.13-cgr9s1yz.mjs +1 -0
- package/dist/chunks/hooks-1.1.13-rbvjw5bs.mjs +79 -0
- package/dist/chunks/ide-1.1.13-699b7xgf.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.13-m17yzsrx.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.13-x1sbkysh.mjs +1 -0
- package/dist/chunks/index-1.1.13-1magnv9t.mjs +1 -0
- package/dist/chunks/index-1.1.13-20fw0vyg.mjs +1 -0
- package/dist/chunks/index-1.1.13-3dw8qr3q.mjs +1 -0
- package/dist/chunks/index-1.1.13-5fffrw39.mjs +23 -0
- package/dist/chunks/index-1.1.13-7v1v2795.mjs +1 -0
- package/dist/chunks/index-1.1.13-89b63y1a.mjs +1 -0
- package/dist/chunks/index-1.1.13-9hmkds89.mjs +1 -0
- package/dist/chunks/index-1.1.13-gy0jpfpr.mjs +1 -0
- package/dist/chunks/index-1.1.13-hvpk64ts.mjs +9 -0
- package/dist/chunks/index-1.1.13-pfnaxhas.mjs +9 -0
- package/dist/chunks/index-1.1.13-pq81pd76.mjs +2 -0
- package/dist/chunks/index-1.1.13-q7xgkez4.mjs +1 -0
- package/dist/chunks/index-1.1.13-qed5hqgm.mjs +1 -0
- package/dist/chunks/index-1.1.13-qncvk76v.mjs +1 -0
- package/dist/chunks/index-1.1.13-qzm5brgp.mjs +2 -0
- package/dist/chunks/index-1.1.13-sqz3new4.mjs +1 -0
- package/dist/chunks/index-1.1.13-swwn9vsr.mjs +1 -0
- package/dist/chunks/index-1.1.13-tseyy72z.mjs +1 -0
- package/dist/chunks/index-1.1.13-v219xtkm.mjs +1 -0
- package/dist/chunks/index-1.1.13-vbws03kk.mjs +30 -0
- package/dist/chunks/index-1.1.13-vpewasbk.mjs +1 -0
- package/dist/chunks/index-1.1.13-yncdgpnc.mjs +5 -0
- package/dist/chunks/index-1.1.13-zs9h2fe1.mjs +1 -0
- package/dist/chunks/init-1.1.13-6m1d58s6.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.13-awvfmbnw.mjs +1 -0
- package/dist/chunks/ink-1.1.13-vsh153b4.mjs +1 -0
- package/dist/chunks/insights-1.1.13-q1te7p8c.mjs +870 -0
- package/dist/chunks/install-1.1.13-4m9h1gcp.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.13-6psvvf35.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.13-rav6afh8.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.13-8hhppwk0.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.13-18fm94xz.mjs +1 -0
- package/dist/chunks/keybindings-1.1.13-3k2cx6e8.mjs +2 -0
- package/dist/chunks/knowledge-1.1.13-v9293wfr.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.13-1hy01yw3.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.13-gkw0j99z.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.13-mh4yata3.mjs +1 -0
- package/dist/chunks/log-1.1.13-j05vnw45.mjs +1 -0
- package/dist/chunks/main-1.1.13-9eb7dv86.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.13-9ded70wd.mjs +1 -0
- package/dist/chunks/mcp-1.1.13-kp94f55t.mjs +1 -0
- package/dist/chunks/mcp-1.1.13-vyp2stqn.mjs +4 -0
- package/dist/chunks/mcp-1.1.13-xwk9expt.mjs +17 -0
- package/dist/chunks/mcpb-1.1.13-e4x7a1cq.mjs +1 -0
- package/dist/chunks/memory-1.1.13-xq6wwcec.mjs +72 -0
- package/dist/chunks/model-1.1.13-e9231b6a.mjs +2 -0
- package/dist/chunks/model-1.1.13-qkp6et1j.mjs +1 -0
- package/dist/chunks/node-1.1.13-eg9nzfxw.mjs +12 -0
- package/dist/chunks/oauth-1.1.13-65c8za8p.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.13-9ym9m1mj.mjs +14 -0
- package/dist/chunks/output-style-1.1.13-3ew33fvw.mjs +1 -0
- package/dist/chunks/package-L37ZVTF4-1.1.13-53j92t2g.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.13-1jbm6fkk.mjs +1 -0
- package/dist/chunks/parser-1.1.13-5g8tytma.mjs +1 -0
- package/dist/chunks/passes-1.1.13-5xeg8jj4.mjs +1 -0
- package/dist/chunks/permissions-1.1.13-rtwebb2e.mjs +3 -0
- package/dist/chunks/permissions-1.1.13-tzfqtc98.mjs +1 -0
- package/dist/chunks/plan-1.1.13-fh6rsd03.mjs +1 -0
- package/dist/chunks/plist-1.1.13-4dh5ng03.mjs +1 -0
- package/dist/chunks/plugin-1.1.13-s7ah8dsz.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.13-yv5cavjc.mjs +1 -0
- package/dist/chunks/plugins-1.1.13-nbh7kt80.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.13-364dz1r6.mjs +2 -0
- package/dist/chunks/print-1.1.13-cba5ekrx.mjs +57 -0
- package/dist/chunks/process-1.1.13-cavp5bw3.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.13-fxe0rhkm.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.13-r4eqk2r6.mjs +9 -0
- package/dist/chunks/prompt-1.1.13-31mpaj7k.mjs +1 -0
- package/dist/chunks/prompt-1.1.13-ncxsva6c.mjs +1 -0
- package/dist/chunks/prompts-1.1.13-dhrj0hdm.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.13-gvd8r63q.mjs +13 -0
- package/dist/chunks/provider-1.1.13-aec8n85t.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.13-zy5qqb30.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.13-cxfdm6ma.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.13-v7dcfp2w.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.13-w8vyweq5.mjs +26 -0
- package/dist/chunks/registry-1.1.13-0gr1a931.mjs +1 -0
- package/dist/chunks/release-notes-1.1.13-e00b70ja.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.13-sqy72754.mjs +2 -0
- package/dist/chunks/remote-env-1.1.13-xx2p7c0r.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.13-8aq4kysc.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.13-pnkdpev8.mjs +1 -0
- package/dist/chunks/rename-1.1.13-7mj7635m.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.13-1jjw29zv.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.13-r9abzwa5.mjs +1 -0
- package/dist/chunks/resume-1.1.13-j22aqaqb.mjs +2 -0
- package/dist/chunks/rewind-1.1.13-f1jde571.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.13-m3dg8wsz.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.13-g7t752v0.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.13-8dyb4jrf.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.13-ns6smzfv.mjs +1 -0
- package/dist/chunks/session-1.1.13-je6e2q22.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.13-75db2930.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.13-8251mhbe.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.13-xg7nehyd.mjs +1 -0
- package/dist/chunks/settings-1.1.13-tbc6gf4g.mjs +1 -0
- package/dist/chunks/setup-1.1.13-pk56d4kg.mjs +5 -0
- package/dist/chunks/sinks-1.1.13-vgc4py0g.mjs +1 -0
- package/dist/chunks/skills-1.1.13-k0dra3w7.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.13-fvpsbvqy.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.13-v5fdv702.mjs +1 -0
- package/dist/chunks/state-1.1.13-m97vrspe.mjs +1 -0
- package/dist/chunks/stats-1.1.13-x2ranep4.mjs +6 -0
- package/dist/chunks/status-1.1.13-xv9dh6gx.mjs +1 -0
- package/dist/chunks/stickers-1.1.13-am6n03pg.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.13-w3gcpn8h.mjs +1 -0
- package/dist/chunks/tasks-1.1.13-y9rjkzvh.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.13-paydek0r.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.13-w7zznyew.mjs +1 -0
- package/dist/chunks/teleport-1.1.13-fm868anx.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.13-nfx648p3.mjs +1 -0
- package/dist/chunks/theme-1.1.13-2a11bn8e.mjs +1 -0
- package/dist/chunks/thinkback-1.1.13-8a8pxp4f.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.13-0v3gmmaa.mjs +1 -0
- package/dist/chunks/toolPool-1.1.13-6pma3gae.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.13-gmb9gs2k.mjs +1 -0
- package/dist/chunks/tools-1.1.13-pdnr83pg.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.13-82cy5yze.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.13-bqqaen2x.mjs +69 -0
- package/dist/chunks/types-1.1.13-2f1xtenh.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.13-89cvmahe.mjs +4 -0
- package/dist/chunks/update-1.1.13-0hd3pst5.mjs +72 -0
- package/dist/chunks/upgrade-1.1.13-3yjr0p81.mjs +1 -0
- package/dist/chunks/upload-1.1.13-kxah5qjz.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.13-1jkww0dp.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.13-xxqesd6p.mjs +1 -0
- package/dist/chunks/usage-1.1.13-mwqdp27m.mjs +1 -0
- package/dist/chunks/util-1.1.13-vzt92dj7.mjs +1 -0
- package/dist/chunks/utils-1.1.13-dw4qnd8d.mjs +1 -0
- package/dist/chunks/vim-1.1.13-1d635y0m.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.13-dd5a4gny.mjs +13 -0
- package/dist/chunks/watcher-1.1.13-s8bc1gyy.mjs +1 -0
- package/dist/chunks/wiki-1.1.13-0j3t4xgh.mjs +132 -0
- package/dist/chunks/workflows-1.1.13-4jfegd8x.mjs +1 -0
- package/dist/chunks/worktree-1.1.13-t2dn2nay.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.13-sc9g7vcd.mjs +1 -0
- package/dist/chunks/wrapper-1.1.13-4tbb5aym.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/dist/help-agents.txt +1 -1
- package/dist/help-auth.txt +1 -1
- package/dist/help-auto-mode.txt +1 -1
- package/dist/help-doctor.txt +1 -1
- package/dist/help-install.txt +1 -1
- package/dist/help-mcp.txt +1 -1
- package/dist/help-plugin.txt +1 -1
- package/dist/help-plugins.txt +1 -1
- package/dist/help-setup-token.txt +1 -1
- package/dist/help-update.txt +1 -1
- package/dist/help-upgrade.txt +1 -1
- package/dist/help-workflow.txt +1 -1
- package/dist/help.txt +3 -4
- package/install.cjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.12-z67tcj7m.mjs +0 -1
- package/dist/chunks/App-1.1.12-6m8fx08p.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.12-9rdxzxf0.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.12-6rckmhy4.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.12-xdatx4qm.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.12-p6nvmxpz.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.12-j1dkkgzh.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.12-9pjvfqhh.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.12-k3538pgr.mjs +0 -6
- package/dist/chunks/Doctor-1.1.12-8xnts7st.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.12-t2ees4c0.mjs +0 -6
- package/dist/chunks/Grove-1.1.12-z9nf34rs.mjs +0 -1
- package/dist/chunks/ITermBackend-1.1.12-dnkmjp57.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.12-hb5hwbwd.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.12-7q3pvsg2.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.12-w85qg0sk.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.12-3p5fgrdr.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.12-sqzzs4qj.mjs +0 -1
- package/dist/chunks/REPL-1.1.12-ejf4py4g.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.12-z1gm7qjh.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.12-ktkjmqt0.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.12-df4xpg25.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.12-2jttx03a.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.12-bsh7aza9.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.12-1hm6hjzf.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.12-heqpnxfc.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.12-nqtr7drj.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.12-36c5q5d7.mjs +0 -1
- package/dist/chunks/add-dir-1.1.12-4r3h4r9d.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.12-xjtxhm9n.mjs +0 -1
- package/dist/chunks/agents-1.1.12-5a1wg8yy.mjs +0 -110
- package/dist/chunks/agents-1.1.12-yq791fds.mjs +0 -3
- package/dist/chunks/api-1.1.12-w7wkenbt.mjs +0 -1
- package/dist/chunks/asciicast-1.1.12-k7kngvg3.mjs +0 -1
- package/dist/chunks/assistant-1.1.12-n50thbh3.mjs +0 -1
- package/dist/chunks/auth-1.1.12-0qp19bt1.mjs +0 -1
- package/dist/chunks/auth-1.1.12-9a3a2p9d.mjs +0 -1
- package/dist/chunks/autoMode-1.1.12-zn10hew4.mjs +0 -48
- package/dist/chunks/autoUpdater-1.1.12-s1tcgwnw.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.12-6hfegmgt.mjs +0 -1
- package/dist/chunks/branch-1.1.12-92zy497f.mjs +0 -4
- package/dist/chunks/bridge-1.1.12-fmkkv0ft.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.12-6ef9yk1w.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.12-h641n63k.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.12-4cgwnkv3.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.12-kfyejqjb.mjs +0 -1
- package/dist/chunks/btw-1.1.12-dnt55cvn.mjs +0 -1
- package/dist/chunks/buddy-1.1.12-2qy9cqkv.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.12-y10v5wg0.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.12-z78x71tj.mjs +0 -4
- package/dist/chunks/caches-1.1.12-rg9yrcpg.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.12-4cwvvrgp.mjs +0 -1
- package/dist/chunks/claudemd-1.1.12-k6g88gh4.mjs +0 -1
- package/dist/chunks/clear-1.1.12-dbbxf36q.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.12-5t5v4w1p.mjs +0 -1
- package/dist/chunks/cli-1.1.12-03j3j1bx.mjs +0 -5
- package/dist/chunks/cli-1.1.12-03wcx04d.mjs +0 -4
- package/dist/chunks/cli-1.1.12-06rfexx7.mjs +0 -2
- package/dist/chunks/cli-1.1.12-074txgfh.mjs +0 -12
- package/dist/chunks/cli-1.1.12-0te4nxph.mjs +0 -3
- package/dist/chunks/cli-1.1.12-141j9tb0.mjs +0 -8
- package/dist/chunks/cli-1.1.12-14f97qyv.mjs +0 -2
- package/dist/chunks/cli-1.1.12-14n2vprd.mjs +0 -2
- package/dist/chunks/cli-1.1.12-1kpyfq9h.mjs +0 -3
- package/dist/chunks/cli-1.1.12-1n54vqtf.mjs +0 -1
- package/dist/chunks/cli-1.1.12-1v1j4j93.mjs +0 -2
- package/dist/chunks/cli-1.1.12-1w6d2zap.mjs +0 -3
- package/dist/chunks/cli-1.1.12-23j4qrhe.mjs +0 -24
- package/dist/chunks/cli-1.1.12-24hecrkb.mjs +0 -2
- package/dist/chunks/cli-1.1.12-2jkk9gdn.mjs +0 -2
- package/dist/chunks/cli-1.1.12-2nzqqw4h.mjs +0 -2
- package/dist/chunks/cli-1.1.12-2rsbwq0w.mjs +0 -2
- package/dist/chunks/cli-1.1.12-2sfgep06.mjs +0 -2
- package/dist/chunks/cli-1.1.12-30xcatmk.mjs +0 -2
- package/dist/chunks/cli-1.1.12-3avc8vy5.mjs +0 -2
- package/dist/chunks/cli-1.1.12-3nh3r36s.mjs +0 -2
- package/dist/chunks/cli-1.1.12-3rcvzpnf.mjs +0 -2
- package/dist/chunks/cli-1.1.12-3ytes8mc.mjs +0 -2
- package/dist/chunks/cli-1.1.12-4270h6mb.mjs +0 -2
- package/dist/chunks/cli-1.1.12-42p6d7f9.mjs +0 -2
- package/dist/chunks/cli-1.1.12-46wkbg3h.mjs +0 -24
- package/dist/chunks/cli-1.1.12-46xs6yv5.mjs +0 -2
- package/dist/chunks/cli-1.1.12-4q37r7c7.mjs +0 -2
- package/dist/chunks/cli-1.1.12-4v2wmqm5.mjs +0 -2
- package/dist/chunks/cli-1.1.12-4xwk18f5.mjs +0 -2
- package/dist/chunks/cli-1.1.12-52z4wbfk.mjs +0 -2
- package/dist/chunks/cli-1.1.12-53smjkkn.mjs +0 -2
- package/dist/chunks/cli-1.1.12-5c6amx7a.mjs +0 -2
- package/dist/chunks/cli-1.1.12-5dbxwy0d.mjs +0 -5408
- package/dist/chunks/cli-1.1.12-5ebdya2v.mjs +0 -2
- package/dist/chunks/cli-1.1.12-5epjf6b6.mjs +0 -2
- package/dist/chunks/cli-1.1.12-5n60hab1.mjs +0 -2
- package/dist/chunks/cli-1.1.12-5phn452s.mjs +0 -2
- package/dist/chunks/cli-1.1.12-5qar5rtd.mjs +0 -2
- package/dist/chunks/cli-1.1.12-5wda517s.mjs +0 -24
- package/dist/chunks/cli-1.1.12-6492m2bk.mjs +0 -3
- package/dist/chunks/cli-1.1.12-6h4jsnrb.mjs +0 -2
- package/dist/chunks/cli-1.1.12-6hs980bz.mjs +0 -4
- package/dist/chunks/cli-1.1.12-6kn2n3qt.mjs +0 -2
- package/dist/chunks/cli-1.1.12-6nk81f9n.mjs +0 -2
- package/dist/chunks/cli-1.1.12-6p7q4hd1.mjs +0 -3
- package/dist/chunks/cli-1.1.12-6w4t0de0.mjs +0 -66
- package/dist/chunks/cli-1.1.12-7009ycac.mjs +0 -2
- package/dist/chunks/cli-1.1.12-71evpmpb.mjs +0 -2
- package/dist/chunks/cli-1.1.12-7c33mey4.mjs +0 -17
- package/dist/chunks/cli-1.1.12-7fgcfdc9.mjs +0 -2
- package/dist/chunks/cli-1.1.12-7p6yz3vy.mjs +0 -2
- package/dist/chunks/cli-1.1.12-7v3c8nf8.mjs +0 -2
- package/dist/chunks/cli-1.1.12-7w47edrg.mjs +0 -2
- package/dist/chunks/cli-1.1.12-81527bdh.mjs +0 -2
- package/dist/chunks/cli-1.1.12-8e1x1ne0.mjs +0 -2
- package/dist/chunks/cli-1.1.12-8f8r3ncx.mjs +0 -6
- package/dist/chunks/cli-1.1.12-8fpt1x4e.mjs +0 -2
- package/dist/chunks/cli-1.1.12-8kym0ef6.mjs +0 -3
- package/dist/chunks/cli-1.1.12-8nsx4xmd.mjs +0 -2
- package/dist/chunks/cli-1.1.12-8vqxb580.mjs +0 -2
- package/dist/chunks/cli-1.1.12-916jr8n9.mjs +0 -3
- package/dist/chunks/cli-1.1.12-95neb0qs.mjs +0 -2
- package/dist/chunks/cli-1.1.12-9ebacb10.mjs +0 -2
- package/dist/chunks/cli-1.1.12-9f1q50xe.mjs +0 -5
- package/dist/chunks/cli-1.1.12-9rhhwnqq.mjs +0 -18
- package/dist/chunks/cli-1.1.12-9zcjp5sz.mjs +0 -25
- package/dist/chunks/cli-1.1.12-a5k4ztc0.mjs +0 -2
- package/dist/chunks/cli-1.1.12-aee47rfb.mjs +0 -2
- package/dist/chunks/cli-1.1.12-afkfmm9p.mjs +0 -4
- package/dist/chunks/cli-1.1.12-b2khpv7n.mjs +0 -2
- package/dist/chunks/cli-1.1.12-bc08z4xe.mjs +0 -2
- package/dist/chunks/cli-1.1.12-bjra5k78.mjs +0 -12
- package/dist/chunks/cli-1.1.12-bwz4w7h6.mjs +0 -2
- package/dist/chunks/cli-1.1.12-c2gz12r6.mjs +0 -6
- package/dist/chunks/cli-1.1.12-c2pssp70.mjs +0 -2
- package/dist/chunks/cli-1.1.12-c40rcer1.mjs +0 -133
- package/dist/chunks/cli-1.1.12-c4rttvkn.mjs +0 -6
- package/dist/chunks/cli-1.1.12-c5qeebez.mjs +0 -2
- package/dist/chunks/cli-1.1.12-c5qghmz7.mjs +0 -45
- package/dist/chunks/cli-1.1.12-cehv7hpf.mjs +0 -2
- package/dist/chunks/cli-1.1.12-cv3yy30x.mjs +0 -2
- package/dist/chunks/cli-1.1.12-cxgcszn5.mjs +0 -2
- package/dist/chunks/cli-1.1.12-d1nm8nza.mjs +0 -4
- package/dist/chunks/cli-1.1.12-d51fm3w8.mjs +0 -2
- package/dist/chunks/cli-1.1.12-d7rpenw1.mjs +0 -2
- package/dist/chunks/cli-1.1.12-dbebv805.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ddtnjfs6.mjs +0 -2
- package/dist/chunks/cli-1.1.12-dgfste25.mjs +0 -3
- package/dist/chunks/cli-1.1.12-djycjsgd.mjs +0 -16
- package/dist/chunks/cli-1.1.12-dtv1b9yb.mjs +0 -2
- package/dist/chunks/cli-1.1.12-dyrae0ap.mjs +0 -17
- package/dist/chunks/cli-1.1.12-dz2c907x.mjs +0 -2
- package/dist/chunks/cli-1.1.12-e12y7jsd.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ekjf9eqs.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ep5dsvhp.mjs +0 -2
- package/dist/chunks/cli-1.1.12-eyp8nyhg.mjs +0 -9
- package/dist/chunks/cli-1.1.12-f9r3wz7j.mjs +0 -2
- package/dist/chunks/cli-1.1.12-fcmw5w0b.mjs +0 -2
- package/dist/chunks/cli-1.1.12-fhakaf4h.mjs +0 -2
- package/dist/chunks/cli-1.1.12-fkqwvtrq.mjs +0 -2
- package/dist/chunks/cli-1.1.12-fpn24m0s.mjs +0 -2
- package/dist/chunks/cli-1.1.12-fww07vcc.mjs +0 -20
- package/dist/chunks/cli-1.1.12-fx9tstdr.mjs +0 -4
- package/dist/chunks/cli-1.1.12-fy2fghxn.mjs +0 -6
- package/dist/chunks/cli-1.1.12-fzme9j9v.mjs +0 -2
- package/dist/chunks/cli-1.1.12-g42nmgyj.mjs +0 -2
- package/dist/chunks/cli-1.1.12-g74smv34.mjs +0 -2
- package/dist/chunks/cli-1.1.12-gcneaf27.mjs +0 -9
- package/dist/chunks/cli-1.1.12-gj4qv6k2.mjs +0 -2
- package/dist/chunks/cli-1.1.12-gj7b8n1z.mjs +0 -4
- package/dist/chunks/cli-1.1.12-gwf0e4mf.mjs +0 -2
- package/dist/chunks/cli-1.1.12-h7y15004.mjs +0 -21
- package/dist/chunks/cli-1.1.12-hg1d1fgx.mjs +0 -2
- package/dist/chunks/cli-1.1.12-hz5fe64e.mjs +0 -2
- package/dist/chunks/cli-1.1.12-j5w0mkzd.mjs +0 -2
- package/dist/chunks/cli-1.1.12-j66wgyhx.mjs +0 -2
- package/dist/chunks/cli-1.1.12-jcdbxf8s.mjs +0 -2
- package/dist/chunks/cli-1.1.12-jespejyn.mjs +0 -2
- package/dist/chunks/cli-1.1.12-jjjbjcg7.mjs +0 -2
- package/dist/chunks/cli-1.1.12-jv4zbbhn.mjs +0 -2
- package/dist/chunks/cli-1.1.12-k11knrs8.mjs +0 -2
- package/dist/chunks/cli-1.1.12-k27ty3ar.mjs +0 -2
- package/dist/chunks/cli-1.1.12-kdwqa420.mjs +0 -4
- package/dist/chunks/cli-1.1.12-kv8ajcy1.mjs +0 -6
- package/dist/chunks/cli-1.1.12-kzy42jsj.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ma7hkjc4.mjs +0 -2
- package/dist/chunks/cli-1.1.12-mbz4shze.mjs +0 -133
- package/dist/chunks/cli-1.1.12-mc1t8ngb.mjs +0 -2
- package/dist/chunks/cli-1.1.12-mr8fpbax.mjs +0 -2
- package/dist/chunks/cli-1.1.12-mrjjav4s.mjs +0 -59
- package/dist/chunks/cli-1.1.12-n1489021.mjs +0 -24
- package/dist/chunks/cli-1.1.12-n32xbyrn.mjs +0 -3
- package/dist/chunks/cli-1.1.12-n7zph2hg.mjs +0 -2
- package/dist/chunks/cli-1.1.12-nfb55a30.mjs +0 -3
- package/dist/chunks/cli-1.1.12-nfqrrpxy.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ngk7eqab.mjs +0 -2
- package/dist/chunks/cli-1.1.12-p4fz1xfs.mjs +0 -58
- package/dist/chunks/cli-1.1.12-ph37v1jt.mjs +0 -2
- package/dist/chunks/cli-1.1.12-pyh14x7q.mjs +0 -2
- package/dist/chunks/cli-1.1.12-q1ejgfk9.mjs +0 -2
- package/dist/chunks/cli-1.1.12-q6ks02c2.mjs +0 -2
- package/dist/chunks/cli-1.1.12-q8d5kbeh.mjs +0 -2
- package/dist/chunks/cli-1.1.12-qv15ch44.mjs +0 -2
- package/dist/chunks/cli-1.1.12-r39m68an.mjs +0 -12
- package/dist/chunks/cli-1.1.12-r8d25p10.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ra14et4a.mjs +0 -2
- package/dist/chunks/cli-1.1.12-rambm7kx.mjs +0 -2
- package/dist/chunks/cli-1.1.12-rhbwxyg7.mjs +0 -2
- package/dist/chunks/cli-1.1.12-rn91dahv.mjs +0 -2
- package/dist/chunks/cli-1.1.12-rpazm264.mjs +0 -2
- package/dist/chunks/cli-1.1.12-rpfw7xpx.mjs +0 -18
- package/dist/chunks/cli-1.1.12-rz34q5jj.mjs +0 -2
- package/dist/chunks/cli-1.1.12-rz9vy1pm.mjs +0 -4
- package/dist/chunks/cli-1.1.12-saf4srq3.mjs +0 -2
- package/dist/chunks/cli-1.1.12-sj6ttn0z.mjs +0 -2
- package/dist/chunks/cli-1.1.12-sjzxt59x.mjs +0 -26
- package/dist/chunks/cli-1.1.12-sk6tjvhy.mjs +0 -15
- package/dist/chunks/cli-1.1.12-sn2zpx90.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ss7r3f1r.mjs +0 -50
- package/dist/chunks/cli-1.1.12-swkg0qbh.mjs +0 -2
- package/dist/chunks/cli-1.1.12-t5bn5vd1.mjs +0 -2
- package/dist/chunks/cli-1.1.12-t72ybt8s.mjs +0 -2
- package/dist/chunks/cli-1.1.12-t7wqmksj.mjs +0 -2
- package/dist/chunks/cli-1.1.12-tnbdhy9q.mjs +0 -3
- package/dist/chunks/cli-1.1.12-tr130hgr.mjs +0 -2
- package/dist/chunks/cli-1.1.12-tyfp1v92.mjs +0 -2
- package/dist/chunks/cli-1.1.12-v395vz88.mjs +0 -202
- package/dist/chunks/cli-1.1.12-v6t5mf9a.mjs +0 -2
- package/dist/chunks/cli-1.1.12-v92yevq8.mjs +0 -2
- package/dist/chunks/cli-1.1.12-vf9e6229.mjs +0 -2
- package/dist/chunks/cli-1.1.12-vmt4b9p8.mjs +0 -2
- package/dist/chunks/cli-1.1.12-w03v7m0a.mjs +0 -3
- package/dist/chunks/cli-1.1.12-w367zd8v.mjs +0 -15
- package/dist/chunks/cli-1.1.12-w43nkerm.mjs +0 -2
- package/dist/chunks/cli-1.1.12-w85y45c2.mjs +0 -2
- package/dist/chunks/cli-1.1.12-w932xt3k.mjs +0 -2
- package/dist/chunks/cli-1.1.12-wffm9a57.mjs +0 -2
- package/dist/chunks/cli-1.1.12-wgwn4sap.mjs +0 -2
- package/dist/chunks/cli-1.1.12-wkfkz74f.mjs +0 -2
- package/dist/chunks/cli-1.1.12-x31de1c9.mjs +0 -2
- package/dist/chunks/cli-1.1.12-xa0wj1br.mjs +0 -4
- package/dist/chunks/cli-1.1.12-xgpj2nyq.mjs +0 -3
- package/dist/chunks/cli-1.1.12-xkbvk7gy.mjs +0 -2
- package/dist/chunks/cli-1.1.12-xnc015zw.mjs +0 -39
- package/dist/chunks/cli-1.1.12-xs6j60cr.mjs +0 -2
- package/dist/chunks/cli-1.1.12-xsn6jnhb.mjs +0 -2
- package/dist/chunks/cli-1.1.12-xstqyy5j.mjs +0 -2
- package/dist/chunks/cli-1.1.12-y138q38p.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ydnrj62w.mjs +0 -2
- package/dist/chunks/cli-1.1.12-yefhww7n.mjs +0 -25
- package/dist/chunks/cli-1.1.12-yk347gmt.mjs +0 -7
- package/dist/chunks/cli-1.1.12-ym0xwz0f.mjs +0 -2
- package/dist/chunks/cli-1.1.12-ynj3kc2v.mjs +0 -4
- package/dist/chunks/cli-1.1.12-yppz4ya2.mjs +0 -15
- package/dist/chunks/cli-1.1.12-ytbvkdpk.mjs +0 -2
- package/dist/chunks/cli-1.1.12-yy8193ev.mjs +0 -2
- package/dist/chunks/cli-1.1.12-z3m10b9z.mjs +0 -2
- package/dist/chunks/cli-1.1.12-z6ysegyx.mjs +0 -2
- package/dist/chunks/cli-1.1.12-zc3ybemp.mjs +0 -3
- package/dist/chunks/cli-1.1.12-zcapjmh1.mjs +0 -34
- package/dist/chunks/cli-1.1.12-zdc0tyd1.mjs +0 -4
- package/dist/chunks/cli-1.1.12-zdsde34g.mjs +0 -42
- package/dist/chunks/cli-1.1.12-zm8dmy4y.mjs +0 -2
- package/dist/chunks/cli-1.1.12-zntk4z6s.mjs +0 -2
- package/dist/chunks/cli-1.1.12-zpcxbqx6.mjs +0 -2
- package/dist/chunks/cli-1.1.12-zpzh9jxt.mjs +0 -2
- package/dist/chunks/cli-1.1.12-zrye84ef.mjs +0 -6
- package/dist/chunks/cli-1.1.12-zvv4a1gt.mjs +0 -2
- package/dist/chunks/cli-1.1.12-zx5fc844.mjs +0 -3
- package/dist/chunks/client-1.1.12-vcr1mkrr.mjs +0 -1
- package/dist/chunks/color-1.1.12-ct9ya3mq.mjs +0 -1
- package/dist/chunks/compact-1.1.12-6r7bss38.mjs +0 -3
- package/dist/chunks/config-1.1.12-qqtdd7an.mjs +0 -1
- package/dist/chunks/config-1.1.12-y8t2tjqd.mjs +0 -1
- package/dist/chunks/constants-1.1.12-cm63efby.mjs +0 -1
- package/dist/chunks/context-1.1.12-ygn6bxv9.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.12-hgswa08e.mjs +0 -1
- package/dist/chunks/conversation-1.1.12-tphkevth.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.12-829bfs3w.mjs +0 -1
- package/dist/chunks/copy-1.1.12-r9n6a65j.mjs +0 -9
- package/dist/chunks/cost-1.1.12-n2rdrg20.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.12-egtd3eaw.mjs +0 -1
- package/dist/chunks/createSession-1.1.12-7gxk01sr.mjs +0 -1
- package/dist/chunks/debug-1.1.12-b6cytcv1.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.12-rgcrme58.mjs +0 -1526
- package/dist/chunks/desktop-1.1.12-eckskas4.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.12-ratnwpjs.mjs +0 -1
- package/dist/chunks/detection-1.1.12-395de1na.mjs +0 -1
- package/dist/chunks/diff-1.1.12-7fqs95xh.mjs +0 -1
- package/dist/chunks/doctor-1.1.12-xfvdw00n.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.12-tx9s23b0.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.12-61wn1eaf.mjs +0 -1
- package/dist/chunks/effort-1.1.12-5q04d93m.mjs +0 -13
- package/dist/chunks/engine-1.1.12-8xkrm2vj.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.12-75x734zy.mjs +0 -1
- package/dist/chunks/envUtils-1.1.12-r6n7156t.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.12-x8tyrfwf.mjs +0 -1
- package/dist/chunks/environments-1.1.12-dcnn1d4j.mjs +0 -1
- package/dist/chunks/errors-1.1.12-nwhp3qgf.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.12-hwkpkwfe.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.12-y0sj5esm.mjs +0 -1
- package/dist/chunks/exit-1.1.12-gxfn9nw3.mjs +0 -1
- package/dist/chunks/explorer-1.1.12-jcxv04by.mjs +0 -1
- package/dist/chunks/export-1.1.12-zxnph32a.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.12-7w75gnnp.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.12-n12v83qy.mjs +0 -1
- package/dist/chunks/fast-1.1.12-371erhxm.mjs +0 -1
- package/dist/chunks/feedback-1.1.12-s34ps1x1.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.12-0ncbc73w.mjs +0 -1
- package/dist/chunks/git-1.1.12-wxtpf7pf.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.12-tttfpren.mjs +0 -1
- package/dist/chunks/goal-1.1.12-800r9esg.mjs +0 -4
- package/dist/chunks/grove-1.1.12-hv4r4hb8.mjs +0 -1
- package/dist/chunks/growthbook-1.1.12-wxg22631.mjs +0 -1
- package/dist/chunks/headless-1.1.12-w864zwd1.mjs +0 -2
- package/dist/chunks/heapdump-1.1.12-3jwp0863.mjs +0 -6
- package/dist/chunks/help-1.1.12-kzvzc554.mjs +0 -1
- package/dist/chunks/hookChains-1.1.12-fkv0v6gn.mjs +0 -3
- package/dist/chunks/hooks-1.1.12-p4z7dnw6.mjs +0 -79
- package/dist/chunks/hooks-1.1.12-xchahxt5.mjs +0 -1
- package/dist/chunks/ide-1.1.12-d8rscp4q.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.12-s674xy0j.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.12-x8zn544c.mjs +0 -1
- package/dist/chunks/index-1.1.12-02zxjhq3.mjs +0 -1
- package/dist/chunks/index-1.1.12-1vh2ahxx.mjs +0 -1
- package/dist/chunks/index-1.1.12-2pstq7tv.mjs +0 -9
- package/dist/chunks/index-1.1.12-3dbbn7w7.mjs +0 -1
- package/dist/chunks/index-1.1.12-5a7hynt4.mjs +0 -1
- package/dist/chunks/index-1.1.12-5mfghyec.mjs +0 -1
- package/dist/chunks/index-1.1.12-6vq9c1cr.mjs +0 -1
- package/dist/chunks/index-1.1.12-7p2zkyey.mjs +0 -1
- package/dist/chunks/index-1.1.12-7vsfkxfa.mjs +0 -2
- package/dist/chunks/index-1.1.12-9kvmaraj.mjs +0 -23
- package/dist/chunks/index-1.1.12-c8fpc37f.mjs +0 -1
- package/dist/chunks/index-1.1.12-d9r4f332.mjs +0 -1
- package/dist/chunks/index-1.1.12-earg3m7e.mjs +0 -1
- package/dist/chunks/index-1.1.12-es1dys6g.mjs +0 -1
- package/dist/chunks/index-1.1.12-nghq39nb.mjs +0 -1
- package/dist/chunks/index-1.1.12-pbgc1mh4.mjs +0 -1
- package/dist/chunks/index-1.1.12-py9kpda6.mjs +0 -30
- package/dist/chunks/index-1.1.12-q0mp0qzt.mjs +0 -1
- package/dist/chunks/index-1.1.12-rw9g1s3p.mjs +0 -5
- package/dist/chunks/index-1.1.12-s6pbqjnw.mjs +0 -1
- package/dist/chunks/index-1.1.12-sbwkw323.mjs +0 -1
- package/dist/chunks/index-1.1.12-x2xqtds2.mjs +0 -9
- package/dist/chunks/index-1.1.12-yqxq96cy.mjs +0 -2
- package/dist/chunks/init-1.1.12-t8gxxp63.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.12-bvd6m3pc.mjs +0 -1
- package/dist/chunks/ink-1.1.12-c5se9pvd.mjs +0 -1
- package/dist/chunks/insights-1.1.12-5keqwf7b.mjs +0 -870
- package/dist/chunks/install-1.1.12-623af2vt.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.12-e87ed92t.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.12-v4bew01g.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.12-0c5g9078.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.12-2qc63t4e.mjs +0 -1
- package/dist/chunks/keybindings-1.1.12-a0tmf36r.mjs +0 -2
- package/dist/chunks/knowledge-1.1.12-363c6h7r.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.12-fqjqfvtm.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.12-ybqbmem8.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.12-0szntw6f.mjs +0 -1
- package/dist/chunks/log-1.1.12-qb76ahe6.mjs +0 -1
- package/dist/chunks/main-1.1.12-e4jqmbqy.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.12-gn8k7e7q.mjs +0 -1
- package/dist/chunks/mcp-1.1.12-79yf4k4w.mjs +0 -4
- package/dist/chunks/mcp-1.1.12-f2qmv0zk.mjs +0 -1
- package/dist/chunks/mcp-1.1.12-zfjm905b.mjs +0 -17
- package/dist/chunks/mcpb-1.1.12-5ce16qgj.mjs +0 -1
- package/dist/chunks/memory-1.1.12-d08yzqtm.mjs +0 -72
- package/dist/chunks/model-1.1.12-cba9df5d.mjs +0 -1
- package/dist/chunks/model-1.1.12-qqs773ew.mjs +0 -2
- package/dist/chunks/node-1.1.12-rvzx843p.mjs +0 -12
- package/dist/chunks/oauth-1.1.12-fktc2gey.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.12-fhkx69xv.mjs +0 -14
- package/dist/chunks/output-style-1.1.12-t539nvk9.mjs +0 -1
- package/dist/chunks/package-L37ZVTF4-1.1.12-fhh7sea5.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.12-98w20c9k.mjs +0 -1
- package/dist/chunks/parser-1.1.12-zafdjj8h.mjs +0 -1
- package/dist/chunks/passes-1.1.12-cfx78b3r.mjs +0 -1
- package/dist/chunks/permissions-1.1.12-7v81g5xj.mjs +0 -3
- package/dist/chunks/permissions-1.1.12-8r0rwpj3.mjs +0 -1
- package/dist/chunks/plan-1.1.12-68zd5zhz.mjs +0 -1
- package/dist/chunks/plist-1.1.12-qbs00pf8.mjs +0 -1
- package/dist/chunks/plugin-1.1.12-thq4hntn.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.12-ewtmw9rh.mjs +0 -1
- package/dist/chunks/plugins-1.1.12-3cv1cq26.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.12-d2y5qxhy.mjs +0 -2
- package/dist/chunks/print-1.1.12-28d4f6k1.mjs +0 -57
- package/dist/chunks/privacy-settings-1.1.12-b9svr4k8.mjs +0 -1
- package/dist/chunks/process-1.1.12-chcr08qr.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.12-d1yg1qp9.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.12-yh9sm9jn.mjs +0 -9
- package/dist/chunks/prompt-1.1.12-eqqsbefq.mjs +0 -1
- package/dist/chunks/prompt-1.1.12-my1cpxq3.mjs +0 -1
- package/dist/chunks/prompts-1.1.12-xznb2ad4.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.12-40y37me1.mjs +0 -13
- package/dist/chunks/provider-1.1.12-8tmes6kx.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.12-k7xhy2fd.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.12-yshek88b.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.12-gxbek2zs.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.12-s1q5g1ny.mjs +0 -34
- package/dist/chunks/registry-1.1.12-wkqn4ts6.mjs +0 -1
- package/dist/chunks/release-notes-1.1.12-qfbyqd13.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.12-5my0jgr4.mjs +0 -2
- package/dist/chunks/remote-env-1.1.12-wz3p1bq9.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.12-anebgzqr.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.12-4622xyt5.mjs +0 -1
- package/dist/chunks/rename-1.1.12-tqghxn33.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.12-qc15dz9b.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.12-s2k2vt3c.mjs +0 -1
- package/dist/chunks/resume-1.1.12-ryzpjeqs.mjs +0 -2
- package/dist/chunks/rewind-1.1.12-1fe45fnp.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.12-bxwa8e9d.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.12-8arepd3m.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.12-y5vfwm88.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.12-bmqzjkd8.mjs +0 -1
- package/dist/chunks/session-1.1.12-55r46xq4.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.12-dyw8e5zx.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.12-xy8msffh.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.12-wt7grqer.mjs +0 -1
- package/dist/chunks/settings-1.1.12-qw143rxg.mjs +0 -1
- package/dist/chunks/setup-1.1.12-0vs8v1y9.mjs +0 -5
- package/dist/chunks/sinks-1.1.12-b8md831f.mjs +0 -1
- package/dist/chunks/skills-1.1.12-8axg6568.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.12-m1fc0a1m.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.12-4p3bf4ag.mjs +0 -1
- package/dist/chunks/state-1.1.12-ckqt4tjb.mjs +0 -1
- package/dist/chunks/stats-1.1.12-wf77dajm.mjs +0 -6
- package/dist/chunks/status-1.1.12-901ytber.mjs +0 -1
- package/dist/chunks/stickers-1.1.12-aebpa8cn.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.12-r8kpq95b.mjs +0 -1
- package/dist/chunks/tasks-1.1.12-gmrvpykv.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.12-xyywtqtf.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.12-njh39thh.mjs +0 -1
- package/dist/chunks/teleport-1.1.12-rh5bkep5.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.12-ct6aey8w.mjs +0 -1
- package/dist/chunks/theme-1.1.12-t5254zeg.mjs +0 -1
- package/dist/chunks/thinkback-1.1.12-z360yz4z.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.12-y1wq3m6b.mjs +0 -1
- package/dist/chunks/toolPool-1.1.12-p38eypkj.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.12-1tghfpxm.mjs +0 -1
- package/dist/chunks/tools-1.1.12-ajkb4njh.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.12-yjnkzy41.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.12-3hpr7sds.mjs +0 -69
- package/dist/chunks/types-1.1.12-p981e2xb.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.12-mvab53j9.mjs +0 -4
- package/dist/chunks/update-1.1.12-tnmfcwxb.mjs +0 -72
- package/dist/chunks/upgrade-1.1.12-d1wcx9qz.mjs +0 -1
- package/dist/chunks/upload-1.1.12-pdryb6wx.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.12-96ye5mxn.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.12-d3qb4n7w.mjs +0 -1
- package/dist/chunks/usage-1.1.12-rbb8qhyy.mjs +0 -1
- package/dist/chunks/util-1.1.12-dmfb6s9t.mjs +0 -1
- package/dist/chunks/utils-1.1.12-aqwbefma.mjs +0 -1
- package/dist/chunks/vim-1.1.12-750k4yz3.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.12-ex8pbh7f.mjs +0 -13
- package/dist/chunks/watcher-1.1.12-jnj825rr.mjs +0 -1
- package/dist/chunks/wiki-1.1.12-pqmnnn75.mjs +0 -132
- package/dist/chunks/workflows-1.1.12-81m0dz4r.mjs +0 -1
- package/dist/chunks/worktree-1.1.12-fnr58dd9.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.12-m3y6kfsn.mjs +0 -1
- package/dist/chunks/wrapper-1.1.12-gz9canae.mjs +0 -7
- /package/dist/chunks/{cli-1.1.12-r3fqsq5b.mjs → cli-1.1.13-8812dqjq.mjs} +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import{nb as yJ,ob as xz,pb as rz,qb as cz,rb as iz,sb as kJ}from"./cli-1.1.13-2f0gzs1e.mjs";import{ub as Tz}from"./cli-1.1.13-6jy1pnge.mjs";import{Cb as EJ,Db as TJ,Eb as xJ,Fb as MJ,Gb as wJ}from"./cli-1.1.13-6k71beqh.mjs";import{Ib as fJ}from"./cli-1.1.13-qd5r2qba.mjs";import{Ee as jJ,Fe as cJ}from"./cli-1.1.13-j98qjhp9.mjs";import{We as LJ,Ye as oz,_e as RK}from"./cli-1.1.13-2a8k8qw7.mjs";import{lf as mz,nf as UJ,rf as OJ}from"./cli-1.1.13-74rczf0f.mjs";import{AH as XJ,An as PK,BH as QJ,CH as WJ,Tl as DJ,Uj as CJ,Ul as vz,Vj as FK,Yl as NK,tH as JJ,uH as Cz,vH as KJ,wH as ZJ,yH as $J,zH as YJ,zn as AJ}from"./cli-1.1.13-x79qava2.mjs";import"./cli-1.1.13-1frz0zm3.mjs";import"./cli-1.1.13-j02dcs05.mjs";import"./cli-1.1.13-kjdr6edt.mjs";import"./cli-1.1.13-cg1m9a2x.mjs";import"./cli-1.1.13-e68npf24.mjs";import"./cli-1.1.13-mt0y53s0.mjs";import"./cli-1.1.13-3dmbtx8g.mjs";import"./cli-1.1.13-wh5smpta.mjs";import"./cli-1.1.13-gh95gh19.mjs";import{ZV as RJ,dW as _K}from"./cli-1.1.13-1qk5qhgt.mjs";import"./cli-1.1.13-qxrjvprg.mjs";import"./cli-1.1.13-ey931psa.mjs";import{tW as az,xW as CK}from"./cli-1.1.13-669vhsjj.mjs";import"./cli-1.1.13-fr4zp0cx.mjs";import"./cli-1.1.13-cqhxyzrd.mjs";import"./cli-1.1.13-segzta4x.mjs";import"./cli-1.1.13-6tf67wfm.mjs";import"./cli-1.1.13-rh27w2xj.mjs";import"./cli-1.1.13-aeq919w1.mjs";import"./cli-1.1.13-r2qnta4s.mjs";import"./cli-1.1.13-k6ef9cy7.mjs";import"./cli-1.1.13-aac9pss7.mjs";import"./cli-1.1.13-djvyb4s5.mjs";import"./cli-1.1.13-03rdpsbf.mjs";import"./cli-1.1.13-snkbv1w2.mjs";import{k2 as pz,n2 as BK}from"./cli-1.1.13-rnajmfsp.mjs";import"./cli-1.1.13-7wyfj1qp.mjs";import"./cli-1.1.13-qyjx1fky.mjs";import"./cli-1.1.13-x92dpkgj.mjs";import"./cli-1.1.13-dthjfxxw.mjs";import"./cli-1.1.13-a40ncbc3.mjs";import"./cli-1.1.13-1d70jtz7.mjs";import"./cli-1.1.13-b9sg0jsz.mjs";import"./cli-1.1.13-wmpc2gzg.mjs";import"./cli-1.1.13-jevpf9b3.mjs";import"./cli-1.1.13-2txesqy8.mjs";import"./cli-1.1.13-x663d461.mjs";import"./cli-1.1.13-baxww5k9.mjs";import{q7 as i,r7 as OK}from"./cli-1.1.13-gznvgt6g.mjs";import"./cli-1.1.13-cn9g3704.mjs";import{S8 as V,T8 as gJ}from"./cli-1.1.13-hg8x8693.mjs";import"./cli-1.1.13-7s34jqge.mjs";import"./cli-1.1.13-cd7jraqe.mjs";import"./cli-1.1.13-hzneg4va.mjs";import"./cli-1.1.13-0yte5zpd.mjs";import{$aa as PJ,Bba as fz,Cba as ez,Dba as zJ,Eba as pJ,aba as HK,p_ as Wz,pga as Ez,r_ as GK,xga as qK}from"./cli-1.1.13-2mrqqgcm.mjs";import{Cga as sz,Dga as uJ,Fga as Rz,Mga as qz,Uga as jK}from"./cli-1.1.13-kbf9vss4.mjs";import"./cli-1.1.13-smefk747.mjs";import"./cli-1.1.13-h1v6cap9.mjs";import{Hha as VK,zha as BJ}from"./cli-1.1.13-86kjp502.mjs";import"./cli-1.1.13-vxpmt3js.mjs";import"./cli-1.1.13-ykzv8nyq.mjs";import"./cli-1.1.13-wqteqtr2.mjs";import{rja as zz,sja as _J,uja as XK}from"./cli-1.1.13-zgnxf8h2.mjs";import{Zja as qJ,_ja as uz,cka as aJ,uka as q,xka as tz}from"./cli-1.1.13-ayx92dtj.mjs";import"./cli-1.1.13-91q67gqp.mjs";import{$ka as WK,Uka as g}from"./cli-1.1.13-6c4qxmj3.mjs";import{fla as NJ,nla as QK}from"./cli-1.1.13-2m39r998.mjs";import"./cli-1.1.13-0y4933cs.mjs";import"./cli-1.1.13-24284zna.mjs";import"./cli-1.1.13-4tt8dq0e.mjs";import"./cli-1.1.13-ev08z5ye.mjs";import"./cli-1.1.13-5kpppj1f.mjs";import"./cli-1.1.13-ck2qzqbj.mjs";import{Fsa as I}from"./cli-1.1.13-jdcqc6bd.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.13-2qt6zyq3.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.13-97d9ec9y.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.13-tzfqtc98.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.13-2qt6zyq3.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.13-tzfqtc98.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.13-58bj6t43.mjs");N();let{initSinks:k}=await import("./sinks-1.1.13-vgc4py0g.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.13-m97vrspe.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.13-a50e1ztc.mjs"),{getBridgeAccessToken:a,getBridgeBaseUrl:$z}=await import("./bridgeConfig-1.1.13-zzxf7mvh.mjs");if(!a())console.error(oz),process.exit(1);let{getGlobalConfig:o,saveGlobalConfig:jz,getCurrentProjectConfig:t,saveCurrentProjectConfig:p}=await import("./config-1.1.13-58bj6t43.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.13-n4743t7m.mjs"),{hasWorktreeCreateHook:Oz}=await import("./hooks-1.1.13-cgr9s1yz.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.13-97d9ec9y.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.13-a50e1ztc.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.13-c8evf71r.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.13-2qt6zyq3.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.13-97d9ec9y.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.13-m97vrspe.mjs");O(K),Z(K);let{enableConfigs:R,checkHasTrustDialogAccepted:B}=await import("./config-1.1.13-58bj6t43.mjs");R();let{initSinks:U}=await import("./sinks-1.1.13-vgc4py0g.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.13-zzxf7mvh.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.13-n4743t7m.mjs"),{hasWorktreeCreateHook:P}=await import("./hooks-1.1.13-cgr9s1yz.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.13-2qt6zyq3.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{eW as S,fW as c}from"./cli-1.1.13-qxrjvprg.mjs";import{Aia as _,Rha as G,Sha as A,Vha as M,wia as Y,yia as O,zia as N}from"./cli-1.1.13-vxpmt3js.mjs";import{Zja as K,_ja as W,cka as R,uka as C,xka as k}from"./cli-1.1.13-ayx92dtj.mjs";import"./cli-1.1.13-91q67gqp.mjs";import{$ka as j,Wka as y}from"./cli-1.1.13-6c4qxmj3.mjs";import"./cli-1.1.13-2m39r998.mjs";import"./cli-1.1.13-0y4933cs.mjs";import"./cli-1.1.13-24284zna.mjs";import"./cli-1.1.13-4tt8dq0e.mjs";import"./cli-1.1.13-jdcqc6bd.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Kh as a,Lh as AJ}from"./cli-1.1.13-b47k2p92.mjs";import{Mh as x,Nh as vJ}from"./cli-1.1.13-ehaqachs.mjs";import{HQ as TJ,Hn as g,In as UJ,KH as $,LH as bJ,MR as hJ,QT as s,RT as t,ST as DJ,dx as u,ex as IJ,pE as c,qy as m,sy as HJ,vE as WJ,wQ as r,yR as o}from"./cli-1.1.13-x79qava2.mjs";import"./cli-1.1.13-1frz0zm3.mjs";import"./cli-1.1.13-j02dcs05.mjs";import"./cli-1.1.13-kjdr6edt.mjs";import"./cli-1.1.13-cg1m9a2x.mjs";import"./cli-1.1.13-e68npf24.mjs";import"./cli-1.1.13-mt0y53s0.mjs";import"./cli-1.1.13-3dmbtx8g.mjs";import"./cli-1.1.13-wh5smpta.mjs";import"./cli-1.1.13-gh95gh19.mjs";import"./cli-1.1.13-1qk5qhgt.mjs";import"./cli-1.1.13-qxrjvprg.mjs";import"./cli-1.1.13-ey931psa.mjs";import"./cli-1.1.13-669vhsjj.mjs";import"./cli-1.1.13-fr4zp0cx.mjs";import"./cli-1.1.13-cqhxyzrd.mjs";import"./cli-1.1.13-segzta4x.mjs";import"./cli-1.1.13-6tf67wfm.mjs";import"./cli-1.1.13-rh27w2xj.mjs";import"./cli-1.1.13-aeq919w1.mjs";import{VX as i,WX as QJ,qY as l,sY as kJ}from"./cli-1.1.13-r2qnta4s.mjs";import"./cli-1.1.13-k6ef9cy7.mjs";import{$0 as S,I0 as W,K0 as b,b1 as KJ,jZ as GJ,n1 as NJ}from"./cli-1.1.13-aac9pss7.mjs";import"./cli-1.1.13-djvyb4s5.mjs";import"./cli-1.1.13-03rdpsbf.mjs";import"./cli-1.1.13-snkbv1w2.mjs";import"./cli-1.1.13-rnajmfsp.mjs";import"./cli-1.1.13-7wyfj1qp.mjs";import"./cli-1.1.13-qyjx1fky.mjs";import"./cli-1.1.13-x92dpkgj.mjs";import"./cli-1.1.13-dthjfxxw.mjs";import"./cli-1.1.13-a40ncbc3.mjs";import"./cli-1.1.13-1d70jtz7.mjs";import{L3 as F,M3 as H,N3 as _}from"./cli-1.1.13-b9sg0jsz.mjs";import{O3 as zJ}from"./cli-1.1.13-wmpc2gzg.mjs";import"./cli-1.1.13-jevpf9b3.mjs";import"./cli-1.1.13-2txesqy8.mjs";import"./cli-1.1.13-x663d461.mjs";import"./cli-1.1.13-baxww5k9.mjs";import"./cli-1.1.13-gznvgt6g.mjs";import"./cli-1.1.13-cn9g3704.mjs";import"./cli-1.1.13-hg8x8693.mjs";import"./cli-1.1.13-7s34jqge.mjs";import"./cli-1.1.13-cd7jraqe.mjs";import"./cli-1.1.13-hzneg4va.mjs";import"./cli-1.1.13-0yte5zpd.mjs";import{Eba as ZJ,Rea as FJ,lba as j,mba as p,tea as C}from"./cli-1.1.13-2mrqqgcm.mjs";import"./cli-1.1.13-kbf9vss4.mjs";import"./cli-1.1.13-smefk747.mjs";import"./cli-1.1.13-h1v6cap9.mjs";import"./cli-1.1.13-86kjp502.mjs";import"./cli-1.1.13-vxpmt3js.mjs";import"./cli-1.1.13-ykzv8nyq.mjs";import"./cli-1.1.13-wqteqtr2.mjs";import"./cli-1.1.13-zgnxf8h2.mjs";import"./cli-1.1.13-ayx92dtj.mjs";import"./cli-1.1.13-91q67gqp.mjs";import{$ka as YJ,Uka as f}from"./cli-1.1.13-6c4qxmj3.mjs";import"./cli-1.1.13-2m39r998.mjs";import"./cli-1.1.13-0y4933cs.mjs";import"./cli-1.1.13-24284zna.mjs";import"./cli-1.1.13-4tt8dq0e.mjs";import"./cli-1.1.13-ev08z5ye.mjs";import"./cli-1.1.13-5kpppj1f.mjs";import"./cli-1.1.13-ck2qzqbj.mjs";import{Asa as R,Esa as XJ}from"./cli-1.1.13-jdcqc6bd.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};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{kX as p,lX as f,mX as a,nX as S}from"./cli-1.1.13-6tf67wfm.mjs";import{Rea as C,tea as d}from"./cli-1.1.13-2mrqqgcm.mjs";import"./cli-1.1.13-kbf9vss4.mjs";import"./cli-1.1.13-smefk747.mjs";import"./cli-1.1.13-h1v6cap9.mjs";import"./cli-1.1.13-86kjp502.mjs";import"./cli-1.1.13-vxpmt3js.mjs";import{eja as m,fja as y,gja as b}from"./cli-1.1.13-ykzv8nyq.mjs";import"./cli-1.1.13-wqteqtr2.mjs";import"./cli-1.1.13-zgnxf8h2.mjs";import"./cli-1.1.13-ayx92dtj.mjs";import"./cli-1.1.13-91q67gqp.mjs";import"./cli-1.1.13-6c4qxmj3.mjs";import"./cli-1.1.13-2m39r998.mjs";import"./cli-1.1.13-0y4933cs.mjs";import"./cli-1.1.13-24284zna.mjs";import"./cli-1.1.13-4tt8dq0e.mjs";import{Esa as g}from"./cli-1.1.13-jdcqc6bd.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};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{C2 as zz,y2 as h}from"./cli-1.1.13-7wyfj1qp.mjs";import"./cli-1.1.13-baxww5k9.mjs";import{N6 as e,n6 as m}from"./cli-1.1.13-gznvgt6g.mjs";import"./cli-1.1.13-cn9g3704.mjs";import"./cli-1.1.13-hg8x8693.mjs";import"./cli-1.1.13-7s34jqge.mjs";import"./cli-1.1.13-hzneg4va.mjs";import{Rfa as y,Zfa as s,aga as v,dga as r}from"./cli-1.1.13-2mrqqgcm.mjs";import"./cli-1.1.13-kbf9vss4.mjs";import"./cli-1.1.13-smefk747.mjs";import"./cli-1.1.13-h1v6cap9.mjs";import"./cli-1.1.13-86kjp502.mjs";import"./cli-1.1.13-vxpmt3js.mjs";import"./cli-1.1.13-ykzv8nyq.mjs";import"./cli-1.1.13-wqteqtr2.mjs";import"./cli-1.1.13-zgnxf8h2.mjs";import{uka as k,xka as o}from"./cli-1.1.13-ayx92dtj.mjs";import"./cli-1.1.13-91q67gqp.mjs";import"./cli-1.1.13-6c4qxmj3.mjs";import"./cli-1.1.13-2m39r998.mjs";import{Sqa as a,Tma as b}from"./cli-1.1.13-0y4933cs.mjs";import"./cli-1.1.13-24284zna.mjs";import"./cli-1.1.13-4tt8dq0e.mjs";import"./cli-1.1.13-ev08z5ye.mjs";import"./cli-1.1.13-5kpppj1f.mjs";import"./cli-1.1.13-ck2qzqbj.mjs";import{Esa as n}from"./cli-1.1.13-jdcqc6bd.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};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{G2 as L,H2 as P,I2 as $,M2 as Q,N2 as U,O2 as V,P2 as j}from"./cli-1.1.13-qyjx1fky.mjs";import{Esa as Z}from"./cli-1.1.13-jdcqc6bd.mjs";function w(k,D){let G=new Date(k.timestamp).toISOString(),B=`${G.slice(0,10)} ${G.slice(11,19)}`,I=L(k.metrics);return` #${String(D+1).padStart(3)} ${B} ${k.label.padEnd(28).slice(0,28)} ${I}`}function K(k,D){return`${k.padEnd(18)}${P(D)}`}var v=20,O=async()=>{let k=V(),D=U(),G=Q();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(-v),I=k.length-B.length,q=["Cache stats",""];q.push(K("Current turn:",G)),q.push(K("Session total:",D)),q.push(""),q.push(`Recent requests (${B.length}${I>0?` of ${k.length}, ${I} older omitted`:""}):`),q.push(" # time model cache");for(let[J,Y]of B.entries())q.push(w(Y,k.length-B.length+J));if(B.some((J)=>!J.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 A=Z(()=>{j();$()});A();export{O as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Qh as a,Rh as b}from"./cli-1.1.13-e4k7980n.mjs";import"./cli-1.1.13-ws1mny6h.mjs";import"./cli-1.1.13-z9471mhs.mjs";import"./cli-1.1.13-x79qava2.mjs";import"./cli-1.1.13-1frz0zm3.mjs";import"./cli-1.1.13-j02dcs05.mjs";import"./cli-1.1.13-kjdr6edt.mjs";import"./cli-1.1.13-cg1m9a2x.mjs";import"./cli-1.1.13-e68npf24.mjs";import"./cli-1.1.13-mt0y53s0.mjs";import"./cli-1.1.13-3dmbtx8g.mjs";import"./cli-1.1.13-wh5smpta.mjs";import"./cli-1.1.13-gh95gh19.mjs";import"./cli-1.1.13-1qk5qhgt.mjs";import"./cli-1.1.13-qxrjvprg.mjs";import"./cli-1.1.13-ey931psa.mjs";import"./cli-1.1.13-669vhsjj.mjs";import"./cli-1.1.13-fr4zp0cx.mjs";import"./cli-1.1.13-cqhxyzrd.mjs";import"./cli-1.1.13-segzta4x.mjs";import"./cli-1.1.13-6tf67wfm.mjs";import"./cli-1.1.13-rh27w2xj.mjs";import"./cli-1.1.13-aeq919w1.mjs";import"./cli-1.1.13-r2qnta4s.mjs";import"./cli-1.1.13-k6ef9cy7.mjs";import"./cli-1.1.13-aac9pss7.mjs";import"./cli-1.1.13-djvyb4s5.mjs";import"./cli-1.1.13-03rdpsbf.mjs";import"./cli-1.1.13-snkbv1w2.mjs";import"./cli-1.1.13-rnajmfsp.mjs";import"./cli-1.1.13-7wyfj1qp.mjs";import"./cli-1.1.13-qyjx1fky.mjs";import"./cli-1.1.13-x92dpkgj.mjs";import"./cli-1.1.13-dthjfxxw.mjs";import"./cli-1.1.13-a40ncbc3.mjs";import"./cli-1.1.13-1d70jtz7.mjs";import"./cli-1.1.13-b9sg0jsz.mjs";import"./cli-1.1.13-wmpc2gzg.mjs";import"./cli-1.1.13-jevpf9b3.mjs";import"./cli-1.1.13-2txesqy8.mjs";import"./cli-1.1.13-x663d461.mjs";import"./cli-1.1.13-baxww5k9.mjs";import"./cli-1.1.13-gznvgt6g.mjs";import"./cli-1.1.13-cn9g3704.mjs";import"./cli-1.1.13-hg8x8693.mjs";import"./cli-1.1.13-7s34jqge.mjs";import"./cli-1.1.13-cd7jraqe.mjs";import"./cli-1.1.13-hzneg4va.mjs";import"./cli-1.1.13-0yte5zpd.mjs";import"./cli-1.1.13-2mrqqgcm.mjs";import"./cli-1.1.13-kbf9vss4.mjs";import"./cli-1.1.13-smefk747.mjs";import"./cli-1.1.13-h1v6cap9.mjs";import"./cli-1.1.13-86kjp502.mjs";import"./cli-1.1.13-vxpmt3js.mjs";import"./cli-1.1.13-ykzv8nyq.mjs";import"./cli-1.1.13-wqteqtr2.mjs";import"./cli-1.1.13-zgnxf8h2.mjs";import"./cli-1.1.13-ayx92dtj.mjs";import"./cli-1.1.13-91q67gqp.mjs";import"./cli-1.1.13-6c4qxmj3.mjs";import"./cli-1.1.13-2m39r998.mjs";import"./cli-1.1.13-0y4933cs.mjs";import"./cli-1.1.13-24284zna.mjs";import"./cli-1.1.13-4tt8dq0e.mjs";import"./cli-1.1.13-ev08z5ye.mjs";import"./cli-1.1.13-5kpppj1f.mjs";import"./cli-1.1.13-ck2qzqbj.mjs";import"./cli-1.1.13-jdcqc6bd.mjs";b();export{a as clearSessionCaches};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Daa as k,Iaa as N,Xba as x,_ba as A,pga as X,t$ as V,u$ as W,v$ as J,xga as H}from"./cli-1.1.13-2mrqqgcm.mjs";import"./cli-1.1.13-kbf9vss4.mjs";import"./cli-1.1.13-smefk747.mjs";import"./cli-1.1.13-h1v6cap9.mjs";import"./cli-1.1.13-86kjp502.mjs";import"./cli-1.1.13-vxpmt3js.mjs";import"./cli-1.1.13-ykzv8nyq.mjs";import"./cli-1.1.13-wqteqtr2.mjs";import"./cli-1.1.13-zgnxf8h2.mjs";import"./cli-1.1.13-ayx92dtj.mjs";import"./cli-1.1.13-91q67gqp.mjs";import{$ka as y,Vka as b}from"./cli-1.1.13-6c4qxmj3.mjs";import"./cli-1.1.13-2m39r998.mjs";import"./cli-1.1.13-0y4933cs.mjs";import"./cli-1.1.13-24284zna.mjs";import"./cli-1.1.13-4tt8dq0e.mjs";import"./cli-1.1.13-jdcqc6bd.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{AT as e,BT as f,CT as g,DT as h,ET as i,FT as j,GT as k,HT as l,IT as m,JT as n,KT as o,LT as p,MT as q,NT as r,wT as a,xT as b,yT as c,zT as d}from"./cli-1.1.13-x79qava2.mjs";import"./cli-1.1.13-1frz0zm3.mjs";import"./cli-1.1.13-j02dcs05.mjs";import"./cli-1.1.13-kjdr6edt.mjs";import"./cli-1.1.13-cg1m9a2x.mjs";import"./cli-1.1.13-e68npf24.mjs";import"./cli-1.1.13-mt0y53s0.mjs";import"./cli-1.1.13-3dmbtx8g.mjs";import"./cli-1.1.13-wh5smpta.mjs";import"./cli-1.1.13-gh95gh19.mjs";import"./cli-1.1.13-1qk5qhgt.mjs";import"./cli-1.1.13-qxrjvprg.mjs";import"./cli-1.1.13-ey931psa.mjs";import"./cli-1.1.13-669vhsjj.mjs";import"./cli-1.1.13-fr4zp0cx.mjs";import"./cli-1.1.13-cqhxyzrd.mjs";import"./cli-1.1.13-segzta4x.mjs";import"./cli-1.1.13-6tf67wfm.mjs";import"./cli-1.1.13-rh27w2xj.mjs";import"./cli-1.1.13-aeq919w1.mjs";import"./cli-1.1.13-r2qnta4s.mjs";import"./cli-1.1.13-k6ef9cy7.mjs";import"./cli-1.1.13-aac9pss7.mjs";import"./cli-1.1.13-djvyb4s5.mjs";import"./cli-1.1.13-03rdpsbf.mjs";import"./cli-1.1.13-snkbv1w2.mjs";import"./cli-1.1.13-rnajmfsp.mjs";import"./cli-1.1.13-7wyfj1qp.mjs";import"./cli-1.1.13-qyjx1fky.mjs";import"./cli-1.1.13-x92dpkgj.mjs";import"./cli-1.1.13-dthjfxxw.mjs";import"./cli-1.1.13-a40ncbc3.mjs";import"./cli-1.1.13-1d70jtz7.mjs";import"./cli-1.1.13-b9sg0jsz.mjs";import"./cli-1.1.13-wmpc2gzg.mjs";import"./cli-1.1.13-jevpf9b3.mjs";import"./cli-1.1.13-2txesqy8.mjs";import"./cli-1.1.13-x663d461.mjs";import"./cli-1.1.13-baxww5k9.mjs";import"./cli-1.1.13-gznvgt6g.mjs";import"./cli-1.1.13-cn9g3704.mjs";import"./cli-1.1.13-hg8x8693.mjs";import"./cli-1.1.13-7s34jqge.mjs";import"./cli-1.1.13-cd7jraqe.mjs";import"./cli-1.1.13-hzneg4va.mjs";import"./cli-1.1.13-0yte5zpd.mjs";import"./cli-1.1.13-2mrqqgcm.mjs";import"./cli-1.1.13-kbf9vss4.mjs";import"./cli-1.1.13-smefk747.mjs";import"./cli-1.1.13-h1v6cap9.mjs";import"./cli-1.1.13-86kjp502.mjs";import"./cli-1.1.13-vxpmt3js.mjs";import"./cli-1.1.13-ykzv8nyq.mjs";import"./cli-1.1.13-wqteqtr2.mjs";import"./cli-1.1.13-zgnxf8h2.mjs";import"./cli-1.1.13-ayx92dtj.mjs";import"./cli-1.1.13-91q67gqp.mjs";import"./cli-1.1.13-6c4qxmj3.mjs";import"./cli-1.1.13-2m39r998.mjs";import"./cli-1.1.13-0y4933cs.mjs";import"./cli-1.1.13-24284zna.mjs";import"./cli-1.1.13-4tt8dq0e.mjs";import"./cli-1.1.13-ev08z5ye.mjs";import"./cli-1.1.13-5kpppj1f.mjs";import"./cli-1.1.13-ck2qzqbj.mjs";import"./cli-1.1.13-jdcqc6bd.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Oh as b,Ph as h}from"./cli-1.1.13-y5d299s9.mjs";import"./cli-1.1.13-e4k7980n.mjs";import"./cli-1.1.13-zmb192fn.mjs";import"./cli-1.1.13-ws1mny6h.mjs";import"./cli-1.1.13-z9471mhs.mjs";import"./cli-1.1.13-x79qava2.mjs";import"./cli-1.1.13-1frz0zm3.mjs";import"./cli-1.1.13-j02dcs05.mjs";import"./cli-1.1.13-kjdr6edt.mjs";import"./cli-1.1.13-cg1m9a2x.mjs";import"./cli-1.1.13-e68npf24.mjs";import"./cli-1.1.13-mt0y53s0.mjs";import"./cli-1.1.13-3dmbtx8g.mjs";import"./cli-1.1.13-wh5smpta.mjs";import"./cli-1.1.13-gh95gh19.mjs";import"./cli-1.1.13-1qk5qhgt.mjs";import"./cli-1.1.13-qxrjvprg.mjs";import"./cli-1.1.13-ey931psa.mjs";import"./cli-1.1.13-669vhsjj.mjs";import"./cli-1.1.13-fr4zp0cx.mjs";import"./cli-1.1.13-cqhxyzrd.mjs";import"./cli-1.1.13-segzta4x.mjs";import"./cli-1.1.13-6tf67wfm.mjs";import"./cli-1.1.13-rh27w2xj.mjs";import"./cli-1.1.13-aeq919w1.mjs";import"./cli-1.1.13-r2qnta4s.mjs";import"./cli-1.1.13-k6ef9cy7.mjs";import"./cli-1.1.13-aac9pss7.mjs";import"./cli-1.1.13-djvyb4s5.mjs";import"./cli-1.1.13-03rdpsbf.mjs";import"./cli-1.1.13-snkbv1w2.mjs";import"./cli-1.1.13-rnajmfsp.mjs";import"./cli-1.1.13-7wyfj1qp.mjs";import"./cli-1.1.13-qyjx1fky.mjs";import"./cli-1.1.13-x92dpkgj.mjs";import"./cli-1.1.13-dthjfxxw.mjs";import"./cli-1.1.13-a40ncbc3.mjs";import"./cli-1.1.13-1d70jtz7.mjs";import"./cli-1.1.13-b9sg0jsz.mjs";import"./cli-1.1.13-wmpc2gzg.mjs";import"./cli-1.1.13-jevpf9b3.mjs";import"./cli-1.1.13-2txesqy8.mjs";import"./cli-1.1.13-x663d461.mjs";import"./cli-1.1.13-baxww5k9.mjs";import"./cli-1.1.13-gznvgt6g.mjs";import"./cli-1.1.13-cn9g3704.mjs";import"./cli-1.1.13-hg8x8693.mjs";import"./cli-1.1.13-7s34jqge.mjs";import"./cli-1.1.13-cd7jraqe.mjs";import"./cli-1.1.13-hzneg4va.mjs";import"./cli-1.1.13-0yte5zpd.mjs";import"./cli-1.1.13-2mrqqgcm.mjs";import"./cli-1.1.13-kbf9vss4.mjs";import"./cli-1.1.13-smefk747.mjs";import"./cli-1.1.13-h1v6cap9.mjs";import"./cli-1.1.13-86kjp502.mjs";import"./cli-1.1.13-vxpmt3js.mjs";import"./cli-1.1.13-ykzv8nyq.mjs";import"./cli-1.1.13-wqteqtr2.mjs";import"./cli-1.1.13-zgnxf8h2.mjs";import"./cli-1.1.13-ayx92dtj.mjs";import"./cli-1.1.13-91q67gqp.mjs";import"./cli-1.1.13-6c4qxmj3.mjs";import"./cli-1.1.13-2m39r998.mjs";import"./cli-1.1.13-0y4933cs.mjs";import"./cli-1.1.13-24284zna.mjs";import"./cli-1.1.13-4tt8dq0e.mjs";import"./cli-1.1.13-ev08z5ye.mjs";import"./cli-1.1.13-5kpppj1f.mjs";import"./cli-1.1.13-ck2qzqbj.mjs";import{Esa as g}from"./cli-1.1.13-jdcqc6bd.mjs";var u=async(p,f)=>{return await b(f),{type:"text",value:""}};var k=g(()=>{h()});k();export{u as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a2 as a,b2 as b,c2 as c}from"./cli-1.1.13-03rdpsbf.mjs";import"./cli-1.1.13-jdcqc6bd.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Esa as $}from"./cli-1.1.13-jdcqc6bd.mjs";function w(z){return z>=48&&z<=126}var d,Y="\x1B",h="\x07",j=";",H;var L=$(()=>{d={NUL:0,SOH:1,STX:2,ETX:3,EOT:4,ENQ:5,ACK:6,BEL:7,BS:8,HT:9,LF:10,VT:11,FF:12,CR:13,SO:14,SI:15,DLE:16,DC1:17,DC2:18,DC3:19,DC4:20,NAK:21,SYN:22,ETB:23,CAN:24,EM:25,SUB:26,ESC:27,FS:28,GS:29,RS:30,US:31,DEL:127},H={CSI:91,OSC:93,DCS:80,APC:95,PM:94,SOS:88,ST:92}});function A(z){return z>=Z.PARAM_START&&z<=Z.PARAM_END}function N(z){return z>=Z.INTERMEDIATE_START&&z<=Z.INTERMEDIATE_END}function m(z){return z>=Z.FINAL_START&&z<=Z.FINAL_END}function J(...z){if(z.length===0)return B;if(z.length===1)return`${B}${z[0]}`;let Q=z.slice(0,-1),V=z[z.length-1];return`${B}${Q.join(j)}${V}`}function q(z=1){return z===0?"":J(z,"A")}function D(z=1){return z===0?"":J(z,"B")}function M(z=1){return z===0?"":J(z,"C")}function W(z=1){return z===0?"":J(z,"D")}function R(z){return J(z,"G")}function C(z,Q){return J(z,Q,"H")}function b(z,Q){let V="";if(z<0)V+=W(-z);else if(z>0)V+=M(z);if(Q<0)V+=q(-Q);else if(Q>0)V+=D(Q);return V}function S(){return J("K")}function l(z){if(z<=0)return"";let Q="";for(let V=0;V<z;V++)if(Q+=F,V<z-1)Q+=q(1);return Q+=k,Q}function o(z=1){return z===0?"":J(z,"S")}function y(z=1){return z===0?"":J(z,"T")}function a(z,Q){return J(z,Q,"r")}var B,Z,g,I,_,u,k,v,F,K,E,c,t,n,i,r,e,s,zz,Jz;var X=$(()=>{L();B=Y+String.fromCharCode(H.CSI),Z={PARAM_START:48,PARAM_END:63,INTERMEDIATE_START:32,INTERMEDIATE_END:47,FINAL_START:64,FINAL_END:126};g={CUU:65,CUD:66,CUF:67,CUB:68,CNL:69,CPL:70,CHA:71,CUP:72,CHT:73,VPA:100,HVP:102,ED:74,EL:75,ECH:88,IL:76,DL:77,ICH:64,DCH:80,SU:83,SD:84,SM:104,RM:108,SGR:109,DSR:110,DECSCUSR:113,DECSTBM:114,SCOSC:115,SCORC:117,CBT:90},I=["toEnd","toStart","all","scrollback"],_=["toEnd","toStart","all"],u=[{style:"block",blinking:!0},{style:"block",blinking:!0},{style:"block",blinking:!1},{style:"underline",blinking:!0},{style:"underline",blinking:!1},{style:"bar",blinking:!0},{style:"bar",blinking:!1}];k=J("G");v=J("H");F=J(2,"K"),K=J(2,"J"),E=J(3,"J");c=J("r"),t=J("200~"),n=J("201~"),i=J("I"),r=J("O"),e=J(">1u"),s=J("<u"),zz=J(">4;2m"),Jz=J(">4m")});function U(){return process.platform==="win32"&&!!process.env.WT_SESSION}function p(){if(process.env.TERM_PROGRAM==="mintty")return!0;if(process.platform==="win32"&&process.env.MSYSTEM)return!0;return!1}function G(){if(U())return!0;if(process.platform==="win32"&&process.env.TERM_PROGRAM==="vscode"&&process.env.TERM_PROGRAM_VERSION)return!0;if(p())return!0;return!1}function T(){if(process.platform==="win32"&&!G())return K+P;return K+v}var P,Zz;var f=$(()=>{X();P=J(0,"f");Zz=T()});
|
|
2
|
+
export{d as t1,Y as u1,h as v1,j as w1,H as x1,w as y1,L as z1,A as A1,N as B1,m as C1,J as D1,g as E1,I as F1,_ as G1,u as H1,R as I1,C as J1,v as K1,b as L1,S as M1,K as N1,l as O1,o as P1,y as Q1,a as R1,c as S1,t as T1,n as U1,i as V1,r as W1,e as X1,s as Y1,zz as Z1,Jz as _1,X as $1,T as a2,Zz as b2,f as c2};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Gc as v,Hc as m,Ic as Vk}from"./cli-1.1.13-pjxb9g99.mjs";import{$E as g,AO as Ck,FA as s,GA as zk,Jn as p,Kn as jk,aF as a,ez as l,fz as wk,iF as Gk,oS as r,pS as kk,qO as o,sG as n,sO as t,tG as w,tS as Dk,uG as i,vO as Tk,xG as Lk,zO as e}from"./cli-1.1.13-x79qava2.mjs";import{F4 as L,L4 as Jk,d5 as f,f5 as Ok}from"./cli-1.1.13-gznvgt6g.mjs";import{C8 as u,D8 as Ik,N8 as d,Q8 as Mk}from"./cli-1.1.13-cn9g3704.mjs";import{R9 as S,W9 as _k}from"./cli-1.1.13-0yte5zpd.mjs";import{A$ as $k,Aea as b,Fda as Kk,Jea as c,Rea as $,aga as _,dga as Hk,p_ as K,r_ as Zk,rda as D,w$ as P,wea as U}from"./cli-1.1.13-2mrqqgcm.mjs";import{Zga as J,bha as Yk}from"./cli-1.1.13-kbf9vss4.mjs";import{pja as G,qja as Bk}from"./cli-1.1.13-wqteqtr2.mjs";import{uka as B,xja as O,xka as C,zja as Rk}from"./cli-1.1.13-ayx92dtj.mjs";import{$ka as Xk,Oka as h,Uka as Y}from"./cli-1.1.13-6c4qxmj3.mjs";import{fla as E,nla as Wk}from"./cli-1.1.13-2m39r998.mjs";import{Ioa as V,Sqa as j,qoa as F,soa as y}from"./cli-1.1.13-0y4933cs.mjs";import{pra as A,qra as Qk}from"./cli-1.1.13-24284zna.mjs";import{Fsa as W}from"./cli-1.1.13-jdcqc6bd.mjs";Yk();j();$();Qk();j();j();wk();Ok();Gk();Lk();Bk();Hk();Jk();var z=!1;function T(){if(z)return;if(z=!0,L()!=="firstParty")return;let k=_()?.transport;if(k==="bedrock"||k==="vertex"||k==="foundry")return;if(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.ANTHROPIC_UNIX_SOCKET||process.env.CLAUDIN_CLIENT_CERT||process.env.CLAUDIN_CLIENT_KEY)return;let q=_(),N=(q?.transport==="anthropic"?q.baseUrl:void 0)||G().BASE_API_URL;fetch(N,{method:"HEAD",signal:AbortSignal.timeout(1e4)}).catch(()=>{})}$();C();Kk();function x(){if(process.env.NODE_EXTRA_CA_CERTS)return;let k=Nk();if(k)process.env.NODE_EXTRA_CA_CERTS=k,B(`CA certs: Applied NODE_EXTRA_CA_CERTS from config to process.env: ${k}`)}function Nk(){try{let q=U()?.env,Q=D("userSettings")?.env;B(`CA certs: Config fallback - globalEnv keys: ${q?Object.keys(q).join(","):"none"}, settingsEnv keys: ${Q?Object.keys(Q).join(","):"none"}`);let R=Q?.NODE_EXTRA_CA_CERTS||q?.NODE_EXTRA_CA_CERTS;if(R)B(`CA certs: Found NODE_EXTRA_CA_CERTS in config/settings: ${R}`);return R}catch(k){B(`CA certs: Config fallback failed: ${k}`,{level:"error"});return}}Rk();$();C();_k();Zk();jk();Wk();Xk();Dk();Vk();Ik();Tk();Mk();Ck();zk();$k();var I=!1,Yq=A(async()=>{let k=Date.now();K("info","init_started"),J("init_function_start");try{let q=Date.now();b(),K("info","init_configs_enabled",{duration_ms:Date.now()-q}),J("init_configs_enabled");let N=Date.now();if(v(),x(),K("info","init_safe_env_vars_applied",{duration_ms:Date.now()-N}),J("init_safe_env_vars_applied"),r(),J("init_after_graceful_shutdown"),Promise.all([import("./firstPartyEventLogger-1.1.13-zdhe9x8w.mjs"),import("./growthbook-1.1.13-12sbk0rh.mjs")]).then(([H,X])=>{H.initialize1PEventLogging(),X.onGrowthBookRefresh(()=>{H.reinitialize1PEventLoggingIfConfigChanged()})}),J("init_after_1p_event_logging"),f(),J("init_after_oauth_populate"),p(),J("init_after_jetbrains_detection"),S(),w())n();if(a())g();J("init_after_remote_settings_check"),c();let Q=Date.now();B("[init] configureGlobalMTLS starting"),u(),K("info","init_mtls_configured",{duration_ms:Date.now()-Q}),B("[init] configureGlobalMTLS complete");let R=Date.now();if(B("[init] configureGlobalAgents starting"),d(),K("info","init_proxy_configured",{duration_ms:Date.now()-R}),B("[init] configureGlobalAgents complete"),J("init_network_configured"),T(),E(process.env.CLAUDE_CODE_REMOTE))try{let{initUpstreamProxy:H,getUpstreamProxyEnv:X}=await import("./upstreamproxy-1.1.13-1jkww0dp.mjs"),{registerUpstreamProxyEnvFn:Z}=await import("./subprocessEnv-1.1.13-w3gcpn8h.mjs");Z(X),await H()}catch(H){B(`[init] upstreamproxy init failed: ${H instanceof Error?H.message:String(H)}; continuing without proxy`,{level:"warn"})}if(P(),O(l),O(async()=>{let{cleanupSessionTeams:H}=await import("./teamHelpers-1.1.13-paydek0r.mjs");await H()}),o()){let H=Date.now();await t(),K("info","init_scratchpad_created",{duration_ms:Date.now()-H})}K("info","init_completed",{duration_ms:Date.now()-k}),J("init_function_end")}catch(q){if(q instanceof h){if(V()){process.stderr.write(`Configuration error in ${q.filePath}: ${q.message}
|
|
2
|
+
`),kk(1);return}return import("./InvalidConfigDialog-1.1.13-fn55xkky.mjs").then((N)=>N.showInvalidConfigDialog({error:q}))}else throw q}});function Zq(){if(w()){if(V()&&e())M().catch((k)=>{B(`[3P telemetry] Eager telemetry init failed (beta tracing): ${Y(k)}`,{level:"error"})});B("[3P telemetry] Waiting for remote managed settings before telemetry init"),i().then(async()=>{B("[3P telemetry] Remote managed settings loaded, initializing telemetry"),m(),await M()}).catch((k)=>{B(`[3P telemetry] Telemetry init failed (remote settings path): ${Y(k)}`,{level:"error"})})}else M().catch((k)=>{B(`[3P telemetry] Telemetry init failed: ${Y(k)}`,{level:"error"})})}async function M(){if(I)return;I=!0;try{await Uk()}catch(k){throw I=!1,k}}async function Uk(){let{initializeTelemetry:k}=await import("./instrumentation-1.1.13-8hhppwk0.mjs"),q=await k();if(q)F(q,(Q,R)=>{let H=q?.createCounter(Q,R);return{add(X,Z={}){let qk={...s(),...Z};H?.add(X,qk)}}}),y()?.add(1)}
|
|
3
|
+
export{Yq as _,Zq as $};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{Hb as d}from"./cli-1.1.13-qd5r2qba.mjs";import{gW as v,hW as U,jW as f,kW as h,lW as c,qW as i}from"./cli-1.1.13-ey931psa.mjs";import{Y3 as O,_3 as b}from"./cli-1.1.13-2txesqy8.mjs";import{q7 as B,r7 as A}from"./cli-1.1.13-gznvgt6g.mjs";import{J8 as y,Q8 as u}from"./cli-1.1.13-cn9g3704.mjs";import{p_ as Y,r_ as I}from"./cli-1.1.13-2mrqqgcm.mjs";import{Zja as H,_ja as m,cka as T,uka as G,xka as D}from"./cli-1.1.13-ayx92dtj.mjs";import{$ka as F,Uka as q,Vka as S}from"./cli-1.1.13-6c4qxmj3.mjs";import{Mra as p,csa as s}from"./cli-1.1.13-ev08z5ye.mjs";import{randomUUID as N}from"crypto";D();I();F();u();i();f();A();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((Q)=>{this.backpressureResolvers.push(Q)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(Q){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let W=Q instanceof j?Q.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,W));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let Q=0,W=0;while(W<this.pending.length&&W<J){let Z;try{Z=Buffer.byteLength(H(this.pending[W]))}catch{this.pending.splice(W,1);continue}if(W>0&&Q+Z>K)break;Q+=Z,W++}return this.pending.splice(0,W)}retryDelay(J,K){let Q=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+Q;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+Q}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((Q,W)=>{Q.sleepResolve=null,W()},J,this,K)})}}A();class M{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,Q=0;while(!this.closed){if(await this.config.send(K))return;if(Q++,await B(this.retryDelay(Q)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),Q=Math.random()*this.config.jitterMs;return K+Q}}function P(J,K){let Q={...J};for(let[W,Z]of Object.entries(K))if((W==="external_metadata"||W==="internal_metadata")&&Q[W]&&typeof Q[W]==="object"&&typeof Z==="object"&&Z!==null)Q[W]={...Q[W],...Z};else Q[W]=Z;return Q}var g=20000,l=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var n=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let Q=[],W=new Map;for(let Z of J){let $=Z.event;switch($.type){case"message_start":{let z=$.message.id,L=K.scopeToMessage.get(C(Z));if(L)K.byMessage.delete(L);K.scopeToMessage.set(C(Z),z),K.byMessage.set(z,[]),Q.push(Z);break}case"content_block_delta":{if($.delta.type!=="text_delta"){Q.push(Z);break}let z=K.scopeToMessage.get(C(Z)),L=z?K.byMessage.get(z):void 0;if(!L){Q.push(Z);break}let V=L[$.index]??=[];V.push($.delta.text);let X=W.get(V);if(X){X.event.delta.text=V.join("");break}let w={type:"stream_event",uuid:Z.uuid,session_id:Z.session_id,parent_tool_use_id:Z.parent_tool_use_id,event:{type:"content_block_delta",index:$.index,delta:{type:"text_delta",text:V.join("")}}};W.set(V,w),Q.push(w);break}default:Q.push(Z)}}return Q}function t(J,K){J.byMessage.delete(K.message.id);let Q=C(K);if(J.scopeToMessage.get(Q)===K.message.id)J.scopeToMessage.delete(Q)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=y({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,Q){if(this.onEpochMismatch=Q?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=Q?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=Q?.heartbeatJitterFraction??0,this.getAuthHeaders=Q?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let W=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${W}`,this.sessionId=W.split("/").pop()||"",this.workerState=new M({send:(Z)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Z},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Z)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Z},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Z)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Z},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Z)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Z.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Z)=>{this.reportDelivery(Z.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let Q=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),Y("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Z,durationMs:$}=await Q;if(!this.closed)Y("info","cli_worker_state_restored",{duration_ms:$,had_state:Z!==null});return Z}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,Q,W,{timeout:Z=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,Q,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Z});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=v(),V=L?d(L):null;if(V!==null&&V*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(V*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),Y("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=n)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),Y("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${W} returned ${z.status}`,{level:"warn"}),Y("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],V=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(V)&&V>=0)return{ok:!1,retryAfterMs:V*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${W} failed: ${q(z)}`,{level:"warn"}),Y("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),Y("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let Q=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+Q)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),l);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((Q)=>({payload:Q,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:Q=!1,agentId:W}={}){let Z={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...Q&&{is_compaction:!0},...W&&{agent_id:W}};await this.internalEventUploader.enqueue(Z)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,Q){let W=this.getAuthHeaders();if(Object.keys(W).length===0)return null;let Z=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[V,X]of Object.entries(K))z.searchParams.set(V,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),W,Q);if(!L)return null;Z.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Z.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Z}async getWithRetry(J,K,Q){for(let W=1;W<=10;W++){let Z;try{Z=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${W}/10): ${q($)}`,{level:"warn"}),W<10){let z=Math.min(500*2**(W-1),30000)+Math.random()*500;await B(z)}continue}if(Z.status>=200&&Z.status<300)return Z.data;if(Z.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Z.status} (attempt ${W}/10)`,{level:"warn"}),W<10){let $=Math.min(500*2**(W-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),Y("error","cli_worker_get_retries_exhausted",{context:Q}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}s();D();I();F();f();A();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],Q=0,W;while((W=J.indexOf(`
|
|
2
|
+
|
|
3
|
+
`,Q))!==-1){let Z=J.slice(Q,W);if(Q=W+2,!Z.trim())continue;let $={},z=!1;for(let L of Z.split(`
|
|
4
|
+
`)){if(L.startsWith(":")){z=!0;continue}let V=L.indexOf(":");if(V===-1)continue;let X=L.slice(0,V),w=L[V+1]===" "?L.slice(V+2):L.slice(V+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
|
|
5
|
+
`+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(Q)}}class YJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},Q,W,Z,$){this.url=J;if(this.headers=K,this.sessionId=Q,this.refreshHeaders=W,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Z!==void 0&&Z>0)this.lastSequenceNum=Z;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),Y("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Y("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let Q=this.getAuthHeaders(),W={...this.headers,...Q,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(Q.Cookie)delete W.Authorization;if(this.lastSequenceNum>0)W["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),Y("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Z=await fetch(K.href,{headers:W,signal:this.abortController.signal});if(!Z.ok){let z=WJ.has(Z.status);if(G(`SSETransport: HTTP ${Z.status}${z?" (permanent)":""}`,{level:"error"}),Y("error","cli_sse_connect_http_error",{status:Z.status}),z){this.state="closed",this.onCloseCallback?.(Z.status);return}this.handleConnectionError();return}if(!Z.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),Y("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Z.body)}catch(Z){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Z)}`,{level:"error"}),Y("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),Q=new TextDecoder,W="";try{while(!0){let{done:Z,value:$}=await K.read();if(Z)break;W+=Q.decode($,GJ);let{frames:z,remaining:L}=VJ(W);W=L;for(let V of z){if(this.resetLivenessTimer(),V.id){let X=parseInt(V.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),Y("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(V.event&&V.data)this.handleSSEFrame(V.event,V.data);else if(V.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),Y("warn","cli_sse_frame_missing_event_field")}}}catch(Z){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Z)}`,{level:"error"}),Y("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),Y("warn","cli_sse_unexpected_event_type",{event_type:J});return}let Q;try{Q=m(K)}catch(Z){G(`SSETransport: Failed to parse client_event data: ${q(Z)}`,{level:"error"});return}let W=Q.payload;if(W&&typeof W==="object"&&"type"in W){let Z=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${Q.sequence_num} event_id=${Q.event_id} event_type=${Q.event_type} payload_type=${String(W.type)}${Z}`),Y("info","cli_sse_message_received"),this.onData?.(H(W)+`
|
|
6
|
+
`)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${Q.event_id}`);this.onEventCallback?.(Q)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Z=this.refreshHeaders();Object.assign(this.headers,Z),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let Q=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),W=Math.max(0,Q+Q*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(W)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),Y("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},W)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),Y("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),Y("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),Y("warn","cli_sse_post_no_token");return}let Q={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let W=1;W<=x;W++){try{let $=await p.post(this.postUrl,J,{headers:Q,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),Y("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${W}/${x}`),Y("warn","cli_sse_post_retryable_error",{status:$.status,attempt:W})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${W}/${x}`),Y("warn","cli_sse_post_network_error",{attempt:W})}if(W===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),Y("warn","cli_sse_post_retries_exhausted");return}let Z=Math.min(ZJ*Math.pow(2,W-1),$J);await B(Z)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
|
|
7
|
+
export{R as yb,k as zb,a as Ab,YJ as Bb};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{GU as O,HU as S}from"./cli-1.1.13-cg1m9a2x.mjs";import{Cea as z,Dea as A,Rea as k,W_ as B,X_ as M,fba as R,hba as _,pga as G,s$ as I,v_ as D,w_ as x,xga as y}from"./cli-1.1.13-2mrqqgcm.mjs";import{Dia as q,Fia as v}from"./cli-1.1.13-ykzv8nyq.mjs";import{pra as K,qra as W}from"./cli-1.1.13-24284zna.mjs";W();v();k();_();x();I();y();S();var b=[/(?:^|\/)(?:package-lock\.json|yarn\.lock|bun\.lock|bun\.lockb|pnpm-lock\.yaml|Pipfile\.lock|poetry\.lock|Cargo\.lock|Gemfile\.lock|go\.sum|composer\.lock|uv\.lock)$/,/\.generated\./,/(?:^|\/)(?:dist|build|out|target|node_modules|\.next|__pycache__)\//,/\.(?:min\.js|min\.css|map|pyc|pyo)$/,/\.(?:json|ya?ml|toml|xml|ini|cfg|conf|env|lock|txt|md|mdx|rst|csv|log|svg)$/i,/(?:^|\/)\.?(?:eslintrc|prettierrc|babelrc|editorconfig|gitignore|gitattributes|dockerignore|npmrc)/,/(?:^|\/)(?:tsconfig|jsconfig|biome|vitest\.config|jest\.config|webpack\.config|vite\.config|rollup\.config)\.[a-z]+$/,/(?:^|\/)\.(?:github|vscode|idea|claude)\//,/(?:^|\/)(?:CHANGELOG|LICENSE|CONTRIBUTING|CODEOWNERS|README)(?:\.[a-z]+)?$/i];function F(L){return!b.some((Q)=>Q.test(L))}function P(L,Q){let J=[],X=new Set,U=new Map;for(let H=1;J.length<Q&&H<=Q;H++)for(let V of L){if(J.length>=Q)break;if(!F(V))continue;let Y=Math.max(V.lastIndexOf("/"),V.lastIndexOf("\\")),Z=Y>=0?V.slice(Y+1):V;if(!Z||X.has(Z))continue;let $=Y>=0?V.slice(0,Y):".";if((U.get($)??0)>=H)continue;J.push(Z),X.add(Z),U.set($,(U.get($)??0)+1)}return J.length>=Q?J:[]}async function N(){if(R.platform==="win32")return[];if(!await M())return[];try{let L=await O(),Q=["log","-n","1000","--pretty=format:","--name-only","--diff-filter=M"],J=new Map,X=(H)=>{for(let V of H.split(`
|
|
2
|
+
`)){let Y=V.trim();if(Y)J.set(Y,(J.get(Y)??0)+1)}};if(L){let{stdout:H}=await D("git",[...Q,`--author=${L}`],{cwd:q()});X(H)}if(J.size<10){let{stdout:H}=await D(B(),Q,{cwd:q()});X(H)}let U=Array.from(J.entries()).sort((H,V)=>V[1]-H[1]).map(([H])=>H);return P(U,5)}catch(L){return G(L),[]}}var T=604800000;function E(L){let Q=z(),J=Q.exampleFiles?.length?Q.exampleFiles:["<filepath>"],U=[...["fix lint errors","fix typecheck errors",`how does ${J[0]} work?`,`refactor ${J[Math.floor(J.length/2)]}`,"how do I log an error?",`edit ${J[J.length-1]} to...`,`write a test for ${J[0]}`,"create a util logging.py that..."]];for(let H=U.length-1;H>0;H--){let V=Math.floor(Math.random()*(H+1));[U[H],U[V]]=[U[V],U[H]]}return U.slice(0,L).map((H)=>`Try "${H}"`)}var d=K((L)=>{return E(L)}),p=K(async()=>{let L=z(),Q=Date.now(),J=L.exampleFilesGeneratedAt??0;if(Q-J>T)L.exampleFiles=[];if(!L.exampleFiles?.length)N().then((X)=>{if(X.length)A((U)=>({...U,exampleFiles:X,exampleFilesGeneratedAt:Date.now()}))})});
|
|
3
|
+
export{P as Ta,d as Ua,p as Va};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Gf as UG,Hf as RG,Jf as PJ}from"./cli-1.1.13-6727vw4f.mjs";import{GM as WJ,Hx as LG,Ix as XJ,Kx as cG,MN as mG,PM as jJ,Pn as h,QM as HJ,QN as pJ,Qn as jG,Rn as p,SM as fG,Sn as MG,TM as hG,Tn as r,UM as TG,Un as WG,VM as dG,WH as JG,XH as ZJ,Xn as BG,YM as NG,Yn as EJ,ZF as YJ,_F as CJ,dN as iG,hG as QG,jG as uG,nN as qJ,oN as CG,qN as VJ,vN as mJ}from"./cli-1.1.13-x79qava2.mjs";import{VX as LJ,WX as hJ,hY as zG,jY as TJ,mY as wG,nY as QJ}from"./cli-1.1.13-r2qnta4s.mjs";import{G0 as m,I0 as Y,K0 as Q,O0 as FG,c1 as JJ,dZ as GJ,iZ as AJ,jZ as bG,n1 as VG,sZ as DG}from"./cli-1.1.13-aac9pss7.mjs";import{K3 as n,L3 as L,M3 as X,N3 as a}from"./cli-1.1.13-b9sg0jsz.mjs";import{O3 as $G}from"./cli-1.1.13-wmpc2gzg.mjs";import{l4 as AG,m4 as dJ}from"./cli-1.1.13-baxww5k9.mjs";import{e8 as eG,w8 as gJ}from"./cli-1.1.13-gznvgt6g.mjs";import{Nca as kG,Oca as zJ,Wca as pG,d_ as S,e_ as rG,uga as sG,vca as yG,wca as IG,xca as KJ,xga as _J}from"./cli-1.1.13-2mrqqgcm.mjs";import{pja as gG,qja as SJ}from"./cli-1.1.13-wqteqtr2.mjs";import{rja as C,uja as bJ}from"./cli-1.1.13-zgnxf8h2.mjs";import{$ka as tG,Uka as HG}from"./cli-1.1.13-6c4qxmj3.mjs";import{Asa as e,Esa as GG}from"./cli-1.1.13-jdcqc6bd.mjs";function KG(J){let G=oG.c(9),{serverToolsCount:Z,serverPromptsCount:z,serverResourcesCount:q}=J,H;if(G[0]!==z||G[1]!==q||G[2]!==Z){if(H=[],Z>0)H.push("tools");if(q>0)H.push("resources");if(z>0)H.push("prompts");G[0]=z,G[1]=q,G[2]=Z,G[3]=H}else H=G[3];let k;if(G[4]===Symbol.for("react.memo_cache_sentinel"))k=L(Q,{bold:!0,children:"Capabilities: "}),G[4]=k;else k=G[4];let W;if(G[5]!==H)W=H.length>0?L(r,{children:H}):"none",G[5]=H,G[6]=W;else W=G[6];let D;if(G[7]!==W)D=X(Y,{children:[k,L(Q,{color:"text",children:W})]}),G[7]=W,G[8]=D;else D=G[8];return D}var oG;var SG=GG(()=>{VG();WG();a();oG=e(bG(),1)});function EG(J,G){switch(J.client.type){case"connected":return{message:`Reconnected to ${G}.`,success:!0};case"needs-auth":return{message:`${G} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${G}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${G}.`,success:!1}}}function PG(J,G){let Z=J instanceof Error?J.message:String(J);return`Error reconnecting to ${G}: ${Z}`}var _G=()=>{};function OL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:z,onComplete:q,borderless:H=!1}){let[k]=DG(),W=wG(),{columns:D}=LJ(),[I,U]=E.default.useState(!1),[$,R]=E.default.useState(null),_=LG((V)=>V.mcp),f=XJ(),[O,K]=E.default.useState(null),[P,w]=E.useState(!1),N=E.useRef(null),[g,j]=E.useState(!1),[c,T]=E.useState(null),[A,y]=E.useState(!1),[u,i]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),B=E.useRef(!1),[xG,XG]=E.useState(""),[DJ,wJ]=E.useState(0),[aG,nG]=E.useState(null);E.useEffect(()=>()=>{if(B.current=!0,N.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let YG=J.isAuthenticated||J.client.type==="connected"&&G>0,ZG=UG(),MJ=E.default.useCallback(async()=>{j(!1),T(null),w(!0);try{let V=await ZG(J.name),F=V.client.type==="connected";if(C("",{success:F}),F)q?.(`Authentication successful. Connected to ${J.name}.`);else if(V.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}catch(V){C("",{success:!1}),q?.(PG(V,J.name))}finally{w(!1)}},[ZG,J.name,q]),fJ=E.default.useCallback(async()=>{await mG(J.name,{...J.config,scope:J.scope}),f((V)=>{let F=V.mcp.clients.map((t)=>t.name===J.name?{...t,type:"needs-auth"}:t),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),qG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:F,tools:M,commands:d,resources:qG}}}),C("",{}),q?.(`Disconnected from ${J.name}.`),y(!1),i(null),v(!1)},[J.name,J.config,J.scope,f,q]);zG("confirm:no",()=>{N.current?.abort(),N.current=null,U(!1),K(null)},{context:"Confirmation",isActive:I}),zG("confirm:no",()=>{j(!1),T(null)},{context:"Confirmation",isActive:g}),zG("confirm:no",()=>{y(!1),i(null),v(!1)},{context:"Confirmation",isActive:A}),JJ((V,F)=>{if(F.return&&g)MJ();if(F.return&&A)if(l)fJ();else{let M=`${gG().CLAUDE_AI_ORIGIN}/settings/connectors`;i(M),v(!0),AG(M)}if(V==="c"&&!o){let M=O||c||u;if(M)GJ(M).then((d)=>{if(B.current)return;if(d)process.stdout.write(d);if(s(!0),x.current!==void 0)clearTimeout(x.current);x.current=setTimeout(s,2000,!1)})}});let NJ=kG(String(J.name)),UJ=fG(_.commands,J.name).length,lG=RG(),RJ=E.default.useCallback(async()=>{let V=gG().CLAUDE_AI_ORIGIN,M=eG()?.organizationUuid,d;if(M&&J.config.type==="claudeai-proxy"&&J.config.id){let qG=J.config.id.startsWith("mcprs")?"mcpsrv"+J.config.id.slice(5):J.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${V}/api/organizations/${M}/mcp/start-auth/${qG}?product_surface=${t}`}else d=`${V}/settings/connectors`;T(d),j(!0),C("",{}),await AG(d)},[J.config]),OJ=E.default.useCallback(()=>{y(!0),C("",{})},[]),yJ=E.default.useCallback(async()=>{let V=J.client.type!=="disabled";try{if(await lG(J.name),J.config.type==="claudeai-proxy")C("",{new_state:V?"disabled":"enabled"});z()}catch(F){q?.(`Failed to ${V?"disable":"enable"} MCP server '${J.name}': ${HG(F)}`)}},[J.client.type,J.config.type,J.name,lG,z,q]),IJ=E.default.useCallback(async()=>{if(J.config.type==="claudeai-proxy")return;U(!0),R(null);let V=new AbortController;N.current=V;try{if(J.isAuthenticated&&J.config)await CG(J.name,J.config,{preserveStepUpState:!0});if(J.config){await VJ(J.name,J.config,K,V.signal,{onWaitingForCallback:(M)=>{nG(()=>M)}}),C("",{wasAuthenticated:J.isAuthenticated});let F=await ZG(J.name);if(F.client.type==="connected"){let M=YG?`Authentication successful. Reconnected to ${J.name}.`:`Authentication successful. Connected to ${J.name}.`;q?.(M)}else if(F.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else sG(J.name,"Reconnection failed after authentication"),q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}}catch(F){if(F instanceof Error&&!(F instanceof qJ))R(F.message)}finally{U(!1),N.current=null,nG(null),XG("")}},[J.isAuthenticated,J.config,J.name,q,ZG,YG]),BJ=async()=>{if(J.config.type==="claudeai-proxy")return;if(J.config)await CG(J.name,J.config),C("",{}),await mG(J.name,{...J.config,scope:J.scope}),f((V)=>{let F=V.mcp.clients.map((t)=>t.name===J.name?{...t,type:"failed"}:t),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),qG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:F,tools:M,commands:d,resources:qG}}}),q?.(`Authentication cleared for ${J.name}.`)};if(I)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" A browser window will open for authentication"})]}),O&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:O})]}),I&&O&&aG&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),X(Y,{children:[X(Q,{dimColor:!0,children:["URL ",">"," "]}),L(YJ,{value:xG,onChange:XG,onSubmit:(F)=>{aG(F.trim()),XG("")},cursorOffset:DJ,onChangeCursorOffset:wJ,columns:D-8})]})]}),L(Y,{marginLeft:3,children:L(Q,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]});if(g)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" A browser window will open for authentication"})]}),c&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:c})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Clear authentication for ",J.name]}),l?X(n,{children:[L(Q,{children:'Find the MCP server in the browser and click "Disconnect".'}),u&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(FG,{url:u})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," when done."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):X(n,{children:[L(Q,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," to open the browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(P)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Connecting to ",L(Q,{bold:!0,children:J.name}),"…"]}),X(Y,{children:[L(JG,{}),L(Q,{children:" Establishing connection to MCP server"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});let b=[];if(J.client.type==="disabled")b.push({label:"Enable",value:"toggle-enabled"});if(J.client.type==="connected"&&G>0)b.push({label:"View tools",value:"tools"});if(J.config.type==="claudeai-proxy"){if(J.client.type==="connected")b.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(J.client.type!=="disabled")b.push({label:"Authenticate",value:"claudeai-auth"})}else{if(YG)b.push({label:"Re-authenticate",value:"reauth"}),b.push({label:"Clear authentication",value:"clear-auth"});if(!YG)b.push({label:"Authenticate",value:"auth"})}if(J.client.type!=="disabled"){if(J.client.type!=="needs-auth")b.push({label:"Reconnect",value:"reconnectMcpServer"});b.push({label:"Disable",value:"toggle-enabled"})}if(b.length===0)b.push({label:"Back",value:"back"});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:H?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[NJ," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[m("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[m("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(n,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):J.client.type==="needs-auth"?X(Q,{children:[m("warning",k)(S.triangleUpOutline)," needs authentication"]}):X(Q,{children:[m("error",k)(S.cross)," failed"]})]}),J.transport!=="claudeai-proxy"&&X(Y,{children:[L(Q,{bold:!0,children:"Auth: "}),YG?X(Q,{children:[m("success",k)(S.tick)," authenticated"]}):X(Q,{children:[m("error",k)(S.cross)," not authenticated"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"URL: "}),L(Q,{dimColor:!0,children:J.config.url})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:NG(J.scope)})]}),J.client.type==="connected"&&L(KG,{serverToolsCount:G,serverPromptsCount:UJ,serverResourcesCount:_.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),$&&L(Y,{marginTop:1,children:X(Q,{color:"error",children:["Error: ",$]})}),b.length>0&&L(Y,{marginTop:1,children:L(QG,{options:b,onChange:async(V)=>{switch(V){case"tools":Z();break;case"auth":case"reauth":await IJ();break;case"clear-auth":await BJ();break;case"claudeai-auth":await RJ();break;case"claudeai-clear-auth":OJ();break;case"reconnectMcpServer":w(!0);try{let F=await ZG(J.name);if(J.config.type==="claudeai-proxy")C("",{success:F.client.type==="connected"});let{message:M}=EG(F,J.name);q?.(M)}catch(F){if(J.config.type==="claudeai-proxy")C("",{success:!1});q?.(PG(F,J.name))}finally{w(!1)}break;case"toggle-enabled":await yJ();break;case"back":z();break}},onCancel:z})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(n,{children:["Press ",W.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $J=GG(()=>{rG();bJ();SJ();QJ();hJ();AJ();VG();TJ();mJ();pJ();PJ();iG();cG();gJ();dJ();tG();_J();pG();MG();uG();WG();jG();ZJ();CJ();SG();_G();a();E=e($G(),1)});function iL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:z,onComplete:q,borderless:H=!1}){let[k]=DG(),W=wG(),D=LG((P)=>P.mcp),I=UG(),U=RG(),[$,R]=OG.useState(!1),_=OG.default.useCallback(async()=>{let P=J.client.type!=="disabled";try{await U(J.name),z()}catch(w){q(`Failed to ${P?"disable":"enable"} MCP server '${J.name}': ${HG(w)}`)}},[J.client.type,J.name,U,z,q]),f=kG(String(J.name)),O=fG(D.commands,J.name).length,K=[];if(J.client.type!=="disabled"&&G>0)K.push({label:"View tools",value:"tools"});if(J.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:J.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Reconnecting to ",L(Q,{bold:!0,children:J.name})]}),X(Y,{children:[L(JG,{}),L(Q,{children:" Restarting MCP server process"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:H?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[f," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[m("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[m("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(n,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):X(Q,{children:[m("error",k)(S.cross)," failed"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"Command: "}),L(Q,{dimColor:!0,children:J.config.command})]}),J.config.args&&J.config.args.length>0&&X(Y,{children:[L(Q,{bold:!0,children:"Args: "}),L(Q,{dimColor:!0,children:J.config.args.join(" ")})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:NG(WJ(J.name)?.scope??"dynamic")})]}),J.client.type==="connected"&&L(KG,{serverToolsCount:G,serverPromptsCount:O,serverResourcesCount:D.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),K.length>0&&L(Y,{marginTop:1,children:L(QG,{options:K,onChange:async(P)=>{if(P==="tools")Z();else if(P==="reconnectMcpServer"){R(!0);try{let w=await I(J.name),{message:N}=EG(w,J.name);q?.(N)}catch(w){q?.(PG(w,J.name))}finally{R(!1)}}else if(P==="toggle-enabled")await _();else if(P==="back")z()},onCancel:z})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(n,{children:["Press ",W.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var OG;var cJ=GG(()=>{rG();QJ();VG();jJ();PJ();iG();cG();tG();pG();MG();uG();WG();jG();ZJ();SG();_G();a();OG=e($G(),1)});function tL(J){let G=FJ.c(44),{tool:Z,server:z,onBack:q}=J,[H,k]=vG.default.useState(""),W,D;if(G[0]!==z.name||G[1]!==Z){D=yG(Z.name,z.name);let s=Z.userFacingName?Z.userFacingName({}):D;W=IG(s),G[0]=z.name,G[1]=Z,G[2]=W,G[3]=D}else W=G[2],D=G[3];let I=W,U;if(G[4]!==Z)U=Z.isReadOnly?.({})??!1,G[4]=Z,G[5]=U;else U=G[5];let $=U,R;if(G[6]!==Z)R=Z.isDestructive?.({})??!1,G[6]=Z,G[7]=R;else R=G[7];let _=R,f;if(G[8]!==Z)f=Z.isOpenWorld?.({})??!1,G[8]=Z,G[9]=f;else f=G[9];let O=f,K,P;if(G[10]!==Z)K=()=>{(async function(){try{let B=await Z.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});k(B)}catch{k("Failed to load description")}})()},P=[Z],G[10]=Z,G[11]=K,G[12]=P;else K=G[11],P=G[12];vG.default.useEffect(K,P);let w;if(G[13]!==$)w=$&&L(Q,{color:"success",children:" [read-only]"}),G[13]=$,G[14]=w;else w=G[14];let N;if(G[15]!==_)N=_&&L(Q,{color:"error",children:" [destructive]"}),G[15]=_,G[16]=N;else N=G[16];let g;if(G[17]!==O)g=O&&L(Q,{dimColor:!0,children:" [open-world]"}),G[17]=O,G[18]=g;else g=G[18];let j;if(G[19]!==I||G[20]!==w||G[21]!==N||G[22]!==g)j=X(n,{children:[I,w,N,g]}),G[19]=I,G[20]=w,G[21]=N,G[22]=g,G[23]=j;else j=G[23];let c=j,T;if(G[24]===Symbol.for("react.memo_cache_sentinel"))T=L(Q,{bold:!0,children:"Tool name: "}),G[24]=T;else T=G[24];let A;if(G[25]!==D)A=X(Y,{children:[T,L(Q,{dimColor:!0,children:D})]}),G[25]=D,G[26]=A;else A=G[26];let y;if(G[27]===Symbol.for("react.memo_cache_sentinel"))y=L(Q,{bold:!0,children:"Full name: "}),G[27]=y;else y=G[27];let u;if(G[28]!==Z.name)u=X(Y,{children:[y,L(Q,{dimColor:!0,children:Z.name})]}),G[28]=Z.name,G[29]=u;else u=G[29];let i;if(G[30]!==H)i=H&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Description:"}),L(Q,{wrap:"wrap",children:H})]}),G[30]=H,G[31]=i;else i=G[31];let l;if(G[32]!==Z.inputJSONSchema)l=Z.inputJSONSchema&&Z.inputJSONSchema.properties&&Object.keys(Z.inputJSONSchema.properties).length>0&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Parameters:"}),L(Y,{marginLeft:2,flexDirection:"column",children:Object.entries(Z.inputJSONSchema.properties).map((s)=>{let[x,B]=s,XG=Z.inputJSONSchema?.required?.includes(x);return X(Q,{children:["• ",x,XG&&L(Q,{dimColor:!0,children:" (required)"}),":"," ",L(Q,{dimColor:!0,children:typeof B==="object"&&B&&"type"in B?String(B.type):"unknown"}),typeof B==="object"&&B&&"description"in B&&X(Q,{dimColor:!0,children:[" - ",String(B.description)]})]},x)})})]}),G[32]=Z.inputJSONSchema,G[33]=l;else l=G[33];let v;if(G[34]!==A||G[35]!==u||G[36]!==i||G[37]!==l)v=X(Y,{flexDirection:"column",children:[A,u,i,l]}),G[34]=A,G[35]=u,G[36]=i,G[37]=l,G[38]=v;else v=G[38];let o;if(G[39]!==q||G[40]!==z.name||G[41]!==v||G[42]!==c)o=L(BG,{title:c,subtitle:z.name,onCancel:q,inputGuide:uJ,children:v}),G[39]=q,G[40]=z.name,G[41]=v,G[42]=c,G[43]=o;else o=G[43];return o}function uJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FJ,vG;var iJ=GG(()=>{VG();KJ();MG();EJ();a();FJ=e(bG(),1),vG=e($G(),1)});function PQ(J){let G=kJ.c(21),{server:Z,onSelectTool:z,onBack:q}=J,H=LG(xJ),k;G:{if(Z.client.type!=="connected"){let P;if(G[0]===Symbol.for("react.memo_cache_sentinel"))P=[],G[0]=P;else P=G[0];k=P;break G}let K;if(G[1]!==H||G[2]!==Z.name)K=HJ(H,Z.name),G[1]=H,G[2]=Z.name,G[3]=K;else K=G[3];k=K}let W=k,D;if(G[4]!==Z.name||G[5]!==W){let K;if(G[7]!==Z.name)K=(P,w)=>{let N=yG(P.name,Z.name),g=P.userFacingName?P.userFacingName({}):N,j=IG(g),c=P.isReadOnly?.({})??!1,T=P.isDestructive?.({})??!1,A=P.isOpenWorld?.({})??!1,y=[];if(c)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:j,value:w.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":c?"success":void 0}},G[7]=Z.name,G[8]=K;else K=G[8];D=W.map(K),G[4]=Z.name,G[5]=W,G[6]=D}else D=G[6];let I=D,U=`Tools for ${Z.name}`,$=W.length,R;if(G[9]!==W.length)R=zJ(W.length,"tool"),G[9]=W.length,G[10]=R;else R=G[10];let _=`${$} ${R}`,f;if(G[11]!==q||G[12]!==z||G[13]!==W||G[14]!==I)f=W.length===0?L(Q,{dimColor:!0,children:"No tools available"}):L(QG,{options:I,onChange:(K)=>{let P=parseInt(K),w=W[P];if(w)z(w,P)},onCancel:q}),G[11]=q,G[12]=z,G[13]=W,G[14]=I,G[15]=f;else f=G[15];let O;if(G[16]!==q||G[17]!==U||G[18]!==_||G[19]!==f)O=L(BG,{title:U,subtitle:_,onCancel:q,inputGuide:vJ,children:f}),G[16]=q,G[17]=U,G[18]=_,G[19]=f,G[20]=O;else O=G[20];return O}function vJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):X(r,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xJ(J){return J.mcp.tools}var kJ;var aJ=GG(()=>{VG();KJ();iG();cG();pG();MG();uG();WG();EJ();jG();a();kJ=e(bG(),1)});
|
|
2
|
+
export{OL as xf,$J as yf,iL as zf,cJ as Af,tL as Bf,iJ as Cf,PQ as Df,aJ as Ef};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$qa as m,Tqa as CQ,Uqa as YJ,Vqa as v,Wqa as P1,Xqa as J5,Yqa as w8,Zqa as D,_qa as y,ara as _Q,bra as L,cra as a,dra as h5,era as e8,fra as F5,gra as _8,hra as E,ira as h8,jra as P,kra as x1,lra as d,mra as WQ,nra as o,ora as xQ,pra as l5,qra as UY}from"./cli-1.1.13-24284zna.mjs";import{Dsa as sQ,Esa as X}from"./cli-1.1.13-jdcqc6bd.mjs";function h$(){this.__data__=new v,this.size=0}var e1;var QQ=X(()=>{P1();e1=h$});function n$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var $Q;var JQ=X(()=>{$Q=n$});function b$(Q){return this.__data__.get(Q)}var YQ;var ZQ=X(()=>{YQ=b$});function i$(Q){return this.__data__.has(Q)}var XQ;var HQ=X(()=>{XQ=i$});function l$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<u$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new o(Z)}return Y.set(Q,J),this.size=Y.size,this}var u$=200,UQ;var KQ=X(()=>{P1();WQ();xQ();UQ=l$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var I1=X(()=>{P1();QQ();JQ();ZQ();HQ();KQ();g.prototype.clear=e1;g.prototype.delete=$Q;g.prototype.get=YQ;g.prototype.has=XQ;g.prototype.set=UQ;p=g});function c$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",GQ;var BQ=X(()=>{GQ=c$});function o$(Q){return this.__data__.has(Q)}var NQ;var wQ=X(()=>{NQ=o$});function r(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new o;while(++J<Y)this.add(Q[J])}var zQ;var FQ=X(()=>{xQ();BQ();wQ();r.prototype.add=r.prototype.push=GQ;r.prototype.has=NQ;zQ=r});function r$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var RQ;var DQ=X(()=>{RQ=r$});function s$(Q,J){return Q.has(J)}var qQ;var OQ=X(()=>{qQ=s$});function e$(Q,J,Y,Z,H,W){var x=Y&a$,U=Q.length,B=J.length;if(U!=B&&!(x&&B>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&t$?new zQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],q=J[z];if(Z)var f=x?Z(q,R,z,J,Q,W):Z(R,q,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!RQ(J,function(C,_){if(!qQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===q||H(R,q,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var a$=1,t$=2,s;var C1=X(()=>{FQ();DQ();OQ();s=e$});var QJ,_1;var VQ=X(()=>{y();QJ=D.Uint8Array,_1=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var MQ;var LQ=X(()=>{MQ=$J});function JJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var fQ;var PQ=X(()=>{fQ=JJ});function RJ(Q,J,Y,Z,H,W,x){switch(Y){case FJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case zJ:if(Q.byteLength!=J.byteLength||!W(new _1(Q),new _1(J)))return!1;return!0;case HJ:case WJ:case KJ:return CQ(+Q,+J);case xJ:return Q.name==J.name&&Q.message==J.message;case GJ:case NJ:return Q==J+"";case UJ:var U=MQ;case BJ:var B=Z&ZJ;if(U||(U=fQ),Q.size!=J.size&&!B)return!1;var K=x.get(Q);if(K)return K==J;Z|=XJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case wJ:if(k1)return k1.call(Q)==k1.call(J)}return!1}var ZJ=1,XJ=2,HJ="[object Boolean]",WJ="[object Date]",xJ="[object Error]",UJ="[object Map]",KJ="[object Number]",GJ="[object RegExp]",BJ="[object Set]",NJ="[object String]",wJ="[object Symbol]",zJ="[object ArrayBuffer]",FJ="[object DataView]",IQ,k1,kQ;var EQ=X(()=>{_Q();VQ();YJ();C1();LQ();PQ();IQ=m?m.prototype:void 0,k1=IQ?IQ.valueOf:void 0;kQ=RJ});function DJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var vQ;var dQ=X(()=>{vQ=DJ});var qJ,w;var M=X(()=>{qJ=Array.isArray,w=qJ});function OJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:vQ(Z,Y(Q))}var gQ;var pQ=X(()=>{dQ();M();gQ=OJ});function VJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var yQ;var mQ=X(()=>{yQ=VJ});function MJ(){return[]}var SQ;var AQ=X(()=>{SQ=MJ});var LJ,fJ,jQ,PJ,hQ;var nQ=X(()=>{mQ();AQ();LJ=Object.prototype,fJ=LJ.propertyIsEnumerable,jQ=Object.getOwnPropertySymbols,PJ=!jQ?SQ:function(Q){if(Q==null)return[];return Q=Object(Q),yQ(jQ(Q),function(J){return fJ.call(Q,J)})},hQ=PJ});function IJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var bQ;var iQ=X(()=>{bQ=IJ});function CJ(Q){return Q!=null&&typeof Q=="object"}var O;var S=X(()=>{O=CJ});function kJ(Q){return O(Q)&&L(Q)==_J}var _J="[object Arguments]",E1;var uQ=X(()=>{a();S();E1=kJ});var lQ,EJ,vJ,dJ,t;var v1=X(()=>{uQ();S();lQ=Object.prototype,EJ=lQ.hasOwnProperty,vJ=lQ.propertyIsEnumerable,dJ=E1(function(){return arguments}())?E1:function(Q){return O(Q)&&EJ.call(Q,"callee")&&!vJ.call(Q,"callee")},t=dJ});function gJ(){return!1}var TQ;var cQ=X(()=>{TQ=gJ});var Q1={};sQ(Q1,{default:()=>A});var aQ,oQ,pJ,rQ,yJ,mJ,A;var d1=X(()=>{y();cQ();aQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,oQ=aQ&&typeof e=="object"&&e&&!e.nodeType&&e,pJ=oQ&&oQ.exports===aQ,rQ=pJ?D.Buffer:void 0,yJ=rQ?rQ.isBuffer:void 0,mJ=yJ||TQ,A=mJ});function jJ(Q,J){var Y=typeof Q;return J=J==null?SJ:J,!!J&&(Y=="number"||Y!="symbol"&&AJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var SJ=9007199254740991,AJ,$1;var g1=X(()=>{AJ=/^(?:0|[1-9]\d*)$/;$1=jJ});function nJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,j;var J1=X(()=>{j=nJ});function B8(Q){return O(Q)&&j(Q.length)&&!!G[L(Q)]}var bJ="[object Arguments]",iJ="[object Array]",uJ="[object Boolean]",lJ="[object Date]",TJ="[object Error]",cJ="[object Function]",oJ="[object Map]",rJ="[object Number]",sJ="[object Object]",aJ="[object RegExp]",tJ="[object Set]",eJ="[object String]",Q8="[object WeakMap]",$8="[object ArrayBuffer]",J8="[object DataView]",Y8="[object Float32Array]",Z8="[object Float64Array]",X8="[object Int8Array]",H8="[object Int16Array]",W8="[object Int32Array]",x8="[object Uint8Array]",U8="[object Uint8ClampedArray]",K8="[object Uint16Array]",G8="[object Uint32Array]",G,tQ;var eQ=X(()=>{a();J1();S();G={};G[Y8]=G[Z8]=G[X8]=G[H8]=G[W8]=G[x8]=G[U8]=G[K8]=G[G8]=!0;G[bJ]=G[iJ]=G[$8]=G[uJ]=G[J8]=G[lJ]=G[TJ]=G[cJ]=G[oJ]=G[rJ]=G[sJ]=G[aJ]=G[tJ]=G[eJ]=G[Q8]=!1;tQ=B8});function N8(Q){return function(J){return Q(J)}}var Q5;var $5=X(()=>{Q5=N8});var Z1={};sQ(Z1,{default:()=>X1});var Y5,i,z8,p1,F8,X1;var Z5=X(()=>{w8();Y5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Y5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,z8=i&&i.exports===Y5,p1=z8&&J5.process,F8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return p1&&p1.binding&&p1.binding("util")}catch(J){}}(),X1=F8});var X5,R8,H1;var y1=X(()=>{eQ();$5();Z5();X5=X1&&X1.isTypedArray,R8=X5?Q5(X5):tQ,H1=R8});function O8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?bQ(Q.length,String):[],B=U.length;for(var K in Q)if((J||q8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,B))))U.push(K);return U}var D8,q8,H5;var W5=X(()=>{iQ();v1();M();d1();g1();y1();D8=Object.prototype,q8=D8.hasOwnProperty;H5=O8});function M8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||V8;return Q===Y}var V8,x5;var U5=X(()=>{V8=Object.prototype;x5=M8});function L8(Q,J){return function(Y){return Q(J(Y))}}var K5;var G5=X(()=>{K5=L8});var f8,B5;var N5=X(()=>{G5();f8=K5(Object.keys,Object),B5=f8});function C8(Q){if(!x5(Q))return B5(Q);var J=[];for(var Y in Object(Q))if(I8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var P8,I8,w5;var z5=X(()=>{U5();N5();P8=Object.prototype,I8=P8.hasOwnProperty;w5=C8});function k8(Q){return Q!=null&&j(Q.length)&&!F5(Q)}var R5;var D5=X(()=>{_8();J1();R5=k8});function E8(Q){return R5(Q)?H5(Q):w5(Q)}var W1;var m1=X(()=>{W5();z5();D5();W1=E8});function v8(Q){return gQ(Q,W1,hQ)}var S1;var q5=X(()=>{pQ();nQ();m1();S1=v8});function y8(Q,J,Y,Z,H,W){var x=Y&d8,U=S1(Q),B=U.length,K=S1(J),F=K.length;if(B!=F&&!x)return!1;var z=B;while(z--){var N=U[z];if(!(x?N in J:p8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var q=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<B){N=U[z];var C=Q[N],_=J[N];if(Z)var t1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(t1===void 0?C===_||H(C,_,Y,Z,W):t1)){q=!1;break}f||(f=N=="constructor")}if(q&&!f){var T=Q.constructor,c=J.constructor;if(T!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof T=="function"&&T instanceof T&&typeof c=="function"&&c instanceof c))q=!1}return W.delete(Q),W.delete(J),q}var d8=1,g8,p8,O5;var V5=X(()=>{q5();g8=Object.prototype,p8=g8.hasOwnProperty;O5=y8});var m8,U1;var M5=X(()=>{x1();y();m8=P(D,"DataView"),U1=m8});var S8,K1;var L5=X(()=>{x1();y();S8=P(D,"Promise"),K1=S8});var A8,G1;var f5=X(()=>{x1();y();A8=P(D,"Set"),G1=A8});var j8,B1;var P5=X(()=>{x1();y();j8=P(D,"WeakMap"),B1=j8});var I5="[object Map]",n8="[object Object]",C5="[object Promise]",_5="[object Set]",k5="[object WeakMap]",E5="[object DataView]",b8,i8,u8,l8,T8,k,A1;var v5=X(()=>{M5();WQ();L5();f5();P5();a();h8();b8=E(U1),i8=E(d),u8=E(K1),l8=E(G1),T8=E(B1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=E5||d&&k(new d)!=I5||K1&&k(K1.resolve())!=C5||G1&&k(new G1)!=_5||B1&&k(new B1)!=k5)k=function(Q){var J=L(Q),Y=J==n8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case b8:return E5;case i8:return I5;case u8:return C5;case l8:return _5;case T8:return k5}return J};A1=k});function r8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?g5:A1(Q),K=U?g5:A1(J);B=B==d5?N1:B,K=K==d5?N1:K;var F=B==N1,z=K==N1,N=B==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):kQ(Q,J,B,Y,Z,H,W);if(!(Y&c8)){var V=F&&p5.call(Q,"__wrapped__"),R=z&&p5.call(J,"__wrapped__");if(V||R){var q=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(q,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),O5(Q,J,Y,Z,H,W)}var c8=1,d5="[object Arguments]",g5="[object Array]",N1="[object Object]",o8,p5,y5;var m5=X(()=>{I1();C1();EQ();V5();v5();M();d1();y1();o8=Object.prototype,p5=o8.hasOwnProperty;y5=r8});function S5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return y5(Q,J,Y,Z,S5,H)}var w1;var j1=X(()=>{m5();S();w1=S5});function t8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var B=U[0],K=Q[B],F=U[1];if(x&&U[2]){if(K===void 0&&!(B in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,B,Q,J,z);if(!(N===void 0?w1(F,K,s8|a8,Z,z):N))return!1}}return!0}var s8=1,a8=2,A5;var j5=X(()=>{I1();j1();A5=t8});function QY(Q){return Q===Q&&!h5(Q)}var z1;var h1=X(()=>{e8();z1=QY});function $Y(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var n5;var b5=X(()=>{h1();m1();n5=$Y});function JY(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var n1=X(()=>{F1=JY});function YY(Q){var J=n5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||A5(Y,Q,J)}}var i5;var u5=X(()=>{j5();b5();n1();i5=YY});function XY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==ZY}var ZY="[object Symbol]",h;var R1=X(()=>{a();S();h=XY});function xY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||h(Q))return!0;return WY.test(Q)||!HY.test(Q)||J!=null&&Q in Object(J)}var HY,WY,n;var D1=X(()=>{M();R1();HY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WY=/^\w*$/;n=xY});function GY(Q){var J=l5(Q,function(Z){if(Y.size===KY)Y.clear();return Z}),Y=J.cache;return J}var KY=500,T5;var c5=X(()=>{UY();T5=GY});var BY,NY,wY,o5;var r5=X(()=>{c5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NY=/\\(\\)?/g,wY=T5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(NY,"$1"):Z||Y)}),J}),o5=wY});function zY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var s5;var a5=X(()=>{s5=zY});function Q$(Q){if(typeof Q=="string")return Q;if(w(Q))return s5(Q,Q$)+"";if(h(Q))return e5?e5.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-FY?"-0":J}var FY=1/0,t5,e5,$$;var J$=X(()=>{_Q();a5();M();R1();t5=m?m.prototype:void 0,e5=t5?t5.toString:void 0;$$=Q$});function RY(Q){return Q==null?"":$$(Q)}var Y$;var Z$=X(()=>{J$();Y$=RY});function DY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:o5(Y$(Q))}var q1;var b1=X(()=>{M();D1();r5();Z$();q1=DY});function OY(Q){if(typeof Q=="string"||h(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-qY?"-0":J}var qY=1/0,I;var u=X(()=>{R1();I=OY});function VY(Q,J){J=q1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var i1=X(()=>{b1();u();O1=VY});function MY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var X$;var H$=X(()=>{i1();X$=MY});function LY(Q,J){return Q!=null&&J in Object(Q)}var W$;var x$=X(()=>{W$=LY});function fY(Q,J,Y){J=q1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&j(H)&&$1(x,H)&&(w(Q)||t(Q))}var U$;var K$=X(()=>{b1();v1();M();g1();J1();u();U$=fY});function PY(Q,J){return Q!=null&&U$(Q,J,W$)}var G$;var B$=X(()=>{x$();K$();G$=PY});function _Y(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=X$(Y,Q);return Z===void 0&&Z===J?G$(Y,Q):w1(J,Z,IY|CY)}}var IY=1,CY=2,N$;var w$=X(()=>{j1();H$();B$();D1();h1();n1();u();N$=_Y});function kY(Q){return Q}var z$;var F$=X(()=>{z$=kY});function EY(Q){return function(J){return J==null?void 0:J[Q]}}var R$;var D$=X(()=>{R$=EY});function vY(Q){return function(J){return O1(J,Q)}}var q$;var O$=X(()=>{i1();q$=vY});function dY(Q){return n(Q)?R$(I(Q)):q$(Q)}var V$;var M$=X(()=>{D$();O$();D1();u();V$=dY});function gY(Q){if(typeof Q=="function")return Q;if(Q==null)return z$;if(typeof Q=="object")return w(Q)?N$(Q[0],Q[1]):i5(Q);return V$(Q)}var L$;var f$=X(()=>{u5();w$();F$();M();M$();L$=gY});function pY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var P$;var I$=X(()=>{P$=pY});function yY(Q,J){return Q&&Q.length?P$(Q,L$(J,2)):0}var b;var C$=X(()=>{f$();I$();b=yY});import{randomUUID as u1}from"crypto";var _$=()=>{};function nX(){return l1}function bX(Q){l1=Q}function iX(Q){return V1.has(Q)?V1.get(Q):void 0}function uX(Q,J){V1.set(Q,J)}function lX(Q){return T1.get(Q)}function TX(Q,J){T1.set(Q,J)}function k$(){l1=null,V1.clear(),T1.clear()}function cX(){return c1}function oX(Q){c1=Q}function rX(){c1=void 0}var l1=null,V1,T1,c1;var E$=X(()=>{V1=new Map;T1=new Map});function v$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var d$=()=>{};import{realpathSync as g$}from"fs";import{cwd as mY}from"process";function Z9(Q){return o1.add(Q),()=>o1.delete(Q)}function X9(){L1()}function L1(){for(let Q of o1)try{Q()}catch{}}function p$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof g$==="function"){let Y=mY();try{Q=g$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),activeDurationMs:0,turnActiveSince:null,lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],pendingSessionWakeup:null,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,lspDeferLatchedTools:null,deferredDeltaLegacySession:!1,sessionEpochMs:Date.now()-process.uptime()*1000,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function H9(){return $.sessionId}function W9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=u1(),$.sessionProjectDir=null,m$($.sessionId),$.sessionId}function x9(){return $.parentSessionId}function U9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,m$(Q)}function m$(Q){$.pendingSessionWakeup=null,jY(),$.sessionEpochMs=Date.now(),y$.emit(Q)}function G9(){return $.sessionProjectDir}function B9(){return $.originalCwd}function N9(){return $.projectRoot}function w9(Q){$.originalCwd=Q.normalize("NFC")}function z9(Q){$.projectRoot=Q.normalize("NFC")}function F9(){return $.cwd}function R9(Q){$.cwd=Q.normalize("NFC")}function D9(){return $.directConnectServerUrl}function q9(Q){$.directConnectServerUrl=Q}function O9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function V9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function M9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function L9(){return $.totalCostUSD}function f9(){return $.totalAPIDuration}function P9(){if($.turnActiveSince==null)$.turnActiveSince=Date.now()}function I9(){if($.turnActiveSince!=null)$.activeDurationMs+=Date.now()-$.turnActiveSince,$.turnActiveSince=null}function C9(){return $.activeDurationMs+($.turnActiveSince!=null?Date.now()-$.turnActiveSince:0)}function _9(){return $.totalAPIDurationWithoutRetries}function k9(){return $.totalToolDuration}function E9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function v9(){return $.turnHookDurationMs}function d9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function g9(){$.turnHookDurationMs=0,$.turnHookCount=0}function p9(){return $.turnHookCount}function y9(){return $.turnToolDurationMs}function m9(){$.turnToolDurationMs=0,$.turnToolCount=0}function S9(){return $.turnToolCount}function A9(){return $.turnClassifierDurationMs}function j9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function h9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function n9(){return $.turnClassifierCount}function b9(){return $.statsStore}function i9(Q){$.statsStore=Q}function u9(Q){if(Q)S$();else r1=!0}function l9(){if(r1)S$()}function S$(){$.lastInteractionTime=Date.now(),r1=!1}function T9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function c9(){return $.totalLinesAdded}function o9(){return $.totalLinesRemoved}function r9(){return b(Object.values($.modelUsage),"inputTokens")}function A$(){return b(Object.values($.modelUsage),"outputTokens")}function s9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function a9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function t9(){return b(Object.values($.modelUsage),"webSearchRequests")}function e9(){return A$()-s1}function QH(){return a1}function $H(Q){s1=A$(),a1=Q,f1=0}function JH(){return f1}function YH(){f1++}function ZH(){$.hasUnknownModelCost=!0}function XH(){return $.hasUnknownModelCost}function HH(){return $.lastMainRequestId}function WH(Q){$.lastMainRequestId=Q}function xH(){return $.lastApiCompletionTimestamp}function UH(Q){$.lastApiCompletionTimestamp=Q}function KH(){$.pendingPostCompaction=!0}function GH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function BH(){return $.lastInteractionTime}function NH(){if(M1=!0,l)clearTimeout(l);l=setTimeout(()=>{M1=!1,l=void 0},j$),l.unref?.()}function wH(){return M1}async function zH(){while(M1)await new Promise((Q)=>setTimeout(Q,j$).unref?.())}function FH(){return $.modelUsage}function RH(Q){return $.modelUsage[Q]}function DH(){return $.mainLoopModelOverride}function qH(){return $.initialMainLoopModel}function OH(Q){$.mainLoopModelOverride=Q}function VH(Q){$.initialMainLoopModel=Q}function MH(){return $.sdkBetas}function LH(Q){$.sdkBetas=Q}function fH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.activeDurationMs=0,$.turnActiveSince=null,$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function PH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;$.activeDurationMs=x??0,$.turnActiveSince=null}function IH(){throw Error("resetStateForTests can only be called in tests")}function CH(){return $.modelStrings}function _H(Q){$.modelStrings=Q}function kH(){$.modelStrings=null}function EH(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function vH(){return $.meter}function dH(){return $.sessionCounter}function gH(){return $.locCounter}function pH(){return $.prCounter}function yH(){return $.commitCounter}function mH(){return $.costCounter}function SH(){return $.tokenCounter}function AH(){return $.codeEditToolDecisionCounter}function jH(){return $.activeTimeCounter}function hH(){return $.loggerProvider}function nH(Q){$.loggerProvider=Q}function bH(){return $.eventLogger}function iH(Q){$.eventLogger=Q}function uH(){return $.meterProvider}function lH(Q){$.meterProvider=Q}function TH(){return $.tracerProvider}function cH(Q){$.tracerProvider=Q}function SY(){return!$.isInteractive}function oH(){return $.isInteractive}function rH(Q){$.isInteractive=Q}function sH(){return $.clientType}function aH(Q){$.clientType=Q}function tH(){return $.sdkAgentProgressSummariesEnabled}function eH(Q){$.sdkAgentProgressSummariesEnabled=Q}function Q4(){return $.kairosActive}function $4(Q){$.kairosActive=Q,L1()}function J4(){return $.strictToolResultPairing}function Y4(Q){$.strictToolResultPairing=Q}function Z4(){return $.userMsgOptIn}function X4(Q){$.userMsgOptIn=Q,L1()}function H4(){return $.sessionSource}function W4(Q){$.sessionSource=Q}function x4(){return $.questionPreviewFormat}function U4(Q){$.questionPreviewFormat=Q}function K4(){return $.agentColorMap}function G4(){return $.flagSettingsPath}function B4(Q){$.flagSettingsPath=Q}function N4(){return $.flagSettingsInline}function w4(Q){$.flagSettingsInline=Q}function z4(){return $.sessionIngressToken}function F4(Q){$.sessionIngressToken=Q}function R4(){return $.oauthTokenFromFd}function D4(Q){$.oauthTokenFromFd=Q}function q4(){return $.apiKeyFromFd}function O4(Q){$.apiKeyFromFd=Q}function V4(Q){$.lastAPIRequest=Q}function M4(){return $.lastAPIRequest}function L4(Q){$.lastAPIRequestMessages=Q}function f4(){return $.lastAPIRequestMessages}function P4(Q){$.lastClassifierRequests=Q}function I4(){return $.lastClassifierRequests}function C4(Q){$.cachedClaudeMdContent=Q}function _4(){return $.cachedClaudeMdContent}function k4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function E4(){return $.allowedSettingSources}function v4(Q){$.allowedSettingSources=Q}function d4(){return SY()&&$.clientType!=="claude-vscode"}function g4(Q){$.inlinePlugins=Q}function p4(){return $.inlinePlugins}function y4(Q){$.useCoworkPlugins=Q,k$()}function m4(){return $.useCoworkPlugins}function S4(Q){$.sessionBypassPermissionsMode=Q}function A4(){return $.sessionBypassPermissionsMode}function j4(Q){$.scheduledTasksEnabled=Q}function h4(){return $.scheduledTasksEnabled}function n4(){return $.sessionCronTasks}function b4(Q){$.sessionCronTasks.push(Q)}function i4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function u4(){return $.pendingSessionWakeup}function l4(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function T4(){$.pendingSessionWakeup=null}function c4(Q){$.sessionTrustAccepted=Q}function o4(){return $.sessionTrustAccepted}function r4(Q){$.sessionPersistenceDisabled=Q}function s4(){return $.sessionPersistenceDisabled}function a4(){return $.hasExitedPlanMode}function t4(Q){$.hasExitedPlanMode=Q}function e4(){return $.needsPlanModeExitAttachment}function Q3(Q){$.needsPlanModeExitAttachment=Q}function $3(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function J3(){return $.needsAutoModeExitAttachment}function Y3(Q){$.needsAutoModeExitAttachment=Q}function Z3(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function X3(Q){$.initJsonSchema=Q}function H3(){return $.initJsonSchema}function W3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function x3(){return $.registeredHooks}function U3(){$.registeredHooks=null}function K3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function G3(){$.initJsonSchema=null,$.registeredHooks=null}function B3(){return $.planSlugCache}function N3(){return $.sessionCreatedTeams}function w3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function z3(){return $.teleportedSessionInfo}function F3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function R3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function D3(){return $.invokedSkills}function q3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function O3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function V3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function M3(Q,J){}function L3(){return AY}function f3(){return $.mainThreadAgentType}function P3(Q){$.mainThreadAgentType=Q}function I3(){return $.isRemoteMode}function C3(Q){$.isRemoteMode=Q}function _3(){return $.systemPromptSectionCache}function k3(Q,J){$.systemPromptSectionCache.set(Q,J)}function E3(){$.systemPromptSectionCache.clear()}function v3(){return $.lastEmittedDate}function d3(Q){$.lastEmittedDate=Q}function g3(){return $.additionalDirectoriesForClaudeMd}function p3(Q){$.additionalDirectoriesForClaudeMd=Q}function y3(){return $.allowedChannels}function m3(Q){$.allowedChannels=Q,L1()}function S3(){return $.hasDevChannels}function A3(Q){$.hasDevChannels=Q}function j3(){return $.largeSystemPromptDetected}function h3(Q){$.largeSystemPromptDetected=Q}function n3(){return $.afkModeHeaderLatched}function b3(Q){$.afkModeHeaderLatched=Q}function i3(){return $.fastModeHeaderLatched}function u3(Q){$.fastModeHeaderLatched=Q}function l3(){return $.thinkingClearLatched}function T3(Q){$.thinkingClearLatched=Q}function c3(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function o3(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function r3(){return $.deferredDeltaLegacySession}function s3(Q){$.deferredDeltaLegacySession=Q}function jY(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function a3(){return $.sessionEpochMs}function t3(){return $.promptId}function e3(Q){$.promptId=Q}function QW(){return!1}function $W(){return null}var o1,$,y$,K9,r1=!1,s1=0,a1=null,f1=0,M1=!1,l,j$=150,AY;var hY=X(()=>{C$();_$();E$();d$();o1=new Set;$=p$();y$=v$();K9=y$.subscribe;AY=[]});
|
|
2
|
+
export{p as ola,I1 as pla,zQ as qla,FQ as rla,qQ as sla,OQ as tla,_1 as ula,VQ as vla,fQ as wla,PQ as xla,vQ as yla,dQ as zla,w as Ala,M as Bla,gQ as Cla,pQ as Dla,yQ as Ela,mQ as Fla,SQ as Gla,AQ as Hla,hQ as Ila,nQ as Jla,O as Kla,S as Lla,t as Mla,v1 as Nla,A as Ola,d1 as Pla,$1 as Qla,g1 as Rla,Q5 as Sla,$5 as Tla,X1 as Ula,Z5 as Vla,H1 as Wla,y1 as Xla,H5 as Yla,W5 as Zla,x5 as _la,U5 as $la,K5 as ama,G5 as bma,R5 as cma,D5 as dma,W1 as ema,m1 as fma,S1 as gma,q5 as hma,G1 as ima,f5 as jma,A1 as kma,v5 as lma,w1 as mma,j1 as nma,h as oma,R1 as pma,s5 as qma,a5 as rma,Y$ as sma,Z$ as tma,q1 as uma,b1 as vma,I as wma,u as xma,O1 as yma,i1 as zma,z$ as Ama,F$ as Bma,L$ as Cma,f$ as Dma,nX as Ema,bX as Fma,iX as Gma,uX as Hma,lX as Ima,TX as Jma,k$ as Kma,cX as Lma,oX as Mma,rX as Nma,E$ as Oma,v$ as Pma,d$ as Qma,Z9 as Rma,X9 as Sma,H9 as Tma,W9 as Uma,x9 as Vma,U9 as Wma,K9 as Xma,G9 as Yma,B9 as Zma,N9 as _ma,w9 as $ma,z9 as ana,F9 as bna,R9 as cna,D9 as dna,q9 as ena,O9 as fna,V9 as gna,M9 as hna,L9 as ina,f9 as jna,P9 as kna,I9 as lna,C9 as mna,_9 as nna,k9 as ona,E9 as pna,v9 as qna,d9 as rna,g9 as sna,p9 as tna,y9 as una,m9 as vna,S9 as wna,A9 as xna,j9 as yna,h9 as zna,n9 as Ana,b9 as Bna,i9 as Cna,u9 as Dna,l9 as Ena,T9 as Fna,c9 as Gna,o9 as Hna,r9 as Ina,A$ as Jna,s9 as Kna,a9 as Lna,t9 as Mna,e9 as Nna,QH as Ona,$H as Pna,JH as Qna,YH as Rna,ZH as Sna,XH as Tna,HH as Una,WH as Vna,xH as Wna,UH as Xna,KH as Yna,GH as Zna,BH as _na,NH as $na,wH as aoa,zH as boa,FH as coa,RH as doa,DH as eoa,qH as foa,OH as goa,VH as hoa,MH as ioa,LH as joa,fH as koa,PH as loa,IH as moa,CH as noa,_H as ooa,kH as poa,EH as qoa,vH as roa,dH as soa,gH as toa,pH as uoa,yH as voa,mH as woa,SH as xoa,AH as yoa,jH as zoa,hH as Aoa,nH as Boa,bH as Coa,iH as Doa,uH as Eoa,lH as Foa,TH as Goa,cH as Hoa,SY as Ioa,oH as Joa,rH as Koa,sH as Loa,aH as Moa,tH as Noa,eH as Ooa,Q4 as Poa,$4 as Qoa,J4 as Roa,Y4 as Soa,Z4 as Toa,X4 as Uoa,H4 as Voa,W4 as Woa,x4 as Xoa,U4 as Yoa,K4 as Zoa,G4 as _oa,B4 as $oa,N4 as apa,w4 as bpa,z4 as cpa,F4 as dpa,R4 as epa,D4 as fpa,q4 as gpa,O4 as hpa,V4 as ipa,M4 as jpa,L4 as kpa,f4 as lpa,P4 as mpa,I4 as npa,C4 as opa,_4 as ppa,k4 as qpa,E4 as rpa,v4 as spa,d4 as tpa,g4 as upa,p4 as vpa,y4 as wpa,m4 as xpa,S4 as ypa,A4 as zpa,j4 as Apa,h4 as Bpa,n4 as Cpa,b4 as Dpa,i4 as Epa,u4 as Fpa,l4 as Gpa,T4 as Hpa,c4 as Ipa,o4 as Jpa,r4 as Kpa,s4 as Lpa,a4 as Mpa,t4 as Npa,e4 as Opa,Q3 as Ppa,$3 as Qpa,J3 as Rpa,Y3 as Spa,Z3 as Tpa,X3 as Upa,H3 as Vpa,W3 as Wpa,x3 as Xpa,U3 as Ypa,K3 as Zpa,G3 as _pa,B3 as $pa,N3 as aqa,w3 as bqa,z3 as cqa,F3 as dqa,R3 as eqa,D3 as fqa,q3 as gqa,O3 as hqa,V3 as iqa,M3 as jqa,L3 as kqa,f3 as lqa,P3 as mqa,I3 as nqa,C3 as oqa,_3 as pqa,k3 as qqa,E3 as rqa,v3 as sqa,d3 as tqa,g3 as uqa,p3 as vqa,y3 as wqa,m3 as xqa,S3 as yqa,A3 as zqa,j3 as Aqa,h3 as Bqa,n3 as Cqa,b3 as Dqa,i3 as Eqa,u3 as Fqa,l3 as Gqa,T3 as Hqa,c3 as Iqa,o3 as Jqa,r3 as Kqa,s3 as Lqa,jY as Mqa,a3 as Nqa,t3 as Oqa,e3 as Pqa,QW as Qqa,$W as Rqa,hY as Sqa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c$ as T,s$ as $}from"./cli-1.1.13-2mrqqgcm.mjs";import{Dia as J,Fia as Y}from"./cli-1.1.13-ykzv8nyq.mjs";import{uka as E,xka as X}from"./cli-1.1.13-ayx92dtj.mjs";import{Esa as V}from"./cli-1.1.13-jdcqc6bd.mjs";function j(){B.clear()}async function P(){let q=await Z();if(!q)return null;if(q.host!=="github.com")return null;return`${q.owner}/${q.name}`}async function Z(){let q=J();if(B.has(q))return B.get(q)??null;try{let x=await T();if(E(`Git remote URL: ${x}`),!x)return E("No git remote URL found"),B.set(q,null),null;let z=Q(x);return E(`Parsed repository: ${z?`${z.host}/${z.owner}/${z.name}`:null} from URL: ${x}`),B.set(q,z),z}catch(x){return E(`Error detecting repository: ${x}`),B.set(q,null),null}}function S(){let q=B.get(J());if(!q||q.host!=="github.com")return null;return`${q.owner}/${q.name}`}function Q(q){let x=q.trim(),z=x.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]){if(!O(z[1]))return null;return{host:z[1],owner:z[2],name:z[3]}}let A=x.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(A?.[1]&&A[2]&&A[3]&&A[4]){let I=A[1],K=A[2],N=K.split(":")[0]??"";if(!O(N))return null;return{host:I==="https"||I==="http"?K:N,owner:A[3],name:A[4]}}return null}function D(q){let x=q.trim(),z=Q(x);if(z){if(z.host!=="github.com")return null;return`${z.owner}/${z.name}`}if(!x.includes("://")&&!x.includes("@")&&x.includes("/")){let A=x.split("/");if(A.length===2&&A[0]&&A[1]){let I=A[1].replace(/\.git$/,"");return`${A[0]}/${I}`}}return E(`Could not parse repository from: ${x}`),null}function O(q){if(!q.includes("."))return!1;let x=q.split(".").pop();if(!x)return!1;return/^[a-zA-Z]+$/.test(x)}var B;var _=V(()=>{Y();X();$();B=new Map});
|
|
2
|
+
export{j as Q9,P as R9,Z as S9,S as T9,Q as U9,D as V9,_ as W9};
|