@claudiolabs/claudin 1.1.30 → 1.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.1.31-6e06310w.mjs +1 -0
- package/dist/chunks/App-1.1.31-bp57fthj.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.31-ptx7r5x2.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.31-0d22j8k7.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.31-v2cfafqt.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.31-a8e8ar2n.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.31-zq76tmk2.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.31-r1mknqwv.mjs +6 -0
- package/dist/chunks/Doctor-1.1.31-t4n9k4nc.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.31-41a3c01z.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.31-y9f8hq45.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.31-xpdggxkf.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.31-0bg1r1g6.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.31-w8fpbc16.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.31-23zjjspn.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.31-504qgqkc.mjs +1 -0
- package/dist/chunks/REPL-1.1.31-nyzbwycm.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.31-dqkxr7bz.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.31-htqfbpbp.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.31-27h2np2z.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.31-41nwynfk.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.31-ea5827ce.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.31-jvrhermf.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.31-c0sya3fj.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.31-28w5033t.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.31-dbrkwgfw.mjs +1 -0
- package/dist/chunks/add-dir-1.1.31-r6x72g59.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.31-kb6srdzm.mjs +1 -0
- package/dist/chunks/agents-1.1.31-1jetdejb.mjs +110 -0
- package/dist/chunks/agents-1.1.31-mfr4h93c.mjs +3 -0
- package/dist/chunks/api-1.1.31-hp3y91t9.mjs +1 -0
- package/dist/chunks/asciicast-1.1.31-t0xrwnqn.mjs +1 -0
- package/dist/chunks/auth-1.1.31-76rswxwe.mjs +1 -0
- package/dist/chunks/auth-1.1.31-yhv86kw0.mjs +1 -0
- package/dist/chunks/autoMode-1.1.31-qma18egk.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.31-egrmqsva.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.31-417m125q.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.31-e5emh88x.mjs +1 -0
- package/dist/chunks/branch-1.1.31-bxrg1svq.mjs +4 -0
- package/dist/chunks/bridge-1.1.31-1rsj352r.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.31-r9vnvw71.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.31-d9mxn4g0.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.31-7sf093b0.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.31-n1t53nem.mjs +1 -0
- package/dist/chunks/btw-1.1.31-skw1dhb5.mjs +1 -0
- package/dist/chunks/buddy-1.1.31-wtmggn5p.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.31-pgss169p.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.31-af3nkg2b.mjs +4 -0
- package/dist/chunks/caches-1.1.31-yvqtsfx3.mjs +1 -0
- package/dist/chunks/cd-1.1.31-9t47yj0z.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.31-b7a99nfq.mjs +1 -0
- package/dist/chunks/claudemd-1.1.31-h72v8r12.mjs +1 -0
- package/dist/chunks/clear-1.1.31-ndp0q9t9.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.31-d6d2q7kn.mjs +1 -0
- package/dist/chunks/cli-1.1.31-03xjvk1e.mjs +3 -0
- package/dist/chunks/cli-1.1.31-0fnqd3bq.mjs +25 -0
- package/dist/chunks/cli-1.1.31-0mmyq6jx.mjs +2 -0
- package/dist/chunks/cli-1.1.31-0yagz4xw.mjs +2 -0
- package/dist/chunks/cli-1.1.31-1192t9cm.mjs +2 -0
- package/dist/chunks/cli-1.1.31-13cx7z8n.mjs +60 -0
- package/dist/chunks/cli-1.1.31-1dv9ay7v.mjs +2 -0
- package/dist/chunks/cli-1.1.31-1q4btmra.mjs +2 -0
- package/dist/chunks/cli-1.1.31-1qw0s3a8.mjs +2 -0
- package/dist/chunks/cli-1.1.31-1wxttnqr.mjs +2 -0
- package/dist/chunks/cli-1.1.31-2csxt0x3.mjs +2 -0
- package/dist/chunks/cli-1.1.31-2ffqcy85.mjs +2 -0
- package/dist/chunks/cli-1.1.31-2j93x895.mjs +24 -0
- package/dist/chunks/cli-1.1.31-2mfapzkq.mjs +2 -0
- package/dist/chunks/cli-1.1.31-2pdbmb7w.mjs +3 -0
- package/dist/chunks/cli-1.1.31-2zvm1tgs.mjs +2 -0
- package/dist/chunks/cli-1.1.31-312b3zf6.mjs +2 -0
- package/dist/chunks/cli-1.1.31-32mahfs2.mjs +2 -0
- package/dist/chunks/cli-1.1.31-3dy87m85.mjs +2 -0
- package/dist/chunks/cli-1.1.31-3ehzwm1n.mjs +2 -0
- package/dist/chunks/cli-1.1.31-3jzsv5dy.mjs +2 -0
- package/dist/chunks/cli-1.1.31-3s51hvv0.mjs +2 -0
- package/dist/chunks/cli-1.1.31-3zy5yd1t.mjs +133 -0
- package/dist/chunks/cli-1.1.31-44jshpbd.mjs +2 -0
- package/dist/chunks/cli-1.1.31-4awnya8e.mjs +2 -0
- package/dist/chunks/cli-1.1.31-4cp1xkaj.mjs +2 -0
- package/dist/chunks/cli-1.1.31-4ja5kbt5.mjs +4 -0
- package/dist/chunks/cli-1.1.31-4tneme0y.mjs +2 -0
- package/dist/chunks/cli-1.1.31-528vtf9a.mjs +2 -0
- package/dist/chunks/cli-1.1.31-52wt9w8w.mjs +15 -0
- package/dist/chunks/cli-1.1.31-556xnzb4.mjs +2 -0
- package/dist/chunks/cli-1.1.31-562nqgh7.mjs +2 -0
- package/dist/chunks/cli-1.1.31-58anwssk.mjs +2 -0
- package/dist/chunks/cli-1.1.31-5ab9cpbt.mjs +3 -0
- package/dist/chunks/cli-1.1.31-5kgkq6vm.mjs +2 -0
- package/dist/chunks/cli-1.1.31-5ma2m26d.mjs +2 -0
- package/dist/chunks/cli-1.1.31-5tgfa7xy.mjs +2 -0
- package/dist/chunks/cli-1.1.31-5xd2j6e7.mjs +2 -0
- package/dist/chunks/cli-1.1.31-612bpjx6.mjs +2 -0
- package/dist/chunks/cli-1.1.31-619zan4w.mjs +2 -0
- package/dist/chunks/cli-1.1.31-6m1k9909.mjs +2 -0
- package/dist/chunks/cli-1.1.31-6pxakyvg.mjs +2 -0
- package/dist/chunks/cli-1.1.31-6qm466ss.mjs +2 -0
- package/dist/chunks/cli-1.1.31-706cv7fx.mjs +2 -0
- package/dist/chunks/cli-1.1.31-7692zxpg.mjs +2 -0
- package/dist/chunks/cli-1.1.31-774jqp88.mjs +2 -0
- package/dist/chunks/cli-1.1.31-777381m0.mjs +34 -0
- package/dist/chunks/cli-1.1.31-7hmq6k3a.mjs +26 -0
- package/dist/chunks/cli-1.1.31-7wdp9ve5.mjs +3 -0
- package/dist/chunks/cli-1.1.31-8bcb1d1y.mjs +2 -0
- package/dist/chunks/cli-1.1.31-8esfq0f2.mjs +2 -0
- package/dist/chunks/cli-1.1.31-8h9zps1d.mjs +2 -0
- package/dist/chunks/cli-1.1.31-8sw4prf8.mjs +22 -0
- package/dist/chunks/cli-1.1.31-8syj0cmx.mjs +2 -0
- package/dist/chunks/cli-1.1.31-9493f46x.mjs +9 -0
- package/dist/chunks/cli-1.1.31-978dpg39.mjs +2 -0
- package/dist/chunks/cli-1.1.31-9a1gsrx2.mjs +24 -0
- package/dist/chunks/cli-1.1.31-9adq5rjd.mjs +2 -0
- package/dist/chunks/cli-1.1.31-9d5v98td.mjs +2 -0
- package/dist/chunks/cli-1.1.31-9e4vtbvh.mjs +3 -0
- package/dist/chunks/cli-1.1.31-9efpx64n.mjs +20 -0
- package/dist/chunks/cli-1.1.31-9gf60j86.mjs +2 -0
- package/dist/chunks/cli-1.1.31-9gzbwjb8.mjs +2 -0
- package/dist/chunks/cli-1.1.31-9m6ef5kb.mjs +2 -0
- package/dist/chunks/cli-1.1.31-9m6gmh2w.mjs +2 -0
- package/dist/chunks/cli-1.1.31-9x9gaa7g.mjs +2 -0
- package/dist/chunks/cli-1.1.31-a4vvez04.mjs +2 -0
- package/dist/chunks/cli-1.1.31-a5wav9hq.mjs +2 -0
- package/dist/chunks/cli-1.1.31-a611zwj5.mjs +10 -0
- package/dist/chunks/cli-1.1.31-adnn5x8c.mjs +16 -0
- package/dist/chunks/cli-1.1.31-afzdmcrq.mjs +2 -0
- package/dist/chunks/cli-1.1.31-ahbyaapz.mjs +12 -0
- package/dist/chunks/cli-1.1.31-aqm3wayg.mjs +2 -0
- package/dist/chunks/cli-1.1.31-b2pt6rsc.mjs +2 -0
- package/dist/chunks/cli-1.1.31-b7258j1y.mjs +2 -0
- package/dist/chunks/cli-1.1.31-b8rbgfhm.mjs +2 -0
- package/dist/chunks/cli-1.1.31-bdt0j0zj.mjs +4 -0
- package/dist/chunks/cli-1.1.31-bfsa3dvr.mjs +2 -0
- package/dist/chunks/cli-1.1.31-bx3e5rv6.mjs +3 -0
- package/dist/chunks/cli-1.1.31-c17g88x0.mjs +9 -0
- package/dist/chunks/cli-1.1.31-c9707zjx.mjs +63 -0
- package/dist/chunks/cli-1.1.31-can8wyac.mjs +2 -0
- package/dist/chunks/cli-1.1.31-cpay8r5h.mjs +2 -0
- package/dist/chunks/cli-1.1.31-cpeph4zm.mjs +6 -0
- package/dist/chunks/cli-1.1.31-d9sxj86f.mjs +2 -0
- package/dist/chunks/cli-1.1.31-dc4fq4s3.mjs +2 -0
- package/dist/chunks/cli-1.1.31-dctwr6q4.mjs +5 -0
- package/dist/chunks/cli-1.1.31-dcyx3536.mjs +39 -0
- package/dist/chunks/cli-1.1.31-dhecyw04.mjs +3 -0
- package/dist/chunks/cli-1.1.31-dmghye74.mjs +4 -0
- package/dist/chunks/cli-1.1.31-ek449yjc.mjs +6 -0
- package/dist/chunks/cli-1.1.31-emhqeb1g.mjs +2 -0
- package/dist/chunks/cli-1.1.31-eqfmzrxc.mjs +2 -0
- package/dist/chunks/cli-1.1.31-eqvc58gw.mjs +2 -0
- package/dist/chunks/cli-1.1.31-ewhwdszf.mjs +2 -0
- package/dist/chunks/cli-1.1.31-f1zfyp44.mjs +2 -0
- package/dist/chunks/cli-1.1.31-f2abkvxa.mjs +4 -0
- package/dist/chunks/cli-1.1.31-fbdr0297.mjs +2 -0
- package/dist/chunks/cli-1.1.31-fdjs93ba.mjs +2 -0
- package/dist/chunks/cli-1.1.31-fdk7yhs0.mjs +2 -0
- package/dist/chunks/cli-1.1.31-fjdb444f.mjs +7 -0
- package/dist/chunks/cli-1.1.31-fk787pkf.mjs +15 -0
- package/dist/chunks/cli-1.1.31-fpqqpyrw.mjs +3 -0
- package/dist/chunks/cli-1.1.31-fr8t4a7n.mjs +2 -0
- package/dist/chunks/cli-1.1.31-fy2x8k7r.mjs +2 -0
- package/dist/chunks/cli-1.1.31-g41zancj.mjs +3 -0
- package/dist/chunks/cli-1.1.31-g58b1jfa.mjs +5473 -0
- package/dist/chunks/cli-1.1.31-ggtvemxf.mjs +2 -0
- package/dist/chunks/cli-1.1.31-gk7te1jt.mjs +2 -0
- package/dist/chunks/cli-1.1.31-gq54djk0.mjs +2 -0
- package/dist/chunks/cli-1.1.31-h102y1at.mjs +8 -0
- package/dist/chunks/cli-1.1.31-h1sv3apa.mjs +4 -0
- package/dist/chunks/cli-1.1.31-h41m4yrw.mjs +2 -0
- package/dist/chunks/cli-1.1.31-h5a78vp8.mjs +2 -0
- package/dist/chunks/cli-1.1.31-hfdt80w2.mjs +50 -0
- package/dist/chunks/cli-1.1.31-hk88wxhm.mjs +2 -0
- package/dist/chunks/cli-1.1.31-hpxjvh3j.mjs +3 -0
- package/dist/chunks/cli-1.1.31-hvnwvzhh.mjs +58 -0
- package/dist/chunks/cli-1.1.31-j0fbn8aw.mjs +2 -0
- package/dist/chunks/cli-1.1.31-jfj1gvgy.mjs +2 -0
- package/dist/chunks/cli-1.1.31-jh2sb5nk.mjs +42 -0
- package/dist/chunks/cli-1.1.31-jnyr50hq.mjs +2 -0
- package/dist/chunks/cli-1.1.31-jwa8f70w.mjs +2 -0
- package/dist/chunks/cli-1.1.31-jyzz7q1c.mjs +2 -0
- package/dist/chunks/cli-1.1.31-k0zfy1nt.mjs +2 -0
- package/dist/chunks/cli-1.1.31-kfw3q4sp.mjs +133 -0
- package/dist/chunks/cli-1.1.31-kp8hq72m.mjs +2 -0
- package/dist/chunks/cli-1.1.31-kzh4darh.mjs +2 -0
- package/dist/chunks/cli-1.1.31-m5w2d13z.mjs +2 -0
- package/dist/chunks/cli-1.1.31-m9yqg6jg.mjs +2 -0
- package/dist/chunks/cli-1.1.31-mcekc48f.mjs +2 -0
- package/dist/chunks/cli-1.1.31-mtcbc6g3.mjs +4 -0
- package/dist/chunks/cli-1.1.31-n130x03f.mjs +2 -0
- package/dist/chunks/cli-1.1.31-n305h9qd.mjs +25 -0
- package/dist/chunks/cli-1.1.31-n4g6s1bz.mjs +2 -0
- package/dist/chunks/cli-1.1.31-n5vytp0f.mjs +2 -0
- package/dist/chunks/cli-1.1.31-nh2cfavp.mjs +2 -0
- package/dist/chunks/cli-1.1.31-njfyxwfr.mjs +2 -0
- package/dist/chunks/cli-1.1.31-nvecb8c6.mjs +2 -0
- package/dist/chunks/cli-1.1.31-nyvjx813.mjs +24 -0
- package/dist/chunks/cli-1.1.31-nyvz0ev8.mjs +5 -0
- package/dist/chunks/cli-1.1.31-p99fz46k.mjs +206 -0
- package/dist/chunks/cli-1.1.31-pb50hb6v.mjs +12 -0
- package/dist/chunks/cli-1.1.31-pg2ntz9b.mjs +17 -0
- package/dist/chunks/cli-1.1.31-pgde5349.mjs +2 -0
- package/dist/chunks/cli-1.1.31-pp98t7k8.mjs +2 -0
- package/dist/chunks/cli-1.1.31-ptvddvjv.mjs +2 -0
- package/dist/chunks/cli-1.1.31-pzz7j17y.mjs +3 -0
- package/dist/chunks/cli-1.1.31-q67trvk0.mjs +2 -0
- package/dist/chunks/cli-1.1.31-q6k8ems6.mjs +21 -0
- package/dist/chunks/cli-1.1.31-qj8vksz8.mjs +2 -0
- package/dist/chunks/cli-1.1.31-qq0sng13.mjs +2 -0
- package/dist/chunks/cli-1.1.31-qsftejzk.mjs +2 -0
- package/dist/chunks/cli-1.1.31-qv6x2hht.mjs +2 -0
- package/dist/chunks/cli-1.1.31-qyztdyg2.mjs +2 -0
- package/dist/chunks/cli-1.1.31-r5g0ns02.mjs +2 -0
- package/dist/chunks/cli-1.1.31-r7jps0tn.mjs +3 -0
- package/dist/chunks/cli-1.1.31-rqyqyvdn.mjs +2 -0
- package/dist/chunks/cli-1.1.31-rspa4dsq.mjs +6 -0
- package/dist/chunks/cli-1.1.31-rw3xn3tc.mjs +4 -0
- package/dist/chunks/cli-1.1.31-s1a6vw53.mjs +2 -0
- package/dist/chunks/cli-1.1.31-s1vgm3hb.mjs +2 -0
- package/dist/chunks/cli-1.1.31-s246tb6v.mjs +15 -0
- package/dist/chunks/cli-1.1.31-satbt91m.mjs +18 -0
- package/dist/chunks/cli-1.1.31-sc82f8hw.mjs +6 -0
- package/dist/chunks/cli-1.1.31-sn0x975f.mjs +24 -0
- package/dist/chunks/cli-1.1.31-sn2bmgwr.mjs +2 -0
- package/dist/chunks/cli-1.1.31-t2y2tkme.mjs +2 -0
- package/dist/chunks/cli-1.1.31-t6m64e0q.mjs +6 -0
- package/dist/chunks/cli-1.1.31-t96rrv1m.mjs +2 -0
- package/dist/chunks/cli-1.1.31-tc6xppyr.mjs +2 -0
- package/dist/chunks/cli-1.1.31-tctd36c8.mjs +2 -0
- package/dist/chunks/cli-1.1.31-thhdw5e1.mjs +2 -0
- package/dist/chunks/cli-1.1.31-v02fpzs5.mjs +2 -0
- package/dist/chunks/cli-1.1.31-v7nswcm8.mjs +2 -0
- package/dist/chunks/cli-1.1.31-var05xaf.mjs +2 -0
- package/dist/chunks/cli-1.1.31-vbch5rht.mjs +2 -0
- package/dist/chunks/cli-1.1.31-vf004w21.mjs +2 -0
- package/dist/chunks/cli-1.1.31-vhstdnfa.mjs +7 -0
- package/dist/chunks/cli-1.1.31-vphyv007.mjs +2 -0
- package/dist/chunks/cli-1.1.31-vpkbqj90.mjs +4 -0
- package/dist/chunks/cli-1.1.31-vr977n4j.mjs +2 -0
- package/dist/chunks/cli-1.1.31-w0vfcfhs.mjs +2 -0
- package/dist/chunks/cli-1.1.31-w225x38q.mjs +2 -0
- package/dist/chunks/cli-1.1.31-war7w6d7.mjs +2 -0
- package/dist/chunks/cli-1.1.31-wba64b2s.mjs +2 -0
- package/dist/chunks/cli-1.1.31-wfv9e9p4.mjs +2 -0
- package/dist/chunks/cli-1.1.31-wmt8ywr9.mjs +2 -0
- package/dist/chunks/cli-1.1.31-wnpf6e90.mjs +2 -0
- package/dist/chunks/cli-1.1.31-x1wr5k0p.mjs +2 -0
- package/dist/chunks/cli-1.1.31-x96s38b0.mjs +2 -0
- package/dist/chunks/cli-1.1.31-xqdypd2k.mjs +6 -0
- package/dist/chunks/cli-1.1.31-xv09f0k4.mjs +2 -0
- package/dist/chunks/cli-1.1.31-yte5f9f9.mjs +45 -0
- package/dist/chunks/cli-1.1.31-yz72mhbg.mjs +2 -0
- package/dist/chunks/cli-1.1.31-z3s1pnd3.mjs +1 -0
- package/dist/chunks/cli-1.1.31-z6qe8e42.mjs +2 -0
- package/dist/chunks/cli-1.1.31-z7hdz84q.mjs +17 -0
- package/dist/chunks/cli-1.1.31-zsjs5eq0.mjs +2 -0
- package/dist/chunks/cli-1.1.31-zvbpmw2y.mjs +2 -0
- package/dist/chunks/cli-1.1.31-zy7nrvt9.mjs +2 -0
- package/dist/chunks/cli-1.1.31-zzd4cheh.mjs +2 -0
- package/dist/chunks/client-1.1.31-3bn971t2.mjs +1 -0
- package/dist/chunks/color-1.1.31-n3q45hw4.mjs +1 -0
- package/dist/chunks/compact-1.1.31-zkekkcjq.mjs +3 -0
- package/dist/chunks/config-1.1.31-1t6yz96k.mjs +1 -0
- package/dist/chunks/config-1.1.31-enwx50r9.mjs +1 -0
- package/dist/chunks/constants-1.1.31-5peb81d1.mjs +1 -0
- package/dist/chunks/context-1.1.31-9crzemp8.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.31-twqynyp7.mjs +1 -0
- package/dist/chunks/conversation-1.1.31-yw2es9kq.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.31-axfr0ar5.mjs +1 -0
- package/dist/chunks/copy-1.1.31-y97hza01.mjs +9 -0
- package/dist/chunks/cost-1.1.31-wtp1fp62.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.31-tsfe2dea.mjs +1 -0
- package/dist/chunks/createSession-1.1.31-pddv01ds.mjs +1 -0
- package/dist/chunks/debug-1.1.31-5awffxcd.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.31-6a742vb3.mjs +1480 -0
- package/dist/chunks/desktop-1.1.31-zq54hfwy.mjs +2 -0
- package/dist/chunks/detectRepository-1.1.31-s6pe6c1x.mjs +1 -0
- package/dist/chunks/detection-1.1.31-zss1hfbq.mjs +1 -0
- package/dist/chunks/diff-1.1.31-ksj17xmk.mjs +1 -0
- package/dist/chunks/doctor-1.1.31-v4djfk2w.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.31-gs3rsn7y.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.31-s1vpzgtx.mjs +1 -0
- package/dist/chunks/effort-1.1.31-6z9vjdd8.mjs +13 -0
- package/dist/chunks/engine-1.1.31-rv1fs549.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.31-5p5f4zyz.mjs +1 -0
- package/dist/chunks/envUtils-1.1.31-ntcm9cr0.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.31-hh2weytc.mjs +1 -0
- package/dist/chunks/environments-1.1.31-yvgyx900.mjs +1 -0
- package/dist/chunks/errors-1.1.31-n434b94a.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.31-gntd6p22.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.31-s2n0jxqw.mjs +1 -0
- package/dist/chunks/exit-1.1.31-rgrjhztt.mjs +1 -0
- package/dist/chunks/explorer-1.1.31-cyken2c0.mjs +1 -0
- package/dist/chunks/export-1.1.31-nmjy9qp1.mjs +2 -0
- package/dist/chunks/fast-1.1.31-58c4aeze.mjs +1 -0
- package/dist/chunks/feedback-1.1.31-m0vj61dd.mjs +16 -0
- package/dist/chunks/git-1.1.31-9ytjvad9.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.31-7pk651pz.mjs +1 -0
- package/dist/chunks/goal-1.1.31-2a9eh1dv.mjs +4 -0
- package/dist/chunks/headless-1.1.31-btcvy308.mjs +2 -0
- package/dist/chunks/heapdump-1.1.31-3d2namke.mjs +6 -0
- package/dist/chunks/help-1.1.31-sewrb4nb.mjs +1 -0
- package/dist/chunks/hookChains-1.1.31-72mrrs9j.mjs +3 -0
- package/dist/chunks/hooks-1.1.31-0gf2fwcn.mjs +1 -0
- package/dist/chunks/hooks-1.1.31-t1v6dwz6.mjs +79 -0
- package/dist/chunks/ide-1.1.31-rfvpxf98.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.31-6m3111th.mjs +1 -0
- package/dist/chunks/import-1.1.31-n4khxgen.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.31-js74nw49.mjs +1 -0
- package/dist/chunks/index-1.1.31-1d2w0stv.mjs +1 -0
- package/dist/chunks/index-1.1.31-7xyvb71n.mjs +1 -0
- package/dist/chunks/index-1.1.31-b35axgfq.mjs +1 -0
- package/dist/chunks/index-1.1.31-bb3ds6px.mjs +5 -0
- package/dist/chunks/index-1.1.31-d8kmfk8g.mjs +1 -0
- package/dist/chunks/index-1.1.31-djqjbcj1.mjs +1 -0
- package/dist/chunks/index-1.1.31-fbcpgjqr.mjs +1 -0
- package/dist/chunks/index-1.1.31-fzj8sx04.mjs +1 -0
- package/dist/chunks/index-1.1.31-h4jmtajm.mjs +9 -0
- package/dist/chunks/index-1.1.31-hxatxhrm.mjs +1 -0
- package/dist/chunks/index-1.1.31-jjp83m1j.mjs +1 -0
- package/dist/chunks/index-1.1.31-jk9pvxkr.mjs +1 -0
- package/dist/chunks/index-1.1.31-jy33bsc3.mjs +2 -0
- package/dist/chunks/index-1.1.31-kdnrzq4a.mjs +1 -0
- package/dist/chunks/index-1.1.31-kv3bfsq2.mjs +23 -0
- package/dist/chunks/index-1.1.31-mxjtqbfj.mjs +1 -0
- package/dist/chunks/index-1.1.31-p8xpgawg.mjs +1 -0
- package/dist/chunks/index-1.1.31-phw15bz8.mjs +1 -0
- package/dist/chunks/index-1.1.31-pr2zcv22.mjs +30 -0
- package/dist/chunks/index-1.1.31-q75y58jp.mjs +2 -0
- package/dist/chunks/index-1.1.31-qhsyqcg4.mjs +1 -0
- package/dist/chunks/index-1.1.31-tzvhzkcd.mjs +1 -0
- package/dist/chunks/index-1.1.31-wgdk68t3.mjs +9 -0
- package/dist/chunks/init-1.1.31-4ayzds5h.mjs +2 -0
- package/dist/chunks/initReplBridge-1.1.31-ebns690c.mjs +1 -0
- package/dist/chunks/ink-1.1.31-rx0229yp.mjs +1 -0
- package/dist/chunks/insights-1.1.31-t8z4k64x.mjs +870 -0
- package/dist/chunks/install-1.1.31-fvw0rbqj.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.31-zmtxtda9.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.31-j04t1paw.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.31-xq2br8z8.mjs +1 -0
- package/dist/chunks/keybindings-1.1.31-a0dfh2gb.mjs +2 -0
- package/dist/chunks/knowledge-1.1.31-g087p4dy.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.31-vyesmh7x.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.31-39mbd67g.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.31-7pnfkxj8.mjs +1 -0
- package/dist/chunks/log-1.1.31-75wjvmg7.mjs +1 -0
- package/dist/chunks/main-1.1.31-htavj2vh.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.31-3t5j20s3.mjs +1 -0
- package/dist/chunks/mcp-1.1.31-g8q13cfk.mjs +1 -0
- package/dist/chunks/mcp-1.1.31-gnbrx51d.mjs +17 -0
- package/dist/chunks/mcp-1.1.31-tb2yw0fm.mjs +4 -0
- package/dist/chunks/mcpb-1.1.31-an4y7m57.mjs +1 -0
- package/dist/chunks/memory-1.1.31-6ebsap62.mjs +77 -0
- package/dist/chunks/model-1.1.31-dfs178qb.mjs +1 -0
- package/dist/chunks/model-1.1.31-yjsxjv0f.mjs +2 -0
- package/dist/chunks/node-1.1.31-4gqzhhpj.mjs +15 -0
- package/dist/chunks/node-1.1.31-bknsrjhq.mjs +1 -0
- package/dist/chunks/oauth-1.1.31-0dfgbykp.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.31-bx5cgqc0.mjs +14 -0
- package/dist/chunks/output-style-1.1.31-fqg3pscb.mjs +1 -0
- package/dist/chunks/package-D2QZMRW7-1.1.31-tbwnz9re.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.31-htt07xve.mjs +1 -0
- package/dist/chunks/parser-1.1.31-22dqq9cd.mjs +1 -0
- package/dist/chunks/permissions-1.1.31-2jt71rmf.mjs +1 -0
- package/dist/chunks/permissions-1.1.31-8eevgx6v.mjs +3 -0
- package/dist/chunks/plan-1.1.31-sgds3thc.mjs +1 -0
- package/dist/chunks/plist-1.1.31-50ff60z2.mjs +1 -0
- package/dist/chunks/plugin-1.1.31-j5n91qc0.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.31-28rvz0zj.mjs +1 -0
- package/dist/chunks/plugins-1.1.31-cq05wg0h.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.31-xmrm67ge.mjs +2 -0
- package/dist/chunks/print-1.1.31-4n5d0cdk.mjs +57 -0
- package/dist/chunks/process-1.1.31-7c3jtep7.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.31-ycb3ehgr.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.31-0bwjc7n4.mjs +9 -0
- package/dist/chunks/prompt-1.1.31-1krmkgep.mjs +1 -0
- package/dist/chunks/prompt-1.1.31-vsft6hz3.mjs +1 -0
- package/dist/chunks/prompts-1.1.31-jp2k44tp.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.31-yc5dejjn.mjs +13 -0
- package/dist/chunks/provider-1.1.31-sba30ytt.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.31-8g3p4ntd.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.31-rnj0xtqw.mjs +6 -0
- package/dist/chunks/registerSubcommands-1.1.31-rtx2e9wp.mjs +26 -0
- package/dist/chunks/registry-1.1.31-ecyhakd2.mjs +1 -0
- package/dist/chunks/release-notes-1.1.31-gf017wax.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.31-de7agwmx.mjs +2 -0
- package/dist/chunks/remote-env-1.1.31-x3aaeh2d.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.31-37k3bw33.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.31-tkas2k4z.mjs +1 -0
- package/dist/chunks/rename-1.1.31-4q58stc8.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.31-64getkgv.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.31-0n74v295.mjs +1 -0
- package/dist/chunks/resume-1.1.31-btzfzzf4.mjs +2 -0
- package/dist/chunks/rewind-1.1.31-9m2a508m.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.31-bftj813f.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.31-tra2r0dx.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.31-6nyy2rag.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.31-h1n35f5k.mjs +1 -0
- package/dist/chunks/session-1.1.31-xb800b9s.mjs +2 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.31-gkkyesrj.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.31-s7gez2t6.mjs +1 -0
- package/dist/chunks/settings-1.1.31-w7zfpg83.mjs +1 -0
- package/dist/chunks/setup-1.1.31-b6kjgetf.mjs +12 -0
- package/dist/chunks/sinks-1.1.31-g9n7r1nh.mjs +1 -0
- package/dist/chunks/skills-1.1.31-ag9r3asv.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.31-h19httmy.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.31-f3g7de65.mjs +1 -0
- package/dist/chunks/state-1.1.31-tbc1c6c2.mjs +1 -0
- package/dist/chunks/stats-1.1.31-71xjrkax.mjs +1 -0
- package/dist/chunks/status-1.1.31-n65g11nc.mjs +1 -0
- package/dist/chunks/stickers-1.1.31-eze0atpf.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.31-r788gbdf.mjs +1 -0
- package/dist/chunks/tasks-1.1.31-tbc0x51m.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.31-yt18sjr2.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.31-f3bgkc7m.mjs +1 -0
- package/dist/chunks/teleport-1.1.31-4mvcqr5j.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.31-y574v0gj.mjs +1 -0
- package/dist/chunks/theme-1.1.31-2nth8fxb.mjs +1 -0
- package/dist/chunks/thinkback-1.1.31-yt5309kx.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.31-n61vtr8q.mjs +1 -0
- package/dist/chunks/toolPool-1.1.31-2wrjcf13.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.31-vr7hen30.mjs +1 -0
- package/dist/chunks/tools-1.1.31-xgrxwk7j.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.31-ad2f2kvj.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.31-mtgg85tg.mjs +69 -0
- package/dist/chunks/types-1.1.31-ery244ea.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.31-fs3fn2qp.mjs +4 -0
- package/dist/chunks/update-1.1.31-j79f7es2.mjs +72 -0
- package/dist/chunks/upload-1.1.31-ehqzz7x7.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.31-z70ctdj3.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.31-e0hbcnyw.mjs +1 -0
- package/dist/chunks/usage-1.1.31-qgmy1ktr.mjs +1 -0
- package/dist/chunks/util-1.1.31-jy81jvt3.mjs +1 -0
- package/dist/chunks/utils-1.1.31-3jpj59nn.mjs +1 -0
- package/dist/chunks/vim-1.1.31-wbbckx93.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.31-v994wq2d.mjs +13 -0
- package/dist/chunks/watcher-1.1.31-zr0darq0.mjs +1 -0
- package/dist/chunks/wiki-1.1.31-7gcn31zm.mjs +132 -0
- package/dist/chunks/workflows-1.1.31-ek8twhyg.mjs +1 -0
- package/dist/chunks/worktree-1.1.31-krxr11er.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.31-m3t752mj.mjs +1 -0
- package/dist/chunks/wrapper-1.1.31-037s1v4h.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.30-3wq8zzaa.mjs +0 -1
- package/dist/chunks/App-1.1.30-ywb53g2c.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.30-wtpe9n8e.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.30-776xks64.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.30-bjm91hx0.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.30-rcy7msd9.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.30-bexsqxcb.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.30-jfhq3h4z.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.30-kqds97f2.mjs +0 -6
- package/dist/chunks/Doctor-1.1.30-48qzfckm.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.30-tfv4wc5m.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.30-z31ecx5v.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.30-f17w1kzx.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.30-fzajgngq.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.30-15c4h452.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.30-xajg2p3r.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.30-8jrhxd1r.mjs +0 -1
- package/dist/chunks/REPL-1.1.30-74pzzw1d.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.30-8bmshptz.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.30-v5fnwt30.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.30-v55nsv7g.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.30-2hg56v1b.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.30-r2hwd3a6.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.30-y6hny4s2.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.30-cq18pvam.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.30-qp3cr0fk.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.30-ydaqb760.mjs +0 -1
- package/dist/chunks/add-dir-1.1.30-gta8twv0.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.30-rxcmv28v.mjs +0 -1
- package/dist/chunks/agents-1.1.30-d5hxfnnt.mjs +0 -3
- package/dist/chunks/agents-1.1.30-q3f25044.mjs +0 -110
- package/dist/chunks/api-1.1.30-30hng0e4.mjs +0 -1
- package/dist/chunks/asciicast-1.1.30-mhcedd5b.mjs +0 -1
- package/dist/chunks/assistant-1.1.30-1zxsr09t.mjs +0 -1
- package/dist/chunks/auth-1.1.30-mmymct98.mjs +0 -1
- package/dist/chunks/auth-1.1.30-ntfwzwxz.mjs +0 -1
- package/dist/chunks/autoMode-1.1.30-9jd1avyj.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.30-8cnp296z.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.30-f0wbf5ha.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.30-b7t4y9th.mjs +0 -1
- package/dist/chunks/branch-1.1.30-x77nhthz.mjs +0 -4
- package/dist/chunks/bridge-1.1.30-scfmh172.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.30-8hd92b6p.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.30-n5c6p8kd.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.30-9cpc29zx.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.30-gsa0eerc.mjs +0 -1
- package/dist/chunks/btw-1.1.30-gyh84rd1.mjs +0 -1
- package/dist/chunks/buddy-1.1.30-vzfs4xt1.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.30-qjppzj5p.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.30-w1c0ekr4.mjs +0 -4
- package/dist/chunks/caches-1.1.30-6rye5cdg.mjs +0 -1
- package/dist/chunks/cd-1.1.30-tn402589.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.30-sm5ncwqz.mjs +0 -1
- package/dist/chunks/claudemd-1.1.30-36eyf63s.mjs +0 -1
- package/dist/chunks/clear-1.1.30-p5p9kp96.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.30-nrdembs6.mjs +0 -1
- package/dist/chunks/cli-1.1.30-053d5ph7.mjs +0 -2
- package/dist/chunks/cli-1.1.30-092dkm0p.mjs +0 -2
- package/dist/chunks/cli-1.1.30-0e0e9msg.mjs +0 -17
- package/dist/chunks/cli-1.1.30-0fz758j0.mjs +0 -2
- package/dist/chunks/cli-1.1.30-0qcyzbs1.mjs +0 -2
- package/dist/chunks/cli-1.1.30-0yafp3ky.mjs +0 -2
- package/dist/chunks/cli-1.1.30-1j4dyr5r.mjs +0 -2
- package/dist/chunks/cli-1.1.30-1k2bwved.mjs +0 -3
- package/dist/chunks/cli-1.1.30-1qczaqkt.mjs +0 -2
- package/dist/chunks/cli-1.1.30-1wfffyq2.mjs +0 -2
- package/dist/chunks/cli-1.1.30-1xmhk219.mjs +0 -2
- package/dist/chunks/cli-1.1.30-1ybfyckn.mjs +0 -2
- package/dist/chunks/cli-1.1.30-1zsgv3yp.mjs +0 -2
- package/dist/chunks/cli-1.1.30-2af3eeg6.mjs +0 -2
- package/dist/chunks/cli-1.1.30-2cmsx74f.mjs +0 -26
- package/dist/chunks/cli-1.1.30-2hw4vdpg.mjs +0 -2
- package/dist/chunks/cli-1.1.30-2pqs37e0.mjs +0 -3
- package/dist/chunks/cli-1.1.30-2y4yj9sd.mjs +0 -2
- package/dist/chunks/cli-1.1.30-2yd2af56.mjs +0 -50
- package/dist/chunks/cli-1.1.30-2zq3aea6.mjs +0 -2
- package/dist/chunks/cli-1.1.30-322advqh.mjs +0 -4
- package/dist/chunks/cli-1.1.30-3b1nw95m.mjs +0 -2
- package/dist/chunks/cli-1.1.30-3c6j35rs.mjs +0 -2
- package/dist/chunks/cli-1.1.30-3x86c2pa.mjs +0 -24
- package/dist/chunks/cli-1.1.30-489cr054.mjs +0 -2
- package/dist/chunks/cli-1.1.30-4d90v0pd.mjs +0 -6
- package/dist/chunks/cli-1.1.30-4kytbyxq.mjs +0 -15
- package/dist/chunks/cli-1.1.30-4t03vay7.mjs +0 -2
- package/dist/chunks/cli-1.1.30-4wqfr0ya.mjs +0 -2
- package/dist/chunks/cli-1.1.30-4zrfbe17.mjs +0 -2
- package/dist/chunks/cli-1.1.30-51kze0eh.mjs +0 -2
- package/dist/chunks/cli-1.1.30-569esepc.mjs +0 -60
- package/dist/chunks/cli-1.1.30-57b410qh.mjs +0 -25
- package/dist/chunks/cli-1.1.30-5cc6nada.mjs +0 -2
- package/dist/chunks/cli-1.1.30-5f76gnk2.mjs +0 -2
- package/dist/chunks/cli-1.1.30-5j2mdj81.mjs +0 -2
- package/dist/chunks/cli-1.1.30-5pn20fxz.mjs +0 -2
- package/dist/chunks/cli-1.1.30-5r9pakw5.mjs +0 -2
- package/dist/chunks/cli-1.1.30-63ndyxgm.mjs +0 -2
- package/dist/chunks/cli-1.1.30-6eaj3n76.mjs +0 -9
- package/dist/chunks/cli-1.1.30-6phpx599.mjs +0 -2
- package/dist/chunks/cli-1.1.30-6pp4z5px.mjs +0 -2
- package/dist/chunks/cli-1.1.30-7a064pfm.mjs +0 -2
- package/dist/chunks/cli-1.1.30-7bdj31x8.mjs +0 -2
- package/dist/chunks/cli-1.1.30-7dtpd1ra.mjs +0 -2
- package/dist/chunks/cli-1.1.30-7h45a0x6.mjs +0 -6
- package/dist/chunks/cli-1.1.30-7ma427qh.mjs +0 -8
- package/dist/chunks/cli-1.1.30-7q8f7mp7.mjs +0 -2
- package/dist/chunks/cli-1.1.30-84cemtwn.mjs +0 -4
- package/dist/chunks/cli-1.1.30-87zsgch6.mjs +0 -21
- package/dist/chunks/cli-1.1.30-8a5gwcde.mjs +0 -2
- package/dist/chunks/cli-1.1.30-8e36e2c1.mjs +0 -2
- package/dist/chunks/cli-1.1.30-8hcc4gax.mjs +0 -15
- package/dist/chunks/cli-1.1.30-8t3c3a4k.mjs +0 -20
- package/dist/chunks/cli-1.1.30-8vr9ea9g.mjs +0 -2
- package/dist/chunks/cli-1.1.30-8zyep40e.mjs +0 -2
- package/dist/chunks/cli-1.1.30-902jyjpx.mjs +0 -2
- package/dist/chunks/cli-1.1.30-917y0q4m.mjs +0 -2
- package/dist/chunks/cli-1.1.30-92t0b3hs.mjs +0 -2
- package/dist/chunks/cli-1.1.30-94vhzqcd.mjs +0 -2
- package/dist/chunks/cli-1.1.30-9685r12p.mjs +0 -2
- package/dist/chunks/cli-1.1.30-9h8mm4pg.mjs +0 -2
- package/dist/chunks/cli-1.1.30-9m8jc7as.mjs +0 -4
- package/dist/chunks/cli-1.1.30-9rn8qz9x.mjs +0 -2
- package/dist/chunks/cli-1.1.30-9s9qp1m7.mjs +0 -2
- package/dist/chunks/cli-1.1.30-a1phf5vm.mjs +0 -2
- package/dist/chunks/cli-1.1.30-a2ww16zh.mjs +0 -2
- package/dist/chunks/cli-1.1.30-a2xctbvc.mjs +0 -18
- package/dist/chunks/cli-1.1.30-amecp2v0.mjs +0 -3
- package/dist/chunks/cli-1.1.30-aqvjv0jh.mjs +0 -4
- package/dist/chunks/cli-1.1.30-aw93z4yt.mjs +0 -2
- package/dist/chunks/cli-1.1.30-b1mqmct7.mjs +0 -4
- package/dist/chunks/cli-1.1.30-bfqnz691.mjs +0 -2
- package/dist/chunks/cli-1.1.30-bgrp9j3q.mjs +0 -2
- package/dist/chunks/cli-1.1.30-bwdw42tf.mjs +0 -24
- package/dist/chunks/cli-1.1.30-bzjamz5p.mjs +0 -2
- package/dist/chunks/cli-1.1.30-c0b5kmhr.mjs +0 -2
- package/dist/chunks/cli-1.1.30-c2e2yeaj.mjs +0 -2
- package/dist/chunks/cli-1.1.30-c44kpd39.mjs +0 -2
- package/dist/chunks/cli-1.1.30-c70p43p6.mjs +0 -133
- package/dist/chunks/cli-1.1.30-c9xtenrd.mjs +0 -2
- package/dist/chunks/cli-1.1.30-ca1a9ntm.mjs +0 -2
- package/dist/chunks/cli-1.1.30-cb34mrvh.mjs +0 -2
- package/dist/chunks/cli-1.1.30-cgcdnarw.mjs +0 -2
- package/dist/chunks/cli-1.1.30-cjetc80p.mjs +0 -2
- package/dist/chunks/cli-1.1.30-cwc68erm.mjs +0 -2
- package/dist/chunks/cli-1.1.30-d3n6dp6r.mjs +0 -2
- package/dist/chunks/cli-1.1.30-d8chymja.mjs +0 -2
- package/dist/chunks/cli-1.1.30-d9sphwgb.mjs +0 -3
- package/dist/chunks/cli-1.1.30-dbbhdfn1.mjs +0 -2
- package/dist/chunks/cli-1.1.30-dv38qw87.mjs +0 -3
- package/dist/chunks/cli-1.1.30-dy1jvt4f.mjs +0 -2
- package/dist/chunks/cli-1.1.30-e0fcx44n.mjs +0 -2
- package/dist/chunks/cli-1.1.30-e15hq24m.mjs +0 -2
- package/dist/chunks/cli-1.1.30-eg5krttf.mjs +0 -2
- package/dist/chunks/cli-1.1.30-ehk76t59.mjs +0 -2
- package/dist/chunks/cli-1.1.30-em031y3s.mjs +0 -2
- package/dist/chunks/cli-1.1.30-endh0hmx.mjs +0 -2
- package/dist/chunks/cli-1.1.30-ensp6hjk.mjs +0 -2
- package/dist/chunks/cli-1.1.30-erqva8zn.mjs +0 -2
- package/dist/chunks/cli-1.1.30-etnn22zf.mjs +0 -2
- package/dist/chunks/cli-1.1.30-f6tarbyn.mjs +0 -2
- package/dist/chunks/cli-1.1.30-f8qnd0hw.mjs +0 -20
- package/dist/chunks/cli-1.1.30-f9cckkn6.mjs +0 -7
- package/dist/chunks/cli-1.1.30-f9tp1b8r.mjs +0 -6
- package/dist/chunks/cli-1.1.30-fa5djn9v.mjs +0 -2
- package/dist/chunks/cli-1.1.30-facztg9n.mjs +0 -133
- package/dist/chunks/cli-1.1.30-fct5wt67.mjs +0 -2
- package/dist/chunks/cli-1.1.30-fm4mj7wy.mjs +0 -2
- package/dist/chunks/cli-1.1.30-fpa799y4.mjs +0 -3
- package/dist/chunks/cli-1.1.30-fzan6qjf.mjs +0 -2
- package/dist/chunks/cli-1.1.30-g17zgmea.mjs +0 -3
- package/dist/chunks/cli-1.1.30-g3qd3ec3.mjs +0 -2
- package/dist/chunks/cli-1.1.30-g4c9mx6r.mjs +0 -2
- package/dist/chunks/cli-1.1.30-g9qsgq1r.mjs +0 -2
- package/dist/chunks/cli-1.1.30-gdmbygdz.mjs +0 -2
- package/dist/chunks/cli-1.1.30-gev0f31f.mjs +0 -24
- package/dist/chunks/cli-1.1.30-gk8x7f6m.mjs +0 -2
- package/dist/chunks/cli-1.1.30-gncy6j5b.mjs +0 -2
- package/dist/chunks/cli-1.1.30-gv4z21b9.mjs +0 -4
- package/dist/chunks/cli-1.1.30-gvp1pabq.mjs +0 -2
- package/dist/chunks/cli-1.1.30-h5yj1axw.mjs +0 -6
- package/dist/chunks/cli-1.1.30-h9pfkdf2.mjs +0 -2
- package/dist/chunks/cli-1.1.30-ha9qd4n4.mjs +0 -2
- package/dist/chunks/cli-1.1.30-he73pyqy.mjs +0 -2
- package/dist/chunks/cli-1.1.30-hncb22wm.mjs +0 -2
- package/dist/chunks/cli-1.1.30-hxy861gq.mjs +0 -2
- package/dist/chunks/cli-1.1.30-j29r8pgr.mjs +0 -4
- package/dist/chunks/cli-1.1.30-j2wahkcp.mjs +0 -6
- package/dist/chunks/cli-1.1.30-j46p2me4.mjs +0 -3
- package/dist/chunks/cli-1.1.30-jb34rbbt.mjs +0 -7
- package/dist/chunks/cli-1.1.30-jevxd0jk.mjs +0 -2
- package/dist/chunks/cli-1.1.30-jgxnrbme.mjs +0 -2
- package/dist/chunks/cli-1.1.30-jvqc1jfc.mjs +0 -2
- package/dist/chunks/cli-1.1.30-jyvb3jrk.mjs +0 -3
- package/dist/chunks/cli-1.1.30-kx2svwf6.mjs +0 -2
- package/dist/chunks/cli-1.1.30-kzbhw1mf.mjs +0 -2
- package/dist/chunks/cli-1.1.30-m5fx6y02.mjs +0 -2
- package/dist/chunks/cli-1.1.30-m5ta5zwh.mjs +0 -2
- package/dist/chunks/cli-1.1.30-m62yy9h8.mjs +0 -2
- package/dist/chunks/cli-1.1.30-mebteknr.mjs +0 -206
- package/dist/chunks/cli-1.1.30-mef66hvr.mjs +0 -10
- package/dist/chunks/cli-1.1.30-mgj06132.mjs +0 -2
- package/dist/chunks/cli-1.1.30-mpmg84pk.mjs +0 -3
- package/dist/chunks/cli-1.1.30-mz5a585j.mjs +0 -9
- package/dist/chunks/cli-1.1.30-n306djbd.mjs +0 -2
- package/dist/chunks/cli-1.1.30-naaxghkh.mjs +0 -2
- package/dist/chunks/cli-1.1.30-nhfsct38.mjs +0 -2
- package/dist/chunks/cli-1.1.30-p3m6d618.mjs +0 -2
- package/dist/chunks/cli-1.1.30-p63h2njx.mjs +0 -42
- package/dist/chunks/cli-1.1.30-p6bsj13y.mjs +0 -2
- package/dist/chunks/cli-1.1.30-pc2wp50b.mjs +0 -5504
- package/dist/chunks/cli-1.1.30-pc6nevmd.mjs +0 -2
- package/dist/chunks/cli-1.1.30-pez1sh7w.mjs +0 -2
- package/dist/chunks/cli-1.1.30-pg6jbgcq.mjs +0 -12
- package/dist/chunks/cli-1.1.30-pgx35gqd.mjs +0 -2
- package/dist/chunks/cli-1.1.30-pw08jvvr.mjs +0 -3
- package/dist/chunks/cli-1.1.30-pzp496y6.mjs +0 -2
- package/dist/chunks/cli-1.1.30-q00wdmf9.mjs +0 -2
- package/dist/chunks/cli-1.1.30-q51sf5gk.mjs +0 -2
- package/dist/chunks/cli-1.1.30-q8sd13v9.mjs +0 -2
- package/dist/chunks/cli-1.1.30-q8xgmv1x.mjs +0 -39
- package/dist/chunks/cli-1.1.30-qcwzchrc.mjs +0 -2
- package/dist/chunks/cli-1.1.30-qdnzwgr7.mjs +0 -2
- package/dist/chunks/cli-1.1.30-qjdmnkfj.mjs +0 -2
- package/dist/chunks/cli-1.1.30-qm4vn98q.mjs +0 -2
- package/dist/chunks/cli-1.1.30-qn71nvqn.mjs +0 -2
- package/dist/chunks/cli-1.1.30-qykdr3bk.mjs +0 -2
- package/dist/chunks/cli-1.1.30-r4ap6bq3.mjs +0 -4
- package/dist/chunks/cli-1.1.30-rdbwn1xc.mjs +0 -2
- package/dist/chunks/cli-1.1.30-rdgv4qpw.mjs +0 -2
- package/dist/chunks/cli-1.1.30-s27erhy7.mjs +0 -2
- package/dist/chunks/cli-1.1.30-s2b0zbj0.mjs +0 -1
- package/dist/chunks/cli-1.1.30-s7f7x42j.mjs +0 -2
- package/dist/chunks/cli-1.1.30-sdxgwxfm.mjs +0 -2
- package/dist/chunks/cli-1.1.30-sgm7bcet.mjs +0 -58
- package/dist/chunks/cli-1.1.30-sr3wnzt7.mjs +0 -17
- package/dist/chunks/cli-1.1.30-syea4bx7.mjs +0 -2
- package/dist/chunks/cli-1.1.30-t27wxks6.mjs +0 -6
- package/dist/chunks/cli-1.1.30-tc8vq728.mjs +0 -15
- package/dist/chunks/cli-1.1.30-tcz89gqa.mjs +0 -2
- package/dist/chunks/cli-1.1.30-tt85hxby.mjs +0 -25
- package/dist/chunks/cli-1.1.30-ty0pw373.mjs +0 -24
- package/dist/chunks/cli-1.1.30-vcexen3n.mjs +0 -2
- package/dist/chunks/cli-1.1.30-vda14n5e.mjs +0 -2
- package/dist/chunks/cli-1.1.30-vf6wrqmh.mjs +0 -2
- package/dist/chunks/cli-1.1.30-vhh5kt6v.mjs +0 -2
- package/dist/chunks/cli-1.1.30-vrgnzjd2.mjs +0 -2
- package/dist/chunks/cli-1.1.30-w9wdamqc.mjs +0 -34
- package/dist/chunks/cli-1.1.30-wfs29rd9.mjs +0 -12
- package/dist/chunks/cli-1.1.30-wgmdrp34.mjs +0 -2
- package/dist/chunks/cli-1.1.30-wjx6yhry.mjs +0 -2
- package/dist/chunks/cli-1.1.30-wmpgbhw0.mjs +0 -16
- package/dist/chunks/cli-1.1.30-x76str7r.mjs +0 -3
- package/dist/chunks/cli-1.1.30-x8wzmxay.mjs +0 -2
- package/dist/chunks/cli-1.1.30-x960htw5.mjs +0 -2
- package/dist/chunks/cli-1.1.30-xhk0n48x.mjs +0 -2
- package/dist/chunks/cli-1.1.30-xqb55m51.mjs +0 -2
- package/dist/chunks/cli-1.1.30-xrrzhx6s.mjs +0 -5
- package/dist/chunks/cli-1.1.30-xxvagrpc.mjs +0 -2
- package/dist/chunks/cli-1.1.30-y1pn2vb5.mjs +0 -2
- package/dist/chunks/cli-1.1.30-ycv7a9hg.mjs +0 -2
- package/dist/chunks/cli-1.1.30-ygdwz4ed.mjs +0 -4
- package/dist/chunks/cli-1.1.30-yt59tc1t.mjs +0 -2
- package/dist/chunks/cli-1.1.30-yw5qpt76.mjs +0 -2
- package/dist/chunks/cli-1.1.30-yy92v8yq.mjs +0 -63
- package/dist/chunks/cli-1.1.30-z1e7k65a.mjs +0 -5
- package/dist/chunks/cli-1.1.30-z9xfs5zq.mjs +0 -2
- package/dist/chunks/cli-1.1.30-zfz29t3v.mjs +0 -3
- package/dist/chunks/cli-1.1.30-zj3nk96z.mjs +0 -2
- package/dist/chunks/cli-1.1.30-zm2e2zvb.mjs +0 -2
- package/dist/chunks/cli-1.1.30-zpss0nht.mjs +0 -3
- package/dist/chunks/cli-1.1.30-zxkfqcvj.mjs +0 -2
- package/dist/chunks/cli-1.1.30-zych8w4z.mjs +0 -45
- package/dist/chunks/client-1.1.30-6xd07jrd.mjs +0 -1
- package/dist/chunks/color-1.1.30-yhxh49s0.mjs +0 -1
- package/dist/chunks/compact-1.1.30-wxxb111z.mjs +0 -3
- package/dist/chunks/config-1.1.30-4gdp5w7v.mjs +0 -1
- package/dist/chunks/config-1.1.30-s02sv9vf.mjs +0 -1
- package/dist/chunks/constants-1.1.30-g1xm727k.mjs +0 -1
- package/dist/chunks/context-1.1.30-pepgc836.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.30-ahdmm09h.mjs +0 -1
- package/dist/chunks/conversation-1.1.30-93marv3a.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.30-ypx3j03s.mjs +0 -1
- package/dist/chunks/copy-1.1.30-bsfx33za.mjs +0 -9
- package/dist/chunks/cost-1.1.30-rhgx2a0h.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.30-p5qve4c1.mjs +0 -1
- package/dist/chunks/createSession-1.1.30-rwvvv9na.mjs +0 -1
- package/dist/chunks/debug-1.1.30-j1zw0q5b.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.30-5gkcnqp5.mjs +0 -1481
- package/dist/chunks/desktop-1.1.30-rwbfgek7.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.30-2xwvggy6.mjs +0 -1
- package/dist/chunks/detection-1.1.30-kkar89w6.mjs +0 -1
- package/dist/chunks/diff-1.1.30-t1r0x9g4.mjs +0 -1
- package/dist/chunks/doctor-1.1.30-cvqts45f.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.30-smg0046q.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.30-cpx4e858.mjs +0 -1
- package/dist/chunks/effort-1.1.30-jdxyeqz7.mjs +0 -13
- package/dist/chunks/engine-1.1.30-8qhtasfe.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.30-jnz4sy6x.mjs +0 -1
- package/dist/chunks/envUtils-1.1.30-y5dyaydm.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.30-w1z47qad.mjs +0 -1
- package/dist/chunks/environments-1.1.30-sjscvfn9.mjs +0 -1
- package/dist/chunks/errors-1.1.30-7cmbc98j.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.30-jx9hvt2q.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.30-dqrsra7k.mjs +0 -1
- package/dist/chunks/exit-1.1.30-m2yzbcth.mjs +0 -1
- package/dist/chunks/explorer-1.1.30-5tat30es.mjs +0 -1
- package/dist/chunks/export-1.1.30-545a0v8x.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.30-5k9b4t6b.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.30-h5fqbtg3.mjs +0 -1
- package/dist/chunks/fast-1.1.30-91wr1vy4.mjs +0 -1
- package/dist/chunks/feedback-1.1.30-36xrb399.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.30-be1ke8r3.mjs +0 -1
- package/dist/chunks/git-1.1.30-sxa8xf85.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.30-m7a8kdwg.mjs +0 -1
- package/dist/chunks/goal-1.1.30-71sj2735.mjs +0 -4
- package/dist/chunks/growthbook-1.1.30-rx44zvrq.mjs +0 -1
- package/dist/chunks/headless-1.1.30-h98t9mfb.mjs +0 -2
- package/dist/chunks/heapdump-1.1.30-82m1rvjw.mjs +0 -6
- package/dist/chunks/help-1.1.30-vnsg1001.mjs +0 -1
- package/dist/chunks/hookChains-1.1.30-tc5ff3xr.mjs +0 -3
- package/dist/chunks/hooks-1.1.30-2sctf45c.mjs +0 -79
- package/dist/chunks/hooks-1.1.30-707b390t.mjs +0 -1
- package/dist/chunks/ide-1.1.30-e8neepsj.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.30-gcqgfeec.mjs +0 -1
- package/dist/chunks/import-1.1.30-g0p9rj63.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.30-a5p4ftqg.mjs +0 -1
- package/dist/chunks/index-1.1.30-00d73fwg.mjs +0 -1
- package/dist/chunks/index-1.1.30-0sdck5q1.mjs +0 -9
- package/dist/chunks/index-1.1.30-38597fv3.mjs +0 -5
- package/dist/chunks/index-1.1.30-3z58evcj.mjs +0 -1
- package/dist/chunks/index-1.1.30-5k081eyt.mjs +0 -1
- package/dist/chunks/index-1.1.30-8n15b4e3.mjs +0 -2
- package/dist/chunks/index-1.1.30-9nx8fm72.mjs +0 -1
- package/dist/chunks/index-1.1.30-9zfyk995.mjs +0 -23
- package/dist/chunks/index-1.1.30-ba27qy75.mjs +0 -1
- package/dist/chunks/index-1.1.30-cddndqaa.mjs +0 -1
- package/dist/chunks/index-1.1.30-cnbcr7zp.mjs +0 -1
- package/dist/chunks/index-1.1.30-f65yg5kz.mjs +0 -9
- package/dist/chunks/index-1.1.30-fwvhky1a.mjs +0 -1
- package/dist/chunks/index-1.1.30-hmnpjmd5.mjs +0 -1
- package/dist/chunks/index-1.1.30-nemv1gaj.mjs +0 -1
- package/dist/chunks/index-1.1.30-pnpy7v0s.mjs +0 -1
- package/dist/chunks/index-1.1.30-q4x054c8.mjs +0 -2
- package/dist/chunks/index-1.1.30-racdqjba.mjs +0 -1
- package/dist/chunks/index-1.1.30-scb66j47.mjs +0 -1
- package/dist/chunks/index-1.1.30-tfz6950h.mjs +0 -30
- package/dist/chunks/index-1.1.30-tx381qq5.mjs +0 -1
- package/dist/chunks/index-1.1.30-w4zhj1qd.mjs +0 -1
- package/dist/chunks/index-1.1.30-xxh224ea.mjs +0 -1
- package/dist/chunks/init-1.1.30-txzpz2vm.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.30-hkrhwfr3.mjs +0 -1
- package/dist/chunks/ink-1.1.30-av1t4b54.mjs +0 -1
- package/dist/chunks/insights-1.1.30-nbs0zndp.mjs +0 -870
- package/dist/chunks/install-1.1.30-kd3vnaat.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.30-ea78ytf6.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.30-v2q1py01.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.30-20686d7h.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.30-rd0zzjyp.mjs +0 -1
- package/dist/chunks/keybindings-1.1.30-157aap7w.mjs +0 -2
- package/dist/chunks/knowledge-1.1.30-4mcx1txk.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.30-65qvjpys.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.30-nfrca2zv.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.30-wa8regkc.mjs +0 -1
- package/dist/chunks/log-1.1.30-nh81h0jz.mjs +0 -1
- package/dist/chunks/main-1.1.30-87zf4enf.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.30-p38nd6r6.mjs +0 -1
- package/dist/chunks/mcp-1.1.30-egynhffm.mjs +0 -17
- package/dist/chunks/mcp-1.1.30-gaz9mgmq.mjs +0 -4
- package/dist/chunks/mcp-1.1.30-r6q89d8c.mjs +0 -1
- package/dist/chunks/mcpb-1.1.30-qxpx83j6.mjs +0 -1
- package/dist/chunks/memory-1.1.30-72gbfb3b.mjs +0 -77
- package/dist/chunks/model-1.1.30-7nsbqqvm.mjs +0 -2
- package/dist/chunks/model-1.1.30-f7d6dbt2.mjs +0 -1
- package/dist/chunks/node-1.1.30-nbnhkya6.mjs +0 -15
- package/dist/chunks/node-1.1.30-vaaf7x0g.mjs +0 -1
- package/dist/chunks/oauth-1.1.30-g201gbyg.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.30-rz4xax1e.mjs +0 -14
- package/dist/chunks/output-style-1.1.30-ms4eck90.mjs +0 -1
- package/dist/chunks/package-D2QZMRW7-1.1.30-08c7mgpt.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.30-bd7ade4m.mjs +0 -1
- package/dist/chunks/parser-1.1.30-qe7n0vnw.mjs +0 -1
- package/dist/chunks/passes-1.1.30-3cz64bpa.mjs +0 -1
- package/dist/chunks/permissions-1.1.30-28z7ax7g.mjs +0 -3
- package/dist/chunks/permissions-1.1.30-vgtb4qf9.mjs +0 -1
- package/dist/chunks/plan-1.1.30-s865r5b5.mjs +0 -1
- package/dist/chunks/plist-1.1.30-pxa62mce.mjs +0 -1
- package/dist/chunks/plugin-1.1.30-6apj9sf8.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.30-gmcab9kx.mjs +0 -1
- package/dist/chunks/plugins-1.1.30-40c7sagf.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.30-q2g48qsk.mjs +0 -2
- package/dist/chunks/print-1.1.30-drvg0v0c.mjs +0 -57
- package/dist/chunks/process-1.1.30-f6y2msx6.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.30-5bzgcejg.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.30-2bwd1kpt.mjs +0 -9
- package/dist/chunks/prompt-1.1.30-9rbbx5vr.mjs +0 -1
- package/dist/chunks/prompt-1.1.30-phmv317m.mjs +0 -1
- package/dist/chunks/prompts-1.1.30-1myv5ewh.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.30-d6jkd0dk.mjs +0 -13
- package/dist/chunks/provider-1.1.30-cwkzb2t8.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.30-qe0y7b6e.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.30-rzg2nkx3.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.30-4q04y9f7.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.30-k3ar1dyg.mjs +0 -26
- package/dist/chunks/registry-1.1.30-epdyxcsa.mjs +0 -1
- package/dist/chunks/release-notes-1.1.30-k11yp5hh.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.30-n7qhqqr3.mjs +0 -2
- package/dist/chunks/remote-env-1.1.30-f8e03jpx.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.30-fqankvvx.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.30-fc5x1bz4.mjs +0 -1
- package/dist/chunks/rename-1.1.30-vw8eyfha.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.30-bagtg7fm.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.30-318vaq80.mjs +0 -1
- package/dist/chunks/resume-1.1.30-jrj1wpvj.mjs +0 -2
- package/dist/chunks/rewind-1.1.30-z97mdn25.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.30-ybrgmmyy.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.30-w3gn8w75.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.30-4rd9w5by.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.30-zmtfq25w.mjs +0 -1
- package/dist/chunks/session-1.1.30-sbykpbav.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.30-dd680nx7.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.30-4rhdr018.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.30-cwb5a83p.mjs +0 -1
- package/dist/chunks/settings-1.1.30-xxee6nzb.mjs +0 -1
- package/dist/chunks/setup-1.1.30-p2wwqw6v.mjs +0 -12
- package/dist/chunks/sinks-1.1.30-phkc3yep.mjs +0 -1
- package/dist/chunks/skills-1.1.30-vsg5twx1.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.30-wa0xbx1z.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.30-9cgnvwtt.mjs +0 -1
- package/dist/chunks/state-1.1.30-ge0kb9gr.mjs +0 -1
- package/dist/chunks/stats-1.1.30-n5w7ehyg.mjs +0 -1
- package/dist/chunks/status-1.1.30-snsvg4xb.mjs +0 -1
- package/dist/chunks/stickers-1.1.30-7ffpw08c.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.30-5efpmhgz.mjs +0 -1
- package/dist/chunks/tasks-1.1.30-ykgkx7d8.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.30-cjjzmnj6.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.30-e2mh88ze.mjs +0 -1
- package/dist/chunks/teleport-1.1.30-9y1akw6m.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.30-mwbzfrfc.mjs +0 -1
- package/dist/chunks/theme-1.1.30-9dqykgv2.mjs +0 -1
- package/dist/chunks/thinkback-1.1.30-3pbzqt97.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.30-83akae4q.mjs +0 -1
- package/dist/chunks/toolPool-1.1.30-3kvrwtxa.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.30-s60zcj4t.mjs +0 -1
- package/dist/chunks/tools-1.1.30-by0ddhf4.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.30-ecq2hfrc.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.30-m5hyejns.mjs +0 -69
- package/dist/chunks/types-1.1.30-mrv5q877.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.30-5etzjedp.mjs +0 -4
- package/dist/chunks/update-1.1.30-ax60cy72.mjs +0 -72
- package/dist/chunks/upgrade-1.1.30-hrny7f12.mjs +0 -1
- package/dist/chunks/upload-1.1.30-s0z8kw2s.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.30-tkvbafsh.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.30-enhczdhm.mjs +0 -1
- package/dist/chunks/usage-1.1.30-ew9dakf2.mjs +0 -1
- package/dist/chunks/util-1.1.30-knp77fm5.mjs +0 -1
- package/dist/chunks/utils-1.1.30-74ykpfac.mjs +0 -1
- package/dist/chunks/vim-1.1.30-y01vnb23.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.30-sjecqqx4.mjs +0 -13
- package/dist/chunks/watcher-1.1.30-qnfq5sma.mjs +0 -1
- package/dist/chunks/wiki-1.1.30-qddcp6x2.mjs +0 -132
- package/dist/chunks/workflows-1.1.30-j5wcb76g.mjs +0 -1
- package/dist/chunks/worktree-1.1.30-m6gvqkc9.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.30-nma5ggmd.mjs +0 -1
- package/dist/chunks/wrapper-1.1.30-c8vm3try.mjs +0 -7
- /package/dist/chunks/{cli-1.1.30-vxh27fdj.mjs → cli-1.1.31-d930nxk6.mjs} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{MW as Xq,QW as wq,UW as vq,VW as c,WW as xq,cX as Yq}from"./cli-1.1.31-4cp1xkaj.mjs";import{o8 as zq,v8 as Nq}from"./cli-1.1.31-qv6x2hht.mjs";import{Eba as jq,Kha as b,Sha as yq,aca as Fq,cba as C,eba as Mq,nba as Oq,oba as Lq}from"./cli-1.1.31-p99fz46k.mjs";import{$ia as Qq,_ia as R,aja as w,bja as Vq}from"./cli-1.1.31-c9707zjx.mjs";import{Aka as qq,Ska as G,Vka as Jq,vka as z,wka as y}from"./cli-1.1.31-t6m64e0q.mjs";import{qla as W,rla as x,xla as e}from"./cli-1.1.31-dmghye74.mjs";import{Ala as s,Bla as l,Dla as t,Lla as a}from"./cli-1.1.31-wba64b2s.mjs";import{Iqa as u,Yqa as m,opa as i,pma as r,qma as Aq,rma as d}from"./cli-1.1.31-b8rbgfhm.mjs";import{lsa as T,msa as Hq}from"./cli-1.1.31-qj8vksz8.mjs";import{mkdir as Dq,readdir as I,readFile as Zq,unlink as $q,writeFile as h}from"fs/promises";import{join as D}from"path";function _J(q){if(M===q)return;M=q,E()}function WJ(){if(M===void 0)return;M=void 0,E()}function E(){try{Gq.emit()}catch{}}function Kq(q){return D(U(q),pq)}async function g(q){let J=Kq(q);try{let Q=(await Zq(J,"utf-8")).trim(),V=parseInt(Q,10);return isNaN(V)?0:V}catch{return 0}}async function Rq(q,J){let Q=Kq(q);await h(Q,String(J))}function BJ(){if(t(process.env.CLAUDIN_ENABLE_TASKS))return!0;return!i()}async function EJ(q){let J=U(q),Q=await o(q),V;try{V=await C(Q,f);let Y=await Wq(q);if(Y>0){let Z=await g(q);if(Y>Z)await Rq(q,Y)}let X;try{X=await I(J)}catch{X=[]}for(let Z of X)if(Z.endsWith(".json")&&!Z.startsWith(".")){let $=D(J,Z);try{await $q($)}catch{}}E()}finally{if(V)await V()}}async function HJ(q){let J=await P(q),Q=0;for(let V of J){if(V.status!=="completed"||V.metadata?._internal)continue;if(await v(q,V.id,{metadata:{...V.metadata,_internal:!0}}))Q++}return Q}function OJ(){if(process.env.CLAUDIN_TASK_LIST_ID)return process.env.CLAUDIN_TASK_LIST_ID;let q=Xq();if(q)return q.teamName;return c()||M||d()}function _q(q){return q.replace(/[^a-zA-Z0-9_-]/g,"-")}function U(q){return D(s(),"tasks",_q(q))}function S(q,J){return D(U(q),`${_q(J)}.json`)}async function bq(q){let J=U(q);try{await Dq(J,{recursive:!0})}catch{}}async function Wq(q){let J=U(q),Q;try{Q=await I(J)}catch{return 0}let V=0;for(let Y of Q){if(!Y.endsWith(".json"))continue;let X=parseInt(Y.replace(".json",""),10);if(!isNaN(X)&&X>V)V=X}return V}async function cq(q){let[J,Q]=await Promise.all([Wq(q),g(q)]);return Math.max(J,Q)}async function jJ(q,J){let Q=await o(q),V;try{V=await C(Q,f);let Y=await cq(q),X=String(Y+1),Z={id:X,...J},$=S(q,X);return await h($,z(Z,null,2)),E(),X}finally{if(V)await V()}}async function O(q,J){let Q=S(q,J);try{let V=await Zq(Q,"utf-8"),Y=y(V),X=Pq().safeParse(Y);if(!X.success)return G(`[Tasks] Task ${J} failed schema validation: ${X.error.message}`),null;return X.data}catch(V){if(x(V)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${J}: ${W(V)}`),b(V),null}}async function Uq(q,J,Q){let V=await O(q,J);if(!V)return null;let Y={...V,...Q,id:J},X=S(q,J);return await h(X,z(Y,null,2)),E(),Y}async function v(q,J,Q){let V=S(q,J);if(!await O(q,J))return null;let X;try{return X=await C(V,f),await Uq(q,J,Q)}finally{await X?.()}}async function vJ(q,J){let Q=S(q,J);try{let V=parseInt(J,10);if(!isNaN(V)){let X=await g(q);if(V>X)await Rq(q,V)}try{await $q(Q)}catch(X){if(x(X)==="ENOENT")return!1;throw X}let Y=await P(q);for(let X of Y){let Z=X.blocks.filter((K)=>K!==J),$=X.blockedBy.filter((K)=>K!==J);if(Z.length!==X.blocks.length||$.length!==X.blockedBy.length)await v(q,X.id,{blocks:Z,blockedBy:$})}return E(),!0}catch{return!1}}async function P(q){let J=U(q),Q;try{Q=await I(J)}catch{return[]}let V=Q.filter((X)=>X.endsWith(".json")).map((X)=>X.replace(".json",""));return(await Promise.all(V.map((X)=>O(q,X)))).filter((X)=>X!==null)}async function xJ(q,J,Q){let[V,Y]=await Promise.all([O(q,J),O(q,Q)]);if(!V||!Y)return!1;if(!V.blocks.includes(Q))await v(q,J,{blocks:[...V.blocks,Q]});if(!Y.blockedBy.includes(J))await v(q,Q,{blockedBy:[...Y.blockedBy,J]});return!0}function hq(q){return D(U(q),".lock")}async function o(q){await bq(q);let J=hq(q);try{await h(J,"",{flag:"wx"})}catch{}return J}async function zJ(q,J,Q,V={}){let Y=S(q,J);if(!await O(q,J))return{success:!1,reason:"task_not_found"};if(V.checkAgentBusy)return uq(q,J,Q);let Z;try{Z=await C(Y,f);let $=await O(q,J);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==Q)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let K=await P(q),H=new Set(K.filter((A)=>A.status!=="completed").map((A)=>A.id)),N=$.blockedBy.filter((A)=>H.has(A));if(N.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:N};return{success:!0,task:await Uq(q,J,{owner:Q})}}catch($){return G(`[Tasks] Failed to claim task ${J}: ${W($)}`),b($),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function uq(q,J,Q){let V=await o(q),Y;try{Y=await C(V,f);let X=await P(q),Z=X.find((_)=>_.id===J);if(!Z)return{success:!1,reason:"task_not_found"};if(Z.owner&&Z.owner!==Q)return{success:!1,reason:"already_claimed",task:Z};if(Z.status==="completed")return{success:!1,reason:"already_resolved",task:Z};let $=new Set(X.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=Z.blockedBy.filter((_)=>$.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:Z,blockedByTasks:K};let H=X.filter((_)=>_.status!=="completed"&&_.owner===Q&&_.id!==J);if(H.length>0)return{success:!1,reason:"agent_busy",task:Z,busyWithTasks:H.map((_)=>_.id)};return{success:!0,task:await v(q,J,{owner:Q})}}catch(X){return G(`[Tasks] Failed to claim task ${J} with busy check: ${W(X)}`),b(X),{success:!1,reason:"task_not_found"}}finally{if(Y)await Y()}}async function CJ(q,J,Q,V){let X=(await P(q)).filter((K)=>K.status!=="completed"&&(K.owner===J||K.owner===Q));for(let K of X)await v(q,K.id,{owner:void 0,status:"pending"});if(X.length>0)G(`[Tasks] Unassigned ${X.length} task(s) from ${Q}`);let $=`${Q} ${V==="terminated"?"was terminated":"has shut down"}.`;if(X.length>0){let K=X.map((H)=>`#${H.id} "${H.subject}"`).join(", ");$+=` ${X.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:X.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:$}}var Gq,M,UJ,fq,Pq,pq=".highwatermark",f;var Bq=T(()=>{Qq();m();Jq();a();e();Vq();Mq();yq();Aq();qq();Yq();wq();Gq=r();UJ=Gq.subscribe;fq=w(()=>R.enum(["pending","in_progress","completed"])),Pq=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fq(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),f={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(q){return q==="tmux"||q==="iterm2"}var Eq=()=>{};import{mkdirSync as Tq,readFileSync as lq,writeFileSync as Iq}from"fs";import{mkdir as gq,readFile as Cq,rm as k,writeFile as oq}from"fs/promises";import{join as p}from"path";function Sq(q){return q.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function gJ(q){return q.replace(/@/g,"-")}function L(q){return p(l(),Sq(q))}function F(q){return p(L(q),"config.json")}function B(q){try{let J=lq(F(q),"utf-8");return y(J)}catch(J){if(x(J)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${q}: ${W(J)}`),null}}async function nq(q){try{let J=await Cq(F(q),"utf-8");return y(J)}catch(J){if(x(J)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${q}: ${W(J)}`),null}}function j(q,J){let Q=L(q);Tq(Q,{recursive:!0}),Iq(F(q),z(J,null,2))}async function kq(q,J){let Q=L(q);await gq(Q,{recursive:!0}),await oq(F(q),z(J,null,2))}function oJ(q,J){let Q=J.agentId||J.name;if(!Q)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let V=B(q);if(!V)return G(`[TeammateTool] Cannot remove teammate ${Q}: failed to read team file for "${q}"`),!1;let Y=V.members.length;if(V.members=V.members.filter((X)=>{if(J.agentId&&X.agentId===J.agentId)return!1;if(J.name&&X.name===J.name)return!1;return!0}),V.members.length===Y)return G(`[TeammateTool] Teammate ${Q} not found in team file for "${q}"`),!1;return j(q,V),G(`[TeammateTool] Removed teammate from team file: ${Q}`),!0}function nJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.hiddenPaneIds??[];if(!V.includes(J))V.push(J),Q.hiddenPaneIds=V,j(q,Q),G(`[TeammateTool] Added ${J} to hidden panes for team ${q}`);return!0}function kJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.hiddenPaneIds??[],Y=V.indexOf(J);if(Y!==-1)V.splice(Y,1),Q.hiddenPaneIds=V,j(q,Q),G(`[TeammateTool] Removed ${J} from hidden panes for team ${q}`);return!0}function rJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.members.findIndex((Y)=>Y.tmuxPaneId===J);if(V===-1)return!1;if(Q.members.splice(V,1),Q.hiddenPaneIds){let Y=Q.hiddenPaneIds.indexOf(J);if(Y!==-1)Q.hiddenPaneIds.splice(Y,1)}return j(q,Q),G(`[TeammateTool] Removed member with pane ${J} from team ${q}`),!0}function dJ(q,J){let Q=B(q);if(!Q)return!1;let V=Q.members.findIndex((Y)=>Y.agentId===J);if(V===-1)return!1;return Q.members.splice(V,1),j(q,Q),G(`[TeammateTool] Removed member ${J} from team ${q}`),!0}function rq(q,J,Q){let V=B(q);if(!V)return!1;let Y=V.members.find((Z)=>Z.name===J);if(!Y)return G(`[TeammateTool] Cannot set member mode: member ${J} not found in team ${q}`),!1;if(Y.mode===Q)return!0;let X=V.members.map((Z)=>Z.name===J?{...Z,mode:Q}:Z);return j(q,{...V,members:X}),G(`[TeammateTool] Set member ${J} in team ${q} to mode: ${Q}`),!0}function iJ(q,J){if(!xq())return;let Q=J??c(),V=vq();if(Q&&V)rq(Q,V,q)}function mJ(q,J){let Q=B(q);if(!Q)return!1;let V=new Map(J.map((Z)=>[Z.memberName,Z.mode])),Y=!1,X=Q.members.map((Z)=>{let $=V.get(Z.name);if($!==void 0&&Z.mode!==$)return Y=!0,{...Z,mode:$};return Z});if(Y)j(q,{...Q,members:X}),G(`[TeammateTool] Set ${J.length} member modes in team ${q}`);return!0}async function sJ(q,J,Q){let V=await nq(q);if(!V){G(`[TeammateTool] Cannot set member active: team ${q} not found`);return}let Y=V.members.find((X)=>X.name===J);if(!Y){G(`[TeammateTool] Cannot set member active: member ${J} not found in team ${q}`);return}if(Y.isActive===Q)return;Y.isActive=Q,await kq(q,V),G(`[TeammateTool] Set member ${J} in team ${q} to ${Q?"active":"idle"}`)}async function dq(q){let J=p(q,".git"),Q=null;try{let Y=(await Cq(J,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Y&&Y[1]){let X=Y[1],Z=p(X,"..","..");Q=p(Z,"..")}}catch{}if(Q){let V=await Oq(jq(),["worktree","remove","--force",q],{cwd:Q});if(V.code===0){G(`[TeammateTool] Removed worktree via git: ${q}`);return}if(V.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${q}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${V.stderr}`)}try{await k(q,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${q}`)}catch(V){G(`[TeammateTool] Failed to remove worktree ${q}: ${W(V)}`)}}function tJ(q){u().add(q)}function aJ(q){u().delete(q)}async function eJ(){let q=u();if(q.size===0)return;let J=Array.from(q);G(`cleanupSessionTeams: removing ${J.length} orphan team dir(s): ${J.join(", ")}`),await Promise.allSettled(J.map((Q)=>iq(Q))),await Promise.allSettled(J.map((Q)=>mq(Q))),q.clear()}async function iq(q){let J=B(q);if(!J)return;let Q=J.members.filter(($)=>$.name!==zq&&$.tmuxPaneId&&$.backendType&&n($.backendType));if(Q.length===0)return;let[{ensureBackendsRegistered:V,getBackendByType:Y},{isInsideTmux:X}]=await Promise.all([import("./registry-1.1.31-ecyhakd2.mjs"),import("./detection-1.1.31-zss1hfbq.mjs")]);await V();let Z=!await X();await Promise.allSettled(Q.map(async($)=>{if(!$.tmuxPaneId||!$.backendType||!n($.backendType))return;let K=await Y($.backendType).killPane($.tmuxPaneId,Z);G(`cleanupSessionTeams: killPane ${$.name} (${$.backendType} ${$.tmuxPaneId}) → ${K}`)}))}async function mq(q){let J=Sq(q),Q=B(q),V=[];if(Q){for(let Z of Q.members)if(Z.worktreePath)V.push(Z.worktreePath)}for(let Z of V)await dq(Z);let Y=L(q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Y}`)}catch(Z){G(`[TeammateTool] Failed to clean up team directory ${Y}: ${W(Z)}`)}let X=U(J);try{await k(X,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${X}`),E()}catch(Z){G(`[TeammateTool] Failed to clean up tasks directory ${X}: ${W(Z)}`)}}var IJ;var sq=T(()=>{Qq();m();Jq();a();e();Lq();Fq();Vq();qq();Bq();Yq();Eq();Nq();IJ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
|
|
2
|
+
export{_J as VU,WJ as WU,UJ as XU,fq as YU,BJ as ZU,EJ as _U,HJ as $U,OJ as aV,_q as bV,U as cV,bq as dV,jJ as eV,O as fV,v as gV,vJ as hV,P as iV,xJ as jV,zJ as kV,CJ as lV,Bq as mV,n as nV,Eq as oV,IJ as pV,Sq as qV,gJ as rV,L as sV,F as tV,B as uV,nq as vV,kq as wV,oJ as xV,nJ as yV,kJ as zV,rJ as AV,dJ as BV,rq as CV,iJ as DV,mJ as EV,sJ as FV,tJ as GV,aJ as HV,eJ as IV,mq as JV,sq as KV};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Kr as I,Lr as i,vN as E,wN as n}from"./cli-1.1.31-g58b1jfa.mjs";import{kca as G,lca as s,mca as f,nca as WH,oca as _,pca as XH}from"./cli-1.1.31-p99fz46k.mjs";import{cka as y,dka as qH,mka as j,nka as BH,ska as b,tka as YH}from"./cli-1.1.31-t6m64e0q.mjs";import{Hna as m,Ina as $H,Lna as q,Mna as U,Nna as B,Ona as p,Pma as F,Pna as z,Qma as QH,Qna as u,Rma as C,Sma as e,bna as P,cna as HH}from"./cli-1.1.31-b8rbgfhm.mjs";import{fra as Y,gra as t}from"./cli-1.1.31-thhdw5e1.mjs";import{lsa as Z}from"./cli-1.1.31-qj8vksz8.mjs";function c(H,J){return J.length<2?H:z(H,I(J,0,-1))}var M;var N=Z(()=>{u();i();M=c});function r(H,J){J=q(J,H);var Q=-1,W=J.length;if(!W)return!0;while(++Q<W){var V=B(J[Q]);if(V==="__proto__"&&!l.call(H,"__proto__"))return!1;if((V==="constructor"||V==="prototype")&&Q<W-1)return!1}var X=M(H,J);return X==null||delete X[B(E(J))]}var o,l,K;var D=Z(()=>{U();n();N();p();o=Object.prototype,l=o.hasOwnProperty;K=r});function a(H){return G(H)?void 0:H}var w;var x=Z(()=>{s();w=a});function JH(H){return C(H)||P(H)||!!(L&&H&&H[L])}var L,k;var R=Z(()=>{t();HH();e();L=Y?Y.isConcatSpreadable:void 0;k=JH});function T(H,J,Q,W,V){var X=-1,h=H.length;Q||(Q=k),V||(V=[]);while(++X<h){var $=H[X];if(J>0&&Q($))if(J>1)T($,J-1,Q,W,V);else F(V,$);else if(!W)V[V.length]=$}return V}var A;var S=Z(()=>{QH();R();A=T});function VH(H){var J=H==null?0:H.length;return J?A(H,1):[]}var O;var g=Z(()=>{S();O=VH});function ZH(H){return _(f(H,void 0,O),H+"")}var d;var v=Z(()=>{g();WH();XH();d=ZH});var zH=1,IH=2,MH=4,NH,lH;var UH=Z(()=>{$H();YH();D();U();qH();x();v();BH();NH=d(function(H,J){var Q={};if(H==null)return Q;var W=!1;if(J=m(J,function(X){return X=q(X,H),W||(W=X.length>1),X}),y(H,j(H),Q),W)Q=b(Q,zH|IH|MH,w);var V=J.length;while(V--)K(Q,J[V]);return Q}),lH=NH});
|
|
2
|
+
export{lH as mg,UH as ng};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Dla as $,Lla as F}from"./cli-1.1.31-wba64b2s.mjs";import{ksa as E,lsa as W}from"./cli-1.1.31-qj8vksz8.mjs";import{AsyncLocalStorage as q}from"async_hooks";function G(){return O.getStore()}function X(z,B){return O.run(z,B)}function Y(){return O.getStore()!==void 0}function Z(z){return{...z,isInProcess:!0}}var O;var Q=W(()=>{O=new q});var y={};E(y,{waitForTeammatesToBecomeIdle:()=>l,setDynamicTeamContext:()=>_,runWithTeammateContext:()=>X,isTeammate:()=>h,isTeamLead:()=>S,isPlanModeRequired:()=>w,isInProcessTeammate:()=>Y,hasWorkingInProcessTeammates:()=>I,hasActiveInProcessTeammates:()=>P,getTeammateContext:()=>G,getTeammateColor:()=>u,getTeamName:()=>f,getParentSessionId:()=>L,getDynamicTeamContext:()=>v,getAgentName:()=>A,getAgentId:()=>j,createTeammateContext:()=>Z,clearDynamicTeamContext:()=>b});function L(){let z=G();if(z)return z.parentSessionId;return D?.parentSessionId}function _(z){D=z}function b(){D=null}function v(){return D}function j(){let z=G();if(z)return z.agentId;return D?.agentId}function A(){let z=G();if(z)return z.agentName;return D?.agentName}function f(z){let B=G();if(B)return B.teamName;if(D?.teamName)return D.teamName;return z?.teamName}function h(){if(G())return!0;return!!(D?.agentId&&D?.teamName)}function u(){let z=G();if(z)return z.color;return D?.color}function w(){let z=G();if(z)return z.planModeRequired;if(D!==null)return D.planModeRequired;return $(process.env.CLAUDIN_PLAN_MODE_REQUIRED)}function S(z){if(!z?.leadAgentId)return!1;let B=j(),H=z.leadAgentId;if(B===H)return!0;if(!B)return!0;return!1}function P(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running")return!0;return!1}function I(z){for(let B of Object.values(z.tasks))if(B.type==="in_process_teammate"&&B.status==="running"&&!B.isIdle)return!0;return!1}function l(z,B){let H=[];for(let[M,J]of Object.entries(B.tasks))if(J.type==="in_process_teammate"&&J.status==="running"&&!J.isIdle)H.push(M);if(H.length===0)return Promise.resolve();return new Promise((M)=>{let J=H.length,R=()=>{if(J--,J===0)M()};z((U)=>{let N={...U.tasks};for(let V of H){let K=N[V];if(K&&K.type==="in_process_teammate")if(K.isIdle)R();else N[V]={...K,onIdleCallbacks:[...K.onIdleCallbacks??[],R]}}return{...U,tasks:N}})})}var D=null;var g=W(()=>{Q();F();Q()});
|
|
2
|
+
export{G as MW,X as NW,Y as OW,Z as PW,Q as QW,L as RW,v as SW,j as TW,A as UW,f as VW,h as WW,u as XW,w as YW,S as ZW,P as _W,I as $W,l as aX,y as bX,g as cX};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Pd as K,Qd as Q,Rd as R,Sd as W,Td as X,Ud as Y,Vd as U}from"./cli-1.1.31-mtcbc6g3.mjs";import{lS as Z,nS as k}from"./cli-1.1.31-g58b1jfa.mjs";import{Kha as J,Sha as N,X_ as y,Y_ as M}from"./cli-1.1.31-p99fz46k.mjs";import{$ka as B,Xka as G}from"./cli-1.1.31-pp98t7k8.mjs";import{qla as H,xla as $}from"./cli-1.1.31-dmghye74.mjs";M();$();k();N();B();U();function F(v,x,q){J(v);let z=q?`${x} plugin "${q}"`:x==="disable-all"?"disable all plugins":`${x} plugins`;console.error(`${y.cross} Failed to ${z}: ${H(v)}`),process.exit(1)}async function L(v,x="user"){try{console.log(`Installing plugin "${v}"...`);let q=await K(v,x);if(!q.success)throw Error(q.message);console.log(`${y.tick} ${q.message}`),process.exit(0)}catch(q){F(q,"install",v)}}async function A(v,x="user",q=!1){try{let z=await Q(v,x,!q);if(!z.success)throw Error(z.message);console.log(`${y.tick} ${z.message}`),process.exit(0)}catch(z){F(z,"uninstall",v)}}async function C(v,x){try{let q=await R(v,x);if(!q.success)throw Error(q.message);console.log(`${y.tick} ${q.message}`),process.exit(0)}catch(q){F(q,"enable",v)}}async function f(v,x){try{let q=await W(v,x);if(!q.success)throw Error(q.message);console.log(`${y.tick} ${q.message}`),process.exit(0)}catch(q){F(q,"disable",v)}}async function O(){try{let v=await X();if(!v.success)throw Error(v.message);console.log(`${y.tick} ${v.message}`),process.exit(0)}catch(v){F(v,"disable-all")}}async function S(v,x){try{G(`Checking for updates for plugin "${v}" at ${x} scope…
|
|
2
|
+
`);let q=await Y(v,x);if(!q.success)throw Error(q.message);G(`${y.tick} ${q.message}
|
|
3
|
+
`),await Z(0)}catch(q){F(q,"update",v)}}
|
|
4
|
+
export{L as h,A as i,C as j,f as k,O as l,S as m};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{LZ as X,NZ as k,SX as f,wZ as W}from"./cli-1.1.31-13cx7z8n.mjs";import{o3 as V,p3 as J,r3 as K}from"./cli-1.1.31-eqfmzrxc.mjs";import{s3 as P}from"./cli-1.1.31-9d5v98td.mjs";import{Vha as U,Wha as O}from"./cli-1.1.31-vpkbqj90.mjs";import{hsa as Q,lsa as L}from"./cli-1.1.31-qj8vksz8.mjs";import{PassThrough as C}from"stream";function E(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let D=setTimeout(z,0);return()=>clearTimeout(D)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J(V,{children:w}),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(M);if(b===-1)return q;let w=b+M.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J(E,{children:q}),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function N(q,b){let w=await g(q,b);return U(w)}var Z,y,M="\x1B[?2026h",F="\x1B[?2026l";var j=L(()=>{O();k();K();Z=Q(f(),1),y=Q(P(),1)});
|
|
2
|
+
export{g as de,N as ee,j as fe};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{lsa as B}from"./cli-1.1.31-qj8vksz8.mjs";function D(g,q){switch(q.type){case"set_local_jsx":{if(q.generation<g.generation)return g;return{state:{...q.payload,isLocalJSXCommand:!0},generation:g.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:g.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(g.hasLocalJSXActive)return g;return{...g,state:q.payload}}case"set_null":{if(g.hasLocalJSXActive)return g;if(g.state===null)return g;return{...g,state:null}}}}var C;var F=B(()=>{C={state:null,generation:0,hasLocalJSXActive:!1}});function K(g){return z=g,()=>{if(z===g)z=null}}function L(g){let q=D(w,g);if(q===w)return;w=q,z?.(q.state)}function M(){return w.generation}var w,z=null;var G=B(()=>{F();w=C});
|
|
2
|
+
export{K as oj,L as pj,M as qj,G as rj};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{k3 as $J,n3 as TJ}from"./cli-1.1.31-t96rrv1m.mjs";import{B$ as D,Bfa as jJ,Kha as q,L$ as QJ,N$ as xJ,Q$ as w,Sha as m,kga as E,nba as W,oba as f,ofa as ZJ,uaa as YJ,vaa as NJ,z$ as U}from"./cli-1.1.31-p99fz46k.mjs";import{Aka as b,Eka as y,Ika as P,Ska as K,Vka as wJ,vka as k,wka as x}from"./cli-1.1.31-t6m64e0q.mjs";import{ala as JJ,rla as M,sla as B,vla as g,xla as T}from"./cli-1.1.31-dmghye74.mjs";import{Ala as O,Lla as I}from"./cli-1.1.31-wba64b2s.mjs";import{lsa as j}from"./cli-1.1.31-qj8vksz8.mjs";import{access as u,chmod as vJ,writeFile as BJ}from"fs/promises";import{homedir as d}from"os";import{join as v}from"path";function A(){return v(O(),"local")}function GJ(J=d()){return v(J,".claude","local")}function h(J){let Q=J?.homeDir??d(),Y=J?.configHomeDir??O();return Array.from(new Set([v(Y,"local"),GJ(Q)]))}function p(J){return[v(J,"node_modules",".bin","claudin"),v(J,"node_modules",".bin","claude")]}function RJ(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function V(){return v(A(),"claudin")}function iJ(){return RJ(U())}async function F(J,Q,Y){try{return await BJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(M(Z)==="EEXIST")return!1;throw Z}}async function _J(){try{let J=A();await y().mkdir(J),await F(v(J,"package.json"),k({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=V();if(await F(Q,`#!/bin/sh
|
|
2
|
+
exec "${J}/node_modules/.bin/claudin" "$@"`,493))await vJ(Q,493);return!0}catch(J){return q(J),!1}}async function eJ(J,Q){try{if(!await _J())return"install_failed";let Z=await W("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:A(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return w(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function rJ(){for(let J of h())for(let Q of p(J))try{return await u(Q),!0}catch{}return!1}async function JQ(){for(let J of h())for(let Q of p(J))try{return await u(Q),J}catch{}return null}function QQ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var c=j(()=>{D();E();I();T();f();P();m();b()});import{open as OJ,readFile as MJ,stat as yJ}from"fs/promises";import{homedir as n}from"os";import{join as C}from"path";function S(J){let Q=J?.homedir??n(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:C(Z,".zshrc"),bash:C(Q,".bashrc"),fish:C(Q,".config/fish/config.fish")}}function s(J){let Q=!1;return{filtered:J.filter((Z)=>{if(t.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===V())return Q=!0,!1}}return!0}),hadAlias:Q}}async function L(J){try{return(await MJ(J,{encoding:"utf8"})).split(`
|
|
3
|
+
`)}catch(Q){if(g(Q))return null;throw Q}}async function a(J,Q){let Y=await OJ(J,"w");try{await Y.writeFile(Q.join(`
|
|
4
|
+
`),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function UJ(J){let Q=S(J);for(let Y of Object.values(Q)){let Z=await L(Y);if(!Z)continue;for(let $ of Z)if(t.test($)){let X=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(X&&X[1])return X[1]}}return null}async function XQ(J){let Q=await UJ(J);if(!Q)return null;let Y=J?.homedir??n(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await yJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var t;var l=j(()=>{T();c();t=/^\s*alias\s+claude\s*=/});import{constants as qJ}from"fs";import{access as KJ,readFile as AJ,stat as VJ,writeFile as o}from"fs/promises";import{homedir as z}from"os";import{join as H}from"path";function CJ(){let J=U();if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}function WJ(){return CJ()?"bun":"npm"}function XJ(){let J=process.env.BUN_INSTALL||H(z(),".bun");return H(J,"install","global","node_modules","@claudiolabs/claudin")}async function FJ(){let J=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(J.code!==0)return null;let Q=J.stdout.trim();if(!Q)return null;return YJ()==="windows"?H(Q,"node_modules","@claudiolabs/claudin"):H(Q,"lib","node_modules","@claudiolabs/claudin")}async function i(J){try{let Q=await AJ(H(J,"package.json"),"utf8"),Y=x(Q);return typeof Y.version==="string"?Y.version:null}catch(Q){if(!B(Q))q(Q);return null}}function e(J){return J==="bun"?Promise.resolve(XJ()):FJ()}async function IJ(J,Q,Y){let Z=J==="npm"?"bun":"npm",$=await e(Z);if(!$)return;let X=await i($);if(!X)return;let R=await e(J),_=R?await i(R):null;if(_&&X===_)return;K(`update: repairing stale ${Z} install ${X} at ${$}`);let N=await W(Z,Z==="npm"?["install","-g","--force",Q]:["install","-g",Q],{cwd:z()});if(N.code!==0){q(new G(`Failed to refresh the ${Z} global install at ${$}: ${N.stdout} ${N.stderr}`));return}if(Z==="bun")await zJ();Y?.(`Repaired old version ${X} at ${$}`)}async function kJ(J,Q){let Y=await W("node",[J],{cwd:Q});if(Y.code===0)return!0;if(!LJ.test(Y.error??""))return q(new G(`Skipped postinstall failed under node: ${Y.stdout} ${Y.stderr}`)),!1;let Z=await W("bun",[J],{cwd:Q});if(Z.code===0)return!0;return q(new G(`Skipped postinstall failed under bun: ${Z.stdout} ${Z.stderr}`)),!1}async function zJ(){let J=XJ(),Q=H(J,"install.cjs"),Y=H(J,"bin","claudin.exe");try{await KJ(Q,qJ.F_OK)}catch(Z){if(!B(Z))q(Z);return!1}try{if((await VJ(Y)).size>SJ)return!1}catch(Z){if(!B(Z))return q(Z),!1}if(!await kJ(Q,J))return!1;return K("update: repaired Bun global launcher via install.cjs"),!0}async function SQ(){}async function LQ(){return}async function FQ(){return}function IQ(J){let Y=ZJ()?.minimumVersion;if(!Y)return!1;let Z=!$J(J,Y);if(Z)K(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function HJ(){return H(O(),".update.lock")}async function bJ(){let J=y(),Q=HJ();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<r)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<r)return!1;await J.unlink(Q)}catch($){if(!B($))return q($),!1}}catch(Y){if(!B(Y))return q(Y),!1}try{return await o(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=M(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(O()),await o(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(M($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function PJ(){let J=y(),Q=HJ();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(B(Y))return;q(Y)}}async function DJ(){let J=WJ()==="bun",Q=null;if(J)Q=await W("bun",["pm","bin","-g"],{cwd:z()});else Q=await W("npm",["-g","config","get","prefix"],{cwd:z()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function fJ(){try{let J=await DJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await KJ(J,qJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new G("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function kQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await W("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:z()});if($.code!==0){if(K(`npm view failed with code ${$.code}`),$.stderr)K(`npm stderr: ${$.stderr.trim()}`);else K("npm stderr: (empty)");if($.stdout)K(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function bQ(){let J=await W("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:z()});if(J.code!==0)return K(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=x(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return K(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function PQ(J){return null}async function DQ(){return{latest:null,stable:null}}async function fQ(J){let Y=await W("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:z()});if(Y.code!==0){if(K(`npm view versions failed with code ${Y.code}`),Y.stderr)K(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return x(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return K(`Failed to parse version history: ${Z}`),[]}}async function EQ(J,Q){if(!await bJ())return q(new G("Another process is currently installing an update")),"in_progress";try{await EJ();let Y=WJ();if(Y==="npm"&&QJ.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),console.error(`
|
|
5
|
+
Error: Windows NPM detected in WSL
|
|
6
|
+
|
|
7
|
+
You're running Claudin in WSL but using the Windows NPM installation from /mnt/c/.
|
|
8
|
+
This configuration is not supported for updates.
|
|
9
|
+
|
|
10
|
+
To fix this issue:
|
|
11
|
+
1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
|
|
12
|
+
2. Make sure Linux NPM is in your PATH before the Windows version
|
|
13
|
+
3. Try updating again with 'claudin update'
|
|
14
|
+
`),"install_failed";let{hasPermissions:Z}=await fJ();if(!Z)return"no_permissions";let $=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",R=await W(Y,Y==="npm"?["install","-g","--force",$]:["install","-g",$],{cwd:z()});if(R.code!==0){let _=new G(`Failed to install new version of claude: ${R.stdout} ${R.stderr}`);return q(_),"install_failed"}return await zJ(),await IJ(Y,$,Q?.onProgress),w((_)=>({..._,installMethod:"global"})),"success"}finally{await PJ()}}async function EJ(){let J=S();for(let[,Q]of Object.entries(J))try{let Y=await L(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=s(Y);if($)await a(Q,Z),K(`Removed claude alias from ${Q}`)}catch(Y){K(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var G,SJ=4096,LJ,r=300000;var mJ=j(()=>{D();E();wJ();xJ();I();T();f();P();m();NJ();TJ();jJ();l();b();G=class G extends JJ{};LJ=/ENOENT/i});
|
|
15
|
+
export{iJ as VT,eJ as WT,rJ as XT,JQ as YT,QQ as ZT,c as _T,S as $T,s as aU,L as bU,a as cU,UJ as dU,XQ as eU,l as fU,XJ as gU,zJ as hU,SQ as iU,LQ as jU,FQ as kU,IQ as lU,HJ as mU,fJ as nU,kQ as oU,bQ as pU,PQ as qU,DQ as rU,fQ as sU,EQ as tU,mJ as uU};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{f1 as M,g1 as D}from"./cli-1.1.31-g41zancj.mjs";import{Iga as l,Lga as L,Mga as c,pga as F,vha as S,xga as _,yha as p}from"./cli-1.1.31-p99fz46k.mjs";import{Fla as Y,Lla as m}from"./cli-1.1.31-wba64b2s.mjs";import{lsa as B}from"./cli-1.1.31-qj8vksz8.mjs";function R(J){if(!J)return;let Q=J.trim().replace(/^https?:\/\//i,"").replace(/\/+$/,"");if(!Q||Q.toLowerCase()==="github.com")return;return Q}function b(J){return J?`https://${J}/login/device/code`:T}function v(J){return J?`https://${J}/login/oauth/access_token`:f}function h(J){return J?`https://api.${J}/copilot_internal/v2/token`:G}function H(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||E}function P(J){return new Promise((Q)=>setTimeout(Q,J))}async function r(J){let Q=J?.clientId??H();if(!Q)throw new q("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let Z=J?.fetchImpl??fetch,j=J?.scope?.trim()||C,$=j===C?[j]:[j,C],z="Device code request failed.",y=b(R(J?.domain));for(let V of $){let W=await Z(y,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Q,scope:V})});if(!W.ok){let x=await W.text().catch(()=>"");z=`Device code request failed: ${W.status} ${x}`;let k=/invalid_scope/i.test(x);if(V!==C&&k)continue;throw new q(z)}let X=await W.json(),N=X.device_code,K=X.user_code,w=X.verification_uri;if(typeof N!=="string"||typeof K!=="string"||typeof w!=="string")throw new q("Malformed device code response from GitHub");return{device_code:N,user_code:K,verification_uri:w,expires_in:typeof X.expires_in==="number"?X.expires_in:900,interval:typeof X.interval==="number"?X.interval:5}}throw new q(z)}async function o(J,Q){let Z=Q?.clientId??H();if(!Z)throw new q("client_id required for polling");let j=Math.max(1,Q?.initialInterval??5),$=Q?.timeoutSeconds??900,z=Q?.fetchImpl??fetch,y=v(R(Q?.domain)),V=Date.now();while((Date.now()-V)/1000<$){let W=await z(y,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Z,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!W.ok){let K=await W.text().catch(()=>"");throw new q(`Token request failed: ${W.status} ${K}`)}let X=await W.json(),N=X.error;if(N==null){let K=X.access_token;if(typeof K==="string"&&K)return K;throw new q("No access_token in response")}if(N==="authorization_pending"){await P(j*1000);continue}if(N==="slow_down"){j=typeof X.interval==="number"?X.interval:j+5,await P(j*1000);continue}if(N==="expired_token")throw new q("Device code expired. Start the login flow again.");if(N==="access_denied")throw new q("Authorization was denied or cancelled.");throw new q(`GitHub OAuth error: ${N}`)}throw new q("Timed out waiting for authorization.")}async function e(J){await M(J)}async function I(J,Q){let Z=typeof Q==="function"?{fetchImpl:Q}:Q??{},j=Z.fetchImpl??fetch,$=h(R(Z.domain)),z=await j($,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...u}});if(!z.ok){let K=await z.text().catch(()=>"");throw new q(`Copilot token exchange failed: ${z.status} ${K}`)}let y=await z.json(),V=y.token,W=y.expires_at,X=y.refresh_in,N=y.endpoints;if(typeof V!=="string"||typeof W!=="number"||typeof X!=="number"||!N||typeof N!=="object"||typeof N.api!=="string")throw new q("Malformed Copilot token response");return{token:V,expires_at:W,refresh_in:X,endpoints:N}}var E="Iv1.b507a08c87ecfe98",T="https://github.com/login/device/code",f="https://github.com/login/oauth/access_token",G="https://api.github.com/copilot_internal/v2/token",C="read:user",u,q;var O=B(()=>{D();u={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"};q=class q extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function g(){return S()?.transport==="github_copilot"}function d(J){let Q=J.match(/exp=(\d+)/);if(Q){let $=Number(Q[1]);if(!Number.isNaN($))return Date.now()>=$*1000?"expired":"valid"}let Z=J.split(".");if(Z.length===3&&Z.every(($)=>/^[A-Za-z0-9_-]+$/.test($)))try{let $=Z[1].replace(/-/g,"+").replace(/_/g,"/"),z=$+"=".repeat((4-$.length%4)%4),y=Buffer.from(z,"base64").toString("utf8"),V=JSON.parse(y);if(V&&typeof V==="object"&&V.exp)return Date.now()>=V.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function a(){if(Y())return;try{return L().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function WJ(){if(Y())return;try{return(await L().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function jJ(){if(!g())return;if(Y())return;if(a())return}async function yJ(){if(!g())return!1;if(Y())return!1;if(A)return A;return A=(async()=>{try{let Z=L().read()?.githubModels,j=Z?.accessToken?.trim()||"",$=Z?.oauthAccessToken?.trim()||"";if(!j&&!$)return!1;if((j?d(j):"expired")==="valid")return!1;if(!$)return!1;let y=Z?.enterpriseDomain?.trim()||void 0,V=await I($,{domain:y});if(!n(V.token,$,y).success)return!1;let X=F().find((N)=>N.provider==="openai"&&N.extras?.githubToken!==void 0);if(X)_(X.id,{provider:"openai",name:X.name,baseUrl:X.baseUrl,model:X.model,apiKey:V.token,extras:{...X.extras,githubToken:V.token}});return!0}catch{return!1}finally{A=null}})(),A}function n(J,Q,Z){if(Y())return{success:!1,warning:"Bare mode: secure storage is disabled."};let j=J.trim();if(!j)return{success:!1,warning:"Token is empty."};let $=L(),z=$.read()||{},y=z[U],V=Q?.trim(),W={accessToken:j};if(V){if(W.oauthAccessToken=V,Z?.trim())W.enterpriseDomain=Z.trim()}else{if(y?.oauthAccessToken?.trim())W.oauthAccessToken=y.oauthAccessToken.trim();let N=Z?.trim()||y?.enterpriseDomain?.trim();if(N)W.enterpriseDomain=N}let X={...z,[U]:W};return $.update(X)}function zJ(){if(Y())return{success:!0};let J=L(),Z={...J.read()||{}};return delete Z[U],J.update(Z)}var U="githubModels",VJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED",A=null;var s=B(()=>{p();m();c();O();l()});
|
|
2
|
+
export{R as R0,r as S0,o as T0,e as U0,I as V0,O as W0,U as X0,VJ as Y0,a as Z0,WJ as _0,jJ as $0,yJ as a1,n as b1,zJ as c1,s as d1};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{hg as NG,ig as UG,lg as VJ}from"./cli-1.1.31-612bpjx6.mjs";import{$t as jG,DH as uG,Eu as CG,Iu as dJ,Mt as zJ,Nm as JJ,Ny as JG,Om as gJ,Ot as wG,Oy as YJ,Pt as hG,Qt as TG,Qy as cG,Rt as dG,Ru as MG,Ss as h,Su as XJ,Ts as $G,Tu as m,Us as FG,Ut as DG,Uu as fG,Vu as t,Ws as hJ,Wu as PG,YI as GG,ZI as qJ,gu as PJ,gv as IG,hv as KJ,mH as ZJ,nH as CJ,pt as LJ,pu as pJ,qt as AG,st as QJ,wH as LG,xt as TJ}from"./cli-1.1.31-g58b1jfa.mjs";import{$X as kG,BZ as GJ,NZ as qG,SX as BG,dZ as C,fZ as Y,hZ as Q,lZ as EG}from"./cli-1.1.31-13cx7z8n.mjs";import{f1 as gG,g1 as AJ}from"./cli-1.1.31-g41zancj.mjs";import{T1 as eG,d2 as _J}from"./cli-1.1.31-9m6ef5kb.mjs";import{o3 as a,p3 as L,q3 as X,r3 as x}from"./cli-1.1.31-eqfmzrxc.mjs";import{s3 as pG}from"./cli-1.1.31-9d5v98td.mjs";import{C7 as SJ,k7 as sG}from"./cli-1.1.31-adnn5x8c.mjs";import{Fea as HG,Gea as FJ,Oea as mG,Pha as rG,Sha as bJ,X_ as S,Y_ as tG,nea as OG,oea as yG,pea as WJ}from"./cli-1.1.31-p99fz46k.mjs";import{Rja as _G,Sja as BJ}from"./cli-1.1.31-h5a78vp8.mjs";import{qla as zG,xla as oG}from"./cli-1.1.31-dmghye74.mjs";import{hsa as s,lsa as e}from"./cli-1.1.31-qj8vksz8.mjs";function WG(J){let G=lG.c(9),{serverToolsCount:Z,serverPromptsCount:F,serverResourcesCount:q}=J,z;if(G[0]!==F||G[1]!==q||G[2]!==Z){if(z=[],Z>0)z.push("tools");if(q>0)z.push("resources");if(F>0)z.push("prompts");G[0]=F,G[1]=q,G[2]=Z,G[3]=z}else z=G[3];let k;if(G[4]===Symbol.for("react.memo_cache_sentinel"))k=L(Q,{bold:!0,children:"Capabilities: "}),G[4]=k;else k=G[4];let W;if(G[5]!==z)W=z.length>0?L(t,{children:z}):"none",G[5]=z,G[6]=W;else W=G[6];let w;if(G[7]!==W)w=X(Y,{children:[k,L(Q,{color:"text",children:W})]}),G[7]=W,G[8]=w;else w=G[8];return w}var lG;var bG=e(()=>{qG();PG();x();lG=s(BG(),1)});function KG(J,G){switch(J.client.type){case"connected":return{message:`Reconnected to ${G}.`,success:!0};case"needs-auth":return{message:`${G} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${G}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${G}.`,success:!1}}}function VG(J,G){let Z=J instanceof Error?J.message:String(J);return`Error reconnecting to ${G}: ${Z}`}var SG=()=>{};function NL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:F,onComplete:q,borderless:z=!1}){let[k]=kG(),W=MG(),{columns:w}=JJ(),[I,U]=E.default.useState(!1),[p,R]=E.default.useState(null),_=JG((V)=>V.mcp),f=YJ(),[O,K]=E.default.useState(null),[P,D]=E.useState(!1),N=E.useRef(null),[g,$]=E.useState(!1),[j,T]=E.useState(null),[A,y]=E.useState(!1),[c,u]=E.useState(null),[n,i]=E.useState(!1),[l,r]=E.useState(!1),v=E.useRef(void 0),B=E.useRef(!1),[vG,QG]=E.useState(""),[kJ,wJ]=E.useState(0),[xG,aG]=E.useState(null);E.useEffect(()=>()=>{if(B.current=!0,N.current?.abort(),v.current!==void 0)clearTimeout(v.current)},[]);let XG=J.isAuthenticated||J.client.type==="connected"&&G>0,YG=NG(),DJ=E.default.useCallback(async()=>{$(!1),T(null),D(!0);try{let V=await YG(J.name);if(V.client.type==="connected")q?.(`Authentication successful. Connected to ${J.name}.`);else if(V.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}catch(V){q?.(VG(V,J.name))}finally{D(!1)}},[YG,J.name,q]),MJ=E.default.useCallback(async()=>{await CG(J.name,{...J.config,scope:J.scope}),f((V)=>{let H=V.mcp.clients.map((o)=>o.name===J.name?{...o,type:"needs-auth"}:o),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),ZG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:H,tools:M,commands:d,resources:ZG}}}),q?.(`Disconnected from ${J.name}.`),y(!1),u(null),i(!1)},[J.name,J.config,J.scope,f,q]);FG("confirm:no",()=>{N.current?.abort(),N.current=null,U(!1),K(null)},{context:"Confirmation",isActive:I}),FG("confirm:no",()=>{$(!1),T(null)},{context:"Confirmation",isActive:g}),FG("confirm:no",()=>{y(!1),u(null),i(!1)},{context:"Confirmation",isActive:A}),GJ((V,H)=>{if(H.return&&g)DJ();if(H.return&&A)if(n)MJ();else{let M=`${_G().CLAUDE_AI_ORIGIN}/settings/connectors`;u(M),i(!0),gG(M)}if(V==="c"&&!l){let M=O||j||c;if(M)eG(M).then((d)=>{if(B.current)return;if(d)process.stdout.write(d);if(r(!0),v.current!==void 0)clearTimeout(v.current);v.current=setTimeout(r,2000,!1)})}});let fJ=HG(String(J.name)),NJ=wG(_.commands,J.name).length,nG=UG(),UJ=E.default.useCallback(async()=>{let V=_G().CLAUDE_AI_ORIGIN,M=sG()?.organizationUuid,d;if(M&&J.config.type==="claudeai-proxy"&&J.config.id){let ZG=J.config.id.startsWith("mcprs")?"mcpsrv"+J.config.id.slice(5):J.config.id,o=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${V}/api/organizations/${M}/mcp/start-auth/${ZG}?product_surface=${o}`}else d=`${V}/settings/connectors`;T(d),$(!0),await gG(d)},[J.config]),RJ=E.default.useCallback(()=>{y(!0)},[]),OJ=E.default.useCallback(async()=>{let V=J.client.type!=="disabled";try{await nG(J.name),F()}catch(H){q?.(`Failed to ${V?"disable":"enable"} MCP server '${J.name}': ${zG(H)}`)}},[J.client.type,J.config.type,J.name,nG,F,q]),yJ=E.default.useCallback(async()=>{if(J.config.type==="claudeai-proxy")return;U(!0),R(null);let V=new AbortController;N.current=V;try{if(J.isAuthenticated&&J.config)await AG(J.name,J.config,{preserveStepUpState:!0});if(J.config){await QJ(J.name,J.config,K,V.signal,{onWaitingForCallback:(M)=>{aG(()=>M)}});let H=await YG(J.name);if(H.client.type==="connected"){let M=XG?`Authentication successful. Reconnected to ${J.name}.`:`Authentication successful. Connected to ${J.name}.`;q?.(M)}else if(H.client.type==="needs-auth")q?.("Authentication successful, but server still requires authentication. You may need to manually restart Claudin.");else rG(J.name,"Reconnection failed after authentication"),q?.("Authentication successful, but server reconnection failed. You may need to manually restart Claudin for the changes to take effect.")}}catch(H){if(H instanceof Error&&!(H instanceof LJ))R(H.message)}finally{U(!1),N.current=null,aG(null),QG("")}},[J.isAuthenticated,J.config,J.name,q,YG,XG]),IJ=async()=>{if(J.config.type==="claudeai-proxy")return;if(J.config)await AG(J.name,J.config),await CG(J.name,{...J.config,scope:J.scope}),f((V)=>{let H=V.mcp.clients.map((o)=>o.name===J.name?{...o,type:"failed"}:o),M=hG(V.mcp.tools,J.name),d=TG(V.mcp.commands,J.name),ZG=dG(V.mcp.resources,J.name);return{...V,mcp:{...V.mcp,clients:H,tools:M,commands:d,resources:ZG}}}),q?.(`Authentication cleared for ${J.name}.`)};if(I)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(GG,{}),L(Q,{children:" A browser window will open for authentication"})]}),O&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),l?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(EG,{url:O})]}),I&&O&&xG&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),X(Y,{children:[X(Q,{dimColor:!0,children:["URL ",">"," "]}),L(ZJ,{value:vG,onChange:QG,onSubmit:(H)=>{xG(H.trim()),QG("")},cursorOffset:kJ,onChangeCursorOffset:wJ,columns:w-8})]})]}),L(Y,{marginLeft:3,children:L(Q,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]});if(g)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Authenticating with ",J.name,"…"]}),X(Y,{children:[L(GG,{}),L(Q,{children:" A browser window will open for authentication"})]}),j&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),l?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(EG,{url:j})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"claude",children:["Clear authentication for ",J.name]}),n?X(a,{children:[L(Q,{children:'Find the MCP server in the browser and click "Disconnect".'}),c&&X(Y,{flexDirection:"column",children:[X(Y,{children:[X(Q,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),l?L(Q,{color:"success",children:"(Copied!)"}):L(Q,{dimColor:!0,children:L(h,{shortcut:"c",action:"copy",parens:!0})})]}),L(EG,{url:c})]}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," when done."]}),L(Q,{dimColor:!0,italic:!0,children:L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):X(a,{children:[L(Q,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),X(Y,{marginLeft:3,flexDirection:"column",children:[X(Q,{color:"permission",children:["Press ",L(Q,{bold:!0,children:"Enter"})," to open the browser."]}),L(Q,{dimColor:!0,italic:!0,children:L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(P)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Connecting to ",L(Q,{bold:!0,children:J.name}),"…"]}),X(Y,{children:[L(GG,{}),L(Q,{children:" Establishing connection to MCP server"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});let b=[];if(J.client.type==="disabled")b.push({label:"Enable",value:"toggle-enabled"});if(J.client.type==="connected"&&G>0)b.push({label:"View tools",value:"tools"});if(J.config.type==="claudeai-proxy"){if(J.client.type==="connected")b.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(J.client.type!=="disabled")b.push({label:"Authenticate",value:"claudeai-auth"})}else{if(XG)b.push({label:"Re-authenticate",value:"reauth"}),b.push({label:"Clear authentication",value:"clear-auth"});if(!XG)b.push({label:"Authenticate",value:"auth"})}if(J.client.type!=="disabled"){if(J.client.type!=="needs-auth")b.push({label:"Reconnect",value:"reconnectMcpServer"});b.push({label:"Disable",value:"toggle-enabled"})}if(b.length===0)b.push({label:"Back",value:"back"});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:z?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[fJ," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[C("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[C("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(a,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):J.client.type==="needs-auth"?X(Q,{children:[C("warning",k)(S.triangleUpOutline)," needs authentication"]}):X(Q,{children:[C("error",k)(S.cross)," failed"]})]}),J.transport!=="claudeai-proxy"&&X(Y,{children:[L(Q,{bold:!0,children:"Auth: "}),XG?X(Q,{children:[C("success",k)(S.tick)," authenticated"]}):X(Q,{children:[C("error",k)(S.cross)," not authenticated"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"URL: "}),L(Q,{dimColor:!0,children:J.config.url})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:DG(J.scope)})]}),J.client.type==="connected"&&L(WG,{serverToolsCount:G,serverPromptsCount:NJ,serverResourcesCount:_.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),p&&L(Y,{marginTop:1,children:X(Q,{color:"error",children:["Error: ",p]})}),b.length>0&&L(Y,{marginTop:1,children:L(LG,{options:b,onChange:async(V)=>{switch(V){case"tools":Z();break;case"auth":case"reauth":await yJ();break;case"clear-auth":await IJ();break;case"claudeai-auth":await UJ();break;case"claudeai-clear-auth":RJ();break;case"reconnectMcpServer":D(!0);try{let H=await YG(J.name),{message:M}=KG(H,J.name);q?.(M)}catch(H){q?.(VG(H,J.name))}finally{D(!1)}break;case"toggle-enabled":await OJ();break;case"back":F();break}},onCancel:F})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(a,{children:["Press ",W.keyName," again to exit"]}):X(t,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var mJ=e(()=>{tG();BJ();XJ();gJ();_J();qG();hJ();TJ();dJ();VJ();jG();cG();SJ();AJ();oG();bJ();mG();fG();uG();PG();$G();qJ();CJ();bG();SG();x();E=s(pG(),1)});function jL({server:J,serverToolsCount:G,onViewTools:Z,onCancel:F,onComplete:q,borderless:z=!1}){let[k]=kG(),W=MG(),w=JG((P)=>P.mcp),I=NG(),U=UG(),[p,R]=RG.useState(!1),_=RG.default.useCallback(async()=>{let P=J.client.type!=="disabled";try{await U(J.name),F()}catch(D){q(`Failed to ${P?"disable":"enable"} MCP server '${J.name}': ${zG(D)}`)}},[J.client.type,J.name,U,F,q]),f=HG(String(J.name)),O=wG(w.commands,J.name).length,K=[];if(J.client.type!=="disabled"&&G>0)K.push({label:"View tools",value:"tools"});if(J.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:J.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if(p)return X(Y,{flexDirection:"column",gap:1,padding:1,children:[X(Q,{color:"text",children:["Reconnecting to ",L(Q,{bold:!0,children:J.name})]}),X(Y,{children:[L(GG,{}),L(Q,{children:" Restarting MCP server process"})]}),L(Q,{dimColor:!0,children:"This may take a few moments."})]});return X(Y,{flexDirection:"column",children:[X(Y,{flexDirection:"column",paddingX:1,borderStyle:z?void 0:"round",children:[L(Y,{marginBottom:1,children:X(Q,{bold:!0,children:[f," MCP Server"]})}),X(Y,{flexDirection:"column",gap:0,children:[X(Y,{children:[L(Q,{bold:!0,children:"Status: "}),J.client.type==="disabled"?X(Q,{children:[C("inactive",k)(S.radioOff)," disabled"]}):J.client.type==="connected"?X(Q,{children:[C("success",k)(S.tick)," connected"]}):J.client.type==="pending"?X(a,{children:[L(Q,{dimColor:!0,children:S.radioOff}),L(Q,{children:" connecting…"})]}):X(Q,{children:[C("error",k)(S.cross)," failed"]})]}),X(Y,{children:[L(Q,{bold:!0,children:"Command: "}),L(Q,{dimColor:!0,children:J.config.command})]}),J.config.args&&J.config.args.length>0&&X(Y,{children:[L(Q,{bold:!0,children:"Args: "}),L(Q,{dimColor:!0,children:J.config.args.join(" ")})]}),X(Y,{children:[L(Q,{bold:!0,children:"Config location: "}),L(Q,{dimColor:!0,children:DG(PJ(J.name)?.scope??"dynamic")})]}),J.client.type==="connected"&&L(WG,{serverToolsCount:G,serverPromptsCount:O,serverResourcesCount:w.resources[J.name]?.length||0}),J.client.type==="connected"&&G>0&&X(Y,{children:[L(Q,{bold:!0,children:"Tools: "}),X(Q,{dimColor:!0,children:[G," tools"]})]})]}),K.length>0&&L(Y,{marginTop:1,children:L(LG,{options:K,onChange:async(P)=>{if(P==="tools")Z();else if(P==="reconnectMcpServer"){R(!0);try{let D=await I(J.name),{message:N}=KG(D,J.name);q?.(N)}catch(D){q?.(VG(D,J.name))}finally{R(!1)}}else if(P==="toggle-enabled")await _();else if(P==="back")F()},onCancel:F})})]}),L(Y,{marginTop:1,children:L(Q,{dimColor:!0,italic:!0,children:W.pending?X(a,{children:["Press ",W.keyName," again to exit"]}):X(t,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var RG;var $J=e(()=>{tG();XJ();qG();pJ();VJ();jG();cG();oG();mG();fG();uG();PG();$G();qJ();bG();SG();x();RG=s(pG(),1)});function nL(J){let G=EJ.c(44),{tool:Z,server:F,onBack:q}=J,[z,k]=iG.default.useState(""),W,w;if(G[0]!==F.name||G[1]!==Z){w=OG(Z.name,F.name);let r=Z.userFacingName?Z.userFacingName({}):w;W=yG(r),G[0]=F.name,G[1]=Z,G[2]=W,G[3]=w}else W=G[2],w=G[3];let I=W,U;if(G[4]!==Z)U=Z.isReadOnly?.({})??!1,G[4]=Z,G[5]=U;else U=G[5];let p=U,R;if(G[6]!==Z)R=Z.isDestructive?.({})??!1,G[6]=Z,G[7]=R;else R=G[7];let _=R,f;if(G[8]!==Z)f=Z.isOpenWorld?.({})??!1,G[8]=Z,G[9]=f;else f=G[9];let O=f,K,P;if(G[10]!==Z)K=()=>{(async function(){try{let B=await Z.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});k(B)}catch{k("Failed to load description")}})()},P=[Z],G[10]=Z,G[11]=K,G[12]=P;else K=G[11],P=G[12];iG.default.useEffect(K,P);let D;if(G[13]!==p)D=p&&L(Q,{color:"success",children:" [read-only]"}),G[13]=p,G[14]=D;else D=G[14];let N;if(G[15]!==_)N=_&&L(Q,{color:"error",children:" [destructive]"}),G[15]=_,G[16]=N;else N=G[16];let g;if(G[17]!==O)g=O&&L(Q,{dimColor:!0,children:" [open-world]"}),G[17]=O,G[18]=g;else g=G[18];let $;if(G[19]!==I||G[20]!==D||G[21]!==N||G[22]!==g)$=X(a,{children:[I,D,N,g]}),G[19]=I,G[20]=D,G[21]=N,G[22]=g,G[23]=$;else $=G[23];let j=$,T;if(G[24]===Symbol.for("react.memo_cache_sentinel"))T=L(Q,{bold:!0,children:"Tool name: "}),G[24]=T;else T=G[24];let A;if(G[25]!==w)A=X(Y,{children:[T,L(Q,{dimColor:!0,children:w})]}),G[25]=w,G[26]=A;else A=G[26];let y;if(G[27]===Symbol.for("react.memo_cache_sentinel"))y=L(Q,{bold:!0,children:"Full name: "}),G[27]=y;else y=G[27];let c;if(G[28]!==Z.name)c=X(Y,{children:[y,L(Q,{dimColor:!0,children:Z.name})]}),G[28]=Z.name,G[29]=c;else c=G[29];let u;if(G[30]!==z)u=z&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Description:"}),L(Q,{wrap:"wrap",children:z})]}),G[30]=z,G[31]=u;else u=G[31];let n;if(G[32]!==Z.inputJSONSchema)n=Z.inputJSONSchema&&Z.inputJSONSchema.properties&&Object.keys(Z.inputJSONSchema.properties).length>0&&X(Y,{flexDirection:"column",marginTop:1,children:[L(Q,{bold:!0,children:"Parameters:"}),L(Y,{marginLeft:2,flexDirection:"column",children:Object.entries(Z.inputJSONSchema.properties).map((r)=>{let[v,B]=r,QG=Z.inputJSONSchema?.required?.includes(v);return X(Q,{children:["• ",v,QG&&L(Q,{dimColor:!0,children:" (required)"}),":"," ",L(Q,{dimColor:!0,children:typeof B==="object"&&B&&"type"in B?String(B.type):"unknown"}),typeof B==="object"&&B&&"description"in B&&X(Q,{dimColor:!0,children:[" - ",String(B.description)]})]},v)})})]}),G[32]=Z.inputJSONSchema,G[33]=n;else n=G[33];let i;if(G[34]!==A||G[35]!==c||G[36]!==u||G[37]!==n)i=X(Y,{flexDirection:"column",children:[A,c,u,n]}),G[34]=A,G[35]=c,G[36]=u,G[37]=n,G[38]=i;else i=G[38];let l;if(G[39]!==q||G[40]!==F.name||G[41]!==i||G[42]!==j)l=L(IG,{title:j,subtitle:F.name,onCancel:q,inputGuide:jJ,children:i}),G[39]=q,G[40]=F.name,G[41]=i,G[42]=j,G[43]=l;else l=G[43];return l}function jJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var EJ,iG;var cJ=e(()=>{qG();WJ();fG();KJ();x();EJ=s(BG(),1),iG=s(pG(),1)});function ZQ(J){let G=HJ.c(21),{server:Z,onSelectTool:F,onBack:q}=J,z=JG(iJ),k;G:{if(Z.client.type!=="connected"){let P;if(G[0]===Symbol.for("react.memo_cache_sentinel"))P=[],G[0]=P;else P=G[0];k=P;break G}let K;if(G[1]!==z||G[2]!==Z.name)K=zJ(z,Z.name),G[1]=z,G[2]=Z.name,G[3]=K;else K=G[3];k=K}let W=k,w;if(G[4]!==Z.name||G[5]!==W){let K;if(G[7]!==Z.name)K=(P,D)=>{let N=OG(P.name,Z.name),g=P.userFacingName?P.userFacingName({}):N,$=yG(g),j=P.isReadOnly?.({})??!1,T=P.isDestructive?.({})??!1,A=P.isOpenWorld?.({})??!1,y=[];if(j)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:$,value:D.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":j?"success":void 0}},G[7]=Z.name,G[8]=K;else K=G[8];w=W.map(K),G[4]=Z.name,G[5]=W,G[6]=w}else w=G[6];let I=w,U=`Tools for ${Z.name}`,p=W.length,R;if(G[9]!==W.length)R=FJ(W.length,"tool"),G[9]=W.length,G[10]=R;else R=G[10];let _=`${p} ${R}`,f;if(G[11]!==q||G[12]!==F||G[13]!==W||G[14]!==I)f=W.length===0?L(Q,{dimColor:!0,children:"No tools available"}):L(LG,{options:I,onChange:(K)=>{let P=parseInt(K),D=W[P];if(D)F(D,P)},onCancel:q}),G[11]=q,G[12]=F,G[13]=W,G[14]=I,G[15]=f;else f=G[15];let O;if(G[16]!==q||G[17]!==U||G[18]!==_||G[19]!==f)O=L(IG,{title:U,subtitle:_,onCancel:q,inputGuide:uJ,children:f}),G[16]=q,G[17]=U,G[18]=_,G[19]=f,G[20]=O;else O=G[20];return O}function uJ(J){return J.pending?X(Q,{children:["Press ",J.keyName," again to exit"]}):X(t,{children:[L(h,{shortcut:"↑↓",action:"navigate"}),L(h,{shortcut:"Enter",action:"select"}),L(m,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function iJ(J){return J.mcp.tools}var HJ;var vJ=e(()=>{qG();WJ();jG();cG();mG();fG();uG();PG();KJ();$G();x();HJ=s(BG(),1)});
|
|
2
|
+
export{NL as $f,mJ as ag,jL as bg,$J as cg,nL as dg,cJ as eg,ZQ as fg,vJ as gg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{lsa as B}from"./cli-1.1.31-qj8vksz8.mjs";function F(z){let k=z.trim();if(!k.startsWith("/"))return null;let b=k.slice(1).split(" ");if(!b[0])return null;let j=b[0],l=!1,q=1;if(b.length>1&&b[1]==="(MCP)")j=j+" (MCP)",l=!0,q=2;let A=b.slice(q).join(" ");return{commandName:j,args:A,isMcp:l}}var C=()=>{};
|
|
2
|
+
export{F as sj,C as tj};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{asa as x,csa as y,gsa as C}from"./cli-1.1.31-z7hdz84q.mjs";import{jsa as k}from"./cli-1.1.31-qj8vksz8.mjs";var MF=k((n)=>{var K=x(),b=C(),w=y(),f=(F)=>F[K.SMITHY_CONTEXT_KEY]||(F[K.SMITHY_CONTEXT_KEY]={}),h=(F,J)=>{if(!J||J.length===0)return F;let G=[];for(let L of J)for(let Q of F)if(Q.schemeId.split("#")[1]===L)G.push(Q);for(let L of F)if(!G.find(({schemeId:Q})=>Q===L.schemeId))G.push(L);return G};function v(F){let J=new Map;for(let G of F)J.set(G.schemeId,G);return J}var j=(F,J)=>(G,L)=>async(Q)=>{let V=F.httpAuthSchemeProvider(await J.httpAuthSchemeParametersProvider(F,L,Q.input)),W=F.authSchemePreference?await F.authSchemePreference():[],Z=h(V,W),Y=v(F.httpAuthSchemes),U=w.getSmithyContext(L),$=[];for(let X of Z){let B=Y.get(X.schemeId);if(!B){$.push(`HttpAuthScheme \`${X.schemeId}\` was not enabled for this service.`);continue}let D=B.identityProvider(await J.identityProviderConfigProvider(F));if(!D){$.push(`HttpAuthScheme \`${X.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:N={},signingProperties:R={}}=X.propertiesExtractor?.(F,L)||{};X.identityProperties=Object.assign(X.identityProperties||{},N),X.signingProperties=Object.assign(X.signingProperties||{},R),U.selectedHttpAuthScheme={httpAuthOption:X,identity:await D(X.identityProperties),signer:B.signer};break}if(!U.selectedHttpAuthScheme)throw Error($.join(`
|
|
2
|
+
`));return G(Q)},H={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},P=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),H)}}),M={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},l=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),M)}}),m=(F)=>(J)=>{throw J},u=(F,J)=>{},O=(F)=>(J,G)=>async(L)=>{if(!b.HttpRequest.isInstance(L.request))return J(L);let V=w.getSmithyContext(G).selectedHttpAuthScheme;if(!V)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:W={}},identity:Z,signer:Y}=V,U=await J({...L,request:await Y.sign(L.request,Z,W)}).catch((Y.errorHandler||m)(W));return(Y.successHandler||u)(U.response,W),U},I={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},c=(F)=>({applyToStack:(J)=>{J.addRelativeTo(O(),I)}}),a=(F)=>{if(typeof F==="function")return F;let J=Promise.resolve(F);return()=>J},d=async(F,J,G,L=(V)=>V,...Q)=>{let V=new F(G);return V=L(V)??V,await J.send(V,...Q)};function g(F,J,G,L,Q){return async function*(W,Z,...Y){let U=Z,$=W.startingToken??U[G],X=!0,B;while(X){if(U[G]=$,Q)U[Q]=U[Q]??W.pageSize;if(W.client instanceof F)B=await d(J,W.client,Z,W.withCommand,...Y);else throw Error(`Invalid client, expected instance of ${F.name}`);yield B;let D=$;$=p(B,L),X=!!($&&(!W.stopOnSameToken||$!==D))}return}}var p=(F,J)=>{let G=F,L=J.split(".");for(let Q of L){if(!G||typeof G!=="object")return;G=G[Q]}return G};function s(F,J,G){if(!F.__smithy_context)F.__smithy_context={features:{}};else if(!F.__smithy_context.features)F.__smithy_context.features={};F.__smithy_context.features[J]=G}class E{authSchemes=new Map;constructor(F){for(let J in F){let G=F[J];if(G!==void 0)this.authSchemes.set(J,G)}}getIdentityProvider(F){return this.authSchemes.get(F)}}class _{async sign(F,J,G){if(!G)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!G.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!G.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!J.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let L=b.HttpRequest.clone(F);if(G.in===K.HttpApiKeyAuthLocation.QUERY)L.query[G.name]=J.apiKey;else if(G.in===K.HttpApiKeyAuthLocation.HEADER)L.headers[G.name]=G.scheme?`${G.scheme} ${J.apiKey}`:J.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+G.in+"`");return L}}class z{async sign(F,J,G){let L=b.HttpRequest.clone(F);if(!J.token)throw Error("request could not be signed with `token` since the `token` is not defined");return L.headers.Authorization=`Bearer ${J.token}`,L}}class A{async sign(F,J,G){return F}}var q=(F)=>function(G){return S(G)&&G.expiration.getTime()-Date.now()<F},T=300000,r=q(T),S=(F)=>F.expiration!==void 0,o=(F,J,G)=>{if(F===void 0)return;let L=typeof F!=="function"?async()=>Promise.resolve(F):F,Q,V,W,Z=!1,Y=async(U)=>{if(!V)V=L(U);try{Q=await V,W=!0,Z=!1}finally{V=void 0}return Q};if(J===void 0)return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);return Q};return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);if(Z)return Q;if(!G(Q))return Z=!0,Q;if(J(Q))return await Y(U),Q;return Q}};n.requestBuilder=b.requestBuilder;n.DefaultIdentityProviderConfig=E;n.EXPIRATION_MS=T;n.HttpApiKeyAuthSigner=_;n.HttpBearerAuthSigner=z;n.NoAuthSigner=A;n.createIsIdentityExpiredFunction=q;n.createPaginator=g;n.doesIdentityRequireRefresh=S;n.getHttpAuthSchemeEndpointRuleSetPlugin=P;n.getHttpAuthSchemePlugin=l;n.getHttpSigningPlugin=c;n.getSmithyContext=f;n.httpAuthSchemeEndpointRuleSetMiddlewareOptions=H;n.httpAuthSchemeMiddleware=j;n.httpAuthSchemeMiddlewareOptions=M;n.httpSigningMiddleware=O;n.httpSigningMiddlewareOptions=I;n.isIdentityExpired=r;n.memoizeIdentityProvider=o;n.normalizeProvider=a;n.setFeature=s});
|
|
3
|
+
export{MF as S9};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Kha as j,Lga as X,Mga as K,Sha as p,dha as G2,eha as V2,sha as K2}from"./cli-1.1.31-p99fz46k.mjs";import{Ska as N,Vka as b}from"./cli-1.1.31-t6m64e0q.mjs";import{sla as W,xla as S}from"./cli-1.1.31-dmghye74.mjs";import{Fla as Z,Lla as T}from"./cli-1.1.31-wba64b2s.mjs";import{lsa as V}from"./cli-1.1.31-qj8vksz8.mjs";function U(J){if(typeof J!=="string")return;let P=J.trim();return P?P:void 0}function d(J=process.env){return U(J.KIMI_OAUTH_CLIENT_ID)??"17e5f671-d194-4dfb-9706-5516cb48c098"}function I(J=process.env){return U(J.KIMI_CLI_VERSION)??"0.27.0"}function t(J){let P=J.split(".");if(P.length<2)return;try{let L=P[1].replace(/-/g,"+").replace(/_/g,"/"),H=L+"=".repeat((4-L.length%4)%4),q=Buffer.from(H,"base64").toString("utf8"),Q=JSON.parse(q);return Q&&typeof Q==="object"?Q:void 0}catch{return}}var b2="https://auth.kimi.com/api/oauth/device_authorization",m="https://auth.kimi.com/api/oauth/token",g2="urn:ietf:params:oauth:grant-type:device_code",n="kimi_code_cli",l="node",u2="k3, kimi-for-coding, kimi-for-coding-highspeed";var A=()=>{};import{arch as N2,hostname as Y2,release as o,type as X2}from"os";import{randomUUID as s}from"crypto";function D2(){return X({allowPlainTextFallback:!0})}async function O2(){if(Y)return Y;if(Z())return Y=s(),Y;let J=D2();try{let L=U((await J.readAsync())?.[a]);if(L)return Y=L,L}catch(L){if(!W(L))j(L)}let P=s();try{let L=J.read()||{};J.update({...L,[a]:P})}catch(L){j(L)}return Y=P,P}function k2(J){return{"X-Msh-Platform":n,"X-Msh-Version":I(),"X-Msh-Device-Name":Y2(),"X-Msh-Device-Model":`${X2()} ${o()} ${N2()}`,"X-Msh-Os-Version":o(),"X-Msh-Device-Id":J}}async function E(){return k2(await O2())}var a="kimiDeviceId",Y;var v=V(()=>{T();S();p();K();A()});function i(){B=null}function M(){return X({allowPlainTextFallback:!0})}function F2(J){if(!J)return;let P=t(J)?.exp;return typeof P==="number"&&Number.isFinite(P)?P*1000:void 0}function z(J){if(!J||typeof J!=="object")return;let P=J,L=U(P.accessToken);if(!L)return;let H=(q)=>typeof q==="number"&&Number.isFinite(q)?q:void 0;return{accessToken:L,refreshToken:U(P.refreshToken),profileId:U(P.profileId),expiresAt:H(P.expiresAt),lastRefreshAt:H(P.lastRefreshAt),lastRefreshFailureAt:H(P.lastRefreshFailureAt)}}function C2(J){let P=J.expiresAt??F2(J.accessToken);if(P===void 0)return!1;return P<=Date.now()+B2}function I2(J,P=Date.now()){let L=Math.max(J.lastRefreshFailureAt??0,x??0);if(!L)return!1;return P-L<z2}function A2(J,P){if(!P.trim())return`Kimi token refresh failed with status ${J}.`;try{let L=JSON.parse(P),H=U(L.error_description)??U(L.error)??P.trim();return`Kimi token refresh failed with status ${J}: ${H}`}catch{return`Kimi token refresh failed with status ${J}: ${P.trim()}`}}function q4(){if(Z())return;try{let J=M().read();return z(J?.[D])}catch(J){if(!W(J))j(J);return}}async function g(){if(Z())return;let J=Date.now();if(B&&B.expiresAt>J)return B.blob;try{let P=await M().readAsync(),L=z(P?.[D]);return B={blob:L,expiresAt:J+f2},L}catch(P){if(!W(P))j(P);return}}function r(J){if(Z())return{success:!1,warning:"Bare mode: secure storage is disabled."};let P=z(J);if(!P)return{success:!1,warning:"Kimi credentials are incomplete."};let L=M(),H=L.read()||{},q=z(H[D]),Q={...H,[D]:{...P,profileId:P.profileId??q?.profileId,expiresAt:P.expiresAt??q?.expiresAt,lastRefreshAt:P.lastRefreshAt??Date.now()}},$=L.update(Q);if(i(),$.success)x=z(Q[D])?.lastRefreshFailureAt??null;return $}function E2(J,P){if(!r({...J,lastRefreshFailureAt:P}).success)x=P}function Q4(){if(Z())return{success:!0};let J=M(),L={...J.read()||{}};delete L[D];let H=J.update(L);if(i(),H.success)x=null;else{let q=H.warning??"secure storage update failed";return j(`clearKimiCredentials: failed to remove Kimi entry (${q})`),{success:!1,warning:q}}return H}async function e(J){if(Z())return{refreshed:!1};let P=await g();if(!P)return{refreshed:!1};if(!P.refreshToken)return{refreshed:!1,credentials:P};if(!J?.force&&!C2(P))return{refreshed:!1,credentials:P};if(!J?.force&&I2(P))return{refreshed:!1,credentials:P};if(k)return k;return k=(async()=>{let L=Date.now();try{let H=await fetch(m,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":l,...await E()},body:new URLSearchParams({client_id:d(),grant_type:"refresh_token",refresh_token:P.refreshToken}),signal:AbortSignal.timeout(15000)});if(!H.ok){let C=await H.text().catch(()=>"");throw Error(A2(H.status,C))}let q=await H.json(),Q=U(q.access_token);if(!Q)throw Error("Kimi token refresh succeeded without a new access token.");let $=typeof q.expires_in==="number"&&Number.isFinite(q.expires_in)&&q.expires_in>0?q.expires_in:900,G={accessToken:Q,refreshToken:U(q.refresh_token)??P.refreshToken,profileId:P.profileId,expiresAt:Date.now()+$*1000,lastRefreshAt:Date.now()},_=r(G);if(!_.success)N(`[kimi] token refresh succeeded but credentials could not be saved: ${_.warning??"unknown error"}`,{level:"warn"});return{refreshed:!0,credentials:G}}catch(H){throw E2(P,L),H}finally{k=null}})(),k}var D="kimiCode",B2=60000,z2=60000,k=null,x=null,f2=30000,B=null;var P2=V(()=>{b();T();S();v();p();K();A()});function x2(){try{if(typeof MACRO<"u")return"1.1.31"}catch{return}return}function R(){return`claudin/${x2()??"dev"}`}var u=()=>{};function w(J){if(typeof J!=="string")return;let P=J.trim();return P?P:void 0}function L2(J=process.env){return w(J.XAI_OAUTH_CLIENT_ID)??"b1a00492-073a-47ea-816f-4c329264a828"}function H2(J){let P=J.split(".");if(P.length<2)return;try{let L=P[1].replace(/-/g,"+").replace(/_/g,"/"),H=L+"=".repeat((4-L.length%4)%4),q=Buffer.from(H,"base64").toString("utf8"),Q=JSON.parse(q);return Q&&typeof Q==="object"?Q:void 0}catch{return}}var J2="https://auth.x.ai/oauth2/token",U4="https://auth.x.ai/oauth2/device/code",j4="urn:ietf:params:oauth:grant-type:device_code",w4="openid profile email offline_access grok-cli:access api:access";var q2=()=>{};function y(){return X({allowPlainTextFallback:!0})}function Q2(J){if(!J)return;let L=H2(J)?.exp;if(typeof L==="number"&&Number.isFinite(L))return L*1000;return}function F(J){if(!J||typeof J!=="object")return;let P=J,L=w(P.accessToken);if(!L)return;let H=w(P.refreshToken),q=w(P.idToken),Q=w(P.profileId),$=typeof P.lastRefreshAt==="number"&&Number.isFinite(P.lastRefreshAt)?P.lastRefreshAt:void 0,G=typeof P.lastRefreshFailureAt==="number"&&Number.isFinite(P.lastRefreshFailureAt)?P.lastRefreshFailureAt:void 0,_=typeof P.expiresAt==="number"&&Number.isFinite(P.expiresAt)?P.expiresAt:void 0;return{accessToken:L,refreshToken:H,idToken:q,profileId:Q,expiresAt:_,lastRefreshAt:$,lastRefreshFailureAt:G}}function h2(J){let P=J.expiresAt??Q2(J.accessToken)??Q2(J.idToken);if(P===void 0)return!1;return P<=Date.now()+M2}function y2(J,P=Date.now()){let L=Math.max(J.lastRefreshFailureAt??0,h??0);if(!L)return!1;return P-L<R2}function T2(J,P){if(!P.trim())return`xAI token refresh failed with status ${J}.`;try{let L=JSON.parse(P),H=L.error&&typeof L.error==="object"?L.error:void 0,q=w(H?.code??L.code),Q=w(H?.message??L.error_description)??P.trim();return q?`xAI token refresh failed (${q}): ${Q}`:`xAI token refresh failed with status ${J}: ${Q}`}catch{return`xAI token refresh failed with status ${J}: ${P.trim()}`}}function O4(){if(Z())return;try{let J=y().read();return F(J?.[O])}catch(J){if(!W(J))j(J);return}}async function c(){if(Z())return;try{let J=await y().readAsync();return F(J?.[O])}catch(J){if(!W(J))j(J);return}}function Z2(J){if(Z())return{success:!1,warning:"Bare mode: secure storage is disabled."};let P=F(J);if(!P)return{success:!1,warning:"xAI credentials are incomplete."};let L=y(),H=L.read()||{},q=F(H[O]),Q={...H,[O]:{...P,profileId:P.profileId??q?.profileId,expiresAt:P.expiresAt??q?.expiresAt,lastRefreshAt:P.lastRefreshAt??Date.now()}},$=L.update(Q);if($.success)h=F(Q[O])?.lastRefreshFailureAt??null;return $}function S2(J,P){if(!Z2({...J,lastRefreshFailureAt:P}).success)h=P}function k4(){if(Z())return{success:!0};let J=y(),L={...J.read()||{}};delete L[O];let H=J.update(L);if(H.success)h=null;else{let q=H.warning??"secure storage update failed";return j(`clearXaiCredentials: failed to remove xAI entry (${q})`),{success:!1,warning:q}}return H}async function $2(J){if(Z())return{refreshed:!1};let P=await c();if(!P)return{refreshed:!1};if(!P.refreshToken)return{refreshed:!1,credentials:P};if(!J?.force&&!h2(P))return{refreshed:!1,credentials:P};if(!J?.force&&y2(P))return{refreshed:!1,credentials:P};if(f)return f;return f=(async()=>{let L=Date.now();try{let H=new URLSearchParams({client_id:L2(),grant_type:"refresh_token",refresh_token:P.refreshToken}),q=await fetch(J2,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":R()},body:H,signal:AbortSignal.timeout(15000)});if(!q.ok){let _2=await q.text().catch(()=>"");throw Error(T2(q.status,_2))}let Q=await q.json(),$=w(Q.access_token);if(!$)throw Error("xAI token refresh succeeded without a new access token.");let G=typeof Q.expires_in==="number"&&Number.isFinite(Q.expires_in)&&Q.expires_in>0?Q.expires_in:3600,_={accessToken:$,refreshToken:w(Q.refresh_token)??P.refreshToken,idToken:w(Q.id_token)??P.idToken,profileId:P.profileId,expiresAt:Date.now()+G*1000,lastRefreshAt:Date.now()},C=Z2(_);if(!C.success)N(`[xai] token refresh succeeded but credentials could not be saved: ${C.warning??"unknown error"}`,{level:"warn"});return{refreshed:!0,credentials:_}}catch(H){throw S2(P,L),H}finally{f=null}})(),f}var O="xai",M2=120000,R2=60000,f=null,h=null;var U2=V(()=>{b();T();S();p();K();u();q2()});function j2(){return`kimi-code-cli/${I()}`}var w2=V(()=>{A()});function W2(J){return p2.find((P)=>P.matches(J))}async function R4(J){let P=W2(J?.baseUrl);if(!P)return{};let L;if(!J?.apiKey)L=(await P.refresh().catch(async(q)=>{return N(`[${P.id}] access token refresh failed before request: ${q instanceof Error?q.message:String(q)}`,{level:"warn"}),{credentials:await P.readCredentials()}})).credentials?.accessToken??void 0;if(L||P.attachHeadersWithoutToken)return{accessToken:L,userAgent:P.userAgent(),deviceHeaders:P.deviceHeaders?await P.deviceHeaders():void 0};return{}}async function h4(J){let P=W2(J);if(!P)return"no-match";return await P.refresh({force:!0}).then(()=>!0,(H)=>{return N(`[${P.id}] force-refresh on 401 failed: ${H instanceof Error?H.message:String(H)}`,{level:"warn"}),!1})?"refreshed":"failed"}var p2;var v2=V(()=>{b();P2();v();w2();U2();u();K2();p2=[{id:"xai",matches:G2,refresh:$2,readCredentials:c,userAgent:R,attachHeadersWithoutToken:!1},{id:"kimi",matches:V2,refresh:e,readCredentials:g,userAgent:j2,deviceHeaders:E,attachHeadersWithoutToken:!0}]});
|
|
2
|
+
export{b2 as h0,m as i0,g2 as j0,l as k0,u2 as l0,U as m0,d as n0,A as o0,E as p0,v as q0,q4 as r0,g as s0,r as t0,Q4 as u0,e as v0,P2 as w0,j2 as x0,w2 as y0,R as z0,u as A0,J2 as B0,U4 as C0,j4 as D0,w4 as E0,w as F0,L2 as G0,q2 as H0,O4 as I0,c as J0,Z2 as K0,k4 as L0,$2 as M0,U2 as N0,R4 as O0,h4 as P0,v2 as Q0};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{DH as Fq,Nm as j,Ny as u,Om as Nq,Os as w,Oy as g,Ps as Qq,Qs as m,Qy as Wq,Rs as Xq,Ru as S,Ss as V,Su as $q,Ts as Yq,Us as d,Vu as p,Ws as Zq,Wu as zq,Wy as c,Zy as T,_y as _q,bz as r,cz as Vq,lS as a,nS as Kq,wH as h}from"./cli-1.1.31-g58b1jfa.mjs";import{$X as H,NZ as Lq,aY as v,bY as y,fZ as J,hZ as N}from"./cli-1.1.31-13cx7z8n.mjs";import{o3 as _,p3 as q,q3 as G,r3 as b}from"./cli-1.1.31-eqfmzrxc.mjs";import{s3 as Jq}from"./cli-1.1.31-9d5v98td.mjs";import{Bfa as Gq,lfa as B}from"./cli-1.1.31-p99fz46k.mjs";import{hsa as e,lsa as qq}from"./cli-1.1.31-qj8vksz8.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[K]=H(),U=v(),{columns:i}=j(),Y=Q.useMemo(()=>c(),[]),Z=Y===null?T(K):null,{setPreviewTheme:k,savePreview:M,cancelPreview:R}=y(),z=u((L)=>L.settings.syntaxHighlightingDisabled??!1),f=g();w("ThemePicker",!0);let W=m("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),l=Q.useCallback(()=>{if(Y===null){let L=!z;B("userSettings",{syntaxHighlightingDisabled:L}),f((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,f]);d("theme:toggleSyntaxHighlighting",l,{context:"ThemePicker"});let D=S($?()=>{}:void 0),E=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"},{label:"Terminal default (inherit colors)",value:"terminal"},{label:"Dracula",value:"dracula"},{label:"Catppuccin Mocha (dark)",value:"catppuccin-mocha"},{label:"Catppuccin Latte (light)",value:"catppuccin-latte"},{label:"Tokyo Night",value:"tokyo-night"},{label:"Nord",value:"nord"},{label:"Gruvbox Dark",value:"gruvbox-dark"}],[]),o=Q.useCallback((L)=>{k(L)},[k]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else a(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDIN_SYNTAX_HIGHLIGHT=${process.env.CLAUDIN_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(h,{options:E,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:E.length,defaultValue:U,defaultFocusValue:U})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Iq,{patch:Oq,dim:!1,filePath:"demo.js",firstLine:null,width:i})},K),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:D.pending?G(_,{children:["Press ",D.keyName," again to exit"]}):G(p,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Iq,Oq;var Aq=qq(()=>{$q();Nq();Lq();Qq();Zq();Xq();Wq();Kq();Gq();Fq();zq();Yq();_q();Vq();b();Q=e(Jq(),1),Iq=r,Oq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
|
|
2
|
+
export{mq as Gh,Aq as Hh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Bma as F,Yqa as I,xma as z}from"./cli-1.1.31-b8rbgfhm.mjs";import{lsa as E}from"./cli-1.1.31-qj8vksz8.mjs";import{AsyncLocalStorage as J}from"async_hooks";function U(G,H){return D.run(G,H)}function K(){return D.getStore()??F()}function V(){try{return K()}catch{return z()}}function W(){return D.getStore()??z()}var D;var M=E(()=>{I();D=new J});var Y="command-name",Z="command-message",$="command-args",j="bash-input",q="bash-stdout",B="bash-stderr",L="local-command-stdout",R="local-command-stderr",_="local-command-caveat",b="tick",x="task-notification",A="task-id",T="tool-use-id",k="task-type",p="output-file",u="status",v="summary",y="worktree",f="worktreePath",C="worktreeBranch",S="remote-review",O="remote-review-progress",m="teammate-message",g="fork-boilerplate",h="Your directive: ",l,w;var N=E(()=>{l=["help","-h","--help"],w=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
|
|
2
|
+
export{U as cja,K as dja,V as eja,W as fja,M as gja,Y as hja,Z as ija,$ as jja,j as kja,q as lja,B as mja,L as nja,R as oja,_ as pja,b as qja,x as rja,A as sja,T as tja,k as uja,p as vja,u as wja,v as xja,y as yja,f as zja,C as Aja,S as Bja,O as Cja,m as Dja,g as Eja,h as Fja,l as Gja,w as Hja,N as Ija};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ksa as Q,lsa as U}from"./cli-1.1.31-qj8vksz8.mjs";var w={};Q(w,{default:()=>x,createSupportsColor:()=>K});import M from"node:process";import V from"node:os";import O from"node:tty";function z(q,B=globalThis.Deno?globalThis.Deno.args:M.argv){let D=q.startsWith("-")?"":q.length===1?"-":"--",E=B.indexOf(D+q),G=B.indexOf("--");return E!==-1&&(G===-1||E<G)}function X(){if(!("FORCE_COLOR"in j))return;if(j.FORCE_COLOR==="true")return 1;if(j.FORCE_COLOR==="false")return 0;if(j.FORCE_COLOR.length===0)return 1;let q=Math.min(Number.parseInt(j.FORCE_COLOR,10),3);if(![0,1,2,3].includes(q))return;return q}function Z(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function $(q,{streamIsTTY:B,sniffFlags:D=!0}={}){let E=X();if(E!==void 0)H=E;let G=D?H:E;if(G===0)return 0;if(D){if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2}if("TF_BUILD"in j&&"AGENT_NAME"in j)return 1;if(q&&!B&&G===void 0)return 0;let J=G||0;if(j.TERM==="dumb")return J;if(M.platform==="win32"){let A=V.release().split(".");if(Number(A[0])>=10&&Number(A[2])>=10586)return Number(A[2])>=14931?3:2;return 1}if("CI"in j){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((A)=>(A in j)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((A)=>(A in j))||j.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in j)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(j.TEAMCITY_VERSION)?1:0;if(j.COLORTERM==="truecolor")return 3;if(j.TERM==="xterm-kitty")return 3;if(j.TERM==="xterm-ghostty")return 3;if(j.TERM==="wezterm")return 3;if("TERM_PROGRAM"in j){let A=Number.parseInt((j.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(j.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(j.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(j.TERM))return 1;if("COLORTERM"in j)return 1;return J}function K(q,B={}){let D=$(q,{streamIsTTY:q&&q.isTTY,...B});return Z(D)}var j,H,b,x;var L=U(()=>{({env:j}=M);if(z("no-color")||z("no-colors")||z("color=false")||z("color=never"))H=0;else if(z("color")||z("colors")||z("color=true")||z("color=always"))H=1;b={stdout:K({isTTY:O.isatty(1)}),stderr:K({isTTY:O.isatty(2)})},x=b});
|
|
2
|
+
export{K as F_,w as G_,L as H_};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{mg as bD,ng as pD}from"./cli-1.1.31-4awnya8e.mjs";import{$r as YD,$t as uD,At as LD,Bt as VD,Dt as gD,Eu as C,Iu as vD,Nt as kD,Ny as r,Oy as WD,Py as _D,Qy as mD,St as qD,_r as XD,bu as BD,cu as jD,ds as ZD,hu as l,lu as ID,ns as CD,nt as zD,nu as x,ot as SD,ou as a,pu as fD,qu as KD,tu as dD,uu as o,vu as s,wu as i,xu as g,yu as c}from"./cli-1.1.31-g58b1jfa.mjs";import{SX as iD}from"./cli-1.1.31-13cx7z8n.mjs";import{p3 as PD,r3 as $D}from"./cli-1.1.31-eqfmzrxc.mjs";import{s3 as QD}from"./cli-1.1.31-9d5v98td.mjs";import{Oha as A,Pha as _,Sha as ND,kea as OD,pea as MD}from"./cli-1.1.31-p99fz46k.mjs";import{Ska as JD,Vka as TD}from"./cli-1.1.31-t6m64e0q.mjs";import{qla as R,xla as xD}from"./cli-1.1.31-dmghye74.mjs";import{Yqa as RD,rma as HD}from"./cli-1.1.31-b8rbgfhm.mjs";import{hsa as n,lsa as d}from"./cli-1.1.31-qj8vksz8.mjs";function e(F){v.add(F)}function m(F){v.delete(F)}function p(F){return v.has(F)}var v;var DD=d(()=>{v=new Set});function FD(F){let G="plugin"in F?F.plugin:"no-plugin";return`${F.type}:${F.source}:${G}`}function GD(F,G){if(G.length===0)return;F((q)=>{let w=new Set(q.plugins.errors.map((L)=>FD(L))),b=G.filter((L)=>!w.has(FD(L)));if(b.length===0)return q;return{...q,plugins:{...q.plugins,errors:[...q.plugins.errors,...b]}}})}function oD(F,G,q,w){let b=G==="disabled"?w??[]:w;if(b===void 0)return F;let L=new Map;for(let z of b)if(z.name!==void 0)L.set(z.name,z);let X=[],y=new Set;for(let z of F){if(!z.name?.startsWith(q)){X.push(z);continue}let K=L.get(z.name);if(K)X.push(K),y.add(z.name)}for(let z of b)if(z.name===void 0||!y.has(z.name))X.push(z);return X}function UD(F,G=!1){let q=_D(),w=r((D)=>D.authVersion),b=r((D)=>D.mcp.pluginReconnectKey),L=WD(),X=j.useRef(new Map),y=16,z=j.useRef([]),K=j.useRef(null),E=j.useCallback(()=>{K.current=null;let D=z.current;if(D.length===0)return;z.current=[],L((H)=>{let J=H.mcp;for(let V of D){let{tools:Q,commands:I,resources:U,...Y}=V,B=Y.type==="disabled"||Y.type==="failed"?I??[]:I,O=Y.type==="disabled"||Y.type==="failed"?U??[]:U,Z=OD(Y.name),P=J.clients.findIndex((T)=>T.name===Y.name)===-1?[...J.clients,Y]:J.clients.map((T)=>T.name===Y.name?Y:T),S=oD(J.tools,Y.type,Z,Q),h=B===void 0?J.commands:[...zD(J.commands,(T)=>kD(T,Y.name)),...B],f=O===void 0?J.resources:{...J.resources,...O.length>0?{[Y.name]:O}:bD(J.resources,Y.name)};J={...J,clients:P,tools:S,commands:h,resources:f}}return{...H,mcp:J}})},[L]),W=j.useCallback((D)=>{if(z.current.push(D),K.current===null)K.current=setTimeout(E,16)},[E]),$=j.useCallback(({client:D,tools:H,commands:J,resources:V})=>{switch(W({...D,tools:H,commands:J,resources:V}),D.type){case"connected":{if(KD(D.client,D.name,L),D.client.onclose=()=>{let Q=D.config.type??"stdio";if(C(D.name,D.config).catch(()=>{JD(`Failed to invalidate the server cache: ${D.name}`)}),x(D.name)||p(D.name)){_(D.name,"Server is disabled, skipping automatic reconnection");return}if(Q!=="stdio"&&Q!=="sdk"){let I=sD(Q);_(D.name,`${I} transport closed/disconnected, attempting automatic reconnection`);let U=X.current.get(D.name);if(U)clearTimeout(U),X.current.delete(D.name);(async()=>{for(let B=1;B<=M;B++){if(x(D.name)||p(D.name)){_(D.name,"Server disabled during reconnection, stopping retry"),X.current.delete(D.name);return}W({...D,type:"pending",reconnectAttempt:B,maxReconnectAttempts:M});let O=Date.now();try{let k=await g(D.name,D.config),P=Date.now()-O;if(k.client.type==="connected"){_(D.name,`${I} reconnection successful after ${P}ms (attempt ${B})`),X.current.delete(D.name),$(k);return}if(_(D.name,`${I} reconnection attempt ${B} completed with status: ${k.client.type}`),B===M){_(D.name,`Max reconnection attempts (${M}) reached, giving up`),X.current.delete(D.name),$(k);return}}catch(k){let P=Date.now()-O;if(A(D.name,`${I} reconnection attempt ${B} failed after ${P}ms: ${k}`),B===M){_(D.name,`Max reconnection attempts (${M}) reached, giving up`),X.current.delete(D.name),W({...D,type:"failed"});return}}let Z=Math.min(lD*Math.pow(2,B-1),aD);_(D.name,`Scheduling reconnection attempt ${B+1} in ${Z}ms`),await new Promise((k)=>{let P=setTimeout(k,Z);X.current.set(D.name,P)})}})()}else W({...D,type:"failed"})},D.capabilities?.tools?.listChanged)D.client.setNotificationHandler(ZD,async()=>{_(D.name,"Received tools/list_changed notification, refreshing tools");try{o.cache.delete(D.name);let Q=await o(D);W({...D,tools:Q})}catch(Q){A(D.name,`Failed to refresh tools after list_changed notification: ${R(Q)}`)}});if(D.capabilities?.prompts?.listChanged)D.client.setNotificationHandler(YD,async()=>{_(D.name,"Received prompts/list_changed notification, refreshing prompts");try{i.cache.delete(D.name);let Q=await i(D);W({...D,commands:[...Q]})}catch(Q){A(D.name,`Failed to refresh prompts after list_changed notification: ${R(Q)}`)}});if(D.capabilities?.resources?.listChanged)D.client.setNotificationHandler(XD,async()=>{_(D.name,"Received resources/list_changed notification, refreshing resources");try{s.cache.delete(D.name);let Q=await s(D);W({...D,resources:Q})}catch(Q){A(D.name,`Failed to refresh resources after list_changed notification: ${R(Q)}`)}});break}case"needs-auth":case"failed":case"pending":case"disabled":break}},[W]),t=HD();j.useEffect(()=>{async function D(){let{servers:H,errors:J}=G?{servers:{},errors:[]}:await l(F),V={...H,...F};GD(L,J),L((Q)=>{let{stale:I,...U}=qD(Q.mcp,V);for(let O of I){let Z=X.current.get(O.name);if(Z)clearTimeout(Z),X.current.delete(O.name);if(O.type==="connected")O.client.onclose=void 0,C(O.name,O.config).catch(()=>{})}let Y=new Set(U.clients.map((O)=>O.name)),B=Object.entries(V).filter(([O])=>!Y.has(O)).map(([O,Z])=>({name:O,type:x(O)?"disabled":"pending",config:Z}));if(B.length===0&&I.length===0)return Q;return{...Q,mcp:{...Q.mcp,...U,clients:[...U.clients,...B]}}})}D().catch((H)=>{A("useManageMCPConnections",`Failed to initialize servers as pending: ${R(H)}`)})},[G,F,L,t,b]),j.useEffect(()=>{let D=!1;async function H(){let J;if(G||ID())J=Promise.resolve({});else VD(),J=LD();let{servers:V,errors:Q}=G?{servers:{},errors:[]}:await l(F,J);if(D)return;GD(L,Q);let I={...V,...F},U=Object.fromEntries(Object.entries(I).filter(([Z])=>!x(Z)));c($,U).catch((Z)=>{A("useManageMcpConnections",`Failed to get MCP resources: ${R(Z)}`)});let Y={};if(!G){if(Y=jD(await J).allowed,D)return;if(Object.keys(Y).length>0){let{servers:Z}=BD(Y,I);Y=Z}if(Object.keys(Y).length>0){L((k)=>{let P=new Set(k.mcp.clients.map((h)=>h.name)),S=Object.entries(Y).filter(([h])=>!P.has(h)).map(([h,f])=>({name:h,type:x(h)?"disabled":"pending",config:f}));if(S.length===0)return k;return{...k,mcp:{...k.mcp,clients:[...k.mcp.clients,...S]}}});let Z=Object.fromEntries(Object.entries(Y).filter(([k])=>!x(k)));c($,Z).catch((k)=>{A("useManageMcpConnections",`Failed to get claude.ai MCP resources: ${R(k)}`)})}}let B={...I,...Y},O={enterprise:0,global:0,project:0,user:0,plugin:0,claudeai:0};for(let Z of Object.values(B))if(Z.scope==="enterprise")O.enterprise++;else if(Z.scope==="user")O.global++;else if(Z.scope==="project")O.project++;else if(Z.scope==="local")O.user++;else if(Z.scope==="dynamic")O.plugin++;else if(Z.scope==="claudeai")O.claudeai++}return H(),()=>{D=!0}},[G,F,$,L,w,t,b]),j.useEffect(()=>{let D=X.current;return()=>{for(let H of D.values())clearTimeout(H);if(D.clear(),K.current!==null)clearTimeout(K.current),K.current=null,E()}},[E]);let hD=j.useCallback(async(D)=>{let H=q.getState().mcp.clients.find((Q)=>Q.name===D);if(!H)throw Error(`MCP server ${D} not found`);let J=X.current.get(D);if(J)clearTimeout(J),X.current.delete(D);m(D);let V=await g(D,H.config);return $(V),V},[q,$]),AD=j.useCallback(async(D)=>{let H=q.getState().mcp.clients.find((V)=>V.name===D);if(!H)throw Error(`MCP server ${D} not found`);if(H.type!=="disabled"){let V=X.current.get(D);if(V)clearTimeout(V),X.current.delete(D);if(a(D,!1),H.type==="connected")await C(D,H.config);W({name:D,type:"disabled",config:H.config})}else{a(D,!0),m(D),W({name:D,type:"pending",config:H.config});let V=await g(D,H.config);$(V)}},[q,W,$]),yD=j.useCallback(async(D)=>{let H=q.getState().mcp.clients.find((V)=>V.name===D);if(!H)throw Error(`MCP server ${D} not found`);e(D);let J=X.current.get(D);if(J)clearTimeout(J),X.current.delete(D);if(H.type==="connected")await C(D,H.config);W({name:D,type:"disabled",config:H.config})},[q,W]);return{reconnectMcpServer:hD,toggleMcpServer:AD,disconnectMcpServer:yD}}function sD(F){switch(F){case"http":return"HTTP";case"ws":case"ws-ide":return"WebSocket";default:return"SSE"}}var j,M=5,lD=1000,aD=30000;var ED=d(()=>{RD();vD();CD();pD();SD();fD();TD();mD();xD();ND();gD();dD();MD();DD();uD();j=n(QD(),1)});function jF(){let F=N.useContext(u);if(!F)throw Error("useMcpReconnect must be used within MCPConnectionManager");return F.reconnectMcpServer}function IF(){let F=N.useContext(u);if(!F)throw Error("useMcpToggleEnabled must be used within MCPConnectionManager");return F.toggleMcpServer}function KF(){let F=N.useContext(u);if(!F)throw Error("useMcpDisconnect must be used within MCPConnectionManager");return F.disconnectMcpServer}function WF(F){let G=wD.c(7),{children:q,dynamicMcpConfig:w,isStrictMcpConfig:b}=F,{reconnectMcpServer:L,toggleMcpServer:X,disconnectMcpServer:y}=UD(w,b),z;if(G[0]!==L||G[1]!==X||G[2]!==y)z={reconnectMcpServer:L,toggleMcpServer:X,disconnectMcpServer:y},G[0]=L,G[1]=X,G[2]=y,G[3]=z;else z=G[3];let K=z,E;if(G[4]!==q||G[5]!==K)E=PD(u.Provider,{value:K,children:q}),G[4]=q,G[5]=K,G[6]=E;else E=G[6];return E}var wD,N,u;var cD=d(()=>{ED();$D();wD=n(iD(),1),N=n(QD(),1),u=N.createContext(null)});
|
|
2
|
+
export{jF as hg,IF as ig,KF as jg,WF as kg,cD as lg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{C7 as D,c7 as q}from"./cli-1.1.31-adnn5x8c.mjs";import{Rja as m,Sja as z}from"./cli-1.1.31-h5a78vp8.mjs";import{lsa as x}from"./cli-1.1.31-qj8vksz8.mjs";function E(){return process.env.CLAUDE_BRIDGE_OAUTH_TOKEN||void 0}function F(){return process.env.CLAUDE_BRIDGE_BASE_URL||void 0}function K(){return E()??q()?.accessToken}function M(){return F()??m().BASE_API_URL}var G=x(()=>{z();D()});
|
|
2
|
+
export{E as Oi,F as Pi,K as Qi,M as Ri,G as Si};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{B7 as v,C7 as C}from"./cli-1.1.31-adnn5x8c.mjs";import{e_ as R,w_ as O}from"./cli-1.1.31-nyvjx813.mjs";import{Kfa as Z,Lga as x,Mfa as V,Mga as Y,aaa as W,eaa as X,maa as U}from"./cli-1.1.31-p99fz46k.mjs";import{Rja as Q,Sja as M}from"./cli-1.1.31-h5a78vp8.mjs";import{Aka as I,Ska as f,Vka as L,vka as P}from"./cli-1.1.31-t6m64e0q.mjs";import{qla as w,xla as H}from"./cli-1.1.31-dmghye74.mjs";import{vra as N,wra as F}from"./cli-1.1.31-thhdw5e1.mjs";import{isa as h,lsa as B}from"./cli-1.1.31-qj8vksz8.mjs";import{hostname as E}from"os";function $(){return W(G,!1)}function u(){if(!$())return;return y()}function n(){y.cache?.clear?.()}function o(){if(!$())return;let i=x();try{let q=i.read();if(q?.trustedDeviceToken)delete q.trustedDeviceToken,i.update(q)}catch{}y.cache?.clear?.()}async function t(){try{if(!await X(G)){f(`[trusted-device] Gate ${G} is off, skipping enrollment`);return}if(process.env.CLAUDE_TRUSTED_DEVICE_TOKEN){f("[trusted-device] CLAUDE_TRUSTED_DEVICE_TOKEN env var is set, skipping enrollment (env var takes precedence)");return}let{getClaudeAIOAuthTokens:i}=(C(),h(v)),q=i()?.accessToken;if(!q){f("[trusted-device] No OAuth token, skipping enrollment");return}let J=x();if(Z()){f("[trusted-device] Essential traffic only, skipping enrollment");return}let b=Q().BASE_API_URL,m;try{m=await R.post(`${b}/api/auth/trusted_devices`,{display_name:`Claude Code on ${E()} · ${process.platform}`},{headers:{Authorization:`Bearer ${q}`,"Content-Type":"application/json"},timeout:1e4,validateStatus:(j)=>j<500})}catch(j){f(`[trusted-device] Enrollment request failed: ${w(j)}`);return}if(m.status!==200&&m.status!==201){f(`[trusted-device] Enrollment failed ${m.status}: ${P(m.data).slice(0,200)}`);return}let z=m.data?.device_token;if(!z||typeof z!=="string"){f("[trusted-device] Enrollment response missing device_token field");return}try{let j=J.read();if(!j){f("[trusted-device] Cannot read storage, skipping token persist");return}j.trustedDeviceToken=z;let K=J.update(j);if(!K.success){f(`[trusted-device] Failed to persist token: ${K.warning??"unknown"}`);return}y.cache?.clear?.(),f(`[trusted-device] Enrolled device_id=${m.data.device_id??"unknown"}`)}catch(j){f(`[trusted-device] Storage write failed: ${w(j)}`)}}catch(i){f(`[trusted-device] Enrollment error: ${w(i)}`)}}var G="tengu_sessions_elevated_auth_enforcement",y;var d=B(()=>{O();F();M();U();L();H();V();Y();I();y=N(()=>{let i=process.env.CLAUDE_TRUSTED_DEVICE_TOKEN;if(i)return i;return x().read()?.trustedDeviceToken})});
|
|
2
|
+
export{u as bW,n as cW,o as dW,t as eW,d as fW};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Vf as A,Wf as J,Xf as $,_f as G}from"./cli-1.1.31-w0vfcfhs.mjs";import{Iga as h,Q$ as O,S$ as R,Y$ as b,kga as w,oga as S,pga as C,wga as x}from"./cli-1.1.31-p99fz46k.mjs";import{Jja as N,Sja as m}from"./cli-1.1.31-h5a78vp8.mjs";import{Ala as F,Lla as D}from"./cli-1.1.31-wba64b2s.mjs";import{lsa as E}from"./cli-1.1.31-qj8vksz8.mjs";import{existsSync as T}from"fs";import{dirname as f}from"path";function M(q,z,Q={}){if(!T(q))return{outcome:"noSource",copiedKeys:0};let B=A(q);if(!B)return{outcome:"unparseableSource",copiedKeys:0};let L=T(z),U=L?A(z)??{}:{},I={...U},W=0;for(let V of Q.keys??Object.keys(B)){if(!(V in B))continue;if(V in U)continue;I[V]=B[V],W+=1}if(W===0&&L)return{outcome:"merged",copiedKeys:0};try{$(f(z)),J(z,I)}catch(V){return{outcome:"writeFailed",copiedKeys:0,message:V instanceof Error?V.message:String(V)}}return{outcome:"merged",copiedKeys:W}}var k=E(()=>{G()});import{chmodSync as v,existsSync as _,readFileSync as j,writeFileSync as y}from"fs";import{homedir as H}from"os";import{join as Z}from"path";function P(q){return Z(q,".claude")}function d(q,z,Q,B){let L=Z(q,".credentials.json"),U=Z(z,".credentials.json");if(!_(L))return 0;try{if(_(U)){let W=j(L),V=j(U);if(W.equals(V))return v(U,384),0;return B.push(`${U} already exists with different content — kept new file untouched`),0}$(z);let I=j(L);return y(U,I),v(U,384),g(I)}catch(I){return Q.push(`failed to copy .credentials.json: ${I instanceof Error?I.message:String(I)}`),0}}function g(q){try{let z=JSON.parse(q.toString("utf8"));if(z&&typeof z==="object")return Object.keys(z).length}catch{}return 1}function c(q,z,Q){let B=M(Z(q,"settings.json"),Z(z,"settings.json"),{keys:u});if(B.outcome==="unparseableSource")Q.push("legacy settings.json could not be parsed; skipped");else if(B.outcome==="writeFailed")Q.push(`failed to write settings.json: ${B.message}`);return B.copiedKeys}function K(q){return Z(q,`.claude${N()}.json`)}function l(q){return Z(q,`config${N()}.json`)}function p(q,z,Q){let B=K(q),L=l(z),U=M(B,L);if(U.outcome==="unparseableSource")return Q.push(`legacy ${B} could not be parsed; skipped`),0;if(U.outcome==="writeFailed")return Q.push(`failed to write ${L}: ${U.message}`),0;if(U.outcome==="noSource")return 0;return b(null),U.copiedKeys}function a(){let z=R().claudeToClaudinMigratedAt;if(typeof z==="string"&&z.length>0)return{migrated:!0,at:z};return{migrated:!1}}function n(q){O((z)=>({...z,claudeToClaudinMigratedAt:q}))}async function Zq(q={}){let z=q.homeDir??H(),Q=P(z),B=q.newDir??F(),L=[],U=[],I={tokens:0,settingsKeys:0,globalConfigKeys:0,anthropicProfileCreated:!1,errors:L,warnings:U,alreadyMigrated:!1,legacyDir:Q,newDir:B},W=_(K(z));if(!_(Q)&&!W)return I;let V=a();if(V.migrated&&!q.force)return I.alreadyMigrated=!0,I.migratedAt=V.at,I;try{$(B)}catch(Y){return L.push(`failed to create ${B}: ${Y instanceof Error?Y.message:String(Y)}`),I}if(_(Q))I.tokens=d(Q,B,L,U),I.settingsKeys=c(Q,B,L);if(I.globalConfigKeys=p(z,B,U),I.anthropicProfileCreated=i(B,I.tokens,U),L.length===0){let Y=new Date().toISOString();n(Y),I.migratedAt=Y}return I}function i(q,z,Q){if(z<=0)return!1;let B=Z(q,".credentials.json"),L;try{L=JSON.parse(j(B,"utf8"))}catch(X){return Q.push(`failed to read migrated .credentials.json for profile bootstrap: ${X instanceof Error?X.message:String(X)}`),!1}let I=L?.claudeAiOauth?.accessToken;if(typeof I!=="string"||I.length===0)return!1;let W=C();if(W.some((X)=>X.provider==="anthropic"))return!1;let V=S("anthropic"),Y={provider:"anthropic",name:V.name,baseUrl:V.baseUrl,model:V.model};try{if(!x(Y,{makeActive:W.length===0}))return Q.push("anthropic profile could not be saved after migration"),!1;return!0}catch(X){return Q.push(`failed to create anthropic profile: ${X instanceof Error?X.message:String(X)}`),!1}}function _q(q){if(q.alreadyMigrated)return`nothing to do (last run: ${q.migratedAt??"unknown"}). Pass --force to re-run.`;let z=[];z.push(`${q.tokens} token${q.tokens===1?"":"s"}`),z.push(`${q.settingsKeys} settings key${q.settingsKeys===1?"":"s"}`),z.push(`${q.globalConfigKeys} global config key${q.globalConfigKeys===1?"":"s"}`),z.push(q.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let Q=z.join(", "),B=`. ${q.legacyDir} kept untouched. Run /import to bring skills, MCP servers, agents and commands.`,L=`${Q}${B}`;if(q.warnings.length>0)L+=` Warnings: ${q.warnings.join("; ")}`;if(q.errors.length>0)L+=` Errors: ${q.errors.join("; ")}`;return L}function o(q=H()){return _(P(q))}function t(q=H()){return _(K(q))}function $q(q=H()){let z=R();if(z.claudeToClaudinMigratedAt)return!1;if(z.legacyMigrationSkipped===!0)return!1;return o(q)||t(q)}function jq(){O((q)=>({...q,legacyMigrationSkipped:!0}))}var u;var s=E(()=>{m();w();G();k();D();h();u=["customApiKeyResponses","providerProfiles","activeProviderProfileId"]});
|
|
2
|
+
export{Zq as xc,_q as yc,o as zc,$q as Ac,jq as Bc,s as Cc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Xn as J,Zn as Y}from"./cli-1.1.31-g58b1jfa.mjs";import{RV as G,TV as X}from"./cli-1.1.31-yz72mhbg.mjs";import{C7 as W,c7 as B,g4 as z,h7 as D,i7 as F,l4 as V}from"./cli-1.1.31-adnn5x8c.mjs";import{e_ as y,w_ as Q}from"./cli-1.1.31-nyvjx813.mjs";import{Rja as w,Sja as N}from"./cli-1.1.31-h5a78vp8.mjs";import{lsa as M}from"./cli-1.1.31-qj8vksz8.mjs";async function f(){if(!D()||!F())return{};let q=B();if(q&&z(q.expiresAt))return null;let m=J();if(m.error)throw Error(`Auth error: ${m.error}`);let K={"Content-Type":"application/json","User-Agent":G(),...m.headers},L=`${w().BASE_API_URL}/api/oauth/usage`;return(await y.get(L,{headers:K,timeout:5000})).data}var Z=M(()=>{Q();N();W();Y();X();V()});
|
|
2
|
+
export{f as Ih,Z as Jh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$a as d}from"./cli-1.1.31-s1a6vw53.mjs";import{$m as y,AA as Gj,DS as m,ES as S,FS as A,GR as Jj,HT as Vj,Mm as s,QS as c,XS as p,Xx as k,YS as X,Yx as w,Zq as h,ar as V,bl as $,by as zj,cl as n,en as t,gr as qj,jT as Qj,jl as v,kl as r,ny as C,py as Bj,rm as P,sG as D,sm as R,tG as Hj,uT as F,un as E,vn as e,wk as O,yL as x,yk as o,zA as I}from"./cli-1.1.31-g58b1jfa.mjs";import{ZU as W,mV as jj}from"./cli-1.1.31-44jshpbd.mjs";import{IW as f,LW as Kj}from"./cli-1.1.31-sn0x975f.mjs";import{M5 as T,T5 as u}from"./cli-1.1.31-adnn5x8c.mjs";import{eja as Z,gja as i}from"./cli-1.1.31-5tgfa7xy.mjs";import{Ska as b,Vka as l}from"./cli-1.1.31-t6m64e0q.mjs";import{Uoa as M,Uqa as K,Woa as N,Yqa as g,rma as U,uma as _,zma as Y}from"./cli-1.1.31-b8rbgfhm.mjs";g();e();zj();qj();r();o();import{dirname as Xj}from"path";Vj();Kj();i();l();Bj();Jj();u();t();n();Gj();Qj();jj();Hj();s();function Yj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===v);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=D().safeParse(G.todos);return H.success?H.data:[]}return[]}function Aj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)C(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!W()&&j.messages&&j.messages.length>0){let B=Yj(j.messages);if(B.length>0){let z=U();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function Zj(j){return}function $j(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function Pj(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return b(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!M()&&z.model&&z.model!=="inherit")N(T(z.model));return{agentDefinition:z,agentType:z.agentType}}async function Rj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:h(H)}}function yj(j){let q=P();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}I(j.worktreePath),Y(Z()),R(j),F(),E(),y.cache.clear?.(),$()}function cj(){let j=P();if(!j)return;R(null),F(),E(),y.cache.clear?.(),$();try{process.chdir(j.originalCwd)}catch{return}I(j.originalCwd),Y(Z())}async function pj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(x(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(_(O(Q),q.transcriptPath?Xj(q.transcriptPath):null),await d(),await S(),!k(Q))w(j.messages)}}else if(j.contentReplacements?.length)await m(j.contentReplacements);if(c(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)yj(j.worktreeSession),A();let{agentDefinition:G,agentType:H}=Pj(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);p(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?Zj(j):void 0,L=$j(j.agentName,j.agentColor);f(j.agentName);let a=await Rj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...L&&{standaloneAgentContext:L},agentDefinitions:a}}}
|
|
2
|
+
export{Aj as Ba,$j as Ca,Pj as Da,yj as Ea,cj as Fa,pj as Ga};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{GF as C,KF as S,NF as O,Rp as N,Sp as D,TF as _,Tp as x,VF as P,Vp as A,Wp as b,YF as h,ZF as f,bG as c}from"./cli-1.1.31-g58b1jfa.mjs";import{Bfa as E,Kha as H,Sha as T,Zda as L,fea as v,jfa as G,lfa as M,ofa as R}from"./cli-1.1.31-p99fz46k.mjs";import{eja as U,gja as F}from"./cli-1.1.31-5tgfa7xy.mjs";import{Ska as w,Vka as y}from"./cli-1.1.31-t6m64e0q.mjs";import{lsa as m}from"./cli-1.1.31-qj8vksz8.mjs";import{join as I}from"path";async function e(){let q=R(),J=[],Q=N();for(let[z,K]of Object.entries(Q))if(z.includes("@")&&K)J.push(z);if(q.enabledPlugins)for(let[z,K]of Object.entries(q.enabledPlugins)){if(!z.includes("@"))continue;let W=J.indexOf(z);if(K){if(W===-1)J.push(z)}else if(W!==-1)J.splice(W,1)}return J}function qq(){let q=new Map,J=N();for(let[z,K]of Object.entries(J)){if(!z.includes("@"))continue;if(K===!0)q.set(z,"flag");else if(K===!1)q.delete(z)}let Q=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:z,source:K}of Q){let W=G(K);if(!W?.enabledPlugins)continue;for(let[V,Y]of Object.entries(W.enabledPlugins)){if(!V.includes("@"))continue;if(V in J&&J[V]!==Y)w(`Plugin ${V} from --add-dir (${J[V]}) overridden by ${K} (${Y})`);if(Y===!0)q.set(V,z);else if(Y===!1)q.delete(V)}}return w(`Found ${q.size} enabled plugins with scopes: ${Array.from(q.entries()).map(([z,K])=>`${z}(${K})`).join(", ")}`),q}function zq(q){return x[q]}async function Jq(){_().catch((Q)=>{H(Q)});let q=O(),J=Object.keys(q.plugins);return w(`Found ${J.length} installed plugins`),J}async function Kq(q,J,Q="user"){let z=Q!=="user"?U():void 0,K=A(Q),W=G(K),V={...W?.enabledPlugins},Y=[],B=[];for(let k=0;k<q.length;k++){let X=q[k];if(!X)continue;if(J)J(X,k+1,q.length);try{let Z=await C(X);if(!Z){B.push({name:X,error:"Plugin not found in any marketplace"});continue}let{entry:$,marketplaceInstallLocation:j}=Z;if(!L($.source))await h(X,$,Q,z);else f({pluginId:X,installPath:I(j,$.source),version:$.version},Q,z);V[X]=!0,Y.push(X)}catch(Z){let $=Z instanceof Error?Z.message:String(Z);B.push({name:X,error:$}),H(Z)}}return M(K,{...W,enabledPlugins:V}),{installed:Y,failed:B}}var p=m(()=>{F();y();T();E();D();P();S();b();c();v()});
|
|
2
|
+
export{e as Wd,qq as Xd,zq as Yd,Jq as Zd,Kq as _d,p as $d};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import{NZ as Aq,dZ as z,jZ as Bq,kZ as xq}from"./cli-1.1.31-13cx7z8n.mjs";import{Y7 as H,Z7 as Rq}from"./cli-1.1.31-sc82f8hw.mjs";import{Kha as v,L$ as W,N$ as Mq,Q$ as _,Qfa as l,S$ as R,Sfa as Gq,Sha as a,Waa as p,bba as zq,dca as N,eca as m,kga as b,mba as G,oba as o,t$ as Yq,uaa as $q,vaa as jq,w$ as Zq,x$ as wq}from"./cli-1.1.31-p99fz46k.mjs";import{eja as T,gja as Wq}from"./cli-1.1.31-5tgfa7xy.mjs";import{Aka as _q,Eka as c,Ika as Hq,vka as Qq,wka as Xq}from"./cli-1.1.31-t6m64e0q.mjs";import{vla as E,xla as Uq}from"./cli-1.1.31-dmghye74.mjs";import{vra as s,wra as Lq}from"./cli-1.1.31-thhdw5e1.mjs";import{lsa as A}from"./cli-1.1.31-qj8vksz8.mjs";function h(){let q=l(T(),c().existsSync)!==null,J=p(T());return[{key:"workspace",text:"Ask Claude to create a new app or clone a repository",isComplete:!1,isCompletable:!0,isEnabled:J},{key:"claudemd",text:"Set up repo instructions (/init creates AGENTS.md or updates existing CLAUDE.md; either file counts)",isComplete:q,isCompletable:!0,isEnabled:!J}]}function I(){return h().filter(({isCompletable:q,isEnabled:J})=>q&&J).every(({isComplete:q})=>q)}var y=A(()=>{Wq();zq();Hq();Gq()});function i(){if(N().hasCompletedProjectOnboarding)return;if(I())m((q)=>({...q,hasCompletedProjectOnboarding:!0}))}var lq;var n=A(()=>{Lq();b();y();y();lq=s(()=>{let q=N();if(q.hasCompletedProjectOnboarding||q.projectOnboardingSeenCount>=4||process.env.IS_DEMO)return!1;return!I()})});import{stat as r}from"fs/promises";import{homedir as Vq}from"os";import{join as vq}from"path";function Oq(q){_((J)=>({...J,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:q}))}function U(){_((q)=>({...q,appleTerminalSetupInProgress:!1}))}function Fq(){let q=R();return{inProgress:q.appleTerminalSetupInProgress??!1,backupPath:q.appleTerminalBackupPath||null}}function w(){return vq(Vq(),"Library","Preferences","com.apple.Terminal.plist")}async function t(){let q=w(),J=`${q}.bak`;try{let{code:K}=await G("defaults",["export","com.apple.Terminal",q]);if(K!==0)return null;try{await r(q)}catch{return null}return await G("defaults",["export","com.apple.Terminal",J]),Oq(J),J}catch(K){return v(K),null}}async function e(){let{inProgress:q,backupPath:J}=Fq();if(!q)return{status:"no_backup"};if(!J)return U(),{status:"no_backup"};try{await r(J)}catch{return U(),{status:"no_backup"}}try{let{code:K}=await G("defaults",["import","com.apple.Terminal",J]);if(K!==0)return{status:"failed",backupPath:J};return await G("killall",["cfprefsd"]),U(),{status:"restored"}}catch(K){return v(Error(`Failed to restore Terminal.app settings with: ${K}`)),U(),{status:"failed",backupPath:J}}}var qq=A(()=>{b();o();a()});import{randomBytes as k}from"crypto";import{copyFile as g,mkdir as f,readFile as u,writeFile as P}from"fs/promises";import{homedir as d,platform as S}from"os";import{dirname as Iq,join as O}from"path";import{pathToFileURL as Sq}from"url";function Dq(){let q=process.env.VSCODE_GIT_ASKPASS_MAIN??"",J=process.env.PATH??"";return q.includes(".vscode-server")||q.includes(".cursor-server")||q.includes(".windsurf-server")||J.includes(".vscode-server")||J.includes(".cursor-server")||J.includes(".windsurf-server")}function FJ(){if(!W.terminal||!(W.terminal in D))return null;return D[W.terminal]??null}function L(q){if(!Bq())return q;return`\x1B]8;;${Sq(q).href}\x07${q}\x1B]8;;\x07`}function Eq(){return S()==="darwin"&&W.terminal==="Apple_Terminal"||W.terminal==="vscode"||W.terminal==="cursor"||W.terminal==="windsurf"||W.terminal==="alacritty"||W.terminal==="zed"}async function Tq(q){let J="";switch(W.terminal){case"Apple_Terminal":J=await yq(q);break;case"vscode":J=await C("VSCode",q);break;case"cursor":J=await C("Cursor",q);break;case"windsurf":J=await C("Windsurf",q);break;case"alacritty":J=await Nq(q);break;case"zed":J=await bq(q);break;case null:break}return _((K)=>{if(["vscode","cursor","windsurf","alacritty","zed"].includes(W.terminal??"")){if(K.shiftEnterKeyBindingInstalled===!0)return K;return{...K,shiftEnterKeyBindingInstalled:!0}}else if(W.terminal==="Apple_Terminal"){if(K.optionAsMetaKeyInstalled===!0)return K;return{...K,optionAsMetaKeyInstalled:!0}}return K}),i(),J}function UJ(){return R().shiftEnterKeyBindingInstalled===!0}function _J(){return R().hasUsedBackslashReturn===!0}function RJ(){if(!R().hasUsedBackslashReturn)_((J)=>({...J,hasUsedBackslashReturn:!0}))}async function wJ(q,J,K){if(W.terminal&&W.terminal in D){let X=`Shift+Enter is natively supported in ${D[W.terminal]}.
|
|
2
|
+
|
|
3
|
+
No configuration needed. Just use Shift+Enter to add newlines.`;return q(X),null}if(!Eq()){let X=W.terminal||"your current terminal",Y=$q(),B="";if(Y==="macos")B=` • macOS: Apple Terminal
|
|
4
|
+
`;else if(Y==="windows")B=` • Windows: Windows Terminal
|
|
5
|
+
`;let Z=`Terminal setup cannot be run from ${X}.
|
|
6
|
+
|
|
7
|
+
This command configures a convenient Shift+Enter shortcut for multi-line prompts.
|
|
8
|
+
${H.dim("Note: You can already use backslash (\\\\) + return to add newlines.")}
|
|
9
|
+
|
|
10
|
+
To set up the shortcut (optional):
|
|
11
|
+
1. Exit tmux/screen temporarily
|
|
12
|
+
2. Run /terminal-setup directly in one of these terminals:
|
|
13
|
+
${B} • IDE: VSCode, Cursor, Windsurf, Zed
|
|
14
|
+
• Other: Alacritty
|
|
15
|
+
3. Return to tmux/screen - settings will persist
|
|
16
|
+
|
|
17
|
+
${H.dim("Note: iTerm2, WezTerm, Ghostty, Kitty, and Warp support Shift+Enter natively.")}`;return q(Z),null}let $=await Tq(J.options.theme);return q($),null}async function C(q="VSCode",J){if(Dq())return`${z("warning",J)(`Cannot install keybindings from a remote ${q} session.`)}${Q}${Q}${q} keybindings must be installed on your local machine, not the remote server.${Q}${Q}To install the Shift+Enter keybinding:${Q}1. Open ${q} on your local machine (not connected to remote)${Q}2. Open the Command Palette (Cmd/Ctrl+Shift+P) → "Preferences: Open Keyboard Shortcuts (JSON)"${Q}3. Add this keybinding (the file must be a JSON array):${Q}${Q}${H.dim(`[
|
|
18
|
+
{
|
|
19
|
+
"key": "shift+enter",
|
|
20
|
+
"command": "workbench.action.terminal.sendSequence",
|
|
21
|
+
"args": { "text": "\\u001b\\r" },
|
|
22
|
+
"when": "terminalFocus"
|
|
23
|
+
}
|
|
24
|
+
]`)}${Q}`;let K=q==="VSCode"?"Code":q,$=O(d(),S()==="win32"?O("AppData","Roaming",K,"User"):S()==="darwin"?O("Library","Application Support",K,"User"):O(".config",K,"User")),X=O($,"keybindings.json");try{await f($,{recursive:!0});let Y="[]",B=[],Z=!1;try{Y=await u(X,{encoding:"utf-8"}),Z=!0,B=Yq(Y)??[]}catch(V){if(!E(V))throw V}if(Z){let V=k(4).toString("hex"),x=`${X}.${V}.bak`;try{await g(X,x)}catch{return`${z("warning",J)(`Error backing up existing ${q} terminal keybindings. Bailing out.`)}${Q}${H.dim(`See ${L(X)}`)}${Q}${H.dim(`Backup path: ${L(x)}`)}${Q}`}}if(B.find((V)=>V.key==="shift+enter"&&V.command==="workbench.action.terminal.sendSequence"&&V.when==="terminalFocus"))return`${z("warning",J)(`Found existing ${q} terminal Shift+Enter key binding. Remove it to continue.`)}${Q}${H.dim(`See ${L(X)}`)}${Q}`;let j=Zq(Y,{key:"shift+enter",command:"workbench.action.terminal.sendSequence",args:{text:"\x1B\r"},when:"terminalFocus"});return await P(X,j,{encoding:"utf-8"}),`${z("success",J)(`Installed ${q} terminal Shift+Enter key binding`)}${Q}${H.dim(`See ${L(X)}`)}${Q}`}catch(Y){throw v(Y),Error(`Failed to install ${q} terminal Shift+Enter key binding`)}}async function Jq(q){let{code:J}=await G("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${q}':useOptionAsMetaKey bool true`,w()]);if(J!==0){let{code:K}=await G("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${q}':useOptionAsMetaKey true`,w()]);if(K!==0)return v(Error(`Failed to enable Option as Meta key for Terminal.app profile: ${q}`)),!1}return!0}async function Kq(q){let{code:J}=await G("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${q}':Bell bool false`,w()]);if(J!==0){let{code:K}=await G("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${q}':Bell false`,w()]);if(K!==0)return v(Error(`Failed to disable audio bell for Terminal.app profile: ${q}`)),!1}return!0}async function yq(q){try{if(!await t())throw Error("Failed to create backup of Terminal.app preferences, bailing out");let{stdout:K,code:$}=await G("defaults",["read","com.apple.Terminal","Default Window Settings"]);if($!==0||!K.trim())throw Error("Failed to read default Terminal.app profile");let{stdout:X,code:Y}=await G("defaults",["read","com.apple.Terminal","Startup Window Settings"]);if(Y!==0||!X.trim())throw Error("Failed to read startup Terminal.app profile");let B=!1,Z=K.trim(),F=await Jq(Z),M=await Kq(Z);if(F||M)B=!0;let j=X.trim();if(j!==Z){let V=await Jq(j),x=await Kq(j);if(V||x)B=!0}if(!B)throw Error("Failed to enable Option as Meta key or disable audio bell for any Terminal.app profile");return await G("killall",["cfprefsd"]),U(),`${z("success",q)("Configured Terminal.app settings:")}${Q}${z("success",q)('- Enabled "Use Option as Meta key"')}${Q}${z("success",q)("- Switched to visual bell")}${Q}${H.dim("Option+Enter will now enter a newline.")}${Q}${H.dim("You must restart Terminal.app for changes to take effect.",q)}${Q}`}catch(J){v(J);let K=await e(),$="Failed to enable Option as Meta key for Terminal.app.";if(K.status==="restored")throw Error(`${$} Your settings have been restored from backup.`);else if(K.status==="failed")throw Error(`${$} Restoring from backup failed, try manually with: defaults import com.apple.Terminal ${K.backupPath}`);else throw Error(`${$} No backup was available to restore from.`)}}async function Nq(q){let K=[],$=process.env.XDG_CONFIG_HOME;if($)K.push(O($,"alacritty","alacritty.toml"));else K.push(O(d(),".config","alacritty","alacritty.toml"));if(S()==="win32"){let Z=process.env.APPDATA;if(Z)K.push(O(Z,"alacritty","alacritty.toml"))}let X=null,Y="",B=!1;for(let Z of K)try{Y=await u(Z,{encoding:"utf-8"}),X=Z,B=!0;break}catch(F){if(!E(F))throw F}if(!X)X=K[0]??null;if(!X)throw Error("No valid config path found for Alacritty");try{if(B){if(Y.includes('mods = "Shift"')&&Y.includes('key = "Return"'))return`${z("warning",q)("Found existing Alacritty Shift+Enter key binding. Remove it to continue.")}${Q}${H.dim(`See ${L(X)}`)}${Q}`;let F=k(4).toString("hex"),M=`${X}.${F}.bak`;try{await g(X,M)}catch{return`${z("warning",q)("Error backing up existing Alacritty config. Bailing out.")}${Q}${H.dim(`See ${L(X)}`)}${Q}${H.dim(`Backup path: ${L(M)}`)}${Q}`}}else await f(Iq(X),{recursive:!0});let Z=Y;if(Y&&!Y.endsWith(`
|
|
25
|
+
`))Z+=`
|
|
26
|
+
`;return Z+=`
|
|
27
|
+
[[keyboard.bindings]]
|
|
28
|
+
key = "Return"
|
|
29
|
+
mods = "Shift"
|
|
30
|
+
chars = "\\u001B\\r"
|
|
31
|
+
`,await P(X,Z,{encoding:"utf-8"}),`${z("success",q)("Installed Alacritty Shift+Enter key binding")}${Q}${z("success",q)("You may need to restart Alacritty for changes to take effect")}${Q}${H.dim(`See ${L(X)}`)}${Q}`}catch(Z){throw v(Z),Error("Failed to install Alacritty Shift+Enter key binding")}}async function bq(q){let J=O(d(),".config","zed"),K=O(J,"keymap.json");try{await f(J,{recursive:!0});let $="[]",X=!1;try{$=await u(K,{encoding:"utf-8"}),X=!0}catch(B){if(!E(B))throw B}if(X){if($.includes("shift-enter"))return`${z("warning",q)("Found existing Zed Shift+Enter key binding. Remove it to continue.")}${Q}${H.dim(`See ${L(K)}`)}${Q}`;let B=k(4).toString("hex"),Z=`${K}.${B}.bak`;try{await g(K,Z)}catch{return`${z("warning",q)("Error backing up existing Zed keymap. Bailing out.")}${Q}${H.dim(`See ${L(K)}`)}${Q}${H.dim(`Backup path: ${L(Z)}`)}${Q}`}}let Y;try{if(Y=Xq($),!Array.isArray(Y))Y=[]}catch{Y=[]}return Y.push({context:"Terminal",bindings:{"shift-enter":["terminal::SendText","\x1B\r"]}}),await P(K,Qq(Y,null,2)+`
|
|
32
|
+
`,{encoding:"utf-8"}),`${z("success",q)("Installed Zed Shift+Enter key binding")}${Q}${H.dim(`See ${L(K)}`)}${Q}`}catch($){throw v($),Error("Failed to install Zed Shift+Enter key binding")}}var Q=`
|
|
33
|
+
`,D;var Cq=A(()=>{Rq();xq();Aq();n();qq();b();Mq();Uq();o();wq();a();jq();_q();D={ghostty:"Ghostty",kitty:"Kitty","iTerm.app":"iTerm2",WezTerm:"WezTerm",WarpTerminal:"Warp"}});
|
|
34
|
+
export{i as EX,n as FX,e as GX,qq as HX,FJ as IX,Eq as JX,Tq as KX,UJ as LX,_J as MX,RJ as NX,wJ as OX,Cq as PX};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
class H extends Error{constructor(z,J,Q){super(Q);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=J,this.exitCode=z,this.nestedError=void 0}}class K extends H{constructor(z){super(1,"commander.invalidArgument",z);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}class S{constructor(z,J){this.flags=z,this.description=J||"",this.required=z.includes("<"),this.optional=z.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(z),this.mandatory=!1;let Q=w(z);if(this.short=Q.shortFlag,this.long=Q.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}preset(z){return this.presetArg=z,this}conflicts(z){return this.conflictsWith=this.conflictsWith.concat(z),this}implies(z){let J=z;if(typeof z==="string")J={[z]:!0};return this.implied=Object.assign(this.implied||{},J),this}env(z){return this.envVar=z,this}argParser(z){return this.parseArg=z,this}makeOptionMandatory(z=!0){return this.mandatory=!!z,this}hideHelp(z=!0){return this.hidden=!!z,this}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){if(this.negate)return F(this.name().replace(/^no-/,""));return F(this.name())}helpGroup(z){return this.helpGroupHeading=z,this}is(z){return this.short===z||this.long===z}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class V{constructor(z){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,z.forEach((J)=>{if(J.negate)this.negativeOptions.set(J.attributeName(),J);else this.positiveOptions.set(J.attributeName(),J)}),this.negativeOptions.forEach((J,Q)=>{if(this.positiveOptions.has(Q))this.dualOptions.add(Q)})}valueFromOption(z,J){let Q=J.attributeName();if(!this.dualOptions.has(Q))return!0;let X=this.negativeOptions.get(Q).presetArg,Y=X!==void 0?X:!1;return J.negate===(Y===z)}}function F(z){return z.split("-").reduce((J,Q)=>{return J+Q[0].toUpperCase()+Q.slice(1)})}function w(z){let J,Q,X=/^-[^-]$/,Y=/^--[^-]/,Z=z.split(/[ |,]+/).concat("guard");if(X.test(Z[0]))J=Z.shift();if(Y.test(Z[0]))Q=Z.shift();if(!J&&X.test(Z[0]))J=Z.shift();if(!J&&Y.test(Z[0]))J=Q,Q=Z.shift();if(Z[0].startsWith("-")){let $=Z[0],_=`option creation failed due to '${$}' in option flags '${z}'`;if(/^-[^-][^-]/.test($))throw Error(`${_}
|
|
2
|
+
- a short flag is a single dash and a single character
|
|
3
|
+
- either use a single dash and a single character (for a short flag)
|
|
4
|
+
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(X.test($))throw Error(`${_}
|
|
5
|
+
- too many short flags`);if(Y.test($))throw Error(`${_}
|
|
6
|
+
- too many long flags`);throw Error(`${_}
|
|
7
|
+
- unrecognised flag format`)}if(J===void 0&&Q===void 0)throw Error(`option creation failed due to no flags found in '${z}'.`);return{shortFlag:J,longFlag:Q}}import{EventEmitter as O}from"node:events";import N from"node:child_process";import U from"node:path";import I from"node:fs";import G from"node:process";import{stripVTControlCharacters as x}from"node:util";class W{constructor(z,J){switch(this.description=J||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,z[0]){case"<":this.required=!0,this._name=z.slice(1,-1);break;case"[":this.required=!1,this._name=z.slice(1,-1);break;default:this.required=!0,this._name=z;break}if(this._name.endsWith("..."))this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}argParser(z){return this.parseArg=z,this}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function P(z){let J=z.name()+(z.variadic===!0?"...":"");return z.required?"<"+J+">":"["+J+"]"}import{stripVTControlCharacters as k}from"node:util";class j{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(z){this.helpWidth=this.helpWidth??z.helpWidth??80}visibleCommands(z){let J=z.commands.filter((X)=>!X._hidden),Q=z._getHelpCommand();if(Q&&!Q._hidden)J.push(Q);if(this.sortSubcommands)J.sort((X,Y)=>{return X.name().localeCompare(Y.name())});return J}compareOptions(z,J){let Q=(X)=>{return X.short?X.short.replace(/^-/,""):X.long.replace(/^--/,"")};return Q(z).localeCompare(Q(J))}visibleOptions(z){let J=z.options.filter((X)=>!X.hidden),Q=z._getHelpOption();if(Q&&!Q.hidden){let X=Q.short&&z._findOption(Q.short),Y=Q.long&&z._findOption(Q.long);if(!X&&!Y)J.push(Q);else if(Q.long&&!Y)J.push(z.createOption(Q.long,Q.description));else if(Q.short&&!X)J.push(z.createOption(Q.short,Q.description))}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleGlobalOptions(z){if(!this.showGlobalOptions)return[];let J=[];for(let Q=z.parent;Q;Q=Q.parent){let X=Q.options.filter((Y)=>!Y.hidden);J.push(...X)}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleArguments(z){if(z._argsDescription)z.registeredArguments.forEach((J)=>{J.description=J.description||z._argsDescription[J.name()]||""});if(z.registeredArguments.find((J)=>J.description))return z.registeredArguments;return[]}subcommandTerm(z){let J=z.registeredArguments.map((Q)=>P(Q)).join(" ");return z._name+(z._aliases[0]?"|"+z._aliases[0]:"")+(z.options.length?" [options]":"")+(J?" "+J:"")}optionTerm(z){return z.flags}argumentTerm(z){return z.name()}longestSubcommandTermLength(z,J){return J.visibleCommands(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleSubcommandTerm(J.subcommandTerm(X))))},0)}longestOptionTermLength(z,J){return J.visibleOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestGlobalOptionTermLength(z,J){return J.visibleGlobalOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestArgumentTermLength(z,J){return J.visibleArguments(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleArgumentTerm(J.argumentTerm(X))))},0)}commandUsage(z){let J=z._name;if(z._aliases[0])J=J+"|"+z._aliases[0];let Q="";for(let X=z.parent;X;X=X.parent)Q=X.name()+" "+Q;return Q+J+" "+z.usage()}commandDescription(z){return z.description()}subcommandDescription(z){return z.summary()||z.description()}optionDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0){if(z.required||z.optional||z.isBoolean()&&typeof z.defaultValue==="boolean")J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`)}if(z.presetArg!==void 0&&z.optional)J.push(`preset: ${JSON.stringify(z.presetArg)}`);if(z.envVar!==void 0)J.push(`env: ${z.envVar}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}argumentDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0)J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}formatItemList(z,J,Q){if(J.length===0)return[];return[Q.styleTitle(z),...J,""]}groupItems(z,J,Q){let X=new Map;return z.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[])}),J.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[]);X.get(Z).push(Y)}),X}formatHelp(z,J){let Q=J.padWidth(z,J),X=J.helpWidth??80;function Y(R,B){return J.formatItem(R,Q,B,J)}let Z=[`${J.styleTitle("Usage:")} ${J.styleUsage(J.commandUsage(z))}`,""],$=J.commandDescription(z);if($.length>0)Z=Z.concat([J.boxWrap(J.styleCommandDescription($),X),""]);let _=J.visibleArguments(z).map((R)=>{return Y(J.styleArgumentTerm(J.argumentTerm(R)),J.styleArgumentDescription(J.argumentDescription(R)))});if(Z=Z.concat(this.formatItemList("Arguments:",_,J)),this.groupItems(z.options,J.visibleOptions(z),(R)=>R.helpGroupHeading??"Options:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleOptionTerm(J.optionTerm(M)),J.styleOptionDescription(J.optionDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),J.showGlobalOptions){let R=J.visibleGlobalOptions(z).map((B)=>{return Y(J.styleOptionTerm(J.optionTerm(B)),J.styleOptionDescription(J.optionDescription(B)))});Z=Z.concat(this.formatItemList("Global Options:",R,J))}return this.groupItems(z.commands,J.visibleCommands(z),(R)=>R.helpGroup()||"Commands:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleSubcommandTerm(J.subcommandTerm(M)),J.styleSubcommandDescription(J.subcommandDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),Z.join(`
|
|
8
|
+
`)}displayWidth(z){return k(z).length}styleTitle(z){return z}styleUsage(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J==="[command]")return this.styleSubcommandText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleCommandText(J)}).join(" ")}styleCommandDescription(z){return this.styleDescriptionText(z)}styleOptionDescription(z){return this.styleDescriptionText(z)}styleSubcommandDescription(z){return this.styleDescriptionText(z)}styleArgumentDescription(z){return this.styleDescriptionText(z)}styleDescriptionText(z){return z}styleOptionTerm(z){return this.styleOptionText(z)}styleSubcommandTerm(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleSubcommandText(J)}).join(" ")}styleArgumentTerm(z){return this.styleArgumentText(z)}styleOptionText(z){return z}styleArgumentText(z){return z}styleSubcommandText(z){return z}styleCommandText(z){return z}padWidth(z,J){return Math.max(J.longestOptionTermLength(z,J),J.longestGlobalOptionTermLength(z,J),J.longestSubcommandTermLength(z,J),J.longestArgumentTermLength(z,J))}preformatted(z){return/\n[^\S\r\n]/.test(z)}formatItem(z,J,Q,X){let Z=" ".repeat(2);if(!Q)return Z+z;let $=z.padEnd(J+z.length-X.displayWidth(z)),_=2,q=(this.helpWidth??80)-J-_-2,R;if(q<this.minWidthToWrap||X.preformatted(Q))R=Q;else R=X.boxWrap(Q,q).replace(/\n/g,`
|
|
9
|
+
`+" ".repeat(J+_));return Z+$+" ".repeat(_)+R.replace(/\n/g,`
|
|
10
|
+
${Z}`)}boxWrap(z,J){if(J<this.minWidthToWrap)return z;let Q=z.split(/\r\n|\n/),X=/[\s]*[^\s]+/g,Y=[];return Q.forEach((Z)=>{let $=Z.match(X);if($===null){Y.push("");return}let _=[$.shift()],T=this.displayWidth(_[0]);$.forEach((q)=>{let R=this.displayWidth(q);if(T+R<=J){_.push(q),T+=R;return}Y.push(_.join(""));let B=q.trimStart();_=[B],T=this.displayWidth(B)}),Y.push(_.join(""))}),Y.join(`
|
|
11
|
+
`)}}function C(z,J){if(Math.abs(z.length-J.length)>3)return Math.max(z.length,J.length);let Q=[];for(let X=0;X<=z.length;X++)Q[X]=[X];for(let X=0;X<=J.length;X++)Q[0][X]=X;for(let X=1;X<=J.length;X++)for(let Y=1;Y<=z.length;Y++){let Z;if(z[Y-1]===J[X-1])Z=0;else Z=1;if(Q[Y][X]=Math.min(Q[Y-1][X]+1,Q[Y][X-1]+1,Q[Y-1][X-1]+Z),Y>1&&X>1&&z[Y-1]===J[X-2]&&z[Y-2]===J[X-1])Q[Y][X]=Math.min(Q[Y][X],Q[Y-2][X-2]+1)}return Q[z.length][J.length]}function D(z,J){if(!J||J.length===0)return"";J=Array.from(new Set(J));let Q=z.startsWith("--");if(Q)z=z.slice(2),J=J.map(($)=>$.slice(2));let X=[],Y=3,Z=0.4;if(J.forEach(($)=>{if($.length<=1)return;let _=C(z,$),T=Math.max(z.length,$.length);if((T-_)/T>Z){if(_<Y)Y=_,X=[$];else if(_===Y)X.push($)}}),X.sort(($,_)=>$.localeCompare(_)),Q)X=X.map(($)=>`--${$}`);if(X.length>1)return`
|
|
12
|
+
(Did you mean one of ${X.join(", ")}?)`;if(X.length===1)return`
|
|
13
|
+
(Did you mean ${X[0]}?)`;return""}class E extends O{constructor(z){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=z||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:(J)=>G.stdout.write(J),writeErr:(J)=>G.stderr.write(J),outputError:(J,Q)=>Q(J),getOutHelpWidth:()=>G.stdout.isTTY?G.stdout.columns:void 0,getErrHelpWidth:()=>G.stderr.isTTY?G.stderr.columns:void 0,getOutHasColors:()=>A()??(G.stdout.isTTY&&G.stdout.hasColors?.()),getErrHasColors:()=>A()??(G.stderr.isTTY&&G.stderr.hasColors?.()),stripColor:(J)=>x(J)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(z){return this._outputConfiguration=z._outputConfiguration,this._helpOption=z._helpOption,this._helpCommand=z._helpCommand,this._helpConfiguration=z._helpConfiguration,this._exitCallback=z._exitCallback,this._storeOptionsAsProperties=z._storeOptionsAsProperties,this._combineFlagAndOptionalValue=z._combineFlagAndOptionalValue,this._allowExcessArguments=z._allowExcessArguments,this._enablePositionalOptions=z._enablePositionalOptions,this._showHelpAfterError=z._showHelpAfterError,this._showSuggestionAfterError=z._showSuggestionAfterError,this}_getCommandAndAncestors(){let z=[];for(let J=this;J;J=J.parent)z.push(J);return z}command(z,J,Q){let X=J,Y=Q;if(typeof X==="object"&&X!==null)Y=X,X=null;Y=Y||{};let[,Z,$]=z.match(/([^ ]+) *(.*)/),_=this.createCommand(Z);if(X)_.description(X),_._executableHandler=!0;if(Y.isDefault)this._defaultCommandName=_._name;if(_._hidden=!!(Y.noHelp||Y.hidden),_._executableFile=Y.executableFile||null,$)_.arguments($);if(this._registerCommand(_),_.parent=this,_.copyInheritedSettings(this),X)return this;return _}createCommand(z){return new E(z)}createHelp(){return Object.assign(new j,this.configureHelp())}configureHelp(z){if(z===void 0)return this._helpConfiguration;return this._helpConfiguration=z,this}configureOutput(z){if(z===void 0)return this._outputConfiguration;return this._outputConfiguration={...this._outputConfiguration,...z},this}showHelpAfterError(z=!0){if(typeof z!=="string")z=!!z;return this._showHelpAfterError=z,this}showSuggestionAfterError(z=!0){return this._showSuggestionAfterError=!!z,this}addCommand(z,J){if(!z._name)throw Error(`Command passed to .addCommand() must have a name
|
|
14
|
+
- specify the name in Command constructor or using .name()`);if(J=J||{},J.isDefault)this._defaultCommandName=z._name;if(J.noHelp||J.hidden)z._hidden=!0;return this._registerCommand(z),z.parent=this,z._checkForBrokenPassThrough(),this}createArgument(z,J){return new W(z,J)}argument(z,J,Q,X){let Y=this.createArgument(z,J);if(typeof Q==="function")Y.default(X).argParser(Q);else Y.default(Q);return this.addArgument(Y),this}arguments(z){return z.trim().split(/ +/).forEach((J)=>{this.argument(J)}),this}addArgument(z){let J=this.registeredArguments.slice(-1)[0];if(J?.variadic)throw Error(`only the last argument can be variadic '${J.name()}'`);if(z.required&&z.defaultValue!==void 0&&z.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${z.name()}'`);return this.registeredArguments.push(z),this}helpCommand(z,J){if(typeof z==="boolean"){if(this._addImplicitHelpCommand=z,z&&this._defaultCommandGroup)this._initCommandGroup(this._getHelpCommand());return this}let Q=z??"help [command]",[,X,Y]=Q.match(/([^ ]+) *(.*)/),Z=J??"display help for command",$=this.createCommand(X);if($.helpOption(!1),Y)$.arguments(Y);if(Z)$.description(Z);if(this._addImplicitHelpCommand=!0,this._helpCommand=$,z||J)this._initCommandGroup($);return this}addHelpCommand(z,J){if(typeof z!=="object")return this.helpCommand(z,J),this;return this._addImplicitHelpCommand=!0,this._helpCommand=z,this._initCommandGroup(z),this}_getHelpCommand(){if(this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))){if(this._helpCommand===void 0)this.helpCommand(void 0,void 0);return this._helpCommand}return null}hook(z,J){let Q=["preSubcommand","preAction","postAction"];if(!Q.includes(z))throw Error(`Unexpected value for event passed to hook : '${z}'.
|
|
15
|
+
Expecting one of '${Q.join("', '")}'`);if(this._lifeCycleHooks[z])this._lifeCycleHooks[z].push(J);else this._lifeCycleHooks[z]=[J];return this}exitOverride(z){if(z)this._exitCallback=z;else this._exitCallback=(J)=>{if(J.code!=="commander.executeSubCommandAsync")throw J};return this}_exit(z,J,Q){if(this._exitCallback)this._exitCallback(new H(z,J,Q));G.exit(z)}action(z){let J=(Q)=>{let X=this.registeredArguments.length,Y=Q.slice(0,X);if(this._storeOptionsAsProperties)Y[X]=this;else Y[X]=this.opts();return Y.push(this),z.apply(this,Y)};return this._actionHandler=J,this}createOption(z,J){return new S(z,J)}_callParseArg(z,J,Q,X){try{return z.parseArg(J,Q)}catch(Y){if(Y.code==="commander.invalidArgument"){let Z=`${X} ${Y.message}`;this.error(Z,{exitCode:Y.exitCode,code:Y.code})}throw Y}}_registerOption(z){let J=z.short&&this._findOption(z.short)||z.long&&this._findOption(z.long);if(J){let Q=z.long&&this._findOption(z.long)?z.long:z.short;throw Error(`Cannot add option '${z.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${Q}'
|
|
16
|
+
- already used by option '${J.flags}'`)}this._initOptionGroup(z),this.options.push(z)}_registerCommand(z){let J=(X)=>{return[X.name()].concat(X.aliases())},Q=J(z).find((X)=>this._findCommand(X));if(Q){let X=J(this._findCommand(Q)).join("|"),Y=J(z).join("|");throw Error(`cannot add command '${Y}' as already have command '${X}'`)}this._initCommandGroup(z),this.commands.push(z)}addOption(z){this._registerOption(z);let J=z.name(),Q=z.attributeName();if(z.defaultValue!==void 0)this.setOptionValueWithSource(Q,z.defaultValue,"default");let X=(Y,Z,$)=>{if(Y==null&&z.presetArg!==void 0)Y=z.presetArg;let _=this.getOptionValue(Q);if(Y!==null&&z.parseArg)Y=this._callParseArg(z,Y,_,Z);else if(Y!==null&&z.variadic)Y=z._collectValue(Y,_);if(Y==null)if(z.negate)Y=!1;else if(z.isBoolean()||z.optional)Y=!0;else Y="";this.setOptionValueWithSource(Q,Y,$)};if(this.on("option:"+J,(Y)=>{let Z=`error: option '${z.flags}' argument '${Y}' is invalid.`;X(Y,Z,"cli")}),z.envVar)this.on("optionEnv:"+J,(Y)=>{let Z=`error: option '${z.flags}' value '${Y}' from env '${z.envVar}' is invalid.`;X(Y,Z,"env")});return this}_optionEx(z,J,Q,X,Y){if(typeof J==="object"&&J instanceof S)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let Z=this.createOption(J,Q);if(Z.makeOptionMandatory(!!z.mandatory),typeof X==="function")Z.default(Y).argParser(X);else if(X instanceof RegExp){let $=X;X=(_,T)=>{let q=$.exec(_);return q?q[0]:T},Z.default(Y).argParser(X)}else Z.default(X);return this.addOption(Z)}option(z,J,Q,X){return this._optionEx({},z,J,Q,X)}requiredOption(z,J,Q,X){return this._optionEx({mandatory:!0},z,J,Q,X)}combineFlagAndOptionalValue(z=!0){return this._combineFlagAndOptionalValue=!!z,this}allowUnknownOption(z=!0){return this._allowUnknownOption=!!z,this}allowExcessArguments(z=!0){return this._allowExcessArguments=!!z,this}enablePositionalOptions(z=!0){return this._enablePositionalOptions=!!z,this}passThroughOptions(z=!0){return this._passThroughOptions=!!z,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(z=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!z,this}getOptionValue(z){if(this._storeOptionsAsProperties)return this[z];return this._optionValues[z]}setOptionValue(z,J){return this.setOptionValueWithSource(z,J,void 0)}setOptionValueWithSource(z,J,Q){if(this._storeOptionsAsProperties)this[z]=J;else this._optionValues[z]=J;return this._optionValueSources[z]=Q,this}getOptionValueSource(z){return this._optionValueSources[z]}getOptionValueSourceWithGlobals(z){let J;return this._getCommandAndAncestors().forEach((Q)=>{if(Q.getOptionValueSource(z)!==void 0)J=Q.getOptionValueSource(z)}),J}_prepareUserArgs(z,J){if(z!==void 0&&!Array.isArray(z))throw Error("first parameter to parse must be array or undefined");if(J=J||{},z===void 0&&J.from===void 0){if(G.versions?.electron)J.from="electron";let X=G.execArgv??[];if(X.includes("-e")||X.includes("--eval")||X.includes("-p")||X.includes("--print"))J.from="eval"}if(z===void 0)z=G.argv;this.rawArgs=z.slice();let Q;switch(J.from){case void 0:case"node":this._scriptPath=z[1],Q=z.slice(2);break;case"electron":if(G.defaultApp)this._scriptPath=z[1],Q=z.slice(2);else Q=z.slice(1);break;case"user":Q=z.slice(0);break;case"eval":Q=z.slice(1);break;default:throw Error(`unexpected parse option { from: '${J.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",Q}parse(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return this._parseCommand([],Q),this}async parseAsync(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return await this._parseCommand([],Q),this}_prepareForParse(){if(this._savedState===null)this.options.filter((z)=>z.negate&&z.defaultValue===void 0&&this.getOptionValue(z.attributeName())===void 0).forEach((z)=>{let J=z.long.replace(/^--no-/,"--");if(!this._findOption(J))this.setOptionValueWithSource(z.attributeName(),!0,"default")}),this.saveStateBeforeParse();else this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
17
|
+
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(z,J,Q){if(I.existsSync(z))return;let X=J?`searched for local subcommand relative to directory '${J}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",Y=`'${z}' does not exist
|
|
18
|
+
- if '${Q}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
19
|
+
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
20
|
+
- ${X}`;throw Error(Y)}_executeSubCommand(z,J){J=J.slice();let Q=[".js",".ts",".tsx",".mjs",".cjs"];function X(q,R){let B=U.resolve(q,R);if(I.existsSync(B))return B;if(Q.includes(U.extname(R)))return;let L=Q.find((M)=>I.existsSync(`${B}${M}`));if(L)return`${B}${L}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let Y=z._executableFile||`${this._name}-${z._name}`,Z=this._executableDir||"";if(this._scriptPath){let q;try{q=I.realpathSync(this._scriptPath)}catch{q=this._scriptPath}Z=U.resolve(U.dirname(q),Z)}if(Z){let q=X(Z,Y);if(!q&&!z._executableFile&&this._scriptPath){let R=U.basename(this._scriptPath,U.extname(this._scriptPath));if(R!==this._name)q=X(Z,`${R}-${z._name}`)}Y=q||Y}let $=Q.includes(U.extname(Y)),_;if(G.platform!=="win32")if($)J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.argv[0],J,{stdio:"inherit"});else _=N.spawn(Y,J,{stdio:"inherit"});else this._checkForMissingExecutable(Y,Z,z._name),J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.execPath,J,{stdio:"inherit"});if(!_.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((R)=>{G.on(R,()=>{if(_.killed===!1&&_.exitCode===null)_.kill(R)})});let T=this._exitCallback;_.on("close",(q)=>{if(q=q??1,!T)G.exit(q);else T(new H(q,"commander.executeSubCommandAsync","(close)"))}),_.on("error",(q)=>{if(q.code==="ENOENT")this._checkForMissingExecutable(Y,Z,z._name);else if(q.code==="EACCES")throw Error(`'${Y}' not executable`);if(!T)G.exit(1);else{let R=new H(1,"commander.executeSubCommandAsync","(error)");R.nestedError=q,T(R)}}),this.runningCommand=_}_dispatchSubcommand(z,J,Q){let X=this._findCommand(z);if(!X)this.help({error:!0});X._prepareForParse();let Y;return Y=this._chainOrCallSubCommandHook(Y,X,"preSubcommand"),Y=this._chainOrCall(Y,()=>{if(X._executableHandler)this._executeSubCommand(X,J.concat(Q));else return X._parseCommand(J,Q)}),Y}_dispatchHelpCommand(z){if(!z)this.help();let J=this._findCommand(z);if(J&&!J._executableHandler)J.help();return this._dispatchSubcommand(z,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((z,J)=>{if(z.required&&this.args[J]==null)this.missingArgument(z.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let z=(Q,X,Y)=>{let Z=X;if(X!==null&&Q.parseArg){let $=`error: command-argument value '${X}' is invalid for argument '${Q.name()}'.`;Z=this._callParseArg(Q,X,Y,$)}return Z};this._checkNumberOfArguments();let J=[];this.registeredArguments.forEach((Q,X)=>{let Y=Q.defaultValue;if(Q.variadic){if(X<this.args.length){if(Y=this.args.slice(X),Q.parseArg)Y=Y.reduce((Z,$)=>{return z(Q,$,Z)},Q.defaultValue)}else if(Y===void 0)Y=[]}else if(X<this.args.length){if(Y=this.args[X],Q.parseArg)Y=z(Q,Y,Q.defaultValue)}J[X]=Y}),this.processedArgs=J}_chainOrCall(z,J){if(z?.then&&typeof z.then==="function")return z.then(()=>J());return J()}_chainOrCallHooks(z,J){let Q=z,X=[];if(this._getCommandAndAncestors().reverse().filter((Y)=>Y._lifeCycleHooks[J]!==void 0).forEach((Y)=>{Y._lifeCycleHooks[J].forEach((Z)=>{X.push({hookedCommand:Y,callback:Z})})}),J==="postAction")X.reverse();return X.forEach((Y)=>{Q=this._chainOrCall(Q,()=>{return Y.callback(Y.hookedCommand,this)})}),Q}_chainOrCallSubCommandHook(z,J,Q){let X=z;if(this._lifeCycleHooks[Q]!==void 0)this._lifeCycleHooks[Q].forEach((Y)=>{X=this._chainOrCall(X,()=>{return Y(this,J)})});return X}_parseCommand(z,J){let Q=this.parseOptions(J);if(this._parseOptionsEnv(),this._parseOptionsImplied(),z=z.concat(Q.operands),J=Q.unknown,this.args=z.concat(J),z&&this._findCommand(z[0]))return this._dispatchSubcommand(z[0],z.slice(1),J);if(this._getHelpCommand()&&z[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(z[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(J),this._dispatchSubcommand(this._defaultCommandName,z,J);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});this._outputHelpIfRequested(Q.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let X=()=>{if(Q.unknown.length>0)this.unknownOption(Q.unknown[0])},Y=`command:${this.name()}`;if(this._actionHandler){X(),this._processArguments();let Z;if(Z=this._chainOrCallHooks(Z,"preAction"),Z=this._chainOrCall(Z,()=>this._actionHandler(this.processedArgs)),this.parent)Z=this._chainOrCall(Z,()=>{this.parent.emit(Y,z,J)});return Z=this._chainOrCallHooks(Z,"postAction"),Z}if(this.parent?.listenerCount(Y))X(),this._processArguments(),this.parent.emit(Y,z,J);else if(z.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",z,J);if(this.listenerCount("command:*"))this.emit("command:*",z,J);else if(this.commands.length)this.unknownCommand();else X(),this._processArguments()}else if(this.commands.length)X(),this.help({error:!0});else X(),this._processArguments()}_findCommand(z){if(!z)return;return this.commands.find((J)=>J._name===z||J._aliases.includes(z))}_findOption(z){return this.options.find((J)=>J.is(z))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((z)=>{z.options.forEach((J)=>{if(J.mandatory&&z.getOptionValue(J.attributeName())===void 0)z.missingMandatoryOptionValue(J)})})}_checkForConflictingLocalOptions(){let z=this.options.filter((Q)=>{let X=Q.attributeName();if(this.getOptionValue(X)===void 0)return!1;return this.getOptionValueSource(X)!=="default"});z.filter((Q)=>Q.conflictsWith.length>0).forEach((Q)=>{let X=z.find((Y)=>Q.conflictsWith.includes(Y.attributeName()));if(X)this._conflictingOption(Q,X)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((z)=>{z._checkForConflictingLocalOptions()})}parseOptions(z){let J=[],Q=[],X=J;function Y(q){return q.length>1&&q[0]==="-"}let Z=(q)=>{if(!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(q))return!1;return!this._getCommandAndAncestors().some((R)=>R.options.map((B)=>B.short).some((B)=>/^-\d$/.test(B)))},$=null,_=null,T=0;while(T<z.length||_){let q=_??z[T++];if(_=null,q==="--"){if(X===Q)X.push(q);X.push(...z.slice(T));break}if($&&(!Y(q)||Z(q))){this.emit(`option:${$.name()}`,q);continue}if($=null,Y(q)){let R=this._findOption(q);if(R){if(R.required){let B=z[T++];if(B===void 0)this.optionMissingArgument(R);this.emit(`option:${R.name()}`,B)}else if(R.optional){let B=null;if(T<z.length&&(!Y(z[T])||Z(z[T])))B=z[T++];this.emit(`option:${R.name()}`,B)}else this.emit(`option:${R.name()}`);$=R.variadic?R:null;continue}}if(q.length>2&&q[0]==="-"&&q[1]!=="-"){let R=this._findOption(`-${q[1]}`);if(R){if(R.required||R.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${R.name()}`,q.slice(2));else this.emit(`option:${R.name()}`),_=`-${q.slice(2)}`;continue}}if(/^--[^=]+=/.test(q)){let R=q.indexOf("="),B=this._findOption(q.slice(0,R));if(B&&(B.required||B.optional)){this.emit(`option:${B.name()}`,q.slice(R+1));continue}}if(X===J&&Y(q)&&!(this.commands.length===0&&Z(q)))X=Q;if((this._enablePositionalOptions||this._passThroughOptions)&&J.length===0&&Q.length===0){if(this._findCommand(q)){J.push(q),Q.push(...z.slice(T));break}else if(this._getHelpCommand()&&q===this._getHelpCommand().name()){J.push(q,...z.slice(T));break}else if(this._defaultCommandName){Q.push(q,...z.slice(T));break}}if(this._passThroughOptions){X.push(q,...z.slice(T));break}X.push(q)}return{operands:J,unknown:Q}}opts(){if(this._storeOptionsAsProperties){let z={},J=this.options.length;for(let Q=0;Q<J;Q++){let X=this.options[Q].attributeName();z[X]=X===this._versionOptionName?this._version:this[X]}return z}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((z,J)=>Object.assign(z,J.opts()),{})}error(z,J){if(this._outputConfiguration.outputError(`${z}
|
|
21
|
+
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
22
|
+
`);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
|
|
23
|
+
`),this.outputHelp({error:!0});let Q=J||{},X=Q.exitCode||1,Y=Q.code||"commander.error";this._exit(X,Y,z)}_parseOptionsEnv(){this.options.forEach((z)=>{if(z.envVar&&z.envVar in G.env){let J=z.attributeName();if(this.getOptionValue(J)===void 0||["default","config","env"].includes(this.getOptionValueSource(J)))if(z.required||z.optional)this.emit(`optionEnv:${z.name()}`,G.env[z.envVar]);else this.emit(`optionEnv:${z.name()}`)}})}_parseOptionsImplied(){let z=new V(this.options),J=(Q)=>{return this.getOptionValue(Q)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(Q))};this.options.filter((Q)=>Q.implied!==void 0&&J(Q.attributeName())&&z.valueFromOption(this.getOptionValue(Q.attributeName()),Q)).forEach((Q)=>{Object.keys(Q.implied).filter((X)=>!J(X)).forEach((X)=>{this.setOptionValueWithSource(X,Q.implied[X],"implied")})})}missingArgument(z){let J=`error: missing required argument '${z}'`;this.error(J,{code:"commander.missingArgument"})}optionMissingArgument(z){let J=`error: option '${z.flags}' argument missing`;this.error(J,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(z){let J=`error: required option '${z.flags}' not specified`;this.error(J,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(z,J){let Q=(Z)=>{let $=Z.attributeName(),_=this.getOptionValue($),T=this.options.find((R)=>R.negate&&$===R.attributeName()),q=this.options.find((R)=>!R.negate&&$===R.attributeName());if(T&&(T.presetArg===void 0&&_===!1||T.presetArg!==void 0&&_===T.presetArg))return T;return q||Z},X=(Z)=>{let $=Q(Z),_=$.attributeName();if(this.getOptionValueSource(_)==="env")return`environment variable '${$.envVar}'`;return`option '${$.flags}'`},Y=`error: ${X(z)} cannot be used with ${X(J)}`;this.error(Y,{code:"commander.conflictingOption"})}unknownOption(z){if(this._allowUnknownOption)return;let J="";if(z.startsWith("--")&&this._showSuggestionAfterError){let X=[],Y=this;do{let Z=Y.createHelp().visibleOptions(Y).filter(($)=>$.long).map(($)=>$.long);X=X.concat(Z),Y=Y.parent}while(Y&&!Y._enablePositionalOptions);J=D(z,X)}let Q=`error: unknown option '${z}'${J}`;this.error(Q,{code:"commander.unknownOption"})}_excessArguments(z){if(this._allowExcessArguments)return;let J=this.registeredArguments.length,Q=J===1?"":"s",X=z.length,Y=this.parent?` for '${this.name()}'`:"",Z=z.join(", "),$=`error: too many arguments${Y}. Expected ${J} argument${Q} but got ${X}: ${Z}.`;this.error($,{code:"commander.excessArguments"})}unknownCommand(){let z=this.args[0],J="";if(this._showSuggestionAfterError){let X=[];this.createHelp().visibleCommands(this).forEach((Y)=>{if(X.push(Y.name()),Y.alias())X.push(Y.alias())}),J=D(z,X)}let Q=`error: unknown command '${z}'${J}`;this.error(Q,{code:"commander.unknownCommand"})}version(z,J,Q){if(z===void 0)return this._version;this._version=z,J=J||"-V, --version",Q=Q||"output the version number";let X=this.createOption(J,Q);return this._versionOptionName=X.attributeName(),this._registerOption(X),this.on("option:"+X.name(),()=>{this._outputConfiguration.writeOut(`${z}
|
|
24
|
+
`),this._exit(0,"commander.version",z)}),this}description(z,J){if(z===void 0&&J===void 0)return this._description;if(this._description=z,J)this._argsDescription=J;return this}summary(z){if(z===void 0)return this._summary;return this._summary=z,this}alias(z){if(z===void 0)return this._aliases[0];let J=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)J=this.commands[this.commands.length-1];if(z===J._name)throw Error("Command alias can't be the same as its name");let Q=this.parent?._findCommand(z);if(Q){let X=[Q.name()].concat(Q.aliases()).join("|");throw Error(`cannot add alias '${z}' to command '${this.name()}' as already have command '${X}'`)}return J._aliases.push(z),this}aliases(z){if(z===void 0)return this._aliases;return z.forEach((J)=>this.alias(J)),this}usage(z){if(z===void 0){if(this._usage)return this._usage;let J=this.registeredArguments.map((Q)=>{return P(Q)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?J:[]).join(" ")}return this._usage=z,this}name(z){if(z===void 0)return this._name;return this._name=z,this}helpGroup(z){if(z===void 0)return this._helpGroupHeading??"";return this._helpGroupHeading=z,this}commandsGroup(z){if(z===void 0)return this._defaultCommandGroup??"";return this._defaultCommandGroup=z,this}optionsGroup(z){if(z===void 0)return this._defaultOptionGroup??"";return this._defaultOptionGroup=z,this}_initOptionGroup(z){if(this._defaultOptionGroup&&!z.helpGroupHeading)z.helpGroup(this._defaultOptionGroup)}_initCommandGroup(z){if(this._defaultCommandGroup&&!z.helpGroup())z.helpGroup(this._defaultCommandGroup)}nameFromFilename(z){return this._name=U.basename(z,U.extname(z)),this}executableDir(z){if(z===void 0)return this._executableDir;return this._executableDir=z,this}helpInformation(z){let J=this.createHelp(),Q=this._getOutputContext(z);J.prepareContext({error:Q.error,helpWidth:Q.helpWidth,outputHasColors:Q.hasColors});let X=J.formatHelp(this,J);if(Q.hasColors)return X;return this._outputConfiguration.stripColor(X)}_getOutputContext(z){z=z||{};let J=!!z.error,Q,X,Y;if(J)Q=($)=>this._outputConfiguration.writeErr($),X=this._outputConfiguration.getErrHasColors(),Y=this._outputConfiguration.getErrHelpWidth();else Q=($)=>this._outputConfiguration.writeOut($),X=this._outputConfiguration.getOutHasColors(),Y=this._outputConfiguration.getOutHelpWidth();return{error:J,write:($)=>{if(!X)$=this._outputConfiguration.stripColor($);return Q($)},hasColors:X,helpWidth:Y}}outputHelp(z){let J;if(typeof z==="function")J=z,z=void 0;let Q=this._getOutputContext(z),X={error:Q.error,write:Q.write,command:this};this._getCommandAndAncestors().reverse().forEach((Z)=>Z.emit("beforeAllHelp",X)),this.emit("beforeHelp",X);let Y=this.helpInformation({error:Q.error});if(J){if(Y=J(Y),typeof Y!=="string"&&!Buffer.isBuffer(Y))throw Error("outputHelp callback must return a string or a Buffer")}if(Q.write(Y),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",X),this._getCommandAndAncestors().forEach((Z)=>Z.emit("afterAllHelp",X))}helpOption(z,J){if(typeof z==="boolean"){if(z){if(this._helpOption===null)this._helpOption=void 0;if(this._defaultOptionGroup)this._initOptionGroup(this._getHelpOption())}else this._helpOption=null;return this}if(this._helpOption=this.createOption(z??"-h, --help",J??"display help for command"),z||J)this._initOptionGroup(this._helpOption);return this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(z){return this._helpOption=z,this._initOptionGroup(z),this}help(z){this.outputHelp(z);let J=Number(G.exitCode??0);if(J===0&&z&&typeof z!=="function"&&z.error)J=1;this._exit(J,"commander.help","(outputHelp)")}addHelpText(z,J){let Q=["beforeAll","before","after","afterAll"];if(!Q.includes(z))throw Error(`Unexpected value for position to addHelpText.
|
|
25
|
+
Expecting one of '${Q.join("', '")}'`);let X=`${z}Help`;return this.on(X,(Y)=>{let Z;if(typeof J==="function")Z=J({error:Y.error,command:Y.command});else Z=J;if(Z)Y.write(`${Z}
|
|
26
|
+
`)}),this}_outputHelpIfRequested(z){let J=this._getHelpOption();if(J&&z.find((X)=>J.is(X)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function y(z){return z.map((J)=>{if(!J.startsWith("--inspect"))return J;let Q,X="127.0.0.1",Y="9229",Z;if((Z=J.match(/^(--inspect(-brk)?)$/))!==null)Q=Z[1];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(Q=Z[1],/^\d+$/.test(Z[3]))Y=Z[3];else X=Z[3];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)Q=Z[1],X=Z[3],Y=Z[4];if(Q&&Y!=="0")return`${Q}=${X}:${parseInt(Y)+1}`;return J})}function A(){if(G.env.NO_COLOR||G.env.FORCE_COLOR==="0"||G.env.FORCE_COLOR==="false")return!1;if(G.env.FORCE_COLOR||G.env.CLICOLOR_FORCE!==void 0)return!0;return}var qz=new E;export{K as P,S as Q,E as R};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{$m as F,AA as Vq,Cm as R,Fm as W,Gm as p,Mm as Hq,YI as M,ZI as Zq,bl as g,cl as zq,en as Kq,gv as S,hv as Qq,iT as Aq,jT as Yq,lS as n,nS as Fq,rm as m,wH as c,xH as Xq,zA as P}from"./cli-1.1.31-g58b1jfa.mjs";import{vU as a,wU as Bq}from"./cli-1.1.31-qyztdyg2.mjs";import{NZ as Jq,SX as Oq,fZ as E,hZ as j}from"./cli-1.1.31-13cx7z8n.mjs";import{p3 as Q,q3 as v,r3 as y}from"./cli-1.1.31-eqfmzrxc.mjs";import{s3 as Iq}from"./cli-1.1.31-9d5v98td.mjs";import{mba as T,oba as qq}from"./cli-1.1.31-p99fz46k.mjs";import{Ska as $,Vka as e}from"./cli-1.1.31-t6m64e0q.mjs";import{hsa as w,isa as s,lsa as k}from"./cli-1.1.31-qj8vksz8.mjs";function f(){(Yq(),s(Aq)).saveWorktreeState(null),g()}function l({onDone:G,onCancel:I}){let[V,H]=X.useState("loading"),[J,O]=X.useState([]),[z,Z]=X.useState(0),[_,K]=X.useState(),q=m();if(X.useEffect(()=>{async function A(){let B=[],Y=await T("git",["status","--porcelain"]);if(Y.stdout)B=Y.stdout.split(`
|
|
2
|
+
`).filter((U)=>U.trim()!==""),O(B);if(q){let{stdout:U}=await T("git",["rev-list","--count",`${q.originalHeadCommit}..HEAD`]),x=parseInt(U.trim())||0;if(Z(x),B.length===0&&x===0){H("removing"),p().then(()=>{process.chdir(q.originalCwd),P(q.originalCwd),F.cache.clear?.(),K("Worktree removed (no changes)")}).catch((t)=>{$(`Failed to clean up worktree: ${t}`,{level:"error"}),K("Worktree cleanup failed, exiting anyway")}).finally(()=>{f()}).then(()=>{H("done")});return}else H("asking")}}A()},[q]),X.useEffect(()=>{if(V==="done")G(_)},[V,G,_]),!q)return G("No active worktree session found",{display:"system"}),null;if(V==="loading"||V==="done")return null;async function d(A){if(!q)return;let B=Boolean(q.tmuxSessionName);if(A==="keep"||A==="keep-with-tmux"){H("keeping"),await W();try{process.chdir(q.originalCwd),P(q.originalCwd)}finally{f()}if(F.cache.clear?.(),B)K(`Worktree kept. Your work is saved at ${q.worktreePath} on branch ${q.worktreeBranch}. Reattach to tmux session with: tmux attach -t ${q.tmuxSessionName}`);else K(`Worktree kept. Your work is saved at ${q.worktreePath} on branch ${q.worktreeBranch}`);H("done")}else if(A==="keep-kill-tmux"){if(H("keeping"),q.tmuxSessionName)await R(q.tmuxSessionName);await W();try{process.chdir(q.originalCwd),P(q.originalCwd)}finally{f()}F.cache.clear?.(),K(`Worktree kept at ${q.worktreePath} on branch ${q.worktreeBranch}. Tmux session terminated.`),H("done")}else if(A==="remove"||A==="remove-with-tmux"){if(H("removing"),q.tmuxSessionName)await R(q.tmuxSessionName);try{await p(),process.chdir(q.originalCwd),P(q.originalCwd),F.cache.clear?.()}catch(U){$(`Failed to clean up worktree: ${U}`,{level:"error"}),K("Worktree cleanup failed, exiting anyway"),H("done");return}finally{f()}let Y=B?" Tmux session terminated.":"";if(z>0&&J.length>0)K(`Worktree removed. ${z} ${z===1?"commit":"commits"} and uncommitted changes were discarded.${Y}`);else if(z>0)K(`Worktree removed. ${z} ${z===1?"commit":"commits"} on ${q.worktreeBranch} ${z===1?"was":"were"} discarded.${Y}`);else if(J.length>0)K(`Worktree removed. Uncommitted changes were discarded.${Y}`);else K(`Worktree removed.${Y}`);H("done")}}if(V==="keeping")return v(E,{flexDirection:"row",marginY:1,children:[Q(M,{}),Q(j,{children:"Keeping worktree…"})]});if(V==="removing")return v(E,{flexDirection:"row",marginY:1,children:[Q(M,{}),Q(j,{children:"Removing worktree…"})]});let D=q.worktreeBranch,N=J.length>0,b=z>0,L="";if(N&&b)L=`You have ${J.length} uncommitted ${J.length===1?"file":"files"} and ${z} ${z===1?"commit":"commits"} on ${D}. All will be lost if you remove.`;else if(N)L=`You have ${J.length} uncommitted ${J.length===1?"file":"files"}. These will be lost if you remove the worktree.`;else if(b)L=`You have ${z} ${z===1?"commit":"commits"} on ${D}. The branch will be deleted if you remove the worktree.`;else L="You are working in a worktree. Keep it to continue working there, or remove it to clean up.";function r(){if(I){I();return}d("keep")}let h=N||b?"All changes and commits will be lost.":"Clean up the worktree directory.",C=Boolean(q.tmuxSessionName),o=C?[{label:"Keep worktree and tmux session",value:"keep-with-tmux",description:`Stays at ${q.worktreePath}. Reattach with: tmux attach -t ${q.tmuxSessionName}`},{label:"Keep worktree, kill tmux session",value:"keep-kill-tmux",description:`Keeps worktree at ${q.worktreePath}, terminates tmux session.`},{label:"Remove worktree and tmux session",value:"remove-with-tmux",description:h}]:[{label:"Keep worktree",value:"keep",description:`Stays at ${q.worktreePath}`},{label:"Remove worktree",value:"remove",description:h}];return Q(S,{title:"Exiting worktree session",subtitle:L,onCancel:r,children:Q(c,{defaultFocusValue:C?"keep-with-tmux":"keep",options:o,onChange:d})})}var X;var u=k(()=>{e();Jq();qq();Kq();zq();Vq();Hq();Xq();Qq();Zq();y();X=w(Iq(),1)});function Lq(){return a(Gq)??"Goodbye!"}function hq(G){let I=i.c(5),{showWorktree:V,onDone:H,onCancel:J}=G,O;if(I[0]!==H)O=async function(_){H(_??Lq()),await n(0,"prompt_input_exit")},I[0]=H,I[1]=O;else O=I[1];let z=O;if(V){let Z;if(I[2]!==J||I[3]!==z)Z=Q(l,{onDone:z,onCancel:J}),I[2]=J,I[3]=z,I[4]=Z;else Z=I[4];return Z}return null}var i,Gq;var Uq=k(()=>{Bq();Fq();u();y();i=w(Oq(),1),Gq=["Goodbye!","See ya!","Bye!","Catch you later!"]});
|
|
3
|
+
export{hq as kc,Uq as lc};
|