@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,57 @@
|
|
|
1
|
+
import{fa as w6}from"./cli-1.1.14-vq47nhnz.mjs";import{Aa as M2,Ca as e8,Da as X9,Fa as $9,Ga as Y9,ka as kX,la as bX,ma as K2,oa as N1,sa as B8,ta as _8,va as m3,wa as $6,xa as c3,ya as i3}from"./cli-1.1.14-4y2f1s92.mjs";import{Ma as w5,Oa as r6}from"./cli-1.1.14-cfkzk93c.mjs";import{Xa as C2}from"./cli-1.1.14-cydkb96c.mjs";import{bb as S6}from"./cli-1.1.14-7ccy5ssr.mjs";import"./cli-1.1.14-3cc8a830.mjs";import{lb as tX,mb as eX}from"./cli-1.1.14-brw0w20r.mjs";import{ub as H2}from"./cli-1.1.14-tm2g00jj.mjs";import{Ab as j2,Bb as D1,zb as W2}from"./cli-1.1.14-je22trqj.mjs";import"./cli-1.1.14-ryjw96z2.mjs";import"./cli-1.1.14-7nz1bnsz.mjs";import{Dc as aX,Fc as I7}from"./cli-1.1.14-z9cc7bb2.mjs";import"./cli-1.1.14-afnxph29.mjs";import{Jc as V2,Kc as G2,Lc as f6,Mc as h6,Nc as Y1,Oc as e1,Qc as v0}from"./cli-1.1.14-6wh10yar.mjs";import{$c as Z3,ad as n7}from"./cli-1.1.14-ksk5rch9.mjs";import"./cli-1.1.14-ac5krqkz.mjs";import"./cli-1.1.14-esspp1p0.mjs";import{xd as I1,yd as J3}from"./cli-1.1.14-weqr0y1h.mjs";import"./cli-1.1.14-7jt701f6.mjs";import"./cli-1.1.14-vmwd3gk6.mjs";import"./cli-1.1.14-9419wa62.mjs";import{ke as e4,le as u8}from"./cli-1.1.14-1hghs4qh.mjs";import{Pe as q6,Qe as i5,Te as d3,Ue as M6,Ve as s5}from"./cli-1.1.14-6873seek.mjs";import{Kf as g0,Lf as M8,Mf as i7,Nf as z5,Of as K5,Pf as xX,Qf as H5,Rf as y7}from"./cli-1.1.14-63ezr011.mjs";import{rh as L6,th as n8}from"./cli-1.1.14-c41jzsx4.mjs";import{Kh as t4,Lh as d8}from"./cli-1.1.14-256a4dam.mjs";import"./cli-1.1.14-eccdwm9t.mjs";import"./cli-1.1.14-ypbww0jj.mjs";import"./cli-1.1.14-e7mfj9cz.mjs";import{$K as I8,$P as v6,$S as a6,$i as K7,$q as o4,AA as $1,AD as B5,AE as ZX,AN as $3,AR as n5,An as S8,Ar as P3,At as CX,BA as z4,BD as i6,BE as b8,BN as c7,BS as rX,CH as x8,CM as h2,CS as oX,Cp as r0,DD as iX,DE as c8,DK as MX,DS as D0,Dp as c2,Dq as y6,Ds as j6,EG as p4,Eq as T1,Es as g,Ex as m6,FG as f8,FL as T5,FN as v2,Fq as d5,Fx as z9,GL as A2,GM as J1,GS as g3,Gk as _0,Go as s1,Gq as QX,Gs as YX,HE as m5,HK as fX,HQ as s7,Hn as H0,Ho as r4,Hr as Z8,Hs as x1,IE as z8,IM as s2,IN as V1,Ik as j1,In as A1,Is as B6,JE as M3,JL as R2,Jq as t1,KE as f1,KK as hX,KS as F5,Kq as k6,LE as f3,LK as vX,LL as T2,LN as S2,Lu as i1,MD as J2,ME as T6,MN as b1,MR as $5,ND as u0,NM as M4,NN as x2,OC as T3,OD as N5,OE as h3,OK as SX,OM as JX,Os as I6,PC as G8,PD as d1,PM as f5,PN as Y3,PS as X6,Pk as DX,Ps as h0,QD as l,QM as t2,QN as h5,QT as F3,RD as u1,RM as p0,RR as p3,RT as L3,Rj as j5,Rk as L7,Ro as Q1,Rs as t0,SD as o5,SR as W8,ST as t7,So as G9,TL as E2,Tj as k7,Ts as E8,UK as U7,Uk as M1,Uu as b4,VN as c5,Vk as p2,Vv as V4,WI as _6,WN as v3,WP as n1,WS as L5,Ws as X1,Wu as mX,XD as H4,XI as i8,Xk as g2,Xs as Z4,Xu as q1,Xv as G4,YK as P4,Yr as KX,Yw as A6,ZD as W4,ZP as S0,Zw as t8,_D as k8,_K as I4,_N as K8,_r as s8,bE as K9,bQ as u3,bT as q5,cE as H9,cF as nX,cI as _5,cL as y2,dI as P7,dL as w2,dN as e2,dT as T0,dj as H7,dm as L8,ds as I3,dx as C1,eL as P5,eN as q7,es as J8,ew as Q4,ex as B3,fK as C6,fL as k2,fj as W7,fr as s4,fx as F1,gI as q8,gL as b2,hL as P2,hx as gX,iF as b7,iL as I5,iQ as a1,jL as O2,jO as Z5,jQ as x0,kL as I2,kw as U8,lL as D2,lN as o,lO as D7,ln as l2,lp as PX,mE as C3,mH as g4,mN as T8,ml as r8,mn as m2,nB as U5,nE as Q8,nS as a7,nk as N3,nl as o8,oB as f7,oE as E5,oN as f4,oP as F6,op as E7,or as zX,pE as p1,pS as f,pT as w0,pj as j7,pr as b6,ps as Q5,qC as yX,qH as h8,qN as h4,qO as S3,qS as F4,qn as g7,qs as N7,qz as V8,rC as O7,rO as x3,rS as E1,rj as B7,rr as U3,rs as i2,sj as _7,sr as Y4,ss as l7,st as B1,tK as n6,tM as S1,tS as N0,tt as A3,uG as a2,uM as U1,uT as l3,uk as F7,ur as r5,ut as IX,uv as l6,vC as n2,vE as j4,vH as GX,vK as r2,vM as C5,vN as C8,vO as H8,vT as j8,vr as y3,vt as AX,wQ as _3,wl as D5,wr as Y8,wt as TX,wv as Q9,xG as m7,xK as o2,xl as R5,xv as J4,yE as B4,yS as Q2,yr as k3,yv as N8,zD as c6,zE as _4,zN as X3,zP as F2,zS as z2,zn as VX,zr as b3,zs as P6}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{EV as K4,RV as y8,sV as $4,tV as R8}from"./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{gW as R1,jW as Z2,rW as q0}from"./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{PX as t3,QX as $X,RX as e3,SX as X4,UX as D8}from"./cli-1.1.14-rmjnqb9b.mjs";import"./cli-1.1.14-3a1bnf85.mjs";import"./cli-1.1.14-srbcxz1e.mjs";import{pZ as l5,qZ as $8}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"./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{D5 as m1,E5 as y4,F4 as l1,G6 as d0,J5 as E6,J6 as N6,L4 as N4,N4 as g6,N6 as b0,O4 as V9,T5 as W0,X5 as v1,h7 as U6,n6 as J0,o5 as Z1,p5 as U4,p7 as a8,q7 as e0,r7 as O8,t8 as c1,u6 as l0,w8 as k4}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-eh3y4akg.mjs";import"./cli-1.1.14-cran8hzr.mjs";import"./cli-1.1.14-n1hm0gd6.mjs";import{$$ as p7,B$ as n4,Daa as UX,Eca as OX,F$ as v8,Fda as E4,Gca as Q7,Hda as p6,Iaa as w7,Jda as R3,Nda as E3,Rea as X8,Wca as z7,_$ as S5,mca as q2,nca as h7,p_ as k0,pga as x,q_ as y1,qga as s0,r_ as n0,sca as K0,uga as z0,wda as R4,wea as p5,xca as u2,xda as a4,xga as $0}from"./cli-1.1.14-q1kc6b8n.mjs";import{Aga as D3,Bga as e7}from"./cli-1.1.14-byr5dy4k.mjs";import"./cli-1.1.14-0e209hdd.mjs";import"./cli-1.1.14-947tpwm7.mjs";import{Hha as W6,tha as u6,vha as H6}from"./cli-1.1.14-qe4ypfya.mjs";import"./cli-1.1.14-ec6d00xg.mjs";import{Dia as L0,Fia as O1,Mia as o0,Nia as g5,aja as XX,gja as a5}from"./cli-1.1.14-xcg5hzkp.mjs";import"./cli-1.1.14-ry5bys5g.mjs";import{rja as u,uja as U0}from"./cli-1.1.14-f5bvc359.mjs";import{Zja as n,_ja as L2,cka as i0,gka as A5,kka as u7,mka as Y2,uka as b,xja as Q0,xka as c,zja as W1}from"./cli-1.1.14-db3mxak8.mjs";import{Dka as $2,yka as d6,zka as r}from"./cli-1.1.14-cakvdwn3.mjs";import{$ka as X0,Tka as k1,Uka as v}from"./cli-1.1.14-fwakcyhj.mjs";import{fla as h,gla as s3,hla as h1,nla as y0}from"./cli-1.1.14-83ng5cjk.mjs";import{Lpa as w1,Ooa as K6,Sqa as i,Tma as y,Upa as w4,Vpa as P1,Wma as W5,Wpa as O4,apa as c4,bpa as i4,coa as A0,goa as Z0,ina as O0,jna as I0,lqa as g1,mqa as D4,wqa as G5,xqa as V5}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{Bsa as Y0,Fsa as O5}from"./cli-1.1.14-r930b2z3.mjs";H7();W7();j7();B7();K7();q7();_7();Q7();F7();$5();L7();z7();var h9=[...DX,"Tmux",OX];W1();c();var RX="[stdout-guard]",Y5=!1,e="",E0=null;function EX(X){if(X.length===0)return!0;try{return JSON.parse(X),!0}catch{return!1}}function NX(){if(Y5)return;Y5=!0,E0=process.stdout.write.bind(process.stdout),process.stdout.write=function(X,$,Q){let Z=typeof X==="string"?X:Buffer.from(X).toString("utf-8");e+=Z;let J,Y=!0;while((J=e.indexOf(`
|
|
2
|
+
`))!==-1){let G=e.slice(0,J);if(e=e.slice(J+1),EX(G))Y=E0(G+`
|
|
3
|
+
`);else process.stderr.write(`${RX} ${G}
|
|
4
|
+
`),b(`streamJsonStdoutGuard diverted non-JSON stdout line: ${G.slice(0,200)}`)}let K=typeof $==="function"?$:Q;if(K)queueMicrotask(()=>K());return Y},Q0(async()=>{if(e.length>0){if(E0&&EX(e))E0(e+`
|
|
5
|
+
`);else process.stderr.write(`${RX} ${e}
|
|
6
|
+
`);e=""}if(E0)process.stdout.write=E0,E0=null;Y5=!1})}o2();j1();q1();v0();$2();gX();Q9();N0();i();V9();iX();r4();z9();v1();G9();o5();w0();i();i0();y0();W6();X0();E3();import{randomUUID as HX}from"crypto";j1();D7();O7();w7();N0();function R7(X){let $=async(Q,Z,J,Y,K,G)=>{let V=G??await Z5(Q,Z,J,Y,K);if(V.behavior==="allow"||V.behavior==="deny")return V;let{signal:z,cleanup:L}=yX(J.abortController.signal);if(z.aborted)return L(),{behavior:"deny",message:"Permission prompt was aborted.",decisionReason:{type:"permissionPromptTool",permissionPromptToolName:Q.name,toolResult:void 0}};let B=new Promise((F)=>{z.addEventListener("abort",()=>F("aborted"),{once:!0})}),_=X.call({tool_name:Q.name,input:Z,tool_use_id:K},J,$,Y),H=await Promise.race([_,B]);if(L(),H==="aborted"||z.aborted)return{behavior:"deny",message:"Permission prompt was aborted.",decisionReason:{type:"permissionPromptTool",permissionPromptToolName:Q.name,toolResult:void 0}};let R=H,O=X.mapToolResultToToolResultBlockParam(R.data,"1");if(!O.content||!Array.isArray(O.content)||!O.content[0]||O.content[0].type!=="text"||typeof O.content[0].text!=="string")throw Error('Permission prompt tool returned an invalid result. Expected a single text block param with type="text" and a string text value.');return bX(kX().parse(UX(O.content[0].text)),X,Z,J)};return $}function J5(X,$,Q,Z){if(X==="stdio")return $.createCanUseTool(Z);if(!X)return async(Y,K,G,V,z,L)=>L??await Z5(Y,K,G,V,z);let J=null;return async(Y,K,G,V,z,L)=>{if(!J){let B=Q(),_=B.find((H)=>_0(H,X));if(!_){let H=`Error: MCP tool ${X} (passed via --permission-prompt-tool) not found. Available MCP tools: ${B.map((R)=>R.name).join(", ")||"none"}`;throw process.stderr.write(`${H}
|
|
7
|
+
`),f(1),Error(H)}if(!_.inputJSONSchema){let H=`Error: tool ${X} (passed via --permission-prompt-tool) must be an MCP tool`;throw process.stderr.write(`${H}
|
|
8
|
+
`),f(1),Error(H)}J=R7(_)}return J(Y,K,G,V,z,L)}}y7();N7();i();CX();E7();X0();$0();U0();U7();h0();async function _1(X,$,Q,Z){if(!B1())return{canRewind:!1,error:"File rewinding is not enabled."};if(!AX($.fileHistory,X))return{canRewind:!1,error:"No file checkpoint found for this message."};if(Z){let J=await TX($.fileHistory,X);return{canRewind:!0,filesChanged:J?.filesChanged,insertions:J?.insertions,deletions:J?.deletions}}try{await IX((J)=>Q((Y)=>({...Y,fileHistory:J(Y.fileHistory)})),X)}catch(J){return{canRewind:!1,error:`Failed to rewind: ${v(J)}`}}return{canRewind:!0}}function dX(X,$,Q,Z){if(X.mode==="bypassPermissions"){if(SX())return Z.enqueue({type:"control_response",response:{subtype:"error",request_id:$,error:"Cannot set permission mode to bypassPermissions because it is disabled by settings or configuration"}}),Q;if(!Q.isBypassPermissionsModeAvailable)return Z.enqueue({type:"control_response",response:{subtype:"error",request_id:$,error:"Cannot set permission mode to bypassPermissions. Enable it with --allow-dangerously-skip-permissions or set permissions.allowBypassPermissionsMode in settings.json"}}),Q}if(X.mode==="auto"&&!hX()){let J=vX();return Z.enqueue({type:"control_response",response:{subtype:"error",request_id:$,error:J?`Cannot set permission mode to auto: ${fX(J)}`:"Cannot set permission mode to auto"}}),Q}return Z.enqueue({type:"control_response",response:{subtype:"success",request_id:$,response:{mode:X.mode}}}),{...MX(Q.mode,X.mode,Q),mode:X.mode}}function uX(X,$,Q,Z){let J=(H)=>Z.enqueue({type:"control_response",response:{subtype:"error",request_id:X,error:H}});return J("channels feature not available in this build")}function c0(X){return}P7();I7();U0();$0();b7();import{randomUUID as A7}from"crypto";import{dirname as cX}from"path";gX();import{randomUUID as pX}from"crypto";function lX(X){if(X.toLowerCase().endsWith(".jsonl"))return{sessionId:pX(),ingressUrl:null,isUrl:!1,jsonlFile:X,isJsonlFile:!0};if(F1(X))return{sessionId:X,ingressUrl:null,isUrl:!1,jsonlFile:null,isJsonlFile:!1};try{let $=new URL(X);return{sessionId:pX(),ingressUrl:$.href,isUrl:!0,jsonlFile:null,isJsonlFile:!1}}catch{}return null}w0();i();k7();iX();N0();E5();i0();O1();y0();var F0=(R5(),Y0(D5));function L1(X,$){if($==="stream-json"){let Q={type:"result",subtype:"error_during_execution",duration_ms:0,duration_api_ms:0,is_error:!0,num_turns:0,stop_reason:null,session_id:y(),total_cost_usd:0,usage:q0,modelUsage:{},permission_denials:[],uuid:A7(),errors:[X]};process.stdout.write(n(Q)+`
|
|
9
|
+
`)}else process.stderr.write(X+`
|
|
10
|
+
`)}async function sX(X,$){let Q=!w1();if($.continue)try{u("",{});let Z=await _5(void 0,void 0);if(Z){if(F0){let J=F0.matchSessionMode(Z.mode);if(J){process.stderr.write(J+`
|
|
11
|
+
`);let{getAgentDefinitionsWithOverrides:Y,getActiveAgentsFromList:K}=(q1(),Y0(mX));Y.cache.clear?.();let G=await Y(L0());X((V)=>({...V,agentDefinitions:{...G,allAgents:G.allAgents,activeAgents:K(G.allAgents)}}))}}if(!$.forkSession){if(Z.sessionId){if(W5(j5(Z.sessionId),Z.fullPath?cX(Z.fullPath):null),Q)await F5()}}if(w5(Z,X),L5($.forkSession?{...Z,worktreeSession:void 0}:Z),F0)q5(F0.isCoordinatorMode()?"coordinator":"normal");return{messages:Z.messages,turnInterruptionState:Z.turnInterruptionState,agentSetting:Z.agentSetting}}}catch(Z){return x(Z),f(1),{messages:[]}}if($.teleport)try{if(!nX("allow_remote_sessions"))throw Error("Remote sessions are disabled by your organization's policy.");if(u("",{}),typeof $.teleport!=="string")throw Error("No session ID provided for teleport");let{checkOutTeleportedSessionBranch:Z,processMessagesForTeleportResume:J,teleportResumeCodeSession:Y,validateGitState:K}=await import("./teleport-1.1.14-m6qw5vnq.mjs");await K();let G=await Y($.teleport),{branchError:V}=await Z(G.branch);return{messages:J(G.log,V)}}catch(Z){return x(Z),f(1),{messages:[]}}if($.resume)try{u("",{});let Z=lX(typeof $.resume==="string"?$.resume:"");if(!Z){let Y="Error: --resume requires a valid session ID when used with --print. Usage: claudin -p --resume <session-id>";if(typeof $.resume==="string")Y+=`. Session IDs must be in UUID format (e.g., 550e8400-e29b-41d4-a716-446655440000). Provided value "${$.resume}" is not a valid UUID`;return L1(Y,$.outputFormat),f(1),{messages:[]}}if(h(process.env.CLAUDE_CODE_USE_CCR_V2)){let[,Y]=await Promise.all([oX(Z.sessionId),$.restoredWorkerState]);if(Y){if(X(aX(Y)),typeof Y.model==="string")Z0(Y.model)}}else if(Z.isUrl&&Z.ingressUrl&&h(process.env.ENABLE_SESSION_PERSISTENCE))await rX(Z.sessionId,Z.ingressUrl);let J=await _5(Z.sessionId,Z.jsonlFile||void 0);if(!J||J.messages.length===0)if(Z.isUrl||h(process.env.CLAUDE_CODE_USE_CCR_V2))return{messages:await($.sessionStartHooksPromise??B5("startup"))};else return L1(`No conversation found with session ID: ${Z.sessionId}`,$.outputFormat),f(1),{messages:[]};if($.resumeSessionAt){let Y=J.messages.findIndex((K)=>K.uuid===$.resumeSessionAt);if(Y<0)return L1(`No message found with message.uuid of: ${$.resumeSessionAt}`,$.outputFormat),f(1),{messages:[]};J.messages=Y>=0?J.messages.slice(0,Y+1):[]}if(F0){let Y=F0.matchSessionMode(J.mode);if(Y){process.stderr.write(Y+`
|
|
12
|
+
`);let{getAgentDefinitionsWithOverrides:K,getActiveAgentsFromList:G}=(q1(),Y0(mX));K.cache.clear?.();let V=await K(L0());X((z)=>({...z,agentDefinitions:{...V,allAgents:V.allAgents,activeAgents:G(V.allAgents)}}))}}if(!$.forkSession&&J.sessionId){if(W5(j5(J.sessionId),J.fullPath?cX(J.fullPath):null),Q)await F5()}if(w5(J,X),L5($.forkSession?{...J,worktreeSession:void 0}:J),F0)q5(F0.isCoordinatorMode()?"coordinator":"normal");return{messages:J.messages,turnInterruptionState:J.turnInterruptionState,agentSetting:J.agentSetting}}catch(Z){x(Z);let J=Z instanceof Error?`Failed to resume session: ${Z.message}`:"Failed to resume session with --print mode";return L1(J,$.outputFormat),f(1),{messages:[]}}return{messages:await($.sessionStartHooksPromise??B5("startup"))}}i();import{PassThrough as C7}from"stream";import{URL as M7}from"url";W1();N5();c();n0();y0();X0();N0();$0();$2();Z2();v0();w0();y0();import{URL as T7}from"url";function X2(X,$={},Q,Z){if(h(process.env.CLAUDE_CODE_USE_CCR_V2)){let J=new T7(X.href);if(J.protocol==="wss:")J.protocol="https:";else if(J.protocol==="ws:")J.protocol="http:";return J.pathname=J.pathname.replace(/\/$/,"")+"/worker/events/stream",new D1(J,$,Q,Z)}if(X.protocol==="ws:"||X.protocol==="wss:"){if(h(process.env.CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2))return new eX(X,$,Q,Z);return new tX(X,$,Q,Z)}else throw Error(`Unsupported protocol: ${X.protocol}`)}class a0 extends N1{url;transport;inputStream;isBridge=!1;isDebug=!1;ccrClient=null;keepAliveTimer=null;constructor(X,$,Q){let Z=new C7({encoding:"utf8"});super(Z,Q);this.inputStream=Z,this.url=new M7(X);let J={},Y=R1();if(Y)J.Authorization=`Bearer ${Y}`;else b("[remote-io] No session ingress token available",{level:"error"});let K=process.env.CLAUDE_CODE_ENVIRONMENT_RUNNER_VERSION;if(K)J["x-environment-runner-version"]=K;let G=()=>{let z={},L=R1();if(L)z.Authorization=`Bearer ${L}`;let B=process.env.CLAUDE_CODE_ENVIRONMENT_RUNNER_VERSION;if(B)z["x-environment-runner-version"]=B;return z};if(this.transport=X2(this.url,J,y(),G),this.isBridge=process.env.CLAUDE_CODE_ENVIRONMENT_KIND==="bridge",this.isDebug=Y2(),this.transport.setOnData((z)=>{if(this.inputStream.write(z),this.isBridge&&this.isDebug)r(z.endsWith(`
|
|
13
|
+
`)?z:z+`
|
|
14
|
+
`)}),this.transport.setOnClose(()=>{this.inputStream.end()}),h(process.env.CLAUDE_CODE_USE_CCR_V2)){if(!(this.transport instanceof D1))throw Error("CCR v2 requires SSETransport; check getTransportForUrl");this.ccrClient=new j2(this.transport,this.url);let z=this.ccrClient.initialize();this.restoredWorkerState=z.catch(()=>null),z.catch((B)=>{k0("error","cli_worker_lifecycle_init_failed",{reason:B instanceof W2?B.reason:"unknown"}),x(Error(`CCRClient initialization failed: ${v(B)}`)),E1(1,"other")}),Q0(async()=>this.ccrClient?.close()),Q2((B,_,H)=>this.ccrClient.writeInternalEvent(B,_,H)),z2(()=>this.ccrClient.readInternalEvents(),()=>this.ccrClient.readSubagentInternalEvents());let L={started:"processing",completed:"processed"};J2((B,_)=>{this.ccrClient?.reportDelivery(B,L[_])}),V2((B,_)=>{this.ccrClient?.reportState(B,_)}),G2((B)=>{this.ccrClient?.reportMetadata(B)})}this.transport.connect();let V=H2().session_keepalive_interval_v2_ms;if(this.isBridge&&V>0)this.keepAliveTimer=setInterval(()=>{b("[remote-io] keep_alive sent"),this.write({type:"keep_alive"}).catch((z)=>{b(`[remote-io] keep_alive write failed: ${v(z)}`)})},V),this.keepAliveTimer.unref?.();if(Q0(async()=>this.close()),$){let z=this.inputStream;(async()=>{for await(let L of $)z.write(String(L).replace(/\n$/,"")+`
|
|
15
|
+
`)})()}}flushInternalEvents(){return this.ccrClient?.flushInternalEvents()??Promise.resolve()}get internalEventsPending(){return this.ccrClient?.internalEventsPending??0}async write(X){if(this.ccrClient)await this.ccrClient.writeEvent(X);else await this.transport.write(X);if(this.isBridge){if(X.type==="control_request"||this.isDebug)r(K2(X)+`
|
|
16
|
+
`)}}close(){if(this.keepAliveTimer)clearInterval(this.keepAliveTimer),this.keepAliveTimer=null;this.transport.close(),this.inputStream.end()}}f7();i0();function B2(X,$){let Q;if(typeof X==="string")if(X.trim()!=="")Q=U5([n({type:"user",session_id:"",message:{role:"user",content:X},parent_tool_use_id:null})]);else Q=U5([]);else Q=X;return $.sdkUrl?new a0($.sdkUrl,Q,$.replayUserMessages):new N1(Q,$.replayUserMessages)}r5();h3();h0();v0();c();n0();N0();W1();import{cwd as D6}from"process";import{randomUUID as G1}from"crypto";c();N0();function _2(X){let $=process.env.CLAUDIN_EXIT_AFTER_STOP_DELAY,Q=$?parseInt($,10):null,Z=Q&&!isNaN(Q)&&Q>0,J=null,Y=0;return{start(){if(J)clearTimeout(J),J=null;if(Z)Y=Date.now(),J=setTimeout(()=>{let K=Date.now()-Y;if(X()&&K>=Q)b(`Exiting after ${Q}ms of idle time`),f()},Q)},stop(){if(J)clearTimeout(J),J=null}}}U4();s8();s5();$5();a5();t8();b0();s4();d5();a8();v1();i();x0();y0();Z4();z4();function y5(X,$){let Q=X.findIndex((Z)=>Z.uuid===$.uuid);if(Q!==-1)X.splice(Q,2)}c();h0();w0();async function k5({message:X,setAppState:$,onEnqueued:Q,handledToolUseIds:Z}){if(X.response.subtype==="success"&&X.response.response?.toolUseID&&typeof X.response.response.toolUseID==="string"){let J=X.response.response,{toolUseID:Y}=J;if(!Y)return!1;if(b(`handleOrphanedPermissionResponse: received orphaned control_response for toolUseID=${Y} request_id=${X.response.request_id}`),Z.has(Y))return b(`handleOrphanedPermissionResponse: skipping duplicate orphaned permission for toolUseID=${Y} (already handled)`),!1;let K=await F2(Y);if(!K)return b(`handleOrphanedPermissionResponse: no unresolved tool_use found for toolUseID=${Y} (already resolved in transcript)`),!1;return Z.add(Y),b(`handleOrphanedPermissionResponse: enqueuing orphaned permission for toolUseID=${Y} messageID=${K.message.id}`),g({mode:"orphaned-permission",value:[],orphanedPermission:{permissionResult:J,assistantMessage:K}}),Q?.(),!0}return!1}c2();p7();m7();o2();n7();j1();U0();c();n0();$0();i7();h5();f5();c7();a7();g7();u2();e2();l7();i();g2();i0();x0();import{cwd as r7}from"process";import{randomUUID as o7}from"crypto";U0();W1();c();n0();u7();$0();E2();C5();D2();c();i0();E2();h7();D2();import{readFile as N2}from"fs/promises";import{join as b5}from"path";async function v7(){try{let X=await N2(P5(),"utf-8"),$=q2().safeParse(L2(X));if(!$.success)return b(`Invalid known_marketplaces.json in zip cache: ${$.error.message}`,{level:"error"}),{};return $.data}catch{return{}}}async function S7(X){await I5(P5(),n(X,null,2))}async function x7(X,$){let Q=w2();if(!Q)return;let Z=await d7($);if(Z!==null){let J=O2(X);await I5(b5(Q,J),Z)}}async function d7(X){let $=[b5(X,".claude-plugin","marketplace.json"),b5(X,"marketplace.json"),X];for(let Q of $)try{return await N2(Q,"utf-8")}catch{}return null}async function U2(){let X=await R2();for(let[Z,J]of Object.entries(X)){if(!J.installLocation)continue;try{await x7(Z,J.installLocation)}catch(Y){b(`Failed to save marketplace JSON for ${Z}: ${Y}`)}}let Q={...await v7(),...X};await S7(Q)}async function f2(){let X=y2();b(`installPluginsForHeadless: starting${X?" (zip cache mode)":""}`);let $=await T2();if($)T5(),U1("headlessPluginInstall: seed marketplaces registered");if(X)await A5().mkdir(k2()),await A5().mkdir(b2());let Q=Object.keys(A2()).length,Z={marketplaces_installed:0,delisted_count:0},J=$;try{if(Q===0)b("installPluginsForHeadless: no marketplaces declared");else{let K=await y1("headless_marketplace_reconcile",()=>M2({skip:X?(V,z)=>!I2(z):void 0,onProgress:(V)=>{if(V.type==="installed")b(`installPluginsForHeadless: installed marketplace ${V.name}`);else if(V.type==="failed")b(`installPluginsForHeadless: failed to install marketplace ${V.name}: ${V.error}`)}}),(V)=>({installed_count:V.installed.length,updated_count:V.updated.length,failed_count:V.failed.length,skipped_count:V.skipped.length}));if(K.skipped.length>0)b(`installPluginsForHeadless: skipped ${K.skipped.length} marketplace(s) unsupported by zip cache: ${K.skipped.join(", ")}`);let G=K.installed.length+K.updated.length;if(G>0)T5(),U1("headlessPluginInstall: marketplaces reconciled"),J=!0;Z.marketplaces_installed=G}if(X)await U2();let Y=await C2();if(Z.delisted_count=Y.length,Y.length>0)J=!0;if(J)U1("headlessPluginInstall: plugins changed");if(X)Q0(P2);return J}catch(Y){return x(Y),!1}finally{u("",Z)}}J3();h5();f5();$0();X0();function M5(X){return{...X,scope:"dynamic"}}async function v5(X,$,Q,Z){let{allowed:J,blocked:Y}=h2(X),K={};for(let w of Y)K[w]="Blocked by enterprise policy (allowedMcpServers/deniedMcpServers)";let G={},V={};for(let[w,q]of Object.entries(J))if(q.type==="sdk")G[w]=q;else V[w]=q;let z=new Set(Object.keys($.configs)),L=new Set(Object.keys(G)),B=[],_=[],H={...$.configs},R=[...$.clients],O=[...$.tools];for(let w of z)if(!L.has(w)){let q=R.find((E)=>E.name===w);if(q&&q.type==="connected")await q.cleanup();R=R.filter((E)=>E.name!==w);let N=`mcp__${w}__`;O=O.filter((E)=>!E.name.startsWith(N)),delete H[w],_.push(w)}for(let[w,q]of Object.entries(G))if(!z.has(w)){H[w]=q;let N={type:"pending",name:w,config:{...q,scope:"dynamic"}};R=[...R,N],B.push(w)}let F=await d2(V,Q,Z);return{response:{added:[...B,...F.response.added],removed:[..._,...F.response.removed],errors:{...K,...F.response.errors}},newSdkState:{configs:H,clients:R,tools:O},newDynamicState:F.newState,sdkServersChanged:B.length>0||_.length>0}}async function d2(X,$,Q){let Z=new Set(Object.keys($.configs)),J=new Set(Object.keys(X)),Y=[...Z].filter((F)=>!J.has(F)),K=[...J].filter((F)=>!Z.has(F)),V=[...Z].filter((F)=>J.has(F)).filter((F)=>{let w=$.configs[F],q=X[F];if(!w||!q)return!0;let N=M5(q);return!x2(w,N)}),z=[],L=[],B={},_=[...$.clients],H=[...$.tools];for(let F of[...Y,...V]){let w=_.find((E)=>E.name===F),q=$.configs[F];if(w&&q){if(w.type==="connected")try{await w.cleanup()}catch(E){x(E)}await b1(F,q)}let N=`mcp__${F}__`;if(H=H.filter((E)=>!E.name.startsWith(N)),_=_.filter((E)=>E.name!==F),Y.includes(F))z.push(F)}for(let F of[...K,...V]){let w=X[F];if(!w)continue;let q=M5(w);if(w.type==="sdk"){L.push(F);continue}try{let N=await S2(F,q);if(_.push(N),N.type==="connected"){let E=await v2(N);H.push(...E)}else if(N.type==="failed")B[F]=N.error||"Connection failed";L.push(F)}catch(N){let E=k1(N);B[F]=E.message,x(E)}}let R={};for(let F of J){let w=X[F];if(w)R[F]=M5(w)}let O={clients:_,tools:H,configs:R};return Q((F)=>{let w=new Set([...Object.keys($.configs),...Object.keys(R)]),q=F.mcp.tools.filter((E)=>{for(let T of w)if(E.name.startsWith(`mcp__${T}__`))return!1;return!0}),N=F.mcp.clients.filter((E)=>{return!w.has(E.name)});return{...F,mcp:{...F.mcp,tools:[...q,...H],clients:[...N,..._]}}}),{response:{added:L,removed:z,errors:B},newState:O}}function V3(X,$){let{structuredIO:Q,output:Z,elicitationRegistered:J}=X;for(let Y of $){if(Y.type!=="connected"||J.has(Y.name))continue;if(Y.config.type==="sdk")continue;let K=Y.name;try{Y.client.setRequestHandler(l2,async(G,V)=>{z0(K,`Elicitation request received in print mode: ${n(G)}`);let z=G.params.mode==="url"?"url":"form";u("",{mode:z});let L=await X3(K,G.params,V.signal);if(L)return z0(K,`Elicitation resolved by hook: ${n(L)}`),u("",{mode:z,action:L.action}),L;let B="url"in G.params?G.params.url:void 0,_="requestedSchema"in G.params?G.params.requestedSchema:void 0,H="elicitationId"in G.params?G.params.elicitationId:void 0,R=await Q.handleElicitation(K,G.params.message,_,V.signal,z,B,H),O=await $3(K,R,V.signal,z,H);return u("",{mode:z,action:O.action}),O}),Y.client.setNotificationHandler(m2,(G)=>{let{elicitationId:V}=G.params;z0(K,`Elicitation completion notification: ${V}`),n2({message:`MCP server "${K}" confirmed elicitation ${V} complete`,notificationType:"elicitation_complete"}),Z.enqueue({type:"system",subtype:"elicitation_complete",mcp_server_name:K,elicitation_id:V,uuid:o7(),session_id:y()})}),J.add(K)}catch{}}}async function G3(X){let{sdkMcpConfigs:$,structuredIO:Q,setAppState:Z}=X,J=new Set(Object.keys($)),Y=new Set(X.sdkClients.map((B)=>B.name)),K=Array.from(J).some((B)=>!Y.has(B)),G=Array.from(Y).some((B)=>!J.has(B)),V=X.sdkClients.some((B)=>B.type==="pending"),z=X.sdkClients.some((B)=>B.type==="failed");if(K||G||V||z){for(let R of X.sdkClients)if(!J.has(R.name)){if(R.type==="connected")await R.cleanup()}let B=await Y3($,(R,O)=>Q.sendMcpMessage(R,O));X.sdkClients=B.clients,X.sdkTools=B.tools;let _=S5([...Y,...J]),H=X.sdkTools;Z((R)=>({...R,mcp:{...R.mcp,tools:[...R.mcp.tools.filter((O)=>!_.some((F)=>O.name.startsWith(K0(F)))),...H]}})),i2(X.sdkClients)}}function Q3(X,$){let{baseTools:Q,options:Z}=X,J=r2($.toolPermissionContext,$.mcp.tools),Y=r0(Z3([...Q,...X.sdkTools,...X.dynamicMcpState.tools],J,$.toolPermissionContext.mode),"name");if(Z.permissionPromptToolName)Y=Y.filter((G)=>!_0(G,Z.permissionPromptToolName));let K=P1();if(K&&!Z.jsonSchema){let G=p2(K);if("tool"in G)Y=[...Y,G.tool]}return Y}function z3(X){let{mutableMessages:$}=X;if(!X.bridgeHandle)return;let Q=Math.min(X.bridgeLastForwardedIndex,$.length),Z=$.slice(Q).filter((J)=>J.type==="user"||J.type==="assistant");if(X.bridgeLastForwardedIndex=$.length,Z.length>0)X.bridgeHandle.writeMessages(Z)}function K3(X,$){let{sdkMcpConfigs:Q,setAppState:Z}=X,J=async()=>{let Y=new Set(X.sdkClients.map((G)=>G.name)),K=await v5($,{configs:Q,clients:X.sdkClients,tools:X.sdkTools},X.dynamicMcpState,Z);for(let G of Object.keys(Q))delete Q[G];if(Object.assign(Q,K.newSdkState.configs),X.sdkClients=K.newSdkState.clients,X.sdkTools=K.newSdkState.tools,X.dynamicMcpState=K.newDynamicState,K.sdkServersChanged){let G=new Set(X.sdkClients.map((L)=>L.name)),V=S5([...Y,...G]),z=X.sdkTools;Z((L)=>({...L,mcp:{...L.mcp,tools:[...L.mcp.tools.filter((B)=>!V.some((_)=>B.name.startsWith(K0(_)))),...z]}}))}return{response:K.response,sdkServersChanged:K.sdkServersChanged}};return X.mcpChangesPromise=X.mcpChangesPromise.then(J,J),X.mcpChangesPromise}function H3(X){let $=X.getAppState(),Q=$.mcp.clients,Z=r0([...$.mcp.tools,...X.dynamicMcpState.tools],"name"),J=new Set([...Q.map((Y)=>Y.name),...X.sdkClients.map((Y)=>Y.name)]);return[...Q,...X.sdkClients,...X.dynamicMcpState.clients.filter((Y)=>!J.has(Y.name))].map((Y)=>{let K;if(Y.config.type==="sse"||Y.config.type==="http")K={type:Y.config.type,url:Y.config.url,headers:Y.config.headers,oauth:Y.config.oauth};else if(Y.config.type==="claudeai-proxy")K={type:"claudeai-proxy",url:Y.config.url,id:Y.config.id};else if(Y.config.type==="stdio"||Y.config.type===void 0)K={type:"stdio",command:Y.config.command,args:Y.config.args};let G=Y.type==="connected"?t2(Z,Y.name).map((z)=>({name:z.mcpInfo?.toolName??z.name,annotations:{readOnly:z.isReadOnly({})||void 0,destructive:z.isDestructive?.({})||void 0,openWorld:z.isOpenWorld?.({})||void 0}})):void 0,V;return{name:Y.name,status:Y.type,serverInfo:Y.type==="connected"?Y.serverInfo:void 0,error:Y.type==="failed"?Y.error:void 0,config:K,scope:Y.config.scope,tools:G,capabilities:V}})}async function x5(X){try{if(await y1("headless_managed_settings_wait",()=>a2()),await f2())await X.applyPluginMcpDiff()}catch($){x($)}}async function W3(X){let{agentDefinitions:$}=await I1(X.setAppState);X.currentCommands=await S0(r7());let Q=X.currentAgents.filter((Z)=>Z.source==="flagSettings");X.currentAgents=[...$.allAgents,...Q]}async function j3(X){let{sdkMcpConfigs:$}=X,{servers:Q}=await s2(),Z={};for(let[K,G]of Object.entries(Q)){let V=G.type;if(V===void 0||V==="stdio"||V==="sse"||V==="http"||V==="sdk")Z[K]=G}for(let[K,G]of Object.entries($))if(G.type==="sdk"&&!(K in Z))Z[K]=G;let{response:J,sdkServersChanged:Y}=await X.applyMcpServerChanges(Z);if(Y)X.updateSdkMcp();b(`Headless MCP refresh: added=${J.added.length}, removed=${J.removed.length}`)}c2();import{cwd as P8}from"process";import{randomUUID as C0}from"crypto";z8();i();K8();Z8();Y8();E5();e7();x0();a5();V8();j8();E3();Q8();J8();j1();g2();A1();X8();O1();y0();c();v1();CX();r5();o5();W8();$0();$5();b0();C5();import{randomUUID as P0}from"crypto";s7();t7();A1();b0();B3();d5();async function u5({tools:X,mainLoopModel:$,additionalWorkingDirectories:Q,mcpClients:Z,customSystemPrompt:J}){let[Y,K,G]=await Promise.all([J!==void 0?Promise.resolve([]):_3(X,$,Q,Z),L3(),J!==void 0?Promise.resolve({}):F3()]);return{defaultSystemPrompt:Y,userContext:K,systemContext:G}}async function q3({tools:X,commands:$,mcpClients:Q,messages:Z,readFileState:J,getAppState:Y,setAppState:K,customSystemPrompt:G,appendSystemPrompt:V,thinkingConfig:z,agents:L}){let B=J0(),_=Y(),{defaultSystemPrompt:H,userContext:R,systemContext:O}=await u5({tools:X,mainLoopModel:B,additionalWorkingDirectories:Array.from(_.toolPermissionContext.additionalWorkingDirectories.keys()),mcpClients:Q,customSystemPrompt:G}),F=C1([...G!==void 0?[G]:H,...V?[V]:[]]),w=Z.at(-1),q=w?.type==="assistant"&&w.message.stop_reason===null?Z.slice(0,-1):Z,N={options:{commands:$,debug:!1,mainLoopModel:B,tools:X,verbose:!1,thinkingConfig:z??(T1()!==!1?{type:"adaptive"}:{type:"disabled"}),mcpClients:Q,mcpResources:{},isNonInteractiveSession:!0,agentDefinitions:{activeAgents:L,allAgents:[]},customSystemPrompt:G,appendSystemPrompt:V},abortController:H0(),readFileState:J,getAppState:Y,setAppState:K,messages:q,setInProgressToolUseIDs:()=>{},setResponseLength:()=>{},updateFileHistoryState:()=>{},updateAttributionState:()=>{}};return{systemPrompt:F,userContext:R,systemContext:O,toolUseContext:N,forkContextMessages:q}}G8();w0();B3();$8();d5();s5();H8();h3();var w3=()=>(_8(),Y0(B8)),F8=(R5(),Y0(D5)).getCoordinatorUserContext;function O3(X,$){let Q=X.findLastIndex((Z)=>Z.uuid===$);if(Q===-1)return!1;return X.splice(Q,1),!0}class n3{config;mutableMessages;abortController;permissionDenials;totalUsage;hasHandledOrphanedPermission=!1;readFileState;discoveredSkillNames=new Set;loadedNestedMemoryPaths=new Set;constructor(X){this.config=X,this.mutableMessages=X.initialMessages??[],this.abortController=X.abortController??H0(),this.permissionDenials=[],this.readFileState=X.readFileCache,this.totalUsage=q0}async*submitMessage(X,$){let{cwd:Q,commands:Z,tools:J,mcpClients:Y,verbose:K=!1,thinkingConfig:G,maxTurns:V,maxBudgetUsd:z,taskBudget:L,canUseTool:B,customSystemPrompt:_,appendSystemPrompt:H,userSpecifiedModel:R,fallbackModel:O,jsonSchema:F,getAppState:w,setAppState:q,replayUserMessages:N=!1,includePartialMessages:E=!1,agents:T=[],setSDKStatus:k,orphanedPermission:d}=this.config;this.discoveredSkillNames.clear();let P=k3(this.mutableMessages);if(P!==this.mutableMessages)this.mutableMessages=P;T3(Q);let A=!w1(),W=Date.now(),D=async(j,I,M,t,H1,G7)=>{let wX=await B(j,I,M,t,H1,G7);if(wX.behavior!=="allow")this.permissionDenials.push({tool_name:c3(j.name),tool_use_id:H1,tool_input:I});return wX},U=w(),C=R?d0(R):J0(),S=G?G:T1()!==!1?{type:"adaptive"}:{type:"disabled"};l("before_getSystemPrompt");let m=typeof _==="string"?_:void 0,{defaultSystemPrompt:a,userContext:j0,systemContext:X5}=await u5({tools:J,mainLoopModel:C,additionalWorkingDirectories:Array.from(U.toolPermissionContext.additionalWorkingDirectories.keys()),mcpClients:Y,customSystemPrompt:m});l("after_getSystemPrompt");let WX={...j0,...F8(Y,S3()?x3():void 0)},M0=m!==void 0&&R3()?await l3():null,z1=C1([...m!==void 0?[m]:a,...M0?[M0]:[],...H?[H]:[]]),K1=J.some((j)=>_0(j,M1));if(F&&K1)p3(q,y());let V0={messages:this.mutableMessages,setMessages:(j)=>{this.mutableMessages=j(this.mutableMessages)},onChangeAPIKey:()=>{},handleElicitation:this.config.handleElicitation,options:{commands:Z,debug:!1,tools:J,verbose:K,mainLoopModel:C,thinkingConfig:S,mcpClients:Y,mcpResources:{},ideInstallationStatus:null,isNonInteractiveSession:!0,customSystemPrompt:_,appendSystemPrompt:H,agentDefinitions:{activeAgents:T,allAgents:[]},theme:l5(p5().theme),maxBudgetUsd:z},getAppState:w,setAppState:q,abortController:this.abortController,readFileState:this.readFileState,nestedMemoryAttachmentTriggers:new Set,loadedNestedMemoryPaths:this.loadedNestedMemoryPaths,dynamicSkillDirTriggers:new Set,discoveredSkillNames:this.discoveredSkillNames,setInProgressToolUseIDs:()=>{},setResponseLength:()=>{},updateFileHistoryState:(j)=>{q((I)=>{let M=j(I.fileHistory);if(M===I.fileHistory)return I;return{...I,fileHistory:M}})},updateAttributionState:(j)=>{q((I)=>{let M=j(I.attribution);if(M===I.attribution)return I;return{...I,attribution:M}})},setSDKStatus:k};if(d&&!this.hasHandledOrphanedPermission){this.hasHandledOrphanedPermission=!0;for await(let j of f3(d,J,this.mutableMessages,V0))yield j}let{messages:s,shouldQuery:o6,allowedTools:s6,model:t6,resultText:e6}=await m3({input:X,mode:"prompt",setToolJSX:()=>{},context:{...V0,messages:this.mutableMessages},messages:this.mutableMessages,uuid:$?.uuid,isMeta:$?.isMeta,querySource:"sdk"});this.mutableMessages.push(...s);let p=[...this.mutableMessages];if(A&&s.length>0){let j=D0(p);if(h1());else if(await j,h(process.env.CLAUDE_CODE_EAGER_FLUSH)||h(process.env.CLAUDE_CODE_IS_COWORK))await T0()}let X7=s.filter((j)=>j.type==="user"&&!j.isMeta&&!j.toolUseResult&&w3().selectableUserMessagesFilter(j)||j.type==="system"&&j.subtype==="compact_boundary"),jX=N?X7:[];q((j)=>({...j,toolPermissionContext:{...j.toolPermissionContext,alwaysAllowRules:{...j.toolPermissionContext.alwaysAllowRules,command:s6}}}));let B0=t6??C;V0={messages:p,setMessages:()=>{},onChangeAPIKey:()=>{},handleElicitation:this.config.handleElicitation,options:{commands:Z,debug:!1,tools:J,verbose:K,mainLoopModel:B0,thinkingConfig:S,mcpClients:Y,mcpResources:{},ideInstallationStatus:null,isNonInteractiveSession:!0,customSystemPrompt:_,appendSystemPrompt:H,theme:l5(p5().theme),agentDefinitions:{activeAgents:T,allAgents:[]},maxBudgetUsd:z},getAppState:w,setAppState:q,abortController:this.abortController,readFileState:this.readFileState,nestedMemoryAttachmentTriggers:new Set,loadedNestedMemoryPaths:this.loadedNestedMemoryPaths,dynamicSkillDirTriggers:new Set,discoveredSkillNames:this.discoveredSkillNames,setInProgressToolUseIDs:()=>{},setResponseLength:()=>{},updateFileHistoryState:V0.updateFileHistoryState,updateAttributionState:V0.updateAttributionState,setSDKStatus:k},l("before_skills_plugins");let[$7,{enabled:Y7}]=await Promise.all([u3(L0()),S1()]);if(l("after_skills_plugins"),yield i3({tools:J,mcpClients:Y,model:B0,permissionMode:U.toolPermissionContext.mode,commands:Z,agents:T,skills:$7,plugins:Y7,fastMode:U.fastMode}),l("system_message_yielded"),!o6){for(let j of s){if(j.type==="user"&&typeof j.message.content==="string"&&(j.message.content.includes(`<${o0}>`)||j.message.content.includes(`<${g5}>`)||j.isCompactSummary))yield{type:"user",message:{...j.message,content:D3(j.message.content)},session_id:y(),parent_tool_use_id:null,uuid:j.uuid,timestamp:j.timestamp,isReplay:!j.isCompactSummary,isSynthetic:j.isMeta||j.isVisibleInTranscriptOnly};if(j.type==="system"&&j.subtype==="local_command"&&typeof j.content==="string"&&(j.content.includes(`<${o0}>`)||j.content.includes(`<${g5}>`)))yield d3(j.content,j.uuid);if(j.type==="system"&&j.subtype==="compact_boundary")yield{type:"system",subtype:"compact_boundary",session_id:y(),uuid:j.uuid,compact_metadata:i5(j.compactMetadata)}}if(A){if(await D0(p),h(process.env.CLAUDE_CODE_EAGER_FLUSH)||h(process.env.CLAUDE_CODE_IS_COWORK))await T0()}yield{type:"result",subtype:"success",is_error:!1,duration_ms:Date.now()-W,duration_api_ms:I0(),num_turns:p.length-1,result:e6??"",stop_reason:null,session_id:y(),total_cost_usd:O0(),usage:this.totalUsage,modelUsage:A0(),permission_denials:this.permissionDenials,fast_mode_state:W0(B0,U.fastMode),uuid:P0()};return}if(B1()&&A)s.filter(w3().selectableUserMessagesFilter).forEach((j)=>{A3((I)=>{q((M)=>({...M,fileHistory:I(M.fileHistory)}))},j.uuid)});let f0=q0,m0=1,BX=!1,_X,G0=null,FX=s0().at(-1),Z7=F?n5(this.mutableMessages,M1):0;for await(let j of C3({messages:p,systemPrompt:z1,userContext:WX,systemContext:X5,canUseTool:D,toolUseContext:V0,fallbackModel:O,querySource:"sdk",maxTurns:V,taskBudget:L})){if(j.type==="assistant"||j.type==="user"||j.type==="system"&&j.subtype==="compact_boundary"){let I=j;if(A&&j.type==="system"&&j.subtype==="compact_boundary"){let M=j.compactMetadata?.preservedSegment?.tailUuid;if(M){let t=this.mutableMessages.findLastIndex((H1)=>H1.uuid===M);if(t!==-1)await D0(this.mutableMessages.slice(0,t+1));else I={...j,compactMetadata:{...j.compactMetadata,preservedSegment:void 0}},b(`[QueryEngine] stripped preservedSegment before transcript write; missing tail ${M}`)}}if(p.push(I),A)if(j.type==="assistant")D0(p);else await D0(p);if(!BX&&jX.length>0){BX=!0;for(let M of jX)if(M.type==="user")yield{type:"user",message:M.message,session_id:y(),parent_tool_use_id:null,uuid:M.uuid,timestamp:M.timestamp,isReplay:!0}}}if(j.type==="user")m0++;switch(j.type){case"tombstone":{let I=j.message.uuid;if(O3(this.mutableMessages,I),O3(p,I),A)g3(I);break}case"assistant":if(j.message.stop_reason!=null)G0=j.message.stop_reason;this.mutableMessages.push(j),yield*f1(j);break;case"progress":if(this.mutableMessages.push(j),A)p.push(j),D0(p);yield*f1(j);break;case"user":this.mutableMessages.push(j);{let I=y3(),M=b3(this.mutableMessages,I.keepTurns,I.stubKeepHeadChars);if(M=P3(M,I.retainedHighWaterTokens,I.retainedLowWaterTokens,void 0,I.stubKeepHeadChars),M!==this.mutableMessages)this.mutableMessages=M}yield*f1(j);break;case"stream_event":if(j.event.type==="message_start")f0=q0,f0=c5(f0,j.event.message.usage);if(j.event.type==="message_delta"){if(f0=c5(f0,j.event.usage),j.event.delta.stop_reason!=null)G0=j.event.delta.stop_reason}if(j.event.type==="message_stop")this.totalUsage=v3(this.totalUsage,f0);if(E)yield{type:"stream_event",event:j.event,session_id:y(),parent_tool_use_id:null,uuid:P0()};break;case"attachment":if(this.mutableMessages.push(j),A)p.push(j),D0(p);if(j.attachment.type==="structured_output")_X=j.attachment.data;else if(j.attachment.type==="max_turns_reached"){if(A){if(h(process.env.CLAUDE_CODE_EAGER_FLUSH)||h(process.env.CLAUDE_CODE_IS_COWORK))await T0()}yield{type:"result",subtype:"error_max_turns",duration_ms:Date.now()-W,duration_api_ms:I0(),is_error:!0,num_turns:j.attachment.turnCount,stop_reason:G0,session_id:y(),total_cost_usd:O0(),usage:this.totalUsage,modelUsage:A0(),permission_denials:this.permissionDenials,fast_mode_state:W0(B0,U.fastMode),uuid:P0(),errors:[`Reached maximum number of turns (${j.attachment.maxTurns})`]};return}else if(N&&j.attachment.type==="queued_command")yield{type:"user",message:{role:"user",content:j.attachment.prompt},session_id:y(),parent_tool_use_id:null,uuid:j.attachment.source_uuid||j.uuid,timestamp:j.timestamp,isReplay:!0};break;case"stream_request_start":break;case"system":{let I=this.config.snipReplay?.(j,this.mutableMessages);if(I!==void 0){if(I.executed)this.mutableMessages.length=0,this.mutableMessages.push(...I.messages);break}if(this.mutableMessages.push(j),j.subtype==="compact_boundary"&&j.compactMetadata){let M=this.mutableMessages.length-1;if(M>0)this.mutableMessages.splice(0,M);let t=p.length-1;if(t>0)p.splice(0,t);yield{type:"system",subtype:"compact_boundary",session_id:y(),uuid:j.uuid,compact_metadata:i5(j.compactMetadata)}}if(j.subtype==="api_error")yield{type:"system",subtype:"api_retry",attempt:j.retryAttempt,max_retries:j.maxRetries,retry_delay_ms:j.retryInMs,error_status:j.error.status??null,error:I3(j.error),session_id:y(),uuid:j.uuid};break}case"tool_use_summary":yield{type:"tool_use_summary",summary:j.summary,preceding_tool_use_ids:j.precedingToolUseIds,session_id:y(),uuid:j.uuid};break}if(z!==void 0&&O0()>=z){if(A){if(h(process.env.CLAUDE_CODE_EAGER_FLUSH)||h(process.env.CLAUDE_CODE_IS_COWORK))await T0()}yield{type:"result",subtype:"error_max_budget_usd",duration_ms:Date.now()-W,duration_api_ms:I0(),is_error:!0,num_turns:m0,stop_reason:G0,session_id:y(),total_cost_usd:O0(),usage:this.totalUsage,modelUsage:A0(),permission_denials:this.permissionDenials,fast_mode_state:W0(B0,U.fastMode),uuid:P0(),errors:[`Reached maximum budget ($${z})`]};return}if(j.type==="user"&&F){let M=n5(this.mutableMessages,M1)-Z7,t=parseInt(process.env.MAX_STRUCTURED_OUTPUT_RETRIES||"5",10);if(M>=t){if(A){if(h(process.env.CLAUDE_CODE_EAGER_FLUSH)||h(process.env.CLAUDE_CODE_IS_COWORK))await T0()}yield{type:"result",subtype:"error_max_structured_output_retries",duration_ms:Date.now()-W,duration_api_ms:I0(),is_error:!0,num_turns:m0,stop_reason:G0,session_id:y(),total_cost_usd:O0(),usage:this.totalUsage,modelUsage:A0(),permission_denials:this.permissionDenials,fast_mode_state:W0(B0,U.fastMode),uuid:P0(),errors:[`Failed to provide valid structured output after ${t} attempts`]};return}}}let R0=p.findLast((j)=>j.type==="assistant"||j.type==="user"),J7=R0?.type??"undefined",V7=R0?.type==="assistant"?m5(R0.message.content)?.type??"none":"n/a";if(A){if(h(process.env.CLAUDE_CODE_EAGER_FLUSH)||h(process.env.CLAUDE_CODE_IS_COWORK))await T0()}if(!M3(R0,G0)){yield{type:"result",subtype:"error_during_execution",duration_ms:Date.now()-W,duration_api_ms:I0(),is_error:!0,num_turns:m0,stop_reason:G0,session_id:y(),total_cost_usd:O0(),usage:this.totalUsage,modelUsage:A0(),permission_denials:this.permissionDenials,fast_mode_state:W0(B0,U.fastMode),uuid:P0(),errors:(()=>{let j=s0(),I=FX?j.lastIndexOf(FX)+1:0;return[`[ede_diagnostic] result_type=${J7} last_content_type=${V7} stop_reason=${G0}`,...j.slice(I).map((M)=>M.error)]})()};return}let LX="",qX=!1;if(R0.type==="assistant"){let j=m5(R0.message.content);if(j?.type==="text"&&!N3.has(j.text))LX=j.text;qX=Boolean(R0.isApiErrorMessage)}yield{type:"result",subtype:"success",is_error:qX,duration_ms:Date.now()-W,duration_api_ms:I0(),num_turns:m0,result:LX,stop_reason:G0,session_id:y(),total_cost_usd:O0(),usage:this.totalUsage,modelUsage:A0(),permission_denials:this.permissionDenials,structured_output:_X,fast_mode_state:W0(B0,U.fastMode),uuid:P0()}}interrupt(){this.abortController.abort()}getMessages(){return this.mutableMessages}getReadFileState(){return this.readFileState}getSessionId(){return y()}setModel(X){this.config.userSpecifiedModel=X}}async function*a3({commands:X,prompt:$,promptUuid:Q,isMeta:Z,cwd:J,tools:Y,mcpClients:K,verbose:G=!1,thinkingConfig:V,maxTurns:z,maxBudgetUsd:L,taskBudget:B,canUseTool:_,mutableMessages:H=[],getReadFileCache:R,setReadFileCache:O,customSystemPrompt:F,appendSystemPrompt:w,userSpecifiedModel:q,fallbackModel:N,jsonSchema:E,getAppState:T,setAppState:k,abortController:d,replayUserMessages:P=!1,includePartialMessages:A=!1,handleElicitation:W,agents:D=[],setSDKStatus:U,orphanedPermission:C}){let S=new n3({cwd:J,tools:Y,commands:X,mcpClients:K,agents:D,canUseTool:_,getAppState:T,setAppState:k,initialMessages:H,readFileCache:U3(R()),customSystemPrompt:F,appendSystemPrompt:w,userSpecifiedModel:q,fallbackModel:N,thinkingConfig:V,maxTurns:z,maxBudgetUsd:L,taskBudget:B,jsonSchema:E,verbose:G,handleElicitation:W,replayUserMessages:P,includePartialMessages:A,setSDKStatus:U,abortController:d,orphanedPermission:C,...{}});try{yield*S.submitMessage($,{uuid:Q,isMeta:Z})}finally{O(S.getReadFileState())}}h0();N5();v0();$0();E5();U0();c();r5();function r3(X,$,Q){$.transferOwnershipFrom(X);for(let[Z,J]of Q.entries()){let Y=$.get(Z);if(!Y||J.timestamp>Y.timestamp)$.set(Z,J)}return Q.clear(),$}U0();q8();O1();X0();$0();Z2();L8();N8();N0();A1();a5();b8();j4();i();o5();k8();D8();U8();y8();R8();Z4();z4();E8();X0();O8();y0();function w8(X){return typeof X==="string"?[{type:"text",text:X}]:X}function t5(X){if(X.length===1)return X[0];if(X.every(($)=>typeof $==="string"))return X.join(`
|
|
17
|
+
`);return X.flatMap(w8)}function e5(X,$){return $!==void 0&&$.mode==="prompt"&&$.isMeta===X.isMeta}var o3=`<system-reminder>
|
|
18
|
+
You are running in non-interactive mode and cannot return a response to the user until your team is shut down.
|
|
19
|
+
|
|
20
|
+
You MUST shut down your team before preparing your final response:
|
|
21
|
+
1. Use requestShutdown to ask each team member to shut down gracefully
|
|
22
|
+
2. Wait for shutdown approvals
|
|
23
|
+
3. Use the cleanup operation to clean up the team
|
|
24
|
+
4. Only then provide your final response to the user
|
|
25
|
+
|
|
26
|
+
The user cannot receive your response until the team is completely shut down.
|
|
27
|
+
</system-reminder>
|
|
28
|
+
|
|
29
|
+
Shut down your team and prepare your final response for the user.`;async function L4(X){let{structuredIO:$,output:Q,options:Z,getAppState:J,setAppState:Y,mutableMessages:K,pendingSeeds:G,suggestionState:V,canUseTool:z,idleTimeout:L}=X;if(X.running)return;if(X.running=!0,X.runPhase=void 0,Y1("running"),L.stop(),l("run_entry"),await X.updateSdkMcp(),l("after_updateSdkMcp"),X.pluginInstallPromise){let _=parseInt(process.env.CLAUDIN_SYNC_PLUGIN_INSTALL_TIMEOUT_MS||"",10);if(_>0){let R=e0(_).then(()=>"timeout");if(await Promise.race([X.pluginInstallPromise,R])==="timeout")x(Error(`CLAUDIN_SYNC_PLUGIN_INSTALL: plugin installation timed out after ${_}ms`)),u("",{timeout_ms:_})}else await X.pluginInstallPromise;X.pluginInstallPromise=null,await X.refreshPluginState();let{setupPluginHookHotReload:H}=await import("./loadPluginHooks-1.1.14-g5te2y4b.mjs");H()}let B=(_)=>_.agentId===void 0;try{let _,H=!1,R=async()=>{while(_=YX(B)){if(_.mode!=="prompt"&&_.mode!=="orphaned-permission"&&_.mode!=="task-notification")throw Error("only prompt commands are supported in streaming mode");let O=[_];if(_.mode==="prompt"){while(e5(_,x1(B)))O.push(YX(B));if(O.length>1)_={..._,value:t5(O.map((W)=>W.value)),uuid:O.findLast((W)=>W.uuid)?.uuid??_.uuid}}let F=O.map((W)=>W.uuid).filter((W)=>W!==void 0);if(Z.replayUserMessages&&O.length>1){for(let W of O)if(W.uuid&&W.uuid!==_.uuid)Q.enqueue({type:"user",message:{role:"user",content:W.value},session_id:y(),parent_tool_use_id:null,uuid:W.uuid,isReplay:!0})}let w=J(),q=[...w.mcp.clients,...X.sdkClients,...X.dynamicMcpState.clients];X.registerElicitationHandlers(q);for(let W of q)c0(W);let N=X.buildAllTools(w);for(let W of F)u0(W,"started");if(_.mode==="task-notification"){let W=typeof _.value==="string"?_.value:"",D=W.match(/<task-id>([^<]+)<\/task-id>/),U=W.match(/<tool-use-id>([^<]+)<\/tool-use-id>/),C=W.match(/<output-file>([^<]+)<\/output-file>/),S=W.match(/<status>([^<]+)<\/status>/),m=W.match(/<summary>([^<]+)<\/summary>/),a=(s)=>s==="completed"||s==="failed"||s==="stopped"||s==="killed",j0=S?.[1],X5=a(j0)?j0==="killed"?"stopped":j0:"completed",M0=W.match(/<usage>([\s\S]*?)<\/usage>/)?.[1]??"",z1=M0.match(/<total_tokens>(\d+)<\/total_tokens>/),K1=M0.match(/<tool_uses>(\d+)<\/tool_uses>/),V0=M0.match(/<duration_ms>(\d+)<\/duration_ms>/);if(S)Q.enqueue({type:"system",subtype:"task_notification",task_id:D?.[1]??"",tool_use_id:U?.[1],status:X5,output_file:C?.[1]??"",summary:m?.[1]??"",usage:z1&&K1?{total_tokens:parseInt(z1[1],10),tool_uses:parseInt(K1[1],10),duration_ms:V0?parseInt(V0[1],10):0}:void 0,session_id:y(),uuid:C0()})}let E=_.value;if($ instanceof a0&&_.mode==="prompt")u("",{is_repl:!1});if(V.abortController?.abort(),V.abortController=null,V.pendingSuggestion=null,V.pendingLastEmittedEntry=null,V.lastEmitted){if(_.mode==="prompt"){let W=typeof E==="string"?E:E.find((D)=>D.type==="text")?.text;if(typeof W==="string")_4(V.lastEmitted.text,W,V.lastEmitted.emittedAt,V.lastEmitted.promptId,V.lastEmitted.generationRequestId);V.lastEmitted=null}}X.abortController=H0();let T=X.abortController,k=void 0;l("before_ask"),H4();let d=_,P=null,A=()=>{if(!P)return;let W=P,D=W.message?.id;if(!D){P=null;return}let U=K.findLast((m)=>m?.type==="assistant"&&m.message?.id===D);if(!U){P=null;return}let C=U.message.usage;if(!(U.message.stop_reason!=null||C&&(C.input_tokens??0)+(C.output_tokens??0)+(C.cache_read_input_tokens??0)+(C.cache_creation_input_tokens??0)>0))return;P=null,Q.enqueue({...W,message:{...W.message,usage:U.message.usage,stop_reason:U.message.stop_reason??W.message.stop_reason}})};for await(let W of a3({commands:r0([...X.currentCommands,...w.mcp.commands],"name"),prompt:E,promptUuid:d.uuid,isMeta:d.isMeta,cwd:P8(),tools:N,verbose:Z.verbose,mcpClients:q,thinkingConfig:Z.thinkingConfig,maxTurns:Z.maxTurns,maxBudgetUsd:Z.maxBudgetUsd,taskBudget:Z.taskBudget,canUseTool:z,userSpecifiedModel:X.activeUserSpecifiedModel,fallbackModel:Z.fallbackModel,jsonSchema:P1()??Z.jsonSchema,mutableMessages:K,getReadFileCache:()=>G.size===0?X.readFileState:Y4(X.readFileState,G),setReadFileCache:(D)=>{X.readFileState=r3(X.readFileState,D,G)},customSystemPrompt:Z.systemPrompt,appendSystemPrompt:Z.appendSystemPrompt,getAppState:J,setAppState:Y,abortController:T,replayUserMessages:Z.replayUserMessages,includePartialMessages:Z.includePartialMessages,handleElicitation:(D,U,C)=>$.handleElicitation(D,U.message,void 0,C,U.mode,U.url,"elicitationId"in U?U.elicitationId:void 0),agents:X.currentAgents,orphanedPermission:d.orphanedPermission,setSDKStatus:(D)=>{Q.enqueue({type:"system",subtype:"status",status:D,session_id:y(),uuid:C0()})}})){if(X.forwardMessagesToBridge(),W.type==="assistant"){A(),Q.enqueue(W),P=W;continue}if(W.type==="result"){A(),P=null;for(let U of t0())Q.enqueue(U);let D=J();if(X1(D).some((U)=>(U.type==="local_agent"||U.type==="local_workflow")&&$1(U)))X.heldBackResult=W;else X.heldBackResult=null,Q.enqueue(W)}else{A();for(let D of t0())Q.enqueue(D);Q.enqueue(W)}}P=null;for(let W of F)u0(W,"completed");if(X.forwardMessagesToBridge(),X.bridgeHandle?.sendResult(),Z.promptSuggestions&&!s3(process.env.CLAUDIN_ENABLE_PROMPT_SUGGESTION)){V.abortController?.abort();let D=new AbortController;V.abortController=D;let U=p1();if(!U)ZX("sdk_no_params",void 0,void 0,"sdk");else{let C={promise:null};C.promise=(async()=>{try{let S=await B4(D,K,J,U,"sdk");if(!S||D.signal.aborted)return;let m={type:"prompt_suggestion",suggestion:S.suggestion,uuid:C0(),session_id:y()},a={text:S.suggestion,emittedAt:Date.now(),promptId:S.promptId,generationRequestId:S.generationRequestId};if(X.heldBackResult)V.pendingSuggestion=m,V.pendingLastEmittedEntry={text:a.text,promptId:a.promptId,generationRequestId:a.generationRequestId};else V.lastEmitted=a,Q.enqueue(m)}catch(S){if(S instanceof Error&&(S.name==="AbortError"||S.name==="APIUserAbortError")){ZX("aborted",void 0,void 0,"sdk");return}x(k1(S))}finally{if(V.inflightPromise===C.promise)V.inflightPromise=null}})(),V.inflightPromise=C.promise}}u1(),W4(),d1()}};do{for(let O of t0())Q.enqueue(O);X.runPhase="draining_commands",await R(),H=!1;{let O=J(),F=X1(O).some((q)=>$1(q)&&q.type!=="in_process_teammate"),w=x1(B)!==void 0;if(F||w){if(H=!0,!w)X.runPhase="waiting_for_agents",await e0(100)}}}while(H);if(X.heldBackResult){if(Q.enqueue(X.heldBackResult),X.heldBackResult=null,V.pendingSuggestion){if(Q.enqueue(V.pendingSuggestion),V.pendingLastEmittedEntry)V.lastEmitted={...V.pendingLastEmittedEntry,emittedAt:Date.now()},V.pendingLastEmittedEntry=null;V.pendingSuggestion=null}}}catch(_){try{await $.write({type:"result",subtype:"error_during_execution",duration_ms:0,duration_api_ms:0,is_error:!0,num_turns:0,stop_reason:null,session_id:y(),total_cost_usd:0,usage:q0,modelUsage:{},permission_denials:[],uuid:C0(),errors:[v(_),...s0().map((H)=>H.error)]})}catch{}V.abortController?.abort(),f(1);return}finally{if(X.runPhase="finally_flush",await $.flushInternalEvents(),X.runPhase="finally_post_flush",!F4()){Y1("idle");for(let _ of t0())Q.enqueue(_)}X.running=!1,L.start()}if(x1(B)!==void 0){X.run();return}{let H=J().teamContext;if(H&&t3(H))while(!0){let F=J();if(!($X(F)||F.teamContext&&Object.keys(F.teamContext.teammates).length>0)){b("[print.ts] No more active teammates, stopping poll");break}let q=await V4("team-lead",F.teamContext?.teamName);if(q.length>0){b(`[print.ts] Team-lead found ${q.length} unread messages`),await G4("team-lead",F.teamContext?.teamName);let N=F.teamContext?.teamName;for(let T of q){let k=Q4(T.text);if(k&&N){let d=k.from;b(`[print.ts] Processing shutdown_approved from ${d}`);let P=F.teamContext?.teammates?Object.entries(F.teamContext.teammates).find(([,A])=>A.name===d)?.[0]:void 0;if(P)K4(N,{agentId:P,name:d}),b(`[print.ts] Removed ${d} from team file`),await $4(N,P,d,"shutdown"),Y((A)=>{if(!A.teamContext?.teammates)return A;if(!(P in A.teamContext.teammates))return A;let{[P]:W,...D}=A.teamContext.teammates;return{...A,teamContext:{...A.teamContext,teammates:D}}})}}let E=q.map((T)=>`<${XX} teammate_id="${T.from}"${T.color?` color="${T.color}"`:""}>
|
|
30
|
+
${T.text}
|
|
31
|
+
</${XX}>`).join(`
|
|
32
|
+
|
|
33
|
+
`);g({mode:"prompt",value:E,uuid:C0()}),X.run();return}if(X.inputClosed&&!X.shutdownPromptInjected){X.shutdownPromptInjected=!0,b("[print.ts] Input closed with active teammates, injecting shutdown prompt"),g({mode:"prompt",value:o3,uuid:C0()}),X.run();return}await e0(500)}}if(X.inputClosed)if(await(async()=>{let H=J();if(e3(H))await X4(Y,H);let R=J(),O=R.teamContext;return O&&Object.keys(O.teammates).length>0||$X(R)})())g({mode:"prompt",value:o3,uuid:C0()}),X.run();else await X.closeOutput()}async function q4(X,$,Q,Z){let{suggestionState:J,output:Y}=X;if(J.inflightPromise)await Promise.race([J.inflightPromise,e0(5000)]);J.abortController?.abort(),J.abortController=null,await J4(),$(),Q?.(),Z(),Y.done()}c();n0();N5();h0();v0();X0();W6();n8();b0();i();s5();w0();w0();c8();i8();x0();q1();i();b0();E4();I8();O1();k4();N4();v1();U4();import{randomUUID as A8}from"crypto";async function A4(X,$,Q,Z,J,Y,K,G,V,z,L){if(Q){Z.enqueue({type:"control_response",response:{subtype:"error",error:"Already initialized",request_id:$,pending_permission_requests:K.getPendingPermissionRequests()}});return}if(X.systemPrompt!==void 0)V.systemPrompt=X.systemPrompt;if(X.appendSystemPrompt!==void 0)V.appendSystemPrompt=X.appendSystemPrompt;if(X.promptSuggestions!==void 0)V.promptSuggestions=X.promptSuggestions;if(X.agents){let q=b4(X.agents,"flagSettings");z.push(...q)}if(V.agent){let q=g1()===V.agent,N=z.find((E)=>E.agentType===V.agent);if(N&&!q){if(D4(N.agentType),!V.systemPrompt&&!i1(N)){let E=N.getSystemPrompt();if(E)V.systemPrompt=E}if(!V.userSpecifiedModel&&N.model&&N.model!=="inherit"){let E=d0(N.model);Z0(E)}if(N.initialPrompt)K.prependUserMessage(N.initialPrompt)}else if(N?.initialPrompt)K.prependUserMessage(N.initialPrompt)}let _=R4()?.outputStyle||P4,H=await I4(L0()),R=c1();if(X.hooks){let q={};for(let[N,E]of Object.entries(X.hooks))q[N]=E.map((T)=>{let k=T.hookCallbackIds.map((d)=>{return K.createHookCallback(d,T.timeout)});return{matcher:T.matcher,hooks:k}});O4(q)}if(X.jsonSchema)w4(X.jsonSchema);let O=l1(),F=O==="firstParty"||O==="bedrock"||O==="vertex"||O==="foundry"?O:void 0,w={commands:J.filter((q)=>q.userInvocable!==!1).map((q)=>({name:n1(q),description:a1(q),argumentHint:q.argumentHint||""})),agents:z.map((q)=>({name:q.agentType,description:q.whenToUse,model:q.model==="inherit"?void 0:q.model})),output_style:_,available_output_styles:Object.keys(H),models:Y,account:{email:R?.email,organization:R?.organization,subscriptionType:R?.subscription,tokenSource:R?.tokenSource,apiKeySource:R?.apiKeySource,apiProvider:F},pid:process.pid};if(m1()&&y4()){let q=L();w.fast_mode_state=W0(V.userSpecifiedModel??null,q.fastMode)}if(Z.enqueue({type:"control_response",response:{subtype:"success",request_id:$,response:w}}),G){let N=Z1.getInstance().getStatus();if(N)Z.enqueue({type:"auth_status",isAuthenticating:N.isAuthenticating,output:N.output,error:N.error,uuid:A8(),session_id:y()})}}var o1=new Set,r1=[];function T4(X){return o1.has(X)}function C4(X){if(o1.has(X))return!1;if(o1.add(X),r1.push(X),r1.length>1e4){let $=r1.splice(0,r1.length-1e4);for(let Q of $)o1.delete(Q)}return!0}M8();T8();c();X0();h5();f5();C8();u2();e2();async function v4(X,$){let{getAppState:Q,setAppState:Z,initialMcpClients:J}=X,Y=Q(),{serverName:K}=$.request;X.elicitationRegistered.delete(K);let G=J1(K)??J.find((V)=>V.name===K)?.config??X.sdkClients.find((V)=>V.name===K)?.config??X.dynamicMcpState.clients.find((V)=>V.name===K)?.config??Y.mcp.clients.find((V)=>V.name===K)?.config??null;if(!G)X.sendControlResponseError($,`Server not found: ${K}`);else{let V=await V1(K,G),z=K0(K);if(Z((L)=>({...L,mcp:{...L.mcp,clients:L.mcp.clients.map((B)=>B.name===K?V.client:B),tools:[...o(L.mcp.tools,(B)=>B.name?.startsWith(z)),...V.tools],commands:[...o(L.mcp.commands,(B)=>p0(B,K)),...V.commands],resources:V.resources&&V.resources.length>0?{...L.mcp.resources,[K]:V.resources}:g0(L.mcp.resources,K)}})),X.dynamicMcpState={...X.dynamicMcpState,clients:[...X.dynamicMcpState.clients.filter((L)=>L.name!==K),V.client],tools:[...X.dynamicMcpState.tools.filter((L)=>!L.name?.startsWith(z)),...V.tools]},V.client.type==="connected")X.registerElicitationHandlers([V.client]),c0(V.client),X.sendControlResponseSuccess($);else{let L=V.client.type==="failed"?V.client.error??"Connection failed":`Server status: ${V.client.type}`;X.sendControlResponseError($,L)}}}async function S4(X,$){let{getAppState:Q,setAppState:Z,initialMcpClients:J}=X,Y=Q(),{serverName:K,enabled:G}=$.request;X.elicitationRegistered.delete(K);let V=J1(K)??J.find((z)=>z.name===K)?.config??X.sdkClients.find((z)=>z.name===K)?.config??X.dynamicMcpState.clients.find((z)=>z.name===K)?.config??Y.mcp.clients.find((z)=>z.name===K)?.config??null;if(!V)X.sendControlResponseError($,`Server not found: ${K}`);else if(!G){JX(K,!1);let z=[...J,...X.sdkClients,...X.dynamicMcpState.clients,...Y.mcp.clients].find((B)=>B.name===K);if(z&&z.type==="connected")await b1(K,V);let L=K0(K);Z((B)=>({...B,mcp:{...B.mcp,clients:B.mcp.clients.map((_)=>_.name===K?{name:K,type:"disabled",config:V}:_),tools:o(B.mcp.tools,(_)=>_.name?.startsWith(L)),commands:o(B.mcp.commands,(_)=>p0(_,K)),resources:g0(B.mcp.resources,K)}})),X.sendControlResponseSuccess($)}else{JX(K,!0);let z=await V1(K,V),L=K0(K);if(Z((B)=>({...B,mcp:{...B.mcp,clients:B.mcp.clients.map((_)=>_.name===K?z.client:_),tools:[...o(B.mcp.tools,(_)=>_.name?.startsWith(L)),...z.tools],commands:[...o(B.mcp.commands,(_)=>p0(_,K)),...z.commands],resources:z.resources&&z.resources.length>0?{...B.mcp.resources,[K]:z.resources}:g0(B.mcp.resources,K)}})),z.client.type==="connected")X.registerElicitationHandlers([z.client]),c0(z.client),X.sendControlResponseSuccess($);else{let B=z.client.type==="failed"?z.client.error??"Connection failed":`Server status: ${z.client.type}`;X.sendControlResponseError($,B)}}}async function x4(X,$){let{getAppState:Q,setAppState:Z,initialMcpClients:J,activeOAuthFlows:Y,oauthCallbackSubmitters:K,oauthManualCallbackUsed:G,oauthAuthPromises:V}=X,{serverName:z}=$.request,L=Q(),B=J1(z)??J.find((_)=>_.name===z)?.config??L.mcp.clients.find((_)=>_.name===z)?.config??null;if(!B)X.sendControlResponseError($,`Server not found: ${z}`);else if(B.type!=="sse"&&B.type!=="http")X.sendControlResponseError($,`Server type "${B.type}" does not support OAuth authentication`);else try{Y.get(z)?.abort();let _=new AbortController;Y.set(z,_);let H,R=new Promise((q)=>{H=q}),O=h4(z,B,(q)=>H(q),_.signal,{skipBrowserOpen:!0,onWaitingForCallback:(q)=>{K.set(z,q)}}),F=await Promise.race([R,O.then(()=>null)]);if(F)X.sendControlResponseSuccess($,{authUrl:F,requiresUserAction:!0});else X.sendControlResponseSuccess($,{requiresUserAction:!1});V.set(z,O);let w=O.then(async()=>{if(M4(z))return;if(G.has(z))return;let q=await V1(z,B),N=K0(z);Z((E)=>({...E,mcp:{...E.mcp,clients:E.mcp.clients.map((T)=>T.name===z?q.client:T),tools:[...o(E.mcp.tools,(T)=>T.name?.startsWith(N)),...q.tools],commands:[...o(E.mcp.commands,(T)=>p0(T,z)),...q.commands],resources:q.resources&&q.resources.length>0?{...E.mcp.resources,[z]:q.resources}:g0(E.mcp.resources,z)}})),X.dynamicMcpState={...X.dynamicMcpState,clients:[...X.dynamicMcpState.clients.filter((E)=>E.name!==z),q.client],tools:[...X.dynamicMcpState.tools.filter((E)=>!E.name?.startsWith(N)),...q.tools]}}).catch((q)=>{b(`MCP OAuth failed for ${z}: ${q}`,{level:"error"})}).finally(()=>{if(Y.get(z)===_)Y.delete(z),K.delete(z),G.delete(z),V.delete(z)})}catch(_){X.sendControlResponseError($,v(_))}}async function d4(X,$){let{oauthCallbackSubmitters:Q,oauthManualCallbackUsed:Z,oauthAuthPromises:J}=X,{serverName:Y,callbackUrl:K}=$.request,G=Q.get(Y);if(G){let V=!1;try{let z=new URL(K);V=z.searchParams.has("code")||z.searchParams.has("error")}catch{}if(!V)X.sendControlResponseError($,"Invalid callback URL: missing authorization code. Please paste the full redirect URL including the code parameter.");else{Z.add(Y),G(K);let z=J.get(Y);if(z)try{await z,X.sendControlResponseSuccess($)}catch(L){X.sendControlResponseError($,L instanceof Error?L.message:"OAuth authentication failed")}else X.sendControlResponseSuccess($)}}else X.sendControlResponseError($,`No active OAuth flow for server: ${Y}`)}async function u4(X,$){let{getAppState:Q,setAppState:Z,initialMcpClients:J}=X,{serverName:Y}=$.request,K=Q(),G=J1(Y)??J.find((V)=>V.name===Y)?.config??K.mcp.clients.find((V)=>V.name===Y)?.config??null;if(!G)X.sendControlResponseError($,`Server not found: ${Y}`);else if(G.type!=="sse"&&G.type!=="http")X.sendControlResponseError($,`Cannot clear auth for server type "${G.type}"`);else{await f4(Y,G);let V=await V1(Y,G),z=K0(Y);Z((L)=>({...L,mcp:{...L.mcp,clients:L.mcp.clients.map((B)=>B.name===Y?V.client:B),tools:[...o(L.mcp.tools,(B)=>B.name?.startsWith(z)),...V.tools],commands:[...o(L.mcp.commands,(B)=>p0(B,Y)),...V.commands],resources:V.resources&&V.resources.length>0?{...L.mcp.resources,[Y]:V.resources}:g0(L.mcp.resources,Y)}})),X.sendControlResponseSuccess($,{})}}U0();c();X0();f8();h8();k4();N4();async function l4(X,$){let{loginWithClaudeAi:Q}=$.request;X.claudeOAuth?.service.cleanup(),u("",{loginWithClaudeAi:Q??!0});let Z=new p4,J,Y=new Promise((G)=>{J=G}),K=Z.startOAuthFlow(async(G,V)=>{J({manualUrl:G,automaticUrl:V})},{loginWithClaudeAi:Q??!0,skipBrowserOpen:!0}).then(async(G)=>{await g4(G),u("",{loginWithClaudeAi:Q??!0})}).finally(()=>{if(Z.cleanup(),X.claudeOAuth?.service===Z)X.claudeOAuth=null});X.claudeOAuth={service:Z,flow:K},K.catch((G)=>b(`claude_authenticate flow ended: ${G}`,{level:"info"}));try{let{manualUrl:G,automaticUrl:V}=await Promise.race([Y,K.then(()=>{throw Error("OAuth flow completed without producing auth URLs")})]);X.sendControlResponseSuccess($,{manualUrl:G,automaticUrl:V})}catch(G){X.sendControlResponseError($,v(G))}}function m4(X,$){if(!X.claudeOAuth){X.sendControlResponseError($,"No active claude_authenticate flow");return}if($.request.subtype==="claude_oauth_callback")X.claudeOAuth.service.handleManualAuthCodeInput({authorizationCode:$.request.authorizationCode,state:$.request.state});let{flow:Q}=X.claudeOAuth;Q.then(()=>{let Z=c1();X.sendControlResponseSuccess($,{account:{email:Z?.email,organization:Z?.organization,subscriptionType:Z?.subscription,tokenSource:Z?.tokenSource,apiKeySource:Z?.apiKeySource,apiProvider:l1()}})},(Z)=>X.sendControlResponseError($,v(Z)))}$0();c();X0();v8();x0();x0();C5();J3();r4();E4();i();b0();s4();v0();A1();u8();w0();j4();import{readFile as p8,stat as g8}from"fs/promises";import{cwd as l8}from"process";import{randomUUID as m8}from"crypto";d8();S8();x8();h0();b0();async function Y6(X,$){try{let Q=n4($.request.path),Z=Math.floor((await g8(Q)).mtimeMs);if(Z<=$.request.mtime){let J=await p8(Q,"utf-8"),Y=(J.charCodeAt(0)===65279?J.slice(1):J).replaceAll(`\r
|
|
34
|
+
`,`
|
|
35
|
+
`);X.pendingSeeds.set(Q,{content:Y,timestamp:Z,offset:void 0,limit:void 0})}}catch{}X.sendControlResponseSuccess($)}async function Z6(X,$){let{setAppState:Q}=X;try{let Z=await I1(Q),J=X.currentAgents.filter((z)=>z.source==="flagSettings");X.currentAgents=[...Z.agentDefinitions.allAgents,...J];let Y=[],[K,G,V]=await Promise.allSettled([S0(l8()),X.applyPluginMcpDiff(),S1()]);if(K.status==="fulfilled")X.currentCommands=K.value;else x(K.reason);if(G.status==="rejected")x(G.reason);if(V.status==="fulfilled")Y=V.value.enabled.map((z)=>({name:z.name,path:z.path,source:z.source}));else x(V.reason);X.sendControlResponseSuccess($,{commands:X.currentCommands.filter((z)=>z.userInvocable!==!1).map((z)=>({name:n1(z),description:a1(z),argumentHint:z.argumentHint||""})),agents:X.currentAgents.map((z)=>({name:z.agentType,description:z.whenToUse,model:z.model==="inherit"?void 0:z.model})),plugins:Y,mcpServers:X.buildMcpServerStatuses(),error_count:Z.error_count})}catch(Z){X.sendControlResponseError($,v(Z))}}function J6(X,$){let Q=J0(),Z=c4()??{},J=$.request.settings,Y={...Z,...J};for(let G of Object.keys(Y))if(Y[G]===null)delete Y[G];if(i4(Y),s1.notifyChange("flagSettings"),"model"in J)if(J.model!=null)Z0(String(J.model));else Z0(void 0);let K=J0();if(K!==Q){X.activeUserSpecifiedModel=K;let G=J.model?String(J.model):"default";e1({model:K}),X.injectModelSwitchBreadcrumbs(G,K)}X.sendControlResponseSuccess($)}function V6(X,$){let Q=X.getAppState(),Z=J0(),J=t1(Z)?o4(Z,Q.effortValue):void 0;X.sendControlResponseSuccess($,{...a4(),applied:{model:Z,effort:typeof J==="string"?J:null}})}function G6(X,$){let{description:Q,persist:Z}=$.request,J=(X.abortController&&!X.abortController.signal.aborted?X.abortController:H0()).signal;(async()=>{try{let Y=await e4(Q,J);if(Y&&Z)try{X6(y(),Y)}catch(K){x(K)}X.sendControlResponseSuccess($,{title:Y})}catch(Y){X.sendControlResponseError($,v(Y))}})()}function Q6(X,$){let{getAppState:Q,setAppState:Z,options:J,mutableMessages:Y}=X,{question:K}=$.request;(async()=>{try{let G=p1(),V=G?{...G,toolUseContext:{...G.toolUseContext,abortController:H0()}}:await q3({tools:X.buildAllTools(Q()),commands:X.currentCommands,mcpClients:[...Q().mcp.clients,...X.sdkClients,...X.dynamicMcpState.clients],messages:Y,readFileState:X.readFileState,getAppState:Q,setAppState:Z,customSystemPrompt:J.systemPrompt,appendSystemPrompt:J.appendSystemPrompt,thinkingConfig:J.thinkingConfig,agents:X.currentAgents}),z=await t4({question:K,cacheSafeParams:V});X.sendControlResponseSuccess($,{response:z.response})}catch(G){X.sendControlResponseError($,v(G))}})()}async function z6(X,$){let{structuredIO:Q,output:Z,options:J,mutableMessages:Y}=X;if($.request.enabled)if(X.bridgeHandle)X.sendControlResponseSuccess($,{session_url:VX(X.bridgeHandle.bridgeSessionId,X.bridgeHandle.sessionIngressUrl),connect_url:GX(X.bridgeHandle.environmentId,X.bridgeHandle.sessionIngressUrl),environment_id:X.bridgeHandle.environmentId});else{let K;try{let{initReplBridge:G}=await import("./initReplBridge-1.1.14-ptmwhng6.mjs"),V=await G({onInboundMessage(z){let L=$6(z);if(!L)return;let{content:B,uuid:_}=L;g({value:B,mode:"prompt",uuid:_,skipSlashCommands:!0}),X.run()},onPermissionResponse(z){Q.injectControlResponse(z)},onInterrupt(){X.abortController?.abort()},onSetModel(z){let L=z==="default"?l0():z;X.activeUserSpecifiedModel=L,Z0(L)},onSetMaxThinkingTokens(z){if(z===null)J.thinkingConfig=void 0;else if(z===0)J.thinkingConfig={type:"disabled"};else J.thinkingConfig={type:"enabled",budgetTokens:z}},onStateChange(z,L){if(z==="failed")K=L;b(`[bridge:sdk] State change: ${z}${L?` — ${L}`:""}`),Z.enqueue({type:"system",subtype:"bridge_state",state:z,detail:L,uuid:m8(),session_id:y()})},initialMessages:Y.length>0?Y:void 0});if(!V)X.sendControlResponseError($,K??"Remote Control initialization failed");else X.bridgeHandle=V,X.bridgeLastForwardedIndex=Y.length,Q.setOnControlRequestSent((z)=>{V.sendControlRequest(z)}),Q.setOnControlRequestResolved((z)=>{V.sendControlCancelRequest(z)}),X.sendControlResponseSuccess($,{session_url:VX(V.bridgeSessionId,V.sessionIngressUrl),connect_url:GX(V.environmentId,V.sessionIngressUrl),environment_id:V.environmentId})}catch(G){X.sendControlResponseError($,v(G))}}else{if(X.bridgeHandle)Q.setOnControlRequestSent(void 0),Q.setOnControlRequestResolved(void 0),await X.bridgeHandle.teardown(),X.bridgeHandle=null;X.sendControlResponseSuccess($)}}async function O6(X){let{structuredIO:$,output:Q,options:Z,getAppState:J,setAppState:Y,sdkMcpConfigs:K,mutableMessages:G,suggestionState:V,initialCommands:z,initialAgents:L,modelInfos:B}=X,_=!1;k0("info","cli_message_loop_started");for await(let H of $.structuredInput){let R="uuid"in H?H.uuid:void 0;if(R&&H.type!=="user"&&H.type!=="control_response")u0(R,"completed");if(H.type==="control_request"){let O=H.request.subtype;if(H.request.subtype==="interrupt"){if(X.abortController)X.abortController.abort();V.abortController?.abort(),V.abortController=null,V.lastEmitted=null,V.pendingSuggestion=null,X.sendControlResponseSuccess(H)}else if(O==="end_session"){if(b(`[print.ts] end_session received, reason=${H.request.reason??"unspecified"}`),X.abortController)X.abortController.abort();V.abortController?.abort(),V.abortController=null,V.lastEmitted=null,V.pendingSuggestion=null,X.sendControlResponseSuccess(H);break}else if(H.request.subtype==="initialize"){if(H.request.sdkMcpServers&&H.request.sdkMcpServers.length>0)for(let F of H.request.sdkMcpServers)K[F]={type:"sdk",name:F};if(await A4(H.request,H.request_id,_,Q,z,B,$,!!Z.enableAuthStatus,Z,L,J),H.request.promptSuggestions)Y((F)=>{if(F.promptSuggestionEnabled)return F;return{...F,promptSuggestionEnabled:!0}});if(H.request.agentProgressSummaries&&H6("tengu_slate_prism",!0))K6(!0);if(_=!0,j6())X.run()}else if(H.request.subtype==="set_permission_mode"){let F=H.request;Y((w)=>({...w,toolPermissionContext:dX(F,H.request_id,w.toolPermissionContext,Q),isUltraplanMode:F.ultraplan??w.isUltraplanMode}))}else if(H.request.subtype==="set_model"){let F=H.request.model??"default",w=F==="default"?l0():F;X.activeUserSpecifiedModel=w,Z0(w),e1({model:w}),X.injectModelSwitchBreadcrumbs(F,w),X.sendControlResponseSuccess(H)}else if(H.request.subtype==="set_max_thinking_tokens"){if(H.request.max_thinking_tokens===null)Z.thinkingConfig=void 0;else if(H.request.max_thinking_tokens===0)Z.thinkingConfig={type:"disabled"};else Z.thinkingConfig={type:"enabled",budgetTokens:H.request.max_thinking_tokens};X.sendControlResponseSuccess(H)}else if(H.request.subtype==="mcp_status")X.sendControlResponseSuccess(H,{mcpServers:X.buildMcpServerStatuses()});else if(H.request.subtype==="get_context_usage")try{let F=J(),w=await L6({messages:G,getAppState:J,options:{mainLoopModel:J0(),tools:X.buildAllTools(F),agentDefinitions:F.agentDefinitions,customSystemPrompt:Z.systemPrompt,appendSystemPrompt:Z.appendSystemPrompt}});X.sendControlResponseSuccess(H,{...w})}catch(F){X.sendControlResponseError(H,v(F))}else if(H.request.subtype==="mcp_message"){let F=H.request,w=X.sdkClients.find((q)=>q.name===F.server_name);if(w&&w.type==="connected"&&w.client?.transport?.onmessage)w.client.transport.onmessage(F.message);X.sendControlResponseSuccess(H)}else if(H.request.subtype==="rewind_files"){let F=J(),w=await _1(H.request.user_message_id,F,Y,H.request.dry_run??!1);if(w.canRewind||H.request.dry_run)X.sendControlResponseSuccess(H,w);else X.sendControlResponseError(H,w.error??"Unexpected error")}else if(H.request.subtype==="cancel_async_message"){let F=H.request.message_uuid,w=B6((q)=>q.uuid===F);X.sendControlResponseSuccess(H,{cancelled:w.length>0})}else if(H.request.subtype==="seed_read_state")await Y6(X,H);else if(H.request.subtype==="mcp_set_servers"){let{response:F,sdkServersChanged:w}=await X.applyMcpServerChanges(H.request.servers);if(X.sendControlResponseSuccess(H,F),w)X.updateSdkMcp()}else if(H.request.subtype==="reload_plugins")await Z6(X,H);else if(H.request.subtype==="mcp_reconnect")await v4(X,H);else if(H.request.subtype==="mcp_toggle")await S4(X,H);else if(O==="channel_enable"){let F=J();uX(H.request_id,H.request.serverName,[...F.mcp.clients,...X.sdkClients,...X.dynamicMcpState.clients],Q)}else if(O==="mcp_authenticate")await x4(X,H);else if(O==="mcp_oauth_callback_url")await d4(X,H);else if(O==="claude_authenticate")await l4(X,H);else if(O==="claude_oauth_callback"||O==="claude_oauth_wait_for_completion")m4(X,H);else if(O==="mcp_clear_auth")await u4(X,H);else if(H.request.subtype==="apply_flag_settings")J6(X,H);else if(H.request.subtype==="get_settings")V6(X,H);else if(H.request.subtype==="stop_task"){let{task_id:F}=H.request;try{await _6(F,{getAppState:J,setAppState:Y}),X.sendControlResponseSuccess(H,{})}catch(w){X.sendControlResponseError(H,v(w))}}else if(O==="generate_session_title")G6(X,H);else if(O==="side_question")Q6(X,H);else if(O==="remote_control")await z6(X,H);else X.sendControlResponseError(H,`Unsupported control request subtype: ${O}`);continue}else if(H.type==="control_response"){if(Z.replayUserMessages)Q.enqueue(H);continue}else if(H.type==="keep_alive")continue;else if(H.type==="update_environment_variables")continue;else if(H.type==="assistant"||H.type==="system"){let O=q6([H]);if(G.push(...O),H.type==="assistant"&&Z.replayUserMessages)Q.enqueue(H);continue}if(H.type!=="user")continue;if(_=!0,H.uuid){let O=H.uuid,F=y(),w=await F6(F,O);if(w||T4(O)){if(b(`Skipping duplicate user message: ${H.uuid}`),Z.replayUserMessages)b(`Sending acknowledgment for duplicate user message: ${H.uuid}`),Q.enqueue({type:"user",message:H.message,session_id:F,parent_tool_use_id:null,uuid:H.uuid,timestamp:H.timestamp,isReplay:!0});if(w)u0(H.uuid,"completed");continue}C4(O)}g({mode:"prompt",value:await w6(H,H.message.content),uuid:H.uuid,priority:H.priority}),X.run()}if(X.inputClosed=!0,X.cronScheduler?.stop(),!X.running)await X.closeOutput()}var Z9=(Y9(),Y0($9)),J9=(X9(),Y0(e8)),R6=(o8(),Y0(r8));function x6(X,$,Q,Z,J,Y,K,G,V,z,L,B){let _=X.outbound,H={abortController:null,inflightPromise:null,lastEmitted:null,pendingSuggestion:null,pendingLastEmittedEntry:null},R=J,O=b6(zX),w=A6().map((W)=>{let D=W.value===null?"default":W.value,U=D==="default"?l0():d0(D),C=t1(U),S=y6(U),m=E6(W.value),a=U6(U);return{value:D,displayName:W.label,description:W.description,...C&&{supportsEffort:!0,supportedEffortLevels:k6(U)?[...QX]:QX.filter((j0)=>j0!=="max")},...S&&{supportsAdaptiveThinking:!0},...m&&{supportsFastMode:!0},...a&&{supportsAutoMode:!0}}}),q=_2(()=>!k.running),N,E=(W)=>{let D=M6(W);if(D)_.enqueue({type:"rate_limit_event",rate_limit_info:D,uuid:G1(),session_id:y()})},T=S6.subscribe(()=>{v6(),S0(D6()).then((W)=>{k.currentCommands=W})}),k={structuredIO:X,output:_,initialMcpClients:$,baseTools:Z,initialCommands:Q,initialAgents:z,canUseTool:Y,getAppState:G,setAppState:V,options:L,sdkMcpConfigs:K,mutableMessages:R,pendingSeeds:O,suggestionState:H,elicitationRegistered:new Set,modelInfos:w,idleTimeout:q,activeOAuthFlows:new Map,oauthCallbackSubmitters:new Map,oauthManualCallbackUsed:new Set,oauthAuthPromises:new Map,running:!1,runPhase:void 0,inputClosed:!1,shutdownPromptInjected:!1,heldBackResult:null,abortController:void 0,readFileState:T6(J,D6(),zX),activeUserSpecifiedModel:L.userSpecifiedModel,sdkClients:[],sdkTools:[],dynamicMcpState:{clients:[],tools:[],configs:{}},bridgeHandle:null,bridgeLastForwardedIndex:0,mcpChangesPromise:Promise.resolve({response:{added:[],removed:[],errors:{}},sdkServersChanged:!1}),pluginInstallPromise:null,currentCommands:Q,currentAgents:z,cronScheduler:null,claudeOAuth:null,run:()=>L4(k),updateSdkMcp:()=>G3(k),applyMcpServerChanges:(W)=>K3(k,W),refreshPluginState:()=>W3(k),applyPluginMcpDiff:()=>j3(k),buildAllTools:(W)=>Q3(k,W),registerElicitationHandlers:(W)=>V3(k,W),buildMcpServerStatuses:()=>H3(k),forwardMessagesToBridge:()=>z3(k),injectModelSwitchBreadcrumbs:(W,D)=>{let U=C6(W,N6(D));R.push(...U);for(let C of U)if(typeof C.message.content==="string"&&C.message.content.includes(`<${o0}>`))_.enqueue({type:"user",message:C.message,session_id:y(),parent_tool_use_id:null,uuid:C.uuid,timestamp:C.timestamp,isReplay:!0})},sendControlResponseSuccess:(W,D)=>{_.enqueue({type:"control_response",response:{subtype:"success",request_id:W.request_id,response:D}})},sendControlResponseError:(W,D)=>{_.enqueue({type:"control_response",response:{subtype:"error",request_id:W.request_id,error:D}})},scheduleProactiveTick:void 0,closeOutput:()=>q4(k,T,N,()=>KX.delete(E))},d=()=>{if(k0("info","shutdown_signal",{signal:"SIGINT"}),k.abortController&&!k.abortController.signal.aborted)k.abortController.abort();E1(0)};if(process.on("SIGINT",d),Q0(async()=>{let W={};for(let D of X1(G()))if($1(D))W[D.type]=(W[D.type]??0)+1;k0("info","run_state_at_shutdown",{run_active:k.running,run_phase:k.runPhase,worker_status:h6(),internal_events_pending:X.internalEventsPending,bg_tasks:W})}),f6((W)=>{if(W==="default"||W==="acceptEdits"||W==="bypassPermissions"||W==="plan"||W==="auto"||W==="dontAsk")_.enqueue({type:"system",subtype:"status",status:null,permissionMode:W,uuid:G1(),session_id:y()})}),L.enableAuthStatus)N=Z1.getInstance().subscribe((D)=>{_.enqueue({type:"auth_status",isAuthenticating:D.isAuthenticating,output:D.output,error:D.error,uuid:G1(),session_id:y()})});KX.add(E);let P=process.env.CLAUDIN_RESUME_INTERRUPTED_TURN;if(B&&B.kind!=="none"&&P)b(`[print.ts] Auto-resuming interrupted turn (kind: ${B.kind})`),y5(R,B.message),g({mode:"prompt",value:B.message.message.content,uuid:G1()});if(k.updateSdkMcp(),!h1())if(h(process.env.CLAUDIN_SYNC_PLUGIN_INSTALL))k.pluginInstallPromise=x5(k);else x5(k);if(P6(()=>{if(k.abortController&&I6("now").length>0)k.abortController.abort("interrupt")}),R6.isKairosCronEnabled())k.cronScheduler=Z9.createCronScheduler({onFire:(W)=>{if(k.inputClosed)return;g({mode:"prompt",value:W,uuid:G1(),priority:"later",isMeta:!0}),k.run()},isLoading:()=>k.running||k.inputClosed,getJitterConfig:J9.getCronJitterConfig,isKilled:()=>!R6.isKairosCronEnabled()}),k.cronScheduler.start();let A=new Set;return X.setUnexpectedResponseCallback(async(W)=>{await k5({message:W,setAppState:V,handledToolUseIds:A,onEnqueued:()=>{k.run()}})}),O6(k),_}var Rz=(R5(),Y0(D5)),W9=(H9(),Y0(K9));async function j9(X,$,Q,Z,J,Y,K,G){if(s1.subscribe((W)=>{if(m6(W,Q),m1())Q((D)=>{let U=D.settings,C=U.fastMode===!0&&!U.fastModePerSessionOptIn;return{...D,fastMode:C}})}),typeof Bun<"u")setInterval(Bun.gc,1000).unref();if(d1(),l("runHeadless_entry"),u6(),G.resumeSessionAt&&!G.resume){process.stderr.write(`Error: --resume-session-at requires --resume
|
|
36
|
+
`),f(1);return}if(G.rewindFiles&&!G.resume){process.stderr.write(`Error: --rewind-files requires --resume
|
|
37
|
+
`),f(1);return}if(G.rewindFiles&&X){process.stderr.write(`Error: --rewind-files is a standalone operation and cannot be used with a prompt
|
|
38
|
+
`),f(1);return}let V=B2(X,G);if(G.outputFormat==="stream-json")NX();let z=Q1.getSandboxUnavailableReason();if(z){if(Q1.isSandboxRequired()){process.stderr.write(`
|
|
39
|
+
Error: sandbox required but unavailable: ${z}
|
|
40
|
+
`+` sandbox.failIfUnavailable is set — refusing to start without a working sandbox.
|
|
41
|
+
|
|
42
|
+
`),f(1);return}process.stderr.write(`
|
|
43
|
+
⚠ Sandbox disabled: ${z}
|
|
44
|
+
Commands will run WITHOUT sandboxing. Network and filesystem restrictions will NOT be enforced.
|
|
45
|
+
|
|
46
|
+
`)}else if(Q1.isSandboxingEnabled())try{await Q1.initialize(V.createSandboxAskCallback())}catch(W){process.stderr.write(`
|
|
47
|
+
❌ Sandbox Error: ${v(W)}
|
|
48
|
+
`),f(1,"other");return}if(G.outputFormat==="stream-json"&&G.verbose)l6((W)=>{let D=(()=>{switch(W.type){case"started":return{type:"system",subtype:"hook_started",hook_id:W.hookId,hook_name:W.hookName,hook_event:W.hookEvent,uuid:HX(),session_id:y()};case"progress":return{type:"system",subtype:"hook_progress",hook_id:W.hookId,hook_name:W.hookName,hook_event:W.hookEvent,stdout:W.stdout,stderr:W.stderr,output:W.output,uuid:HX(),session_id:y()};case"response":return{type:"system",subtype:"hook_response",hook_id:W.hookId,hook_name:W.hookName,hook_event:W.hookEvent,output:W.output,stdout:W.stdout,stderr:W.stderr,exit_code:W.exitCode,outcome:W.outcome,uuid:HX(),session_id:y()}}})();V.write(D)});if(G.setupTrigger)await i6(G.setupTrigger);l("before_loadInitialMessages");let L=$(),{messages:B,turnInterruptionState:_,agentSetting:H}=await sX(Q,{continue:G.continue,teleport:G.teleport,resume:G.resume,resumeSessionAt:G.resumeSessionAt,forkSession:G.forkSession,outputFormat:G.outputFormat,sessionStartHooksPromise:G.sessionStartHooksPromise,restoredWorkerState:V.restoredWorkerState}),R=c6();if(R)V.prependUserMessage(R);if(!G.agent&&!g1()&&H){let{agentDefinition:W}=r6(H,void 0,{activeAgents:K,allAgents:K});if(W){if(Q((D)=>({...D,agent:W.agentType})),!G.systemPrompt&&!i1(W)){let D=W.getSystemPrompt();if(D)G.systemPrompt=D}a6(W.agentType)}}if(B.length===0&&process.exitCode!==void 0)return;if(G.rewindFiles){let W=B.find((C)=>C.uuid===G.rewindFiles);if(!W||W.type!=="user"){process.stderr.write(`Error: --rewind-files requires a user message UUID, but ${G.rewindFiles} is not a user message in this session
|
|
49
|
+
`),f(1);return}let D=$(),U=await _1(G.rewindFiles,D,Q,!1);if(!U.canRewind){process.stderr.write(`Error: ${U.error||"Unexpected error"}
|
|
50
|
+
`),f(1);return}process.stdout.write(`Files rewound to state at message ${G.rewindFiles}
|
|
51
|
+
`),f(0);return}let O=typeof G.resume==="string"&&(Boolean(F1(G.resume))||G.resume.endsWith(".jsonl")),F=Boolean(G.sdkUrl);if(!X&&!O&&!F){process.stderr.write(`Error: Input must be provided either through stdin or as a prompt argument when using --print
|
|
52
|
+
`),f(1);return}if(G.outputFormat==="stream-json"&&!G.verbose){process.stderr.write(`Error: When using --print, --output-format=stream-json requires --verbose
|
|
53
|
+
`),f(1);return}let w=n6(L.mcp.tools,L.toolPermissionContext),q=[...J,...w],N=G.sdkUrl?"stdio":G.permissionPromptToolName,T=J5(N,V,()=>$().mcp.tools,(W)=>{Y1("requires_action",W)});if(G.permissionPromptToolName)q=q.filter((W)=>!_0(W,G.permissionPromptToolName));d6(),l("after_loadInitialMessages"),await g6(),l("after_modelStrings");let k=G.outputFormat==="json"&&G.verbose,d=[],P,A=null;l("before_runHeadlessStreaming");for await(let W of x6(V,L.mcp.clients,[...Z,...L.mcp.commands],q,B,T,Y,$,Q,K,G,_)){if(A){let D=A(W);if(D)await V.write(D)}else if(G.outputFormat==="stream-json"&&G.verbose)await V.write(W);if(W.type!=="control_response"&&W.type!=="control_request"&&W.type!=="control_cancel_request"&&!(W.type==="system"&&(W.subtype==="session_state_changed"||W.subtype==="task_notification"||W.subtype==="task_started"||W.subtype==="task_progress"||W.subtype==="post_turn_summary"))&&W.type!=="stream_event"&&W.type!=="keep_alive"&&W.type!=="streamlined_text"&&W.type!=="streamlined_tool_use_summary"&&W.type!=="prompt_suggestion"){let D=W;if(k)d.push(D);P=D}}switch(G.outputFormat){case"json":if(!P||P.type!=="result")throw Error("No messages returned");if(G.verbose){r(n(d)+`
|
|
54
|
+
`);break}r(n(P)+`
|
|
55
|
+
`);break;case"stream-json":break;default:if(!P||P.type!=="result")throw Error("No messages returned");switch(P.subtype){case"success":r(P.result.endsWith(`
|
|
56
|
+
`)?P.result:P.result+`
|
|
57
|
+
`);break;case"error_during_execution":r("Execution error");break;case"error_max_turns":r(`Error: Reached max turns (${G.maxTurns})`);break;case"error_max_budget_usd":r(`Error: Exceeded USD budget (${G.maxBudgetUsd})`);break;case"error_max_structured_output_retries":r("Error: Failed to provide valid structured output after maximum retries")}}if(u1(),p6())await W9.drainPendingExtraction();f(P?.type==="result"&&P?.is_error?1:0)}export{j9 as runHeadless,y5 as removeInterruptedMessage,d2 as reconcileMcpServers,t5 as joinPromptValues,k5 as handleOrphanedPermissionResponse,v5 as handleMcpSetServers,J5 as getCanUseToolFn,e5 as canBatchWith};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Aka as c,Bka as d,Cka as e,Dka as f,yka as a,zka as b}from"./cli-1.1.14-cakvdwn3.mjs";import"./cli-1.1.14-r930b2z3.mjs";f();export{b as writeToStdout,c as writeToStderr,a as registerProcessOutputErrorHandlers,e as peekForStdinData,d as exitWithError};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bm as r,Iy as X,Jy as i,MR as qq,Qk as P,Rk as o,TC as w,UC as c,VC as W,WC as C,Ys as V,_s as t,aK as Y,bK as T,cK as d,dD as s,dK as Z,eD as e,xm as $}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{I0 as I,jZ as h,n1 as p}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{K3 as m,L3 as Q,M3 as D,N3 as f}from"./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{Fda as l,wda as b}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{rja as v,uja as n}from"./cli-1.1.14-f5bvc359.mjs";import"./cli-1.1.14-db3mxak8.mjs";import"./cli-1.1.14-cakvdwn3.mjs";import{$ka as a,Pka as B,Uka as U}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 S,Bsa as g}from"./cli-1.1.14-r930b2z3.mjs";import{randomUUID as zq}from"crypto";p();C();i();c();f();var J=S(h(),1);function _(L){let q=J.c(8),{input:N,progress:A,verbose:K}=L,O=`<bash-input>${N}</bash-input>`,G;if(q[0]!==O)G=Q(X,{addMargin:!1,param:{text:O,type:"text"}}),q[0]=O,q[1]=G;else G=q[1];let H;if(q[2]!==A||q[3]!==K)H=A?Q(w,{fullOutput:A.fullOutput,output:A.output,elapsedTimeSeconds:A.elapsedTimeSeconds,totalLines:A.totalLines,verbose:K}):W.renderToolUseProgressMessage?.([],{verbose:K,tools:[],terminalSize:void 0}),q[2]=A,q[3]=K,q[4]=H;else H=q[4];let z;if(q[5]!==G||q[6]!==H)z=D(I,{flexDirection:"column",marginTop:1,children:[G,H]}),q[5]=G,q[6]=H,q[7]=z;else z=q[7];return z}C();n();a();qq();l();function j(){return b().defaultShell??"bash"}o();r();t();f();async function kq(L,q,N,A,K){let O=P()&&j()==="powershell";v("",{powershell:O});let G=Y({content:T({inputString:`<bash-input>${L}</bash-input>`,precedingInputBlocks:q})}),H;K({jsx:Q(_,{input:L,progress:null,verbose:A.options.verbose}),shouldHidePromptInput:!1});try{let z={...A,setToolJSX:(E)=>{H=E?.jsx}},y=(E)=>{K({jsx:D(m,{children:[Q(_,{input:L,progress:E.data,verbose:A.options.verbose}),H]}),shouldHidePromptInput:!1,showSpinner:!1})},F=null;if(O)F=(e(),g(s)).PowerShellTool;let x=F??W,R=(F?await F.call({command:L,dangerouslyDisableSandbox:!0,_dangerouslyDisableSandboxApproved:!0},z,void 0,void 0,y):await W.call({command:L,dangerouslyDisableSandbox:!0,_dangerouslyDisableSandboxApproved:!0},z,void 0,void 0,y)).data;if(!R)throw Error("No result received from shell command");let u=R.stderr,k=await $(x,{...R,stderr:""},zq()),M=typeof k.content==="string"?k.content:V(R.stdout);return{messages:[Z(),G,...N,Y({content:`<bash-stdout>${M}</bash-stdout><bash-stderr>${V(u)}</bash-stderr>`})],shouldQuery:!1}}catch(z){if(z instanceof B){if(z.interrupted)return{messages:[Z(),G,d({toolUse:!1}),...N],shouldQuery:!1};return{messages:[Z(),G,...N,Y({content:`<bash-stdout>${V(z.stdout)}</bash-stdout><bash-stderr>${V(z.stderr)}</bash-stderr>`})],shouldQuery:!1}}return{messages:[Z(),G,...N,Y({content:`<bash-stderr>Command failed: ${V(U(z))}</bash-stderr>`})],shouldQuery:!1}}finally{K(null)}}export{kq as processBashCommand};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{ui as Dq,vi as Zz}from"./cli-1.1.14-fp33ryn9.mjs";import{wi as Eq,xi as $z}from"./cli-1.1.14-e7mfj9cz.mjs";import{$s as Zq,BB as Rq,BR as gq,CB as yz,FK as Bq,HA as Wq,HD as wq,IA as _q,In as mq,JA as Uz,Jw as Pq,LD as Ez,MR as wz,Mw as Lz,Ot as $q,Ps as zz,Pt as jq,Qt as Jz,UK as Fz,WP as i,Wj as Xq,Xj as aq,YP as xq,aK as X,bK as F,bt as Gz,bu as e,cK as Aq,dK as B,du as c,eK as Iq,eu as iq,fQ as Cq,fR as Nq,gK as bq,gQ as hq,gx as Vq,hQ as pq,hR as vz,hx as Qz,jO as Sq,jQ as Rz,kB as fq,lB as Xz,lO as Mz,lp as N,mB as yq,mp as g,nC as vq,nK as x,oB as Yz,oC as Dz,op as qz,pB as Oq,pu as Kq,rB as jz,rE as Hq,sE as Tq,tB as u,vE as Oz,wR as uq,xB as Kz,xR as kq}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{HZ as Yq,MZ as oq}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"./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{r7 as nq}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-eh3y4akg.mjs";import"./cli-1.1.14-cran8hzr.mjs";import"./cli-1.1.14-n1hm0gd6.mjs";import{Qba as d,Sba as rq,pga as k,xga as cq}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{Gia as C,Hia as h,gja as eq}from"./cli-1.1.14-xcg5hzkp.mjs";import"./cli-1.1.14-ry5bys5g.mjs";import{rja as T,uja as lq}from"./cli-1.1.14-f5bvc359.mjs";import{gka as Uq,kka as dq,uka as b,xka as s}from"./cli-1.1.14-db3mxak8.mjs";import"./cli-1.1.14-cakvdwn3.mjs";import{$ka as sq,Fka as r,Gka as Qq}from"./cli-1.1.14-fwakcyhj.mjs";import{fla as Lq,nla as tq}from"./cli-1.1.14-83ng5cjk.mjs";import{Pqa as Gq,Sqa as Jq,Tma as qq,eqa as zq}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 t}from"./cli-1.1.14-r930b2z3.mjs";function n(q,J,Y,$,Z){let j=0;for(let V of d){let f=Y[V];if(!f)continue;for(let M of f)for(let z of M.hooks){let L=z.once?()=>{b(`Removing one-shot hook for event ${V} in skill '${$}'`),c(q,J,V,z)}:void 0;e(q,J,V,M.matcher||"",z,L,Z),j++}}if(j>0)b(`Registered ${j} hooks from skill '${$}'`)}var a=t(()=>{rq();s();iq()});import{randomUUID as Fq}from"crypto";async function Pz(q,J,Y,$,Z,j){let V=Vq(),f=q.pluginInfo?N(q.pluginInfo.repository).marketplace:void 0;T("",{command_name:q.name,invocation_trigger:"user-slash",...q.pluginInfo&&{_PROTO_plugin_name:q.pluginInfo.pluginManifest.name,...f&&{_PROTO_marketplace_name:f},...u(q.pluginInfo)}});let{skillContent:M,modifiedGetAppState:z,baseAgent:L,promptMessages:K}=await Hq(q,J,Y),_=q.effort!==void 0?{...L,effort:q.effort}:L;b(`Executing forked slash command /${q.name} with agent ${_.agentType}`);let R=[],G=[],Q=`forked-command-${q.name}`,P=0,D=(y)=>{return P++,{type:"progress",data:{message:y,type:"agent_progress",prompt:M,agentId:V},parentToolUseID:Q,toolUseID:`${Q}-${P}`,timestamp:new Date().toISOString(),uuid:Fq()}},w=()=>{Z({jsx:fq(G,{tools:Y.options.tools,verbose:!1}),shouldHidePromptInput:!1,shouldContinueAnimation:!0,showSpinner:!0})};w();try{for await(let y of Rq({agentDefinition:_,promptMessages:K,toolUseContext:{...Y,getAppState:z},canUseTool:j,isAsync:!1,querySource:"agent:custom",model:q.model,availableTools:Y.options.tools})){R.push(y);let I=gq([y]);if(y.type==="assistant"){let W=Nq(y);if(W>0)Y.setResponseLength((U)=>U+W);let A=I[0];if(A&&A.type==="assistant")G.push(D(y)),w()}if(y.type==="user"){let W=I[0];if(W&&W.type==="user")G.push(D(W)),w()}}}finally{Z(null)}let E=Tq(R,"Command completed");return b(`Forked slash command /${q.name} completed with agent ${V}`),{messages:[X({content:F({inputString:`/${i(q)} ${J}`.trim(),precedingInputBlocks:$})}),X({content:`<local-command-stdout>
|
|
2
|
+
${E}
|
|
3
|
+
</local-command-stdout>`})],shouldQuery:!1,command:q,resultText:E}}function Vz(q){return!/[^a-zA-Z0-9:\-_]/.test(q)}async function fG(q,J,Y,$,Z,j,V,f,M){let z=Eq(q);if(!z){T("",{});let U="Commands are in the form `/command [args]`";return{messages:[B(),...$,X({content:F({inputString:U,precedingInputBlocks:J})})],shouldQuery:!1,resultText:U}}let{commandName:L,args:K,isMcp:_}=z,R=_?"mcp":!xq().has(L)?"custom":L;if(!hq(L,Z.options.commands)){let U=!1;try{await Uq().stat(`/${L}`),U=!0}catch{}if(Vz(L)&&!U){T("",{input:L});let v=`Unknown skill: ${L}`;return{messages:[B(),...$,X({content:F({inputString:v,precedingInputBlocks:J})}),...K?[bq(`Args from unknown skill: ${K}`,"warning")]:[]],shouldQuery:!1,resultText:v}}let O=Fq();return Gq(O),T("",{}),_q("user_prompt",{prompt_length:String(q.length),prompt:Wq(q),"prompt.id":O}),{messages:[X({content:F({inputString:q,precedingInputBlocks:J}),uuid:V}),...$],shouldQuery:!0}}let{messages:G,shouldQuery:Q,allowedTools:P,model:D,effort:w,command:E,resultText:l,nextInput:y,submitNextInput:I}=await Wz(L,K,j,Z,J,Y,f,M,V);if(G.length===0){let U={input:R};if(E.type==="prompt"&&E.pluginInfo){let{pluginManifest:O,repository:v}=E.pluginInfo,{marketplace:H}=N(v),p=g(H);if(U._PROTO_plugin_name=O.name,H)U._PROTO_marketplace_name=H;if(U.plugin_repository=p?v:"third-party",U.plugin_name=p?O.name:"third-party",p&&O.version)U.plugin_version=O.version;Object.assign(U,u(E.pluginInfo))}return T("",{...U,invocation_trigger:"user-slash"}),{messages:[],shouldQuery:!1,model:D,nextInput:y,submitNextInput:I}}if(G.length===2&&G[1].type==="user"&&typeof G[1].message.content==="string"&&G[1].message.content.startsWith("Unknown command:")){if(!(q.startsWith("/var")||q.startsWith("/tmp")||q.startsWith("/private")))T("",{input:L});return{messages:[B(),...G],shouldQuery:Q,allowedTools:P,model:D}}let W={input:R};if(E.type==="prompt"&&E.pluginInfo){let{pluginManifest:U,repository:O}=E.pluginInfo,{marketplace:v}=N(O),H=g(v);if(W._PROTO_plugin_name=U.name,v)W._PROTO_marketplace_name=v;if(W.plugin_repository=H?O:"third-party",W.plugin_name=H?U.name:"third-party",H&&U.version)W.plugin_version=U.version;Object.assign(W,u(E.pluginInfo))}T("",{...W,invocation_trigger:"user-slash"});let A=G.length>0&&G[0]&&kq(G[0]);return{messages:Q||G.every(uq)||A?G:[B(),...G],shouldQuery:Q,allowedTools:P,model:D,effort:w,resultText:l,nextInput:y,submitNextInput:I}}async function Wz(q,J,Y,$,Z,j,V,f,M){let z=pq(q,$.options.commands);if(z.type==="prompt"&&z.userInvocable!==!1)Oq(q);if(z.userInvocable===!1)return{messages:[X({content:F({inputString:`/${q}`,precedingInputBlocks:Z})}),X({content:`This skill can only be invoked by Claude, not directly by users. Ask Claude to use the "${q}" skill for you.`})],shouldQuery:!1,command:z};try{switch(z.type){case"local-jsx":return new Promise((L)=>{let K=!1,_=(G,Q)=>{if(K=!0,Q?.display==="skip"){L({messages:[],shouldQuery:!1,command:z,nextInput:Q?.nextInput,submitNextInput:Q?.submitNextInput});return}let P=(Q?.metaMessages??[]).map((w)=>X({content:w,isMeta:!0})),D=Yq()&&typeof G==="string"&&G.endsWith(" dismissed");L({messages:Q?.display==="system"?D?P:[x(S(z,J)),x(`<local-command-stdout>${G}</local-command-stdout>`),...P]:[X({content:F({inputString:S(z,J),precedingInputBlocks:Z})}),G?X({content:`<local-command-stdout>${G}</local-command-stdout>`}):X({content:`<local-command-stdout>${Xq}</local-command-stdout>`}),...P],shouldQuery:Q?.shouldQuery??!1,command:z,nextInput:Q?.nextInput,submitNextInput:Q?.submitNextInput})},R=Dq();z.load().then((G)=>G.call(_,{...$,canUseTool:f},J)).then((G)=>{if(G==null)return;if($.options.isNonInteractiveSession){L({messages:[],shouldQuery:!1,command:z});return}if(K)return;Y({jsx:G,shouldHidePromptInput:!0,showSpinner:!1,isLocalJSXCommand:!0,isImmediate:z.immediate===!0,generation:R})}).catch((G)=>{if(k(G),K)return;K=!0,Y({jsx:null,shouldHidePromptInput:!1,clearLocalJSX:!0}),L({messages:[],shouldQuery:!1,command:z})})});case"local":{let L=z.isSensitive&&J.trim()?"***":J,K=X({content:F({inputString:S(z,L),precedingInputBlocks:Z})});try{let _=B(),G=await(await z.load()).call(J,$);if(G.type==="skip")return{messages:[],shouldQuery:!1,command:z};if(G.type==="compact"){let Q=[_,K,...G.displayText?[X({content:`<local-command-stdout>${G.displayText}</local-command-stdout>`,timestamp:new Date(Date.now()+100).toISOString()})]:[]],P={...G.compactionResult,messagesToKeep:[...G.compactionResult.messagesToKeep??[],...Q]};return Pq(),{messages:wq(P),shouldQuery:!1,command:z}}return{messages:[K,x(`<local-command-stdout>${G.value}</local-command-stdout>`)],shouldQuery:!1,command:z,resultText:G.value}}catch(_){return k(_),{messages:[K,x(`<local-command-stderr>${String(_)}</local-command-stderr>`)],shouldQuery:!1,command:z}}}case"prompt":try{if(z.context==="fork")return await Pz(z,J,$,Z,Y,f??Sq);return await Mq(z,J,$,Z,j,M)}catch(L){if(L instanceof Qq)return{messages:[X({content:F({inputString:S(z,J),precedingInputBlocks:Z})}),Aq({toolUse:!1})],shouldQuery:!1,command:z};return{messages:[X({content:F({inputString:S(z,J),precedingInputBlocks:Z})}),X({content:`<local-command-stderr>${String(L)}</local-command-stderr>`})],shouldQuery:!1,command:z}}}}catch(L){if(L instanceof r)return{messages:[X({content:F({inputString:L.message,precedingInputBlocks:Z})})],shouldQuery:!1,command:z};throw L}}function S(q,J){return Iq(i(q),J)}function _z(q,J="loading"){return[`<${h}>${q}</${h}>`,`<${C}>${q}</${C}>`,"<skill-format>true</skill-format>"].join(`
|
|
4
|
+
`)}function o(q,J){return[`<${h}>${q}</${h}>`,`<${C}>/${q}</${C}>`,J?`<command-args>${J}</command-args>`:null].filter(Boolean).join(`
|
|
5
|
+
`)}function m(q,J){if(q.userInvocable!==!1)return o(q.name,J);if(q.loadedFrom==="skills"||q.loadedFrom==="plugin"||q.loadedFrom==="mcp")return _z(q.name,q.progressMessage);return o(q.name,J)}async function yG(q,J,Y,$,Z=[]){let j=Cq(q,Y);if(!j)throw new r(`Unknown command: ${q}`);if(j.type!=="prompt")throw Error(`Unexpected ${j.type} command. Expected 'prompt' command. Use /${q} directly in the main conversation.`);return Mq(j,J,$,[],Z)}async function Mq(q,J,Y,$=[],Z=[],j){if(Lq(process.env.CLAUDIN_COORDINATOR_MODE)&&!Y.agentId){let Q=m(q,J),P=[`Skill "/${q.name}" is available for workers.`];if(q.description)P.push(`Description: ${q.description}`);if(q.whenToUse)P.push(`When to use: ${q.whenToUse}`);let D=q.allowedTools??[];if(D.length>0)P.push(`This skill grants workers additional tool permissions: ${D.join(", ")}`);P.push(`
|
|
6
|
+
Instruct a worker to use this skill by including "Use the /${q.name} skill" in your Agent prompt. The worker has access to the Skill tool and will receive the skill's content and permissions when it invokes it.`);let w=[{type:"text",text:P.join(`
|
|
7
|
+
`)}];return{messages:[X({content:Q,uuid:j}),X({content:w,isMeta:!0})],shouldQuery:!0,model:q.model,effort:q.effort,command:q}}let V=await q.getPromptForCommand(J,Y),f=!$q("hooks")||jq(q.source);if(q.hooks&&f){let Q=qq();n(Y.setAppState,Q,q.hooks,q.name,q.type==="prompt"?q.skillRoot:void 0)}let M=q.source?`${q.source}:${q.name}`:q.name,z=V.filter((Q)=>Q.type==="text").map((Q)=>Q.text).join(`
|
|
8
|
+
|
|
9
|
+
`);zq(q.name,M,z,Zq()?.agentId??null);let L=m(q,J),K=Bq(q.allowedTools??[]),_=Z.length>0||$.length>0?[...Z,...$,...V]:V,R=await yq(vq(V.filter((Q)=>Q.type==="text").map((Q)=>Q.text).join(" "),Y,null,[],Y.messages,"repl_main_thread",{skipSkillDiscovery:!0}));return{messages:[X({content:L,uuid:j}),X({content:_,isMeta:!0}),...R,Kq({type:"command_permissions",allowedTools:K,model:q.model})],shouldQuery:!0,allowedTools:K,model:q.model,effort:q.effort,command:q}}var fz=t(()=>{Jq();Rz();aq();Jq();eq();lq();Ez();Lz();yz();Xz();mq();Gz();Dz();s();tq();sq();Oz();dq();oq();Yz();a();cq();Zz();zz();wz();Fz();Mz();qz();Jz();$z();nq();jz();Uz();Kz();vz();Qz()});fz();export{fG as processSlashCommand,yG as processPromptSlashCommand,Vz as looksLikeCommand,_z as formatSkillLoadingMetadata};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Al as d,Bl as e,Jk as a,yl as b,zl as c}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";e();export{b as isDeferredTool,d as getPrompt,c as formatDeferredToolLine,a as TOOL_SEARCH_TOOL_NAME};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{av as a,bv as b,cv as c,dv as d,ev as e,fv as f,gv as g,hv as h,iv as i,jv as j,kv as k,lv as l}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";l();export{h as getSkillToolInfo,k as getSkillInfo,g as getPrompt,i as getLimitedSkillToolCommands,e as getCharBudget,f as formatCommandsWithinBudget,j as clearPromptCache,a as SKILL_BUDGET_CONTEXT_PERCENT,d as MAX_LISTING_DESC_CHARS,c as DEFAULT_CHAR_BUDGET,b as CHARS_PER_TOKEN};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{AQ as q,BQ as r,CQ as s,DQ as t,EQ as u,FQ as v,GQ as w,HQ as x,kQ as a,lQ as b,mQ as c,nQ as d,oQ as e,pQ as f,qQ as g,rQ as h,sQ as i,tQ as j,uQ as k,vQ as l,wQ as m,xQ as n,yQ as o,zQ as p}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";x();export{c as prependBullets,w as isVerbositySteeringEnabled,p as getUnameSR,m as getSystemPrompt,u as getScratchpadInstructions,g as getHarnessSection,t as enhanceSystemPromptWithEnvDetails,o as computeSimpleEnvInfo,n as computeEnvInfo,l as buildWorkContractSections,s as buildSubagentNotes,f as buildHarnessItems,v as VERBOSITY_STEERING_SECTION,e as TOOL_BATCHING_HARNESS_BULLET,b as SYSTEM_PROMPT_DYNAMIC_BOUNDARY,r as SUBAGENT_NOTES_BULLETS,j as PRONOUNS_SECTION,h as DELIVERING_WORK_SECTION,q as DEFAULT_AGENT_PROMPT,k as CORRECTIONS_SECTION,a as CLAUDE_CODE_DOCS_MAP_URL,d as ANTI_NARRATION_HARNESS_BULLETS,i as ACT_ON_WHAT_YOU_KNOW_SECTION};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import{Qb as p,Rb as HJ}from"./cli-1.1.14-zajvkghs.mjs";import{Tb as _,Ub as E}from"./cli-1.1.14-35sv8v0f.mjs";import{OW as o,PW as Q,RW as P}from"./cli-1.1.14-pfsqawey.mjs";import"./cli-1.1.14-n1hm0gd6.mjs";import{Fda as s,O_ as z,Q_ as x,Rea as l,u_ as j,w_ as I,wea 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{Hha as n}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{uja as w}from"./cli-1.1.14-f5bvc359.mjs";import{Zja as T,cka as qJ,uka as X,xka as G}from"./cli-1.1.14-db3mxak8.mjs";import"./cli-1.1.14-cakvdwn3.mjs";import{$ka as h}from"./cli-1.1.14-fwakcyhj.mjs";import{nla as g}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{Fsa as BJ}from"./cli-1.1.14-r930b2z3.mjs";G();import{homedir as XJ}from"os";qJ();HJ();P();var Y="claude-cli";function W($){for(let V=0;V<$.length;V++){let J=$.charCodeAt(V);if(J<=31||J===127)return!0}return!1}var m=/^[\w.-]+\/[\w.-]+$/,y=5000,b=4096;function v($){let V=$.startsWith(`${Y}://`)?$:$.startsWith(`${Y}:`)?$.replace(`${Y}:`,`${Y}://`):null;if(!V)throw Error(`Invalid deep link: expected ${Y}:// scheme, got "${$}"`);let J;try{J=new URL(V)}catch{throw Error(`Invalid deep link URL: "${$}"`)}if(J.hostname!=="open")throw Error(`Unknown deep link action: "${J.hostname}"`);let Z=J.searchParams.get("cwd")??void 0,B=J.searchParams.get("repo")??void 0,q=J.searchParams.get("q");if(Z&&!Z.startsWith("/")&&!/^[a-zA-Z]:[/\\]/.test(Z))throw Error(`Invalid cwd in deep link: must be an absolute path, got "${Z}"`);if(Z&&W(Z))throw Error("Deep link cwd contains disallowed control characters");if(Z&&Z.length>b)throw Error(`Deep link cwd exceeds ${b} characters (got ${Z.length})`);if(B&&!m.test(B))throw Error(`Invalid repo in deep link: expected "owner/repo", got "${B}"`);let H;if(q&&q.trim().length>0){if(H=Q(q.trim()),W(H))throw Error("Deep link query contains disallowed control characters");if(H.length>y)throw Error(`Deep link query exceeds ${y} characters (got ${H.length})`)}return{query:H,cwd:Z,repo:B}}n();w();G();g();h();I();s();x();o();import*as R from"os";import*as f from"path";var F="com.anthropic.claude-code-url-handler";var u="Claude Code URL Handler.app",i=f.join(R.homedir(),"Applications",u),CJ=f.join(i,"Contents","MacOS","claude");var t=`HKEY_CURRENT_USER\\Software\\Classes\\${Y}`,LJ=`${t}\\shell\\open\\command`;l();G();I();x();import{spawn as d}from"child_process";import{basename as r}from"path";var k=[{name:"iTerm2",bundleId:"com.googlecode.iterm2",app:"iTerm"},{name:"Ghostty",bundleId:"com.mitchellh.ghostty",app:"Ghostty"},{name:"Kitty",bundleId:"net.kovidgoyal.kitty",app:"kitty"},{name:"Alacritty",bundleId:"org.alacritty",app:"Alacritty"},{name:"WezTerm",bundleId:"com.github.wez.wezterm",app:"WezTerm"},{name:"Terminal.app",bundleId:"com.apple.Terminal",app:"Terminal"}],c=["ghostty","kitty","alacritty","wezterm","gnome-terminal","konsole","xfce4-terminal","mate-terminal","tilix","xterm"];async function e(){let $=D().deepLinkTerminal;if($){let J=k.find((Z)=>Z.app===$);if(J)return{name:J.name,command:J.app}}let V=process.env.TERM_PROGRAM;if(V){let J=V.replace(/\.app$/i,"").toLowerCase(),Z=k.find((B)=>B.app.toLowerCase()===J||B.name.toLowerCase()===J);if(Z)return{name:Z.name,command:Z.app}}for(let J of k){let{code:Z,stdout:B}=await j("mdfind",[`kMDItemCFBundleIdentifier == "${J.bundleId}"`],{timeout:5000,useCwd:!1});if(Z===0&&B.trim().length>0)return{name:J.name,command:J.app}}for(let J of k){let{code:Z}=await j("ls",[`/Applications/${J.app}.app`],{timeout:1000,useCwd:!1});if(Z===0)return{name:J.name,command:J.app}}return{name:"Terminal.app",command:"Terminal"}}async function a(){let $=process.env.TERMINAL;if($){let J=await z($);if(J)return{name:r($),command:J}}let V=await z("x-terminal-emulator");if(V)return{name:"x-terminal-emulator",command:V};for(let J of c){let Z=await z(J);if(Z)return{name:J,command:Z}}return null}async function JJ(){let $=await z("wt.exe");if($)return{name:"Windows Terminal",command:$};let V=await z("pwsh.exe");if(V)return{name:"PowerShell",command:V};let J=await z("powershell.exe");if(J)return{name:"PowerShell",command:J};return{name:"Command Prompt",command:"cmd.exe"}}async function ZJ(){switch(process.platform){case"darwin":return e();case"linux":return a();case"win32":return JJ();default:return null}}async function C($,V){let J=await ZJ();if(!J)return X("No terminal emulator detected",{level:"error"}),!1;X(`Launching in terminal: ${J.name} (${J.command})`);let Z=["--deep-link-origin"];if(V.repo){if(Z.push("--deep-link-repo",V.repo),V.lastFetchMs!==void 0)Z.push("--deep-link-last-fetch",String(V.lastFetchMs))}if(V.query)Z.push("--prefill",V.query);switch(process.platform){case"darwin":return L(J,$,Z,V.cwd);case"linux":return $J(J,$,Z,V.cwd);case"win32":return VJ(J,$,Z,V.cwd);default:return!1}}async function L($,V,J,Z){switch($.command){case"iTerm":{let B=M(V,J,Z),q=`tell application "iTerm"
|
|
2
|
+
if running then
|
|
3
|
+
create window with default profile
|
|
4
|
+
else
|
|
5
|
+
activate
|
|
6
|
+
end if
|
|
7
|
+
tell current session of current window
|
|
8
|
+
write text ${O(B)}
|
|
9
|
+
end tell
|
|
10
|
+
end tell`,{code:H}=await j("osascript",["-e",q],{useCwd:!1});if(H===0)return!0;break}case"Terminal":{let B=M(V,J,Z),q=`tell application "Terminal"
|
|
11
|
+
do script ${O(B)}
|
|
12
|
+
activate
|
|
13
|
+
end tell`,{code:H}=await j("osascript",["-e",q],{useCwd:!1});return H===0}case"Ghostty":{let B=["-na",$.command,"--args","--window-save-state=never"];if(Z)B.push(`--working-directory=${Z}`);B.push("-e",V,...J);let{code:q}=await j("open",B,{useCwd:!1});if(q===0)return!0;break}case"Alacritty":{let B=["-na",$.command,"--args"];if(Z)B.push("--working-directory",Z);B.push("-e",V,...J);let{code:q}=await j("open",B,{useCwd:!1});if(q===0)return!0;break}case"kitty":{let B=["-na",$.command,"--args"];if(Z)B.push("--directory",Z);B.push(V,...J);let{code:q}=await j("open",B,{useCwd:!1});if(q===0)return!0;break}case"WezTerm":{let B=["-na",$.command,"--args","start"];if(Z)B.push("--cwd",Z);B.push("--",V,...J);let{code:q}=await j("open",B,{useCwd:!1});if(q===0)return!0;break}}return X(`Failed to launch ${$.name}, falling back to Terminal.app`),L({name:"Terminal.app",command:"Terminal"},V,J,Z)}async function $J($,V,J,Z){let B,q;switch($.name){case"gnome-terminal":B=Z?[`--working-directory=${Z}`,"--"]:["--"],B.push(V,...J);break;case"konsole":B=Z?["--workdir",Z,"-e"]:["-e"],B.push(V,...J);break;case"kitty":B=Z?["--directory",Z]:[],B.push(V,...J);break;case"wezterm":B=Z?["start","--cwd",Z,"--"]:["start","--"],B.push(V,...J);break;case"alacritty":B=Z?["--working-directory",Z,"-e"]:["-e"],B.push(V,...J);break;case"ghostty":B=Z?[`--working-directory=${Z}`,"-e"]:["-e"],B.push(V,...J);break;case"xfce4-terminal":case"mate-terminal":B=Z?[`--working-directory=${Z}`,"-x"]:["-x"],B.push(V,...J);break;case"tilix":B=Z?[`--working-directory=${Z}`,"-e"]:["-e"],B.push(V,...J);break;default:B=["-e",V,...J],q=Z;break}return N($.command,B,{cwd:q})}async function VJ($,V,J,Z){let B=[];switch($.name){case"Windows Terminal":if(Z)B.push("-d",Z);B.push("--",V,...J);break;case"PowerShell":{let q=Z?`Set-Location ${K(Z)}; `:"";B.push("-NoExit","-Command",`${q}& ${K(V)} ${J.map(K).join(" ")}`);break}default:{let q=Z?`cd /d ${U(Z)} && `:"";B.push("/k",`${q}${U(V)} ${J.map((H)=>U(H)).join(" ")}`);break}}return N($.command,B,{windowsVerbatimArguments:$.name==="Command Prompt"})}function N($,V,J={}){return new Promise((Z)=>{let B=d($,V,{detached:!0,stdio:"ignore",cwd:J.cwd,windowsVerbatimArguments:J.windowsVerbatimArguments});B.once("error",(q)=>{X(`Failed to spawn ${$}: ${q.message}`,{level:"error"}),Z(!1)}),B.once("spawn",()=>{B.unref(),Z(!0)})})}function M($,V,J){return`${J?`cd ${S(J)} && `:""}${[$,...V].map(S).join(" ")}`}function S($){return`'${$.replace(/'/g,"'\\''")}'`}function O($){return`"${$.replace(/\\/g,"\\\\").replace(/"/g,"\\\"")}"`}function K($){return`'${$.replace(/'/g,"''")}'`}function U($){return`"${$.replace(/"/g,"").replace(/%/g,"%%").replace(/(\\+)$/,"$1$1")}"`}async function jJ($){X(`Handling deep link URI: ${$}`);let V;try{V=v($)}catch(H){let A=H instanceof Error?H.message:String(H);return console.error(`Deep link error: ${A}`),1}X(`Parsed deep link action: ${T(V)}`);let{cwd:J,resolvedRepo:Z}=await zJ(V),B=Z?await p(J):void 0;if(!await C(process.execPath,{query:V.query,cwd:J,repo:Z,lastFetchMs:B?.getTime()}))return console.error("Failed to open a terminal. Make sure a supported terminal emulator is installed."),1;return 0}async function tJ(){if(process.env.__CFBundleIdentifier!==F)return null;try{let{waitForUrlEvent:$}=await import("./url-handler-napi-1.1.14-3e9ramyj.mjs"),V=$(5000);if(!V)return null;return await jJ(V)}catch{return null}}async function zJ($){if($.cwd)return{cwd:$.cwd};if($.repo){let V=_($.repo),J=await E(V);if(J[0])return X(`Resolved repo ${$.repo} → ${J[0]}`),{cwd:J[0],resolvedRepo:$.repo};X(`No local clone found for repo ${$.repo}, falling back to home`)}return{cwd:XJ()}}export{tJ as handleUrlSchemeLaunch,jJ as handleDeepLinkUri};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{pc as q,qc as Kz,sc as Qz,tc as Cz}from"./cli-1.1.14-ba8qj93n.mjs";import"./cli-1.1.14-qyywt37p.mjs";import{Bc as hz,wc as l,xc as t}from"./cli-1.1.14-f2g608st.mjs";import"./cli-1.1.14-z9cc7bb2.mjs";import"./cli-1.1.14-afnxph29.mjs";import"./cli-1.1.14-6wh10yar.mjs";import{Ai as Rz,zi as u}from"./cli-1.1.14-xejgqxmy.mjs";import{$p as _,AK as _z,Rp as M,Sp as Xz,Up as g,Uw as n,Vw as wz,Xp as f,Yp as qz,Zp as b,_p as xz,aq as Lz,jq as c,mq as m,nq as Gz,yK as d,zK as a}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{L3 as Jz,N3 as r}from"./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{N6 as Fz,h7 as v,n6 as A,p7 as Hz}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-eh3y4akg.mjs";import"./cli-1.1.14-cran8hzr.mjs";import"./cli-1.1.14-n1hm0gd6.mjs";import{$ea as T,Cea as O,Kfa as y,Lfa as k,Rea as Yz,Rfa as I,Sea as S,Uea as Zz,Wea as h,Yea as D,Zea as P,Zfa as Bz,_ea as C,afa as U,aga as j,dga as Ez,nfa as $z}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 e,fja as zz,gja as Pz}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"./cli-1.1.14-pa5nsjfc.mjs";import"./cli-1.1.14-j9qy5cj8.mjs";import"./cli-1.1.14-n351xrzx.mjs";import{Esa as K}from"./cli-1.1.14-r930b2z3.mjs";function F(z,J){return{ok:!0,label:z,detail:J}}function B(z,J){return{ok:!1,label:z,detail:J}}async function w(z,J){let Q=new AbortController,W=setTimeout(()=>Q.abort(),J?.timeoutMs??5000);try{let V=await fetch(z,{method:J?.method??"GET",headers:J?.headers,signal:Q.signal});if(V.ok)return{ok:!0,status:V.status};let Z=await V.text().catch(()=>"");return{ok:!1,status:V.status,body:Z}}catch(V){return{ok:!1,error:V instanceof Error?V.message:String(V)}}finally{clearTimeout(W)}}async function Nz(z,J){let Q=[],W=await n({baseUrl:z,model:J});if(W.state==="unreachable")Q.push(B("Ollama reachability",`Could not reach ${q(z)}.`));else if(W.state==="no_models")Q.push(B("Ollama models","Ollama is running but no models are installed."));else if(W.state==="generation_failed")Q.push(B("Ollama generation probe",`Probe for ${W.probeModel??J} failed. ${W.detail??""}`.trim()));else Q.push(F("Ollama generation",`${W.probeModel??J} responded.`));return Q}async function Oz(z){let J=[],Q;try{Q=(await m()).credentials?.accessToken}catch(E){J.push(B("xAI OAuth refresh",`Refresh failed: ${E instanceof Error?E.message:String(E)}`)),Q=(await c())?.accessToken}if(!Q)return J.push(B("xAI OAuth credentials","No access token stored. Re-run /provider and pick xAI / Grok (OAuth).")),J;let W=z.replace(/\/+$/,""),V=await w(`${W}/models`,{headers:{Authorization:`Bearer ${Q}`,Accept:"application/json","User-Agent":_()}});if(!V.ok){if(V.status===401||V.status===403)J.push(B("xAI /v1/models",`Got ${V.status} — token may be revoked. Re-run /provider.`));else if(V.status)J.push(B("xAI /v1/models",`Unexpected status ${V.status}.`));else J.push(B("xAI /v1/models",`Could not reach api.x.ai: ${V.error}`));return J}let Z;try{let E=await fetch(`${W}/models`,{headers:{Authorization:`Bearer ${Q}`,Accept:"application/json","User-Agent":_()}});if(E.ok){let $=await E.json();if(Array.isArray($.data))Z=$.data.length}}catch{}return J.push(F("xAI /v1/models",Z!==void 0?`OK (${Z} model${Z===1?"":"s"})`:"OK")),J}async function Sz(z){let J=[],Q;try{Q=(await f()).credentials?.accessToken}catch($){J.push(B("Kimi Code OAuth refresh",`Refresh failed: ${$ instanceof Error?$.message:String($)}`)),Q=(await g())?.accessToken}if(!Q)return J.push(B("Kimi Code OAuth credentials","No access token stored. Re-run /provider and pick Moonshot AI (OAuth).")),J;let W={Authorization:`Bearer ${Q}`,Accept:"application/json","User-Agent":b(),...await M()},V=z.replace(/\/+$/,""),Z=await w(`${V}/models`,{headers:W});if(!Z.ok){if(Z.status===401||Z.status===403)J.push(B("Kimi Code /v1/models",`Got ${Z.status} — token may be revoked. Re-run /provider.`));else if(Z.status)J.push(B("Kimi Code /v1/models",`Unexpected status ${Z.status}.`));else J.push(B("Kimi Code /v1/models",`Could not reach api.kimi.com: ${Z.error}`));return J}let E;try{let $=await fetch(`${V}/models`,{headers:W});if($.ok){let X=await $.json();if(Array.isArray(X.data))E=X.data.length}}catch{}return J.push(F("Kimi Code /v1/models",E!==void 0?`OK (${E} model${E===1?"":"s"})`:"OK")),J}async function L(z,J){let Q={Accept:"application/json"};if(J)Q.Authorization=`Bearer ${J}`;let W=z.replace(/\/+$/,""),V=await w(`${W}/models`,{headers:Q});if(V.ok)return[F("Models endpoint",`${q(W)}/models reachable.`)];if(V.status===401||V.status===403)return[B("Auth",`${q(W)} returned ${V.status}. Check API key.`)];if(V.status)return[B("Reachability",`Unexpected status ${V.status} from ${q(W)}.`)];return[B("Reachability",`Could not reach ${q(W)}: ${V.error}`)]}async function p(){let z=j();if(!z)return"No active /provider profile. Run /provider to set one.";let J=[],Q=[],W=P(),V=C(),Z=U(),E=D()?.id,$;if(W&&W===E)$=Z===W?"project override (same as global default)":"project override";else if(Z&&Z===E)$="global default";else $="first available profile";let X=[];if(V&&!W)X.push(`project override "${V}" missing, falling back`);if(Z){if(!h().some((H)=>H.id===Z))X.push(`global default "${Z}" missing, falling back`)}if(X.length>0)$+=` (${X.join("; ")})`;J.push(`Active profile transport: ${z.transport}`),J.push(`Base URL: ${q(z.baseUrl)}`);let x=T()?O().activeModelForProject:void 0,Vz=S(z.model),G=x?.trim(),Wz=G!==void 0&&G!==""&&(G===z.model.trim()||Vz.includes(G));if(x&&!Wz)J.push(`Model: ${x} (project override; profile default ${z.model})`);else J.push(`Model: ${x??z.model}`);switch(J.push(`Resolved from: ${$}`),z.transport){case"anthropic":{let Y=z.apiKey?.trim();Q.push(Y?F("Anthropic API key","set via profile"):F("Anthropic API key","not set — relying on OAuth/login"));let H=await w(`${z.baseUrl.replace(/\/+$/,"")}/v1/models`,{headers:Y?{"x-api-key":Y,"anthropic-version":"2023-06-01"}:void 0});Q.push(H.ok?F("Reachability","Anthropic API responded."):B("Reachability",H.status?`Unexpected status ${H.status} from Anthropic API.`:`Could not reach Anthropic API: ${H.error}`));break}case"gemini":{let Y=await u(process.env);Q.push(Y.kind==="none"?B("Gemini auth","No API key, access token, or ADC credentials available."):F("Gemini auth",`kind=${Y.kind}`)),Q.push(...await L(z.baseUrl,z.apiKey));break}case"mistral":{Q.push(...await L(z.baseUrl,z.apiKey));break}case"github_copilot":{let Y=z.extras?.githubToken??z.apiKey;Q.push(Y?F("GitHub Copilot token","present in profile"):B("GitHub Copilot token","missing — re-run /provider GitHub Copilot flow.")),Q.push(...await L(z.baseUrl,Y));break}case"codex_responses":{let Y=I({model:z.model,baseUrl:z.baseUrl});Q.push(F("Codex transport",`model=${Y.requestedModel} resolved=${Y.resolvedModel}`)),Q.push(...await L(z.baseUrl,z.apiKey));break}case"openai_compat":{let Y=z.baseUrl.toLowerCase();if(Y.includes("localhost:11434")||Y.includes("localhost:11435"))Q.push(...await Nz(z.baseUrl,z.model));else if(y(z.baseUrl))Q.push(...await Oz(z.baseUrl));else if(k(z.baseUrl))Q.push(...await Sz(z.baseUrl));else Q.push(...await L(z.baseUrl,z.apiKey));break}case"bedrock":case"vertex":case"foundry":{Q.push(F("Cloud transport","reachability is governed by AWS/GCP/Azure SDK chains. No probe attempted."));break}default:Q.push(B("Transport",`Unknown transport "${z.transport}".`))}let R=A();if(v(R))Q.push(F("Auto mode classifier",`${R} is gated by model name — no probe needed.`));else{let Y=d({provider:z.transport,baseUrl:z.baseUrl,model:R}),H=await a({key:Y,model:R});Q.push(H.ok?F("Auto mode classifier probe","forced tool-choice honored — auto mode enabled for this model."):B("Auto mode classifier probe",`${H.detail??"probe failed"} — auto mode stays unavailable for this model.`))}for(let Y of Q){let H=Y.ok?"OK":"FAIL";J.push(`[${H}] ${Y.label}${Y.detail?` — ${Y.detail}`:""}`)}let N=Q.filter((Y)=>!Y.ok);return J.push(""),J.push(N.length===0?"All checks passed.":`${N.length} check(s) failed.`),J.join(`
|
|
2
|
+
`)}var i=K(()=>{Ez();Bz();Gz();Lz();qz();xz();Xz();Yz();Hz();Fz();_z();Zz();wz();Rz();$z();Kz()});function Dz(z){let J=z.split(/\s+/).map((Q)=>Q.trim()).filter(Boolean);return{force:J.includes("--force")||J.includes("-f")}}async function s(z,J){let{force:Q}=Dz(z),W=await l({force:Q,...J});return t(W)}var o=K(()=>{hz()});function Tz(z){let J=z?.message??(z?.action==="saved"?"Provider profile updated":"Provider manager closed"),Q=z?.action==="activated"&&z.activeProviderName?[`<system-reminder>Provider switched mid-session to ${z.activeProviderName}${z.activeProviderModel?` using model ${z.activeProviderModel}`:""}. Use this provider/model for subsequent requests unless the user switches again.</system-reminder>`]:void 0;return{message:J,metaMessages:Q}}var ez=async(z,J,Q)=>{let W=Q?.trim()??"",V=W.toLowerCase();if(e.includes(V)||zz.includes(V)||V==="help"||V==="--help"||V==="-h"){z("Run /provider to add, edit, delete, or activate provider profiles. The active provider controls base URL, model, and API key. Subcommands: `migrate [--force]` to copy ~/.claude/ -> ~/.claudin/, `doctor` to probe the active profile.",{display:"system"});return}let[Z,...E]=W.split(/\s+/);if(Z?.toLowerCase()==="migrate"){let $=await s(E.join(" "));z($,{display:"system"});return}if(Z?.toLowerCase()==="doctor"){let $=await p();z($,{display:"system"});return}return Jz(Qz,{mode:"manage",onDone:($)=>{let{message:X,metaMessages:x}=Tz($);z(X,{display:"system",metaMessages:x})}})};var Uz=K(()=>{Pz();Cz();i();o();r()});Uz();export{ez as call,Tz as buildProviderManagerCompletion};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ea as g,Vea as a,Wea as b,Xea as c,Yea as d,Zea as e,_ea as f,afa as h,bfa as i,cfa as j,dfa as k,efa as l,ffa as m,gfa as n,hfa as o,ifa as p,jfa as q,kfa as r,lfa as s,mfa as t,nfa as u}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"./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";u();export{j as updateProviderProfile,p as stripProjectProviderPointers,o as setActiveProviderProfileForProject,n as setActiveProviderProfile,s as setActiveOpenAIModelOptionsCache,k as persistActiveProviderProfileModel,c as hasProviderProfiles,g as hasProjectProviderProfileOverride,f as getRawProjectActiveProviderProfileId,b as getProviderProfiles,a as getProviderPresetDefaults,e as getProjectActiveProviderProfileId,m as getProfileModelOptions,h as getGlobalActiveProviderProfileId,d as getActiveProviderProfile,r as getActiveOpenAIModelOptionsCache,q as deleteProviderProfile,l as clearActiveProviderProfileModel,t as clearActiveOpenAIModelOptionsCache,i as addProviderProfile};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{Ai as _,zi as U}from"./cli-1.1.14-xejgqxmy.mjs";import{Mfa as L,Qfa as N,Rfa as O,Wfa as Q,Zfa as Y,aga as R,dga as Z}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"./cli-1.1.14-fwakcyhj.mjs";import{hla as K,nla as X}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-r930b2z3.mjs";Z();Y();X();_();var $=["ghp_","gho_","ghs_","ghr_","github_pat_"];function j(C,A="copilot"){if($.some((w)=>C.startsWith(w))){if(A==="copilot")return"expired";return"valid"}let b=C.match(/exp=(\d+)/);if(b){let w=Number(b[1]);if(!Number.isNaN(w))return Date.now()>=w*1000?"expired":"valid"}let D=C.split(".");if(D.length===3&&D.every((w)=>/^[A-Za-z0-9_-]+$/.test(w)))try{let w=D[1].replace(/-/g,"+").replace(/_/g,"/"),I=w+"=".repeat((4-w.length%4)%4),W=Buffer.from(I,"base64").toString("utf8"),J=JSON.parse(W);if(J&&typeof J==="object"&&J.exp)return Date.now()>=J.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"valid"}async function B(C,A){let b=R();if(!b)return null;if(b.transport==="gemini"){if((await(A?.resolveGeminiCredential??U)(process.env)).kind==="none")return"Configure Gemini auth via /provider — pick API key, access token, or rely on Google ADC.";return null}if(b.transport==="github_copilot"){let G=b.extras?.githubToken?.trim()||b.apiKey?.trim()||"";if(!G)return`GitHub Copilot authentication required.
|
|
2
|
+
Run /provider and choose GitHub Copilot.`;let w=N(b.baseUrl),I=j(G,w);if(I==="expired")return`GitHub Copilot token has expired.
|
|
3
|
+
Run /provider and choose GitHub Copilot.`;if(I==="invalid_format")return`GitHub Copilot token is invalid or corrupted.
|
|
4
|
+
Run /provider and choose GitHub Copilot.`;return null}if(b.transport!=="openai_compat"&&b.transport!=="codex_responses")return null;let D=O({model:b.model,baseUrl:b.baseUrl});if(b.apiKey==="SUA_CHAVE")return"Invalid API key: placeholder value SUA_CHAVE detected. Set a real key in /provider, or leave blank for local providers.";if(D.transport==="codex_responses"){let G=Q();if(!G.apiKey){let w=K()?"":", choose Codex OAuth in /provider",I=G.authPath?`${w} or put auth.json at ${G.authPath}`:w;return`Codex auth is required for ${D.requestedModel}. Configure it via /provider${I}.`}if(!G.accountId)return"Codex auth is missing chatgpt_account_id. Re-login with Codex OAuth via /provider, or import an auth.json with chatgpt_account_id.";return null}if(!b.apiKey&&!L(D.baseUrl))return"API key required for the active /provider profile. Run /provider to set it.";return null}function F(C={}){let A=C.args??process.argv.slice(2);if(!(C.stdoutIsTTY??process.stdout.isTTY))return!0;return A.includes("-p")||A.includes("--print")||A.includes("--init-only")||A.some((D)=>D.startsWith("--sdk-url"))}async function q(C=process.env,A){let b=await B(C);if(!b)return;if(F(A))console.error(b),process.exit(1);console.error(`Warning: provider configuration is incomplete.
|
|
5
|
+
${b}
|
|
6
|
+
Claudin will continue starting so you can run /provider and repair the saved provider settings.`)}export{q as validateProviderEnvForStartupOrExit,F as shouldExitForStartupProviderValidationError,B as getProviderValidationError};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$b as u,ac as Qf}from"./cli-1.1.14-qr2dkjw6.mjs";import{Hi as b,Ii as If}from"./cli-1.1.14-w0d35qqy.mjs";import"./cli-1.1.14-3rjxbb1k.mjs";import"./cli-1.1.14-bz7ts9p7.mjs";import"./cli-1.1.14-cnkv5cdq.mjs";import"./cli-1.1.14-g7ar9cmp.mjs";import{UP as p,VP as Wf,Xn as A,Yn as zf,hG as m,iG as Pf,vy as r,wy as Kf,xy as x,yy as Nf}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{jZ as wf}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 y,N3 as h}from"./cli-1.1.14-az6pbe66.mjs";import{O3 as kf}from"./cli-1.1.14-pgkjn3yw.mjs";import{W3 as O,X3 as Gf}from"./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{e8 as L,h8 as S,n8 as C,w8 as ff}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-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{Hha as t,vha as D}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 R,uja as e}from"./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{Asa as j,Esa as n}from"./cli-1.1.14-r930b2z3.mjs";function Zf(F){let f=d.c(25),{onDone:K,context:W}=F,[v,E]=c.useState(null),z=x(),Z;if(f[0]===Symbol.for("react.memo_cache_sentinel"))Z=S(),f[0]=Z;else Z=f[0];let J=Z,H;if(f[1]===Symbol.for("react.memo_cache_sentinel"))H=C(),f[1]=H;else H=f[1];let l=H,$=L()?.hasExtraUsageEnabled===!0,s=J==="max"&&l==="default_claude_max_20x",_=J==="team"||J==="enterprise",a=D("tengu_jade_anvil_4",!1),X;f:{let k;if(f[2]!==z.overageDisabledReason||f[3]!==z.overageStatus){if(k=[],r.isEnabled()){let w=O(),T=_&&!w,o=z.overageDisabledReason==="out_of_credits"||z.overageDisabledReason==="org_level_disabled_until"||z.overageDisabledReason==="org_service_zero_credit_limit";if(T&&o);else{let i=z.overageStatus==="rejected"||z.overageStatus==="allowed_warning",Q;if(T)Q=i?"Request more":"Request extra usage";else Q=$?"Add funds to continue with extra usage":"Switch to extra usage";let M;if(f[5]!==Q)M={label:Q,value:"extra-usage"},f[5]=Q,f[6]=M;else M=f[6];k.push(M)}}if(!s&&!_&&p.isEnabled()){let w;if(f[7]===Symbol.for("react.memo_cache_sentinel"))w={label:"Upgrade your plan",value:"upgrade"},f[7]=w;else w=f[7];k.push(w)}f[2]=z.overageDisabledReason,f[3]=z.overageStatus,f[4]=k}else k=f[4];let G;if(f[8]===Symbol.for("react.memo_cache_sentinel"))G={label:"Stop and wait for limit to reset",value:"cancel"},f[8]=G;else G=f[8];let I=G;if(a){let w;if(f[9]!==k)w=[...k,I],f[9]=k,f[10]=w;else w=f[10];X=w;break f}let B;if(f[11]!==k)B=[I,...k],f[11]=k,f[12]=B;else B=f[12];X=B}let U=X,V;if(f[13]!==K)V=function(){R("",{}),K(void 0,{display:"skip"})},f[13]=K,f[14]=V;else V=f[14];let N=V,Y;if(f[15]!==W||f[16]!==N||f[17]!==K)Y=function(G){if(G==="upgrade")R("",{}),u(K,W).then((I)=>{if(I)E(I)});else if(G==="extra-usage")R("",{}),b(K,W).then((I)=>{if(I)E(I)});else if(G==="cancel")N()},f[15]=W,f[16]=N,f[17]=K,f[18]=Y;else Y=f[18];let g=Y;if(v)return v;let P;if(f[19]!==g||f[20]!==U)P=y(m,{options:U,onChange:g,visibleOptionCount:U.length}),f[19]=g,f[20]=U,f[21]=P;else P=f[21];let q;if(f[22]!==N||f[23]!==P)q=y(A,{title:"What do you want to do?",onCancel:N,color:"suggestion",children:P}),f[22]=N,f[23]=P,f[24]=q;else q=f[24];return q}async function _f(F,f){return y(Zf,{onDone:F,context:f})}var d,c;var Hf=n(()=>{Pf();zf();t();e();Nf();ff();Gf();If();Kf();Wf();Qf();h();d=j(wf(),1),c=j(kf(),1)});Hf();export{_f as call};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import"./cli-1.1.14-ph81vme8.mjs";import"./cli-1.1.14-6ybkavvh.mjs";import{v as W,w as g}from"./cli-1.1.14-835c2y60.mjs";import{Y as m}from"./cli-1.1.14-jw4b6h9t.mjs";import{Gd as P,Hd as p}from"./cli-1.1.14-vmwd3gk6.mjs";import"./cli-1.1.14-9419wa62.mjs";import{$M as u,DM as R,NK as M,PM as Xy,UK as yy,YM as h,_M as C,aN as O,dN as Yy,qG as I,rG as S,sN as U,tN as b,vN as Zy}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{rja as f,uja as Ky}from"./cli-1.1.14-f5bvc359.mjs";import{Zja as D,cka as Qy}from"./cli-1.1.14-db3mxak8.mjs";import"./cli-1.1.14-cakvdwn3.mjs";import"./cli-1.1.14-fwakcyhj.mjs";import{ila as k,nla as zy}from"./cli-1.1.14-83ng5cjk.mjs";import{Sqa as $y}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{Fsa as Z}from"./cli-1.1.14-r930b2z3.mjs";function E(Q){Q.command("agents").description("List configured agents").option("--setting-sources <sources>","Comma-separated list of setting sources to load (user, project, local).").action(async()=>{let{agentsHandler:y}=await import("./agents-1.1.14-09h1y56n.mjs");await y(),process.exit(0)})}function v(Q){}var A=(Q)=>Q.long?.replace(/^--/,"")??Q.short?.replace(/^-/,"")??"";function G(){return Object.assign({sortSubcommands:!0,sortOptions:!0},{compareOptions:(Q,y)=>A(Q).localeCompare(A(y))})}function L(Q){let y=Q.command("auth").description("Manage authentication").configureHelp(G());y.command("login").description("Sign in to your Anthropic account").option("--email <email>","Pre-populate email address on the login page").option("--sso","Force SSO login flow").option("--console","Use Anthropic Console (API usage billing) instead of Claude subscription").option("--claudeai","Use Claude subscription (default)").action(async({email:z,sso:Y,console:K,claudeai:X})=>{let{authLogin:$}=await import("./auth-1.1.14-bap5zejc.mjs");await $({email:z,sso:Y,console:K,claudeai:X})}),y.command("status").description("Show authentication status").option("--json","Output as JSON (default)").option("--text","Output as human-readable text").action(async(z)=>{let{authStatus:Y}=await import("./auth-1.1.14-bap5zejc.mjs");await Y(z)}),y.command("logout").description("Log out from your Anthropic account").action(async()=>{let{authLogout:z}=await import("./auth-1.1.14-bap5zejc.mjs");await z()})}yy();function j(Q){if(M()!=="disabled"){let y=Q.command("auto-mode").description("Inspect auto mode classifier configuration");y.command("defaults").description("Print the default auto mode environment, allow, and deny rules as JSON").action(async()=>{let{autoModeDefaultsHandler:z}=await import("./autoMode-1.1.14-ez7vz44q.mjs");z(),process.exit(0)}),y.command("config").description("Print the effective auto mode config as JSON: your settings where set, defaults otherwise").action(async()=>{let{autoModeConfigHandler:z}=await import("./autoMode-1.1.14-ez7vz44q.mjs");z(),process.exit(0)}),y.command("critique").description("Get AI feedback on your custom auto mode rules").option("--model <model>","Override which model is used").action(async(z)=>{let{autoModeCritiqueHandler:Y}=await import("./autoMode-1.1.14-ez7vz44q.mjs");await Y(z),process.exit()})}}S();function w(Q){Q.command("doctor").description("Check the health of your Claude Code auto-updater. Note: The workspace trust dialog is skipped and stdio servers from .mcp.json are spawned for health checks. Only use this command in directories you trust.").action(async()=>{let[{doctorHandler:y},{createRoot:z}]=await Promise.all([import("./util-1.1.14-dtgb1qsg.mjs"),import("./ink-1.1.14-hb9m1tzk.mjs")]),Y=await z(I(!1));await y(Y)})}function H(Q){Q.command("install [target]").description("Install Claude Code native build. Use [target] to specify version (stable, latest, or specific version)").option("--force","Force installation even if already installed").action(async(y,z)=>{let{installHandler:Y}=await import("./util-1.1.14-dtgb1qsg.mjs");await Y(y,z)})}Ky();Zy();Xy();Yy();zy();Qy();function c(Q){Q.command("add <name> <commandOrUrl> [args...]").description(`Add an MCP server to Claude Code.
|
|
2
|
+
|
|
3
|
+
Examples:
|
|
4
|
+
# Add HTTP server:
|
|
5
|
+
claude mcp add --transport http sentry https://mcp.sentry.dev/mcp
|
|
6
|
+
|
|
7
|
+
# Add HTTP server with headers:
|
|
8
|
+
claude mcp add --transport http corridor https://app.corridor.dev/api/mcp --header "Authorization: Bearer ..."
|
|
9
|
+
|
|
10
|
+
# Add stdio server with environment variables:
|
|
11
|
+
claude mcp add -e API_KEY=xxx my-server -- npx my-mcp-server
|
|
12
|
+
|
|
13
|
+
# Add stdio server with subprocess flags:
|
|
14
|
+
claude mcp add my-server -- my-command --some-flag arg1`).option("-s, --scope <scope>","Configuration scope (local, user, or project)","local").option("-t, --transport <transport>","Transport type (stdio, sse, http). Defaults to stdio if not specified.").option("-e, --env <env...>","Set environment variables (e.g. -e KEY=value)").option("-H, --header <header...>",'Set WebSocket headers (e.g. -H "X-Api-Key: abc123" -H "X-Custom: value")').option("--client-id <clientId>","OAuth client ID for HTTP/SSE servers").option("--client-secret","Prompt for OAuth client secret (or set MCP_CLIENT_SECRET env var)").option("--callback-port <port>","Fixed port for OAuth callback (for servers requiring pre-registered redirect URIs)").helpOption("-h, --help","Display help for command").action(async(y,z,Y,K)=>{let X=z,$=Y;if(!y)W(`Error: Server name is required.
|
|
15
|
+
Usage: claudin mcp add <name> <command> [args...]`);else if(!X)W(`Error: Command is required when server name is provided.
|
|
16
|
+
Usage: claudin mcp add <name> <command> [args...]`);try{let q=C(K.scope),J=u(K.transport),V=K.transport!==void 0,T=X.startsWith("http://")||X.startsWith("https://")||X.startsWith("localhost")||X.endsWith("/sse")||X.endsWith("/mcp");if(f("",{type:J,scope:q,source:"command",transport:J,transportExplicit:V,looksLikeUrl:T}),J==="sse"){if(!X)W("Error: URL is required for SSE transport.");let x=K.header?O(K.header):void 0,F=K.callbackPort?parseInt(K.callbackPort,10):void 0,_=K.clientId||F?{...K.clientId?{clientId:K.clientId}:{},...F?{callbackPort:F}:{}}:void 0,N=K.clientSecret&&K.clientId?await U():void 0,B={type:"sse",url:X,headers:x,oauth:_};if(await R(y,B,q),N)b(y,B,N);if(process.stdout.write(`Added SSE MCP server ${y} with URL: ${X} to ${q} config
|
|
17
|
+
`),x)process.stdout.write(`Headers: ${D(x,null,2)}
|
|
18
|
+
`)}else if(J==="http"){if(!X)W("Error: URL is required for HTTP transport.");let x=K.header?O(K.header):void 0,F=K.callbackPort?parseInt(K.callbackPort,10):void 0,_=K.clientId||F?{...K.clientId?{clientId:K.clientId}:{},...F?{callbackPort:F}:{}}:void 0,N=K.clientSecret&&K.clientId?await U():void 0,B={type:"http",url:X,headers:x,oauth:_};if(await R(y,B,q),N)b(y,B,N);if(process.stdout.write(`Added HTTP MCP server ${y} with URL: ${X} to ${q} config
|
|
19
|
+
`),x)process.stdout.write(`Headers: ${D(x,null,2)}
|
|
20
|
+
`)}else{if(K.clientId||K.clientSecret||K.callbackPort)process.stderr.write(`Warning: --client-id, --client-secret, and --callback-port are only supported for HTTP/SSE transports and will be ignored for stdio.
|
|
21
|
+
`);if(!V&&T)process.stderr.write(`
|
|
22
|
+
Warning: The command "${X}" looks like a URL, but is being interpreted as a stdio server as --transport was not specified.
|
|
23
|
+
`),process.stderr.write(`If this is an HTTP server, use: claude mcp add --transport http ${y} ${X}
|
|
24
|
+
`),process.stderr.write(`If this is an SSE server, use: claude mcp add --transport sse ${y} ${X}
|
|
25
|
+
`);let x=k(K.env);await R(y,{type:"stdio",command:X,args:$,env:x},q),process.stdout.write(`Added stdio MCP server ${y} with command: ${X} ${$.join(" ")} to ${q} config
|
|
26
|
+
`)}g(`File modified: ${h(q)}`)}catch(q){W(q.message)}})}function d(Q){Q.command("doctor [name]").description("Diagnose MCP configuration, precedence, disabled/pending state, and connection health. Note: unless --config-only is used, stdio servers may be spawned and remote servers may be contacted. Only use this command in directories you trust.").option("-s, --scope <scope>","Restrict config analysis to a specific scope (local, project, user, or enterprise)").option("--config-only","Skip live connection checks and only analyze configuration state").option("--json","Output the diagnostics report as JSON").action(async(y,z)=>{let{mcpDoctorHandler:Y}=await import("./mcp-1.1.14-jdgt2rjc.mjs");await Y(y,z)})}function l(Q){let y=Q.command("mcp").description("Configure and manage MCP servers").configureHelp(G()).enablePositionalOptions();y.command("serve").description("Start the Claude Code MCP server").option("-d, --debug","Enable debug mode",()=>!0).option("--verbose","Override verbose mode setting from config",()=>!0).action(async({debug:z,verbose:Y})=>{let{mcpServeHandler:K}=await import("./mcp-1.1.14-jdgt2rjc.mjs");await K({debug:z,verbose:Y})}),c(y),d(y),y.command("remove <name>").description("Remove an MCP server").option("-s, --scope <scope>","Configuration scope (local, user, or project) - if not specified, removes from whichever scope it exists in").action(async(z,Y)=>{let{mcpRemoveHandler:K}=await import("./mcp-1.1.14-jdgt2rjc.mjs");await K(z,Y)}),y.command("list").description("List configured MCP servers. Note: The workspace trust dialog is skipped and stdio servers from .mcp.json are spawned for health checks. Only use this command in directories you trust.").action(async()=>{let{mcpListHandler:z}=await import("./mcp-1.1.14-jdgt2rjc.mjs");await z()}),y.command("get <name>").description("Get details about an MCP server. Note: The workspace trust dialog is skipped and stdio servers from .mcp.json are spawned for health checks. Only use this command in directories you trust.").action(async(z)=>{let{mcpGetHandler:Y}=await import("./mcp-1.1.14-jdgt2rjc.mjs");await Y(z)}),y.command("add-json <name> <json>").description("Add an MCP server (stdio or SSE) with a JSON string").option("-s, --scope <scope>","Configuration scope (local, user, or project)","local").option("--client-secret","Prompt for OAuth client secret (or set MCP_CLIENT_SECRET env var)").action(async(z,Y,K)=>{let{mcpAddJsonHandler:X}=await import("./mcp-1.1.14-jdgt2rjc.mjs");await X(z,Y,K)}),y.command("add-from-claude-desktop").description("Import MCP servers from Claude Desktop (Mac and WSL only)").option("-s, --scope <scope>","Configuration scope (local, user, or project)","local").action(async(z)=>{let{mcpAddFromDesktopHandler:Y}=await import("./mcp-1.1.14-jdgt2rjc.mjs");await Y(z)}),y.command("reset-project-choices").description("Reset all approved and rejected project-scoped (.mcp.json) servers within this project").action(async()=>{let{mcpResetChoicesHandler:z}=await import("./mcp-1.1.14-jdgt2rjc.mjs");await z()})}$y();function i(Q,y){}function n(Q){let y=()=>new m("--cowork","Use cowork_plugins directory").hideHelp(),z=Q.command("plugin").alias("plugins").description("Manage Claude Code plugins").configureHelp(G());z.command("validate <path>").description("Validate a plugin or marketplace manifest").addOption(y()).action(async(K,X)=>{let{pluginValidateHandler:$}=await import("./plugins-1.1.14-8cr92qaf.mjs");await $(K,X)}),z.command("list").description("List installed plugins").option("--json","Output as JSON").option("--available","Include available plugins from marketplaces (requires --json)").addOption(y()).action(async(K)=>{let{pluginListHandler:X}=await import("./plugins-1.1.14-8cr92qaf.mjs");await X(K)});let Y=z.command("marketplace").description("Manage Claude Code marketplaces").configureHelp(G());Y.command("add <source>").description("Add a marketplace from a URL, path, or GitHub repo").addOption(y()).option("--sparse <paths...>","Limit checkout to specific directories via git sparse-checkout (for monorepos). Example: --sparse .claude-plugin plugins").option("--scope <scope>","Where to declare the marketplace: user (default), project, or local").action(async(K,X)=>{let{marketplaceAddHandler:$}=await import("./plugins-1.1.14-8cr92qaf.mjs");await $(K,X)}),Y.command("list").description("List all configured marketplaces").option("--json","Output as JSON").addOption(y()).action(async(K)=>{let{marketplaceListHandler:X}=await import("./plugins-1.1.14-8cr92qaf.mjs");await X(K)}),Y.command("remove <name>").alias("rm").description("Remove a configured marketplace").addOption(y()).action(async(K,X)=>{let{marketplaceRemoveHandler:$}=await import("./plugins-1.1.14-8cr92qaf.mjs");await $(K,X)}),Y.command("update [name]").description("Update marketplace(s) from their source - updates all if no name specified").addOption(y()).action(async(K,X)=>{let{marketplaceUpdateHandler:$}=await import("./plugins-1.1.14-8cr92qaf.mjs");await $(K,X)}),z.command("install <plugin>").alias("i").description("Install a plugin from available marketplaces (use plugin@marketplace for specific marketplace)").option("-s, --scope <scope>","Installation scope: user, project, or local","user").addOption(y()).action(async(K,X)=>{let{pluginInstallHandler:$}=await import("./plugins-1.1.14-8cr92qaf.mjs");await $(K,X)}),z.command("uninstall <plugin>").alias("remove").alias("rm").description("Uninstall an installed plugin").option("-s, --scope <scope>","Uninstall from scope: user, project, or local","user").option("--keep-data","Preserve the plugin's persistent data directory (~/.claudin/plugins/data/{id}/)").addOption(y()).action(async(K,X)=>{let{pluginUninstallHandler:$}=await import("./plugins-1.1.14-8cr92qaf.mjs");await $(K,X)}),z.command("enable <plugin>").description("Enable a disabled plugin").option("-s, --scope <scope>",`Installation scope: ${P.join(", ")} (default: auto-detect)`).addOption(y()).action(async(K,X)=>{let{pluginEnableHandler:$}=await import("./plugins-1.1.14-8cr92qaf.mjs");await $(K,X)}),z.command("disable [plugin]").description("Disable an enabled plugin").option("-a, --all","Disable all enabled plugins").option("-s, --scope <scope>",`Installation scope: ${P.join(", ")} (default: auto-detect)`).addOption(y()).action(async(K,X)=>{let{pluginDisableHandler:$}=await import("./plugins-1.1.14-8cr92qaf.mjs");await $(K,X)}),z.command("update <plugin>").description("Update a plugin to the latest version (restart required to apply)").option("-s, --scope <scope>",`Installation scope: ${p.join(", ")} (default: user)`).addOption(y()).action(async(K,X)=>{let{pluginUpdateHandler:$}=await import("./plugins-1.1.14-8cr92qaf.mjs");await $(K,X)})}function s(Q){Q.command("remote-control",{hidden:!0}).alias("rc").description("Connect your local environment for remote-control sessions via claude.ai/code").action(async()=>{let{bridgeMain:y}=await import("./bridgeMain-1.1.14-v69v0m5y.mjs");await y(process.argv.slice(3))})}function t(Q){}S();function e(Q){Q.command("setup-token").description("Set up a long-lived authentication token (requires Claude subscription)").action(async()=>{let[{setupTokenHandler:y},{createRoot:z}]=await Promise.all([import("./util-1.1.14-dtgb1qsg.mjs"),import("./ink-1.1.14-hb9m1tzk.mjs")]),Y=await z(I(!1));await y(Y)})}function r(Q){}function a(Q){Q.command("update").alias("upgrade").description("Check for updates and install if available").action(async()=>{let{update:y}=await import("./update-1.1.14-114p1f8r.mjs");await y()})}function o(Q){let y=Q.command("workflow").description("Self-hosted background agent: run or watch agent workflows");y.command("run <name>").description("Run a workflow headlessly and optionally open a PR").requiredOption("--task <text>","Task/goal to seed the workflow with").option("--worktree","Run inside an isolated git worktree",!1).option("--pr","On success, commit + push the branch and open a PR",!1).option("--base <branch>","PR base branch (default: remote default branch)").option("--report <file>","Write the markdown run report to this path").action(async(z,Y)=>{let{runWorkflowHeadless:K}=await import("./runWorkflowHeadless-1.1.14-w8erpgvm.mjs");process.exitCode=await K({workflow:z,task:Y.task,worktree:Boolean(Y.worktree),pr:Boolean(Y.pr),base:Y.base,report:Y.report})}),y.command("watch").description("Poll a source for labeled issues and dispatch workflow runs").requiredOption("--workflow <name>","Workflow to run for each trigger").option("--label <label>","Issue label that triggers a run (github source)","claudin").option("--interval <seconds>","Poll interval in seconds","30").option("--source <source>",'Trigger source: "github", "url", or "command"',"github").option("--url <url>","URL to poll (required for --source url)").option("--command <cmd>","Local shell command to poll (required for --source command)").option("--match <regex>","Only trigger on items whose title/body matches this regex").option("--base <branch>","PR base branch (default: remote default branch)").action(async(z)=>{let{runWatchLoop:Y}=await import("./watchLoop-1.1.14-r19ed4xt.mjs");await Y({label:z.label,workflow:z.workflow,intervalSec:Number(z.interval)||30,source:z.source,url:z.url,command:z.command,match:z.match,base:z.base})})}function TK(Q,y){return l(Q),t(Q),r(Q),i(Q,y.pendingConnect),L(Q),n(Q),e(Q),E(Q),j(Q),s(Q),v(Q),w(Q),a(Q),H(Q),o(Q),Q}export{TK as registerSubcommands};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$B as i,TB as a,UB as b,VB as c,WB as d,XB as e,YB as f,ZB as g,_B as h,aC as j,bC as k,cC as l,dC as m,eC as n}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";n();export{m as resetBackendDetection,b as registerTmuxBackend,c as registerITermBackend,h as markInProcessFallback,i as isInProcessEnabled,l as getTeammateExecutor,j as getResolvedTeammateMode,k as getInProcessBackend,g as getCachedDetectionResult,f as getCachedBackend,e as getBackendByType,a as ensureBackendsRegistered,d as detectAndGetBackend};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{$e as I,bf as J,cf as z,df as B,ff as M}from"./cli-1.1.14-vjeh477p.mjs";import"./cli-1.1.14-qm7sjy8p.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 K}from"./cli-1.1.14-r930b2z3.mjs";function F(k){return k.map(([q,w])=>{let D=`Version ${q}:`,x=w.map((y)=>`· ${y}`).join(`
|
|
2
|
+
`);return`${D}
|
|
3
|
+
${x}`}).join(`
|
|
4
|
+
|
|
5
|
+
`)}async function V(){let k=[];try{let w=new Promise((D,x)=>{setTimeout((y)=>y(Error("Timeout")),500,x)});await Promise.race([J(),w]),k=B(await z())}catch{}if(k.length>0)return{type:"text",value:F(k)};let q=B(await z());if(q.length>0)return{type:"text",value:F(q)};return{type:"text",value:`See the full changelog at: ${I}`}}var Q=K(()=>{M()});Q();export{V as call};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{xd as C,yd as F}from"./cli-1.1.14-weqr0y1h.mjs";import"./cli-1.1.14-7jt701f6.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{Oca as B,Wca as E}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"./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 D}from"./cli-1.1.14-r930b2z3.mjs";function q(w,y){return`${w} ${B(w,y)}`}var K=async(w,y)=>{let k=await C(y.setAppState),z=`Reloaded: ${[q(k.enabled_count,"plugin"),q(k.command_count,"skill"),q(k.agent_count,"agent"),q(k.hook_count,"hook"),q(k.mcp_count,"plugin MCP server"),q(k.lsp_count,"plugin LSP server")].join(" · ")}`;if(k.error_count>0)z+=`
|
|
2
|
+
${q(k.error_count,"error")} during load. Run /doctor for details.`;return{type:"text",value:z}};var G=D(()=>{F();E()});G();export{K as call};
|