@claudiolabs/claudin 1.1.39 → 1.1.40
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/App-1.1.40-eb4xn79h.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.40-s12f36rk.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.40-08yczhe8.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.40-xw7040fw.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.40-ejq4fmn7.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.40-n8xq1ghm.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.40-2ykfyp2y.mjs +6 -0
- package/dist/chunks/Doctor-1.1.40-5q8gn92n.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.40-qbvaevt6.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.40-tbt91h1c.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.40-bx3xnmmr.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.40-kg7st12w.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.40-d7hcx55h.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.40-mwq5eg90.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.40-z85fnyyw.mjs +1 -0
- package/dist/chunks/REPL-1.1.40-h9ccg2t4.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.40-0ghfz7ak.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.40-39n922s2.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.40-shkd3dr0.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.40-5e4necay.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.40-kfzg6nqe.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.40-x1k41dnq.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.40-3r59c8nw.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.40-8ywrwcaw.mjs +1 -0
- package/dist/chunks/add-dir-1.1.40-4etvgznk.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.40-0jgkahp3.mjs +1 -0
- package/dist/chunks/agents-1.1.40-aa2gqrkq.mjs +110 -0
- package/dist/chunks/agents-1.1.40-v0vqxazw.mjs +3 -0
- package/dist/chunks/api-1.1.40-dwsbnjc3.mjs +1 -0
- package/dist/chunks/asciicast-1.1.40-y0e6w0q6.mjs +1 -0
- package/dist/chunks/auth-1.1.40-43w4cqf5.mjs +1 -0
- package/dist/chunks/auth-1.1.40-jhdwprg7.mjs +1 -0
- package/dist/chunks/autoMode-1.1.40-gy1w9r7y.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.40-8jjzstby.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.40-q7a2hm0c.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.40-pnakm6fp.mjs +1 -0
- package/dist/chunks/branch-1.1.40-1aq0shtd.mjs +4 -0
- package/dist/chunks/bridge-1.1.40-jngt6dkf.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.40-6zjr3dgb.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.40-5ra4n5cw.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.40-q22hv9eb.mjs +64 -0
- package/dist/chunks/bridgePointer-1.1.40-8nvycyyd.mjs +1 -0
- package/dist/chunks/btw-1.1.40-vqdnk39f.mjs +1 -0
- package/dist/chunks/buddy-1.1.40-wkym7yqv.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.40-5ac1ane9.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.40-dc4nspga.mjs +4 -0
- package/dist/chunks/caches-1.1.40-9ej2vasg.mjs +1 -0
- package/dist/chunks/cd-1.1.40-d5jhbgzp.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.40-2wmbzv9t.mjs +1 -0
- package/dist/chunks/claudemd-1.1.40-5bw0jeka.mjs +1 -0
- package/dist/chunks/clear-1.1.40-3gpjnsv0.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.40-ny8kqt7d.mjs +1 -0
- package/dist/chunks/cli-1.1.40-0507kdps.mjs +2 -0
- package/dist/chunks/cli-1.1.40-05q41dcq.mjs +63 -0
- package/dist/chunks/cli-1.1.40-0a9nnbar.mjs +2 -0
- package/dist/chunks/cli-1.1.40-0hb84ejd.mjs +2 -0
- package/dist/chunks/cli-1.1.40-0p3na6a1.mjs +2 -0
- package/dist/chunks/cli-1.1.40-0vdhw7mm.mjs +3 -0
- package/dist/chunks/cli-1.1.40-0z5szwzt.mjs +2 -0
- package/dist/chunks/cli-1.1.40-13ccwz6g.mjs +2 -0
- package/dist/chunks/cli-1.1.40-13e9gynq.mjs +16 -0
- package/dist/chunks/cli-1.1.40-14x4xtjy.mjs +2 -0
- package/dist/chunks/cli-1.1.40-1a4pn4ww.mjs +2 -0
- package/dist/chunks/cli-1.1.40-1pe6rcmh.mjs +2 -0
- package/dist/chunks/cli-1.1.40-1r9pwsgr.mjs +2 -0
- package/dist/chunks/cli-1.1.40-1z293953.mjs +2 -0
- package/dist/chunks/cli-1.1.40-202jxgqx.mjs +2 -0
- package/dist/chunks/cli-1.1.40-25wt0y2a.mjs +2 -0
- package/dist/chunks/cli-1.1.40-2e8t1hzy.mjs +2 -0
- package/dist/chunks/cli-1.1.40-2j20ecjm.mjs +11 -0
- package/dist/chunks/cli-1.1.40-2ndseghs.mjs +2 -0
- package/dist/chunks/cli-1.1.40-2ted9r2b.mjs +2 -0
- package/dist/chunks/cli-1.1.40-2z1ppytd.mjs +2 -0
- package/dist/chunks/cli-1.1.40-390v6b8q.mjs +2 -0
- package/dist/chunks/cli-1.1.40-3e58725b.mjs +3 -0
- package/dist/chunks/cli-1.1.40-3hqepe0h.mjs +34 -0
- package/dist/chunks/cli-1.1.40-3m4n20em.mjs +2 -0
- package/dist/chunks/cli-1.1.40-4a1p6q3b.mjs +2 -0
- package/dist/chunks/cli-1.1.40-4d4b7cw2.mjs +2 -0
- package/dist/chunks/cli-1.1.40-4d6gye21.mjs +2 -0
- package/dist/chunks/cli-1.1.40-586jg9as.mjs +4 -0
- package/dist/chunks/cli-1.1.40-5m7tntdx.mjs +2 -0
- package/dist/chunks/cli-1.1.40-5szxfmd7.mjs +2 -0
- package/dist/chunks/cli-1.1.40-5x38x6mx.mjs +2 -0
- package/dist/chunks/cli-1.1.40-66c2dzxw.mjs +8 -0
- package/dist/chunks/cli-1.1.40-6bv738vq.mjs +2 -0
- package/dist/chunks/cli-1.1.40-6evbnv5e.mjs +4 -0
- package/dist/chunks/cli-1.1.40-6gc7p5by.mjs +2 -0
- package/dist/chunks/cli-1.1.40-6v8d2hq7.mjs +18 -0
- package/dist/chunks/cli-1.1.40-718chdj8.mjs +2 -0
- package/dist/chunks/cli-1.1.40-75jka1rb.mjs +2 -0
- package/dist/chunks/cli-1.1.40-77d85srw.mjs +2 -0
- package/dist/chunks/cli-1.1.40-7mtszf6q.mjs +2 -0
- package/dist/chunks/cli-1.1.40-7p7pbsj7.mjs +3 -0
- package/dist/chunks/cli-1.1.40-7sp5dtqz.mjs +2 -0
- package/dist/chunks/cli-1.1.40-7xegymwp.mjs +3 -0
- package/dist/chunks/cli-1.1.40-88vceqkj.mjs +6 -0
- package/dist/chunks/cli-1.1.40-8dzrhmwv.mjs +2 -0
- package/dist/chunks/cli-1.1.40-8j3wdrn6.mjs +2 -0
- package/dist/chunks/cli-1.1.40-8jkb2pk8.mjs +3 -0
- package/dist/chunks/cli-1.1.40-8tkx8d1m.mjs +50 -0
- package/dist/chunks/cli-1.1.40-8x5yey3y.mjs +20 -0
- package/dist/chunks/cli-1.1.40-8xvdt1py.mjs +2 -0
- package/dist/chunks/cli-1.1.40-8zhx2a4q.mjs +2 -0
- package/dist/chunks/cli-1.1.40-904bkcqe.mjs +2 -0
- package/dist/chunks/cli-1.1.40-9bqkn2xd.mjs +2 -0
- package/dist/chunks/cli-1.1.40-9ktcep8b.mjs +2 -0
- package/dist/chunks/cli-1.1.40-a8ztxtkt.mjs +2 -0
- package/dist/chunks/cli-1.1.40-a94m02ck.mjs +2 -0
- package/dist/chunks/cli-1.1.40-a9t3gajj.mjs +2 -0
- package/dist/chunks/cli-1.1.40-aaec6y8n.mjs +2 -0
- package/dist/chunks/cli-1.1.40-aknkj6rt.mjs +2 -0
- package/dist/chunks/cli-1.1.40-asmc6tcr.mjs +2 -0
- package/dist/chunks/cli-1.1.40-b37e0jb8.mjs +6 -0
- package/dist/chunks/cli-1.1.40-bdt7jzc8.mjs +12 -0
- package/dist/chunks/cli-1.1.40-beywxqng.mjs +2 -0
- package/dist/chunks/cli-1.1.40-bh7z7ek2.mjs +2 -0
- package/dist/chunks/cli-1.1.40-bkxrf16s.mjs +2 -0
- package/dist/chunks/cli-1.1.40-cacr2bwg.mjs +135 -0
- package/dist/chunks/cli-1.1.40-cjmpr9fj.mjs +6 -0
- package/dist/chunks/cli-1.1.40-cjtb9y6z.mjs +2 -0
- package/dist/chunks/cli-1.1.40-ckjrbh6b.mjs +60 -0
- package/dist/chunks/cli-1.1.40-cr76k9c5.mjs +2 -0
- package/dist/chunks/cli-1.1.40-cy642er2.mjs +5 -0
- package/dist/chunks/cli-1.1.40-czkgycwy.mjs +2 -0
- package/dist/chunks/cli-1.1.40-d94fysd2.mjs +2 -0
- package/dist/chunks/cli-1.1.40-dbt9wvcg.mjs +133 -0
- package/dist/chunks/cli-1.1.40-dcgb31te.mjs +2 -0
- package/dist/chunks/cli-1.1.40-dsncefwy.mjs +2 -0
- package/dist/chunks/cli-1.1.40-e6xs2c7n.mjs +2 -0
- package/dist/chunks/cli-1.1.40-evm7c2fk.mjs +2 -0
- package/dist/chunks/cli-1.1.40-f4906zck.mjs +3 -0
- package/dist/chunks/cli-1.1.40-fewramj2.mjs +2 -0
- package/dist/chunks/cli-1.1.40-fjbq162e.mjs +24 -0
- package/dist/chunks/cli-1.1.40-fn6qzvk2.mjs +17 -0
- package/dist/chunks/cli-1.1.40-fqcnge4w.mjs +4 -0
- package/dist/chunks/cli-1.1.40-fwxd22jm.mjs +2 -0
- package/dist/chunks/cli-1.1.40-g1vnzwpn.mjs +2 -0
- package/dist/chunks/cli-1.1.40-gk34ey8n.mjs +24 -0
- package/dist/chunks/cli-1.1.40-gv0xj4g0.mjs +2 -0
- package/dist/chunks/cli-1.1.40-gym1gqwr.mjs +2 -0
- package/dist/chunks/cli-1.1.40-h2t9z1xa.mjs +2 -0
- package/dist/chunks/cli-1.1.40-h5r5wmqv.mjs +3 -0
- package/dist/chunks/cli-1.1.40-h6v9p00b.mjs +2 -0
- package/dist/chunks/cli-1.1.40-h87wvfsr.mjs +24 -0
- package/dist/chunks/cli-1.1.40-h9vf8tb3.mjs +2 -0
- package/dist/chunks/cli-1.1.40-hdf9qdf0.mjs +2 -0
- package/dist/chunks/cli-1.1.40-hf5jtfgb.mjs +2 -0
- package/dist/chunks/cli-1.1.40-hfe06y9j.mjs +250 -0
- package/dist/chunks/cli-1.1.40-hn5j9ca8.mjs +3 -0
- package/dist/chunks/cli-1.1.40-j3mmbyn6.mjs +2 -0
- package/dist/chunks/cli-1.1.40-j822dmk0.mjs +2 -0
- package/dist/chunks/cli-1.1.40-jc0pv06v.mjs +2 -0
- package/dist/chunks/cli-1.1.40-jdhz6qrn.mjs +4 -0
- package/dist/chunks/cli-1.1.40-jdyqkhjm.mjs +15 -0
- package/dist/chunks/cli-1.1.40-jxt31ej7.mjs +2 -0
- package/dist/chunks/cli-1.1.40-k3z93zzh.mjs +2 -0
- package/dist/chunks/cli-1.1.40-k9ms1jzt.mjs +2 -0
- package/dist/chunks/cli-1.1.40-kafpmwa6.mjs +2 -0
- package/dist/chunks/cli-1.1.40-kcs8jb1x.mjs +2 -0
- package/dist/chunks/cli-1.1.40-kn1916j7.mjs +2 -0
- package/dist/chunks/cli-1.1.40-knp59dzj.mjs +25 -0
- package/dist/chunks/cli-1.1.40-ksaxg9vb.mjs +2 -0
- package/dist/chunks/cli-1.1.40-kvhhhzww.mjs +2 -0
- package/dist/chunks/cli-1.1.40-m0j9t9he.mjs +2 -0
- package/dist/chunks/cli-1.1.40-m0km8bx0.mjs +2 -0
- package/dist/chunks/cli-1.1.40-m3m3zyes.mjs +2 -0
- package/dist/chunks/cli-1.1.40-m4hyy4k1.mjs +2 -0
- package/dist/chunks/cli-1.1.40-mtj9edbn.mjs +2 -0
- package/dist/chunks/cli-1.1.40-mtqb5txt.mjs +2 -0
- package/dist/chunks/cli-1.1.40-n9wve56a.mjs +2 -0
- package/dist/chunks/cli-1.1.40-ncvv73yk.mjs +2 -0
- package/dist/chunks/cli-1.1.40-nj4dbcsq.mjs +5 -0
- package/dist/chunks/cli-1.1.40-nvwa39p8.mjs +2 -0
- package/dist/chunks/cli-1.1.40-p0d9ms1q.mjs +2 -0
- package/dist/chunks/cli-1.1.40-p1ezfj24.mjs +2 -0
- package/dist/chunks/cli-1.1.40-p3jhg1v9.mjs +2 -0
- package/dist/chunks/cli-1.1.40-p6sasq8k.mjs +2 -0
- package/dist/chunks/cli-1.1.40-pmw99nnn.mjs +2 -0
- package/dist/chunks/cli-1.1.40-ptbes5dy.mjs +2 -0
- package/dist/chunks/cli-1.1.40-qbqaea7j.mjs +2 -0
- package/dist/chunks/cli-1.1.40-qj79t43w.mjs +2 -0
- package/dist/chunks/cli-1.1.40-qrryep7k.mjs +2 -0
- package/dist/chunks/cli-1.1.40-r0e1tymb.mjs +4 -0
- package/dist/chunks/cli-1.1.40-rcfj1etg.mjs +2 -0
- package/dist/chunks/cli-1.1.40-rq9y2zd8.mjs +4 -0
- package/dist/chunks/cli-1.1.40-rwbr7d1h.mjs +2 -0
- package/dist/chunks/cli-1.1.40-s5zzvtq2.mjs +2 -0
- package/dist/chunks/cli-1.1.40-sa2ca2mh.mjs +2 -0
- package/dist/chunks/cli-1.1.40-sh39fzfc.mjs +2 -0
- package/dist/chunks/cli-1.1.40-sjmpb8kv.mjs +2 -0
- package/dist/chunks/cli-1.1.40-sw6avn9f.mjs +15 -0
- package/dist/chunks/cli-1.1.40-swnje8x1.mjs +2 -0
- package/dist/chunks/cli-1.1.40-t3fwj4bx.mjs +2 -0
- package/dist/chunks/cli-1.1.40-t6s30nmj.mjs +10 -0
- package/dist/chunks/cli-1.1.40-tb7zgp10.mjs +2 -0
- package/dist/chunks/cli-1.1.40-tbjmztnt.mjs +7 -0
- package/dist/chunks/cli-1.1.40-test5hfq.mjs +9 -0
- package/dist/chunks/cli-1.1.40-tjxcmknk.mjs +10 -0
- package/dist/chunks/cli-1.1.40-tpcjtjay.mjs +2 -0
- package/dist/chunks/cli-1.1.40-vemj3v7n.mjs +2 -0
- package/dist/chunks/cli-1.1.40-vjrn2xbp.mjs +39 -0
- package/dist/chunks/cli-1.1.40-vnckyxj2.mjs +6 -0
- package/dist/chunks/cli-1.1.40-vzsswgmp.mjs +2 -0
- package/dist/chunks/cli-1.1.40-wgmkydqq.mjs +2 -0
- package/dist/chunks/cli-1.1.40-wh51ya47.mjs +5524 -0
- package/dist/chunks/cli-1.1.40-wwtg9jyr.mjs +2 -0
- package/dist/chunks/cli-1.1.40-x07axsvg.mjs +3 -0
- package/dist/chunks/cli-1.1.40-x0em3hsa.mjs +42 -0
- package/dist/chunks/cli-1.1.40-x155sz4a.mjs +2 -0
- package/dist/chunks/cli-1.1.40-x8fyash9.mjs +2 -0
- package/dist/chunks/cli-1.1.40-xjt6qe30.mjs +2 -0
- package/dist/chunks/cli-1.1.40-xrdf30ff.mjs +4 -0
- package/dist/chunks/cli-1.1.40-xsx6q1wa.mjs +2 -0
- package/dist/chunks/cli-1.1.40-xty2k2d8.mjs +2 -0
- package/dist/chunks/cli-1.1.40-xvw930pn.mjs +4 -0
- package/dist/chunks/cli-1.1.40-xxr2978q.mjs +2 -0
- package/dist/chunks/cli-1.1.40-xz65jcaq.mjs +2 -0
- package/dist/chunks/cli-1.1.40-yb9c5882.mjs +6 -0
- package/dist/chunks/cli-1.1.40-ycdfy6nf.mjs +15 -0
- package/dist/chunks/cli-1.1.40-yggza6ab.mjs +2 -0
- package/dist/chunks/cli-1.1.40-ypd0pmm1.mjs +9 -0
- package/dist/chunks/cli-1.1.40-yxch4yjw.mjs +2 -0
- package/dist/chunks/cli-1.1.40-yyx9dq0t.mjs +2 -0
- package/dist/chunks/cli-1.1.40-z2y2xwz9.mjs +21 -0
- package/dist/chunks/cli-1.1.40-z3hcyy04.mjs +25 -0
- package/dist/chunks/cli-1.1.40-z4zyefya.mjs +10 -0
- package/dist/chunks/cli-1.1.40-zc4hs061.mjs +2 -0
- package/dist/chunks/cli-1.1.40-zjd4syvr.mjs +2 -0
- package/dist/chunks/cli-1.1.40-zn2yvg4w.mjs +7 -0
- package/dist/chunks/cli-1.1.40-zwpz8d3c.mjs +2 -0
- package/dist/chunks/cli-1.1.40-zx6c6dj7.mjs +2 -0
- package/dist/chunks/cli-1.1.40-zxgbpq09.mjs +2 -0
- package/dist/chunks/cli-1.1.40-zz1e7ypt.mjs +2 -0
- package/dist/chunks/client-1.1.40-7wf4ewe0.mjs +1 -0
- package/dist/chunks/color-1.1.40-v7cj369z.mjs +1 -0
- package/dist/chunks/compact-1.1.40-9frgndw1.mjs +2 -0
- package/dist/chunks/config-1.1.40-hpmvve33.mjs +1 -0
- package/dist/chunks/config-1.1.40-vyqe5y0b.mjs +1 -0
- package/dist/chunks/constants-1.1.40-ddn3fezq.mjs +1 -0
- package/dist/chunks/context-1.1.40-v3bm6v6h.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.40-grk3112n.mjs +1 -0
- package/dist/chunks/conversation-1.1.40-18fff5dm.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.40-8mws1sed.mjs +1 -0
- package/dist/chunks/copy-1.1.40-0j7zfq2m.mjs +9 -0
- package/dist/chunks/cost-1.1.40-haa10e3n.mjs +1 -0
- package/dist/chunks/createSession-1.1.40-m1yre1z2.mjs +1 -0
- package/dist/chunks/debug-1.1.40-jb16xf0z.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.40-6jxq6wj1.mjs +1458 -0
- package/dist/chunks/desktop-1.1.40-78kvtn3w.mjs +2 -0
- package/dist/chunks/detectRepository-1.1.40-bfsfnrg0.mjs +1 -0
- package/dist/chunks/detection-1.1.40-ynqhwygh.mjs +1 -0
- package/dist/chunks/diff-1.1.40-ry5r3hxm.mjs +1 -0
- package/dist/chunks/doctor-1.1.40-3jq6vt4j.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.40-xkn6p433.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.40-cgnyfxrr.mjs +1 -0
- package/dist/chunks/effort-1.1.40-x92e5y73.mjs +13 -0
- package/dist/chunks/engine-1.1.40-xfhy56h0.mjs +1 -0
- package/dist/chunks/envUtils-1.1.40-x04vk5d2.mjs +1 -0
- package/dist/chunks/errors-1.1.40-5rmm9jgq.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.40-0bqsxh7q.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.40-ckxrp2ds.mjs +1 -0
- package/dist/chunks/exit-1.1.40-3z02mbj5.mjs +1 -0
- package/dist/chunks/explorer-1.1.40-wd802dbj.mjs +1 -0
- package/dist/chunks/export-1.1.40-jfwshttx.mjs +2 -0
- package/dist/chunks/fast-1.1.40-60ervp24.mjs +1 -0
- package/dist/chunks/feedback-1.1.40-prjs4btg.mjs +16 -0
- package/dist/chunks/git-1.1.40-j53g8ee0.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.40-mcem604d.mjs +1 -0
- package/dist/chunks/goal-1.1.40-g8esr771.mjs +4 -0
- package/dist/chunks/headless-1.1.40-vr772edq.mjs +2 -0
- package/dist/chunks/heapdump-1.1.40-8rmhv3eq.mjs +6 -0
- package/dist/chunks/help-1.1.40-x9vde04q.mjs +1 -0
- package/dist/chunks/hooks-1.1.40-gm4rps4s.mjs +79 -0
- package/dist/chunks/hooks-1.1.40-wb0fy1tx.mjs +1 -0
- package/dist/chunks/ide-1.1.40-ymf3dffe.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.40-kk0nhrm1.mjs +1 -0
- package/dist/chunks/import-1.1.40-8q1yygwm.mjs +260 -0
- package/dist/chunks/inboundAttachments-1.1.40-gdzw0a60.mjs +1 -0
- package/dist/chunks/index-1.1.40-1036v870.mjs +1 -0
- package/dist/chunks/index-1.1.40-2pnxjnrq.mjs +9 -0
- package/dist/chunks/index-1.1.40-3dg7neyn.mjs +1 -0
- package/dist/chunks/index-1.1.40-3wmvffnj.mjs +1 -0
- package/dist/chunks/index-1.1.40-6h7p7965.mjs +5 -0
- package/dist/chunks/index-1.1.40-7m7py5an.mjs +1 -0
- package/dist/chunks/index-1.1.40-7thhkf50.mjs +1 -0
- package/dist/chunks/index-1.1.40-7zb9nwfm.mjs +1 -0
- package/dist/chunks/index-1.1.40-a4nq3a6p.mjs +23 -0
- package/dist/chunks/index-1.1.40-agp7ccgc.mjs +2 -0
- package/dist/chunks/index-1.1.40-ce1vrpmy.mjs +1 -0
- package/dist/chunks/index-1.1.40-d7gm1zpq.mjs +1 -0
- package/dist/chunks/index-1.1.40-e5mrxhrw.mjs +9 -0
- package/dist/chunks/index-1.1.40-hqxrsc3k.mjs +30 -0
- package/dist/chunks/index-1.1.40-hyjbaxfp.mjs +1 -0
- package/dist/chunks/index-1.1.40-kxj8bd6n.mjs +1 -0
- package/dist/chunks/index-1.1.40-m8hvmnp3.mjs +2 -0
- package/dist/chunks/index-1.1.40-re5y6sqg.mjs +1 -0
- package/dist/chunks/index-1.1.40-rxqg2zmw.mjs +1 -0
- package/dist/chunks/index-1.1.40-scsfdxb9.mjs +1 -0
- package/dist/chunks/index-1.1.40-sebq5zf0.mjs +1 -0
- package/dist/chunks/index-1.1.40-sw11xm4f.mjs +1 -0
- package/dist/chunks/index-1.1.40-wm4s6wvy.mjs +1 -0
- package/dist/chunks/init-1.1.40-t57rwm04.mjs +2 -0
- package/dist/chunks/initReplBridge-1.1.40-mjwfh9qk.mjs +1 -0
- package/dist/chunks/ink-1.1.40-9d6z3zms.mjs +1 -0
- package/dist/chunks/insights-1.1.40-a9638asy.mjs +870 -0
- package/dist/chunks/install-1.1.40-zxccztd6.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.40-zf5bv85a.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.40-5zhc4ky1.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.40-8b699chw.mjs +1 -0
- package/dist/chunks/latestVersionCache-1.1.40-pf10bcf1.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.40-2phb1zja.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.40-nyy8edra.mjs +1 -0
- package/dist/chunks/log-1.1.40-bd06efpx.mjs +1 -0
- package/dist/chunks/main-1.1.40-jsd88fnb.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.40-5bct44v9.mjs +1 -0
- package/dist/chunks/mcp-1.1.40-gwsy9z99.mjs +17 -0
- package/dist/chunks/mcp-1.1.40-ne4zhaas.mjs +4 -0
- package/dist/chunks/mcp-1.1.40-w28yghrq.mjs +1 -0
- package/dist/chunks/mcpb-1.1.40-rmczagzm.mjs +1 -0
- package/dist/chunks/memory-1.1.40-bw1f5kas.mjs +128 -0
- package/dist/chunks/model-1.1.40-abq8e5vn.mjs +1 -0
- package/dist/chunks/model-1.1.40-mchqmvyj.mjs +2 -0
- package/dist/chunks/new-1.1.40-52px2j2q.mjs +1 -0
- package/dist/chunks/node-1.1.40-9cewz2cq.mjs +1 -0
- package/dist/chunks/node-1.1.40-feq5eqhb.mjs +15 -0
- package/dist/chunks/oauth-1.1.40-g2ddff91.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.40-1f1x96vz.mjs +14 -0
- package/dist/chunks/output-style-1.1.40-57gexey1.mjs +1 -0
- package/dist/chunks/package-V72LKFNW-1.1.40-fsxygmx4.mjs +1 -0
- package/dist/chunks/permissions-1.1.40-a3gt3a6r.mjs +1 -0
- package/dist/chunks/permissions-1.1.40-tk64h5pw.mjs +3 -0
- package/dist/chunks/plan-1.1.40-qktxc0xv.mjs +1 -0
- package/dist/chunks/plist-1.1.40-syaedef6.mjs +1 -0
- package/dist/chunks/plugin-1.1.40-40707xv2.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.40-0s8z5pda.mjs +1 -0
- package/dist/chunks/plugins-1.1.40-36g7cedj.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.40-xs0mts7r.mjs +2 -0
- package/dist/chunks/print-1.1.40-n8tbgpmb.mjs +57 -0
- package/dist/chunks/process-1.1.40-2d6jw6ja.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.40-9wg7776s.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.40-xt635hzb.mjs +9 -0
- package/dist/chunks/prompt-1.1.40-384zryvv.mjs +1 -0
- package/dist/chunks/prompt-1.1.40-fafe7d93.mjs +1 -0
- package/dist/chunks/prompts-1.1.40-dkjt46vt.mjs +1 -0
- package/dist/chunks/provider-1.1.40-jdhrf16x.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.40-bw1gvrwa.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.40-grkw6t7j.mjs +6 -0
- package/dist/chunks/registerSubcommands-1.1.40-829pxw1w.mjs +26 -0
- package/dist/chunks/registry-1.1.40-gcsbpq05.mjs +1 -0
- package/dist/chunks/release-notes-1.1.40-7k7w7byk.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.40-0hnncx1c.mjs +2 -0
- package/dist/chunks/remote-env-1.1.40-8yjn1yy1.mjs +1 -0
- package/dist/chunks/rename-1.1.40-k97agc44.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.40-t07rfxt3.mjs +1 -0
- package/dist/chunks/resume-1.1.40-aztvxhw1.mjs +2 -0
- package/dist/chunks/rewind-1.1.40-qqcys5j3.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.40-1phbx46q.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.40-4zdbvgxr.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.40-w8261442.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.40-3jcyaq2m.mjs +1 -0
- package/dist/chunks/session-1.1.40-t3q2q12k.mjs +2 -0
- package/dist/chunks/sessionStorage-1.1.40-k9kv0fc5.mjs +1 -0
- package/dist/chunks/settings-1.1.40-xk0psj3p.mjs +1 -0
- package/dist/chunks/setup-1.1.40-k28y0vhd.mjs +12 -0
- package/dist/chunks/sinks-1.1.40-jmrhph0p.mjs +1 -0
- package/dist/chunks/skills-1.1.40-p548yntr.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.40-r0r0td60.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.40-9k4m0y14.mjs +1 -0
- package/dist/chunks/state-1.1.40-48n6bztp.mjs +1 -0
- package/dist/chunks/stats-1.1.40-7b8de2xc.mjs +1 -0
- package/dist/chunks/status-1.1.40-y6f9m60d.mjs +1 -0
- package/dist/chunks/stickers-1.1.40-6861rtwc.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.40-j8teh9py.mjs +1 -0
- package/dist/chunks/tasks-1.1.40-z0pdc2v6.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.40-dg7kse00.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.40-h0ps5f8m.mjs +1 -0
- package/dist/chunks/teleport-1.1.40-968xt0kq.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.40-tyj663fm.mjs +1 -0
- package/dist/chunks/theme-1.1.40-pt3gmfb7.mjs +1 -0
- package/dist/chunks/toolPool-1.1.40-7evty87j.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.40-js92r1j0.mjs +1 -0
- package/dist/chunks/tools-1.1.40-3xs7vby7.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.40-r64pb7jc.mjs +69 -0
- package/dist/chunks/types-1.1.40-106z8mxc.mjs +1 -0
- package/dist/chunks/update-1.1.40-t843j2px.mjs +72 -0
- package/dist/chunks/upload-1.1.40-mq50976a.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.40-8sq5v7b7.mjs +14 -0
- package/dist/chunks/usage-1.1.40-m5z82r48.mjs +1 -0
- package/dist/chunks/util-1.1.40-wt30k81w.mjs +1 -0
- package/dist/chunks/utils-1.1.40-59bpagj3.mjs +1 -0
- package/dist/chunks/vim-1.1.40-4kra5190.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.40-2vzyqrvn.mjs +13 -0
- package/dist/chunks/wiki-1.1.40-c29899s1.mjs +132 -0
- package/dist/chunks/workflows-1.1.40-heqcwgty.mjs +1 -0
- package/dist/chunks/worktree-1.1.40-mw6zf174.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.40-2wrpxrjt.mjs +1 -0
- package/dist/chunks/wrapper-1.1.40-07rbayqn.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/App-1.1.39-k3pzg19w.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.39-bycvt1g5.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.39-4j00w97q.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.39-38wypq07.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.39-edm7rsre.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.39-my209qf5.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.39-dt5qmt50.mjs +0 -6
- package/dist/chunks/Doctor-1.1.39-kv2tpcs1.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.39-d5t22ss6.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.39-z3zx6y4m.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.39-nwstppyf.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.39-pfjzxc4p.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.39-3mpd0tbf.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.39-r5976zwt.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.39-dzacd3pt.mjs +0 -1
- package/dist/chunks/REPL-1.1.39-ww7zvk7k.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.39-mdn16ej3.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.39-tnhzkmtn.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.39-vz4td3jg.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.39-rfjygmym.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.39-vbqywsj7.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.39-bb46mna1.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.39-b57dgsm7.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.39-jgfyp0cs.mjs +0 -1
- package/dist/chunks/add-dir-1.1.39-1wp8d118.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.39-0x20gy8e.mjs +0 -1
- package/dist/chunks/agents-1.1.39-b3k5kxn7.mjs +0 -110
- package/dist/chunks/agents-1.1.39-nt8wcmtp.mjs +0 -3
- package/dist/chunks/api-1.1.39-tn9g67g0.mjs +0 -1
- package/dist/chunks/asciicast-1.1.39-22byg1gm.mjs +0 -1
- package/dist/chunks/auth-1.1.39-1x1eer36.mjs +0 -1
- package/dist/chunks/auth-1.1.39-vz0zkq99.mjs +0 -1
- package/dist/chunks/autoMode-1.1.39-sjezrxh7.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.39-e6gvda2k.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.39-cz95xv2n.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.39-vsn9w5k2.mjs +0 -1
- package/dist/chunks/branch-1.1.39-e0ww5bkp.mjs +0 -4
- package/dist/chunks/bridge-1.1.39-k5vb0mmb.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.39-6czf6nvj.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.39-crv4d7xn.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.39-488k7mc8.mjs +0 -64
- package/dist/chunks/bridgePointer-1.1.39-xb9s18xx.mjs +0 -1
- package/dist/chunks/btw-1.1.39-n1psbg89.mjs +0 -1
- package/dist/chunks/buddy-1.1.39-ms13d421.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.39-j0aybz93.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.39-dg202ye5.mjs +0 -4
- package/dist/chunks/caches-1.1.39-v3nps0e9.mjs +0 -1
- package/dist/chunks/cd-1.1.39-awhhtq1z.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.39-azj9es6w.mjs +0 -1
- package/dist/chunks/claudemd-1.1.39-7a02xhkm.mjs +0 -1
- package/dist/chunks/clear-1.1.39-k197h5f0.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.39-twgf5kky.mjs +0 -1
- package/dist/chunks/cli-1.1.39-01qgb22d.mjs +0 -4
- package/dist/chunks/cli-1.1.39-07d1v3y9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-0k9p4g5p.mjs +0 -2
- package/dist/chunks/cli-1.1.39-0mtb82ww.mjs +0 -2
- package/dist/chunks/cli-1.1.39-0rsjfyh1.mjs +0 -9
- package/dist/chunks/cli-1.1.39-0s0eqwsn.mjs +0 -2
- package/dist/chunks/cli-1.1.39-10wrcybe.mjs +0 -2
- package/dist/chunks/cli-1.1.39-111vm2e1.mjs +0 -24
- package/dist/chunks/cli-1.1.39-14jxs3k5.mjs +0 -3
- package/dist/chunks/cli-1.1.39-15jr1t97.mjs +0 -2
- package/dist/chunks/cli-1.1.39-17mj2gq0.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1es853x9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1m7bzjpd.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1mpe0mv2.mjs +0 -17
- package/dist/chunks/cli-1.1.39-1q43eavk.mjs +0 -4
- package/dist/chunks/cli-1.1.39-1r1cbvk8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1tcqp8ky.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1wg6zvk6.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1yysfg6y.mjs +0 -2
- package/dist/chunks/cli-1.1.39-212q1ba2.mjs +0 -2
- package/dist/chunks/cli-1.1.39-24z9gjkg.mjs +0 -6
- package/dist/chunks/cli-1.1.39-2gzgjcxr.mjs +0 -6
- package/dist/chunks/cli-1.1.39-2hgsp1ry.mjs +0 -2
- package/dist/chunks/cli-1.1.39-2k0w4c3v.mjs +0 -6
- package/dist/chunks/cli-1.1.39-2vf0yc3g.mjs +0 -2
- package/dist/chunks/cli-1.1.39-2x3kj4gh.mjs +0 -2
- package/dist/chunks/cli-1.1.39-2xmkpvn8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-31e9rw45.mjs +0 -2
- package/dist/chunks/cli-1.1.39-3g0p54p8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-3mghgnn1.mjs +0 -24
- package/dist/chunks/cli-1.1.39-3yy2wxqa.mjs +0 -24
- package/dist/chunks/cli-1.1.39-4bdssx8e.mjs +0 -2
- package/dist/chunks/cli-1.1.39-4he45b53.mjs +0 -2
- package/dist/chunks/cli-1.1.39-4p4c56cn.mjs +0 -2
- package/dist/chunks/cli-1.1.39-4w5sz267.mjs +0 -2
- package/dist/chunks/cli-1.1.39-52k1fj82.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5gdtmek1.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5ge6mqxz.mjs +0 -63
- package/dist/chunks/cli-1.1.39-5h7tfgqc.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5r6zjkfz.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5t4113gt.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5xkhxv1a.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5yxt37n7.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5zc15zgx.mjs +0 -2
- package/dist/chunks/cli-1.1.39-6pkc868v.mjs +0 -2
- package/dist/chunks/cli-1.1.39-6y7dsvjs.mjs +0 -2
- package/dist/chunks/cli-1.1.39-70t1q2pm.mjs +0 -2
- package/dist/chunks/cli-1.1.39-75gxbxsn.mjs +0 -7
- package/dist/chunks/cli-1.1.39-7ck7pqh0.mjs +0 -2
- package/dist/chunks/cli-1.1.39-7d9k8cma.mjs +0 -2
- package/dist/chunks/cli-1.1.39-7hm6zgk1.mjs +0 -15
- package/dist/chunks/cli-1.1.39-7jhstkb2.mjs +0 -2
- package/dist/chunks/cli-1.1.39-7kjnzaa8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-7tchegvs.mjs +0 -5
- package/dist/chunks/cli-1.1.39-7tgaawmj.mjs +0 -2
- package/dist/chunks/cli-1.1.39-7xc1qp70.mjs +0 -2
- package/dist/chunks/cli-1.1.39-89e5xfsc.mjs +0 -2
- package/dist/chunks/cli-1.1.39-8e62hz1p.mjs +0 -3
- package/dist/chunks/cli-1.1.39-8gscnd8w.mjs +0 -2
- package/dist/chunks/cli-1.1.39-8jw8s604.mjs +0 -2
- package/dist/chunks/cli-1.1.39-8k3rh435.mjs +0 -2
- package/dist/chunks/cli-1.1.39-8xf0xfkw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-905jk7a7.mjs +0 -133
- package/dist/chunks/cli-1.1.39-9afxesb0.mjs +0 -3
- package/dist/chunks/cli-1.1.39-9bh2t20k.mjs +0 -3
- package/dist/chunks/cli-1.1.39-9dfw3wt9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-9j9vfcg0.mjs +0 -10
- package/dist/chunks/cli-1.1.39-9qsdqnm7.mjs +0 -6
- package/dist/chunks/cli-1.1.39-9yg363zk.mjs +0 -2
- package/dist/chunks/cli-1.1.39-a1rc9y55.mjs +0 -3
- package/dist/chunks/cli-1.1.39-a40ak4sd.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ay2p31kb.mjs +0 -39
- package/dist/chunks/cli-1.1.39-b1gewbgs.mjs +0 -2
- package/dist/chunks/cli-1.1.39-b314axe0.mjs +0 -2
- package/dist/chunks/cli-1.1.39-b3geta93.mjs +0 -21
- package/dist/chunks/cli-1.1.39-bd66bjj3.mjs +0 -2
- package/dist/chunks/cli-1.1.39-brzpjtja.mjs +0 -2
- package/dist/chunks/cli-1.1.39-c4c832m5.mjs +0 -2
- package/dist/chunks/cli-1.1.39-c6mm3w1n.mjs +0 -135
- package/dist/chunks/cli-1.1.39-c86mbrv2.mjs +0 -2
- package/dist/chunks/cli-1.1.39-chveh83h.mjs +0 -2
- package/dist/chunks/cli-1.1.39-cjc01sak.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ck0k3rxx.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ckty7bt1.mjs +0 -2
- package/dist/chunks/cli-1.1.39-cq5nwqfw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-cvbzp08c.mjs +0 -2
- package/dist/chunks/cli-1.1.39-cyx7zw76.mjs +0 -50
- package/dist/chunks/cli-1.1.39-czh4aj72.mjs +0 -4
- package/dist/chunks/cli-1.1.39-d25xsy5x.mjs +0 -2
- package/dist/chunks/cli-1.1.39-dfrms96j.mjs +0 -2
- package/dist/chunks/cli-1.1.39-djtdv45d.mjs +0 -4
- package/dist/chunks/cli-1.1.39-dm5rqr07.mjs +0 -8
- package/dist/chunks/cli-1.1.39-dvfdgp8r.mjs +0 -2
- package/dist/chunks/cli-1.1.39-dwfknzds.mjs +0 -2
- package/dist/chunks/cli-1.1.39-dwgjp6zp.mjs +0 -2
- package/dist/chunks/cli-1.1.39-e4p7vgrg.mjs +0 -2
- package/dist/chunks/cli-1.1.39-e98w7pr4.mjs +0 -2
- package/dist/chunks/cli-1.1.39-en8a3nq6.mjs +0 -11
- package/dist/chunks/cli-1.1.39-epktaska.mjs +0 -3
- package/dist/chunks/cli-1.1.39-esp4w3m4.mjs +0 -2
- package/dist/chunks/cli-1.1.39-evs7a20p.mjs +0 -9
- package/dist/chunks/cli-1.1.39-eyp8d7vv.mjs +0 -2
- package/dist/chunks/cli-1.1.39-f0wf0m0n.mjs +0 -2
- package/dist/chunks/cli-1.1.39-f1schffw.mjs +0 -25
- package/dist/chunks/cli-1.1.39-f2qc1x1n.mjs +0 -2
- package/dist/chunks/cli-1.1.39-f5azyvet.mjs +0 -2
- package/dist/chunks/cli-1.1.39-fka8qdkr.mjs +0 -2
- package/dist/chunks/cli-1.1.39-fm08hbtj.mjs +0 -2
- package/dist/chunks/cli-1.1.39-fqsaf1st.mjs +0 -2
- package/dist/chunks/cli-1.1.39-g751n1kp.mjs +0 -2
- package/dist/chunks/cli-1.1.39-g7mbr2ky.mjs +0 -2
- package/dist/chunks/cli-1.1.39-g9rcf6cw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ghja51c5.mjs +0 -2
- package/dist/chunks/cli-1.1.39-gnkk8fs7.mjs +0 -2
- package/dist/chunks/cli-1.1.39-gtm67f9z.mjs +0 -2
- package/dist/chunks/cli-1.1.39-h06axtf8.mjs +0 -4
- package/dist/chunks/cli-1.1.39-h8ahn5vw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-h90nz8dv.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ha8fn1m0.mjs +0 -2
- package/dist/chunks/cli-1.1.39-hgm87yas.mjs +0 -10
- package/dist/chunks/cli-1.1.39-j6nvja1z.mjs +0 -2
- package/dist/chunks/cli-1.1.39-jmh4b6db.mjs +0 -2
- package/dist/chunks/cli-1.1.39-jncrq8d3.mjs +0 -2
- package/dist/chunks/cli-1.1.39-jq1a84j4.mjs +0 -2
- package/dist/chunks/cli-1.1.39-k8n2ksgh.mjs +0 -2
- package/dist/chunks/cli-1.1.39-kcq7gw24.mjs +0 -60
- package/dist/chunks/cli-1.1.39-kfztpa2h.mjs +0 -2
- package/dist/chunks/cli-1.1.39-kkgyntg1.mjs +0 -7
- package/dist/chunks/cli-1.1.39-kw258d7x.mjs +0 -4
- package/dist/chunks/cli-1.1.39-mhv15208.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ms0zz1pq.mjs +0 -2
- package/dist/chunks/cli-1.1.39-mtdpf384.mjs +0 -2
- package/dist/chunks/cli-1.1.39-n8j5q839.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nc39g50q.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nde8mxzw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ne2jz4j1.mjs +0 -12
- package/dist/chunks/cli-1.1.39-nhgqks5q.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nk9xnj41.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nkv70wmc.mjs +0 -10
- package/dist/chunks/cli-1.1.39-nmm4w3bh.mjs +0 -16
- package/dist/chunks/cli-1.1.39-nnc7eg6p.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nsgjkze0.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nxv718fh.mjs +0 -3
- package/dist/chunks/cli-1.1.39-p2sg5g92.mjs +0 -250
- package/dist/chunks/cli-1.1.39-pc9dgxhx.mjs +0 -5
- package/dist/chunks/cli-1.1.39-q8q90rxq.mjs +0 -2
- package/dist/chunks/cli-1.1.39-rfkva6dd.mjs +0 -42
- package/dist/chunks/cli-1.1.39-rhqy2d5w.mjs +0 -2
- package/dist/chunks/cli-1.1.39-rjxm15hw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-rp6sehng.mjs +0 -3
- package/dist/chunks/cli-1.1.39-rprv5zq8.mjs +0 -25
- package/dist/chunks/cli-1.1.39-rqs6bqnm.mjs +0 -2
- package/dist/chunks/cli-1.1.39-rxpy9zgc.mjs +0 -2
- package/dist/chunks/cli-1.1.39-s4g9xyv5.mjs +0 -2
- package/dist/chunks/cli-1.1.39-srjkdp3j.mjs +0 -2
- package/dist/chunks/cli-1.1.39-swktejeb.mjs +0 -2
- package/dist/chunks/cli-1.1.39-t2jqv0s9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-t4a22cet.mjs +0 -6
- package/dist/chunks/cli-1.1.39-tc87f2ta.mjs +0 -2
- package/dist/chunks/cli-1.1.39-tjpdjpp5.mjs +0 -15
- package/dist/chunks/cli-1.1.39-tveshzdb.mjs +0 -2
- package/dist/chunks/cli-1.1.39-v92y62n9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-vh86jjp2.mjs +0 -4
- package/dist/chunks/cli-1.1.39-vhqah8m7.mjs +0 -2
- package/dist/chunks/cli-1.1.39-vtt2tmb9.mjs +0 -18
- package/dist/chunks/cli-1.1.39-wdctfdbb.mjs +0 -4
- package/dist/chunks/cli-1.1.39-whzghgxz.mjs +0 -2
- package/dist/chunks/cli-1.1.39-x6jkg8mf.mjs +0 -20
- package/dist/chunks/cli-1.1.39-xg4cr6x8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-xm6k98xf.mjs +0 -2
- package/dist/chunks/cli-1.1.39-xyddt40c.mjs +0 -2
- package/dist/chunks/cli-1.1.39-y341qw3m.mjs +0 -2
- package/dist/chunks/cli-1.1.39-yjwk9mw8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ypma7nx9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ytvr80fj.mjs +0 -15
- package/dist/chunks/cli-1.1.39-yyqx9zb5.mjs +0 -5522
- package/dist/chunks/cli-1.1.39-z1akavz2.mjs +0 -2
- package/dist/chunks/cli-1.1.39-z21b507j.mjs +0 -2
- package/dist/chunks/cli-1.1.39-z6fepfnh.mjs +0 -2
- package/dist/chunks/cli-1.1.39-zc1b8zf6.mjs +0 -2
- package/dist/chunks/cli-1.1.39-zdsdsv4h.mjs +0 -3
- package/dist/chunks/cli-1.1.39-zfb5hcs0.mjs +0 -34
- package/dist/chunks/client-1.1.39-zrdzybfj.mjs +0 -1
- package/dist/chunks/color-1.1.39-qsgg6xt0.mjs +0 -1
- package/dist/chunks/compact-1.1.39-ye5nj18m.mjs +0 -2
- package/dist/chunks/config-1.1.39-cfgcj726.mjs +0 -1
- package/dist/chunks/config-1.1.39-nsgxmahr.mjs +0 -1
- package/dist/chunks/constants-1.1.39-s4anaxa3.mjs +0 -1
- package/dist/chunks/context-1.1.39-a93qe83k.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.39-2428zhce.mjs +0 -1
- package/dist/chunks/conversation-1.1.39-x581tx1z.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.39-bnzefwe6.mjs +0 -1
- package/dist/chunks/copy-1.1.39-tqab4hm1.mjs +0 -9
- package/dist/chunks/cost-1.1.39-ak71khd3.mjs +0 -1
- package/dist/chunks/createSession-1.1.39-yv7a37ye.mjs +0 -1
- package/dist/chunks/debug-1.1.39-50dvjcn3.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.39-483fm6xk.mjs +0 -1458
- package/dist/chunks/desktop-1.1.39-hbx627a1.mjs +0 -2
- package/dist/chunks/detectRepository-1.1.39-nq1yyp24.mjs +0 -1
- package/dist/chunks/detection-1.1.39-myz8dcyc.mjs +0 -1
- package/dist/chunks/diff-1.1.39-zwwd0sxq.mjs +0 -1
- package/dist/chunks/doctor-1.1.39-bw8w0sdj.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.39-x9azkqjy.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.39-3wtxyym8.mjs +0 -1
- package/dist/chunks/effort-1.1.39-4r28x4kv.mjs +0 -13
- package/dist/chunks/engine-1.1.39-jjwgtndr.mjs +0 -1
- package/dist/chunks/envUtils-1.1.39-azqd5ff8.mjs +0 -1
- package/dist/chunks/errors-1.1.39-z6wpc1z1.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.39-fhwx5xxp.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.39-raa250pr.mjs +0 -1
- package/dist/chunks/exit-1.1.39-vwjekv6v.mjs +0 -1
- package/dist/chunks/explorer-1.1.39-rs5cjdex.mjs +0 -1
- package/dist/chunks/export-1.1.39-eg5q8fpq.mjs +0 -2
- package/dist/chunks/fast-1.1.39-j8zrdcv9.mjs +0 -1
- package/dist/chunks/feedback-1.1.39-tt17q1d1.mjs +0 -16
- package/dist/chunks/git-1.1.39-hf1cm8nf.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.39-yb2392an.mjs +0 -1
- package/dist/chunks/goal-1.1.39-6q6twvx9.mjs +0 -4
- package/dist/chunks/headless-1.1.39-e745sf98.mjs +0 -2
- package/dist/chunks/heapdump-1.1.39-1mf2vt2g.mjs +0 -6
- package/dist/chunks/help-1.1.39-szdr1nvx.mjs +0 -1
- package/dist/chunks/hooks-1.1.39-5pws6gsg.mjs +0 -79
- package/dist/chunks/hooks-1.1.39-6tz18s8r.mjs +0 -1
- package/dist/chunks/ide-1.1.39-nk0vmfg1.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.39-rx4ypf8k.mjs +0 -1
- package/dist/chunks/import-1.1.39-eyddkf9v.mjs +0 -260
- package/dist/chunks/inboundAttachments-1.1.39-g0fjztwj.mjs +0 -1
- package/dist/chunks/index-1.1.39-1wfhz9pz.mjs +0 -1
- package/dist/chunks/index-1.1.39-27vjd0t1.mjs +0 -1
- package/dist/chunks/index-1.1.39-3mp0kdhv.mjs +0 -1
- package/dist/chunks/index-1.1.39-aj2fb3nf.mjs +0 -30
- package/dist/chunks/index-1.1.39-ajb8kk03.mjs +0 -1
- package/dist/chunks/index-1.1.39-bznxqgpz.mjs +0 -1
- package/dist/chunks/index-1.1.39-cf96agzw.mjs +0 -2
- package/dist/chunks/index-1.1.39-d4j661cs.mjs +0 -1
- package/dist/chunks/index-1.1.39-dapcfrje.mjs +0 -1
- package/dist/chunks/index-1.1.39-e9fjpss8.mjs +0 -1
- package/dist/chunks/index-1.1.39-eg0vw6jg.mjs +0 -1
- package/dist/chunks/index-1.1.39-eqm0e7bk.mjs +0 -1
- package/dist/chunks/index-1.1.39-frzv879p.mjs +0 -23
- package/dist/chunks/index-1.1.39-fthy3yb2.mjs +0 -1
- package/dist/chunks/index-1.1.39-h7tvkmm7.mjs +0 -9
- package/dist/chunks/index-1.1.39-hn7czx81.mjs +0 -5
- package/dist/chunks/index-1.1.39-jeg0xvtv.mjs +0 -1
- package/dist/chunks/index-1.1.39-qh6j97r3.mjs +0 -2
- package/dist/chunks/index-1.1.39-szfdrv3c.mjs +0 -9
- package/dist/chunks/index-1.1.39-t358fdhx.mjs +0 -1
- package/dist/chunks/index-1.1.39-w73ez3fh.mjs +0 -1
- package/dist/chunks/index-1.1.39-xcj56xfg.mjs +0 -1
- package/dist/chunks/index-1.1.39-zy7eyf9r.mjs +0 -1
- package/dist/chunks/init-1.1.39-fm3907f2.mjs +0 -2
- package/dist/chunks/initReplBridge-1.1.39-76qw9tbk.mjs +0 -1
- package/dist/chunks/ink-1.1.39-f9cyw022.mjs +0 -1
- package/dist/chunks/insights-1.1.39-ee2ra979.mjs +0 -870
- package/dist/chunks/install-1.1.39-1hv4f4fk.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.39-tg2jfpvx.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.39-69fgekh2.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.39-5caf0pb7.mjs +0 -1
- package/dist/chunks/latestVersionCache-1.1.39-31bygz1b.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.39-1jtdv1bq.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.39-4xw48447.mjs +0 -1
- package/dist/chunks/log-1.1.39-50bfm8j0.mjs +0 -1
- package/dist/chunks/main-1.1.39-f3n951kv.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.39-bwtexcjv.mjs +0 -1
- package/dist/chunks/mcp-1.1.39-15sz3hsq.mjs +0 -1
- package/dist/chunks/mcp-1.1.39-h4h304ze.mjs +0 -4
- package/dist/chunks/mcp-1.1.39-rdsgsc15.mjs +0 -17
- package/dist/chunks/mcpb-1.1.39-5qywjc26.mjs +0 -1
- package/dist/chunks/memory-1.1.39-8edv180p.mjs +0 -128
- package/dist/chunks/model-1.1.39-95b780x9.mjs +0 -2
- package/dist/chunks/model-1.1.39-a5xmtpbv.mjs +0 -1
- package/dist/chunks/new-1.1.39-9476r8p1.mjs +0 -1
- package/dist/chunks/node-1.1.39-pqhskkn0.mjs +0 -15
- package/dist/chunks/node-1.1.39-xgvdgvgj.mjs +0 -1
- package/dist/chunks/oauth-1.1.39-5h69g0mf.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.39-jnp9fkcv.mjs +0 -14
- package/dist/chunks/output-style-1.1.39-e5qsw51y.mjs +0 -1
- package/dist/chunks/package-V72LKFNW-1.1.39-0gcw2fkh.mjs +0 -1
- package/dist/chunks/permissions-1.1.39-0m2h5ctr.mjs +0 -3
- package/dist/chunks/permissions-1.1.39-djt32qkn.mjs +0 -1
- package/dist/chunks/plan-1.1.39-qcq9a7rg.mjs +0 -1
- package/dist/chunks/plist-1.1.39-esb4db3e.mjs +0 -1
- package/dist/chunks/plugin-1.1.39-xztkvc83.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.39-pzynd625.mjs +0 -1
- package/dist/chunks/plugins-1.1.39-2vnnwfwq.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.39-w6ay049g.mjs +0 -2
- package/dist/chunks/print-1.1.39-m20hre3d.mjs +0 -57
- package/dist/chunks/process-1.1.39-7pp4m6p6.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.39-z8xyxzeb.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.39-025rdqc4.mjs +0 -9
- package/dist/chunks/prompt-1.1.39-8cves1th.mjs +0 -1
- package/dist/chunks/prompt-1.1.39-vys3tszv.mjs +0 -1
- package/dist/chunks/prompts-1.1.39-agk5ys12.mjs +0 -1
- package/dist/chunks/provider-1.1.39-ezn3013z.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.39-c20aqfkp.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.39-5bwc03ac.mjs +0 -6
- package/dist/chunks/registerSubcommands-1.1.39-tg42q4mt.mjs +0 -26
- package/dist/chunks/registry-1.1.39-69kg9048.mjs +0 -1
- package/dist/chunks/release-notes-1.1.39-vm602996.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.39-hq5jb4fe.mjs +0 -2
- package/dist/chunks/remote-env-1.1.39-b742xwt8.mjs +0 -1
- package/dist/chunks/rename-1.1.39-37583s4r.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.39-x7vm725e.mjs +0 -1
- package/dist/chunks/resume-1.1.39-7x78pwef.mjs +0 -2
- package/dist/chunks/rewind-1.1.39-36y4s8ng.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.39-ns1nx8k9.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.39-8p1cbkrx.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.39-bt6cm9af.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.39-a3p74qsk.mjs +0 -1
- package/dist/chunks/session-1.1.39-qgpx4589.mjs +0 -2
- package/dist/chunks/sessionStorage-1.1.39-fp105vvb.mjs +0 -1
- package/dist/chunks/settings-1.1.39-qe258cgb.mjs +0 -1
- package/dist/chunks/setup-1.1.39-4zjv96k3.mjs +0 -12
- package/dist/chunks/sinks-1.1.39-6xx75cg6.mjs +0 -1
- package/dist/chunks/skills-1.1.39-2d5tfynf.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.39-jcvdrk17.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.39-43maz2ha.mjs +0 -1
- package/dist/chunks/state-1.1.39-4sbpam9q.mjs +0 -1
- package/dist/chunks/stats-1.1.39-8p35mm3v.mjs +0 -1
- package/dist/chunks/status-1.1.39-1qcsfp99.mjs +0 -1
- package/dist/chunks/stickers-1.1.39-hppwbrtb.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.39-hp2bbefp.mjs +0 -1
- package/dist/chunks/tasks-1.1.39-qs8xddg1.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.39-qnvqd2j1.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.39-pr2vnqzw.mjs +0 -1
- package/dist/chunks/teleport-1.1.39-zt8tze77.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.39-715qq4cf.mjs +0 -1
- package/dist/chunks/theme-1.1.39-gnxdfpcb.mjs +0 -1
- package/dist/chunks/toolPool-1.1.39-77884kvy.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.39-b2k8yjaz.mjs +0 -1
- package/dist/chunks/tools-1.1.39-7nbe7hrf.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.39-h0gz7em7.mjs +0 -69
- package/dist/chunks/types-1.1.39-jcqnbyss.mjs +0 -1
- package/dist/chunks/update-1.1.39-1w75psfh.mjs +0 -72
- package/dist/chunks/upload-1.1.39-z8ymn737.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.39-j1d74feb.mjs +0 -14
- package/dist/chunks/usage-1.1.39-s31k5fep.mjs +0 -1
- package/dist/chunks/util-1.1.39-ad8sk0dp.mjs +0 -1
- package/dist/chunks/utils-1.1.39-ya8kcrhm.mjs +0 -1
- package/dist/chunks/vim-1.1.39-b6pfmpbz.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.39-h3bxe3p9.mjs +0 -13
- package/dist/chunks/wiki-1.1.39-5aj4xh5m.mjs +0 -132
- package/dist/chunks/workflows-1.1.39-f31ham8r.mjs +0 -1
- package/dist/chunks/worktree-1.1.39-sf55cdqj.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.39-4ja3es46.mjs +0 -1
- package/dist/chunks/wrapper-1.1.39-r1fj52tb.mjs +0 -7
- /package/dist/chunks/{cli-1.1.39-avfsydnr.mjs → cli-1.1.40-1y2tz88m.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.39-hn5s43sr.mjs → cli-1.1.40-3xg2bc7f.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.39-jsnryd3j.mjs → cli-1.1.40-8vgr1z6h.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.39-z8ts6axr.mjs → cli-1.1.40-jxfk62k7.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.39-erbg35qn.mjs → cli-1.1.40-x18jz9h5.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.39-qnem4654.mjs → cli-1.1.40-ys83fnw1.mjs} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{J5 as c,p5 as S,r2 as j,u2 as h}from"./cli-1.1.40-13e9gynq.mjs";import{g6 as b,h6 as l}from"./cli-1.1.40-0z5szwzt.mjs";import{B8 as Y,T8 as D}from"./cli-1.1.40-gk34ey8n.mjs";import{h9 as F,i9 as R}from"./cli-1.1.40-5x38x6mx.mjs";import{Rfa as y,Wfa as I}from"./cli-1.1.40-hfe06y9j.mjs";import{Aha as $,Bha as E,Cha as _,Dha as T}from"./cli-1.1.40-05q41dcq.mjs";import{uia as v,via as m}from"./cli-1.1.40-2ted9r2b.mjs";import{_ia as M,dja as U,vja as W,yja as z}from"./cli-1.1.40-cy642er2.mjs";import{Uja as k,Vja as q,aka as O}from"./cli-1.1.40-rq9y2zd8.mjs";import{Nqa as A}from"./cli-1.1.40-jxfk62k7.mjs";import{randomUUID as d}from"crypto";function u(J){if(!Y.isAxiosError(J))return!1;if(!J.response)return!0;if(J.response.status>=500)return!0;return!1}async function p(J,B){let N;for(let K=0;K<=x;K++)try{return await Y.get(J,B)}catch(Q){if(N=Q,!u(Q))throw Q;if(K>=x)throw W(`Teleport request failed after ${K+1} attempts: ${q(Q)}`),Q;let V=f[K]??2000;W(`Teleport request failed (attempt ${K+1}/${x+1}), retrying in ${V}ms: ${q(Q)}`),await b(V)}throw N}async function C(){let J=S()?.accessToken;if(J===void 0)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let B=await j();if(!B)throw Error("Unable to get organization UUID");return{accessToken:J,orgUUID:B}}async function BJ(){let{accessToken:J,orgUUID:B}=await C(),N=`${v().BASE_API_URL}/v1/sessions`;try{let K={...L(J),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},Q=await p(N,{headers:K});if(Q.status!==200)throw Error(`Failed to fetch code sessions: ${Q.statusText}`);return Q.data.data.map((Z)=>{let X=Z.session_context.sources.find((G)=>G.type==="git_repository"),H=null;if(X?.url){let G=F(X.url);if(G){let[w,P]=G.split("/");if(w&&P)H={name:P,owner:{login:w},default_branch:X.revision||void 0}}}return{id:Z.id,title:Z.title||"Untitled",description:"",status:Z.session_status,repo:H,turns:[],created_at:Z.created_at,updated_at:Z.updated_at}})}catch(K){let Q=k(K);throw y(Q),K}}function L(J){return{Authorization:`Bearer ${J}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"}}async function NJ(J){let{accessToken:B,orgUUID:N}=await C(),K=`${v().BASE_API_URL}/v1/sessions/${J}`,Q={...L(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":N},V=await Y.get(K,{headers:Q,timeout:15000,validateStatus:(Z)=>Z<500});if(V.status!==200){let X=V.data?.error?.message;if(V.status===404)throw Error(`Session not found: ${J}`);if(V.status===401)throw Error("Session expired. Please run /login to sign in again.");throw Error(X||`Failed to fetch session: ${V.status} ${V.statusText}`)}return V.data}function WJ(J){return J.session_context.outcomes?.find((N)=>N.type==="git_repository")?.git_info?.branches[0]}async function GJ(J,B,N){try{let{accessToken:K,orgUUID:Q}=await C(),V=`${v().BASE_API_URL}/v1/sessions/${J}/events`,Z={...L(K),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Q},H={events:[{uuid:N?.uuid??d(),session_id:J,type:"user",parent_tool_use_id:null,message:{role:"user",content:B}}]};W(`[sendEventToRemoteSession] Sending event to session ${J}`);let G=await Y.post(V,H,{headers:Z,validateStatus:(w)=>w<500,timeout:30000});if(G.status===200||G.status===201)return W(`[sendEventToRemoteSession] Successfully sent event to session ${J}`),!0;return W(`[sendEventToRemoteSession] Failed with status ${G.status}: ${M(G.data)}`),!1}catch(K){return W(`[sendEventToRemoteSession] Error: ${q(K)}`),!1}}async function XJ(J,B){try{let{accessToken:N,orgUUID:K}=await C(),Q=`${v().BASE_API_URL}/v1/sessions/${J}`,V={...L(N),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":K};W(`[updateSessionTitle] Updating title for session ${J}: "${B}"`);let Z=await Y.patch(Q,{title:B},{headers:V,validateStatus:(X)=>X<500});if(Z.status===200)return W(`[updateSessionTitle] Successfully updated title for session ${J}`),!0;return W(`[updateSessionTitle] Failed with status ${Z.status}: ${M(Z.data)}`),!1}catch(N){return W(`[updateSessionTitle] Error: ${q(N)}`),!1}}var f,x,$J;var g=A(()=>{D();m();h();E();c();z();R();O();T();I();l();U();f=[2000,4000,8000,16000],x=f.length;$J=_(()=>$.object({id:$.string(),title:$.string(),description:$.string(),status:$.enum(["idle","working","waiting","completed","archived","cancelled","rejected"]),repo:$.object({name:$.string(),owner:$.object({login:$.string()}),default_branch:$.string().optional()}).nullable(),turns:$.array($.string()),created_at:$.string(),updated_at:$.string()}))});
|
|
2
|
+
export{u as fY,p as gY,$J as hY,BJ as iY,L as jY,NJ as kY,WJ as lY,GJ as mY,XJ as nY,g as oY};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{k_ as H,m_ as J,vea as R}from"./cli-1.1.40-hfe06y9j.mjs";import{Nqa as Q}from"./cli-1.1.40-jxfk62k7.mjs";function M(q){return U(J(),q)}function S(q,z){let B=L[q],D=T(M(q),z);return H((P)=>({...P,[B]:D})),D.includes(z)}function X(q,z){return{list:()=>M(q),toggle:(B)=>{S(q,B)},keyOf:z}}function T(q,z){return q.includes(z)?q.filter((B)=>B!==z):[...q,z]}function U(q,z){let B=q[L[z]];return Array.isArray(B)?B.filter((D)=>typeof D==="string"):[]}var L;var V=Q(()=>{R();L={model:"favoriteModels",providerProfile:"favoriteProviderProfiles"}});
|
|
2
|
+
export{X as nh,V as oh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{JG as U,KG as w}from"./cli-1.1.40-wh51ya47.mjs";import{$X as k,hW as f,tX as N,vX as O}from"./cli-1.1.40-ckjrbh6b.mjs";import{C1 as M,D1 as H,E1 as R}from"./cli-1.1.40-rwbr7d1h.mjs";import{Jqa as Y,Nqa as Z}from"./cli-1.1.40-jxfk62k7.mjs";function _(X){let q=V.c(10),{message:I,bold:P,dimColor:Q,subtitle:D}=X,J=P===void 0?!1:P,K=Q===void 0?!1:Q,E;if(q[0]===Symbol.for("react.memo_cache_sentinel"))E=M(U,{}),q[0]=E;else E=q[0];let v;if(q[1]!==J||q[2]!==K||q[3]!==I)v=H(N,{flexDirection:"row",children:[E,H(O,{bold:J,dimColor:K,children:[" ",I]})]}),q[1]=J,q[2]=K,q[3]=I,q[4]=v;else v=q[4];let z;if(q[5]!==D)z=D&&M(O,{dimColor:!0,children:D}),q[5]=D,q[6]=z;else z=q[6];let G;if(q[7]!==v||q[8]!==z)G=H(N,{flexDirection:"column",children:[v,z]}),q[7]=v,q[8]=z,q[9]=G;else G=q[9];return G}var V;var A=Z(()=>{k();w();R();V=Y(f(),1)});
|
|
2
|
+
export{_ as Ig,A as Jg};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{MO as F,NO as S,QO as C,WO as a,by as y,fy as r}from"./cli-1.1.40-wh51ya47.mjs";import{fW as z,gW as b}from"./cli-1.1.40-ckjrbh6b.mjs";import{$Z as o,_Z as D}from"./cli-1.1.40-cjtb9y6z.mjs";import{$9 as T,Y9 as R,Z9 as l,a_ as u}from"./cli-1.1.40-hfe06y9j.mjs";import{bja as O,dja as c,hja as L,lja as d,vja as N,yja as g}from"./cli-1.1.40-cy642er2.mjs";import{Ypa as _,Zpa as I}from"./cli-1.1.40-m0j9t9he.mjs";import{Nqa as j}from"./cli-1.1.40-jxfk62k7.mjs";import{spawn as G,spawnSync as w}from"child_process";import{basename as k}from"path";function P(q){return!!T(q)}function V(q){let H=k(q.split(" ")[0]??"");return h.find((B)=>H.includes(B))}function p(q,H,B){if(!B)return[H];if(m.has(q))return["-g",`${H}:${B}`];if(q==="subl")return[`${H}:${B}`];return[H]}function Qq(q,H){let B=v();if(!B)return!1;let J=B.split(" "),X=J[0]??B,K=J.slice(1),Q=V(B);if(Q){let W=p(Q,q,H),Z={detached:!0,stdio:"ignore"},M;if(process.platform==="win32"){let U=W.map((E)=>`"${E}"`).join(" ");M=G(`${B} ${U}`,{...Z,shell:!0})}else M=G(X,[...K,...W],Z);return M.on("error",(U)=>N(`editor spawn failed: ${U}`,{level:"error"})),M.unref(),!0}let $=z.get(process.stdout);if(!$)return!1;let Y=H&&f.test(k(X));$.enterAlternateScreen();try{let W={stdio:"inherit"},Z;if(process.platform==="win32"){let M=Y?`+${H} `:"";Z=w(`${B} ${M}"${q}"`,{...W,shell:!0})}else{let M=[...K,...Y?[`+${H}`,q]:[q]];Z=w(X,M,W)}if(Z.error)return N(`editor spawn failed: ${Z.error}`,{level:"error"}),!1;return!0}finally{$.exitAlternateScreen()}}var h,f,m,v;var x=j(()=>{I();b();g();u();h=["code","cursor","windsurf","codium","subl","atom","gedit","notepad++","notepad"],f=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,m=new Set(["code","cursor","windsurf","codium"]);v=_(()=>{if(process.env.VISUAL?.trim())return process.env.VISUAL.trim();if(process.env.EDITOR?.trim())return process.env.EDITOR.trim();if(process.platform==="win32")return"start /wait notepad";return["code","vi","nano"].find((H)=>P(H))})});function s(q){return V(q)!==void 0}function i(q){let H=L(),B=z.get(process.stdout);if(!B)throw Error("Ink instance not found - cannot pause rendering");let J=v();if(!J)return{content:null};try{H.statSync(q)}catch{return{content:null}}let X=!s(J);if(X)B.enterAlternateScreen();else B.pause(),B.suspendStdin();try{let K=Object.hasOwn(A,J)?A[J]:J;return R(`${K} "${q}"`,{stdio:"inherit"}),{content:H.readFileSync(q,{encoding:"utf-8"})}}catch(K){if(typeof K==="object"&&K!==null&&"status"in K&&typeof K.status==="number"){let Q=K.status;if(Q!==0)return{content:null,error:`${y(J)} exited with code ${Q}`}}return{content:null}}finally{if(X)B.exitAlternateScreen();else B.resumeStdin(),B.resume()}}function n(q,H,B){let J=q;for(let[X,K]of Object.entries(B))if(K.type==="text"){let Q=parseInt(X),$=K.content,Y=J.indexOf($);if(Y!==-1){let W=F($),Z=S(Q,W);J=J.slice(0,Y)+Z+J.slice(Y+$.length)}}return J}function Vq(q,H){let B=L(),J=D();try{let X=H?C(q,H):q;O(J,X,{encoding:"utf-8",flush:!0});let K=i(J);if(K.content===null)return K;let Q=K.content;if(Q.endsWith(`
|
|
2
|
+
`)&&!Q.endsWith(`
|
|
3
|
+
|
|
4
|
+
`))Q=Q.slice(0,-1);if(H)Q=n(Q,q,H);return{content:Q}}finally{try{B.unlinkSync(J)}catch{}}}var A;var t=j(()=>{a();b();x();l();d();r();c();o();A={code:"code -w",subl:"subl --wait"}});
|
|
5
|
+
export{Qq as xg,v as yg,x as zg,i as Ag,Vq as Bg,t as Cg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Nqa as b}from"./cli-1.1.40-jxfk62k7.mjs";var j=86400000,k="Remote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",q="Error: You must be logged in to use Remote Control.\n\nRemote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",w="Remote Control disconnected.";var g=()=>{};
|
|
2
|
+
export{j as Cb,k as Db,q as Eb,w as Fb,g as Gb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{m_ as P,vea as y}from"./cli-1.1.40-hfe06y9j.mjs";import{Nqa as U}from"./cli-1.1.40-jxfk62k7.mjs";var j,D,G,M,N,Y,C,_,R,E,I,f,k,A,h,b,u,T,p,m,w,L,O,X,$,e;var W=U(()=>{j=["common","uncommon","rare","epic","legendary"],D=String.fromCharCode,G=D(100,117,99,107),M=D(103,111,111,115,101),N=D(98,108,111,98),Y=D(99,97,116),C=D(100,114,97,103,111,110),_=D(111,99,116,111,112,117,115),R=D(111,119,108),E=D(112,101,110,103,117,105,110),I=D(116,117,114,116,108,101),f=D(115,110,97,105,108),k=D(103,104,111,115,116),A=D(97,120,111,108,111,116,108),h=D(99,97,112,121,98,97,114,97),b=D(99,97,99,116,117,115),u=D(114,111,98,111,116),T=D(114,97,98,98,105,116),p=D(109,117,115,104,114,111,111,109),m=D(99,104,111,110,107),w=[G,M,N,Y,C,_,R,E,I,f,k,A,h,b,u,T,p,m],L=["·","✦","×","◉","@","°"],O=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},e={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function v(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let B=Math.imul(z^z>>>15,1|z);return B=B+Math.imul(B^B>>>7,61|B)^B,((B^B>>>14)>>>0)/4294967296}}function F(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let B=0;B<q.length;B++)z^=q.charCodeAt(B),z=Math.imul(z,16777619);return z>>>0}function K(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((J,Q)=>J+Q,0),B=q()*z;for(let J of j)if(B-=$[J],B<0)return J;return"common"}function i(q,z){let B=d[z],J=K(q,X),Q=K(q,X);while(Q===J)Q=K(q,X);let Z={};for(let V of X)if(V===J)Z[V]=Math.min(100,B+50+Math.floor(q()*30));else if(V===Q)Z[V]=Math.max(1,B-10+Math.floor(q()*15));else Z[V]=B+Math.floor(q()*40);return Z}function H(q){let z=S(q);return{bones:{rarity:z,species:K(q,w),eye:K(q,L),hat:z==="common"?"none":K(q,O),shiny:q()<0.01,stats:i(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function l(q){let z=q+c;if(x?.key===z)return x.value;let B=H(v(F(z)));return x={key:z,value:B},B}function a(q){return H(v(F(q)))}function s(){let q=P();return q.oauthAccount?.accountUuid??q.userID??"anon"}function r(){let q=P().companion;if(!q)return;let{bones:z}=l(s());return{...q,...z}}var d,c="friend-2026-401",x;var g=U(()=>{y();W();d={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
|
|
2
|
+
export{G as xV,M as yV,N as zV,Y as AV,C as BV,_ as CV,R as DV,E as EV,I as FV,f as GV,k as HV,A as IV,h as JV,b as KV,u as LV,T as MV,p as NV,m as OV,e as PV,W as QV,a as RV,s as SV,r as TV,g as UV};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ad as P,yd as k,zd as O}from"./cli-1.1.40-ptbes5dy.mjs";import{Cd as j,Dd as m}from"./cli-1.1.40-390v6b8q.mjs";import{$4 as I,J5 as E,d5 as K,i5 as V}from"./cli-1.1.40-13e9gynq.mjs";import{Cea as F,Fba as W,Gba as $,Mba as x,Rfa as H,Tea as h,Wfa as b,haa as U,k_ as N,m_ as J,vea as G}from"./cli-1.1.40-hfe06y9j.mjs";import{Uja as _,aka as L}from"./cli-1.1.40-rq9y2zd8.mjs";import{Ana as R,zpa as T}from"./cli-1.1.40-5m7tntdx.mjs";import{Nqa as y}from"./cli-1.1.40-jxfk62k7.mjs";function l(){X=!0}function f(){if(!X)return!1;return X=!1,!0}function s(q){return(B)=>({...B,...typeof q.permission_mode==="string"?{toolPermissionContext:{...B.toolPermissionContext,mode:$(q.permission_mode)}}:{}})}function S({newState:q,oldState:B}){let Y=f(),Z=B.toolPermissionContext.mode,Q=q.toolPermissionContext.mode;if(Z!==Q){let z=W(Z),D=W(Q);if(z!==D)k({permission_mode:D});O(Q)}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel===null){if(R(null),!Y)U((z)=>({...z,activeModelForProject:void 0,activeModelForProjectProfileId:void 0}))}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel!==null){if(R(q.mainLoopModel),!Y){let z=F()?.id;U((D)=>({...D,activeModelForProject:q.mainLoopModel??void 0,activeModelForProjectProfileId:z}))}}if(q.expandedView!==B.expandedView){let z=q.expandedView==="tasks",D=q.expandedView==="teammates";if(J().showExpandedTodos!==z||J().showSpinnerTree!==D)N((A)=>({...A,showExpandedTodos:z,showSpinnerTree:D}))}if(q.verbose!==B.verbose&&J().verbose!==q.verbose){let z=q.verbose;N((D)=>({...D,verbose:z}))}if(q.collapseSubagentProgress!==B.collapseSubagentProgress&&J().collapseSubagentProgress!==q.collapseSubagentProgress){let z=q.collapseSubagentProgress;N((D)=>({...D,collapseSubagentProgress:z}))}if(q.settings!==B.settings)try{if(I(),K(),V(),q.settings.env!==B.settings.env)j()}catch(z){H(_(z))}}var X=!1;var u=y(()=>{T();E();G();L();b();m();h();x();P()});
|
|
2
|
+
export{l as pd,s as qd,S as rd,u as sd};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Nqa as V}from"./cli-1.1.40-jxfk62k7.mjs";function Q(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function U(q,J){let z=q;for(let $ of J){if(z==null||typeof z!=="object")return;z=z[$]}return z}function L(q){if(!q)return!1;let J="";try{J=new URL(q).hostname.toLowerCase()}catch{}if(!J){let K=q.toLowerCase();return K.includes("localhost")||K.includes("127.0.0.1")||K.includes("::1")}let z=J.startsWith("[")&&J.endsWith("]")?J.slice(1,-1):J;if(z==="localhost"||z.endsWith(".localhost")||z.endsWith(".local")||z.endsWith(".lan")||z.endsWith(".internal")||z.endsWith(".intranet")||z.endsWith(".home.arpa"))return!0;let $=z.match(A);if($){let K=Number($[1]),j=Number($[2]);if(K===10)return!0;if(K===172&&j>=16&&j<=31)return!0;if(K===192&&j===168)return!0;if(K===127)return!0;if(K===169&&j===254)return!0;if(K===100&&j>=64&&j<=127)return!0}if(z==="::1"||z==="::")return!0;if(z.startsWith("fe80:")||Y.test(z)||B.test(z))return!0;return!1}function T(q,J){if(q==="github")return J?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let z=J?.openAiBaseUrl??"";if(L(z))return"self-hosted";let $=z.toLowerCase();if($.includes(":11434"))return"ollama";if($.includes("moonshot")||$.includes("kimi"))return"kimi";if($.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function I(q){if(!q||typeof q!=="object")return 0;let J=q,z=Q(J.cache_read_input_tokens);if(z>0)return z;let $=Q(U(q,["input_tokens_details","cached_tokens"]))||Q(U(q,["prompt_tokens_details","cached_tokens"]));if($>0)return $;let K=Q(J.cached_tokens);if(K>0)return K;let j=Q(J.prompt_cache_hit_tokens);if(j>0)return j;let X=Q(J.cached_content_token_count);if(X>0)return X;return 0}function x(q){if(!q||typeof q!=="object")return 0;let z=Q(q.cache_creation_input_tokens);if(z>0)return z;return Q(U(q,["cache_creation","ephemeral_5m_input_tokens"]))+Q(U(q,["cache_creation","ephemeral_1h_input_tokens"]))}function _(q){let J=I(q),z=q??{},$=Q(z.input_tokens)||Q(z.prompt_tokens),K=$>=J?$-J:$,j=Q(z.output_tokens)||Q(z.completion_tokens);return{input_tokens:K,output_tokens:j,cache_creation_input_tokens:x(q),cache_read_input_tokens:J}}function w(q,J){if(!q||typeof q!=="object")return F;let z=q,$=Q(z.cache_read_input_tokens),K=Q(z.cache_creation_input_tokens),j=Q(z.input_tokens);if(J==="copilot"||J==="ollama")return F;if(J==="self-hosted"&&$===0&&K===0)return F;let X=$+K+j;return{read:$,created:K,total:X,hitRate:X>0?Math.min(1,$/X):null,supported:!0}}function O(q){let J=[],z=new Map;for(let $ of q){let K=M.exec($);if(!K){J.push($);continue}let j=K[4],X=z.get(j);if(X){X.events++,X.results+=Number(K[1]),X.inputs+=Number(K[2]??0),X.tokensK+=Number(K[3]);continue}z.set(j,{index:J.length,events:1,results:Number(K[1]),inputs:Number(K[2]??0),tokensK:Number(K[3])}),J.push($)}for(let[$,K]of z){if(K.events===1)continue;let j=K.inputs>0?` + ${K.inputs} inputs`:"";J[K.index]=`relief clip ×${K.events} (${K.results} tool results${j}, ~${K.tokensK}k tokens, ${$} lane)`}return J}function g(q,J,z,$){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let K=[`${G(q.read)} read`];if(q.hitRate!==null)K.push(`hit ${Math.round(q.hitRate*100)}%`);let j=P(J);if(j)K.push(j);if(z&&z.length>0)K.push(`prefix rewritten: ${O(z).join(", ")}`);if($&&$.length>0)K.push(`cache break: ${$.join("; ")}`);return`[Cache: ${K.join(" • ")}]`}function C(q,J,z,$){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let K=[`read=${G(q.read)}`,`created=${G(q.created)}`];if(q.hitRate!==null)K.push(`hit=${Math.round(q.hitRate*100)}%`);else K.push("hit=n/a");if(J&&J.clearedInputTokens>0)K.push(`server_cleared=${J.clearedToolUses}(-${G(J.clearedInputTokens)})`);if(z&&z.length>0)K.push(`rewrite=${O(z).join("+")}`);if($&&$.length>0)K.push(`break=${$.join("+")}`);return`[Cache: ${K.join(" ")}]`}function P(q){if(!q||q.clearedInputTokens===0)return"";let J=q.clearedToolUses===1?"tool result":"tool results";return`server cleared ${q.clearedToolUses} ${J} (-${G(q.clearedInputTokens)})`}function G(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(D,"")}k`;return`${(q/1e6).toFixed(1).replace(D,"")}m`}function y(q,J){if(!q.supported&&!J.supported)return F;if(!q.supported)return J;if(!J.supported)return q;let z=q.read+J.read,$=q.created+J.created,K=q.total+J.total;return{read:z,created:$,total:K,hitRate:K>0?z/K:null,supported:!0}}var F,A,Y,B,D,M;var N=V(()=>{F={read:0,created:0,total:0,hitRate:null,supported:!1};A=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,Y=/^fc[0-9a-f]{0,2}:/,B=/^fd[0-9a-f]{0,2}:/,D=/\.0$/;M=/^relief clip \((\d+) tool results(?: \+ (\d+) inputs)?, ~(\d+)k tokens, (\w+) lane\)$/});function k(q){return{currentTurn:Z,session:Z,currentTurnServerClears:H,sessionServerClears:H,currentTurnPrefixRewrites:[],currentTurnCacheBreaks:[],history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function n(q,J){W.currentTurn=y(W.currentTurn,q),W.session=y(W.session,q);let z={timestamp:Date.now(),label:J,metrics:q};if(W.history[W.historyWriteIdx]=z,W.historyWriteIdx=(W.historyWriteIdx+1)%W.historyMax,W.historySize<W.historyMax)W.historySize++}function v(q){let J=(z)=>({events:z.events+1,clearedToolUses:z.clearedToolUses+q.clearedToolUses,clearedInputTokens:z.clearedInputTokens+q.clearedInputTokens});W.currentTurnServerClears=J(W.currentTurnServerClears),W.sessionServerClears=J(W.sessionServerClears)}function R(q){W.currentTurnPrefixRewrites=[...W.currentTurnPrefixRewrites,q]}function h(q){W.currentTurnCacheBreaks=[...W.currentTurnCacheBreaks,q]}function d(){W.currentTurn=Z,W.currentTurnServerClears=H,W.currentTurnPrefixRewrites=[],W.currentTurnCacheBreaks=[]}function m(){W.currentTurn=Z,W.session=Z,W.currentTurnServerClears=H,W.sessionServerClears=H,W.currentTurnPrefixRewrites=[],W.currentTurnCacheBreaks=[],W.history=Array(W.historyMax),W.historyWriteIdx=0,W.historySize=0}function l(){return W.currentTurn}function o(){return W.currentTurnServerClears}function u(){return W.currentTurnPrefixRewrites}function p(){return W.currentTurnCacheBreaks}function i(){return W.sessionServerClears}function c(){return W.session}function s(){if(W.historySize<W.historyMax)return W.history.slice(0,W.historySize);let q=W.history.slice(W.historyWriteIdx),J=W.history.slice(0,W.historyWriteIdx);return q.concat(J)}var H,S=500,Z,W;var f=V(()=>{N();H={events:0,clearedToolUses:0,clearedInputTokens:0},Z={read:0,created:0,total:0,hitRate:null,supported:!1};W=k(S)});
|
|
2
|
+
export{T as tZ,_ as uZ,w as vZ,g as wZ,C as xZ,G as yZ,N as zZ,n as AZ,v as BZ,R as CZ,h as DZ,d as EZ,m as FZ,l as GZ,o as HZ,u as IZ,p as JZ,i as KZ,c as LZ,s as MZ,f as NZ};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$T as V,ZT as H,aU as J,fU as W}from"./cli-1.1.40-a8ztxtkt.mjs";import{Lda as Q,tda as B}from"./cli-1.1.40-hfe06y9j.mjs";import{vja as y,yja as M}from"./cli-1.1.40-cy642er2.mjs";import{Nqa as L}from"./cli-1.1.40-jxfk62k7.mjs";function A(){let h=new Map,w=H();for(let[k,m]of Object.entries(w)){if(!k.includes("@"))continue;if(m===!0)h.set(k,"flag");else if(m===!1)h.delete(k)}let K=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:k,source:m}of K){let z=B(m);if(!z?.enabledPlugins)continue;for(let[q,x]of Object.entries(z.enabledPlugins)){if(!q.includes("@"))continue;if(q in w&&w[q]!==x)y(`Plugin ${q} from --add-dir (${w[q]}) overridden by ${m} (${x})`);if(x===!0)h.set(q,k);else if(x===!1)h.delete(q)}}return y(`Found ${h.size} enabled plugins with scopes: ${Array.from(h.entries()).map(([k,m])=>`${k}(${m})`).join(", ")}`),h}function G(h){return J[h]}var X=L(()=>{M();Q();V();W()});
|
|
2
|
+
export{A as Kc,G as Lc,X as Mc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{qB as I,tB as X}from"./cli-1.1.40-wh51ya47.mjs";import{gka as H,oka as W}from"./cli-1.1.40-tb7zgp10.mjs";import{Nqa as V}from"./cli-1.1.40-jxfk62k7.mjs";function q(f){J=f}function F(f){z=f}function K(f){N=f}function Q(){return O}function R(f,B){if(O=f,J?.(f,B),f==="requires_action"&&B)G=!0,z?.({pending_action:B});else if(G)G=!1,z?.({pending_action:null});if(f==="idle")z?.({task_summary:null});if(H(process.env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS))I({type:"system",subtype:"session_state_changed",state:f})}function _(f){z?.(f)}function j(f){N?.(f)}var J=null,z=null,N=null,G=!1,O="idle";var Y=V(()=>{W();X()});
|
|
2
|
+
export{q as td,F as ud,K as vd,Q as wd,R as xd,_ as yd,j as zd,Y as Ad};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Nqa as K}from"./cli-1.1.40-jxfk62k7.mjs";import z from"node:path";function Z(j){if(j.endsWith(z.sep)||j.endsWith("/"))return P;let q=z.basename(j).toLowerCase();if(q.startsWith("readme"))return H[".md"];if(q.startsWith(".env"))return V;let B=W[q];if(B)return B;let J=z.extname(q);return H[J]??Q}function U(j){return Y[Z(j)]}var P="",D="",Q="",V="",W,H,Y;var $=K(()=>{W={"package.json":"",dockerfile:"",".dockerignore":"",".gitignore":"",".gitattributes":"",license:"","bun.lock":""},H={".ts":"",".tsx":"",".js":"",".jsx":"",".mjs":"",".cjs":"",".json":"",".md":"",".markdown":"",".toml":"",".yaml":"",".yml":"",".py":"",".rs":"",".go":"",".sh":"",".bash":"",".zsh":"",".css":"",".scss":"",".html":"",".htm":"",".png":"",".jpg":"",".jpeg":"",".gif":"",".svg":"",".webp":"",".lock":""},Y={"":"#519aba","":"#61dafb","":"#cbcb41","":"#cbcb41","":"#519aba","":"#6d8086","":"#ffbc03","":"#dea584","":"#519aba","":"#89e051","":"#563d7c","":"#f55385","":"#e34c26","":"#a074c4","":"#bbbbbb","":"#8bc34a","":"#458ee6","":"#f14c28","":"#d0bf41"}});
|
|
2
|
+
export{P as Bi,D as Ci,Z as Di,U as Ei,$ as Fi};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$X as k,KX as W,ZX as X,hW as f}from"./cli-1.1.40-ckjrbh6b.mjs";import{B1 as V,C1 as J,E1 as K}from"./cli-1.1.40-rwbr7d1h.mjs";import{F1 as P}from"./cli-1.1.40-202jxgqx.mjs";import{Xfa as U,Yfa as O}from"./cli-1.1.40-6evbnv5e.mjs";import{Jqa as Q,Nqa as L}from"./cli-1.1.40-jxfk62k7.mjs";import{PassThrough as C}from"stream";function E(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let D=setTimeout(z,0);return()=>clearTimeout(D)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J(V,{children:w}),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(M);if(b===-1)return q;let w=b+M.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J(E,{children:q}),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function N(q,b){let w=await g(q,b);return U(w)}var Z,y,M="\x1B[?2026h",F="\x1B[?2026l";var j=L(()=>{O();k();K();Z=Q(f(),1),y=Q(P(),1)});
|
|
2
|
+
export{g as Wc,N as Xc,j as Yc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Bma as y,Fma as z,zpa as F}from"./cli-1.1.40-5m7tntdx.mjs";import{Nqa as B}from"./cli-1.1.40-jxfk62k7.mjs";function G(d){return Object.values(d).filter((x)=>x.type==="local_agent"&&x.status==="running").length}function J(d){return{turnActive:z(),runningAgents:G(d),costUSD:y()}}function K(d,x){return d.turnActive===x.turnActive&&d.runningAgents===x.runningAgents&&Math.round(d.costUSD*100)===Math.round(x.costUSD*100)}var H=B(()=>{F()});
|
|
2
|
+
export{J as Kh,K as Lh,H as Mh};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Kc as c,Mc as Eq}from"./cli-1.1.40-pmw99nnn.mjs";import{$r as S,Au as Xq,Bt as v,Bu as Yq,Ct as m,Cu as $q,Du as d,Et as wq,Gu as Dq,Xr as s,Xt as l,Zr as Tq,_r as h,as as Rq,bu as n,cu as P,gu as Oq,hs as t,hu as O,is as Aq,iu as e,ju as I,ku as qq,pu as jq,qu as Gq,ru as Cq,su as b,tu as Lq,uu as Hq,vu as Jq,ws as i,xu as vq,ys as Fq,yu as y,zu as Qq}from"./cli-1.1.40-wh51ya47.mjs";import{bU as A,dU as D,fU as Mq}from"./cli-1.1.40-a8ztxtkt.mjs";import{Lda as _q,Qca as V,Rfa as a,Wfa as Bq,Yca as Kq,tda as F,vda as L}from"./cli-1.1.40-hfe06y9j.mjs";import{hja as p,lja as xq}from"./cli-1.1.40-cy642er2.mjs";import{Uja as o,Xja as N,aka as Wq}from"./cli-1.1.40-rq9y2zd8.mjs";import{ala as f,zpa as Uq}from"./cli-1.1.40-5m7tntdx.mjs";import{Nqa as Zq}from"./cli-1.1.40-jxfk62k7.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await l();for(let[B,K]of Object.entries($))try{let M=(await n(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(U){a(o(U));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,x=`${Z.name}@${Y}`,Q=await Jq({pluginId:x,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${x} (scope: ${H})${Q.depNote}`,pluginId:x,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),x=F(Z),Q,$;if(z)Q=Object.keys(x?.enabledPlugins??{}).find((W)=>W===q||W===z.name||W.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let W=yq(q);if(!W)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=W.pluginId,$=W.pluginName}let B=zq(H),U=O().plugins[Q],M=U?.find((W)=>W.scope===H&&W.projectPath===B);if(!M){let{scope:W}=kq(Q);if(W!==H&&U&&U.length>0){if(W==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudin/settings.json, shared with your team). To disable just for you: claudin plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${W} scope, not ${H}. Use --scope ${W} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...x?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),e(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(i(Q),G)await t(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(s(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&Gq(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),x=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&x===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?x===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:U}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(U)return{success:!1,message:`Failed to ${X} plugin: ${U.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
|
|
2
|
+
${G.join(`
|
|
3
|
+
`)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function UG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),x=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let U=await Yq(G.source,{manifest:{name:G.name}});Q=U.path,B=!0,K=U.gitCommitSha,$=await b(q,G.source,U.manifest,U.path,G.version,U.gitCommitSha)}else{let U;try{U=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=U.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let U=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===U||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:x,alreadyUpToDate:!0,scope:Y};U=await Xq(Q,q,$,G);let _=J.installPath;if(qq(q,Y,z,U,$,K),_&&_!==U){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((W)=>W.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${x||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:x,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{Uq();Tq();Wq();xq();Bq();wq();Rq();jq();Oq();Aq();Mq();vq();Dq();Fq();Cq();Eq();Lq();_q();Kq();k=["user","project","local"],HG=["user","project","local","managed"]});
|
|
4
|
+
export{k as yc,HG as zc,JG as Ac,QG as Bc,kq as Cc,XG as Dc,YG as Ec,$G as Fc,zG as Gc,ZG as Hc,UG as Ic,hq as Jc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Zb as z,_b as K}from"./cli-1.1.40-9ktcep8b.mjs";import{SK as w,UK as J}from"./cli-1.1.40-wh51ya47.mjs";import{F1 as H}from"./cli-1.1.40-202jxgqx.mjs";import{Jqa as E,Nqa as G}from"./cli-1.1.40-jxfk62k7.mjs";function V(q,v,k){return B.useMemo(()=>{let D=w(k,v);return z(q,D,k.mode)},[q,v,k,!1,!1])}var B;var N=G(()=>{J();K();B=E(H(),1)});
|
|
2
|
+
export{V as Vb,N as Wb};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Aqa as w,cqa as Q,dqa as V,eqa as W,fqa as X,gqa as Y,hqa as Z}from"./cli-1.1.40-x0em3hsa.mjs";import{Nqa as v}from"./cli-1.1.40-jxfk62k7.mjs";function J(j,z){if(!(j instanceof Error))return!1;for(let G=Object.getPrototypeOf(j);G!==null;G=Object.getPrototypeOf(G))if(G.constructor?.name===z)return!0;return!1}function S(j){return j instanceof Q||J(j,"APIError")}function k(j){return j instanceof W||J(j,"APIConnectionError")}function F(j){return j instanceof X||J(j,"APIConnectionTimeoutError")}function D(j){return j instanceof V||J(j,"APIUserAbortError")}function P(j){return j instanceof Y||J(j,"AuthenticationError")}function x(j){return j instanceof Z||J(j,"NotFoundError")}function y(j){return j instanceof _||D(j)||j instanceof Error&&j.name==="AbortError"}function f(j,z){return j instanceof Error&&j.message===z}function N(j){return j instanceof Error?j:Error(String(j))}function I(j){return j instanceof Error?j.message:String(j)}function $(j){if(j&&typeof j==="object"&&"code"in j&&typeof j.code==="string")return j.code;return}function A(j){return $(j)==="ENOENT"}function p(j){if(j&&typeof j==="object"&&"path"in j&&typeof j.path==="string")return j.path;return}function C(j,z=5){if(!(j instanceof Error))return String(j);if(!j.stack)return j.message;let G=j.stack.split(`
|
|
2
|
+
`),H=G[0]??j.message,K=G.slice(1).filter((q)=>q.trim().startsWith("at "));if(K.length<=z)return j.stack;return[H,...K.slice(0,z)].join(`
|
|
3
|
+
`)}function h(j){let z=$(j);return z==="ENOENT"||z==="EACCES"||z==="EPERM"||z==="ENOTDIR"||z==="ELOOP"}function E(j){let z=I(j);if(!j||typeof j!=="object"||!("isAxiosError"in j)||!j.isAxiosError)return{kind:"other",message:z};let G=j,H=G.response?.status;if(H===401||H===403)return{kind:"auth",status:H,message:z};if(G.code==="ECONNABORTED")return{kind:"timeout",status:H,message:z};if(G.code==="ECONNREFUSED"||G.code==="ENOTFOUND")return{kind:"network",status:H,message:z};return{kind:"http",status:H,message:z}}var B,L,_,T,O,R,U;var b=v(()=>{w();B=class B extends Error{constructor(j,z){super(j,z);this.name=this.constructor.name}};L=class L extends Error{};_=class _ extends Error{constructor(j){super(j);this.name="AbortError"}};T=class T extends Error{filePath;defaultConfig;constructor(j,z,G){super(j);this.name="ConfigParseError",this.filePath=z,this.defaultConfig=G}};O=class O extends Error{stdout;stderr;code;interrupted;constructor(j,z,G,H){super("Shell command failed");this.stdout=j;this.stderr=z;this.code=G;this.interrupted=H;this.name="ShellError"}};R=class R extends Error{formattedMessage;constructor(j,z){super(j);this.formattedMessage=z;this.name="TeleportOperationError"}};U=class U extends Error{telemetryMessage;constructor(j,z){super(j);this.name="TelemetrySafeError",this.telemetryMessage=z??j}}});
|
|
4
|
+
export{B as Fja,L as Gja,_ as Hja,S as Ija,k as Jja,F as Kja,D as Lja,P as Mja,x as Nja,y as Oja,T as Pja,O as Qja,R as Rja,U as Sja,f as Tja,N as Uja,I as Vja,$ as Wja,A as Xja,p as Yja,C as Zja,h as _ja,E as $ja,b as aka};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Nqa as l}from"./cli-1.1.40-jxfk62k7.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
|
|
2
|
+
export{u as B1,E as C1,a as D1,c as E1};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$X as k,hW as Z,vX as K}from"./cli-1.1.40-ckjrbh6b.mjs";import{D1 as J,E1 as H}from"./cli-1.1.40-rwbr7d1h.mjs";import{r9 as v,s9 as Y}from"./cli-1.1.40-hfe06y9j.mjs";import{Jqa as V,Nqa as X}from"./cli-1.1.40-jxfk62k7.mjs";function N(M){let b=L.c(5),{status:P,withSpace:D}=M,Q=D===void 0?!1:D,q=A[P],z=!q.color,B=Q&&" ",y;if(b[0]!==q.color||b[1]!==q.icon||b[2]!==z||b[3]!==B)y=J(K,{color:q.color,dimColor:z,children:[q.icon,B]}),b[0]=q.color,b[1]=q.icon,b[2]=z,b[3]=B,b[4]=y;else y=b[4];return y}var L,A;var C=X(()=>{Y();k();H();L=V(Z(),1),A={success:{icon:v.tick,color:"success"},error:{icon:v.cross,color:"error"},warning:{icon:v.warning,color:"warning"},info:{icon:v.info,color:"suggestion"},pending:{icon:v.circle,color:void 0},loading:{icon:"…",color:void 0}}});
|
|
2
|
+
export{N as uh,C as vh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Vw as I,Ww as i,tM as E,uM as n}from"./cli-1.1.40-wh51ya47.mjs";import{paa as G,qaa as s,raa as f,saa as WH,taa as _,uaa as XH}from"./cli-1.1.40-hfe06y9j.mjs";import{Hia as y,Iia as qH,Ria as j,Sia as BH,Xia as b,Yia as YH}from"./cli-1.1.40-cy642er2.mjs";import{Gla as P,Hla as HH,kma as m,lma as $H,oma as q,pma as U,qma as B,rma as p,sla as F,sma as z,tla as QH,tma as u,ula as C,vla as e}from"./cli-1.1.40-5m7tntdx.mjs";import{Ipa as Y,Jpa as t}from"./cli-1.1.40-m0j9t9he.mjs";import{Nqa as Z}from"./cli-1.1.40-jxfk62k7.mjs";function c(H,J){return J.length<2?H:z(H,I(J,0,-1))}var M;var N=Z(()=>{u();i();M=c});function r(H,J){J=q(J,H);var Q=-1,W=J.length;if(!W)return!0;while(++Q<W){var V=B(J[Q]);if(V==="__proto__"&&!l.call(H,"__proto__"))return!1;if((V==="constructor"||V==="prototype")&&Q<W-1)return!1}var X=M(H,J);return X==null||delete X[B(E(J))]}var o,l,K;var D=Z(()=>{U();n();N();p();o=Object.prototype,l=o.hasOwnProperty;K=r});function a(H){return G(H)?void 0:H}var w;var x=Z(()=>{s();w=a});function JH(H){return C(H)||P(H)||!!(L&&H&&H[L])}var L,k;var R=Z(()=>{t();HH();e();L=Y?Y.isConcatSpreadable:void 0;k=JH});function T(H,J,Q,W,V){var X=-1,h=H.length;Q||(Q=k),V||(V=[]);while(++X<h){var $=H[X];if(J>0&&Q($))if(J>1)T($,J-1,Q,W,V);else F(V,$);else if(!W)V[V.length]=$}return V}var A;var S=Z(()=>{QH();R();A=T});function VH(H){var J=H==null?0:H.length;return J?A(H,1):[]}var O;var g=Z(()=>{S();O=VH});function ZH(H){return _(f(H,void 0,O),H+"")}var d;var v=Z(()=>{g();WH();XH();d=ZH});var zH=1,IH=2,MH=4,NH,lH;var UH=Z(()=>{$H();YH();D();U();qH();x();v();BH();NH=d(function(H,J){var Q={};if(H==null)return Q;var W=!1;if(J=m(J,function(X){return X=q(X,H),W||(W=X.length>1),X}),y(H,j(H),Q),W)Q=b(Q,zH|IH|MH,w);var V=J.length;while(V--)K(Q,J[V]);return Q}),lH=NH});
|
|
2
|
+
export{lH as vf,UH as wf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Bm as P,ik as Q,jk as I,pR as R,wK as Y,ym as W}from"./cli-1.1.40-wh51ya47.mjs";import{Xfa as B,Yfa as f}from"./cli-1.1.40-6evbnv5e.mjs";import{Pha as H,Qha as J,lia as F}from"./cli-1.1.40-904bkcqe.mjs";import{Wka as x,zpa as $}from"./cli-1.1.40-5m7tntdx.mjs";import{Nqa as Z}from"./cli-1.1.40-jxfk62k7.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:{...z(h),stop_details:null},session_id:x(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:x(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:x(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let v=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:{...Y({content:v}).message,stop_details:null},parent_tool_use_id:null,session_id:x(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let v=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:v}}var G=Z(()=>{$();F();I();f();R();P()});
|
|
2
|
+
export{S as xe,V as ye,X as ze,r as Ae,w as Be,T as Ce,G as De};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Rc as x,Sc as o}from"./cli-1.1.40-zjd4syvr.mjs";import{$y as i,Bt as $,Du as y,Et as d,Gu as u,Hu as K,Nu as m,WA as W,Ws as Y,YA as t,Zy as R,at as g,ev as M,fv as l,jv as O,lv as a,pt as Z,qt as v}from"./cli-1.1.40-wh51ya47.mjs";import{Rfa as X,Wfa as h}from"./cli-1.1.40-hfe06y9j.mjs";import{vja as I,yja as c}from"./cli-1.1.40-cy642er2.mjs";import{Vja as V,aka as f}from"./cli-1.1.40-rq9y2zd8.mjs";import{ala as U,zpa as _}from"./cli-1.1.40-5m7tntdx.mjs";import{Nqa as C}from"./cli-1.1.40-jxfk62k7.mjs";async function Lj(w){I("refreshActivePlugins: clearing all plugin caches"),$(),W();let G=await y(),[E,F]=await Promise.all([Z(),Y(U())]),{enabled:z,disabled:B,errors:H}=G;x(E);let[P,S]=await Promise.all([Promise.all(z.map(async(j)=>{if(j.mcpServers)return Object.keys(j.mcpServers).length;let q=await R(j,H);if(q)j.mcpServers=q;return q?Object.keys(q).length:0})),Promise.all(z.map(async(j)=>{if(j.lspServers)return Object.keys(j.lspServers).length;let q=await M(j,H);if(q)j.lspServers=q;return q?Object.keys(q).length:0}))]),J=P.reduce((j,q)=>j+q,0),L=S.reduce((j,q)=>j+q,0);w((j)=>({...j,plugins:{...j.plugins,enabled:z,disabled:B,commands:[],errors:n(j.plugins.errors,H),needsRefresh:!1},agentDefinitions:F,mcp:{...j.mcp,pluginReconnectKey:j.mcp.pluginReconnectKey+1}})),O();let N=!1;try{await K()}catch(j){N=!0,X(j),I(`refreshActivePlugins: loadPluginHooks failed: ${V(j)}`)}let Q=z.reduce((j,q)=>{if(!q.hooksConfig)return j;return j+Object.values(q.hooksConfig).reduce((k,A)=>k+(A?.reduce((D,b)=>D+b.hooks.length,0)??0),0)},0);return I(`refreshActivePlugins: ${z.length} enabled, ${E.length} commands, ${F.allAgents.length} agents, ${Q} hooks, ${J} MCP, ${L} LSP`),{enabled_count:z.length,disabled_count:B.length,command_count:E.length,agent_count:F.allAgents.length,hook_count:Q,mcp_count:J,lsp_count:L,error_count:H.length+(N?1:0),agentDefinitions:F,pluginCommands:E}}function n(w,G){let E=w.filter((B)=>B.source==="lsp-manager"||B.source.startsWith("plugin:")),F=new Set(G.map(T));return[...E.filter((B)=>!F.has(T(B))),...G]}function T(w){return w.type==="generic-error"?`generic-error:${w.source}:${w.error}`:`${w.type}:${w.source}`}var p=C(()=>{_();a();o();g();c();f();h();d();v();m();l();i();t();u()});
|
|
2
|
+
export{Lj as Nc,p as Oc};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{Gq as H,Hq as R,Wj as F,cO as J,eO as A,pR as P}from"./cli-1.1.40-wh51ya47.mjs";import{O9 as q,T9 as v}from"./cli-1.1.40-hfe06y9j.mjs";import{Aha as W,Bha as C,Cha as D,Dha as M}from"./cli-1.1.40-05q41dcq.mjs";import{vja as $,yja as f}from"./cli-1.1.40-cy642er2.mjs";import{Una as Z,zpa as V}from"./cli-1.1.40-5m7tntdx.mjs";import{Nqa as L}from"./cli-1.1.40-jxfk62k7.mjs";function h(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
|
|
2
|
+
`);return G.length>Y?G.slice(-Y):G}async function j(U,Q){let G=U.trim();if(!G)return null;try{let w=await J({systemPrompt:H([X]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:Z(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=F(w.message.content),B=k().safeParse(q(K));return B.success?B.data.title.trim()||null:null}catch(w){return $(`generateSessionTitle failed: ${w}`,{level:"error"}),"Claudin"}}var Y=1000,X=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
|
|
3
|
+
|
|
4
|
+
Return JSON with a single "title" field.
|
|
5
|
+
|
|
6
|
+
Good examples:
|
|
7
|
+
{"title": "Fix login button on mobile"}
|
|
8
|
+
{"title": "Add OAuth authentication"}
|
|
9
|
+
{"title": "Debug failing CI tests"}
|
|
10
|
+
{"title": "Refactor API client error handling"}
|
|
11
|
+
|
|
12
|
+
Bad (too vague): {"title": "Code changes"}
|
|
13
|
+
Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
|
|
14
|
+
Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,k;var z=L(()=>{C();V();A();f();v();M();P();R();k=D(()=>W.object({title:W.string()}))});
|
|
15
|
+
export{h as Gd,j as Hd,z as Id};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Nqa as M}from"./cli-1.1.40-jxfk62k7.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 Qi,W as Ri,X as Si,Z as Ti,Y as Ui};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Nqa as G}from"./cli-1.1.40-jxfk62k7.mjs";function I(q,w){switch(w.type){case"set_local_jsx":{if(w.generation<q.generation)return q;return{state:{...w.payload,isLocalJSXCommand:!0},generation:q.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:q.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(q.hasLocalJSXActive)return q;return{...q,state:w.payload}}case"set_null":{if(q.hasLocalJSXActive)return q;if(q.state===null)return q;return{...q,state:null}}}}var H;var K=G(()=>{H={state:null,generation:0,hasLocalJSXActive:!1}});function Q(q){return C=q,()=>{if(C===q)C=null}}function U(q,w){let B=I(z,q);if(B===z){w?.();return}let F=z.hasLocalJSXActive&&(q.type==="set_local_jsx"||!B.hasLocalJSXActive),M=F?D:null;if(F)D=null;if(q.type==="set_local_jsx")D=w??null;else w?.();z=B,C?.(B.state),M?.()}function V(){return z.generation}var z,C=null,D=null;var N=G(()=>{K();z=H});
|
|
2
|
+
export{Q as Ii,U as Ji,V as Ki,N as Li};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import{mb as s}from"./cli-1.1.40-j3mmbyn6.mjs";import{Bj as D,Kn as p,Ln as ZJ,Lp as x,Np as a,Ur as k,Vr as M,Wr as m,yj as E,zj as w}from"./cli-1.1.40-wh51ya47.mjs";import{N5 as S,Q5 as QJ,W5 as o,X5 as h,Y5 as u,b6 as c}from"./cli-1.1.40-bdt7jzc8.mjs";import{g6 as O,h6 as y}from"./cli-1.1.40-0z5szwzt.mjs";import{B8 as P,T8 as i}from"./cli-1.1.40-gk34ey8n.mjs";import{t_ as W,v_ as U}from"./cli-1.1.40-hfe06y9j.mjs";import{$ia as e,_ia as B,dja as C,vja as V,yja as _}from"./cli-1.1.40-cy642er2.mjs";import{Vja as H,Wja as t,aka as r}from"./cli-1.1.40-rq9y2zd8.mjs";import{gka as b,oka as KJ}from"./cli-1.1.40-tb7zgp10.mjs";import{Oqa as JJ}from"./cli-1.1.40-jxfk62k7.mjs";i();_();U();D();C();class R extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class q{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((Q)=>{this.backpressureResolvers.push(Q)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(Q){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let Z=Q instanceof R?Q.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,Z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let Q=0,Z=0;while(Z<this.pending.length&&Z<J){let $;try{$=Buffer.byteLength(B(this.pending[Z]))}catch{this.pending.splice(Z,1);continue}if(Z>0&&Q+$>K)break;Q+=$,Z++}return this.pending.splice(0,Z)}retryDelay(J,K){let Q=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+Q;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+Q}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((Q,Z)=>{Q.sleepResolve=null,Z()},J,this,K)})}}ZJ();_();U();KJ();QJ();c();m();C();var $J=`{"type":"keep_alive"}
|
|
2
|
+
`,GJ=1000,VJ=1000,d=30000,WJ=600000,YJ=1e4,zJ=300000,I=d*2,XJ=new Set([1002,4001,4003]);class F{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,Z,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=Z,this.autoReconnect=$?.autoReconnect??!0,this.messageBuffer=new p(GJ)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){V(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),W("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),V(`WebSocketTransport: Opening ${this.url.href}`),W("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,V(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:u(this.url.href),tls:S()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-1.1.40-07rbayqn.mjs"),Q=new K(this.url.href,{headers:J,agent:h(this.url.href),...S()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),W("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{V("WebSocketTransport: Error",{level:"error"}),W("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;V(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),W("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let Z=Q.headers["x-last-request-id"];this.replayBufferedMessages(Z)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),W("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{V(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),W("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;V(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),W("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;V("WebSocketTransport: Connected"),W("info","cli_websocket_connect_connected",{duration_ms:J}),this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),k(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return V("WebSocketTransport: Not connected"),W("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return V(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),W("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(V(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),W("info","cli_websocket_disconnected"),this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,V("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),W("info","cli_websocket_4003_token_refreshed")}if(J!=null&&XJ.has(J)&&!K){V(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),W("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>I)V(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),W("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let Z=Q-this.reconnectStartTime;if(Z<WJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let Y=this.refreshHeaders();Object.assign(this.headers,Y),V("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(VJ*Math.pow(2,this.reconnectAttempts-1),d),G=Math.max(0,$+$*0.25*(2*Math.random()-1));V(`WebSocketTransport: Reconnecting in ${Math.round(G)}ms (attempt ${this.reconnectAttempts}, ${Math.round(Z/1000)}s elapsed)`),W("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},G)}else if(V(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(Z/1000)}s for ${this.url.href}`,{level:"error"}),W("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:Z}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),M(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((G)=>("uuid"in G)&&G.uuid===J);if($>=0){Q=$+1;let G=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(G),G.length===0)this.lastSentId=null;V(`WebSocketTransport: Evicted ${Q} confirmed messages, ${G.length} remaining`),W("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:G.length})}}let Z=K.slice(Q);if(Z.length===0){V("WebSocketTransport: No new messages to replay"),W("info","cli_websocket_no_messages_to_replay");return}V(`WebSocketTransport: Replaying ${Z.length} buffered messages`),W("info","cli_websocket_messages_to_replay",{count:Z.length});for(let $ of Z){let G=B($)+`
|
|
3
|
+
`;if(!this.sendLine(G)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=B(J)+`
|
|
4
|
+
`;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",Z=this.getControlMessageDetailLabel(J);V(`WebSocketTransport: Sending message type=${J.type}${Q}${Z}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,Z=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${Z?` tool=${Z}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>I){V(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),W("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){V("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),W("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(Z){V(`WebSocketTransport: Ping failed: ${Z}`,{level:"error"}),W("error","cli_websocket_ping_failed")}}},YJ)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),b(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send($J),this.lastActivityTime=Date.now(),V("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){V(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),W("error","cli_websocket_keepalive_failed")}},zJ)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var LJ=100,jJ=15000,BJ=3000;class qJ extends F{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,Z,$){super(J,K,Q,Z,$);let{maxConsecutiveFailures:G,onBatchDropped:Y}=$??{};this.postUrl=OJ(J),this.uploader=new q({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:G,onBatchDropped:(X,z)=>{W("error","cli_hybrid_batch_dropped_max_failures",{batchSize:X,failures:z}),Y?.(X,z)},send:(X)=>this.postOnce(X)}),V(`HybridTransport: POST URL = ${this.postUrl}`),W("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),LJ);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,BJ)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=E();if(!K){V("HybridTransport: No session token available for POST"),W("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},Z;try{Z=await P.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:jJ})}catch($){throw V(`HybridTransport: POST error: ${$.message}`),W("warn","cli_hybrid_post_network_error"),$}if(Z.status>=200&&Z.status<300){V(`HybridTransport: POST success count=${J.length}`);return}if(Z.status>=400&&Z.status<500&&Z.status!==429){V(`HybridTransport: POST returned ${Z.status} (permanent), dropping`),W("warn","cli_hybrid_post_client_error",{status:Z.status});return}throw V(`HybridTransport: POST returned ${Z.status} (retryable)`),W("warn","cli_hybrid_post_retryable_error",{status:Z.status}),Error(`POST failed with ${Z.status}`)}}function OJ(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}import{randomUUID as l}from"crypto";_();U();r();c();m();D();y();a();y();class f{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?g(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,Q=0;while(!this.closed){if(await this.config.send(K))return;if(Q++,await O(this.retryDelay(Q)),this.pending&&!this.closed)K=g(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),Q=Math.random()*this.config.jitterMs;return K+Q}}function g(J,K){let Q={...J};for(let[Z,$]of Object.entries(K))if((Z==="external_metadata"||Z==="internal_metadata")&&Q[Z]&&typeof Q[Z]==="object"&&typeof $==="object"&&$!==null)Q[Z]={...Q[Z],...$};else Q[Z]=$;return Q}var HJ=20000,RJ=100;function n(){return!0}class N extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var xJ=10;function MJ(){return{byMessage:new Map,scopeToMessage:new Map}}function T(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function AJ(J,K){let Q=[],Z=new Map;for(let $ of J){let G=$.event;switch(G.type){case"message_start":{let Y=G.message.id,X=K.scopeToMessage.get(T($));if(X)K.byMessage.delete(X);K.scopeToMessage.set(T($),Y),K.byMessage.set(Y,[]),Q.push($);break}case"content_block_delta":{if(G.delta.type!=="text_delta"){Q.push($);break}let Y=K.scopeToMessage.get(T($)),X=Y?K.byMessage.get(Y):void 0;if(!X){Q.push($);break}let z=X[G.index]??=[];z.push(G.delta.text);let L=Z.get(z);if(L){L.event.delta.text=z.join("");break}let j={type:"stream_event",uuid:$.uuid,session_id:$.session_id,parent_tool_use_id:$.parent_tool_use_id,event:{type:"content_block_delta",index:G.index,delta:{type:"text_delta",text:z.join("")}}};Z.set(z,j),Q.push(j);break}default:Q.push($)}}return Q}function _J(J,K){J.byMessage.delete(K.message.id);let Q=T(K);if(J.scopeToMessage.get(Q)===K.message.id)J.scopeToMessage.delete(Q)}class UJ{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=o({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=MJ();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,Q){if(this.onEpochMismatch=Q?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=Q?.heartbeatIntervalMs??HJ,this.heartbeatJitterFraction=Q?.heartbeatJitterFraction??0,this.getAuthHeaders=Q?.getAuthHeaders??w,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let Z=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${Z}`,this.sessionId=Z.split("/").pop()||"",this.workerState=new f({send:($)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...$},"PUT worker").then((G)=>G.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new q({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async($)=>{let G=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:$},"client events");if(!G.ok)throw new R("client event POST failed",G.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new q({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async($)=>{let G=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:$},"internal events");if(!G.ok)throw new R("internal event POST failed",G.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new q({maxBatchSize:64,maxQueueSize:64,send:async($)=>{let G=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:$.map((Y)=>({event_id:Y.eventId,status:Y.status}))},"delivery batch");if(!G.ok)throw new R("delivery POST failed",G.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent(($)=>{this.reportDelivery($.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new N("no_auth_headers");if(J===void 0){let Y=process.env.CLAUDE_CODE_WORKER_EPOCH;J=Y?parseInt(Y,10):NaN}if(isNaN(J))throw new N("missing_epoch");this.workerEpoch=J;let Q=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new N("worker_register_failed");this.currentState="idle",this.startHeartbeat(),k(()=>{this.writeEvent({type:"keep_alive"})}),V(`CCRClient: initialized, epoch=${this.workerEpoch}`),W("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:$,durationMs:G}=await Q;if(!this.closed)W("info","cli_worker_state_restored",{duration_ms:G,had_state:$!==null});return $}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,Q,Z,{timeout:$=1e4}={}){let G=this.getAuthHeaders();if(Object.keys(G).length===0)return{ok:!1};try{let Y=await this.http[J](`${this.sessionBaseUrl}${K}`,Q,{headers:{...G,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":x()},validateStatus:n,timeout:$});if(Y.status>=200&&Y.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(Y.status===409)this.handleEpochMismatch();if(Y.status===401||Y.status===403){let X=E(),z=X?s(X):null;if(z!==null&&z*1000<Date.now())V(`CCRClient: session_token expired (exp=${new Date(z*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),W("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=xJ)V(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),W("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(V(`CCRClient: ${Z} returned ${Y.status}`,{level:"warn"}),W("warn","cli_worker_request_failed",{method:J,path:K,status:Y.status}),Y.status===429){let X=Y.headers?.["retry-after"],z=typeof X==="string"?parseInt(X,10):NaN;if(!isNaN(z)&&z>=0)return{ok:!1,retryAfterMs:z*1000}}return{ok:!1}}catch(Y){return V(`CCRClient: ${Z} failed: ${H(Y)}`,{level:"warn"}),W("warn","cli_worker_request_error",{method:J,path:K,error_code:t(Y)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){V("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),W("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let Q=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+Q)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)V("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),RJ);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")_J(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:l()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=AJ(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((Q)=>({payload:Q,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:Q=!1,agentId:Z}={}){let $={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:l()},...Q&&{is_compaction:!0},...Z&&{agent_id:Z}};await this.internalEventUploader.enqueue($)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,Q){let Z=this.getAuthHeaders();if(Object.keys(Z).length===0)return null;let $=[],G;do{let Y=new URL(`${this.sessionBaseUrl}${J}`);for(let[z,L]of Object.entries(K))Y.searchParams.set(z,L);if(G)Y.searchParams.set("cursor",G);let X=await this.getWithRetry(Y.toString(),Z,Q);if(!X)return null;$.push(...X.data??[]),G=X.next_cursor}while(G);return V(`CCRClient: Read ${$.length} internal events from ${J}${K.subagents?" (subagents)":""}`),$}async getWithRetry(J,K,Q){for(let Z=1;Z<=10;Z++){let $;try{$=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":x()},validateStatus:n,timeout:30000})}catch(G){if(V(`CCRClient: GET ${J} failed (attempt ${Z}/10): ${H(G)}`,{level:"warn"}),Z<10){let Y=Math.min(500*2**(Z-1),30000)+Math.random()*500;await O(Y)}continue}if($.status>=200&&$.status<300)return $.data;if($.status===409)this.handleEpochMismatch();if(V(`CCRClient: GET ${J} returned ${$.status} (attempt ${Z}/10)`,{level:"warn"}),Z<10){let G=Math.min(500*2**(Z-1),30000)+Math.random()*500;await O(G)}}return V("CCRClient: GET retries exhausted",{level:"error"}),W("error","cli_worker_get_retries_exhausted",{context:Q}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),M(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}i();_();U();r();D();y();C();a();var kJ=1000,PJ=30000,EJ=600000,NJ=45000,TJ=new Set([401,403,404]),A=10,wJ=500,CJ=8000,SJ={stream:!0};function FJ(){return!0}function DJ(J){let K=[],Q=0,Z;while((Z=J.indexOf(`
|
|
5
|
+
|
|
6
|
+
`,Q))!==-1){let $=J.slice(Q,Z);if(Q=Z+2,!$.trim())continue;let G={},Y=!1;for(let X of $.split(`
|
|
7
|
+
`)){if(X.startsWith(":")){Y=!0;continue}let z=X.indexOf(":");if(z===-1)continue;let L=X.slice(0,z),j=X[z+1]===" "?X.slice(z+2):X.slice(z+1);switch(L){case"event":G.event=j;break;case"id":G.id=j;break;case"data":G.data=G.data?G.data+`
|
|
8
|
+
`+j:j;break}}if(G.data||Y)K.push(G)}return{frames:K,remaining:J.slice(Q)}}class yJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},Q,Z,$,G){this.url=J;if(this.headers=K,this.sessionId=Q,this.refreshHeaders=Z,this.getAuthHeaders=G??w,this.postUrl=fJ(J),$!==void 0&&$>0)this.lastSequenceNum=$;V(`SSETransport: SSE URL = ${J.href}`),V(`SSETransport: POST URL = ${this.postUrl}`),W("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){V(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),W("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let Q=this.getAuthHeaders(),Z={...this.headers,...Q,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":x()};if(Q.Cookie)delete Z.Authorization;if(this.lastSequenceNum>0)Z["Last-Event-ID"]=String(this.lastSequenceNum);V(`SSETransport: Opening ${K.href}`),W("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let $=await fetch(K.href,{headers:Z,signal:this.abortController.signal});if(!$.ok){let Y=TJ.has($.status);if(V(`SSETransport: HTTP ${$.status}${Y?" (permanent)":""}`,{level:"error"}),W("error","cli_sse_connect_http_error",{status:$.status}),Y){this.state="closed",this.onCloseCallback?.($.status);return}this.handleConnectionError();return}if(!$.body){V("SSETransport: No response body"),this.handleConnectionError();return}let G=Date.now()-J;V("SSETransport: Connected"),W("info","cli_sse_connect_connected",{duration_ms:G}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream($.body)}catch($){if(this.abortController?.signal.aborted)return;V(`SSETransport: Connection error: ${H($)}`,{level:"error"}),W("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),Q=new TextDecoder,Z="";try{while(!0){let{done:$,value:G}=await K.read();if($)break;Z+=Q.decode(G,SJ);let{frames:Y,remaining:X}=DJ(Z);Z=X;for(let z of Y){if(this.resetLivenessTimer(),z.id){let L=parseInt(z.id,10);if(!isNaN(L)){if(this.seenSequenceNums.has(L))V(`SSETransport: DUPLICATE frame seq=${L} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),W("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(L),this.seenSequenceNums.size>1000){let j=this.lastSequenceNum-200;for(let v of this.seenSequenceNums)if(v<j)this.seenSequenceNums.delete(v)}if(L>this.lastSequenceNum)this.lastSequenceNum=L}}if(z.event&&z.data)this.handleSSEFrame(z.event,z.data);else if(z.data)V("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),W("warn","cli_sse_frame_missing_event_field")}}}catch($){if(this.abortController?.signal.aborted)return;V(`SSETransport: Stream read error: ${H($)}`,{level:"error"}),W("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")V("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){V(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),W("warn","cli_sse_unexpected_event_type",{event_type:J});return}let Q;try{Q=e(K)}catch($){V(`SSETransport: Failed to parse client_event data: ${H($)}`,{level:"error"});return}let Z=Q.payload;if(Z&&typeof Z==="object"&&"type"in Z){let $=this.sessionId?` session=${this.sessionId}`:"";V(`SSETransport: Event seq=${Q.sequence_num} event_id=${Q.event_id} event_type=${Q.event_type} payload_type=${String(Z.type)}${$}`),W("info","cli_sse_message_received"),this.onData?.(B(Z)+`
|
|
9
|
+
`)}else V(`SSETransport: Ignoring client_event with no type in payload: event_id=${Q.event_id}`);this.onEventCallback?.(Q)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<EJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let $=this.refreshHeaders();Object.assign(this.headers,$),V("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let Q=Math.min(kJ*Math.pow(2,this.reconnectAttempts-1),PJ),Z=Math.max(0,Q+Q*0.25*(2*Math.random()-1));V(`SSETransport: Reconnecting in ${Math.round(Z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),W("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Z)}else V(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),W("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,V("SSETransport: Liveness timeout, reconnecting",{level:"error"}),W("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,NJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){V("SSETransport: No session token available for POST"),W("warn","cli_sse_post_no_token");return}let Q={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":x()};V(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let Z=1;Z<=A;Z++){try{let G=await P.post(this.postUrl,J,{headers:Q,validateStatus:FJ});if(G.status===200||G.status===201){V(`SSETransport: POST success type=${J.type}`);return}if(V(`SSETransport: POST ${G.status} body=${B(G.data).slice(0,200)}`),G.status>=400&&G.status<500&&G.status!==429){V(`SSETransport: POST returned ${G.status} (client error), not retrying`),W("warn","cli_sse_post_client_error",{status:G.status});return}V(`SSETransport: POST returned ${G.status}, attempt ${Z}/${A}`),W("warn","cli_sse_post_retryable_error",{status:G.status,attempt:Z})}catch(G){V(`SSETransport: POST error: ${G.message}, attempt ${Z}/${A}`),W("warn","cli_sse_post_network_error",{attempt:Z})}if(Z===A){V(`SSETransport: POST failed after ${A} attempts, continuing`),W("warn","cli_sse_post_retries_exhausted");return}let $=Math.min(wJ*Math.pow(2,Z-1),CJ);await O($)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function fJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
|
|
10
|
+
export{F as Wa,qJ as Xa,N as Ya,UJ as Za,yJ as _a};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ypa as M,Zpa as Y}from"./cli-1.1.40-m0j9t9he.mjs";import{Nqa as W}from"./cli-1.1.40-jxfk62k7.mjs";import{homedir as Z}from"os";import{join as Q}from"path";function $(q){if(q?.configDirEnv)return q.configDirEnv.normalize("NFC");let B=q?.homeDir??Z();return Q(B,".claudin").normalize("NFC")}function N(){return process.env.CLAUDIN_CONFIG_DIR}function _(){return Q(X(),"teams")}function j(q){let B=process.env.NODE_OPTIONS;if(!B)return!1;return B.split(/\s+/).includes(q)}function U(q){if(!q)return!1;if(typeof q==="boolean")return q;let B=q.toLowerCase().trim();return["1","true","yes","on"].includes(B)}function I(q){if(q===void 0)return!1;if(typeof q==="boolean")return!q;if(!q)return!1;let B=q.toLowerCase().trim();return["0","false","no","off"].includes(B)}function S(){return U(process.env.CLAUDIN_SIMPLE)||process.argv.includes("--bare")}function T(q){let B={};if(q)for(let F of q){let[J,...K]=F.split("=");if(!J||K.length===0)throw Error(`Invalid environment variable format: ${F}, environment variables should be added as: -e KEY1=value1 -e KEY2=value2`);B[J]=K.join("=")}return B}function c(){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}function L(){return process.env.CLOUD_ML_REGION||"us-east5"}function w(){return U(process.env.CLAUDIN_BASH_MAINTAIN_PROJECT_WORKING_DIR)}function z(q){if(q){let B=b.find(([F])=>q.startsWith(F));if(B)return process.env[B[1]]||L()}return L()}var X,b;var k=W(()=>{Y();X=M(()=>$({configDirEnv:N()}),()=>process.env.CLAUDIN_CONFIG_DIR??"");b=[["claude-haiku-4-5","VERTEX_REGION_CLAUDE_HAIKU_4_5"],["claude-3-5-haiku","VERTEX_REGION_CLAUDE_3_5_HAIKU"],["claude-3-5-sonnet","VERTEX_REGION_CLAUDE_3_5_SONNET"],["claude-3-7-sonnet","VERTEX_REGION_CLAUDE_3_7_SONNET"],["claude-opus-5-5","VERTEX_REGION_CLAUDE_5_5_OPUS"],["claude-opus-5","VERTEX_REGION_CLAUDE_5_OPUS"],["claude-opus-4-7","VERTEX_REGION_CLAUDE_4_7_OPUS"],["claude-opus-4-6","VERTEX_REGION_CLAUDE_4_6_OPUS"],["claude-opus-4-1","VERTEX_REGION_CLAUDE_4_1_OPUS"],["claude-opus-4","VERTEX_REGION_CLAUDE_4_0_OPUS"],["claude-sonnet-5-5","VERTEX_REGION_CLAUDE_5_5_SONNET"],["claude-sonnet-5","VERTEX_REGION_CLAUDE_5_SONNET"],["claude-sonnet-4-6","VERTEX_REGION_CLAUDE_4_6_SONNET"],["claude-sonnet-4-5","VERTEX_REGION_CLAUDE_4_5_SONNET"],["claude-sonnet-4","VERTEX_REGION_CLAUDE_4_0_SONNET"]]});
|
|
2
|
+
export{$ as bka,N as cka,X as dka,_ as eka,j as fka,U as gka,I as hka,S as ika,T as jka,c as kka,L as lka,w as mka,z as nka,k as oka};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{Gm as h,Hm as wQ,Im as u,Jm as LQ,Sl as jQ,gN as E,hN as MQ}from"./cli-1.1.40-wh51ya47.mjs";import{hja as U,lja as UQ,vja as j,yja as XQ}from"./cli-1.1.40-cy642er2.mjs";import{Wja as _,aka as vQ}from"./cli-1.1.40-rq9y2zd8.mjs";import{Jqa as GQ,Nqa as C}from"./cli-1.1.40-jxfk62k7.mjs";function WQ(Z){let Q=[],$=null;return Z.split(`
|
|
2
|
+
`).forEach((W,Y)=>{let J=r.exec(W);if(J){$=$===null?J[1]??"":null;return}Q.push({text:W,number:Y+1,fence:$})}),Q}function YQ(Z){return Z.split(/\s+/).map((Q)=>Q.replace(/[,;]+$/,"")).filter((Q)=>Q.length>0)}function qQ(Z){return Z.match(a)?.length??0}function JQ(Z,Q,$){let W="",Y=[];for(let{text:J,number:q,fence:z}of Z){if(z===null||b.has(z))continue;let V=s.exec(J);if(V?.[1]!==void 0){W=V[1],Y=[];continue}let H=l.exec(J);if(!H)continue;let K=qQ(H[1]??""),B=Y[K]??W,G=J.slice(H[0].length).split(o)[0]??"",w=!1,X=null;for(let L of YQ(G)){let S=t.exec(L);if(S?.[1]!==void 0&&X!==null){$.push({path:X,claimed:Number(S[1].replace(/,/g,"")),line:J,lineNumber:q}),X=null;continue}X=null;let y=n.test(L);if(!y&&!i.test(L))continue;let M=B+L;if(Q.push({path:M,line:J,lineNumber:q}),!y)continue;if(X=M,!w)Y[K+1]=M,w=!0}Y.length=Math.min(Y.length,K+2)}}function VQ(Z,Q,$){for(let{text:W,number:Y,fence:J}of Z){if(J!==null&&b.has(J))continue;for(let q of W.matchAll(e)){let z=q[1],V=q[2];if(z===void 0||V===void 0)continue;let H=QQ.exec(V);if(H?.[1]!==void 0){let B=H[2]?.toLowerCase()==="k"?1000:1,G=Math.round(Number(H[1].replace(/,/g,""))*B);if(Number.isFinite(G)&&G>0)Q.push({file:z,claimed:G,line:W,lineNumber:Y});continue}let K=V.split(",").map((B)=>B.trim());if(K.length===0||K.some((B)=>B.length===0))continue;if(!K.every((B)=>ZQ.test(B)&&$Q.test(B)))continue;$.push({file:z,symbols:K,line:W,lineNumber:Y})}}}function I(Z){let Q=WQ(Z),$={fencedPaths:[],dirCounts:[],attributions:[],lineCounts:[]};return JQ(Q,$.fencedPaths,$.dirCounts),VQ(Q,$.lineCounts,$.attributions),$}function A(Z,Q){if(Q.includes("/"))return Z.includes(Q)?Q:null;let $=null;for(let W of Z){if(!W.endsWith(`/${Q}`)&&W!==Q)continue;if($!==null)return null;$=W}return $}function T(Z,Q,$){let W=Q.endsWith("/")?Q:`${Q}/`;return Z.filter((Y)=>Y.startsWith(W)&&$.some((J)=>Y.endsWith(J))).length}function k(Z){let Q=Z.slice(Z.lastIndexOf("/")+1),$=Q.lastIndexOf(".");if($<=0)return null;return Q.slice($).toLowerCase()}function P(Z){let Q=new Map;for(let $ of Z){let W=k($);if(W===null)continue;Q.set(W,(Q.get(W)??0)+1)}return Q}function O(Z){let Q=[...Z.values()].reduce((J,q)=>J+q,0);if(Q===0)return[];let $=[...Z].sort(([,J],[,q])=>q-J),W=[],Y=0;for(let[J,q]of $){if(W.length>=KQ)break;if(W.length>0&&q/Q<BQ)break;if(W.push(J),Y+=q,Y/Q>=zQ)break}return W}function N(Z){let Q=Z.filter((W)=>{let Y=k(W);return Y!==null&&!HQ.has(Y)}),$=O(P(Q));return $.length>0?$:O(P(Z))}function p(Z,Q){return Math.abs(Q-Z)>Math.max(3,Z*0.1)}function x(Z,Q){return Q*2<Z||Z*2<Q}var b,r,l,a,s,o,n,i,t,e,QQ,ZQ,$Q,HQ,zQ=0.9,BQ=0.02,KQ=6;var F=C(()=>{b=new Set(["typescript","ts","tsx","javascript","js","jsx","json","jsonc","yaml","yml","diff","python","go","rust"]),r=/^\s*```(\S*)/,l=/^((?:[│|]\s{0,4}|\s{4}|\s{2})*)(?:├──|└──|├─|└─|\|--)\s*/,a=/[│|]\s{0,4}|\s{4}|\s{2}/g,s=/^((?:[\w.@-]+\/)+)\s*$/,o=/\s*(?:←|<-|<--)\s*/,n=/^[\w.@-]+\/$/,i=/^[\w.@-]*[\w-]\.[a-zA-Z]\w{0,3}$/,t=/^\((\d[\d,]*)\)$/,e=/((?:[\w.@-]+\/)*[\w.@-]*[\w-]\.[a-zA-Z]\w{0,3})`?\s*\(([^()\n]*)\)/g,QQ=/~?(\d[\d,]*(?:\.\d+)?)\s*(k?)[-\s]lines?\b/i,ZQ=/^[A-Za-z_$][\w$]*$/,$Q=/[a-z][A-Z]|_/;HQ=new Set([".md",".mdx",".txt",".json",".jsonc",".yml",".yaml",".toml",".mod",".ini",".cfg",".lock",".snap",".csv",".svg",".png",".jpg",".jpeg",".gif",".ico",".webp",".pdf",".pem",".exe",".bin",".wasm",".map"])});import{execFile as AQ}from"child_process";import{isAbsolute as f,join as v,relative as DQ,sep as R}from"path";import{promisify as SQ}from"util";async function RQ(Z){try{let{stdout:Q}=await OQ("git",["-c","core.quotepath=false","ls-files"],{cwd:Z,encoding:"utf8",timeout:CQ,maxBuffer:bQ});return Q.split(`
|
|
3
|
+
`).filter(($)=>$.length>0)}catch(Q){return j(`[rulesLint] git ls-files failed in ${Z}: ${String(Q)}`),null}}function gQ(Z){if(Z.length===0)return!1;if(NQ.some((Q)=>Z.includes(Q)))return!1;if(f(Z))return!1;if(!Z.includes("/"))return!1;return/^[\w.@-]+(?:\/[\w.@-]+)+\/?$/.test(Z)}function D(Z,Q){let $=U();if($.existsSync(v(Z,Q)))return!0;if(!g.test(Q))return!1;let W=Q.replace(g,"");return[".ts",".tsx"].some((Y)=>$.existsSync(v(Z,W+Y)))}function d(Z,Q){let $=Q.split("/")[0];if(!$)return!1;let W=U(),Y=v(Z,$);try{return W.existsSync(Y)&&W.statSync(Y).isDirectory()}catch{return!1}}function _Q(Z){let Q=new Set,$=[];for(let W of Z.split(`
|
|
4
|
+
`))for(let Y of W.matchAll(IQ)){let J=Y[1];if(!J)continue;let q=J.trim().replace(kQ,"").replace(TQ,"");if(gQ(q)&&!Q.has(q))Q.add(q),$.push({path:q,line:W})}return $}async function hQ(Z,Q){let $=U();try{let W=await $.readFile(v(Z,Q),{encoding:"utf8"}),Y=W.split(`
|
|
5
|
+
`).length;return W.endsWith(`
|
|
6
|
+
`)?Y-1:Y}catch(W){return j(`[rulesLint] unreadable source ${Q}: ${String(W)}`),null}}async function uQ(Z,Q){let $=h(Q);if($===null)return null;let W=U(),Y;try{Y=await W.readFile(v(Z,Q),{encoding:"utf8"})}catch(q){return j(`[rulesLint] unreadable source ${Q}: ${String(q)}`),null}if(xQ.test(Y))return null;let J=new Set(u(Y,$).map((q)=>q.name));for(let q of Y.matchAll(FQ))for(let z of(q[1]??"").split(",")){let V=z.trim().split(/\s+as\s+/).pop()?.trim();if(V)J.add(V.replace(/^type\s+/,""))}return J}async function EQ(Z,Q,$,W,Y){let J=N(W);for(let{path:q,lineNumber:z}of $.fencedPaths){if(!d(Z,q))continue;if(D(Z,q))continue;Y.push({file:Q,line:z,kind:"missing_path",severity:"warning",message:`names \`${q}\` inside a fenced block, which does not exist`,fix:"Update or remove it — a map that lists a directory the tree no longer has sends the agent to search for nothing."})}for(let{path:q,claimed:z,lineNumber:V}of $.dirCounts){if(!D(Z,q))continue;let H=T(W,q,J);if(!p(z,H))continue;Y.push({file:Q,line:V,kind:"dir_count_drift",severity:"warning",message:`says \`${q}\` holds ${z} files; it holds ${H}`,fix:"Re-count or run `bun run verify:rules --fix`. A gap this size means the slice moved, split or died, not that it grew."})}for(let{file:q,claimed:z,lineNumber:V}of $.lineCounts){let H=A(W,q);if(H===null)continue;let K=await hQ(Z,H);if(K===null||!x(z,K))continue;Y.push({file:Q,line:V,kind:"stale_line_count",severity:"warning",message:`says \`${H}\` is ~${z.toLocaleString()} lines; it is ${K.toLocaleString()}`,fix:"Re-measure, or point the claim at the directory — a barrel and its implementation siblings are the usual mix-up."})}for(let{file:q,symbols:z,lineNumber:V}of $.attributions){let H=A(W,q);if(H===null)continue;let K=await uQ(Z,H);if(K===null)continue;let B=z.filter((G)=>!K.has(G));if(B.length===0)continue;Y.push({file:Q,line:V,kind:"wrong_attribution",severity:"warning",message:`places ${B.map((G)=>`\`${G}\``).join(", ")} in \`${H}\`, which does not define ${B.length===1?"it":"them"}`,fix:"Attribute the symbol to the file that declares it — importing a name is not defining it, and the map is what decides where the agent greps."})}}async function c(Z){let Q=U(),$;try{$=await Q.readdir(Z)}catch(Y){let J=_(Y);if(J==="ENOENT"||J==="EACCES"||J==="ENOTDIR")return[];throw Y}let W=[];for(let Y of $){let J=v(Z,Y.name);if(Y.isDirectory())W.push(...await c(J));else if(Y.isFile()&&Y.name.endsWith(".md"))W.push(J)}return W.sort()}function mQ(Z,Q){let $=m.default().add(Z);return Q.some((W)=>{if(W.startsWith("..")||f(W))return!1;return $.ignores(W)})}async function QZ(Z={}){let Q=U(),$=Z.root??Q.cwd(),W=await c(v($,PQ)),Y=yQ.map((V)=>v($,V)).filter((V)=>Q.existsSync(V)),J=Z.trackedFiles??await RQ($)??null,q=[],z=[];for(let V of[...W,...Y]){let H;try{H=await Q.readFile(V,{encoding:"utf8"})}catch(G){j(`[rulesLint] unreadable rule file ${V}: ${String(G)}`);continue}let K=!V.includes(`${R}rules${R}`),B=E(H);if(K)z.push({file:V,chars:H.length});if(!K){for(let G of B.unsupportedKeys)q.push({file:V,kind:"unsupported_key",severity:"error",message:`frontmatter key \`${G}\` is not supported and is ignored`,fix:G==="globs"?"Rename `globs:` to `paths:` — as written, the rule loads into every session instead of the files you scoped it to.":"Remove the key. Only `paths` is read; anything else leaves the rule unconditional."});if(B.malformedPaths)q.push({file:V,kind:"malformed_paths",severity:"error",message:"`paths:` is not a string or a list of strings",fix:'Write `paths: "src/**/*.ts"` or a YAML list of strings.'});if(!B.paths)z.push({file:V,chars:H.length});else if(J){if(!mQ(B.paths,J))q.push({file:V,kind:"inert_paths",severity:"error",message:`\`paths:\` matches no tracked file (${B.paths.join(", ")})`,fix:"Fix the patterns. As written the rule never loads, which is indistinguishable from a working rule at runtime."})}}for(let{path:G,line:w}of _Q(B.content)){if(!d($,G))continue;if(D($,G))continue;if(pQ.test(w))continue;q.push({file:V,kind:"missing_path",severity:"warning",message:`cites \`${G}\`, which does not exist`,fix:"Update or remove the reference — a rule that names a moved file sends the agent to the wrong place."})}if(J)await EQ($,V,I(H),J,q)}return{findings:q,unconditional:z,unconditionalChars:z.reduce((V,H)=>V+H.chars,0),filesChecked:W.length+Y.length}}function ZZ(Z,Q){let $=DQ(Z,Q);return $.length>0&&!$.startsWith("..")?$:Q}var m,yQ,PQ,OQ,CQ=1e4,bQ=33554432,IQ,TQ,kQ,NQ,pQ,g,xQ,FQ;var fQ=C(()=>{XQ();vQ();UQ();MQ();F();wQ();LQ();m=GQ(jQ(),1),yQ=["AGENTS.md","CLAUDE.md"],PQ=v(".claudin","rules"),OQ=SQ(AQ),IQ=/`([^`\n]+)`/g,TQ=/:\d+(?:-\d+)?$/,kQ=/[.,;:)\]]+$/,NQ=["<",">","*","~","...","$","|","://"," ","path/to"],pQ=/\b(removed|deleted|dropped|no longer|used to|formerly|superseded)\b/i,g=/\.js$/,xQ=/^\s*export\s+\*\s+from\s/m,FQ=/^\s*export\s*\{([^}]*)\}/gm});
|
|
7
|
+
export{o as ag,I as bg,A as cg,T as dg,N as eg,p as fg,x as gg,F as hg,RQ as ig,QZ as jg,ZZ as kg,fQ as lg};
|