@claudiolabs/claudin 0.6.7 → 0.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-0.6.8-1h6eg55x.mjs +1 -0
- package/dist/chunks/App-0.6.8-gf7z37d0.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.6.8-z559z4n4.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.6.8-a964szce.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.6.8-hmgphwsn.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.6.8-9vwjqk2g.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.8-bmx62ftg.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.6.8-6xg5m0rs.mjs +1 -0
- package/dist/chunks/DiffDialog-0.6.8-m77gpjht.mjs +7 -0
- package/dist/chunks/Doctor-0.6.8-h33wtqvb.mjs +1 -0
- package/dist/chunks/ExplorerDialog-0.6.8-g4rjbnb6.mjs +6 -0
- package/dist/chunks/Grove-0.6.8-c6v8rps5.mjs +1 -0
- package/dist/chunks/ITermBackend-0.6.8-c6rr3der.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.6.8-rq8061vm.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.6.8-k3gjdk9q.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.6.8-fndbdavr.mjs +1 -0
- package/dist/chunks/Onboarding-0.6.8-p9c1cvpj.mjs +1 -0
- package/dist/chunks/ProviderManager-0.6.8-rgwzy8mv.mjs +1 -0
- package/dist/chunks/REPL-0.6.8-wz4ky583.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.6.8-0vytwym2.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.6.8-j49mg943.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.6.8-1w0czdzd.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.8-3tb748qg.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.6.8-cchdkcj0.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.6.8-83basabp.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.6.8-vz9cakde.mjs +1 -0
- package/dist/chunks/TrustDialog-0.6.8-9xfzmsa4.mjs +1 -0
- package/dist/chunks/activeProvider-0.6.8-z6bqkc89.mjs +1 -0
- package/dist/chunks/add-dir-0.6.8-maggp9sq.mjs +1 -0
- package/dist/chunks/agents-0.6.8-b17xcjhg.mjs +3 -0
- package/dist/chunks/agents-0.6.8-n3vcbv4n.mjs +110 -0
- package/dist/chunks/api-0.6.8-dx65vfgr.mjs +1 -0
- package/dist/chunks/asciicast-0.6.8-xdty46r6.mjs +1 -0
- package/dist/chunks/assistant-0.6.8-48pyb11z.mjs +1 -0
- package/dist/chunks/auth-0.6.8-jzmpk916.mjs +1 -0
- package/dist/chunks/auth-0.6.8-v4ggd1x2.mjs +1 -0
- package/dist/chunks/autoMode-0.6.8-e3tpbf8n.mjs +48 -0
- package/dist/chunks/autoUpdater-0.6.8-kjwba4kd.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.6.8-ahc5b93c.mjs +1 -0
- package/dist/chunks/branch-0.6.8-bht94rzm.mjs +4 -0
- package/dist/chunks/bridge-0.6.8-w3a5wvz5.mjs +2 -0
- package/dist/chunks/bridgeConfig-0.6.8-tcqxv3wr.mjs +1 -0
- package/dist/chunks/bridgeEnabled-0.6.8-bbk61bwx.mjs +1 -0
- package/dist/chunks/bridgeMain-0.6.8-4gdvjwd9.mjs +88 -0
- package/dist/chunks/bridgePointer-0.6.8-y9zbj5sw.mjs +1 -0
- package/dist/chunks/btw-0.6.8-p8v9ccqj.mjs +1 -0
- package/dist/chunks/buddy-0.6.8-cc9dgg1j.mjs +3 -0
- package/dist/chunks/cacache-0.6.8-sa10tzqt.mjs +1 -0
- package/dist/chunks/cache-probe-0.6.8-rb3gqp6p.mjs +21 -0
- package/dist/chunks/cacheStats-0.6.8-ayfpcw3z.mjs +4 -0
- package/dist/chunks/caches-0.6.8-z51zt2q7.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.6.8-f2s8faxb.mjs +1 -0
- package/dist/chunks/claudemd-0.6.8-b32hs73z.mjs +1 -0
- package/dist/chunks/clear-0.6.8-wr581077.mjs +1 -0
- package/dist/chunks/clearTerminal-0.6.8-n1mdykjw.mjs +1 -0
- package/dist/chunks/cli-0.6.8-00w6vgmt.mjs +4 -0
- package/dist/chunks/cli-0.6.8-026meybw.mjs +2 -0
- package/dist/chunks/cli-0.6.8-070cxjdc.mjs +2 -0
- package/dist/chunks/cli-0.6.8-097dncsw.mjs +2 -0
- package/dist/chunks/cli-0.6.8-0dtwbbq2.mjs +10 -0
- package/dist/chunks/cli-0.6.8-0gpdjv55.mjs +34 -0
- package/dist/chunks/cli-0.6.8-0hn9sy42.mjs +2 -0
- package/dist/chunks/cli-0.6.8-0mb0d7wn.mjs +3 -0
- package/dist/chunks/cli-0.6.8-0mnxmayn.mjs +2 -0
- package/dist/chunks/cli-0.6.8-0rt710pa.mjs +2 -0
- package/dist/chunks/cli-0.6.8-0s41dm0j.mjs +2 -0
- package/dist/chunks/cli-0.6.8-0yz4b8v5.mjs +2 -0
- package/dist/chunks/cli-0.6.8-0zdwjw7h.mjs +17 -0
- package/dist/chunks/cli-0.6.8-1bmxpdky.mjs +2 -0
- package/dist/chunks/cli-0.6.8-1g5hjvgr.mjs +3 -0
- package/dist/chunks/cli-0.6.8-1k0se62h.mjs +2 -0
- package/dist/chunks/cli-0.6.8-1mnssvmz.mjs +8 -0
- package/dist/chunks/cli-0.6.8-1yx8jjck.mjs +2 -0
- package/dist/chunks/cli-0.6.8-21y1120z.mjs +2 -0
- package/dist/chunks/cli-0.6.8-239wrpj3.mjs +2 -0
- package/dist/chunks/cli-0.6.8-25he0rqv.mjs +2 -0
- package/dist/chunks/cli-0.6.8-2e9hw0b1.mjs +4 -0
- package/dist/chunks/cli-0.6.8-2f4081dz.mjs +2 -0
- package/dist/chunks/cli-0.6.8-2h6sve00.mjs +12 -0
- package/dist/chunks/cli-0.6.8-2nda5zxh.mjs +67 -0
- package/dist/chunks/cli-0.6.8-2p06hgb1.mjs +2 -0
- package/dist/chunks/cli-0.6.8-2pj7sdxd.mjs +2 -0
- package/dist/chunks/cli-0.6.8-2qb9g75m.mjs +2 -0
- package/dist/chunks/cli-0.6.8-34gwg749.mjs +2 -0
- package/dist/chunks/cli-0.6.8-3a510y9k.mjs +2 -0
- package/dist/chunks/cli-0.6.8-3ewbgezt.mjs +2 -0
- package/dist/chunks/cli-0.6.8-3phwrcqa.mjs +3 -0
- package/dist/chunks/cli-0.6.8-3z78waf8.mjs +4 -0
- package/dist/chunks/cli-0.6.8-416cqzak.mjs +2 -0
- package/dist/chunks/cli-0.6.8-4a0ebxtv.mjs +2 -0
- package/dist/chunks/cli-0.6.8-4avmxq80.mjs +6 -0
- package/dist/chunks/cli-0.6.8-4d57xs6b.mjs +2 -0
- package/dist/chunks/cli-0.6.8-4jh3r7br.mjs +2 -0
- package/dist/chunks/cli-0.6.8-4zdzrvfa.mjs +2 -0
- package/dist/chunks/cli-0.6.8-5enet6dq.mjs +2 -0
- package/dist/chunks/cli-0.6.8-5gstf2n7.mjs +2 -0
- package/dist/chunks/cli-0.6.8-5n9bwjf9.mjs +2 -0
- package/dist/chunks/cli-0.6.8-5sexbrs8.mjs +3 -0
- package/dist/chunks/cli-0.6.8-5y8n5kpk.mjs +2 -0
- package/dist/chunks/cli-0.6.8-6050y1gw.mjs +2 -0
- package/dist/chunks/cli-0.6.8-61qkxc3j.mjs +2 -0
- package/dist/chunks/cli-0.6.8-6495m72a.mjs +2 -0
- package/dist/chunks/cli-0.6.8-6ccg5qmp.mjs +2 -0
- package/dist/chunks/cli-0.6.8-6nasamhy.mjs +2 -0
- package/dist/chunks/cli-0.6.8-6pf3s7fk.mjs +6 -0
- package/dist/chunks/cli-0.6.8-6tgf3xa0.mjs +133 -0
- package/dist/chunks/cli-0.6.8-6v315rd0.mjs +2 -0
- package/dist/chunks/cli-0.6.8-6wdxaa6q.mjs +3 -0
- package/dist/chunks/cli-0.6.8-6z1655sa.mjs +2 -0
- package/dist/chunks/cli-0.6.8-72sec87k.mjs +3 -0
- package/dist/chunks/cli-0.6.8-77sjcesf.mjs +2 -0
- package/dist/chunks/cli-0.6.8-7g7k6yt9.mjs +2 -0
- package/dist/chunks/cli-0.6.8-7nqm28z4.mjs +2 -0
- package/dist/chunks/cli-0.6.8-7rznct58.mjs +2 -0
- package/dist/chunks/cli-0.6.8-7t0cwmv0.mjs +2 -0
- package/dist/chunks/cli-0.6.8-7t8gpbd2.mjs +6 -0
- package/dist/chunks/cli-0.6.8-82xanm26.mjs +3 -0
- package/dist/chunks/cli-0.6.8-883y3p0j.mjs +5348 -0
- package/dist/chunks/cli-0.6.8-8cptc9vb.mjs +4 -0
- package/dist/chunks/cli-0.6.8-8ezmkwsw.mjs +2 -0
- package/dist/chunks/cli-0.6.8-8h913n7t.mjs +2 -0
- package/dist/chunks/cli-0.6.8-8jkm4bym.mjs +2 -0
- package/dist/chunks/cli-0.6.8-8zc9gtx8.mjs +2 -0
- package/dist/chunks/cli-0.6.8-93hp2f5g.mjs +2 -0
- package/dist/chunks/cli-0.6.8-9cxxg2ax.mjs +2 -0
- package/dist/chunks/cli-0.6.8-9f5w9wre.mjs +2 -0
- package/dist/chunks/cli-0.6.8-9m65pb3r.mjs +18 -0
- package/dist/chunks/cli-0.6.8-9pkhxd6z.mjs +2 -0
- package/dist/chunks/cli-0.6.8-9xem54f8.mjs +2 -0
- package/dist/chunks/cli-0.6.8-a7nmnbm4.mjs +2 -0
- package/dist/chunks/cli-0.6.8-a8zm3cbn.mjs +5 -0
- package/dist/chunks/cli-0.6.8-abapkbf0.mjs +15 -0
- package/dist/chunks/cli-0.6.8-ag8hcaw0.mjs +2 -0
- package/dist/chunks/cli-0.6.8-atjt49c4.mjs +2 -0
- package/dist/chunks/cli-0.6.8-b280gnkv.mjs +1 -0
- package/dist/chunks/cli-0.6.8-b2zms4ec.mjs +2 -0
- package/dist/chunks/cli-0.6.8-b3v9vbq6.mjs +2 -0
- package/dist/chunks/cli-0.6.8-b6c3tmkx.mjs +2 -0
- package/dist/chunks/cli-0.6.8-b6f3e10d.mjs +2 -0
- package/dist/chunks/cli-0.6.8-bdhpc7zj.mjs +17 -0
- package/dist/chunks/cli-0.6.8-bh09cgap.mjs +6 -0
- package/dist/chunks/cli-0.6.8-bp3vvgaw.mjs +2 -0
- package/dist/chunks/cli-0.6.8-bsqfs15y.mjs +58 -0
- package/dist/chunks/cli-0.6.8-bxcjrmby.mjs +2 -0
- package/dist/chunks/cli-0.6.8-c838p5hk.mjs +3 -0
- package/dist/chunks/cli-0.6.8-cbvnsxaa.mjs +12 -0
- package/dist/chunks/cli-0.6.8-cctyv31j.mjs +4 -0
- package/dist/chunks/cli-0.6.8-cthp7gx1.mjs +2 -0
- package/dist/chunks/cli-0.6.8-cv73s4x5.mjs +4 -0
- package/dist/chunks/cli-0.6.8-dk4bw9mq.mjs +3 -0
- package/dist/chunks/cli-0.6.8-dpz3wm8v.mjs +2 -0
- package/dist/chunks/cli-0.6.8-dvkyrzw7.mjs +5 -0
- package/dist/chunks/cli-0.6.8-dwwx58n6.mjs +2 -0
- package/dist/chunks/cli-0.6.8-dxtyt1wg.mjs +2 -0
- package/dist/chunks/cli-0.6.8-ee7wzgsq.mjs +5 -0
- package/dist/chunks/cli-0.6.8-ee9mr0z2.mjs +2 -0
- package/dist/chunks/cli-0.6.8-efkksxch.mjs +2 -0
- package/dist/chunks/cli-0.6.8-efve08ng.mjs +2 -0
- package/dist/chunks/cli-0.6.8-ekkrzmjw.mjs +2 -0
- package/dist/chunks/cli-0.6.8-eyg1sq7b.mjs +2 -0
- package/dist/chunks/cli-0.6.8-eypwe6gz.mjs +15 -0
- package/dist/chunks/cli-0.6.8-fhedvbz1.mjs +15 -0
- package/dist/chunks/cli-0.6.8-fnet85r6.mjs +2 -0
- package/dist/chunks/cli-0.6.8-g3yp49rz.mjs +2 -0
- package/dist/chunks/cli-0.6.8-gcnabbk4.mjs +3 -0
- package/dist/chunks/cli-0.6.8-gfsf3tvy.mjs +2 -0
- package/dist/chunks/cli-0.6.8-gmzxyn2t.mjs +2 -0
- package/dist/chunks/cli-0.6.8-grdpt7ss.mjs +2 -0
- package/dist/chunks/cli-0.6.8-gscmwgeh.mjs +4 -0
- package/dist/chunks/cli-0.6.8-gtwt16bp.mjs +2 -0
- package/dist/chunks/cli-0.6.8-hj3j54vb.mjs +2 -0
- package/dist/chunks/cli-0.6.8-hvckc721.mjs +2 -0
- package/dist/chunks/cli-0.6.8-j22112y9.mjs +2 -0
- package/dist/chunks/cli-0.6.8-j5wfgenk.mjs +2 -0
- package/dist/chunks/cli-0.6.8-j81d3bq4.mjs +2 -0
- package/dist/chunks/cli-0.6.8-j8mdppyz.mjs +2 -0
- package/dist/chunks/cli-0.6.8-janhze0q.mjs +39 -0
- package/dist/chunks/cli-0.6.8-jea2s05x.mjs +2 -0
- package/dist/chunks/cli-0.6.8-jf4zbgy5.mjs +2 -0
- package/dist/chunks/cli-0.6.8-jp8gk6z3.mjs +2 -0
- package/dist/chunks/cli-0.6.8-jp9zzk35.mjs +2 -0
- package/dist/chunks/cli-0.6.8-jx1wvs6x.mjs +2 -0
- package/dist/chunks/cli-0.6.8-k533p6s5.mjs +2 -0
- package/dist/chunks/cli-0.6.8-kjfxmp31.mjs +2 -0
- package/dist/chunks/cli-0.6.8-kkh9paa3.mjs +2 -0
- package/dist/chunks/cli-0.6.8-kv1xtman.mjs +2 -0
- package/dist/chunks/cli-0.6.8-kxp0gfzq.mjs +4 -0
- package/dist/chunks/cli-0.6.8-m1r6z413.mjs +2 -0
- package/dist/chunks/cli-0.6.8-m2hw29ah.mjs +2 -0
- package/dist/chunks/cli-0.6.8-m2yf7dzs.mjs +2 -0
- package/dist/chunks/cli-0.6.8-ma2wastm.mjs +50 -0
- package/dist/chunks/cli-0.6.8-mecr32eb.mjs +24 -0
- package/dist/chunks/cli-0.6.8-mkfx6c2h.mjs +7 -0
- package/dist/chunks/cli-0.6.8-n3rhca7k.mjs +2 -0
- package/dist/chunks/cli-0.6.8-n4ecq63e.mjs +2 -0
- package/dist/chunks/cli-0.6.8-nmdsnavk.mjs +2 -0
- package/dist/chunks/cli-0.6.8-nwtmpseh.mjs +2 -0
- package/dist/chunks/cli-0.6.8-nz7pwsys.mjs +2 -0
- package/dist/chunks/cli-0.6.8-p6rhsdxf.mjs +2 -0
- package/dist/chunks/cli-0.6.8-pgcmgfht.mjs +2 -0
- package/dist/chunks/cli-0.6.8-pmpv80vx.mjs +2 -0
- package/dist/chunks/cli-0.6.8-pz3sbced.mjs +25 -0
- package/dist/chunks/cli-0.6.8-pzbspy3n.mjs +2 -0
- package/dist/chunks/cli-0.6.8-q027tb7b.mjs +2 -0
- package/dist/chunks/cli-0.6.8-q3txjpb9.mjs +2 -0
- package/dist/chunks/cli-0.6.8-qg557m5n.mjs +2 -0
- package/dist/chunks/cli-0.6.8-r1yjkwda.mjs +2 -0
- package/dist/chunks/cli-0.6.8-r42pr0w8.mjs +2 -0
- package/dist/chunks/cli-0.6.8-r9jgzx43.mjs +2 -0
- package/dist/chunks/cli-0.6.8-rewjhmpq.mjs +133 -0
- package/dist/chunks/cli-0.6.8-reyv7f1y.mjs +9 -0
- package/dist/chunks/cli-0.6.8-rftvcrp4.mjs +2 -0
- package/dist/chunks/cli-0.6.8-rw4y8s92.mjs +2 -0
- package/dist/chunks/cli-0.6.8-s0geqcvz.mjs +2 -0
- package/dist/chunks/cli-0.6.8-s0s7zs2a.mjs +24 -0
- package/dist/chunks/cli-0.6.8-s6yd5ybz.mjs +2 -0
- package/dist/chunks/cli-0.6.8-s98bd3q2.mjs +2 -0
- package/dist/chunks/cli-0.6.8-sn09eprm.mjs +2 -0
- package/dist/chunks/cli-0.6.8-sz1r1tvd.mjs +2 -0
- package/dist/chunks/cli-0.6.8-sznj03wy.mjs +3 -0
- package/dist/chunks/cli-0.6.8-t1kd2tg3.mjs +2 -0
- package/dist/chunks/cli-0.6.8-t3th9jjg.mjs +2 -0
- package/dist/chunks/cli-0.6.8-ta6qf4we.mjs +20 -0
- package/dist/chunks/cli-0.6.8-tb4rrntr.mjs +16 -0
- package/dist/chunks/cli-0.6.8-tewmm6rt.mjs +2 -0
- package/dist/chunks/cli-0.6.8-tnqnaqpx.mjs +3 -0
- package/dist/chunks/cli-0.6.8-tzmx6gz0.mjs +12 -0
- package/dist/chunks/cli-0.6.8-tztjt9fh.mjs +4 -0
- package/dist/chunks/cli-0.6.8-v582jfcn.mjs +4 -0
- package/dist/chunks/cli-0.6.8-v9wg3pvs.mjs +2 -0
- package/dist/chunks/cli-0.6.8-vcpys5fx.mjs +2 -0
- package/dist/chunks/cli-0.6.8-vf9cagcj.mjs +59 -0
- package/dist/chunks/cli-0.6.8-vpaw67v2.mjs +193 -0
- package/dist/chunks/cli-0.6.8-vqhtd9ay.mjs +2 -0
- package/dist/chunks/cli-0.6.8-vseqtday.mjs +21 -0
- package/dist/chunks/cli-0.6.8-vwhx9xjq.mjs +2 -0
- package/dist/chunks/cli-0.6.8-wdjsawer.mjs +3 -0
- package/dist/chunks/cli-0.6.8-wdq4r1nd.mjs +2 -0
- package/dist/chunks/cli-0.6.8-wfy4hqb2.mjs +2 -0
- package/dist/chunks/cli-0.6.8-wh069qak.mjs +2 -0
- package/dist/chunks/cli-0.6.8-wj4r5nwg.mjs +2 -0
- package/dist/chunks/cli-0.6.8-wnjmpcsm.mjs +2 -0
- package/dist/chunks/cli-0.6.8-x87v5pq1.mjs +45 -0
- package/dist/chunks/cli-0.6.8-xj1ptmgh.mjs +2 -0
- package/dist/chunks/cli-0.6.8-y0p6bqj6.mjs +2 -0
- package/dist/chunks/cli-0.6.8-y2c1w6bt.mjs +42 -0
- package/dist/chunks/cli-0.6.8-y3hnde8e.mjs +2 -0
- package/dist/chunks/cli-0.6.8-yvfgg1kg.mjs +2 -0
- package/dist/chunks/cli-0.6.8-yvt0y45m.mjs +28 -0
- package/dist/chunks/cli-0.6.8-yztx4k12.mjs +18 -0
- package/dist/chunks/cli-0.6.8-z4wpf0ah.mjs +2 -0
- package/dist/chunks/client-0.6.8-8kz2zw01.mjs +1 -0
- package/dist/chunks/color-0.6.8-jhpvc051.mjs +1 -0
- package/dist/chunks/compact-0.6.8-0gcf2ncc.mjs +3 -0
- package/dist/chunks/config-0.6.8-dxk5q3qr.mjs +1 -0
- package/dist/chunks/config-0.6.8-xdt0r55h.mjs +1 -0
- package/dist/chunks/constants-0.6.8-49aaqy22.mjs +1 -0
- package/dist/chunks/context-0.6.8-tavd1s8s.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.6.8-6vagjsgf.mjs +1 -0
- package/dist/chunks/conversation-0.6.8-10fvebzj.mjs +1 -0
- package/dist/chunks/copilotHeaders-0.6.8-fqca0jf7.mjs +1 -0
- package/dist/chunks/copy-0.6.8-rhzw5vyv.mjs +9 -0
- package/dist/chunks/cost-0.6.8-w3qf0kpn.mjs +1 -0
- package/dist/chunks/createSSHSession-0.6.8-r7cw30nn.mjs +1 -0
- package/dist/chunks/createSession-0.6.8-vwbe80jv.mjs +1 -0
- package/dist/chunks/debug-0.6.8-pzm167m4.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.6.8-nnx5s7ws.mjs +1367 -0
- package/dist/chunks/desktop-0.6.8-ef8y3qjr.mjs +1 -0
- package/dist/chunks/detectRepository-0.6.8-3ayp37pd.mjs +1 -0
- package/dist/chunks/detection-0.6.8-pdrw5y2x.mjs +1 -0
- package/dist/chunks/diff-0.6.8-fxk9tzbd.mjs +1 -0
- package/dist/chunks/doctor-0.6.8-ajzrj1jx.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.6.8-w72jdksp.mjs +1 -0
- package/dist/chunks/earlyInput-0.6.8-ca9mzfzf.mjs +1 -0
- package/dist/chunks/effort-0.6.8-e6xp1ycv.mjs +10 -0
- package/dist/chunks/envLessBridgeConfig-0.6.8-9vz6evg2.mjs +1 -0
- package/dist/chunks/envUtils-0.6.8-vq8np9fm.mjs +1 -0
- package/dist/chunks/environmentSelection-0.6.8-mf3acav0.mjs +1 -0
- package/dist/chunks/environments-0.6.8-k7rgvnpj.mjs +1 -0
- package/dist/chunks/errors-0.6.8-svsjkqng.mjs +1 -0
- package/dist/chunks/exampleCommands-0.6.8-7qjc7y64.mjs +1 -0
- package/dist/chunks/exit-0.6.8-507vwyf9.mjs +1 -0
- package/dist/chunks/explorer-0.6.8-25m08xd0.mjs +1 -0
- package/dist/chunks/export-0.6.8-w1yn5sa3.mjs +2 -0
- package/dist/chunks/extra-usage-0.6.8-sahj9pr6.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.6.8-3r3nczjf.mjs +1 -0
- package/dist/chunks/fast-0.6.8-jpkz65vs.mjs +1 -0
- package/dist/chunks/feedback-0.6.8-5w9gvrc0.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.6.8-b2w3hkeb.mjs +1 -0
- package/dist/chunks/git-0.6.8-drry71tr.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.6.8-4phd2tn9.mjs +1 -0
- package/dist/chunks/goal-0.6.8-vp972bd7.mjs +4 -0
- package/dist/chunks/grove-0.6.8-9dr81tf3.mjs +1 -0
- package/dist/chunks/growthbook-0.6.8-fcwcztdp.mjs +1 -0
- package/dist/chunks/headless-0.6.8-m2jzbvg9.mjs +2 -0
- package/dist/chunks/heapdump-0.6.8-awp81a34.mjs +6 -0
- package/dist/chunks/help-0.6.8-hbsb7av5.mjs +1 -0
- package/dist/chunks/hookChains-0.6.8-04mbkzxt.mjs +3 -0
- package/dist/chunks/hooks-0.6.8-6x1xc1rx.mjs +1 -0
- package/dist/chunks/hooks-0.6.8-80h8h076.mjs +79 -0
- package/dist/chunks/ide-0.6.8-7vbxnmby.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.6.8-8m23kpm0.mjs +1 -0
- package/dist/chunks/inboundAttachments-0.6.8-wcyd47px.mjs +1 -0
- package/dist/chunks/index-0.6.8-1q3w68f1.mjs +1 -0
- package/dist/chunks/index-0.6.8-1w8hv7a8.mjs +1 -0
- package/dist/chunks/index-0.6.8-2sp7v8r9.mjs +2 -0
- package/dist/chunks/index-0.6.8-3782mjyy.mjs +1 -0
- package/dist/chunks/index-0.6.8-6eeqw069.mjs +1 -0
- package/dist/chunks/index-0.6.8-7dmsg46k.mjs +5 -0
- package/dist/chunks/index-0.6.8-7prxs8kr.mjs +1 -0
- package/dist/chunks/index-0.6.8-azcjsyp8.mjs +1 -0
- package/dist/chunks/index-0.6.8-ccq5xheq.mjs +2 -0
- package/dist/chunks/index-0.6.8-dkdk0g9j.mjs +1 -0
- package/dist/chunks/index-0.6.8-dv8qe20v.mjs +1 -0
- package/dist/chunks/index-0.6.8-fsfq8ekm.mjs +1 -0
- package/dist/chunks/index-0.6.8-k3r9pz8v.mjs +1 -0
- package/dist/chunks/index-0.6.8-ke45hjqk.mjs +1 -0
- package/dist/chunks/index-0.6.8-kvjzqm75.mjs +9 -0
- package/dist/chunks/index-0.6.8-m9y8nqmz.mjs +30 -0
- package/dist/chunks/index-0.6.8-mc1wvtc8.mjs +1 -0
- package/dist/chunks/index-0.6.8-svxnm6ph.mjs +1 -0
- package/dist/chunks/index-0.6.8-vvg8dg6z.mjs +9 -0
- package/dist/chunks/index-0.6.8-wec8yb9e.mjs +1 -0
- package/dist/chunks/index-0.6.8-y535r49s.mjs +1 -0
- package/dist/chunks/index-0.6.8-yf6035wh.mjs +1 -0
- package/dist/chunks/index-0.6.8-zcf4qg35.mjs +1 -0
- package/dist/chunks/init-0.6.8-brwjmnyg.mjs +1 -0
- package/dist/chunks/initReplBridge-0.6.8-5jcj5ax3.mjs +1 -0
- package/dist/chunks/ink-0.6.8-cts7p4b7.mjs +1 -0
- package/dist/chunks/insights-0.6.8-h5b5ve9h.mjs +870 -0
- package/dist/chunks/install-0.6.8-e3gdw6r9.mjs +1 -0
- package/dist/chunks/install-github-app-0.6.8-hh3mzyfs.mjs +149 -0
- package/dist/chunks/install-slack-app-0.6.8-n4pb88x6.mjs +1 -0
- package/dist/chunks/instrumentation-0.6.8-67ewcnwm.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.6.8-ryjx3tbw.mjs +1 -0
- package/dist/chunks/keybindings-0.6.8-8v6q91kq.mjs +2 -0
- package/dist/chunks/knowledge-0.6.8-dn40ytkg.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.6.8-xx081act.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.6.8-vhh6hfk9.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.8-p15wjdk7.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.8-tjd9ekbf.mjs +1 -0
- package/dist/chunks/log-0.6.8-srvm2n7a.mjs +1 -0
- package/dist/chunks/main-0.6.8-5mcvdtte.mjs +1 -0
- package/dist/chunks/managedEnv-0.6.8-3m2x6zgp.mjs +1 -0
- package/dist/chunks/mcp-0.6.8-3dztd40j.mjs +17 -0
- package/dist/chunks/mcp-0.6.8-5msk2pvy.mjs +4 -0
- package/dist/chunks/mcp-0.6.8-nxyt74pa.mjs +1 -0
- package/dist/chunks/mcpb-0.6.8-v8q530w6.mjs +1 -0
- package/dist/chunks/memory-0.6.8-1pkjxmpb.mjs +3 -0
- package/dist/chunks/model-0.6.8-00wgempd.mjs +2 -0
- package/dist/chunks/model-0.6.8-99m80ayt.mjs +1 -0
- package/dist/chunks/node-0.6.8-b8rvxhkh.mjs +12 -0
- package/dist/chunks/oauth-0.6.8-c2r6j7j0.mjs +1 -0
- package/dist/chunks/openaiShim-0.6.8-z736wyft.mjs +14 -0
- package/dist/chunks/output-style-0.6.8-586m3zta.mjs +1 -0
- package/dist/chunks/package-FMOR3ELU-0.6.8-xe49mr3f.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.6.8-wawy5rxc.mjs +1 -0
- package/dist/chunks/parser-0.6.8-zjc9fwme.mjs +1 -0
- package/dist/chunks/passes-0.6.8-mn4rnfm9.mjs +1 -0
- package/dist/chunks/permissions-0.6.8-jdgt2sv8.mjs +1 -0
- package/dist/chunks/permissions-0.6.8-z6ybrhdp.mjs +3 -0
- package/dist/chunks/plan-0.6.8-9h16p6t0.mjs +1 -0
- package/dist/chunks/plist-0.6.8-ras7a7wc.mjs +1 -0
- package/dist/chunks/plugin-0.6.8-0p0a1k4b.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.6.8-ff7hmaes.mjs +1 -0
- package/dist/chunks/plugins-0.6.8-fbp29vr3.mjs +9 -0
- package/dist/chunks/preActionHook-0.6.8-1qt932q1.mjs +2 -0
- package/dist/chunks/print-0.6.8-tm9918yr.mjs +57 -0
- package/dist/chunks/privacy-settings-0.6.8-5e2yd64z.mjs +1 -0
- package/dist/chunks/process-0.6.8-mqtgb3cx.mjs +1 -0
- package/dist/chunks/processBashCommand-0.6.8-xtx2v6da.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.6.8-xgvzddwk.mjs +9 -0
- package/dist/chunks/prompt-0.6.8-57r1r589.mjs +1 -0
- package/dist/chunks/prompt-0.6.8-npwq825f.mjs +1 -0
- package/dist/chunks/prompts-0.6.8-ta5q8t8a.mjs +1 -0
- package/dist/chunks/protocolHandler-0.6.8-mf45pq35.mjs +13 -0
- package/dist/chunks/provider-0.6.8-pemvh2k5.mjs +2 -0
- package/dist/chunks/providerProfiles-0.6.8-t4rbsxrj.mjs +1 -0
- package/dist/chunks/providerValidation-0.6.8-jvfz53fe.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.6.8-egm6fsa2.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.6.8-c33k54ns.mjs +34 -0
- package/dist/chunks/registry-0.6.8-v7m02nk2.mjs +1 -0
- package/dist/chunks/release-notes-0.6.8-wwv5r86y.mjs +5 -0
- package/dist/chunks/reload-plugins-0.6.8-72v51g0k.mjs +2 -0
- package/dist/chunks/remote-env-0.6.8-gn37jake.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.6.8-7cd0x0sw.mjs +1 -0
- package/dist/chunks/remoteSession-0.6.8-tr5ph176.mjs +1 -0
- package/dist/chunks/rename-0.6.8-8jb90c48.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.6.8-znyhk31n.mjs +1 -0
- package/dist/chunks/replLauncher-0.6.8-we5yqk5n.mjs +1 -0
- package/dist/chunks/resume-0.6.8-x8vd5cdx.mjs +2 -0
- package/dist/chunks/rewind-0.6.8-dg7aawme.mjs +1 -0
- package/dist/chunks/rootOptions-0.6.8-ezrfenmz.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.6.8-cfj9xd48.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.6.8-mffa8yr5.mjs +1 -0
- package/dist/chunks/session-0.6.8-6pyjb4jn.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.6.8-e3h9zvrp.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.6.8-5q6x4jx9.mjs +1 -0
- package/dist/chunks/sessionStorage-0.6.8-3tvaj86g.mjs +1 -0
- package/dist/chunks/settings-0.6.8-m72ttv29.mjs +1 -0
- package/dist/chunks/setup-0.6.8-f3y64bte.mjs +5 -0
- package/dist/chunks/sinks-0.6.8-t8e55v3b.mjs +1 -0
- package/dist/chunks/skills-0.6.8-17ktqb7y.mjs +1 -0
- package/dist/chunks/startupProfiler-0.6.8-qj52vcw4.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.6.8-51vrdbj6.mjs +1 -0
- package/dist/chunks/state-0.6.8-pwxe3dfk.mjs +1 -0
- package/dist/chunks/stats-0.6.8-fc152nhd.mjs +6 -0
- package/dist/chunks/status-0.6.8-bjgdnsz8.mjs +1 -0
- package/dist/chunks/stickers-0.6.8-dndn2kp3.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.6.8-zzdkzkpq.mjs +1 -0
- package/dist/chunks/tasks-0.6.8-zjm7dnep.mjs +1 -0
- package/dist/chunks/teamHelpers-0.6.8-prrabxj1.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.6.8-21bj5sj0.mjs +1 -0
- package/dist/chunks/teleport-0.6.8-jvcjg7d7.mjs +1 -0
- package/dist/chunks/terminalSetup-0.6.8-9y4235w1.mjs +1 -0
- package/dist/chunks/theme-0.6.8-wvdhk95e.mjs +1 -0
- package/dist/chunks/thinkback-0.6.8-8dn71z5r.mjs +1 -0
- package/dist/chunks/thinkback-play-0.6.8-agrskwfn.mjs +1 -0
- package/dist/chunks/toolPool-0.6.8-90318hbv.mjs +1 -0
- package/dist/chunks/toolSearch-0.6.8-eyr73a52.mjs +1 -0
- package/dist/chunks/tools-0.6.8-mdjqydpm.mjs +1 -0
- package/dist/chunks/trustedDevice-0.6.8-b7fae7s5.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.6.8-sgzhfavm.mjs +69 -0
- package/dist/chunks/types-0.6.8-4gf5x9jb.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-0.6.8-5cdef89y.mjs +4 -0
- package/dist/chunks/update-0.6.8-hv3gahmz.mjs +86 -0
- package/dist/chunks/upgrade-0.6.8-w044cw9y.mjs +1 -0
- package/dist/chunks/upload-0.6.8-er3nq389.mjs +7 -0
- package/dist/chunks/upstreamproxy-0.6.8-zfg8pv8q.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.6.8-1q2hrhb3.mjs +1 -0
- package/dist/chunks/usage-0.6.8-pc8gdf6b.mjs +1 -0
- package/dist/chunks/util-0.6.8-rt8y16fm.mjs +1 -0
- package/dist/chunks/utils-0.6.8-8nsbk9w4.mjs +1 -0
- package/dist/chunks/vim-0.6.8-y1wq10k6.mjs +1 -0
- package/dist/chunks/watcher-0.6.8-hq0y1y68.mjs +1 -0
- package/dist/chunks/wiki-0.6.8-jqbmvz1r.mjs +132 -0
- package/dist/chunks/worktree-0.6.8-hn8ac7q6.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.6.8-k0yys6b0.mjs +1 -0
- package/dist/chunks/wrapper-0.6.8-r1wx821t.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.6.7-f7t2mgqb.mjs +0 -1
- package/dist/chunks/App-0.6.7-9x70f9jb.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.6.7-2tb75j23.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.6.7-afdtan0w.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.6.7-pyzr75b3.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.6.7-nfncnj0q.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.7-n2e142wm.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.6.7-phc7vznz.mjs +0 -1
- package/dist/chunks/DiffDialog-0.6.7-s9x3mya9.mjs +0 -7
- package/dist/chunks/Doctor-0.6.7-smded214.mjs +0 -1
- package/dist/chunks/ExplorerDialog-0.6.7-4hy6ry9q.mjs +0 -6
- package/dist/chunks/Grove-0.6.7-ahyrvw0t.mjs +0 -1
- package/dist/chunks/ITermBackend-0.6.7-fcnt914g.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.6.7-00bjfj0e.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.6.7-13q0q9de.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.6.7-858rv0qw.mjs +0 -1
- package/dist/chunks/Onboarding-0.6.7-dt8tdzek.mjs +0 -1
- package/dist/chunks/ProviderManager-0.6.7-6v39p38e.mjs +0 -1
- package/dist/chunks/REPL-0.6.7-q0nc0w32.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.6.7-pdhahpga.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.6.7-m392exrv.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.6.7-1dr1gjn2.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.7-sv7jdzae.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.6.7-p36an880.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.6.7-aefcv1eq.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.6.7-ff2nyjj7.mjs +0 -1
- package/dist/chunks/TrustDialog-0.6.7-seknmzsh.mjs +0 -1
- package/dist/chunks/activeProvider-0.6.7-0w1yte74.mjs +0 -1
- package/dist/chunks/add-dir-0.6.7-85gjr3q5.mjs +0 -1
- package/dist/chunks/agents-0.6.7-bwmzpbmy.mjs +0 -110
- package/dist/chunks/agents-0.6.7-zctgtzc9.mjs +0 -3
- package/dist/chunks/api-0.6.7-mfw9d6jg.mjs +0 -1
- package/dist/chunks/asciicast-0.6.7-tecyvajs.mjs +0 -1
- package/dist/chunks/assistant-0.6.7-0krnapvp.mjs +0 -1
- package/dist/chunks/auth-0.6.7-vsm2s3fs.mjs +0 -1
- package/dist/chunks/auth-0.6.7-y4kcahyj.mjs +0 -1
- package/dist/chunks/autoMode-0.6.7-ysajwbz7.mjs +0 -48
- package/dist/chunks/autoUpdater-0.6.7-ztgvnr84.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.6.7-hyrc03zs.mjs +0 -1
- package/dist/chunks/branch-0.6.7-hs9qva1m.mjs +0 -4
- package/dist/chunks/bridge-0.6.7-6tz3q7eh.mjs +0 -2
- package/dist/chunks/bridgeConfig-0.6.7-nb52xna6.mjs +0 -1
- package/dist/chunks/bridgeEnabled-0.6.7-a4xw7wv8.mjs +0 -1
- package/dist/chunks/bridgeMain-0.6.7-tdh5qxzb.mjs +0 -88
- package/dist/chunks/bridgePointer-0.6.7-dh27kqnd.mjs +0 -1
- package/dist/chunks/btw-0.6.7-7mwpkxc8.mjs +0 -1
- package/dist/chunks/buddy-0.6.7-nq3yjbfx.mjs +0 -3
- package/dist/chunks/cacache-0.6.7-g9830zbt.mjs +0 -1
- package/dist/chunks/cache-probe-0.6.7-f97mkfrz.mjs +0 -21
- package/dist/chunks/cacheStats-0.6.7-cajakjmn.mjs +0 -4
- package/dist/chunks/caches-0.6.7-j5y9mwvb.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.6.7-86f3d3gt.mjs +0 -1
- package/dist/chunks/claudemd-0.6.7-bhnp37nv.mjs +0 -1
- package/dist/chunks/clear-0.6.7-b2weanr6.mjs +0 -1
- package/dist/chunks/clearTerminal-0.6.7-dtmyqs1m.mjs +0 -1
- package/dist/chunks/cli-0.6.7-09aymh1b.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0a04vzzk.mjs +0 -28
- package/dist/chunks/cli-0.6.7-0a406bqw.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0c5ban8m.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0ecsc6v5.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0eeyfjk8.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0fc4sq47.mjs +0 -42
- package/dist/chunks/cli-0.6.7-0ncx2c9t.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0qzj0d6r.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0t1e9vab.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0t5ssfvj.mjs +0 -2
- package/dist/chunks/cli-0.6.7-0z5z87v6.mjs +0 -1
- package/dist/chunks/cli-0.6.7-105zxdx5.mjs +0 -2
- package/dist/chunks/cli-0.6.7-11a89p5q.mjs +0 -2
- package/dist/chunks/cli-0.6.7-15mn3n46.mjs +0 -2
- package/dist/chunks/cli-0.6.7-17dafwxd.mjs +0 -2
- package/dist/chunks/cli-0.6.7-1jmt8r8f.mjs +0 -7
- package/dist/chunks/cli-0.6.7-1mvkcg2k.mjs +0 -2
- package/dist/chunks/cli-0.6.7-1nxk10ra.mjs +0 -12
- package/dist/chunks/cli-0.6.7-1v8p5kj1.mjs +0 -2
- package/dist/chunks/cli-0.6.7-1vdk7j2f.mjs +0 -2
- package/dist/chunks/cli-0.6.7-1wy6neqr.mjs +0 -2
- package/dist/chunks/cli-0.6.7-26ph2hrd.mjs +0 -2
- package/dist/chunks/cli-0.6.7-26tkvqk3.mjs +0 -2
- package/dist/chunks/cli-0.6.7-29j5a7qt.mjs +0 -2
- package/dist/chunks/cli-0.6.7-2kkhf54p.mjs +0 -133
- package/dist/chunks/cli-0.6.7-2rppvwcw.mjs +0 -2
- package/dist/chunks/cli-0.6.7-2rxv4h2n.mjs +0 -5348
- package/dist/chunks/cli-0.6.7-30y87jp9.mjs +0 -3
- package/dist/chunks/cli-0.6.7-31vjvqm0.mjs +0 -2
- package/dist/chunks/cli-0.6.7-37a1n221.mjs +0 -2
- package/dist/chunks/cli-0.6.7-393mf77x.mjs +0 -2
- package/dist/chunks/cli-0.6.7-3anc14y3.mjs +0 -2
- package/dist/chunks/cli-0.6.7-3nk6g2dp.mjs +0 -2
- package/dist/chunks/cli-0.6.7-3rkngb3p.mjs +0 -2
- package/dist/chunks/cli-0.6.7-3w59rctc.mjs +0 -2
- package/dist/chunks/cli-0.6.7-3zgmbaw1.mjs +0 -2
- package/dist/chunks/cli-0.6.7-417g4eq7.mjs +0 -2
- package/dist/chunks/cli-0.6.7-4723xt8g.mjs +0 -4
- package/dist/chunks/cli-0.6.7-4qezg54y.mjs +0 -2
- package/dist/chunks/cli-0.6.7-4qv89taa.mjs +0 -2
- package/dist/chunks/cli-0.6.7-4r8s96as.mjs +0 -18
- package/dist/chunks/cli-0.6.7-4rswb0s0.mjs +0 -2
- package/dist/chunks/cli-0.6.7-4y6eh566.mjs +0 -2
- package/dist/chunks/cli-0.6.7-568qkrtn.mjs +0 -2
- package/dist/chunks/cli-0.6.7-5jkermx7.mjs +0 -2
- package/dist/chunks/cli-0.6.7-5tksrgt5.mjs +0 -2
- package/dist/chunks/cli-0.6.7-5y4c00t6.mjs +0 -2
- package/dist/chunks/cli-0.6.7-6ezmhmp0.mjs +0 -67
- package/dist/chunks/cli-0.6.7-6fh5e7r0.mjs +0 -2
- package/dist/chunks/cli-0.6.7-79a1ryqj.mjs +0 -17
- package/dist/chunks/cli-0.6.7-7eze8zyh.mjs +0 -2
- package/dist/chunks/cli-0.6.7-7hqt2520.mjs +0 -2
- package/dist/chunks/cli-0.6.7-7jnmn6s1.mjs +0 -2
- package/dist/chunks/cli-0.6.7-7p1zvk1f.mjs +0 -4
- package/dist/chunks/cli-0.6.7-7q89ngt8.mjs +0 -4
- package/dist/chunks/cli-0.6.7-7wfcpd35.mjs +0 -5
- package/dist/chunks/cli-0.6.7-895afk0q.mjs +0 -39
- package/dist/chunks/cli-0.6.7-8hg68yde.mjs +0 -3
- package/dist/chunks/cli-0.6.7-8npy06pd.mjs +0 -2
- package/dist/chunks/cli-0.6.7-8nt66wx8.mjs +0 -2
- package/dist/chunks/cli-0.6.7-8rckbxrq.mjs +0 -2
- package/dist/chunks/cli-0.6.7-94jxfcfx.mjs +0 -2
- package/dist/chunks/cli-0.6.7-986a2c9a.mjs +0 -20
- package/dist/chunks/cli-0.6.7-9ewdkgf6.mjs +0 -2
- package/dist/chunks/cli-0.6.7-9qjmzyph.mjs +0 -59
- package/dist/chunks/cli-0.6.7-9zvbhkwn.mjs +0 -2
- package/dist/chunks/cli-0.6.7-a49h84jx.mjs +0 -2
- package/dist/chunks/cli-0.6.7-a8d5a7gy.mjs +0 -2
- package/dist/chunks/cli-0.6.7-ad305tsz.mjs +0 -2
- package/dist/chunks/cli-0.6.7-aj0r6e7f.mjs +0 -2
- package/dist/chunks/cli-0.6.7-ajy2kcrw.mjs +0 -4
- package/dist/chunks/cli-0.6.7-askr0gdn.mjs +0 -12
- package/dist/chunks/cli-0.6.7-axgab18a.mjs +0 -2
- package/dist/chunks/cli-0.6.7-b6ssk5st.mjs +0 -50
- package/dist/chunks/cli-0.6.7-bf5gjw6d.mjs +0 -4
- package/dist/chunks/cli-0.6.7-bgtwgprg.mjs +0 -2
- package/dist/chunks/cli-0.6.7-bvke740f.mjs +0 -58
- package/dist/chunks/cli-0.6.7-bvsyxh29.mjs +0 -45
- package/dist/chunks/cli-0.6.7-c9drqby8.mjs +0 -5
- package/dist/chunks/cli-0.6.7-cc1w6ch6.mjs +0 -2
- package/dist/chunks/cli-0.6.7-csw6s95q.mjs +0 -2
- package/dist/chunks/cli-0.6.7-cykfmytk.mjs +0 -2
- package/dist/chunks/cli-0.6.7-d0hce9x9.mjs +0 -2
- package/dist/chunks/cli-0.6.7-d513frqa.mjs +0 -2
- package/dist/chunks/cli-0.6.7-d6md6s9z.mjs +0 -2
- package/dist/chunks/cli-0.6.7-dn51gm8s.mjs +0 -2
- package/dist/chunks/cli-0.6.7-dzhzeyee.mjs +0 -2
- package/dist/chunks/cli-0.6.7-e96htnt8.mjs +0 -2
- package/dist/chunks/cli-0.6.7-egf9dysz.mjs +0 -2
- package/dist/chunks/cli-0.6.7-ej85ys91.mjs +0 -133
- package/dist/chunks/cli-0.6.7-ery7wb2b.mjs +0 -25
- package/dist/chunks/cli-0.6.7-ewn2cwb7.mjs +0 -6
- package/dist/chunks/cli-0.6.7-ex9w59mx.mjs +0 -3
- package/dist/chunks/cli-0.6.7-fbgdkq7p.mjs +0 -2
- package/dist/chunks/cli-0.6.7-fbkbnkmx.mjs +0 -2
- package/dist/chunks/cli-0.6.7-g3bdwra6.mjs +0 -12
- package/dist/chunks/cli-0.6.7-g4r471w6.mjs +0 -15
- package/dist/chunks/cli-0.6.7-ggbx3zye.mjs +0 -21
- package/dist/chunks/cli-0.6.7-gj1zv8je.mjs +0 -2
- package/dist/chunks/cli-0.6.7-gp1x8mcf.mjs +0 -2
- package/dist/chunks/cli-0.6.7-hcp3t5gk.mjs +0 -2
- package/dist/chunks/cli-0.6.7-hd512c6x.mjs +0 -2
- package/dist/chunks/cli-0.6.7-hsf1v92p.mjs +0 -2
- package/dist/chunks/cli-0.6.7-hsxghzzr.mjs +0 -2
- package/dist/chunks/cli-0.6.7-hvjb13p8.mjs +0 -2
- package/dist/chunks/cli-0.6.7-hxpbsv1t.mjs +0 -2
- package/dist/chunks/cli-0.6.7-jayzyra3.mjs +0 -2
- package/dist/chunks/cli-0.6.7-jry3hr0z.mjs +0 -18
- package/dist/chunks/cli-0.6.7-jt8cfe25.mjs +0 -3
- package/dist/chunks/cli-0.6.7-jvyry09r.mjs +0 -3
- package/dist/chunks/cli-0.6.7-k0h6t7d8.mjs +0 -3
- package/dist/chunks/cli-0.6.7-k69edthm.mjs +0 -2
- package/dist/chunks/cli-0.6.7-k7qq705k.mjs +0 -2
- package/dist/chunks/cli-0.6.7-kfm63wm2.mjs +0 -17
- package/dist/chunks/cli-0.6.7-m5a4md2p.mjs +0 -24
- package/dist/chunks/cli-0.6.7-m7f7sbcz.mjs +0 -3
- package/dist/chunks/cli-0.6.7-m9gs7avb.mjs +0 -2
- package/dist/chunks/cli-0.6.7-me667czz.mjs +0 -2
- package/dist/chunks/cli-0.6.7-mfw4bdkw.mjs +0 -2
- package/dist/chunks/cli-0.6.7-mgzf6br3.mjs +0 -2
- package/dist/chunks/cli-0.6.7-mh4wva6p.mjs +0 -2
- package/dist/chunks/cli-0.6.7-mjkd8p19.mjs +0 -16
- package/dist/chunks/cli-0.6.7-mq2xzatd.mjs +0 -34
- package/dist/chunks/cli-0.6.7-mr3rwnv4.mjs +0 -2
- package/dist/chunks/cli-0.6.7-msab4rsa.mjs +0 -3
- package/dist/chunks/cli-0.6.7-mxbbt73y.mjs +0 -2
- package/dist/chunks/cli-0.6.7-n4hcg1jw.mjs +0 -2
- package/dist/chunks/cli-0.6.7-n7v99j1c.mjs +0 -3
- package/dist/chunks/cli-0.6.7-n9b6fykd.mjs +0 -2
- package/dist/chunks/cli-0.6.7-ndz1ybhe.mjs +0 -2
- package/dist/chunks/cli-0.6.7-nembqgq6.mjs +0 -4
- package/dist/chunks/cli-0.6.7-njtz9caz.mjs +0 -2
- package/dist/chunks/cli-0.6.7-nkk7dy60.mjs +0 -3
- package/dist/chunks/cli-0.6.7-nkngqbzm.mjs +0 -2
- package/dist/chunks/cli-0.6.7-nmasp64q.mjs +0 -2
- package/dist/chunks/cli-0.6.7-nsaek892.mjs +0 -2
- package/dist/chunks/cli-0.6.7-nyj8vj8s.mjs +0 -2
- package/dist/chunks/cli-0.6.7-p01n2g5q.mjs +0 -3
- package/dist/chunks/cli-0.6.7-p0s9xa7d.mjs +0 -2
- package/dist/chunks/cli-0.6.7-p140ghs7.mjs +0 -4
- package/dist/chunks/cli-0.6.7-p1s9dq5f.mjs +0 -2
- package/dist/chunks/cli-0.6.7-p76h2hj4.mjs +0 -193
- package/dist/chunks/cli-0.6.7-p77b3p80.mjs +0 -4
- package/dist/chunks/cli-0.6.7-p8qqm0e2.mjs +0 -10
- package/dist/chunks/cli-0.6.7-pacmjx4t.mjs +0 -6
- package/dist/chunks/cli-0.6.7-pd4qacrw.mjs +0 -2
- package/dist/chunks/cli-0.6.7-pt6c37tf.mjs +0 -2
- package/dist/chunks/cli-0.6.7-pz0hvq11.mjs +0 -2
- package/dist/chunks/cli-0.6.7-q2qk5c16.mjs +0 -2
- package/dist/chunks/cli-0.6.7-q7rhxc3k.mjs +0 -2
- package/dist/chunks/cli-0.6.7-qcc8znjg.mjs +0 -2
- package/dist/chunks/cli-0.6.7-qkzax44g.mjs +0 -2
- package/dist/chunks/cli-0.6.7-qnpad07x.mjs +0 -15
- package/dist/chunks/cli-0.6.7-qwv7z40j.mjs +0 -2
- package/dist/chunks/cli-0.6.7-qz4f20t8.mjs +0 -9
- package/dist/chunks/cli-0.6.7-r2phypw4.mjs +0 -2
- package/dist/chunks/cli-0.6.7-r4494gs0.mjs +0 -2
- package/dist/chunks/cli-0.6.7-r4njgjve.mjs +0 -2
- package/dist/chunks/cli-0.6.7-r57fq6gw.mjs +0 -4
- package/dist/chunks/cli-0.6.7-rcx8mb9z.mjs +0 -2
- package/dist/chunks/cli-0.6.7-rgfh878z.mjs +0 -2
- package/dist/chunks/cli-0.6.7-rp0ejp3a.mjs +0 -2
- package/dist/chunks/cli-0.6.7-rq1v6xnn.mjs +0 -2
- package/dist/chunks/cli-0.6.7-rqfxfpg7.mjs +0 -2
- package/dist/chunks/cli-0.6.7-sdxzxe1y.mjs +0 -2
- package/dist/chunks/cli-0.6.7-sea2kbnt.mjs +0 -2
- package/dist/chunks/cli-0.6.7-sfc53wbe.mjs +0 -2
- package/dist/chunks/cli-0.6.7-sfvrze2k.mjs +0 -2
- package/dist/chunks/cli-0.6.7-sh9fbs9v.mjs +0 -2
- package/dist/chunks/cli-0.6.7-sw46gwfw.mjs +0 -2
- package/dist/chunks/cli-0.6.7-sx1q6ybw.mjs +0 -2
- package/dist/chunks/cli-0.6.7-t4vdc40t.mjs +0 -2
- package/dist/chunks/cli-0.6.7-tb1cvasf.mjs +0 -5
- package/dist/chunks/cli-0.6.7-tg6w7ex7.mjs +0 -8
- package/dist/chunks/cli-0.6.7-tnrt8ht0.mjs +0 -2
- package/dist/chunks/cli-0.6.7-tqfm4g33.mjs +0 -2
- package/dist/chunks/cli-0.6.7-tthw17vc.mjs +0 -6
- package/dist/chunks/cli-0.6.7-v1emd8z7.mjs +0 -4
- package/dist/chunks/cli-0.6.7-v65b4qmr.mjs +0 -2
- package/dist/chunks/cli-0.6.7-v82zs0dw.mjs +0 -6
- package/dist/chunks/cli-0.6.7-vd2t62t5.mjs +0 -2
- package/dist/chunks/cli-0.6.7-vdks0afp.mjs +0 -3
- package/dist/chunks/cli-0.6.7-vs95ynh5.mjs +0 -2
- package/dist/chunks/cli-0.6.7-vy64g49j.mjs +0 -2
- package/dist/chunks/cli-0.6.7-w2amr6nt.mjs +0 -2
- package/dist/chunks/cli-0.6.7-wbqq7cmg.mjs +0 -15
- package/dist/chunks/cli-0.6.7-wjg0q7hk.mjs +0 -2
- package/dist/chunks/cli-0.6.7-wyped9p6.mjs +0 -2
- package/dist/chunks/cli-0.6.7-xjbwt2hg.mjs +0 -2
- package/dist/chunks/cli-0.6.7-xzf3g8pg.mjs +0 -3
- package/dist/chunks/cli-0.6.7-y6pqw2vj.mjs +0 -2
- package/dist/chunks/cli-0.6.7-ybk07j40.mjs +0 -2
- package/dist/chunks/cli-0.6.7-z4dw5tyz.mjs +0 -2
- package/dist/chunks/cli-0.6.7-z7jett9s.mjs +0 -2
- package/dist/chunks/cli-0.6.7-zwd8kz5t.mjs +0 -24
- package/dist/chunks/client-0.6.7-445v9987.mjs +0 -1
- package/dist/chunks/color-0.6.7-856m55kg.mjs +0 -1
- package/dist/chunks/compact-0.6.7-xkjxsjky.mjs +0 -3
- package/dist/chunks/config-0.6.7-8cp9wg00.mjs +0 -1
- package/dist/chunks/config-0.6.7-h357gwre.mjs +0 -1
- package/dist/chunks/constants-0.6.7-jz2rzgah.mjs +0 -1
- package/dist/chunks/context-0.6.7-52mqtjt5.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.6.7-0vn31bty.mjs +0 -1
- package/dist/chunks/conversation-0.6.7-6rb0jxt5.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.6.7-6szcxcqp.mjs +0 -1
- package/dist/chunks/copy-0.6.7-kt6m78c9.mjs +0 -9
- package/dist/chunks/cost-0.6.7-mcmacwts.mjs +0 -1
- package/dist/chunks/createSSHSession-0.6.7-2bxjzphp.mjs +0 -1
- package/dist/chunks/createSession-0.6.7-h53s0r94.mjs +0 -1
- package/dist/chunks/debug-0.6.7-40mxhr43.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.6.7-swjqrq2d.mjs +0 -1367
- package/dist/chunks/desktop-0.6.7-m8hceses.mjs +0 -1
- package/dist/chunks/detectRepository-0.6.7-37snr69q.mjs +0 -1
- package/dist/chunks/detection-0.6.7-796dd7my.mjs +0 -1
- package/dist/chunks/diff-0.6.7-jvhy5bfv.mjs +0 -1
- package/dist/chunks/doctor-0.6.7-69xecv72.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.6.7-86wn5fas.mjs +0 -1
- package/dist/chunks/earlyInput-0.6.7-j5kqcad7.mjs +0 -1
- package/dist/chunks/effort-0.6.7-pzsgdygp.mjs +0 -10
- package/dist/chunks/envLessBridgeConfig-0.6.7-8ev8zrnr.mjs +0 -1
- package/dist/chunks/envUtils-0.6.7-t2mfcf3k.mjs +0 -1
- package/dist/chunks/environmentSelection-0.6.7-qsjyn0qh.mjs +0 -1
- package/dist/chunks/environments-0.6.7-s37ppzq2.mjs +0 -1
- package/dist/chunks/errors-0.6.7-ewn9ej98.mjs +0 -1
- package/dist/chunks/exampleCommands-0.6.7-ha5gh86w.mjs +0 -1
- package/dist/chunks/exit-0.6.7-ke7w1zfb.mjs +0 -1
- package/dist/chunks/explorer-0.6.7-mwasq7vb.mjs +0 -1
- package/dist/chunks/export-0.6.7-nxr4yk69.mjs +0 -2
- package/dist/chunks/extra-usage-0.6.7-4y4y16s7.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.6.7-39bqy32f.mjs +0 -1
- package/dist/chunks/fast-0.6.7-kq9cp91g.mjs +0 -1
- package/dist/chunks/feedback-0.6.7-negh6v8m.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.6.7-tx7c7x8t.mjs +0 -1
- package/dist/chunks/git-0.6.7-2vwe8z3v.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.6.7-33qbe5yn.mjs +0 -1
- package/dist/chunks/goal-0.6.7-h6jz54qb.mjs +0 -4
- package/dist/chunks/grove-0.6.7-54ezkxs0.mjs +0 -1
- package/dist/chunks/growthbook-0.6.7-dtryf1q9.mjs +0 -1
- package/dist/chunks/headless-0.6.7-35yksmzv.mjs +0 -2
- package/dist/chunks/heapdump-0.6.7-k6xhk8rq.mjs +0 -6
- package/dist/chunks/help-0.6.7-xe78z9ep.mjs +0 -1
- package/dist/chunks/hookChains-0.6.7-cr0c8y5v.mjs +0 -3
- package/dist/chunks/hooks-0.6.7-3dzcec4j.mjs +0 -79
- package/dist/chunks/hooks-0.6.7-8d0h5mh8.mjs +0 -1
- package/dist/chunks/ide-0.6.7-5yx4zawt.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.6.7-58mhvg4s.mjs +0 -1
- package/dist/chunks/inboundAttachments-0.6.7-9afh5jdh.mjs +0 -1
- package/dist/chunks/index-0.6.7-0p9m5cfc.mjs +0 -1
- package/dist/chunks/index-0.6.7-1ngjds1q.mjs +0 -30
- package/dist/chunks/index-0.6.7-269433vt.mjs +0 -2
- package/dist/chunks/index-0.6.7-299hd0kq.mjs +0 -1
- package/dist/chunks/index-0.6.7-2p1qzv7b.mjs +0 -9
- package/dist/chunks/index-0.6.7-7fw7s1w6.mjs +0 -1
- package/dist/chunks/index-0.6.7-938hete3.mjs +0 -1
- package/dist/chunks/index-0.6.7-9qxbggwj.mjs +0 -1
- package/dist/chunks/index-0.6.7-adw6e99t.mjs +0 -1
- package/dist/chunks/index-0.6.7-da5n32m6.mjs +0 -1
- package/dist/chunks/index-0.6.7-ebdnq1xs.mjs +0 -1
- package/dist/chunks/index-0.6.7-fewh0t9g.mjs +0 -1
- package/dist/chunks/index-0.6.7-jyep217e.mjs +0 -1
- package/dist/chunks/index-0.6.7-mmh99nq4.mjs +0 -1
- package/dist/chunks/index-0.6.7-p9vm0q7s.mjs +0 -2
- package/dist/chunks/index-0.6.7-pspakten.mjs +0 -1
- package/dist/chunks/index-0.6.7-qy50jasm.mjs +0 -5
- package/dist/chunks/index-0.6.7-r7sewgza.mjs +0 -1
- package/dist/chunks/index-0.6.7-tet87444.mjs +0 -1
- package/dist/chunks/index-0.6.7-vwv8f9ey.mjs +0 -1
- package/dist/chunks/index-0.6.7-xhxjqdft.mjs +0 -1
- package/dist/chunks/index-0.6.7-yc13tnk8.mjs +0 -1
- package/dist/chunks/index-0.6.7-zm9ed9xd.mjs +0 -9
- package/dist/chunks/init-0.6.7-9mxee8s9.mjs +0 -1
- package/dist/chunks/initReplBridge-0.6.7-2v1w7wq6.mjs +0 -1
- package/dist/chunks/ink-0.6.7-24swqw8m.mjs +0 -1
- package/dist/chunks/insights-0.6.7-wf368crb.mjs +0 -870
- package/dist/chunks/install-0.6.7-a9dezzjy.mjs +0 -1
- package/dist/chunks/install-github-app-0.6.7-wr0r1fb5.mjs +0 -149
- package/dist/chunks/install-slack-app-0.6.7-ftc8w786.mjs +0 -1
- package/dist/chunks/instrumentation-0.6.7-y1xv08zm.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.6.7-kg2yqwhs.mjs +0 -1
- package/dist/chunks/keybindings-0.6.7-xa10wdn0.mjs +0 -2
- package/dist/chunks/knowledge-0.6.7-p8ys3wf6.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.6.7-7ss3jynk.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.6.7-g16npyc7.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.7-d1p7v7wd.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.7-qy17rc72.mjs +0 -1
- package/dist/chunks/log-0.6.7-a9pyn4zr.mjs +0 -1
- package/dist/chunks/main-0.6.7-epme77xk.mjs +0 -1
- package/dist/chunks/managedEnv-0.6.7-1h0tpwq1.mjs +0 -1
- package/dist/chunks/mcp-0.6.7-1pq6d47c.mjs +0 -17
- package/dist/chunks/mcp-0.6.7-krdmdzbj.mjs +0 -4
- package/dist/chunks/mcp-0.6.7-sh0wnst3.mjs +0 -1
- package/dist/chunks/mcpb-0.6.7-wethrsb6.mjs +0 -1
- package/dist/chunks/memory-0.6.7-wwbx8j9h.mjs +0 -3
- package/dist/chunks/model-0.6.7-bnf162h5.mjs +0 -2
- package/dist/chunks/model-0.6.7-ta2zt9yw.mjs +0 -1
- package/dist/chunks/node-0.6.7-9wgtbtkn.mjs +0 -12
- package/dist/chunks/oauth-0.6.7-ecry38es.mjs +0 -1
- package/dist/chunks/openaiShim-0.6.7-6haddefk.mjs +0 -14
- package/dist/chunks/output-style-0.6.7-heg5p49f.mjs +0 -1
- package/dist/chunks/package-FMOR3ELU-0.6.7-g0c2811q.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.6.7-rmje9xpc.mjs +0 -1
- package/dist/chunks/parser-0.6.7-dwxttek7.mjs +0 -1
- package/dist/chunks/passes-0.6.7-6md5xpaz.mjs +0 -1
- package/dist/chunks/permissions-0.6.7-25nzz9y0.mjs +0 -3
- package/dist/chunks/permissions-0.6.7-bm6zx02e.mjs +0 -1
- package/dist/chunks/plan-0.6.7-9pxaje2z.mjs +0 -1
- package/dist/chunks/plist-0.6.7-vcn459ke.mjs +0 -1
- package/dist/chunks/plugin-0.6.7-a5erdt59.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.6.7-4v446m9d.mjs +0 -1
- package/dist/chunks/plugins-0.6.7-g2r5qgvr.mjs +0 -9
- package/dist/chunks/preActionHook-0.6.7-m3b66d2g.mjs +0 -2
- package/dist/chunks/print-0.6.7-qwsqdjpa.mjs +0 -57
- package/dist/chunks/privacy-settings-0.6.7-f7mdzrj9.mjs +0 -1
- package/dist/chunks/process-0.6.7-mwpj2ag5.mjs +0 -1
- package/dist/chunks/processBashCommand-0.6.7-zmq7s8bg.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.6.7-aeq77f0r.mjs +0 -9
- package/dist/chunks/prompt-0.6.7-bjk6r969.mjs +0 -1
- package/dist/chunks/prompt-0.6.7-cqwn4ebm.mjs +0 -1
- package/dist/chunks/prompts-0.6.7-sx1ddpn3.mjs +0 -1
- package/dist/chunks/protocolHandler-0.6.7-4htrgj10.mjs +0 -13
- package/dist/chunks/provider-0.6.7-cf13j8jp.mjs +0 -2
- package/dist/chunks/providerProfiles-0.6.7-s1vbbbf8.mjs +0 -1
- package/dist/chunks/providerValidation-0.6.7-d5tsv9wn.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.6.7-xxb91evy.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.6.7-qmmn95tv.mjs +0 -34
- package/dist/chunks/registry-0.6.7-vnf153w2.mjs +0 -1
- package/dist/chunks/release-notes-0.6.7-140nchxs.mjs +0 -5
- package/dist/chunks/reload-plugins-0.6.7-2zjnq8rk.mjs +0 -2
- package/dist/chunks/remote-env-0.6.7-dmn903f9.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.6.7-vjavg15v.mjs +0 -1
- package/dist/chunks/remoteSession-0.6.7-j6t9wnvq.mjs +0 -1
- package/dist/chunks/rename-0.6.7-9hky49hm.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.6.7-fg56fjhe.mjs +0 -1
- package/dist/chunks/replLauncher-0.6.7-135zqkvm.mjs +0 -1
- package/dist/chunks/resume-0.6.7-ag66nvjc.mjs +0 -2
- package/dist/chunks/rewind-0.6.7-pbgnt37r.mjs +0 -1
- package/dist/chunks/rootOptions-0.6.7-dhbhchhw.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.6.7-wav9ed7k.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.6.7-xvjvjn90.mjs +0 -1
- package/dist/chunks/session-0.6.7-dv8ptwrb.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.6.7-k5zpyw84.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.6.7-rrcrsek8.mjs +0 -1
- package/dist/chunks/sessionStorage-0.6.7-fx0mbvg6.mjs +0 -1
- package/dist/chunks/settings-0.6.7-nwqqfy0f.mjs +0 -1
- package/dist/chunks/setup-0.6.7-1w2gtqvq.mjs +0 -5
- package/dist/chunks/sinks-0.6.7-rh7wgd1s.mjs +0 -1
- package/dist/chunks/skills-0.6.7-p7nm0dqx.mjs +0 -1
- package/dist/chunks/startupProfiler-0.6.7-0sgmtd5m.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.6.7-pe8vnbmy.mjs +0 -1
- package/dist/chunks/state-0.6.7-7zgmm7bx.mjs +0 -1
- package/dist/chunks/stats-0.6.7-qwjhmd0m.mjs +0 -6
- package/dist/chunks/status-0.6.7-4dybregh.mjs +0 -1
- package/dist/chunks/stickers-0.6.7-me3v3dmh.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.6.7-qnce4qzp.mjs +0 -1
- package/dist/chunks/tasks-0.6.7-sbx5a37t.mjs +0 -1
- package/dist/chunks/teamHelpers-0.6.7-pwbpqycb.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.6.7-qef93h04.mjs +0 -1
- package/dist/chunks/teleport-0.6.7-rtj4ts5d.mjs +0 -1
- package/dist/chunks/terminalSetup-0.6.7-tka4bjp2.mjs +0 -1
- package/dist/chunks/theme-0.6.7-x8qqpmm6.mjs +0 -1
- package/dist/chunks/thinkback-0.6.7-w6wj1na3.mjs +0 -1
- package/dist/chunks/thinkback-play-0.6.7-m433zrvk.mjs +0 -1
- package/dist/chunks/toolPool-0.6.7-5x90r1f5.mjs +0 -1
- package/dist/chunks/toolSearch-0.6.7-ev30cxmd.mjs +0 -1
- package/dist/chunks/tools-0.6.7-w23c68c1.mjs +0 -1
- package/dist/chunks/trustedDevice-0.6.7-yp482r12.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.6.7-6qtfbqqk.mjs +0 -69
- package/dist/chunks/types-0.6.7-q8m8v654.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-0.6.7-8azkbc2y.mjs +0 -4
- package/dist/chunks/update-0.6.7-gwfz54bh.mjs +0 -86
- package/dist/chunks/upgrade-0.6.7-3mraezx0.mjs +0 -1
- package/dist/chunks/upload-0.6.7-xxfcdyx1.mjs +0 -7
- package/dist/chunks/upstreamproxy-0.6.7-5w2ftmfc.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.6.7-3jfvm422.mjs +0 -1
- package/dist/chunks/usage-0.6.7-pkmqvqgq.mjs +0 -1
- package/dist/chunks/util-0.6.7-3z6r92wt.mjs +0 -1
- package/dist/chunks/utils-0.6.7-sdkkjj30.mjs +0 -1
- package/dist/chunks/vim-0.6.7-3rsss4ez.mjs +0 -1
- package/dist/chunks/watcher-0.6.7-kh7rkhx8.mjs +0 -1
- package/dist/chunks/wiki-0.6.7-jrn54nk5.mjs +0 -132
- package/dist/chunks/worktree-0.6.7-214cy52d.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.6.7-3z7e768n.mjs +0 -1
- package/dist/chunks/wrapper-0.6.7-h3kjv9nf.mjs +0 -7
- /package/dist/chunks/{cli-0.6.7-790sqdfy.mjs → cli-0.6.8-0fra5z78.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.7-nzdwcqxv.mjs → cli-0.6.8-0s2z302k.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.7-z26mhn5a.mjs → cli-0.6.8-259kprym.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.7-32sp32ph.mjs → cli-0.6.8-7cychtp8.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.7-7ggj90ge.mjs → cli-0.6.8-9bt8c69s.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.7-zwf5adf9.mjs → cli-0.6.8-aasxytdk.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.7-pgcg3w1c.mjs → cli-0.6.8-akzaeas1.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.7-04v8p8ay.mjs → cli-0.6.8-fe86xfp4.mjs} +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import{ab as yJ,bb as xz,cb as rz,db as cz,eb as iz,fb as bJ}from"./cli-0.6.8-nz7pwsys.mjs";import{hb as Tz}from"./cli-0.6.8-y0p6bqj6.mjs";import{pb as TJ,qb as xJ,rb as MJ,sb as wJ,tb as fJ}from"./cli-0.6.8-7nqm28z4.mjs";import{vb as kJ}from"./cli-0.6.8-qg557m5n.mjs";import{De as VJ,Ee as lJ}from"./cli-0.6.8-eypwe6gz.mjs";import{Ve as EJ,Xe as oz,Ze as DK}from"./cli-0.6.8-416cqzak.mjs";import{kf as mz,mf as LJ,qf as OJ}from"./cli-0.6.8-z4wpf0ah.mjs";import{AG as ZJ,CG as $J,Cj as RJ,DG as YJ,Dj as NK,Dl as BK,EG as XJ,FG as QJ,GG as WJ,an as UJ,bn as CK,xG as JJ,yG as Cz,yl as AJ,zG as KJ,zl as vz}from"./cli-0.6.8-883y3p0j.mjs";import"./cli-0.6.8-7rznct58.mjs";import"./cli-0.6.8-jea2s05x.mjs";import"./cli-0.6.8-fhedvbz1.mjs";import"./cli-0.6.8-rftvcrp4.mjs";import"./cli-0.6.8-bdhpc7zj.mjs";import"./cli-0.6.8-atjt49c4.mjs";import"./cli-0.6.8-2pj7sdxd.mjs";import"./cli-0.6.8-6ccg5qmp.mjs";import"./cli-0.6.8-21y1120z.mjs";import{tU as DJ,zU as _K}from"./cli-0.6.8-vqhtd9ay.mjs";import"./cli-0.6.8-xj1ptmgh.mjs";import{NU as az,RU as RK}from"./cli-0.6.8-y3hnde8e.mjs";import"./cli-0.6.8-6wdxaa6q.mjs";import"./cli-0.6.8-3a510y9k.mjs";import"./cli-0.6.8-pzbspy3n.mjs";import"./cli-0.6.8-s0s7zs2a.mjs";import"./cli-0.6.8-1bmxpdky.mjs";import"./cli-0.6.8-sn09eprm.mjs";import"./cli-0.6.8-34gwg749.mjs";import"./cli-0.6.8-0gpdjv55.mjs";import"./cli-0.6.8-vf9cagcj.mjs";import"./cli-0.6.8-c838p5hk.mjs";import"./cli-0.6.8-4a0ebxtv.mjs";import"./cli-0.6.8-93hp2f5g.mjs";import{C0 as pz,F0 as PK}from"./cli-0.6.8-7g7k6yt9.mjs";import"./cli-0.6.8-8jkm4bym.mjs";import"./cli-0.6.8-5enet6dq.mjs";import"./cli-0.6.8-bh09cgap.mjs";import"./cli-0.6.8-m1r6z413.mjs";import"./cli-0.6.8-pgcmgfht.mjs";import"./cli-0.6.8-9pkhxd6z.mjs";import"./cli-0.6.8-ee7wzgsq.mjs";import"./cli-0.6.8-jx1wvs6x.mjs";import"./cli-0.6.8-gmzxyn2t.mjs";import"./cli-0.6.8-q027tb7b.mjs";import"./cli-0.6.8-239wrpj3.mjs";import"./cli-0.6.8-g3yp49rz.mjs";import"./cli-0.6.8-5sexbrs8.mjs";import{k5 as i,l5 as FK}from"./cli-0.6.8-tb4rrntr.mjs";import"./cli-0.6.8-cbvnsxaa.mjs";import{M6 as G,N6 as pJ}from"./cli-0.6.8-6pf3s7fk.mjs";import"./cli-0.6.8-6tgf3xa0.mjs";import"./cli-0.6.8-pmpv80vx.mjs";import"./cli-0.6.8-7t0cwmv0.mjs";import{R_ as CJ,S_ as qK,dea as yz,j8 as Wz,l8 as HK,lea as OK,r$ as fz,s$ as ez,t$ as zJ,u$ as cJ}from"./cli-0.6.8-vpaw67v2.mjs";import{Aea as qz,Iea as GK,qea as sz,rea as gJ,tea as Rz}from"./cli-0.6.8-gscmwgeh.mjs";import"./cli-0.6.8-2qb9g75m.mjs";import"./cli-0.6.8-j5wfgenk.mjs";import{pfa as PJ,xfa as jK}from"./cli-0.6.8-hj3j54vb.mjs";import"./cli-0.6.8-2nda5zxh.mjs";import"./cli-0.6.8-9cxxg2ax.mjs";import"./cli-0.6.8-5gstf2n7.mjs";import{Lga as zz,Mga as NJ,Oga as QK}from"./cli-0.6.8-dxtyt1wg.mjs";import{Oha as q,Rha as tz,rha as qJ,sha as uz,wha as oJ}from"./cli-0.6.8-4avmxq80.mjs";import"./cli-0.6.8-q3txjpb9.mjs";import{gia as g,nia as VK}from"./cli-0.6.8-cv73s4x5.mjs";import{Bia as BJ,Dia as WK,tia as _J}from"./cli-0.6.8-4jh3r7br.mjs";import"./cli-0.6.8-dwwx58n6.mjs";import"./cli-0.6.8-8ezmkwsw.mjs";import"./cli-0.6.8-y2c1w6bt.mjs";import"./cli-0.6.8-yvt0y45m.mjs";import"./cli-0.6.8-6z1655sa.mjs";import{Mpa as I}from"./cli-0.6.8-259kprym.mjs";CK();NK();_K();jK();QK();qK();tz();HK();WK();VK();GK();OK();FK();BK();import{randomUUID as Sz}from"crypto";import{hostname as IJ,tmpdir as AK}from"os";import{basename as UK,join as LK,resolve as lz}from"path";WJ();pJ();lJ();cJ();gJ();tz();WJ();var dJ={type:"utf8",errorCorrectionLevel:"L",small:!0};async function aJ(z){return(await VJ(z,dJ)).split(`
|
|
2
|
+
`).filter((K)=>K.length>0)}function GJ(z){let J=z.write??(($)=>process.stdout.write($)),K=z.verbose,Y=0,O="idle",Z="Ready",R="",B="",U="",F="",L="",A=null,N=[],M=!1,E=null,P=0,x=0,_=1,f=null,k="single-session",b=new Map,d=null,S=0;function Xz($){let j=process.stdout.columns||80,w=0;for(let Gz of $.split(`
|
|
3
|
+
`)){if(Gz.length===0){w++;continue}let Nz=sz(Gz);w+=Math.max(1,Math.ceil(Nz/j))}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($){aJ($).then((j)=>{N=j,p()}).catch((j)=>{q(`QR code generation failed: ${j}`,{level:"error"})})}function o(){a();let $=fz[S%fz.length],j="";if(R)j+=G.dim(" · ")+G.dim(R);if(B)j+=G.dim(" · ")+G.dim(B);m(`${G.yellow($)} ${G.yellow("Connecting")}${j}
|
|
5
|
+
`)}function Vz(){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 N)m(`${G.dim(Jz)}
|
|
6
|
+
`);let j=ez,w=$?G.green:G.cyan,Nz=($?G.green:G.cyan)(Z),Oz="";if(R)Oz+=G.dim(" · ")+G.dim(R);if(B&&k!=="worktree")Oz+=G.dim(" · ")+G.dim(B);if(m(`${w(j)} ${Nz}${Oz}
|
|
7
|
+
`),_>1){let Jz=k==="worktree"?"New sessions will be created in an isolated worktree":"New sessions will be created in the current directory";m(` ${G.dim(`Capacity: ${x}/${_} · ${Jz}`)}
|
|
8
|
+
`);for(let[,Kz]of b){let r=Kz.title?Rz(Kz.title,35):G.dim("Attached"),Mz=QJ(r,Kz.url),Fz=Kz.activity,V=Fz&&Fz.type!=="result"&&Fz.type!=="error"?G.dim(` ${Rz(Fz.summary,40)}`):"";m(` ${Mz}${V}
|
|
9
|
+
`)}}if(_===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(` ${G.dim(Jz)}
|
|
10
|
+
`)}if(_===1&&!$&&E&&Date.now()-P<JJ)m(` ${G.dim(Rz(E,60))}
|
|
11
|
+
`);let Qz=A??U;if(Qz){m(`
|
|
12
|
+
`);let Jz=$?$J(Qz):YJ(Qz),Kz=M?G.dim.italic("space to hide QR code"):G.dim.italic("space to show QR code"),r=f?G.dim.italic(" · w to toggle spawn mode"):"";m(`${G.dim(Jz)}
|
|
13
|
+
`),m(`${Kz}${r}
|
|
14
|
+
`)}}return{printBanner($,j){if(F=$.sessionIngressUrl,L=j,U=KJ(j,F),n(U),K)J(G.dim("Remote Control")+` v99.0.0
|
|
15
|
+
`);if(K){if($.spawnMode!=="single-session")J(G.dim("Spawn mode: ")+`${$.spawnMode}
|
|
16
|
+
`),J(G.dim("Max concurrent sessions: ")+`${$.maxSessions}
|
|
17
|
+
`);J(G.dim("Environment ID: ")+`${j}
|
|
18
|
+
`)}if($.sandbox)J(G.dim("Sandbox: ")+`${G.green("Enabled")}
|
|
19
|
+
`);J(`
|
|
20
|
+
`),Vz()},logSessionStart($,j){if(K){let w=Rz(j,80);$z(G.dim(`[${Cz()}]`)+` Session started: ${G.white(`"${w}"`)} (${G.dim($)})
|
|
21
|
+
`)}},logSessionComplete($,j){$z(G.dim(`[${Cz()}]`)+` Session ${G.green("completed")} (${qz(j)}) ${G.dim($)}
|
|
22
|
+
`)},logSessionFailed($,j){$z(G.dim(`[${Cz()}]`)+` Session ${G.red("failed")}: ${j} ${G.dim($)}
|
|
23
|
+
`)},logStatus($){$z(G.dim(`[${Cz()}]`)+` ${$}
|
|
24
|
+
`)},logVerbose($){if(K)$z(G.dim(`[${Cz()}] ${$}`)+`
|
|
25
|
+
`)},logError($){$z(G.red(`[${Cz()}] Error: ${$}`)+`
|
|
26
|
+
`)},logReconnected($){$z(G.dim(`[${Cz()}]`)+` ${G.green("Reconnected")} after ${qz($)}
|
|
27
|
+
`)},setRepoInfo($,j){R=$,B=j},updateIdleStatus(){t(),O="idle",Z="Ready",E=null,P=0,A=null,n(U),p()},setAttached($){if(t(),O="attached",Z="Connected",E=null,P=0,_<=1)A=ZJ($,L,F),n(A);p()},updateReconnectingStatus($,j){if(t(),a(),O="reconnecting",M)for(let Gz of N)m(`${G.dim(Gz)}
|
|
28
|
+
`);let w=fz[S%fz.length];S++,m(`${G.yellow(w)} ${G.yellow("Reconnecting")} ${G.dim("·")} ${G.dim(`retrying in ${$}`)} ${G.dim("·")} ${G.dim(`disconnected ${j}`)}
|
|
29
|
+
`)},updateFailedStatus($){t(),a(),O="failed";let j="";if(R)j+=G.dim(" · ")+G.dim(R);if(B)j+=G.dim(" · ")+G.dim(B);if(m(`${G.red(zJ)} ${G.red("Remote Control Failed")}${j}
|
|
30
|
+
`),m(`${G.dim(XJ)}
|
|
31
|
+
`),$)m(`${G.red($)}
|
|
32
|
+
`)},updateSessionStatus($,j,w,Gz){if(w.type==="tool_start")E=w.summary,P=Date.now();p()},clearStatus(){t(),a()},toggleQr(){M=!M,p()},updateSessionCount($,j,w){if(x===$&&_===j&&k===w)return;x=$,_=j,k=w},setSpawnModeDisplay($){if(f===$)return;if(f=$,$)k=$},addSession($,j){b.set($,{url:j})},updateSessionActivity($,j){let w=b.get($);if(!w)return;w.activity=j},setSessionTitle($,j){let w=b.get($);if(!w)return;if(w.title=j,O==="reconnecting"||O==="failed")return;if(_===1)O="titled",Z=Rz(j,40);p()},removeSession($){b.delete($)},refreshDisplay(){if(O==="reconnecting"||O==="failed")return;p()}}}OJ();PK();oJ();OJ();import{spawn as rJ}from"child_process";import{createWriteStream as iJ}from"fs";import{tmpdir as nJ}from"os";import{dirname as tJ,join as jJ}from"path";import{createInterface as HJ}from"readline";var sJ=10,eJ=10,zK=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","CLAUDE_CODE_BUBBLEWRAP","CLAUDE_CODE_ENTRYPOINT","CLAUDE_CODE_COORDINATOR_MODE","CLAUDE_CODE_PERMISSIONS_VERSION","CLAUDE_CODE_PERMISSIONS_SETTING","TERM","COLORTERM","FORCE_COLOR","NO_COLOR"]);function JK(z,J){let K={};for(let Y of Object.keys(z))if(zK.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 KK={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 ZK(z,J){let K=KK[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 $K(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",N=L.input??{},M=ZK(A,N);Z.push({type:"tool_start",summary:M,timestamp:R}),K(`[bridge:activity] sessionId=${J} tool_use name=${A} ${XK(N)}`)}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 YK(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 XK(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 _=z.debugFile.lastIndexOf(".");if(_>0)O=`${z.debugFile.slice(0,_)}-${Y}${z.debugFile.slice(_)}`;else O=`${z.debugFile}-${Y}`}else if(z.verbose)O=jJ(nJ(),"claude",`bridge-session-${Y}.log`);let Z=null,R;if(z.debugFile)R=jJ(tJ(z.debugFile),`bridge-transcript-${Y}.jsonl`),Z=iJ(R,{flags:"a"}),Z.on("error",(_)=>{z.onDebug(`[bridge:session] Transcript write error: ${_.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=JK(z.env,{accessToken:J.accessToken,useCcrV2:J.useCcrV2,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=rJ(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,N=[],M=!1,E=!1;if(F.stderr)HJ({input:F.stderr}).on("line",(f)=>{if(z.verbose)process.stderr.write(f+`
|
|
33
|
+
`);if(N.length>=eJ)N.shift();N.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=$K(f,J.sessionId,z.onDebug);for(let b of k){if(L.length>=sJ)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"&&!E&&J.onFirstUserMessage){let S=YK(d);if(S)E=!0,J.onFirstUserMessage(S)}}}});let P=new Promise((_)=>{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}`),_("interrupted");else if(f===0)z.onDebug(`[bridge:session] sessionId=${J.sessionId} completed exit_code=0 pid=${F.pid}`),_("completed");else z.onDebug(`[bridge:session] sessionId=${J.sessionId} failed exit_code=${f} pid=${F.pid}`),_("failed")}),F.on("error",(f)=>{z.onDebug(`[bridge:session] sessionId=${J.sessionId} spawn error: ${f.message}`),_("failed")})}),x={sessionId:J.sessionId,done:P,activities:L,accessToken:J.accessToken,lastStderr:N,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(_){if(F.stdin&&!F.stdin.destroyed)z.onDebug(`[bridge:ws] sessionId=${J.sessionId} >>> ${mz(_)}`),F.stdin.write(_)},updateAccessToken(_){x.accessToken=_,x.writeStdin(qJ({type:"update_environment_variables",variables:{CLAUDE_CODE_SESSION_ACCESS_TOKEN:_}})+`
|
|
36
|
+
`),z.onDebug(`[bridge:session] Sent token refresh via stdin for sessionId=${J.sessionId}`)}};return x}}}RK();DK();var EK={connInitialMs:2000,connCapMs:120000,connGiveUpMs:600000,generalInitialMs:500,generalCapMs:30000,generalGiveUpMs:600000},yK=1000,vJ=32;async function hJ(){return PJ("tengu_ccr_bridge_multi_session")}function FJ(z){return z.connCapMs*2}function SJ(){if(CJ()||!process.argv[1])return[];return[process.argv[1]]}function TK(z,J,K){try{return z.spawn(J,K)}catch(Y){let O=g(Y);return yz(Error(`Session spawn failed: ${O}`)),O}}async function mJ(z,J,K,Y,O,Z,R,B=EK,U,F){let L=new AbortController;if(R.aborted)L.abort();else R.addEventListener("abort",()=>L.abort(),{once:!0});let A=L.signal,N=new Map,M=new Map,E=new Map,P=new Map,x=new Map,_=new Map,f=new Set,k=new Map,b=new Set,d=new Set,S=bJ(A);async function Xz(){let Q=!1,V=!1,y=[];for(let[H]of N){let D=E.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("tengu_bridge_heartbeat_error",{status:u.status,error_type:u.status===401||u.status===403?"auth_failed":"fatal"}),u.status===401||u.status===403)y.push(H);else V=!0}}for(let H of y){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(V)return"fatal";if(y.length>0)return"auth_failed";return Q?"ok":"failed"}let m=new Set,a=F?kJ({getAccessToken:F,onRefresh:(Q,V)=>{let y=N.get(Q);if(!y)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 y.updateAccessToken(V)},label:"bridge"}):null,$z=Date.now(),n=new Set;function o(Q){n.add(Q),Q.finally(()=>n.delete(Q))}let Vz=0,t=0,p=null,$=null,j=null,w=null,Gz=!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 Nz(){Z.updateSessionCount(N.size,z.maxSessions,z.spawnMode);for(let[u,X]of N){let T=X.currentActivity;if(T)Z.updateSessionActivity(P.get(u)??u,T)}if(N.size===0){Z.updateIdleStatus();return}let[Q,V]=[...N.entries()].pop(),y=M.get(Q);if(!y)return;let H=V.currentActivity;if(!H||H.type==="result"||H.type==="error"){if(z.maxSessions>1)Z.refreshDisplay();return}let D=qz(Date.now()-y),v=V.activities.filter((u)=>u.type==="tool_start").slice(-5).map((u)=>u.summary);Z.updateSessionStatus(Q,D,H,v)}function Oz(){Qz(),Nz(),w=setInterval(Nz,yK)}function Qz(){if(w)clearInterval(w),w=null}function Jz(Q,V,y){return(H)=>{let D=E.get(Q);N.delete(Q),M.delete(Q),E.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=_.get(Q);if(u)clearTimeout(u),_.delete(Q);a?.cancel(Q),S.wake();let X=b.delete(Q),T=X&&H==="interrupted"?"failed":H,c=Date.now()-V;q(`[bridge:session] sessionId=${Q} workId=${D??"unknown"} exited status=${T} duration=${qz(c)}`),zz("tengu_bridge_session_done",{status:T,duration_ms:c}),Wz("info","bridge_session_done",{status:T,duration_ms:c}),Z.clearStatus(),Qz();let s=y.lastStderr.length>0?y.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),yz(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 V=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("tengu_bridge_reconnected",{disconnected_ms:X})}if(Vz=0,t=0,p=null,$=null,j=null,!V){if(N.size>=z.maxSessions){let T=Q.multisession_poll_interval_ms_at_capacity;if(Q.non_exclusive_heartbeat_interval_ms>0){zz("tengu_bridge_heartbeat_mode_entered",{active_sessions:N.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&&N.size>=z.maxSessions&&(c===null||Date.now()<c)){let l=Tz();if(l.non_exclusive_heartbeat_interval_ms<=0)break;let _z=S.signal();if(s=await Xz(),s==="auth_failed"||s==="fatal"){_z.cleanup();break}Yz++,await i(l.non_exclusive_heartbeat_interval_ms,_z.signal),_z.cleanup()}let Zz=s==="auth_failed"||s==="fatal"?s:A.aborted?"shutdown":N.size<z.maxSessions?"capacity_changed":c!==null&&Date.now()>=c?"poll_due":"config_disabled";if(zz("tengu_bridge_heartbeat_mode_exited",{reason:Zz,heartbeat_cycles:Yz,active_sessions:N.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=N.size>0?Q.multisession_poll_interval_ms_partial_capacity:Q.multisession_poll_interval_ms_not_at_capacity;await i(T,A)}continue}let H=N.size>=z.maxSessions;if(f.has(V.id)){if(q(`[bridge:work] Skipping already-completed workId=${V.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=TJ(V.secret)}catch(X){let T=g(X);if(Z.logError(`Failed to decode work secret for workId=${V.id}: ${T}`),zz("tengu_bridge_work_secret_failed",{}),f.add(V.id),o(kz(Y,J,V.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=${V.id}`);try{await Y.acknowledgeWork(J,V.id,D.session_ingress_token)}catch(X){q(`[bridge:work] Acknowledge failed workId=${V.id}: ${g(X)}`)}},u=V.data.type;switch(V.data.type){case"healthcheck":await v(),q("[bridge:work] Healthcheck received"),Z.logVerbose("Healthcheck received");break;case"session":{let X=V.data.id;try{yJ(X,"session_id")}catch{await v(),Z.logError(`Invalid session_id received: ${X}`);break}let T=N.get(X);if(T){T.updateAccessToken(D.session_ingress_token),x.set(X,D.session_ingress_token),E.set(X,V.id),a?.schedule(X,D.session_ingress_token),q(`[bridge:work] Updated access token for existing sessionId=${X} workId=${V.id}`),await v();break}if(N.size>=z.maxSessions){q(`[bridge:work] At capacity (${N.size}/${z.maxSessions}), cannot spawn new session for workId=${V.id}`);break}await v();let c=Date.now(),s,Yz=!1,Zz;if(D.use_code_sessions===!0||_J(process.env.CLAUDE_BRIDGE_USE_CCR_V2)){s=wJ(z.apiBaseUrl,X);for(let W=1;W<=2;W++)try{Zz=await fJ(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}`),yz(Error(`registerWorker failed: ${h}`)),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs))}if(!Yz)break}else s=xJ(z.sessionIngressUrl,X);let{spawnMode:l,dir:_z}=z,Uz=0;if(l==="worktree"&&(U===void 0||!MJ(X,U))){let W=Date.now();try{let C=await AJ(`bridge-${Iz(X)}`);Uz=Date.now()-W,k.set(X,{worktreePath:C.worktreePath,worktreeBranch:C.worktreeBranch,gitRoot:C.gitRoot,hookBased:C.hookBased}),_z=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}`),yz(Error(`Worktree creation failed: ${h}`)),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs));break}}q(`[bridge:session] Spawning sessionId=${X} sdkUrl=${s}`);let e=pz(X),Lz=TK(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=mK(W);Z.setSessionTitle(e,C),q(`[bridge:title] derived title for ${e}: ${C}`),import("./createSession-0.6.8-vwbe80jv.mjs").then(({updateBridgeSessionTitle:h})=>h(e,C,{baseUrl:z.apiBaseUrl})).catch((h)=>q(`[bridge:title] failed to update title for ${e}: ${h}`,{level:"error"}))}},_z);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(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs));break}let Dz=Lz,Az=Date.now()-c;zz("tengu_bridge_session_started",{active_sessions:N.size,spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz,inProtectedNamespace:BJ()}),Wz("info","bridge_session_started",{spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),N.set(X,Dz),E.set(X,V.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 Ez=Iz(X),jz;if(z.debugFile){let W=z.debugFile.lastIndexOf(".");if(W>0)jz=`${z.debugFile.slice(0,W)}-${Ez}${z.debugFile.slice(W)}`;else jz=`${z.debugFile}-${Ez}`}else if(z.verbose)jz=LK(AK(),"claude",`bridge-session-${Ez}.log`);if(jz)Z.logVerbose(`Debug log: ${jz}`);Z.addSession(e,UJ(e,z.sessionIngressUrl)),Oz(),Z.setAttached(e),uK(e,z.apiBaseUrl).then((W)=>{if(W&&N.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??EJ;if(Bz>0){let W=setTimeout(fK,Bz,X,Bz,Z,b,Dz);_.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(V){if(A.aborted)break;if(V instanceof xz){if(Gz=!0,cz(V.errorType))Z.logStatus(V.message);else if(iz(V))q(`[bridge:work] Suppressed 403 error: ${V.message}`);else Z.logError(V.message),yz(V);zz("tengu_bridge_fatal_error",{status:V.status,error_type:V.errorType}),Wz(cz(V.errorType)?"info":"error","bridge_fatal_error",{status:V.status,error_type:V.errorType});break}let y=LJ(V);if(MK(V)||wK(V)){let H=Date.now();if(j!==null&&H-j>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-j)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-j}),p=null,Vz=0,$=null,t=0;if(j=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("tengu_bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Gz=!0;break}$=null,t=0,Vz=Vz?Math.min(Vz*2,B.connCapMs):B.connInitialMs;let v=dz(Vz);if(Z.logVerbose(`Connection error, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${y}`),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(j!==null&&H-j>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-j)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-j}),p=null,Vz=0,$=null,t=0;if(j=H,!$)$=H;let D=H-$;if(D>=B.generalGiveUpMs){Z.logError(`Persistent errors for ${Math.round(D/60000)} minutes, giving up.`),zz("tengu_bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Gz=!0;break}p=null,Vz=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): ${y}`),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("tengu_bridge_shutdown",{active_sessions:N.size,loop_duration_ms:Kz}),Wz("info","bridge_shutdown",{active_sessions:N.size,loop_duration_ms:Kz});let r=new Set(N.keys());if(U)r.add(U);let Mz=new Map(P);if(N.size>0){q(`[bridge:shutdown] Shutting down ${N.size} active session(s)`),Z.logStatus(`Shutting down ${N.size} active session(s)…`);let Q=new Map(E);for(let[y,H]of N.entries())q(`[bridge:shutdown] Sending SIGTERM to sessionId=${y}`),H.kill();let V=new AbortController;await Promise.race([Promise.allSettled([...N.values()].map((y)=>y.done)),i(B.shutdownGraceMs??30000,V.signal)]),V.abort();for(let[y,H]of N.entries())q(`[bridge:shutdown] Force-killing stuck sessionId=${y}`),H.forceKill();for(let y of _.values())clearTimeout(y);if(_.clear(),a?.cancelAll(),k.size>0){let y=[...k.values()];k.clear(),q(`[bridge:shutdown] Cleaning up ${y.length} worktree(s)`),await Promise.allSettled(y.map((H)=>vz(H.worktreePath,H.worktreeBranch,H.gitRoot,H.hookBased)))}await Promise.allSettled([...Q.entries()].map(([y,H])=>{return Y.stopWork(J,H,!0).catch((D)=>Z.logVerbose(`Failed to stop work ${H} for session ${y}: ${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((V)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(V)}`))));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-0.6.8-y9zbj5sw.mjs");await Fz(z.dir),Z.logVerbose("Environment offline.")}var xK=new Set(["ECONNREFUSED","ECONNRESET","ETIMEDOUT","ENETUNREACH","EHOSTUNREACH"]);function MK(z){if(z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&xK.has(z.code))return!0;return!1}function wK(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 fK(z,J,K,Y,O){q(`[bridge:session] sessionId=${z} timed out after ${qz(J)}`),zz("tengu_bridge_session_timeout",{timeout_ms:J}),K.logSessionFailed(z,`Session timed out after ${qz(J)}`),Y.add(z),O.kill()}var kK=["session","same-dir","worktree"];function bK(z){if(z==="session")return"single-session";if(z==="same-dir")return"same-dir";if(z==="worktree")return"worktree";return`--spawn requires one of: ${kK.join(", ")} (got: ${z??"<missing>"})`}function IK(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 vK(z){let J=!1,K=!1,Y,O,Z,R,B=!1,U,F,L,A,N=!1;for(let E=0;E<z.length;E++){let P=z[E];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"&&E+1<z.length)Y=lz(z[++E]);else if(P.startsWith("--debug-file="))Y=lz(P.slice(13));else if(P==="--session-timeout"&&E+1<z.length)O=parseInt(z[++E],10)*1000;else if(P.startsWith("--session-timeout="))O=parseInt(P.slice(18),10)*1000;else if(P==="--permission-mode"&&E+1<z.length)Z=z[++E];else if(P.startsWith("--permission-mode="))Z=P.slice(18);else if(P==="--name"&&E+1<z.length)R=z[++E];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[++E],_=bK(x);if(_==="single-session"||_==="same-dir"||_==="worktree")U=_;else return M(_)}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[++E],_=IK(x);if(typeof _==="number")F=_;else return M(_)}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 'claude 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||N)&&(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&&N)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:N,help:B};function M(E){return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N,help:B,error:E}}}async function hK(){let{EXTERNAL_PERMISSION_MODES:z}=await import("./permissions-0.6.8-jdgt2sv8.mjs"),J=z.join(", "),K=await hJ(),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: ${vJ})
|
|
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
|
+
claude 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 \`claude\` 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 SK=80;function mK(z){let J=z.replace(/\s+/g," ").trim();return Rz(J,SK)}async function uK(z,J){let{getBridgeSession:K}=await import("./createSession-0.6.8-vwbe80jv.mjs");return(await K(z,{baseUrl:J}))?.title||void 0}async function kZ(z){let J=vK(z);if(J.help){await hK();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:N}=J,M=A,E,P=U!==void 0||F!==void 0||L!==void 0;if(R!==void 0){let{PERMISSION_MODES:W}=await import("./permissions-0.6.8-jdgt2sv8.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:_,checkHasTrustDialogAccepted:f}=await import("./config-0.6.8-dxk5q3qr.mjs");_();let{initSinks:k}=await import("./sinks-0.6.8-t8e55v3b.mjs");k();let b=await hJ();if(P&&!b)await NJ("tengu_bridge_multi_session_denied",{used_spawn:U!==void 0,used_capacity:F!==void 0,used_create_session_in_dir:L!==void 0}),await Promise.race([Promise.all([DJ(),RJ()]),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-0.6.8-pwxe3dfk.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-0.6.8-jzmpk916.mjs"),{getBridgeAccessToken:a,getBridgeBaseUrl:$z}=await import("./bridgeConfig-0.6.8-tcqxv3wr.mjs");if(!a())console.error(oz),process.exit(1);let{getGlobalConfig:o,saveGlobalConfig:Vz,getCurrentProjectConfig:t,saveCurrentProjectConfig:p}=await import("./config-0.6.8-dxk5q3qr.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(),Vz((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 j=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||$,{getBranch:w,getRemoteUrl:Gz,findGitRoot:Nz}=await import("./git-0.6.8-drry71tr.mjs"),{hasWorktreeCreateHook:Oz}=await import("./hooks-0.6.8-6x1xc1rx.mjs"),Qz=Oz()||Nz(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("tengu_bridge_spawn_mode_chosen",{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??vJ,Fz=L??!0;if(!M){let{clearBridgePointer:W}=await import("./bridgePointer-0.6.8-y9zbj5sw.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(),V=await Gz(),y=IJ(),H=Sz(),{handleOAuth401Error:D}=await import("./auth-0.6.8-jzmpk916.mjs"),v=rz({baseUrl:$,getAccessToken:a,runnerVersion:"99.0.0",onDebug:q,onAuth401:D,getTrustedDeviceToken:az}),u,X={dir:x,machineName:y,branch:Q,gitRepoUrl:V,maxSessions:Mz,spawnMode:r,verbose:K,sandbox:Y,bridgeId:H,workerType:"claude_code",environmentId:Sz(),reuseEnvironmentId:u,apiBaseUrl:$,sessionIngressUrl:j,debugFile:O,sessionTimeoutMs:Z};q(`[bridge:init] bridgeId=${H}${u?` reuseEnvironmentId=${u}`:""} dir=${x} branch=${Q} gitRepoUrl=${V} machine=${y}`),q(`[bridge:init] apiBaseUrl=${$} sessionIngressUrl=${j}`),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("tengu_bridge_registration_failed",{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("tengu_bridge_started",{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:SJ(),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=GJ({verbose:K}),{parseGitHubRepository:_z}=await import("./detectRepository-0.6.8-3ayp37pd.mjs"),Uz=V?_z(V):null,e=Uz?Uz.split("/").pop():UK(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("tengu_bridge_spawn_mode_toggled",{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()},Ez=()=>{q("[bridge:shutdown] SIGTERM received, shutting down"),Az.abort()};process.on("SIGINT",wz),process.on("SIGTERM",Ez);let jz=null;if(Fz){let{createBridgeSession:W}=await import("./createSession-0.6.8-vwbe80jv.mjs");try{if(jz=await W({environmentId:T,title:B,events:[],gitRepoUrl:V,branch:Q,signal:Az.signal,baseUrl:$,getAccessToken:a,permissionMode:R}),jz)q(`[bridge:init] Created initial session ${jz}`)}catch(C){q(`[bridge:init] Session creation failed (non-fatal): ${g(C)}`)}}let Bz=null;if(jz&&r==="single-session"){let{writeBridgePointer:W}=await import("./bridgePointer-0.6.8-y9zbj5sw.mjs"),C={sessionId:jz,environmentId:T,source:"standalone"};await W(X.dir,C),Bz=setInterval(W,3600000,X.dir,C),Bz.unref?.()}try{await mJ(X,T,c,v,Zz,l,Az.signal,void 0,jz??void 0,async()=>{return Xz(),await m(),a()})}finally{if(Bz!==null)clearInterval(Bz);if(process.off("SIGINT",wz),process.off("SIGTERM",Ez),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 bZ(z,J){let{dir:K,log:Y}=z;process.chdir(K);let{setOriginalCwd:O,setCwdState:Z}=await import("./state-0.6.8-pwxe3dfk.mjs");O(K),Z(K);let{enableConfigs:R,checkHasTrustDialogAccepted:B}=await import("./config-0.6.8-dxk5q3qr.mjs");R();let{initSinks:U}=await import("./sinks-0.6.8-t8e55v3b.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-0.6.8-tcqxv3wr.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:N,getRemoteUrl:M,findGitRoot:E}=await import("./git-0.6.8-drry71tr.mjs"),{hasWorktreeCreateHook:P}=await import("./hooks-0.6.8-6x1xc1rx.mjs");if(z.spawnMode==="worktree"){if(!(P()||E(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=IJ(),k=Sz(),b={dir:K,machineName:f,branch:x,gitRepoUrl:_,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:SJ(),env:process.env,verbose:!1,sandbox:z.sandbox,permissionMode:z.permissionMode,onDebug:Y}),a=gK(Y);a.printBanner(b,S);let $z;if(z.createSessionOnStart){let{createBridgeSession:n}=await import("./createSession-0.6.8-vwbe80jv.mjs");try{let o=await n({environmentId:S,title:z.name,events:[],gitRepoUrl:_,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 mJ(b,S,Xz,d,m,a,J,void 0,$z,async()=>z.getAccessToken())}function gK(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{mJ as runBridgeLoop,bZ as runBridgeHeadless,vK as parseArgs,wK as isServerError,MK as isConnectionError,kZ as bridgeMain,hz as BridgeHeadlessPermanentError};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Jfa as G,Kfa as N,Nfa as M,Qfa as Y,Sfa as O,Tfa as S,Ufa as _,yfa as A,zfa as k}from"./cli-0.6.8-2nda5zxh.mjs";import{Oha as C,Rha as R,rha as K,sha as W,wha as j}from"./cli-0.6.8-4avmxq80.mjs";import"./cli-0.6.8-q3txjpb9.mjs";import{iia as y,nia as c}from"./cli-0.6.8-cv73s4x5.mjs";import"./cli-0.6.8-4jh3r7br.mjs";import"./cli-0.6.8-dwwx58n6.mjs";import"./cli-0.6.8-8ezmkwsw.mjs";import"./cli-0.6.8-y2c1w6bt.mjs";import"./cli-0.6.8-259kprym.mjs";O();R();c();k();_();M();j();import{mkdir as m,readFile as z,stat as E,unlink as T,writeFile as f}from"fs/promises";import{dirname as B,join as b}from"path";var I=50,D=14400000,u=S(()=>Y.object({sessionId:Y.string(),environmentId:Y.string(),source:Y.enum(["standalone","repl"])}));function J(q){return b(N(),G(q),"bridge-pointer.json")}async function g(q,x){let v=J(q);try{await m(B(v),{recursive:!0}),await f(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 E(x)).mtimeMs,v=await z(x,"utf8")}catch{return null}let Z=u().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($>D)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 A(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 T(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,D as BRIDGE_POINTER_TTL_MS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bh as a,Ch as bJ}from"./cli-0.6.8-vseqtday.mjs";import{Dh as x,Eh as AJ}from"./cli-0.6.8-wnjmpcsm.mjs";import{DP as hJ,Jy as u,Ly as WJ,OG as $,PG as vJ,dO as r,in as m,jD as l,jn as UJ,kO as TJ,nS as s,ny as i,oS as t,oy as HJ,pD as kJ,pP as o,pS as DJ}from"./cli-0.6.8-883y3p0j.mjs";import"./cli-0.6.8-7rznct58.mjs";import"./cli-0.6.8-jea2s05x.mjs";import"./cli-0.6.8-fhedvbz1.mjs";import"./cli-0.6.8-rftvcrp4.mjs";import"./cli-0.6.8-bdhpc7zj.mjs";import"./cli-0.6.8-atjt49c4.mjs";import"./cli-0.6.8-2pj7sdxd.mjs";import"./cli-0.6.8-6ccg5qmp.mjs";import"./cli-0.6.8-21y1120z.mjs";import"./cli-0.6.8-vqhtd9ay.mjs";import"./cli-0.6.8-xj1ptmgh.mjs";import"./cli-0.6.8-y3hnde8e.mjs";import"./cli-0.6.8-6wdxaa6q.mjs";import"./cli-0.6.8-3a510y9k.mjs";import"./cli-0.6.8-pzbspy3n.mjs";import"./cli-0.6.8-s0s7zs2a.mjs";import"./cli-0.6.8-1bmxpdky.mjs";import"./cli-0.6.8-sn09eprm.mjs";import{KW as c,MW as IJ,nW as g,oW as QJ}from"./cli-0.6.8-34gwg749.mjs";import"./cli-0.6.8-0gpdjv55.mjs";import{DX as GJ,DZ as NJ,YY as k,_Y as v,pZ as j,rZ as KJ}from"./cli-0.6.8-vf9cagcj.mjs";import"./cli-0.6.8-c838p5hk.mjs";import"./cli-0.6.8-4a0ebxtv.mjs";import"./cli-0.6.8-93hp2f5g.mjs";import"./cli-0.6.8-7g7k6yt9.mjs";import"./cli-0.6.8-8jkm4bym.mjs";import"./cli-0.6.8-5enet6dq.mjs";import"./cli-0.6.8-bh09cgap.mjs";import"./cli-0.6.8-m1r6z413.mjs";import"./cli-0.6.8-pgcmgfht.mjs";import"./cli-0.6.8-9pkhxd6z.mjs";import"./cli-0.6.8-ee7wzgsq.mjs";import{J1 as F,K1 as W,L1 as d}from"./cli-0.6.8-jx1wvs6x.mjs";import{M1 as zJ}from"./cli-0.6.8-gmzxyn2t.mjs";import"./cli-0.6.8-q027tb7b.mjs";import"./cli-0.6.8-239wrpj3.mjs";import"./cli-0.6.8-g3yp49rz.mjs";import"./cli-0.6.8-5sexbrs8.mjs";import"./cli-0.6.8-tb4rrntr.mjs";import"./cli-0.6.8-cbvnsxaa.mjs";import"./cli-0.6.8-6pf3s7fk.mjs";import"./cli-0.6.8-6tgf3xa0.mjs";import"./cli-0.6.8-pmpv80vx.mjs";import"./cli-0.6.8-7t0cwmv0.mjs";import{Hca as FJ,b$ as p,c$ as C,jca as S,u$ as ZJ}from"./cli-0.6.8-vpaw67v2.mjs";import"./cli-0.6.8-gscmwgeh.mjs";import"./cli-0.6.8-2qb9g75m.mjs";import"./cli-0.6.8-j5wfgenk.mjs";import"./cli-0.6.8-hj3j54vb.mjs";import"./cli-0.6.8-2nda5zxh.mjs";import"./cli-0.6.8-9cxxg2ax.mjs";import"./cli-0.6.8-5gstf2n7.mjs";import"./cli-0.6.8-dxtyt1wg.mjs";import"./cli-0.6.8-4avmxq80.mjs";import"./cli-0.6.8-q3txjpb9.mjs";import{gia as f,nia as YJ}from"./cli-0.6.8-cv73s4x5.mjs";import"./cli-0.6.8-4jh3r7br.mjs";import"./cli-0.6.8-dwwx58n6.mjs";import"./cli-0.6.8-8ezmkwsw.mjs";import"./cli-0.6.8-y2c1w6bt.mjs";import"./cli-0.6.8-yvt0y45m.mjs";import"./cli-0.6.8-6z1655sa.mjs";import{Hpa as R,Lpa as XJ}from"./cli-0.6.8-259kprym.mjs";function EJ(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}=c(g()),A;if(J[0]===Symbol.for("react.memo_cache_sentinel"))A=()=>JJ(qJ),J[0]=A;else A=J[0];j(A,Z||K?null:80);let b;if(J[1]!==G)b=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(-_);if(X.key==="down"||X.ctrl&&X.key==="n")X.preventDefault(),T.current?.scrollBy(_)},J[1]=G,J[2]=b;else b=J[2];let h=b,w,L;if(J[3]!==z||J[4]!==Y)w=()=>{let B=m();return async function(){try{let O=await MJ(z),M=await a({question:Y,cacheSafeParams:O});if(!B.signal.aborted)if(M.response)e(M.response);else y("No response received")}catch(O){let M=O;if(!B.signal.aborted)y(f(M)||"Failed to get response")}}(),()=>{B.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),E;if(J[7]===Symbol.for("react.memo_cache_sentinel"))E=W(v,{color:"warning",bold:!0,children:["/btw"," "]}),J[7]=E;else E=J[7];let Q;if(J[8]!==Y)Q=W(k,{children:[E,F(v,{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(v,{color:"error",children:K}):Z?F(u,{children:Z}):W(k,{children:[F($,{frame:P,messageColor:"warning"}),F(v,{color:"warning",children:"Answering..."})]})}),J[10]=K,J[11]=P,J[12]=Z,J[13]=U;else U=J[13];let I;if(J[14]!==D||J[15]!==U)I=F(k,{marginTop:1,marginLeft:2,maxHeight:D,children:U}),J[14]=D,J[15]=U,J[16]=I;else I=J[16];let H;if(J[17]!==K||J[18]!==Z)H=(Z||K)&&F(k,{marginTop:1,children:W(v,{dimColor:!0,children:[p,"/",C," to scroll · Space, Enter, or Escape to dismiss"]})}),J[17]=K,J[18]=Z,J[19]=H;else H=J[19];let q;if(J[20]!==h||J[21]!==Q||J[22]!==I||J[23]!==H)q=W(k,{flexDirection:"column",paddingLeft:2,marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:h,children:[Q,I,H]}),J[20]=h,J[21]=Q,J[22]=I,J[23]=H,J[24]=q;else q=J[24];return q}function qJ(V){return V+1}function BJ(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(BJ(V.messages)),Y=l();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:i(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 S((G)=>({...G,btwUseCount:G.btwUseCount+1})),F(EJ,{question:z,context:J,onDone:V})}var n,N,wJ=5,LJ=6,_=3;var PJ=XJ(()=>{KJ();WJ();vJ();ZJ();TJ();IJ();DJ();QJ();AJ();NJ();UJ();FJ();YJ();kJ();hJ();bJ();HJ();d();n=R(GJ(),1),N=R(zJ(),1)});PJ();export{aJ as call};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{BV as p,CV as f,DV as a,EV as S}from"./cli-0.6.8-pzbspy3n.mjs";import{Hca as C,jca as d}from"./cli-0.6.8-vpaw67v2.mjs";import"./cli-0.6.8-gscmwgeh.mjs";import"./cli-0.6.8-2qb9g75m.mjs";import"./cli-0.6.8-j5wfgenk.mjs";import"./cli-0.6.8-hj3j54vb.mjs";import"./cli-0.6.8-2nda5zxh.mjs";import{Aga as b,yga as m,zga as y}from"./cli-0.6.8-9cxxg2ax.mjs";import"./cli-0.6.8-5gstf2n7.mjs";import"./cli-0.6.8-dxtyt1wg.mjs";import"./cli-0.6.8-4avmxq80.mjs";import"./cli-0.6.8-q3txjpb9.mjs";import"./cli-0.6.8-cv73s4x5.mjs";import"./cli-0.6.8-4jh3r7br.mjs";import"./cli-0.6.8-dwwx58n6.mjs";import"./cli-0.6.8-8ezmkwsw.mjs";import"./cli-0.6.8-y2c1w6bt.mjs";import{Lpa as g}from"./cli-0.6.8-259kprym.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 @@
|
|
|
1
|
+
import"./cli-0.6.8-259kprym.mjs";var g=()=>null,c=class{},q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},z=new Proxy(g,q),C=z,A=!0,B=null,D=new Proxy({},{get:()=>g}),E={parse:()=>({})},F=[],G=g,H=null,I=null,J=g,K=g,L={SUCCESS:0,FAILED:1},M=g,P=c,Q=c,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},u={active:g,with:(v,j)=>j()},w={OK:0,ERROR:1,UNSET:2},y="service.name",N="service.version",O="service.name",T="service.version",h={CUMULATIVE:0,DELTA:1},x={HISTOGRAM:0,SUM:1,GAUGE:2},d={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},f=c,m={};export{k as trace,M as resourceFromAttributes,K as plot,J as getSyntaxTheme,G as getMcpConfigForManifest,C as default,u as context,A as __stub,w as SpanStatusCode,Q as SimpleSpanProcessor,_ as SimpleLogRecordProcessor,m as SeverityNumber,B as SandboxViolationStore,E as SandboxRuntimeConfigSchema,D as SandboxManager,T as SEMRESATTRS_SERVICE_VERSION,O as SEMRESATTRS_SERVICE_NAME,P as Resource,f as PushMetricExporter,Y as PrometheusExporter,i as PeriodicExportingMetricReader,V as OTLPTraceExporter,X as OTLPMetricExporter,W as OTLPLogExporter,S as NodeTracerProvider,b as MeterProvider,Z as LoggerProvider,d as InstrumentType,L as ExportResultCode,x as DataPointType,I as ColorFile,H as ColorDiff,R as BatchSpanProcessor,$ as BatchLogRecordProcessor,U as BasicTracerProvider,F as BROWSER_TOOLS,h as AggregationTemporality,N as ATTR_SERVICE_VERSION,y as ATTR_SERVICE_NAME};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{Q0 as h,U0 as zz}from"./cli-0.6.8-8jkm4bym.mjs";import"./cli-0.6.8-5sexbrs8.mjs";import{J4 as e,k4 as m}from"./cli-0.6.8-tb4rrntr.mjs";import"./cli-0.6.8-cbvnsxaa.mjs";import"./cli-0.6.8-6pf3s7fk.mjs";import"./cli-0.6.8-6tgf3xa0.mjs";import"./cli-0.6.8-pmpv80vx.mjs";import{Gda as y,Nda as s,Qda as v,Tda as r}from"./cli-0.6.8-vpaw67v2.mjs";import"./cli-0.6.8-gscmwgeh.mjs";import"./cli-0.6.8-2qb9g75m.mjs";import"./cli-0.6.8-j5wfgenk.mjs";import"./cli-0.6.8-hj3j54vb.mjs";import"./cli-0.6.8-2nda5zxh.mjs";import"./cli-0.6.8-9cxxg2ax.mjs";import"./cli-0.6.8-5gstf2n7.mjs";import"./cli-0.6.8-dxtyt1wg.mjs";import{Oha as k,Rha as o}from"./cli-0.6.8-4avmxq80.mjs";import"./cli-0.6.8-q3txjpb9.mjs";import"./cli-0.6.8-cv73s4x5.mjs";import"./cli-0.6.8-4jh3r7br.mjs";import{eoa as a,hka as b}from"./cli-0.6.8-dwwx58n6.mjs";import"./cli-0.6.8-8ezmkwsw.mjs";import"./cli-0.6.8-y2c1w6bt.mjs";import"./cli-0.6.8-yvt0y45m.mjs";import"./cli-0.6.8-6z1655sa.mjs";import{Lpa as n}from"./cli-0.6.8-259kprym.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,prompt_cache_retention:"24h"}};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{Y0 as L,Z0 as P,_0 as $,c1 as Q,d1 as U,e1 as V,f1 as j}from"./cli-0.6.8-5enet6dq.mjs";import{Lpa as Z}from"./cli-0.6.8-259kprym.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{Hh as a,Ih as b}from"./cli-0.6.8-p6rhsdxf.mjs";import"./cli-0.6.8-bsqfs15y.mjs";import"./cli-0.6.8-2e9hw0b1.mjs";import"./cli-0.6.8-883y3p0j.mjs";import"./cli-0.6.8-7rznct58.mjs";import"./cli-0.6.8-jea2s05x.mjs";import"./cli-0.6.8-fhedvbz1.mjs";import"./cli-0.6.8-rftvcrp4.mjs";import"./cli-0.6.8-bdhpc7zj.mjs";import"./cli-0.6.8-atjt49c4.mjs";import"./cli-0.6.8-2pj7sdxd.mjs";import"./cli-0.6.8-6ccg5qmp.mjs";import"./cli-0.6.8-21y1120z.mjs";import"./cli-0.6.8-vqhtd9ay.mjs";import"./cli-0.6.8-xj1ptmgh.mjs";import"./cli-0.6.8-y3hnde8e.mjs";import"./cli-0.6.8-6wdxaa6q.mjs";import"./cli-0.6.8-3a510y9k.mjs";import"./cli-0.6.8-pzbspy3n.mjs";import"./cli-0.6.8-s0s7zs2a.mjs";import"./cli-0.6.8-1bmxpdky.mjs";import"./cli-0.6.8-sn09eprm.mjs";import"./cli-0.6.8-34gwg749.mjs";import"./cli-0.6.8-0gpdjv55.mjs";import"./cli-0.6.8-vf9cagcj.mjs";import"./cli-0.6.8-c838p5hk.mjs";import"./cli-0.6.8-4a0ebxtv.mjs";import"./cli-0.6.8-93hp2f5g.mjs";import"./cli-0.6.8-7g7k6yt9.mjs";import"./cli-0.6.8-8jkm4bym.mjs";import"./cli-0.6.8-5enet6dq.mjs";import"./cli-0.6.8-bh09cgap.mjs";import"./cli-0.6.8-m1r6z413.mjs";import"./cli-0.6.8-pgcmgfht.mjs";import"./cli-0.6.8-9pkhxd6z.mjs";import"./cli-0.6.8-ee7wzgsq.mjs";import"./cli-0.6.8-jx1wvs6x.mjs";import"./cli-0.6.8-gmzxyn2t.mjs";import"./cli-0.6.8-q027tb7b.mjs";import"./cli-0.6.8-239wrpj3.mjs";import"./cli-0.6.8-g3yp49rz.mjs";import"./cli-0.6.8-5sexbrs8.mjs";import"./cli-0.6.8-tb4rrntr.mjs";import"./cli-0.6.8-cbvnsxaa.mjs";import"./cli-0.6.8-6pf3s7fk.mjs";import"./cli-0.6.8-6tgf3xa0.mjs";import"./cli-0.6.8-pmpv80vx.mjs";import"./cli-0.6.8-7t0cwmv0.mjs";import"./cli-0.6.8-vpaw67v2.mjs";import"./cli-0.6.8-gscmwgeh.mjs";import"./cli-0.6.8-2qb9g75m.mjs";import"./cli-0.6.8-j5wfgenk.mjs";import"./cli-0.6.8-hj3j54vb.mjs";import"./cli-0.6.8-2nda5zxh.mjs";import"./cli-0.6.8-9cxxg2ax.mjs";import"./cli-0.6.8-5gstf2n7.mjs";import"./cli-0.6.8-dxtyt1wg.mjs";import"./cli-0.6.8-4avmxq80.mjs";import"./cli-0.6.8-q3txjpb9.mjs";import"./cli-0.6.8-cv73s4x5.mjs";import"./cli-0.6.8-4jh3r7br.mjs";import"./cli-0.6.8-dwwx58n6.mjs";import"./cli-0.6.8-8ezmkwsw.mjs";import"./cli-0.6.8-y2c1w6bt.mjs";import"./cli-0.6.8-yvt0y45m.mjs";import"./cli-0.6.8-6z1655sa.mjs";import"./cli-0.6.8-259kprym.mjs";b();export{a as clearSessionCaches};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{N$ as x,Q$ as A,dea as X,lea as H,m9 as V,n9 as W,o9 as J,u_ as k,z_ as N}from"./cli-0.6.8-vpaw67v2.mjs";import"./cli-0.6.8-gscmwgeh.mjs";import"./cli-0.6.8-2qb9g75m.mjs";import"./cli-0.6.8-j5wfgenk.mjs";import"./cli-0.6.8-hj3j54vb.mjs";import"./cli-0.6.8-2nda5zxh.mjs";import"./cli-0.6.8-9cxxg2ax.mjs";import"./cli-0.6.8-5gstf2n7.mjs";import"./cli-0.6.8-dxtyt1wg.mjs";import"./cli-0.6.8-4avmxq80.mjs";import"./cli-0.6.8-q3txjpb9.mjs";import{hia as b,nia as y}from"./cli-0.6.8-cv73s4x5.mjs";import"./cli-0.6.8-4jh3r7br.mjs";import"./cli-0.6.8-dwwx58n6.mjs";import"./cli-0.6.8-8ezmkwsw.mjs";import"./cli-0.6.8-y2c1w6bt.mjs";import"./cli-0.6.8-259kprym.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 h(){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{h as readClaudeDesktopMcpServers,F as getClaudeDesktopConfigPath};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$R as i,TR as a,UR as b,VR as c,WR as d,XR as e,YR as f,ZR as g,_R as h,aS as j,bS as k,cS as l,dS as m,eS as n,fS as o,gS as p,hS as q,iS as r,jS as s,kS as t}from"./cli-0.6.8-883y3p0j.mjs";import"./cli-0.6.8-7rznct58.mjs";import"./cli-0.6.8-jea2s05x.mjs";import"./cli-0.6.8-fhedvbz1.mjs";import"./cli-0.6.8-rftvcrp4.mjs";import"./cli-0.6.8-bdhpc7zj.mjs";import"./cli-0.6.8-atjt49c4.mjs";import"./cli-0.6.8-2pj7sdxd.mjs";import"./cli-0.6.8-6ccg5qmp.mjs";import"./cli-0.6.8-21y1120z.mjs";import"./cli-0.6.8-vqhtd9ay.mjs";import"./cli-0.6.8-xj1ptmgh.mjs";import"./cli-0.6.8-y3hnde8e.mjs";import"./cli-0.6.8-6wdxaa6q.mjs";import"./cli-0.6.8-3a510y9k.mjs";import"./cli-0.6.8-pzbspy3n.mjs";import"./cli-0.6.8-s0s7zs2a.mjs";import"./cli-0.6.8-1bmxpdky.mjs";import"./cli-0.6.8-sn09eprm.mjs";import"./cli-0.6.8-34gwg749.mjs";import"./cli-0.6.8-0gpdjv55.mjs";import"./cli-0.6.8-vf9cagcj.mjs";import"./cli-0.6.8-c838p5hk.mjs";import"./cli-0.6.8-4a0ebxtv.mjs";import"./cli-0.6.8-93hp2f5g.mjs";import"./cli-0.6.8-7g7k6yt9.mjs";import"./cli-0.6.8-8jkm4bym.mjs";import"./cli-0.6.8-5enet6dq.mjs";import"./cli-0.6.8-bh09cgap.mjs";import"./cli-0.6.8-m1r6z413.mjs";import"./cli-0.6.8-pgcmgfht.mjs";import"./cli-0.6.8-9pkhxd6z.mjs";import"./cli-0.6.8-ee7wzgsq.mjs";import"./cli-0.6.8-jx1wvs6x.mjs";import"./cli-0.6.8-gmzxyn2t.mjs";import"./cli-0.6.8-q027tb7b.mjs";import"./cli-0.6.8-239wrpj3.mjs";import"./cli-0.6.8-g3yp49rz.mjs";import"./cli-0.6.8-5sexbrs8.mjs";import"./cli-0.6.8-tb4rrntr.mjs";import"./cli-0.6.8-cbvnsxaa.mjs";import"./cli-0.6.8-6pf3s7fk.mjs";import"./cli-0.6.8-6tgf3xa0.mjs";import"./cli-0.6.8-pmpv80vx.mjs";import"./cli-0.6.8-7t0cwmv0.mjs";import"./cli-0.6.8-vpaw67v2.mjs";import"./cli-0.6.8-gscmwgeh.mjs";import"./cli-0.6.8-2qb9g75m.mjs";import"./cli-0.6.8-j5wfgenk.mjs";import"./cli-0.6.8-hj3j54vb.mjs";import"./cli-0.6.8-2nda5zxh.mjs";import"./cli-0.6.8-9cxxg2ax.mjs";import"./cli-0.6.8-5gstf2n7.mjs";import"./cli-0.6.8-dxtyt1wg.mjs";import"./cli-0.6.8-4avmxq80.mjs";import"./cli-0.6.8-q3txjpb9.mjs";import"./cli-0.6.8-cv73s4x5.mjs";import"./cli-0.6.8-4jh3r7br.mjs";import"./cli-0.6.8-dwwx58n6.mjs";import"./cli-0.6.8-8ezmkwsw.mjs";import"./cli-0.6.8-y2c1w6bt.mjs";import"./cli-0.6.8-yvt0y45m.mjs";import"./cli-0.6.8-6z1655sa.mjs";import"./cli-0.6.8-259kprym.mjs";t();export{b as stripHtmlComments,q as shouldShowClaudeMdExternalIncludesWarning,g as resetGetMemoryFilesCache,c as processMemoryFile,d as processMdRules,n as processConditionedMdRules,r as isMemoryFilePath,p as hasExternalClaudeMdIncludes,l as getMemoryFilesForNestedDirectory,e as getMemoryFiles,k as getManagedAndUserConditionalRules,h as getLargeMemoryFiles,o as getExternalClaudeMdIncludes,m as getConditionalRulesForCwdLevelDirectory,j as getClaudeMds,s as getAllMemoryFilePaths,i as filterInjectedMemoryFiles,f as clearMemoryFileCaches,a as MAX_MEMORY_CHARACTER_COUNT};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fh as a,Gh as l}from"./cli-0.6.8-jp8gk6z3.mjs";import"./cli-0.6.8-p6rhsdxf.mjs";import"./cli-0.6.8-yztx4k12.mjs";import"./cli-0.6.8-bsqfs15y.mjs";import"./cli-0.6.8-2e9hw0b1.mjs";import"./cli-0.6.8-883y3p0j.mjs";import"./cli-0.6.8-7rznct58.mjs";import"./cli-0.6.8-jea2s05x.mjs";import"./cli-0.6.8-fhedvbz1.mjs";import"./cli-0.6.8-rftvcrp4.mjs";import"./cli-0.6.8-bdhpc7zj.mjs";import"./cli-0.6.8-atjt49c4.mjs";import"./cli-0.6.8-2pj7sdxd.mjs";import"./cli-0.6.8-6ccg5qmp.mjs";import"./cli-0.6.8-21y1120z.mjs";import"./cli-0.6.8-vqhtd9ay.mjs";import"./cli-0.6.8-xj1ptmgh.mjs";import"./cli-0.6.8-y3hnde8e.mjs";import"./cli-0.6.8-6wdxaa6q.mjs";import"./cli-0.6.8-3a510y9k.mjs";import"./cli-0.6.8-pzbspy3n.mjs";import"./cli-0.6.8-s0s7zs2a.mjs";import"./cli-0.6.8-1bmxpdky.mjs";import"./cli-0.6.8-sn09eprm.mjs";import"./cli-0.6.8-34gwg749.mjs";import"./cli-0.6.8-0gpdjv55.mjs";import"./cli-0.6.8-vf9cagcj.mjs";import"./cli-0.6.8-c838p5hk.mjs";import"./cli-0.6.8-4a0ebxtv.mjs";import"./cli-0.6.8-93hp2f5g.mjs";import"./cli-0.6.8-7g7k6yt9.mjs";import"./cli-0.6.8-8jkm4bym.mjs";import"./cli-0.6.8-5enet6dq.mjs";import"./cli-0.6.8-bh09cgap.mjs";import"./cli-0.6.8-m1r6z413.mjs";import"./cli-0.6.8-pgcmgfht.mjs";import"./cli-0.6.8-9pkhxd6z.mjs";import"./cli-0.6.8-ee7wzgsq.mjs";import"./cli-0.6.8-jx1wvs6x.mjs";import"./cli-0.6.8-gmzxyn2t.mjs";import"./cli-0.6.8-q027tb7b.mjs";import"./cli-0.6.8-239wrpj3.mjs";import"./cli-0.6.8-g3yp49rz.mjs";import"./cli-0.6.8-5sexbrs8.mjs";import"./cli-0.6.8-tb4rrntr.mjs";import"./cli-0.6.8-cbvnsxaa.mjs";import"./cli-0.6.8-6pf3s7fk.mjs";import"./cli-0.6.8-6tgf3xa0.mjs";import"./cli-0.6.8-pmpv80vx.mjs";import"./cli-0.6.8-7t0cwmv0.mjs";import"./cli-0.6.8-vpaw67v2.mjs";import"./cli-0.6.8-gscmwgeh.mjs";import"./cli-0.6.8-2qb9g75m.mjs";import"./cli-0.6.8-j5wfgenk.mjs";import"./cli-0.6.8-hj3j54vb.mjs";import"./cli-0.6.8-2nda5zxh.mjs";import"./cli-0.6.8-9cxxg2ax.mjs";import"./cli-0.6.8-5gstf2n7.mjs";import"./cli-0.6.8-dxtyt1wg.mjs";import"./cli-0.6.8-4avmxq80.mjs";import"./cli-0.6.8-q3txjpb9.mjs";import"./cli-0.6.8-cv73s4x5.mjs";import"./cli-0.6.8-4jh3r7br.mjs";import"./cli-0.6.8-dwwx58n6.mjs";import"./cli-0.6.8-8ezmkwsw.mjs";import"./cli-0.6.8-y2c1w6bt.mjs";import"./cli-0.6.8-yvt0y45m.mjs";import"./cli-0.6.8-6z1655sa.mjs";import{Lpa as t}from"./cli-0.6.8-259kprym.mjs";var n=async(e,o)=>{return await a(o),{type:"text",value:""}};var m=t(()=>{l()});m();export{n as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{s0 as a,t0 as b,u0 as c}from"./cli-0.6.8-4a0ebxtv.mjs";import"./cli-0.6.8-259kprym.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Gpa as Z}from"./cli-0.6.8-0zdwjw7h.mjs";import{Jpa as Y,Mpa as O}from"./cli-0.6.8-259kprym.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
|
|
2
|
+
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
3
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
|
|
4
|
+
export{ye as zpa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Lpa as M}from"./cli-0.6.8-259kprym.mjs";function P(j){return j.message?.role??j.role}function G(j){return j.message?j.message.content:j.content}function K(j){if(!j||typeof j!=="object")return!1;if(j.type==="image")return!0;if(j.type==="tool_result"&&Array.isArray(j.content))return j.content.some((q)=>K(q));return!1}function Q(j){if(!Array.isArray(j))return!1;return j.some((q)=>K(q))}function U(j){if(!Array.isArray(j)||j.length===0)return!1;return j.every((q)=>{let w=q;return w&&typeof w==="object"&&w.type==="tool_result"})}function V(j){let q=j[j.length-1];if(!q||typeof q!=="object")return"user";if(P(q)!=="user")return"agent";if(U(G(q)))return"agent";return"user"}function W(j){return j.some((q)=>Q(G(q)))}function X(j){let q={"x-initiator":V(j)};if(W(j))q["Copilot-Vision-Request"]="true";return q}function Z(j,q={}){return(w,B)=>{let E=new Headers(B?.headers);for(let[z,F]of Object.entries(q))if(!E.has(z))E.set(z,F);try{if(typeof B?.body==="string"){let z=JSON.parse(B.body);if(Array.isArray(z?.messages))for(let[F,L]of Object.entries(X(z.messages)))E.set(F,L)}}catch{}return j(w,{...B,headers:E})}}var Y=()=>{};
|
|
2
|
+
export{V as $6,W as a7,X as b7,Z as c7,Y as d7};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ai as C,yi as H}from"./cli-0.6.8-5n9bwjf9.mjs";import{Bi as k,Ci as y}from"./cli-0.6.8-6v315rd0.mjs";import{_1 as X,a2 as Y,f2 as R}from"./cli-0.6.8-g3yp49rz.mjs";import{h2 as G,i2 as m}from"./cli-0.6.8-5sexbrs8.mjs";import{L2 as w,M2 as E,b6 as B,q6 as f}from"./cli-0.6.8-tb4rrntr.mjs";import{Hca as x,dea as Q,jca as S,lea as D,mca as j}from"./cli-0.6.8-vpaw67v2.mjs";import{Jga as V,Kga as b}from"./cli-0.6.8-5gstf2n7.mjs";import{$oa as W,rpa as I}from"./cli-0.6.8-yvt0y45m.mjs";import{Lpa as Z}from"./cli-0.6.8-259kprym.mjs";async function _(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests`;return(await W.post(J,L,{headers:K})).data}async function $(L,N){let{accessToken:P,orgUUID:K}=await X(),J={...Y(P),"x-organization-uuid":K},F=`${V().BASE_API_URL}/api/oauth/organizations/${K}/admin_requests/me?request_type=${L}`;for(let v of N)F+=`&statuses=${v}`;return(await W.get(F,{headers:J})).data}async function z(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests/eligibility?request_type=${L}`;return(await W.get(J,{headers:K})).data}var M=Z(()=>{I();b();R()});async function i(){if(!j().hasVisitedExtraUsage)S((J)=>({...J,hasVisitedExtraUsage:!0}));H();let L=B(),N=L==="team"||L==="enterprise";if(!w()&&N){let J;try{J=(await k())?.extra_usage}catch(F){Q(F)}if(J?.is_enabled&&J.monthly_limit===null)return{type:"message",value:"Your organization already has unlimited extra usage. No request needed."};try{if((await z("limit_increase"))?.is_allowed===!1)return{type:"message",value:"Please contact your admin to manage extra usage settings."}}catch(F){Q(F)}try{let F=await $("limit_increase",["pending","dismissed"]);if(F&&F.length>0)return{type:"message",value:"You have already submitted a request for extra usage to your admin."}}catch(F){Q(F)}try{return await _({request_type:"limit_increase",details:null}),{type:"message",value:J?.is_enabled?"Request sent to your admin to increase extra usage.":"Request sent to your admin to enable extra usage."}}catch(F){Q(F)}return{type:"message",value:"Please contact your admin to manage extra usage settings."}}let K=N?"https://claude.ai/admin-settings/usage":"https://claude.ai/settings/usage";try{let J=await G(K);return{type:"browser-opened",url:K,opened:J}}catch(J){return Q(J),{type:"message",value:`Failed to open browser. Please visit ${K} to manage extra usage.`}}}var A=Z(()=>{M();C();y();f();E();m();x();D()});
|
|
2
|
+
export{i as vi,A as wi};
|