@claudiolabs/claudin 1.1.13 → 1.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/chunks/AgentTool-1.1.14-9q1ggh0e.mjs +1 -0
- package/dist/chunks/App-1.1.14-htg9bgyr.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.14-5mvef4qg.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.14-cdhvy1n1.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.14-amx3pan8.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.14-rs6q16rf.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.14-n5yvcvr6.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.14-53gmdkhz.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.14-30hcgbry.mjs +6 -0
- package/dist/chunks/Doctor-1.1.14-7sy2g3kq.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.14-e4es88e1.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.14-6h3jm7pr.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.14-chxkapxm.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.14-zpsvdv05.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.14-j9enxt6f.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.14-2b01fwcq.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.14-wbwa9rnr.mjs +1 -0
- package/dist/chunks/REPL-1.1.14-04ezket2.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.14-w737z0ya.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.14-vc6rvhd7.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.14-s06dyncs.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.14-8xhjpqb6.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.14-szxvge9a.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.14-pfr2r56w.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.14-y0fr1104.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.14-1hdvwfw0.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.14-mb3f9and.mjs +1 -0
- package/dist/chunks/add-dir-1.1.14-vtjpr86t.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.14-8f7ye4cx.mjs +1 -0
- package/dist/chunks/agents-1.1.14-09h1y56n.mjs +3 -0
- package/dist/chunks/agents-1.1.14-0w8wycx4.mjs +110 -0
- package/dist/chunks/api-1.1.14-0fbebbzk.mjs +1 -0
- package/dist/chunks/asciicast-1.1.14-tb149dp4.mjs +1 -0
- package/dist/chunks/assistant-1.1.14-z0zfp1et.mjs +1 -0
- package/dist/chunks/auth-1.1.14-bap5zejc.mjs +1 -0
- package/dist/chunks/auth-1.1.14-f6095j1n.mjs +1 -0
- package/dist/chunks/autoMode-1.1.14-ez7vz44q.mjs +48 -0
- package/dist/chunks/autoUpdater-1.1.14-nh4g2w5c.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.14-85wfz0d2.mjs +1 -0
- package/dist/chunks/branch-1.1.14-q182qsp7.mjs +4 -0
- package/dist/chunks/bridge-1.1.14-9kv2fqz4.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.14-c73sbxxv.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.14-e8cdsjdy.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.14-v69v0m5y.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.14-a7m65hvd.mjs +1 -0
- package/dist/chunks/btw-1.1.14-972yxja7.mjs +1 -0
- package/dist/chunks/buddy-1.1.14-j9178h9m.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.14-3ce2pkz1.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.14-qkerj80m.mjs +4 -0
- package/dist/chunks/caches-1.1.14-nf8ev61m.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.14-ccv8t2d4.mjs +1 -0
- package/dist/chunks/claudemd-1.1.14-m5t9ge1t.mjs +1 -0
- package/dist/chunks/clear-1.1.14-cfbvvm07.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.14-c99j8gmq.mjs +1 -0
- package/dist/chunks/cli-1.1.14-0e209hdd.mjs +2 -0
- package/dist/chunks/cli-1.1.14-0f45n8mg.mjs +2 -0
- package/dist/chunks/cli-1.1.14-1avercfj.mjs +2 -0
- package/dist/chunks/cli-1.1.14-1d5gcev8.mjs +2 -0
- package/dist/chunks/cli-1.1.14-1dph8n41.mjs +24 -0
- package/dist/chunks/cli-1.1.14-1hghs4qh.mjs +15 -0
- package/dist/chunks/cli-1.1.14-1zf42f1b.mjs +2 -0
- package/dist/chunks/cli-1.1.14-256a4dam.mjs +21 -0
- package/dist/chunks/cli-1.1.14-2gn4jtm1.mjs +3 -0
- package/dist/chunks/cli-1.1.14-2ysqsyrs.mjs +4 -0
- package/dist/chunks/cli-1.1.14-35sv8v0f.mjs +2 -0
- package/dist/chunks/cli-1.1.14-377p51gp.mjs +2 -0
- package/dist/chunks/cli-1.1.14-3a1bnf85.mjs +2 -0
- package/dist/chunks/cli-1.1.14-3f4fg0jf.mjs +2 -0
- package/dist/chunks/cli-1.1.14-3rjxbb1k.mjs +2 -0
- package/dist/chunks/cli-1.1.14-42r8tafr.mjs +3 -0
- package/dist/chunks/cli-1.1.14-4hs7pyh0.mjs +6 -0
- package/dist/chunks/cli-1.1.14-4s9n8yjm.mjs +2 -0
- package/dist/chunks/cli-1.1.14-4w3fbvdq.mjs +3 -0
- package/dist/chunks/cli-1.1.14-4y2f1s92.mjs +24 -0
- package/dist/chunks/cli-1.1.14-53dfe61t.mjs +2 -0
- package/dist/chunks/cli-1.1.14-59y1pays.mjs +2 -0
- package/dist/chunks/cli-1.1.14-63ezr011.mjs +4 -0
- package/dist/chunks/cli-1.1.14-6873seek.mjs +2 -0
- package/dist/chunks/cli-1.1.14-6ae3m5qs.mjs +3 -0
- package/dist/chunks/cli-1.1.14-6aknzs0q.mjs +3 -0
- package/dist/chunks/cli-1.1.14-6ex3vykg.mjs +16 -0
- package/dist/chunks/cli-1.1.14-6fa8a7k1.mjs +2 -0
- package/dist/chunks/cli-1.1.14-6q6zgmwr.mjs +4 -0
- package/dist/chunks/cli-1.1.14-6vr1y1hr.mjs +2 -0
- package/dist/chunks/cli-1.1.14-6wh10yar.mjs +2 -0
- package/dist/chunks/cli-1.1.14-6ybkavvh.mjs +4 -0
- package/dist/chunks/cli-1.1.14-711x17sa.mjs +2 -0
- package/dist/chunks/cli-1.1.14-73mqk8g5.mjs +2 -0
- package/dist/chunks/cli-1.1.14-73zh23ez.mjs +2 -0
- package/dist/chunks/cli-1.1.14-7ccy5ssr.mjs +2 -0
- package/dist/chunks/cli-1.1.14-7jt701f6.mjs +2 -0
- package/dist/chunks/cli-1.1.14-7pzggsge.mjs +2 -0
- package/dist/chunks/cli-1.1.14-83ng5cjk.mjs +2 -0
- package/dist/chunks/cli-1.1.14-889fhp26.mjs +3 -0
- package/dist/chunks/cli-1.1.14-8d79550c.mjs +2 -0
- package/dist/chunks/cli-1.1.14-8eaenjx4.mjs +4 -0
- package/dist/chunks/cli-1.1.14-8fx5qjh6.mjs +5440 -0
- package/dist/chunks/cli-1.1.14-8g09v1yy.mjs +2 -0
- package/dist/chunks/cli-1.1.14-8mn8xn5g.mjs +6 -0
- package/dist/chunks/cli-1.1.14-8p0w0geq.mjs +2 -0
- package/dist/chunks/cli-1.1.14-8wdw7x7k.mjs +2 -0
- package/dist/chunks/cli-1.1.14-8wsrnrk6.mjs +2 -0
- package/dist/chunks/cli-1.1.14-8yw87v1w.mjs +2 -0
- package/dist/chunks/cli-1.1.14-91ymqn8n.mjs +18 -0
- package/dist/chunks/cli-1.1.14-9419wa62.mjs +2 -0
- package/dist/chunks/cli-1.1.14-947tpwm7.mjs +2 -0
- package/dist/chunks/cli-1.1.14-9cg8tjv3.mjs +3 -0
- package/dist/chunks/cli-1.1.14-9gvsxyt7.mjs +2 -0
- package/dist/chunks/cli-1.1.14-9nw51dsq.mjs +3 -0
- package/dist/chunks/cli-1.1.14-a5v23mcj.mjs +2 -0
- package/dist/chunks/cli-1.1.14-ac4030sa.mjs +2 -0
- package/dist/chunks/cli-1.1.14-ac5krqkz.mjs +2 -0
- package/dist/chunks/cli-1.1.14-acg38ym6.mjs +2 -0
- package/dist/chunks/cli-1.1.14-afnxph29.mjs +2 -0
- package/dist/chunks/cli-1.1.14-aynsgyjh.mjs +2 -0
- package/dist/chunks/cli-1.1.14-az6pbe66.mjs +2 -0
- package/dist/chunks/cli-1.1.14-b1sbm8w6.mjs +133 -0
- package/dist/chunks/cli-1.1.14-ba8qj93n.mjs +50 -0
- package/dist/chunks/cli-1.1.14-bg9cmzcy.mjs +45 -0
- package/dist/chunks/cli-1.1.14-bjsx40c2.mjs +2 -0
- package/dist/chunks/cli-1.1.14-bjy8bxz1.mjs +2 -0
- package/dist/chunks/cli-1.1.14-brw0w20r.mjs +5 -0
- package/dist/chunks/cli-1.1.14-bwc8pb1f.mjs +2 -0
- package/dist/chunks/cli-1.1.14-byr5dy4k.mjs +4 -0
- package/dist/chunks/cli-1.1.14-bz7ts9p7.mjs +2 -0
- package/dist/chunks/cli-1.1.14-c30dtxm5.mjs +2 -0
- package/dist/chunks/cli-1.1.14-c41jzsx4.mjs +39 -0
- package/dist/chunks/cli-1.1.14-cakvdwn3.mjs +2 -0
- package/dist/chunks/cli-1.1.14-ce1ghrw0.mjs +2 -0
- package/dist/chunks/cli-1.1.14-cfkzk93c.mjs +2 -0
- package/dist/chunks/cli-1.1.14-chn2z068.mjs +6 -0
- package/dist/chunks/cli-1.1.14-cj411dk7.mjs +2 -0
- package/dist/chunks/cli-1.1.14-cnhawbs5.mjs +2 -0
- package/dist/chunks/cli-1.1.14-cnkv5cdq.mjs +2 -0
- package/dist/chunks/cli-1.1.14-cran8hzr.mjs +2 -0
- package/dist/chunks/cli-1.1.14-crdc0nk7.mjs +8 -0
- package/dist/chunks/cli-1.1.14-cxm6hsqs.mjs +2 -0
- package/dist/chunks/cli-1.1.14-cxqb5hw8.mjs +2 -0
- package/dist/chunks/cli-1.1.14-cydkb96c.mjs +2 -0
- package/dist/chunks/cli-1.1.14-db3mxak8.mjs +6 -0
- package/dist/chunks/cli-1.1.14-e7mfj9cz.mjs +2 -0
- package/dist/chunks/cli-1.1.14-ec6d00xg.mjs +66 -0
- package/dist/chunks/cli-1.1.14-eccdwm9t.mjs +18 -0
- package/dist/chunks/cli-1.1.14-ecnk9fd6.mjs +2 -0
- package/dist/chunks/cli-1.1.14-edqga9n4.mjs +2 -0
- package/dist/chunks/cli-1.1.14-eh3y4akg.mjs +2 -0
- package/dist/chunks/cli-1.1.14-ehnnwt4w.mjs +12 -0
- package/dist/chunks/cli-1.1.14-ennnd2wk.mjs +2 -0
- package/dist/chunks/cli-1.1.14-esspp1p0.mjs +2 -0
- package/dist/chunks/cli-1.1.14-f04bv457.mjs +2 -0
- package/dist/chunks/cli-1.1.14-f0686hwn.mjs +2 -0
- package/dist/chunks/cli-1.1.14-f0vw7m5f.mjs +2 -0
- package/dist/chunks/cli-1.1.14-f2g608st.mjs +2 -0
- package/dist/chunks/cli-1.1.14-f2z81veh.mjs +12 -0
- package/dist/chunks/cli-1.1.14-f5bvc359.mjs +2 -0
- package/dist/chunks/cli-1.1.14-f9dpkjv9.mjs +2 -0
- package/dist/chunks/cli-1.1.14-fm5cz88a.mjs +3 -0
- package/dist/chunks/cli-1.1.14-fp33ryn9.mjs +2 -0
- package/dist/chunks/cli-1.1.14-fq9x6yxc.mjs +2 -0
- package/dist/chunks/cli-1.1.14-ftjv2jrz.mjs +2 -0
- package/dist/chunks/cli-1.1.14-fwakcyhj.mjs +4 -0
- package/dist/chunks/cli-1.1.14-g11hsjv2.mjs +2 -0
- package/dist/chunks/cli-1.1.14-g7acy34j.mjs +5 -0
- package/dist/chunks/cli-1.1.14-g7ar9cmp.mjs +2 -0
- package/dist/chunks/cli-1.1.14-gbf9emxz.mjs +2 -0
- package/dist/chunks/cli-1.1.14-gbt4qmxx.mjs +2 -0
- package/dist/chunks/cli-1.1.14-gf6m8qz3.mjs +17 -0
- package/dist/chunks/cli-1.1.14-gjna0227.mjs +2 -0
- package/dist/chunks/cli-1.1.14-gtxhty3d.mjs +2 -0
- package/dist/chunks/cli-1.1.14-gv9rt2h8.mjs +2 -0
- package/dist/chunks/cli-1.1.14-gvh2m03s.mjs +9 -0
- package/dist/chunks/cli-1.1.14-h9swpf99.mjs +3 -0
- package/dist/chunks/cli-1.1.14-hcaktmq1.mjs +2 -0
- package/dist/chunks/cli-1.1.14-hdkyecme.mjs +59 -0
- package/dist/chunks/cli-1.1.14-j9qy5cj8.mjs +6 -0
- package/dist/chunks/cli-1.1.14-j9zawab5.mjs +2 -0
- package/dist/chunks/cli-1.1.14-je22trqj.mjs +7 -0
- package/dist/chunks/cli-1.1.14-jeqhpgat.mjs +4 -0
- package/dist/chunks/cli-1.1.14-jgers44a.mjs +2 -0
- package/dist/chunks/cli-1.1.14-k4n0pbvf.mjs +2 -0
- package/dist/chunks/cli-1.1.14-kkwnpcf6.mjs +2 -0
- package/dist/chunks/cli-1.1.14-krd6edee.mjs +2 -0
- package/dist/chunks/cli-1.1.14-ks4wsswq.mjs +133 -0
- package/dist/chunks/cli-1.1.14-ksk5rch9.mjs +2 -0
- package/dist/chunks/cli-1.1.14-ky3mvy9k.mjs +15 -0
- package/dist/chunks/cli-1.1.14-kzwx6a7h.mjs +2 -0
- package/dist/chunks/cli-1.1.14-mnerhwsv.mjs +25 -0
- package/dist/chunks/cli-1.1.14-msb0xfz3.mjs +6 -0
- package/dist/chunks/cli-1.1.14-n1hm0gd6.mjs +2 -0
- package/dist/chunks/cli-1.1.14-n351xrzx.mjs +2 -0
- package/dist/chunks/cli-1.1.14-n9fg59se.mjs +2 -0
- package/dist/chunks/cli-1.1.14-nqa3ttq6.mjs +2 -0
- package/dist/chunks/cli-1.1.14-nqd6dk6n.mjs +20 -0
- package/dist/chunks/cli-1.1.14-p0xhp49n.mjs +58 -0
- package/dist/chunks/cli-1.1.14-pa5nsjfc.mjs +24 -0
- package/dist/chunks/cli-1.1.14-pce9xpxh.mjs +2 -0
- package/dist/chunks/cli-1.1.14-pfsqawey.mjs +2 -0
- package/dist/chunks/cli-1.1.14-pgkjn3yw.mjs +2 -0
- package/dist/chunks/cli-1.1.14-ph81vme8.mjs +1 -0
- package/dist/chunks/cli-1.1.14-prtez07m.mjs +17 -0
- package/dist/chunks/cli-1.1.14-q1kc6b8n.mjs +202 -0
- package/dist/chunks/cli-1.1.14-q39sm90c.mjs +2 -0
- package/dist/chunks/cli-1.1.14-q4njqbhv.mjs +2 -0
- package/dist/chunks/cli-1.1.14-q9mpbtcq.mjs +2 -0
- package/dist/chunks/cli-1.1.14-qe4ypfya.mjs +2 -0
- package/dist/chunks/cli-1.1.14-qfc8zb5d.mjs +2 -0
- package/dist/chunks/cli-1.1.14-qm7sjy8p.mjs +2 -0
- package/dist/chunks/cli-1.1.14-qr2dkjw6.mjs +2 -0
- package/dist/chunks/cli-1.1.14-qs5hpm4s.mjs +2 -0
- package/dist/chunks/cli-1.1.14-qyywt37p.mjs +2 -0
- package/dist/chunks/cli-1.1.14-r39tb155.mjs +25 -0
- package/dist/chunks/cli-1.1.14-rcw8bj2x.mjs +2 -0
- package/dist/chunks/cli-1.1.14-rjac9djz.mjs +2 -0
- package/dist/chunks/cli-1.1.14-rmjnqb9b.mjs +2 -0
- package/dist/chunks/cli-1.1.14-ry5bys5g.mjs +2 -0
- package/dist/chunks/cli-1.1.14-ryjw96z2.mjs +2 -0
- package/dist/chunks/cli-1.1.14-s2tegwye.mjs +2 -0
- package/dist/chunks/cli-1.1.14-s59gy7wr.mjs +2 -0
- package/dist/chunks/cli-1.1.14-scaajcvm.mjs +2 -0
- package/dist/chunks/cli-1.1.14-srbcxz1e.mjs +34 -0
- package/dist/chunks/cli-1.1.14-t32277f6.mjs +4 -0
- package/dist/chunks/cli-1.1.14-t5cdgcnh.mjs +2 -0
- package/dist/chunks/cli-1.1.14-t82ydhr6.mjs +2 -0
- package/dist/chunks/cli-1.1.14-t9xyraqy.mjs +9 -0
- package/dist/chunks/cli-1.1.14-tm2g00jj.mjs +2 -0
- package/dist/chunks/cli-1.1.14-tv90r87r.mjs +3 -0
- package/dist/chunks/cli-1.1.14-v019any3.mjs +2 -0
- package/dist/chunks/cli-1.1.14-v4f9098m.mjs +2 -0
- package/dist/chunks/cli-1.1.14-v7nnjdwc.mjs +2 -0
- package/dist/chunks/cli-1.1.14-vd4v04cf.mjs +2 -0
- package/dist/chunks/cli-1.1.14-vdsx0cw7.mjs +15 -0
- package/dist/chunks/cli-1.1.14-vefm78w3.mjs +2 -0
- package/dist/chunks/cli-1.1.14-vjeh477p.mjs +3 -0
- package/dist/chunks/cli-1.1.14-vmwd3gk6.mjs +4 -0
- package/dist/chunks/cli-1.1.14-vq47nhnz.mjs +2 -0
- package/dist/chunks/cli-1.1.14-vx8jq8gy.mjs +42 -0
- package/dist/chunks/cli-1.1.14-vzevhjxk.mjs +2 -0
- package/dist/chunks/cli-1.1.14-w0d35qqy.mjs +2 -0
- package/dist/chunks/cli-1.1.14-w2wbzv4e.mjs +3 -0
- package/dist/chunks/cli-1.1.14-w4fgn8t6.mjs +2 -0
- package/dist/chunks/cli-1.1.14-weqr0y1h.mjs +2 -0
- package/dist/chunks/cli-1.1.14-x2b13bs6.mjs +2 -0
- package/dist/chunks/cli-1.1.14-x6g4zgjh.mjs +3 -0
- package/dist/chunks/cli-1.1.14-xcg5hzkp.mjs +2 -0
- package/dist/chunks/cli-1.1.14-xejgqxmy.mjs +2 -0
- package/dist/chunks/cli-1.1.14-xw8mensa.mjs +4 -0
- package/dist/chunks/cli-1.1.14-xwcfnjkf.mjs +24 -0
- package/dist/chunks/cli-1.1.14-yfknrxme.mjs +2 -0
- package/dist/chunks/cli-1.1.14-ykbz2fee.mjs +2 -0
- package/dist/chunks/cli-1.1.14-ypbww0jj.mjs +2 -0
- package/dist/chunks/cli-1.1.14-yvw9gv0w.mjs +2 -0
- package/dist/chunks/cli-1.1.14-z07q0gwf.mjs +2 -0
- package/dist/chunks/cli-1.1.14-z0mjb0vh.mjs +2 -0
- package/dist/chunks/cli-1.1.14-z9cc7bb2.mjs +2 -0
- package/dist/chunks/cli-1.1.14-zajvkghs.mjs +2 -0
- package/dist/chunks/cli-1.1.14-znbm9h8t.mjs +2 -0
- package/dist/chunks/client-1.1.14-m2mjhyw6.mjs +1 -0
- package/dist/chunks/color-1.1.14-f3q2mzg0.mjs +1 -0
- package/dist/chunks/compact-1.1.14-effx3hf9.mjs +3 -0
- package/dist/chunks/config-1.1.14-9ydtd85s.mjs +1 -0
- package/dist/chunks/config-1.1.14-h96m0d8d.mjs +1 -0
- package/dist/chunks/constants-1.1.14-zk22gxph.mjs +1 -0
- package/dist/chunks/context-1.1.14-wtr7pmtw.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.14-j8y21hht.mjs +1 -0
- package/dist/chunks/conversation-1.1.14-rt6z9rds.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.14-s922v787.mjs +1 -0
- package/dist/chunks/copy-1.1.14-m8bx9df8.mjs +9 -0
- package/dist/chunks/cost-1.1.14-whyhrsgg.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.14-sdg5dk4r.mjs +1 -0
- package/dist/chunks/createSession-1.1.14-vct1c158.mjs +1 -0
- package/dist/chunks/debug-1.1.14-nca60a44.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.14-7y4dgkxg.mjs +1526 -0
- package/dist/chunks/desktop-1.1.14-pe1cgr9z.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.14-z6hxtqhd.mjs +1 -0
- package/dist/chunks/detection-1.1.14-t5ayyza6.mjs +1 -0
- package/dist/chunks/diff-1.1.14-tv62px1c.mjs +1 -0
- package/dist/chunks/doctor-1.1.14-qesxnkxx.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.14-z63s9mpy.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.14-7vfad42b.mjs +1 -0
- package/dist/chunks/effort-1.1.14-prkmemjw.mjs +13 -0
- package/dist/chunks/engine-1.1.14-4585kjf8.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.14-pv9ydcq3.mjs +1 -0
- package/dist/chunks/envUtils-1.1.14-chbd1bsr.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.14-ckpkv6e3.mjs +1 -0
- package/dist/chunks/environments-1.1.14-ma9vprdz.mjs +1 -0
- package/dist/chunks/errors-1.1.14-ww80fvtz.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.14-x37y2ewm.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.14-4xp05pmd.mjs +1 -0
- package/dist/chunks/exit-1.1.14-shyzge3a.mjs +1 -0
- package/dist/chunks/explorer-1.1.14-12bn9b5s.mjs +1 -0
- package/dist/chunks/export-1.1.14-21yjwtry.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.14-gr1s0tck.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.14-zyk4qh8w.mjs +1 -0
- package/dist/chunks/fast-1.1.14-87cn8tqn.mjs +1 -0
- package/dist/chunks/feedback-1.1.14-s5ycv1dk.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.14-e62cbs1c.mjs +1 -0
- package/dist/chunks/git-1.1.14-c6rsmdv4.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.14-sbb3wp9c.mjs +1 -0
- package/dist/chunks/goal-1.1.14-w7j0vb96.mjs +4 -0
- package/dist/chunks/growthbook-1.1.14-65cpy0w1.mjs +1 -0
- package/dist/chunks/headless-1.1.14-68gm6f08.mjs +2 -0
- package/dist/chunks/heapdump-1.1.14-76kj8s1g.mjs +6 -0
- package/dist/chunks/help-1.1.14-zwc1crj5.mjs +1 -0
- package/dist/chunks/hookChains-1.1.14-cvazppdb.mjs +3 -0
- package/dist/chunks/hooks-1.1.14-2ryqg5gs.mjs +1 -0
- package/dist/chunks/hooks-1.1.14-3eveg7t1.mjs +79 -0
- package/dist/chunks/ide-1.1.14-dtgjtnqn.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.14-nehgy1pe.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.14-90434wfb.mjs +1 -0
- package/dist/chunks/index-1.1.14-0q2v4wxh.mjs +1 -0
- package/dist/chunks/index-1.1.14-12qn79c7.mjs +1 -0
- package/dist/chunks/index-1.1.14-2gtcr49x.mjs +1 -0
- package/dist/chunks/index-1.1.14-2tpw5zhr.mjs +1 -0
- package/dist/chunks/index-1.1.14-50xwby01.mjs +1 -0
- package/dist/chunks/index-1.1.14-73zx1e4s.mjs +1 -0
- package/dist/chunks/index-1.1.14-75vz0ehv.mjs +1 -0
- package/dist/chunks/index-1.1.14-9yex519n.mjs +1 -0
- package/dist/chunks/index-1.1.14-ae1277p4.mjs +2 -0
- package/dist/chunks/index-1.1.14-bgjpqq3g.mjs +1 -0
- package/dist/chunks/index-1.1.14-dn6sx3hd.mjs +5 -0
- package/dist/chunks/index-1.1.14-egsggv62.mjs +9 -0
- package/dist/chunks/index-1.1.14-jedc2mm5.mjs +30 -0
- package/dist/chunks/index-1.1.14-qf2jnnv2.mjs +1 -0
- package/dist/chunks/index-1.1.14-qsepya6f.mjs +23 -0
- package/dist/chunks/index-1.1.14-s8w75y4z.mjs +1 -0
- package/dist/chunks/index-1.1.14-sjk5njxz.mjs +2 -0
- package/dist/chunks/index-1.1.14-spp0ysmf.mjs +9 -0
- package/dist/chunks/index-1.1.14-termgazf.mjs +1 -0
- package/dist/chunks/index-1.1.14-v0dy155j.mjs +1 -0
- package/dist/chunks/index-1.1.14-wtvxy2p5.mjs +1 -0
- package/dist/chunks/index-1.1.14-x2qb1aam.mjs +1 -0
- package/dist/chunks/index-1.1.14-zxg55r1x.mjs +1 -0
- package/dist/chunks/init-1.1.14-60thb3vn.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.14-ptmwhng6.mjs +1 -0
- package/dist/chunks/ink-1.1.14-hb9m1tzk.mjs +1 -0
- package/dist/chunks/insights-1.1.14-q3gcq8e5.mjs +870 -0
- package/dist/chunks/install-1.1.14-yqjcrtpg.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.14-b9sx124r.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.14-h4axwer1.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.14-3dtmyckq.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.14-5ht3cz8m.mjs +1 -0
- package/dist/chunks/keybindings-1.1.14-ex18a7fg.mjs +2 -0
- package/dist/chunks/knowledge-1.1.14-netk3f6c.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.14-1ck4skb9.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.14-9qfmgcdr.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.14-g5te2y4b.mjs +1 -0
- package/dist/chunks/log-1.1.14-jrh2w4pj.mjs +1 -0
- package/dist/chunks/main-1.1.14-w4z3m51j.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.14-hm26y9yh.mjs +1 -0
- package/dist/chunks/mcp-1.1.14-jdgt2rjc.mjs +17 -0
- package/dist/chunks/mcp-1.1.14-nbqn7e10.mjs +1 -0
- package/dist/chunks/mcp-1.1.14-yhg498sq.mjs +4 -0
- package/dist/chunks/mcpb-1.1.14-bwrmrz6f.mjs +1 -0
- package/dist/chunks/memory-1.1.14-vtzr3td4.mjs +72 -0
- package/dist/chunks/model-1.1.14-6atmfgtq.mjs +1 -0
- package/dist/chunks/model-1.1.14-k3jz1ch0.mjs +2 -0
- package/dist/chunks/node-1.1.14-436c41vg.mjs +12 -0
- package/dist/chunks/oauth-1.1.14-1pb8ypjr.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.14-63qfbmm4.mjs +14 -0
- package/dist/chunks/output-style-1.1.14-km29ad1g.mjs +1 -0
- package/dist/chunks/package-L37ZVTF4-1.1.14-fdrhyx6k.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.14-vxn84ewm.mjs +1 -0
- package/dist/chunks/parser-1.1.14-98bg5gv8.mjs +1 -0
- package/dist/chunks/passes-1.1.14-5tdj3y9r.mjs +1 -0
- package/dist/chunks/permissions-1.1.14-srvsc3za.mjs +3 -0
- package/dist/chunks/permissions-1.1.14-vhhyyr5b.mjs +1 -0
- package/dist/chunks/plan-1.1.14-c0xp5pxe.mjs +1 -0
- package/dist/chunks/plist-1.1.14-5tba5azr.mjs +1 -0
- package/dist/chunks/plugin-1.1.14-3gh6jn53.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.14-16akasw0.mjs +1 -0
- package/dist/chunks/plugins-1.1.14-8cr92qaf.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.14-jwbb9w2t.mjs +2 -0
- package/dist/chunks/print-1.1.14-ce8mrr2j.mjs +57 -0
- package/dist/chunks/process-1.1.14-zygrw1jw.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.14-q066hcdv.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.14-btah3m31.mjs +9 -0
- package/dist/chunks/prompt-1.1.14-mmdq8qk2.mjs +1 -0
- package/dist/chunks/prompt-1.1.14-xks0rqr5.mjs +1 -0
- package/dist/chunks/prompts-1.1.14-9c7xnw4s.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.14-7w5d6b8w.mjs +13 -0
- package/dist/chunks/provider-1.1.14-136k178m.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.14-vg25c1wr.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.14-w3m1vah7.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.14-vhkc6pgc.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.14-v8b09yem.mjs +26 -0
- package/dist/chunks/registry-1.1.14-bxbt49ze.mjs +1 -0
- package/dist/chunks/release-notes-1.1.14-9xyhbkj1.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.14-9jhhq87x.mjs +2 -0
- package/dist/chunks/remote-env-1.1.14-941r054g.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.14-ab02srk9.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.14-8x26vncf.mjs +1 -0
- package/dist/chunks/rename-1.1.14-46zvyh32.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.14-85r3hxws.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.14-0jp7aph0.mjs +1 -0
- package/dist/chunks/resume-1.1.14-8pepfwmk.mjs +2 -0
- package/dist/chunks/rewind-1.1.14-hwgcehgr.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.14-evwgp5w2.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.14-w8erpgvm.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.14-kwegx4mz.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.14-2htjsxzk.mjs +1 -0
- package/dist/chunks/session-1.1.14-hgmnvw7z.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.14-anb5ddc9.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.14-re6kra5a.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.14-cn65r158.mjs +1 -0
- package/dist/chunks/settings-1.1.14-r31qkcwy.mjs +1 -0
- package/dist/chunks/setup-1.1.14-115cm91e.mjs +5 -0
- package/dist/chunks/sinks-1.1.14-4abzjj1m.mjs +1 -0
- package/dist/chunks/skills-1.1.14-k7rcbkx1.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.14-vgaq3kjm.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.14-z50xwm9f.mjs +1 -0
- package/dist/chunks/state-1.1.14-thy0hnc6.mjs +1 -0
- package/dist/chunks/stats-1.1.14-m6dzpj3a.mjs +6 -0
- package/dist/chunks/status-1.1.14-amqe3rdm.mjs +1 -0
- package/dist/chunks/stickers-1.1.14-2t1zj000.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.14-pbf40bta.mjs +1 -0
- package/dist/chunks/tasks-1.1.14-exvwanrf.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.14-pscnj4fa.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.14-p4asr9ej.mjs +1 -0
- package/dist/chunks/teleport-1.1.14-m6qw5vnq.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.14-5ahc4rv9.mjs +1 -0
- package/dist/chunks/theme-1.1.14-1pn2fsqz.mjs +1 -0
- package/dist/chunks/thinkback-1.1.14-jss1meem.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.14-gwr9e1aw.mjs +1 -0
- package/dist/chunks/toolPool-1.1.14-dczcmy51.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.14-seww0hje.mjs +1 -0
- package/dist/chunks/tools-1.1.14-6edkph4d.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.14-fyw61308.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.14-zz6ad8n2.mjs +69 -0
- package/dist/chunks/types-1.1.14-ype8816v.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.14-sr15z0qh.mjs +4 -0
- package/dist/chunks/update-1.1.14-114p1f8r.mjs +72 -0
- package/dist/chunks/upgrade-1.1.14-9whzt7qa.mjs +1 -0
- package/dist/chunks/upload-1.1.14-hpk4spp9.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.14-26edczqa.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.14-3e9ramyj.mjs +1 -0
- package/dist/chunks/usage-1.1.14-xaegmtg7.mjs +1 -0
- package/dist/chunks/util-1.1.14-dtgb1qsg.mjs +1 -0
- package/dist/chunks/utils-1.1.14-xcvcp3es.mjs +1 -0
- package/dist/chunks/vim-1.1.14-y2x4dg5h.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.14-r19ed4xt.mjs +13 -0
- package/dist/chunks/watcher-1.1.14-9z5ptaf1.mjs +1 -0
- package/dist/chunks/wiki-1.1.14-kyejnvfb.mjs +132 -0
- package/dist/chunks/workflows-1.1.14-06jg36tv.mjs +1 -0
- package/dist/chunks/worktree-1.1.14-k41xe3b1.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.14-3mn08sd0.mjs +1 -0
- package/dist/chunks/wrapper-1.1.14-tgerest3.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.13-63r89cdz.mjs +0 -1
- package/dist/chunks/App-1.1.13-d46t1gxs.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.13-ss1skn67.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.13-akb18zhk.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.13-wy2pstpa.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.13-nrs4ahv7.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.13-p12n7vw3.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.13-tqx20akq.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.13-6nf4k00f.mjs +0 -6
- package/dist/chunks/Doctor-1.1.13-sab3pc3m.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.13-8j4yph77.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.13-ezctrhfh.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.13-fn55xkky.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.13-v601bm3n.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.13-m30010yq.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.13-r6p8ac38.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.13-2mn20qcd.mjs +0 -1
- package/dist/chunks/REPL-1.1.13-mn8t5yw9.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.13-ayr9p9vf.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.13-wvmmeycx.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.13-wy75ekbh.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.13-mbjqq83z.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.13-590kxc7c.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.13-3z3twxzs.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.13-wzknhxkr.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.13-ev0qre9c.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.13-mf4z3aws.mjs +0 -1
- package/dist/chunks/add-dir-1.1.13-r8re3j87.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.13-nxkcga73.mjs +0 -1
- package/dist/chunks/agents-1.1.13-86a1wgye.mjs +0 -110
- package/dist/chunks/agents-1.1.13-w1pmkekd.mjs +0 -3
- package/dist/chunks/api-1.1.13-5ffq20rc.mjs +0 -1
- package/dist/chunks/asciicast-1.1.13-633wvh0n.mjs +0 -1
- package/dist/chunks/assistant-1.1.13-9q7zxtfz.mjs +0 -1
- package/dist/chunks/auth-1.1.13-a50e1ztc.mjs +0 -1
- package/dist/chunks/auth-1.1.13-xv576tj3.mjs +0 -1
- package/dist/chunks/autoMode-1.1.13-3n3c9p8y.mjs +0 -48
- package/dist/chunks/autoUpdater-1.1.13-mb65jkk5.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.13-avr9z4k0.mjs +0 -1
- package/dist/chunks/branch-1.1.13-gmg9we2y.mjs +0 -4
- package/dist/chunks/bridge-1.1.13-hvfvhpm1.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.13-zzxf7mvh.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.13-f2fjmfs0.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.13-8tn5vy8z.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.13-97d9ec9y.mjs +0 -1
- package/dist/chunks/btw-1.1.13-v2hwppkk.mjs +0 -1
- package/dist/chunks/buddy-1.1.13-svfg8x3f.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.13-td1bna05.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.13-tmmf2k7r.mjs +0 -4
- package/dist/chunks/caches-1.1.13-s55yzhpm.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.13-8d0bp8yb.mjs +0 -1
- package/dist/chunks/claudemd-1.1.13-3mc0z25q.mjs +0 -1
- package/dist/chunks/clear-1.1.13-1d9yvw3f.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.13-882kpw7s.mjs +0 -1
- package/dist/chunks/cli-1.1.13-03rdpsbf.mjs +0 -2
- package/dist/chunks/cli-1.1.13-0dha376x.mjs +0 -3
- package/dist/chunks/cli-1.1.13-0h48j6a1.mjs +0 -7
- package/dist/chunks/cli-1.1.13-0qy978b3.mjs +0 -3
- package/dist/chunks/cli-1.1.13-0x1mk1dp.mjs +0 -2
- package/dist/chunks/cli-1.1.13-0y4933cs.mjs +0 -2
- package/dist/chunks/cli-1.1.13-0yte5zpd.mjs +0 -2
- package/dist/chunks/cli-1.1.13-15nbdw38.mjs +0 -2
- package/dist/chunks/cli-1.1.13-17xy86gy.mjs +0 -24
- package/dist/chunks/cli-1.1.13-1d70jtz7.mjs +0 -6
- package/dist/chunks/cli-1.1.13-1frz0zm3.mjs +0 -2
- package/dist/chunks/cli-1.1.13-1jf910f2.mjs +0 -2
- package/dist/chunks/cli-1.1.13-1qk5qhgt.mjs +0 -2
- package/dist/chunks/cli-1.1.13-1rfveg0v.mjs +0 -2
- package/dist/chunks/cli-1.1.13-1x4z2mj8.mjs +0 -2
- package/dist/chunks/cli-1.1.13-24284zna.mjs +0 -2
- package/dist/chunks/cli-1.1.13-284pjmzy.mjs +0 -4
- package/dist/chunks/cli-1.1.13-2964cc2e.mjs +0 -2
- package/dist/chunks/cli-1.1.13-2a8k8qw7.mjs +0 -2
- package/dist/chunks/cli-1.1.13-2f0gzs1e.mjs +0 -2
- package/dist/chunks/cli-1.1.13-2m39r998.mjs +0 -2
- package/dist/chunks/cli-1.1.13-2mrqqgcm.mjs +0 -202
- package/dist/chunks/cli-1.1.13-2sx1bxbt.mjs +0 -2
- package/dist/chunks/cli-1.1.13-2txesqy8.mjs +0 -2
- package/dist/chunks/cli-1.1.13-3dmbtx8g.mjs +0 -2
- package/dist/chunks/cli-1.1.13-3wxfn6t5.mjs +0 -2
- package/dist/chunks/cli-1.1.13-46jvx14j.mjs +0 -2
- package/dist/chunks/cli-1.1.13-49gvv5kd.mjs +0 -2
- package/dist/chunks/cli-1.1.13-4tt8dq0e.mjs +0 -42
- package/dist/chunks/cli-1.1.13-4vt96sm8.mjs +0 -2
- package/dist/chunks/cli-1.1.13-53ght581.mjs +0 -3
- package/dist/chunks/cli-1.1.13-53zq1gs2.mjs +0 -2
- package/dist/chunks/cli-1.1.13-5kpppj1f.mjs +0 -6
- package/dist/chunks/cli-1.1.13-61mygvzg.mjs +0 -2
- package/dist/chunks/cli-1.1.13-64d0d5ye.mjs +0 -2
- package/dist/chunks/cli-1.1.13-65c7kxwt.mjs +0 -12
- package/dist/chunks/cli-1.1.13-669vhsjj.mjs +0 -2
- package/dist/chunks/cli-1.1.13-6727vw4f.mjs +0 -2
- package/dist/chunks/cli-1.1.13-6b845car.mjs +0 -2
- package/dist/chunks/cli-1.1.13-6c4qxmj3.mjs +0 -4
- package/dist/chunks/cli-1.1.13-6dcpjy34.mjs +0 -17
- package/dist/chunks/cli-1.1.13-6ebd7gpv.mjs +0 -2
- package/dist/chunks/cli-1.1.13-6jy1pnge.mjs +0 -2
- package/dist/chunks/cli-1.1.13-6k71beqh.mjs +0 -2
- package/dist/chunks/cli-1.1.13-6tf67wfm.mjs +0 -2
- package/dist/chunks/cli-1.1.13-74rczf0f.mjs +0 -2
- package/dist/chunks/cli-1.1.13-7h18kpv0.mjs +0 -2
- package/dist/chunks/cli-1.1.13-7k2bp2pf.mjs +0 -2
- package/dist/chunks/cli-1.1.13-7s34jqge.mjs +0 -133
- package/dist/chunks/cli-1.1.13-7srn3vy6.mjs +0 -2
- package/dist/chunks/cli-1.1.13-7wyfj1qp.mjs +0 -2
- package/dist/chunks/cli-1.1.13-82y6dszx.mjs +0 -2
- package/dist/chunks/cli-1.1.13-86kjp502.mjs +0 -2
- package/dist/chunks/cli-1.1.13-91q67gqp.mjs +0 -2
- package/dist/chunks/cli-1.1.13-9609q0ww.mjs +0 -2
- package/dist/chunks/cli-1.1.13-9ktdmvzq.mjs +0 -15
- package/dist/chunks/cli-1.1.13-9qhgyzkx.mjs +0 -2
- package/dist/chunks/cli-1.1.13-9s0arh3g.mjs +0 -25
- package/dist/chunks/cli-1.1.13-9v3mg87v.mjs +0 -2
- package/dist/chunks/cli-1.1.13-9x53mnyd.mjs +0 -5
- package/dist/chunks/cli-1.1.13-a3q7qm6t.mjs +0 -2
- package/dist/chunks/cli-1.1.13-a3s5tdea.mjs +0 -2
- package/dist/chunks/cli-1.1.13-a3zfe19b.mjs +0 -25
- package/dist/chunks/cli-1.1.13-a40ncbc3.mjs +0 -2
- package/dist/chunks/cli-1.1.13-a96dm0r5.mjs +0 -4
- package/dist/chunks/cli-1.1.13-aac9pss7.mjs +0 -59
- package/dist/chunks/cli-1.1.13-aeq919w1.mjs +0 -2
- package/dist/chunks/cli-1.1.13-aqph7zr1.mjs +0 -2
- package/dist/chunks/cli-1.1.13-ayx92dtj.mjs +0 -6
- package/dist/chunks/cli-1.1.13-b47k2p92.mjs +0 -21
- package/dist/chunks/cli-1.1.13-b9sg0jsz.mjs +0 -2
- package/dist/chunks/cli-1.1.13-baxww5k9.mjs +0 -3
- package/dist/chunks/cli-1.1.13-c4zxjf91.mjs +0 -2
- package/dist/chunks/cli-1.1.13-cd7jraqe.mjs +0 -2
- package/dist/chunks/cli-1.1.13-cey8v1xc.mjs +0 -2
- package/dist/chunks/cli-1.1.13-cg1m9a2x.mjs +0 -2
- package/dist/chunks/cli-1.1.13-ck2qzqbj.mjs +0 -2
- package/dist/chunks/cli-1.1.13-cm4vwx6e.mjs +0 -2
- package/dist/chunks/cli-1.1.13-cn9g3704.mjs +0 -12
- package/dist/chunks/cli-1.1.13-cqhxyzrd.mjs +0 -2
- package/dist/chunks/cli-1.1.13-d4z9sv3g.mjs +0 -2
- package/dist/chunks/cli-1.1.13-d54qh52e.mjs +0 -3
- package/dist/chunks/cli-1.1.13-d8d30wps.mjs +0 -3
- package/dist/chunks/cli-1.1.13-djvyb4s5.mjs +0 -3
- package/dist/chunks/cli-1.1.13-dpsjxc84.mjs +0 -2
- package/dist/chunks/cli-1.1.13-dthjfxxw.mjs +0 -2
- package/dist/chunks/cli-1.1.13-e4k7980n.mjs +0 -2
- package/dist/chunks/cli-1.1.13-e68npf24.mjs +0 -2
- package/dist/chunks/cli-1.1.13-ehaqachs.mjs +0 -2
- package/dist/chunks/cli-1.1.13-epjmphrz.mjs +0 -133
- package/dist/chunks/cli-1.1.13-ev08z5ye.mjs +0 -24
- package/dist/chunks/cli-1.1.13-ewxej7em.mjs +0 -2
- package/dist/chunks/cli-1.1.13-ey931psa.mjs +0 -2
- package/dist/chunks/cli-1.1.13-f5s7e6kg.mjs +0 -2
- package/dist/chunks/cli-1.1.13-far5gqfj.mjs +0 -2
- package/dist/chunks/cli-1.1.13-fccy9c48.mjs +0 -2
- package/dist/chunks/cli-1.1.13-fjxx2wgm.mjs +0 -2
- package/dist/chunks/cli-1.1.13-fkcaczca.mjs +0 -2
- package/dist/chunks/cli-1.1.13-fkvcsg0a.mjs +0 -2
- package/dist/chunks/cli-1.1.13-fr4zp0cx.mjs +0 -3
- package/dist/chunks/cli-1.1.13-g8k8na90.mjs +0 -2
- package/dist/chunks/cli-1.1.13-gaa8s22w.mjs +0 -8
- package/dist/chunks/cli-1.1.13-gechs2yp.mjs +0 -4
- package/dist/chunks/cli-1.1.13-gfyds6b8.mjs +0 -18
- package/dist/chunks/cli-1.1.13-gh95gh19.mjs +0 -2
- package/dist/chunks/cli-1.1.13-gmqmzw50.mjs +0 -2
- package/dist/chunks/cli-1.1.13-gzfw6n93.mjs +0 -39
- package/dist/chunks/cli-1.1.13-gznvgt6g.mjs +0 -16
- package/dist/chunks/cli-1.1.13-h1v6cap9.mjs +0 -2
- package/dist/chunks/cli-1.1.13-h7n0z0dz.mjs +0 -2
- package/dist/chunks/cli-1.1.13-h7xrb6x3.mjs +0 -2
- package/dist/chunks/cli-1.1.13-hg8x8693.mjs +0 -6
- package/dist/chunks/cli-1.1.13-hzneg4va.mjs +0 -2
- package/dist/chunks/cli-1.1.13-j02dcs05.mjs +0 -2
- package/dist/chunks/cli-1.1.13-j7dbk8te.mjs +0 -2
- package/dist/chunks/cli-1.1.13-j98qjhp9.mjs +0 -15
- package/dist/chunks/cli-1.1.13-je6371k7.mjs +0 -2
- package/dist/chunks/cli-1.1.13-jevpf9b3.mjs +0 -2
- package/dist/chunks/cli-1.1.13-k5sbyjwd.mjs +0 -2
- package/dist/chunks/cli-1.1.13-k6ef9cy7.mjs +0 -34
- package/dist/chunks/cli-1.1.13-kbf9vss4.mjs +0 -4
- package/dist/chunks/cli-1.1.13-kct81ph3.mjs +0 -2
- package/dist/chunks/cli-1.1.13-kjdr6edt.mjs +0 -15
- package/dist/chunks/cli-1.1.13-kmrz3wh8.mjs +0 -2
- package/dist/chunks/cli-1.1.13-kq8spsav.mjs +0 -2
- package/dist/chunks/cli-1.1.13-ksvd60yr.mjs +0 -2
- package/dist/chunks/cli-1.1.13-kw2fntc3.mjs +0 -3
- package/dist/chunks/cli-1.1.13-m5grg33r.mjs +0 -4
- package/dist/chunks/cli-1.1.13-mct1fasm.mjs +0 -2
- package/dist/chunks/cli-1.1.13-mt0y53s0.mjs +0 -17
- package/dist/chunks/cli-1.1.13-mzq23677.mjs +0 -2
- package/dist/chunks/cli-1.1.13-n24mxjbh.mjs +0 -2
- package/dist/chunks/cli-1.1.13-n8nv58q7.mjs +0 -2
- package/dist/chunks/cli-1.1.13-nbdp9ez1.mjs +0 -3
- package/dist/chunks/cli-1.1.13-nr09192d.mjs +0 -2
- package/dist/chunks/cli-1.1.13-pa4chrcw.mjs +0 -2
- package/dist/chunks/cli-1.1.13-pam922jf.mjs +0 -2
- package/dist/chunks/cli-1.1.13-pedv9sma.mjs +0 -9
- package/dist/chunks/cli-1.1.13-pjxb9g99.mjs +0 -2
- package/dist/chunks/cli-1.1.13-pmejqt4x.mjs +0 -2
- package/dist/chunks/cli-1.1.13-pscw4dkq.mjs +0 -2
- package/dist/chunks/cli-1.1.13-psmq4bkh.mjs +0 -50
- package/dist/chunks/cli-1.1.13-q1hx591h.mjs +0 -2
- package/dist/chunks/cli-1.1.13-q1yggv9b.mjs +0 -2
- package/dist/chunks/cli-1.1.13-qc5bvtyx.mjs +0 -2
- package/dist/chunks/cli-1.1.13-qd5r2qba.mjs +0 -2
- package/dist/chunks/cli-1.1.13-qhavh0s1.mjs +0 -9
- package/dist/chunks/cli-1.1.13-qr4adses.mjs +0 -2
- package/dist/chunks/cli-1.1.13-qtzpy08k.mjs +0 -2
- package/dist/chunks/cli-1.1.13-qv85wtc7.mjs +0 -2
- package/dist/chunks/cli-1.1.13-qxrjvprg.mjs +0 -3
- package/dist/chunks/cli-1.1.13-qyjx1fky.mjs +0 -2
- package/dist/chunks/cli-1.1.13-r2qnta4s.mjs +0 -2
- package/dist/chunks/cli-1.1.13-r4znfhyr.mjs +0 -2
- package/dist/chunks/cli-1.1.13-r9tfxszp.mjs +0 -2
- package/dist/chunks/cli-1.1.13-rcgr5xjp.mjs +0 -1
- package/dist/chunks/cli-1.1.13-rh27w2xj.mjs +0 -24
- package/dist/chunks/cli-1.1.13-rhtvcdjb.mjs +0 -3
- package/dist/chunks/cli-1.1.13-rmt4z6qm.mjs +0 -2
- package/dist/chunks/cli-1.1.13-rnajmfsp.mjs +0 -2
- package/dist/chunks/cli-1.1.13-rrp2vm36.mjs +0 -2
- package/dist/chunks/cli-1.1.13-segzta4x.mjs +0 -2
- package/dist/chunks/cli-1.1.13-shz97pa0.mjs +0 -2
- package/dist/chunks/cli-1.1.13-smefk747.mjs +0 -2
- package/dist/chunks/cli-1.1.13-snkbv1w2.mjs +0 -2
- package/dist/chunks/cli-1.1.13-sqg8rfkh.mjs +0 -2
- package/dist/chunks/cli-1.1.13-sycf9s0v.mjs +0 -3
- package/dist/chunks/cli-1.1.13-t4z97zfd.mjs +0 -2
- package/dist/chunks/cli-1.1.13-t8ypngwg.mjs +0 -4
- package/dist/chunks/cli-1.1.13-tma5xwa2.mjs +0 -2
- package/dist/chunks/cli-1.1.13-tx4y2gtw.mjs +0 -2
- package/dist/chunks/cli-1.1.13-tz8pn7w4.mjs +0 -24
- package/dist/chunks/cli-1.1.13-v2synpdg.mjs +0 -2
- package/dist/chunks/cli-1.1.13-vm8xs878.mjs +0 -3
- package/dist/chunks/cli-1.1.13-vpgfmshm.mjs +0 -4
- package/dist/chunks/cli-1.1.13-vx6r9z72.mjs +0 -45
- package/dist/chunks/cli-1.1.13-vxpmt3js.mjs +0 -66
- package/dist/chunks/cli-1.1.13-wh5smpta.mjs +0 -2
- package/dist/chunks/cli-1.1.13-wje228e3.mjs +0 -2
- package/dist/chunks/cli-1.1.13-wmpc2gzg.mjs +0 -2
- package/dist/chunks/cli-1.1.13-wqteqtr2.mjs +0 -2
- package/dist/chunks/cli-1.1.13-ws1mny6h.mjs +0 -58
- package/dist/chunks/cli-1.1.13-x663d461.mjs +0 -2
- package/dist/chunks/cli-1.1.13-x79qava2.mjs +0 -5413
- package/dist/chunks/cli-1.1.13-x83epxhw.mjs +0 -2
- package/dist/chunks/cli-1.1.13-x92dpkgj.mjs +0 -6
- package/dist/chunks/cli-1.1.13-xbxnp58a.mjs +0 -2
- package/dist/chunks/cli-1.1.13-xjr3rwfq.mjs +0 -6
- package/dist/chunks/cli-1.1.13-xqqf08vq.mjs +0 -2
- package/dist/chunks/cli-1.1.13-y5d299s9.mjs +0 -2
- package/dist/chunks/cli-1.1.13-y6pa258f.mjs +0 -4
- package/dist/chunks/cli-1.1.13-y6vdh2z1.mjs +0 -2
- package/dist/chunks/cli-1.1.13-ykzv8nyq.mjs +0 -2
- package/dist/chunks/cli-1.1.13-z39hx0gz.mjs +0 -20
- package/dist/chunks/cli-1.1.13-z3t7b0fc.mjs +0 -2
- package/dist/chunks/cli-1.1.13-z4p8zcbq.mjs +0 -2
- package/dist/chunks/cli-1.1.13-z9471mhs.mjs +0 -4
- package/dist/chunks/cli-1.1.13-zb95jpx7.mjs +0 -4
- package/dist/chunks/cli-1.1.13-zgnxf8h2.mjs +0 -2
- package/dist/chunks/cli-1.1.13-zmb192fn.mjs +0 -18
- package/dist/chunks/cli-1.1.13-zq5f89xg.mjs +0 -5
- package/dist/chunks/cli-1.1.13-zwkd4wt2.mjs +0 -2
- package/dist/chunks/client-1.1.13-6axfwqya.mjs +0 -1
- package/dist/chunks/color-1.1.13-g1rjvg86.mjs +0 -1
- package/dist/chunks/compact-1.1.13-9k4jts81.mjs +0 -3
- package/dist/chunks/config-1.1.13-58bj6t43.mjs +0 -1
- package/dist/chunks/config-1.1.13-csmwn3d0.mjs +0 -1
- package/dist/chunks/constants-1.1.13-cydjncsk.mjs +0 -1
- package/dist/chunks/context-1.1.13-04y3svxc.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.13-03weyc85.mjs +0 -1
- package/dist/chunks/conversation-1.1.13-3e1jc3w3.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.13-51e32r1x.mjs +0 -1
- package/dist/chunks/copy-1.1.13-4zq95frp.mjs +0 -9
- package/dist/chunks/cost-1.1.13-fwm0etgk.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.13-j73jx662.mjs +0 -1
- package/dist/chunks/createSession-1.1.13-2qt6zyq3.mjs +0 -1
- package/dist/chunks/debug-1.1.13-v33s5nkx.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.13-jyb9mebt.mjs +0 -1526
- package/dist/chunks/desktop-1.1.13-3pyvc57q.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.13-c8evf71r.mjs +0 -1
- package/dist/chunks/detection-1.1.13-k5td7n26.mjs +0 -1
- package/dist/chunks/diff-1.1.13-d31m696z.mjs +0 -1
- package/dist/chunks/doctor-1.1.13-59947n3f.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.13-tvrr2smf.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.13-yngv0q4n.mjs +0 -1
- package/dist/chunks/effort-1.1.13-mknzxvcm.mjs +0 -13
- package/dist/chunks/engine-1.1.13-p9g24e16.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.13-wvdxmeaw.mjs +0 -1
- package/dist/chunks/envUtils-1.1.13-v5y7eb11.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.13-5fx84mw2.mjs +0 -1
- package/dist/chunks/environments-1.1.13-dkqy0n2f.mjs +0 -1
- package/dist/chunks/errors-1.1.13-xf58n7yx.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.13-1mqkdys8.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.13-08pbvmpc.mjs +0 -1
- package/dist/chunks/exit-1.1.13-n91w8c6v.mjs +0 -1
- package/dist/chunks/explorer-1.1.13-zh3tbspv.mjs +0 -1
- package/dist/chunks/export-1.1.13-vgfr4wyy.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.13-ww6z773x.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.13-sfm57e8v.mjs +0 -1
- package/dist/chunks/fast-1.1.13-2an1j0he.mjs +0 -1
- package/dist/chunks/feedback-1.1.13-dz4kng15.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.13-zdhe9x8w.mjs +0 -1
- package/dist/chunks/git-1.1.13-n4743t7m.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.13-39mkwpe0.mjs +0 -1
- package/dist/chunks/goal-1.1.13-kt16xsn7.mjs +0 -4
- package/dist/chunks/growthbook-1.1.13-12sbk0rh.mjs +0 -1
- package/dist/chunks/headless-1.1.13-me11khs4.mjs +0 -2
- package/dist/chunks/heapdump-1.1.13-2m1pfhn8.mjs +0 -6
- package/dist/chunks/help-1.1.13-sdyj6mfj.mjs +0 -1
- package/dist/chunks/hookChains-1.1.13-kwx32g3b.mjs +0 -3
- package/dist/chunks/hooks-1.1.13-cgr9s1yz.mjs +0 -1
- package/dist/chunks/hooks-1.1.13-rbvjw5bs.mjs +0 -79
- package/dist/chunks/ide-1.1.13-699b7xgf.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.13-m17yzsrx.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.13-x1sbkysh.mjs +0 -1
- package/dist/chunks/index-1.1.13-1magnv9t.mjs +0 -1
- package/dist/chunks/index-1.1.13-20fw0vyg.mjs +0 -1
- package/dist/chunks/index-1.1.13-3dw8qr3q.mjs +0 -1
- package/dist/chunks/index-1.1.13-5fffrw39.mjs +0 -23
- package/dist/chunks/index-1.1.13-7v1v2795.mjs +0 -1
- package/dist/chunks/index-1.1.13-89b63y1a.mjs +0 -1
- package/dist/chunks/index-1.1.13-9hmkds89.mjs +0 -1
- package/dist/chunks/index-1.1.13-gy0jpfpr.mjs +0 -1
- package/dist/chunks/index-1.1.13-hvpk64ts.mjs +0 -9
- package/dist/chunks/index-1.1.13-pfnaxhas.mjs +0 -9
- package/dist/chunks/index-1.1.13-pq81pd76.mjs +0 -2
- package/dist/chunks/index-1.1.13-q7xgkez4.mjs +0 -1
- package/dist/chunks/index-1.1.13-qed5hqgm.mjs +0 -1
- package/dist/chunks/index-1.1.13-qncvk76v.mjs +0 -1
- package/dist/chunks/index-1.1.13-qzm5brgp.mjs +0 -2
- package/dist/chunks/index-1.1.13-sqz3new4.mjs +0 -1
- package/dist/chunks/index-1.1.13-swwn9vsr.mjs +0 -1
- package/dist/chunks/index-1.1.13-tseyy72z.mjs +0 -1
- package/dist/chunks/index-1.1.13-v219xtkm.mjs +0 -1
- package/dist/chunks/index-1.1.13-vbws03kk.mjs +0 -30
- package/dist/chunks/index-1.1.13-vpewasbk.mjs +0 -1
- package/dist/chunks/index-1.1.13-yncdgpnc.mjs +0 -5
- package/dist/chunks/index-1.1.13-zs9h2fe1.mjs +0 -1
- package/dist/chunks/init-1.1.13-6m1d58s6.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.13-awvfmbnw.mjs +0 -1
- package/dist/chunks/ink-1.1.13-vsh153b4.mjs +0 -1
- package/dist/chunks/insights-1.1.13-q1te7p8c.mjs +0 -870
- package/dist/chunks/install-1.1.13-4m9h1gcp.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.13-6psvvf35.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.13-rav6afh8.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.13-8hhppwk0.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.13-18fm94xz.mjs +0 -1
- package/dist/chunks/keybindings-1.1.13-3k2cx6e8.mjs +0 -2
- package/dist/chunks/knowledge-1.1.13-v9293wfr.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.13-1hy01yw3.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.13-gkw0j99z.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.13-mh4yata3.mjs +0 -1
- package/dist/chunks/log-1.1.13-j05vnw45.mjs +0 -1
- package/dist/chunks/main-1.1.13-9eb7dv86.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.13-9ded70wd.mjs +0 -1
- package/dist/chunks/mcp-1.1.13-kp94f55t.mjs +0 -1
- package/dist/chunks/mcp-1.1.13-vyp2stqn.mjs +0 -4
- package/dist/chunks/mcp-1.1.13-xwk9expt.mjs +0 -17
- package/dist/chunks/mcpb-1.1.13-e4x7a1cq.mjs +0 -1
- package/dist/chunks/memory-1.1.13-xq6wwcec.mjs +0 -72
- package/dist/chunks/model-1.1.13-e9231b6a.mjs +0 -2
- package/dist/chunks/model-1.1.13-qkp6et1j.mjs +0 -1
- package/dist/chunks/node-1.1.13-eg9nzfxw.mjs +0 -12
- package/dist/chunks/oauth-1.1.13-65c8za8p.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.13-9ym9m1mj.mjs +0 -14
- package/dist/chunks/output-style-1.1.13-3ew33fvw.mjs +0 -1
- package/dist/chunks/package-L37ZVTF4-1.1.13-53j92t2g.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.13-1jbm6fkk.mjs +0 -1
- package/dist/chunks/parser-1.1.13-5g8tytma.mjs +0 -1
- package/dist/chunks/passes-1.1.13-5xeg8jj4.mjs +0 -1
- package/dist/chunks/permissions-1.1.13-rtwebb2e.mjs +0 -3
- package/dist/chunks/permissions-1.1.13-tzfqtc98.mjs +0 -1
- package/dist/chunks/plan-1.1.13-fh6rsd03.mjs +0 -1
- package/dist/chunks/plist-1.1.13-4dh5ng03.mjs +0 -1
- package/dist/chunks/plugin-1.1.13-s7ah8dsz.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.13-yv5cavjc.mjs +0 -1
- package/dist/chunks/plugins-1.1.13-nbh7kt80.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.13-364dz1r6.mjs +0 -2
- package/dist/chunks/print-1.1.13-cba5ekrx.mjs +0 -57
- package/dist/chunks/process-1.1.13-cavp5bw3.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.13-fxe0rhkm.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.13-r4eqk2r6.mjs +0 -9
- package/dist/chunks/prompt-1.1.13-31mpaj7k.mjs +0 -1
- package/dist/chunks/prompt-1.1.13-ncxsva6c.mjs +0 -1
- package/dist/chunks/prompts-1.1.13-dhrj0hdm.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.13-gvd8r63q.mjs +0 -13
- package/dist/chunks/provider-1.1.13-aec8n85t.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.13-zy5qqb30.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.13-cxfdm6ma.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.13-v7dcfp2w.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.13-w8vyweq5.mjs +0 -26
- package/dist/chunks/registry-1.1.13-0gr1a931.mjs +0 -1
- package/dist/chunks/release-notes-1.1.13-e00b70ja.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.13-sqy72754.mjs +0 -2
- package/dist/chunks/remote-env-1.1.13-xx2p7c0r.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.13-8aq4kysc.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.13-pnkdpev8.mjs +0 -1
- package/dist/chunks/rename-1.1.13-7mj7635m.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.13-1jjw29zv.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.13-r9abzwa5.mjs +0 -1
- package/dist/chunks/resume-1.1.13-j22aqaqb.mjs +0 -2
- package/dist/chunks/rewind-1.1.13-f1jde571.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.13-m3dg8wsz.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.13-g7t752v0.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.13-8dyb4jrf.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.13-ns6smzfv.mjs +0 -1
- package/dist/chunks/session-1.1.13-je6e2q22.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.13-75db2930.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.13-8251mhbe.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.13-xg7nehyd.mjs +0 -1
- package/dist/chunks/settings-1.1.13-tbc6gf4g.mjs +0 -1
- package/dist/chunks/setup-1.1.13-pk56d4kg.mjs +0 -5
- package/dist/chunks/sinks-1.1.13-vgc4py0g.mjs +0 -1
- package/dist/chunks/skills-1.1.13-k0dra3w7.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.13-fvpsbvqy.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.13-v5fdv702.mjs +0 -1
- package/dist/chunks/state-1.1.13-m97vrspe.mjs +0 -1
- package/dist/chunks/stats-1.1.13-x2ranep4.mjs +0 -6
- package/dist/chunks/status-1.1.13-xv9dh6gx.mjs +0 -1
- package/dist/chunks/stickers-1.1.13-am6n03pg.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.13-w3gcpn8h.mjs +0 -1
- package/dist/chunks/tasks-1.1.13-y9rjkzvh.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.13-paydek0r.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.13-w7zznyew.mjs +0 -1
- package/dist/chunks/teleport-1.1.13-fm868anx.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.13-nfx648p3.mjs +0 -1
- package/dist/chunks/theme-1.1.13-2a11bn8e.mjs +0 -1
- package/dist/chunks/thinkback-1.1.13-8a8pxp4f.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.13-0v3gmmaa.mjs +0 -1
- package/dist/chunks/toolPool-1.1.13-6pma3gae.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.13-gmb9gs2k.mjs +0 -1
- package/dist/chunks/tools-1.1.13-pdnr83pg.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.13-82cy5yze.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.13-bqqaen2x.mjs +0 -69
- package/dist/chunks/types-1.1.13-2f1xtenh.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.13-89cvmahe.mjs +0 -4
- package/dist/chunks/update-1.1.13-0hd3pst5.mjs +0 -72
- package/dist/chunks/upgrade-1.1.13-3yjr0p81.mjs +0 -1
- package/dist/chunks/upload-1.1.13-kxah5qjz.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.13-1jkww0dp.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.13-xxqesd6p.mjs +0 -1
- package/dist/chunks/usage-1.1.13-mwqdp27m.mjs +0 -1
- package/dist/chunks/util-1.1.13-vzt92dj7.mjs +0 -1
- package/dist/chunks/utils-1.1.13-dw4qnd8d.mjs +0 -1
- package/dist/chunks/vim-1.1.13-1d635y0m.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.13-dd5a4gny.mjs +0 -13
- package/dist/chunks/watcher-1.1.13-s8bc1gyy.mjs +0 -1
- package/dist/chunks/wiki-1.1.13-0j3t4xgh.mjs +0 -132
- package/dist/chunks/workflows-1.1.13-4jfegd8x.mjs +0 -1
- package/dist/chunks/worktree-1.1.13-t2dn2nay.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.13-sc9g7vcd.mjs +0 -1
- package/dist/chunks/wrapper-1.1.13-4tbb5aym.mjs +0 -7
- /package/dist/chunks/{cli-1.1.13-v06xvs9s.mjs → cli-1.1.14-3cc8a830.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.13-xpwxcmvd.mjs → cli-1.1.14-7nz1bnsz.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.13-hb5bb8jk.mjs → cli-1.1.14-835c2y60.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.13-8812dqjq.mjs → cli-1.1.14-a39264wz.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.13-v32emtk0.mjs → cli-1.1.14-jw4b6h9t.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.13-e4hsds4b.mjs → cli-1.1.14-nhbccarx.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.13-jdcqc6bd.mjs → cli-1.1.14-r930b2z3.mjs} +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import{nb as yJ,ob as xz,pb as rz,qb as cz,rb as iz,sb as kJ}from"./cli-1.1.14-n9fg59se.mjs";import{ub as Tz}from"./cli-1.1.14-tm2g00jj.mjs";import{Cb as EJ,Db as TJ,Eb as xJ,Fb as MJ,Gb as wJ}from"./cli-1.1.14-j9zawab5.mjs";import{Ib as fJ}from"./cli-1.1.14-ryjw96z2.mjs";import{Ee as jJ,Fe as cJ}from"./cli-1.1.14-ky3mvy9k.mjs";import{We as LJ,Ye as oz,_e as RK}from"./cli-1.1.14-f04bv457.mjs";import{lf as mz,nf as UJ,rf as OJ}from"./cli-1.1.14-6fa8a7k1.mjs";import{AH as XJ,An as PK,BH as QJ,CH as WJ,Tl as DJ,Uj as CJ,Ul as vz,Vj as FK,Yl as NK,tH as JJ,uH as Cz,vH as KJ,wH as ZJ,yH as $J,zH as YJ,zn as AJ}from"./cli-1.1.14-8fx5qjh6.mjs";import"./cli-1.1.14-gv9rt2h8.mjs";import"./cli-1.1.14-hcaktmq1.mjs";import"./cli-1.1.14-vdsx0cw7.mjs";import"./cli-1.1.14-8p0w0geq.mjs";import"./cli-1.1.14-qfc8zb5d.mjs";import"./cli-1.1.14-gf6m8qz3.mjs";import"./cli-1.1.14-jgers44a.mjs";import"./cli-1.1.14-8wdw7x7k.mjs";import"./cli-1.1.14-pce9xpxh.mjs";import{ZV as RJ,dW as _K}from"./cli-1.1.14-a5v23mcj.mjs";import"./cli-1.1.14-6ae3m5qs.mjs";import"./cli-1.1.14-nqa3ttq6.mjs";import{tW as az,xW as CK}from"./cli-1.1.14-8yw87v1w.mjs";import"./cli-1.1.14-4w3fbvdq.mjs";import"./cli-1.1.14-9gvsxyt7.mjs";import"./cli-1.1.14-pfsqawey.mjs";import"./cli-1.1.14-53dfe61t.mjs";import"./cli-1.1.14-1dph8n41.mjs";import"./cli-1.1.14-rmjnqb9b.mjs";import"./cli-1.1.14-3a1bnf85.mjs";import"./cli-1.1.14-srbcxz1e.mjs";import"./cli-1.1.14-hdkyecme.mjs";import"./cli-1.1.14-9nw51dsq.mjs";import"./cli-1.1.14-73zh23ez.mjs";import"./cli-1.1.14-qm7sjy8p.mjs";import{k2 as pz,n2 as BK}from"./cli-1.1.14-3f4fg0jf.mjs";import"./cli-1.1.14-yfknrxme.mjs";import"./cli-1.1.14-ftjv2jrz.mjs";import"./cli-1.1.14-4hs7pyh0.mjs";import"./cli-1.1.14-bwc8pb1f.mjs";import"./cli-1.1.14-1d5gcev8.mjs";import"./cli-1.1.14-chn2z068.mjs";import"./cli-1.1.14-az6pbe66.mjs";import"./cli-1.1.14-pgkjn3yw.mjs";import"./cli-1.1.14-ykbz2fee.mjs";import"./cli-1.1.14-377p51gp.mjs";import"./cli-1.1.14-1zf42f1b.mjs";import"./cli-1.1.14-42r8tafr.mjs";import{q7 as i,r7 as OK}from"./cli-1.1.14-6ex3vykg.mjs";import"./cli-1.1.14-ehnnwt4w.mjs";import{S8 as V,T8 as gJ}from"./cli-1.1.14-msb0xfz3.mjs";import"./cli-1.1.14-b1sbm8w6.mjs";import"./cli-1.1.14-eh3y4akg.mjs";import"./cli-1.1.14-cran8hzr.mjs";import"./cli-1.1.14-n1hm0gd6.mjs";import{$aa as PJ,Bba as fz,Cba as ez,Dba as zJ,Eba as pJ,aba as HK,p_ as Wz,pga as Ez,r_ as GK,xga as qK}from"./cli-1.1.14-q1kc6b8n.mjs";import{Cga as sz,Dga as uJ,Fga as Rz,Mga as qz,Uga as jK}from"./cli-1.1.14-byr5dy4k.mjs";import"./cli-1.1.14-0e209hdd.mjs";import"./cli-1.1.14-947tpwm7.mjs";import{Hha as VK,zha as BJ}from"./cli-1.1.14-qe4ypfya.mjs";import"./cli-1.1.14-ec6d00xg.mjs";import"./cli-1.1.14-xcg5hzkp.mjs";import"./cli-1.1.14-ry5bys5g.mjs";import{rja as zz,sja as _J,uja as XK}from"./cli-1.1.14-f5bvc359.mjs";import{Zja as qJ,_ja as uz,cka as aJ,uka as q,xka as tz}from"./cli-1.1.14-db3mxak8.mjs";import"./cli-1.1.14-cakvdwn3.mjs";import{$ka as WK,Uka as g}from"./cli-1.1.14-fwakcyhj.mjs";import{fla as NJ,nla as QK}from"./cli-1.1.14-83ng5cjk.mjs";import"./cli-1.1.14-f9dpkjv9.mjs";import"./cli-1.1.14-znbm9h8t.mjs";import"./cli-1.1.14-vx8jq8gy.mjs";import"./cli-1.1.14-pa5nsjfc.mjs";import"./cli-1.1.14-j9qy5cj8.mjs";import"./cli-1.1.14-n351xrzx.mjs";import{Fsa as I}from"./cli-1.1.14-r930b2z3.mjs";PK();FK();_K();VK();XK();HK();tz();GK();QK();WK();jK();qK();OK();NK();import{randomUUID as Sz}from"crypto";import{hostname as bJ,tmpdir as DK}from"os";import{basename as AK,join as UK,resolve as lz}from"path";WJ();gJ();cJ();pJ();uJ();tz();WJ();var lJ={type:"utf8",errorCorrectionLevel:"L",small:!0};async function dJ(z){return(await jJ(z,lJ)).split(`
|
|
2
|
+
`).filter((K)=>K.length>0)}function VJ(z){let J=z.write??(($)=>process.stdout.write($)),K=z.verbose,Y=0,O="idle",Z="Ready",R="",B="",U="",F="",L="",A=null,_=[],M=!1,y=null,P=0,x=0,N=1,f=null,k="single-session",b=new Map,d=null,S=0;function Xz($){let G=process.stdout.columns||80,w=0;for(let Vz of $.split(`
|
|
3
|
+
`)){if(Vz.length===0){w++;continue}let _z=sz(Vz);w+=Math.max(1,Math.ceil(_z/G))}if($.endsWith(`
|
|
4
|
+
`))w--;return w}function m($){J($),Y+=Xz($)}function a(){if(Y<=0)return;q(`[bridge:ui] clearStatusLines count=${Y}`),J(`\x1B[${Y}A`),J("\x1B[J"),Y=0}function $z($){a(),J($)}function n($){dJ($).then((G)=>{_=G,p()}).catch((G)=>{q(`QR code generation failed: ${G}`,{level:"error"})})}function o(){a();let $=fz[S%fz.length],G="";if(R)G+=V.dim(" · ")+V.dim(R);if(B)G+=V.dim(" · ")+V.dim(B);m(`${V.yellow($)} ${V.yellow("Connecting")}${G}
|
|
5
|
+
`)}function jz(){t(),o(),d=setInterval(()=>{S++,o()},150)}function t(){if(d)clearInterval(d),d=null}function p(){if(O==="reconnecting"||O==="failed")return;a();let $=O==="idle";if(M)for(let Jz of _)m(`${V.dim(Jz)}
|
|
6
|
+
`);let G=ez,w=$?V.green:V.cyan,_z=($?V.green:V.cyan)(Z),Oz="";if(R)Oz+=V.dim(" · ")+V.dim(R);if(B&&k!=="worktree")Oz+=V.dim(" · ")+V.dim(B);if(m(`${w(G)} ${_z}${Oz}
|
|
7
|
+
`),N>1){let Jz=k==="worktree"?"New sessions will be created in an isolated worktree":"New sessions will be created in the current directory";m(` ${V.dim(`Capacity: ${x}/${N} · ${Jz}`)}
|
|
8
|
+
`);for(let[,Kz]of b){let r=Kz.title?Rz(Kz.title,35):V.dim("Attached"),Mz=QJ(r,Kz.url),Fz=Kz.activity,j=Fz&&Fz.type!=="result"&&Fz.type!=="error"?V.dim(` ${Rz(Fz.summary,40)}`):"";m(` ${Mz}${j}
|
|
9
|
+
`)}}if(N===1){let Jz=k==="single-session"?"Single session · exits when complete":k==="worktree"?`Capacity: ${x}/1 · New sessions will be created in an isolated worktree`:`Capacity: ${x}/1 · New sessions will be created in the current directory`;m(` ${V.dim(Jz)}
|
|
10
|
+
`)}if(N===1&&!$&&y&&Date.now()-P<JJ)m(` ${V.dim(Rz(y,60))}
|
|
11
|
+
`);let Qz=A??U;if(Qz){m(`
|
|
12
|
+
`);let Jz=$?$J(Qz):YJ(Qz),Kz=M?V.dim.italic("space to hide QR code"):V.dim.italic("space to show QR code"),r=f?V.dim.italic(" · w to toggle spawn mode"):"";m(`${V.dim(Jz)}
|
|
13
|
+
`),m(`${Kz}${r}
|
|
14
|
+
`)}}return{printBanner($,G){if(F=$.sessionIngressUrl,L=G,U=KJ(G,F),n(U),K)J(V.dim("Remote Control")+` v99.0.0
|
|
15
|
+
`);if(K){if($.spawnMode!=="single-session")J(V.dim("Spawn mode: ")+`${$.spawnMode}
|
|
16
|
+
`),J(V.dim("Max concurrent sessions: ")+`${$.maxSessions}
|
|
17
|
+
`);J(V.dim("Environment ID: ")+`${G}
|
|
18
|
+
`)}if($.sandbox)J(V.dim("Sandbox: ")+`${V.green("Enabled")}
|
|
19
|
+
`);J(`
|
|
20
|
+
`),jz()},logSessionStart($,G){if(K){let w=Rz(G,80);$z(V.dim(`[${Cz()}]`)+` Session started: ${V.white(`"${w}"`)} (${V.dim($)})
|
|
21
|
+
`)}},logSessionComplete($,G){$z(V.dim(`[${Cz()}]`)+` Session ${V.green("completed")} (${qz(G)}) ${V.dim($)}
|
|
22
|
+
`)},logSessionFailed($,G){$z(V.dim(`[${Cz()}]`)+` Session ${V.red("failed")}: ${G} ${V.dim($)}
|
|
23
|
+
`)},logStatus($){$z(V.dim(`[${Cz()}]`)+` ${$}
|
|
24
|
+
`)},logVerbose($){if(K)$z(V.dim(`[${Cz()}] ${$}`)+`
|
|
25
|
+
`)},logError($){$z(V.red(`[${Cz()}] Error: ${$}`)+`
|
|
26
|
+
`)},logReconnected($){$z(V.dim(`[${Cz()}]`)+` ${V.green("Reconnected")} after ${qz($)}
|
|
27
|
+
`)},setRepoInfo($,G){R=$,B=G},updateIdleStatus(){t(),O="idle",Z="Ready",y=null,P=0,A=null,n(U),p()},setAttached($){if(t(),O="attached",Z="Connected",y=null,P=0,N<=1)A=ZJ($,L,F),n(A);p()},updateReconnectingStatus($,G){if(t(),a(),O="reconnecting",M)for(let Vz of _)m(`${V.dim(Vz)}
|
|
28
|
+
`);let w=fz[S%fz.length];S++,m(`${V.yellow(w)} ${V.yellow("Reconnecting")} ${V.dim("·")} ${V.dim(`retrying in ${$}`)} ${V.dim("·")} ${V.dim(`disconnected ${G}`)}
|
|
29
|
+
`)},updateFailedStatus($){t(),a(),O="failed";let G="";if(R)G+=V.dim(" · ")+V.dim(R);if(B)G+=V.dim(" · ")+V.dim(B);if(m(`${V.red(zJ)} ${V.red("Remote Control Failed")}${G}
|
|
30
|
+
`),m(`${V.dim(XJ)}
|
|
31
|
+
`),$)m(`${V.red($)}
|
|
32
|
+
`)},updateSessionStatus($,G,w,Vz){if(w.type==="tool_start")y=w.summary,P=Date.now();p()},clearStatus(){t(),a()},toggleQr(){M=!M,p()},updateSessionCount($,G,w){if(x===$&&N===G&&k===w)return;x=$,N=G,k=w},setSpawnModeDisplay($){if(f===$)return;if(f=$,$)k=$},addSession($,G){b.set($,{url:G})},updateSessionActivity($,G){let w=b.get($);if(!w)return;w.activity=G},setSessionTitle($,G){let w=b.get($);if(!w)return;if(w.title=G,O==="reconnecting"||O==="failed")return;if(N===1)O="titled",Z=Rz(G,40);p()},removeSession($){b.delete($)},refreshDisplay(){if(O==="reconnecting"||O==="failed")return;p()}}}OJ();BK();aJ();OJ();import{spawn as oJ}from"child_process";import{createWriteStream as rJ}from"fs";import{tmpdir as iJ}from"os";import{dirname as nJ,join as GJ}from"path";import{createInterface as HJ}from"readline";var tJ=10,sJ=10,eJ=new Set(["PATH","HOME","USERPROFILE","HOMEPATH","HOMEDRIVE","USERNAME","USER","LOGNAME","TEMP","TMP","TMPDIR","SYSTEMROOT","SYSTEMDRIVE","COMSPEC","WINDIR","LANG","LC_ALL","LC_CTYPE","NODE_OPTIONS","NODE_PATH","NODE_ENV","CLAUDE_CODE_ENVIRONMENT_KIND","CLAUDE_CODE_FORCE_SANDBOX","CLAUDIN_BUBBLEWRAP","CLAUDE_CODE_ENTRYPOINT","CLAUDIN_COORDINATOR_MODE","CLAUDE_CODE_PERMISSIONS_VERSION","CLAUDE_CODE_PERMISSIONS_SETTING","TERM","COLORTERM","FORCE_COLOR","NO_COLOR"]);function zK(z,J){let K={};for(let Y of Object.keys(z))if(eJ.has(Y))K[Y]=z[Y];if(K.CLAUDE_CODE_OAUTH_TOKEN=void 0,K.CLAUDE_CODE_ENVIRONMENT_KIND="bridge",J.sandbox)K.CLAUDE_CODE_FORCE_SANDBOX="1";if(K.CLAUDE_CODE_SESSION_ACCESS_TOKEN=J.accessToken,K.CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2="1",J.useCcrV2)K.CLAUDE_CODE_USE_CCR_V2="1",K.CLAUDE_CODE_WORKER_EPOCH=String(J.workerEpoch);return K}function Iz(z){return z.replace(/[^a-zA-Z0-9_-]/g,"_")}var JK={Read:"Reading",Write:"Writing",Edit:"Editing",MultiEdit:"Editing",Bash:"Running",Glob:"Searching",Grep:"Searching",WebFetch:"Fetching",WebSearch:"Searching",Task:"Running task",FileReadTool:"Reading",FileWriteTool:"Writing",FileEditTool:"Editing",GlobTool:"Searching",GrepTool:"Searching",BashTool:"Running",NotebookEditTool:"Editing notebook",LSP:"LSP"};function KK(z,J){let K=JK[z]??z,Y=J.file_path??J.filePath??J.pattern??J.command?.slice(0,60)??J.url??J.query??"";if(Y)return`${K} ${Y}`;return K}function ZK(z,J,K){let Y;try{Y=uz(z)}catch{return[]}if(!Y||typeof Y!=="object")return[];let O=Y,Z=[],R=Date.now();switch(O.type){case"assistant":{let B=O.message;if(!B)break;let U=B.content;if(!Array.isArray(U))break;for(let F of U){if(!F||typeof F!=="object")continue;let L=F;if(L.type==="tool_use"){let A=L.name??"Tool",_=L.input??{},M=KK(A,_);Z.push({type:"tool_start",summary:M,timestamp:R}),K(`[bridge:activity] sessionId=${J} tool_use name=${A} ${YK(_)}`)}else if(L.type==="text"){let A=L.text??"";if(A.length>0)Z.push({type:"text",summary:A.slice(0,80),timestamp:R}),K(`[bridge:activity] sessionId=${J} text "${A.slice(0,100)}"`)}}break}case"result":{let B=O.subtype;if(B==="success")Z.push({type:"result",summary:"Session completed",timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=success`);else if(B){let F=O.errors?.[0]??`Error: ${B}`;Z.push({type:"error",summary:F,timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=${B} error="${F}"`)}else K(`[bridge:activity] sessionId=${J} result subtype=undefined`);break}default:break}return Z}function $K(z){if(z.parent_tool_use_id!=null||z.isSynthetic||z.isReplay)return;let K=z.message?.content,Y;if(typeof K==="string")Y=K;else if(Array.isArray(K)){for(let O of K)if(O&&typeof O==="object"&&O.type==="text"){Y=O.text;break}}return Y=Y?.trim(),Y?Y:void 0}function YK(z){let J=[];for(let[K,Y]of Object.entries(z)){if(typeof Y==="string")J.push(`${K}="${Y.slice(0,100)}"`);if(J.length>=3)break}return J.join(" ")}function gz(z){return{spawn(J,K){let Y=Iz(J.sessionId),O;if(z.debugFile){let N=z.debugFile.lastIndexOf(".");if(N>0)O=`${z.debugFile.slice(0,N)}-${Y}${z.debugFile.slice(N)}`;else O=`${z.debugFile}-${Y}`}else if(z.verbose)O=GJ(iJ(),"claude",`bridge-session-${Y}.log`);let Z=null,R;if(z.debugFile)R=GJ(nJ(z.debugFile),`bridge-transcript-${Y}.jsonl`),Z=rJ(R,{flags:"a"}),Z.on("error",(N)=>{z.onDebug(`[bridge:session] Transcript write error: ${N.message}`),Z=null}),z.onDebug(`[bridge:session] Transcript log: ${R}`);let B=[...z.scriptArgs,"--print","--sdk-url",J.sdkUrl,"--session-id",J.sessionId,"--input-format","stream-json","--output-format","stream-json","--replay-user-messages",...z.verbose?["--verbose"]:[],...O?["--debug-file",O]:[],...z.permissionMode?["--permission-mode",z.permissionMode]:[]],U=zK(z.env,{accessToken:J.accessToken,useCcrV2:J.useCcrV2??!1,workerEpoch:J.workerEpoch,sandbox:z.sandbox});if(z.onDebug(`[bridge:session] Spawning sessionId=${J.sessionId} sdkUrl=${J.sdkUrl} accessToken=${J.accessToken?"present":"MISSING"}`),z.onDebug(`[bridge:session] Child args: ${B.join(" ")}`),O)z.onDebug(`[bridge:session] Debug log: ${O}`);let F=oJ(z.execPath,B,{cwd:K,stdio:["pipe","pipe","pipe"],env:U,windowsHide:!0});z.onDebug(`[bridge:session] sessionId=${J.sessionId} pid=${F.pid}`);let L=[],A=null,_=[],M=!1,y=!1;if(F.stderr)HJ({input:F.stderr}).on("line",(f)=>{if(z.verbose)process.stderr.write(f+`
|
|
33
|
+
`);if(_.length>=sJ)_.shift();_.push(f)});if(F.stdout)HJ({input:F.stdout}).on("line",(f)=>{if(Z)Z.write(f+`
|
|
34
|
+
`);if(z.onDebug(`[bridge:ws] sessionId=${J.sessionId} <<< ${mz(f)}`),z.verbose)process.stderr.write(f+`
|
|
35
|
+
`);let k=ZK(f,J.sessionId,z.onDebug);for(let b of k){if(L.length>=tJ)L.shift();L.push(b),A=b,z.onActivity?.(J.sessionId,b)}{let b;try{b=uz(f)}catch{}if(b&&typeof b==="object"){let d=b;if(d.type==="control_request"){if(d.request?.subtype==="can_use_tool"&&z.onPermissionRequest)z.onPermissionRequest(J.sessionId,b,J.accessToken)}else if(d.type==="user"&&!y&&J.onFirstUserMessage){let S=$K(d);if(S)y=!0,J.onFirstUserMessage(S)}}}});let P=new Promise((N)=>{F.on("close",(f,k)=>{if(Z)Z.end(),Z=null;if(k==="SIGTERM"||k==="SIGINT")z.onDebug(`[bridge:session] sessionId=${J.sessionId} interrupted signal=${k} pid=${F.pid}`),N("interrupted");else if(f===0)z.onDebug(`[bridge:session] sessionId=${J.sessionId} completed exit_code=0 pid=${F.pid}`),N("completed");else z.onDebug(`[bridge:session] sessionId=${J.sessionId} failed exit_code=${f} pid=${F.pid}`),N("failed")}),F.on("error",(f)=>{z.onDebug(`[bridge:session] sessionId=${J.sessionId} spawn error: ${f.message}`),N("failed")})}),x={sessionId:J.sessionId,done:P,activities:L,accessToken:J.accessToken,lastStderr:_,get currentActivity(){return A},kill(){if(!F.killed)if(z.onDebug(`[bridge:session] Sending SIGTERM to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGTERM")},forceKill(){if(!M&&F.pid)if(M=!0,z.onDebug(`[bridge:session] Sending SIGKILL to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGKILL")},writeStdin(N){if(F.stdin&&!F.stdin.destroyed)z.onDebug(`[bridge:ws] sessionId=${J.sessionId} >>> ${mz(N)}`),F.stdin.write(N)},updateAccessToken(N){x.accessToken=N,x.writeStdin(qJ({type:"update_environment_variables",variables:{CLAUDE_CODE_SESSION_ACCESS_TOKEN:N}})+`
|
|
36
|
+
`),z.onDebug(`[bridge:session] Sent token refresh via stdin for sessionId=${J.sessionId}`)}};return x}}}CK();RK();var LK={connInitialMs:2000,connCapMs:120000,connGiveUpMs:600000,generalInitialMs:500,generalCapMs:30000,generalGiveUpMs:600000},yK=1000,IJ=32;async function vJ(){return BJ("tengu_ccr_bridge_multi_session")}function FJ(z){return z.connCapMs*2}function hJ(){if(PJ()||!process.argv[1])return[];return[process.argv[1]]}function EK(z,J,K){try{return z.spawn(J,K)}catch(Y){let O=g(Y);return Ez(Error(`Session spawn failed: ${O}`)),O}}async function SJ(z,J,K,Y,O,Z,R,B=LK,U,F){let L=new AbortController;if(R.aborted)L.abort();else R.addEventListener("abort",()=>L.abort(),{once:!0});let A=L.signal,_=new Map,M=new Map,y=new Map,P=new Map,x=new Map,N=new Map,f=new Set,k=new Map,b=new Set,d=new Set,S=kJ(A);async function Xz(){let Q=!1,j=!1,E=[];for(let[H]of _){let D=y.get(H),v=x.get(H);if(!D||!v)continue;try{await Y.heartbeatWork(J,D,v),Q=!0}catch(u){if(q(`[bridge:heartbeat] Failed for sessionId=${H} workId=${D}: ${g(u)}`),u instanceof xz)if(zz("",{status:u.status,error_type:u.status===401||u.status===403?"auth_failed":"fatal"}),u.status===401||u.status===403)E.push(H);else j=!0}}for(let H of E){Z.logVerbose(`Session ${H} token expired — re-queuing via bridge/reconnect`);try{await Y.reconnectSession(J,H),q(`[bridge:heartbeat] Re-queued sessionId=${H} via bridge/reconnect`)}catch(D){Z.logError(`Failed to refresh session ${H} token: ${g(D)}`),q(`[bridge:heartbeat] reconnectSession(${H}) failed: ${g(D)}`,{level:"error"})}}if(j)return"fatal";if(E.length>0)return"auth_failed";return Q?"ok":"failed"}let m=new Set,a=F?fJ({getAccessToken:F,onRefresh:(Q,j)=>{let E=_.get(Q);if(!E)return;if(m.has(Q))Z.logVerbose(`Refreshing session ${Q} token via bridge/reconnect`),Y.reconnectSession(J,Q).catch((H)=>{Z.logError(`Failed to refresh session ${Q} token: ${g(H)}`),q(`[bridge:token] reconnectSession(${Q}) failed: ${g(H)}`,{level:"error"})});else E.updateAccessToken(j)},label:"bridge"}):null,$z=Date.now(),n=new Set;function o(Q){n.add(Q),Q.finally(()=>n.delete(Q))}let jz=0,t=0,p=null,$=null,G=null,w=null,Vz=!1;if(q(`[bridge:work] Starting poll loop spawnMode=${z.spawnMode} maxSessions=${z.maxSessions} environmentId=${J}`),Wz("info","bridge_loop_started",{max_sessions:z.maxSessions,spawn_mode:z.spawnMode}),Z.printBanner(z,J),Z.updateSessionCount(0,z.maxSessions,z.spawnMode),U)Z.setAttached(U);function _z(){Z.updateSessionCount(_.size,z.maxSessions,z.spawnMode);for(let[u,X]of _){let T=X.currentActivity;if(T)Z.updateSessionActivity(P.get(u)??u,T)}if(_.size===0){Z.updateIdleStatus();return}let[Q,j]=[..._.entries()].pop(),E=M.get(Q);if(!E)return;let H=j.currentActivity;if(!H||H.type==="result"||H.type==="error"){if(z.maxSessions>1)Z.refreshDisplay();return}let D=qz(Date.now()-E),v=j.activities.filter((u)=>u.type==="tool_start").slice(-5).map((u)=>u.summary);Z.updateSessionStatus(Q,D,H,v)}function Oz(){Qz(),_z(),w=setInterval(_z,yK)}function Qz(){if(w)clearInterval(w),w=null}function Jz(Q,j,E){return(H)=>{let D=y.get(Q);_.delete(Q),M.delete(Q),y.delete(Q),x.delete(Q);let v=P.get(Q)??Q;P.delete(Q),Z.removeSession(v),d.delete(v),m.delete(Q);let u=N.get(Q);if(u)clearTimeout(u),N.delete(Q);a?.cancel(Q),S.wake();let X=b.delete(Q),T=X&&H==="interrupted"?"failed":H,c=Date.now()-j;q(`[bridge:session] sessionId=${Q} workId=${D??"unknown"} exited status=${T} duration=${qz(c)}`),zz("",{status:T,duration_ms:c}),Wz("info","bridge_session_done",{status:T,duration_ms:c}),Z.clearStatus(),Qz();let s=E.lastStderr.length>0?E.lastStderr.join(`
|
|
37
|
+
`):void 0,Yz;switch(T){case"completed":Z.logSessionComplete(Q,c);break;case"failed":if(!X&&!A.aborted)Yz=s??"Process exited with error",Z.logSessionFailed(Q,Yz),Ez(Error(`Bridge session failed: ${Yz}`));break;case"interrupted":Z.logVerbose(`Session ${Q} interrupted`);break}if(T!=="interrupted"&&D)o(kz(Y,J,D,Z,B.stopWorkBaseDelayMs)),f.add(D);let Zz=k.get(Q);if(Zz)k.delete(Q),o(vz(Zz.worktreePath,Zz.worktreeBranch,Zz.gitRoot,Zz.hookBased).catch((l)=>Z.logVerbose(`Failed to remove worktree ${Zz.worktreePath}: ${g(l)}`)));if(T!=="interrupted"&&!A.aborted)if(z.spawnMode!=="single-session")o(Y.archiveSession(v).catch((l)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(l)}`))),q(`[bridge:session] Session ${T}, returning to idle (multi-session mode)`);else{q(`[bridge:session] Session ${T}, aborting poll loop to tear down environment`),L.abort();return}if(!A.aborted)Oz()}}if(!U)Oz();while(!A.aborted){let Q=Tz();try{let j=await Y.pollForWork(J,K,A,Q.reclaim_older_than_ms);if(p!==null||$!==null){let X=Date.now()-(p??$??Date.now());Z.logReconnected(X),q(`[bridge:poll] Reconnected after ${qz(X)}`),zz("",{disconnected_ms:X})}if(jz=0,t=0,p=null,$=null,G=null,!j){if(_.size>=z.maxSessions){let T=Q.multisession_poll_interval_ms_at_capacity;if(Q.non_exclusive_heartbeat_interval_ms>0){zz("",{active_sessions:_.size,heartbeat_interval_ms:Q.non_exclusive_heartbeat_interval_ms});let c=T>0?Date.now()+T:null,s="ok",Yz=0;while(!A.aborted&&_.size>=z.maxSessions&&(c===null||Date.now()<c)){let l=Tz();if(l.non_exclusive_heartbeat_interval_ms<=0)break;let Nz=S.signal();if(s=await Xz(),s==="auth_failed"||s==="fatal"){Nz.cleanup();break}Yz++,await i(l.non_exclusive_heartbeat_interval_ms,Nz.signal),Nz.cleanup()}let Zz=s==="auth_failed"||s==="fatal"?s:A.aborted?"shutdown":_.size<z.maxSessions?"capacity_changed":c!==null&&Date.now()>=c?"poll_due":"config_disabled";if(zz("",{reason:Zz,heartbeat_cycles:Yz,active_sessions:_.size}),Zz==="poll_due")q(`[bridge:poll] Heartbeat poll_due after ${Yz} cycles — falling through to pollForWork`);if(s==="auth_failed"||s==="fatal"){let l=S.signal();await i(T>0?T:Q.non_exclusive_heartbeat_interval_ms,l.signal),l.cleanup()}}else if(T>0){let c=S.signal();await i(T,c.signal),c.cleanup()}}else{let T=_.size>0?Q.multisession_poll_interval_ms_partial_capacity:Q.multisession_poll_interval_ms_not_at_capacity;await i(T,A)}continue}let H=_.size>=z.maxSessions;if(f.has(j.id)){if(q(`[bridge:work] Skipping already-completed workId=${j.id}`),H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}else await i(1000,A);continue}let D;try{D=EJ(j.secret)}catch(X){let T=g(X);if(Z.logError(`Failed to decode work secret for workId=${j.id}: ${T}`),zz("",{}),f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs)),H){let c=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,c.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,c.signal);c.cleanup()}continue}let v=async()=>{q(`[bridge:work] Acknowledging workId=${j.id}`);try{await Y.acknowledgeWork(J,j.id,D.session_ingress_token)}catch(X){q(`[bridge:work] Acknowledge failed workId=${j.id}: ${g(X)}`)}},u=j.data.type;switch(j.data.type){case"healthcheck":await v(),q("[bridge:work] Healthcheck received"),Z.logVerbose("Healthcheck received");break;case"session":{let X=j.data.id;try{yJ(X,"session_id")}catch{await v(),Z.logError(`Invalid session_id received: ${X}`);break}let T=_.get(X);if(T){T.updateAccessToken(D.session_ingress_token),x.set(X,D.session_ingress_token),y.set(X,j.id),a?.schedule(X,D.session_ingress_token),q(`[bridge:work] Updated access token for existing sessionId=${X} workId=${j.id}`),await v();break}if(_.size>=z.maxSessions){q(`[bridge:work] At capacity (${_.size}/${z.maxSessions}), cannot spawn new session for workId=${j.id}`);break}await v();let c=Date.now(),s,Yz=!1,Zz;if(D.use_code_sessions===!0||NJ(process.env.CLAUDE_BRIDGE_USE_CCR_V2)){s=MJ(z.apiBaseUrl,X);for(let W=1;W<=2;W++)try{Zz=await wJ(s,D.session_ingress_token),Yz=!0,q(`[bridge:session] CCR v2: registered worker sessionId=${X} epoch=${Zz} attempt=${W}`);break}catch(C){let h=g(C);if(W<2){if(q(`[bridge:session] CCR v2: registerWorker attempt ${W} failed, retrying: ${h}`),await i(2000,A),A.aborted)break;continue}Z.logError(`CCR v2 worker registration failed for session ${X}: ${h}`),Ez(Error(`registerWorker failed: ${h}`)),f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs))}if(!Yz)break}else s=TJ(z.sessionIngressUrl,X);let{spawnMode:l,dir:Nz}=z,Uz=0;if(l==="worktree"&&(U===void 0||!xJ(X,U))){let W=Date.now();try{let C=await DJ(`bridge-${Iz(X)}`);Uz=Date.now()-W,k.set(X,{worktreePath:C.worktreePath,worktreeBranch:C.worktreeBranch,gitRoot:C.gitRoot,hookBased:C.hookBased}),Nz=C.worktreePath,q(`[bridge:session] Created worktree for sessionId=${X} at ${C.worktreePath}`)}catch(C){let h=g(C);Z.logError(`Failed to create worktree for session ${X}: ${h}`),Ez(Error(`Worktree creation failed: ${h}`)),f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs));break}}q(`[bridge:session] Spawning sessionId=${X} sdkUrl=${s}`);let e=pz(X),Lz=EK(O,{sessionId:X,sdkUrl:s,accessToken:D.session_ingress_token,useCcrV2:Yz,workerEpoch:Zz,onFirstUserMessage:(W)=>{if(d.has(e))return;d.add(e);let C=SK(W);Z.setSessionTitle(e,C),q(`[bridge:title] derived title for ${e}: ${C}`),import("./createSession-1.1.14-vct1c158.mjs").then(({updateBridgeSessionTitle:h})=>h(e,C,{baseUrl:z.apiBaseUrl})).catch((h)=>q(`[bridge:title] failed to update title for ${e}: ${h}`,{level:"error"}))}},Nz);if(typeof Lz==="string"){Z.logError(`Failed to spawn session ${X}: ${Lz}`);let W=k.get(X);if(W)k.delete(X),o(vz(W.worktreePath,W.worktreeBranch,W.gitRoot,W.hookBased).catch((C)=>Z.logVerbose(`Failed to remove worktree ${W.worktreePath}: ${g(C)}`)));f.add(j.id),o(kz(Y,J,j.id,Z,B.stopWorkBaseDelayMs));break}let Dz=Lz,Az=Date.now()-c;zz("",{active_sessions:_.size,spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),Wz("info","bridge_session_started",{spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),_.set(X,Dz),y.set(X,j.id),x.set(X,D.session_ingress_token),P.set(X,e);let wz=Date.now();M.set(X,wz),Z.logSessionStart(X,`Session ${X}`);let yz=Iz(X),Gz;if(z.debugFile){let W=z.debugFile.lastIndexOf(".");if(W>0)Gz=`${z.debugFile.slice(0,W)}-${yz}${z.debugFile.slice(W)}`;else Gz=`${z.debugFile}-${yz}`}else if(z.verbose)Gz=UK(DK(),"claude",`bridge-session-${yz}.log`);if(Gz)Z.logVerbose(`Debug log: ${Gz}`);Z.addSession(e,AJ(e,z.sessionIngressUrl)),Oz(),Z.setAttached(e),mK(e,z.apiBaseUrl).then((W)=>{if(W&&_.has(X))d.add(e),Z.setSessionTitle(e,W),q(`[bridge:title] server title for ${e}: ${W}`)}).catch((W)=>q(`[bridge:title] failed to fetch title for ${e}: ${W}`,{level:"error"}));let Bz=z.sessionTimeoutMs??LJ;if(Bz>0){let W=setTimeout(wK,Bz,X,Bz,Z,b,Dz);N.set(X,W)}if(Yz)m.add(X);a?.schedule(X,D.session_ingress_token),Dz.done.then(Jz(X,wz,Dz));break}default:await v(),q(`[bridge:work] Unknown work type: ${u}, skipping`);break}if(H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}}catch(j){if(A.aborted)break;if(j instanceof xz){if(Vz=!0,cz(j.errorType))Z.logStatus(j.message);else if(iz(j))q(`[bridge:work] Suppressed 403 error: ${j.message}`);else Z.logError(j.message),Ez(j);zz("",{status:j.status,error_type:j.errorType}),Wz(cz(j.errorType)?"info":"error","bridge_fatal_error",{status:j.status,error_type:j.errorType});break}let E=UJ(j);if(xK(j)||MK(j)){let H=Date.now();if(G!==null&&H-G>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-G)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-G}),p=null,jz=0,$=null,t=0;if(G=H,!p)p=H;let D=H-p;if(D>=B.connGiveUpMs){Z.logError(`Server unreachable for ${Math.round(D/60000)} minutes, giving up.`),zz("",{error_type:"connection",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Vz=!0;break}$=null,t=0,jz=jz?Math.min(jz*2,B.connCapMs):B.connInitialMs;let v=dz(jz);if(Z.logVerbose(`Connection error, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${E}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}else{let H=Date.now();if(G!==null&&H-G>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-G)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-G}),p=null,jz=0,$=null,t=0;if(G=H,!$)$=H;let D=H-$;if(D>=B.generalGiveUpMs){Z.logError(`Persistent errors for ${Math.round(D/60000)} minutes, giving up.`),zz("",{error_type:"general",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Vz=!0;break}p=null,jz=0,t=t?Math.min(t*2,B.generalCapMs):B.generalInitialMs;let v=dz(t);if(Z.logVerbose(`Poll failed, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${E}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}}}Qz(),Z.clearStatus();let Kz=Date.now()-$z;zz("",{active_sessions:_.size,loop_duration_ms:Kz}),Wz("info","bridge_shutdown",{active_sessions:_.size,loop_duration_ms:Kz});let r=new Set(_.keys());if(U)r.add(U);let Mz=new Map(P);if(_.size>0){q(`[bridge:shutdown] Shutting down ${_.size} active session(s)`),Z.logStatus(`Shutting down ${_.size} active session(s)…`);let Q=new Map(y);for(let[E,H]of _.entries())q(`[bridge:shutdown] Sending SIGTERM to sessionId=${E}`),H.kill();let j=new AbortController;await Promise.race([Promise.allSettled([..._.values()].map((E)=>E.done)),i(B.shutdownGraceMs??30000,j.signal)]),j.abort();for(let[E,H]of _.entries())q(`[bridge:shutdown] Force-killing stuck sessionId=${E}`),H.forceKill();for(let E of N.values())clearTimeout(E);if(N.clear(),a?.cancelAll(),k.size>0){let E=[...k.values()];k.clear(),q(`[bridge:shutdown] Cleaning up ${E.length} worktree(s)`),await Promise.allSettled(E.map((H)=>vz(H.worktreePath,H.worktreeBranch,H.gitRoot,H.hookBased)))}await Promise.allSettled([...Q.entries()].map(([E,H])=>{return Y.stopWork(J,H,!0).catch((D)=>Z.logVerbose(`Failed to stop work ${H} for session ${E}: ${g(D)}`))}))}if(n.size>0)await Promise.allSettled([...n]);if(r.size>0)q(`[bridge:shutdown] Archiving ${r.size} session(s)`),await Promise.allSettled([...r].map((Q)=>Y.archiveSession(Mz.get(Q)??pz(Q)).catch((j)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(j)}`))));try{await Y.deregisterEnvironment(J),q("[bridge:shutdown] Environment deregistered, bridge offline"),Z.logVerbose("Environment deregistered.")}catch(Q){Z.logVerbose(`Failed to deregister environment: ${g(Q)}`)}let{clearBridgePointer:Fz}=await import("./bridgePointer-1.1.14-a7m65hvd.mjs");await Fz(z.dir),Z.logVerbose("Environment offline.")}var TK=new Set(["ECONNREFUSED","ECONNRESET","ETIMEDOUT","ENETUNREACH","EHOSTUNREACH"]);function xK(z){if(z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&TK.has(z.code))return!0;return!1}function MK(z){return!!z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&z.code==="ERR_BAD_RESPONSE"}function dz(z){return Math.max(0,z+z*0.25*(2*Math.random()-1))}function bz(z){return z>=1000?`${(z/1000).toFixed(1)}s`:`${Math.round(z)}ms`}async function kz(z,J,K,Y,O=1000){for(let R=1;R<=3;R++)try{await z.stopWork(J,K,!1),q(`[bridge:work] stopWork succeeded for workId=${K} on attempt ${R}/3`);return}catch(B){if(B instanceof xz){if(iz(B))q(`[bridge:work] Suppressed stopWork 403 for ${K}: ${B.message}`);else Y.logError(`Failed to stop work ${K}: ${B.message}`);Wz("error","bridge_stop_work_failed",{attempts:R,fatal:!0});return}let U=g(B);if(R<3){let F=dz(O*Math.pow(2,R-1));Y.logVerbose(`Failed to stop work ${K} (attempt ${R}/3), retrying in ${bz(F)}: ${U}`),await i(F)}else Y.logError(`Failed to stop work ${K} after 3 attempts: ${U}`),Wz("error","bridge_stop_work_failed",{attempts:3})}}function wK(z,J,K,Y,O){q(`[bridge:session] sessionId=${z} timed out after ${qz(J)}`),zz("",{timeout_ms:J}),K.logSessionFailed(z,`Session timed out after ${qz(J)}`),Y.add(z),O.kill()}var fK=["session","same-dir","worktree"];function kK(z){if(z==="session")return"single-session";if(z==="same-dir")return"same-dir";if(z==="worktree")return"worktree";return`--spawn requires one of: ${fK.join(", ")} (got: ${z??"<missing>"})`}function bK(z){let J=z===void 0?NaN:parseInt(z,10);if(isNaN(J)||J<1)return`--capacity requires a positive integer (got: ${z??"<missing>"})`;return J}function IK(z){let J=!1,K=!1,Y,O,Z,R,B=!1,U,F,L,A,_=!1;for(let y=0;y<z.length;y++){let P=z[y];if(P==="--help"||P==="-h")B=!0;else if(P==="--verbose"||P==="-v")J=!0;else if(P==="--sandbox")K=!0;else if(P==="--no-sandbox")K=!1;else if(P==="--debug-file"&&y+1<z.length)Y=lz(z[++y]);else if(P.startsWith("--debug-file="))Y=lz(P.slice(13));else if(P==="--session-timeout"&&y+1<z.length)O=parseInt(z[++y],10)*1000;else if(P.startsWith("--session-timeout="))O=parseInt(P.slice(18),10)*1000;else if(P==="--permission-mode"&&y+1<z.length)Z=z[++y];else if(P.startsWith("--permission-mode="))Z=P.slice(18);else if(P==="--name"&&y+1<z.length)R=z[++y];else if(P.startsWith("--name="))R=P.slice(7);else if(P==="--spawn"||P.startsWith("--spawn=")){if(U!==void 0)return M("--spawn may only be specified once");let x=P.startsWith("--spawn=")?P.slice(8):z[++y],N=kK(x);if(N==="single-session"||N==="same-dir"||N==="worktree")U=N;else return M(N)}else if(P==="--capacity"||P.startsWith("--capacity=")){if(F!==void 0)return M("--capacity may only be specified once");let x=P.startsWith("--capacity=")?P.slice(11):z[++y],N=bK(x);if(typeof N==="number")F=N;else return M(N)}else if(P==="--create-session-in-dir")L=!0;else if(P==="--no-create-session-in-dir")L=!1;else return M(`Unknown argument: ${P}
|
|
38
|
+
Run 'claudin remote-control --help' for usage.`)}if(U==="single-session"&&F!==void 0)return M("--capacity cannot be used with --spawn=session (single-session mode has fixed capacity 1).");if((A||_)&&(U!==void 0||F!==void 0||L!==void 0))return M("--session-id and --continue cannot be used with --spawn, --capacity, or --create-session-in-dir.");if(A&&_)return M("--session-id and --continue cannot be used together.");return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:_,help:B};function M(y){return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:_,help:B,error:y}}}async function vK(){let{EXTERNAL_PERMISSION_MODES:z}=await import("./permissions-1.1.14-vhhyyr5b.mjs"),J=z.join(", "),K=await vJ(),Y=K?` --spawn <mode> Spawn mode: same-dir, worktree, session
|
|
39
|
+
(default: same-dir)
|
|
40
|
+
--capacity <N> Max concurrent sessions in worktree or
|
|
41
|
+
same-dir mode (default: ${IJ})
|
|
42
|
+
--[no-]create-session-in-dir Pre-create a session in the current
|
|
43
|
+
directory; in worktree mode this session
|
|
44
|
+
stays in cwd while on-demand sessions get
|
|
45
|
+
isolated worktrees (default: on)
|
|
46
|
+
`:"",R=`
|
|
47
|
+
Remote Control - Connect your local environment to claude.ai/code
|
|
48
|
+
|
|
49
|
+
USAGE
|
|
50
|
+
claudin remote-control [options]
|
|
51
|
+
OPTIONS
|
|
52
|
+
--name <name> Name for the session (shown in claude.ai/code)
|
|
53
|
+
--permission-mode <mode> Permission mode for spawned sessions
|
|
54
|
+
(${J})
|
|
55
|
+
--debug-file <path> Write debug logs to file
|
|
56
|
+
-v, --verbose Enable verbose output
|
|
57
|
+
-h, --help Show this help
|
|
58
|
+
${Y}
|
|
59
|
+
DESCRIPTION
|
|
60
|
+
Remote Control allows you to control sessions on your local device from
|
|
61
|
+
claude.ai/code (https://claude.ai/code). Run this command in the
|
|
62
|
+
directory you want to work in, then connect from the Claude app or web.
|
|
63
|
+
${K?`
|
|
64
|
+
Remote Control runs as a persistent server that accepts multiple concurrent
|
|
65
|
+
sessions in the current directory. One session is pre-created on start so
|
|
66
|
+
you have somewhere to type immediately. Use --spawn=worktree to isolate
|
|
67
|
+
each on-demand session in its own git worktree, or --spawn=session for
|
|
68
|
+
the classic single-session mode (exits when that session ends). Press 'w'
|
|
69
|
+
during runtime to toggle between same-dir and worktree.
|
|
70
|
+
`:""}
|
|
71
|
+
NOTES
|
|
72
|
+
- You must be logged in with a Claude account that has a subscription
|
|
73
|
+
- Run \`claudin\` first in the directory to accept the workspace trust dialog
|
|
74
|
+
${K?` - Worktree mode requires a git repository or WorktreeCreate/WorktreeRemove hooks
|
|
75
|
+
`:""}`;console.log(R)}var hK=80;function SK(z){let J=z.replace(/\s+/g," ").trim();return Rz(J,hK)}async function mK(z,J){let{getBridgeSession:K}=await import("./createSession-1.1.14-vct1c158.mjs");return(await K(z,{baseUrl:J}))?.title||void 0}async function fZ(z){let J=IK(z);if(J.help){await vK();return}if(J.error)console.error(`Error: ${J.error}`),process.exit(1);let{verbose:K,sandbox:Y,debugFile:O,sessionTimeoutMs:Z,permissionMode:R,name:B,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:_}=J,M=A,y,P=U!==void 0||F!==void 0||L!==void 0;if(R!==void 0){let{PERMISSION_MODES:W}=await import("./permissions-1.1.14-vhhyyr5b.mjs"),C=W;if(!C.includes(R))console.error(`Error: Invalid permission mode '${R}'. Valid modes: ${C.join(", ")}`),process.exit(1)}let x=lz("."),{enableConfigs:N,checkHasTrustDialogAccepted:f}=await import("./config-1.1.14-9ydtd85s.mjs");N();let{initSinks:k}=await import("./sinks-1.1.14-4abzjj1m.mjs");k();let b=await vJ();if(P&&!b)await _J("",{used_spawn:U!==void 0,used_capacity:F!==void 0,used_create_session_in_dir:L!==void 0}),await Promise.race([Promise.all([RJ(),CJ()]),i(500,void 0,{unref:!0})]).catch(()=>{}),console.error("Error: Multi-session Remote Control is not enabled for your account yet."),process.exit(1);let{setOriginalCwd:d,setCwdState:S}=await import("./state-1.1.14-thy0hnc6.mjs");if(d(x),S(x),!f())console.error(`Error: Workspace not trusted. Please run \`claude\` in ${x} first to review and accept the workspace trust dialog.`),process.exit(1);let{clearOAuthTokenCache:Xz,checkAndRefreshOAuthTokenIfNeeded:m}=await import("./auth-1.1.14-f6095j1n.mjs"),{getBridgeAccessToken:a,getBridgeBaseUrl:$z}=await import("./bridgeConfig-1.1.14-c73sbxxv.mjs");if(!a())console.error(oz),process.exit(1);let{getGlobalConfig:o,saveGlobalConfig:jz,getCurrentProjectConfig:t,saveCurrentProjectConfig:p}=await import("./config-1.1.14-9ydtd85s.mjs");if(!o().remoteDialogSeen){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
|
|
76
|
+
Remote Control lets you access this CLI session from the web (claude.ai/code)
|
|
77
|
+
or the Claude app, so you can pick up where you left off on any device.
|
|
78
|
+
|
|
79
|
+
You can disconnect remote access anytime by running /remote-control again.
|
|
80
|
+
`);let h=await new Promise((Hz)=>{C.question("Enable Remote Control? (y/n) ",Hz)});if(C.close(),jz((Hz)=>{if(Hz.remoteDialogSeen)return Hz;return{...Hz,remoteDialogSeen:!0}}),h.toLowerCase()!=="y"&&h.toLowerCase()!=="yes")process.exit(0)}let $=$z();if($.startsWith("http://")&&!$.includes("localhost")&&!$.includes("127.0.0.1"))console.error("Error: Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed."),process.exit(1);let G=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||$,{getBranch:w,getRemoteUrl:Vz,findGitRoot:_z}=await import("./git-1.1.14-c6rsmdv4.mjs"),{hasWorktreeCreateHook:Oz}=await import("./hooks-1.1.14-2ryqg5gs.mjs"),Qz=Oz()||_z(x)!==null,Jz=b?t().remoteControlSpawnMode:void 0;if(Jz==="worktree"&&!Qz)console.error("Warning: Saved spawn mode is worktree but this directory is not a git repository. Falling back to same-dir."),Jz=void 0,p((W)=>{if(W.remoteControlSpawnMode===void 0)return W;return{...W,remoteControlSpawnMode:void 0}});if(b&&!Jz&&Qz&&U===void 0&&!M&&process.stdin.isTTY){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
|
|
81
|
+
Claude Remote Control is launching in spawn mode which lets you create new sessions in this project from Claude Code on Web or your Mobile app. Learn more here: https://code.claude.com/docs/en/remote-control
|
|
82
|
+
|
|
83
|
+
Spawn mode for this project:
|
|
84
|
+
`+` [1] same-dir — sessions share the current directory (default)
|
|
85
|
+
`+` [2] worktree — each session gets an isolated git worktree
|
|
86
|
+
|
|
87
|
+
`+`This can be changed later or explicitly set with --spawn=same-dir or --spawn=worktree.
|
|
88
|
+
`);let h=await new Promise((Pz)=>{C.question("Choose [1/2] (default: 1): ",Pz)});C.close();let Hz=h.trim()==="2"?"worktree":"same-dir";Jz=Hz,zz("",{spawn_mode:Hz}),p((Pz)=>{if(Pz.remoteControlSpawnMode===Hz)return Pz;return{...Pz,remoteControlSpawnMode:Hz}})}let Kz,r;if(M)r="single-session",Kz="resume";else if(U!==void 0)r=U,Kz="flag";else if(Jz!==void 0)r=Jz,Kz="saved";else r=b?"same-dir":"single-session",Kz="gate_default";let Mz=r==="single-session"?1:F??IJ,Fz=L??!0;if(!M){let{clearBridgePointer:W}=await import("./bridgePointer-1.1.14-a7m65hvd.mjs");await W(x)}if(r==="worktree"&&!Qz)console.error("Error: Worktree mode requires a git repository or WorktreeCreate hooks configured. Use --spawn=session for single-session mode."),process.exit(1);let Q=await w(),j=await Vz(),E=bJ(),H=Sz(),{handleOAuth401Error:D}=await import("./auth-1.1.14-f6095j1n.mjs"),v=rz({baseUrl:$,getAccessToken:a,runnerVersion:"99.0.0",onDebug:q,onAuth401:D,getTrustedDeviceToken:az}),u,X={dir:x,machineName:E,branch:Q,gitRepoUrl:j,maxSessions:Mz,spawnMode:r,verbose:K,sandbox:Y,bridgeId:H,workerType:"claude_code",environmentId:Sz(),reuseEnvironmentId:u,apiBaseUrl:$,sessionIngressUrl:G,debugFile:O,sessionTimeoutMs:Z};q(`[bridge:init] bridgeId=${H}${u?` reuseEnvironmentId=${u}`:""} dir=${x} branch=${Q} gitRepoUrl=${j} machine=${E}`),q(`[bridge:init] apiBaseUrl=${$} sessionIngressUrl=${G}`),q(`[bridge:init] sandbox=${Y}${O?` debugFile=${O}`:""}`);let T,c;try{let W=await v.registerBridgeEnvironment(X);T=W.environment_id,c=W.environment_secret}catch(W){zz("",{status:W instanceof xz?W.status:void 0}),console.error(W instanceof xz&&W.status===404?"Remote Control environments are not available for your account.":`Error: ${g(W)}`),process.exit(1)}let s;q(`[bridge:init] Registered, server environmentId=${T}`);let Yz=Tz();zz("",{max_sessions:X.maxSessions,has_debug_file:!!X.debugFile,sandbox:X.sandbox,verbose:X.verbose,heartbeat_interval_ms:Yz.non_exclusive_heartbeat_interval_ms,spawn_mode:X.spawnMode,spawn_mode_source:Kz,multi_session_gate:b,pre_create_session:Fz,worktree_available:Qz}),Wz("info","bridge_started",{max_sessions:X.maxSessions,sandbox:X.sandbox,spawn_mode:X.spawnMode});let Zz=gz({execPath:process.execPath,scriptArgs:hJ(),env:process.env,verbose:K,sandbox:Y,debugFile:O,permissionMode:R,onDebug:q,onActivity:(W,C)=>{q(`[bridge:activity] sessionId=${W} ${C.type} ${C.summary}`)},onPermissionRequest:(W,C,h)=>{q(`[bridge:perm] sessionId=${W} tool=${C.request.tool_name} request_id=${C.request_id} (not auto-approving)`)}}),l=VJ({verbose:K}),{parseGitHubRepository:Nz}=await import("./detectRepository-1.1.14-z6hxtqhd.mjs"),Uz=j?Nz(j):null,e=Uz?Uz.split("/").pop():AK(x);l.setRepoInfo(e,Q);let Lz=r!=="single-session"&&Qz;if(Lz)l.setSpawnModeDisplay(r);let Dz=(W)=>{if(W[0]===3||W[0]===4){process.emit("SIGINT");return}if(W[0]===32){l.toggleQr();return}if(W[0]===119){if(!Lz)return;let C=X.spawnMode==="same-dir"?"worktree":"same-dir";X.spawnMode=C,zz("",{spawn_mode:C}),l.logStatus(C==="worktree"?"Spawn mode: worktree (new sessions get isolated git worktrees)":"Spawn mode: same-dir (new sessions share the current directory)"),l.setSpawnModeDisplay(C),l.refreshDisplay(),p((h)=>{if(h.remoteControlSpawnMode===C)return h;return{...h,remoteControlSpawnMode:C}});return}};if(process.stdin.isTTY)process.stdin.setRawMode(!0),process.stdin.resume(),process.stdin.on("data",Dz);let Az=new AbortController,wz=()=>{q("[bridge:shutdown] SIGINT received, shutting down"),Az.abort()},yz=()=>{q("[bridge:shutdown] SIGTERM received, shutting down"),Az.abort()};process.on("SIGINT",wz),process.on("SIGTERM",yz);let Gz=null;if(Fz){let{createBridgeSession:W}=await import("./createSession-1.1.14-vct1c158.mjs");try{if(Gz=await W({environmentId:T,title:B,events:[],gitRepoUrl:j,branch:Q,signal:Az.signal,baseUrl:$,getAccessToken:a,permissionMode:R}),Gz)q(`[bridge:init] Created initial session ${Gz}`)}catch(C){q(`[bridge:init] Session creation failed (non-fatal): ${g(C)}`)}}let Bz=null;if(Gz&&r==="single-session"){let{writeBridgePointer:W}=await import("./bridgePointer-1.1.14-a7m65hvd.mjs"),C={sessionId:Gz,environmentId:T,source:"standalone"};await W(X.dir,C),Bz=setInterval(W,3600000,X.dir,C),Bz.unref?.()}try{await SJ(X,T,c,v,Zz,l,Az.signal,void 0,Gz??void 0,async()=>{return Xz(),await m(),a()})}finally{if(Bz!==null)clearInterval(Bz);if(process.off("SIGINT",wz),process.off("SIGTERM",yz),process.stdin.off("data",Dz),process.stdin.isTTY)process.stdin.setRawMode(!1);process.stdin.pause()}process.exit(0)}class hz extends Error{constructor(z){super(z);this.name="BridgeHeadlessPermanentError"}}async function kZ(z,J){let{dir:K,log:Y}=z;process.chdir(K);let{setOriginalCwd:O,setCwdState:Z}=await import("./state-1.1.14-thy0hnc6.mjs");O(K),Z(K);let{enableConfigs:R,checkHasTrustDialogAccepted:B}=await import("./config-1.1.14-9ydtd85s.mjs");R();let{initSinks:U}=await import("./sinks-1.1.14-4abzjj1m.mjs");if(U(),!B())throw new hz(`Workspace not trusted: ${K}. Run \`claude\` in that directory first to accept the trust dialog.`);if(!z.getAccessToken())throw Error(oz);let{getBridgeBaseUrl:F}=await import("./bridgeConfig-1.1.14-c73sbxxv.mjs"),L=F();if(L.startsWith("http://")&&!L.includes("localhost")&&!L.includes("127.0.0.1"))throw new hz("Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed.");let A=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||L,{getBranch:_,getRemoteUrl:M,findGitRoot:y}=await import("./git-1.1.14-c6rsmdv4.mjs"),{hasWorktreeCreateHook:P}=await import("./hooks-1.1.14-2ryqg5gs.mjs");if(z.spawnMode==="worktree"){if(!(P()||y(K)!==null))throw new hz(`Worktree mode requires a git repository or WorktreeCreate hooks. Directory ${K} has neither.`)}let x=await _(),N=await M(),f=bJ(),k=Sz(),b={dir:K,machineName:f,branch:x,gitRepoUrl:N,maxSessions:z.capacity,spawnMode:z.spawnMode,verbose:!1,sandbox:z.sandbox,bridgeId:k,workerType:"claude_code",environmentId:Sz(),apiBaseUrl:L,sessionIngressUrl:A,sessionTimeoutMs:z.sessionTimeoutMs},d=rz({baseUrl:L,getAccessToken:z.getAccessToken,runnerVersion:"99.0.0",onDebug:Y,onAuth401:z.onAuth401,getTrustedDeviceToken:az}),S,Xz;try{let n=await d.registerBridgeEnvironment(b);S=n.environment_id,Xz=n.environment_secret}catch(n){throw Error(`Bridge registration failed: ${g(n)}`)}let m=gz({execPath:process.execPath,scriptArgs:hJ(),env:process.env,verbose:!1,sandbox:z.sandbox,permissionMode:z.permissionMode,onDebug:Y}),a=uK(Y);a.printBanner(b,S);let $z;if(z.createSessionOnStart){let{createBridgeSession:n}=await import("./createSession-1.1.14-vct1c158.mjs");try{let o=await n({environmentId:S,title:z.name,events:[],gitRepoUrl:N,branch:x,signal:J,baseUrl:L,getAccessToken:z.getAccessToken,permissionMode:z.permissionMode});if(o)$z=o,Y(`created initial session ${o}`)}catch(o){Y(`session pre-creation failed (non-fatal): ${g(o)}`)}}await SJ(b,S,Xz,d,m,a,J,void 0,$z,async()=>z.getAccessToken())}function uK(z){let J=()=>{};return{printBanner:(K,Y)=>z(`registered environmentId=${Y} dir=${K.dir} spawnMode=${K.spawnMode} capacity=${K.maxSessions}`),logSessionStart:(K,Y)=>z(`session start ${K}`),logSessionComplete:(K,Y)=>z(`session complete ${K} (${Y}ms)`),logSessionFailed:(K,Y)=>z(`session failed ${K}: ${Y}`),logStatus:z,logVerbose:z,logError:(K)=>z(`error: ${K}`),logReconnected:(K)=>z(`reconnected after ${K}ms`),addSession:(K,Y)=>z(`session attached ${K}`),removeSession:(K)=>z(`session detached ${K}`),updateIdleStatus:J,updateReconnectingStatus:J,updateSessionStatus:J,updateSessionActivity:J,updateSessionCount:J,updateFailedStatus:J,setSpawnModeDisplay:J,setRepoInfo:J,setAttached:J,setSessionTitle:J,clearStatus:J,toggleQr:J,refreshDisplay:J}}export{SJ as runBridgeLoop,kZ as runBridgeHeadless,IK as parseArgs,MK as isServerError,xK as isConnectionError,fZ as bridgeMain,hz as BridgeHeadlessPermanentError};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{eW as S,fW as c}from"./cli-1.1.14-6ae3m5qs.mjs";import{Aia as _,Rha as G,Sha as A,Vha as M,wia as Y,yia as O,zia as N}from"./cli-1.1.14-ec6d00xg.mjs";import{Zja as K,_ja as W,cka as R,uka as C,xka as k}from"./cli-1.1.14-db3mxak8.mjs";import"./cli-1.1.14-cakvdwn3.mjs";import{$ka as j,Wka as y}from"./cli-1.1.14-fwakcyhj.mjs";import"./cli-1.1.14-83ng5cjk.mjs";import"./cli-1.1.14-f9dpkjv9.mjs";import"./cli-1.1.14-znbm9h8t.mjs";import"./cli-1.1.14-vx8jq8gy.mjs";import"./cli-1.1.14-r930b2z3.mjs";O();k();j();c();_();M();R();import{mkdir as z,readFile as E,stat as T,unlink as m,writeFile as B}from"fs/promises";import{dirname as b,join as f}from"path";var I=50,u=14400000,D=N(()=>Y.object({sessionId:Y.string(),environmentId:Y.string(),source:Y.enum(["standalone","repl"])}));function J(q){return f(A(),G(q),"bridge-pointer.json")}async function g(q,x){let v=J(q);try{await z(b(v),{recursive:!0}),await B(v,K(x),"utf8"),C(`[bridge:pointer] wrote ${v}`)}catch(V){C(`[bridge:pointer] write failed: ${V}`,{level:"warn"})}}async function U(q){let x=J(q),v,V;try{V=(await T(x)).mtimeMs,v=await E(x,"utf8")}catch{return null}let Z=D().safeParse(F(v));if(!Z.success)return C(`[bridge:pointer] invalid schema, clearing: ${x}`),await X(q),null;let $=Math.max(0,Date.now()-V);if($>u)return C(`[bridge:pointer] stale (>4h mtime), clearing: ${x}`),await X(q),null;return{...Z.data,ageMs:$}}async function s(q){let x=await U(q);if(x)return{pointer:x,dir:q};let v=await S(q);if(v.length<=1)return null;if(v.length>I)return C(`[bridge:pointer] ${v.length} worktrees exceeds fanout cap ${I}, skipping`),null;let V=G(q),Z=v.filter((H)=>G(H)!==V),$=await Promise.all(Z.map(async(H)=>{let L=await U(H);return L?{pointer:L,dir:H}:null})),Q=null;for(let H of $)if(H&&(!Q||H.pointer.ageMs<Q.pointer.ageMs))Q=H;if(Q)C(`[bridge:pointer] fanout found pointer in worktree ${Q.dir} (ageMs=${Q.pointer.ageMs})`);return Q}async function X(q){let x=J(q);try{await m(x),C(`[bridge:pointer] cleared ${x}`)}catch(v){if(!y(v))C(`[bridge:pointer] clear failed: ${v}`,{level:"warn"})}}function F(q){try{return W(q)}catch{return null}}export{g as writeBridgePointer,s as readBridgePointerAcrossWorktrees,U as readBridgePointer,J as getBridgePointerPath,X as clearBridgePointer,u as BRIDGE_POINTER_TTL_MS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Kh as a,Lh as AJ}from"./cli-1.1.14-256a4dam.mjs";import{Mh as x,Nh as vJ}from"./cli-1.1.14-ecnk9fd6.mjs";import{HQ as TJ,Hn as g,In as UJ,KH as $,LH as bJ,MR as hJ,QT as s,RT as t,ST as DJ,dx as u,ex as IJ,pE as c,qy as m,sy as HJ,vE as WJ,wQ as r,yR as o}from"./cli-1.1.14-8fx5qjh6.mjs";import"./cli-1.1.14-gv9rt2h8.mjs";import"./cli-1.1.14-hcaktmq1.mjs";import"./cli-1.1.14-vdsx0cw7.mjs";import"./cli-1.1.14-8p0w0geq.mjs";import"./cli-1.1.14-qfc8zb5d.mjs";import"./cli-1.1.14-gf6m8qz3.mjs";import"./cli-1.1.14-jgers44a.mjs";import"./cli-1.1.14-8wdw7x7k.mjs";import"./cli-1.1.14-pce9xpxh.mjs";import"./cli-1.1.14-a5v23mcj.mjs";import"./cli-1.1.14-6ae3m5qs.mjs";import"./cli-1.1.14-nqa3ttq6.mjs";import"./cli-1.1.14-8yw87v1w.mjs";import"./cli-1.1.14-4w3fbvdq.mjs";import"./cli-1.1.14-9gvsxyt7.mjs";import"./cli-1.1.14-pfsqawey.mjs";import"./cli-1.1.14-53dfe61t.mjs";import"./cli-1.1.14-1dph8n41.mjs";import"./cli-1.1.14-rmjnqb9b.mjs";import{VX as i,WX as QJ,qY as l,sY as kJ}from"./cli-1.1.14-3a1bnf85.mjs";import"./cli-1.1.14-srbcxz1e.mjs";import{$0 as S,I0 as W,K0 as b,b1 as KJ,jZ as GJ,n1 as NJ}from"./cli-1.1.14-hdkyecme.mjs";import"./cli-1.1.14-9nw51dsq.mjs";import"./cli-1.1.14-73zh23ez.mjs";import"./cli-1.1.14-qm7sjy8p.mjs";import"./cli-1.1.14-3f4fg0jf.mjs";import"./cli-1.1.14-yfknrxme.mjs";import"./cli-1.1.14-ftjv2jrz.mjs";import"./cli-1.1.14-4hs7pyh0.mjs";import"./cli-1.1.14-bwc8pb1f.mjs";import"./cli-1.1.14-1d5gcev8.mjs";import"./cli-1.1.14-chn2z068.mjs";import{L3 as F,M3 as H,N3 as _}from"./cli-1.1.14-az6pbe66.mjs";import{O3 as zJ}from"./cli-1.1.14-pgkjn3yw.mjs";import"./cli-1.1.14-ykbz2fee.mjs";import"./cli-1.1.14-377p51gp.mjs";import"./cli-1.1.14-1zf42f1b.mjs";import"./cli-1.1.14-42r8tafr.mjs";import"./cli-1.1.14-6ex3vykg.mjs";import"./cli-1.1.14-ehnnwt4w.mjs";import"./cli-1.1.14-msb0xfz3.mjs";import"./cli-1.1.14-b1sbm8w6.mjs";import"./cli-1.1.14-eh3y4akg.mjs";import"./cli-1.1.14-cran8hzr.mjs";import"./cli-1.1.14-n1hm0gd6.mjs";import{Eba as ZJ,Rea as FJ,lba as j,mba as p,tea as C}from"./cli-1.1.14-q1kc6b8n.mjs";import"./cli-1.1.14-byr5dy4k.mjs";import"./cli-1.1.14-0e209hdd.mjs";import"./cli-1.1.14-947tpwm7.mjs";import"./cli-1.1.14-qe4ypfya.mjs";import"./cli-1.1.14-ec6d00xg.mjs";import"./cli-1.1.14-xcg5hzkp.mjs";import"./cli-1.1.14-ry5bys5g.mjs";import"./cli-1.1.14-f5bvc359.mjs";import"./cli-1.1.14-db3mxak8.mjs";import"./cli-1.1.14-cakvdwn3.mjs";import{$ka as YJ,Uka as f}from"./cli-1.1.14-fwakcyhj.mjs";import"./cli-1.1.14-83ng5cjk.mjs";import"./cli-1.1.14-f9dpkjv9.mjs";import"./cli-1.1.14-znbm9h8t.mjs";import"./cli-1.1.14-vx8jq8gy.mjs";import"./cli-1.1.14-pa5nsjfc.mjs";import"./cli-1.1.14-j9qy5cj8.mjs";import"./cli-1.1.14-n351xrzx.mjs";import{Asa as R,Esa as XJ}from"./cli-1.1.14-r930b2z3.mjs";function BJ(V){let J=n.c(25),{question:Y,context:z,onDone:G}=V,[Z,e]=N.useState(null),[K,y]=N.useState(null),[P,JJ]=N.useState(0),T=N.useRef(null),{rows:VJ}=l(i()),v;if(J[0]===Symbol.for("react.memo_cache_sentinel"))v=()=>JJ(EJ),J[0]=v;else v=J[0];S(v,Z||K?null:80);let A;if(J[1]!==G)A=function(X){if(X.key==="escape"||X.key==="return"||X.key===" "||X.ctrl&&(X.key==="c"||X.key==="d")){X.preventDefault(),G(void 0,{display:"skip"});return}if(X.key==="up"||X.ctrl&&X.key==="p")X.preventDefault(),T.current?.scrollBy(-d);if(X.key==="down"||X.ctrl&&X.key==="n")X.preventDefault(),T.current?.scrollBy(d)},J[1]=G,J[2]=A;else A=J[2];let h=A,w,L;if(J[3]!==z||J[4]!==Y)w=()=>{let q=g();return async function(){try{let O=await MJ(z),M=await a({question:Y,cacheSafeParams:O});if(!q.signal.aborted)if(M.response)e(M.response);else y("No response received")}catch(O){let M=O;if(!q.signal.aborted)y(f(M)||"Failed to get response")}}(),()=>{q.abort()}},L=[Y,z],J[3]=z,J[4]=Y,J[5]=w,J[6]=L;else w=J[5],L=J[6];N.useEffect(w,L);let D=Math.max(5,VJ-wJ-LJ),B;if(J[7]===Symbol.for("react.memo_cache_sentinel"))B=H(b,{color:"warning",bold:!0,children:["/btw"," "]}),J[7]=B;else B=J[7];let Q;if(J[8]!==Y)Q=H(W,{children:[B,F(b,{dimColor:!0,children:Y})]}),J[8]=Y,J[9]=Q;else Q=J[9];let U;if(J[10]!==K||J[11]!==P||J[12]!==Z)U=F(x,{ref:T,flexDirection:"column",flexGrow:1,children:K?F(b,{color:"error",children:K}):Z?F(m,{children:Z}):H(W,{children:[F($,{frame:P,messageColor:"warning"}),F(b,{color:"warning",children:"Answering..."})]})}),J[10]=K,J[11]=P,J[12]=Z,J[13]=U;else U=J[13];let k;if(J[14]!==D||J[15]!==U)k=F(W,{marginTop:1,marginLeft:2,maxHeight:D,children:U}),J[14]=D,J[15]=U,J[16]=k;else k=J[16];let I;if(J[17]!==K||J[18]!==Z)I=(Z||K)&&F(W,{marginTop:1,children:H(b,{dimColor:!0,children:[j,"/",p," to scroll · Space, Enter, or Escape to dismiss"]})}),J[17]=K,J[18]=Z,J[19]=I;else I=J[19];let E;if(J[20]!==h||J[21]!==Q||J[22]!==k||J[23]!==I)E=H(W,{flexDirection:"column",paddingLeft:2,marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:h,children:[Q,k,I]}),J[20]=h,J[21]=Q,J[22]=k,J[23]=I,J[24]=E;else E=J[24];return E}function EJ(V){return V+1}function qJ(V){let J=V.at(-1);if(J?.type==="assistant"&&J.message.stop_reason===null)return V.slice(0,-1);return V}async function MJ(V){let J=o(qJ(V.messages)),Y=c();if(Y)return{systemPrompt:Y.systemPrompt,userContext:Y.userContext,systemContext:Y.systemContext,toolUseContext:V,forkContextMessages:J};let[z,G,Z]=await Promise.all([r(V.options.tools,V.options.mainLoopModel,[],V.options.mcpClients),t(),s()]);return{systemPrompt:u(z),userContext:G,systemContext:Z,toolUseContext:V,forkContextMessages:J}}async function aJ(V,J,Y){let z=Y?.trim();if(!z)return V("Usage: /btw <your question>",{display:"system"}),null;return C((G)=>({...G,btwUseCount:G.btwUseCount+1})),F(BJ,{question:z,context:J,onDone:V})}var n,N,wJ=5,LJ=6,d=3;var PJ=XJ(()=>{KJ();HJ();bJ();ZJ();TJ();kJ();DJ();QJ();vJ();NJ();UJ();FJ();YJ();WJ();hJ();AJ();IJ();_();n=R(GJ(),1),N=R(zJ(),1)});PJ();export{aJ as call};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{kX as p,lX as f,mX as a,nX as S}from"./cli-1.1.14-53dfe61t.mjs";import{Rea as C,tea as d}from"./cli-1.1.14-q1kc6b8n.mjs";import"./cli-1.1.14-byr5dy4k.mjs";import"./cli-1.1.14-0e209hdd.mjs";import"./cli-1.1.14-947tpwm7.mjs";import"./cli-1.1.14-qe4ypfya.mjs";import"./cli-1.1.14-ec6d00xg.mjs";import{eja as m,fja as y,gja as b}from"./cli-1.1.14-xcg5hzkp.mjs";import"./cli-1.1.14-ry5bys5g.mjs";import"./cli-1.1.14-f5bvc359.mjs";import"./cli-1.1.14-db3mxak8.mjs";import"./cli-1.1.14-cakvdwn3.mjs";import"./cli-1.1.14-fwakcyhj.mjs";import"./cli-1.1.14-83ng5cjk.mjs";import"./cli-1.1.14-f9dpkjv9.mjs";import"./cli-1.1.14-znbm9h8t.mjs";import"./cli-1.1.14-vx8jq8gy.mjs";import{Esa as g}from"./cli-1.1.14-r930b2z3.mjs";function R(t){let o=2166136261;for(let s=0;s<t.length;s++)o^=t.charCodeAt(s),o=Math.imul(o,16777619);return o>>>0}function r(t,o){return t[R(o)%t.length]}function M(t){return t.charAt(0).toUpperCase()+t.slice(1)}function O(){let t=f(),{bones:o}=p(`${t}:buddy`),s=r($,`${t}:prefix`),n=r(A,`${t}:suffix`),i=r(w,`${t}:personality`);return{name:`${s}${n}`,personality:`${i}.`,hatchedAt:Date.now()}}function l(t,o,s=!1){t.setAppState((n)=>({...n,companionReaction:o,companionPetAt:s?Date.now():n.companionPetAt}))}function c(t){t(`Usage: /buddy [status|mute|unmute]
|
|
2
|
+
|
|
3
|
+
Run /buddy with no args to hatch your companion the first time, then pet it on later runs.`,{display:"system"})}async function X(t,o,s){let n=s?.trim().toLowerCase()??"";if(m.includes(n)||n===""){let e=a();if(n!==""||e){if(n!=="")return c(t),null}}if(m.includes(n))return c(t),null;if(y.includes(n)||n==="status"){let e=a();if(!e)return t("No buddy hatched yet. Run /buddy to hatch one.",{display:"system"}),null;return t(`${e.name} is your ${M(e.rarity)} ${e.species}. ${e.personality}`,{display:"system"}),null}if(n==="mute"||n==="unmute"){let e=n==="mute";if(d((u)=>({...u,companionMuted:e})),e)l(o,void 0);return t(`Buddy ${e?"muted":"unmuted"}.`,{display:"system"}),null}if(n!=="")return c(t),null;let i=a();if(!i){let e=O();return d((u)=>({...u,companion:e,companionMuted:!1})),i={...p(`${f()}:buddy`).bones,...e},l(o,`${i.name} the ${i.species} has hatched.`,!0),t(`${i.name} the ${i.species} is now your buddy. Run /buddy again to pet them.`,{display:"system"}),null}let h=`${i.name} ${r(E,`${Date.now()}:${i.name}`)}`;return l(o,h,!0),t(void 0,{display:"skip"}),null}var $,A,w,E;var L=g(()=>{C();S();b();$=["Byte","Echo","Glint","Miso","Nova","Pixel","Rune","Static","Vector","Whisk"],A=["bean","bit","bud","dot","ling","loop","moss","patch","puff","spark"],w=["Curious and quietly encouraging","A patient little watcher with strong debugging instincts","Playful, observant, and suspicious of flaky tests","Calm under pressure and fond of clean diffs","A tiny terminal gremlin who likes successful builds"],E=["leans into the headpat","does a proud little bounce","emits a content beep","looks delighted","wiggles happily"]});L();export{X as call};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{C2 as zz,y2 as h}from"./cli-1.1.14-yfknrxme.mjs";import"./cli-1.1.14-42r8tafr.mjs";import{N6 as e,n6 as m}from"./cli-1.1.14-6ex3vykg.mjs";import"./cli-1.1.14-ehnnwt4w.mjs";import"./cli-1.1.14-msb0xfz3.mjs";import"./cli-1.1.14-b1sbm8w6.mjs";import"./cli-1.1.14-cran8hzr.mjs";import{Rfa as y,Zfa as s,aga as v,dga as r}from"./cli-1.1.14-q1kc6b8n.mjs";import"./cli-1.1.14-byr5dy4k.mjs";import"./cli-1.1.14-0e209hdd.mjs";import"./cli-1.1.14-947tpwm7.mjs";import"./cli-1.1.14-qe4ypfya.mjs";import"./cli-1.1.14-ec6d00xg.mjs";import"./cli-1.1.14-xcg5hzkp.mjs";import"./cli-1.1.14-ry5bys5g.mjs";import"./cli-1.1.14-f5bvc359.mjs";import{uka as k,xka as o}from"./cli-1.1.14-db3mxak8.mjs";import"./cli-1.1.14-cakvdwn3.mjs";import"./cli-1.1.14-fwakcyhj.mjs";import"./cli-1.1.14-83ng5cjk.mjs";import{Sqa as a,Tma as b}from"./cli-1.1.14-f9dpkjv9.mjs";import"./cli-1.1.14-znbm9h8t.mjs";import"./cli-1.1.14-vx8jq8gy.mjs";import"./cli-1.1.14-pa5nsjfc.mjs";import"./cli-1.1.14-j9qy5cj8.mjs";import"./cli-1.1.14-n351xrzx.mjs";import{Esa as n}from"./cli-1.1.14-r930b2z3.mjs";function Nz(J){if(!J)return"unknown";return J.replace(/-\d{4,}$/,"").replace(/-latest$/,"").replace(/-preview$/,"")}function Y(J,Q){return Q.split(".").reduce((X,O)=>X!=null?X[O]:void 0,J)}async function R(J,Q,X,O){let q=Date.now(),V;try{V=await fetch(J,{method:"POST",headers:Q,body:JSON.stringify(X)})}catch(B){return{label:O,status:0,elapsed:Date.now()-q,headers:{},usage:null,responseId:null,error:B.message}}let A=Date.now()-q,U={};if(V.headers.forEach((B,w)=>{U[w]=B}),!V.ok){let B=await V.text().catch(()=>"");return{label:O,status:V.status,elapsed:A,headers:U,usage:null,responseId:null,error:B}}let L=await V.text(),$=null,T=null,_=J.endsWith("/responses");for(let B of L.split(`
|
|
2
|
+
|
|
3
|
+
`)){let w=B.split(`
|
|
4
|
+
`).map((x)=>x.trim()).filter(Boolean);if(_){let x=w.find((z)=>z.startsWith("event: ")),j=w.filter((z)=>z.startsWith("data: "));if(!x||!j.length)continue;let C=x.slice(7).trim();if(C==="response.completed"||C==="response.incomplete")try{let z=JSON.parse(j.map((W)=>W.slice(6)).join(`
|
|
5
|
+
`));$=z?.response?.usage??null,T=z?.response?.id??null}catch{}}else for(let x of w){if(!x.startsWith("data: "))continue;let j=x.slice(6).trim();if(j==="[DONE]")continue;try{let C=JSON.parse(j);if(C.usage)$=C.usage,T=C.id??null}catch{}}}return{label:O,status:V.status,elapsed:A,headers:U,usage:$,responseId:T,error:null}}function S(J){let Q=[`--- ${J.label} ---`];if(J.error)return Q.push(` ERROR (HTTP ${J.status}): ${J.error.slice(0,200)}`),Q.join(`
|
|
6
|
+
`);if(Q.push(` HTTP ${J.status} — ${J.elapsed}ms`),J.responseId)Q.push(` response.id: ${J.responseId}`);if(J.usage)Q.push(" Usage:"),Q.push(` ${JSON.stringify(J.usage,null,2).replace(/\n/g,`
|
|
7
|
+
`)}`);else Q.push(" Usage: null");for(let X of["openai-processing-ms","x-ratelimit-remaining","x-ratelimit-limit","x-ms-region","x-github-request-id","x-request-id"])if(J.headers[X])Q.push(` ${X}: ${J.headers[X]}`);return Q.join(`
|
|
8
|
+
`)}var Jz,K,M='Say "hello" and nothing else.',g=3000,jz=async(J)=>{let Q=(J??"").trim().split(/\s+/).filter(Boolean),X=Q.includes("--no-key"),q=(Q.find((N)=>!N.startsWith("--"))||void 0)??m(),V=y({model:q}),A=v(),U=A?.transport==="github_copilot";if(U)h();let L=A?.apiKey??A?.extras?.githubToken??"";if(!L)return{type:"text",value:`No API key found. Make sure you are in an active OpenAI-compatible or GitHub Copilot session.
|
|
9
|
+
For GitHub Copilot: run /provider and choose GitHub Copilot.
|
|
10
|
+
For OpenAI-compatible: configure a profile via /provider.`};let $=V.transport==="codex_responses",T=$?"/responses":"/chat/completions",_=`${V.baseUrl}${T}`,B=Nz(V.resolvedModel),w=`${b()}:${B}`,x={"Content-Type":"application/json",Authorization:`Bearer ${L}`,originator:"claudin"};if(U)Object.assign(x,Jz);let j;if($)j={model:V.resolvedModel,instructions:K,input:[{type:"message",role:"user",content:[{type:"input_text",text:M}]}],stream:!0,...X?{}:{store:!1,prompt_cache_key:w}};else j={model:V.resolvedModel,messages:[{role:"system",content:K},{role:"user",content:M}],stream:!0,stream_options:{include_usage:!0},max_tokens:20,...X?{}:{store:!1,prompt_cache_key:w}};let C=[`[cache-probe] Starting cache probe${X?" (--no-key: cache params OMITTED)":""}`,` model: ${V.resolvedModel} (family: ${B})`,` transport: ${V.transport}`,` endpoint: ${_}`,` prompt_cache_key: ${X?"NOT SENT":w}`,` store: ${X?"NOT SENT":"false"}`,` system prompt: ~${Math.round(K.length/4)} tokens`,` delay between calls: ${g}ms`].join(`
|
|
11
|
+
`);k(C);let z=await R(_,x,j,"CALL 1 — Cold (no cache)");if(k(`[cache-probe]
|
|
12
|
+
${S(z)}`),z.error)return{type:"text",value:`Cache probe failed on first call: HTTP ${z.status}
|
|
13
|
+
${z.error.slice(0,300)}
|
|
14
|
+
|
|
15
|
+
Full details in debug log.`};await new Promise((N)=>setTimeout(N,g));let W=await R(_,x,j,"CALL 2 — Warm (cache expected)");k(`[cache-probe]
|
|
16
|
+
${S(W)}`);let c=["input_tokens","output_tokens","total_tokens","prompt_tokens","completion_tokens","input_tokens_details.cached_tokens","prompt_tokens_details.cached_tokens","output_tokens_details.reasoning_tokens"],Z=["[cache-probe] COMPARISON"];Z.push(` ${"Field".padEnd(42)} ${"Call 1".padStart(8)} ${"Call 2".padStart(8)} ${"Delta".padStart(8)}`),Z.push(` ${"-".repeat(72)}`);for(let N of c){let H=Y(z.usage,N),I=Y(W.usage,N);if(H===void 0&&I===void 0)continue;let i=typeof H==="number"&&typeof I==="number"?I-H:"";Z.push(` ${N.padEnd(42)} ${String(H??"-").padStart(8)} ${String(I??"-").padStart(8)} ${String(i).padStart(8)}`)}Z.push(""),Z.push(` Latency: ${z.elapsed}ms → ${W.elapsed}ms (${W.elapsed-z.elapsed>0?"+":""}${W.elapsed-z.elapsed}ms)`);for(let N of["openai-processing-ms","x-ms-region","x-ratelimit-remaining"]){let H=z.headers[N],I=W.headers[N];if(H||I)Z.push(` ${N}: ${H??"-"} → ${I??"-"}`)}let D=Y(W.usage,"input_tokens_details.cached_tokens")??Y(W.usage,"prompt_tokens_details.cached_tokens")??0,F=z.usage?.input_tokens??z.usage?.prompt_tokens??0,P=W.usage?.input_tokens??W.usage?.prompt_tokens??0,G;if(D>0){let N=P>0?Math.round(D/P*100):"?";G=`CACHE HIT: ${D} cached tokens (${N}% of input)`}else if(F===0&&P===0)G="INCONCLUSIVE: Server returns 0 input_tokens — cannot measure";else if(W.elapsed<z.elapsed*0.6&&F>100)G=`POSSIBLE SILENT CACHING: Call 2 was ${Math.round((1-W.elapsed/z.elapsed)*100)}% faster but no cached_tokens reported`;else G="NO CACHE DETECTED";Z.push(`
|
|
17
|
+
Verdict: ${G}`);function u(N){return{input_tokens:N?.input_tokens??0,output_tokens:N?.output_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}function p(N){return{input_tokens:N?.prompt_tokens??0,output_tokens:N?.completion_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:N?.prompt_tokens_details?.cached_tokens??0}}let f=$?u:p,d=f(z.usage),E=f(W.usage);if(Z.push(""),Z.push(` --- What main's shim reports (${$?"codexShim.makeUsage":"openaiShim.convertChunkUsage"}) ---`),Z.push(` Call 1: cache_read_input_tokens=${d.cache_read_input_tokens}`),Z.push(` Call 2: cache_read_input_tokens=${E.cache_read_input_tokens}`),$&&D>0)Z.push(` BUG: Server returned ${D} cached tokens but main's makeUsage() drops it → reports 0`);else if(!$&&E.cache_read_input_tokens>0)Z.push(" OK: Chat Completions path on main correctly reads cached_tokens");k(Z.join(`
|
|
18
|
+
`));let t=X?" (NO cache key sent)":"",l=$?"codexShim.makeUsage()":"openaiShim.convertChunkUsage()";return{type:"text",value:[`Cache Probe — ${V.resolvedModel} via ${$?"Responses API":"Chat Completions"}${t}`,"",`Call 1: ${z.elapsed}ms, input=${F}, cached=${Y(z.usage,"input_tokens_details.cached_tokens")??Y(z.usage,"prompt_tokens_details.cached_tokens")??0}`,`Call 2: ${W.elapsed}ms, input=${P}, cached=${D}`,"",G,"",`What main's ${l} reports:`,` Call 2 cache_read_input_tokens = ${E.cache_read_input_tokens}${$&&D>0?" ← BUG: server sent "+D+" but main drops it":""}`,"","Full details written to debug log."].join(`
|
|
19
|
+
`)}};var Qz=n(()=>{a();r();s();o();zz();e();Jz={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},K=["You are a coding assistant. Answer concisely.","CONTEXT: User is working on a TypeScript project with Bun runtime.",...Array.from({length:80},(J,Q)=>`Rule ${Q+1}: Follow best practices for TypeScript including strict typing, error handling, testing, and clean code. Prefer explicit types over any. Use const assertions. Await all async operations.`)].join(`
|
|
20
|
+
|
|
21
|
+
`)});Qz();export{jz as call};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{G2 as L,H2 as P,I2 as $,M2 as Q,N2 as U,O2 as V,P2 as j}from"./cli-1.1.14-ftjv2jrz.mjs";import{Esa as Z}from"./cli-1.1.14-r930b2z3.mjs";function w(k,D){let G=new Date(k.timestamp).toISOString(),B=`${G.slice(0,10)} ${G.slice(11,19)}`,I=L(k.metrics);return` #${String(D+1).padStart(3)} ${B} ${k.label.padEnd(28).slice(0,28)} ${I}`}function K(k,D){return`${k.padEnd(18)}${P(D)}`}var v=20,O=async()=>{let k=V(),D=U(),G=Q();if(k.length===0)return{type:"text",value:`Cache stats
|
|
2
|
+
No API requests yet this session.
|
|
3
|
+
Start a turn and re-run /cache-stats to see results.`};let B=k.slice(-v),I=k.length-B.length,q=["Cache stats",""];q.push(K("Current turn:",G)),q.push(K("Session total:",D)),q.push(""),q.push(`Recent requests (${B.length}${I>0?` of ${k.length}, ${I} older omitted`:""}):`),q.push(" # time model cache");for(let[J,Y]of B.entries())q.push(w(Y,k.length-B.length+J));if(B.some((J)=>!J.metrics.supported))q.push(""),q.push(" N/A rows: provider API does not expose cache usage (GitHub Copilot, Ollama)."),q.push(" The request still ran normally — only the metric is unavailable.");return{type:"text",value:q.join(`
|
|
4
|
+
`)}};var A=Z(()=>{j();$()});A();export{O as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Qh as a,Rh as b}from"./cli-1.1.14-cxm6hsqs.mjs";import"./cli-1.1.14-p0xhp49n.mjs";import"./cli-1.1.14-xw8mensa.mjs";import"./cli-1.1.14-8fx5qjh6.mjs";import"./cli-1.1.14-gv9rt2h8.mjs";import"./cli-1.1.14-hcaktmq1.mjs";import"./cli-1.1.14-vdsx0cw7.mjs";import"./cli-1.1.14-8p0w0geq.mjs";import"./cli-1.1.14-qfc8zb5d.mjs";import"./cli-1.1.14-gf6m8qz3.mjs";import"./cli-1.1.14-jgers44a.mjs";import"./cli-1.1.14-8wdw7x7k.mjs";import"./cli-1.1.14-pce9xpxh.mjs";import"./cli-1.1.14-a5v23mcj.mjs";import"./cli-1.1.14-6ae3m5qs.mjs";import"./cli-1.1.14-nqa3ttq6.mjs";import"./cli-1.1.14-8yw87v1w.mjs";import"./cli-1.1.14-4w3fbvdq.mjs";import"./cli-1.1.14-9gvsxyt7.mjs";import"./cli-1.1.14-pfsqawey.mjs";import"./cli-1.1.14-53dfe61t.mjs";import"./cli-1.1.14-1dph8n41.mjs";import"./cli-1.1.14-rmjnqb9b.mjs";import"./cli-1.1.14-3a1bnf85.mjs";import"./cli-1.1.14-srbcxz1e.mjs";import"./cli-1.1.14-hdkyecme.mjs";import"./cli-1.1.14-9nw51dsq.mjs";import"./cli-1.1.14-73zh23ez.mjs";import"./cli-1.1.14-qm7sjy8p.mjs";import"./cli-1.1.14-3f4fg0jf.mjs";import"./cli-1.1.14-yfknrxme.mjs";import"./cli-1.1.14-ftjv2jrz.mjs";import"./cli-1.1.14-4hs7pyh0.mjs";import"./cli-1.1.14-bwc8pb1f.mjs";import"./cli-1.1.14-1d5gcev8.mjs";import"./cli-1.1.14-chn2z068.mjs";import"./cli-1.1.14-az6pbe66.mjs";import"./cli-1.1.14-pgkjn3yw.mjs";import"./cli-1.1.14-ykbz2fee.mjs";import"./cli-1.1.14-377p51gp.mjs";import"./cli-1.1.14-1zf42f1b.mjs";import"./cli-1.1.14-42r8tafr.mjs";import"./cli-1.1.14-6ex3vykg.mjs";import"./cli-1.1.14-ehnnwt4w.mjs";import"./cli-1.1.14-msb0xfz3.mjs";import"./cli-1.1.14-b1sbm8w6.mjs";import"./cli-1.1.14-eh3y4akg.mjs";import"./cli-1.1.14-cran8hzr.mjs";import"./cli-1.1.14-n1hm0gd6.mjs";import"./cli-1.1.14-q1kc6b8n.mjs";import"./cli-1.1.14-byr5dy4k.mjs";import"./cli-1.1.14-0e209hdd.mjs";import"./cli-1.1.14-947tpwm7.mjs";import"./cli-1.1.14-qe4ypfya.mjs";import"./cli-1.1.14-ec6d00xg.mjs";import"./cli-1.1.14-xcg5hzkp.mjs";import"./cli-1.1.14-ry5bys5g.mjs";import"./cli-1.1.14-f5bvc359.mjs";import"./cli-1.1.14-db3mxak8.mjs";import"./cli-1.1.14-cakvdwn3.mjs";import"./cli-1.1.14-fwakcyhj.mjs";import"./cli-1.1.14-83ng5cjk.mjs";import"./cli-1.1.14-f9dpkjv9.mjs";import"./cli-1.1.14-znbm9h8t.mjs";import"./cli-1.1.14-vx8jq8gy.mjs";import"./cli-1.1.14-pa5nsjfc.mjs";import"./cli-1.1.14-j9qy5cj8.mjs";import"./cli-1.1.14-n351xrzx.mjs";import"./cli-1.1.14-r930b2z3.mjs";b();export{a as clearSessionCaches};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Daa as k,Iaa as N,Xba as x,_ba as A,pga as X,t$ as V,u$ as W,v$ as J,xga as H}from"./cli-1.1.14-q1kc6b8n.mjs";import"./cli-1.1.14-byr5dy4k.mjs";import"./cli-1.1.14-0e209hdd.mjs";import"./cli-1.1.14-947tpwm7.mjs";import"./cli-1.1.14-qe4ypfya.mjs";import"./cli-1.1.14-ec6d00xg.mjs";import"./cli-1.1.14-xcg5hzkp.mjs";import"./cli-1.1.14-ry5bys5g.mjs";import"./cli-1.1.14-f5bvc359.mjs";import"./cli-1.1.14-db3mxak8.mjs";import"./cli-1.1.14-cakvdwn3.mjs";import{$ka as y,Vka as b}from"./cli-1.1.14-fwakcyhj.mjs";import"./cli-1.1.14-83ng5cjk.mjs";import"./cli-1.1.14-f9dpkjv9.mjs";import"./cli-1.1.14-znbm9h8t.mjs";import"./cli-1.1.14-vx8jq8gy.mjs";import"./cli-1.1.14-r930b2z3.mjs";A();y();N();H();J();import{readdir as L,readFile as U,stat as Z}from"fs/promises";import{homedir as _}from"os";import{join as $}from"path";async function F(){let B=W();if(!V.includes(B))throw Error(`Unsupported platform: ${B} - Claude Desktop integration only works on macOS and WSL.`);if(B==="macos")return $(_(),"Library","Application Support","Claude","claude_desktop_config.json");let K=process.env.USERPROFILE?process.env.USERPROFILE.replace(/\\/g,"/"):null;if(K){let q=`/mnt/c${K.replace(/^[A-Z]:/,"")}/AppData/Roaming/Claude/claude_desktop_config.json`;try{return await Z(q),q}catch{}}try{try{let q=await L("/mnt/c/Users",{withFileTypes:!0});for(let z of q){if(z.name==="Public"||z.name==="Default"||z.name==="Default User"||z.name==="All Users")continue;let I=$("/mnt/c/Users",z.name,"AppData","Roaming","Claude","claude_desktop_config.json");try{return await Z(I),I}catch{}}}catch{}}catch(G){X(G)}throw Error("Could not find Claude Desktop config file in Windows. Make sure Claude Desktop is installed on Windows.")}async function v(){if(!V.includes(W()))throw Error("Unsupported platform - Claude Desktop integration only works on macOS and WSL.");try{let B=await F(),K;try{K=await U(B,{encoding:"utf8"})}catch(I){if(b(I)==="ENOENT")return{};throw I}let G=k(K);if(!G||typeof G!=="object")return{};let q=G.mcpServers;if(!q||typeof q!=="object")return{};let z={};for(let[I,Q]of Object.entries(q)){if(!Q||typeof Q!=="object")continue;let Y=x().safeParse(Q);if(Y.success)z[I]=Y.data}return z}catch(B){return X(B),{}}}export{v as readClaudeDesktopMcpServers,F as getClaudeDesktopConfigPath};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{AT as e,BT as f,CT as g,DT as h,ET as i,FT as j,GT as k,HT as l,IT as m,JT as n,KT as o,LT as p,MT as q,NT as r,wT as a,xT as b,yT as c,zT as d}from"./cli-1.1.14-8fx5qjh6.mjs";import"./cli-1.1.14-gv9rt2h8.mjs";import"./cli-1.1.14-hcaktmq1.mjs";import"./cli-1.1.14-vdsx0cw7.mjs";import"./cli-1.1.14-8p0w0geq.mjs";import"./cli-1.1.14-qfc8zb5d.mjs";import"./cli-1.1.14-gf6m8qz3.mjs";import"./cli-1.1.14-jgers44a.mjs";import"./cli-1.1.14-8wdw7x7k.mjs";import"./cli-1.1.14-pce9xpxh.mjs";import"./cli-1.1.14-a5v23mcj.mjs";import"./cli-1.1.14-6ae3m5qs.mjs";import"./cli-1.1.14-nqa3ttq6.mjs";import"./cli-1.1.14-8yw87v1w.mjs";import"./cli-1.1.14-4w3fbvdq.mjs";import"./cli-1.1.14-9gvsxyt7.mjs";import"./cli-1.1.14-pfsqawey.mjs";import"./cli-1.1.14-53dfe61t.mjs";import"./cli-1.1.14-1dph8n41.mjs";import"./cli-1.1.14-rmjnqb9b.mjs";import"./cli-1.1.14-3a1bnf85.mjs";import"./cli-1.1.14-srbcxz1e.mjs";import"./cli-1.1.14-hdkyecme.mjs";import"./cli-1.1.14-9nw51dsq.mjs";import"./cli-1.1.14-73zh23ez.mjs";import"./cli-1.1.14-qm7sjy8p.mjs";import"./cli-1.1.14-3f4fg0jf.mjs";import"./cli-1.1.14-yfknrxme.mjs";import"./cli-1.1.14-ftjv2jrz.mjs";import"./cli-1.1.14-4hs7pyh0.mjs";import"./cli-1.1.14-bwc8pb1f.mjs";import"./cli-1.1.14-1d5gcev8.mjs";import"./cli-1.1.14-chn2z068.mjs";import"./cli-1.1.14-az6pbe66.mjs";import"./cli-1.1.14-pgkjn3yw.mjs";import"./cli-1.1.14-ykbz2fee.mjs";import"./cli-1.1.14-377p51gp.mjs";import"./cli-1.1.14-1zf42f1b.mjs";import"./cli-1.1.14-42r8tafr.mjs";import"./cli-1.1.14-6ex3vykg.mjs";import"./cli-1.1.14-ehnnwt4w.mjs";import"./cli-1.1.14-msb0xfz3.mjs";import"./cli-1.1.14-b1sbm8w6.mjs";import"./cli-1.1.14-eh3y4akg.mjs";import"./cli-1.1.14-cran8hzr.mjs";import"./cli-1.1.14-n1hm0gd6.mjs";import"./cli-1.1.14-q1kc6b8n.mjs";import"./cli-1.1.14-byr5dy4k.mjs";import"./cli-1.1.14-0e209hdd.mjs";import"./cli-1.1.14-947tpwm7.mjs";import"./cli-1.1.14-qe4ypfya.mjs";import"./cli-1.1.14-ec6d00xg.mjs";import"./cli-1.1.14-xcg5hzkp.mjs";import"./cli-1.1.14-ry5bys5g.mjs";import"./cli-1.1.14-f5bvc359.mjs";import"./cli-1.1.14-db3mxak8.mjs";import"./cli-1.1.14-cakvdwn3.mjs";import"./cli-1.1.14-fwakcyhj.mjs";import"./cli-1.1.14-83ng5cjk.mjs";import"./cli-1.1.14-f9dpkjv9.mjs";import"./cli-1.1.14-znbm9h8t.mjs";import"./cli-1.1.14-vx8jq8gy.mjs";import"./cli-1.1.14-pa5nsjfc.mjs";import"./cli-1.1.14-j9qy5cj8.mjs";import"./cli-1.1.14-n351xrzx.mjs";import"./cli-1.1.14-r930b2z3.mjs";r();export{p as shouldShowClaudeMdExternalIncludesWarning,f as resetGetMemoryFilesCache,b as processMemoryFile,c as processMdRules,m as processConditionedMdRules,q as isMemoryFilePath,o as hasExternalClaudeMdIncludes,k as getMemoryFilesForNestedDirectory,d as getMemoryFiles,j as getManagedAndUserConditionalRules,g as getLargeMemoryFiles,n as getExternalClaudeMdIncludes,l as getConditionalRulesForCwdLevelDirectory,i as getClaudeMds,h as filterInjectedMemoryFiles,e as clearMemoryFileCaches,a as MAX_MEMORY_CHARACTER_COUNT};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Oh as b,Ph as h}from"./cli-1.1.14-v4f9098m.mjs";import"./cli-1.1.14-cxm6hsqs.mjs";import"./cli-1.1.14-eccdwm9t.mjs";import"./cli-1.1.14-p0xhp49n.mjs";import"./cli-1.1.14-xw8mensa.mjs";import"./cli-1.1.14-8fx5qjh6.mjs";import"./cli-1.1.14-gv9rt2h8.mjs";import"./cli-1.1.14-hcaktmq1.mjs";import"./cli-1.1.14-vdsx0cw7.mjs";import"./cli-1.1.14-8p0w0geq.mjs";import"./cli-1.1.14-qfc8zb5d.mjs";import"./cli-1.1.14-gf6m8qz3.mjs";import"./cli-1.1.14-jgers44a.mjs";import"./cli-1.1.14-8wdw7x7k.mjs";import"./cli-1.1.14-pce9xpxh.mjs";import"./cli-1.1.14-a5v23mcj.mjs";import"./cli-1.1.14-6ae3m5qs.mjs";import"./cli-1.1.14-nqa3ttq6.mjs";import"./cli-1.1.14-8yw87v1w.mjs";import"./cli-1.1.14-4w3fbvdq.mjs";import"./cli-1.1.14-9gvsxyt7.mjs";import"./cli-1.1.14-pfsqawey.mjs";import"./cli-1.1.14-53dfe61t.mjs";import"./cli-1.1.14-1dph8n41.mjs";import"./cli-1.1.14-rmjnqb9b.mjs";import"./cli-1.1.14-3a1bnf85.mjs";import"./cli-1.1.14-srbcxz1e.mjs";import"./cli-1.1.14-hdkyecme.mjs";import"./cli-1.1.14-9nw51dsq.mjs";import"./cli-1.1.14-73zh23ez.mjs";import"./cli-1.1.14-qm7sjy8p.mjs";import"./cli-1.1.14-3f4fg0jf.mjs";import"./cli-1.1.14-yfknrxme.mjs";import"./cli-1.1.14-ftjv2jrz.mjs";import"./cli-1.1.14-4hs7pyh0.mjs";import"./cli-1.1.14-bwc8pb1f.mjs";import"./cli-1.1.14-1d5gcev8.mjs";import"./cli-1.1.14-chn2z068.mjs";import"./cli-1.1.14-az6pbe66.mjs";import"./cli-1.1.14-pgkjn3yw.mjs";import"./cli-1.1.14-ykbz2fee.mjs";import"./cli-1.1.14-377p51gp.mjs";import"./cli-1.1.14-1zf42f1b.mjs";import"./cli-1.1.14-42r8tafr.mjs";import"./cli-1.1.14-6ex3vykg.mjs";import"./cli-1.1.14-ehnnwt4w.mjs";import"./cli-1.1.14-msb0xfz3.mjs";import"./cli-1.1.14-b1sbm8w6.mjs";import"./cli-1.1.14-eh3y4akg.mjs";import"./cli-1.1.14-cran8hzr.mjs";import"./cli-1.1.14-n1hm0gd6.mjs";import"./cli-1.1.14-q1kc6b8n.mjs";import"./cli-1.1.14-byr5dy4k.mjs";import"./cli-1.1.14-0e209hdd.mjs";import"./cli-1.1.14-947tpwm7.mjs";import"./cli-1.1.14-qe4ypfya.mjs";import"./cli-1.1.14-ec6d00xg.mjs";import"./cli-1.1.14-xcg5hzkp.mjs";import"./cli-1.1.14-ry5bys5g.mjs";import"./cli-1.1.14-f5bvc359.mjs";import"./cli-1.1.14-db3mxak8.mjs";import"./cli-1.1.14-cakvdwn3.mjs";import"./cli-1.1.14-fwakcyhj.mjs";import"./cli-1.1.14-83ng5cjk.mjs";import"./cli-1.1.14-f9dpkjv9.mjs";import"./cli-1.1.14-znbm9h8t.mjs";import"./cli-1.1.14-vx8jq8gy.mjs";import"./cli-1.1.14-pa5nsjfc.mjs";import"./cli-1.1.14-j9qy5cj8.mjs";import"./cli-1.1.14-n351xrzx.mjs";import{Esa as g}from"./cli-1.1.14-r930b2z3.mjs";var u=async(p,f)=>{return await b(f),{type:"text",value:""}};var k=g(()=>{h()});k();export{u as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a2 as a,b2 as b,c2 as c}from"./cli-1.1.14-73zh23ez.mjs";import"./cli-1.1.14-r930b2z3.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Esa as H}from"./cli-1.1.14-r930b2z3.mjs";function F(){if(!A)A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return A}function K(b){if(!b)return"";return F().segment(b)[Symbol.iterator]().next().value?.segment??""}function M(b){if(!b)return"";let j="";for(let{segment:q}of F().segment(b))j=q;return j}function N(){if(!B)B=new Intl.Segmenter(void 0,{granularity:"word"});return B}function O(b,j){let q=`${b}:${j}`,z=E.get(q);if(!z)z=new Intl.RelativeTimeFormat("en",{style:b,numeric:j}),E.set(q,z);return z}function P(){if(!D)D=Intl.DateTimeFormat().resolvedOptions().timeZone;return D}var A=null,B=null,E,D=null;var J=H(()=>{E=new Map});
|
|
2
|
+
export{F as cha,K as dha,M as eha,N as fha,O as gha,P as hha,J as iha};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Xn as R,Yn as E,hG as h,jG as r}from"./cli-1.1.14-8fx5qjh6.mjs";import{I0 as U,K0 as F,O0 as I,jZ as j,n1 as p}from"./cli-1.1.14-hdkyecme.mjs";import{L3 as Z,M3 as L,N3 as N}from"./cli-1.1.14-az6pbe66.mjs";import{O3 as S}from"./cli-1.1.14-pgkjn3yw.mjs";import{Fda as b,tda as B}from"./cli-1.1.14-q1kc6b8n.mjs";import{rja as H,uja as A}from"./cli-1.1.14-f5bvc359.mjs";import{Asa as P}from"./cli-1.1.14-r930b2z3.mjs";A();p();b();r();E();N();var O=P(j(),1),T=P(S(),1),v="Auto mode lets Claudin handle permission prompts automatically — Claudin checks each tool call for risky actions and prompt injection before executing. Actions Claudin identifies as safe are executed, while actions Claudin identifies as risky are blocked and Claudin may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claudin can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";function s(d){let f=O.c(18),{onAccept:J,onDecline:q,declineExits:m}=d,K;if(f[0]===Symbol.for("react.memo_cache_sentinel"))K=[],f[0]=K;else K=f[0];T.default.useEffect(u,K);let Q;if(f[1]!==J||f[2]!==q)Q=function(C){f:switch(C){case"accept":{H("",{}),B("userSettings",{skipAutoPermissionPrompt:!0}),J();break f}case"accept-default":{H("",{}),B("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),J();break f}case"decline":H("",{}),q()}},f[1]=J,f[2]=q,f[3]=Q;else Q=f[3];let k=Q,V;if(f[4]===Symbol.for("react.memo_cache_sentinel"))V=L(U,{flexDirection:"column",gap:1,children:[Z(F,{children:v}),Z(I,{url:"https://code.claude.com/docs/en/security"})]}),f[4]=V;else V=f[4];let W;if(f[5]===Symbol.for("react.memo_cache_sentinel"))W=[{label:"Yes, and make it my default mode",value:"accept-default"}],f[5]=W;else W=f[5];let X;if(f[6]===Symbol.for("react.memo_cache_sentinel"))X={label:"Yes, enable auto mode",value:"accept"},f[6]=X;else X=f[6];let y=m?"No, exit":"No, go back",w;if(f[7]!==y)w=[...W,X,{label:y,value:"decline"}],f[7]=y,f[8]=w;else w=f[8];let z;if(f[9]!==k)z=(M)=>k(M),f[9]=k,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=Z(h,{options:w,onChange:z,onCancel:q}),f[11]=q,f[12]=w,f[13]=z,f[14]=G;else G=f[14];let Y;if(f[15]!==q||f[16]!==G)Y=L(R,{title:"Enable auto mode?",color:"warning",onCancel:q,children:[V,G]}),f[15]=q,f[16]=G,f[17]=Y;else Y=f[17];return Y}function u(){H("",{})}
|
|
2
|
+
export{v as Ya,s as Za};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{qsa as p,rsa as a}from"./cli-1.1.14-gvh2m03s.mjs";import{Csa as i}from"./cli-1.1.14-r930b2z3.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
|
|
2
|
+
export{u as l9};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Esa as j}from"./cli-1.1.14-r930b2z3.mjs";function G(){return`claude-swarm-${process.pid}`}var q="team-lead",A="claude-swarm",B="swarm-view",D="tmux",F="claude-hidden",H="CLAUDE_CODE_TEAMMATE_COMMAND";var k=()=>{};
|
|
2
|
+
export{q as _2,A as $2,B as a3,D as b3,F as c3,G as d3,H as e3,k as f3};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{JX as P,UX as g}from"./cli-1.1.14-rmjnqb9b.mjs";import{k2 as C,n2 as d}from"./cli-1.1.14-3f4fg0jf.mjs";import{t_ as A,u$ as T,v$ as u,v_ as U,w_ as w}from"./cli-1.1.14-q1kc6b8n.mjs";import{Zja as O,_ja as W,cka as c,uka as X,xja as R,xka as h,zja as F}from"./cli-1.1.14-db3mxak8.mjs";import{$ka as m,Uka as V,Zka as N}from"./cli-1.1.14-fwakcyhj.mjs";import{cla as k,nla as S}from"./cli-1.1.14-83ng5cjk.mjs";import{Sqa as D,Tma as B,Xma as E,Zma as M}from"./cli-1.1.14-f9dpkjv9.mjs";import{Esa as $}from"./cli-1.1.14-r930b2z3.mjs";function H(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function e(q,G=10){if(process.platform==="win32"){let L=`
|
|
2
|
+
$pid = ${String(q)}
|
|
3
|
+
$ancestors = @()
|
|
4
|
+
for ($i = 0; $i -lt ${G}; $i++) {
|
|
5
|
+
$proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
|
|
6
|
+
if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
|
|
7
|
+
$pid = $proc.ParentProcessId
|
|
8
|
+
$ancestors += $pid
|
|
9
|
+
}
|
|
10
|
+
$ancestors -join ','
|
|
11
|
+
`.trim(),Q=await U("powershell.exe",["-NoProfile","-Command",L],{timeout:3000});if(Q.code!==0||!Q.stdout?.trim())return[];return Q.stdout.trim().split(",").filter(Boolean).map((Z)=>parseInt(Z,10)).filter((Z)=>!isNaN(Z))}let J=`pid=${String(q)}; for i in $(seq 1 ${G}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await U("sh",["-c",J],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
|
|
12
|
+
`).filter(Boolean).map((L)=>parseInt(L,10)).filter((L)=>!isNaN(L))}function qq(q){try{let G=String(q),J=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${G}\\").CommandLine"`:`ps -o command= -p ${G}`,z=A(J,{timeout:1000});return z?z.trim():null}catch{return null}}async function zq(q,G=10){if(process.platform==="win32"){let L=`
|
|
13
|
+
$currentPid = ${String(q)}
|
|
14
|
+
$commands = @()
|
|
15
|
+
for ($i = 0; $i -lt ${G}; $i++) {
|
|
16
|
+
$proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
|
|
17
|
+
if (-not $proc) { break }
|
|
18
|
+
if ($proc.CommandLine) { $commands += $proc.CommandLine }
|
|
19
|
+
if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
|
|
20
|
+
$currentPid = $proc.ParentProcessId
|
|
21
|
+
}
|
|
22
|
+
$commands -join [char]0
|
|
23
|
+
`.trim(),Q=await U("powershell.exe",["-NoProfile","-Command",L],{timeout:3000});if(Q.code!==0||!Q.stdout?.trim())return[];return Q.stdout.split("\x00").filter(Boolean)}let J=`currentpid=${String(q)}; for i in $(seq 1 ${G}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await U("sh",["-c",J],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var K=$(()=>{w()});import{chmod as a,mkdir as l,readdir as p,readFile as o,unlink as I,writeFile as j}from"fs/promises";import{join as Y}from"path";function _(){return Y(k(),"sessions")}function n(){return}async function vq(){if(P()!=null)return!1;let q=n()??"interactive",G=_(),J=Y(G,`${process.pid}.json`);R(async()=>{try{await I(J)}catch{}});try{return await l(G,{recursive:!0,mode:448}),await a(G,448),await j(J,O({pid:process.pid,sessionId:B(),cwd:M(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),y?.(),y=E((z)=>{v({sessionId:z})}),!0}catch(z){return X(`[concurrentSessions] register failed: ${V(z)}`),!1}}async function v(q){let G=Y(_(),`${process.pid}.json`);try{let J=W(await o(G,"utf8"));await j(G,O({...J,...q}))}catch(J){X(`[concurrentSessions] updatePidFile failed: ${V(J)}`)}}async function Aq(q){if(!q)return;await v({name:q})}async function b(q){await v({bridgeSessionId:q})}async function Hq(){let q=_(),G;try{G=await p(q)}catch(z){if(!N(z))X(`[concurrentSessions] readdir failed: ${V(z)}`);return 0}let J=0;for(let z of G){if(!/^\d+\.json$/.test(z))continue;let L=parseInt(z.slice(0,-5),10);if(L===process.pid){J++;continue}if(H(L))J++;else if(T()!=="wsl")I(Y(q,z)).catch(()=>{})}return J}var y;var f=$(()=>{D();F();h();S();m();K();u();c();g()});function Eq(q){x=q,b(t()??null).catch(()=>{})}function r(){return x}function t(){let q=r();return q?C(q.bridgeSessionId):void 0}var x=null;var s=$(()=>{f();d()});
|
|
24
|
+
export{H as oX,e as pX,qq as qX,zq as rX,K as sX,vq as tX,Aq as uX,b as vX,Hq as wX,f as xX,Eq as yX,r as zX,t as AX,s as BX};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{MR as b,YN as V,_N as z,dx as L,ek as J,ex as v}from"./cli-1.1.14-8fx5qjh6.mjs";import{Daa as F,Iaa as X}from"./cli-1.1.14-q1kc6b8n.mjs";import{Aia as k,wia as Y,yia as A,zia as H}from"./cli-1.1.14-ec6d00xg.mjs";import{rja as W,uja as R}from"./cli-1.1.14-f5bvc359.mjs";import{uka as D,xka as f}from"./cli-1.1.14-db3mxak8.mjs";import{Ioa as q,Sqa as M}from"./cli-1.1.14-f9dpkjv9.mjs";import{Esa as C}from"./cli-1.1.14-r930b2z3.mjs";function T(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>$?G.slice(-$):G}async function p(U,Q){let G=U.trim();if(!G)return null;try{let w=await V({systemPrompt:L([P]),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:q(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=J(w.message.content),B=I().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return W("",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),W("",{success:!1}),"Claudin"}}var $=1000,P=`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"}`,I;var _=C(()=>{A();M();R();z();f();X();k();b();v();I=H(()=>Y.object({title:Y.string()}))});
|
|
15
|
+
export{T as je,p as ke,_ as le};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Y7 as S,c5 as j,f5 as h,q7 as b,r7 as l,w8 as c}from"./cli-1.1.14-6ex3vykg.mjs";import{V9 as F,W9 as D}from"./cli-1.1.14-n1hm0gd6.mjs";import{pga as y,xga as I}from"./cli-1.1.14-q1kc6b8n.mjs";import{Aia as E,xia as $,yia as R,zia as _}from"./cli-1.1.14-ec6d00xg.mjs";import{pja as v,qja as m}from"./cli-1.1.14-ry5bys5g.mjs";import{Zja as M,cka as U,uka as W,xka as z}from"./cli-1.1.14-db3mxak8.mjs";import{$ka as O,Tka as k,Uka as q}from"./cli-1.1.14-fwakcyhj.mjs";import{Mra as Y,csa as T}from"./cli-1.1.14-pa5nsjfc.mjs";import{Esa as A}from"./cli-1.1.14-r930b2z3.mjs";import{randomUUID as d}from"crypto";function u(J){if(!Y.isAxiosError(J))return!1;if(!J.response)return!0;if(J.response.status>=500)return!0;return!1}async function p(J,B){let N;for(let K=0;K<=x;K++)try{return await Y.get(J,B)}catch(Q){if(N=Q,!u(Q))throw Q;if(K>=x)throw W(`Teleport request failed after ${K+1} attempts: ${q(Q)}`),Q;let V=f[K]??2000;W(`Teleport request failed (attempt ${K+1}/${x+1}), retrying in ${V}ms: ${q(Q)}`),await b(V)}throw N}async function C(){let J=S()?.accessToken;if(J===void 0)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let B=await j();if(!B)throw Error("Unable to get organization UUID");return{accessToken:J,orgUUID:B}}async function BJ(){let{accessToken:J,orgUUID:B}=await C(),N=`${v().BASE_API_URL}/v1/sessions`;try{let K={...L(J),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},Q=await p(N,{headers:K});if(Q.status!==200)throw Error(`Failed to fetch code sessions: ${Q.statusText}`);return Q.data.data.map((Z)=>{let X=Z.session_context.sources.find((G)=>G.type==="git_repository"),H=null;if(X?.url){let G=F(X.url);if(G){let[w,P]=G.split("/");if(w&&P)H={name:P,owner:{login:w},default_branch:X.revision||void 0}}}return{id:Z.id,title:Z.title||"Untitled",description:"",status:Z.session_status,repo:H,turns:[],created_at:Z.created_at,updated_at:Z.updated_at}})}catch(K){let Q=k(K);throw y(Q),K}}function L(J){return{Authorization:`Bearer ${J}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"}}async function NJ(J){let{accessToken:B,orgUUID:N}=await C(),K=`${v().BASE_API_URL}/v1/sessions/${J}`,Q={...L(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":N},V=await Y.get(K,{headers:Q,timeout:15000,validateStatus:(Z)=>Z<500});if(V.status!==200){let X=V.data?.error?.message;if(V.status===404)throw Error(`Session not found: ${J}`);if(V.status===401)throw Error("Session expired. Please run /login to sign in again.");throw Error(X||`Failed to fetch session: ${V.status} ${V.statusText}`)}return V.data}function WJ(J){return J.session_context.outcomes?.find((N)=>N.type==="git_repository")?.git_info?.branches[0]}async function GJ(J,B,N){try{let{accessToken:K,orgUUID:Q}=await C(),V=`${v().BASE_API_URL}/v1/sessions/${J}/events`,Z={...L(K),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Q},H={events:[{uuid:N?.uuid??d(),session_id:J,type:"user",parent_tool_use_id:null,message:{role:"user",content:B}}]};W(`[sendEventToRemoteSession] Sending event to session ${J}`);let G=await Y.post(V,H,{headers:Z,validateStatus:(w)=>w<500,timeout:30000});if(G.status===200||G.status===201)return W(`[sendEventToRemoteSession] Successfully sent event to session ${J}`),!0;return W(`[sendEventToRemoteSession] Failed with status ${G.status}: ${M(G.data)}`),!1}catch(K){return W(`[sendEventToRemoteSession] Error: ${q(K)}`),!1}}async function XJ(J,B){try{let{accessToken:N,orgUUID:K}=await C(),Q=`${v().BASE_API_URL}/v1/sessions/${J}`,V={...L(N),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":K};W(`[updateSessionTitle] Updating title for session ${J}: "${B}"`);let Z=await Y.patch(Q,{title:B},{headers:V,validateStatus:(X)=>X<500});if(Z.status===200)return W(`[updateSessionTitle] Successfully updated title for session ${J}`),!0;return W(`[updateSessionTitle] Failed with status ${Z.status}: ${M(Z.data)}`),!1}catch(N){return W(`[updateSessionTitle] Error: ${q(N)}`),!1}}var f,x,$J;var g=A(()=>{T();m();h();R();c();z();D();O();E();I();l();U();f=[2000,4000,8000,16000],x=f.length;$J=_(()=>$.object({id:$.string(),title:$.string(),description:$.string(),status:$.enum(["idle","working","waiting","completed","archived","cancelled","rejected"]),repo:$.object({name:$.string(),owner:$.object({login:$.string()}),default_branch:$.string().optional()}).nullable(),turns:$.array($.string()),created_at:$.string(),updated_at:$.string()}))});
|
|
2
|
+
export{u as $3,p as a4,$J as b4,C as c4,BJ as d4,L as e4,NJ as f4,WJ as g4,GJ as h4,XJ as i4,g as j4};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{MR as C,aK as O,as as K,bs as X,ek as J,uE as L,vE as Y}from"./cli-1.1.14-8fx5qjh6.mjs";import{Esa as V}from"./cli-1.1.14-r930b2z3.mjs";function N(z){let y=[],D=z.matchAll(Z);for(let v of D)if(v.index!==void 0)y.push({word:v[0],start:v.index,end:v.index+v[0].length});return y}async function W({question:z,cacheSafeParams:y}){let D=`<system-reminder>This is a side question from the user. You must answer this question directly in a single response.
|
|
2
|
+
|
|
3
|
+
IMPORTANT CONTEXT:
|
|
4
|
+
- You are a separate, lightweight agent spawned to answer this one question
|
|
5
|
+
- The main agent is NOT interrupted - it continues working independently in the background
|
|
6
|
+
- You share the conversation context but are a completely separate instance
|
|
7
|
+
- Do NOT reference being interrupted or what you were "previously doing" - that framing is incorrect
|
|
8
|
+
|
|
9
|
+
CRITICAL CONSTRAINTS:
|
|
10
|
+
- You have NO tools available - you cannot read files, run commands, search, or take any actions
|
|
11
|
+
- This is a one-off response - there will be no follow-up turns
|
|
12
|
+
- You can ONLY provide information based on what you already know from the conversation context
|
|
13
|
+
- NEVER say things like "Let me try...", "I'll now...", "Let me check...", or promise to take any action
|
|
14
|
+
- If you don't know the answer, say so - do not offer to look it up or investigate
|
|
15
|
+
|
|
16
|
+
Simply answer the question with the information you have.</system-reminder>
|
|
17
|
+
|
|
18
|
+
${z}`,v=await L({promptMessages:[O({content:D})],cacheSafeParams:y,canUseTool:async()=>({behavior:"deny",message:"Side questions cannot use tools",decisionReason:{type:"other",reason:"side_question"}}),querySource:"side_question",forkLabel:"side_question",maxTurns:1,skipCacheWrite:!0});return{response:$(v.messages),usage:v.totalUsage}}function $(z){let y=z.flatMap((v)=>v.type==="assistant"?v.message.content:[]);if(y.length>0){let v=J(y,`
|
|
19
|
+
|
|
20
|
+
`).trim();if(v)return v;let G=y.find((H)=>H.type==="tool_use");if(G)return`(The model tried to call ${"name"in G?G.name:"a tool"} instead of answering directly. Try rephrasing or ask in the main conversation.)`}let D=z.find((v)=>v.type==="system"&&("subtype"in v)&&v.subtype==="api_error");if(D)return`(API error: ${K(D.error)})`;return null}var Z;var w=V(()=>{X();Y();C();Z=/^\/btw\b/gi});
|
|
21
|
+
export{N as Jh,W as Kh,w as Lh};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{tsa as x,vsa as y,zsa as C}from"./cli-1.1.14-prtez07m.mjs";import{Csa as k}from"./cli-1.1.14-r930b2z3.mjs";var MF=k((n)=>{var K=x(),b=C(),w=y(),f=(F)=>F[K.SMITHY_CONTEXT_KEY]||(F[K.SMITHY_CONTEXT_KEY]={}),h=(F,J)=>{if(!J||J.length===0)return F;let G=[];for(let L of J)for(let Q of F)if(Q.schemeId.split("#")[1]===L)G.push(Q);for(let L of F)if(!G.find(({schemeId:Q})=>Q===L.schemeId))G.push(L);return G};function v(F){let J=new Map;for(let G of F)J.set(G.schemeId,G);return J}var j=(F,J)=>(G,L)=>async(Q)=>{let V=F.httpAuthSchemeProvider(await J.httpAuthSchemeParametersProvider(F,L,Q.input)),W=F.authSchemePreference?await F.authSchemePreference():[],Z=h(V,W),Y=v(F.httpAuthSchemes),U=w.getSmithyContext(L),$=[];for(let X of Z){let B=Y.get(X.schemeId);if(!B){$.push(`HttpAuthScheme \`${X.schemeId}\` was not enabled for this service.`);continue}let D=B.identityProvider(await J.identityProviderConfigProvider(F));if(!D){$.push(`HttpAuthScheme \`${X.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:N={},signingProperties:R={}}=X.propertiesExtractor?.(F,L)||{};X.identityProperties=Object.assign(X.identityProperties||{},N),X.signingProperties=Object.assign(X.signingProperties||{},R),U.selectedHttpAuthScheme={httpAuthOption:X,identity:await D(X.identityProperties),signer:B.signer};break}if(!U.selectedHttpAuthScheme)throw Error($.join(`
|
|
2
|
+
`));return G(Q)},H={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},P=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),H)}}),M={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},l=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),M)}}),m=(F)=>(J)=>{throw J},u=(F,J)=>{},O=(F)=>(J,G)=>async(L)=>{if(!b.HttpRequest.isInstance(L.request))return J(L);let V=w.getSmithyContext(G).selectedHttpAuthScheme;if(!V)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:W={}},identity:Z,signer:Y}=V,U=await J({...L,request:await Y.sign(L.request,Z,W)}).catch((Y.errorHandler||m)(W));return(Y.successHandler||u)(U.response,W),U},I={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},c=(F)=>({applyToStack:(J)=>{J.addRelativeTo(O(),I)}}),a=(F)=>{if(typeof F==="function")return F;let J=Promise.resolve(F);return()=>J},d=async(F,J,G,L=(V)=>V,...Q)=>{let V=new F(G);return V=L(V)??V,await J.send(V,...Q)};function g(F,J,G,L,Q){return async function*(W,Z,...Y){let U=Z,$=W.startingToken??U[G],X=!0,B;while(X){if(U[G]=$,Q)U[Q]=U[Q]??W.pageSize;if(W.client instanceof F)B=await d(J,W.client,Z,W.withCommand,...Y);else throw Error(`Invalid client, expected instance of ${F.name}`);yield B;let D=$;$=p(B,L),X=!!($&&(!W.stopOnSameToken||$!==D))}return}}var p=(F,J)=>{let G=F,L=J.split(".");for(let Q of L){if(!G||typeof G!=="object")return;G=G[Q]}return G};function s(F,J,G){if(!F.__smithy_context)F.__smithy_context={features:{}};else if(!F.__smithy_context.features)F.__smithy_context.features={};F.__smithy_context.features[J]=G}class E{authSchemes=new Map;constructor(F){for(let J in F){let G=F[J];if(G!==void 0)this.authSchemes.set(J,G)}}getIdentityProvider(F){return this.authSchemes.get(F)}}class _{async sign(F,J,G){if(!G)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!G.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!G.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!J.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let L=b.HttpRequest.clone(F);if(G.in===K.HttpApiKeyAuthLocation.QUERY)L.query[G.name]=J.apiKey;else if(G.in===K.HttpApiKeyAuthLocation.HEADER)L.headers[G.name]=G.scheme?`${G.scheme} ${J.apiKey}`:J.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+G.in+"`");return L}}class z{async sign(F,J,G){let L=b.HttpRequest.clone(F);if(!J.token)throw Error("request could not be signed with `token` since the `token` is not defined");return L.headers.Authorization=`Bearer ${J.token}`,L}}class A{async sign(F,J,G){return F}}var q=(F)=>function(G){return S(G)&&G.expiration.getTime()-Date.now()<F},T=300000,r=q(T),S=(F)=>F.expiration!==void 0,o=(F,J,G)=>{if(F===void 0)return;let L=typeof F!=="function"?async()=>Promise.resolve(F):F,Q,V,W,Z=!1,Y=async(U)=>{if(!V)V=L(U);try{Q=await V,W=!0,Z=!1}finally{V=void 0}return Q};if(J===void 0)return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);return Q};return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);if(Z)return Q;if(!G(Q))return Z=!0,Q;if(J(Q))return await Y(U),Q;return Q}};n.requestBuilder=b.requestBuilder;n.DefaultIdentityProviderConfig=E;n.EXPIRATION_MS=T;n.HttpApiKeyAuthSigner=_;n.HttpBearerAuthSigner=z;n.NoAuthSigner=A;n.createIsIdentityExpiredFunction=q;n.createPaginator=g;n.doesIdentityRequireRefresh=S;n.getHttpAuthSchemeEndpointRuleSetPlugin=P;n.getHttpAuthSchemePlugin=l;n.getHttpSigningPlugin=c;n.getSmithyContext=f;n.httpAuthSchemeEndpointRuleSetMiddlewareOptions=H;n.httpAuthSchemeMiddleware=j;n.httpAuthSchemeMiddlewareOptions=M;n.httpSigningMiddleware=O;n.httpSigningMiddlewareOptions=I;n.isIdentityExpired=r;n.memoizeIdentityProvider=o;n.normalizeProvider=a;n.setFeature=s});
|
|
3
|
+
export{MF as O9};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{zsa as Z}from"./cli-1.1.14-prtez07m.mjs";import{Csa as Y,Fsa as O}from"./cli-1.1.14-r930b2z3.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
|
|
2
|
+
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
3
|
+
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
|
|
4
|
+
export{ye as ssa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{R9 as Z,V9 as _,W9 as w}from"./cli-1.1.14-n1hm0gd6.mjs";import{F_ as Y,G_ as U,R_ as $,Rea as j,caa as k,s$ as T,tea as W,wea as V,zaa as D}from"./cli-1.1.14-q1kc6b8n.mjs";import{uka as N,xka as M}from"./cli-1.1.14-db3mxak8.mjs";import{Sqa as O,Zma as X}from"./cli-1.1.14-f9dpkjv9.mjs";O();j();M();w();D();U();T();import{realpath as x}from"fs/promises";async function y(){try{let q=await Z();if(!q){N("Not in a GitHub repository, skipping path mapping update");return}let A=X(),z=$(A)??A,B;try{B=(await x(z)).normalize("NFC")}catch{B=z}let J=q.toLowerCase(),L=V().githubRepoPaths?.[J]??[];if(L[0]===B){N(`Path ${B} already tracked for repo ${J}`);return}let E=L.filter((S)=>S!==B),H=[B,...E];W((S)=>({...S,githubRepoPaths:{...S.githubRepoPaths,[J]:H}})),N(`Added ${B} to tracked paths for repo ${J}`)}catch(q){N(`Error updating repo path mapping: ${q}`)}}function f(q){let A=V(),I=q.toLowerCase();return A.githubRepoPaths?.[I]??[]}async function P(q){let A=await Promise.all(q.map(k));return q.filter((I,z)=>A[z])}async function d(q,A){try{let I=await Y(q);if(!I)return!1;let z=_(I);if(!z)return!1;return z.toLowerCase()===A.toLowerCase()}catch{return!1}}function l(q,A){let I=V(),z=q.toLowerCase(),B=I.githubRepoPaths?.[z]??[],J=B.filter((L)=>L!==A);if(J.length===B.length)return;let Q={...I.githubRepoPaths};if(J.length===0)delete Q[z];else Q[z]=J;W((L)=>({...L,githubRepoPaths:Q})),N(`Removed ${A} from tracked paths for repo ${z}`)}
|
|
2
|
+
export{y as Sb,f as Tb,P as Ub,d as Vb,l as Wb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Esa as s}from"./cli-1.1.14-r930b2z3.mjs";function c(){return"claude-code/99.0.0"}function i(){let e=process.env.CLAUDE_CODE_ENTRYPOINT??"cli",n=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",t=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claudin/1.1.14 (${e}${n}${t})`}var r=()=>{};
|
|
2
|
+
export{c as Y3,i as Z3,r as _3};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{I0 as k,K0 as y,Q0 as MQ,Z0 as _Q,_0 as aQ,c1 as d,jZ as u,n1 as a,v0 as QQ,w0 as uQ}from"./cli-1.1.14-hdkyecme.mjs";import{L3 as K,M3 as l,N3 as m}from"./cli-1.1.14-az6pbe66.mjs";import{O3 as v}from"./cli-1.1.14-pgkjn3yw.mjs";import{c4 as n,e4 as t,j4 as YV}from"./cli-1.1.14-1zf42f1b.mjs";import{b8 as $Q,e8 as P,h8 as pQ,w8 as XV}from"./cli-1.1.14-6ex3vykg.mjs";import{Rda as mQ,Rea as QV,Sda as eQ,pga as CQ,tea as fQ,wea as x,xga as VV}from"./cli-1.1.14-q1kc6b8n.mjs";import{Cga as IQ,Dga as sQ}from"./cli-1.1.14-byr5dy4k.mjs";import{pja as r,qja as nQ}from"./cli-1.1.14-ry5bys5g.mjs";import{uka as E,xka as iQ}from"./cli-1.1.14-db3mxak8.mjs";import{Mra as i,csa as tQ}from"./cli-1.1.14-pa5nsjfc.mjs";import{Asa as T,Esa as F}from"./cli-1.1.14-r930b2z3.mjs";function XQ(){let X=VQ.useContext(QQ);if(!X)throw Error("useTerminalSize must be used within an Ink App component");return X}var VQ;var YQ=F(()=>{uQ();VQ=T(v(),1)});function ZQ(X,Q){if(Q.escape)return"escape";if(Q.return)return"enter";if(Q.tab)return"tab";if(Q.backspace)return"backspace";if(Q.delete)return"delete";if(Q.upArrow)return"up";if(Q.downArrow)return"down";if(Q.leftArrow)return"left";if(Q.rightArrow)return"right";if(Q.pageUp)return"pageup";if(Q.pageDown)return"pagedown";if(Q.wheelUp)return"wheelup";if(Q.wheelDown)return"wheeldown";if(Q.home)return"home";if(Q.end)return"end";if(X.length===1)return X.toLowerCase();return null}var GQ=()=>{};function JQ(X){let Q=X.split("+"),V={key:"",ctrl:!1,alt:!1,shift:!1,meta:!1,super:!1};for(let Z of Q){let Y=Z.toLowerCase();switch(Y){case"ctrl":case"control":V.ctrl=!0;break;case"alt":case"opt":case"option":V.alt=!0;break;case"shift":V.shift=!0;break;case"meta":V.meta=!0;break;case"cmd":case"command":case"super":case"win":V.super=!0;break;case"esc":V.key="escape";break;case"return":V.key="enter";break;case"space":V.key=" ";break;case"↑":V.key="up";break;case"↓":V.key="down";break;case"←":V.key="left";break;case"→":V.key="right";break;default:V.key=Y;break}}return V}function hQ(X){if(X===" ")return[JQ("space")];return X.trim().split(/\s+/).map(JQ)}function yQ(X){let Q=[];if(X.ctrl)Q.push("ctrl");if(X.alt)Q.push("alt");if(X.shift)Q.push("shift");if(X.meta)Q.push("meta");if(X.super)Q.push("cmd");let V=lQ(X.key);return Q.push(V),Q.join("+")}function lQ(X){switch(X){case"escape":return"Esc";case" ":return"Space";case"tab":return"tab";case"enter":return"Enter";case"backspace":return"Backspace";case"delete":return"Delete";case"up":return"↑";case"down":return"↓";case"left":return"←";case"right":return"→";case"pageup":return"PageUp";case"pagedown":return"PageDown";case"home":return"Home";case"end":return"End";default:return X}}function c(X){return X.map(yQ).join(" ")}function NV(X){let Q=[];for(let V of X)for(let[Z,Y]of Object.entries(V.bindings))Q.push({chord:hQ(Z),action:Y,context:V.context});return Q}var LQ=()=>{};function qQ(X,Q,V){let Z=V.findLast((Y)=>Y.action===X&&Y.context===Q);return Z?c(Z.chord):void 0}function kQ(X,Q){let V=ZQ(X,Q);if(!V)return null;let Z=Q.escape?!1:Q.meta;return{key:V,ctrl:Q.ctrl,alt:Z,shift:Q.shift,meta:Z,super:Q.super}}function HQ(X,Q){return X.key===Q.key&&X.ctrl===Q.ctrl&&X.shift===Q.shift&&(X.alt||X.meta)===(Q.alt||Q.meta)&&X.super===Q.super}function cQ(X,Q){if(X.length>=Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function gQ(X,Q){if(X.length!==Q.chord.length)return!1;for(let V=0;V<X.length;V++){let Z=X[V],Y=Q.chord[V];if(!Z||!Y)return!1;if(!HQ(Z,Y))return!1}return!0}function zQ(X,Q,V,Z,Y){if(Q.escape&&Y!==null)return{type:"chord_cancelled"};let G=kQ(X,Q);if(!G){if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}let J=Y?[...Y,G]:[G],L=new Set(V),N=Z.filter((q)=>L.has(q.context)),z=new Map;for(let q of N)if(q.chord.length>J.length&&cQ(J,q))z.set(c(q.chord),q.action);let B=!1;for(let q of z.values())if(q!==null){B=!0;break}if(B)return{type:"chord_started",pending:J};let H;for(let q of N)if(gQ(J,q))H=q;if(H){if(H.action===null)return{type:"unbound"};return{type:"match",action:H.action}}if(Y!==null)return{type:"chord_cancelled"};return{type:"none"}}var NQ=F(()=>{GQ();LQ()});function TV(X){let Q=g.c(24),{bindings:V,pendingChordRef:Z,pendingChord:Y,setPendingChord:G,activeContexts:J,registerActiveContext:L,unregisterActiveContext:N,handlerRegistryRef:z,children:B}=X,H;if(Q[0]!==V)H=(U,O)=>qQ(U,O,V),Q[0]=V,Q[1]=H;else H=Q[1];let q=H,w;if(Q[2]!==z)w=(U)=>{let O=z.current;if(!O)return dQ;if(!O.has(U.action))O.set(U.action,new Set);return O.get(U.action)?.add(U),()=>{let S=O.get(U.action);if(S){if(S.delete(U),S.size===0)O.delete(U.action)}}},Q[2]=z,Q[3]=w;else w=Q[3];let p=w,D;if(Q[4]!==J||Q[5]!==z)D=(U)=>{let O=z.current;if(!O)return!1;let S=O.get(U);if(!S||S.size===0)return!1;for(let e of S)if(J.has(e.context))return e.handler(),!0;return!1},Q[4]=J,Q[5]=z,Q[6]=D;else D=Q[6];let A=D,_;if(Q[7]!==V||Q[8]!==Z)_=(U,O,S)=>zQ(U,O,S,V,Z.current),Q[7]=V,Q[8]=Z,Q[9]=_;else _=Q[9];let I;if(Q[10]!==J||Q[11]!==V||Q[12]!==q||Q[13]!==A||Q[14]!==Y||Q[15]!==L||Q[16]!==p||Q[17]!==G||Q[18]!==_||Q[19]!==N)I={resolve:_,setPendingChord:G,getDisplayText:q,bindings:V,pendingChord:Y,activeContexts:J,registerActiveContext:L,unregisterActiveContext:N,registerHandler:p,invokeAction:A},Q[10]=J,Q[11]=V,Q[12]=q,Q[13]=A,Q[14]=Y,Q[15]=L,Q[16]=p,Q[17]=G,Q[18]=_,Q[19]=N,Q[20]=I;else I=Q[20];let j=I,W;if(Q[21]!==B||Q[22]!==j)W=K(BQ.Provider,{value:j,children:B}),Q[21]=B,Q[22]=j,Q[23]=W;else W=Q[23];return W}function dQ(){}function h(){return f.useContext(BQ)}function KV(X,Q){let V=g.c(5),Z=Q===void 0?!0:Q,Y=h(),G,J;if(V[0]!==X||V[1]!==Z||V[2]!==Y)G=()=>{if(!Y||!Z)return;return Y.registerActiveContext(X),()=>{Y.unregisterActiveContext(X)}},J=[X,Y,Z],V[0]=X,V[1]=Z,V[2]=Y,V[3]=G,V[4]=J;else G=V[3],J=V[4];f.useLayoutEffect(G,J)}var g,f,BQ;var UQ=F(()=>{NQ();m();g=T(u(),1),f=T(v(),1),BQ=f.createContext(null)});function RV(X,Q,V={}){let{context:Z="Global",isActive:Y=!0}=V,G=h();C.useEffect(()=>{if(!G||!Y)return;return G.registerHandler({action:X,context:Z,handler:Q})},[X,Z,Q,G,Y]);let J=C.useCallback((L,N,z)=>{if(!G)return;let B=[...G.activeContexts,Z,"Global"],H=[...new Set(B)],q=G.resolve(L,N,H);switch(q.type){case"match":if(G.setPendingChord(null),q.action===X){if(Q()!==!1)z.stopImmediatePropagation()}break;case"chord_started":G.setPendingChord(q.pending),z.stopImmediatePropagation();break;case"chord_cancelled":G.setPendingChord(null);break;case"unbound":G.setPendingChord(null),z.stopImmediatePropagation();break;case"none":break}},[X,Z,Q,G]);d(J,{isActive:Y})}function OQ(X,Q={}){let{context:V="Global",isActive:Z=!0}=Q,Y=h();C.useEffect(()=>{if(!Y||!Z)return;let J=[];for(let[L,N]of Object.entries(X))J.push(Y.registerHandler({action:L,context:V,handler:N}));return()=>{for(let L of J)L()}},[V,X,Y,Z]);let G=C.useCallback((J,L,N)=>{if(!Y)return;let z=[...Y.activeContexts,V,"Global"],B=[...new Set(z)],H=Y.resolve(J,L,B);switch(H.type){case"match":if(Y.setPendingChord(null),H.action in X){let q=X[H.action];if(q&&q()!==!1)N.stopImmediatePropagation()}break;case"chord_started":Y.setPendingChord(H.pending),N.stopImmediatePropagation();break;case"chord_cancelled":Y.setPendingChord(null);break;case"unbound":Y.setPendingChord(null),N.stopImmediatePropagation();break;case"none":break}},[V,X,Y]);d(G,{isActive:Z})}var C;var wQ=F(()=>{a();UQ();C=T(v(),1)});function o(X,Q,V){let Z=M.useRef(0),Y=M.useRef(void 0),G=M.useCallback(()=>{if(Y.current)clearTimeout(Y.current),Y.current=void 0},[]);return M.useEffect(()=>{return()=>{G()}},[G]),M.useCallback(()=>{let J=Date.now();if(J-Z.current<=FQ&&Y.current!==void 0)G(),X(!1),Q();else V?.(),X(!0),G(),Y.current=setTimeout((z,B)=>{z(!1),B.current=void 0},FQ,X,Y);Z.current=J},[X,Q,V,G])}var M,FQ=800;var WQ=F(()=>{M=T(v(),1)});function jQ(X,Q,V,Z=!0){let{exit:Y}=_Q(),[G,J]=R.useState({pending:!1,keyName:null}),L=R.useMemo(()=>V??Y,[V,Y]),N=o((w)=>J({pending:w,keyName:"Ctrl-C"}),L),z=o((w)=>J({pending:w,keyName:"Ctrl-D"}),L),B=R.useCallback(()=>{if(Q?.())return;N()},[N,Q]),H=R.useCallback(()=>{z()},[z]),q=R.useMemo(()=>({"app:interrupt":B,"app:exit":H}),[B,H]);return X(q,{context:"Global",isActive:Z}),G}var R;var TQ=F(()=>{aQ();WQ();R=T(v(),1)});function $V(X,Q,V){return jQ(OQ,Q,X,V)}var oQ=F(()=>{wQ();TQ()});function SQ(){return $.useContext(s)!==null}function bV(X){let Q=KQ.c(3),V=$.useContext(s),Z;if(Q[0]!==V||Q[1]!==X)Z=V?{rows:V.rows,columns:V.columns}:X,Q[0]=V,Q[1]=X,Q[2]=Z;else Z=Q[2];return Z}function xV(){return $.useContext(s)?.scrollRef??null}var KQ,$,s;var AQ=F(()=>{KQ=T(u(),1),$=T(v(),1),s=$.createContext(null)});function DQ(X){let Q=RQ.c(21),{width:V,color:Z,char:Y,padding:G,title:J}=X,L=Y===void 0?"─":Y,N=G===void 0?0:G,{columns:z}=XQ(),B=Math.max(0,(V??z)-N);if(J){let p=IQ(J)+2,D=Math.max(0,B-p),A=Math.floor(D/2),_=D-A,I=!Z,j;if(Q[0]!==L||Q[1]!==A)j=L.repeat(A),Q[0]=L,Q[1]=A,Q[2]=j;else j=Q[2];let W;if(Q[3]!==J)W=K(y,{dimColor:!0,children:K(MQ,{children:J})}),Q[3]=J,Q[4]=W;else W=Q[4];let U;if(Q[5]!==L||Q[6]!==_)U=L.repeat(_),Q[5]=L,Q[6]=_,Q[7]=U;else U=Q[7];let O;if(Q[8]!==Z||Q[9]!==I||Q[10]!==j||Q[11]!==W||Q[12]!==U)O=l(y,{color:Z,dimColor:I,children:[j," ",W," ",U]}),Q[8]=Z,Q[9]=I,Q[10]=j,Q[11]=W,Q[12]=U,Q[13]=O;else O=Q[13];return O}let H=!Z,q;if(Q[14]!==L||Q[15]!==B)q=L.repeat(B),Q[14]=L,Q[15]=B,Q[16]=q;else q=Q[16];let w;if(Q[17]!==Z||Q[18]!==H||Q[19]!==q)w=K(y,{color:Z,dimColor:H,children:q}),Q[17]=Z,Q[18]=H,Q[19]=q,Q[20]=w;else w=Q[20];return w}var RQ;var EQ=F(()=>{YQ();sQ();a();m();RQ=T(u(),1)});function oV(X){let Q=PQ.c(9),{children:V,color:Z}=X;if(SQ()){let L;if(Q[0]!==V)L=K(k,{flexDirection:"column",paddingX:1,flexShrink:0,children:V}),Q[0]=V,Q[1]=L;else L=Q[1];return L}let Y;if(Q[2]!==Z)Y=K(DQ,{color:Z}),Q[2]=Z,Q[3]=Y;else Y=Q[3];let G;if(Q[4]!==V)G=K(k,{flexDirection:"column",paddingX:2,children:V}),Q[4]=V,Q[5]=G;else G=Q[5];let J;if(Q[6]!==Y||Q[7]!==G)J=l(k,{flexDirection:"column",paddingTop:1,children:[Y,G]}),Q[6]=Y,Q[7]=G,Q[8]=J;else J=Q[8];return J}var PQ;var rQ=F(()=>{AQ();a();EQ();m();PQ=T(u(),1)});async function ZV(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/eligibility`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:5000})).data}async function ZX(X="claude_code_guest_pass"){let{accessToken:Q,orgUUID:V}=await n(),Z={...t(Q),"x-organization-uuid":V},Y=`${r().BASE_API_URL}/api/oauth/organizations/${V}/referral/redemptions`;return(await i.get(Y,{headers:Z,params:{campaign:X},timeout:1e4})).data}function xQ(){return!!(P()?.organizationUuid&&$Q()&&pQ()==="max")}function GX(){if(!xQ())return{eligible:!1,needsRefresh:!1,hasCache:!1};let X=P()?.organizationUuid;if(!X)return{eligible:!1,needsRefresh:!1,hasCache:!1};let V=x().passesEligibilityCache?.[X];if(!V)return{eligible:!1,needsRefresh:!0,hasCache:!1};let{eligible:Z,timestamp:Y}=V,J=Date.now()-Y>bQ;return{eligible:Z,needsRefresh:J,hasCache:!0}}function JX(X){let Q=GV[X.currency]??`${X.currency} `,V=X.amount_minor_units/100,Z=V%1===0?V.toString():V.toFixed(2);return`${Q}${Z}`}function LX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.referrer_reward??null}function qX(){let X=P()?.organizationUuid;if(!X)return null;return x().passesEligibilityCache?.[X]?.remaining_passes??null}async function vQ(){if(b)return E("Passes: Reusing in-flight eligibility fetch"),b;let X=P()?.organizationUuid;if(!X)return null;return b=(async()=>{try{let Q=await ZV(),V={...Q,timestamp:Date.now()};return fQ((Z)=>({...Z,passesEligibilityCache:{...Z.passesEligibilityCache,[X]:V}})),E(`Passes eligibility cached for org ${X}: ${Q.eligible}`),Q}catch(Q){return E("Failed to fetch and cache passes eligibility"),CQ(Q),null}finally{b=null}})(),b}async function JV(){if(!xQ())return null;let X=P()?.organizationUuid;if(!X)return null;let V=x().passesEligibilityCache?.[X],Z=Date.now();if(!V)return E("Passes: No cache, fetching eligibility in background (command unavailable this session)"),vQ(),null;if(Z-V.timestamp>bQ){E("Passes: Cache stale, returning cached data and refreshing in background"),vQ();let{timestamp:J,...L}=V;return L}E("Passes: Using fresh cached eligibility data");let{timestamp:Y,...G}=V;return G}async function HX(){if(mQ())return;JV()}var bQ=86400000,b=null,GV;var LV=F(()=>{tQ();nQ();XV();QV();iQ();VV();eQ();YV();GV={USD:"$",EUR:"€",GBP:"£",BRL:"R$",CAD:"CA$",AUD:"A$",NZD:"NZ$",SGD:"S$"}});
|
|
2
|
+
export{XQ as VX,YQ as WX,JQ as XX,hQ as YX,c as ZX,NV as _X,LQ as $X,qQ as aY,zQ as bY,NQ as cY,TV as dY,h as eY,KV as fY,UQ as gY,RV as hY,OQ as iY,wQ as jY,o as kY,WQ as lY,$V as mY,oQ as nY,s as oY,SQ as pY,bV as qY,xV as rY,AQ as sY,DQ as tY,EQ as uY,oV as vY,rQ as wY,ZX as xY,GX as yY,JX as zY,LX as AY,qX as BY,JV as CY,HX as DY,LV as EY};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Dsa as x,Esa as z}from"./cli-1.1.14-r930b2z3.mjs";var H={};x(H,{toInfraSessionId:()=>G,toCompatSessionId:()=>F,setCseShimGate:()=>A});function A(j){q=j}function F(j){if(!j.startsWith("cse_"))return j;if(q&&!q())return j;return"session_"+j.slice(4)}function G(j){if(!j.startsWith("session_"))return j;return"cse_"+j.slice(8)}var q;var J=()=>{};
|
|
2
|
+
export{A as j2,F as k2,G as l2,H as m2,J as n2};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Rea as R,u_ as Q,w_ as M,wea as P}from"./cli-1.1.14-q1kc6b8n.mjs";import{uka as G,xka as C}from"./cli-1.1.14-db3mxak8.mjs";import{Esa as j}from"./cli-1.1.14-r930b2z3.mjs";import{promises as I}from"node:fs";import{homedir as y}from"node:os";import K from"node:path";function O(q){let z;try{z=new URL(q)}catch(A){throw Error(`Invalid URL format: ${q}`)}if(z.protocol!=="http:"&&z.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${z.protocol}`)}async function g(q){try{let z=process.platform;if(z==="win32"){let{code:V}=await Q("explorer",[q]);return V===0}let A=z==="darwin"?"open":"xdg-open",{code:J}=await Q(A,[q]);return J===0}catch(z){return!1}}function k(){let q=process.env.XDG_DATA_HOME&&process.env.XDG_DATA_HOME.length>0?process.env.XDG_DATA_HOME:K.join(y(),".local","share");return[K.join(q,"applications"),"/usr/local/share/applications","/usr/share/applications","/var/lib/snapd/desktop/applications","/var/lib/flatpak/exports/share/applications"]}function U(q){let z=q.split(`
|
|
2
|
+
`),A=!1;for(let J of z){let V=J.trim();if(V.startsWith("[")){A=V==="[Desktop Entry]";continue}if(!A)continue;if(!V.startsWith("Exec="))continue;let $=V.slice(5).replace(S,"").replace(/%%/g,"%").trim();if($.length===0)return null;let Y=$.match(/^"([^"]+)"|^(\S+)/);if(!Y)return null;return Y[1]??Y[2]??null}return null}async function L(q){for(let z of k()){let A=K.join(z,q);try{return await I.readFile(A,"utf8")}catch(J){}}return null}async function _(q){let{code:z}=await Q("which",[q],{timeout:X,useCwd:!1});return z===0}async function B(){let{code:q,stdout:z}=await Q("xdg-settings",["get","default-web-browser"],{timeout:X,useCwd:!1});if(q!==0)return null;let A=z.trim();if(A.length===0||!A.endsWith(".desktop"))return null;let J=await L(A);if(J==null)return null;return U(J)}async function N(){for(let q of v)if(await _(q))return q;return null}async function f(){if(Z!==void 0)return Z;try{let q=await B();if(q)return Z=q,q}catch(q){G(`browser: xdg-settings detection failed: ${String(q)}`)}try{let q=await N();return Z=q,q}catch(q){return G(`browser: probe list failed: ${String(q)}`),Z=null,null}}async function W(q,z){let{code:A}=await Q(q,[z]);return A===0}async function w(q){try{O(q);let z=process.env.BROWSER,A=process.platform;if(A==="win32"){if(z){let{code:H}=await Q(z,[`"${q}"`]);return H===0}let{code:Y}=await Q("rundll32",["url,OpenURL",q],{});return Y===0}if(A==="darwin"){let Y=z||"open",{code:H}=await Q(Y,[q]);return H===0}if(z){if(await W(z,q))return!0}let J;try{J=P().oauthBrowser}catch(Y){G(`browser: failed to read oauthBrowser setting: ${String(Y)}`)}if(J&&J.length>0){if(await W(J,q))return!0}let V=await f();if(V){if(await W(V,q))return!0}let{code:$}=await Q("xdg-open",[q]);return $===0}catch(z){return!1}}var S,v,X=2000,Z=void 0;var m=j(()=>{M();C();R();S=/%[fFuUdDnNickvm]/g,v=["brave-browser","brave","firefox","chromium","google-chrome","microsoft-edge"]});
|
|
3
|
+
export{g as k4,w as l4,m as m4};
|