@claudiolabs/claudin 0.5.8 → 0.5.10
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/bin/claudin +62 -0
- package/dist/chunks/AgentTool-0.5.10-k5mymxpj.mjs +1 -0
- package/dist/chunks/App-0.5.10-yzg0d70f.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.5.10-mpm24aq5.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.5.10-jbgn5s9r.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.5.10-tk2jpgdr.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.5.10-2gqvp73t.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.10-mwwqh2cz.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.5.10-f4wd3yew.mjs +1 -0
- package/dist/chunks/DiffDialog-0.5.10-f28xdhns.mjs +3 -0
- package/dist/chunks/Doctor-0.5.10-dz3ndek3.mjs +1 -0
- package/dist/chunks/Grove-0.5.10-f2m596r7.mjs +1 -0
- package/dist/chunks/ITermBackend-0.5.10-k9sjxv27.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.5.10-d5f0ba3j.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.5.10-vyexdzf7.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.5.10-fxhfd566.mjs +1 -0
- package/dist/chunks/Onboarding-0.5.10-61c4a01v.mjs +1 -0
- package/dist/chunks/ProviderManager-0.5.10-mhnze07c.mjs +1 -0
- package/dist/chunks/REPL-0.5.10-qag06ykw.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.5.10-ax66yat2.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.5.10-mkzs7881.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.5.10-762m6e6b.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.5.10-mr8ddjsn.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.5.10-rs9vs3j0.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.5.10-s7yrx34h.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.5.10-8tejm808.mjs +1 -0
- package/dist/chunks/TrustDialog-0.5.10-v09an4xe.mjs +1 -0
- package/dist/chunks/activeProvider-0.5.10-1c68rtzb.mjs +1 -0
- package/dist/chunks/add-dir-0.5.10-6hyjyege.mjs +1 -0
- package/dist/chunks/agents-0.5.10-34zhsd0m.mjs +110 -0
- package/dist/chunks/agents-0.5.10-fa6mrf84.mjs +3 -0
- package/dist/chunks/api-0.5.10-hvafwq9b.mjs +1 -0
- package/dist/chunks/asciicast-0.5.10-c2nfaps4.mjs +1 -0
- package/dist/chunks/assistant-0.5.10-w55twa4a.mjs +1 -0
- package/dist/chunks/auth-0.5.10-dmv8dcy1.mjs +1 -0
- package/dist/chunks/auth-0.5.10-tqm37j6k.mjs +1 -0
- package/dist/chunks/autoMode-0.5.10-bew44c3j.mjs +48 -0
- package/dist/chunks/autoUpdater-0.5.10-dav9gs0x.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.5.10-rsyjn0x7.mjs +1 -0
- package/dist/chunks/branch-0.5.10-k81z6new.mjs +4 -0
- package/dist/chunks/bridgePointer-0.5.10-h727df9t.mjs +1 -0
- package/dist/chunks/btw-0.5.10-f1syxkz1.mjs +1 -0
- package/dist/chunks/buddy-0.5.10-a15r3a8e.mjs +3 -0
- package/dist/chunks/cacache-0.5.10-1hz9d6s8.mjs +1 -0
- package/dist/chunks/cache-probe-0.5.10-fcxj2wy5.mjs +21 -0
- package/dist/chunks/cacheStats-0.5.10-vedv1qp4.mjs +4 -0
- package/dist/chunks/caches-0.5.10-fmadrqb1.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.5.10-mz1s1yqp.mjs +1 -0
- package/dist/chunks/claudemd-0.5.10-9mb95kbb.mjs +1 -0
- package/dist/chunks/clear-0.5.10-tshbmj0g.mjs +1 -0
- package/dist/chunks/clearTerminal-0.5.10-bjqnvfmf.mjs +1 -0
- package/dist/chunks/cli-0.5.10-0ar26ct8.mjs +2 -0
- package/dist/chunks/cli-0.5.10-0p24d24e.mjs +2 -0
- package/dist/chunks/cli-0.5.10-0sg20shr.mjs +2 -0
- package/dist/chunks/cli-0.5.10-0twjtft5.mjs +2 -0
- package/dist/chunks/cli-0.5.10-0vs5gmpe.mjs +4 -0
- package/dist/chunks/cli-0.5.10-0xb1405m.mjs +2 -0
- package/dist/chunks/cli-0.5.10-0yn5x3m6.mjs +2 -0
- package/dist/chunks/cli-0.5.10-1gafefn2.mjs +3 -0
- package/dist/chunks/cli-0.5.10-1sd567wn.mjs +2 -0
- package/dist/chunks/cli-0.5.10-207502x5.mjs +2 -0
- package/dist/chunks/cli-0.5.10-20w5v1ja.mjs +2 -0
- package/dist/chunks/cli-0.5.10-20x96vwq.mjs +2 -0
- package/dist/chunks/cli-0.5.10-2c19pn7b.mjs +2 -0
- package/dist/chunks/cli-0.5.10-2es9q9n1.mjs +2 -0
- package/dist/chunks/cli-0.5.10-2fqes7gy.mjs +193 -0
- package/dist/chunks/cli-0.5.10-2qxn5ad9.mjs +2 -0
- package/dist/chunks/cli-0.5.10-2yqdkew6.mjs +3 -0
- package/dist/chunks/cli-0.5.10-2yrgbmd1.mjs +9 -0
- package/dist/chunks/cli-0.5.10-347yjq4a.mjs +2 -0
- package/dist/chunks/cli-0.5.10-3xnh04c6.mjs +2 -0
- package/dist/chunks/cli-0.5.10-4ekf1v4x.mjs +2 -0
- package/dist/chunks/cli-0.5.10-57andxje.mjs +26 -0
- package/dist/chunks/cli-0.5.10-58erwwbz.mjs +3 -0
- package/dist/chunks/cli-0.5.10-5m76kmzk.mjs +2 -0
- package/dist/chunks/cli-0.5.10-5mp7dx81.mjs +2 -0
- package/dist/chunks/cli-0.5.10-5nzsgwh2.mjs +2 -0
- package/dist/chunks/cli-0.5.10-5stz3dbm.mjs +2 -0
- package/dist/chunks/cli-0.5.10-5w3eaafz.mjs +2 -0
- package/dist/chunks/cli-0.5.10-661g0gft.mjs +2 -0
- package/dist/chunks/cli-0.5.10-68wvhytx.mjs +10 -0
- package/dist/chunks/cli-0.5.10-6c055y30.mjs +2 -0
- package/dist/chunks/cli-0.5.10-6g0257t2.mjs +2 -0
- package/dist/chunks/cli-0.5.10-6jarntdq.mjs +2 -0
- package/dist/chunks/cli-0.5.10-6twsf5qs.mjs +2 -0
- package/dist/chunks/cli-0.5.10-6wzddpjt.mjs +42 -0
- package/dist/chunks/cli-0.5.10-6y9d3fye.mjs +45 -0
- package/dist/chunks/cli-0.5.10-6z4j2qja.mjs +24 -0
- package/dist/chunks/cli-0.5.10-6zwxmza2.mjs +4 -0
- package/dist/chunks/cli-0.5.10-7f5q1zvk.mjs +2 -0
- package/dist/chunks/cli-0.5.10-7j4590js.mjs +2 -0
- package/dist/chunks/cli-0.5.10-7shp24xv.mjs +3 -0
- package/dist/chunks/cli-0.5.10-7tpa30tv.mjs +3 -0
- package/dist/chunks/cli-0.5.10-84q7z5hq.mjs +2 -0
- package/dist/chunks/cli-0.5.10-84z0ztsf.mjs +18 -0
- package/dist/chunks/cli-0.5.10-87sd2pqh.mjs +3 -0
- package/dist/chunks/cli-0.5.10-8f53zcp3.mjs +2 -0
- package/dist/chunks/cli-0.5.10-8jjacn05.mjs +5262 -0
- package/dist/chunks/cli-0.5.10-8kpt6897.mjs +3 -0
- package/dist/chunks/cli-0.5.10-8wqagr68.mjs +4 -0
- package/dist/chunks/cli-0.5.10-8zwd1xme.mjs +25 -0
- package/dist/chunks/cli-0.5.10-948wwm63.mjs +2 -0
- package/dist/chunks/cli-0.5.10-9dazv3hg.mjs +2 -0
- package/dist/chunks/cli-0.5.10-9ek8f4vk.mjs +2 -0
- package/dist/chunks/cli-0.5.10-9h23hhgb.mjs +2 -0
- package/dist/chunks/cli-0.5.10-9mt7ynrh.mjs +2 -0
- package/dist/chunks/cli-0.5.10-9xc8zhxg.mjs +59 -0
- package/dist/chunks/cli-0.5.10-9ynpb3y0.mjs +21 -0
- package/dist/chunks/cli-0.5.10-a1hh6v31.mjs +2 -0
- package/dist/chunks/cli-0.5.10-a38pnxbz.mjs +2 -0
- package/dist/chunks/cli-0.5.10-a542fww1.mjs +2 -0
- package/dist/chunks/cli-0.5.10-a8ecfnq0.mjs +2 -0
- package/dist/chunks/cli-0.5.10-atkghjt0.mjs +2 -0
- package/dist/chunks/cli-0.5.10-ax0fmeqk.mjs +2 -0
- package/dist/chunks/cli-0.5.10-azhfv28d.mjs +2 -0
- package/dist/chunks/cli-0.5.10-b4j3x063.mjs +4 -0
- package/dist/chunks/cli-0.5.10-b761m5q2.mjs +2 -0
- package/dist/chunks/cli-0.5.10-b7r8mjbd.mjs +9 -0
- package/dist/chunks/cli-0.5.10-ba15gakh.mjs +2 -0
- package/dist/chunks/cli-0.5.10-bad3yv4c.mjs +2 -0
- package/dist/chunks/cli-0.5.10-bhb8rt9y.mjs +2 -0
- package/dist/chunks/cli-0.5.10-bj0bm26b.mjs +4 -0
- package/dist/chunks/cli-0.5.10-bmc43e4g.mjs +2 -0
- package/dist/chunks/cli-0.5.10-bsqvacka.mjs +2 -0
- package/dist/chunks/cli-0.5.10-c0xtw3q0.mjs +34 -0
- package/dist/chunks/cli-0.5.10-c82cgdm7.mjs +133 -0
- package/dist/chunks/cli-0.5.10-c9z4tdw2.mjs +2 -0
- package/dist/chunks/cli-0.5.10-cm0r4pkd.mjs +3 -0
- package/dist/chunks/cli-0.5.10-cw4ykvbj.mjs +2 -0
- package/dist/chunks/cli-0.5.10-cz6csv1p.mjs +2 -0
- package/dist/chunks/cli-0.5.10-d1y749qy.mjs +2 -0
- package/dist/chunks/cli-0.5.10-d2cw91xn.mjs +3 -0
- package/dist/chunks/cli-0.5.10-d4d9x2de.mjs +2 -0
- package/dist/chunks/cli-0.5.10-d609fanf.mjs +2 -0
- package/dist/chunks/cli-0.5.10-d64hr722.mjs +3 -0
- package/dist/chunks/cli-0.5.10-d9xf1jnz.mjs +12 -0
- package/dist/chunks/cli-0.5.10-dkt8bbmm.mjs +3 -0
- package/dist/chunks/cli-0.5.10-dmmckmyf.mjs +12 -0
- package/dist/chunks/cli-0.5.10-dvmddb7c.mjs +6 -0
- package/dist/chunks/cli-0.5.10-dz26120x.mjs +2 -0
- package/dist/chunks/cli-0.5.10-dzr8kmx4.mjs +2 -0
- package/dist/chunks/cli-0.5.10-e8tz9596.mjs +2 -0
- package/dist/chunks/cli-0.5.10-e8wz8kc0.mjs +58 -0
- package/dist/chunks/cli-0.5.10-eh9hq9n3.mjs +2 -0
- package/dist/chunks/cli-0.5.10-ewcdy4pj.mjs +2 -0
- package/dist/chunks/cli-0.5.10-f3fj7f3q.mjs +2 -0
- package/dist/chunks/cli-0.5.10-fcbrnw81.mjs +2 -0
- package/dist/chunks/cli-0.5.10-fjvz4bt0.mjs +8 -0
- package/dist/chunks/cli-0.5.10-fzx10svb.mjs +2 -0
- package/dist/chunks/cli-0.5.10-g4khh98h.mjs +2 -0
- package/dist/chunks/cli-0.5.10-gekw3xnm.mjs +2 -0
- package/dist/chunks/cli-0.5.10-gk9n4zev.mjs +2 -0
- package/dist/chunks/cli-0.5.10-gs8dx67v.mjs +2 -0
- package/dist/chunks/cli-0.5.10-hmp23q7z.mjs +2 -0
- package/dist/chunks/cli-0.5.10-hzh8tpg0.mjs +2 -0
- package/dist/chunks/cli-0.5.10-j1aznw8b.mjs +2 -0
- package/dist/chunks/cli-0.5.10-jd7ff66n.mjs +2 -0
- package/dist/chunks/cli-0.5.10-jhtht51h.mjs +4 -0
- package/dist/chunks/cli-0.5.10-jsnrvena.mjs +2 -0
- package/dist/chunks/cli-0.5.10-k0mnqs0g.mjs +15 -0
- package/dist/chunks/cli-0.5.10-k1s62rww.mjs +2 -0
- package/dist/chunks/cli-0.5.10-k3qbvfj5.mjs +2 -0
- package/dist/chunks/cli-0.5.10-kj2g5r8c.mjs +15 -0
- package/dist/chunks/cli-0.5.10-kyt82zt5.mjs +2 -0
- package/dist/chunks/cli-0.5.10-m0hghx42.mjs +2 -0
- package/dist/chunks/cli-0.5.10-mcw01p8b.mjs +2 -0
- package/dist/chunks/cli-0.5.10-mgkc1jay.mjs +15 -0
- package/dist/chunks/cli-0.5.10-mrgw2c00.mjs +2 -0
- package/dist/chunks/cli-0.5.10-mvckg6zv.mjs +17 -0
- package/dist/chunks/cli-0.5.10-mxzdkm6r.mjs +2 -0
- package/dist/chunks/cli-0.5.10-n70d8n1f.mjs +2 -0
- package/dist/chunks/cli-0.5.10-neaex6bh.mjs +2 -0
- package/dist/chunks/cli-0.5.10-npmmxjts.mjs +5 -0
- package/dist/chunks/cli-0.5.10-nqvng39w.mjs +2 -0
- package/dist/chunks/cli-0.5.10-nvmq8pez.mjs +2 -0
- package/dist/chunks/cli-0.5.10-nx3m5sa2.mjs +2 -0
- package/dist/chunks/cli-0.5.10-p3g04417.mjs +20 -0
- package/dist/chunks/cli-0.5.10-p4wmnjhz.mjs +6 -0
- package/dist/chunks/cli-0.5.10-p5j82v0t.mjs +2 -0
- package/dist/chunks/cli-0.5.10-p7jd1z33.mjs +2 -0
- package/dist/chunks/cli-0.5.10-p8hbe96w.mjs +133 -0
- package/dist/chunks/cli-0.5.10-pk91q3s6.mjs +4 -0
- package/dist/chunks/cli-0.5.10-pq8nhdeq.mjs +2 -0
- package/dist/chunks/cli-0.5.10-pr0nkqpw.mjs +2 -0
- package/dist/chunks/cli-0.5.10-pr8yqs5v.mjs +2 -0
- package/dist/chunks/cli-0.5.10-pxhw9mwz.mjs +2 -0
- package/dist/chunks/cli-0.5.10-qvp1fb5n.mjs +2 -0
- package/dist/chunks/cli-0.5.10-qw9y3mst.mjs +2 -0
- package/dist/chunks/cli-0.5.10-qx17jbqj.mjs +2 -0
- package/dist/chunks/cli-0.5.10-r0jt3zrj.mjs +2 -0
- package/dist/chunks/cli-0.5.10-ra711jkk.mjs +2 -0
- package/dist/chunks/cli-0.5.10-rhmrff22.mjs +2 -0
- package/dist/chunks/cli-0.5.10-rk7at2tn.mjs +2 -0
- package/dist/chunks/cli-0.5.10-rq5mv7xq.mjs +2 -0
- package/dist/chunks/cli-0.5.10-rwqvbtg3.mjs +18 -0
- package/dist/chunks/cli-0.5.10-rxnwkka5.mjs +24 -0
- package/dist/chunks/cli-0.5.10-rzshk2m6.mjs +6 -0
- package/dist/chunks/cli-0.5.10-rzz4tgvw.mjs +12 -0
- package/dist/chunks/cli-0.5.10-s8bv5q7m.mjs +2 -0
- package/dist/chunks/cli-0.5.10-srd78kpc.mjs +7 -0
- package/dist/chunks/cli-0.5.10-syb1bnb2.mjs +4 -0
- package/dist/chunks/cli-0.5.10-t11my4jb.mjs +2 -0
- package/dist/chunks/cli-0.5.10-t2s1mxyn.mjs +2 -0
- package/dist/chunks/cli-0.5.10-t9d916t1.mjs +39 -0
- package/dist/chunks/cli-0.5.10-tbpqmp1s.mjs +2 -0
- package/dist/chunks/cli-0.5.10-tkjtbv56.mjs +2 -0
- package/dist/chunks/cli-0.5.10-tqpg21eq.mjs +2 -0
- package/dist/chunks/cli-0.5.10-tqyytkxn.mjs +2 -0
- package/dist/chunks/cli-0.5.10-tr692cqd.mjs +2 -0
- package/dist/chunks/cli-0.5.10-v36c5nnr.mjs +2 -0
- package/dist/chunks/cli-0.5.10-v6kj3ej2.mjs +2 -0
- package/dist/chunks/cli-0.5.10-vhn14p7a.mjs +2 -0
- package/dist/chunks/cli-0.5.10-vhrqqvdz.mjs +5 -0
- package/dist/chunks/cli-0.5.10-vpfctkxf.mjs +2 -0
- package/dist/chunks/cli-0.5.10-vqkn3pgf.mjs +17 -0
- package/dist/chunks/cli-0.5.10-vqrqhas6.mjs +2 -0
- package/dist/chunks/cli-0.5.10-vsgznv7p.mjs +2 -0
- package/dist/chunks/cli-0.5.10-vyem3gpm.mjs +2 -0
- package/dist/chunks/cli-0.5.10-w29mv5e9.mjs +4 -0
- package/dist/chunks/cli-0.5.10-w41wxn5f.mjs +50 -0
- package/dist/chunks/cli-0.5.10-w698y5mp.mjs +5 -0
- package/dist/chunks/cli-0.5.10-w93v7bhm.mjs +2 -0
- package/dist/chunks/cli-0.5.10-xfqxbzc6.mjs +4 -0
- package/dist/chunks/cli-0.5.10-xg27xawf.mjs +2 -0
- package/dist/chunks/cli-0.5.10-xhy1yx61.mjs +2 -0
- package/dist/chunks/cli-0.5.10-xk6v4sy0.mjs +2 -0
- package/dist/chunks/cli-0.5.10-xnmg1qwd.mjs +2 -0
- package/dist/chunks/cli-0.5.10-xrwj7982.mjs +67 -0
- package/dist/chunks/cli-0.5.10-xy780m03.mjs +2 -0
- package/dist/chunks/cli-0.5.10-xyscak5q.mjs +16 -0
- package/dist/chunks/cli-0.5.10-y0sfzz9t.mjs +2 -0
- package/dist/chunks/cli-0.5.10-y0sr20nf.mjs +2 -0
- package/dist/chunks/cli-0.5.10-y4tn070k.mjs +1 -0
- package/dist/chunks/cli-0.5.10-y7j4tsb5.mjs +2 -0
- package/dist/chunks/cli-0.5.10-y9qd4psg.mjs +2 -0
- package/dist/chunks/cli-0.5.10-ytqna8q4.mjs +2 -0
- package/dist/chunks/cli-0.5.10-yvjnvgky.mjs +2 -0
- package/dist/chunks/cli-0.5.10-yxxbgd59.mjs +2 -0
- package/dist/chunks/cli-0.5.10-yzqkgb55.mjs +2 -0
- package/dist/chunks/cli-0.5.10-z4bzn8vh.mjs +2 -0
- package/dist/chunks/cli-0.5.10-z5ysspq8.mjs +2 -0
- package/dist/chunks/cli-0.5.10-zk1h67jm.mjs +2 -0
- package/dist/chunks/client-0.5.10-a5rmwz53.mjs +1 -0
- package/dist/chunks/color-0.5.10-3mtfm5rv.mjs +1 -0
- package/dist/chunks/compact-0.5.10-7zdm8hke.mjs +3 -0
- package/dist/chunks/config-0.5.10-ns9jcqxp.mjs +1 -0
- package/dist/chunks/config-0.5.10-vtf1kzhz.mjs +1 -0
- package/dist/chunks/context-0.5.10-qjjyyqx9.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.5.10-244bgmbj.mjs +1 -0
- package/dist/chunks/conversation-0.5.10-zza66sgq.mjs +1 -0
- package/dist/chunks/copy-0.5.10-d6nstaxy.mjs +9 -0
- package/dist/chunks/cost-0.5.10-k89r76j7.mjs +1 -0
- package/dist/chunks/createSSHSession-0.5.10-xy3z3tdw.mjs +1 -0
- package/dist/chunks/createSession-0.5.10-ntrenxk4.mjs +1 -0
- package/dist/chunks/debug-0.5.10-bxkhvfc6.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.5.10-h673vq05.mjs +1177 -0
- package/dist/chunks/desktop-0.5.10-v0j5w6e8.mjs +1 -0
- package/dist/chunks/detectRepository-0.5.10-z29dy30r.mjs +1 -0
- package/dist/chunks/detection-0.5.10-jhy1kffq.mjs +1 -0
- package/dist/chunks/diff-0.5.10-14m8b77v.mjs +1 -0
- package/dist/chunks/doctor-0.5.10-pn374er7.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.5.10-wkjtp4z5.mjs +1 -0
- package/dist/chunks/earlyInput-0.5.10-9nxfn64h.mjs +1 -0
- package/dist/chunks/effort-0.5.10-sjn55ka6.mjs +10 -0
- package/dist/chunks/envUtils-0.5.10-sdrg5j2r.mjs +1 -0
- package/dist/chunks/environmentSelection-0.5.10-nkxtjsa6.mjs +1 -0
- package/dist/chunks/environments-0.5.10-j3cwt63g.mjs +1 -0
- package/dist/chunks/errors-0.5.10-k3a2vs5j.mjs +1 -0
- package/dist/chunks/exampleCommands-0.5.10-s4q3ndpx.mjs +1 -0
- package/dist/chunks/exit-0.5.10-aaqjsrb3.mjs +1 -0
- package/dist/chunks/export-0.5.10-g3n84jha.mjs +2 -0
- package/dist/chunks/extra-usage-0.5.10-1k8453hn.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.5.10-h0s4j23t.mjs +1 -0
- package/dist/chunks/fast-0.5.10-6jg8q83t.mjs +1 -0
- package/dist/chunks/feedback-0.5.10-f4cms77n.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.5.10-mtcdee5x.mjs +1 -0
- package/dist/chunks/git-0.5.10-5yr5z4ap.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.5.10-pfeadzx7.mjs +1 -0
- package/dist/chunks/grove-0.5.10-4vzycmmm.mjs +1 -0
- package/dist/chunks/growthbook-0.5.10-nf8eqz7k.mjs +1 -0
- package/dist/chunks/headless-0.5.10-kqpgc4q6.mjs +2 -0
- package/dist/chunks/heapdump-0.5.10-zedkfpnn.mjs +6 -0
- package/dist/chunks/help-0.5.10-a3vhmv05.mjs +1 -0
- package/dist/chunks/hookChains-0.5.10-yc93jx3d.mjs +3 -0
- package/dist/chunks/hooks-0.5.10-negsdbpw.mjs +1 -0
- package/dist/chunks/hooks-0.5.10-t26wz67x.mjs +79 -0
- package/dist/chunks/ide-0.5.10-qsh8k0we.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.5.10-8kz0m2nd.mjs +1 -0
- package/dist/chunks/index-0.5.10-0j9kz8a6.mjs +1 -0
- package/dist/chunks/index-0.5.10-0wzdjjzk.mjs +5 -0
- package/dist/chunks/index-0.5.10-5fsxcv9a.mjs +1 -0
- package/dist/chunks/index-0.5.10-6v1h8fb2.mjs +17 -0
- package/dist/chunks/index-0.5.10-7t36m4fw.mjs +30 -0
- package/dist/chunks/index-0.5.10-8t5phmpa.mjs +9 -0
- package/dist/chunks/index-0.5.10-ak9fnp4h.mjs +2 -0
- package/dist/chunks/index-0.5.10-asj7h5d6.mjs +9 -0
- package/dist/chunks/index-0.5.10-dxkhh5bg.mjs +1 -0
- package/dist/chunks/index-0.5.10-eh8w8ayw.mjs +2 -0
- package/dist/chunks/index-0.5.10-fjf8d5vq.mjs +1 -0
- package/dist/chunks/index-0.5.10-fyt0d84h.mjs +1 -0
- package/dist/chunks/index-0.5.10-m8cjzf6y.mjs +1 -0
- package/dist/chunks/index-0.5.10-marrtwvx.mjs +1 -0
- package/dist/chunks/index-0.5.10-n7zsm7mc.mjs +1 -0
- package/dist/chunks/index-0.5.10-p69q9n6x.mjs +1 -0
- package/dist/chunks/index-0.5.10-rv6kfzr0.mjs +1 -0
- package/dist/chunks/index-0.5.10-s5ttsdnm.mjs +1 -0
- package/dist/chunks/index-0.5.10-thyhdy51.mjs +1 -0
- package/dist/chunks/index-0.5.10-tncm271j.mjs +1 -0
- package/dist/chunks/index-0.5.10-wzxzkrhk.mjs +1 -0
- package/dist/chunks/index-0.5.10-x3apane6.mjs +1 -0
- package/dist/chunks/init-0.5.10-ef7yaw4p.mjs +1 -0
- package/dist/chunks/initReplBridge-0.5.10-we7sga8z.mjs +1 -0
- package/dist/chunks/ink-0.5.10-chpcjhk0.mjs +1 -0
- package/dist/chunks/insights-0.5.10-advkjwjk.mjs +870 -0
- package/dist/chunks/install-0.5.10-znt3x5wn.mjs +1 -0
- package/dist/chunks/install-github-app-0.5.10-jg0eqhv0.mjs +149 -0
- package/dist/chunks/install-slack-app-0.5.10-ryvy8j96.mjs +1 -0
- package/dist/chunks/instrumentation-0.5.10-36atfc3f.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.5.10-asvens6h.mjs +1 -0
- package/dist/chunks/keybindings-0.5.10-csc1yzpg.mjs +2 -0
- package/dist/chunks/knowledge-0.5.10-tg7cvbym.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.5.10-wjt7dbqy.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.5.10-7zwxynjb.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.5.10-c8kk1n2h.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.5.10-qx8rwccw.mjs +1 -0
- package/dist/chunks/log-0.5.10-ews8b6yn.mjs +1 -0
- package/dist/chunks/main-0.5.10-dxwhwf46.mjs +1 -0
- package/dist/chunks/managedEnv-0.5.10-5jce9mqj.mjs +1 -0
- package/dist/chunks/mcp-0.5.10-1wxhgtsr.mjs +17 -0
- package/dist/chunks/mcp-0.5.10-5wsj8fv2.mjs +1 -0
- package/dist/chunks/mcp-0.5.10-ydcjrb4p.mjs +4 -0
- package/dist/chunks/mcpb-0.5.10-120rqrb1.mjs +1 -0
- package/dist/chunks/memory-0.5.10-0pqjdjed.mjs +3 -0
- package/dist/chunks/mobile-0.5.10-kp63nfej.mjs +2 -0
- package/dist/chunks/model-0.5.10-9zszn74v.mjs +2 -0
- package/dist/chunks/model-0.5.10-b64fg4gd.mjs +1 -0
- package/dist/chunks/node-0.5.10-tny076t5.mjs +12 -0
- package/dist/chunks/oauth-0.5.10-fccp2x7y.mjs +1 -0
- package/dist/chunks/openaiShim-0.5.10-gwjyjn7m.mjs +14 -0
- package/dist/chunks/output-style-0.5.10-526tregy.mjs +1 -0
- package/dist/chunks/package-D6422PQU-0.5.10-we8amhca.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.5.10-nhkxeakd.mjs +1 -0
- package/dist/chunks/parser-0.5.10-m4aj9jm7.mjs +1 -0
- package/dist/chunks/passes-0.5.10-vwhmhxn9.mjs +1 -0
- package/dist/chunks/permissions-0.5.10-b7p2zxt8.mjs +3 -0
- package/dist/chunks/plan-0.5.10-s8612fw1.mjs +1 -0
- package/dist/chunks/plist-0.5.10-e8k2gtwm.mjs +1 -0
- package/dist/chunks/plugin-0.5.10-pjh90f93.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.5.10-mamzxaj6.mjs +1 -0
- package/dist/chunks/plugins-0.5.10-3zq96m7k.mjs +9 -0
- package/dist/chunks/preActionHook-0.5.10-6x12np60.mjs +2 -0
- package/dist/chunks/print-0.5.10-5a31vx9j.mjs +57 -0
- package/dist/chunks/privacy-settings-0.5.10-rdfd63af.mjs +1 -0
- package/dist/chunks/process-0.5.10-nf4cmk34.mjs +1 -0
- package/dist/chunks/processBashCommand-0.5.10-mw974xep.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.5.10-e8c6n292.mjs +9 -0
- package/dist/chunks/prompt-0.5.10-6pbxq1g3.mjs +1 -0
- package/dist/chunks/prompt-0.5.10-n31de4d4.mjs +1 -0
- package/dist/chunks/prompts-0.5.10-0cxg5rvf.mjs +1 -0
- package/dist/chunks/protocolHandler-0.5.10-n15zj80n.mjs +13 -0
- package/dist/chunks/provider-0.5.10-0chtqqq3.mjs +2 -0
- package/dist/chunks/providerProfiles-0.5.10-kk39f15h.mjs +1 -0
- package/dist/chunks/providerValidation-0.5.10-5b2bmm6k.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.5.10-qen28djd.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.5.10-xmgpzx1a.mjs +34 -0
- package/dist/chunks/registry-0.5.10-q3yb1jt6.mjs +1 -0
- package/dist/chunks/release-notes-0.5.10-3m0mwzvq.mjs +5 -0
- package/dist/chunks/reload-plugins-0.5.10-2ngnamq3.mjs +2 -0
- package/dist/chunks/remote-env-0.5.10-gm9a4ms5.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.5.10-s9tnpv93.mjs +1 -0
- package/dist/chunks/remoteSession-0.5.10-mk8be8a3.mjs +1 -0
- package/dist/chunks/rename-0.5.10-9ecwm2ar.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.5.10-9956kd4a.mjs +1 -0
- package/dist/chunks/replLauncher-0.5.10-94wyag0m.mjs +1 -0
- package/dist/chunks/resume-0.5.10-nc3z5h15.mjs +2 -0
- package/dist/chunks/rewind-0.5.10-wbs4stfg.mjs +1 -0
- package/dist/chunks/rootOptions-0.5.10-8ky1y6hv.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.5.10-jg0fj7ss.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.5.10-yy9272d9.mjs +1 -0
- package/dist/chunks/session-0.5.10-jqzxp3r3.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.5.10-7va0srxq.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.5.10-bykpya1w.mjs +1 -0
- package/dist/chunks/sessionStorage-0.5.10-yy69cv78.mjs +1 -0
- package/dist/chunks/settings-0.5.10-kx3ep0z5.mjs +1 -0
- package/dist/chunks/setup-0.5.10-w0byw3fs.mjs +5 -0
- package/dist/chunks/sinks-0.5.10-289qngp8.mjs +1 -0
- package/dist/chunks/skills-0.5.10-6kvsqc69.mjs +1 -0
- package/dist/chunks/startupProfiler-0.5.10-e0mg4v8r.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.5.10-08eextv5.mjs +1 -0
- package/dist/chunks/state-0.5.10-7xqjnrdw.mjs +1 -0
- package/dist/chunks/stats-0.5.10-fafdyc91.mjs +6 -0
- package/dist/chunks/status-0.5.10-y9t6rf31.mjs +1 -0
- package/dist/chunks/stickers-0.5.10-ta1pq624.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.5.10-zv2wcv5q.mjs +1 -0
- package/dist/chunks/tasks-0.5.10-d0y0wvjj.mjs +1 -0
- package/dist/chunks/teamHelpers-0.5.10-qpwpfv94.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.5.10-92d1devr.mjs +1 -0
- package/dist/chunks/teleport-0.5.10-rkxj6c9z.mjs +1 -0
- package/dist/chunks/terminalSetup-0.5.10-xtrfcff1.mjs +1 -0
- package/dist/chunks/theme-0.5.10-5rz8k2g9.mjs +1 -0
- package/dist/chunks/thinkback-0.5.10-pmdfhfhz.mjs +1 -0
- package/dist/chunks/thinkback-play-0.5.10-051qtb4m.mjs +1 -0
- package/dist/chunks/toolPool-0.5.10-702w7qvh.mjs +1 -0
- package/dist/chunks/toolSearch-0.5.10-emqjgdkv.mjs +1 -0
- package/dist/chunks/tools-0.5.10-2msmk0nf.mjs +1 -0
- package/dist/chunks/trustedDevice-0.5.10-rc23c6gy.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.5.10-a87sftz7.mjs +69 -0
- package/dist/chunks/ultrareviewCommand-0.5.10-z29nftnt.mjs +4 -0
- package/dist/chunks/update-0.5.10-52yyras3.mjs +86 -0
- package/dist/chunks/upgrade-0.5.10-xqdpemsf.mjs +1 -0
- package/dist/chunks/upstreamproxy-0.5.10-154q742m.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.5.10-8af5etcc.mjs +1 -0
- package/dist/chunks/usage-0.5.10-hhg47trs.mjs +1 -0
- package/dist/chunks/util-0.5.10-0zqyyf2e.mjs +1 -0
- package/dist/chunks/utils-0.5.10-36gnsqbk.mjs +1 -0
- package/dist/chunks/vim-0.5.10-0zas1t6x.mjs +1 -0
- package/dist/chunks/watcher-0.5.10-9etw516s.mjs +1 -0
- package/dist/chunks/wiki-0.5.10-rwktf7fm.mjs +132 -0
- package/dist/chunks/worktree-0.5.10-afdnv059.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.5.10-n0bmqq02.mjs +1 -0
- package/dist/chunks/wrapper-0.5.10-0bca9c3g.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +24 -24
- package/dist/chunks/AgentTool-0.5.8-161prcqd.mjs +0 -1
- package/dist/chunks/App-0.5.8-s4939y9q.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.5.8-kyzt3tyh.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.5.8-0fws1s48.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.5.8-v373fzha.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.5.8-pbv15kg8.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.8-rmcm4b5v.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.5.8-q3djee4h.mjs +0 -1
- package/dist/chunks/DiffDialog-0.5.8-1gvdqrt3.mjs +0 -3
- package/dist/chunks/Doctor-0.5.8-5k5vqf8q.mjs +0 -1
- package/dist/chunks/Grove-0.5.8-g2xzefay.mjs +0 -1
- package/dist/chunks/ITermBackend-0.5.8-j209yx9z.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.5.8-98nc303h.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.5.8-p5qzw710.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.5.8-gp57r21r.mjs +0 -1
- package/dist/chunks/Onboarding-0.5.8-m0r6a4s2.mjs +0 -1
- package/dist/chunks/ProviderManager-0.5.8-6tfnxyse.mjs +0 -1
- package/dist/chunks/REPL-0.5.8-sf0q46pa.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.5.8-0j8mw0eh.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.5.8-13b725ee.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.5.8-3fxrymde.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.5.8-1dqx0hnb.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.5.8-84pek3s7.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.5.8-rcwm1j6z.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.5.8-fp493kvp.mjs +0 -1
- package/dist/chunks/TrustDialog-0.5.8-j0h8y92c.mjs +0 -1
- package/dist/chunks/activeProvider-0.5.8-y1zsxh1g.mjs +0 -1
- package/dist/chunks/add-dir-0.5.8-sz3kyvkz.mjs +0 -1
- package/dist/chunks/agents-0.5.8-cm3hzc60.mjs +0 -3
- package/dist/chunks/agents-0.5.8-qg1s69va.mjs +0 -110
- package/dist/chunks/api-0.5.8-pcde65dc.mjs +0 -1
- package/dist/chunks/asciicast-0.5.8-tgmb7g4m.mjs +0 -1
- package/dist/chunks/assistant-0.5.8-4mak6nq9.mjs +0 -1
- package/dist/chunks/auth-0.5.8-70ks8nc4.mjs +0 -1
- package/dist/chunks/auth-0.5.8-82vx5hkw.mjs +0 -1
- package/dist/chunks/autoMode-0.5.8-xjwjh2k5.mjs +0 -48
- package/dist/chunks/autoUpdater-0.5.8-rf164ggm.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.5.8-ak5ca2cx.mjs +0 -1
- package/dist/chunks/branch-0.5.8-n82xbsmg.mjs +0 -4
- package/dist/chunks/bridgePointer-0.5.8-m7nwe7sd.mjs +0 -1
- package/dist/chunks/btw-0.5.8-0yftty6m.mjs +0 -1
- package/dist/chunks/buddy-0.5.8-4dvkprbs.mjs +0 -3
- package/dist/chunks/cacache-0.5.8-vj95fs26.mjs +0 -1
- package/dist/chunks/cache-probe-0.5.8-944hef3p.mjs +0 -21
- package/dist/chunks/cacheStats-0.5.8-jdya51jg.mjs +0 -4
- package/dist/chunks/caches-0.5.8-xkrjxp25.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.5.8-fpb40wzd.mjs +0 -1
- package/dist/chunks/claudemd-0.5.8-eyztrzk8.mjs +0 -1
- package/dist/chunks/clear-0.5.8-kgvzdkgq.mjs +0 -1
- package/dist/chunks/clearTerminal-0.5.8-xv1faw7c.mjs +0 -1
- package/dist/chunks/cli-0.5.8-01yjahnz.mjs +0 -2
- package/dist/chunks/cli-0.5.8-07dyymev.mjs +0 -2
- package/dist/chunks/cli-0.5.8-0a4sdrgm.mjs +0 -2
- package/dist/chunks/cli-0.5.8-0bys4xae.mjs +0 -2
- package/dist/chunks/cli-0.5.8-0cmtavcs.mjs +0 -2
- package/dist/chunks/cli-0.5.8-0dkx0fh2.mjs +0 -2
- package/dist/chunks/cli-0.5.8-0hybhk72.mjs +0 -2
- package/dist/chunks/cli-0.5.8-0we2hm7d.mjs +0 -2
- package/dist/chunks/cli-0.5.8-1bp61y3p.mjs +0 -2
- package/dist/chunks/cli-0.5.8-1gm5vdye.mjs +0 -2
- package/dist/chunks/cli-0.5.8-1heha1zs.mjs +0 -2
- package/dist/chunks/cli-0.5.8-1x4w18nq.mjs +0 -2
- package/dist/chunks/cli-0.5.8-20gjzt7v.mjs +0 -2
- package/dist/chunks/cli-0.5.8-221e7v67.mjs +0 -2
- package/dist/chunks/cli-0.5.8-23ep6z70.mjs +0 -2
- package/dist/chunks/cli-0.5.8-2bq72da9.mjs +0 -2
- package/dist/chunks/cli-0.5.8-2f1ewq8w.mjs +0 -2
- package/dist/chunks/cli-0.5.8-2g8p9sae.mjs +0 -2
- package/dist/chunks/cli-0.5.8-2nr7eh5e.mjs +0 -2
- package/dist/chunks/cli-0.5.8-396k3ymm.mjs +0 -25
- package/dist/chunks/cli-0.5.8-3a6g7wmx.mjs +0 -58
- package/dist/chunks/cli-0.5.8-3fnpjffd.mjs +0 -2
- package/dist/chunks/cli-0.5.8-3ndh3gtc.mjs +0 -2
- package/dist/chunks/cli-0.5.8-3p5h46hv.mjs +0 -2
- package/dist/chunks/cli-0.5.8-3qjtx8w8.mjs +0 -2
- package/dist/chunks/cli-0.5.8-3y8x0dx3.mjs +0 -2
- package/dist/chunks/cli-0.5.8-3zg1gkde.mjs +0 -2
- package/dist/chunks/cli-0.5.8-402vctdy.mjs +0 -2
- package/dist/chunks/cli-0.5.8-42eyjvs8.mjs +0 -2
- package/dist/chunks/cli-0.5.8-4hvxb5dp.mjs +0 -5286
- package/dist/chunks/cli-0.5.8-4jrb4x7b.mjs +0 -9
- package/dist/chunks/cli-0.5.8-4mn881k7.mjs +0 -2
- package/dist/chunks/cli-0.5.8-4n26wzd5.mjs +0 -2
- package/dist/chunks/cli-0.5.8-4rgg1zqd.mjs +0 -6
- package/dist/chunks/cli-0.5.8-4xn4yjaa.mjs +0 -8
- package/dist/chunks/cli-0.5.8-4yyy85fr.mjs +0 -2
- package/dist/chunks/cli-0.5.8-510vqc09.mjs +0 -4
- package/dist/chunks/cli-0.5.8-57qan5v8.mjs +0 -2
- package/dist/chunks/cli-0.5.8-5a9k7mja.mjs +0 -2
- package/dist/chunks/cli-0.5.8-5bdfv4z2.mjs +0 -2
- package/dist/chunks/cli-0.5.8-5gzkph9c.mjs +0 -2
- package/dist/chunks/cli-0.5.8-5h92528m.mjs +0 -4
- package/dist/chunks/cli-0.5.8-5zqpfyqq.mjs +0 -2
- package/dist/chunks/cli-0.5.8-60e57smp.mjs +0 -2
- package/dist/chunks/cli-0.5.8-665mfjfq.mjs +0 -5
- package/dist/chunks/cli-0.5.8-69frkjjq.mjs +0 -2
- package/dist/chunks/cli-0.5.8-69swpyae.mjs +0 -2
- package/dist/chunks/cli-0.5.8-6epmns99.mjs +0 -2
- package/dist/chunks/cli-0.5.8-6nc6hmng.mjs +0 -3
- package/dist/chunks/cli-0.5.8-6t480jt6.mjs +0 -2
- package/dist/chunks/cli-0.5.8-6tfvmmwd.mjs +0 -2
- package/dist/chunks/cli-0.5.8-78y711gq.mjs +0 -7
- package/dist/chunks/cli-0.5.8-7fm71y20.mjs +0 -2
- package/dist/chunks/cli-0.5.8-7t6q11qp.mjs +0 -3
- package/dist/chunks/cli-0.5.8-7teqphwt.mjs +0 -2
- package/dist/chunks/cli-0.5.8-7w4sv41z.mjs +0 -2
- package/dist/chunks/cli-0.5.8-7wzh55d5.mjs +0 -2
- package/dist/chunks/cli-0.5.8-8b40nd32.mjs +0 -3
- package/dist/chunks/cli-0.5.8-8c0hade9.mjs +0 -2
- package/dist/chunks/cli-0.5.8-8h4z9e0a.mjs +0 -2
- package/dist/chunks/cli-0.5.8-8jfx4hd4.mjs +0 -24
- package/dist/chunks/cli-0.5.8-8jzc3wsz.mjs +0 -2
- package/dist/chunks/cli-0.5.8-8n05q2cg.mjs +0 -4
- package/dist/chunks/cli-0.5.8-903jgg2t.mjs +0 -2
- package/dist/chunks/cli-0.5.8-959n5v33.mjs +0 -44
- package/dist/chunks/cli-0.5.8-96p83b7z.mjs +0 -2
- package/dist/chunks/cli-0.5.8-99pnpzq7.mjs +0 -2
- package/dist/chunks/cli-0.5.8-9ffdsmw1.mjs +0 -2
- package/dist/chunks/cli-0.5.8-9fpm1ms3.mjs +0 -2
- package/dist/chunks/cli-0.5.8-9jzc13yp.mjs +0 -2
- package/dist/chunks/cli-0.5.8-a03sqccb.mjs +0 -2
- package/dist/chunks/cli-0.5.8-at01jfw3.mjs +0 -2
- package/dist/chunks/cli-0.5.8-axp2p1sa.mjs +0 -2
- package/dist/chunks/cli-0.5.8-bfynw1rm.mjs +0 -2
- package/dist/chunks/cli-0.5.8-bhc8vwxd.mjs +0 -2
- package/dist/chunks/cli-0.5.8-bjqx8j31.mjs +0 -67
- package/dist/chunks/cli-0.5.8-bnqvgx16.mjs +0 -18
- package/dist/chunks/cli-0.5.8-brnwv1s4.mjs +0 -2
- package/dist/chunks/cli-0.5.8-bv6qegpr.mjs +0 -2
- package/dist/chunks/cli-0.5.8-bv8mzvsr.mjs +0 -2
- package/dist/chunks/cli-0.5.8-bwsasv3j.mjs +0 -12
- package/dist/chunks/cli-0.5.8-cc6m9nm7.mjs +0 -2
- package/dist/chunks/cli-0.5.8-cctz1t07.mjs +0 -2
- package/dist/chunks/cli-0.5.8-cgt1fvs7.mjs +0 -2
- package/dist/chunks/cli-0.5.8-chb0m9py.mjs +0 -17
- package/dist/chunks/cli-0.5.8-chdp8e1b.mjs +0 -15
- package/dist/chunks/cli-0.5.8-cm551a1y.mjs +0 -2
- package/dist/chunks/cli-0.5.8-cv8hrynt.mjs +0 -2
- package/dist/chunks/cli-0.5.8-d3t3qcax.mjs +0 -2
- package/dist/chunks/cli-0.5.8-dn2c6x2n.mjs +0 -2
- package/dist/chunks/cli-0.5.8-dtn5ax3v.mjs +0 -2
- package/dist/chunks/cli-0.5.8-e5dnz0q6.mjs +0 -2
- package/dist/chunks/cli-0.5.8-e6gpyhnf.mjs +0 -39
- package/dist/chunks/cli-0.5.8-edf7e65a.mjs +0 -2
- package/dist/chunks/cli-0.5.8-eq34z9xf.mjs +0 -133
- package/dist/chunks/cli-0.5.8-erk0zvwn.mjs +0 -3
- package/dist/chunks/cli-0.5.8-et8r95zv.mjs +0 -15
- package/dist/chunks/cli-0.5.8-etf1n11s.mjs +0 -2
- package/dist/chunks/cli-0.5.8-ex39bk3p.mjs +0 -3
- package/dist/chunks/cli-0.5.8-f0cc21nk.mjs +0 -34
- package/dist/chunks/cli-0.5.8-f1znt77k.mjs +0 -2
- package/dist/chunks/cli-0.5.8-f54hhqdn.mjs +0 -4
- package/dist/chunks/cli-0.5.8-fbja9vc0.mjs +0 -2
- package/dist/chunks/cli-0.5.8-fhebd13f.mjs +0 -12
- package/dist/chunks/cli-0.5.8-fmyr9f7x.mjs +0 -18
- package/dist/chunks/cli-0.5.8-fr90cgpy.mjs +0 -4
- package/dist/chunks/cli-0.5.8-gf6svxra.mjs +0 -27
- package/dist/chunks/cli-0.5.8-gm4jqzfs.mjs +0 -2
- package/dist/chunks/cli-0.5.8-gnw67m2e.mjs +0 -3
- package/dist/chunks/cli-0.5.8-gp6x9qmw.mjs +0 -2
- package/dist/chunks/cli-0.5.8-gr2yrqhs.mjs +0 -21
- package/dist/chunks/cli-0.5.8-haddssvq.mjs +0 -17
- package/dist/chunks/cli-0.5.8-he3sfaey.mjs +0 -2
- package/dist/chunks/cli-0.5.8-hkfwdsmy.mjs +0 -2
- package/dist/chunks/cli-0.5.8-hz85a3w7.mjs +0 -2
- package/dist/chunks/cli-0.5.8-j5n54z7y.mjs +0 -2
- package/dist/chunks/cli-0.5.8-j5nn8m2r.mjs +0 -2
- package/dist/chunks/cli-0.5.8-jcm5hsqp.mjs +0 -6
- package/dist/chunks/cli-0.5.8-je6yq94p.mjs +0 -2
- package/dist/chunks/cli-0.5.8-jjmb10ns.mjs +0 -10
- package/dist/chunks/cli-0.5.8-jtqyf6nz.mjs +0 -9
- package/dist/chunks/cli-0.5.8-kbjtm14d.mjs +0 -2
- package/dist/chunks/cli-0.5.8-kdatn7ch.mjs +0 -2
- package/dist/chunks/cli-0.5.8-kmzftyt4.mjs +0 -2
- package/dist/chunks/cli-0.5.8-m3186fr3.mjs +0 -5
- package/dist/chunks/cli-0.5.8-m7f68vhz.mjs +0 -2
- package/dist/chunks/cli-0.5.8-m9yn90fe.mjs +0 -4
- package/dist/chunks/cli-0.5.8-mf9m22v5.mjs +0 -2
- package/dist/chunks/cli-0.5.8-mgzx32hk.mjs +0 -3
- package/dist/chunks/cli-0.5.8-ntjmzc72.mjs +0 -4
- package/dist/chunks/cli-0.5.8-nwe7yne9.mjs +0 -59
- package/dist/chunks/cli-0.5.8-p2n1sz9e.mjs +0 -2
- package/dist/chunks/cli-0.5.8-p596xr80.mjs +0 -2
- package/dist/chunks/cli-0.5.8-p72phgsn.mjs +0 -2
- package/dist/chunks/cli-0.5.8-p84q1yp2.mjs +0 -2
- package/dist/chunks/cli-0.5.8-p9vc4jd4.mjs +0 -2
- package/dist/chunks/cli-0.5.8-pbvqqyq3.mjs +0 -133
- package/dist/chunks/cli-0.5.8-pmsd92jp.mjs +0 -2
- package/dist/chunks/cli-0.5.8-ppmhyhcf.mjs +0 -2
- package/dist/chunks/cli-0.5.8-pwcy1yf9.mjs +0 -2
- package/dist/chunks/cli-0.5.8-qdnr3r07.mjs +0 -2
- package/dist/chunks/cli-0.5.8-qf19nfhv.mjs +0 -193
- package/dist/chunks/cli-0.5.8-qgd7he6r.mjs +0 -3
- package/dist/chunks/cli-0.5.8-qrbzvxe2.mjs +0 -2
- package/dist/chunks/cli-0.5.8-qvy0n26p.mjs +0 -2
- package/dist/chunks/cli-0.5.8-r3r9r1x8.mjs +0 -2
- package/dist/chunks/cli-0.5.8-r3zjfgs5.mjs +0 -2
- package/dist/chunks/cli-0.5.8-r88abafr.mjs +0 -15
- package/dist/chunks/cli-0.5.8-rddkqxh8.mjs +0 -16
- package/dist/chunks/cli-0.5.8-rjn66mdx.mjs +0 -4
- package/dist/chunks/cli-0.5.8-rtmc93gs.mjs +0 -2
- package/dist/chunks/cli-0.5.8-rvxqss4v.mjs +0 -12
- package/dist/chunks/cli-0.5.8-s3j6qsck.mjs +0 -3
- package/dist/chunks/cli-0.5.8-s7px34xg.mjs +0 -2
- package/dist/chunks/cli-0.5.8-sbqgh2ca.mjs +0 -2
- package/dist/chunks/cli-0.5.8-t3x9v2fr.mjs +0 -2
- package/dist/chunks/cli-0.5.8-tc6ssmvg.mjs +0 -2
- package/dist/chunks/cli-0.5.8-tknpvwjq.mjs +0 -24
- package/dist/chunks/cli-0.5.8-tp8vvk8a.mjs +0 -4
- package/dist/chunks/cli-0.5.8-v274erpp.mjs +0 -2
- package/dist/chunks/cli-0.5.8-v5gbzf09.mjs +0 -2
- package/dist/chunks/cli-0.5.8-vax2sw0y.mjs +0 -2
- package/dist/chunks/cli-0.5.8-vck50j66.mjs +0 -2
- package/dist/chunks/cli-0.5.8-vhpgdwvb.mjs +0 -45
- package/dist/chunks/cli-0.5.8-w36atn94.mjs +0 -2
- package/dist/chunks/cli-0.5.8-w75qbypx.mjs +0 -2
- package/dist/chunks/cli-0.5.8-w7g735pf.mjs +0 -2
- package/dist/chunks/cli-0.5.8-was67jgw.mjs +0 -2
- package/dist/chunks/cli-0.5.8-wcjp9e8f.mjs +0 -50
- package/dist/chunks/cli-0.5.8-wcyjzsha.mjs +0 -2
- package/dist/chunks/cli-0.5.8-wdyh9mqa.mjs +0 -3
- package/dist/chunks/cli-0.5.8-wkcmqhde.mjs +0 -2
- package/dist/chunks/cli-0.5.8-wm9jby2t.mjs +0 -2
- package/dist/chunks/cli-0.5.8-wtz636rz.mjs +0 -20
- package/dist/chunks/cli-0.5.8-x8fzgqvs.mjs +0 -2
- package/dist/chunks/cli-0.5.8-x9q7q10d.mjs +0 -2
- package/dist/chunks/cli-0.5.8-xs1gy1tk.mjs +0 -6
- package/dist/chunks/cli-0.5.8-xvf56w0z.mjs +0 -2
- package/dist/chunks/cli-0.5.8-xwpp4ts7.mjs +0 -2
- package/dist/chunks/cli-0.5.8-xwzk13b3.mjs +0 -2
- package/dist/chunks/cli-0.5.8-yfpy2mmj.mjs +0 -2
- package/dist/chunks/cli-0.5.8-ywfvs57d.mjs +0 -2
- package/dist/chunks/cli-0.5.8-z14ncgt9.mjs +0 -2
- package/dist/chunks/cli-0.5.8-z3ev1ken.mjs +0 -3
- package/dist/chunks/cli-0.5.8-z447z8t0.mjs +0 -2
- package/dist/chunks/cli-0.5.8-zervw1k3.mjs +0 -5
- package/dist/chunks/cli-0.5.8-zf5yzqn5.mjs +0 -1
- package/dist/chunks/cli-0.5.8-zhydxkm6.mjs +0 -2
- package/dist/chunks/cli-0.5.8-zkn5gecs.mjs +0 -2
- package/dist/chunks/cli-0.5.8-zy590bkh.mjs +0 -2
- package/dist/chunks/client-0.5.8-9axd4w58.mjs +0 -1
- package/dist/chunks/color-0.5.8-resv1z9m.mjs +0 -1
- package/dist/chunks/compact-0.5.8-4rtxsg5x.mjs +0 -3
- package/dist/chunks/config-0.5.8-1j4xyj57.mjs +0 -1
- package/dist/chunks/config-0.5.8-ettscama.mjs +0 -1
- package/dist/chunks/context-0.5.8-fpg3fcmt.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.5.8-zaspwvjm.mjs +0 -1
- package/dist/chunks/conversation-0.5.8-hfvm0eqb.mjs +0 -1
- package/dist/chunks/copy-0.5.8-wzb7pjzr.mjs +0 -9
- package/dist/chunks/cost-0.5.8-f2m9t7ye.mjs +0 -1
- package/dist/chunks/createSSHSession-0.5.8-615sh7tx.mjs +0 -1
- package/dist/chunks/createSession-0.5.8-v7srm5ea.mjs +0 -1
- package/dist/chunks/debug-0.5.8-c84dbamw.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.5.8-b94dtwtd.mjs +0 -1177
- package/dist/chunks/desktop-0.5.8-46z10hnt.mjs +0 -1
- package/dist/chunks/detectRepository-0.5.8-rwc4rjfg.mjs +0 -1
- package/dist/chunks/detection-0.5.8-hydnvzf4.mjs +0 -1
- package/dist/chunks/diff-0.5.8-p7d54hn7.mjs +0 -1
- package/dist/chunks/doctor-0.5.8-894mdsxc.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.5.8-c12xcayk.mjs +0 -1
- package/dist/chunks/earlyInput-0.5.8-fwa1r2va.mjs +0 -1
- package/dist/chunks/effort-0.5.8-7gcwya2k.mjs +0 -10
- package/dist/chunks/envUtils-0.5.8-20c2f8v3.mjs +0 -1
- package/dist/chunks/environmentSelection-0.5.8-t6hzsc8z.mjs +0 -1
- package/dist/chunks/environments-0.5.8-fcp8bfe3.mjs +0 -1
- package/dist/chunks/errors-0.5.8-ev3jqbjj.mjs +0 -1
- package/dist/chunks/exampleCommands-0.5.8-d38qs6k2.mjs +0 -1
- package/dist/chunks/exit-0.5.8-f5v7cstg.mjs +0 -1
- package/dist/chunks/export-0.5.8-a8fg7991.mjs +0 -2
- package/dist/chunks/extra-usage-0.5.8-r5qs5fjk.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.5.8-f8mch55k.mjs +0 -1
- package/dist/chunks/fast-0.5.8-5yfvbb7d.mjs +0 -1
- package/dist/chunks/feedback-0.5.8-j9xstj5q.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.5.8-tmpw0mgj.mjs +0 -1
- package/dist/chunks/git-0.5.8-vvd1b8x0.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.5.8-de9f7e7s.mjs +0 -1
- package/dist/chunks/grove-0.5.8-rewcpbks.mjs +0 -1
- package/dist/chunks/growthbook-0.5.8-tt3wbrct.mjs +0 -1
- package/dist/chunks/headless-0.5.8-h1tn9ee3.mjs +0 -2
- package/dist/chunks/heapdump-0.5.8-e0vshas9.mjs +0 -6
- package/dist/chunks/help-0.5.8-mhhgyvqz.mjs +0 -1
- package/dist/chunks/hookChains-0.5.8-ewzfdp91.mjs +0 -3
- package/dist/chunks/hooks-0.5.8-mgp708m9.mjs +0 -1
- package/dist/chunks/hooks-0.5.8-p1mz2zy1.mjs +0 -79
- package/dist/chunks/ide-0.5.8-pzfhr27w.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.5.8-1skckgt6.mjs +0 -1
- package/dist/chunks/index-0.5.8-0dkn7rr7.mjs +0 -9
- package/dist/chunks/index-0.5.8-26yrjbk0.mjs +0 -1
- package/dist/chunks/index-0.5.8-5cr4y9wx.mjs +0 -1
- package/dist/chunks/index-0.5.8-5mgzpm7c.mjs +0 -1
- package/dist/chunks/index-0.5.8-b4p3af9y.mjs +0 -1
- package/dist/chunks/index-0.5.8-b7tvbbzv.mjs +0 -2
- package/dist/chunks/index-0.5.8-bk6ejev9.mjs +0 -1
- package/dist/chunks/index-0.5.8-cmyhdm8s.mjs +0 -9
- package/dist/chunks/index-0.5.8-egkksjaj.mjs +0 -1
- package/dist/chunks/index-0.5.8-hr8aqgvc.mjs +0 -1
- package/dist/chunks/index-0.5.8-jf20nzsg.mjs +0 -1
- package/dist/chunks/index-0.5.8-m6exk6z6.mjs +0 -30
- package/dist/chunks/index-0.5.8-mpm6xxk3.mjs +0 -5
- package/dist/chunks/index-0.5.8-nt058ay0.mjs +0 -1
- package/dist/chunks/index-0.5.8-qdwcg9cv.mjs +0 -10
- package/dist/chunks/index-0.5.8-rdk757cq.mjs +0 -1
- package/dist/chunks/index-0.5.8-red1reev.mjs +0 -1
- package/dist/chunks/index-0.5.8-rehfpmcw.mjs +0 -1
- package/dist/chunks/index-0.5.8-s3k17n65.mjs +0 -1
- package/dist/chunks/index-0.5.8-xpaaycp7.mjs +0 -1
- package/dist/chunks/index-0.5.8-ydqh8xbm.mjs +0 -2
- package/dist/chunks/index-0.5.8-yp0fpaqf.mjs +0 -1
- package/dist/chunks/init-0.5.8-kmfn7vay.mjs +0 -1
- package/dist/chunks/initReplBridge-0.5.8-f9ezc1jk.mjs +0 -1
- package/dist/chunks/ink-0.5.8-y01565nf.mjs +0 -1
- package/dist/chunks/insights-0.5.8-mwq5z31x.mjs +0 -870
- package/dist/chunks/install-0.5.8-se0j5qte.mjs +0 -1
- package/dist/chunks/install-github-app-0.5.8-zqhhg1fw.mjs +0 -149
- package/dist/chunks/install-slack-app-0.5.8-9qpwy0z9.mjs +0 -1
- package/dist/chunks/instrumentation-0.5.8-gbnaaqp3.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.5.8-wrn95m3j.mjs +0 -1
- package/dist/chunks/keybindings-0.5.8-j070t67n.mjs +0 -2
- package/dist/chunks/knowledge-0.5.8-fhr55cqh.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.5.8-rmkxtaea.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.5.8-f3j27p5s.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.5.8-7401ty3k.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.5.8-yhhkejwz.mjs +0 -1
- package/dist/chunks/log-0.5.8-78h0x7qg.mjs +0 -1
- package/dist/chunks/main-0.5.8-4ddjgz4x.mjs +0 -1
- package/dist/chunks/managedEnv-0.5.8-rxnh3nhr.mjs +0 -1
- package/dist/chunks/mcp-0.5.8-9ts7qrcv.mjs +0 -4
- package/dist/chunks/mcp-0.5.8-hhnpsgvh.mjs +0 -17
- package/dist/chunks/mcp-0.5.8-md6hzter.mjs +0 -1
- package/dist/chunks/mcpb-0.5.8-ebcb4nn4.mjs +0 -1
- package/dist/chunks/memory-0.5.8-ph5hb81n.mjs +0 -3
- package/dist/chunks/mobile-0.5.8-f04nmet1.mjs +0 -2
- package/dist/chunks/model-0.5.8-aqzt03nd.mjs +0 -1
- package/dist/chunks/model-0.5.8-nmcrv393.mjs +0 -2
- package/dist/chunks/oauth-0.5.8-n75mrvf3.mjs +0 -1
- package/dist/chunks/openaiShim-0.5.8-95kwrgpv.mjs +0 -14
- package/dist/chunks/output-style-0.5.8-zy932aj1.mjs +0 -1
- package/dist/chunks/package-APBHZ5F3-0.5.8-c4xw21z8.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.5.8-0dgzrde4.mjs +0 -1
- package/dist/chunks/parser-0.5.8-g6wgq5z2.mjs +0 -1
- package/dist/chunks/passes-0.5.8-jkdncmr5.mjs +0 -1
- package/dist/chunks/permissions-0.5.8-tesg1fmt.mjs +0 -3
- package/dist/chunks/plan-0.5.8-4h4wazbm.mjs +0 -1
- package/dist/chunks/plist-0.5.8-ygsvkws5.mjs +0 -1
- package/dist/chunks/plugin-0.5.8-meszp93t.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.5.8-8c49aq53.mjs +0 -1
- package/dist/chunks/plugins-0.5.8-zh9wq5by.mjs +0 -9
- package/dist/chunks/preActionHook-0.5.8-r8zrjby2.mjs +0 -2
- package/dist/chunks/print-0.5.8-dbcfsrdg.mjs +0 -57
- package/dist/chunks/privacy-settings-0.5.8-zj36f0ve.mjs +0 -1
- package/dist/chunks/process-0.5.8-1yf78q4y.mjs +0 -1
- package/dist/chunks/processBashCommand-0.5.8-pdnzd9ry.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.5.8-kmv9fs8d.mjs +0 -9
- package/dist/chunks/prompt-0.5.8-aa1v4zh0.mjs +0 -1
- package/dist/chunks/prompt-0.5.8-wabf0exz.mjs +0 -1
- package/dist/chunks/prompts-0.5.8-n865vxaw.mjs +0 -1
- package/dist/chunks/protocolHandler-0.5.8-6k7ma4yf.mjs +0 -13
- package/dist/chunks/provider-0.5.8-qsr51mc2.mjs +0 -2
- package/dist/chunks/providerProfiles-0.5.8-he8tbnf5.mjs +0 -1
- package/dist/chunks/providerValidation-0.5.8-6cjh43zv.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.5.8-pvbwwt4v.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.5.8-8jq52atf.mjs +0 -34
- package/dist/chunks/registry-0.5.8-ynn6qxq6.mjs +0 -1
- package/dist/chunks/release-notes-0.5.8-yydjz710.mjs +0 -5
- package/dist/chunks/reload-plugins-0.5.8-64ybz2n4.mjs +0 -2
- package/dist/chunks/remote-env-0.5.8-1f4tf3ch.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.5.8-qnrtc8aw.mjs +0 -1
- package/dist/chunks/remoteSession-0.5.8-kxsfx9gd.mjs +0 -1
- package/dist/chunks/rename-0.5.8-j4c6dg9n.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.5.8-w33fvpqt.mjs +0 -1
- package/dist/chunks/replLauncher-0.5.8-7jzc54fq.mjs +0 -1
- package/dist/chunks/resume-0.5.8-373epwyd.mjs +0 -2
- package/dist/chunks/rewind-0.5.8-b9qe0mwn.mjs +0 -1
- package/dist/chunks/rootOptions-0.5.8-h1ddt4ry.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.5.8-ma6nv5dg.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.5.8-1cc5m303.mjs +0 -1
- package/dist/chunks/session-0.5.8-rxft524k.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.5.8-r4eg8g3r.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.5.8-jm3bmvt7.mjs +0 -1
- package/dist/chunks/sessionStorage-0.5.8-kfghwskw.mjs +0 -1
- package/dist/chunks/settings-0.5.8-qxr7dgzb.mjs +0 -1
- package/dist/chunks/setup-0.5.8-769vnffz.mjs +0 -5
- package/dist/chunks/sinks-0.5.8-jcq0kgny.mjs +0 -1
- package/dist/chunks/skills-0.5.8-5qxr2p94.mjs +0 -1
- package/dist/chunks/startupProfiler-0.5.8-cpbf91zs.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.5.8-bctkpcea.mjs +0 -1
- package/dist/chunks/state-0.5.8-cppqmrbf.mjs +0 -1
- package/dist/chunks/stats-0.5.8-zcfm59db.mjs +0 -6
- package/dist/chunks/status-0.5.8-5v4y485z.mjs +0 -1
- package/dist/chunks/stickers-0.5.8-9gr6e2xg.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.5.8-wf4cta06.mjs +0 -1
- package/dist/chunks/tasks-0.5.8-30z30sqv.mjs +0 -1
- package/dist/chunks/teamHelpers-0.5.8-vcng2y7m.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.5.8-48p5p451.mjs +0 -1
- package/dist/chunks/teleport-0.5.8-650m4rks.mjs +0 -1
- package/dist/chunks/terminalSetup-0.5.8-ew1ax86g.mjs +0 -1
- package/dist/chunks/theme-0.5.8-7a06760x.mjs +0 -1
- package/dist/chunks/thinkback-0.5.8-xrvqhj8w.mjs +0 -1
- package/dist/chunks/thinkback-play-0.5.8-vkpn13f3.mjs +0 -1
- package/dist/chunks/toolPool-0.5.8-ntbr808f.mjs +0 -1
- package/dist/chunks/toolSearch-0.5.8-ybxz2f7f.mjs +0 -1
- package/dist/chunks/tools-0.5.8-egnmkxt7.mjs +0 -1
- package/dist/chunks/trustedDevice-0.5.8-422swdjw.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.5.8-tkat2x5p.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.5.8-e7b2408n.mjs +0 -4
- package/dist/chunks/update-0.5.8-a285y5j4.mjs +0 -86
- package/dist/chunks/upgrade-0.5.8-8nxejvyv.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.5.8-6a2g1s50.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.5.8-83a2qhsf.mjs +0 -1
- package/dist/chunks/usage-0.5.8-9dha8gsc.mjs +0 -1
- package/dist/chunks/util-0.5.8-c7zdhrd1.mjs +0 -1
- package/dist/chunks/utils-0.5.8-e8pfjkrb.mjs +0 -1
- package/dist/chunks/vim-0.5.8-pgsav8je.mjs +0 -1
- package/dist/chunks/watcher-0.5.8-w3q8518m.mjs +0 -1
- package/dist/chunks/wiki-0.5.8-1sa2h258.mjs +0 -132
- package/dist/chunks/worktree-0.5.8-59wmpecg.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.5.8-pexygrty.mjs +0 -1
- package/dist/chunks/wrapper-0.5.8-kmv5mk0m.mjs +0 -7
- /package/dist/chunks/{cli-0.5.8-kegk7gdp.mjs → cli-0.5.10-5kz0qdsz.mjs} +0 -0
- /package/dist/chunks/{cli-0.5.8-j77twbsq.mjs → cli-0.5.10-n8pz2na8.mjs} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Lna as P}from"./cli-0.5.10-1sd567wn.mjs";import{homedir as Q}from"os";import{join as F}from"path";function J(q){return{env:q?.env??process.env,home:q?.homedir??process.env.HOME??Q()}}function k(q){let{env:x,home:B}=J(q);return x.XDG_STATE_HOME??F(B,".local","state")}function w(q){let{env:x,home:B}=J(q);return x.XDG_CACHE_HOME??F(B,".cache")}function H(q){let{env:x,home:B}=J(q);return x.XDG_DATA_HOME??F(B,".local","share")}function g(q){let{home:x}=J(q);return F(x,".local","bin")}var V=()=>{};function W(q){let x=q,B="",C=0,K=10;while(x!==B&&C<K)B=x,x=x.normalize("NFKC"),x=x.replace(/[\p{Cf}\p{Co}\p{Cn}]/gu,""),x=x.replace(/[\u200B-\u200F]/g,"").replace(/[\u202A-\u202E]/g,"").replace(/[\u2066-\u2069]/g,"").replace(/[\uFEFF]/g,"").replace(/[\uE000-\uF8FF]/g,""),C++;if(C>=K)throw Error(`Unicode sanitization reached maximum iterations (${K}) for input: ${q.slice(0,100)}`);return x}function L(q){if(typeof q==="string")return W(q);if(Array.isArray(q))return q.map(L);if(q!==null&&typeof q==="object"){let x={};for(let[B,C]of Object.entries(q))x[L(B)]=L(C);return x}return q}var Y=()=>{};
|
|
2
|
+
export{k as US,w as VS,H as WS,g as XS,V as YS,W as ZS,L as _S,Y as $S};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{I as G0}from"./cli-0.5.10-tr692cqd.mjs";import{ea as p0}from"./cli-0.5.10-8kpt6897.mjs";import{fa as k0}from"./cli-0.5.10-eh9hq9n3.mjs";import{Bb as E0}from"./cli-0.5.10-20x96vwq.mjs";import{ac as n0,bc as x0}from"./cli-0.5.10-ewcdy4pj.mjs";import{$c as P0,bd as Fc}from"./cli-0.5.10-kyt82zt5.mjs";import{ed as N,fd as uc}from"./cli-0.5.10-s8bv5q7m.mjs";import{hd as Q0,id as hc}from"./cli-0.5.10-9mt7ynrh.mjs";import{At as X,BD as Y,CD as M0,DD as Z0,ED as Mc,Et as l0,SI as _0,WP as O0,aJ as j0,cm as p,dm as K0,eQ as b0,em as f0,fO as d,fm as N0,gQ as B0,gm as i0,hO as W0,hm as d0,jO as Ic,jQ as ac,kE as y0,km as W,lE as _c,lm as j,mQ as D0,oJ as u0,oQ as Tc,pC as Y0,qJ as r0,sD as m0,tC as lc,tD as g0,uD as r,wD as A0}from"./cli-0.5.10-8jjacn05.mjs";import{DW as oc,JX as x,LV as G,cX as c0,eX as y,iX as g,zW as X0}from"./cli-0.5.10-9xc8zhxg.mjs";import{lZ as e,mZ as m,nZ as U,oZ as C}from"./cli-0.5.10-gs8dx67v.mjs";import{K0 as J0,L0 as nc,c0 as H0,g0 as mc}from"./cli-0.5.10-xyscak5q.mjs";import{B$ as w0,D$ as U0,H$ as k,Raa as I0,Xba as z0,_ba as ic,oaa as V0,u$ as V,uaa as s,xaa as t,y$ as J,zaa as q0}from"./cli-0.5.10-2fqes7gy.mjs";import{Uca as R,Zca as cc}from"./cli-0.5.10-6zwxmza2.mjs";import{Jda as C0,Rda as L0,Xda as fc}from"./cli-0.5.10-rk7at2tn.mjs";import{Oea as q,Qea as E}from"./cli-0.5.10-y9qd4psg.mjs";import{Tfa as $0}from"./cli-0.5.10-p4wmnjhz.mjs";import{Cga as R0,Fga as e0,vga as K}from"./cli-0.5.10-jsnrvena.mjs";import{Sia as a0,Vka as T0,ama as v0}from"./cli-0.5.10-atkghjt0.mjs";import{Hna as D,Mna as L}from"./cli-0.5.10-1sd567wn.mjs";E();Ic();v0();import{appendFileSync as Rc}from"fs";Tc();oc();M0();fc();ic();lc();E();k();A0();j();var $=D(G(),1);x();C();var S=D(G(),1);function P(){let f=S.c(1),c;if(f[0]===Symbol.for("react.memo_cache_sentinel"))c=U(y,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",m(g,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),f[0]=c;else c=f[0];return c}C();function v(f){let c=$.c(13),{serverName:i,onDone:n}=f,_;if(c[0]!==n||c[1]!==i)_=function(T){q("tengu_mcp_dialog_choice",{choice:T});c:switch(T){case"yes":case"yes_all":{let H=(J()||{}).enabledMcpjsonServers||[];if(!H.includes(i))V("localSettings",{enabledMcpjsonServers:[...H,i]});if(T==="yes_all")V("localSettings",{enableAllProjectMcpServers:!0});n();break c}case"no":{let H=(J()||{}).disabledMcpjsonServers||[];if(!H.includes(i))V("localSettings",{disabledMcpjsonServers:[...H,i]});n()}}},c[0]=n,c[1]=i,c[2]=_;else _=c[2];let l=_,u=`New MCP server found in .mcp.json: ${i}`,M;if(c[3]!==l)M=()=>l("no"),c[3]=l,c[4]=M;else M=c[4];let I;if(c[5]===Symbol.for("react.memo_cache_sentinel"))I=m(P,{}),c[5]=I;else I=c[5];let o;if(c[6]===Symbol.for("react.memo_cache_sentinel"))o=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],c[6]=o;else o=c[6];let h;if(c[7]!==l)h=m(r,{options:o,onChange:(a)=>l(a),onCancel:()=>l("no")}),c[7]=l,c[8]=h;else h=c[8];let F;if(c[9]!==u||c[10]!==M||c[11]!==h)F=U(W,{title:u,color:"warning",onCancel:M,children:[I,h]}),c[9]=u,c[10]=M,c[11]=h,c[12]=F;else F=c[12];return F}x0();E();x();k();N0();g0();d0();j();K0();var h0=D(G(),1);C();function o0(f){let c=h0.c(21),{serverNames:i,onDone:n}=f,_;if(c[0]!==n||c[1]!==i)_=function(O){let Z=J()||{},s0=Z.enabledMcpjsonServers||[],t0=Z.disabledMcpjsonServers||[],[b,B]=n0(i,(Q)=>O.includes(Q));if(q("tengu_mcp_multidialog_choice",{approved:b.length,rejected:B.length}),b.length>0){let Q=[...new Set([...s0,...b])];V("localSettings",{enabledMcpjsonServers:Q})}if(B.length>0){let Q=[...new Set([...t0,...B])];V("localSettings",{disabledMcpjsonServers:Q})}n()},c[0]=n,c[1]=i,c[2]=_;else _=c[2];let l=_,u;if(c[3]!==n||c[4]!==i)u=()=>{let O=(J()||{}).disabledMcpjsonServers||[],Z=[...new Set([...O,...i])];V("localSettings",{disabledMcpjsonServers:Z}),n()},c[3]=n,c[4]=i,c[5]=u;else u=c[5];let M=u,I=`${i.length} new MCP servers found in .mcp.json`,o;if(c[6]===Symbol.for("react.memo_cache_sentinel"))o=m(P,{}),c[6]=o;else o=c[6];let h;if(c[7]!==i)h=i.map(S0),c[7]=i,c[8]=h;else h=c[8];let F;if(c[9]!==M||c[10]!==l||c[11]!==i||c[12]!==h)F=m(m0,{options:h,defaultValue:i,onSubmit:l,onCancel:M,hideIndexes:!0}),c[9]=M,c[10]=l,c[11]=i,c[12]=h,c[13]=F;else F=c[13];let a;if(c[14]!==M||c[15]!==I||c[16]!==F)a=U(W,{title:I,subtitle:"Select any you wish to enable.",color:"warning",onCancel:M,hideInputGuide:!0,children:[o,F]}),c[14]=M,c[15]=I,c[16]=F,c[17]=a;else a=c[17];let T;if(c[18]===Symbol.for("react.memo_cache_sentinel"))T=m(c0,{paddingX:1,children:m(y,{dimColor:!0,italic:!0,children:U(i0,{children:[m(p,{shortcut:"Space",action:"select"}),m(p,{shortcut:"Enter",action:"confirm"}),m(f0,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),c[18]=T;else T=c[18];let w;if(c[19]!==a)w=U(e,{children:[a,T]}),c[19]=a,c[20]=w;else w=c[20];return w}function S0(f){return{label:f,value:f}}M0();l0();j0();r0();C();async function F0(f){let{servers:c}=_0("project"),i=Object.keys(c).filter((n)=>u0(n)==="pending");if(i.length===0)return;await new Promise((n)=>{let _=()=>void n();if(i.length===1&&i[0]!==void 0){let l=i[0];f.render(m(X,{children:m(Y,{children:m(v,{serverName:l,onDone:_})})}))}else f.render(m(X,{children:m(Y,{children:m(o0,{serverNames:i,onDone:_})})}))})}l0();uc();nc();ac();I0();Fc();I0();$0();e0();class A{frameDurations=[];firstRenderTime;lastRenderTime;record(f){let c=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=c;this.lastRenderTime=c,this.frameDurations.push(f)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let f=this.lastRenderTime-this.firstRenderTime;if(f<=0)return;let i=this.frameDurations.length/(f/1000),n=this.frameDurations.slice().sort((M,I)=>I-M),_=Math.max(0,Math.ceil(n.length*0.01)-1),l=n[_],u=l>0?1000/l:0;return{averageFps:Math.round(i*100)/100,low1PctFps:Math.round(u*100)/100}}}hc();mc();Mc();_c();k();cc();C();function Cc(){s((f)=>({...f,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function Lc(f,c){return new Promise((i)=>{let n=(_)=>void i(_);f.render(c(n))})}async function Gf(f,c,i){return wc(f,c,{color:"error",beforeExit:i})}async function wc(f,c,i){let{Text:n}=await import("./ink-0.5.10-chpcjhk0.mjs"),_=i?.color,l=i?.exitCode??1;f.render(_?m(n,{color:_,children:c}):m(n,{children:c})),f.unmount(),await i?.beforeExit?.(),process.exit(l)}function z(f,c,i){return Lc(f,(n)=>m(X,{onChangeAppState:i?.onChangeAppState,children:m(Y,{children:c(n)})}))}async function Ef(f,c){f.render(c),G0(),await f.waitUntilExit(),await W0(0)}async function kf(f,c,i,n,_){if(K(!1)||process.env.IS_DEMO)return!1;R("setupScreens_start");let l=H0(),u=!1;if(P0()){let{MigrationDialog:o}=await import("./MigrationDialog-0.5.10-fxhfd566.mjs");await z(f,(h)=>m(o,{onDone:()=>void h()}))}let M=t();if(l&&(!M.theme||!M.hasCompletedOnboarding)){u=!0;let{Onboarding:o}=await import("./Onboarding-0.5.10-61c4a01v.mjs");await z(f,(h)=>m(o,{onDone:()=>{Cc(),h()}}),{onChangeAppState:N})}if(!K(process.env.CLAUBBIT)){if(l&&!V0()){let{TrustDialog:o}=await import("./TrustDialog-0.5.10-v09an4xe.mjs");await z(f,(h)=>m(o,{commands:n,onDone:h}))}if(T0(!0),R("setupScreens_after_trust_accepted"),L0(),C0(),D0(),R("setupScreens_after_growthbook_kick"),l){let{errors:o}=y0();if(o.length===0)await F0(f);R("setupScreens_after_mcp_approvals");let h=await B0();if(R("setupScreens_after_claudemd_check"),h){let F=b0(await O0(!0)),{ClaudeMdExternalIncludesDialog:a}=await import("./ClaudeMdExternalIncludesDialog-0.5.10-mwwqh2cz.mjs");await z(f,(T)=>m(a,{onDone:T,isStandaloneDialog:!0,externalIncludes:F}))}}}E0(),Q0(),R("setupScreens_after_env_applied"),setImmediate(()=>p0());let I=await Y0();if(R("setupScreens_after_grove_check"),I){R("setupScreens_grove_block_enter");let{GroveDialog:o}=await import("./Grove-0.5.10-f2m596r7.mjs");if(await z(f,(F)=>m(o,{showIfAlreadyViewed:!1,location:u?"onboarding":"policy_update_modal",onDone:F}))==="escape")return q("tengu_grove_policy_exited",{}),d(0),!1}{let o=z0();R("setupScreens_after_tryGetActiveProvider");let h=o?.transport==="anthropic"?o.apiKey?.trim():void 0;if(h&&!R0()){let F=J0(h),a=q0(F);if(R("setupScreens_after_keyStatus"),a==="new"){let{ApproveApiKey:T}=await import("./ApproveApiKey-0.5.10-mpm24aq5.mjs");await z(f,(w)=>m(T,{customApiKeyTruncated:F,onDone:w}),{onChangeAppState:N})}}}if(R("setupScreens_after_custom_api_key"),(c==="bypassPermissions"||i)&&!w0()){let{BypassPermissionsModeDialog:o}=await import("./BypassPermissionsModeDialog-0.5.10-2gqvp73t.mjs");await z(f,(h)=>m(o,{onAccept:h}))}if(c==="auto"&&!U0()){let{AutoModeOptInDialog:o}=await import("./AutoModeOptInDialog-0.5.10-tk2jpgdr.mjs");await z(f,(h)=>m(o,{onAccept:h,onDecline:()=>d(1),declineExits:!0}))}return R("setupScreens_end"),u}function pf(f){let c=0,i=Z0(f);if(i.stdin)q("tengu_stdin_interactive",{});let n=new A,_=k0();a0(_);let l=process.env.CLAUDE_CODE_FRAME_TIMING_LOG;return{getFpsMetrics:()=>n.getMetrics(),stats:_,renderOptions:{...i,onFrame:(u)=>{if(n.record(u.durationMs),_.observe("frame_duration_ms",u.durationMs),l&&u.phases){let M=JSON.stringify({total:u.durationMs,...u.phases,rss:process.memoryUsage.rss(),cpu:process.cpuUsage()})+`
|
|
2
|
+
`;Rc(l,M)}if(X0())return;for(let M of u.flickers){if(M.reason==="resize")continue;let I=Date.now();if(I-c<1000)q("tengu_flicker",{desiredHeight:M.desiredHeight,actualHeight:M.availableHeight,reason:M.reason});c=I}}}}}
|
|
3
|
+
export{Cc as A,Lc as B,Gf as C,wc as D,z as E,Ef as F,kf as G,pf as H};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{p4 as S}from"./cli-0.5.10-p8hbe96w.mjs";import{Cfa as E,Gfa as o,Qfa as $,Tfa as d}from"./cli-0.5.10-p4wmnjhz.mjs";import{Fga as r,uga as u,vga as BG}from"./cli-0.5.10-jsnrvena.mjs";import{Ama as f,zma as q}from"./cli-0.5.10-c9z4tdw2.mjs";import{Wma as B,mna as LG}from"./cli-0.5.10-rwqvbtg3.mjs";import{qna as YG}from"./cli-0.5.10-dmmckmyf.mjs";import{Hna as QG,Lna as F,Mna as FG}from"./cli-0.5.10-1sd567wn.mjs";function CG(){H.cache.clear?.(),$("Cleared CA certificates cache")}var H;var l=F(()=>{f();d();r();o();H=q(()=>{let G=u("--use-system-ca")||u("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if($(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let K=FG("tls"),Q=[];if(G){let Y=K.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)Q.push(...Z),$(`CA certs: Loaded ${Q.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){$("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else Q.push(...K.rootCertificates),$(`CA certs: Loaded ${Q.length} bundled root certificates as base (--use-system-ca fallback)`)}else Q.push(...K.rootCertificates),$(`CA certs: Loaded ${Q.length} bundled root certificates as base`);if(J)try{let Y=E().readFileSync(J,{encoding:"utf8"});Q.push(Y),$(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){$(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return Q.length>0?Q:void 0})});import{Agent as NG}from"https";function lG(){let G=j(),J=H();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function O(){let G=j(),J=H();if(!G&&!J)return{};let K={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:K};return $("TLS: Created undici agent with custom certificates"),{dispatcher:new(S()).Agent({connect:{cert:K.cert,key:K.key,passphrase:K.passphrase,...K.ca&&{ca:K.ca}},pipelining:1})}}function cG(){j.cache.clear?.(),D.cache.clear?.(),$("Cleared mTLS configuration cache")}function gG(){if(!j())return;if(process.env.NODE_EXTRA_CA_CERTS)$("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var j,D;var t=F(()=>{f();l();d();o();j=q(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=E().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),$("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){$(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=E().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),$("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){$(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,$("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),D=q(()=>{let G=j(),J=H();if(!G&&!J)return;let K={...G,...J&&{ca:J},keepAlive:!0};return $("mTLS: Creating HTTPS agent with custom certificates"),new NG(K)})});var e=()=>{};import*as GG from"net";import*as JG from"http";import{Agent as TG}from"https";var V,c;var KG=F(()=>{e();V=Symbol("AgentBaseInternalState");c=class c extends JG.Agent{constructor(G){super(G);this[V]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
|
|
2
|
+
`).some((K)=>K.indexOf("(https.js:")!==-1||K.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new GG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let K=this.sockets[G],Q=K.indexOf(J);if(Q!==-1){if(K.splice(Q,1),this.totalSocketCount--,K.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return TG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,K){let Q={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(Q),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,Q)).then((w)=>{if(this.decrementSockets(Y,Z),typeof w.addRequest==="function")try{return w.addRequest(G,Q)}catch(W){return K(W)}this[V].currentSocket=w,super.createSocket(G,J,K)},(w)=>{this.decrementSockets(Y,Z),K(w)})}createConnection(){let G=this[V].currentSocket;if(this[V].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[V].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[V])this[V].defaultPort=G}get protocol(){return this[V].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[V])this[V].protocol=G}}});function $G(G){return new Promise((J,K)=>{let Q=0,Y=[];function Z(){let z=G.read();if(z)h(z);else G.once("readable",Z)}function w(){G.removeListener("end",W),G.removeListener("error",M),G.removeListener("readable",Z)}function W(){w(),b("onend"),K(Error("Proxy connection ended before receiving CONNECT response"))}function M(z){w(),b("onerror %o",z),K(z)}function h(z){Y.push(z),Q+=z.length;let X=Buffer.concat(Y,Q),i=X.indexOf(`\r
|
|
3
|
+
\r
|
|
4
|
+
`);if(i===-1){b("have not received end of HTTP headers yet..."),Z();return}let n=X.slice(0,i).toString("ascii").split(`\r
|
|
5
|
+
`),C=n.shift();if(!C)return G.destroy(),K(Error("No header received from proxy CONNECT response"));let s=C.split(" "),UG=+s[1],_G=s.slice(2).join(" "),T={};for(let I of n){if(!I)continue;let x=I.indexOf(":");if(x===-1)return G.destroy(),K(Error(`Invalid header from proxy CONNECT response: "${I}"`));let m=I.slice(0,x).toLowerCase(),y=I.slice(x+1).trimStart(),R=T[m];if(typeof R==="string")T[m]=[R,y];else if(Array.isArray(R))R.push(y);else T[m]=y}b("got proxy server response: %o %o",C,T),w(),J({connect:{statusCode:UG,statusText:_G,headers:T},buffered:X})}G.on("error",M),G.on("end",W),Z()})}var ZG,b;var WG=F(()=>{ZG=QG(YG(),1),b=ZG.default("https-proxy-agent:parse-proxy-response")});import*as U from"net";import*as g from"tls";import IG from"assert";import{URL as EG}from"url";function SG(G){G.resume()}function XG(G,...J){let K={},Q;for(Q in G)if(!J.includes(Q))K[Q]=G[Q];return K}var zG,L,wG=(G)=>{if(G.servername===void 0&&G.host&&!U.isIP(G.host))return{...G,servername:G.host};return G},A;var VG=F(()=>{KG();WG();zG=QG(YG(),1),L=zG.default("https-proxy-agent");A=class A extends c{constructor(G,J){super(J);this.options={path:void 0},this.proxy=typeof G==="string"?new EG(G):G,this.proxyHeaders=J?.headers??{},L("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let K=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),Q=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?XG(J,"headers"):null,host:K,port:Q}}async connect(G,J){let{proxy:K}=this;if(!J.host)throw TypeError('No "host" provided');let Q;if(K.protocol==="https:")L("Creating `tls.Socket`: %o",this.connectOpts),Q=g.connect(wG(this.connectOpts));else L("Creating `net.Socket`: %o",this.connectOpts),Q=U.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=U.isIPv6(J.host)?`[${J.host}]`:J.host,w=`CONNECT ${Z}:${J.port} HTTP/1.1\r
|
|
6
|
+
`;if(K.username||K.password){let X=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(X).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let X of Object.keys(Y))w+=`${X}: ${Y[X]}\r
|
|
7
|
+
`;let W=$G(Q);Q.write(`${w}\r
|
|
8
|
+
`);let{connect:M,buffered:h}=await W;if(G.emit("proxyConnect",M),this.emit("proxyConnect",M,G),M.statusCode===200){if(G.once("socket",SG),J.secureEndpoint)return L("Upgrading socket connection to TLS"),g.connect({...XG(wG(J),"host","path","port"),socket:Q});return Q}Q.destroy();let z=new U.Socket({writable:!1});return z.readable=!0,G.once("socket",(X)=>{L("Replaying proxy buffer for failed request"),IG(X.listenerCount("data")>0),X.push(h),X.push(null)}),z}};A.protocols=["http","https"]});function XJ(G){a.set(G,!0),MG(G)}function MG(G){jG.cache.delete?.(G)}function zJ(G){qG.set(G,!0),MG(G)}function RG(G){return qG.get(G)===!0}function DG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function N(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function OG(G=process.env){return G.no_proxy||G.NO_PROXY}function P(G,J=OG()){if(!J)return!1;if(J==="*")return!0;try{let K=new URL(G),Q=K.hostname.toLowerCase(),Y=K.port||(K.protocol==="https:"||K.protocol==="wss:"?"443":"80"),Z=`${Q}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some((W)=>{if(W=W.toLowerCase().trim(),W.includes(":"))return Z===W;if(W.startsWith(".")){let M=W;return Q===W.substring(1)||Q.endsWith(M)}return Q===W})}catch{return!1}}function v(G,J={}){let K=j(),Q=H(),Y={...K&&{cert:K.cert,key:K.key,passphrase:K.passphrase},...Q&&{ca:Q}};if(BG(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,w,W)=>{W(null,Z,DG(w))};return new A(G,{...Y,...J})}function VJ(G={}){let J=N(),K=D(),Q=B.create({proxy:!1});if(!J){if(K)Q.defaults.httpsAgent=K;return Q}let Y=v(J,G);return Q.interceptors.request.use((Z)=>{if(Z.url&&P(Z.url))Z.httpsAgent=K,Z.httpAgent=K;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),Q}function BJ(G){let J=N();if(!J)return;if(P(G))return;return v(J)}function MJ(G){let J=N();if(!J)return;if(P(G))return;return J}function qJ(G){let J=G?.provider&&a.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let K=N();if(K){if(typeof Bun<"u")return{...J,proxy:K,...O()};return{...J,dispatcher:p(K)}}let Q=O();if(G?.provider&&!Q.dispatcher)return{...J,...Q,dispatcher:jG(G.provider)};return{...J,...Q}}function HJ(){let G=N(),J=D();if(k!==void 0)B.interceptors.request.eject(k),k=void 0;if(B.defaults.proxy=void 0,B.defaults.httpAgent=void 0,B.defaults.httpsAgent=void 0,G){B.defaults.proxy=!1;let K=v(G);k=B.interceptors.request.use((Q)=>{if(Q.url&&P(Q.url))if(J)Q.httpsAgent=J,Q.httpAgent=J;else delete Q.httpsAgent,delete Q.httpAgent;else Q.httpsAgent=K,Q.httpAgent=K;return Q}),S().setGlobalDispatcher(p(G))}else if(J){B.defaults.httpsAgent=J;let K=O();if(K.dispatcher)S().setGlobalDispatcher(K.dispatcher)}}async function jJ(){let G=N();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:K}]=await Promise.all([import("./index-0.5.10-5fsxcv9a.mjs"),import("./index-0.5.10-8t5phmpa.mjs")]),Q=v(G),Y=new J({httpAgent:Q,httpsAgent:Q});return{requestHandler:Y,credentials:K({clientConfig:{requestHandler:Y}})}}function UJ(){p.cache.clear?.(),$("Cleared proxy agent cache")}var a,qG,p,_,HG,bG,jG,k;var AG=F(()=>{LG();VG();f();l();d();r();t();a=new Map;qG=new Map;p=q((G)=>{let J=S(),K=j(),Q=H(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(K||Q){let Z={...K&&{cert:K.cert,key:K.key,passphrase:K.passphrase},...Q&&{ca:Q}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),_={connections:12,keepAliveTimeout:30000,pipelining:1},HG={firstParty:{..._,allowH2:!0},openai:{..._,allowH2:!0},gemini:{..._,allowH2:!0},mistral:{..._,allowH2:!0},github:{..._,allowH2:!0},codex:{..._,allowH2:!0},"nvidia-nim":{..._,allowH2:!0},minimax:{..._,allowH2:!0}},bG=HG.openai,jG=q((G)=>{let J=S(),K=HG[G]??bG,Q={...K,allowH2:K.allowH2&&!RG(G),keepAliveTimeout:a.get(G)?100:K.keepAliveTimeout};return new J.Agent(Q)})});
|
|
9
|
+
export{CG as U3,l as V3,j as W3,lG as X3,cG as Y3,gG as Z3,t as _3,XJ as $3,zJ as a4,RG as b4,N as c4,P as d4,VJ as e4,BJ as f4,MJ as g4,qJ as h4,HJ as i4,jJ as j4,UJ as k4,AG as l4};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Wg as e,Zg as fq}from"./cli-0.5.10-tkjtbv56.mjs";import{_g as t,ah as Hq}from"./cli-0.5.10-ax0fmeqk.mjs";import{YK as o,ZK as s,_K as Oq,cm as S,dm as Nq,em as g,fm as Vq,gm as $,hm as Wq,kD as r,km as i,lD as kq,lm as Yq,uD as n,vD as Mq}from"./cli-0.5.10-8jjacn05.mjs";import{fV as u,hV as Zq}from"./cli-0.5.10-dzr8kmx4.mjs";import{JX as Xq,LV as Qq,cX as M,eX as F,wX as c,xX as Uq}from"./cli-0.5.10-9xc8zhxg.mjs";import{mZ as L,nZ as R,oZ as l}from"./cli-0.5.10-gs8dx67v.mjs";import{pZ as Lq}from"./cli-0.5.10-9ek8f4vk.mjs";import{k6 as d,l6 as Jq}from"./cli-0.5.10-2fqes7gy.mjs";import{Hna as a,Lna as Gq}from"./cli-0.5.10-1sd567wn.mjs";function qq(){let Z=T.c(1),q;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=L(F,{dimColor:!0,children:"Claude Code will be able to read files in this directory and make edits when auto-accept edits is on."}),Z[0]=q;else q=Z[0];return q}function wq(Z){let q=T.c(5),{path:X}=Z,Q;if(q[0]!==X)Q=L(F,{color:"permission",children:X}),q[0]=X,q[1]=Q;else Q=q[1];let N;if(q[2]===Symbol.for("react.memo_cache_sentinel"))N=L(qq,{}),q[2]=N;else N=q[2];let J;if(q[3]!==Q)J=R(M,{flexDirection:"column",paddingX:2,gap:1,children:[Q,N]}),q[3]=Q,q[4]=J;else J=q[4];return J}function Kq(Z){let q=T.c(14),{value:X,onChange:Q,onSubmit:N,error:J,suggestions:V,selectedSuggestion:w}=Z,k;if(q[0]===Symbol.for("react.memo_cache_sentinel"))k=L(F,{children:"Enter the path to the directory:"}),q[0]=k;else k=q[0];let Y;if(q[1]!==Q||q[2]!==N||q[3]!==X)Y=L(M,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:L(r,{showCursor:!0,placeholder:`Directory path${d.ellipsis}`,value:X,onChange:Q,onSubmit:N,columns:80,cursorOffset:X.length,onChangeCursorOffset:Aq})}),q[1]=Q,q[2]=N,q[3]=X,q[4]=Y;else Y=q[4];let W;if(q[5]!==w||q[6]!==V)W=V.length>0&&L(M,{marginBottom:1,children:L(t,{suggestions:V,selectedSuggestion:w})}),q[5]=w,q[6]=V,q[7]=W;else W=q[7];let U;if(q[8]!==J)U=J&&L(F,{color:"error",children:J}),q[8]=J,q[9]=U;else U=q[9];let O;if(q[10]!==Y||q[11]!==W||q[12]!==U)O=R(M,{flexDirection:"column",children:[k,Y,W,U]}),q[10]=Y,q[11]=W,q[12]=U,q[13]=O;else O=q[13];return O}function Aq(){}function lq(Z){let q=T.c(34),{onAddDirectory:X,onCancel:Q,permissionContext:N,directoryPath:J}=Z,[V,w]=H.useState(""),[k,Y]=H.useState(null),W;if(q[0]===Symbol.for("react.memo_cache_sentinel"))W=[],q[0]=W;else W=q[0];let[U,O]=H.useState(W),[f,B]=H.useState(0),v;if(q[1]===Symbol.for("react.memo_cache_sentinel"))v=async(z)=>{if(!z){O([]),B(0);return}let G=await e(z);O(G),B(0)},q[1]=v;else v=q[1];let I=c(v,100),C,P;if(q[2]!==I||q[3]!==V)C=()=>{I(V)},P=[V,I],q[2]=I,q[3]=V,q[4]=C,q[5]=P;else C=q[4],P=q[5];H.useEffect(C,P);let m;if(q[6]===Symbol.for("react.memo_cache_sentinel"))m=(z)=>{let G=z.id+"/";w(G),Y(null)},q[6]=m;else m=q[6];let zq=m,_;if(q[7]!==X||q[8]!==N)_=async(z)=>{let G=await o(z,N);if(G.resultType==="success")X(G.absolutePath,!1);else Y(s(G))},q[7]=X,q[8]=N,q[9]=_;else _=q[9];let K=_,D;if(q[10]===Symbol.for("react.memo_cache_sentinel"))D={context:"Settings"},q[10]=D;else D=q[10];u("confirm:no",Q,D);let b;if(q[11]!==K||q[12]!==f||q[13]!==U)b=(z)=>{if(U.length>0){if(z.key==="tab"){z.preventDefault();let G=U[f];if(G)zq(G);return}if(z.key==="return"){z.preventDefault();let G=U[f];if(G)K(G.id+"/");return}if(z.key==="up"||z.ctrl&&z.key==="p"){z.preventDefault(),B((G)=>G<=0?U.length-1:G-1);return}if(z.key==="down"||z.ctrl&&z.key==="n"){z.preventDefault(),B((G)=>G>=U.length-1?0:G+1);return}}},q[11]=K,q[12]=f,q[13]=U,q[14]=b;else b=q[14];let x=b,j;if(q[15]!==J||q[16]!==X||q[17]!==Q)j=(z)=>{if(!J)return;let G=z;q:switch(G){case"yes-session":{X(J,!1);break q}case"yes-remember":{X(J,!0);break q}case"no":Q()}},q[15]=J,q[16]=X,q[17]=Q,q[18]=j;else j=q[18];let y=j,p=J?void 0:Eq,A;if(q[19]!==V||q[20]!==J||q[21]!==k||q[22]!==y||q[23]!==K||q[24]!==f||q[25]!==U)A=J?R(M,{flexDirection:"column",gap:1,children:[L(wq,{path:J}),L(n,{options:Rq,onChange:y,onCancel:()=>y("no")})]}):R(M,{flexDirection:"column",gap:1,marginX:2,children:[L(qq,{}),L(Kq,{value:V,onChange:w,onSubmit:K,error:k,suggestions:U,selectedSuggestion:f})]}),q[19]=V,q[20]=J,q[21]=k,q[22]=y,q[23]=K,q[24]=f,q[25]=U,q[26]=A;else A=q[26];let E;if(q[27]!==Q||q[28]!==p||q[29]!==A)E=L(i,{title:"Add directory to workspace",onCancel:Q,color:"permission",isCancelActive:!1,inputGuide:p,children:A}),q[27]=Q,q[28]=p,q[29]=A,q[30]=E;else E=q[30];let h;if(q[31]!==x||q[32]!==E)h=L(M,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:x,children:E}),q[31]=x,q[32]=E,q[33]=h;else h=q[33];return h}function Eq(Z){return Z.pending?R(F,{children:["Press ",Z.keyName," again to exit"]}):R($,{children:[L(S,{shortcut:"Tab",action:"complete"}),L(S,{shortcut:"Enter",action:"add"}),L(g,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})}var T,H,Rq;var Fq=Gq(()=>{Jq();Uq();Oq();kq();Xq();Zq();fq();Vq();Mq();Wq();Yq();Nq();Hq();l();T=a(Qq(),1),H=a(Lq(),1),Rq=[{value:"yes-session",label:"Yes, for this session"},{value:"yes-remember",label:"Yes, and remember this directory"},{value:"no",label:"No"}]});
|
|
2
|
+
export{lq as Ug,Fq as Vg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Kn as W,Ln as n,mw as I,nw as P,qw as t}from"./cli-0.5.10-8jjacn05.mjs";import{uZ as H,vZ as p}from"./cli-0.5.10-tqpg21eq.mjs";import{wZ as C,yZ as i}from"./cli-0.5.10-p5j82v0t.mjs";import{T3 as l,U2 as v,b0 as S,g0 as c,t3 as R,z3 as V}from"./cli-0.5.10-xyscak5q.mjs";import{Nba as T,Oba as Y,Raa as O,T$ as q,U$ as u,Uba as y,Xba as k,_ba as g,kca as D,sca as m,uaa as E,xaa as X}from"./cli-0.5.10-2fqes7gy.mjs";import{Ada as $,Bda as h,xda as G,zda as f}from"./cli-0.5.10-xrwj7982.mjs";import{Hea as Z,Mea as _,Nea as M}from"./cli-0.5.10-jd7ff66n.mjs";import{Qfa as x,Tfa as b}from"./cli-0.5.10-p4wmnjhz.mjs";import{Wma as Q,mna as A}from"./cli-0.5.10-rwqvbtg3.mjs";import{Lna as U}from"./cli-0.5.10-1sd567wn.mjs";async function s(){if(q())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),E((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{A();n();l();f();M();O();b();p();h();m();c();u();t();i();g();y();d=$(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
|
|
2
|
+
export{Yj as Kb,r as Lb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{MW as v,NW as Z,OW as D,rW as T,sW as X,tW as I,vW as Y,wW as p}from"./cli-0.5.10-9xc8zhxg.mjs";import{mZ as P,oZ as V}from"./cli-0.5.10-gs8dx67v.mjs";import{pZ as H}from"./cli-0.5.10-9ek8f4vk.mjs";import{ama as F,pja as W}from"./cli-0.5.10-atkghjt0.mjs";import{Hna as A,Lna as C}from"./cli-0.5.10-1sd567wn.mjs";function B({children:_,ref:$,stickyScroll:g,...K}){let E=J.useRef(null),[,w]=J.useState(0),L=J.useRef(new Set),N=J.useRef(!1),U=()=>{for(let q of L.current)q()};function O(q){if(W(),T(q),Y(),U(),N.current)return;N.current=!0,queueMicrotask(()=>{N.current=!1,X(q)})}return J.useImperativeHandle($,()=>({scrollTo(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor=void 0,z.scrollTop=Math.max(0,Math.floor(q)),O(z)},scrollToElement(q,z=0){let G=E.current;if(!G)return;G.stickyScroll=!1,G.pendingScrollDelta=void 0,G.scrollAnchor={el:q,offset:z},O(G)},scrollBy(q){let z=E.current;if(!z)return;z.stickyScroll=!1,z.scrollAnchor=void 0,z.pendingScrollDelta=(z.pendingScrollDelta??0)+Math.floor(q),O(z)},scrollToBottom(){let q=E.current;if(!q)return;q.pendingScrollDelta=void 0,q.stickyScroll=!0,T(q),U(),w((z)=>z+1)},getScrollTop(){return E.current?.scrollTop??0},getPendingDelta(){return E.current?.pendingScrollDelta??0},getScrollHeight(){return E.current?.scrollHeight??0},getFreshScrollHeight(){return E.current?.childNodes[0]?.yogaNode?.getComputedHeight()??E.current?.scrollHeight??0},getViewportHeight(){return E.current?.scrollViewportHeight??0},getViewportTop(){return E.current?.scrollViewportTop??0},isSticky(){let q=E.current;if(!q)return!1;return q.stickyScroll??Boolean(q.attributes.stickyScroll)},subscribe(q){return L.current.add(q),()=>L.current.delete(q)},setClampBounds(q,z){let G=E.current;if(!G)return;G.scrollClampMin=q,G.scrollClampMax=z}}),[]),P("ink-box",{ref:(q)=>{if(E.current=q,q)q.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:K.flexDirection??"row",flexGrow:K.flexGrow??0,flexShrink:K.flexShrink??1,...K,overflowX:"scroll",overflowY:"scroll"},...g?{stickyScroll:!0}:{},children:P(Z,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:_})})}var J,u;var M=C(()=>{F();I();p();v();D();V();J=A(H(),1);u=B});
|
|
2
|
+
export{u as eh,M as fh};
|
|
@@ -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 _,S as $,E as aa};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{q as j,r as v}from"./cli-0.5.10-srd78kpc.mjs";import{Lf as C}from"./cli-0.5.10-20w5v1ja.mjs";import{$Q as b,_Q as S}from"./cli-0.5.10-0ar26ct8.mjs";import{DY as R,FY as E}from"./cli-0.5.10-9h23hhgb.mjs";import{Ada as w,Bda as z,xda as Z,zda as U}from"./cli-0.5.10-xrwj7982.mjs";import{Kda as L,Xda as I}from"./cli-0.5.10-rk7at2tn.mjs";import{Qfa as M,Tfa as l,tfa as D,ufa as T,yfa as u}from"./cli-0.5.10-p4wmnjhz.mjs";import{iga as f,pga as p}from"./cli-0.5.10-8wqagr68.mjs";import{Wma as k,mna as h}from"./cli-0.5.10-rwqvbtg3.mjs";U();I();z();E();C();var F={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:0.25,init_retry_max_delay_ms:4000,http_timeout_ms:1e4,uuid_dedup_buffer_size:2000,heartbeat_interval_ms:20000,heartbeat_jitter_fraction:0.1,token_refresh_buffer_ms:300000,teardown_archive_timeout_ms:1500,connect_timeout_ms:15000,min_version:"0.0.0",should_show_app_upgrade_message:!1},m=w(()=>Z.object({init_retry_max_attempts:Z.number().int().min(1).max(10).default(3),init_retry_base_delay_ms:Z.number().int().min(100).default(500),init_retry_jitter_fraction:Z.number().min(0).max(1).default(0.25),init_retry_max_delay_ms:Z.number().int().min(500).default(4000),http_timeout_ms:Z.number().int().min(2000).default(1e4),uuid_dedup_buffer_size:Z.number().int().min(100).max(50000).default(2000),heartbeat_interval_ms:Z.number().int().min(5000).max(30000).default(20000),heartbeat_jitter_fraction:Z.number().min(0).max(0.5).default(0.1),token_refresh_buffer_ms:Z.number().int().min(30000).max(1800000).default(300000),teardown_archive_timeout_ms:Z.number().int().min(500).max(2000).default(1500),connect_timeout_ms:Z.number().int().min(5000).max(60000).default(15000),min_version:Z.string().refine((J)=>{try{return R(J,"0.0.0"),!0}catch{return!1}}).default("0.0.0"),should_show_app_upgrade_message:Z.boolean().default(!1)}));async function y(){let J=await L("tengu_bridge_repl_v2_config",F),K=m().safeParse(J);return K.success?K.data:F}async function o(){let J=await y();if(J.min_version&&R("99.0.0",J.min_version))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
+
Version ${J.min_version} or higher is required. Run \`claudin update\` to update.`;return null}h();u();function JJ(J){let K=Buffer.from(J,"base64url").toString("utf-8"),X=T(K);if(!X||typeof X!=="object"||!("version"in X)||X.version!==1)throw Error(`Unsupported work secret version: ${X&&typeof X==="object"&&"version"in X?X.version:"unknown"}`);let Y=X;if(typeof Y.session_ingress_token!=="string"||Y.session_ingress_token.length===0)throw Error("Invalid work secret: missing or empty session_ingress_token");if(typeof Y.api_base_url!=="string")throw Error("Invalid work secret: missing api_base_url");return X}function KJ(J,K){let X=new URL(J).hostname,Y=X==="localhost"||X==="127.0.0.1",x=Y?"ws":"wss",H=Y?"v2":"v1",P=J.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`${x}://${P}/${H}/session_ingress/ws/${K}`}function QJ(J,K){if(J===K)return!0;let X=J.slice(J.lastIndexOf("_")+1),Y=K.slice(K.lastIndexOf("_")+1);return X.length>=4&&X===Y}function XJ(J,K){return`${J.replace(/\/+$/,"")}/v1/code/sessions/${K}`}async function B(J,K){let X=await k.post(`${J}/worker/register`,{},{headers:{Authorization:`Bearer ${K}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"},timeout:1e4}),Y=X.data?.worker_epoch,x=typeof Y==="string"?Number(Y):Y;if(typeof x!=="number"||!Number.isFinite(x)||!Number.isSafeInteger(x))throw Error(`registerWorker: invalid worker_epoch in response: ${D(X.data)}`);return x}l();p();b();function WJ(J){return{write:(K)=>J.write(K),writeBatch:(K)=>J.writeBatch(K),close:()=>J.close(),isConnectedStatus:()=>J.isConnectedStatus(),getStateLabel:()=>J.getStateLabel(),setOnData:(K)=>J.setOnData(K),setOnClose:(K)=>J.setOnClose(K),setOnConnect:(K)=>J.setOnConnect(K),connect:()=>void J.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return J.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function HJ(J){let{sessionUrl:K,ingressToken:X,sessionId:Y,initialSequenceNum:x,getAuthToken:H}=J,P;if(H)P=()=>{let Q=H();if(!Q)return{};return{Authorization:`Bearer ${Q}`}};else S(X);let O=J.epoch??await B(K,X);M(`[bridge:repl] CCR v2: worker sessionId=${Y} epoch=${O}${J.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let V=new URL(K);V.pathname=V.pathname.replace(/\/$/,"")+"/worker/events/stream";let q=new v(V,{},Y,void 0,x,P),G,$=new j(q,new URL(K),{getAuthHeaders:P,heartbeatIntervalMs:J.heartbeatIntervalMs,heartbeatJitterFraction:J.heartbeatJitterFraction,onEpochMismatch:()=>{M("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{$.close(),q.close(),G?.(4090)}catch(Q){M(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${f(Q)}`,{level:"error"})}throw Error("epoch superseded")}});q.setOnEvent((Q)=>{$.reportDelivery(Q.event_id,"received"),$.reportDelivery(Q.event_id,"processed")});let _,N=!1,A=!1;return{write(Q){return $.writeEvent(Q)},async writeBatch(Q){for(let W of Q){if(A)break;await $.writeEvent(W)}},close(){A=!0,$.close(),q.close()},isConnectedStatus(){return N},getStateLabel(){if(q.isClosedStatus())return"closed";if(q.isConnectedStatus())return N?"connected":"init";return"connecting"},setOnData(Q){q.setOnData(Q)},setOnClose(Q){G=Q,q.setOnClose((W)=>{$.close(),Q(W??4092)})},setOnConnect(Q){_=Q},getLastSequenceNum(){return q.getLastSequenceNum()},droppedBatchCount:0,reportState(Q){$.reportState(Q)},reportMetadata(Q){$.reportMetadata(Q)},reportDelivery(Q,W){$.reportDelivery(Q,W)},flush(){return $.flush()},connect(){if(!J.outboundOnly)q.connect();$.initialize(O).then(()=>{N=!0,M(`[bridge:repl] v2 transport ready for writes (epoch=${O}, sse=${q.isConnectedStatus()?"open":"opening"})`),_?.()},(Q)=>{M(`[bridge:repl] CCR v2 initialize failed: ${f(Q)}`,{level:"error"}),$.close(),q.close(),G?.(4091)})}}}class g{_active=!1;_pending=[];get active(){return this._active}get pendingCount(){return this._pending.length}start(){this._active=!0}end(){return this._active=!1,this._pending.splice(0)}enqueue(...J){if(!this._active)return!1;return this._pending.push(...J),!0}drop(){this._active=!1;let J=this._pending.length;return this._pending.length=0,J}deactivate(){this._active=!1}}
|
|
3
|
+
export{y as e,o as f,JJ as g,KJ as h,QJ as i,XJ as j,WJ as k,HJ as l,g as m};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Kna as Q,Lna as U}from"./cli-0.5.10-1sd567wn.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 sna,w as tna,L as una};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{B6 as A,D6 as _,Waa as M,Xba as D,_ba as v,cba as H,mba as b,pba as Y,qba as G}from"./cli-0.5.10-2fqes7gy.mjs";import{Fga as E,xga as K}from"./cli-0.5.10-jsnrvena.mjs";import{Lna as B}from"./cli-0.5.10-1sd567wn.mjs";function w(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||f}function x(J){return new Promise((N)=>setTimeout(N,J))}async function n(J){let N=J?.clientId??w();if(!N)throw new j("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let V=J?.fetchImpl??fetch,$=J?.scope?.trim()||L,X=$===L?[$]:[$,L],y="Device code request failed.";for(let W of X){let Z=await V(k,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:N,scope:W})});if(!Z.ok){let R=await Z.text().catch(()=>"");y=`Device code request failed: ${Z.status} ${R}`;let F=/invalid_scope/i.test(R);if(W!==L&&F)continue;throw new j(y)}let Q=await Z.json(),z=Q.device_code,q=Q.user_code,O=Q.verification_uri;if(typeof z!=="string"||typeof q!=="string"||typeof O!=="string")throw new j("Malformed device code response from GitHub");return{device_code:z,user_code:q,verification_uri:O,expires_in:typeof Q.expires_in==="number"?Q.expires_in:900,interval:typeof Q.interval==="number"?Q.interval:5}}throw new j(y)}async function a(J,N){let V=N?.clientId??w();if(!V)throw new j("client_id required for polling");let $=Math.max(1,N?.initialInterval??5),X=N?.timeoutSeconds??900,y=N?.fetchImpl??fetch,W=Date.now();while((Date.now()-W)/1000<X){let Z=await y(g,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:V,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!Z.ok){let q=await Z.text().catch(()=>"");throw new j(`Token request failed: ${Z.status} ${q}`)}let Q=await Z.json(),z=Q.error;if(z==null){let q=Q.access_token;if(typeof q==="string"&&q)return q;throw new j("No access_token in response")}if(z==="authorization_pending"){await x($*1000);continue}if(z==="slow_down"){$=typeof Q.interval==="number"?Q.interval:$+5,await x($*1000);continue}if(z==="expired_token")throw new j("Device code expired. Start the login flow again.");if(z==="access_denied")throw new j("Authorization was denied or cancelled.");throw new j(`GitHub OAuth error: ${z}`)}throw new j("Timed out waiting for authorization.")}async function s(J){try{if(process.platform==="darwin")await A("open",[J],{useCwd:!1,timeout:5000});else if(process.platform==="win32")await A("cmd",["/c","start","",J],{useCwd:!1,timeout:5000});else await A("xdg-open",[J],{useCwd:!1,timeout:5000})}catch{}}async function I(J,N){let $=await(N??fetch)(S,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...T}});if(!$.ok){let z=await $.text().catch(()=>"");throw new j(`Copilot token exchange failed: ${$.status} ${z}`)}let X=await $.json(),y=X.token,W=X.expires_at,Z=X.refresh_in,Q=X.endpoints;if(typeof y!=="string"||typeof W!=="number"||typeof Z!=="number"||!Q||typeof Q!=="object"||typeof Q.api!=="string")throw new j("Malformed Copilot token response");return{token:y,expires_at:W,refresh_in:Z,endpoints:Q}}var f="Iv1.b507a08c87ecfe98",k="https://github.com/login/device/code",g="https://github.com/login/oauth/access_token",S="https://api.github.com/copilot_internal/v2/token",L="read:user",T,j;var P=B(()=>{_();T={"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"};j=class j extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function m(){return D()?.transport==="github_copilot"}function h(J){let N=J.match(/exp=(\d+)/);if(N){let X=Number(N[1]);if(!Number.isNaN(X))return Date.now()>=X*1000?"expired":"valid"}let V=J.split(".");if(V.length===3&&V.every((X)=>/^[A-Za-z0-9_-]+$/.test(X)))try{let X=V[1].replace(/-/g,"+").replace(/_/g,"/"),y=X+"=".repeat((4-X.length%4)%4),W=Buffer.from(y,"base64").toString("utf8"),Z=JSON.parse(W);if(Z&&typeof Z==="object"&&Z.exp)return Date.now()>=Z.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function u(){if(K())return;try{return Y().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function XJ(){if(K())return;try{return(await Y().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function ZJ(){if(!m())return;if(K())return;if(u())return}async function $J(){if(!m())return!1;if(K())return!1;if(U)return U;return U=(async()=>{try{let V=Y().read()?.githubModels,$=V?.accessToken?.trim()||"",X=V?.oauthAccessToken?.trim()||"";if(!$&&!X)return!1;if(($?h($):"expired")==="valid")return!1;if(!X)return!1;let W=await I(X);if(!p(W.token,X).success)return!1;let Q=M().find((z)=>z.provider==="openai"&&z.extras?.githubToken!==void 0);if(Q)H(Q.id,{provider:"openai",name:Q.name,baseUrl:Q.baseUrl,model:Q.model,apiKey:W.token,extras:{...Q.extras,githubToken:W.token}});return!0}catch{return!1}finally{U=null}})(),U}function p(J,N){if(K())return{success:!1,warning:"Bare mode: secure storage is disabled."};let V=J.trim();if(!V)return{success:!1,warning:"Token is empty."};let $=Y(),X=$.read()||{},y=X[C],W=N?.trim(),Z={accessToken:V};if(W)Z.oauthAccessToken=W;else if(y?.oauthAccessToken?.trim())Z.oauthAccessToken=y.oauthAccessToken.trim();let Q={...X,[C]:Z};return $.update(Q)}function NJ(){if(K())return{success:!0};let J=Y(),V={...J.read()||{}};return delete V[C],J.update(V)}var C="githubModels",QJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED",U=null;var l=B(()=>{v();E();G();P();b()});
|
|
2
|
+
export{n as GY,a as HY,s as IY,I as JY,P as KY,C as LY,QJ as MY,u as NY,XJ as OY,ZJ as PY,$J as QY,p as RY,NJ as SY,l as TY};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{mZ as v,oZ as D}from"./cli-0.5.10-gs8dx67v.mjs";import{Mna as B}from"./cli-0.5.10-1sd567wn.mjs";D();var w,z;function N(g,q){w=g,z=q}async function O(g,q,F,G){let H=w??import("./App-0.5.10-yzg0d70f.mjs"),J=z??import("./REPL-0.5.10-qag06ykw.mjs");w=void 0,z=void 0;let[{App:K},{REPL:M}]=await Promise.all([H,J]);await G(g,v(K,{...q,children:v(M,{...F})}))}
|
|
2
|
+
export{N as xb,O as yb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Lm as E,Mm as m,Mn as l,Nm as Xq,Nn as Rq,On as i,Pn as Aq,gn as S,ln as Zq}from"./cli-0.5.10-8jjacn05.mjs";import{d_ as u,f_ as g,i_ as h,j_ as n,kca as D,o_ as vq,sca as Qq}from"./cli-0.5.10-2fqes7gy.mjs";import{xda as d,zda as Uq}from"./cli-0.5.10-xrwj7982.mjs";import{Cfa as M,Gfa as y,Qfa as V,Tfa as e,tfa as P,ufa as v,yfa as f}from"./cli-0.5.10-p4wmnjhz.mjs";import{iga as W,jga as O,kga as C,pga as _}from"./cli-0.5.10-8wqagr68.mjs";import{Wma as p,mna as qq}from"./cli-0.5.10-rwqvbtg3.mjs";import{Lna as N}from"./cli-0.5.10-1sd567wn.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(J){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let K=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:K,ref:X}:{source:"git",url:K}}}return{source:"url",url:G}}let x=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||x){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=N(()=>{_();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as Jq}from"fs/promises";import{join as Kq}from"path";function c(){return Kq(S(),xq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==L)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${L})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=S();await M().mkdir(Q);let B=P(Z,null,2);await Jq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){D(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${I}`);let Z=performance.now();try{let q=await p.get(I,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return E("install_counts",I,"success",performance.now()-Z),q.data.plugins}catch(q){throw E("install_counts",I,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),E("install_counts",I,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:L,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return D(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var L=1,xq="install-counts-cache.json",I="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=N(()=>{qq();e();_();y();Qq();f();Xq();Zq()});import{readdir as Iq,readFile as A,stat as wq}from"fs/promises";import*as H from"path";function Eq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function w(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Nq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function j(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(x&&typeof x==="object"){let X=x;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((J,K)=>{if(typeof J==="string")w(J,`commands[${K}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((J,K)=>{if(typeof J==="string")w(J,`agents[${K}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((J,K)=>{if(typeof J==="string")w(J,`skills[${K}]`,q)})}let z=x;if(typeof x==="object"&&x!==null){let X=x,Y=Object.keys(X).filter((J)=>Mq.has(J));if(Y.length>0){let J={...X};for(let K of Y)delete J[K],$.push({path:K,message:`Field '${K}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claude Code "+"ignores it at load time."});z=J}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(x&&typeof x==="object"){let X=x;if(Array.isArray(X.plugins))X.plugins.forEach((Y,J)=>{if(Y&&typeof Y==="object"&&"source"in Y){let K=Y.source;if(typeof K==="string")w(K,`plugins[${J}].source`,q,Nq(K));if(K&&typeof K==="object"&&"path"in K&&typeof K.path==="string")w(K.path,`plugins[${J}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(x);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((K,U)=>{if(X.plugins.filter((R)=>R.name===K.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${K.name}" found in marketplace`})});let Y=H.dirname(Q),J=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[K,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(J,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${K}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function _q(Z,q,$){let Q=[],B=[],x=q.match(i);if(!x)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=x[1]||"",G;try{G=l(z)}catch(K){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(K)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let K=X.description;if(typeof K!=="string"&&typeof K!=="number"&&typeof K!=="boolean"&&K!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(K)?"array":typeof K}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((K)=>typeof K!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let J=X.shell;if(J!==void 0&&J!==null)if(typeof J!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof J}.`});else{let K=J.trim().toLowerCase();if(K!=="bash"&&K!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${J}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function Lq(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await Iq(Z,{withFileTypes:!0})}catch(B){let x=O(B);if(x==="ENOENT"||x==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let x=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(x,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(x)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,x]of $){let z=await o(x,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(J){if(C(J))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(J)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=_q(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await Lq(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await wq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),x=await k(B);if(x.errors[0]?.code!=="ENOENT")return x;let z=H.join(q,".claude-plugin","plugin.json"),G=await j(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(Eq(Z)){case"plugin":return j(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),x=v(B);if(Array.isArray(x.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return j(Z)}}}var Mq;var Dq=N(()=>{Uq();_();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
|
|
2
|
+
export{Fq as ec,r as fc,nq as gc,lq as hc,Oq as ic,QQ as jc,XQ as kc,Dq as lc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$e as VP,Ye as N0,Ze as U0}from"./cli-0.5.10-j1aznw8b.mjs";import{Bt as J0,Ct as QP,Et as j0,NJ as ZP,OJ as m0,QJ as qP,TI as WP,VJ as CP,aJ as cP,bJ as fP,cm as h,dJ as M0,dm as c0,eJ as h0,em as p,fF as G0,fJ as T0,fm as w0,gF as YP,gJ as d0,gm as r,hm as W0,jJ as R0,kD as XP,kK as C0,km as O0,lD as mP,lm as EP,oK as pP,qJ as u0,uD as L0,wD as i0}from"./cli-0.5.10-8jjacn05.mjs";import{fU as D0,gU as LP}from"./cli-0.5.10-z5ysspq8.mjs";import{TU as JP,UU as hP,fV as z0,hV as TP}from"./cli-0.5.10-dzr8kmx4.mjs";import{FV as PP,JX as q0,KV as AP,LV as I0,UV as k0,aX as C,cX as X,eX as L,iX as F0,yX as GP}from"./cli-0.5.10-9xc8zhxg.mjs";import{lZ as n,mZ as J,nZ as Q,oZ as a}from"./cli-0.5.10-gs8dx67v.mjs";import{pZ as $0}from"./cli-0.5.10-9ek8f4vk.mjs";import{MZ as A0,NZ as dP}from"./cli-0.5.10-d1y749qy.mjs";import{B3 as e0,T3 as gP}from"./cli-0.5.10-xyscak5q.mjs";import{O_ as H0,P_ as zP,X_ as p0,k6 as _,l6 as r0,pca as s0,sca as SP,w_ as y0,x_ as B0,y_ as KP}from"./cli-0.5.10-2fqes7gy.mjs";import{Mea as g0,Nea as _P}from"./cli-0.5.10-jd7ff66n.mjs";import{Oea as m,Qea as IP}from"./cli-0.5.10-y9qd4psg.mjs";import{iga as f0,pga as t0}from"./cli-0.5.10-8wqagr68.mjs";import{Hna as e,Lna as P0}from"./cli-0.5.10-1sd567wn.mjs";function K0(G){let P=o0.c(9),{serverToolsCount:Y,serverPromptsCount:z,serverResourcesCount:Z}=G,f;if(P[0]!==z||P[1]!==Z||P[2]!==Y){if(f=[],Y>0)f.push("tools");if(Z>0)f.push("resources");if(z>0)f.push("prompts");P[0]=z,P[1]=Z,P[2]=Y,P[3]=f}else f=P[3];let H;if(P[4]===Symbol.for("react.memo_cache_sentinel"))H=J(L,{bold:!0,children:"Capabilities: "}),P[4]=H;else H=P[4];let W;if(P[5]!==f)W=f.length>0?J(r,{children:f}):"none",P[5]=f,P[6]=W;else W=P[6];let k;if(P[7]!==W)k=Q(X,{children:[H,J(L,{color:"text",children:W})]}),P[7]=W,P[8]=k;else k=P[8];return k}var o0;var _0=P0(()=>{q0();W0();a();o0=e(I0(),1)});function E0(G,P){switch(G.client.type){case"connected":return{message:`Reconnected to ${P}.`,success:!0};case"needs-auth":return{message:`${P} requires authentication. Use the 'Authenticate' option.`,success:!1};case"failed":return{message:`Failed to reconnect to ${P}.`,success:!1};default:return{message:`Unknown result when reconnecting to ${P}.`,success:!1}}}function V0(G,P){let Y=G instanceof Error?G.message:String(G);return`Error reconnecting to ${P}: ${Y}`}var S0=()=>{};function bG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),{columns:k}=JP(),[B,N]=E.default.useState(!1),[$,U]=E.default.useState(null),S=J0((q)=>q.mcp),M=QP(),[b,K]=E.default.useState(null),[V,D]=E.useState(!1),R=E.useRef(null),[g,c]=E.useState(!1),[j,T]=E.useState(null),[A,y]=E.useState(!1),[i,u]=E.useState(null),[l,v]=E.useState(!1),[o,s]=E.useState(!1),x=E.useRef(void 0),O=E.useRef(!1),[x0,Q0]=E.useState(""),[kP,DP]=E.useState(0),[a0,n0]=E.useState(null);E.useEffect(()=>()=>{if(O.current=!0,R.current?.abort(),x.current!==void 0)clearTimeout(x.current)},[]);let X0=G.isAuthenticated||G.client.type==="connected"&&P>0,Y0=N0(),wP=E.default.useCallback(async()=>{c(!1),T(null),D(!0);try{let q=await Y0(G.name),F=q.client.type==="connected";if(m("tengu_claudeai_mcp_auth_completed",{success:F}),F)Z?.(`Authentication successful. Connected to ${G.name}.`);else if(q.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}catch(q){m("tengu_claudeai_mcp_auth_completed",{success:!1}),Z?.(V0(q,G.name))}finally{D(!1)}},[Y0,G.name,Z]),MP=E.default.useCallback(async()=>{await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"needs-auth"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),m("tengu_claudeai_mcp_clear_auth_completed",{}),Z?.(`Disconnected from ${G.name}.`),y(!1),u(null),v(!1)},[G.name,G.config,G.scope,M,Z]);z0("confirm:no",()=>{R.current?.abort(),R.current=null,N(!1),K(null)},{context:"Confirmation",isActive:B}),z0("confirm:no",()=>{c(!1),T(null)},{context:"Confirmation",isActive:g}),z0("confirm:no",()=>{y(!1),u(null),v(!1)},{context:"Confirmation",isActive:A}),GP((q,F)=>{if(F.return&&g)wP();if(F.return&&A)if(l)MP();else{let w=`${g0().CLAUDE_AI_ORIGIN}/settings/connectors`;u(w),v(!0),A0(w)}if(q==="c"&&!o){let w=b||j||i;if(w)PP(w).then((d)=>{if(O.current)return;if(d)process.stdout.write(d);if(s(!0),x.current!==void 0)clearTimeout(x.current);x.current=setTimeout(s,2000,!1)})}});let RP=H0(String(G.name)),NP=M0(S.commands,G.name).length,l0=U0(),UP=E.default.useCallback(async()=>{let q=g0().CLAUDE_AI_ORIGIN,w=e0()?.organizationUuid,d;if(w&&G.config.type==="claudeai-proxy"&&G.config.id){let Z0=G.config.id.startsWith("mcprs")?"mcpsrv"+G.config.id.slice(5):G.config.id,t=encodeURIComponent(process.env.CLAUDE_CODE_ENTRYPOINT||"cli");d=`${q}/api/organizations/${w}/mcp/start-auth/${Z0}?product_surface=${t}`}else d=`${q}/settings/connectors`;T(d),c(!0),m("tengu_claudeai_mcp_auth_started",{}),await A0(d)},[G.config]),bP=E.default.useCallback(()=>{y(!0),m("tengu_claudeai_mcp_clear_auth_started",{})},[]),yP=E.default.useCallback(async()=>{let q=G.client.type!=="disabled";try{if(await l0(G.name),G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_toggle",{new_state:q?"disabled":"enabled"});z()}catch(F){Z?.(`Failed to ${q?"disable":"enable"} MCP server '${G.name}': ${f0(F)}`)}},[G.client.type,G.config.type,G.name,l0,z,Z]),BP=E.default.useCallback(async()=>{if(G.config.type==="claudeai-proxy")return;N(!0),U(null);let q=new AbortController;R.current=q;try{if(G.isAuthenticated&&G.config)await m0(G.name,G.config,{preserveStepUpState:!0});if(G.config){await qP(G.name,G.config,K,q.signal,{onWaitingForCallback:(w)=>{n0(()=>w)}}),m("tengu_mcp_auth_config_authenticate",{wasAuthenticated:G.isAuthenticated});let F=await Y0(G.name);if(F.client.type==="connected"){let w=X0?`Authentication successful. Reconnected to ${G.name}.`:`Authentication successful. Connected to ${G.name}.`;Z?.(w)}else if(F.client.type==="needs-auth")Z?.("Authentication successful, but server still requires authentication. You may need to manually restart Claude Code.");else s0(G.name,"Reconnection failed after authentication"),Z?.("Authentication successful, but server reconnection failed. You may need to manually restart Claude Code for the changes to take effect.")}}catch(F){if(F instanceof Error&&!(F instanceof ZP))U(F.message)}finally{N(!1),R.current=null,n0(null),Q0("")}},[G.isAuthenticated,G.config,G.name,Z,Y0,X0]),OP=async()=>{if(G.config.type==="claudeai-proxy")return;if(G.config)await m0(G.name,G.config),m("tengu_mcp_auth_config_clear",{}),await C0(G.name,{...G.config,scope:G.scope}),M((q)=>{let F=q.mcp.clients.map((t)=>t.name===G.name?{...t,type:"failed"}:t),w=h0(q.mcp.tools,G.name),d=T0(q.mcp.commands,G.name),Z0=d0(q.mcp.resources,G.name);return{...q,mcp:{...q.mcp,clients:F,tools:w,commands:d,resources:Z0}}}),Z?.(`Authentication cleared for ${G.name}.`)};if(B){let q=G.config.type!=="claudeai-proxy"&&G.config.oauth?.xaa?" Authenticating via your identity provider":" A browser window will open for authentication";return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:q})]}),b&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:b})]}),B&&b&&a0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{dimColor:!0,children:"If the redirect page shows a connection error, paste the URL from your browser's address bar:"}),Q(X,{children:[Q(L,{dimColor:!0,children:["URL ",">"," "]}),J(XP,{value:x0,onChange:Q0,onSubmit:(F)=>{a0(F.trim()),Q0("")},cursorOffset:kP,onChangeCursorOffset:DP,columns:k-8})]})]}),J(X,{marginLeft:3,children:J(L,{dimColor:!0,children:"Return here after authenticating in your browser. Press Esc to go back."})})]})}if(g)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Authenticating with ",G.name,"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" A browser window will open for authentication"})]}),j&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser doesn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:j})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," after authenticating in your browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]});if(A)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"claude",children:["Clear authentication for ",G.name]}),l?Q(n,{children:[J(L,{children:'Find the MCP server in the browser and click "Disconnect".'}),i&&Q(X,{flexDirection:"column",children:[Q(X,{children:[Q(L,{dimColor:!0,children:["If your browser didn't open automatically, copy this URL manually"," "]}),o?J(L,{color:"success",children:"(Copied!)"}):J(L,{dimColor:!0,children:J(h,{shortcut:"c",action:"copy",parens:!0})})]}),J(F0,{url:i})]}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," when done."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]}):Q(n,{children:[J(L,{children:'This will open claude.ai in the browser. Find the MCP server in the list and click "Disconnect".'}),Q(X,{marginLeft:3,flexDirection:"column",children:[Q(L,{color:"permission",children:["Press ",J(L,{bold:!0,children:"Enter"})," to open the browser."]}),J(L,{dimColor:!0,italic:!0,children:J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})})]})]})]});if(V)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Connecting to ",J(L,{bold:!0,children:G.name}),"…"]}),Q(X,{children:[J(G0,{}),J(L,{children:" Establishing connection to MCP server"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});let I=[];if(G.client.type==="disabled")I.push({label:"Enable",value:"toggle-enabled"});if(G.client.type==="connected"&&P>0)I.push({label:"View tools",value:"tools"});if(G.config.type==="claudeai-proxy"){if(G.client.type==="connected")I.push({label:"Clear authentication",value:"claudeai-clear-auth"});else if(G.client.type!=="disabled")I.push({label:"Authenticate",value:"claudeai-auth"})}else{if(X0)I.push({label:"Re-authenticate",value:"reauth"}),I.push({label:"Clear authentication",value:"clear-auth"});if(!X0)I.push({label:"Authenticate",value:"auth"})}if(G.client.type!=="disabled"){if(G.client.type!=="needs-auth")I.push({label:"Reconnect",value:"reconnectMcpServer"});I.push({label:"Disable",value:"toggle-enabled"})}if(I.length===0)I.push({label:"Back",value:"back"});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[RP," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):G.client.type==="needs-auth"?Q(L,{children:[C("warning",H)(_.triangleUpOutline)," needs authentication"]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),G.transport!=="claudeai-proxy"&&Q(X,{children:[J(L,{bold:!0,children:"Auth: "}),X0?Q(L,{children:[C("success",H)(_.tick)," authenticated"]}):Q(L,{children:[C("error",H)(_.cross)," not authenticated"]})]}),Q(X,{children:[J(L,{bold:!0,children:"URL: "}),J(L,{dimColor:!0,children:G.config.url})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(G.scope)})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:NP,serverResourcesCount:S.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),$&&J(X,{marginTop:1,children:Q(L,{color:"error",children:["Error: ",$]})}),I.length>0&&J(X,{marginTop:1,children:J(L0,{options:I,onChange:async(q)=>{switch(q){case"tools":Y();break;case"auth":case"reauth":await BP();break;case"clear-auth":await OP();break;case"claudeai-auth":await UP();break;case"claudeai-clear-auth":bP();break;case"reconnectMcpServer":D(!0);try{let F=await Y0(G.name);if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:F.client.type==="connected"});let{message:w}=E0(F,G.name);Z?.(w)}catch(F){if(G.config.type==="claudeai-proxy")m("tengu_claudeai_mcp_reconnect",{success:!1});Z?.(V0(F,G.name))}finally{D(!1)}break;case"toggle-enabled":await yP();break;case"back":z();break}},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var E;var $P=P0(()=>{r0();IP();_P();LP();hP();AP();q0();TP();CP();pP();VP();u0();j0();gP();dP();t0();SP();p0();w0();i0();W0();c0();YP();mP();_0();S0();a();E=e($0(),1)});function uG({server:G,serverToolsCount:P,onViewTools:Y,onCancel:z,onComplete:Z,borderless:f=!1}){let[H]=k0(),W=D0(),k=J0((V)=>V.mcp),B=N0(),N=U0(),[$,U]=b0.useState(!1),S=b0.default.useCallback(async()=>{let V=G.client.type!=="disabled";try{await N(G.name),z()}catch(D){Z(`Failed to ${V?"disable":"enable"} MCP server '${G.name}': ${f0(D)}`)}},[G.client.type,G.name,N,z,Z]),M=H0(String(G.name)),b=M0(k.commands,G.name).length,K=[];if(G.client.type!=="disabled"&&P>0)K.push({label:"View tools",value:"tools"});if(G.client.type!=="disabled")K.push({label:"Reconnect",value:"reconnectMcpServer"});if(K.push({label:G.client.type!=="disabled"?"Disable":"Enable",value:"toggle-enabled"}),K.length===0)K.push({label:"Back",value:"back"});if($)return Q(X,{flexDirection:"column",gap:1,padding:1,children:[Q(L,{color:"text",children:["Reconnecting to ",J(L,{bold:!0,children:G.name})]}),Q(X,{children:[J(G0,{}),J(L,{children:" Restarting MCP server process"})]}),J(L,{dimColor:!0,children:"This may take a few moments."})]});return Q(X,{flexDirection:"column",children:[Q(X,{flexDirection:"column",paddingX:1,borderStyle:f?void 0:"round",children:[J(X,{marginBottom:1,children:Q(L,{bold:!0,children:[M," MCP Server"]})}),Q(X,{flexDirection:"column",gap:0,children:[Q(X,{children:[J(L,{bold:!0,children:"Status: "}),G.client.type==="disabled"?Q(L,{children:[C("inactive",H)(_.radioOff)," disabled"]}):G.client.type==="connected"?Q(L,{children:[C("success",H)(_.tick)," connected"]}):G.client.type==="pending"?Q(n,{children:[J(L,{dimColor:!0,children:_.radioOff}),J(L,{children:" connecting…"})]}):Q(L,{children:[C("error",H)(_.cross)," failed"]})]}),Q(X,{children:[J(L,{bold:!0,children:"Command: "}),J(L,{dimColor:!0,children:G.config.command})]}),G.config.args&&G.config.args.length>0&&Q(X,{children:[J(L,{bold:!0,children:"Args: "}),J(L,{dimColor:!0,children:G.config.args.join(" ")})]}),Q(X,{children:[J(L,{bold:!0,children:"Config location: "}),J(L,{dimColor:!0,children:R0(WP(G.name)?.scope??"dynamic")})]}),G.client.type==="connected"&&J(K0,{serverToolsCount:P,serverPromptsCount:b,serverResourcesCount:k.resources[G.name]?.length||0}),G.client.type==="connected"&&P>0&&Q(X,{children:[J(L,{bold:!0,children:"Tools: "}),Q(L,{dimColor:!0,children:[P," tools"]})]})]}),K.length>0&&J(X,{marginTop:1,children:J(L0,{options:K,onChange:async(V)=>{if(V==="tools")Y();else if(V==="reconnectMcpServer"){U(!0);try{let D=await B(G.name),{message:R}=E0(D,G.name);Z?.(R)}catch(D){Z?.(V0(D,G.name))}finally{U(!1)}}else if(V==="toggle-enabled")await S();else if(V==="back")z()},onCancel:z})})]}),J(X,{marginTop:1,children:J(L,{dimColor:!0,italic:!0,children:W.pending?Q(n,{children:["Press ",W.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})})})]})}var b0;var jP=P0(()=>{r0();LP();q0();cP();VP();u0();j0();t0();p0();w0();i0();W0();c0();YP();_0();S0();a();b0=e($0(),1)});function tG(G){let P=FP.c(44),{tool:Y,server:z,onBack:Z}=G,[f,H]=v0.default.useState(""),W,k;if(P[0]!==z.name||P[1]!==Y){k=y0(Y.name,z.name);let s=Y.userFacingName?Y.userFacingName({}):k;W=B0(s),P[0]=z.name,P[1]=Y,P[2]=W,P[3]=k}else W=P[2],k=P[3];let B=W,N;if(P[4]!==Y)N=Y.isReadOnly?.({})??!1,P[4]=Y,P[5]=N;else N=P[5];let $=N,U;if(P[6]!==Y)U=Y.isDestructive?.({})??!1,P[6]=Y,P[7]=U;else U=P[7];let S=U,M;if(P[8]!==Y)M=Y.isOpenWorld?.({})??!1,P[8]=Y,P[9]=M;else M=P[9];let b=M,K,V;if(P[10]!==Y)K=()=>{(async function(){try{let O=await Y.description({},{isNonInteractiveSession:!1,toolPermissionContext:{mode:"default",additionalWorkingDirectories:new Map,alwaysAllowRules:{},alwaysDenyRules:{},alwaysAskRules:{},isBypassPermissionsModeAvailable:!1},tools:[]});H(O)}catch{H("Failed to load description")}})()},V=[Y],P[10]=Y,P[11]=K,P[12]=V;else K=P[11],V=P[12];v0.default.useEffect(K,V);let D;if(P[13]!==$)D=$&&J(L,{color:"success",children:" [read-only]"}),P[13]=$,P[14]=D;else D=P[14];let R;if(P[15]!==S)R=S&&J(L,{color:"error",children:" [destructive]"}),P[15]=S,P[16]=R;else R=P[16];let g;if(P[17]!==b)g=b&&J(L,{dimColor:!0,children:" [open-world]"}),P[17]=b,P[18]=g;else g=P[18];let c;if(P[19]!==B||P[20]!==D||P[21]!==R||P[22]!==g)c=Q(n,{children:[B,D,R,g]}),P[19]=B,P[20]=D,P[21]=R,P[22]=g,P[23]=c;else c=P[23];let j=c,T;if(P[24]===Symbol.for("react.memo_cache_sentinel"))T=J(L,{bold:!0,children:"Tool name: "}),P[24]=T;else T=P[24];let A;if(P[25]!==k)A=Q(X,{children:[T,J(L,{dimColor:!0,children:k})]}),P[25]=k,P[26]=A;else A=P[26];let y;if(P[27]===Symbol.for("react.memo_cache_sentinel"))y=J(L,{bold:!0,children:"Full name: "}),P[27]=y;else y=P[27];let i;if(P[28]!==Y.name)i=Q(X,{children:[y,J(L,{dimColor:!0,children:Y.name})]}),P[28]=Y.name,P[29]=i;else i=P[29];let u;if(P[30]!==f)u=f&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Description:"}),J(L,{wrap:"wrap",children:f})]}),P[30]=f,P[31]=u;else u=P[31];let l;if(P[32]!==Y.inputJSONSchema)l=Y.inputJSONSchema&&Y.inputJSONSchema.properties&&Object.keys(Y.inputJSONSchema.properties).length>0&&Q(X,{flexDirection:"column",marginTop:1,children:[J(L,{bold:!0,children:"Parameters:"}),J(X,{marginLeft:2,flexDirection:"column",children:Object.entries(Y.inputJSONSchema.properties).map((s)=>{let[x,O]=s,Q0=Y.inputJSONSchema?.required?.includes(x);return Q(L,{children:["• ",x,Q0&&J(L,{dimColor:!0,children:" (required)"}),":"," ",J(L,{dimColor:!0,children:typeof O==="object"&&O&&"type"in O?String(O.type):"unknown"}),typeof O==="object"&&O&&"description"in O&&Q(L,{dimColor:!0,children:[" - ",String(O.description)]})]},x)})})]}),P[32]=Y.inputJSONSchema,P[33]=l;else l=P[33];let v;if(P[34]!==A||P[35]!==i||P[36]!==u||P[37]!==l)v=Q(X,{flexDirection:"column",children:[A,i,u,l]}),P[34]=A,P[35]=i,P[36]=u,P[37]=l,P[38]=v;else v=P[38];let o;if(P[39]!==Z||P[40]!==z.name||P[41]!==v||P[42]!==j)o=J(O0,{title:j,subtitle:z.name,onCancel:Z,inputGuide:iP,children:v}),P[39]=Z,P[40]=z.name,P[41]=v,P[42]=j,P[43]=o;else o=P[43];return o}function iP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"go back"})}var FP,v0;var uP=P0(()=>{q0();KP();w0();EP();a();FP=e(I0(),1),v0=e($0(),1)});function VJ(G){let P=HP.c(21),{server:Y,onSelectTool:z,onBack:Z}=G,f=J0(xP),H;P:{if(Y.client.type!=="connected"){let V;if(P[0]===Symbol.for("react.memo_cache_sentinel"))V=[],P[0]=V;else V=P[0];H=V;break P}let K;if(P[1]!==f||P[2]!==Y.name)K=fP(f,Y.name),P[1]=f,P[2]=Y.name,P[3]=K;else K=P[3];H=K}let W=H,k;if(P[4]!==Y.name||P[5]!==W){let K;if(P[7]!==Y.name)K=(V,D)=>{let R=y0(V.name,Y.name),g=V.userFacingName?V.userFacingName({}):R,c=B0(g),j=V.isReadOnly?.({})??!1,T=V.isDestructive?.({})??!1,A=V.isOpenWorld?.({})??!1,y=[];if(j)y.push("read-only");if(T)y.push("destructive");if(A)y.push("open-world");return{label:c,value:D.toString(),description:y.length>0?y.join(", "):void 0,descriptionColor:T?"error":j?"success":void 0}},P[7]=Y.name,P[8]=K;else K=P[8];k=W.map(K),P[4]=Y.name,P[5]=W,P[6]=k}else k=P[6];let B=k,N=`Tools for ${Y.name}`,$=W.length,U;if(P[9]!==W.length)U=zP(W.length,"tool"),P[9]=W.length,P[10]=U;else U=P[10];let S=`${$} ${U}`,M;if(P[11]!==Z||P[12]!==z||P[13]!==W||P[14]!==B)M=W.length===0?J(L,{dimColor:!0,children:"No tools available"}):J(L0,{options:B,onChange:(K)=>{let V=parseInt(K),D=W[V];if(D)z(D,V)},onCancel:Z}),P[11]=Z,P[12]=z,P[13]=W,P[14]=B,P[15]=M;else M=P[15];let b;if(P[16]!==Z||P[17]!==N||P[18]!==S||P[19]!==M)b=J(O0,{title:N,subtitle:S,onCancel:Z,inputGuide:vP,children:M}),P[16]=Z,P[17]=N,P[18]=S,P[19]=M,P[20]=b;else b=P[20];return b}function vP(G){return G.pending?Q(L,{children:["Press ",G.keyName," again to exit"]}):Q(r,{children:[J(h,{shortcut:"↑↓",action:"navigate"}),J(h,{shortcut:"Enter",action:"select"}),J(p,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"back"})]})}function xP(G){return G.mcp.tools}var HP;var aP=P0(()=>{q0();KP();u0();j0();p0();w0();i0();W0();EP();c0();a();HP=e(I0(),1)});
|
|
2
|
+
export{bG as Pe,$P as Qe,uG as Re,jP as Se,tG as Te,uP as Ue,VJ as Ve,aP as We};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{T3 as D,t3 as q}from"./cli-0.5.10-xyscak5q.mjs";import{Mea as m,Nea as z}from"./cli-0.5.10-jd7ff66n.mjs";import{Lna as x}from"./cli-0.5.10-1sd567wn.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 qe,F as re,K as se,M as te,G as ue};
|