@claudiolabs/claudin 0.6.4 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-0.6.6-bdcafcej.mjs +1 -0
- package/dist/chunks/App-0.6.6-k5gj5n4h.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.6.6-7fdtwksv.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.6.6-2j0e7ev9.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.6.6-6yx84pzc.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.6.6-vjc7apke.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.6-td62cgn4.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.6.6-5aqhvkcg.mjs +1 -0
- package/dist/chunks/DiffDialog-0.6.6-d2jxy48y.mjs +11 -0
- package/dist/chunks/Doctor-0.6.6-me4wn4j5.mjs +1 -0
- package/dist/chunks/Grove-0.6.6-xfwy6rbw.mjs +1 -0
- package/dist/chunks/ITermBackend-0.6.6-qthf2vr3.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.6.6-mp5b6a5j.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.6.6-awc54gyk.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.6.6-4qg3bf91.mjs +1 -0
- package/dist/chunks/Onboarding-0.6.6-fewq1c0b.mjs +1 -0
- package/dist/chunks/ProviderManager-0.6.6-cx15mb4s.mjs +1 -0
- package/dist/chunks/REPL-0.6.6-ev64pese.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.6.6-gkxw58n4.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.6.6-45f8nb47.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.6.6-5314g8tw.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.6-w4svp0jn.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.6.6-5vjtrnya.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.6.6-rphhdvq8.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.6.6-s2f271df.mjs +1 -0
- package/dist/chunks/TrustDialog-0.6.6-s74swp6v.mjs +1 -0
- package/dist/chunks/activeProvider-0.6.6-r3wwyv1a.mjs +1 -0
- package/dist/chunks/add-dir-0.6.6-nm6s9jm3.mjs +1 -0
- package/dist/chunks/agents-0.6.6-yfx529qm.mjs +3 -0
- package/dist/chunks/agents-0.6.6-z45zpb7a.mjs +110 -0
- package/dist/chunks/api-0.6.6-rrs0y38h.mjs +1 -0
- package/dist/chunks/asciicast-0.6.6-qrz006k9.mjs +1 -0
- package/dist/chunks/assistant-0.6.6-tfmwrg23.mjs +1 -0
- package/dist/chunks/auth-0.6.6-61djjn63.mjs +1 -0
- package/dist/chunks/auth-0.6.6-8pgs8nej.mjs +1 -0
- package/dist/chunks/autoMode-0.6.6-d0vbqpdq.mjs +48 -0
- package/dist/chunks/autoUpdater-0.6.6-xacp5fck.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.6.6-dnhts5fj.mjs +1 -0
- package/dist/chunks/branch-0.6.6-84wkac2e.mjs +4 -0
- package/dist/chunks/bridge-0.6.6-p3dy64f9.mjs +2 -0
- package/dist/chunks/bridgeConfig-0.6.6-fvzjs1pa.mjs +1 -0
- package/dist/chunks/bridgeEnabled-0.6.6-ge15dg1p.mjs +1 -0
- package/dist/chunks/bridgeMain-0.6.6-w0xmef6b.mjs +88 -0
- package/dist/chunks/bridgePointer-0.6.6-cba0ahq2.mjs +1 -0
- package/dist/chunks/btw-0.6.6-46grbbjr.mjs +1 -0
- package/dist/chunks/buddy-0.6.6-90qdgfw4.mjs +3 -0
- package/dist/chunks/cacache-0.6.6-v19w3dxf.mjs +1 -0
- package/dist/chunks/cache-probe-0.6.6-k4ev06pn.mjs +21 -0
- package/dist/chunks/cacheStats-0.6.6-dehpnmz9.mjs +4 -0
- package/dist/chunks/caches-0.6.6-4a0mnm1h.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.6.6-fhspw8yv.mjs +1 -0
- package/dist/chunks/claudemd-0.6.6-s2nktt1h.mjs +1 -0
- package/dist/chunks/clear-0.6.6-e06ssw4n.mjs +1 -0
- package/dist/chunks/clearTerminal-0.6.6-062bve0j.mjs +1 -0
- package/dist/chunks/cli-0.6.6-0ak8r49x.mjs +2 -0
- package/dist/chunks/cli-0.6.6-0j61q3w5.mjs +2 -0
- package/dist/chunks/cli-0.6.6-0pptmkkg.mjs +4 -0
- package/dist/chunks/cli-0.6.6-0w254y38.mjs +2 -0
- package/dist/chunks/cli-0.6.6-10re6ept.mjs +2 -0
- package/dist/chunks/cli-0.6.6-141tbvn2.mjs +2 -0
- package/dist/chunks/cli-0.6.6-1a0fnhh0.mjs +2 -0
- package/dist/chunks/cli-0.6.6-1dy4fd01.mjs +2 -0
- package/dist/chunks/cli-0.6.6-1jt6s6c8.mjs +2 -0
- package/dist/chunks/cli-0.6.6-23snct9d.mjs +5348 -0
- package/dist/chunks/cli-0.6.6-27tkk39p.mjs +2 -0
- package/dist/chunks/cli-0.6.6-2dtp6rc2.mjs +2 -0
- package/dist/chunks/cli-0.6.6-2fasp96a.mjs +2 -0
- package/dist/chunks/cli-0.6.6-2gjay42h.mjs +2 -0
- package/dist/chunks/cli-0.6.6-2mf6j1pf.mjs +4 -0
- package/dist/chunks/cli-0.6.6-36kc5vh1.mjs +3 -0
- package/dist/chunks/cli-0.6.6-37wcg59v.mjs +2 -0
- package/dist/chunks/cli-0.6.6-3agn70fr.mjs +50 -0
- package/dist/chunks/cli-0.6.6-3qbz76xq.mjs +2 -0
- package/dist/chunks/cli-0.6.6-3s3k6nsb.mjs +2 -0
- package/dist/chunks/cli-0.6.6-3t45jvj0.mjs +2 -0
- package/dist/chunks/cli-0.6.6-3t9gkjhn.mjs +8 -0
- package/dist/chunks/cli-0.6.6-3ykkcpjf.mjs +2 -0
- package/dist/chunks/cli-0.6.6-40n0q9g3.mjs +2 -0
- package/dist/chunks/cli-0.6.6-44bk8ev1.mjs +2 -0
- package/dist/chunks/cli-0.6.6-4d55s633.mjs +3 -0
- package/dist/chunks/cli-0.6.6-4jrf033h.mjs +12 -0
- package/dist/chunks/cli-0.6.6-4m7r4esm.mjs +4 -0
- package/dist/chunks/cli-0.6.6-4nxq7s1k.mjs +2 -0
- package/dist/chunks/cli-0.6.6-4qj9brbk.mjs +2 -0
- package/dist/chunks/cli-0.6.6-4qrnzmjb.mjs +2 -0
- package/dist/chunks/cli-0.6.6-4r50eqxg.mjs +2 -0
- package/dist/chunks/cli-0.6.6-4tp2yb2x.mjs +2 -0
- package/dist/chunks/cli-0.6.6-4tzkbyes.mjs +2 -0
- package/dist/chunks/cli-0.6.6-504vvx3q.mjs +2 -0
- package/dist/chunks/cli-0.6.6-5eww20j0.mjs +2 -0
- package/dist/chunks/cli-0.6.6-5p4qy3we.mjs +2 -0
- package/dist/chunks/cli-0.6.6-61wnn1as.mjs +3 -0
- package/dist/chunks/cli-0.6.6-6gzy2tvk.mjs +12 -0
- package/dist/chunks/cli-0.6.6-6p78renb.mjs +2 -0
- package/dist/chunks/cli-0.6.6-6zs5dyhh.mjs +20 -0
- package/dist/chunks/cli-0.6.6-731hhd3s.mjs +2 -0
- package/dist/chunks/cli-0.6.6-73eg8qn0.mjs +2 -0
- package/dist/chunks/cli-0.6.6-76rkjh7v.mjs +2 -0
- package/dist/chunks/cli-0.6.6-7bzhgmhp.mjs +2 -0
- package/dist/chunks/cli-0.6.6-7n7fwzth.mjs +2 -0
- package/dist/chunks/cli-0.6.6-7pfzbq40.mjs +2 -0
- package/dist/chunks/cli-0.6.6-7r4esgkf.mjs +2 -0
- package/dist/chunks/cli-0.6.6-7r817n5d.mjs +2 -0
- package/dist/chunks/cli-0.6.6-7s8bhv18.mjs +2 -0
- package/dist/chunks/cli-0.6.6-7tnsnb0c.mjs +2 -0
- package/dist/chunks/cli-0.6.6-816nja7p.mjs +2 -0
- package/dist/chunks/cli-0.6.6-85mqgh7w.mjs +133 -0
- package/dist/chunks/cli-0.6.6-8bvd4smw.mjs +3 -0
- package/dist/chunks/cli-0.6.6-8e7c224v.mjs +2 -0
- package/dist/chunks/cli-0.6.6-8gcxhg7t.mjs +3 -0
- package/dist/chunks/cli-0.6.6-8gmesggf.mjs +2 -0
- package/dist/chunks/cli-0.6.6-8hzhy95p.mjs +2 -0
- package/dist/chunks/cli-0.6.6-8s6h2xee.mjs +3 -0
- package/dist/chunks/cli-0.6.6-8vnkmjet.mjs +2 -0
- package/dist/chunks/cli-0.6.6-8wwb7c4z.mjs +10 -0
- package/dist/chunks/cli-0.6.6-8yvh28tb.mjs +16 -0
- package/dist/chunks/cli-0.6.6-92dvpnqv.mjs +3 -0
- package/dist/chunks/cli-0.6.6-962my51a.mjs +2 -0
- package/dist/chunks/cli-0.6.6-99e532z3.mjs +2 -0
- package/dist/chunks/cli-0.6.6-9r04g0xa.mjs +2 -0
- package/dist/chunks/cli-0.6.6-9rjdy05g.mjs +2 -0
- package/dist/chunks/cli-0.6.6-9tjtzwyt.mjs +2 -0
- package/dist/chunks/cli-0.6.6-a2e4eek5.mjs +2 -0
- package/dist/chunks/cli-0.6.6-a837m6n5.mjs +2 -0
- package/dist/chunks/cli-0.6.6-aep3cnz5.mjs +2 -0
- package/dist/chunks/cli-0.6.6-akjyt0hr.mjs +2 -0
- package/dist/chunks/cli-0.6.6-akqfmyeb.mjs +2 -0
- package/dist/chunks/cli-0.6.6-am3sz82d.mjs +58 -0
- package/dist/chunks/cli-0.6.6-ap1eg2xa.mjs +2 -0
- package/dist/chunks/cli-0.6.6-apq4h0nf.mjs +2 -0
- package/dist/chunks/cli-0.6.6-aq30fm8p.mjs +1 -0
- package/dist/chunks/cli-0.6.6-ar43nqjq.mjs +3 -0
- package/dist/chunks/cli-0.6.6-arvcw19g.mjs +2 -0
- package/dist/chunks/cli-0.6.6-as18fmg3.mjs +2 -0
- package/dist/chunks/cli-0.6.6-at7yytqj.mjs +2 -0
- package/dist/chunks/cli-0.6.6-axvjexmr.mjs +15 -0
- package/dist/chunks/cli-0.6.6-b1wqaqv9.mjs +4 -0
- package/dist/chunks/cli-0.6.6-bbv794xs.mjs +4 -0
- package/dist/chunks/cli-0.6.6-bn18ty4n.mjs +18 -0
- package/dist/chunks/cli-0.6.6-by1ngr5q.mjs +5 -0
- package/dist/chunks/cli-0.6.6-c267ckfv.mjs +2 -0
- package/dist/chunks/cli-0.6.6-c2xmgnfp.mjs +7 -0
- package/dist/chunks/cli-0.6.6-ct7zap14.mjs +2 -0
- package/dist/chunks/cli-0.6.6-czhez59x.mjs +2 -0
- package/dist/chunks/cli-0.6.6-d0qrt51j.mjs +2 -0
- package/dist/chunks/cli-0.6.6-d5dexg4d.mjs +2 -0
- package/dist/chunks/cli-0.6.6-dmd73xa3.mjs +2 -0
- package/dist/chunks/cli-0.6.6-dmtpt4r7.mjs +17 -0
- package/dist/chunks/cli-0.6.6-dnx45tc3.mjs +2 -0
- package/dist/chunks/cli-0.6.6-drg8zfkg.mjs +2 -0
- package/dist/chunks/cli-0.6.6-e4pcw0z3.mjs +3 -0
- package/dist/chunks/cli-0.6.6-eeaxd1dd.mjs +2 -0
- package/dist/chunks/cli-0.6.6-efkct3rx.mjs +2 -0
- package/dist/chunks/cli-0.6.6-ek8y79wd.mjs +2 -0
- package/dist/chunks/cli-0.6.6-en2sexw5.mjs +59 -0
- package/dist/chunks/cli-0.6.6-enc586ry.mjs +4 -0
- package/dist/chunks/cli-0.6.6-esnwdj9p.mjs +2 -0
- package/dist/chunks/cli-0.6.6-ezhp9zxv.mjs +2 -0
- package/dist/chunks/cli-0.6.6-f6wc5yc6.mjs +17 -0
- package/dist/chunks/cli-0.6.6-fep3xed7.mjs +2 -0
- package/dist/chunks/cli-0.6.6-fj9rpekf.mjs +2 -0
- package/dist/chunks/cli-0.6.6-g6ja9jcs.mjs +4 -0
- package/dist/chunks/cli-0.6.6-g9mdc3pd.mjs +2 -0
- package/dist/chunks/cli-0.6.6-gk8s7mch.mjs +67 -0
- package/dist/chunks/cli-0.6.6-gte1km05.mjs +2 -0
- package/dist/chunks/cli-0.6.6-h02v66zq.mjs +2 -0
- package/dist/chunks/cli-0.6.6-h12zw82h.mjs +3 -0
- package/dist/chunks/cli-0.6.6-h2aqs05m.mjs +2 -0
- package/dist/chunks/cli-0.6.6-h8d7s4qz.mjs +21 -0
- package/dist/chunks/cli-0.6.6-h8ew0rcw.mjs +24 -0
- package/dist/chunks/cli-0.6.6-hcajyfhg.mjs +6 -0
- package/dist/chunks/cli-0.6.6-hejk0ae6.mjs +5 -0
- package/dist/chunks/cli-0.6.6-hetrxwwb.mjs +2 -0
- package/dist/chunks/cli-0.6.6-heymhe69.mjs +24 -0
- package/dist/chunks/cli-0.6.6-hp08wrzx.mjs +15 -0
- package/dist/chunks/cli-0.6.6-hsgfy54f.mjs +2 -0
- package/dist/chunks/cli-0.6.6-hyqpcaay.mjs +2 -0
- package/dist/chunks/cli-0.6.6-j4j7a9y4.mjs +2 -0
- package/dist/chunks/cli-0.6.6-je6w2y3h.mjs +2 -0
- package/dist/chunks/cli-0.6.6-jh33fwqe.mjs +18 -0
- package/dist/chunks/cli-0.6.6-jjj2qt22.mjs +2 -0
- package/dist/chunks/cli-0.6.6-jqxfz350.mjs +2 -0
- package/dist/chunks/cli-0.6.6-jrpy2bkk.mjs +2 -0
- package/dist/chunks/cli-0.6.6-kca8bnv6.mjs +2 -0
- package/dist/chunks/cli-0.6.6-khr65dty.mjs +2 -0
- package/dist/chunks/cli-0.6.6-ktwh4wvp.mjs +6 -0
- package/dist/chunks/cli-0.6.6-mb1z3n48.mjs +2 -0
- package/dist/chunks/cli-0.6.6-mc9x1jry.mjs +28 -0
- package/dist/chunks/cli-0.6.6-mezb9tga.mjs +2 -0
- package/dist/chunks/cli-0.6.6-mfee7shn.mjs +2 -0
- package/dist/chunks/cli-0.6.6-mk746t95.mjs +2 -0
- package/dist/chunks/cli-0.6.6-mmgfr8v9.mjs +2 -0
- package/dist/chunks/cli-0.6.6-mrkkgjdh.mjs +2 -0
- package/dist/chunks/cli-0.6.6-mzjbzje2.mjs +2 -0
- package/dist/chunks/cli-0.6.6-nbrpn6xq.mjs +2 -0
- package/dist/chunks/cli-0.6.6-ncqg4xxp.mjs +2 -0
- package/dist/chunks/cli-0.6.6-ntyx46a7.mjs +2 -0
- package/dist/chunks/cli-0.6.6-nw0nh4e0.mjs +2 -0
- package/dist/chunks/cli-0.6.6-nymfz9tw.mjs +2 -0
- package/dist/chunks/cli-0.6.6-p3xdjh86.mjs +12 -0
- package/dist/chunks/cli-0.6.6-phfaae6k.mjs +2 -0
- package/dist/chunks/cli-0.6.6-q1j20ysc.mjs +193 -0
- package/dist/chunks/cli-0.6.6-q6pybpxh.mjs +2 -0
- package/dist/chunks/cli-0.6.6-qvmtyvz3.mjs +3 -0
- package/dist/chunks/cli-0.6.6-r5fnevcm.mjs +2 -0
- package/dist/chunks/cli-0.6.6-r6ph5dqe.mjs +2 -0
- package/dist/chunks/cli-0.6.6-rhcte81y.mjs +15 -0
- package/dist/chunks/cli-0.6.6-rqfeyzcp.mjs +2 -0
- package/dist/chunks/cli-0.6.6-rxhq7h6p.mjs +2 -0
- package/dist/chunks/cli-0.6.6-s3y8t7we.mjs +2 -0
- package/dist/chunks/cli-0.6.6-sc6nf44p.mjs +2 -0
- package/dist/chunks/cli-0.6.6-sh4pyhkw.mjs +2 -0
- package/dist/chunks/cli-0.6.6-sqvm4f1y.mjs +2 -0
- package/dist/chunks/cli-0.6.6-ssjjspdc.mjs +2 -0
- package/dist/chunks/cli-0.6.6-sxde5jj7.mjs +2 -0
- package/dist/chunks/cli-0.6.6-t3vvf5fy.mjs +2 -0
- package/dist/chunks/cli-0.6.6-t7p08nsw.mjs +2 -0
- package/dist/chunks/cli-0.6.6-tam4amwx.mjs +2 -0
- package/dist/chunks/cli-0.6.6-tg1e3sdx.mjs +2 -0
- package/dist/chunks/cli-0.6.6-tk00k0e1.mjs +34 -0
- package/dist/chunks/cli-0.6.6-v17a8yzy.mjs +2 -0
- package/dist/chunks/cli-0.6.6-vesqvt0y.mjs +2 -0
- package/dist/chunks/cli-0.6.6-vjj3g5dm.mjs +2 -0
- package/dist/chunks/cli-0.6.6-vt1181th.mjs +39 -0
- package/dist/chunks/cli-0.6.6-vvz9vw7f.mjs +5 -0
- package/dist/chunks/cli-0.6.6-vy3wa7f9.mjs +2 -0
- package/dist/chunks/cli-0.6.6-w687eya6.mjs +2 -0
- package/dist/chunks/cli-0.6.6-w6tqtrzg.mjs +4 -0
- package/dist/chunks/cli-0.6.6-wctj7gmc.mjs +6 -0
- package/dist/chunks/cli-0.6.6-ww6zy0p0.mjs +2 -0
- package/dist/chunks/cli-0.6.6-wxst92je.mjs +4 -0
- package/dist/chunks/cli-0.6.6-x1zrpt5g.mjs +45 -0
- package/dist/chunks/cli-0.6.6-x3tz7qvq.mjs +2 -0
- package/dist/chunks/cli-0.6.6-x88t5n54.mjs +133 -0
- package/dist/chunks/cli-0.6.6-xe6egv3r.mjs +25 -0
- package/dist/chunks/cli-0.6.6-xmd2zss3.mjs +2 -0
- package/dist/chunks/cli-0.6.6-xna6taqd.mjs +9 -0
- package/dist/chunks/cli-0.6.6-xnazk7t9.mjs +2 -0
- package/dist/chunks/cli-0.6.6-xq4cysdk.mjs +2 -0
- package/dist/chunks/cli-0.6.6-xt0p4ems.mjs +4 -0
- package/dist/chunks/cli-0.6.6-xtj65dsh.mjs +2 -0
- package/dist/chunks/cli-0.6.6-y305shhz.mjs +2 -0
- package/dist/chunks/cli-0.6.6-yakt9hjc.mjs +3 -0
- package/dist/chunks/cli-0.6.6-yj2tafrk.mjs +26 -0
- package/dist/chunks/cli-0.6.6-ymge82rt.mjs +2 -0
- package/dist/chunks/cli-0.6.6-ythetarc.mjs +3 -0
- package/dist/chunks/cli-0.6.6-ytskhcd3.mjs +42 -0
- package/dist/chunks/cli-0.6.6-ytws2j1w.mjs +2 -0
- package/dist/chunks/cli-0.6.6-yve3e654.mjs +2 -0
- package/dist/chunks/cli-0.6.6-yxd04fex.mjs +2 -0
- package/dist/chunks/cli-0.6.6-zb8ddz0k.mjs +2 -0
- package/dist/chunks/cli-0.6.6-ze6rx70y.mjs +2 -0
- package/dist/chunks/cli-0.6.6-zhky93y3.mjs +2 -0
- package/dist/chunks/cli-0.6.6-zk5p5pm9.mjs +3 -0
- package/dist/chunks/cli-0.6.6-zwk7a82m.mjs +2 -0
- package/dist/chunks/cli-0.6.6-zx0cgvxq.mjs +2 -0
- package/dist/chunks/client-0.6.6-epndq4qc.mjs +1 -0
- package/dist/chunks/color-0.6.6-8rzmvtwk.mjs +1 -0
- package/dist/chunks/compact-0.6.6-hx8hw1kn.mjs +3 -0
- package/dist/chunks/config-0.6.6-0j07cdc5.mjs +1 -0
- package/dist/chunks/config-0.6.6-2fm368ym.mjs +1 -0
- package/dist/chunks/constants-0.6.6-0yxw2f7y.mjs +1 -0
- package/dist/chunks/context-0.6.6-1ask7yck.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.6.6-kk5a8p4w.mjs +1 -0
- package/dist/chunks/conversation-0.6.6-fetjq503.mjs +1 -0
- package/dist/chunks/copilotHeaders-0.6.6-fwqs850f.mjs +1 -0
- package/dist/chunks/copy-0.6.6-8j7h9rrr.mjs +9 -0
- package/dist/chunks/cost-0.6.6-1b4svxh2.mjs +1 -0
- package/dist/chunks/createSSHSession-0.6.6-nj5vfp9k.mjs +1 -0
- package/dist/chunks/createSession-0.6.6-mphh6gbj.mjs +1 -0
- package/dist/chunks/debug-0.6.6-ghaq68w2.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.6.6-t8g2hnht.mjs +1367 -0
- package/dist/chunks/desktop-0.6.6-a4mc0bda.mjs +1 -0
- package/dist/chunks/detectRepository-0.6.6-ncw5b2aj.mjs +1 -0
- package/dist/chunks/detection-0.6.6-214xzj0w.mjs +1 -0
- package/dist/chunks/diff-0.6.6-7nwejtje.mjs +1 -0
- package/dist/chunks/doctor-0.6.6-2wetaw67.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.6.6-wvp7h2xr.mjs +1 -0
- package/dist/chunks/earlyInput-0.6.6-9jbsyrke.mjs +1 -0
- package/dist/chunks/effort-0.6.6-ncb29f3c.mjs +10 -0
- package/dist/chunks/envLessBridgeConfig-0.6.6-6pv90cvs.mjs +1 -0
- package/dist/chunks/envUtils-0.6.6-mwnbc88a.mjs +1 -0
- package/dist/chunks/environmentSelection-0.6.6-gac9h0m9.mjs +1 -0
- package/dist/chunks/environments-0.6.6-dyqm7563.mjs +1 -0
- package/dist/chunks/errors-0.6.6-q707mqqm.mjs +1 -0
- package/dist/chunks/exampleCommands-0.6.6-wd6w9zh5.mjs +1 -0
- package/dist/chunks/exit-0.6.6-8vj2yn2g.mjs +1 -0
- package/dist/chunks/export-0.6.6-ze9h049t.mjs +2 -0
- package/dist/chunks/extra-usage-0.6.6-mp9th9v6.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.6.6-rmjhm3ng.mjs +1 -0
- package/dist/chunks/fast-0.6.6-764x92hh.mjs +1 -0
- package/dist/chunks/feedback-0.6.6-5x42sy6a.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.6.6-x2gcw7ns.mjs +1 -0
- package/dist/chunks/git-0.6.6-rw5vzxwm.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.6.6-f2n56xmf.mjs +1 -0
- package/dist/chunks/goal-0.6.6-9rtva22g.mjs +4 -0
- package/dist/chunks/grove-0.6.6-97994twv.mjs +1 -0
- package/dist/chunks/growthbook-0.6.6-8reejkag.mjs +1 -0
- package/dist/chunks/headless-0.6.6-qgkvkz56.mjs +2 -0
- package/dist/chunks/heapdump-0.6.6-s68hkj7v.mjs +6 -0
- package/dist/chunks/help-0.6.6-a74x2714.mjs +1 -0
- package/dist/chunks/hookChains-0.6.6-wrp608b1.mjs +3 -0
- package/dist/chunks/hooks-0.6.6-skad5kp2.mjs +79 -0
- package/dist/chunks/hooks-0.6.6-zy3p5ymd.mjs +1 -0
- package/dist/chunks/ide-0.6.6-xpbxyf5x.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.6.6-8ggh2rjn.mjs +1 -0
- package/dist/chunks/inboundAttachments-0.6.6-xfbtg9vz.mjs +1 -0
- package/dist/chunks/index-0.6.6-0g09kzhh.mjs +1 -0
- package/dist/chunks/index-0.6.6-1p1fy7cz.mjs +5 -0
- package/dist/chunks/index-0.6.6-27ems47g.mjs +9 -0
- package/dist/chunks/index-0.6.6-4v2spjs5.mjs +1 -0
- package/dist/chunks/index-0.6.6-5me3rm4s.mjs +9 -0
- package/dist/chunks/index-0.6.6-70tj26f9.mjs +1 -0
- package/dist/chunks/index-0.6.6-8zcthv4z.mjs +1 -0
- package/dist/chunks/index-0.6.6-aef14n9j.mjs +2 -0
- package/dist/chunks/index-0.6.6-apxc13te.mjs +1 -0
- package/dist/chunks/index-0.6.6-dq42pv3d.mjs +1 -0
- package/dist/chunks/index-0.6.6-ebp0mayr.mjs +1 -0
- package/dist/chunks/index-0.6.6-ejmkdrzm.mjs +1 -0
- package/dist/chunks/index-0.6.6-kqbyedrd.mjs +1 -0
- package/dist/chunks/index-0.6.6-m0dywyy2.mjs +30 -0
- package/dist/chunks/index-0.6.6-pjnpey6d.mjs +1 -0
- package/dist/chunks/index-0.6.6-pykm48ja.mjs +1 -0
- package/dist/chunks/index-0.6.6-pzvhyk3s.mjs +1 -0
- package/dist/chunks/index-0.6.6-rxae4gv4.mjs +1 -0
- package/dist/chunks/index-0.6.6-s4wsdcz8.mjs +2 -0
- package/dist/chunks/index-0.6.6-spnbnmsj.mjs +1 -0
- package/dist/chunks/index-0.6.6-sqygenvb.mjs +1 -0
- package/dist/chunks/index-0.6.6-t43srges.mjs +1 -0
- package/dist/chunks/index-0.6.6-zgh9z1rm.mjs +1 -0
- package/dist/chunks/init-0.6.6-6yxjq5pc.mjs +1 -0
- package/dist/chunks/initReplBridge-0.6.6-eeynkqk3.mjs +1 -0
- package/dist/chunks/ink-0.6.6-keyn52qn.mjs +1 -0
- package/dist/chunks/insights-0.6.6-2wjtvjnd.mjs +870 -0
- package/dist/chunks/install-0.6.6-vdpf15fp.mjs +1 -0
- package/dist/chunks/install-github-app-0.6.6-8zk1xfpw.mjs +149 -0
- package/dist/chunks/install-slack-app-0.6.6-j2a9c586.mjs +1 -0
- package/dist/chunks/instrumentation-0.6.6-35f0r0ts.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.6.6-18x9yezm.mjs +1 -0
- package/dist/chunks/keybindings-0.6.6-9r4m4jvq.mjs +2 -0
- package/dist/chunks/knowledge-0.6.6-1rjjrsqn.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.6.6-32rrz0z9.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.6.6-tjygbn96.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.6-8xsdzy59.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.6-fr4gdkcy.mjs +1 -0
- package/dist/chunks/log-0.6.6-6nzgdpd0.mjs +1 -0
- package/dist/chunks/main-0.6.6-aq9jq72v.mjs +1 -0
- package/dist/chunks/managedEnv-0.6.6-6bth8e56.mjs +1 -0
- package/dist/chunks/mcp-0.6.6-4xb16x7y.mjs +1 -0
- package/dist/chunks/mcp-0.6.6-chps3y13.mjs +4 -0
- package/dist/chunks/mcp-0.6.6-fxy3qcdv.mjs +17 -0
- package/dist/chunks/mcpb-0.6.6-bhpebgzm.mjs +1 -0
- package/dist/chunks/memory-0.6.6-89t2e497.mjs +3 -0
- package/dist/chunks/model-0.6.6-8bpwy4gg.mjs +1 -0
- package/dist/chunks/model-0.6.6-m3x9crqt.mjs +2 -0
- package/dist/chunks/node-0.6.6-rm65t01m.mjs +12 -0
- package/dist/chunks/oauth-0.6.6-akp7n7mb.mjs +1 -0
- package/dist/chunks/openaiShim-0.6.6-ft40jfrp.mjs +14 -0
- package/dist/chunks/output-style-0.6.6-bvhtp4tc.mjs +1 -0
- package/dist/chunks/package-FMOR3ELU-0.6.6-0ykwzcyt.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.6.6-jve0dvpn.mjs +1 -0
- package/dist/chunks/parser-0.6.6-xa5qsjfh.mjs +1 -0
- package/dist/chunks/passes-0.6.6-tdv74eqj.mjs +1 -0
- package/dist/chunks/permissions-0.6.6-46df10nj.mjs +3 -0
- package/dist/chunks/permissions-0.6.6-8wcv4q7d.mjs +1 -0
- package/dist/chunks/plan-0.6.6-qw8t4gpk.mjs +1 -0
- package/dist/chunks/plist-0.6.6-5m3etrhq.mjs +1 -0
- package/dist/chunks/plugin-0.6.6-narwef70.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.6.6-v7kxdq6w.mjs +1 -0
- package/dist/chunks/plugins-0.6.6-10y990d0.mjs +9 -0
- package/dist/chunks/preActionHook-0.6.6-0vkxazxv.mjs +2 -0
- package/dist/chunks/print-0.6.6-ym6tndvq.mjs +57 -0
- package/dist/chunks/privacy-settings-0.6.6-05da2gne.mjs +1 -0
- package/dist/chunks/process-0.6.6-da3h3zfe.mjs +1 -0
- package/dist/chunks/processBashCommand-0.6.6-m76r9et2.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.6.6-xxwnh0cf.mjs +9 -0
- package/dist/chunks/prompt-0.6.6-60sg3pmt.mjs +1 -0
- package/dist/chunks/prompt-0.6.6-vfh4fr6f.mjs +1 -0
- package/dist/chunks/prompts-0.6.6-vbfva1a5.mjs +1 -0
- package/dist/chunks/protocolHandler-0.6.6-73vezfvr.mjs +13 -0
- package/dist/chunks/provider-0.6.6-ch5qq6n3.mjs +2 -0
- package/dist/chunks/providerProfiles-0.6.6-jtysbyrm.mjs +1 -0
- package/dist/chunks/providerValidation-0.6.6-5509e4cb.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.6.6-cfm37mqk.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.6.6-7p5mr9t1.mjs +34 -0
- package/dist/chunks/registry-0.6.6-z5cnbznq.mjs +1 -0
- package/dist/chunks/release-notes-0.6.6-90zjvqjx.mjs +5 -0
- package/dist/chunks/reload-plugins-0.6.6-jyxrw2jq.mjs +2 -0
- package/dist/chunks/remote-env-0.6.6-wyekcz2k.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.6.6-favpnrd5.mjs +1 -0
- package/dist/chunks/remoteSession-0.6.6-snjkbaw2.mjs +1 -0
- package/dist/chunks/rename-0.6.6-3wang66e.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.6.6-dmxdjqjy.mjs +1 -0
- package/dist/chunks/replLauncher-0.6.6-bvhzfdx8.mjs +1 -0
- package/dist/chunks/resume-0.6.6-zqn712k4.mjs +2 -0
- package/dist/chunks/rewind-0.6.6-h8kc53mc.mjs +1 -0
- package/dist/chunks/rootOptions-0.6.6-wcam7tjd.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.6.6-qbm1rqdf.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.6.6-m882ckxv.mjs +1 -0
- package/dist/chunks/session-0.6.6-ezqqmxrd.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.6.6-0q34cmbe.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.6.6-3tek8yje.mjs +1 -0
- package/dist/chunks/sessionStorage-0.6.6-pgfjqhdj.mjs +1 -0
- package/dist/chunks/settings-0.6.6-ms6t0ray.mjs +1 -0
- package/dist/chunks/setup-0.6.6-n2vjxxmx.mjs +5 -0
- package/dist/chunks/sinks-0.6.6-mq00wrfa.mjs +1 -0
- package/dist/chunks/skills-0.6.6-vgr1dpf7.mjs +1 -0
- package/dist/chunks/startupProfiler-0.6.6-5nbjv2gp.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.6.6-z6adga96.mjs +1 -0
- package/dist/chunks/state-0.6.6-w2grqwqw.mjs +1 -0
- package/dist/chunks/stats-0.6.6-z11zcde6.mjs +6 -0
- package/dist/chunks/status-0.6.6-vbcqezgp.mjs +1 -0
- package/dist/chunks/stickers-0.6.6-c1pczjgd.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.6.6-95tf6phx.mjs +1 -0
- package/dist/chunks/tasks-0.6.6-pm1cbtt0.mjs +1 -0
- package/dist/chunks/teamHelpers-0.6.6-ec57k1fn.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.6.6-964bq8fq.mjs +1 -0
- package/dist/chunks/teleport-0.6.6-ksymynm4.mjs +1 -0
- package/dist/chunks/terminalSetup-0.6.6-r5q2y7w0.mjs +1 -0
- package/dist/chunks/theme-0.6.6-y46frztn.mjs +1 -0
- package/dist/chunks/thinkback-0.6.6-3j0w6yjk.mjs +1 -0
- package/dist/chunks/thinkback-play-0.6.6-rrcqmyxk.mjs +1 -0
- package/dist/chunks/toolPool-0.6.6-2jmzd43n.mjs +1 -0
- package/dist/chunks/toolSearch-0.6.6-2rrd60cx.mjs +1 -0
- package/dist/chunks/tools-0.6.6-13yxm82t.mjs +1 -0
- package/dist/chunks/trustedDevice-0.6.6-yk1yrpb0.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.6.6-nhq9m5br.mjs +69 -0
- package/dist/chunks/types-0.6.6-stnrzm1j.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-0.6.6-7ytrj9jv.mjs +4 -0
- package/dist/chunks/update-0.6.6-5hf3mst5.mjs +86 -0
- package/dist/chunks/upgrade-0.6.6-y2gdvy9z.mjs +1 -0
- package/dist/chunks/upload-0.6.6-mwd7k6ym.mjs +7 -0
- package/dist/chunks/upstreamproxy-0.6.6-2fc9x5pq.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.6.6-gbs8n3ne.mjs +1 -0
- package/dist/chunks/usage-0.6.6-8n0sxpw2.mjs +1 -0
- package/dist/chunks/util-0.6.6-hpjf8dnn.mjs +1 -0
- package/dist/chunks/utils-0.6.6-w937v7sr.mjs +1 -0
- package/dist/chunks/vim-0.6.6-b8g833z7.mjs +1 -0
- package/dist/chunks/watcher-0.6.6-bsqe9pa4.mjs +1 -0
- package/dist/chunks/wiki-0.6.6-2fstcx28.mjs +132 -0
- package/dist/chunks/worktree-0.6.6-yctkpbmx.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.6.6-yv2bvj70.mjs +1 -0
- package/dist/chunks/wrapper-0.6.6-02cwy0nm.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +14 -14
- package/dist/chunks/AgentTool-0.6.4-rbaf1y65.mjs +0 -1
- package/dist/chunks/App-0.6.4-rq289jnp.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.6.4-7d5f28j9.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.6.4-phb69d3e.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.6.4-9bf4j0dx.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.6.4-62rbe590.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.4-5xv95y7k.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.6.4-7ng7n8ac.mjs +0 -1
- package/dist/chunks/DiffDialog-0.6.4-ydwpx8jz.mjs +0 -3
- package/dist/chunks/Doctor-0.6.4-r3nh0zs5.mjs +0 -1
- package/dist/chunks/Grove-0.6.4-8mwvr7ha.mjs +0 -1
- package/dist/chunks/ITermBackend-0.6.4-w345qte9.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.6.4-e1xk1r00.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.6.4-7pz7en7r.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.6.4-xgqr16p1.mjs +0 -1
- package/dist/chunks/Onboarding-0.6.4-2735sbgf.mjs +0 -1
- package/dist/chunks/ProviderManager-0.6.4-q840wtmd.mjs +0 -1
- package/dist/chunks/REPL-0.6.4-k1gbkvvz.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.6.4-mpzvada2.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.6.4-jctmc6zk.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.6.4-gq0hnh6t.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.4-21sqsahr.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.6.4-fjbh45wb.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.6.4-5w2x0jdm.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.6.4-5qd1qqs9.mjs +0 -1
- package/dist/chunks/TrustDialog-0.6.4-rj702s6d.mjs +0 -1
- package/dist/chunks/activeProvider-0.6.4-wdg63cg4.mjs +0 -1
- package/dist/chunks/add-dir-0.6.4-kchsbt43.mjs +0 -1
- package/dist/chunks/agents-0.6.4-99qwf49d.mjs +0 -110
- package/dist/chunks/agents-0.6.4-rdvzbjcr.mjs +0 -3
- package/dist/chunks/api-0.6.4-9emwrek2.mjs +0 -1
- package/dist/chunks/asciicast-0.6.4-v9b43g5d.mjs +0 -1
- package/dist/chunks/assistant-0.6.4-f4m6fp3b.mjs +0 -1
- package/dist/chunks/auth-0.6.4-767mww9n.mjs +0 -1
- package/dist/chunks/auth-0.6.4-sgz2927j.mjs +0 -1
- package/dist/chunks/autoMode-0.6.4-n865xxhg.mjs +0 -48
- package/dist/chunks/autoUpdater-0.6.4-bvb6j5ck.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.6.4-fercqr2y.mjs +0 -1
- package/dist/chunks/branch-0.6.4-0hvhjqr5.mjs +0 -4
- package/dist/chunks/bridgePointer-0.6.4-dgames2b.mjs +0 -1
- package/dist/chunks/btw-0.6.4-fprrp4ch.mjs +0 -1
- package/dist/chunks/buddy-0.6.4-0d1rrwbv.mjs +0 -3
- package/dist/chunks/cacache-0.6.4-6yj2mrct.mjs +0 -1
- package/dist/chunks/cache-probe-0.6.4-x5tn2a2e.mjs +0 -21
- package/dist/chunks/cacheStats-0.6.4-ar55ww2f.mjs +0 -4
- package/dist/chunks/caches-0.6.4-54fb2qc2.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.6.4-h06j868n.mjs +0 -1
- package/dist/chunks/claudemd-0.6.4-35r4255p.mjs +0 -1
- package/dist/chunks/clear-0.6.4-6chw4mjb.mjs +0 -1
- package/dist/chunks/clearTerminal-0.6.4-81zcpvka.mjs +0 -1
- package/dist/chunks/cli-0.6.4-00191v0e.mjs +0 -10
- package/dist/chunks/cli-0.6.4-02v7f4p3.mjs +0 -2
- package/dist/chunks/cli-0.6.4-0dsecg4e.mjs +0 -2
- package/dist/chunks/cli-0.6.4-0gnhakty.mjs +0 -42
- package/dist/chunks/cli-0.6.4-0m6t3msa.mjs +0 -2
- package/dist/chunks/cli-0.6.4-0ngrseg8.mjs +0 -15
- package/dist/chunks/cli-0.6.4-167h8t8x.mjs +0 -2
- package/dist/chunks/cli-0.6.4-1ery4vpn.mjs +0 -50
- package/dist/chunks/cli-0.6.4-1k1e5y32.mjs +0 -2
- package/dist/chunks/cli-0.6.4-1mgm8ymv.mjs +0 -3
- package/dist/chunks/cli-0.6.4-1nzpzrfm.mjs +0 -2
- package/dist/chunks/cli-0.6.4-1qryxm4s.mjs +0 -21
- package/dist/chunks/cli-0.6.4-1s60014f.mjs +0 -2
- package/dist/chunks/cli-0.6.4-28pnb4ka.mjs +0 -18
- package/dist/chunks/cli-0.6.4-29860mke.mjs +0 -2
- package/dist/chunks/cli-0.6.4-2d65trmc.mjs +0 -2
- package/dist/chunks/cli-0.6.4-2dm4scsb.mjs +0 -2
- package/dist/chunks/cli-0.6.4-2dwdm1v9.mjs +0 -2
- package/dist/chunks/cli-0.6.4-2fqxn556.mjs +0 -2
- package/dist/chunks/cli-0.6.4-2mytx51g.mjs +0 -16
- package/dist/chunks/cli-0.6.4-2q70rra3.mjs +0 -2
- package/dist/chunks/cli-0.6.4-2qaa0gp3.mjs +0 -2
- package/dist/chunks/cli-0.6.4-2sh53v7p.mjs +0 -7
- package/dist/chunks/cli-0.6.4-2y7ay1jf.mjs +0 -2
- package/dist/chunks/cli-0.6.4-3d8syj43.mjs +0 -15
- package/dist/chunks/cli-0.6.4-3rqg480e.mjs +0 -2
- package/dist/chunks/cli-0.6.4-43y102gt.mjs +0 -2
- package/dist/chunks/cli-0.6.4-48fcth51.mjs +0 -2
- package/dist/chunks/cli-0.6.4-4b3h6h1j.mjs +0 -2
- package/dist/chunks/cli-0.6.4-4dtvmfyr.mjs +0 -24
- package/dist/chunks/cli-0.6.4-4g9qybcx.mjs +0 -5324
- package/dist/chunks/cli-0.6.4-4jc68p21.mjs +0 -2
- package/dist/chunks/cli-0.6.4-4mfc5kte.mjs +0 -2
- package/dist/chunks/cli-0.6.4-4qg60938.mjs +0 -5
- package/dist/chunks/cli-0.6.4-4qyz0e3r.mjs +0 -2
- package/dist/chunks/cli-0.6.4-55a83gct.mjs +0 -2
- package/dist/chunks/cli-0.6.4-5eshcq2g.mjs +0 -2
- package/dist/chunks/cli-0.6.4-5j8b83wg.mjs +0 -2
- package/dist/chunks/cli-0.6.4-6czv84g6.mjs +0 -2
- package/dist/chunks/cli-0.6.4-771h1906.mjs +0 -2
- package/dist/chunks/cli-0.6.4-78evvtpq.mjs +0 -2
- package/dist/chunks/cli-0.6.4-7djzrbzn.mjs +0 -4
- package/dist/chunks/cli-0.6.4-7htjg50k.mjs +0 -2
- package/dist/chunks/cli-0.6.4-7jvtehkv.mjs +0 -2
- package/dist/chunks/cli-0.6.4-7keg9eew.mjs +0 -45
- package/dist/chunks/cli-0.6.4-7xp2yhpq.mjs +0 -2
- package/dist/chunks/cli-0.6.4-89pes3g1.mjs +0 -2
- package/dist/chunks/cli-0.6.4-8jwbt311.mjs +0 -4
- package/dist/chunks/cli-0.6.4-95vk17cy.mjs +0 -2
- package/dist/chunks/cli-0.6.4-96m5w0az.mjs +0 -2
- package/dist/chunks/cli-0.6.4-9ab34q29.mjs +0 -2
- package/dist/chunks/cli-0.6.4-9j2480tb.mjs +0 -3
- package/dist/chunks/cli-0.6.4-9k5r0pfb.mjs +0 -1
- package/dist/chunks/cli-0.6.4-9wdpd5tf.mjs +0 -2
- package/dist/chunks/cli-0.6.4-9ydhssth.mjs +0 -2
- package/dist/chunks/cli-0.6.4-9z6f4aka.mjs +0 -2
- package/dist/chunks/cli-0.6.4-a1der2pe.mjs +0 -2
- package/dist/chunks/cli-0.6.4-a4wjm2rf.mjs +0 -58
- package/dist/chunks/cli-0.6.4-a772rm3j.mjs +0 -3
- package/dist/chunks/cli-0.6.4-a7tb1zsc.mjs +0 -3
- package/dist/chunks/cli-0.6.4-aprgpdp6.mjs +0 -2
- package/dist/chunks/cli-0.6.4-bbsbw8kz.mjs +0 -2
- package/dist/chunks/cli-0.6.4-bgwzkgj9.mjs +0 -2
- package/dist/chunks/cli-0.6.4-btcax77x.mjs +0 -2
- package/dist/chunks/cli-0.6.4-bvrcy0gs.mjs +0 -2
- package/dist/chunks/cli-0.6.4-cgktpczq.mjs +0 -2
- package/dist/chunks/cli-0.6.4-cp53mw1m.mjs +0 -2
- package/dist/chunks/cli-0.6.4-cttwajrp.mjs +0 -2
- package/dist/chunks/cli-0.6.4-cxhs267r.mjs +0 -2
- package/dist/chunks/cli-0.6.4-cy7jqdcj.mjs +0 -2
- package/dist/chunks/cli-0.6.4-da88vvgh.mjs +0 -2
- package/dist/chunks/cli-0.6.4-dhyghbjg.mjs +0 -2
- package/dist/chunks/cli-0.6.4-dny0rntq.mjs +0 -2
- package/dist/chunks/cli-0.6.4-dtrjgbbz.mjs +0 -2
- package/dist/chunks/cli-0.6.4-dvh5yb9z.mjs +0 -2
- package/dist/chunks/cli-0.6.4-dz01y28k.mjs +0 -133
- package/dist/chunks/cli-0.6.4-dzer59m8.mjs +0 -2
- package/dist/chunks/cli-0.6.4-e0pqs0qg.mjs +0 -4
- package/dist/chunks/cli-0.6.4-e4nxzjbd.mjs +0 -3
- package/dist/chunks/cli-0.6.4-ehexec8h.mjs +0 -2
- package/dist/chunks/cli-0.6.4-ejrq8g7w.mjs +0 -2
- package/dist/chunks/cli-0.6.4-ekg42ba5.mjs +0 -2
- package/dist/chunks/cli-0.6.4-em2mfvpg.mjs +0 -193
- package/dist/chunks/cli-0.6.4-ex2d76ze.mjs +0 -4
- package/dist/chunks/cli-0.6.4-eykta4ak.mjs +0 -2
- package/dist/chunks/cli-0.6.4-f1ya630v.mjs +0 -39
- package/dist/chunks/cli-0.6.4-f51bqfv1.mjs +0 -4
- package/dist/chunks/cli-0.6.4-fg71wev8.mjs +0 -2
- package/dist/chunks/cli-0.6.4-fh1fzqd2.mjs +0 -133
- package/dist/chunks/cli-0.6.4-fhcsv0k7.mjs +0 -2
- package/dist/chunks/cli-0.6.4-fppw8yjy.mjs +0 -2
- package/dist/chunks/cli-0.6.4-g1kweb8j.mjs +0 -17
- package/dist/chunks/cli-0.6.4-g1qw18ad.mjs +0 -2
- package/dist/chunks/cli-0.6.4-g2a0w8wh.mjs +0 -3
- package/dist/chunks/cli-0.6.4-g37ywszt.mjs +0 -2
- package/dist/chunks/cli-0.6.4-gbc9szsq.mjs +0 -20
- package/dist/chunks/cli-0.6.4-gdvys9qy.mjs +0 -2
- package/dist/chunks/cli-0.6.4-ge6qg76s.mjs +0 -18
- package/dist/chunks/cli-0.6.4-ggxbtbd1.mjs +0 -2
- package/dist/chunks/cli-0.6.4-ghagvvva.mjs +0 -2
- package/dist/chunks/cli-0.6.4-gyb3cp0m.mjs +0 -15
- package/dist/chunks/cli-0.6.4-h2c5gxa3.mjs +0 -2
- package/dist/chunks/cli-0.6.4-h598qtx2.mjs +0 -2
- package/dist/chunks/cli-0.6.4-h9ncym59.mjs +0 -2
- package/dist/chunks/cli-0.6.4-hb3rny4x.mjs +0 -3
- package/dist/chunks/cli-0.6.4-hhaw00mw.mjs +0 -2
- package/dist/chunks/cli-0.6.4-hk0wy6ay.mjs +0 -2
- package/dist/chunks/cli-0.6.4-hrs590q0.mjs +0 -2
- package/dist/chunks/cli-0.6.4-hx250zvn.mjs +0 -2
- package/dist/chunks/cli-0.6.4-j61ta5y1.mjs +0 -2
- package/dist/chunks/cli-0.6.4-j7hr5rd4.mjs +0 -2
- package/dist/chunks/cli-0.6.4-jc2r75s6.mjs +0 -2
- package/dist/chunks/cli-0.6.4-jg4xm27s.mjs +0 -2
- package/dist/chunks/cli-0.6.4-jh0d8t91.mjs +0 -9
- package/dist/chunks/cli-0.6.4-jk0aqvhn.mjs +0 -2
- package/dist/chunks/cli-0.6.4-jmvxa7qj.mjs +0 -2
- package/dist/chunks/cli-0.6.4-jn11nc5a.mjs +0 -2
- package/dist/chunks/cli-0.6.4-jra8pavs.mjs +0 -2
- package/dist/chunks/cli-0.6.4-jrweqe5y.mjs +0 -2
- package/dist/chunks/cli-0.6.4-jvfz5yaf.mjs +0 -2
- package/dist/chunks/cli-0.6.4-k2azfhje.mjs +0 -12
- package/dist/chunks/cli-0.6.4-k498jsqp.mjs +0 -9
- package/dist/chunks/cli-0.6.4-k6a4gc0p.mjs +0 -3
- package/dist/chunks/cli-0.6.4-k76c1cdx.mjs +0 -2
- package/dist/chunks/cli-0.6.4-kkwh828j.mjs +0 -2
- package/dist/chunks/cli-0.6.4-ksf3bj49.mjs +0 -2
- package/dist/chunks/cli-0.6.4-kygb95p8.mjs +0 -2
- package/dist/chunks/cli-0.6.4-m0b0hm20.mjs +0 -2
- package/dist/chunks/cli-0.6.4-ms7sef7r.mjs +0 -2
- package/dist/chunks/cli-0.6.4-n3wmzz8w.mjs +0 -2
- package/dist/chunks/cli-0.6.4-n9mgjg26.mjs +0 -2
- package/dist/chunks/cli-0.6.4-nscxc6w9.mjs +0 -2
- package/dist/chunks/cli-0.6.4-p1yyrrqa.mjs +0 -2
- package/dist/chunks/cli-0.6.4-p56yx5pd.mjs +0 -3
- package/dist/chunks/cli-0.6.4-p7mvm2y6.mjs +0 -5
- package/dist/chunks/cli-0.6.4-p7q1dk2n.mjs +0 -2
- package/dist/chunks/cli-0.6.4-pd75v1wy.mjs +0 -6
- package/dist/chunks/cli-0.6.4-pdn08sja.mjs +0 -2
- package/dist/chunks/cli-0.6.4-pg577m2t.mjs +0 -18
- package/dist/chunks/cli-0.6.4-pjk8hxs1.mjs +0 -4
- package/dist/chunks/cli-0.6.4-pp4r33sa.mjs +0 -4
- package/dist/chunks/cli-0.6.4-pqdfmet2.mjs +0 -4
- package/dist/chunks/cli-0.6.4-prdj94yp.mjs +0 -4
- package/dist/chunks/cli-0.6.4-prv34fmj.mjs +0 -2
- package/dist/chunks/cli-0.6.4-q45r4rnd.mjs +0 -2
- package/dist/chunks/cli-0.6.4-qcpjz3yn.mjs +0 -2
- package/dist/chunks/cli-0.6.4-qxhfaxsk.mjs +0 -2
- package/dist/chunks/cli-0.6.4-rdtbn65d.mjs +0 -2
- package/dist/chunks/cli-0.6.4-rf4gtxa6.mjs +0 -2
- package/dist/chunks/cli-0.6.4-rqmfmwew.mjs +0 -4
- package/dist/chunks/cli-0.6.4-rw4dqk3e.mjs +0 -2
- package/dist/chunks/cli-0.6.4-s062axqp.mjs +0 -67
- package/dist/chunks/cli-0.6.4-sd36e6nd.mjs +0 -26
- package/dist/chunks/cli-0.6.4-sebyspe3.mjs +0 -2
- package/dist/chunks/cli-0.6.4-sg59x1y7.mjs +0 -2
- package/dist/chunks/cli-0.6.4-sk4r23n0.mjs +0 -2
- package/dist/chunks/cli-0.6.4-spysehd5.mjs +0 -2
- package/dist/chunks/cli-0.6.4-sz5jkrwv.mjs +0 -8
- package/dist/chunks/cli-0.6.4-t13eh9gb.mjs +0 -2
- package/dist/chunks/cli-0.6.4-t87tgqs2.mjs +0 -2
- package/dist/chunks/cli-0.6.4-tda6fzwk.mjs +0 -2
- package/dist/chunks/cli-0.6.4-tgtxrvzn.mjs +0 -3
- package/dist/chunks/cli-0.6.4-ttyv846t.mjs +0 -2
- package/dist/chunks/cli-0.6.4-v050kzdd.mjs +0 -2
- package/dist/chunks/cli-0.6.4-v2fsc12w.mjs +0 -2
- package/dist/chunks/cli-0.6.4-v3ym5bjk.mjs +0 -2
- package/dist/chunks/cli-0.6.4-vawbj80d.mjs +0 -5
- package/dist/chunks/cli-0.6.4-vekd5qeh.mjs +0 -3
- package/dist/chunks/cli-0.6.4-vg82smm8.mjs +0 -24
- package/dist/chunks/cli-0.6.4-vs7kwtc6.mjs +0 -2
- package/dist/chunks/cli-0.6.4-vyqg6c95.mjs +0 -3
- package/dist/chunks/cli-0.6.4-vyyncn9y.mjs +0 -34
- package/dist/chunks/cli-0.6.4-wpzc8xj5.mjs +0 -3
- package/dist/chunks/cli-0.6.4-x0pe866a.mjs +0 -2
- package/dist/chunks/cli-0.6.4-x3pc9zn1.mjs +0 -6
- package/dist/chunks/cli-0.6.4-x6d6qxpg.mjs +0 -2
- package/dist/chunks/cli-0.6.4-x6npewbm.mjs +0 -6
- package/dist/chunks/cli-0.6.4-x7ss8dse.mjs +0 -2
- package/dist/chunks/cli-0.6.4-x84dfqja.mjs +0 -2
- package/dist/chunks/cli-0.6.4-xf6vdp7p.mjs +0 -2
- package/dist/chunks/cli-0.6.4-xgmmcr56.mjs +0 -25
- package/dist/chunks/cli-0.6.4-xh0mhy0q.mjs +0 -2
- package/dist/chunks/cli-0.6.4-xj949nnt.mjs +0 -2
- package/dist/chunks/cli-0.6.4-xm44y40c.mjs +0 -2
- package/dist/chunks/cli-0.6.4-y9nrcnx6.mjs +0 -2
- package/dist/chunks/cli-0.6.4-yak49q2f.mjs +0 -12
- package/dist/chunks/cli-0.6.4-ymgdd6a7.mjs +0 -2
- package/dist/chunks/cli-0.6.4-ysvx8vre.mjs +0 -12
- package/dist/chunks/cli-0.6.4-yxqfeka0.mjs +0 -2
- package/dist/chunks/cli-0.6.4-z0j0rsqe.mjs +0 -2
- package/dist/chunks/cli-0.6.4-z3hp0qzv.mjs +0 -59
- package/dist/chunks/cli-0.6.4-z63xq66c.mjs +0 -2
- package/dist/chunks/cli-0.6.4-zgzya3hb.mjs +0 -17
- package/dist/chunks/cli-0.6.4-zkfpt86n.mjs +0 -2
- package/dist/chunks/cli-0.6.4-zss3bwjp.mjs +0 -2
- package/dist/chunks/cli-0.6.4-ztqssjbf.mjs +0 -2
- package/dist/chunks/client-0.6.4-ba2mtgjd.mjs +0 -1
- package/dist/chunks/color-0.6.4-2g7drx0s.mjs +0 -1
- package/dist/chunks/compact-0.6.4-tnqd9mmn.mjs +0 -3
- package/dist/chunks/config-0.6.4-3bhr23pq.mjs +0 -1
- package/dist/chunks/config-0.6.4-x56wgtde.mjs +0 -1
- package/dist/chunks/constants-0.6.4-cy9scgrh.mjs +0 -1
- package/dist/chunks/context-0.6.4-sjcg7yxa.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.6.4-630bqrtn.mjs +0 -1
- package/dist/chunks/conversation-0.6.4-4wkb13gm.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.6.4-6ygmq0rm.mjs +0 -1
- package/dist/chunks/copy-0.6.4-bgxrhckq.mjs +0 -9
- package/dist/chunks/cost-0.6.4-w83wc8ng.mjs +0 -1
- package/dist/chunks/createSSHSession-0.6.4-xcjsx731.mjs +0 -1
- package/dist/chunks/createSession-0.6.4-wsz3r56j.mjs +0 -1
- package/dist/chunks/debug-0.6.4-98yk6kds.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.6.4-gnr6f4bm.mjs +0 -1365
- package/dist/chunks/desktop-0.6.4-hpbrkj08.mjs +0 -1
- package/dist/chunks/detectRepository-0.6.4-jtg1wvsa.mjs +0 -1
- package/dist/chunks/detection-0.6.4-dqwz1bq1.mjs +0 -1
- package/dist/chunks/diff-0.6.4-6mtph9me.mjs +0 -1
- package/dist/chunks/doctor-0.6.4-rhc37adv.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.6.4-dwt35xp9.mjs +0 -1
- package/dist/chunks/earlyInput-0.6.4-gwc98r30.mjs +0 -1
- package/dist/chunks/effort-0.6.4-gat4neps.mjs +0 -10
- package/dist/chunks/envUtils-0.6.4-y2b3abdc.mjs +0 -1
- package/dist/chunks/environmentSelection-0.6.4-xxrzk7m6.mjs +0 -1
- package/dist/chunks/environments-0.6.4-h1v61wzy.mjs +0 -1
- package/dist/chunks/errors-0.6.4-ca74wb6q.mjs +0 -1
- package/dist/chunks/exampleCommands-0.6.4-g36htc09.mjs +0 -1
- package/dist/chunks/exit-0.6.4-z7yj01cx.mjs +0 -1
- package/dist/chunks/export-0.6.4-ffzrse4n.mjs +0 -2
- package/dist/chunks/extra-usage-0.6.4-d23skk9c.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.6.4-0akfkh19.mjs +0 -1
- package/dist/chunks/fast-0.6.4-dy9ew4g1.mjs +0 -1
- package/dist/chunks/feedback-0.6.4-5pw5kr6j.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.6.4-58n8gvjr.mjs +0 -1
- package/dist/chunks/git-0.6.4-5p9es5sh.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.6.4-c75tjtm6.mjs +0 -1
- package/dist/chunks/goal-0.6.4-05yfbtf5.mjs +0 -4
- package/dist/chunks/grove-0.6.4-3mxw3jbp.mjs +0 -1
- package/dist/chunks/growthbook-0.6.4-w1a2ja8q.mjs +0 -1
- package/dist/chunks/headless-0.6.4-1b8pxyk6.mjs +0 -2
- package/dist/chunks/heapdump-0.6.4-ckft18df.mjs +0 -6
- package/dist/chunks/help-0.6.4-1qswzq2t.mjs +0 -1
- package/dist/chunks/hookChains-0.6.4-mc6w2yn4.mjs +0 -3
- package/dist/chunks/hooks-0.6.4-zqycdaww.mjs +0 -1
- package/dist/chunks/hooks-0.6.4-zw8ak2ae.mjs +0 -79
- package/dist/chunks/ide-0.6.4-kjaythhf.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.6.4-9n32xq4y.mjs +0 -1
- package/dist/chunks/index-0.6.4-1eqjmyfc.mjs +0 -1
- package/dist/chunks/index-0.6.4-5x2zgy8s.mjs +0 -1
- package/dist/chunks/index-0.6.4-6er8ykqb.mjs +0 -1
- package/dist/chunks/index-0.6.4-6z8pdxeg.mjs +0 -1
- package/dist/chunks/index-0.6.4-8gxkz67a.mjs +0 -1
- package/dist/chunks/index-0.6.4-ay6td6v7.mjs +0 -1
- package/dist/chunks/index-0.6.4-bf4fb2rv.mjs +0 -1
- package/dist/chunks/index-0.6.4-cs4qnyse.mjs +0 -9
- package/dist/chunks/index-0.6.4-d8a7z3cd.mjs +0 -1
- package/dist/chunks/index-0.6.4-e1xb3q84.mjs +0 -1
- package/dist/chunks/index-0.6.4-fapqkd13.mjs +0 -30
- package/dist/chunks/index-0.6.4-fsypm1g5.mjs +0 -1
- package/dist/chunks/index-0.6.4-j1dpgmwz.mjs +0 -5
- package/dist/chunks/index-0.6.4-k5z3btpk.mjs +0 -1
- package/dist/chunks/index-0.6.4-kv8v270h.mjs +0 -1
- package/dist/chunks/index-0.6.4-nn5ynnfb.mjs +0 -2
- package/dist/chunks/index-0.6.4-np003dn4.mjs +0 -2
- package/dist/chunks/index-0.6.4-qtcndy07.mjs +0 -1
- package/dist/chunks/index-0.6.4-s0gg7sga.mjs +0 -1
- package/dist/chunks/index-0.6.4-scbwf11t.mjs +0 -9
- package/dist/chunks/index-0.6.4-sqrhv68x.mjs +0 -17
- package/dist/chunks/index-0.6.4-w93mdh3w.mjs +0 -1
- package/dist/chunks/init-0.6.4-ccs2p8cg.mjs +0 -1
- package/dist/chunks/initReplBridge-0.6.4-7cnffgw6.mjs +0 -1
- package/dist/chunks/ink-0.6.4-kv9v236j.mjs +0 -1
- package/dist/chunks/insights-0.6.4-v475bskf.mjs +0 -870
- package/dist/chunks/install-0.6.4-9x6x6d7w.mjs +0 -1
- package/dist/chunks/install-github-app-0.6.4-e0hnh1ac.mjs +0 -149
- package/dist/chunks/install-slack-app-0.6.4-5m1bq4zr.mjs +0 -1
- package/dist/chunks/instrumentation-0.6.4-j0dm5kvt.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.6.4-trjfh09v.mjs +0 -1
- package/dist/chunks/keybindings-0.6.4-52xyg2q7.mjs +0 -2
- package/dist/chunks/knowledge-0.6.4-3pd8yspr.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.6.4-6nv1r43c.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.6.4-2f1egc65.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.4-6bdefjx0.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.4-jg6hn8q1.mjs +0 -1
- package/dist/chunks/log-0.6.4-byx1v0aw.mjs +0 -1
- package/dist/chunks/main-0.6.4-7kgs4wzg.mjs +0 -1
- package/dist/chunks/managedEnv-0.6.4-seg7a473.mjs +0 -1
- package/dist/chunks/mcp-0.6.4-fme3jax5.mjs +0 -17
- package/dist/chunks/mcp-0.6.4-gw2k9j0s.mjs +0 -4
- package/dist/chunks/mcp-0.6.4-hz4ymzf8.mjs +0 -1
- package/dist/chunks/mcpb-0.6.4-rm87xg1m.mjs +0 -1
- package/dist/chunks/memory-0.6.4-hdem4rfy.mjs +0 -3
- package/dist/chunks/mobile-0.6.4-xga427dx.mjs +0 -2
- package/dist/chunks/model-0.6.4-e7swq7hs.mjs +0 -1
- package/dist/chunks/model-0.6.4-raaz0pn8.mjs +0 -2
- package/dist/chunks/node-0.6.4-2mhf46p7.mjs +0 -12
- package/dist/chunks/oauth-0.6.4-de05kmr6.mjs +0 -1
- package/dist/chunks/openaiShim-0.6.4-shaa1wsv.mjs +0 -14
- package/dist/chunks/output-style-0.6.4-gfd6r8hz.mjs +0 -1
- package/dist/chunks/package-D6422PQU-0.6.4-syh17p64.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.6.4-k2eex22j.mjs +0 -1
- package/dist/chunks/parser-0.6.4-43t4x7r9.mjs +0 -1
- package/dist/chunks/passes-0.6.4-tbj019p0.mjs +0 -1
- package/dist/chunks/permissions-0.6.4-d0fw76d7.mjs +0 -3
- package/dist/chunks/plan-0.6.4-084fq0kq.mjs +0 -1
- package/dist/chunks/plist-0.6.4-439zn1sw.mjs +0 -1
- package/dist/chunks/plugin-0.6.4-mnsbmvwr.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.6.4-t2kn51a4.mjs +0 -1
- package/dist/chunks/plugins-0.6.4-630t2jf7.mjs +0 -9
- package/dist/chunks/preActionHook-0.6.4-gfadf2sk.mjs +0 -2
- package/dist/chunks/print-0.6.4-pw4vrnzd.mjs +0 -57
- package/dist/chunks/privacy-settings-0.6.4-b97bep23.mjs +0 -1
- package/dist/chunks/process-0.6.4-yewqx1g2.mjs +0 -1
- package/dist/chunks/processBashCommand-0.6.4-64reh5jq.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.6.4-46w7k3kw.mjs +0 -9
- package/dist/chunks/prompt-0.6.4-1dfbspxp.mjs +0 -1
- package/dist/chunks/prompt-0.6.4-ax8j0qse.mjs +0 -1
- package/dist/chunks/prompts-0.6.4-avjtc7j4.mjs +0 -1
- package/dist/chunks/protocolHandler-0.6.4-z0382sns.mjs +0 -13
- package/dist/chunks/provider-0.6.4-dww4c5j2.mjs +0 -2
- package/dist/chunks/providerProfiles-0.6.4-phwwz4cg.mjs +0 -1
- package/dist/chunks/providerValidation-0.6.4-zctdw7r7.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.6.4-sydaxbv7.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.6.4-ejhhvkd5.mjs +0 -34
- package/dist/chunks/registry-0.6.4-kb0x4rx3.mjs +0 -1
- package/dist/chunks/release-notes-0.6.4-es6sgycw.mjs +0 -5
- package/dist/chunks/reload-plugins-0.6.4-z5560vpf.mjs +0 -2
- package/dist/chunks/remote-env-0.6.4-6ypd7mgt.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.6.4-r2nre1by.mjs +0 -1
- package/dist/chunks/remoteSession-0.6.4-jhazvxam.mjs +0 -1
- package/dist/chunks/rename-0.6.4-wnm225zc.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.6.4-90waxyt2.mjs +0 -1
- package/dist/chunks/replLauncher-0.6.4-fqvqymes.mjs +0 -1
- package/dist/chunks/resume-0.6.4-2edgjvxb.mjs +0 -2
- package/dist/chunks/rewind-0.6.4-43tzjabn.mjs +0 -1
- package/dist/chunks/rootOptions-0.6.4-efwh7nb7.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.6.4-7ccq9g0r.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.6.4-ca6p1txa.mjs +0 -1
- package/dist/chunks/session-0.6.4-xqz0b6bv.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.6.4-zhn2re2r.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.6.4-0s8vv82b.mjs +0 -1
- package/dist/chunks/sessionStorage-0.6.4-k27431kx.mjs +0 -1
- package/dist/chunks/settings-0.6.4-xg6qae4k.mjs +0 -1
- package/dist/chunks/setup-0.6.4-zc0wstra.mjs +0 -5
- package/dist/chunks/sinks-0.6.4-3rycgm4d.mjs +0 -1
- package/dist/chunks/skills-0.6.4-jwf0fht6.mjs +0 -1
- package/dist/chunks/startupProfiler-0.6.4-6c1wp85a.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.6.4-xqbvq5b5.mjs +0 -1
- package/dist/chunks/state-0.6.4-p0ddysh2.mjs +0 -1
- package/dist/chunks/stats-0.6.4-hys6q4f4.mjs +0 -6
- package/dist/chunks/status-0.6.4-5f8q60ey.mjs +0 -1
- package/dist/chunks/stickers-0.6.4-tftjq5eh.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.6.4-gz5jdaaq.mjs +0 -1
- package/dist/chunks/tasks-0.6.4-s9qwaetv.mjs +0 -1
- package/dist/chunks/teamHelpers-0.6.4-h72qp38f.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.6.4-ezcvghhw.mjs +0 -1
- package/dist/chunks/teleport-0.6.4-e668czw7.mjs +0 -1
- package/dist/chunks/terminalSetup-0.6.4-53azbkac.mjs +0 -1
- package/dist/chunks/theme-0.6.4-zhw8bpdv.mjs +0 -1
- package/dist/chunks/thinkback-0.6.4-cpckywc7.mjs +0 -1
- package/dist/chunks/thinkback-play-0.6.4-ke47vrva.mjs +0 -1
- package/dist/chunks/toolPool-0.6.4-whn705s5.mjs +0 -1
- package/dist/chunks/toolSearch-0.6.4-80h4rrgj.mjs +0 -1
- package/dist/chunks/tools-0.6.4-4kf64373.mjs +0 -1
- package/dist/chunks/trustedDevice-0.6.4-zbvda07m.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.6.4-ghgzppms.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.6.4-r028gcax.mjs +0 -4
- package/dist/chunks/update-0.6.4-a233wpzj.mjs +0 -86
- package/dist/chunks/upgrade-0.6.4-mx4jnstf.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.6.4-4cmr0qtj.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.6.4-vt0a3wdc.mjs +0 -1
- package/dist/chunks/usage-0.6.4-8kncs1zq.mjs +0 -1
- package/dist/chunks/util-0.6.4-afjsm52j.mjs +0 -1
- package/dist/chunks/utils-0.6.4-r5qbctxg.mjs +0 -1
- package/dist/chunks/vim-0.6.4-qb1hpv1s.mjs +0 -1
- package/dist/chunks/watcher-0.6.4-w81paz2g.mjs +0 -1
- package/dist/chunks/wiki-0.6.4-3wc3s65f.mjs +0 -132
- package/dist/chunks/worktree-0.6.4-hy75224j.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.6.4-7wyg7p08.mjs +0 -1
- package/dist/chunks/wrapper-0.6.4-vqj09efm.mjs +0 -7
- /package/dist/chunks/{cli-0.6.4-yrfkm9my.mjs → cli-0.6.6-py5db2ds.mjs} +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
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};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Rh as R,Th as y,Uh as v}from"./cli-0.6.4-x6d6qxpg.mjs";import{AY as K,dX as c,dZ as E}from"./cli-0.6.4-z3hp0qzv.mjs";import{C0 as O,D0 as N,E0 as M,F0 as U}from"./cli-0.6.4-btcax77x.mjs";import{G0 as G}from"./cli-0.6.4-n9mgjg26.mjs";import{Yba as L,rca as b}from"./cli-0.6.4-em2mfvpg.mjs";import{gea as Z,sea as W}from"./cli-0.6.4-prdj94yp.mjs";import{tga as p}from"./cli-0.6.4-ksf3bj49.mjs";import{spa as F,wpa as j}from"./cli-0.6.4-yrfkm9my.mjs";function f(){let q=R();if(!q||!q.available||q.granted)return!1;return y(q)!==null}function r(){if(!f())return!1;let q=L();if(q.hasVisitedExtraUsage)return!1;if((q.overageCreditUpsellSeenCount??0)>=T)return!1;return!0}function C(q){return`${q} in extra usage for third-party apps · /extra-usage`}function w(q){return`${q} in extra usage`}function n(q){let k=S.c(8),{maxWidth:z,twoLine:P}=q,Q,H;if(k[0]!==z||k[1]!==P){H=Symbol.for("react.early_return_sentinel");k:{let A=R();if(!A){H=null;break k}let V=y(A);if(!V){H=null;break k}if(P){let I=w(V),J;if(k[4]!==z)J=z?Z(_,z):_,k[4]=z,k[5]=J;else J=k[5];let Y;if(k[6]!==J)Y=N(K,{dimColor:!0,children:J}),k[6]=J,k[7]=Y;else Y=k[7];H=M(O,{children:[N(K,{color:"claude",children:z?Z(I,z):I}),Y]});break k}let B=C(V),X=z?Z(B,z):B,D=Math.min(w(V).length,X.length);Q=M(K,{dimColor:!0,children:[N(K,{color:"claude",children:X.slice(0,D)}),X.slice(D)]})}k[0]=z,k[1]=P,k[2]=Q,k[3]=H}else Q=k[2],H=k[3];if(H!==Symbol.for("react.early_return_sentinel"))return H;return Q}var S,$,T=3,_="On us. Works on third-party apps · /extra-usage";var l=j(()=>{E();p();v();b();W();U();S=F(c(),1),$=F(G(),1)});
|
|
2
|
-
export{f as hg,r as ig,n as jg,l as kg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A7 as _,B7 as w,w7 as Z}from"./cli-0.6.4-eykta4ak.mjs";import{G9 as k,Vba as W,W8 as T,Yba as V,a_ as D,k8 as Y,l8 as U,rca as j,w8 as $}from"./cli-0.6.4-em2mfvpg.mjs";import{tha as N,wha as M}from"./cli-0.6.4-x6npewbm.mjs";import{Nna as O,Uja as X}from"./cli-0.6.4-1k1e5y32.mjs";O();j();M();w();D();U();T();import{realpath as v}from"fs/promises";async function b(){try{let q=await Z();if(!q){N("Not in a GitHub repository, skipping path mapping update");return}let A=X(),z=$(A)??A,B;try{B=(await v(z)).normalize("NFC")}catch{B=z}let J=q.toLowerCase(),L=V().githubRepoPaths?.[J]??[];if(L[0]===B){N(`Path ${B} already tracked for repo ${J}`);return}let E=L.filter((S)=>S!==B),H=[B,...E];W((S)=>({...S,githubRepoPaths:{...S.githubRepoPaths,[J]:H}})),N(`Added ${B} to tracked paths for repo ${J}`)}catch(q){N(`Error updating repo path mapping: ${q}`)}}function y(q){let A=V(),I=q.toLowerCase();return A.githubRepoPaths?.[I]??[]}async function P(q){let A=await Promise.all(q.map(k));return q.filter((I,z)=>A[z])}async function d(q,A){try{let I=await Y(q);if(!I)return!1;let z=_(I);if(!z)return!1;return z.toLowerCase()===A.toLowerCase()}catch{return!1}}function c(q,A){let I=V(),z=q.toLowerCase(),B=I.githubRepoPaths?.[z]??[],J=B.filter((L)=>L!==A);if(J.length===B.length)return;let Q={...I.githubRepoPaths};if(J.length===0)delete Q[z];else Q[z]=J;W((L)=>({...L,githubRepoPaths:Q})),N(`Removed ${A} from tracked paths for repo ${z}`)}
|
|
2
|
-
export{b as sb,y as tb,P as ub,d as vb,c as wb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$Z as x}from"./cli-0.6.4-dhyghbjg.mjs";import{k5 as q}from"./cli-0.6.4-2mytx51g.mjs";import{Afa as p}from"./cli-0.6.4-4qyz0e3r.mjs";import{iia as f}from"./cli-0.6.4-43y102gt.mjs";import{wpa as d}from"./cli-0.6.4-yrfkm9my.mjs";function N(){return!1}async function O(){return!1}function P(){return!1}function Q(){return!0}function R(){return null}var z=d(()=>{p();q();f();x()});
|
|
2
|
-
export{N as bg,O as cg,P as dg,Q as eg,R as fg,z as gg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$0 as $,W0 as N}from"./cli-0.6.4-ejrq8g7w.mjs";import{M4 as M,W1 as L,Z1 as Y,k5 as Z}from"./cli-0.6.4-2mytx51g.mjs";import{Pda as Q,Xda as X}from"./cli-0.6.4-em2mfvpg.mjs";import{pga as J,qga as V}from"./cli-0.6.4-4b3h6h1j.mjs";import{Mha as P,Uha as S}from"./cli-0.6.4-rqmfmwew.mjs";import{Hoa as K,Zoa as W}from"./cli-0.6.4-ge6qg76s.mjs";import{wpa as R}from"./cli-0.6.4-yrfkm9my.mjs";async function C(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{W();V();Y();Z();S();X();$()});
|
|
2
|
-
export{C as JU,j as KU,b as LU};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{nb as b}from"./cli-0.6.4-vs7kwtc6.mjs";import{pf as zK,uf as dK}from"./cli-0.6.4-g2a0w8wh.mjs";import{$H as wz,Gv as xK,Hl as rz,IJ as ez,Jl as bK,KJ as cK,Kn as M,Ln as vK,Nn as iz,Rn as SK,TM as Ez,aN as FK,hI as MK,jH as hK,kH as mK,nz as oz,pz as sz,qz as fK,rR as j,sJ as tz,tJ as pK,tR as uK,zv as Cz}from"./cli-0.6.4-4g9qybcx.mjs";import{NW as Kz,SW as AK,TW as Qz,UW as GK}from"./cli-0.6.4-z3hp0qzv.mjs";import{A1 as O,D3 as k,O3 as nz,S3 as jK,Y4 as Tz,_4 as Mz,a5 as R,k3 as Uz,k5 as xz,l3 as lz,r3 as Dz,v1 as U,w3 as I,y3 as _z}from"./cli-0.6.4-2mytx51g.mjs";import{G5 as G,H5 as _K}from"./cli-0.6.4-x3pc9zn1.mjs";import{B_ as DK,P7 as Zz,P8 as dz,Pba as gz,Pda as V,Q7 as RK,Taa as q,Vaa as H,Vba as $,W8 as EK,X7 as T,Xaa as uz,Xda as A,Yaa as S,Yba as W,Z7 as CK,Zaa as kz,aba as Jz,cca as Wz,d_ as t,dca as Bz,eca as az,gba as _,i_ as LK,o_ as e,rca as L,s_ as UK,t8 as $z,v8 as TK,z8 as cz,z_ as zz}from"./cli-0.6.4-em2mfvpg.mjs";import{Cea as kK,xea as E}from"./cli-0.6.4-prdj94yp.mjs";import{Dfa as pz,Efa as PK}from"./cli-0.6.4-95vk17cy.mjs";import{rga as Z,tga as N}from"./cli-0.6.4-ksf3bj49.mjs";import{$ga as r,bha as WK,cha as i,fha as o,jha as BK}from"./cli-0.6.4-x6npewbm.mjs";import{Bha as s,Cha as NK}from"./cli-0.6.4-xf6vdp7p.mjs";import{Nha as y,Pha as n,Uha as VK}from"./cli-0.6.4-rqmfmwew.mjs";import{Zha as C,_ha as v,aia as hz,gia as mz,iia as yK}from"./cli-0.6.4-43y102gt.mjs";import{$ka as Oz,Bla as Sz,Fja as F,Jja as JK,Nla as fz,Nna as w,Ula as a,Zka as Iz,_ka as bz,bla as vz,lma as l}from"./cli-0.6.4-1k1e5y32.mjs";import{tpa as wK}from"./cli-0.6.4-yrfkm9my.mjs";_K();AK();w();DK();VK();BK();LK();A();NK();UK();JK();WK();GK();import{readFileSync as IK}from"node:fs";var OK=/--inspect(-brk)?/,g=/--inspect(-brk)?|--debug(-brk)?/;function ZQ(){let z=zz()?OK:g,Q=process.execArgv.some((Y)=>z.test(Y)),X=!!process.env.NODE_OPTIONS&&g.test(process.env.NODE_OPTIONS);try{return!!global.require("inspector").url()||Q||X}catch{return Q||X}}function $Q(){(process.stderr.isTTY?process.stderr:process.stdout.isTTY?process.stdout:void 0)?.write(Kz)}function qQ(K){if(typeof K!=="object"||K===null)return{};let z=K,Q=z.teammateMode;return{agentId:typeof z.agentId==="string"?z.agentId:void 0,agentName:typeof z.agentName==="string"?z.agentName:void 0,teamName:typeof z.teamName==="string"?z.teamName:void 0,agentColor:typeof z.agentColor==="string"?z.agentColor:void 0,planModeRequired:typeof z.planModeRequired==="boolean"?z.planModeRequired:void 0,parentSessionId:typeof z.parentSessionId==="string"?z.parentSessionId:void 0,teammateMode:Q==="auto"||Q==="tmux"||Q==="in-process"?Q:void 0,agentType:typeof z.agentType==="string"?z.agentType:void 0}}function Xz(K){try{let z=K.trim(),Q=z.startsWith("{")&&z.endsWith("}"),X;if(Q){if(!t(z))process.stderr.write(G.red(`Error: Invalid JSON provided to --settings
|
|
2
|
-
`)),process.exit(1);X=Qz("claude-settings",".json",{contentHash:z}),r(X,z,"utf8")}else{let{resolvedPath:Y}=i(o(),K);try{IK(Y,"utf8")}catch(J){if(n(J))process.stderr.write(G.red(`Error: Settings file not found: ${Y}
|
|
3
|
-
`)),process.exit(1);throw J}X=Y}a(X),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing settings: ${y(z)}
|
|
4
|
-
`)),process.exit(1)}}function Yz(K){try{let z=e(K);l(z),F()}catch(z){if(z instanceof Error)V(z);process.stderr.write(G.red(`Error processing --setting-sources: ${y(z)}
|
|
5
|
-
`)),process.exit(1)}}async function HQ(K,z){if(!process.stdin.isTTY&&!process.argv.includes("mcp")){if(z==="stream-json")return process.stdin;process.stdin.setEncoding("utf8");let Q="",X=(J)=>{Q+=J};process.stdin.on("data",X);let Y=await s(process.stdin,3000);if(process.stdin.off("data",X),Y)process.stderr.write(`Warning: no stdin data received in 3s, proceeding without it. If piping from a slow command, redirect stdin explicitly: < /dev/null to skip, or wait longer.
|
|
6
|
-
`);return[K,Q].filter(Boolean).join(`
|
|
7
|
-
`)}return K}kK();uK();N();bK();L();jK();CK();yK();EK();RK();TK();async function qz(){if(!await $z("gh"))return"not_installed";let{exitCode:z}=await Zz("gh",["auth","token"],{stdout:"ignore",stderr:"ignore",timeout:5000,reject:!1});return z===0?"authenticated":"not_authenticated"}A();k();pK();SK();cK();N();L();A();_();function Hz(){let K=W();if(K.autoUpdates!==!1||K.autoUpdatesProtectedForNative===!0)return;try{let z=q("userSettings")||{};H("userSettings",{...z,env:{...z.env,DISABLE_AUTOUPDATER:"1"}}),Z("tengu_migrate_autoupdates_to_settings",{was_user_preference:!0,already_had_env_var:!!z.env?.DISABLE_AUTOUPDATER}),process.env.DISABLE_AUTOUPDATER="1",$((Q)=>{let{autoUpdates:X,autoUpdatesProtectedForNative:Y,...J}=Q;return J})}catch(z){V(Error(`Failed to migrate auto-updates: ${z}`)),Z("tengu_migrate_autoupdates_error",{has_error:!0})}}N();L();A();_();function Vz(){if(!W().bypassPermissionsModeAccepted)return;try{if(!Jz())H("userSettings",{skipDangerousModePermissionPrompt:!0});Z("tengu_migrate_bypass_permissions_accepted",{}),$((z)=>{if(!("bypassPermissionsModeAccepted"in z))return z;let{bypassPermissionsModeAccepted:Q,...X}=z;return X})}catch(z){V(Error(`Failed to migrate bypass permissions accepted: ${z}`))}}N();L();A();_();function Nz(){let K=Wz(),z=K.enableAllProjectMcpServers!==void 0,Q=K.enabledMcpjsonServers&&K.enabledMcpjsonServers.length>0,X=K.disabledMcpjsonServers&&K.disabledMcpjsonServers.length>0;if(!z&&!Q&&!X)return;try{let Y=q("localSettings")||{},J={},B=[];if(z&&Y.enableAllProjectMcpServers===void 0)J.enableAllProjectMcpServers=K.enableAllProjectMcpServers,B.push("enableAllProjectMcpServers");else if(z)B.push("enableAllProjectMcpServers");if(Q&&K.enabledMcpjsonServers){let D=Y.enabledMcpjsonServers||[];J.enabledMcpjsonServers=[...new Set([...D,...K.enabledMcpjsonServers])],B.push("enabledMcpjsonServers")}if(X&&K.disabledMcpjsonServers){let D=Y.disabledMcpjsonServers||[];J.disabledMcpjsonServers=[...new Set([...D,...K.disabledMcpjsonServers])],B.push("disabledMcpjsonServers")}if(Object.keys(J).length>0)H("localSettings",J);if(B.includes("enableAllProjectMcpServers")||B.includes("enabledMcpjsonServers")||B.includes("disabledMcpjsonServers"))Bz((D)=>{let{enableAllProjectMcpServers:f,enabledMcpjsonServers:h,disabledMcpjsonServers:m,...x}=D;return x});Z("tengu_migrate_mcp_approval_fields_success",{migratedCount:B.length})}catch(Y){V(Y),Z("tengu_migrate_mcp_approval_fields_error",{})}}N();L();k();O();_();function Lz(){if(U()!=="firstParty")return;if(!_z())return;let K=q("userSettings")?.model;if(K!=="claude-opus-4-20250514"&&K!=="claude-opus-4-1-20250805"&&K!=="claude-opus-4-0"&&K!=="claude-opus-4-1")return;H("userSettings",{model:"opus"}),$((z)=>({...z,legacyOpusMigrationTimestamp:Date.now()})),Z("tengu_legacy_opus_migration",{from_model:K})}N();k();_();function Az(){if(!Dz())return;if(q("userSettings")?.model!=="opus")return;let z="opus[1m]",Q=I(z)===I(Uz())?void 0:z;H("userSettings",{model:Q}),Z("tengu_opus_to_opus1m_migration",{})}L();function Gz(){$((K)=>{let z=K.replBridgeEnabled;if(z===void 0)return K;if(K.remoteControlAtStartup!==void 0)return K;let Q={...K,remoteControlAtStartup:Boolean(z)};return delete Q.replBridgeEnabled,Q})}w();L();O();_();function Rz(){if(U()!=="firstParty")return;if(W().sonnet1m45MigrationComplete)return;if(q("userSettings")?.model==="sonnet[1m]")H("userSettings",{model:"sonnet-4-5-20250929[1m]"});if(Iz()==="sonnet[1m]")Oz("sonnet-4-5-20250929[1m]");$((X)=>({...X,sonnet1m45MigrationComplete:!0}))}N();xz();L();O();_();function Fz(){if(U()!=="firstParty")return;if(!R()&&!Tz()&&!Mz())return;let K=q("userSettings")?.model;if(K!=="claude-sonnet-4-5-20250929"&&K!=="claude-sonnet-4-5-20250929[1m]"&&K!=="sonnet-4-5-20250929"&&K!=="sonnet-4-5-20250929[1m]")return;let z=K.endsWith("[1m]");if(H("userSettings",{model:z?"sonnet[1m]":"sonnet"}),W().numStartups>1)$((X)=>({...X,sonnet45To46MigrationTimestamp:Date.now()}));Z("tengu_sonnet45_to_46_migration",{from_model:K,has_1m:z})}N();L();A();MK();_();function yz(){if(W().hasResetAutoModeOptInForDefaultOffer)return;if(wz()!=="enabled")return;try{let z=q("userSettings");if(z?.skipAutoPermissionPrompt&&z?.permissions?.defaultMode!=="auto")H("userSettings",{skipAutoPermissionPrompt:void 0}),Z("tengu_migrate_reset_auto_opt_in_for_default_offer",{});$((Q)=>{if(Q.hasResetAutoModeOptInForDefaultOffer)return Q;return{...Q,hasResetAutoModeOptInForDefaultOffer:!0}})}catch(z){V(Error(`Failed to reset auto mode opt-in: ${z}`))}}N();xz();L();O();_();function Pz(){if(W().opusProMigrationComplete)return;if(U()!=="firstParty"||!R()){$((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!0});return}if(kz()?.model===void 0){let X=Date.now();$((Y)=>({...Y,opusProMigrationComplete:!0,opusProMigrationTimestamp:X})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!1})}else $((X)=>({...X,opusProMigrationComplete:!0})),Z("tengu_reset_pro_to_opus_default",{skipped:!1,had_custom_model:!0})}dK();vK();w();PK();_();FK();N();xK();async function jz(K,z){let Q=await Ez(K),X=Cz(z);for(let Y of Q){if(Y.type!=="prompt")continue;Z("tengu_skill_loaded",{_PROTO_skill_name:Y.name,skill_source:Y.source,skill_loaded_from:Y.loadedFrom,skill_budget:X,...Y.kind&&{skill_kind:Y.kind}})}}fK();function nX(){try{let K=q("policySettings");if(K){let z=uz(K);Z("tengu_managed_settings_loaded",{keyCount:z.length,keys:z.join(",")})}}catch{}}function rX(){let K=I(bz()??lz());jz(pz(),nz(K,vz())),ez().then(({enabled:z,errors:Q})=>{let X=tz();oz(z,X,iz()),sz(Q,X)}).catch((z)=>V(z))}function gK(){let K={};if(process.env.NODE_EXTRA_CA_CERTS)K.has_node_extra_ca_certs=!0;if(process.env.CLAUDE_CODE_CLIENT_CERT)K.has_client_cert=!0;if(C("--use-system-ca"))K.has_use_system_ca=!0;if(C("--use-openssl-ca"))K.has_use_openssl_ca=!0;return K}async function iX(){if(rz())return;let[K,z,Q]=await Promise.all([cz(),dz(),qz()]);Z("tengu_startup_telemetry",{is_git:K,worktree_count:z,gh_auth_status:Q,sandbox_enabled:M.isSandboxingEnabled(),are_unsandboxed_commands_allowed:M.areUnsandboxedCommandsAllowed(),is_auto_bash_allowed_if_sandbox_enabled:M.isAutoAllowBashIfSandboxedEnabled(),auto_updater_disabled:az(),prefers_reduced_motion:S().prefersReducedMotion??!1,...gK()})}var P=11;function oX(){if(W().migrationVersion!==P)Hz(),Vz(),Nz(),Pz(),Rz(),Lz(),Fz(),Az(),Gz(),yz(),$((K)=>K.migrationVersion===P?K:{...K,migrationVersion:P});zK().catch(()=>{})}function sX(){if(Sz()){T("info","prefetch_system_context_non_interactive"),j();return}if(gz())T("info","prefetch_system_context_has_trust"),j();else T("info","prefetch_system_context_skipped_no_trust")}function tX(){E("eagerLoadSettings_start");let K=b("--settings");if(K)Xz(K);let z=b("--setting-sources");if(z!==void 0)Yz(z);E("eagerLoadSettings_end")}function eX(K){if(process.env.CLAUDE_CODE_ENTRYPOINT)return;let z=process.argv.slice(2),Q=z.indexOf("mcp");if(Q!==-1&&z[Q+1]==="serve"){process.env.CLAUDE_CODE_ENTRYPOINT="mcp";return}if(v(process.env.CLAUDE_CODE_ACTION)){process.env.CLAUDE_CODE_ENTRYPOINT="claude-code-github-action";return}process.env.CLAUDE_CODE_ENTRYPOINT=K?"sdk-cli":"cli"}async function zY({hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktreeEnabled:x,skipWebFetchPreflight:KK,githubActionInputs:p,dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,allowDangerouslySkipPermissionsPassed:ZK,systemPromptFlag:c,appendSystemPromptFlag:d,thinkingConfig:$K,assistantActivationPath:u,isCoordinator:qK}){try{Z("tengu_init",{entrypoint:"claude",hasInitialPrompt:K,hasStdin:z,verbose:Q,debug:X,debugToStderr:Y,print:J,outputFormat:B,inputFormat:D,numAllowedTools:f,numDisallowedTools:h,mcpClientCount:m,worktree:x,skipWebFetchPreflight:KK,...p&&{githubActionInputs:p},dangerouslySkipPermissionsPassed:QK,permissionMode:XK,modeIsBypass:YK,inProtectedNamespace:mz(),allowDangerouslySkipPermissionsPassed:ZK,thinkingType:$K.type,...c&&{systemPromptFlag:c},...d&&{appendSystemPromptFlag:d},is_simple:hz()||void 0,is_coordinator:qK||void 0,...u&&{assistantActivationPath:u},autoUpdatesChannel:S().autoUpdatesChannel??"latest"})}catch(HK){V(HK)}}function KY(K){}function QY(K){return}
|
|
8
|
-
export{ZQ as M,$Q as N,qQ as O,HQ as P,nX as Q,rX as R,iX as S,oX as T,sX as U,tX as V,eX as W,zY as X,KY as Y,QY as Z};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A1 as V,M4 as j,k5 as f,n4 as M,v1 as G,z1 as W}from"./cli-0.6.4-2mytx51g.mjs";import{sba as x,tba as B,v9 as w,w9 as z,z9 as Y}from"./cli-0.6.4-em2mfvpg.mjs";import{iga as J,qga as F}from"./cli-0.6.4-4b3h6h1j.mjs";import{wpa as Z}from"./cli-0.6.4-yrfkm9my.mjs";function g(){q=void 0,w()}function p(){if(q!==void 0)return q;if(G()!=="firstParty")return q=z(!1);if(!W())return q=z(!1);if(x())return q=z(!1);if(process.env.CLAUDE_CODE_ENTRYPOINT==="local-agent")return q=z(!1);let Q=j();if(Q?.accessToken&&Q.subscriptionType===null)return q=z(!0);if(Q?.accessToken&&Q.scopes?.includes(J)&&(Q.subscriptionType==="enterprise"||Q.subscriptionType==="team"))return q=z(!0);try{let{key:$}=M({skipRetrievingKeyFromApiKeyHelper:!0});if($)return q=z(!0)}catch{}return q=z(!1)}var q;var X=Z(()=>{F();f();V();B();Y()});function S(Q){let $=Q.toUpperCase();return K.has($)||k.some((m)=>$.startsWith(m))}var K,k,y,I;var b=Z(()=>{K=new Set(["CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL","ANTHROPIC_VERTEX_BASE_URL","ANTHROPIC_FOUNDRY_BASE_URL","ANTHROPIC_FOUNDRY_RESOURCE","ANTHROPIC_VERTEX_PROJECT_ID","CLOUD_ML_REGION","ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_BEARER_TOKEN_BEDROCK","ANTHROPIC_FOUNDRY_API_KEY","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","ANTHROPIC_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_SMALL_FAST_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","CLAUDE_CODE_SUBAGENT_MODEL"]),k=["VERTEX_REGION_CLAUDE_"];y=["apiKeyHelper","awsAuthRefresh","awsCredentialExport","gcpAuthRefresh","otelHeadersHelper","statusLine"],I=new Set(["ANTHROPIC_CUSTOM_HEADERS","ANTHROPIC_CUSTOM_MODEL_OPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","ANTHROPIC_SMALL_FAST_MODEL","AWS_DEFAULT_REGION","AWS_PROFILE","AWS_REGION","BASH_DEFAULT_TIMEOUT_MS","BASH_MAX_OUTPUT_LENGTH","BASH_MAX_TIMEOUT_MS","CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR","CLAUDE_CODE_API_KEY_HELPER_TTL_MS","CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS","CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC","CLAUDE_CODE_DISABLE_TERMINAL_TITLE","CLAUDE_CODE_ENABLE_TELEMETRY","CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS","CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL","CLAUDE_CODE_MAX_OUTPUT_TOKENS","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SUBAGENT_MODEL","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","CLAUDE_CODE_USE_VERTEX","DISABLE_AUTOUPDATER","DISABLE_BUG_COMMAND","DISABLE_COST_WARNINGS","DISABLE_ERROR_REPORTING","DISABLE_FEEDBACK_COMMAND","DISABLE_TELEMETRY","ENABLE_TOOL_SEARCH","MAX_MCP_OUTPUT_TOKENS","MAX_THINKING_TOKENS","MCP_TIMEOUT","MCP_TOOL_TIMEOUT","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_LOGS_PROTOCOL","OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE","OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_PROTOCOL","OTEL_EXPORTER_OTLP_PROTOCOL","OTEL_EXPORTER_OTLP_TRACES_HEADERS","OTEL_LOG_TOOL_DETAILS","OTEL_LOG_USER_PROMPTS","OTEL_LOGS_EXPORT_INTERVAL","OTEL_LOGS_EXPORTER","OTEL_METRIC_EXPORT_INTERVAL","OTEL_METRICS_EXPORTER","OTEL_METRICS_INCLUDE_ACCOUNT_UUID","OTEL_METRICS_INCLUDE_SESSION_ID","OTEL_METRICS_INCLUDE_VERSION","OTEL_RESOURCE_ATTRIBUTES","USE_BUILTIN_RIPGREP","VERTEX_REGION_CLAUDE_3_5_HAIKU","VERTEX_REGION_CLAUDE_3_5_SONNET","VERTEX_REGION_CLAUDE_3_7_SONNET","VERTEX_REGION_CLAUDE_4_0_OPUS","VERTEX_REGION_CLAUDE_4_0_SONNET","VERTEX_REGION_CLAUDE_4_1_OPUS","VERTEX_REGION_CLAUDE_4_5_SONNET","VERTEX_REGION_CLAUDE_4_6_SONNET","VERTEX_REGION_CLAUDE_HAIKU_4_5"])});
|
|
2
|
-
export{g as hS,p as iS,X as jS,S as kS,y as lS,I as mS,b as nS};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{od as Jq,sd as Tq}from"./cli-0.6.4-ex2d76ze.mjs";import{Ad as bq,zd as zq}from"./cli-0.6.4-4jc68p21.mjs";import{$I as t,BI as S,EI as Nq,HJ as D,KJ as Cq,PI as s,QI as _q,Qm as n,Rm as yq,UI as a,XI as l,eJ as e,fG as u,gG as fq,gJ as Rq,nJ as qq,rJ as Fq,uE as r,vE as Gq}from"./cli-0.6.4-4g9qybcx.mjs";import{AY as C,VW as i,WW as Kq,dX as Bq,dZ as Oq,yY as F}from"./cli-0.6.4-z3hp0qzv.mjs";import{D0 as v,E0 as R,F0 as p}from"./cli-0.6.4-btcax77x.mjs";import{G0 as Lq}from"./cli-0.6.4-n9mgjg26.mjs";import{$7 as $,G9 as x,P7 as g,Pda as m,Q7 as Zq,Xda as wq,Y8 as o,Z8 as Hq,a_ as vq,b8 as Xq}from"./cli-0.6.4-em2mfvpg.mjs";import{tha as B,wha as Yq}from"./cli-0.6.4-x6npewbm.mjs";import{Mha as P,Pha as h,Uha as Wq}from"./cli-0.6.4-rqmfmwew.mjs";import{spa as d,wpa as Vq}from"./cli-0.6.4-yrfkm9my.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(h(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(h(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(u,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function uq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:hq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(u,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(uq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',hq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
|
|
2
|
-
export{Iq as ed,Yz as fd,Dq as gd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Tc as Z,Uc as _,Vc as $,Yc as O}from"./cli-0.6.4-9wdpd5tf.mjs";import{nd as Y,sd as x}from"./cli-0.6.4-ex2d76ze.mjs";import{YI as U,bJ as W,gJ as S,hJ as X,rJ as V}from"./cli-0.6.4-4g9qybcx.mjs";import{tha as R,wha as K}from"./cli-0.6.4-x6npewbm.mjs";import{Nha as Q,Uha as C}from"./cli-0.6.4-rqmfmwew.mjs";x();K();C();V();S();O();function b(G,J,L){let H=new Set(J.plugins.map((z)=>z.name)),A=`@${L}`,q=[];for(let z of Object.keys(G.plugins)){if(!z.endsWith(A))continue;let h=z.slice(0,-A.length);if(!H.has(h))q.push(z)}return q}async function F(){await Z();let G=X(),J=_(),L=await U(),H=[];for(let A of Object.keys(L))try{let q=await W(A);if(!q.forceRemoveDeletedPlugins)continue;let z=b(G,q,A);for(let h of z){if(h in J)continue;let T=G.plugins[h]??[];if(!T.some((B)=>B.scope==="user"||B.scope==="project"||B.scope==="local"))continue;for(let B of T){let{scope:E}=B;if(E!=="user"&&E!=="project"&&E!=="local")continue;try{await Y(h,E)}catch(v){R(`Failed to auto-uninstall delisted plugin ${h} from ${E}: ${Q(v)}`,{level:"error"})}}await $(h),H.push(h)}}catch(q){R(`Failed to check for delisted plugins in "${A}": ${Q(q)}`,{level:"warn"})}return H}
|
|
2
|
-
export{F as eb};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{q as j,r as v}from"./cli-0.6.4-2sh53v7p.mjs";import{gg as C}from"./cli-0.6.4-sk4r23n0.mjs";import{YR as S,ZR as b}from"./cli-0.6.4-cy7jqdcj.mjs";import{$Z as E,ZZ as R}from"./cli-0.6.4-dhyghbjg.mjs";import{afa as Z,cfa as U,dfa as w,efa as z}from"./cli-0.6.4-s062axqp.mjs";import{Afa as I,nfa as L}from"./cli-0.6.4-4qyz0e3r.mjs";import{Yga as D,Zga as T,bha as u,tha as M,wha as l}from"./cli-0.6.4-x6npewbm.mjs";import{Nha as f,Uha as p}from"./cli-0.6.4-rqmfmwew.mjs";import{Hoa as k,Zoa as h}from"./cli-0.6.4-ge6qg76s.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 a,o as b,JJ as c,KJ as d,QJ as e,XJ as f,WJ as g,HJ as h,g as i};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ah as CJ,zh as B}from"./cli-0.6.4-5eshcq2g.mjs";import{Au as wJ,Cu as JQ,Im as DJ,Jm as lJ,Km as PJ,Lm as tJ,Mm as VJ,Nm as eJ,dq as vq,eq as n,fq as NJ,lu as Bq,mq as TJ,mu as kq,nu as yJ,oq as OJ,sq as JJ,tq as uq,tx as FJ,uE as BJ,ux as QQ,wE as ZQ,wm as AJ,wq as MJ,xm as rJ,xq as QJ,zu as Cq}from"./cli-0.6.4-4g9qybcx.mjs";import{kV as RJ,lV as aJ}from"./cli-0.6.4-bgwzkgj9.mjs";import{AW as LJ,BW as oJ,JW as jJ,KW as qQ}from"./cli-0.6.4-1nzpzrfm.mjs";import{AY as D,CY as nq,DY as EJ,dX as sJ,dZ as hJ,yY as O}from"./cli-0.6.4-z3hp0qzv.mjs";import{C0 as IJ,D0 as H,E0 as j,F0 as zJ}from"./cli-0.6.4-btcax77x.mjs";import{G0 as nJ}from"./cli-0.6.4-n9mgjg26.mjs";import{D3 as dJ,K2 as HJ,N3 as kJ,P2 as pJ,R4 as _J,S3 as GQ,k5 as HQ,l3 as mq,n3 as s,v2 as bq,w2 as GJ,w3 as i,y2 as Eq,z3 as yq}from"./cli-0.6.4-2mytx51g.mjs";import{G5 as K,H5 as xJ}from"./cli-0.6.4-x3pc9zn1.mjs";import{P_ as aq,Q_ as lq,R_ as _q,S_ as tq,T_ as eq,Taa as UJ,U_ as qJ,Vaa as WJ,c$ as $J,gba as iJ}from"./cli-0.6.4-em2mfvpg.mjs";import{rga as KJ,tga as cJ}from"./cli-0.6.4-ksf3bj49.mjs";import{spa as XJ,wpa as Rq}from"./cli-0.6.4-yrfkm9my.mjs";function hq(J){let q=J.messageActionsBackground;return q==="ansi:white"||q==="ansi:whiteBright"?J.inactive:q}function mJ(J){let q=J.userMessageBackground;return q==="ansi:white"||q==="ansi:whiteBright"?J.inactive:q}function z(J,q,Q){if(q.startsWith("ansi:")){let Y=q.slice(5);if(Q==="fg")return J[Y]??J;let X=`bg${Y[0].toUpperCase()}${Y.slice(1)}`;return J[X]??J}if(q.startsWith("#"))return Q==="fg"?J.hex(q):J.bgHex(q);if(q.startsWith("ansi256(")){let Y=parseInt(q.slice(8));return Q==="fg"?J.ansi256(Y):J.bgAnsi256(Y)}let Z=bJ.exec(q);if(Z){let[Y,X,U]=[+Z[1],+Z[2],+Z[3]];return Q==="fg"?J.rgb(Y,X,U):J.bgRgb(Y,X,U)}return J}function PQ(J,q,Q,Z,Y){if(!B())return uJ(J,q,Q,Z,Y);let{suggestion:X,messageActionsBackground:U}=Y,G=U==="ansi:white"||U==="ansi:whiteBright"?Y.inactive:U,R=Y.inverseText,I=Y.suggestion,F=z(z(K,X,"bg"),R,"fg").bold,L=z(z(K,X,"fg"),G,"bg"),A=z(z(K,G,"bg"),I,"fg"),T=z(K,G,"fg"),Pq=z(K,X,"fg"),P=F(` ${J} `);if(q){if(P+=L(w),P+=A(` ${sq} ${q}`),Q>0||Z>0){if(P+=A(" ("),Q>0)P+=z(z(K,G,"bg"),Y.success,"fg")(`↑${Q}`);if(Q>0&&Z>0)P+=A(" ");if(Z>0)P+=z(z(K,G,"bg"),Y.warning,"fg")(`↓${Z}`);P+=A(")")}P+=A(" "),P+=T(w)}else P+=Pq(w);return P}function VQ(J,q,Q){if(!B()){let G=z(K,q.suggestion,"fg").bold;return`[ ${G(J)} ]`}let{suggestion:Z,inverseText:Y}=q,X=z(z(K,Z,"bg"),Y,"fg").bold,U=Q?z(z(K,Q,"bg"),Z,"fg"):z(K,Z,"fg");return X(` ${J} `)+U(w)}function jQ(J,q,Q){if(!J)return"";if(!B()){let G=z(K,q.suggestion,"fg").bold;return`[ ${G(J.trim())} ]`}let{suggestion:Z,inverseText:Y}=q,X=z(z(K,Z,"bg"),Y,"fg").bold,U=Q?z(z(K,Q,"bg"),Z,"fg"):z(K,Z,"fg");return X(` ${J}`)+U(w)}function NQ(J,q,Q){if(!J)return"";if(!B())return`[ ${z(K,q.suggestion,"fg")(J.trim())} ]`;let Z=hq(q),Y=q.suggestion,X=z(z(K,Z,"bg"),Y,"fg"),U=Q?z(z(K,Q,"bg"),Z,"fg"):z(K,Z,"fg");return X(` ${J}`)+U(w)}function rq(J,q,Q){if(!J)return"";if(!B())return`[ ${J} ]`;let Z=z(z(K,q,"bg"),Q.inverseText,"fg").bold,Y=z(K,q,"fg");return Z(` ${J} `)+Y(w)}function TQ(J,q,Q,Z,Y){if(!J)return"";if(!B()){let L=z(K,Z.suggestion,"fg")(J);if(q>0||Q>0){if(L+=" (",q>0)L+=z(K,Z.success,"fg")(`↑${q}`);if(q>0&&Q>0)L+=" ";if(Q>0)L+=z(K,Z.warning,"fg")(`↓${Q}`);L+=")"}return`[ ${L} ]`}let X=hq(Z),U=Z.suggestion,G=z(z(K,X,"bg"),U,"fg"),R=Y?z(z(K,Y,"bg"),X,"fg"):z(K,X,"fg"),I=G(` ${sq} ${J}`);if(q>0||Q>0){if(I+=G(" ("),q>0)I+=z(z(K,X,"bg"),Z.success,"fg")(`↑${q}`);if(q>0&&Q>0)I+=G(" ");if(Q>0)I+=z(z(K,X,"bg"),Z.warning,"fg")(`↓${Q}`);I+=G(")")}return I+=G(" "),I+=R(w),I}function dq(J,q){if(!q||!nq())return J;return`${Bq}${q}${kq}${J}${Bq}${kq}`}function OQ(J,q,Q,Z="PR",Y){if(!B()){let F=q==="approved"?Q.success:q==="changes_requested"?Q.error:q==="pending"?Q.warning:q==="merged"?Q.merged:Q.inactive,L=dq(z(K,F,"fg")(`#${J}`),Y);return`[ ${z(K,Q.inactive,"fg")(Z)} ${L} ]`}let X=mJ(Q),U=q==="approved"?Q.success:q==="changes_requested"?Q.error:q==="pending"?Q.warning:q==="merged"?Q.merged:Q.inactive,G=z(z(K,X,"bg"),Q.inactive,"fg"),R=z(z(K,X,"bg"),U,"fg"),I=z(K,X,"fg");return G(` ${gJ} `)+dq(R(`#${J}`),Y)+G(" ")+I(w)}function uJ(J,q,Q,Z,Y){let X=z(K,Y.suggestion,"fg").bold,U=`[ ${X(J)} ]`;if(q){let R=z(K,Y.suggestion,"fg")(q);if(Q>0||Z>0){if(R+=" (",Q>0)R+=z(K,Y.success,"fg")(`↑${Q}`);if(Q>0&&Z>0)R+=" ";if(Z>0)R+=z(K,Y.warning,"fg")(`↓${Z}`);R+=")"}U+=` [ ${R} ]`}return U}var w="",sq="",gJ="",bJ;var oq=Rq(()=>{xJ();EJ();yJ();CJ();bJ=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/});function fJ(J,q){if(vq(J))return q.suggestion;switch(J){case"low":return q.inactive;case"medium":return q.warning;case"high":return q.claude;case"xhigh":return q.error;case"max":return q.merged;default:return q.error}}function kQ(J,q,Q){if(!n(q))return;let Z=JJ(q,J),Y=fJ(Z,Q);return{pill:rq(`${Sq(Z)} ${Z}`,Y,Q),bg:Y}}function Sq(J){if(vq(J))return qJ;switch(J){case"low":return aq;case"medium":return lq;case"high":return _q;case"xhigh":return tq;case"max":return eq;default:return _q}}var ZJ=Rq(()=>{$J();QJ();oq()});function rQ(J){let q=$q.c(82),{initial:Q,sessionModel:Z,onSelect:Y,onCancel:X,isStandaloneCommand:U,showFastModeNotice:G,headerText:R,skipSettingsWrite:I}=J,F=wJ(),L=RJ(),A=Q===null?h:Q,[T,Pq]=Dq.useState(A),P=Cq(KQ),[k,vJ]=Dq.useState(!1),_=Cq(XQ),r;if(q[0]!==_)r=_!==void 0?uq(_):void 0,q[0]=_,q[1]=r;else r=q[1];let[v,fq]=Dq.useState(r),Vq=P??!1,o;if(q[2]!==Vq)o=FJ(Vq),q[2]=Vq,q[3]=o;else o=q[3];let p=o,jq;q:{if(Q!==null&&!p.some((W)=>{if(W.value===Q)return!0;if(W.value===null)return!1;try{return s(i(String(W.value)))===s(i(Q))}catch{return!1}})){let W;if(q[4]!==Q)W=yq(Q),q[4]=Q,q[5]=W;else W=q[5];let V;if(q[6]!==Q||q[7]!==W)V={value:Q,label:W,description:"Current model"},q[6]=Q,q[7]=W,q[8]=V;else V=q[8];let S;if(q[9]!==p||q[10]!==V)S=[...p,V],q[9]=p,q[10]=V,q[11]=S;else S=q[11];jq=S;break q}jq=p}let Nq=jq,a;if(q[12]!==Nq)a=Nq.map(YQ),q[12]=Nq,q[13]=a;else a=q[13];let N=a,l;if(q[14]!==A||q[15]!==N)l=N.find((W)=>{if(W.value===A)return!0;if(A===h||W.value===null)return!1;try{return s(i(String(W.value)))===s(i(String(A)))}catch{return!1}})?.value??N[0]?.value??void 0,q[14]=A,q[15]=N,q[16]=l;else l=q[16];let Tq=l,t=Math.min(10,N.length),e=Math.max(0,N.length-t),qq;if(q[17]!==T||q[18]!==N)qq=N.find((W)=>W.value===T)?.label,q[17]=T,q[18]=N,q[19]=qq;else qq=q[19];let Jq=qq,M,Qq;if(q[20]!==T){let W=gq(T);M=W?n(W):!1,Qq=W?NJ(W):!1,q[20]=T,q[21]=M,q[22]=Qq}else M=q[21],Qq=q[22];let Zq=Qq,zq;if(q[23]!==T)zq=xq(T),q[23]=T,q[24]=zq;else zq=q[24];let x=zq,d=v==="max"&&!Zq?"high":v,Yq;if(q[25]!==_||q[26]!==k)Yq=(W)=>{if(Pq(W),!k&&_===void 0)fq(xq(W))},q[25]=_,q[26]=k,q[27]=Yq;else Yq=q[27];let Oq=Yq,Xq;if(q[28]!==x||q[29]!==M||q[30]!==Zq)Xq=(W)=>{if(!M)return;fq((V)=>UQ(V??x,W,Zq)),vJ(!0)},q[28]=x,q[29]=M,q[30]=Zq,q[31]=Xq;else Xq=q[31];let Kq=Xq,Uq;if(q[32]!==Kq)Uq={"modelPicker:decreaseEffort":()=>Kq("left"),"modelPicker:increaseEffort":()=>Kq("right")},q[32]=Kq,q[33]=Uq;else Uq=q[33];let Wq;if(q[34]===Symbol.for("react.memo_cache_sentinel"))Wq={context:"ModelPicker"},q[34]=Wq;else Wq=q[34];LJ(Uq,Wq);let Gq;if(q[35]!==v||q[36]!==k||q[37]!==Y||q[38]!==F||q[39]!==I)Gq=function(V){if(KJ("tengu_model_command_menu_effort",{effort:v}),!I){let iq=OJ(v,xq(V),UJ("userSettings")?.effortLevel,k),pq=TJ(iq);if(pq!==void 0)WJ("userSettings",{effortLevel:pq});F((SJ)=>({...SJ,effortValue:iq}))}let S=gq(V),cq=k&&S&&n(S)?v:void 0;if(V===h){Y(null,cq);return}Y(V,cq)},q[35]=v,q[36]=k,q[37]=Y,q[38]=F,q[39]=I,q[40]=Gq;else Gq=q[40];let Mq=Gq,Hq;if(q[41]===Symbol.for("react.memo_cache_sentinel"))Hq=H(D,{color:"remember",bold:!0,children:"Select model"}),q[41]=Hq;else Hq=q[41];let wq=R??"Switch between Claude models. Applies to this session and future Claude Code sessions. For other/previous model names, specify with --model.",E;if(q[42]!==wq)E=H(D,{dimColor:!0,children:wq}),q[42]=wq,q[43]=E;else E=q[43];let y;if(q[44]!==Z)y=Z&&j(D,{dimColor:!0,children:["Currently using ",yq(Z)," for this session (set by plan mode). Selecting a model will undo this."]}),q[44]=Z,q[45]=y;else y=q[45];let C;if(q[46]!==E||q[47]!==y)C=j(O,{marginBottom:1,flexDirection:"column",children:[Hq,E,y]}),q[46]=E,q[47]=y,q[48]=C;else C=q[48];let Fq=X??zQ,g;if(q[49]!==Oq||q[50]!==Mq||q[51]!==Tq||q[52]!==A||q[53]!==N||q[54]!==Fq||q[55]!==t)g=H(O,{flexDirection:"column",children:H(BJ,{defaultValue:A,defaultFocusValue:Tq,options:N,onChange:Mq,onFocus:Oq,onCancel:Fq,visibleOptionCount:t})}),q[49]=Oq,q[50]=Mq,q[51]=Tq,q[52]=A,q[53]=N,q[54]=Fq,q[55]=t,q[56]=g;else g=q[56];let b;if(q[57]!==e)b=e>0&&H(O,{paddingLeft:3,children:j(D,{dimColor:!0,children:["and ",e," more…"]})}),q[57]=e,q[58]=b;else b=q[58];let m;if(q[59]!==g||q[60]!==b)m=j(O,{flexDirection:"column",marginBottom:1,children:[g,b]}),q[59]=g,q[60]=b,q[61]=m;else m=q[61];let u;if(q[62]!==d||q[63]!==x||q[64]!==Jq||q[65]!==M)u=H(O,{marginBottom:1,flexDirection:"column",children:M?j(D,{dimColor:!0,children:[H(YJ,{effort:d})," ",AJ(d)," effort",d===x?" (default)":""," ",H(D,{color:"subtle",children:"← → to adjust"})]}):j(D,{color:"subtle",children:[H(YJ,{effort:void 0})," Effort not supported",Jq?` for ${Jq}`:""]})}),q[62]=d,q[63]=x,q[64]=Jq,q[65]=M,q[66]=u;else u=q[66];let $;if(q[67]!==G)$=bq()?G?H(O,{marginBottom:1,children:j(D,{dimColor:!0,children:["Fast mode is ",H(D,{bold:!0,children:"ON"})," and available with"," ",Eq," only (/fast). Switching to other models turn off fast mode."]})}):GJ()&&!HJ()?H(O,{marginBottom:1,children:j(D,{dimColor:!0,children:["Use ",H(D,{bold:!0,children:"/fast"})," to turn on Fast mode (",Eq," only)."]})}):null:null,q[67]=G,q[68]=$;else $=q[68];let f;if(q[69]!==C||q[70]!==m||q[71]!==u||q[72]!==$)f=j(O,{flexDirection:"column",children:[C,m,u,$]}),q[69]=C,q[70]=m,q[71]=u,q[72]=$,q[73]=f;else f=q[73];let c;if(q[74]!==L||q[75]!==U)c=U&&H(D,{dimColor:!0,italic:!0,children:L.pending?j(IJ,{children:["Press ",L.keyName," again to exit"]}):j(VJ,{children:[H(DJ,{shortcut:"Enter",action:"confirm"}),H(PJ,{action:"select:cancel",context:"Select",fallback:"Esc",description:"exit"})]})}),q[74]=L,q[75]=U,q[76]=c;else c=q[76];let Iq;if(q[77]!==f||q[78]!==c)Iq=j(O,{flexDirection:"column",children:[f,c]}),q[77]=f,q[78]=c,q[79]=Iq;else Iq=q[79];let Aq=Iq;if(!U)return Aq;let Lq;if(q[80]!==Aq)Lq=H(jJ,{color:"permission",children:Aq}),q[80]=Aq,q[81]=Lq;else Lq=q[81];return Lq}function zQ(){}function YQ(J){return{...J,value:J.value===null?h:J.value}}function XQ(J){return J.effortValue}function KQ(J){return bq()?J.fastMode:!1}function gq(J){if(!J)return;return J===h?mq():i(J)}function YJ(J){let q=$q.c(5),{effort:Q}=J,Z=Q?"claude":"subtle",Y=Q??"low",X;if(q[0]!==Y)X=Sq(Y),q[0]=Y,q[1]=X;else X=q[1];let U;if(q[2]!==Z||q[3]!==X)U=H(D,{color:Z,children:X}),q[2]=Z,q[3]=X,q[4]=U;else U=q[4];return U}function UQ(J,q,Q){let Z=Q?["low","medium","high","max"]:["low","medium","high"],Y=Z.indexOf(J),X=Y!==-1?Y:Z.indexOf("high");if(q==="right")return Z[(X+1)%Z.length];else return Z[(X-1+Z.length)%Z.length]}function xq(J){let q=gq(J)??mq(),Q=MJ(q);return Q!==void 0?uq(Q):"high"}var $q,Dq,h="__NO_PREFERENCE__";var WQ=Rq(()=>{rJ();aJ();cJ();pJ();hJ();oJ();JQ();QJ();dJ();QQ();iJ();tJ();ZQ();eJ();lJ();qQ();ZJ();zJ();$q=XJ(sJ(),1),Dq=XJ(nJ(),1)});function eQ(J,q,Q){if(!_J())return!1;if(q)return!0;if(J===null||!kJ(J))return!1;let Z=J.toLowerCase().replace(/\[1m\]$/,"").trim(),Y=Z==="opus"||Z.includes("opus-4-6")||Z.includes("opus-4-7"),X=Z==="sonnet"||Z.includes("sonnet-4-6");if(Y&&Q)return!1;return Y||X}var IQ=Rq(()=>{HQ();GQ()});
|
|
2
|
-
export{hq as lg,mJ as mg,PQ as ng,VQ as og,jQ as pg,NQ as qg,TQ as rg,OQ as sg,oq as tg,kQ as ug,Sq as vg,ZJ as wg,rQ as xg,WQ as yg,eQ as zg,IQ as Ag};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{iS as N,jS as p,kS as F,mS as U,nS as A}from"./cli-0.6.4-t13eh9gb.mjs";import{B5 as x,D5 as H,E5 as k,l5 as L,m5 as P,p5 as O,r5 as V}from"./cli-0.6.4-k498jsqp.mjs";import{Taa as X,Yba as Z,Zaa as Y,gba as K,q_ as I,rca as M,s_ as D}from"./cli-0.6.4-em2mfvpg.mjs";import{_ha as $,iia as b}from"./cli-0.6.4-43y102gt.mjs";import{wpa as G}from"./cli-0.6.4-yrfkm9my.mjs";function R(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:T,CLAUDE_CODE_OAUTH_TOKEN:f,...m}=q;return m}function _(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!F(B))z[B]=Q;return z}function h(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return h(_(R(q)))}function r(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Z().env));for(let z of w){if(z==="policySettings")continue;if(!I(z))continue;Object.assign(process.env,J(X(z)?.env))}N(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Y()?.env);for(let[z,B]of Object.entries(q))if(U.has(z.toUpperCase()))process.env[z]=B}function g(){Object.assign(process.env,J(Z().env)),Object.assign(process.env,J(Y()?.env)),L(),O(),H(),x()}var W,w;var j=G(()=>{p();P();M();b();A();V();k();D();K();w=["userSettings","flagSettings","policySettings"]});
|
|
2
|
-
export{r as gc,g as hc,j as ic};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{HO as R,_N as Y,il as W,ll as P,qj as Q,rj as I}from"./cli-0.6.4-4g9qybcx.mjs";import{$da as f,_da as B}from"./cli-0.6.4-prdj94yp.mjs";import{Lfa as H,Mfa as J,gga as F}from"./cli-0.6.4-95vk17cy.mjs";import{Nna as $,Oja as v}from"./cli-0.6.4-1k1e5y32.mjs";import{wpa as Z}from"./cli-0.6.4-yrfkm9my.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();F();I();f();R();P()});
|
|
2
|
-
export{S as $d,V as ae,X as be,r as ce,w as de,T as ee,G as fe};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{o as f}from"./cli-0.6.4-2sh53v7p.mjs";import{Pr as F,Qr as i}from"./cli-0.6.4-4g9qybcx.mjs";import{$R as z,WR as T,ZR as e,_R as k,eS as d}from"./cli-0.6.4-cy7jqdcj.mjs";import{E5 as c,o5 as W,r5 as m,y5 as y,z5 as U}from"./cli-0.6.4-k498jsqp.mjs";import{X7 as Z,Z7 as R}from"./cli-0.6.4-em2mfvpg.mjs";import{afa as V,cfa as I,dfa as N,efa as v}from"./cli-0.6.4-s062axqp.mjs";import{Afa as b,pfa as E}from"./cli-0.6.4-4qyz0e3r.mjs";import{rga as q,tga as h}from"./cli-0.6.4-ksf3bj49.mjs";import{Yga as O,bha as p,tha as Y,wha as _}from"./cli-0.6.4-x6npewbm.mjs";import{_ha as H,iia as w}from"./cli-0.6.4-43y102gt.mjs";import{Hoa as S,Zoa as s}from"./cli-0.6.4-ge6qg76s.mjs";import{xpa as u}from"./cli-0.6.4-yrfkm9my.mjs";I();b();v();var j={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var x={message:"must be 0 (disabled) or ≥100ms"},C=N(()=>V.object({poll_interval_ms_not_at_capacity:V.number().int().min(100),poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x),non_exclusive_heartbeat_interval_ms:V.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x).default(j.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:V.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:V.number().int().min(0).default(120000)}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function BJ(){let J=E("tengu_bridge_poll_interval_config",j,300000),K=C().safeParse(J);return K.success?K.data:j}s();_();R();e();h();i();_();R();w();m();c();d();p();var g=`{"type":"keep_alive"}
|
|
2
|
-
`,t=1000,l=1000,D=30000,n=600000,r=1e4,o=300000,A=D*2,a=new Set([1002,4001,4003]);class L{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new F(t)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:U(this.url.href),tls:W()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-0.6.4-vqj09efm.mjs"),Q=new K(this.url.href,{headers:J,agent:y(this.url.href),...W()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)q("tengu_ws_transport_reconnected",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),k(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)q("tengu_ws_transport_closed",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&a.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>A)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<n){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let B=this.refreshHeaders();Object.assign(this.headers,B),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(l*Math.pow(2,this.reconnectAttempts-1),D),G=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(G)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)q("tengu_ws_transport_reconnecting",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(G)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},G)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((G)=>("uuid"in G)&&G.uuid===J);if($>=0){Q=$+1;let G=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(G),G.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${G.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:G.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let G=O($)+`
|
|
3
|
-
`;if(!this.sendLine(G)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=O(J)+`
|
|
4
|
-
`;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>A){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},r)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),H(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(g),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},o)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var JJ=100,KJ=15000,QJ=3000;class XJ extends L{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:G,onBatchDropped:B}=$??{};this.postUrl=YJ(J),this.uploader=new f({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:G,onBatchDropped:(M,P)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:M,failures:P}),B?.(M,P)},send:(M)=>this.postOnce(M)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),JJ);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,QJ)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=T();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await S.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:KJ})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function YJ(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
|
|
5
|
-
export{j,BJ as k,L as l,XJ as m};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Ak as m,Lk as R,MA as Z,NA as $f,Ok as N,Pk as M,Qm as c,Rm as Yf,TQ as Bf,UQ as Hf,Vk as yf,fG as v,gG as zf,gl as X,ll as Af,mP as n,oP as Xf,uE as S,vE as qf}from"./cli-0.6.4-4g9qybcx.mjs";import{tS as a,uS as Jf}from"./cli-0.6.4-jvfz5yaf.mjs";import{AY as d,dX as If,dZ as _f,yY as T}from"./cli-0.6.4-z3hp0qzv.mjs";import{D0 as Y,E0 as D,F0 as P}from"./cli-0.6.4-btcax77x.mjs";import{G0 as Of}from"./cli-0.6.4-n9mgjg26.mjs";import{$7 as b,b8 as Gf}from"./cli-0.6.4-em2mfvpg.mjs";import{rga as L,tga as e}from"./cli-0.6.4-ksf3bj49.mjs";import{tha as W,wha as ff}from"./cli-0.6.4-x6npewbm.mjs";import{spa as g,tpa as s,wpa as k}from"./cli-0.6.4-yrfkm9my.mjs";function E(){(Hf(),s(Bf)).saveWorktreeState(null)}function l({onDone:K,onCancel:_}){let[$,y]=q.useState("loading"),[O,I]=q.useState([]),[G,z]=q.useState(0),[p,A]=q.useState(),f=m();if(q.useEffect(()=>{async function B(){let J=[],H=await b("git",["status","--porcelain"]);if(H.stdout)J=H.stdout.split(`
|
|
2
|
-
`).filter((V)=>V.trim()!==""),I(J);if(f){let{stdout:V}=await b("git",["rev-list","--count",`${f.originalHeadCommit}..HEAD`]),w=parseInt(V.trim())||0;if(z(w),J.length===0&&w===0){y("removing"),M().then(()=>{process.chdir(f.originalCwd),Z(f.originalCwd),E(),X.cache.clear?.(),A("Worktree removed (no changes)")}).catch((t)=>{W(`Failed to clean up worktree: ${t}`,{level:"error"}),A("Worktree cleanup failed, exiting anyway")}).then(()=>{y("done")});return}else y("asking")}}B()},[f]),q.useEffect(()=>{if($==="done")K(p)},[$,K,p]),!f)return K("No active worktree session found",{display:"system"}),null;if($==="loading"||$==="done")return null;async function j(B){if(!f)return;let J=Boolean(f.tmuxSessionName);if(B==="keep"||B==="keep-with-tmux"){if(y("keeping"),L("tengu_worktree_kept",{commits:G,changed_files:O.length}),await N(),process.chdir(f.originalCwd),Z(f.originalCwd),E(),X.cache.clear?.(),J)A(`Worktree kept. Your work is saved at ${f.worktreePath} on branch ${f.worktreeBranch}. Reattach to tmux session with: tmux attach -t ${f.tmuxSessionName}`);else A(`Worktree kept. Your work is saved at ${f.worktreePath} on branch ${f.worktreeBranch}`);y("done")}else if(B==="keep-kill-tmux"){if(y("keeping"),L("tengu_worktree_kept",{commits:G,changed_files:O.length}),f.tmuxSessionName)await R(f.tmuxSessionName);await N(),process.chdir(f.originalCwd),Z(f.originalCwd),E(),X.cache.clear?.(),A(`Worktree kept at ${f.worktreePath} on branch ${f.worktreeBranch}. Tmux session terminated.`),y("done")}else if(B==="remove"||B==="remove-with-tmux"){if(y("removing"),L("tengu_worktree_removed",{commits:G,changed_files:O.length}),f.tmuxSessionName)await R(f.tmuxSessionName);try{await M(),process.chdir(f.originalCwd),Z(f.originalCwd),E(),X.cache.clear?.()}catch(V){W(`Failed to clean up worktree: ${V}`,{level:"error"}),A("Worktree cleanup failed, exiting anyway"),y("done");return}let H=J?" Tmux session terminated.":"";if(G>0&&O.length>0)A(`Worktree removed. ${G} ${G===1?"commit":"commits"} and uncommitted changes were discarded.${H}`);else if(G>0)A(`Worktree removed. ${G} ${G===1?"commit":"commits"} on ${f.worktreeBranch} ${G===1?"was":"were"} discarded.${H}`);else if(O.length>0)A(`Worktree removed. Uncommitted changes were discarded.${H}`);else A(`Worktree removed.${H}`);y("done")}}if($==="keeping")return D(T,{flexDirection:"row",marginY:1,children:[Y(v,{}),Y(d,{children:"Keeping worktree…"})]});if($==="removing")return D(T,{flexDirection:"row",marginY:1,children:[Y(v,{}),Y(d,{children:"Removing worktree…"})]});let x=f.worktreeBranch,U=O.length>0,F=G>0,Q="";if(U&&F)Q=`You have ${O.length} uncommitted ${O.length===1?"file":"files"} and ${G} ${G===1?"commit":"commits"} on ${x}. All will be lost if you remove.`;else if(U)Q=`You have ${O.length} uncommitted ${O.length===1?"file":"files"}. These will be lost if you remove the worktree.`;else if(F)Q=`You have ${G} ${G===1?"commit":"commits"} on ${x}. The branch will be deleted if you remove the worktree.`;else Q="You are working in a worktree. Keep it to continue working there, or remove it to clean up.";function r(){if(_){_();return}j("keep")}let h=U||F?"All changes and commits will be lost.":"Clean up the worktree directory.",C=Boolean(f.tmuxSessionName),o=C?[{label:"Keep worktree and tmux session",value:"keep-with-tmux",description:`Stays at ${f.worktreePath}. Reattach with: tmux attach -t ${f.tmuxSessionName}`},{label:"Keep worktree, kill tmux session",value:"keep-kill-tmux",description:`Keeps worktree at ${f.worktreePath}, terminates tmux session.`},{label:"Remove worktree and tmux session",value:"remove-with-tmux",description:h}]:[{label:"Keep worktree",value:"keep",description:`Stays at ${f.worktreePath}`},{label:"Remove worktree",value:"remove",description:h}];return Y(c,{title:"Exiting worktree session",subtitle:Q,onCancel:r,children:Y(S,{defaultFocusValue:C?"keep-with-tmux":"keep",options:o,onChange:j})})}var q;var u=k(()=>{e();ff();_f();Gf();Af();$f();yf();qf();Yf();zf();P();q=g(Of(),1)});function Qf(){return a(Kf)??"Goodbye!"}function xf(K){let _=i.c(5),{showWorktree:$,onDone:y,onCancel:O}=K,I;if(_[0]!==y)I=async function(p){y(p??Qf()),await n(0,"prompt_input_exit")},_[0]=y,_[1]=I;else I=_[1];let G=I;if($){let z;if(_[2]!==O||_[3]!==G)z=Y(l,{onDone:G,onCancel:O}),_[2]=O,_[3]=G,_[4]=z;else z=_[4];return z}return null}var i,Kf;var Vf=k(()=>{Jf();Xf();u();P();i=g(If(),1),Kf=["Goodbye!","See ya!","Bye!","Catch you later!"]});
|
|
3
|
-
export{xf as Jb,Vf as Kb};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{IU as c,xU as T}from"./cli-0.6.4-cp53mw1m.mjs";import{HV as w,KV as n}from"./cli-0.6.4-7jvtehkv.mjs";import{Y8 as y,Z8 as g,_7 as M,a8 as X,b8 as f}from"./cli-0.6.4-em2mfvpg.mjs";import{Yga as K,Zga as v,bha as m,tha as Z,wga as R,wha as h,yga as F}from"./cli-0.6.4-x6npewbm.mjs";import{Nha as Y,Sha as W,Uha as D}from"./cli-0.6.4-rqmfmwew.mjs";import{Xha as E,iia as S}from"./cli-0.6.4-43y102gt.mjs";import{Nna as j,Oja as k,Sja as A,Uja as N}from"./cli-0.6.4-1k1e5y32.mjs";import{wpa as H}from"./cli-0.6.4-yrfkm9my.mjs";function O(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function i(q,J=10){if(process.platform==="win32"){let Q=`
|
|
2
|
-
$pid = ${String(q)}
|
|
3
|
-
$ancestors = @()
|
|
4
|
-
for ($i = 0; $i -lt ${J}; $i++) {
|
|
5
|
-
$proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
|
|
6
|
-
if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
|
|
7
|
-
$pid = $proc.ParentProcessId
|
|
8
|
-
$ancestors += $pid
|
|
9
|
-
}
|
|
10
|
-
$ancestors -join ','
|
|
11
|
-
`.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.trim().split(",").filter(Boolean).map((G)=>parseInt(G,10)).filter((G)=>!isNaN(G))}let L=`pid=${String(q)}; for i in $(seq 1 ${J}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
|
|
12
|
-
`).filter(Boolean).map((Q)=>parseInt(Q,10)).filter((Q)=>!isNaN(Q))}function e(q){try{let J=String(q),L=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${J}\\").CommandLine"`:`ps -o command= -p ${J}`,z=M(L,{timeout:1000});return z?z.trim():null}catch{return null}}async function qq(q,J=10){if(process.platform==="win32"){let Q=`
|
|
13
|
-
$currentPid = ${String(q)}
|
|
14
|
-
$commands = @()
|
|
15
|
-
for ($i = 0; $i -lt ${J}; $i++) {
|
|
16
|
-
$proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
|
|
17
|
-
if (-not $proc) { break }
|
|
18
|
-
if ($proc.CommandLine) { $commands += $proc.CommandLine }
|
|
19
|
-
if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
|
|
20
|
-
$currentPid = $proc.ParentProcessId
|
|
21
|
-
}
|
|
22
|
-
$commands -join [char]0
|
|
23
|
-
`.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.split("\x00").filter(Boolean)}let L=`currentpid=${String(q)}; for i in $(seq 1 ${J}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var _=H(()=>{f()});import{chmod as u,mkdir as a,readdir as l,readFile as p,unlink as P,writeFile as b}from"fs/promises";import{join as $}from"path";function U(){return $(E(),"sessions")}function o(){return}async function Uq(){if(T()!=null)return!1;let q=o()??"interactive",J=U(),L=$(J,`${process.pid}.json`);R(async()=>{try{await P(L)}catch{}});try{return await a(J,{recursive:!0,mode:448}),await u(J,448),await b(L,K({pid:process.pid,sessionId:k(),cwd:N(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),A((z)=>{B({sessionId:z})}),!0}catch(z){return Z(`[concurrentSessions] register failed: ${Y(z)}`),!1}}async function B(q){let J=$(U(),`${process.pid}.json`);try{let L=v(await p(J,"utf8"));await b(J,K({...L,...q}))}catch(L){Z(`[concurrentSessions] updatePidFile failed: ${Y(L)}`)}}async function Bq(q){if(!q)return;await B({name:q})}async function C(q){await B({bridgeSessionId:q})}async function Mq(){let q=U(),J;try{J=await l(q)}catch(z){if(!W(z))Z(`[concurrentSessions] readdir failed: ${Y(z)}`);return 0}let L=0;for(let z of J){if(!/^\d+\.json$/.test(z))continue;let Q=parseInt(z.slice(0,-5),10);if(Q===process.pid){L++;continue}if(O(Q))L++;else if(y()!=="wsl")P($(q,z)).catch(()=>{})}return L}var I=H(()=>{j();F();h();S();D();_();g();m();c()});function Aq(q){x=q,C(r()??null).catch(()=>{})}function d(){return x}function r(){let q=d();return q?w(q.bridgeSessionId):void 0}var x=null;var t=H(()=>{I();n()});
|
|
24
|
-
export{O as cU,i as dU,e as eU,qq as fU,_ as gU,Uq as hU,Bq as iU,C as jU,Mq as kU,I as lU,Aq as mU,d as nU,r as oU,t as pU};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Fea as L,Jea as O}from"./cli-0.6.4-771h1906.mjs";import{wpa as N}from"./cli-0.6.4-yrfkm9my.mjs";function S(){if(!process.stdin.isTTY||D||process.argv.includes("-p")||process.argv.includes("--print"))return;D=!0,z="";try{process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdin.ref(),F=()=>{let q=process.stdin.read();while(q!==null){if(typeof q==="string")P(q);q=process.stdin.read()}},process.stdin.on("readable",F)}catch{D=!1}}function P(q){let w=0;while(w<q.length){let K=q[w],A=K.charCodeAt(0);if(A===3){J(),process.exit(130);return}if(A===4){J();return}if(A===127||A===8){if(z.length>0){let M=L(z);z=z.slice(0,-(M.length||1))}w++;continue}if(A===27){w++;while(w<q.length&&!(q.charCodeAt(w)>=64&&q.charCodeAt(w)<=126))w++;if(w<q.length)w++;continue}if(A<32&&A!==9&&A!==10&&A!==13){w++;continue}if(A===13){z+=`
|
|
2
|
-
`,w++;continue}z+=K,w++}}function J(){if(!D)return;if(D=!1,F)process.stdin.removeListener("readable",F),F=null}function T(){J();let q=z.trim();return z="",q}function U(){return z.trim().length>0}function V(q){z=q}function W(){return D}var z="",D=!1,F=null;var Q=N(()=>{O()});
|
|
3
|
-
export{S as eZ,J as fZ,T as gZ,U as hZ,V as iZ,W as jZ,Q as kZ};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import{CY as JT,DY as ST,dZ as IT,wY as X}from"./cli-0.6.4-z3hp0qzv.mjs";import{G5 as K,H5 as VT}from"./cli-0.6.4-x3pc9zn1.mjs";import{$7 as Y,G_ as Q,I_ as UT,Pda as H,Vba as z,W9 as s,Xda as n,Y8 as BT,Yba as V,Z8 as _T,a_ as XT,b8 as o,cca as l,dca as d,e_ as FT,h_ as qT,i_ as OT,rca as D,xba as f,zba as YT}from"./cli-0.6.4-em2mfvpg.mjs";import{Dfa as E,Efa as QT}from"./cli-0.6.4-95vk17cy.mjs";import{Yga as GT,Zga as $T,bha as zT,fha as P,jha as KT}from"./cli-0.6.4-x6npewbm.mjs";import{Sha as u,Uha as LT}from"./cli-0.6.4-rqmfmwew.mjs";import{koa as r,loa as ZT}from"./cli-0.6.4-yxqfeka0.mjs";import{wpa as I}from"./cli-0.6.4-yrfkm9my.mjs";function m(){let T=f(E(),P().existsSync)!==null,w=s(E());return[{key:"workspace",text:"Ask Claude to create a new app or clone a repository",isComplete:!1,isCompletable:!0,isEnabled:w},{key:"claudemd",text:"Set up repo instructions (/init creates AGENTS.md or updates existing CLAUDE.md; either file counts)",isComplete:T,isCompletable:!0,isEnabled:!w}]}function M(){return m().filter(({isCompletable:T,isEnabled:w})=>T&&w).every(({isComplete:T})=>T)}var k=I(()=>{QT();XT();KT();YT()});function a(){if(l().hasCompletedProjectOnboarding)return;if(M())d((T)=>({...T,hasCompletedProjectOnboarding:!0}))}var fT;var h=I(()=>{ZT();D();k();k();fT=r(()=>{let T=l();if(T.hasCompletedProjectOnboarding||T.projectOnboardingSeenCount>=4||process.env.IS_DEMO)return!1;return!M()})});import{stat as i}from"fs/promises";import{homedir as xT}from"os";import{join as HT}from"path";function RT(T){z((w)=>({...w,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:T}))}function L(){z((T)=>({...T,appleTerminalSetupInProgress:!1}))}function WT(){let T=V();return{inProgress:T.appleTerminalSetupInProgress??!1,backupPath:T.appleTerminalBackupPath||null}}function _(){return HT(xT(),"Library","Preferences","com.apple.Terminal.plist")}async function t(){let T=_(),w=`${T}.bak`;try{let{code:v}=await Y("defaults",["export","com.apple.Terminal",T]);if(v!==0)return null;try{await i(T)}catch{return null}return await Y("defaults",["export","com.apple.Terminal",w]),RT(w),w}catch(v){return H(v),null}}async function e(){let{inProgress:T,backupPath:w}=WT();if(!T)return{status:"no_backup"};if(!w)return L(),{status:"no_backup"};try{await i(w)}catch{return L(),{status:"no_backup"}}try{let{code:v}=await Y("defaults",["import","com.apple.Terminal",w]);if(v!==0)return{status:"failed",backupPath:w};return await Y("killall",["cfprefsd"]),L(),{status:"restored"}}catch(v){return H(Error(`Failed to restore Terminal.app settings with: ${v}`)),L(),{status:"failed",backupPath:w}}}var TT=I(()=>{D();o();n()});import{randomBytes as y}from"crypto";import{copyFile as N,mkdir as c,readFile as p,writeFile as C}from"fs/promises";import{homedir as g,platform as A}from"os";import{dirname as MT,join as R}from"path";import{pathToFileURL as AT}from"url";function jT(){let T=process.env.VSCODE_GIT_ASKPASS_MAIN??"",w=process.env.PATH??"";return T.includes(".vscode-server")||T.includes(".cursor-server")||T.includes(".windsurf-server")||w.includes(".vscode-server")||w.includes(".cursor-server")||w.includes(".windsurf-server")}function Ww(){if(!Q.terminal||!(Q.terminal in j))return null;return j[Q.terminal]??null}function Z(T){if(!JT())return T;return`\x1B]8;;${AT(T).href}\x07${T}\x1B]8;;\x07`}function uT(){return A()==="darwin"&&Q.terminal==="Apple_Terminal"||Q.terminal==="vscode"||Q.terminal==="cursor"||Q.terminal==="windsurf"||Q.terminal==="alacritty"||Q.terminal==="zed"}async function ET(T){let w="";switch(Q.terminal){case"Apple_Terminal":w=await kT(T);break;case"vscode":w=await b("VSCode",T);break;case"cursor":w=await b("Cursor",T);break;case"windsurf":w=await b("Windsurf",T);break;case"alacritty":w=await lT(T);break;case"zed":w=await DT(T);break;case null:break}return z((v)=>{if(["vscode","cursor","windsurf","alacritty","zed"].includes(Q.terminal??"")){if(v.shiftEnterKeyBindingInstalled===!0)return v;return{...v,shiftEnterKeyBindingInstalled:!0}}else if(Q.terminal==="Apple_Terminal"){if(v.optionAsMetaKeyInstalled===!0)return v;return{...v,optionAsMetaKeyInstalled:!0}}return v}),a(),w}function Lw(){return V().shiftEnterKeyBindingInstalled===!0}function zw(){return V().hasUsedBackslashReturn===!0}function Vw(){if(!V().hasUsedBackslashReturn)z((w)=>({...w,hasUsedBackslashReturn:!0}))}async function _w(T,w,v){if(Q.terminal&&Q.terminal in j){let $=`Shift+Enter is natively supported in ${j[Q.terminal]}.
|
|
2
|
-
|
|
3
|
-
No configuration needed. Just use Shift+Enter to add newlines.`;return T($),null}if(!uT()){let $=Q.terminal||"your current terminal",B=BT(),J="";if(B==="macos")J=` • macOS: Apple Terminal
|
|
4
|
-
`;else if(B==="windows")J=` • Windows: Windows Terminal
|
|
5
|
-
`;let F=`Terminal setup cannot be run from ${$}.
|
|
6
|
-
|
|
7
|
-
This command configures a convenient Shift+Enter shortcut for multi-line prompts.
|
|
8
|
-
${K.dim("Note: You can already use backslash (\\\\) + return to add newlines.")}
|
|
9
|
-
|
|
10
|
-
To set up the shortcut (optional):
|
|
11
|
-
1. Exit tmux/screen temporarily
|
|
12
|
-
2. Run /terminal-setup directly in one of these terminals:
|
|
13
|
-
${J} • IDE: VSCode, Cursor, Windsurf, Zed
|
|
14
|
-
• Other: Alacritty
|
|
15
|
-
3. Return to tmux/screen - settings will persist
|
|
16
|
-
|
|
17
|
-
${K.dim("Note: iTerm2, WezTerm, Ghostty, Kitty, and Warp support Shift+Enter natively.")}`;return T(F),null}let q=await ET(w.options.theme);return T(q),null}async function b(T="VSCode",w){if(jT())return`${X("warning",w)(`Cannot install keybindings from a remote ${T} session.`)}${G}${G}${T} keybindings must be installed on your local machine, not the remote server.${G}${G}To install the Shift+Enter keybinding:${G}1. Open ${T} on your local machine (not connected to remote)${G}2. Open the Command Palette (Cmd/Ctrl+Shift+P) → "Preferences: Open Keyboard Shortcuts (JSON)"${G}3. Add this keybinding (the file must be a JSON array):${G}${G}${K.dim(`[
|
|
18
|
-
{
|
|
19
|
-
"key": "shift+enter",
|
|
20
|
-
"command": "workbench.action.terminal.sendSequence",
|
|
21
|
-
"args": { "text": "\\u001b\\r" },
|
|
22
|
-
"when": "terminalFocus"
|
|
23
|
-
}
|
|
24
|
-
]`)}${G}`;let v=T==="VSCode"?"Code":T,q=R(g(),A()==="win32"?R("AppData","Roaming",v,"User"):A()==="darwin"?R("Library","Application Support",v,"User"):R(".config",v,"User")),$=R(q,"keybindings.json");try{await c(q,{recursive:!0});let B="[]",J=[],F=!1;try{B=await p($,{encoding:"utf-8"}),F=!0,J=FT(B)??[]}catch(x){if(!u(x))throw x}if(F){let x=y(4).toString("hex"),S=`${$}.${x}.bak`;try{await N($,S)}catch{return`${X("warning",w)(`Error backing up existing ${T} terminal keybindings. Bailing out.`)}${G}${K.dim(`See ${Z($)}`)}${G}${K.dim(`Backup path: ${Z(S)}`)}${G}`}}if(J.find((x)=>x.key==="shift+enter"&&x.command==="workbench.action.terminal.sendSequence"&&x.when==="terminalFocus"))return`${X("warning",w)(`Found existing ${T} terminal Shift+Enter key binding. Remove it to continue.`)}${G}${K.dim(`See ${Z($)}`)}${G}`;let U=qT(B,{key:"shift+enter",command:"workbench.action.terminal.sendSequence",args:{text:"\x1B\r"},when:"terminalFocus"});return await C($,U,{encoding:"utf-8"}),`${X("success",w)(`Installed ${T} terminal Shift+Enter key binding`)}${G}${K.dim(`See ${Z($)}`)}${G}`}catch(B){throw H(B),Error(`Failed to install ${T} terminal Shift+Enter key binding`)}}async function wT(T){let{code:w}=await Y("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${T}':useOptionAsMetaKey bool true`,_()]);if(w!==0){let{code:v}=await Y("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${T}':useOptionAsMetaKey true`,_()]);if(v!==0)return H(Error(`Failed to enable Option as Meta key for Terminal.app profile: ${T}`)),!1}return!0}async function vT(T){let{code:w}=await Y("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${T}':Bell bool false`,_()]);if(w!==0){let{code:v}=await Y("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${T}':Bell false`,_()]);if(v!==0)return H(Error(`Failed to disable audio bell for Terminal.app profile: ${T}`)),!1}return!0}async function kT(T){try{if(!await t())throw Error("Failed to create backup of Terminal.app preferences, bailing out");let{stdout:v,code:q}=await Y("defaults",["read","com.apple.Terminal","Default Window Settings"]);if(q!==0||!v.trim())throw Error("Failed to read default Terminal.app profile");let{stdout:$,code:B}=await Y("defaults",["read","com.apple.Terminal","Startup Window Settings"]);if(B!==0||!$.trim())throw Error("Failed to read startup Terminal.app profile");let J=!1,F=v.trim(),W=await wT(F),O=await vT(F);if(W||O)J=!0;let U=$.trim();if(U!==F){let x=await wT(U),S=await vT(U);if(x||S)J=!0}if(!J)throw Error("Failed to enable Option as Meta key or disable audio bell for any Terminal.app profile");return await Y("killall",["cfprefsd"]),L(),`${X("success",T)("Configured Terminal.app settings:")}${G}${X("success",T)('- Enabled "Use Option as Meta key"')}${G}${X("success",T)("- Switched to visual bell")}${G}${K.dim("Option+Enter will now enter a newline.")}${G}${K.dim("You must restart Terminal.app for changes to take effect.",T)}${G}`}catch(w){H(w);let v=await e(),q="Failed to enable Option as Meta key for Terminal.app.";if(v.status==="restored")throw Error(`${q} Your settings have been restored from backup.`);else if(v.status==="failed")throw Error(`${q} Restoring from backup failed, try manually with: defaults import com.apple.Terminal ${v.backupPath}`);else throw Error(`${q} No backup was available to restore from.`)}}async function lT(T){let v=[],q=process.env.XDG_CONFIG_HOME;if(q)v.push(R(q,"alacritty","alacritty.toml"));else v.push(R(g(),".config","alacritty","alacritty.toml"));if(A()==="win32"){let F=process.env.APPDATA;if(F)v.push(R(F,"alacritty","alacritty.toml"))}let $=null,B="",J=!1;for(let F of v)try{B=await p(F,{encoding:"utf-8"}),$=F,J=!0;break}catch(W){if(!u(W))throw W}if(!$)$=v[0]??null;if(!$)throw Error("No valid config path found for Alacritty");try{if(J){if(B.includes('mods = "Shift"')&&B.includes('key = "Return"'))return`${X("warning",T)("Found existing Alacritty Shift+Enter key binding. Remove it to continue.")}${G}${K.dim(`See ${Z($)}`)}${G}`;let W=y(4).toString("hex"),O=`${$}.${W}.bak`;try{await N($,O)}catch{return`${X("warning",T)("Error backing up existing Alacritty config. Bailing out.")}${G}${K.dim(`See ${Z($)}`)}${G}${K.dim(`Backup path: ${Z(O)}`)}${G}`}}else await c(MT($),{recursive:!0});let F=B;if(B&&!B.endsWith(`
|
|
25
|
-
`))F+=`
|
|
26
|
-
`;return F+=`
|
|
27
|
-
[[keyboard.bindings]]
|
|
28
|
-
key = "Return"
|
|
29
|
-
mods = "Shift"
|
|
30
|
-
chars = "\\u001B\\r"
|
|
31
|
-
`,await C($,F,{encoding:"utf-8"}),`${X("success",T)("Installed Alacritty Shift+Enter key binding")}${G}${X("success",T)("You may need to restart Alacritty for changes to take effect")}${G}${K.dim(`See ${Z($)}`)}${G}`}catch(F){throw H(F),Error("Failed to install Alacritty Shift+Enter key binding")}}async function DT(T){let w=R(g(),".config","zed"),v=R(w,"keymap.json");try{await c(w,{recursive:!0});let q="[]",$=!1;try{q=await p(v,{encoding:"utf-8"}),$=!0}catch(J){if(!u(J))throw J}if($){if(q.includes("shift-enter"))return`${X("warning",T)("Found existing Zed Shift+Enter key binding. Remove it to continue.")}${G}${K.dim(`See ${Z(v)}`)}${G}`;let J=y(4).toString("hex"),F=`${v}.${J}.bak`;try{await N(v,F)}catch{return`${X("warning",T)("Error backing up existing Zed keymap. Bailing out.")}${G}${K.dim(`See ${Z(v)}`)}${G}${K.dim(`Backup path: ${Z(F)}`)}${G}`}}let B;try{if(B=$T(q),!Array.isArray(B))B=[]}catch{B=[]}return B.push({context:"Terminal",bindings:{"shift-enter":["terminal::SendText","\x1B\r"]}}),await C(v,GT(B,null,2)+`
|
|
32
|
-
`,{encoding:"utf-8"}),`${X("success",T)("Installed Zed Shift+Enter key binding")}${G}${K.dim(`See ${Z(v)}`)}${G}`}catch(q){throw H(q),Error("Failed to install Zed Shift+Enter key binding")}}var G=`
|
|
33
|
-
`,j;var bT=I(()=>{VT();ST();IT();h();TT();D();UT();LT();o();OT();n();_T();zT();j={ghostty:"Ghostty",kitty:"Kitty","iTerm.app":"iTerm2",WezTerm:"WezTerm",WarpTerminal:"Warp"}});
|
|
34
|
-
export{a as uV,h as vV,e as wV,TT as xV,Ww as yV,uT as zV,ET as AV,Lw as BV,zw as CV,Vw as DV,_w as EV,bT as FV};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{AY as V,dX as t,dZ as o,mX as p,wY as j,xY as s,yY as F}from"./cli-0.6.4-z3hp0qzv.mjs";import{D0 as w,E0 as g,F0 as y}from"./cli-0.6.4-btcax77x.mjs";import{K7 as $,L7 as a,R7 as _,S7 as n}from"./cli-0.6.4-em2mfvpg.mjs";import{spa as i,wpa as v}from"./cli-0.6.4-yrfkm9my.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
|
|
2
|
-
`)}var R;var m=v(()=>{a();s();R={branch:$.lineUpDownRight,lastBranch:$.lineUpRight,line:$.lineVertical,empty:" "}});function r(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let N;if(typeof M.invalidValue==="string")N=`"${M.invalidValue}"`;else if(M.invalidValue===null)N="null";else if(M.invalidValue===void 0)N="undefined";else N=String(M.invalidValue);Q.push(N)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(Jq,{}),N=Object.keys(Z).sort();W=F,Q="column",X=N.map((O)=>{let Y=Z[O]||[];Y.sort(qq);let D=r(Y),S=new Map;Y.forEach((L)=>{if(L.suggestion||L.docLink){let H=`${L.suggestion||""}|${L.docLink||""}`;if(!S.has(H))S.set(H,{suggestion:L.suggestion,docLink:L.docLink})}});let A=x(D,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return g(F,{flexDirection:"column",children:[w(V,{children:O}),w(F,{marginLeft:1,children:w(V,{dimColor:!0,children:A})}),S.size>0&&w(F,{flexDirection:"column",marginTop:1,children:Array.from(S.values()).map(e)})]},O)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=w(W,{flexDirection:Q,children:X}),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function e(J,q){return g(F,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&w(V,{dimColor:!0,wrap:"wrap",children:J.suggestion}),J.docLink&&g(V,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]})]},`suggestion-pair-${q}`)}function qq(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function Jq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h;var Mq=v(()=>{f();o();m();y();h=i(t(),1)});
|
|
3
|
-
export{Hq as xf,Mq as yf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{j5 as v,k5 as C}from"./cli-0.6.4-2mytx51g.mjs";import{Sca as x,Tca as Y,sba as Z,tba as V}from"./cli-0.6.4-em2mfvpg.mjs";import{Afa as O,ofa as R,sfa as W}from"./cli-0.6.4-4qyz0e3r.mjs";import{pga as Q,qga as M}from"./cli-0.6.4-4b3h6h1j.mjs";import{Yga as P,bha as I,tha as f,wha as L}from"./cli-0.6.4-x6npewbm.mjs";import{Nha as w,Uha as H}from"./cli-0.6.4-rqmfmwew.mjs";import{koa as N,loa as F}from"./cli-0.6.4-yxqfeka0.mjs";import{Hoa as X,Zoa as U}from"./cli-0.6.4-ge6qg76s.mjs";import{tpa as h,wpa as B}from"./cli-0.6.4-yrfkm9my.mjs";import{hostname as E}from"os";function $(){return R(G,!1)}function u(){if(!$())return;return y()}function n(){y.cache?.clear?.()}function o(){if(!$())return;let i=x();try{let q=i.read();if(q?.trustedDeviceToken)delete q.trustedDeviceToken,i.update(q)}catch{}y.cache?.clear?.()}async function t(){try{if(!await W(G)){f(`[trusted-device] Gate ${G} is off, skipping enrollment`);return}if(process.env.CLAUDE_TRUSTED_DEVICE_TOKEN){f("[trusted-device] CLAUDE_TRUSTED_DEVICE_TOKEN env var is set, skipping enrollment (env var takes precedence)");return}let{getClaudeAIOAuthTokens:i}=(C(),h(v)),q=i()?.accessToken;if(!q){f("[trusted-device] No OAuth token, skipping enrollment");return}let J=x();if(Z()){f("[trusted-device] Essential traffic only, skipping enrollment");return}let b=Q().BASE_API_URL,m;try{m=await X.post(`${b}/api/auth/trusted_devices`,{display_name:`Claude Code on ${E()} · ${process.platform}`},{headers:{Authorization:`Bearer ${q}`,"Content-Type":"application/json"},timeout:1e4,validateStatus:(j)=>j<500})}catch(j){f(`[trusted-device] Enrollment request failed: ${w(j)}`);return}if(m.status!==200&&m.status!==201){f(`[trusted-device] Enrollment failed ${m.status}: ${P(m.data).slice(0,200)}`);return}let z=m.data?.device_token;if(!z||typeof z!=="string"){f("[trusted-device] Enrollment response missing device_token field");return}try{let j=J.read();if(!j){f("[trusted-device] Cannot read storage, skipping token persist");return}j.trustedDeviceToken=z;let K=J.update(j);if(!K.success){f(`[trusted-device] Failed to persist token: ${K.warning??"unknown"}`);return}y.cache?.clear?.(),f(`[trusted-device] Enrolled device_id=${m.data.device_id??"unknown"}`)}catch(j){f(`[trusted-device] Storage write failed: ${w(j)}`)}}catch(i){f(`[trusted-device] Enrollment error: ${w(i)}`)}}var G="tengu_sessions_elevated_auth_enforcement",y;var d=B(()=>{U();F();M();O();L();H();V();Y();I();y=N(()=>{let i=process.env.CLAUDE_TRUSTED_DEVICE_TOKEN;if(i)return i;return x().read()?.trustedDeviceToken})});
|
|
2
|
-
export{u as oS,n as pS,o as qS,t as rS,d as sS};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{wpa as j}from"./cli-0.6.4-yrfkm9my.mjs";function c(){let q=new Map;for(let[V,z]of Object.entries(J)){for(let[D,H]of Object.entries(z))J[D]={open:`\x1B[${H[0]}m`,close:`\x1B[${H[1]}m`},z[D]=J[D],q.set(H[0],H[1]);Object.defineProperty(J,V,{value:z,enumerable:!1})}return Object.defineProperty(J,"codes",{value:q,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=M(),J.color.ansi256=Y(),J.color.ansi16m=k(),J.bgColor.ansi=M(10),J.bgColor.ansi256=Y(10),J.bgColor.ansi16m=k(10),Object.defineProperties(J,{rgbToAnsi256:{value(V,z,D){if(V===z&&z===D){if(V<8)return 16;if(V>248)return 231;return Math.round((V-8)/247*24)+232}return 16+36*Math.round(V/255*5)+6*Math.round(z/255*5)+Math.round(D/255*5)},enumerable:!1},hexToRgb:{value(V){let z=/[a-f\d]{6}|[a-f\d]{3}/i.exec(V.toString(16));if(!z)return[0,0,0];let[D]=z;if(D.length===3)D=[...D].map((Q)=>Q+Q).join("");let H=Number.parseInt(D,16);return[H>>16&255,H>>8&255,H&255]},enumerable:!1},hexToAnsi256:{value:(V)=>J.rgbToAnsi256(...J.hexToRgb(V)),enumerable:!1},ansi256ToAnsi:{value(V){if(V<8)return 30+V;if(V<16)return 90+(V-8);let z,D,H;if(V>=232)z=((V-232)*10+8)/255,D=z,H=z;else{V-=16;let N=V%36;z=Math.floor(V/36)/5,D=Math.floor(N/6)/5,H=N%6/5}let Q=Math.max(z,D,H)*2;if(Q===0)return 30;let U=30+(Math.round(H)<<2|Math.round(D)<<1|Math.round(z));if(Q===2)U+=60;return U},enumerable:!1},rgbToAnsi:{value:(V,z,D)=>J.ansi256ToAnsi(J.rgbToAnsi256(V,z,D)),enumerable:!1},hexToAnsi:{value:(V)=>J.ansi256ToAnsi(J.hexToAnsi256(V)),enumerable:!1}}),J}var M=(q=0)=>(V)=>`\x1B[${V+q}m`,Y=(q=0)=>(V)=>`\x1B[${38+q};5;${V}m`,k=(q=0)=>(V,z,D)=>`\x1B[${38+q};2;${V};${z};${D}m`,J,V1,u,m,q1,p,X;var R=j(()=>{J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V1=Object.keys(J.modifier),u=Object.keys(J.color),m=Object.keys(J.bgColor),q1=[...u,...m];p=c(),X=p});import I from"node:process";import d from"node:os";import E from"node:tty";function W(q,V=globalThis.Deno?globalThis.Deno.args:I.argv){let z=q.startsWith("-")?"":q.length===1?"-":"--",D=V.indexOf(z+q),H=V.indexOf("--");return D!==-1&&(H===-1||D<H)}function y(){if("FORCE_COLOR"in K){if(K.FORCE_COLOR==="true")return 1;if(K.FORCE_COLOR==="false")return 0;return K.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(K.FORCE_COLOR,10),3)}}function g(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function i(q,{streamIsTTY:V,sniffFlags:z=!0}={}){let D=y();if(D!==void 0)B=D;let H=z?B:D;if(H===0)return 0;if(z){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if("TF_BUILD"in K&&"AGENT_NAME"in K)return 1;if(q&&!V&&H===void 0)return 0;let Q=H||0;if(K.TERM==="dumb")return Q;if(I.platform==="win32"){let U=d.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in K){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((U)=>(U in K)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in K))||K.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if(K.TERM==="xterm-kitty")return 3;if(K.TERM==="xterm-ghostty")return 3;if(K.TERM==="wezterm")return 3;if("TERM_PROGRAM"in K){let U=Number.parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM))return 1;if("COLORTERM"in K)return 1;return Q}function T(q,V={}){let z=i(q,{streamIsTTY:q&&q.isTTY,...V});return g(z)}var K,B,a,A;var C=j(()=>{({env:K}=I);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))B=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))B=1;a={stdout:T({isTTY:E.isatty(1)}),stderr:T({isTTY:E.isatty(2)})},A=a});function F(q,V,z){let D=q.indexOf(V);if(D===-1)return q;let H=V.length,Q=0,U="";do U+=q.slice(Q,D)+V+z,Q=D+H,D=q.indexOf(V,Q);while(D!==-1);return U+=q.slice(Q),U}function _(q,V,z,D){let H=0,Q="";do{let U=q[D-1]==="\r";Q+=q.slice(H,U?D-1:D)+V+(U?`\r
|
|
2
|
-
`:`
|
|
3
|
-
`)+z,H=D+1,D=q.indexOf(`
|
|
4
|
-
`,H)}while(D!==-1);return Q+=q.slice(H),Q}var b=()=>{};class o{constructor(q){return v(q)}}function G(q){return v(q)}var S,h,L,Z,O,f,$,n=(q,V={})=>{if(V.level&&!(Number.isInteger(V.level)&&V.level>=0&&V.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let z=S?S.level:0;q.level=V.level===void 0?z:V.level},v=(q)=>{let V=(...z)=>z.join(" ");return n(V,q),Object.setPrototypeOf(V,G.prototype),V},P=(q,V,z,...D)=>{if(q==="rgb"){if(V==="ansi16m")return X[z].ansi16m(...D);if(V==="ansi256")return X[z].ansi256(X.rgbToAnsi256(...D));return X[z].ansi(X.rgbToAnsi(...D))}if(q==="hex")return P("rgb",V,z,...X.hexToRgb(...D));return X[z][q](...D)},t,r,x=(q,V,z)=>{let D,H;if(z===void 0)D=q,H=V;else D=z.openAll+q,H=V+z.closeAll;return{open:q,close:V,openAll:D,closeAll:H,parent:z}},w=(q,V,z)=>{let D=(...H)=>l(D,H.length===1?""+H[0]:H.join(" "));return Object.setPrototypeOf(D,r),D[L]=q,D[Z]=V,D[O]=z,D},l=(q,V)=>{if(q.level<=0||!V)return q[O]?"":V;let z=q[Z];if(z===void 0)return V;let{openAll:D,closeAll:H}=z;if(V.includes("\x1B"))while(z!==void 0)V=F(V,z.close,z.open),z=z.parent;let Q=V.indexOf(`
|
|
5
|
-
`);if(Q!==-1)V=_(V,H,D,Q);return D+V+H},s,Z1,O1;var e=j(()=>{R();C();b();({stdout:S,stderr:h}=A),L=Symbol("GENERATOR"),Z=Symbol("STYLER"),O=Symbol("IS_EMPTY"),f=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null);Object.setPrototypeOf(G.prototype,Function.prototype);for(let[q,V]of Object.entries(X))$[q]={get(){let z=w(this,x(V.open,V.close,this[Z]),this[O]);return Object.defineProperty(this,q,{value:z}),z}};$.visible={get(){let q=w(this,this[Z],!0);return Object.defineProperty(this,"visible",{value:q}),q}};t=["rgb","hex","ansi256"];for(let q of t){$[q]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"color",...D),X.color.close,this[Z]);return w(this,H,this[O])}}};let V="bg"+q[0].toUpperCase()+q.slice(1);$[V]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"bgColor",...D),X.bgColor.close,this[Z]);return w(this,H,this[O])}}}}r=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[L].level},set(q){this[L].level=q}}});Object.defineProperties(G.prototype,$);s=G(),Z1=G({level:h?h.level:0}),O1=s});
|
|
6
|
-
export{o as F5,O1 as G5,e as H5};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$0 as m}from"./cli-0.6.4-ejrq8g7w.mjs";import{U4 as K,k5 as $}from"./cli-0.6.4-2mytx51g.mjs";import{Vba as Q,Xda as Z,Yba as J,rca as Y,tba as X}from"./cli-0.6.4-em2mfvpg.mjs";import{qga as W}from"./cli-0.6.4-4b3h6h1j.mjs";import{wpa as V}from"./cli-0.6.4-yrfkm9my.mjs";function y(){let z=K()?.organizationUuid;if(!z)return null;let B=J().overageCreditGrantCache?.[z];if(!B)return null;if(Date.now()-B.timestamp>q)return null;return B.info}function G(){let z=K()?.organizationUuid;if(!z)return;let B=J().overageCreditGrantCache;if(!B||!(z in B))return;Q((N)=>{let P={...N.overageCreditGrantCache};return delete P[z],{...N,overageCreditGrantCache:P}})}function U(z){if(z.amount_minor_units==null||!z.currency)return null;if(z.currency.toUpperCase()==="USD"){let B=z.amount_minor_units/100;return Number.isInteger(B)?`$${B}`:`$${B.toFixed(2)}`}return null}var q=3600000;var w=V(()=>{W();$();Y();Z();X();m()});
|
|
2
|
-
export{y as Rh,G as Sh,U as Th,w as Uh};
|