@claudiolabs/claudin 0.7.2 → 0.7.4
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/LICENSE +23 -200
- package/README.md +25 -89
- package/dist/chunks/AgentTool-0.7.4-n3w81nr0.mjs +1 -0
- package/dist/chunks/App-0.7.4-f82nhj4b.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.7.4-27gdpx41.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.7.4-dfwr2199.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.7.4-y9fxqce2.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.7.4-vqmkfdv5.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.4-yya4exxc.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.7.4-pkmm3hrc.mjs +1 -0
- package/dist/chunks/DiffDialog-0.7.4-c524vxrv.mjs +7 -0
- package/dist/chunks/Doctor-0.7.4-pa6ms0qn.mjs +1 -0
- package/dist/chunks/ExplorerDialog-0.7.4-bmp67p2b.mjs +6 -0
- package/dist/chunks/Grove-0.7.4-9acw1m3r.mjs +1 -0
- package/dist/chunks/ITermBackend-0.7.4-dy75k5qx.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.7.4-8ra8bj22.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.7.4-n4h644pz.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.7.4-cnays88h.mjs +1 -0
- package/dist/chunks/Onboarding-0.7.4-fqvxpdtd.mjs +1 -0
- package/dist/chunks/ProviderManager-0.7.4-e21vv07m.mjs +1 -0
- package/dist/chunks/REPL-0.7.4-n38hda18.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.7.4-f3xp8e01.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.7.4-39wyejgx.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.7.4-6373v72h.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.7.4-y6km4665.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.7.4-wh96svjn.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.7.4-grwq5d7n.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.7.4-k0kt2bxp.mjs +1 -0
- package/dist/chunks/TrustDialog-0.7.4-xhgj5jat.mjs +1 -0
- package/dist/chunks/activeProvider-0.7.4-vzfmpvjc.mjs +1 -0
- package/dist/chunks/add-dir-0.7.4-mfwwzt70.mjs +1 -0
- package/dist/chunks/agentTypes-0.7.4-9fgk10yx.mjs +1 -0
- package/dist/chunks/agents-0.7.4-9fxas1pf.mjs +110 -0
- package/dist/chunks/agents-0.7.4-eart70kj.mjs +3 -0
- package/dist/chunks/api-0.7.4-eqsmhts7.mjs +1 -0
- package/dist/chunks/asciicast-0.7.4-900ptry2.mjs +1 -0
- package/dist/chunks/assistant-0.7.4-qp02hgvg.mjs +1 -0
- package/dist/chunks/auth-0.7.4-ccf1t8td.mjs +1 -0
- package/dist/chunks/auth-0.7.4-tzph01c0.mjs +1 -0
- package/dist/chunks/autoMode-0.7.4-5m9bs574.mjs +48 -0
- package/dist/chunks/autoUpdater-0.7.4-s4krk2je.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.7.4-zqytsqmx.mjs +1 -0
- package/dist/chunks/branch-0.7.4-29eypmvg.mjs +4 -0
- package/dist/chunks/bridge-0.7.4-45nq3nxm.mjs +2 -0
- package/dist/chunks/bridgeConfig-0.7.4-fb2nwbxq.mjs +1 -0
- package/dist/chunks/bridgeEnabled-0.7.4-rreg4xyn.mjs +1 -0
- package/dist/chunks/bridgeMain-0.7.4-m4rjydb5.mjs +88 -0
- package/dist/chunks/bridgePointer-0.7.4-mjexaxq5.mjs +1 -0
- package/dist/chunks/btw-0.7.4-rw5186va.mjs +1 -0
- package/dist/chunks/buddy-0.7.4-mwgfqb1k.mjs +3 -0
- package/dist/chunks/cacache-0.7.4-254mqspw.mjs +1 -0
- package/dist/chunks/cache-probe-0.7.4-kjrs8qh8.mjs +21 -0
- package/dist/chunks/cacheStats-0.7.4-2pfk76t7.mjs +4 -0
- package/dist/chunks/caches-0.7.4-qjs93vrb.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.7.4-e2h7mp9r.mjs +1 -0
- package/dist/chunks/claudemd-0.7.4-tv76d8c5.mjs +1 -0
- package/dist/chunks/clear-0.7.4-2qt378q0.mjs +1 -0
- package/dist/chunks/clearTerminal-0.7.4-5jfekabd.mjs +1 -0
- package/dist/chunks/cli-0.7.4-00n6rj7y.mjs +3 -0
- package/dist/chunks/cli-0.7.4-0a7934k3.mjs +21 -0
- package/dist/chunks/cli-0.7.4-0a9kv7ps.mjs +2 -0
- package/dist/chunks/cli-0.7.4-0c1vbfmd.mjs +2 -0
- package/dist/chunks/cli-0.7.4-0h9b4tge.mjs +2 -0
- package/dist/chunks/cli-0.7.4-0thtf513.mjs +2 -0
- package/dist/chunks/cli-0.7.4-0ytxwr14.mjs +2 -0
- package/dist/chunks/cli-0.7.4-12k33ng9.mjs +2 -0
- package/dist/chunks/cli-0.7.4-15xs793c.mjs +2 -0
- package/dist/chunks/cli-0.7.4-1ba5bwdq.mjs +42 -0
- package/dist/chunks/cli-0.7.4-1tkzz9x6.mjs +5469 -0
- package/dist/chunks/cli-0.7.4-2apswqf5.mjs +59 -0
- package/dist/chunks/cli-0.7.4-2fxnz89x.mjs +6 -0
- package/dist/chunks/cli-0.7.4-2haqz80h.mjs +16 -0
- package/dist/chunks/cli-0.7.4-2p5w6279.mjs +45 -0
- package/dist/chunks/cli-0.7.4-33k7j18b.mjs +3 -0
- package/dist/chunks/cli-0.7.4-3e7assg4.mjs +2 -0
- package/dist/chunks/cli-0.7.4-3gn2tfsb.mjs +2 -0
- package/dist/chunks/cli-0.7.4-40m5mk3s.mjs +2 -0
- package/dist/chunks/cli-0.7.4-47nyf9j2.mjs +2 -0
- package/dist/chunks/cli-0.7.4-489pp4nd.mjs +2 -0
- package/dist/chunks/cli-0.7.4-4a6hn01n.mjs +133 -0
- package/dist/chunks/cli-0.7.4-4br84c8j.mjs +2 -0
- package/dist/chunks/cli-0.7.4-4ee9swqr.mjs +2 -0
- package/dist/chunks/cli-0.7.4-4pagjrxs.mjs +18 -0
- package/dist/chunks/cli-0.7.4-4sh782tn.mjs +2 -0
- package/dist/chunks/cli-0.7.4-507dp6s1.mjs +2 -0
- package/dist/chunks/cli-0.7.4-510c371d.mjs +12 -0
- package/dist/chunks/cli-0.7.4-51t8p2qe.mjs +2 -0
- package/dist/chunks/cli-0.7.4-533hdyc8.mjs +2 -0
- package/dist/chunks/cli-0.7.4-53k7apn9.mjs +2 -0
- package/dist/chunks/cli-0.7.4-58p1wenr.mjs +2 -0
- package/dist/chunks/cli-0.7.4-5fjrbavz.mjs +2 -0
- package/dist/chunks/cli-0.7.4-5k1t5jcn.mjs +2 -0
- package/dist/chunks/cli-0.7.4-61etrp8x.mjs +2 -0
- package/dist/chunks/cli-0.7.4-61svw97d.mjs +3 -0
- package/dist/chunks/cli-0.7.4-6265e9tz.mjs +2 -0
- package/dist/chunks/cli-0.7.4-62ac47x8.mjs +2 -0
- package/dist/chunks/cli-0.7.4-66p94pps.mjs +3 -0
- package/dist/chunks/cli-0.7.4-68dbzpkf.mjs +3 -0
- package/dist/chunks/cli-0.7.4-6cft4ytf.mjs +15 -0
- package/dist/chunks/cli-0.7.4-6n295sx3.mjs +2 -0
- package/dist/chunks/cli-0.7.4-6sqa761d.mjs +2 -0
- package/dist/chunks/cli-0.7.4-6tvnyqjj.mjs +2 -0
- package/dist/chunks/cli-0.7.4-6zr3mpvn.mjs +2 -0
- package/dist/chunks/cli-0.7.4-729n63er.mjs +2 -0
- package/dist/chunks/cli-0.7.4-7ftm6c0s.mjs +26 -0
- package/dist/chunks/cli-0.7.4-7k74b1yf.mjs +1 -0
- package/dist/chunks/cli-0.7.4-7mzefe20.mjs +2 -0
- package/dist/chunks/cli-0.7.4-7t2zsdm5.mjs +2 -0
- package/dist/chunks/cli-0.7.4-7tr153ha.mjs +2 -0
- package/dist/chunks/cli-0.7.4-7wr3z77e.mjs +2 -0
- package/dist/chunks/cli-0.7.4-85txq06q.mjs +2 -0
- package/dist/chunks/cli-0.7.4-8hskaxte.mjs +2 -0
- package/dist/chunks/cli-0.7.4-8nss0n1a.mjs +25 -0
- package/dist/chunks/cli-0.7.4-8vd2zhhw.mjs +2 -0
- package/dist/chunks/cli-0.7.4-8wbk60h9.mjs +2 -0
- package/dist/chunks/cli-0.7.4-8xxafyv0.mjs +18 -0
- package/dist/chunks/cli-0.7.4-90d95m4d.mjs +2 -0
- package/dist/chunks/cli-0.7.4-9kf16ber.mjs +2 -0
- package/dist/chunks/cli-0.7.4-9kzgbrwj.mjs +2 -0
- package/dist/chunks/cli-0.7.4-9r1s7xtv.mjs +6 -0
- package/dist/chunks/cli-0.7.4-9vph2ayc.mjs +2 -0
- package/dist/chunks/cli-0.7.4-9zsty6c5.mjs +2 -0
- package/dist/chunks/cli-0.7.4-abs9vv3n.mjs +2 -0
- package/dist/chunks/cli-0.7.4-ae96heq4.mjs +2 -0
- package/dist/chunks/cli-0.7.4-ahm3gnaw.mjs +2 -0
- package/dist/chunks/cli-0.7.4-akf6rhsn.mjs +4 -0
- package/dist/chunks/cli-0.7.4-aswaa5m4.mjs +2 -0
- package/dist/chunks/cli-0.7.4-at2fkgpk.mjs +2 -0
- package/dist/chunks/cli-0.7.4-b5qdnvdg.mjs +2 -0
- package/dist/chunks/cli-0.7.4-bh4xsr2c.mjs +4 -0
- package/dist/chunks/cli-0.7.4-bkgx5wz7.mjs +2 -0
- package/dist/chunks/cli-0.7.4-bmw3qchp.mjs +2 -0
- package/dist/chunks/cli-0.7.4-bqk5rkrz.mjs +2 -0
- package/dist/chunks/cli-0.7.4-c0e99xn9.mjs +24 -0
- package/dist/chunks/cli-0.7.4-cfsjq69q.mjs +2 -0
- package/dist/chunks/cli-0.7.4-d82gqb10.mjs +2 -0
- package/dist/chunks/cli-0.7.4-d9y5wx3y.mjs +2 -0
- package/dist/chunks/cli-0.7.4-da69w12w.mjs +3 -0
- package/dist/chunks/cli-0.7.4-deyaxrbc.mjs +2 -0
- package/dist/chunks/cli-0.7.4-djbdmzgq.mjs +2 -0
- package/dist/chunks/cli-0.7.4-dwjhqjan.mjs +2 -0
- package/dist/chunks/cli-0.7.4-e2bhfh6d.mjs +2 -0
- package/dist/chunks/cli-0.7.4-ee9ansx1.mjs +24 -0
- package/dist/chunks/cli-0.7.4-eg7xj51b.mjs +2 -0
- package/dist/chunks/cli-0.7.4-egc286gx.mjs +2 -0
- package/dist/chunks/cli-0.7.4-ejm88apc.mjs +2 -0
- package/dist/chunks/cli-0.7.4-emdbzgja.mjs +2 -0
- package/dist/chunks/cli-0.7.4-en1ggcz7.mjs +2 -0
- package/dist/chunks/cli-0.7.4-evtmfc7t.mjs +2 -0
- package/dist/chunks/cli-0.7.4-f23ty9s6.mjs +39 -0
- package/dist/chunks/cli-0.7.4-f8qmyn41.mjs +4 -0
- package/dist/chunks/cli-0.7.4-fhgnbfvj.mjs +2 -0
- package/dist/chunks/cli-0.7.4-g9hc44qq.mjs +2 -0
- package/dist/chunks/cli-0.7.4-g9w5x5ns.mjs +4 -0
- package/dist/chunks/cli-0.7.4-ge77h9d7.mjs +2 -0
- package/dist/chunks/cli-0.7.4-ghq0kwkv.mjs +2 -0
- package/dist/chunks/cli-0.7.4-gjn70n3p.mjs +2 -0
- package/dist/chunks/cli-0.7.4-gr1feczd.mjs +2 -0
- package/dist/chunks/cli-0.7.4-gxccpbef.mjs +3 -0
- package/dist/chunks/cli-0.7.4-h0ze5j97.mjs +2 -0
- package/dist/chunks/cli-0.7.4-h24m11yy.mjs +2 -0
- package/dist/chunks/cli-0.7.4-h5274d0h.mjs +2 -0
- package/dist/chunks/cli-0.7.4-h57hq23q.mjs +2 -0
- package/dist/chunks/cli-0.7.4-h5wxsd2h.mjs +9 -0
- package/dist/chunks/cli-0.7.4-h94hrj45.mjs +2 -0
- package/dist/chunks/cli-0.7.4-hayqy916.mjs +2 -0
- package/dist/chunks/cli-0.7.4-hegk157e.mjs +6 -0
- package/dist/chunks/cli-0.7.4-hnfm0p8b.mjs +2 -0
- package/dist/chunks/cli-0.7.4-hsa9khw7.mjs +17 -0
- package/dist/chunks/cli-0.7.4-hvnq08bj.mjs +24 -0
- package/dist/chunks/cli-0.7.4-hvnzwb5v.mjs +194 -0
- package/dist/chunks/cli-0.7.4-hvs3h0hc.mjs +3 -0
- package/dist/chunks/cli-0.7.4-hw93j7vq.mjs +2 -0
- package/dist/chunks/cli-0.7.4-hz7s1rtn.mjs +2 -0
- package/dist/chunks/cli-0.7.4-jg5ajbyb.mjs +2 -0
- package/dist/chunks/cli-0.7.4-jgg33mak.mjs +2 -0
- package/dist/chunks/cli-0.7.4-jgswqtvj.mjs +3 -0
- package/dist/chunks/cli-0.7.4-k735e5sg.mjs +133 -0
- package/dist/chunks/cli-0.7.4-k7s78hkt.mjs +58 -0
- package/dist/chunks/cli-0.7.4-kmgvx19r.mjs +5 -0
- package/dist/chunks/cli-0.7.4-kmxpdkne.mjs +2 -0
- package/dist/chunks/cli-0.7.4-kpp23hbz.mjs +2 -0
- package/dist/chunks/cli-0.7.4-kz0h2jkr.mjs +15 -0
- package/dist/chunks/cli-0.7.4-m1f3fc2v.mjs +2 -0
- package/dist/chunks/cli-0.7.4-m2yz2rtr.mjs +2 -0
- package/dist/chunks/cli-0.7.4-m6n2gga8.mjs +4 -0
- package/dist/chunks/cli-0.7.4-mdv26096.mjs +6 -0
- package/dist/chunks/cli-0.7.4-mg4yp3b0.mjs +2 -0
- package/dist/chunks/cli-0.7.4-mmzkb167.mjs +2 -0
- package/dist/chunks/cli-0.7.4-mq3qzben.mjs +2 -0
- package/dist/chunks/cli-0.7.4-mqbmk6y6.mjs +4 -0
- package/dist/chunks/cli-0.7.4-n9arxrya.mjs +12 -0
- package/dist/chunks/cli-0.7.4-naanktx2.mjs +34 -0
- package/dist/chunks/cli-0.7.4-nbnqrjgm.mjs +2 -0
- package/dist/chunks/cli-0.7.4-nnd4g2nm.mjs +2 -0
- package/dist/chunks/cli-0.7.4-nst28yat.mjs +2 -0
- package/dist/chunks/cli-0.7.4-p85h0qry.mjs +17 -0
- package/dist/chunks/cli-0.7.4-pgtn2eay.mjs +2 -0
- package/dist/chunks/cli-0.7.4-pjfb6eq2.mjs +2 -0
- package/dist/chunks/cli-0.7.4-pyyaz246.mjs +2 -0
- package/dist/chunks/cli-0.7.4-q23avgwg.mjs +2 -0
- package/dist/chunks/cli-0.7.4-q4g37dxk.mjs +2 -0
- package/dist/chunks/cli-0.7.4-q4q5x19y.mjs +2 -0
- package/dist/chunks/cli-0.7.4-q83h4xz7.mjs +10 -0
- package/dist/chunks/cli-0.7.4-qcc7kfkv.mjs +2 -0
- package/dist/chunks/cli-0.7.4-qcqz94w2.mjs +2 -0
- package/dist/chunks/cli-0.7.4-qjfmn9db.mjs +2 -0
- package/dist/chunks/cli-0.7.4-r0fkpzp3.mjs +2 -0
- package/dist/chunks/cli-0.7.4-r0nqh5aw.mjs +2 -0
- package/dist/chunks/cli-0.7.4-r1ebyx3p.mjs +2 -0
- package/dist/chunks/cli-0.7.4-r6ste2g4.mjs +2 -0
- package/dist/chunks/cli-0.7.4-rn8x06p3.mjs +2 -0
- package/dist/chunks/cli-0.7.4-rr7x6s9y.mjs +2 -0
- package/dist/chunks/cli-0.7.4-rskynrc5.mjs +4 -0
- package/dist/chunks/cli-0.7.4-rszd2m9d.mjs +3 -0
- package/dist/chunks/cli-0.7.4-rts5twex.mjs +2 -0
- package/dist/chunks/cli-0.7.4-rxsb2bkg.mjs +2 -0
- package/dist/chunks/cli-0.7.4-rzkdke3e.mjs +4 -0
- package/dist/chunks/cli-0.7.4-s97t3v7z.mjs +2 -0
- package/dist/chunks/cli-0.7.4-sm8wf8qx.mjs +67 -0
- package/dist/chunks/cli-0.7.4-sw7nh3hq.mjs +2 -0
- package/dist/chunks/cli-0.7.4-sxvnky38.mjs +2 -0
- package/dist/chunks/cli-0.7.4-syg2nab8.mjs +18 -0
- package/dist/chunks/cli-0.7.4-t68xf0hs.mjs +2 -0
- package/dist/chunks/cli-0.7.4-tcwf7yvv.mjs +2 -0
- package/dist/chunks/cli-0.7.4-te9nvehv.mjs +2 -0
- package/dist/chunks/cli-0.7.4-tkcchh6p.mjs +2 -0
- package/dist/chunks/cli-0.7.4-tme1sywb.mjs +2 -0
- package/dist/chunks/cli-0.7.4-tny04z8h.mjs +2 -0
- package/dist/chunks/cli-0.7.4-tsf2s2bg.mjs +2 -0
- package/dist/chunks/cli-0.7.4-tz5hgphm.mjs +3 -0
- package/dist/chunks/cli-0.7.4-v70q1qwp.mjs +2 -0
- package/dist/chunks/cli-0.7.4-ve6x1t8v.mjs +5 -0
- package/dist/chunks/cli-0.7.4-vq696c8w.mjs +2 -0
- package/dist/chunks/cli-0.7.4-vtnqj21e.mjs +2 -0
- package/dist/chunks/cli-0.7.4-vw2w38z0.mjs +2 -0
- package/dist/chunks/cli-0.7.4-wa74g17n.mjs +2 -0
- package/dist/chunks/cli-0.7.4-wb89zsbs.mjs +2 -0
- package/dist/chunks/cli-0.7.4-wes9w04e.mjs +2 -0
- package/dist/chunks/cli-0.7.4-wh44hxq2.mjs +5 -0
- package/dist/chunks/cli-0.7.4-wmw8fpv7.mjs +12 -0
- package/dist/chunks/cli-0.7.4-wtz9ed9r.mjs +2 -0
- package/dist/chunks/cli-0.7.4-wv6x6pzr.mjs +50 -0
- package/dist/chunks/cli-0.7.4-x1w88hnn.mjs +12 -0
- package/dist/chunks/cli-0.7.4-x5fcmgcd.mjs +4 -0
- package/dist/chunks/cli-0.7.4-xgw8jjs2.mjs +2 -0
- package/dist/chunks/cli-0.7.4-xhw7cmg0.mjs +2 -0
- package/dist/chunks/cli-0.7.4-xt87yshe.mjs +20 -0
- package/dist/chunks/cli-0.7.4-y3z3j4d9.mjs +8 -0
- package/dist/chunks/cli-0.7.4-y4w46256.mjs +2 -0
- package/dist/chunks/cli-0.7.4-y7sxx7d0.mjs +2 -0
- package/dist/chunks/cli-0.7.4-ybvnfxcf.mjs +4 -0
- package/dist/chunks/cli-0.7.4-yces9dz7.mjs +2 -0
- package/dist/chunks/cli-0.7.4-yjqyy8n2.mjs +2 -0
- package/dist/chunks/cli-0.7.4-yrbhzggw.mjs +3 -0
- package/dist/chunks/cli-0.7.4-yvdbdncp.mjs +2 -0
- package/dist/chunks/cli-0.7.4-z1vgf16g.mjs +25 -0
- package/dist/chunks/cli-0.7.4-z48enz4n.mjs +2 -0
- package/dist/chunks/cli-0.7.4-z88n7a08.mjs +2 -0
- package/dist/chunks/cli-0.7.4-za9xa1j8.mjs +3 -0
- package/dist/chunks/cli-0.7.4-zaa684f4.mjs +15 -0
- package/dist/chunks/cli-0.7.4-zbdceewq.mjs +7 -0
- package/dist/chunks/cli-0.7.4-zdkph0g9.mjs +2 -0
- package/dist/chunks/cli-0.7.4-zzze6t7f.mjs +2 -0
- package/dist/chunks/client-0.7.4-hxpb2apz.mjs +1 -0
- package/dist/chunks/color-0.7.4-pkanvtan.mjs +1 -0
- package/dist/chunks/compact-0.7.4-sjz49brs.mjs +3 -0
- package/dist/chunks/config-0.7.4-f5dgrp7x.mjs +1 -0
- package/dist/chunks/config-0.7.4-mc1mvka6.mjs +1 -0
- package/dist/chunks/constants-0.7.4-q426cgcp.mjs +1 -0
- package/dist/chunks/context-0.7.4-ssay296s.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.7.4-y9y9az38.mjs +1 -0
- package/dist/chunks/conversation-0.7.4-m00s33jt.mjs +1 -0
- package/dist/chunks/copilotHeaders-0.7.4-pv50vnpq.mjs +1 -0
- package/dist/chunks/copy-0.7.4-ktk8gabv.mjs +9 -0
- package/dist/chunks/cost-0.7.4-r3td1n69.mjs +1 -0
- package/dist/chunks/createSSHSession-0.7.4-hhqxxfmb.mjs +1 -0
- package/dist/chunks/createSession-0.7.4-ebs0k8yt.mjs +1 -0
- package/dist/chunks/debug-0.7.4-0nebad2s.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.7.4-jbzptdbp.mjs +1446 -0
- package/dist/chunks/desktop-0.7.4-fmsm731w.mjs +1 -0
- package/dist/chunks/detectRepository-0.7.4-qse5a13f.mjs +1 -0
- package/dist/chunks/detection-0.7.4-a7c8arz9.mjs +1 -0
- package/dist/chunks/diff-0.7.4-ayakpeyz.mjs +1 -0
- package/dist/chunks/doctor-0.7.4-hwhyhjfr.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.7.4-qm9knj52.mjs +1 -0
- package/dist/chunks/earlyInput-0.7.4-x3ysj16t.mjs +1 -0
- package/dist/chunks/effort-0.7.4-1sv0dhhk.mjs +10 -0
- package/dist/chunks/engine-0.7.4-gz82afzv.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-0.7.4-q1h5p7jv.mjs +1 -0
- package/dist/chunks/envUtils-0.7.4-ww7aa64y.mjs +1 -0
- package/dist/chunks/environmentSelection-0.7.4-r3g0hp0m.mjs +1 -0
- package/dist/chunks/environments-0.7.4-8n2fat2s.mjs +1 -0
- package/dist/chunks/errors-0.7.4-v9nwybq7.mjs +1 -0
- package/dist/chunks/exampleCommands-0.7.4-80n656nx.mjs +1 -0
- package/dist/chunks/exit-0.7.4-zmzt7mx8.mjs +1 -0
- package/dist/chunks/explorer-0.7.4-1knjqbak.mjs +1 -0
- package/dist/chunks/export-0.7.4-8b909kg4.mjs +2 -0
- package/dist/chunks/extra-usage-0.7.4-gwxf43jr.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.7.4-vntrq9c8.mjs +1 -0
- package/dist/chunks/fast-0.7.4-7d198jes.mjs +1 -0
- package/dist/chunks/feedback-0.7.4-5q49cx0k.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.7.4-w1471f1j.mjs +1 -0
- package/dist/chunks/git-0.7.4-qm9bjwe1.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.7.4-ecrp7kdj.mjs +1 -0
- package/dist/chunks/goal-0.7.4-ce3ysbxg.mjs +4 -0
- package/dist/chunks/grove-0.7.4-20a0nspg.mjs +1 -0
- package/dist/chunks/growthbook-0.7.4-85m0qnfn.mjs +1 -0
- package/dist/chunks/headless-0.7.4-g1me8a7s.mjs +2 -0
- package/dist/chunks/heapdump-0.7.4-sgk3zw0t.mjs +6 -0
- package/dist/chunks/help-0.7.4-aw6p8ena.mjs +1 -0
- package/dist/chunks/hookChains-0.7.4-3eqqv9t2.mjs +3 -0
- package/dist/chunks/hooks-0.7.4-q1wrys2h.mjs +79 -0
- package/dist/chunks/hooks-0.7.4-v782ktbj.mjs +1 -0
- package/dist/chunks/ide-0.7.4-nvtd5hpv.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.7.4-a0arvwvs.mjs +1 -0
- package/dist/chunks/inboundAttachments-0.7.4-9hxndvnx.mjs +1 -0
- package/dist/chunks/index-0.7.4-0atnj624.mjs +1 -0
- package/dist/chunks/index-0.7.4-3yc5n58n.mjs +1 -0
- package/dist/chunks/index-0.7.4-46qessxk.mjs +1 -0
- package/dist/chunks/index-0.7.4-5x44zrgw.mjs +2 -0
- package/dist/chunks/index-0.7.4-97t4afz3.mjs +1 -0
- package/dist/chunks/index-0.7.4-9rhxb7ph.mjs +1 -0
- package/dist/chunks/index-0.7.4-9z6mgm05.mjs +2 -0
- package/dist/chunks/index-0.7.4-adfj0wz0.mjs +1 -0
- package/dist/chunks/index-0.7.4-bv491fah.mjs +5 -0
- package/dist/chunks/index-0.7.4-cxv3b9bg.mjs +1 -0
- package/dist/chunks/index-0.7.4-d7jstqgp.mjs +1 -0
- package/dist/chunks/index-0.7.4-fxa74szv.mjs +1 -0
- package/dist/chunks/index-0.7.4-hh3v0qz8.mjs +1 -0
- package/dist/chunks/index-0.7.4-kkcp2c2w.mjs +9 -0
- package/dist/chunks/index-0.7.4-n3dcdt88.mjs +1 -0
- package/dist/chunks/index-0.7.4-p8ts8cvg.mjs +1 -0
- package/dist/chunks/index-0.7.4-pamx7cgj.mjs +17 -0
- package/dist/chunks/index-0.7.4-pvvgj6g7.mjs +1 -0
- package/dist/chunks/index-0.7.4-rhf5p3mf.mjs +1 -0
- package/dist/chunks/index-0.7.4-rzztd31r.mjs +1 -0
- package/dist/chunks/index-0.7.4-sajaaw7k.mjs +30 -0
- package/dist/chunks/index-0.7.4-xdq0jf9r.mjs +1 -0
- package/dist/chunks/index-0.7.4-z3z8qmah.mjs +9 -0
- package/dist/chunks/init-0.7.4-4e9zty2q.mjs +1 -0
- package/dist/chunks/initReplBridge-0.7.4-yrparcz7.mjs +1 -0
- package/dist/chunks/ink-0.7.4-r1261h4c.mjs +1 -0
- package/dist/chunks/insights-0.7.4-t5dmav2c.mjs +870 -0
- package/dist/chunks/install-0.7.4-09cxj9vb.mjs +1 -0
- package/dist/chunks/install-github-app-0.7.4-hv9wkbxq.mjs +149 -0
- package/dist/chunks/install-slack-app-0.7.4-hgnea2d6.mjs +1 -0
- package/dist/chunks/instrumentation-0.7.4-17ca7p44.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.7.4-8jxj468e.mjs +1 -0
- package/dist/chunks/keybindings-0.7.4-raw68sen.mjs +2 -0
- package/dist/chunks/knowledge-0.7.4-xg9wb8wf.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.7.4-60ks5x17.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.7.4-fg72pr2c.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.7.4-anp72ngw.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.7.4-jsx8r8aw.mjs +1 -0
- package/dist/chunks/log-0.7.4-12x7gw8q.mjs +1 -0
- package/dist/chunks/main-0.7.4-q6k044gc.mjs +1 -0
- package/dist/chunks/managedEnv-0.7.4-74e7mhhm.mjs +1 -0
- package/dist/chunks/mcp-0.7.4-4sr5rcvc.mjs +17 -0
- package/dist/chunks/mcp-0.7.4-9g6a64bt.mjs +4 -0
- package/dist/chunks/mcp-0.7.4-z4k2mzgy.mjs +1 -0
- package/dist/chunks/mcpb-0.7.4-jxskcyd8.mjs +1 -0
- package/dist/chunks/memory-0.7.4-541b29se.mjs +3 -0
- package/dist/chunks/model-0.7.4-mxvb5p7w.mjs +2 -0
- package/dist/chunks/model-0.7.4-nc7qk972.mjs +1 -0
- package/dist/chunks/node-0.7.4-hg387vyg.mjs +12 -0
- package/dist/chunks/oauth-0.7.4-e4sc7m0w.mjs +1 -0
- package/dist/chunks/openaiShim-0.7.4-mwtq6jnq.mjs +14 -0
- package/dist/chunks/output-style-0.7.4-b3vewghm.mjs +1 -0
- package/dist/chunks/package-GCDC7LJR-0.7.4-1e6194dg.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.7.4-46v5dfsp.mjs +1 -0
- package/dist/chunks/parser-0.7.4-2wt2btdd.mjs +1 -0
- package/dist/chunks/passes-0.7.4-182xeaj4.mjs +1 -0
- package/dist/chunks/permissions-0.7.4-hbqjvate.mjs +3 -0
- package/dist/chunks/permissions-0.7.4-qxf6e5nd.mjs +1 -0
- package/dist/chunks/plan-0.7.4-t5djkwkz.mjs +1 -0
- package/dist/chunks/plist-0.7.4-98g5pq7j.mjs +1 -0
- package/dist/chunks/plugin-0.7.4-0kmdzd88.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.7.4-f1kq85sa.mjs +1 -0
- package/dist/chunks/plugins-0.7.4-52qggqw3.mjs +9 -0
- package/dist/chunks/preActionHook-0.7.4-qdyv0zgd.mjs +2 -0
- package/dist/chunks/print-0.7.4-1y1eqyhp.mjs +57 -0
- package/dist/chunks/privacy-settings-0.7.4-jrr06fw8.mjs +1 -0
- package/dist/chunks/process-0.7.4-bh0fjdst.mjs +1 -0
- package/dist/chunks/processBashCommand-0.7.4-8j3chrnm.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.7.4-j53jaae7.mjs +9 -0
- package/dist/chunks/prompt-0.7.4-6eskezm8.mjs +1 -0
- package/dist/chunks/prompt-0.7.4-bnhsjhx3.mjs +1 -0
- package/dist/chunks/prompts-0.7.4-vevq7ae1.mjs +1 -0
- package/dist/chunks/protocolHandler-0.7.4-s4j6aeqh.mjs +13 -0
- package/dist/chunks/provider-0.7.4-jvtch160.mjs +2 -0
- package/dist/chunks/providerProfiles-0.7.4-yqetgvnq.mjs +1 -0
- package/dist/chunks/providerValidation-0.7.4-g6enpya6.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.7.4-cwnmpqq9.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.7.4-z1bdpgwx.mjs +34 -0
- package/dist/chunks/registry-0.7.4-5tne3d7e.mjs +1 -0
- package/dist/chunks/release-notes-0.7.4-sdsbw8s6.mjs +5 -0
- package/dist/chunks/reload-plugins-0.7.4-8fpph071.mjs +2 -0
- package/dist/chunks/remote-env-0.7.4-b1mzf95y.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.7.4-9psc4fph.mjs +1 -0
- package/dist/chunks/remoteSession-0.7.4-8q76j945.mjs +1 -0
- package/dist/chunks/rename-0.7.4-x6q5drmn.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.7.4-dnp2by0g.mjs +1 -0
- package/dist/chunks/replLauncher-0.7.4-ztr3sg2j.mjs +1 -0
- package/dist/chunks/resume-0.7.4-zg3nxxte.mjs +2 -0
- package/dist/chunks/rewind-0.7.4-9j0zbj9a.mjs +1 -0
- package/dist/chunks/rootOptions-0.7.4-jrktzb1h.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.7.4-h71dwt2q.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.7.4-ks8gnbp8.mjs +1 -0
- package/dist/chunks/session-0.7.4-vc75bjkq.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.7.4-aqvmyy21.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.7.4-7rw6txzf.mjs +1 -0
- package/dist/chunks/sessionStorage-0.7.4-820nxqcx.mjs +1 -0
- package/dist/chunks/settings-0.7.4-xn9kh7fk.mjs +1 -0
- package/dist/chunks/setup-0.7.4-ad98h634.mjs +5 -0
- package/dist/chunks/sinks-0.7.4-z7ad37zx.mjs +1 -0
- package/dist/chunks/skills-0.7.4-ad67cz1j.mjs +1 -0
- package/dist/chunks/startupProfiler-0.7.4-akaj65pe.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.7.4-7r3vt1zf.mjs +1 -0
- package/dist/chunks/state-0.7.4-vjqm3ded.mjs +1 -0
- package/dist/chunks/stats-0.7.4-hqz1awtk.mjs +6 -0
- package/dist/chunks/status-0.7.4-e09aw5s3.mjs +1 -0
- package/dist/chunks/stickers-0.7.4-356twswm.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.7.4-zjpbw9eg.mjs +1 -0
- package/dist/chunks/tasks-0.7.4-yqdwmw5j.mjs +1 -0
- package/dist/chunks/teamHelpers-0.7.4-0mtce030.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.7.4-q60shbd0.mjs +1 -0
- package/dist/chunks/teleport-0.7.4-6h25n23n.mjs +1 -0
- package/dist/chunks/terminalSetup-0.7.4-5fm9br3v.mjs +1 -0
- package/dist/chunks/theme-0.7.4-3cxdxqzd.mjs +1 -0
- package/dist/chunks/thinkback-0.7.4-k40dtctf.mjs +1 -0
- package/dist/chunks/thinkback-play-0.7.4-vmbx4r0v.mjs +1 -0
- package/dist/chunks/toolPool-0.7.4-fr9jcgkr.mjs +1 -0
- package/dist/chunks/toolSearch-0.7.4-72eq96x6.mjs +1 -0
- package/dist/chunks/tools-0.7.4-n2jj5cxj.mjs +1 -0
- package/dist/chunks/trustedDevice-0.7.4-5jh1e885.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.7.4-3sq52e78.mjs +69 -0
- package/dist/chunks/types-0.7.4-cybkwcw1.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-0.7.4-p3ykdjx4.mjs +4 -0
- package/dist/chunks/update-0.7.4-9hphbpbx.mjs +86 -0
- package/dist/chunks/upgrade-0.7.4-hhn879a5.mjs +1 -0
- package/dist/chunks/upload-0.7.4-rmfqa4n5.mjs +7 -0
- package/dist/chunks/upstreamproxy-0.7.4-f89cjzmp.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.7.4-kdweyv4n.mjs +1 -0
- package/dist/chunks/usage-0.7.4-z5s6dhj7.mjs +1 -0
- package/dist/chunks/util-0.7.4-wf3hrc3w.mjs +1 -0
- package/dist/chunks/utils-0.7.4-f33hkvq8.mjs +1 -0
- package/dist/chunks/vim-0.7.4-pkw9kc18.mjs +1 -0
- package/dist/chunks/watcher-0.7.4-h80z0z8g.mjs +1 -0
- package/dist/chunks/wiki-0.7.4-5rfrx592.mjs +132 -0
- package/dist/chunks/workflows-0.7.4-7dgxra0n.mjs +1 -0
- package/dist/chunks/worktree-0.7.4-ar646nm5.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.7.4-1z56z896.mjs +1 -0
- package/dist/chunks/wrapper-0.7.4-bp55g4da.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +18 -2
- package/dist/chunks/AgentTool-0.7.2-9q9cf0s2.mjs +0 -1
- package/dist/chunks/App-0.7.2-1yazneaj.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.7.2-r6n7yk1e.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.7.2-bq8tfzkt.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.7.2-exq70cpt.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.7.2-4wq8e6bg.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.2-tfd9bwks.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.7.2-x4nff112.mjs +0 -1
- package/dist/chunks/DiffDialog-0.7.2-rynq65x0.mjs +0 -7
- package/dist/chunks/Doctor-0.7.2-47kvka8v.mjs +0 -1
- package/dist/chunks/ExplorerDialog-0.7.2-whxpmm57.mjs +0 -6
- package/dist/chunks/Grove-0.7.2-xd5sc9zj.mjs +0 -1
- package/dist/chunks/ITermBackend-0.7.2-d9gvx90g.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.7.2-caf92zwe.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.7.2-4ahhegj6.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.7.2-j7wxkhr6.mjs +0 -1
- package/dist/chunks/Onboarding-0.7.2-4rq70qsr.mjs +0 -1
- package/dist/chunks/ProviderManager-0.7.2-gjmzm35c.mjs +0 -1
- package/dist/chunks/REPL-0.7.2-a8j6n2qa.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.7.2-84wvvrx5.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.7.2-wk0qx8j6.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.7.2-dj8zvkv5.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.7.2-ey2mmrd3.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.7.2-j4vtrwzz.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.7.2-en2ev5fc.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.7.2-qkk7a91f.mjs +0 -1
- package/dist/chunks/TrustDialog-0.7.2-eh3tqgea.mjs +0 -1
- package/dist/chunks/activeProvider-0.7.2-53s4g0s8.mjs +0 -1
- package/dist/chunks/add-dir-0.7.2-p09yjmj7.mjs +0 -1
- package/dist/chunks/agents-0.7.2-0m73ejzs.mjs +0 -3
- package/dist/chunks/agents-0.7.2-a1zpb02y.mjs +0 -110
- package/dist/chunks/api-0.7.2-gwy9gs1j.mjs +0 -1
- package/dist/chunks/asciicast-0.7.2-5vqep6sv.mjs +0 -1
- package/dist/chunks/assistant-0.7.2-txvf934b.mjs +0 -1
- package/dist/chunks/auth-0.7.2-02q30rsb.mjs +0 -1
- package/dist/chunks/auth-0.7.2-x29x49yh.mjs +0 -1
- package/dist/chunks/autoMode-0.7.2-5jnc8v33.mjs +0 -48
- package/dist/chunks/autoUpdater-0.7.2-pdqvbd3c.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.7.2-1m4w90vq.mjs +0 -1
- package/dist/chunks/branch-0.7.2-wgyhx41x.mjs +0 -4
- package/dist/chunks/bridge-0.7.2-f4ryhejx.mjs +0 -2
- package/dist/chunks/bridgeConfig-0.7.2-g6w4rghz.mjs +0 -1
- package/dist/chunks/bridgeEnabled-0.7.2-5aspb655.mjs +0 -1
- package/dist/chunks/bridgeMain-0.7.2-fey03cj7.mjs +0 -88
- package/dist/chunks/bridgePointer-0.7.2-8k41syzc.mjs +0 -1
- package/dist/chunks/btw-0.7.2-syxbtnxj.mjs +0 -1
- package/dist/chunks/buddy-0.7.2-gge72j8t.mjs +0 -3
- package/dist/chunks/cacache-0.7.2-gztwvvrm.mjs +0 -1
- package/dist/chunks/cache-probe-0.7.2-1gytt4j5.mjs +0 -21
- package/dist/chunks/cacheStats-0.7.2-sd9n48k1.mjs +0 -4
- package/dist/chunks/caches-0.7.2-cqzt5zwn.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.7.2-7pna3peh.mjs +0 -1
- package/dist/chunks/claudemd-0.7.2-n2d9tbz6.mjs +0 -1
- package/dist/chunks/clear-0.7.2-v59pskrm.mjs +0 -1
- package/dist/chunks/clearTerminal-0.7.2-p4d7q5b7.mjs +0 -1
- package/dist/chunks/cli-0.7.2-0cmw1f4j.mjs +0 -2
- package/dist/chunks/cli-0.7.2-0mj25tns.mjs +0 -2
- package/dist/chunks/cli-0.7.2-0v8f8cx4.mjs +0 -2
- package/dist/chunks/cli-0.7.2-19vhaz2c.mjs +0 -2
- package/dist/chunks/cli-0.7.2-1a4j9k2f.mjs +0 -2
- package/dist/chunks/cli-0.7.2-1aerk8aa.mjs +0 -2
- package/dist/chunks/cli-0.7.2-1rwkghr2.mjs +0 -2
- package/dist/chunks/cli-0.7.2-21mtjks8.mjs +0 -15
- package/dist/chunks/cli-0.7.2-23xjb2nt.mjs +0 -2
- package/dist/chunks/cli-0.7.2-26rzbaez.mjs +0 -2
- package/dist/chunks/cli-0.7.2-29hh46ve.mjs +0 -3
- package/dist/chunks/cli-0.7.2-2dbmqwyn.mjs +0 -2
- package/dist/chunks/cli-0.7.2-2rj33835.mjs +0 -6
- package/dist/chunks/cli-0.7.2-31k7gjq7.mjs +0 -2
- package/dist/chunks/cli-0.7.2-358vh55m.mjs +0 -2
- package/dist/chunks/cli-0.7.2-3cc67r6d.mjs +0 -2
- package/dist/chunks/cli-0.7.2-3frg7csa.mjs +0 -2
- package/dist/chunks/cli-0.7.2-3s2zd715.mjs +0 -3
- package/dist/chunks/cli-0.7.2-3synxf81.mjs +0 -2
- package/dist/chunks/cli-0.7.2-40f37y02.mjs +0 -2
- package/dist/chunks/cli-0.7.2-40xymk1q.mjs +0 -2
- package/dist/chunks/cli-0.7.2-437jawbh.mjs +0 -2
- package/dist/chunks/cli-0.7.2-43d0yq0h.mjs +0 -2
- package/dist/chunks/cli-0.7.2-44rzmsbx.mjs +0 -2
- package/dist/chunks/cli-0.7.2-4d6z9fdj.mjs +0 -2
- package/dist/chunks/cli-0.7.2-4g4d682x.mjs +0 -3
- package/dist/chunks/cli-0.7.2-520tgkhw.mjs +0 -5438
- package/dist/chunks/cli-0.7.2-53qayxqk.mjs +0 -2
- package/dist/chunks/cli-0.7.2-5415yrkc.mjs +0 -2
- package/dist/chunks/cli-0.7.2-55ye29jy.mjs +0 -2
- package/dist/chunks/cli-0.7.2-5750g5et.mjs +0 -2
- package/dist/chunks/cli-0.7.2-59wm2srd.mjs +0 -2
- package/dist/chunks/cli-0.7.2-5aka4emf.mjs +0 -133
- package/dist/chunks/cli-0.7.2-5c89p68w.mjs +0 -2
- package/dist/chunks/cli-0.7.2-5ca5nqtj.mjs +0 -4
- package/dist/chunks/cli-0.7.2-5e72m61f.mjs +0 -25
- package/dist/chunks/cli-0.7.2-5ff63f31.mjs +0 -4
- package/dist/chunks/cli-0.7.2-5gqht4d7.mjs +0 -2
- package/dist/chunks/cli-0.7.2-5qd0bn5g.mjs +0 -193
- package/dist/chunks/cli-0.7.2-5tacs42k.mjs +0 -2
- package/dist/chunks/cli-0.7.2-5y498dyr.mjs +0 -2
- package/dist/chunks/cli-0.7.2-5y75zyrv.mjs +0 -15
- package/dist/chunks/cli-0.7.2-5yrman6f.mjs +0 -2
- package/dist/chunks/cli-0.7.2-60exfzc0.mjs +0 -2
- package/dist/chunks/cli-0.7.2-65v6wt4g.mjs +0 -2
- package/dist/chunks/cli-0.7.2-68dn8am7.mjs +0 -2
- package/dist/chunks/cli-0.7.2-6pjgt9bx.mjs +0 -2
- package/dist/chunks/cli-0.7.2-6zd4a6yh.mjs +0 -12
- package/dist/chunks/cli-0.7.2-796x24s1.mjs +0 -2
- package/dist/chunks/cli-0.7.2-7dh7rk2t.mjs +0 -2
- package/dist/chunks/cli-0.7.2-7rjfehxm.mjs +0 -2
- package/dist/chunks/cli-0.7.2-7xfph0pz.mjs +0 -2
- package/dist/chunks/cli-0.7.2-81s45w7r.mjs +0 -2
- package/dist/chunks/cli-0.7.2-828f420c.mjs +0 -7
- package/dist/chunks/cli-0.7.2-83dd0h2c.mjs +0 -2
- package/dist/chunks/cli-0.7.2-88h70xrj.mjs +0 -50
- package/dist/chunks/cli-0.7.2-894093rv.mjs +0 -2
- package/dist/chunks/cli-0.7.2-89wj5h3q.mjs +0 -2
- package/dist/chunks/cli-0.7.2-8pfcc363.mjs +0 -12
- package/dist/chunks/cli-0.7.2-8qd7xft9.mjs +0 -16
- package/dist/chunks/cli-0.7.2-9156j3vm.mjs +0 -6
- package/dist/chunks/cli-0.7.2-9328ezjz.mjs +0 -3
- package/dist/chunks/cli-0.7.2-9953mwyy.mjs +0 -2
- package/dist/chunks/cli-0.7.2-99am4r15.mjs +0 -4
- package/dist/chunks/cli-0.7.2-9kn29b9a.mjs +0 -4
- package/dist/chunks/cli-0.7.2-9ry87dm1.mjs +0 -2
- package/dist/chunks/cli-0.7.2-9vr6ts7b.mjs +0 -2
- package/dist/chunks/cli-0.7.2-a5svqzyj.mjs +0 -2
- package/dist/chunks/cli-0.7.2-a6q1amed.mjs +0 -2
- package/dist/chunks/cli-0.7.2-a9324x4q.mjs +0 -8
- package/dist/chunks/cli-0.7.2-aaxbm02p.mjs +0 -2
- package/dist/chunks/cli-0.7.2-apg4ptg9.mjs +0 -2
- package/dist/chunks/cli-0.7.2-atsd6734.mjs +0 -2
- package/dist/chunks/cli-0.7.2-avk3azcp.mjs +0 -2
- package/dist/chunks/cli-0.7.2-aye3y5eg.mjs +0 -2
- package/dist/chunks/cli-0.7.2-b0v1mt53.mjs +0 -2
- package/dist/chunks/cli-0.7.2-b9pdb0nv.mjs +0 -26
- package/dist/chunks/cli-0.7.2-bd97qyyb.mjs +0 -2
- package/dist/chunks/cli-0.7.2-bdnz1mnz.mjs +0 -21
- package/dist/chunks/cli-0.7.2-bjk14f5p.mjs +0 -2
- package/dist/chunks/cli-0.7.2-bmz47g1t.mjs +0 -18
- package/dist/chunks/cli-0.7.2-bttmh4fa.mjs +0 -4
- package/dist/chunks/cli-0.7.2-ccy16hvg.mjs +0 -2
- package/dist/chunks/cli-0.7.2-chg4zqj2.mjs +0 -2
- package/dist/chunks/cli-0.7.2-cjhzamwx.mjs +0 -2
- package/dist/chunks/cli-0.7.2-cqh66sd8.mjs +0 -2
- package/dist/chunks/cli-0.7.2-cqqj8v1e.mjs +0 -6
- package/dist/chunks/cli-0.7.2-czgmcj2j.mjs +0 -2
- package/dist/chunks/cli-0.7.2-d5fbych4.mjs +0 -2
- package/dist/chunks/cli-0.7.2-dggndd24.mjs +0 -2
- package/dist/chunks/cli-0.7.2-drxj7wsn.mjs +0 -2
- package/dist/chunks/cli-0.7.2-ds7h4ntr.mjs +0 -2
- package/dist/chunks/cli-0.7.2-dxm2c139.mjs +0 -24
- package/dist/chunks/cli-0.7.2-dzt53r0y.mjs +0 -2
- package/dist/chunks/cli-0.7.2-e6dtw86q.mjs +0 -2
- package/dist/chunks/cli-0.7.2-ec60dmtg.mjs +0 -2
- package/dist/chunks/cli-0.7.2-edf740pd.mjs +0 -5
- package/dist/chunks/cli-0.7.2-eey9qnsc.mjs +0 -2
- package/dist/chunks/cli-0.7.2-eyjs1wq5.mjs +0 -2
- package/dist/chunks/cli-0.7.2-f4nt233k.mjs +0 -3
- package/dist/chunks/cli-0.7.2-fcadqwem.mjs +0 -1
- package/dist/chunks/cli-0.7.2-fkp8v4sr.mjs +0 -2
- package/dist/chunks/cli-0.7.2-g3k7m45h.mjs +0 -12
- package/dist/chunks/cli-0.7.2-g6cqgcyf.mjs +0 -2
- package/dist/chunks/cli-0.7.2-gar34ch2.mjs +0 -4
- package/dist/chunks/cli-0.7.2-gn8ff3x2.mjs +0 -2
- package/dist/chunks/cli-0.7.2-gssxkynf.mjs +0 -2
- package/dist/chunks/cli-0.7.2-gx0r7hs8.mjs +0 -2
- package/dist/chunks/cli-0.7.2-gysw8esj.mjs +0 -2
- package/dist/chunks/cli-0.7.2-h248q4gt.mjs +0 -2
- package/dist/chunks/cli-0.7.2-h3jq0nx1.mjs +0 -2
- package/dist/chunks/cli-0.7.2-h7m849rt.mjs +0 -2
- package/dist/chunks/cli-0.7.2-h903zfjz.mjs +0 -2
- package/dist/chunks/cli-0.7.2-hbmczrch.mjs +0 -9
- package/dist/chunks/cli-0.7.2-he1hdn59.mjs +0 -18
- package/dist/chunks/cli-0.7.2-hspcdhd7.mjs +0 -2
- package/dist/chunks/cli-0.7.2-hv1z3had.mjs +0 -3
- package/dist/chunks/cli-0.7.2-hvk7rgt3.mjs +0 -2
- package/dist/chunks/cli-0.7.2-j029dkan.mjs +0 -3
- package/dist/chunks/cli-0.7.2-j0s33kp5.mjs +0 -2
- package/dist/chunks/cli-0.7.2-j3vx2jqw.mjs +0 -2
- package/dist/chunks/cli-0.7.2-jbhdwhp3.mjs +0 -2
- package/dist/chunks/cli-0.7.2-jc7jm1vm.mjs +0 -2
- package/dist/chunks/cli-0.7.2-jkt40yfs.mjs +0 -2
- package/dist/chunks/cli-0.7.2-jn2497vh.mjs +0 -2
- package/dist/chunks/cli-0.7.2-jv6k1kz6.mjs +0 -2
- package/dist/chunks/cli-0.7.2-k40k933y.mjs +0 -24
- package/dist/chunks/cli-0.7.2-k6jnr159.mjs +0 -2
- package/dist/chunks/cli-0.7.2-k9qpm29e.mjs +0 -2
- package/dist/chunks/cli-0.7.2-kyd7mrxn.mjs +0 -2
- package/dist/chunks/cli-0.7.2-mapkx1gt.mjs +0 -2
- package/dist/chunks/cli-0.7.2-mg2tmjs3.mjs +0 -12
- package/dist/chunks/cli-0.7.2-mja3g8j0.mjs +0 -2
- package/dist/chunks/cli-0.7.2-mp7jnva5.mjs +0 -15
- package/dist/chunks/cli-0.7.2-mqv265gk.mjs +0 -42
- package/dist/chunks/cli-0.7.2-mw93dmjz.mjs +0 -3
- package/dist/chunks/cli-0.7.2-n1ncm3tc.mjs +0 -2
- package/dist/chunks/cli-0.7.2-n8kpba5n.mjs +0 -2
- package/dist/chunks/cli-0.7.2-ndt224p1.mjs +0 -2
- package/dist/chunks/cli-0.7.2-nf346apq.mjs +0 -18
- package/dist/chunks/cli-0.7.2-ngdtr2fz.mjs +0 -2
- package/dist/chunks/cli-0.7.2-nkafymh4.mjs +0 -3
- package/dist/chunks/cli-0.7.2-nxtag6y2.mjs +0 -45
- package/dist/chunks/cli-0.7.2-p42bcqhs.mjs +0 -3
- package/dist/chunks/cli-0.7.2-pbaedfkk.mjs +0 -67
- package/dist/chunks/cli-0.7.2-pjavf176.mjs +0 -2
- package/dist/chunks/cli-0.7.2-pm05qj0a.mjs +0 -4
- package/dist/chunks/cli-0.7.2-ppaeptkd.mjs +0 -2
- package/dist/chunks/cli-0.7.2-q2pk22xv.mjs +0 -2
- package/dist/chunks/cli-0.7.2-q85af7gm.mjs +0 -2
- package/dist/chunks/cli-0.7.2-q88h44qv.mjs +0 -17
- package/dist/chunks/cli-0.7.2-q9twb2tn.mjs +0 -2
- package/dist/chunks/cli-0.7.2-qdapr4dz.mjs +0 -2
- package/dist/chunks/cli-0.7.2-qf8435qy.mjs +0 -2
- package/dist/chunks/cli-0.7.2-qftw5wyw.mjs +0 -5
- package/dist/chunks/cli-0.7.2-qr706n52.mjs +0 -10
- package/dist/chunks/cli-0.7.2-qsx52bst.mjs +0 -2
- package/dist/chunks/cli-0.7.2-r1502pen.mjs +0 -2
- package/dist/chunks/cli-0.7.2-r26ghgw6.mjs +0 -5
- package/dist/chunks/cli-0.7.2-r7x165sf.mjs +0 -17
- package/dist/chunks/cli-0.7.2-rn3w4y3r.mjs +0 -2
- package/dist/chunks/cli-0.7.2-s0av8fr2.mjs +0 -2
- package/dist/chunks/cli-0.7.2-s3r1krp7.mjs +0 -2
- package/dist/chunks/cli-0.7.2-s41x7s9w.mjs +0 -133
- package/dist/chunks/cli-0.7.2-se4w3qaw.mjs +0 -2
- package/dist/chunks/cli-0.7.2-sjrnxjfp.mjs +0 -2
- package/dist/chunks/cli-0.7.2-sr9m45tm.mjs +0 -2
- package/dist/chunks/cli-0.7.2-t1wtmnh8.mjs +0 -2
- package/dist/chunks/cli-0.7.2-tds456xt.mjs +0 -34
- package/dist/chunks/cli-0.7.2-tf3mc20k.mjs +0 -4
- package/dist/chunks/cli-0.7.2-twx01hwg.mjs +0 -2
- package/dist/chunks/cli-0.7.2-tx2rxhrx.mjs +0 -3
- package/dist/chunks/cli-0.7.2-tytdzgnc.mjs +0 -2
- package/dist/chunks/cli-0.7.2-tz5zv753.mjs +0 -6
- package/dist/chunks/cli-0.7.2-tzc6qkph.mjs +0 -3
- package/dist/chunks/cli-0.7.2-vb0ja1yz.mjs +0 -2
- package/dist/chunks/cli-0.7.2-vgq7ce31.mjs +0 -4
- package/dist/chunks/cli-0.7.2-vqvfxb9x.mjs +0 -2
- package/dist/chunks/cli-0.7.2-vvbp0ycp.mjs +0 -2
- package/dist/chunks/cli-0.7.2-vx10940a.mjs +0 -2
- package/dist/chunks/cli-0.7.2-vx90v3pr.mjs +0 -2
- package/dist/chunks/cli-0.7.2-w07ksegr.mjs +0 -2
- package/dist/chunks/cli-0.7.2-waas8a1p.mjs +0 -2
- package/dist/chunks/cli-0.7.2-wahbzckp.mjs +0 -58
- package/dist/chunks/cli-0.7.2-whm7dq8a.mjs +0 -2
- package/dist/chunks/cli-0.7.2-wk3m6ndw.mjs +0 -2
- package/dist/chunks/cli-0.7.2-wmz88sxe.mjs +0 -2
- package/dist/chunks/cli-0.7.2-xced0m7v.mjs +0 -2
- package/dist/chunks/cli-0.7.2-xkbkgc1x.mjs +0 -2
- package/dist/chunks/cli-0.7.2-xmf0q5j5.mjs +0 -39
- package/dist/chunks/cli-0.7.2-xpw13d73.mjs +0 -59
- package/dist/chunks/cli-0.7.2-xtj79p8n.mjs +0 -2
- package/dist/chunks/cli-0.7.2-xwmd0gap.mjs +0 -2
- package/dist/chunks/cli-0.7.2-xzq4nj1z.mjs +0 -2
- package/dist/chunks/cli-0.7.2-ydcqkbay.mjs +0 -20
- package/dist/chunks/cli-0.7.2-yeym3pfk.mjs +0 -4
- package/dist/chunks/cli-0.7.2-ygx94a70.mjs +0 -2
- package/dist/chunks/cli-0.7.2-ymes9mpn.mjs +0 -2
- package/dist/chunks/cli-0.7.2-yppcb6em.mjs +0 -2
- package/dist/chunks/cli-0.7.2-ze0wyhxh.mjs +0 -2
- package/dist/chunks/cli-0.7.2-zevvxkk3.mjs +0 -2
- package/dist/chunks/cli-0.7.2-zjn5drn1.mjs +0 -3
- package/dist/chunks/cli-0.7.2-zva1j44t.mjs +0 -2
- package/dist/chunks/cli-0.7.2-zvq6jw19.mjs +0 -2
- package/dist/chunks/client-0.7.2-5ayk0kpq.mjs +0 -1
- package/dist/chunks/color-0.7.2-qwk7wwhg.mjs +0 -1
- package/dist/chunks/compact-0.7.2-1htfptdq.mjs +0 -3
- package/dist/chunks/config-0.7.2-5qhqvs6r.mjs +0 -1
- package/dist/chunks/config-0.7.2-m4pjdgrd.mjs +0 -1
- package/dist/chunks/constants-0.7.2-pkxz3zw1.mjs +0 -1
- package/dist/chunks/context-0.7.2-sbj7xgcd.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.7.2-0e342zm8.mjs +0 -1
- package/dist/chunks/conversation-0.7.2-8w1wm1xe.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.7.2-qkkqpxf3.mjs +0 -1
- package/dist/chunks/copy-0.7.2-edx6f8tb.mjs +0 -9
- package/dist/chunks/cost-0.7.2-8arxgyd6.mjs +0 -1
- package/dist/chunks/createSSHSession-0.7.2-3n718ymh.mjs +0 -1
- package/dist/chunks/createSession-0.7.2-hm9d0q01.mjs +0 -1
- package/dist/chunks/debug-0.7.2-ngrc7p4e.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.7.2-dftsz493.mjs +0 -1446
- package/dist/chunks/desktop-0.7.2-vt6ymh81.mjs +0 -1
- package/dist/chunks/detectRepository-0.7.2-xgsqcqxv.mjs +0 -1
- package/dist/chunks/detection-0.7.2-m6c0amh8.mjs +0 -1
- package/dist/chunks/diff-0.7.2-7np6da8n.mjs +0 -1
- package/dist/chunks/doctor-0.7.2-spqx634t.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.7.2-81rdywyn.mjs +0 -1
- package/dist/chunks/earlyInput-0.7.2-b7j7hx34.mjs +0 -1
- package/dist/chunks/effort-0.7.2-1jd0yvy3.mjs +0 -10
- package/dist/chunks/envLessBridgeConfig-0.7.2-x5wybzrg.mjs +0 -1
- package/dist/chunks/envUtils-0.7.2-srtr0ybx.mjs +0 -1
- package/dist/chunks/environmentSelection-0.7.2-drjpcqg5.mjs +0 -1
- package/dist/chunks/environments-0.7.2-c51gb5sh.mjs +0 -1
- package/dist/chunks/errors-0.7.2-4mfat7g5.mjs +0 -1
- package/dist/chunks/exampleCommands-0.7.2-c8b6smyk.mjs +0 -1
- package/dist/chunks/exit-0.7.2-0b21e2f4.mjs +0 -1
- package/dist/chunks/explorer-0.7.2-b2qgsg4r.mjs +0 -1
- package/dist/chunks/export-0.7.2-j6tnta5r.mjs +0 -2
- package/dist/chunks/extra-usage-0.7.2-8xrddgmh.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.7.2-vzzkmfzw.mjs +0 -1
- package/dist/chunks/fast-0.7.2-kfcnj6wq.mjs +0 -1
- package/dist/chunks/feedback-0.7.2-cmhc12wj.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.7.2-pa49ax22.mjs +0 -1
- package/dist/chunks/git-0.7.2-9f7gvn9h.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.7.2-qy1mhzsm.mjs +0 -1
- package/dist/chunks/goal-0.7.2-t9vq2zc6.mjs +0 -4
- package/dist/chunks/grove-0.7.2-9sxczf29.mjs +0 -1
- package/dist/chunks/growthbook-0.7.2-ch3yc64n.mjs +0 -1
- package/dist/chunks/headless-0.7.2-9kh4ecvm.mjs +0 -2
- package/dist/chunks/heapdump-0.7.2-jrxgec1e.mjs +0 -6
- package/dist/chunks/help-0.7.2-mkkkzv97.mjs +0 -1
- package/dist/chunks/hookChains-0.7.2-4rsz02te.mjs +0 -3
- package/dist/chunks/hooks-0.7.2-mpa8g97z.mjs +0 -1
- package/dist/chunks/hooks-0.7.2-yaybnthb.mjs +0 -79
- package/dist/chunks/ide-0.7.2-a5p1wn0n.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.7.2-c971ey5m.mjs +0 -1
- package/dist/chunks/inboundAttachments-0.7.2-vkae77ac.mjs +0 -1
- package/dist/chunks/index-0.7.2-4qr2yjjg.mjs +0 -1
- package/dist/chunks/index-0.7.2-5mfmhd35.mjs +0 -1
- package/dist/chunks/index-0.7.2-62g62r4p.mjs +0 -1
- package/dist/chunks/index-0.7.2-7b6mkd4g.mjs +0 -9
- package/dist/chunks/index-0.7.2-87jrdmn3.mjs +0 -2
- package/dist/chunks/index-0.7.2-9h4tsef1.mjs +0 -1
- package/dist/chunks/index-0.7.2-9mk9g3c3.mjs +0 -1
- package/dist/chunks/index-0.7.2-a3w6at2z.mjs +0 -1
- package/dist/chunks/index-0.7.2-b296et1z.mjs +0 -1
- package/dist/chunks/index-0.7.2-c22bn4q9.mjs +0 -1
- package/dist/chunks/index-0.7.2-dn8m3dh3.mjs +0 -9
- package/dist/chunks/index-0.7.2-f8swc4mv.mjs +0 -30
- package/dist/chunks/index-0.7.2-fdsptfbt.mjs +0 -17
- package/dist/chunks/index-0.7.2-g2vfnmjs.mjs +0 -1
- package/dist/chunks/index-0.7.2-hjcptpaz.mjs +0 -1
- package/dist/chunks/index-0.7.2-hts44hhf.mjs +0 -2
- package/dist/chunks/index-0.7.2-k2y0b0h3.mjs +0 -1
- package/dist/chunks/index-0.7.2-nhtpksxs.mjs +0 -5
- package/dist/chunks/index-0.7.2-p5a52s17.mjs +0 -1
- package/dist/chunks/index-0.7.2-r0zwxc1g.mjs +0 -1
- package/dist/chunks/index-0.7.2-vfyvycvc.mjs +0 -1
- package/dist/chunks/index-0.7.2-vw5e1spt.mjs +0 -1
- package/dist/chunks/index-0.7.2-xp0gpx8w.mjs +0 -1
- package/dist/chunks/init-0.7.2-mdhax55g.mjs +0 -1
- package/dist/chunks/initReplBridge-0.7.2-sq5dka9e.mjs +0 -1
- package/dist/chunks/ink-0.7.2-xhfkzs8w.mjs +0 -1
- package/dist/chunks/insights-0.7.2-hnzbcbwt.mjs +0 -870
- package/dist/chunks/install-0.7.2-f33pbxz0.mjs +0 -1
- package/dist/chunks/install-github-app-0.7.2-rysxaqa4.mjs +0 -149
- package/dist/chunks/install-slack-app-0.7.2-nsg858f1.mjs +0 -1
- package/dist/chunks/instrumentation-0.7.2-6t0dw394.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.7.2-wqr53tgp.mjs +0 -1
- package/dist/chunks/keybindings-0.7.2-b6yhemd9.mjs +0 -2
- package/dist/chunks/knowledge-0.7.2-94b972dr.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.7.2-1e9h6ycx.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.7.2-d3vy1hjh.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.7.2-9bdtab1f.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.7.2-v002c6d9.mjs +0 -1
- package/dist/chunks/log-0.7.2-n28x7jf3.mjs +0 -1
- package/dist/chunks/main-0.7.2-bbgx9tzn.mjs +0 -1
- package/dist/chunks/managedEnv-0.7.2-c7gnfsz5.mjs +0 -1
- package/dist/chunks/mcp-0.7.2-nakq1rhg.mjs +0 -1
- package/dist/chunks/mcp-0.7.2-v40gxs87.mjs +0 -17
- package/dist/chunks/mcp-0.7.2-wtmt0vpe.mjs +0 -4
- package/dist/chunks/mcpb-0.7.2-k7z7aa64.mjs +0 -1
- package/dist/chunks/memory-0.7.2-1hfh6410.mjs +0 -3
- package/dist/chunks/model-0.7.2-c8esc658.mjs +0 -1
- package/dist/chunks/model-0.7.2-sjw6chpt.mjs +0 -2
- package/dist/chunks/node-0.7.2-2bm5bpwx.mjs +0 -12
- package/dist/chunks/oauth-0.7.2-ze80cmtw.mjs +0 -1
- package/dist/chunks/openaiShim-0.7.2-qwqrcmfv.mjs +0 -14
- package/dist/chunks/output-style-0.7.2-mhfyzz5h.mjs +0 -1
- package/dist/chunks/package-GCDC7LJR-0.7.2-d271461v.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.7.2-5c6xzn22.mjs +0 -1
- package/dist/chunks/parser-0.7.2-ekqc81n3.mjs +0 -1
- package/dist/chunks/passes-0.7.2-dyr0j4xs.mjs +0 -1
- package/dist/chunks/permissions-0.7.2-ap5ve9y3.mjs +0 -3
- package/dist/chunks/permissions-0.7.2-pqbpv219.mjs +0 -1
- package/dist/chunks/plan-0.7.2-3qcvkebx.mjs +0 -1
- package/dist/chunks/plist-0.7.2-sfrs3sb5.mjs +0 -1
- package/dist/chunks/plugin-0.7.2-23zzkpzp.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.7.2-hdbd4vjf.mjs +0 -1
- package/dist/chunks/plugins-0.7.2-8b79cq4h.mjs +0 -9
- package/dist/chunks/preActionHook-0.7.2-denqn35e.mjs +0 -2
- package/dist/chunks/print-0.7.2-k3jvb8xp.mjs +0 -57
- package/dist/chunks/privacy-settings-0.7.2-2a25e9zd.mjs +0 -1
- package/dist/chunks/process-0.7.2-bydxzc10.mjs +0 -1
- package/dist/chunks/processBashCommand-0.7.2-n8zeggtq.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.7.2-8bkqmvyg.mjs +0 -9
- package/dist/chunks/prompt-0.7.2-xcyvamqv.mjs +0 -1
- package/dist/chunks/prompt-0.7.2-zgvfvr40.mjs +0 -1
- package/dist/chunks/prompts-0.7.2-v3chnzw2.mjs +0 -1
- package/dist/chunks/protocolHandler-0.7.2-pcar7hdp.mjs +0 -13
- package/dist/chunks/provider-0.7.2-amg0a8yq.mjs +0 -2
- package/dist/chunks/providerProfiles-0.7.2-nwbz4k4w.mjs +0 -1
- package/dist/chunks/providerValidation-0.7.2-acwg3yzh.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.7.2-spv7s8hs.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.7.2-7g1dds0b.mjs +0 -34
- package/dist/chunks/registry-0.7.2-kv34xe3p.mjs +0 -1
- package/dist/chunks/release-notes-0.7.2-amerc2cj.mjs +0 -5
- package/dist/chunks/reload-plugins-0.7.2-tx1872h3.mjs +0 -2
- package/dist/chunks/remote-env-0.7.2-hq2w0qkg.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.7.2-5stcs58w.mjs +0 -1
- package/dist/chunks/remoteSession-0.7.2-zwc7cra7.mjs +0 -1
- package/dist/chunks/rename-0.7.2-gk2b22q0.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.7.2-17phx9ww.mjs +0 -1
- package/dist/chunks/replLauncher-0.7.2-th0j1erj.mjs +0 -1
- package/dist/chunks/resume-0.7.2-xmxzptvs.mjs +0 -2
- package/dist/chunks/rewind-0.7.2-bvjnkrk2.mjs +0 -1
- package/dist/chunks/rootOptions-0.7.2-2cy9mmwc.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.7.2-h0xxevv6.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.7.2-qhhmmtft.mjs +0 -1
- package/dist/chunks/session-0.7.2-c8me3g3x.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.7.2-3k39j4tc.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.7.2-rv6etkhg.mjs +0 -1
- package/dist/chunks/sessionStorage-0.7.2-97nxk3y6.mjs +0 -1
- package/dist/chunks/settings-0.7.2-xc200363.mjs +0 -1
- package/dist/chunks/setup-0.7.2-c982wyvz.mjs +0 -5
- package/dist/chunks/sinks-0.7.2-95rk1mrs.mjs +0 -1
- package/dist/chunks/skills-0.7.2-6gdq6xgn.mjs +0 -1
- package/dist/chunks/startupProfiler-0.7.2-bx988amf.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.7.2-n1cjfry1.mjs +0 -1
- package/dist/chunks/state-0.7.2-p9tevca2.mjs +0 -1
- package/dist/chunks/stats-0.7.2-8xhdefb7.mjs +0 -6
- package/dist/chunks/status-0.7.2-fh89jm1g.mjs +0 -1
- package/dist/chunks/stickers-0.7.2-8p2fssw5.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.7.2-rxrfb67k.mjs +0 -1
- package/dist/chunks/tasks-0.7.2-e27mj4dh.mjs +0 -1
- package/dist/chunks/teamHelpers-0.7.2-m3z5pcdz.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.7.2-p7amb3d6.mjs +0 -1
- package/dist/chunks/teleport-0.7.2-5esyfq9r.mjs +0 -1
- package/dist/chunks/terminalSetup-0.7.2-yscmphsc.mjs +0 -1
- package/dist/chunks/theme-0.7.2-1zmsca02.mjs +0 -1
- package/dist/chunks/thinkback-0.7.2-17ff2vy3.mjs +0 -1
- package/dist/chunks/thinkback-play-0.7.2-mdnape3r.mjs +0 -1
- package/dist/chunks/toolPool-0.7.2-jbgwb4kh.mjs +0 -1
- package/dist/chunks/toolSearch-0.7.2-c6qby1zz.mjs +0 -1
- package/dist/chunks/tools-0.7.2-b04qyzf8.mjs +0 -1
- package/dist/chunks/trustedDevice-0.7.2-jz3zmc03.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.7.2-bj6egxgk.mjs +0 -69
- package/dist/chunks/types-0.7.2-fsjvv1kt.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-0.7.2-w2fbj23d.mjs +0 -4
- package/dist/chunks/update-0.7.2-4ccgmd4p.mjs +0 -86
- package/dist/chunks/upgrade-0.7.2-d7h7vmqn.mjs +0 -1
- package/dist/chunks/upload-0.7.2-p6je053d.mjs +0 -7
- package/dist/chunks/upstreamproxy-0.7.2-sjmkdjb8.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.7.2-snjwvzje.mjs +0 -1
- package/dist/chunks/usage-0.7.2-2k2m3v75.mjs +0 -1
- package/dist/chunks/util-0.7.2-n4vdasdr.mjs +0 -1
- package/dist/chunks/utils-0.7.2-bmqt59ff.mjs +0 -1
- package/dist/chunks/vim-0.7.2-bd15xeza.mjs +0 -1
- package/dist/chunks/watcher-0.7.2-pjzeng3k.mjs +0 -1
- package/dist/chunks/wiki-0.7.2-2a655hhv.mjs +0 -132
- package/dist/chunks/worktree-0.7.2-gs72mnyb.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.7.2-gqtz9ha6.mjs +0 -1
- package/dist/chunks/wrapper-0.7.2-j420s6rc.mjs +0 -7
- /package/dist/chunks/{cli-0.7.2-1xbehmgb.mjs → cli-0.7.4-a8qv9b1x.mjs} +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{B1 as w,z1 as k}from"./cli-0.7.4-sw7nh3hq.mjs";import{U6 as j,m7 as v}from"./cli-0.7.4-2haqz80h.mjs";import{fga as d,qga as h,rga as s}from"./cli-0.7.4-h57hq23q.mjs";import{Dja as q}from"./cli-0.7.4-h0ze5j97.mjs";import{Pqa as p}from"./cli-0.7.4-58p1wenr.mjs";function m(){return y()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function x(){return m()}async function O(){return x()}async function P(){if(!m())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function y(){try{return j()}catch{return!1}}function Q(){return d("tengu_bridge_repl_v2",!1)}function R(){return d("tengu_bridge_repl_v2_cse_shim_enabled",!0)}function U(){{let b=h("tengu_bridge_min_version",{minVersion:"0.0.0"});if(b.minVersion&&k("99.0.0",b.minVersion))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
+
Version ${b.minVersion} or higher is required. Run \`claudin update\` to update.`}return null}function W(){return!1}function X(){return!1}var z=p(()=>{s();v();q();w()});
|
|
3
|
+
export{x as WV,O as XV,P as YV,Q as ZV,R as _V,U as $V,W as aW,X as bW,z as cW};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{B1 as OJ,y1 as o}from"./cli-0.7.4-sw7nh3hq.mjs";import{Bda as D,Q$ as G,S$ as BJ,Zea as q,dda as v,f9 as K,fca as i,ffa as E,g9 as I,pca as HJ}from"./cli-0.7.4-hvnzwb5v.mjs";import{Fha as A,Iha as XJ}from"./cli-0.7.4-d9y5wx3y.mjs";import{Iia as W,Lia as zJ,lia as k,mia as j,qia as C,uia as y,yia as F}from"./cli-0.7.4-hegk157e.mjs";import{Sia as l,hja as O,ija as w,lja as p,nja as R}from"./cli-0.7.4-g9w5x5ns.mjs";import{Dja as b,qja as H}from"./cli-0.7.4-h0ze5j97.mjs";import{Pqa as M}from"./cli-0.7.4-58p1wenr.mjs";import{access as P,chmod as JJ,writeFile as QJ}from"fs/promises";import{homedir as f}from"os";import{join as B}from"path";function S(){return B(H(),"local")}function YJ(J=f()){return B(J,".claude","local")}function m(J){let Q=J?.homeDir??f(),Y=J?.configHomeDir??H();return Array.from(new Set([B(Y,"local"),YJ(Q)]))}function d(J){return[B(J,"node_modules",".bin","claudin"),B(J,"node_modules",".bin","claude")]}function ZJ(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function T(){return B(S(),"claudin")}function DJ(){return ZJ(process.argv[1]||"")}async function L(J,Q,Y){try{return await QJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(O(Z)==="EEXIST")return!1;throw Z}}async function $J(){try{let J=S();await y().mkdir(J),await L(B(J,"package.json"),k({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=T();if(await L(Q,`#!/bin/sh
|
|
2
|
+
exec "${J}/node_modules/.bin/claudin" "$@"`,493))await JJ(Q,493);return!0}catch(J){return q(J),!1}}async function EJ(J,Q){try{if(!await $J())return"install_failed";let Z=await K("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:S(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return v(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function PJ(){for(let J of m())for(let Q of d(J))try{return await P(Q),!0}catch{}return!1}async function fJ(){for(let J of m())for(let Q of d(J))try{return await P(Q),J}catch{}return null}function mJ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var u=M(()=>{D();b();R();I();F();E();C()});import{open as qJ,readFile as WJ,stat as KJ}from"fs/promises";import{homedir as h}from"os";import{join as U}from"path";function V(J){let Q=J?.homedir??h(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:U(Z,".zshrc"),bash:U(Q,".bashrc"),fish:U(Q,".config/fish/config.fish")}}function g(J){let Q=!1;return{filtered:J.filter((Z)=>{if(c.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===T())return Q=!0,!1}}return!0}),hadAlias:Q}}async function x(J){try{return(await WJ(J,{encoding:"utf8"})).split(`
|
|
3
|
+
`)}catch(Q){if(p(Q))return null;throw Q}}async function n(J,Q){let Y=await qJ(J,"w");try{await Y.writeFile(Q.join(`
|
|
4
|
+
`),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function NJ(J){let Q=V(J);for(let Y of Object.values(Q)){let Z=await x(Y);if(!Z)continue;for(let $ of Z)if(c.test($)){let N=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(N&&N[1])return N[1]}}return null}async function nJ(J){let Q=await NJ(J);if(!Q)return null;let Y=J?.homedir??h(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await KJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var c;var s=M(()=>{R();u();c=/^\s*alias\s+claude\s*=/});import{constants as yJ}from"fs";import{access as GJ,writeFile as a}from"fs/promises";import{homedir as X}from"os";import{join as _J}from"path";function r(){let J=process.argv[1]||"";if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}async function vJ(){let J=await K("bun",["pm","ls","-g"],{cwd:X()});if(J.code!==0)return!1;return J.stdout.includes("@claudiolabs/claudin")}async function zQ(){}async function BQ(){return}async function HQ(){return}function OQ(J){let Y=i()?.minimumVersion;if(!Y)return!1;let Z=!o(J,Y);if(Z)W(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function e(){return _J(H(),".update.lock")}async function wJ(){let J=y(),Q=e();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<t)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<t)return!1;await J.unlink(Q)}catch($){if(!w($))return q($),!1}}catch(Y){if(!w(Y))return q(Y),!1}try{return await a(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=O(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(H()),await a(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(O($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function MJ(){let J=y(),Q=e();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(w(Y))return;q(Y)}}async function RJ(){let J=G.isRunningWithBun()||r(),Q=null;if(J)Q=await K("bun",["pm","bin","-g"],{cwd:X()});else Q=await K("npm",["-g","config","get","prefix"],{cwd:X()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function SJ(){try{let J=await RJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await GJ(J,yJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new _("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function yQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await K("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:X()});if($.code!==0){if(W(`npm view failed with code ${$.code}`),$.stderr)W(`npm stderr: ${$.stderr.trim()}`);else W("npm stderr: (empty)");if($.stdout)W(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function GQ(){let J=await K("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:X()});if(J.code!==0)return W(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=j(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return W(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function _Q(J){return null}async function vQ(){return{latest:null,stable:null}}async function wQ(J){let Y=await K("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:X()});if(Y.code!==0){if(W(`npm view versions failed with code ${Y.code}`),Y.stderr)W(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return j(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return W(`Failed to parse version history: ${Z}`),[]}}async function MQ(J){if(!await wJ())return q(new _("Another process is currently installing an update")),A("tengu_auto_updater_lock_contention",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{if(await TJ(),!G.isRunningWithBun()&&G.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),A("tengu_auto_updater_windows_npm_in_wsl",{currentVersion:"99.0.0"}),console.error(`
|
|
5
|
+
Error: Windows NPM detected in WSL
|
|
6
|
+
|
|
7
|
+
You're running Claude Code in WSL but using the Windows NPM installation from /mnt/c/.
|
|
8
|
+
This configuration is not supported for updates.
|
|
9
|
+
|
|
10
|
+
To fix this issue:
|
|
11
|
+
1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
|
|
12
|
+
2. Make sure Linux NPM is in your PATH before the Windows version
|
|
13
|
+
3. Try updating again with 'claude update'
|
|
14
|
+
`),"install_failed";let{hasPermissions:Q}=await SJ();if(!Q)return"no_permissions";let Y=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",Z=G.isRunningWithBun()||r()?"bun":"npm",N=await K(Z,Z==="npm"?["install","-g","--force",Y]:["install","-g",Y],{cwd:X()});if(N.code!==0){let z=new _(`Failed to install new version of claude: ${N.stdout} ${N.stderr}`);return q(z),"install_failed"}if(Z==="npm"&&await vJ()){let z=await K("bun",["install","-g",Y],{cwd:X()});if(z.code!==0)q(new _(`Failed to update bun global install: ${z.stdout} ${z.stderr}`))}return v((z)=>({...z,installMethod:"global"})),"success"}finally{await MJ()}}async function TJ(){let J=V();for(let[,Q]of Object.entries(J))try{let Y=await x(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=g(Y);if($)await n(Q,Z),W(`Removed claude alias from ${Q}`)}catch(Y){W(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var _,t=300000;var UJ=M(()=>{XJ();D();zJ();BJ();b();R();I();F();E();OJ();HJ();s();C();_=class _ extends l{}});
|
|
15
|
+
export{DJ as vT,EJ as wT,PJ as xT,fJ as yT,mJ as zT,u as AT,V as BT,g as CT,x as DT,n as ET,NJ as FT,nJ as GT,s as HT,zQ as IT,BQ as JT,HQ as KT,OQ as LT,e as MT,SJ as NT,yQ as OT,GQ as PT,_Q as QT,vQ as RT,wQ as ST,MQ as TT,UJ as UT};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Kea as B,Nea as K,aea as $,bea as y,t9 as Z,v9 as f}from"./cli-0.7.4-hvnzwb5v.mjs";import{Dja as E,vja as Y}from"./cli-0.7.4-h0ze5j97.mjs";import{Pqa as N,Qqa as x}from"./cli-0.7.4-58p1wenr.mjs";import{existsSync as S}from"node:fs";import{homedir as F}from"node:os";import{join as X}from"node:path";function _(){if(Y())return;try{return $().read()?.gemini?.accessToken?.trim()||void 0}catch{return}}function J(b){let w=b?.trim();return w?w:void 0}function V(b=process.env){return J(b.GOOGLE_CLOUD_PROJECT)??J(b.GCLOUD_PROJECT)??J(b.GOOGLE_PROJECT_ID)}function D(b=process.env){let w=J(b.GEMINI_AUTH_MODE)?.toLowerCase();if(w==="api-key"||w==="access-token"||w==="adc")return w;return}function P(b=process.env){let w=J(b.GOOGLE_APPLICATION_CREDENTIALS),q=new Set;if(w)q.add(w);q.add(X(F(),".config","gcloud","application_default_credentials.json"));let O=J(b.APPDATA);if(O)q.add(X(O,"gcloud","application_default_credentials.json"));return[...q]}function k(b=process.env){return P(b).some((w)=>S(w))}function G(b){if(typeof b==="string")return J(b);return J(b?.token)}async function A(){let{GoogleAuth:b}=await import("google-auth-library");return new b({scopes:[z]})}async function L(b,w){if(!k(b))return{kind:"none"};try{let q=await(w.createGoogleAuth??A)(),O=await q.getClient(),R=G(await O.getAccessToken());if(!R)return{kind:"none"};let Q=V(b)??(typeof q.getProjectId==="function"?J(await q.getProjectId().catch(()=>{return})):void 0);return{kind:"adc",credential:R,...Q?{projectId:Q}:{}}}catch{return{kind:"none"}}}async function s(b=process.env,w={}){let q=D(b),O=B(),R=O?.transport==="gemini"?J(O.apiKey):void 0,U=q==="access-token"||q==="adc"?void 0:R;if(U&&(q===void 0||q==="api-key"))return{kind:"api-key",credential:U};let Q=q==="api-key"||q==="adc"?void 0:J(_());if(Q&&(q===void 0||q==="access-token")){let W=V(b);return{kind:"access-token",credential:Q,...W?{projectId:W}:{}}}if(q==="api-key"||q==="access-token")return{kind:"none"};if(w.createGoogleAuth)return L(b,w);return T(J(b.GOOGLE_APPLICATION_CREDENTIALS),J(b.APPDATA),F(),V(b))}var z="https://www.googleapis.com/auth/cloud-platform",C=300000,T;var g=N(()=>{K();E();f();y();T=Z(async(b,w,q,O)=>L({GOOGLE_APPLICATION_CREDENTIALS:b,APPDATA:w,GOOGLE_CLOUD_PROJECT:O,GCLOUD_PROJECT:O,GOOGLE_PROJECT_ID:O,HOME:q},{}),C)});
|
|
2
|
+
export{D as ri,s as si,g as ti};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Hi as H,Ji as C}from"./cli-0.7.4-hw93j7vq.mjs";import{Ki as k,Li as y}from"./cli-0.7.4-q23avgwg.mjs";import{W2 as X,Y2 as Y,b3 as R}from"./cli-0.7.4-h94hrj45.mjs";import{d3 as G,e3 as m}from"./cli-0.7.4-da69w12w.mjs";import{H3 as w,I3 as E,Z6 as B,m7 as f}from"./cli-0.7.4-2haqz80h.mjs";import{Bda as x,Zea as Q,dda as S,ffa as D,gda as j}from"./cli-0.7.4-hvnzwb5v.mjs";import{Dha as V,Eha as b}from"./cli-0.7.4-nbnqrjgm.mjs";import{_pa as W,qqa as I}from"./cli-0.7.4-8xxafyv0.mjs";import{Pqa as Z}from"./cli-0.7.4-58p1wenr.mjs";async function _(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests`;return(await W.post(J,L,{headers:K})).data}async function $(L,N){let{accessToken:P,orgUUID:K}=await X(),J={...Y(P),"x-organization-uuid":K},F=`${V().BASE_API_URL}/api/oauth/organizations/${K}/admin_requests/me?request_type=${L}`;for(let v of N)F+=`&statuses=${v}`;return(await W.get(F,{headers:J})).data}async function z(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests/eligibility?request_type=${L}`;return(await W.get(J,{headers:K})).data}var M=Z(()=>{I();b();R()});async function i(){if(!j().hasVisitedExtraUsage)S((J)=>({...J,hasVisitedExtraUsage:!0}));H();let L=B(),N=L==="team"||L==="enterprise";if(!w()&&N){let J;try{J=(await k())?.extra_usage}catch(F){Q(F)}if(J?.is_enabled&&J.monthly_limit===null)return{type:"message",value:"Your organization already has unlimited extra usage. No request needed."};try{if((await z("limit_increase"))?.is_allowed===!1)return{type:"message",value:"Please contact your admin to manage extra usage settings."}}catch(F){Q(F)}try{let F=await $("limit_increase",["pending","dismissed"]);if(F&&F.length>0)return{type:"message",value:"You have already submitted a request for extra usage to your admin."}}catch(F){Q(F)}try{return await _({request_type:"limit_increase",details:null}),{type:"message",value:J?.is_enabled?"Request sent to your admin to increase extra usage.":"Request sent to your admin to enable extra usage."}}catch(F){Q(F)}return{type:"message",value:"Please contact your admin to manage extra usage settings."}}let K=N?"https://claude.ai/admin-settings/usage":"https://claude.ai/settings/usage";try{let J=await G(K);return{type:"browser-opened",url:K,opened:J}}catch(J){return Q(J),{type:"message",value:`Failed to open browser. Please visit ${K} to manage extra usage.`}}}var A=Z(()=>{M();C();y();f();E();m();x();D()});
|
|
2
|
+
export{i as Ei,A as Fi};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ai as Vq,bi as fq}from"./cli-0.7.4-aswaa5m4.mjs";import{FX as Qq,HX as Uq,IX as Hq,jX as Pq,kX as mq,yX as o,zX as pq}from"./cli-0.7.4-wtz9ed9r.mjs";import{UZ as M,WZ as g,z0 as Wq,zY as Sq}from"./cli-0.7.4-2apswqf5.mjs";import{F2 as Z,G2 as F,H2 as Jq}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as _q}from"./cli-0.7.4-85txq06q.mjs";import{kfa as s,lfa as jq}from"./cli-0.7.4-rskynrc5.mjs";import{Lqa as Lq,Pqa as wq}from"./cli-0.7.4-58p1wenr.mjs";function lq(A){let q=C.c(25),{title:J,color:V,defaultTab:Q,children:L,hidden:G,useFullWidth:K,selectedTab:E,onTabChange:k,banner:T,disableNavigation:a,initialHeaderFocused:n,contentHeight:y,navFromContent:d}=A,Xq=n===void 0?!0:n,Yq=d===void 0?!1:d,{columns:t}=Pq(),X=L.map(Iq),e=Q?X.findIndex((U)=>Q===U[0]):0,x=E!==void 0,[Zq,kq]=P.useState(e!==-1?e:0),qq=x?X.findIndex((U)=>U[0]===E):-1,z=x?qq!==-1?qq:0:Zq,N=Uq(),[Y,v]=P.useState(Xq),O;if(q[0]===Symbol.for("react.memo_cache_sentinel"))O=()=>v(!0),q[0]=O;else O=q[0];let zq=O,R;if(q[1]===Symbol.for("react.memo_cache_sentinel"))R=()=>v(!1),q[1]=R;else R=q[1];let Eq=R,[Nq,Aq]=P.useState(0),w;if(q[2]===Symbol.for("react.memo_cache_sentinel"))w=()=>{return Aq(Cq),()=>Aq(gq)},q[2]=w;else w=q[2];let vq=w,j=Nq>0,_=(U)=>{let H=(z+X.length+U)%X.length,f=X[H]?.[0];if(x&&k&&f)k(f);else kq(H);v(!0)},b=!G&&!a&&Y,S;if(q[3]!==b)S={context:"Tabs",isActive:b},q[3]=b,q[4]=S;else S=q[4];o({"tabs:next":()=>_(1),"tabs:previous":()=>_(-1)},S);let W;if(q[5]!==Y||q[6]!==G||q[7]!==j)W=(U)=>{if(!Y||!j||G)return;if(U.key==="down")U.preventDefault(),v(!1)},q[5]=Y,q[6]=G,q[7]=j,q[8]=W;else W=q[8];let u=W,$=Yq&&!Y&&j&&!G&&!a,m;if(q[9]!==$)m={context:"Tabs",isActive:$},q[9]=$,q[10]=m;else m=q[10];o({"tabs:next":()=>{_(1),v(!0)},"tabs:previous":()=>{_(-1),v(!0)}},m);let Dq=J?s(J)+1:0,Mq=X.reduce(Fq,0),Bq=Dq+Mq,Gq=K?Math.max(0,t-Bq):0,B=K?t:void 0,h=M,Kq="column",yq=0,Oq=!0,c=N?0:void 0,r=!G&&F(M,{flexDirection:"row",gap:1,flexShrink:N?0:void 0,children:[J!==void 0&&Z(g,{bold:!0,color:V,children:J}),X.map((U,H)=>{let[f,Rq]=U,i=z===H,l=V&&i&&Y;return F(g,{backgroundColor:l?V:void 0,color:l?"inverseText":void 0,inverse:i&&!l,bold:i,children:[" ",Rq," "]},f)}),Gq>0&&Z(g,{children:" ".repeat(Gq)})]},`${z}-${Y?"focused":"blurred"}`),D;if(q[11]!==L||q[12]!==y||q[13]!==B||q[14]!==G||q[15]!==N||q[16]!==z)D=N?Z(M,{width:B,marginTop:G?0:1,flexShrink:0,children:Z(Vq,{ref:N,flexDirection:"column",flexShrink:0,children:L},z)}):Z(M,{width:B,marginTop:G?0:1,height:y,overflowY:y!==void 0?"hidden":void 0,children:L}),q[11]=L,q[12]=y,q[13]=B,q[14]=G,q[15]=N,q[16]=z,q[17]=D;else D=q[17];let p;if(q[18]!==h||q[19]!==T||q[20]!==u||q[21]!==c||q[22]!==r||q[23]!==D)p=F(h,{flexDirection:Kq,tabIndex:yq,autoFocus:Oq,onKeyDown:u,flexShrink:c,children:[r,T,D]}),q[18]=h,q[19]=T,q[20]=u,q[21]=c,q[22]=r,q[23]=D,q[24]=p;else p=q[24];return Z(I.Provider,{value:{selectedTab:X[z][0],width:B,headerFocused:Y,focusHeader:zq,blurHeader:Eq,registerOptIn:vq},children:p})}function Fq(A,q){let[,J]=q;return A+(J?s(J):0)+2+1}function gq(A){return A-1}function Cq(A){return A+1}function Iq(A){return[A.props.id??A.props.title,A.props.title]}function oq(A){let q=C.c(4),{title:J,id:V,children:Q}=A,{selectedTab:L,width:G}=P.useContext(I),K=Qq();if(L!==(V??J))return null;let E=K?0:void 0,k;if(q[0]!==Q||q[1]!==E||q[2]!==G)k=Z(M,{width:G,flexShrink:E,children:Q}),q[0]=Q,q[1]=E,q[2]=G,q[3]=k;else k=q[3];return k}function sq(){let{width:A}=P.useContext(I);return A}function aq(){let A=C.c(6),{headerFocused:q,focusHeader:J,blurHeader:V,registerOptIn:Q}=P.useContext(I),L;if(A[0]!==Q)L=[Q],A[0]=Q,A[1]=L;else L=A[1];P.useEffect(Q,L);let G;if(A[2]!==V||A[3]!==J||A[4]!==q)G={headerFocused:q,focusHeader:J,blurHeader:V},A[2]=V,A[3]=J,A[4]=q,A[5]=G;else G=A[5];return G}var C,P,I;var Tq=wq(()=>{Hq();mq();fq();jq();Wq();pq();Jq();C=Lq(Sq(),1),P=Lq(_q(),1),I=P.createContext({selectedTab:void 0,width:void 0,headerFocused:!1,focusHeader:()=>{},blurHeader:()=>{},registerOptIn:()=>()=>{}})});
|
|
2
|
+
export{lq as Ah,oq as Bh,sq as Ch,aq as Dh,Tq as Eh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Mh as e,Ph as fq}from"./cli-0.7.4-q4g37dxk.mjs";import{Qh as t,Sh as Hq}from"./cli-0.7.4-pyyaz246.mjs";import{FF as n,GF as Mq,Gn as S,Hn as Nq,In as g,Jn as Vq,Kn as $,Ln as Wq,On as i,Pn as Yq,bO as o,cO as s,dO as Oq,vF as r,wF as kq}from"./cli-0.7.4-1tkzz9x6.mjs";import{xX as u,zX as Zq}from"./cli-0.7.4-wtz9ed9r.mjs";import{UZ as M,WZ as F,m0 as c,n0 as Uq,z0 as Xq,zY as Qq}from"./cli-0.7.4-2apswqf5.mjs";import{F2 as L,G2 as R,H2 as l}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as Lq}from"./cli-0.7.4-85txq06q.mjs";import{P8 as d,Q8 as Jq}from"./cli-0.7.4-hvnzwb5v.mjs";import{Lqa as a,Pqa as Gq}from"./cli-0.7.4-58p1wenr.mjs";function qq(){let Z=T.c(1),q;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=L(F,{dimColor:!0,children:"Claude Code will be able to read files in this directory and make edits when auto-accept edits is on."}),Z[0]=q;else q=Z[0];return q}function wq(Z){let q=T.c(5),{path:X}=Z,Q;if(q[0]!==X)Q=L(F,{color:"permission",children:X}),q[0]=X,q[1]=Q;else Q=q[1];let N;if(q[2]===Symbol.for("react.memo_cache_sentinel"))N=L(qq,{}),q[2]=N;else N=q[2];let J;if(q[3]!==Q)J=R(M,{flexDirection:"column",paddingX:2,gap:1,children:[Q,N]}),q[3]=Q,q[4]=J;else J=q[4];return J}function Kq(Z){let q=T.c(14),{value:X,onChange:Q,onSubmit:N,error:J,suggestions:V,selectedSuggestion:w}=Z,k;if(q[0]===Symbol.for("react.memo_cache_sentinel"))k=L(F,{children:"Enter the path to the directory:"}),q[0]=k;else k=q[0];let Y;if(q[1]!==Q||q[2]!==N||q[3]!==X)Y=L(M,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:L(r,{showCursor:!0,placeholder:`Directory path${d.ellipsis}`,value:X,onChange:Q,onSubmit:N,columns:80,cursorOffset:X.length,onChangeCursorOffset:Aq})}),q[1]=Q,q[2]=N,q[3]=X,q[4]=Y;else Y=q[4];let W;if(q[5]!==w||q[6]!==V)W=V.length>0&&L(M,{marginBottom:1,children:L(t,{suggestions:V,selectedSuggestion:w})}),q[5]=w,q[6]=V,q[7]=W;else W=q[7];let U;if(q[8]!==J)U=J&&L(F,{color:"error",children:J}),q[8]=J,q[9]=U;else U=q[9];let O;if(q[10]!==Y||q[11]!==W||q[12]!==U)O=R(M,{flexDirection:"column",children:[k,Y,W,U]}),q[10]=Y,q[11]=W,q[12]=U,q[13]=O;else O=q[13];return O}function Aq(){}function lq(Z){let q=T.c(34),{onAddDirectory:X,onCancel:Q,permissionContext:N,directoryPath:J}=Z,[V,w]=H.useState(""),[k,Y]=H.useState(null),W;if(q[0]===Symbol.for("react.memo_cache_sentinel"))W=[],q[0]=W;else W=q[0];let[U,O]=H.useState(W),[f,B]=H.useState(0),v;if(q[1]===Symbol.for("react.memo_cache_sentinel"))v=async(z)=>{if(!z){O([]),B(0);return}let G=await e(z);O(G),B(0)},q[1]=v;else v=q[1];let I=c(v,100),C,P;if(q[2]!==I||q[3]!==V)C=()=>{I(V)},P=[V,I],q[2]=I,q[3]=V,q[4]=C,q[5]=P;else C=q[4],P=q[5];H.useEffect(C,P);let m;if(q[6]===Symbol.for("react.memo_cache_sentinel"))m=(z)=>{let G=z.id+"/";w(G),Y(null)},q[6]=m;else m=q[6];let zq=m,_;if(q[7]!==X||q[8]!==N)_=async(z)=>{let G=await o(z,N);if(G.resultType==="success")X(G.absolutePath,!1);else Y(s(G))},q[7]=X,q[8]=N,q[9]=_;else _=q[9];let K=_,D;if(q[10]===Symbol.for("react.memo_cache_sentinel"))D={context:"Settings"},q[10]=D;else D=q[10];u("confirm:no",Q,D);let b;if(q[11]!==K||q[12]!==f||q[13]!==U)b=(z)=>{if(U.length>0){if(z.key==="tab"){z.preventDefault();let G=U[f];if(G)zq(G);return}if(z.key==="return"){z.preventDefault();let G=U[f];if(G)K(G.id+"/");return}if(z.key==="up"||z.ctrl&&z.key==="p"){z.preventDefault(),B((G)=>G<=0?U.length-1:G-1);return}if(z.key==="down"||z.ctrl&&z.key==="n"){z.preventDefault(),B((G)=>G>=U.length-1?0:G+1);return}}},q[11]=K,q[12]=f,q[13]=U,q[14]=b;else b=q[14];let x=b,j;if(q[15]!==J||q[16]!==X||q[17]!==Q)j=(z)=>{if(!J)return;let G=z;q:switch(G){case"yes-session":{X(J,!1);break q}case"yes-remember":{X(J,!0);break q}case"no":Q()}},q[15]=J,q[16]=X,q[17]=Q,q[18]=j;else j=q[18];let y=j,p=J?void 0:Eq,A;if(q[19]!==V||q[20]!==J||q[21]!==k||q[22]!==y||q[23]!==K||q[24]!==f||q[25]!==U)A=J?R(M,{flexDirection:"column",gap:1,children:[L(wq,{path:J}),L(n,{options:Rq,onChange:y,onCancel:()=>y("no")})]}):R(M,{flexDirection:"column",gap:1,marginX:2,children:[L(qq,{}),L(Kq,{value:V,onChange:w,onSubmit:K,error:k,suggestions:U,selectedSuggestion:f})]}),q[19]=V,q[20]=J,q[21]=k,q[22]=y,q[23]=K,q[24]=f,q[25]=U,q[26]=A;else A=q[26];let E;if(q[27]!==Q||q[28]!==p||q[29]!==A)E=L(i,{title:"Add directory to workspace",onCancel:Q,color:"permission",isCancelActive:!1,inputGuide:p,children:A}),q[27]=Q,q[28]=p,q[29]=A,q[30]=E;else E=q[30];let h;if(q[31]!==x||q[32]!==E)h=L(M,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:x,children:E}),q[31]=x,q[32]=E,q[33]=h;else h=q[33];return h}function Eq(Z){return Z.pending?R(F,{children:["Press ",Z.keyName," again to exit"]}):R($,{children:[L(S,{shortcut:"Tab",action:"complete"}),L(S,{shortcut:"Enter",action:"add"}),L(g,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})}var T,H,Rq;var Fq=Gq(()=>{Jq();Uq();Oq();kq();Xq();Zq();fq();Vq();Mq();Wq();Yq();Nq();Hq();l();T=a(Qq(),1),H=a(Lq(),1),Rq=[{value:"yes-session",label:"Yes, for this session"},{value:"yes-remember",label:"Yes, and remember this directory"},{value:"no",label:"No"}]});
|
|
2
|
+
export{lq as Kh,Fq as Lh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ada as G,Bda as h,Fda as v,Gda as P,Nda as k,Zda as f,dda as M,gda as L}from"./cli-0.7.4-hvnzwb5v.mjs";import{Eha as x,vha as E}from"./cli-0.7.4-nbnqrjgm.mjs";import{Dja as u,qja as T}from"./cli-0.7.4-h0ze5j97.mjs";import{Pqa as C}from"./cli-0.7.4-58p1wenr.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudinMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudinMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudinMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
|
|
2
|
+
export{Vj as Gc,Wj as Hc,e as Ic,Xj as Jc,Yj as Kc,jj as Lc};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
class H extends Error{constructor(z,J,Q){super(Q);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.code=J,this.exitCode=z,this.nestedError=void 0}}class K extends H{constructor(z){super(1,"commander.invalidArgument",z);Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name}}class S{constructor(z,J){this.flags=z,this.description=J||"",this.required=z.includes("<"),this.optional=z.includes("["),this.variadic=/\w\.\.\.[>\]]$/.test(z),this.mandatory=!1;let Q=w(z);if(this.short=Q.shortFlag,this.long=Q.longFlag,this.negate=!1,this.long)this.negate=this.long.startsWith("--no-");this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}preset(z){return this.presetArg=z,this}conflicts(z){return this.conflictsWith=this.conflictsWith.concat(z),this}implies(z){let J=z;if(typeof z==="string")J={[z]:!0};return this.implied=Object.assign(this.implied||{},J),this}env(z){return this.envVar=z,this}argParser(z){return this.parseArg=z,this}makeOptionMandatory(z=!0){return this.mandatory=!!z,this}hideHelp(z=!0){return this.hidden=!!z,this}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}name(){if(this.long)return this.long.replace(/^--/,"");return this.short.replace(/^-/,"")}attributeName(){if(this.negate)return F(this.name().replace(/^no-/,""));return F(this.name())}helpGroup(z){return this.helpGroupHeading=z,this}is(z){return this.short===z||this.long===z}isBoolean(){return!this.required&&!this.optional&&!this.negate}}class V{constructor(z){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,z.forEach((J)=>{if(J.negate)this.negativeOptions.set(J.attributeName(),J);else this.positiveOptions.set(J.attributeName(),J)}),this.negativeOptions.forEach((J,Q)=>{if(this.positiveOptions.has(Q))this.dualOptions.add(Q)})}valueFromOption(z,J){let Q=J.attributeName();if(!this.dualOptions.has(Q))return!0;let X=this.negativeOptions.get(Q).presetArg,Y=X!==void 0?X:!1;return J.negate===(Y===z)}}function F(z){return z.split("-").reduce((J,Q)=>{return J+Q[0].toUpperCase()+Q.slice(1)})}function w(z){let J,Q,X=/^-[^-]$/,Y=/^--[^-]/,Z=z.split(/[ |,]+/).concat("guard");if(X.test(Z[0]))J=Z.shift();if(Y.test(Z[0]))Q=Z.shift();if(!J&&X.test(Z[0]))J=Z.shift();if(!J&&Y.test(Z[0]))J=Q,Q=Z.shift();if(Z[0].startsWith("-")){let $=Z[0],_=`option creation failed due to '${$}' in option flags '${z}'`;if(/^-[^-][^-]/.test($))throw Error(`${_}
|
|
2
|
+
- a short flag is a single dash and a single character
|
|
3
|
+
- either use a single dash and a single character (for a short flag)
|
|
4
|
+
- or use a double dash for a long option (and can have two, like '--ws, --workspace')`);if(X.test($))throw Error(`${_}
|
|
5
|
+
- too many short flags`);if(Y.test($))throw Error(`${_}
|
|
6
|
+
- too many long flags`);throw Error(`${_}
|
|
7
|
+
- unrecognised flag format`)}if(J===void 0&&Q===void 0)throw Error(`option creation failed due to no flags found in '${z}'.`);return{shortFlag:J,longFlag:Q}}import{EventEmitter as O}from"node:events";import N from"node:child_process";import U from"node:path";import I from"node:fs";import G from"node:process";import{stripVTControlCharacters as x}from"node:util";class W{constructor(z,J){switch(this.description=J||"",this.variadic=!1,this.parseArg=void 0,this.defaultValue=void 0,this.defaultValueDescription=void 0,this.argChoices=void 0,z[0]){case"<":this.required=!0,this._name=z.slice(1,-1);break;case"[":this.required=!1,this._name=z.slice(1,-1);break;default:this.required=!0,this._name=z;break}if(this._name.endsWith("..."))this.variadic=!0,this._name=this._name.slice(0,-3)}name(){return this._name}_collectValue(z,J){if(J===this.defaultValue||!Array.isArray(J))return[z];return J.push(z),J}default(z,J){return this.defaultValue=z,this.defaultValueDescription=J,this}argParser(z){return this.parseArg=z,this}choices(z){return this.argChoices=z.slice(),this.parseArg=(J,Q)=>{if(!this.argChoices.includes(J))throw new K(`Allowed choices are ${this.argChoices.join(", ")}.`);if(this.variadic)return this._collectValue(J,Q);return J},this}argRequired(){return this.required=!0,this}argOptional(){return this.required=!1,this}}function P(z){let J=z.name()+(z.variadic===!0?"...":"");return z.required?"<"+J+">":"["+J+"]"}import{stripVTControlCharacters as k}from"node:util";class j{constructor(){this.helpWidth=void 0,this.minWidthToWrap=40,this.sortSubcommands=!1,this.sortOptions=!1,this.showGlobalOptions=!1}prepareContext(z){this.helpWidth=this.helpWidth??z.helpWidth??80}visibleCommands(z){let J=z.commands.filter((X)=>!X._hidden),Q=z._getHelpCommand();if(Q&&!Q._hidden)J.push(Q);if(this.sortSubcommands)J.sort((X,Y)=>{return X.name().localeCompare(Y.name())});return J}compareOptions(z,J){let Q=(X)=>{return X.short?X.short.replace(/^-/,""):X.long.replace(/^--/,"")};return Q(z).localeCompare(Q(J))}visibleOptions(z){let J=z.options.filter((X)=>!X.hidden),Q=z._getHelpOption();if(Q&&!Q.hidden){let X=Q.short&&z._findOption(Q.short),Y=Q.long&&z._findOption(Q.long);if(!X&&!Y)J.push(Q);else if(Q.long&&!Y)J.push(z.createOption(Q.long,Q.description));else if(Q.short&&!X)J.push(z.createOption(Q.short,Q.description))}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleGlobalOptions(z){if(!this.showGlobalOptions)return[];let J=[];for(let Q=z.parent;Q;Q=Q.parent){let X=Q.options.filter((Y)=>!Y.hidden);J.push(...X)}if(this.sortOptions)J.sort(this.compareOptions);return J}visibleArguments(z){if(z._argsDescription)z.registeredArguments.forEach((J)=>{J.description=J.description||z._argsDescription[J.name()]||""});if(z.registeredArguments.find((J)=>J.description))return z.registeredArguments;return[]}subcommandTerm(z){let J=z.registeredArguments.map((Q)=>P(Q)).join(" ");return z._name+(z._aliases[0]?"|"+z._aliases[0]:"")+(z.options.length?" [options]":"")+(J?" "+J:"")}optionTerm(z){return z.flags}argumentTerm(z){return z.name()}longestSubcommandTermLength(z,J){return J.visibleCommands(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleSubcommandTerm(J.subcommandTerm(X))))},0)}longestOptionTermLength(z,J){return J.visibleOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestGlobalOptionTermLength(z,J){return J.visibleGlobalOptions(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleOptionTerm(J.optionTerm(X))))},0)}longestArgumentTermLength(z,J){return J.visibleArguments(z).reduce((Q,X)=>{return Math.max(Q,this.displayWidth(J.styleArgumentTerm(J.argumentTerm(X))))},0)}commandUsage(z){let J=z._name;if(z._aliases[0])J=J+"|"+z._aliases[0];let Q="";for(let X=z.parent;X;X=X.parent)Q=X.name()+" "+Q;return Q+J+" "+z.usage()}commandDescription(z){return z.description()}subcommandDescription(z){return z.summary()||z.description()}optionDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0){if(z.required||z.optional||z.isBoolean()&&typeof z.defaultValue==="boolean")J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`)}if(z.presetArg!==void 0&&z.optional)J.push(`preset: ${JSON.stringify(z.presetArg)}`);if(z.envVar!==void 0)J.push(`env: ${z.envVar}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}argumentDescription(z){let J=[];if(z.argChoices)J.push(`choices: ${z.argChoices.map((Q)=>JSON.stringify(Q)).join(", ")}`);if(z.defaultValue!==void 0)J.push(`default: ${z.defaultValueDescription||JSON.stringify(z.defaultValue)}`);if(J.length>0){let Q=`(${J.join(", ")})`;if(z.description)return`${z.description} ${Q}`;return Q}return z.description}formatItemList(z,J,Q){if(J.length===0)return[];return[Q.styleTitle(z),...J,""]}groupItems(z,J,Q){let X=new Map;return z.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[])}),J.forEach((Y)=>{let Z=Q(Y);if(!X.has(Z))X.set(Z,[]);X.get(Z).push(Y)}),X}formatHelp(z,J){let Q=J.padWidth(z,J),X=J.helpWidth??80;function Y(R,B){return J.formatItem(R,Q,B,J)}let Z=[`${J.styleTitle("Usage:")} ${J.styleUsage(J.commandUsage(z))}`,""],$=J.commandDescription(z);if($.length>0)Z=Z.concat([J.boxWrap(J.styleCommandDescription($),X),""]);let _=J.visibleArguments(z).map((R)=>{return Y(J.styleArgumentTerm(J.argumentTerm(R)),J.styleArgumentDescription(J.argumentDescription(R)))});if(Z=Z.concat(this.formatItemList("Arguments:",_,J)),this.groupItems(z.options,J.visibleOptions(z),(R)=>R.helpGroupHeading??"Options:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleOptionTerm(J.optionTerm(M)),J.styleOptionDescription(J.optionDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),J.showGlobalOptions){let R=J.visibleGlobalOptions(z).map((B)=>{return Y(J.styleOptionTerm(J.optionTerm(B)),J.styleOptionDescription(J.optionDescription(B)))});Z=Z.concat(this.formatItemList("Global Options:",R,J))}return this.groupItems(z.commands,J.visibleCommands(z),(R)=>R.helpGroup()||"Commands:").forEach((R,B)=>{let L=R.map((M)=>{return Y(J.styleSubcommandTerm(J.subcommandTerm(M)),J.styleSubcommandDescription(J.subcommandDescription(M)))});Z=Z.concat(this.formatItemList(B,L,J))}),Z.join(`
|
|
8
|
+
`)}displayWidth(z){return k(z).length}styleTitle(z){return z}styleUsage(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J==="[command]")return this.styleSubcommandText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleCommandText(J)}).join(" ")}styleCommandDescription(z){return this.styleDescriptionText(z)}styleOptionDescription(z){return this.styleDescriptionText(z)}styleSubcommandDescription(z){return this.styleDescriptionText(z)}styleArgumentDescription(z){return this.styleDescriptionText(z)}styleDescriptionText(z){return z}styleOptionTerm(z){return this.styleOptionText(z)}styleSubcommandTerm(z){return z.split(" ").map((J)=>{if(J==="[options]")return this.styleOptionText(J);if(J[0]==="["||J[0]==="<")return this.styleArgumentText(J);return this.styleSubcommandText(J)}).join(" ")}styleArgumentTerm(z){return this.styleArgumentText(z)}styleOptionText(z){return z}styleArgumentText(z){return z}styleSubcommandText(z){return z}styleCommandText(z){return z}padWidth(z,J){return Math.max(J.longestOptionTermLength(z,J),J.longestGlobalOptionTermLength(z,J),J.longestSubcommandTermLength(z,J),J.longestArgumentTermLength(z,J))}preformatted(z){return/\n[^\S\r\n]/.test(z)}formatItem(z,J,Q,X){let Z=" ".repeat(2);if(!Q)return Z+z;let $=z.padEnd(J+z.length-X.displayWidth(z)),_=2,q=(this.helpWidth??80)-J-_-2,R;if(q<this.minWidthToWrap||X.preformatted(Q))R=Q;else R=X.boxWrap(Q,q).replace(/\n/g,`
|
|
9
|
+
`+" ".repeat(J+_));return Z+$+" ".repeat(_)+R.replace(/\n/g,`
|
|
10
|
+
${Z}`)}boxWrap(z,J){if(J<this.minWidthToWrap)return z;let Q=z.split(/\r\n|\n/),X=/[\s]*[^\s]+/g,Y=[];return Q.forEach((Z)=>{let $=Z.match(X);if($===null){Y.push("");return}let _=[$.shift()],T=this.displayWidth(_[0]);$.forEach((q)=>{let R=this.displayWidth(q);if(T+R<=J){_.push(q),T+=R;return}Y.push(_.join(""));let B=q.trimStart();_=[B],T=this.displayWidth(B)}),Y.push(_.join(""))}),Y.join(`
|
|
11
|
+
`)}}function C(z,J){if(Math.abs(z.length-J.length)>3)return Math.max(z.length,J.length);let Q=[];for(let X=0;X<=z.length;X++)Q[X]=[X];for(let X=0;X<=J.length;X++)Q[0][X]=X;for(let X=1;X<=J.length;X++)for(let Y=1;Y<=z.length;Y++){let Z;if(z[Y-1]===J[X-1])Z=0;else Z=1;if(Q[Y][X]=Math.min(Q[Y-1][X]+1,Q[Y][X-1]+1,Q[Y-1][X-1]+Z),Y>1&&X>1&&z[Y-1]===J[X-2]&&z[Y-2]===J[X-1])Q[Y][X]=Math.min(Q[Y][X],Q[Y-2][X-2]+1)}return Q[z.length][J.length]}function D(z,J){if(!J||J.length===0)return"";J=Array.from(new Set(J));let Q=z.startsWith("--");if(Q)z=z.slice(2),J=J.map(($)=>$.slice(2));let X=[],Y=3,Z=0.4;if(J.forEach(($)=>{if($.length<=1)return;let _=C(z,$),T=Math.max(z.length,$.length);if((T-_)/T>Z){if(_<Y)Y=_,X=[$];else if(_===Y)X.push($)}}),X.sort(($,_)=>$.localeCompare(_)),Q)X=X.map(($)=>`--${$}`);if(X.length>1)return`
|
|
12
|
+
(Did you mean one of ${X.join(", ")}?)`;if(X.length===1)return`
|
|
13
|
+
(Did you mean ${X[0]}?)`;return""}class E extends O{constructor(z){super();this.commands=[],this.options=[],this.parent=null,this._allowUnknownOption=!1,this._allowExcessArguments=!1,this.registeredArguments=[],this._args=this.registeredArguments,this.args=[],this.rawArgs=[],this.processedArgs=[],this._scriptPath=null,this._name=z||"",this._optionValues={},this._optionValueSources={},this._storeOptionsAsProperties=!1,this._actionHandler=null,this._executableHandler=!1,this._executableFile=null,this._executableDir=null,this._defaultCommandName=null,this._exitCallback=null,this._aliases=[],this._combineFlagAndOptionalValue=!0,this._description="",this._summary="",this._argsDescription=void 0,this._enablePositionalOptions=!1,this._passThroughOptions=!1,this._lifeCycleHooks={},this._showHelpAfterError=!1,this._showSuggestionAfterError=!0,this._savedState=null,this._outputConfiguration={writeOut:(J)=>G.stdout.write(J),writeErr:(J)=>G.stderr.write(J),outputError:(J,Q)=>Q(J),getOutHelpWidth:()=>G.stdout.isTTY?G.stdout.columns:void 0,getErrHelpWidth:()=>G.stderr.isTTY?G.stderr.columns:void 0,getOutHasColors:()=>A()??(G.stdout.isTTY&&G.stdout.hasColors?.()),getErrHasColors:()=>A()??(G.stderr.isTTY&&G.stderr.hasColors?.()),stripColor:(J)=>x(J)},this._hidden=!1,this._helpOption=void 0,this._addImplicitHelpCommand=void 0,this._helpCommand=void 0,this._helpConfiguration={},this._helpGroupHeading=void 0,this._defaultCommandGroup=void 0,this._defaultOptionGroup=void 0}copyInheritedSettings(z){return this._outputConfiguration=z._outputConfiguration,this._helpOption=z._helpOption,this._helpCommand=z._helpCommand,this._helpConfiguration=z._helpConfiguration,this._exitCallback=z._exitCallback,this._storeOptionsAsProperties=z._storeOptionsAsProperties,this._combineFlagAndOptionalValue=z._combineFlagAndOptionalValue,this._allowExcessArguments=z._allowExcessArguments,this._enablePositionalOptions=z._enablePositionalOptions,this._showHelpAfterError=z._showHelpAfterError,this._showSuggestionAfterError=z._showSuggestionAfterError,this}_getCommandAndAncestors(){let z=[];for(let J=this;J;J=J.parent)z.push(J);return z}command(z,J,Q){let X=J,Y=Q;if(typeof X==="object"&&X!==null)Y=X,X=null;Y=Y||{};let[,Z,$]=z.match(/([^ ]+) *(.*)/),_=this.createCommand(Z);if(X)_.description(X),_._executableHandler=!0;if(Y.isDefault)this._defaultCommandName=_._name;if(_._hidden=!!(Y.noHelp||Y.hidden),_._executableFile=Y.executableFile||null,$)_.arguments($);if(this._registerCommand(_),_.parent=this,_.copyInheritedSettings(this),X)return this;return _}createCommand(z){return new E(z)}createHelp(){return Object.assign(new j,this.configureHelp())}configureHelp(z){if(z===void 0)return this._helpConfiguration;return this._helpConfiguration=z,this}configureOutput(z){if(z===void 0)return this._outputConfiguration;return this._outputConfiguration={...this._outputConfiguration,...z},this}showHelpAfterError(z=!0){if(typeof z!=="string")z=!!z;return this._showHelpAfterError=z,this}showSuggestionAfterError(z=!0){return this._showSuggestionAfterError=!!z,this}addCommand(z,J){if(!z._name)throw Error(`Command passed to .addCommand() must have a name
|
|
14
|
+
- specify the name in Command constructor or using .name()`);if(J=J||{},J.isDefault)this._defaultCommandName=z._name;if(J.noHelp||J.hidden)z._hidden=!0;return this._registerCommand(z),z.parent=this,z._checkForBrokenPassThrough(),this}createArgument(z,J){return new W(z,J)}argument(z,J,Q,X){let Y=this.createArgument(z,J);if(typeof Q==="function")Y.default(X).argParser(Q);else Y.default(Q);return this.addArgument(Y),this}arguments(z){return z.trim().split(/ +/).forEach((J)=>{this.argument(J)}),this}addArgument(z){let J=this.registeredArguments.slice(-1)[0];if(J?.variadic)throw Error(`only the last argument can be variadic '${J.name()}'`);if(z.required&&z.defaultValue!==void 0&&z.parseArg===void 0)throw Error(`a default value for a required argument is never used: '${z.name()}'`);return this.registeredArguments.push(z),this}helpCommand(z,J){if(typeof z==="boolean"){if(this._addImplicitHelpCommand=z,z&&this._defaultCommandGroup)this._initCommandGroup(this._getHelpCommand());return this}let Q=z??"help [command]",[,X,Y]=Q.match(/([^ ]+) *(.*)/),Z=J??"display help for command",$=this.createCommand(X);if($.helpOption(!1),Y)$.arguments(Y);if(Z)$.description(Z);if(this._addImplicitHelpCommand=!0,this._helpCommand=$,z||J)this._initCommandGroup($);return this}addHelpCommand(z,J){if(typeof z!=="object")return this.helpCommand(z,J),this;return this._addImplicitHelpCommand=!0,this._helpCommand=z,this._initCommandGroup(z),this}_getHelpCommand(){if(this._addImplicitHelpCommand??(this.commands.length&&!this._actionHandler&&!this._findCommand("help"))){if(this._helpCommand===void 0)this.helpCommand(void 0,void 0);return this._helpCommand}return null}hook(z,J){let Q=["preSubcommand","preAction","postAction"];if(!Q.includes(z))throw Error(`Unexpected value for event passed to hook : '${z}'.
|
|
15
|
+
Expecting one of '${Q.join("', '")}'`);if(this._lifeCycleHooks[z])this._lifeCycleHooks[z].push(J);else this._lifeCycleHooks[z]=[J];return this}exitOverride(z){if(z)this._exitCallback=z;else this._exitCallback=(J)=>{if(J.code!=="commander.executeSubCommandAsync")throw J};return this}_exit(z,J,Q){if(this._exitCallback)this._exitCallback(new H(z,J,Q));G.exit(z)}action(z){let J=(Q)=>{let X=this.registeredArguments.length,Y=Q.slice(0,X);if(this._storeOptionsAsProperties)Y[X]=this;else Y[X]=this.opts();return Y.push(this),z.apply(this,Y)};return this._actionHandler=J,this}createOption(z,J){return new S(z,J)}_callParseArg(z,J,Q,X){try{return z.parseArg(J,Q)}catch(Y){if(Y.code==="commander.invalidArgument"){let Z=`${X} ${Y.message}`;this.error(Z,{exitCode:Y.exitCode,code:Y.code})}throw Y}}_registerOption(z){let J=z.short&&this._findOption(z.short)||z.long&&this._findOption(z.long);if(J){let Q=z.long&&this._findOption(z.long)?z.long:z.short;throw Error(`Cannot add option '${z.flags}'${this._name&&` to command '${this._name}'`} due to conflicting flag '${Q}'
|
|
16
|
+
- already used by option '${J.flags}'`)}this._initOptionGroup(z),this.options.push(z)}_registerCommand(z){let J=(X)=>{return[X.name()].concat(X.aliases())},Q=J(z).find((X)=>this._findCommand(X));if(Q){let X=J(this._findCommand(Q)).join("|"),Y=J(z).join("|");throw Error(`cannot add command '${Y}' as already have command '${X}'`)}this._initCommandGroup(z),this.commands.push(z)}addOption(z){this._registerOption(z);let J=z.name(),Q=z.attributeName();if(z.defaultValue!==void 0)this.setOptionValueWithSource(Q,z.defaultValue,"default");let X=(Y,Z,$)=>{if(Y==null&&z.presetArg!==void 0)Y=z.presetArg;let _=this.getOptionValue(Q);if(Y!==null&&z.parseArg)Y=this._callParseArg(z,Y,_,Z);else if(Y!==null&&z.variadic)Y=z._collectValue(Y,_);if(Y==null)if(z.negate)Y=!1;else if(z.isBoolean()||z.optional)Y=!0;else Y="";this.setOptionValueWithSource(Q,Y,$)};if(this.on("option:"+J,(Y)=>{let Z=`error: option '${z.flags}' argument '${Y}' is invalid.`;X(Y,Z,"cli")}),z.envVar)this.on("optionEnv:"+J,(Y)=>{let Z=`error: option '${z.flags}' value '${Y}' from env '${z.envVar}' is invalid.`;X(Y,Z,"env")});return this}_optionEx(z,J,Q,X,Y){if(typeof J==="object"&&J instanceof S)throw Error("To add an Option object use addOption() instead of option() or requiredOption()");let Z=this.createOption(J,Q);if(Z.makeOptionMandatory(!!z.mandatory),typeof X==="function")Z.default(Y).argParser(X);else if(X instanceof RegExp){let $=X;X=(_,T)=>{let q=$.exec(_);return q?q[0]:T},Z.default(Y).argParser(X)}else Z.default(X);return this.addOption(Z)}option(z,J,Q,X){return this._optionEx({},z,J,Q,X)}requiredOption(z,J,Q,X){return this._optionEx({mandatory:!0},z,J,Q,X)}combineFlagAndOptionalValue(z=!0){return this._combineFlagAndOptionalValue=!!z,this}allowUnknownOption(z=!0){return this._allowUnknownOption=!!z,this}allowExcessArguments(z=!0){return this._allowExcessArguments=!!z,this}enablePositionalOptions(z=!0){return this._enablePositionalOptions=!!z,this}passThroughOptions(z=!0){return this._passThroughOptions=!!z,this._checkForBrokenPassThrough(),this}_checkForBrokenPassThrough(){if(this.parent&&this._passThroughOptions&&!this.parent._enablePositionalOptions)throw Error(`passThroughOptions cannot be used for '${this._name}' without turning on enablePositionalOptions for parent command(s)`)}storeOptionsAsProperties(z=!0){if(this.options.length)throw Error("call .storeOptionsAsProperties() before adding options");if(Object.keys(this._optionValues).length)throw Error("call .storeOptionsAsProperties() before setting option values");return this._storeOptionsAsProperties=!!z,this}getOptionValue(z){if(this._storeOptionsAsProperties)return this[z];return this._optionValues[z]}setOptionValue(z,J){return this.setOptionValueWithSource(z,J,void 0)}setOptionValueWithSource(z,J,Q){if(this._storeOptionsAsProperties)this[z]=J;else this._optionValues[z]=J;return this._optionValueSources[z]=Q,this}getOptionValueSource(z){return this._optionValueSources[z]}getOptionValueSourceWithGlobals(z){let J;return this._getCommandAndAncestors().forEach((Q)=>{if(Q.getOptionValueSource(z)!==void 0)J=Q.getOptionValueSource(z)}),J}_prepareUserArgs(z,J){if(z!==void 0&&!Array.isArray(z))throw Error("first parameter to parse must be array or undefined");if(J=J||{},z===void 0&&J.from===void 0){if(G.versions?.electron)J.from="electron";let X=G.execArgv??[];if(X.includes("-e")||X.includes("--eval")||X.includes("-p")||X.includes("--print"))J.from="eval"}if(z===void 0)z=G.argv;this.rawArgs=z.slice();let Q;switch(J.from){case void 0:case"node":this._scriptPath=z[1],Q=z.slice(2);break;case"electron":if(G.defaultApp)this._scriptPath=z[1],Q=z.slice(2);else Q=z.slice(1);break;case"user":Q=z.slice(0);break;case"eval":Q=z.slice(1);break;default:throw Error(`unexpected parse option { from: '${J.from}' }`)}if(!this._name&&this._scriptPath)this.nameFromFilename(this._scriptPath);return this._name=this._name||"program",Q}parse(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return this._parseCommand([],Q),this}async parseAsync(z,J){this._prepareForParse();let Q=this._prepareUserArgs(z,J);return await this._parseCommand([],Q),this}_prepareForParse(){if(this._savedState===null)this.options.filter((z)=>z.negate&&z.defaultValue===void 0&&this.getOptionValue(z.attributeName())===void 0).forEach((z)=>{let J=z.long.replace(/^--no-/,"--");if(!this._findOption(J))this.setOptionValueWithSource(z.attributeName(),!0,"default")}),this.saveStateBeforeParse();else this.restoreStateBeforeParse()}saveStateBeforeParse(){this._savedState={_name:this._name,_optionValues:{...this._optionValues},_optionValueSources:{...this._optionValueSources}}}restoreStateBeforeParse(){if(this._storeOptionsAsProperties)throw Error(`Can not call parse again when storeOptionsAsProperties is true.
|
|
17
|
+
- either make a new Command for each call to parse, or stop storing options as properties`);this._name=this._savedState._name,this._scriptPath=null,this.rawArgs=[],this._optionValues={...this._savedState._optionValues},this._optionValueSources={...this._savedState._optionValueSources},this.args=[],this.processedArgs=[]}_checkForMissingExecutable(z,J,Q){if(I.existsSync(z))return;let X=J?`searched for local subcommand relative to directory '${J}'`:"no directory for search for local subcommand, use .executableDir() to supply a custom directory",Y=`'${z}' does not exist
|
|
18
|
+
- if '${Q}' is not meant to be an executable command, remove description parameter from '.command()' and use '.description()' instead
|
|
19
|
+
- if the default executable name is not suitable, use the executableFile option to supply a custom name or path
|
|
20
|
+
- ${X}`;throw Error(Y)}_executeSubCommand(z,J){J=J.slice();let Q=[".js",".ts",".tsx",".mjs",".cjs"];function X(q,R){let B=U.resolve(q,R);if(I.existsSync(B))return B;if(Q.includes(U.extname(R)))return;let L=Q.find((M)=>I.existsSync(`${B}${M}`));if(L)return`${B}${L}`;return}this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let Y=z._executableFile||`${this._name}-${z._name}`,Z=this._executableDir||"";if(this._scriptPath){let q;try{q=I.realpathSync(this._scriptPath)}catch{q=this._scriptPath}Z=U.resolve(U.dirname(q),Z)}if(Z){let q=X(Z,Y);if(!q&&!z._executableFile&&this._scriptPath){let R=U.basename(this._scriptPath,U.extname(this._scriptPath));if(R!==this._name)q=X(Z,`${R}-${z._name}`)}Y=q||Y}let $=Q.includes(U.extname(Y)),_;if(G.platform!=="win32")if($)J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.argv[0],J,{stdio:"inherit"});else _=N.spawn(Y,J,{stdio:"inherit"});else this._checkForMissingExecutable(Y,Z,z._name),J.unshift(Y),J=y(G.execArgv).concat(J),_=N.spawn(G.execPath,J,{stdio:"inherit"});if(!_.killed)["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"].forEach((R)=>{G.on(R,()=>{if(_.killed===!1&&_.exitCode===null)_.kill(R)})});let T=this._exitCallback;_.on("close",(q)=>{if(q=q??1,!T)G.exit(q);else T(new H(q,"commander.executeSubCommandAsync","(close)"))}),_.on("error",(q)=>{if(q.code==="ENOENT")this._checkForMissingExecutable(Y,Z,z._name);else if(q.code==="EACCES")throw Error(`'${Y}' not executable`);if(!T)G.exit(1);else{let R=new H(1,"commander.executeSubCommandAsync","(error)");R.nestedError=q,T(R)}}),this.runningCommand=_}_dispatchSubcommand(z,J,Q){let X=this._findCommand(z);if(!X)this.help({error:!0});X._prepareForParse();let Y;return Y=this._chainOrCallSubCommandHook(Y,X,"preSubcommand"),Y=this._chainOrCall(Y,()=>{if(X._executableHandler)this._executeSubCommand(X,J.concat(Q));else return X._parseCommand(J,Q)}),Y}_dispatchHelpCommand(z){if(!z)this.help();let J=this._findCommand(z);if(J&&!J._executableHandler)J.help();return this._dispatchSubcommand(z,[],[this._getHelpOption()?.long??this._getHelpOption()?.short??"--help"])}_checkNumberOfArguments(){if(this.registeredArguments.forEach((z,J)=>{if(z.required&&this.args[J]==null)this.missingArgument(z.name())}),this.registeredArguments.length>0&&this.registeredArguments[this.registeredArguments.length-1].variadic)return;if(this.args.length>this.registeredArguments.length)this._excessArguments(this.args)}_processArguments(){let z=(Q,X,Y)=>{let Z=X;if(X!==null&&Q.parseArg){let $=`error: command-argument value '${X}' is invalid for argument '${Q.name()}'.`;Z=this._callParseArg(Q,X,Y,$)}return Z};this._checkNumberOfArguments();let J=[];this.registeredArguments.forEach((Q,X)=>{let Y=Q.defaultValue;if(Q.variadic){if(X<this.args.length){if(Y=this.args.slice(X),Q.parseArg)Y=Y.reduce((Z,$)=>{return z(Q,$,Z)},Q.defaultValue)}else if(Y===void 0)Y=[]}else if(X<this.args.length){if(Y=this.args[X],Q.parseArg)Y=z(Q,Y,Q.defaultValue)}J[X]=Y}),this.processedArgs=J}_chainOrCall(z,J){if(z?.then&&typeof z.then==="function")return z.then(()=>J());return J()}_chainOrCallHooks(z,J){let Q=z,X=[];if(this._getCommandAndAncestors().reverse().filter((Y)=>Y._lifeCycleHooks[J]!==void 0).forEach((Y)=>{Y._lifeCycleHooks[J].forEach((Z)=>{X.push({hookedCommand:Y,callback:Z})})}),J==="postAction")X.reverse();return X.forEach((Y)=>{Q=this._chainOrCall(Q,()=>{return Y.callback(Y.hookedCommand,this)})}),Q}_chainOrCallSubCommandHook(z,J,Q){let X=z;if(this._lifeCycleHooks[Q]!==void 0)this._lifeCycleHooks[Q].forEach((Y)=>{X=this._chainOrCall(X,()=>{return Y(this,J)})});return X}_parseCommand(z,J){let Q=this.parseOptions(J);if(this._parseOptionsEnv(),this._parseOptionsImplied(),z=z.concat(Q.operands),J=Q.unknown,this.args=z.concat(J),z&&this._findCommand(z[0]))return this._dispatchSubcommand(z[0],z.slice(1),J);if(this._getHelpCommand()&&z[0]===this._getHelpCommand().name())return this._dispatchHelpCommand(z[1]);if(this._defaultCommandName)return this._outputHelpIfRequested(J),this._dispatchSubcommand(this._defaultCommandName,z,J);if(this.commands.length&&this.args.length===0&&!this._actionHandler&&!this._defaultCommandName)this.help({error:!0});this._outputHelpIfRequested(Q.unknown),this._checkForMissingMandatoryOptions(),this._checkForConflictingOptions();let X=()=>{if(Q.unknown.length>0)this.unknownOption(Q.unknown[0])},Y=`command:${this.name()}`;if(this._actionHandler){X(),this._processArguments();let Z;if(Z=this._chainOrCallHooks(Z,"preAction"),Z=this._chainOrCall(Z,()=>this._actionHandler(this.processedArgs)),this.parent)Z=this._chainOrCall(Z,()=>{this.parent.emit(Y,z,J)});return Z=this._chainOrCallHooks(Z,"postAction"),Z}if(this.parent?.listenerCount(Y))X(),this._processArguments(),this.parent.emit(Y,z,J);else if(z.length){if(this._findCommand("*"))return this._dispatchSubcommand("*",z,J);if(this.listenerCount("command:*"))this.emit("command:*",z,J);else if(this.commands.length)this.unknownCommand();else X(),this._processArguments()}else if(this.commands.length)X(),this.help({error:!0});else X(),this._processArguments()}_findCommand(z){if(!z)return;return this.commands.find((J)=>J._name===z||J._aliases.includes(z))}_findOption(z){return this.options.find((J)=>J.is(z))}_checkForMissingMandatoryOptions(){this._getCommandAndAncestors().forEach((z)=>{z.options.forEach((J)=>{if(J.mandatory&&z.getOptionValue(J.attributeName())===void 0)z.missingMandatoryOptionValue(J)})})}_checkForConflictingLocalOptions(){let z=this.options.filter((Q)=>{let X=Q.attributeName();if(this.getOptionValue(X)===void 0)return!1;return this.getOptionValueSource(X)!=="default"});z.filter((Q)=>Q.conflictsWith.length>0).forEach((Q)=>{let X=z.find((Y)=>Q.conflictsWith.includes(Y.attributeName()));if(X)this._conflictingOption(Q,X)})}_checkForConflictingOptions(){this._getCommandAndAncestors().forEach((z)=>{z._checkForConflictingLocalOptions()})}parseOptions(z){let J=[],Q=[],X=J;function Y(q){return q.length>1&&q[0]==="-"}let Z=(q)=>{if(!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(q))return!1;return!this._getCommandAndAncestors().some((R)=>R.options.map((B)=>B.short).some((B)=>/^-\d$/.test(B)))},$=null,_=null,T=0;while(T<z.length||_){let q=_??z[T++];if(_=null,q==="--"){if(X===Q)X.push(q);X.push(...z.slice(T));break}if($&&(!Y(q)||Z(q))){this.emit(`option:${$.name()}`,q);continue}if($=null,Y(q)){let R=this._findOption(q);if(R){if(R.required){let B=z[T++];if(B===void 0)this.optionMissingArgument(R);this.emit(`option:${R.name()}`,B)}else if(R.optional){let B=null;if(T<z.length&&(!Y(z[T])||Z(z[T])))B=z[T++];this.emit(`option:${R.name()}`,B)}else this.emit(`option:${R.name()}`);$=R.variadic?R:null;continue}}if(q.length>2&&q[0]==="-"&&q[1]!=="-"){let R=this._findOption(`-${q[1]}`);if(R){if(R.required||R.optional&&this._combineFlagAndOptionalValue)this.emit(`option:${R.name()}`,q.slice(2));else this.emit(`option:${R.name()}`),_=`-${q.slice(2)}`;continue}}if(/^--[^=]+=/.test(q)){let R=q.indexOf("="),B=this._findOption(q.slice(0,R));if(B&&(B.required||B.optional)){this.emit(`option:${B.name()}`,q.slice(R+1));continue}}if(X===J&&Y(q)&&!(this.commands.length===0&&Z(q)))X=Q;if((this._enablePositionalOptions||this._passThroughOptions)&&J.length===0&&Q.length===0){if(this._findCommand(q)){J.push(q),Q.push(...z.slice(T));break}else if(this._getHelpCommand()&&q===this._getHelpCommand().name()){J.push(q,...z.slice(T));break}else if(this._defaultCommandName){Q.push(q,...z.slice(T));break}}if(this._passThroughOptions){X.push(q,...z.slice(T));break}X.push(q)}return{operands:J,unknown:Q}}opts(){if(this._storeOptionsAsProperties){let z={},J=this.options.length;for(let Q=0;Q<J;Q++){let X=this.options[Q].attributeName();z[X]=X===this._versionOptionName?this._version:this[X]}return z}return this._optionValues}optsWithGlobals(){return this._getCommandAndAncestors().reduce((z,J)=>Object.assign(z,J.opts()),{})}error(z,J){if(this._outputConfiguration.outputError(`${z}
|
|
21
|
+
`,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError}
|
|
22
|
+
`);else if(this._showHelpAfterError)this._outputConfiguration.writeErr(`
|
|
23
|
+
`),this.outputHelp({error:!0});let Q=J||{},X=Q.exitCode||1,Y=Q.code||"commander.error";this._exit(X,Y,z)}_parseOptionsEnv(){this.options.forEach((z)=>{if(z.envVar&&z.envVar in G.env){let J=z.attributeName();if(this.getOptionValue(J)===void 0||["default","config","env"].includes(this.getOptionValueSource(J)))if(z.required||z.optional)this.emit(`optionEnv:${z.name()}`,G.env[z.envVar]);else this.emit(`optionEnv:${z.name()}`)}})}_parseOptionsImplied(){let z=new V(this.options),J=(Q)=>{return this.getOptionValue(Q)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(Q))};this.options.filter((Q)=>Q.implied!==void 0&&J(Q.attributeName())&&z.valueFromOption(this.getOptionValue(Q.attributeName()),Q)).forEach((Q)=>{Object.keys(Q.implied).filter((X)=>!J(X)).forEach((X)=>{this.setOptionValueWithSource(X,Q.implied[X],"implied")})})}missingArgument(z){let J=`error: missing required argument '${z}'`;this.error(J,{code:"commander.missingArgument"})}optionMissingArgument(z){let J=`error: option '${z.flags}' argument missing`;this.error(J,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(z){let J=`error: required option '${z.flags}' not specified`;this.error(J,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(z,J){let Q=(Z)=>{let $=Z.attributeName(),_=this.getOptionValue($),T=this.options.find((R)=>R.negate&&$===R.attributeName()),q=this.options.find((R)=>!R.negate&&$===R.attributeName());if(T&&(T.presetArg===void 0&&_===!1||T.presetArg!==void 0&&_===T.presetArg))return T;return q||Z},X=(Z)=>{let $=Q(Z),_=$.attributeName();if(this.getOptionValueSource(_)==="env")return`environment variable '${$.envVar}'`;return`option '${$.flags}'`},Y=`error: ${X(z)} cannot be used with ${X(J)}`;this.error(Y,{code:"commander.conflictingOption"})}unknownOption(z){if(this._allowUnknownOption)return;let J="";if(z.startsWith("--")&&this._showSuggestionAfterError){let X=[],Y=this;do{let Z=Y.createHelp().visibleOptions(Y).filter(($)=>$.long).map(($)=>$.long);X=X.concat(Z),Y=Y.parent}while(Y&&!Y._enablePositionalOptions);J=D(z,X)}let Q=`error: unknown option '${z}'${J}`;this.error(Q,{code:"commander.unknownOption"})}_excessArguments(z){if(this._allowExcessArguments)return;let J=this.registeredArguments.length,Q=J===1?"":"s",X=z.length,Y=this.parent?` for '${this.name()}'`:"",Z=z.join(", "),$=`error: too many arguments${Y}. Expected ${J} argument${Q} but got ${X}: ${Z}.`;this.error($,{code:"commander.excessArguments"})}unknownCommand(){let z=this.args[0],J="";if(this._showSuggestionAfterError){let X=[];this.createHelp().visibleCommands(this).forEach((Y)=>{if(X.push(Y.name()),Y.alias())X.push(Y.alias())}),J=D(z,X)}let Q=`error: unknown command '${z}'${J}`;this.error(Q,{code:"commander.unknownCommand"})}version(z,J,Q){if(z===void 0)return this._version;this._version=z,J=J||"-V, --version",Q=Q||"output the version number";let X=this.createOption(J,Q);return this._versionOptionName=X.attributeName(),this._registerOption(X),this.on("option:"+X.name(),()=>{this._outputConfiguration.writeOut(`${z}
|
|
24
|
+
`),this._exit(0,"commander.version",z)}),this}description(z,J){if(z===void 0&&J===void 0)return this._description;if(this._description=z,J)this._argsDescription=J;return this}summary(z){if(z===void 0)return this._summary;return this._summary=z,this}alias(z){if(z===void 0)return this._aliases[0];let J=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler)J=this.commands[this.commands.length-1];if(z===J._name)throw Error("Command alias can't be the same as its name");let Q=this.parent?._findCommand(z);if(Q){let X=[Q.name()].concat(Q.aliases()).join("|");throw Error(`cannot add alias '${z}' to command '${this.name()}' as already have command '${X}'`)}return J._aliases.push(z),this}aliases(z){if(z===void 0)return this._aliases;return z.forEach((J)=>this.alias(J)),this}usage(z){if(z===void 0){if(this._usage)return this._usage;let J=this.registeredArguments.map((Q)=>{return P(Q)});return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?J:[]).join(" ")}return this._usage=z,this}name(z){if(z===void 0)return this._name;return this._name=z,this}helpGroup(z){if(z===void 0)return this._helpGroupHeading??"";return this._helpGroupHeading=z,this}commandsGroup(z){if(z===void 0)return this._defaultCommandGroup??"";return this._defaultCommandGroup=z,this}optionsGroup(z){if(z===void 0)return this._defaultOptionGroup??"";return this._defaultOptionGroup=z,this}_initOptionGroup(z){if(this._defaultOptionGroup&&!z.helpGroupHeading)z.helpGroup(this._defaultOptionGroup)}_initCommandGroup(z){if(this._defaultCommandGroup&&!z.helpGroup())z.helpGroup(this._defaultCommandGroup)}nameFromFilename(z){return this._name=U.basename(z,U.extname(z)),this}executableDir(z){if(z===void 0)return this._executableDir;return this._executableDir=z,this}helpInformation(z){let J=this.createHelp(),Q=this._getOutputContext(z);J.prepareContext({error:Q.error,helpWidth:Q.helpWidth,outputHasColors:Q.hasColors});let X=J.formatHelp(this,J);if(Q.hasColors)return X;return this._outputConfiguration.stripColor(X)}_getOutputContext(z){z=z||{};let J=!!z.error,Q,X,Y;if(J)Q=($)=>this._outputConfiguration.writeErr($),X=this._outputConfiguration.getErrHasColors(),Y=this._outputConfiguration.getErrHelpWidth();else Q=($)=>this._outputConfiguration.writeOut($),X=this._outputConfiguration.getOutHasColors(),Y=this._outputConfiguration.getOutHelpWidth();return{error:J,write:($)=>{if(!X)$=this._outputConfiguration.stripColor($);return Q($)},hasColors:X,helpWidth:Y}}outputHelp(z){let J;if(typeof z==="function")J=z,z=void 0;let Q=this._getOutputContext(z),X={error:Q.error,write:Q.write,command:this};this._getCommandAndAncestors().reverse().forEach((Z)=>Z.emit("beforeAllHelp",X)),this.emit("beforeHelp",X);let Y=this.helpInformation({error:Q.error});if(J){if(Y=J(Y),typeof Y!=="string"&&!Buffer.isBuffer(Y))throw Error("outputHelp callback must return a string or a Buffer")}if(Q.write(Y),this._getHelpOption()?.long)this.emit(this._getHelpOption().long);this.emit("afterHelp",X),this._getCommandAndAncestors().forEach((Z)=>Z.emit("afterAllHelp",X))}helpOption(z,J){if(typeof z==="boolean"){if(z){if(this._helpOption===null)this._helpOption=void 0;if(this._defaultOptionGroup)this._initOptionGroup(this._getHelpOption())}else this._helpOption=null;return this}if(this._helpOption=this.createOption(z??"-h, --help",J??"display help for command"),z||J)this._initOptionGroup(this._helpOption);return this}_getHelpOption(){if(this._helpOption===void 0)this.helpOption(void 0,void 0);return this._helpOption}addHelpOption(z){return this._helpOption=z,this._initOptionGroup(z),this}help(z){this.outputHelp(z);let J=Number(G.exitCode??0);if(J===0&&z&&typeof z!=="function"&&z.error)J=1;this._exit(J,"commander.help","(outputHelp)")}addHelpText(z,J){let Q=["beforeAll","before","after","afterAll"];if(!Q.includes(z))throw Error(`Unexpected value for position to addHelpText.
|
|
25
|
+
Expecting one of '${Q.join("', '")}'`);let X=`${z}Help`;return this.on(X,(Y)=>{let Z;if(typeof J==="function")Z=J({error:Y.error,command:Y.command});else Z=J;if(Z)Y.write(`${Z}
|
|
26
|
+
`)}),this}_outputHelpIfRequested(z){let J=this._getHelpOption();if(J&&z.find((X)=>J.is(X)))this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)")}}function y(z){return z.map((J)=>{if(!J.startsWith("--inspect"))return J;let Q,X="127.0.0.1",Y="9229",Z;if((Z=J.match(/^(--inspect(-brk)?)$/))!==null)Q=Z[1];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null)if(Q=Z[1],/^\d+$/.test(Z[3]))Y=Z[3];else X=Z[3];else if((Z=J.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null)Q=Z[1],X=Z[3],Y=Z[4];if(Q&&Y!=="0")return`${Q}=${X}:${parseInt(Y)+1}`;return J})}function A(){if(G.env.NO_COLOR||G.env.FORCE_COLOR==="0"||G.env.FORCE_COLOR==="false")return!1;if(G.env.FORCE_COLOR||G.env.CLICOLOR_FORCE!==void 0)return!0;return}var qz=new E;export{K as I,S as J,E as K};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Kga as q,Mga as A,Nga as x,Oga as B}from"./cli-0.7.4-sm8wf8qx.mjs";import{qia as J}from"./cli-0.7.4-hegk157e.mjs";import{nja as G}from"./cli-0.7.4-g9w5x5ns.mjs";G();J();A();B();var F=x(()=>q.object({session_id:q.string(),ws_url:q.string(),work_dir:q.string().optional()}));
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Gc as l,Hc as m,Kc as u,Lc as y}from"./cli-0.7.4-729n63er.mjs";import{FF as p,HF as b}from"./cli-0.7.4-1tkzz9x6.mjs";import{UZ as s,WZ as e,z0 as C}from"./cli-0.7.4-2apswqf5.mjs";import{F2 as i,G2 as r,H2 as g}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as M}from"./cli-0.7.4-85txq06q.mjs";import{Lqa as h,Pqa as f}from"./cli-0.7.4-58p1wenr.mjs";function T({enabled:c,onDismiss:a}){let[n,t]=k.useState(()=>c?{kind:"prompt"}:{kind:"hidden"});if(!c||n.kind==="hidden")return null;if(n.kind==="running")return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudin/..."}),i(e,{dimColor:!0,children:"Copying tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings."})]});if(n.kind==="success"||n.kind==="error"){let d=n.kind==="success"?"success":"warning",o=n.kind==="success"?"Migration complete":"Migration finished with warnings";return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:d,bold:!0,children:o}),i(e,{children:m(n.report)})]})}return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),i(e,{children:"Import API tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings into ~/.claudin/?"}),i(p,{options:[{value:"migrate",label:"Migrate now",description:"Copy tokens, settings, CLAUDE.md, skills, agents, commands, plugins, keybindings."},{value:"skip",label:"Skip — start fresh",description:"Don't ask again this profile."}],onChange:(d)=>{if(d==="skip"){u(),t({kind:"hidden"}),a?.("skipped");return}t({kind:"running"}),(async()=>{let o=await l();t({kind:o.errors.length===0?"success":"error",report:o}),a?.("migrated")})()},onCancel:()=>{t({kind:"hidden"}),a?.("skipped")},visibleOptionCount:2})]})}var k;var w=f(()=>{C();y();b();g();k=h(M(),1)});
|
|
2
|
+
export{T as Ec,w as Fc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Pqa as M}from"./cli-0.7.4-58p1wenr.mjs";function P(j){return j.message?.role??j.role}function G(j){return j.message?j.message.content:j.content}function K(j){if(!j||typeof j!=="object")return!1;if(j.type==="image")return!0;if(j.type==="tool_result"&&Array.isArray(j.content))return j.content.some((q)=>K(q));return!1}function Q(j){if(!Array.isArray(j))return!1;return j.some((q)=>K(q))}function U(j){if(!Array.isArray(j)||j.length===0)return!1;return j.every((q)=>{let w=q;return w&&typeof w==="object"&&w.type==="tool_result"})}function V(j){let q=j[j.length-1];if(!q||typeof q!=="object")return"user";if(P(q)!=="user")return"agent";if(U(G(q)))return"agent";return"user"}function W(j){return j.some((q)=>Q(G(q)))}function X(j){let q={"x-initiator":V(j)};if(W(j))q["Copilot-Vision-Request"]="true";return q}function Z(j,q={}){return(w,B)=>{let E=new Headers(B?.headers);for(let[z,F]of Object.entries(q))if(!E.has(z))E.set(z,F);try{if(typeof B?.body==="string"){let z=JSON.parse(B.body);if(Array.isArray(z?.messages))for(let[F,L]of Object.entries(X(z.messages)))E.set(F,L)}}catch{}return j(w,{...B,headers:E})}}var Y=()=>{};
|
|
2
|
+
export{V as ui,W as vi,X as wi,Z as xi,Y as yi};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{O9 as Q,c_ as _}from"./cli-0.7.4-hvnzwb5v.mjs";import{Rga as I,Sga as X}from"./cli-0.7.4-r1ebyx3p.mjs";import{Iia as B,Lia as V}from"./cli-0.7.4-hegk157e.mjs";import{Pqa as T}from"./cli-0.7.4-58p1wenr.mjs";function j(){A.clear()}async function P(){let f=await Y();if(!f)return null;if(f.host!=="github.com")return null;return`${f.owner}/${f.name}`}async function Y(){let f=I();if(A.has(f))return A.get(f)??null;try{let q=await Q();if(B(`Git remote URL: ${q}`),!q)return B("No git remote URL found"),A.set(f,null),null;let x=O(q);return B(`Parsed repository: ${x?`${x.host}/${x.owner}/${x.name}`:null} from URL: ${q}`),A.set(f,x),x}catch(q){return B(`Error detecting repository: ${q}`),A.set(f,null),null}}function S(){let f=A.get(I());if(!f||f.host!=="github.com")return null;return`${f.owner}/${f.name}`}function O(f){let q=f.trim(),x=q.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(x?.[1]&&x[2]&&x[3]){if(!N(x[1]))return null;return{host:x[1],owner:x[2],name:x[3]}}let z=q.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]&&z[4]){let E=z[1],J=z[2],K=J.split(":")[0]??"";if(!N(K))return null;return{host:E==="https"||E==="http"?J:K,owner:z[3],name:z[4]}}return null}function D(f){let q=f.trim(),x=O(q);if(x){if(x.host!=="github.com")return null;return`${x.owner}/${x.name}`}if(!q.includes("://")&&!q.includes("@")&&q.includes("/")){let z=q.split("/");if(z.length===2&&z[0]&&z[1]){let E=z[1].replace(/\.git$/,"");return`${z[0]}/${E}`}}return B(`Could not parse repository from: ${q}`),null}function N(f){if(!f.includes("."))return!1;let q=f.split(".").pop();if(!q)return!1;return/^[a-zA-Z]+$/.test(q)}var A;var Z=T(()=>{X();V();_();A=new Map});
|
|
2
|
+
export{j as A8,P as B8,Y as C8,S as D8,O as E8,D as F8,Z as G8};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Apa as xQ,Bpa as r,Cpa as UQ,Dpa as T5,Epa as UY,fpa as _Q,gpa as YJ,hpa as v,ipa as P1,jpa as Y5,kpa as w8,lpa as q,mpa as y,npa as S,opa as kQ,ppa as L,qpa as a,rpa as n5,spa as e8,tpa as R5,upa as _8,vpa as E,wpa as h8,xpa as P,ypa as x1,zpa as d}from"./cli-0.7.4-jg5ajbyb.mjs";import{Oqa as aQ,Pqa as X}from"./cli-0.7.4-58p1wenr.mjs";function h$(){this.__data__=new v,this.size=0}var QQ;var $Q=X(()=>{P1();QQ=h$});function n$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var JQ;var YQ=X(()=>{JQ=n$});function b$(Q){return this.__data__.get(Q)}var ZQ;var XQ=X(()=>{ZQ=b$});function i$(Q){return this.__data__.has(Q)}var HQ;var WQ=X(()=>{HQ=i$});function l$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<u$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new r(Z)}return Y.set(Q,J),this.size=Y.size,this}var u$=200,KQ;var GQ=X(()=>{P1();xQ();UQ();KQ=l$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var I1=X(()=>{P1();$Q();YQ();XQ();WQ();GQ();g.prototype.clear=QQ;g.prototype.delete=JQ;g.prototype.get=ZQ;g.prototype.has=HQ;g.prototype.set=KQ;p=g});function c$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",BQ;var NQ=X(()=>{BQ=c$});function r$(Q){return this.__data__.has(Q)}var wQ;var zQ=X(()=>{wQ=r$});function o(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new r;while(++J<Y)this.add(Q[J])}var FQ;var RQ=X(()=>{UQ();NQ();zQ();o.prototype.add=o.prototype.push=BQ;o.prototype.has=wQ;FQ=o});function o$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var qQ;var DQ=X(()=>{qQ=o$});function s$(Q,J){return Q.has(J)}var OQ;var VQ=X(()=>{OQ=s$});function e$(Q,J,Y,Z,H,W){var x=Y&a$,U=Q.length,B=J.length;if(U!=B&&!(x&&B>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&t$?new FQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],D=J[z];if(Z)var f=x?Z(D,R,z,J,Q,W):Z(R,D,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!qQ(J,function(C,_){if(!OQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===D||H(R,D,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var a$=1,t$=2,s;var C1=X(()=>{RQ();DQ();VQ();s=e$});var QJ,_1;var MQ=X(()=>{y();QJ=q.Uint8Array,_1=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var LQ;var fQ=X(()=>{LQ=$J});function JJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var PQ;var IQ=X(()=>{PQ=JJ});function RJ(Q,J,Y,Z,H,W,x){switch(Y){case FJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case zJ:if(Q.byteLength!=J.byteLength||!W(new _1(Q),new _1(J)))return!1;return!0;case HJ:case WJ:case KJ:return _Q(+Q,+J);case xJ:return Q.name==J.name&&Q.message==J.message;case GJ:case NJ:return Q==J+"";case UJ:var U=LQ;case BJ:var B=Z&ZJ;if(U||(U=PQ),Q.size!=J.size&&!B)return!1;var K=x.get(Q);if(K)return K==J;Z|=XJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case wJ:if(k1)return k1.call(Q)==k1.call(J)}return!1}var ZJ=1,XJ=2,HJ="[object Boolean]",WJ="[object Date]",xJ="[object Error]",UJ="[object Map]",KJ="[object Number]",GJ="[object RegExp]",BJ="[object Set]",NJ="[object String]",wJ="[object Symbol]",zJ="[object ArrayBuffer]",FJ="[object DataView]",CQ,k1,EQ;var vQ=X(()=>{kQ();MQ();YJ();C1();fQ();IQ();CQ=S?S.prototype:void 0,k1=CQ?CQ.valueOf:void 0;EQ=RJ});function qJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var dQ;var gQ=X(()=>{dQ=qJ});var DJ,w;var M=X(()=>{DJ=Array.isArray,w=DJ});function OJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:dQ(Z,Y(Q))}var pQ;var yQ=X(()=>{gQ();M();pQ=OJ});function VJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var SQ;var mQ=X(()=>{SQ=VJ});function MJ(){return[]}var AQ;var jQ=X(()=>{AQ=MJ});var LJ,fJ,hQ,PJ,nQ;var bQ=X(()=>{mQ();jQ();LJ=Object.prototype,fJ=LJ.propertyIsEnumerable,hQ=Object.getOwnPropertySymbols,PJ=!hQ?AQ:function(Q){if(Q==null)return[];return Q=Object(Q),SQ(hQ(Q),function(J){return fJ.call(Q,J)})},nQ=PJ});function IJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var iQ;var uQ=X(()=>{iQ=IJ});function CJ(Q){return Q!=null&&typeof Q=="object"}var O;var m=X(()=>{O=CJ});function kJ(Q){return O(Q)&&L(Q)==_J}var _J="[object Arguments]",E1;var lQ=X(()=>{a();m();E1=kJ});var TQ,EJ,vJ,dJ,t;var v1=X(()=>{lQ();m();TQ=Object.prototype,EJ=TQ.hasOwnProperty,vJ=TQ.propertyIsEnumerable,dJ=E1(function(){return arguments}())?E1:function(Q){return O(Q)&&EJ.call(Q,"callee")&&!vJ.call(Q,"callee")},t=dJ});function gJ(){return!1}var cQ;var rQ=X(()=>{cQ=gJ});var Q1={};aQ(Q1,{default:()=>A});var tQ,oQ,pJ,sQ,yJ,SJ,A;var d1=X(()=>{y();rQ();tQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,oQ=tQ&&typeof e=="object"&&e&&!e.nodeType&&e,pJ=oQ&&oQ.exports===tQ,sQ=pJ?q.Buffer:void 0,yJ=sQ?sQ.isBuffer:void 0,SJ=yJ||cQ,A=SJ});function jJ(Q,J){var Y=typeof Q;return J=J==null?mJ:J,!!J&&(Y=="number"||Y!="symbol"&&AJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var mJ=9007199254740991,AJ,$1;var g1=X(()=>{AJ=/^(?:0|[1-9]\d*)$/;$1=jJ});function nJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,j;var J1=X(()=>{j=nJ});function B8(Q){return O(Q)&&j(Q.length)&&!!G[L(Q)]}var bJ="[object Arguments]",iJ="[object Array]",uJ="[object Boolean]",lJ="[object Date]",TJ="[object Error]",cJ="[object Function]",rJ="[object Map]",oJ="[object Number]",sJ="[object Object]",aJ="[object RegExp]",tJ="[object Set]",eJ="[object String]",Q8="[object WeakMap]",$8="[object ArrayBuffer]",J8="[object DataView]",Y8="[object Float32Array]",Z8="[object Float64Array]",X8="[object Int8Array]",H8="[object Int16Array]",W8="[object Int32Array]",x8="[object Uint8Array]",U8="[object Uint8ClampedArray]",K8="[object Uint16Array]",G8="[object Uint32Array]",G,eQ;var Q5=X(()=>{a();J1();m();G={};G[Y8]=G[Z8]=G[X8]=G[H8]=G[W8]=G[x8]=G[U8]=G[K8]=G[G8]=!0;G[bJ]=G[iJ]=G[$8]=G[uJ]=G[J8]=G[lJ]=G[TJ]=G[cJ]=G[rJ]=G[oJ]=G[sJ]=G[aJ]=G[tJ]=G[eJ]=G[Q8]=!1;eQ=B8});function N8(Q){return function(J){return Q(J)}}var $5;var J5=X(()=>{$5=N8});var Z1={};aQ(Z1,{default:()=>X1});var Z5,i,z8,p1,F8,X1;var X5=X(()=>{w8();Z5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Z5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,z8=i&&i.exports===Z5,p1=z8&&Y5.process,F8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return p1&&p1.binding&&p1.binding("util")}catch(J){}}(),X1=F8});var H5,R8,H1;var y1=X(()=>{Q5();J5();X5();H5=X1&&X1.isTypedArray,R8=H5?$5(H5):eQ,H1=R8});function O8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?iQ(Q.length,String):[],B=U.length;for(var K in Q)if((J||D8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,B))))U.push(K);return U}var q8,D8,W5;var x5=X(()=>{uQ();v1();M();d1();g1();y1();q8=Object.prototype,D8=q8.hasOwnProperty;W5=O8});function M8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||V8;return Q===Y}var V8,U5;var K5=X(()=>{V8=Object.prototype;U5=M8});function L8(Q,J){return function(Y){return Q(J(Y))}}var G5;var B5=X(()=>{G5=L8});var f8,N5;var w5=X(()=>{B5();f8=G5(Object.keys,Object),N5=f8});function C8(Q){if(!U5(Q))return N5(Q);var J=[];for(var Y in Object(Q))if(I8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var P8,I8,z5;var F5=X(()=>{K5();w5();P8=Object.prototype,I8=P8.hasOwnProperty;z5=C8});function k8(Q){return Q!=null&&j(Q.length)&&!R5(Q)}var q5;var D5=X(()=>{_8();J1();q5=k8});function E8(Q){return q5(Q)?W5(Q):z5(Q)}var W1;var S1=X(()=>{x5();F5();D5();W1=E8});function v8(Q){return pQ(Q,W1,nQ)}var m1;var O5=X(()=>{yQ();bQ();S1();m1=v8});function y8(Q,J,Y,Z,H,W){var x=Y&d8,U=m1(Q),B=U.length,K=m1(J),F=K.length;if(B!=F&&!x)return!1;var z=B;while(z--){var N=U[z];if(!(x?N in J:p8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var D=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<B){N=U[z];var C=Q[N],_=J[N];if(Z)var e1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(e1===void 0?C===_||H(C,_,Y,Z,W):e1)){D=!1;break}f||(f=N=="constructor")}if(D&&!f){var T=Q.constructor,c=J.constructor;if(T!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof T=="function"&&T instanceof T&&typeof c=="function"&&c instanceof c))D=!1}return W.delete(Q),W.delete(J),D}var d8=1,g8,p8,V5;var M5=X(()=>{O5();g8=Object.prototype,p8=g8.hasOwnProperty;V5=y8});var S8,U1;var L5=X(()=>{x1();y();S8=P(q,"DataView"),U1=S8});var m8,K1;var f5=X(()=>{x1();y();m8=P(q,"Promise"),K1=m8});var A8,G1;var P5=X(()=>{x1();y();A8=P(q,"Set"),G1=A8});var j8,B1;var I5=X(()=>{x1();y();j8=P(q,"WeakMap"),B1=j8});var C5="[object Map]",n8="[object Object]",_5="[object Promise]",k5="[object Set]",E5="[object WeakMap]",v5="[object DataView]",b8,i8,u8,l8,T8,k,A1;var d5=X(()=>{L5();xQ();f5();P5();I5();a();h8();b8=E(U1),i8=E(d),u8=E(K1),l8=E(G1),T8=E(B1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=v5||d&&k(new d)!=C5||K1&&k(K1.resolve())!=_5||G1&&k(new G1)!=k5||B1&&k(new B1)!=E5)k=function(Q){var J=L(Q),Y=J==n8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case b8:return v5;case i8:return C5;case u8:return _5;case l8:return k5;case T8:return E5}return J};A1=k});function o8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?p5:A1(Q),K=U?p5:A1(J);B=B==g5?N1:B,K=K==g5?N1:K;var F=B==N1,z=K==N1,N=B==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):EQ(Q,J,B,Y,Z,H,W);if(!(Y&c8)){var V=F&&y5.call(Q,"__wrapped__"),R=z&&y5.call(J,"__wrapped__");if(V||R){var D=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(D,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),V5(Q,J,Y,Z,H,W)}var c8=1,g5="[object Arguments]",p5="[object Array]",N1="[object Object]",r8,y5,S5;var m5=X(()=>{I1();C1();vQ();M5();d5();M();d1();y1();r8=Object.prototype,y5=r8.hasOwnProperty;S5=o8});function A5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return S5(Q,J,Y,Z,A5,H)}var w1;var j1=X(()=>{m5();m();w1=A5});function t8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var B=U[0],K=Q[B],F=U[1];if(x&&U[2]){if(K===void 0&&!(B in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,B,Q,J,z);if(!(N===void 0?w1(F,K,s8|a8,Z,z):N))return!1}}return!0}var s8=1,a8=2,j5;var h5=X(()=>{I1();j1();j5=t8});function QY(Q){return Q===Q&&!n5(Q)}var z1;var h1=X(()=>{e8();z1=QY});function $Y(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var b5;var i5=X(()=>{h1();S1();b5=$Y});function JY(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var n1=X(()=>{F1=JY});function YY(Q){var J=b5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||j5(Y,Q,J)}}var u5;var l5=X(()=>{h5();i5();n1();u5=YY});function XY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==ZY}var ZY="[object Symbol]",h;var R1=X(()=>{a();m();h=XY});function xY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||h(Q))return!0;return WY.test(Q)||!HY.test(Q)||J!=null&&Q in Object(J)}var HY,WY,n;var q1=X(()=>{M();R1();HY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WY=/^\w*$/;n=xY});function GY(Q){var J=T5(Q,function(Z){if(Y.size===KY)Y.clear();return Z}),Y=J.cache;return J}var KY=500,c5;var r5=X(()=>{UY();c5=GY});var BY,NY,wY,o5;var s5=X(()=>{r5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NY=/\\(\\)?/g,wY=c5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(NY,"$1"):Z||Y)}),J}),o5=wY});function zY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var a5;var t5=X(()=>{a5=zY});function $$(Q){if(typeof Q=="string")return Q;if(w(Q))return a5(Q,$$)+"";if(h(Q))return Q$?Q$.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-FY?"-0":J}var FY=1/0,e5,Q$,J$;var Y$=X(()=>{kQ();t5();M();R1();e5=S?S.prototype:void 0,Q$=e5?e5.toString:void 0;J$=$$});function RY(Q){return Q==null?"":J$(Q)}var Z$;var X$=X(()=>{Y$();Z$=RY});function qY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:o5(Z$(Q))}var D1;var b1=X(()=>{M();q1();s5();X$();D1=qY});function OY(Q){if(typeof Q=="string"||h(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-DY?"-0":J}var DY=1/0,I;var u=X(()=>{R1();I=OY});function VY(Q,J){J=D1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var i1=X(()=>{b1();u();O1=VY});function MY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var H$;var W$=X(()=>{i1();H$=MY});function LY(Q,J){return Q!=null&&J in Object(Q)}var x$;var U$=X(()=>{x$=LY});function fY(Q,J,Y){J=D1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&j(H)&&$1(x,H)&&(w(Q)||t(Q))}var K$;var G$=X(()=>{b1();v1();M();g1();J1();u();K$=fY});function PY(Q,J){return Q!=null&&K$(Q,J,x$)}var B$;var N$=X(()=>{U$();G$();B$=PY});function _Y(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=H$(Y,Q);return Z===void 0&&Z===J?B$(Y,Q):w1(J,Z,IY|CY)}}var IY=1,CY=2,w$;var z$=X(()=>{j1();W$();N$();q1();h1();n1();u();w$=_Y});function kY(Q){return Q}var F$;var R$=X(()=>{F$=kY});function EY(Q){return function(J){return J==null?void 0:J[Q]}}var q$;var D$=X(()=>{q$=EY});function vY(Q){return function(J){return O1(J,Q)}}var O$;var V$=X(()=>{i1();O$=vY});function dY(Q){return n(Q)?q$(I(Q)):O$(Q)}var M$;var L$=X(()=>{D$();V$();q1();u();M$=dY});function gY(Q){if(typeof Q=="function")return Q;if(Q==null)return F$;if(typeof Q=="object")return w(Q)?w$(Q[0],Q[1]):u5(Q);return M$(Q)}var f$;var P$=X(()=>{l5();z$();R$();M();L$();f$=gY});function pY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var I$;var C$=X(()=>{I$=pY});function yY(Q,J){return Q&&Q.length?I$(Q,f$(J,2)):0}var b;var _$=X(()=>{P$();C$();b=yY});import{randomUUID as u1}from"crypto";var k$=()=>{};function nX(){return l1}function bX(Q){l1=Q}function iX(Q){return V1.has(Q)?V1.get(Q):void 0}function uX(Q,J){V1.set(Q,J)}function lX(Q){return T1.get(Q)}function TX(Q,J){T1.set(Q,J)}function E$(){l1=null,V1.clear(),T1.clear()}function cX(){return c1}function rX(Q){c1=Q}function oX(){c1=void 0}var l1=null,V1,T1,c1;var v$=X(()=>{V1=new Map;T1=new Map});function d$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var g$=()=>{};import{realpathSync as p$}from"fs";import{cwd as SY}from"process";function Z9(Q){return r1.add(Q),()=>r1.delete(Q)}function X9(){L1()}function L1(){for(let Q of r1)try{Q()}catch{}}function y$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof p$==="function"){let Y=SY();try{Q=p$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],pendingSessionWakeup:null,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,lspDeferLatchedTools:null,deferredDeltaLegacySession:!1,sessionEpochMs:Date.now()-process.uptime()*1000,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function H9(){return $.sessionId}function W9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=u1(),$.sessionProjectDir=null,S$($.sessionId),$.sessionId}function x9(){return $.parentSessionId}function U9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,S$(Q)}function S$(Q){$.pendingSessionWakeup=null,jY(),$.sessionEpochMs=Date.now(),o1.emit(Q)}function G9(){return $.sessionProjectDir}function B9(){return $.originalCwd}function N9(){return $.projectRoot}function w9(Q){$.originalCwd=Q.normalize("NFC")}function z9(Q){$.projectRoot=Q.normalize("NFC")}function F9(){return $.cwd}function R9(Q){$.cwd=Q.normalize("NFC")}function q9(){return $.directConnectServerUrl}function D9(Q){$.directConnectServerUrl=Q}function O9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function V9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function M9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function L9(){return $.totalCostUSD}function f9(){return $.totalAPIDuration}function P9(){return Date.now()-$.startTime}function I9(){return $.totalAPIDurationWithoutRetries}function C9(){return $.totalToolDuration}function _9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function k9(){return $.turnHookDurationMs}function E9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function v9(){$.turnHookDurationMs=0,$.turnHookCount=0}function d9(){return $.turnHookCount}function g9(){return $.turnToolDurationMs}function p9(){$.turnToolDurationMs=0,$.turnToolCount=0}function y9(){return $.turnToolCount}function S9(){return $.turnClassifierDurationMs}function m9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function A9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function j9(){return $.turnClassifierCount}function h9(){return $.statsStore}function n9(Q){$.statsStore=Q}function b9(Q){if(Q)m$();else s1=!0}function i9(){if(s1)m$()}function m$(){$.lastInteractionTime=Date.now(),s1=!1}function u9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function l9(){return $.totalLinesAdded}function T9(){return $.totalLinesRemoved}function c9(){return b(Object.values($.modelUsage),"inputTokens")}function A$(){return b(Object.values($.modelUsage),"outputTokens")}function r9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function o9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function s9(){return b(Object.values($.modelUsage),"webSearchRequests")}function a9(){return A$()-a1}function t9(){return t1}function e9(Q){a1=A$(),t1=Q,f1=0}function QH(){return f1}function $H(){f1++}function JH(){$.hasUnknownModelCost=!0}function YH(){return $.hasUnknownModelCost}function ZH(){return $.lastMainRequestId}function XH(Q){$.lastMainRequestId=Q}function HH(){return $.lastApiCompletionTimestamp}function WH(Q){$.lastApiCompletionTimestamp=Q}function xH(){$.pendingPostCompaction=!0}function UH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function KH(){return $.lastInteractionTime}function GH(){if(M1=!0,l)clearTimeout(l);l=setTimeout(()=>{M1=!1,l=void 0},j$),l.unref?.()}function BH(){return M1}async function NH(){while(M1)await new Promise((Q)=>setTimeout(Q,j$).unref?.())}function wH(){return $.modelUsage}function zH(Q){return $.modelUsage[Q]}function FH(){return $.mainLoopModelOverride}function RH(){return $.initialMainLoopModel}function qH(Q){$.mainLoopModelOverride=Q}function DH(Q){$.initialMainLoopModel=Q}function OH(){return $.sdkBetas}function VH(Q){$.sdkBetas=Q}function MH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function LH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;if(x)$.startTime=Date.now()-x}function fH(){throw Error("resetStateForTests can only be called in tests")}function PH(){return $.modelStrings}function IH(Q){$.modelStrings=Q}function CH(){$.modelStrings=null}function _H(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function kH(){return $.meter}function EH(){return $.sessionCounter}function vH(){return $.locCounter}function dH(){return $.prCounter}function gH(){return $.commitCounter}function pH(){return $.costCounter}function yH(){return $.tokenCounter}function SH(){return $.codeEditToolDecisionCounter}function mH(){return $.activeTimeCounter}function AH(){return $.loggerProvider}function jH(Q){$.loggerProvider=Q}function hH(){return $.eventLogger}function nH(Q){$.eventLogger=Q}function bH(){return $.meterProvider}function iH(Q){$.meterProvider=Q}function uH(){return $.tracerProvider}function lH(Q){$.tracerProvider=Q}function mY(){return!$.isInteractive}function TH(){return $.isInteractive}function cH(Q){$.isInteractive=Q}function rH(){return $.clientType}function oH(Q){$.clientType=Q}function sH(){return $.sdkAgentProgressSummariesEnabled}function aH(Q){$.sdkAgentProgressSummariesEnabled=Q}function tH(){return $.kairosActive}function eH(Q){$.kairosActive=Q,L1()}function Q4(){return $.strictToolResultPairing}function $4(Q){$.strictToolResultPairing=Q}function J4(){return $.userMsgOptIn}function Y4(Q){$.userMsgOptIn=Q,L1()}function Z4(){return $.sessionSource}function X4(Q){$.sessionSource=Q}function H4(){return $.questionPreviewFormat}function W4(Q){$.questionPreviewFormat=Q}function x4(){return $.agentColorMap}function U4(){return $.flagSettingsPath}function K4(Q){$.flagSettingsPath=Q}function G4(){return $.flagSettingsInline}function B4(Q){$.flagSettingsInline=Q}function N4(){return $.sessionIngressToken}function w4(Q){$.sessionIngressToken=Q}function z4(){return $.oauthTokenFromFd}function F4(Q){$.oauthTokenFromFd=Q}function R4(){return $.apiKeyFromFd}function q4(Q){$.apiKeyFromFd=Q}function D4(Q){$.lastAPIRequest=Q}function O4(){return $.lastAPIRequest}function V4(Q){$.lastAPIRequestMessages=Q}function M4(){return $.lastAPIRequestMessages}function L4(Q){$.lastClassifierRequests=Q}function f4(){return $.lastClassifierRequests}function P4(Q){$.cachedClaudeMdContent=Q}function I4(){return $.cachedClaudeMdContent}function C4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function _4(){return $.allowedSettingSources}function k4(Q){$.allowedSettingSources=Q}function E4(){return mY()&&$.clientType!=="claude-vscode"}function v4(Q){$.inlinePlugins=Q}function d4(){return $.inlinePlugins}function g4(Q){$.useCoworkPlugins=Q,E$()}function p4(){return $.useCoworkPlugins}function y4(Q){$.sessionBypassPermissionsMode=Q}function S4(){return $.sessionBypassPermissionsMode}function m4(Q){$.scheduledTasksEnabled=Q}function A4(){return $.scheduledTasksEnabled}function j4(){return $.sessionCronTasks}function h4(Q){$.sessionCronTasks.push(Q)}function n4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function b4(){return $.pendingSessionWakeup}function i4(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function u4(){$.pendingSessionWakeup=null}function l4(Q){$.sessionTrustAccepted=Q}function T4(){return $.sessionTrustAccepted}function c4(Q){$.sessionPersistenceDisabled=Q}function r4(){return $.sessionPersistenceDisabled}function o4(){return $.hasExitedPlanMode}function s4(Q){$.hasExitedPlanMode=Q}function a4(){return $.needsPlanModeExitAttachment}function t4(Q){$.needsPlanModeExitAttachment=Q}function e4(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function Q3(){return $.needsAutoModeExitAttachment}function $3(Q){$.needsAutoModeExitAttachment=Q}function J3(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function Y3(Q){$.initJsonSchema=Q}function Z3(){return $.initJsonSchema}function X3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function H3(){return $.registeredHooks}function W3(){$.registeredHooks=null}function x3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function U3(){$.initJsonSchema=null,$.registeredHooks=null}function K3(){return $.planSlugCache}function G3(){return $.sessionCreatedTeams}function B3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function N3(){return $.teleportedSessionInfo}function w3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function z3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function F3(){return $.invokedSkills}function R3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function q3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function D3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function O3(Q,J){}function V3(){return AY}function M3(){return $.mainThreadAgentType}function L3(Q){$.mainThreadAgentType=Q}function f3(){return $.isRemoteMode}function P3(Q){$.isRemoteMode=Q}function I3(){return $.systemPromptSectionCache}function C3(Q,J){$.systemPromptSectionCache.set(Q,J)}function _3(){$.systemPromptSectionCache.clear()}function k3(){return $.lastEmittedDate}function E3(Q){$.lastEmittedDate=Q}function v3(){return $.additionalDirectoriesForClaudeMd}function d3(Q){$.additionalDirectoriesForClaudeMd=Q}function g3(){return $.allowedChannels}function p3(Q){$.allowedChannels=Q,L1()}function y3(){return $.hasDevChannels}function S3(Q){$.hasDevChannels=Q}function m3(){return $.largeSystemPromptDetected}function A3(Q){$.largeSystemPromptDetected=Q}function j3(){return $.afkModeHeaderLatched}function h3(Q){$.afkModeHeaderLatched=Q}function n3(){return $.fastModeHeaderLatched}function b3(Q){$.fastModeHeaderLatched=Q}function i3(){return $.thinkingClearLatched}function u3(Q){$.thinkingClearLatched=Q}function l3(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function T3(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function c3(){return $.deferredDeltaLegacySession}function r3(Q){$.deferredDeltaLegacySession=Q}function jY(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function o3(){return $.sessionEpochMs}function s3(){return $.promptId}function a3(Q){$.promptId=Q}function t3(){return!1}function e3(){return null}var r1,$,o1,K9,s1=!1,a1=0,t1=null,f1=0,M1=!1,l,j$=150,AY;var hY=X(()=>{_$();k$();v$();g$();r1=new Set;$=y$();o1=d$();K9=o1.subscribe;AY=[]});
|
|
2
|
+
export{p as Eja,I1 as Fja,FQ as Gja,RQ as Hja,OQ as Ija,VQ as Jja,_1 as Kja,MQ as Lja,PQ as Mja,IQ as Nja,dQ as Oja,gQ as Pja,w as Qja,M as Rja,pQ as Sja,yQ as Tja,SQ as Uja,mQ as Vja,AQ as Wja,jQ as Xja,nQ as Yja,bQ as Zja,O as _ja,m as $ja,t as aka,v1 as bka,A as cka,d1 as dka,$1 as eka,g1 as fka,$5 as gka,J5 as hka,X1 as ika,X5 as jka,H1 as kka,y1 as lka,W5 as mka,x5 as nka,U5 as oka,K5 as pka,G5 as qka,B5 as rka,q5 as ska,D5 as tka,W1 as uka,S1 as vka,m1 as wka,O5 as xka,G1 as yka,P5 as zka,A1 as Aka,d5 as Bka,w1 as Cka,j1 as Dka,h as Eka,R1 as Fka,a5 as Gka,t5 as Hka,Z$ as Ika,X$ as Jka,D1 as Kka,b1 as Lka,I as Mka,u as Nka,O1 as Oka,i1 as Pka,F$ as Qka,R$ as Rka,f$ as Ska,P$ as Tka,nX as Uka,bX as Vka,iX as Wka,uX as Xka,lX as Yka,TX as Zka,E$ as _ka,cX as $ka,rX as ala,oX as bla,v$ as cla,d$ as dla,g$ as ela,Z9 as fla,X9 as gla,H9 as hla,W9 as ila,x9 as jla,U9 as kla,K9 as lla,G9 as mla,B9 as nla,N9 as ola,w9 as pla,z9 as qla,F9 as rla,R9 as sla,q9 as tla,D9 as ula,O9 as vla,V9 as wla,M9 as xla,L9 as yla,f9 as zla,P9 as Ala,I9 as Bla,C9 as Cla,_9 as Dla,k9 as Ela,E9 as Fla,v9 as Gla,d9 as Hla,g9 as Ila,p9 as Jla,y9 as Kla,S9 as Lla,m9 as Mla,A9 as Nla,j9 as Ola,h9 as Pla,n9 as Qla,b9 as Rla,i9 as Sla,u9 as Tla,l9 as Ula,T9 as Vla,c9 as Wla,A$ as Xla,r9 as Yla,o9 as Zla,s9 as _la,a9 as $la,t9 as ama,e9 as bma,QH as cma,$H as dma,JH as ema,YH as fma,ZH as gma,XH as hma,HH as ima,WH as jma,xH as kma,UH as lma,KH as mma,GH as nma,BH as oma,NH as pma,wH as qma,zH as rma,FH as sma,RH as tma,qH as uma,DH as vma,OH as wma,VH as xma,MH as yma,LH as zma,fH as Ama,PH as Bma,IH as Cma,CH as Dma,_H as Ema,kH as Fma,EH as Gma,vH as Hma,dH as Ima,gH as Jma,pH as Kma,yH as Lma,SH as Mma,mH as Nma,AH as Oma,jH as Pma,hH as Qma,nH as Rma,bH as Sma,iH as Tma,uH as Uma,lH as Vma,mY as Wma,TH as Xma,cH as Yma,rH as Zma,oH as _ma,sH as $ma,aH as ana,tH as bna,eH as cna,Q4 as dna,$4 as ena,J4 as fna,Y4 as gna,Z4 as hna,X4 as ina,H4 as jna,W4 as kna,x4 as lna,U4 as mna,K4 as nna,G4 as ona,B4 as pna,N4 as qna,w4 as rna,z4 as sna,F4 as tna,R4 as una,q4 as vna,D4 as wna,O4 as xna,V4 as yna,M4 as zna,L4 as Ana,f4 as Bna,P4 as Cna,I4 as Dna,C4 as Ena,_4 as Fna,k4 as Gna,E4 as Hna,v4 as Ina,d4 as Jna,g4 as Kna,p4 as Lna,y4 as Mna,S4 as Nna,m4 as Ona,A4 as Pna,j4 as Qna,h4 as Rna,n4 as Sna,b4 as Tna,i4 as Una,u4 as Vna,l4 as Wna,T4 as Xna,c4 as Yna,r4 as Zna,o4 as _na,s4 as $na,a4 as aoa,t4 as boa,e4 as coa,Q3 as doa,$3 as eoa,J3 as foa,Y3 as goa,Z3 as hoa,X3 as ioa,H3 as joa,W3 as koa,x3 as loa,U3 as moa,K3 as noa,G3 as ooa,B3 as poa,N3 as qoa,w3 as roa,z3 as soa,F3 as toa,R3 as uoa,q3 as voa,D3 as woa,O3 as xoa,V3 as yoa,M3 as zoa,L3 as Aoa,f3 as Boa,P3 as Coa,I3 as Doa,C3 as Eoa,_3 as Foa,k3 as Goa,E3 as Hoa,v3 as Ioa,d3 as Joa,g3 as Koa,p3 as Loa,y3 as Moa,S3 as Noa,m3 as Ooa,A3 as Poa,j3 as Qoa,h3 as Roa,n3 as Soa,b3 as Toa,i3 as Uoa,u3 as Voa,l3 as Woa,T3 as Xoa,c3 as Yoa,r3 as Zoa,jY as _oa,o3 as $oa,s3 as apa,a3 as bpa,t3 as cpa,e3 as dpa,hY as epa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Nqa as j}from"./cli-0.7.4-58p1wenr.mjs";var Lt=j((Q)=>{var y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),L=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),m=Symbol.iterator;function q(t){if(t===null||typeof t!=="object")return null;return t=m&&t[m]||t["@@iterator"],typeof t==="function"?t:null}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,w={};function l(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!=="object"&&typeof t!=="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function P(){}P.prototype=l.prototype;function v(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}var T=v.prototype=new P;T.constructor=v;g(T,l.prototype);T.isPureReactComponent=!0;var C=Array.isArray;function E(){}var f={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function R(t,e,n){var r=n.ref;return{$$typeof:y,type:t,key:e,ref:r!==void 0?r:null,props:n}}function z(t,e){return R(t.type,e,t.props)}function x(t){return typeof t==="object"&&t!==null&&t.$$typeof===y}function G(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var d=/\/+/g;function a(t,e){return typeof t==="object"&&t!==null&&t.key!=null?G(""+t.key):e.toString(36)}function K(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status==="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function p(t,e,n,r,o){var u=typeof t;if(u==="undefined"||u==="boolean")t=null;var s=!1;if(t===null)s=!0;else switch(u){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case y:case $:s=!0;break;case h:return s=t._init,p(s(t._payload),e,n,r,o)}}if(s)return o=o(t),s=r===""?"."+a(t,0):r,C(o)?(n="",s!=null&&(n=s.replace(d,"$&/")+"/"),p(o,e,n,"",function(O){return O})):o!=null&&(x(o)&&(o=z(o,n+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(d,"$&/")+"/")+s)),e.push(o)),1;s=0;var c=r===""?".":r+":";if(C(t))for(var i=0;i<t.length;i++)r=t[i],u=c+a(r,i),s+=p(r,e,n,u,o);else if(i=q(t),typeof i==="function")for(t=i.call(t),i=0;!(r=t.next()).done;)r=r.value,u=c+a(r,i++),s+=p(r,e,n,u,o);else if(u==="object"){if(typeof t.then==="function")return p(K(t),e,n,r,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function _(t,e,n){if(t==null)return t;var r=[],o=0;return p(t,r,"","",function(u){return e.call(n,u,o++)}),r}function B(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){if(t._status===0||t._status===-1)t._status=1,t._result=n},function(n){if(t._status===0||t._status===-1)t._status=2,t._result=n}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var A=typeof reportError==="function"?reportError:function(t){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t==="object"&&t!==null&&typeof t.message==="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",t);return}console.error(t)},W={map:_,forEach:function(t,e,n){_(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return _(t,function(){e++}),e},toArray:function(t){return _(t,function(e){return e})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Q.Activity=D;Q.Children=W;Q.Component=l;Q.Fragment=I;Q.Profiler=M;Q.PureComponent=v;Q.StrictMode=N;Q.Suspense=U;Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;Q.__COMPILER_RUNTIME={__proto__:null,c:function(t){return f.H.useMemoCache(t)}};Q.cache=function(t){return function(){return t.apply(null,arguments)}};Q.cacheSignal=function(){return null};Q.cloneElement=function(t,e,n){if(t===null||t===void 0)throw Error("The argument must be a React element, but you passed "+t+".");var r=g({},t.props),o=t.key;if(e!=null)for(u in e.key!==void 0&&(o=""+e.key),e)!H.call(e,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&e.ref===void 0||(r[u]=e[u]);var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return R(t.type,o,r)};Q.createContext=function(t){return t={$$typeof:L,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Y,_context:t},t};Q.createElement=function(t,e,n){var r,o={},u=null;if(e!=null)for(r in e.key!==void 0&&(u=""+e.key),e)H.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=e[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];o.children=c}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return R(t,u,o)};Q.createRef=function(){return{current:null}};Q.forwardRef=function(t){return{$$typeof:k,render:t}};Q.isValidElement=x;Q.lazy=function(t){return{$$typeof:h,_payload:{_status:-1,_result:t},_init:B}};Q.memo=function(t,e){return{$$typeof:b,type:t,compare:e===void 0?null:e}};Q.startTransition=function(t){var e=f.T,n={};f.T=n;try{var r=t(),o=f.S;o!==null&&o(n,r),typeof r==="object"&&r!==null&&typeof r.then==="function"&&r.then(E,A)}catch(u){A(u)}finally{e!==null&&n.types!==null&&(e.types=n.types),f.T=e}};Q.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};Q.use=function(t){return f.H.use(t)};Q.useActionState=function(t,e,n){return f.H.useActionState(t,e,n)};Q.useCallback=function(t,e){return f.H.useCallback(t,e)};Q.useContext=function(t){return f.H.useContext(t)};Q.useDebugValue=function(){};Q.useDeferredValue=function(t,e){return f.H.useDeferredValue(t,e)};Q.useEffect=function(t,e){return f.H.useEffect(t,e)};Q.useEffectEvent=function(t){return f.H.useEffectEvent(t)};Q.useId=function(){return f.H.useId()};Q.useImperativeHandle=function(t,e,n){return f.H.useImperativeHandle(t,e,n)};Q.useInsertionEffect=function(t,e){return f.H.useInsertionEffect(t,e)};Q.useLayoutEffect=function(t,e){return f.H.useLayoutEffect(t,e)};Q.useMemo=function(t,e){return f.H.useMemo(t,e)};Q.useOptimistic=function(t,e){return f.H.useOptimistic(t,e)};Q.useReducer=function(t,e,n){return f.H.useReducer(t,e,n)};Q.useRef=function(t){return f.H.useRef(t)};Q.useState=function(t){return f.H.useState(t)};Q.useSyncExternalStore=function(t,e,n){return f.H.useSyncExternalStore(t,e,n)};Q.useTransition=function(){return f.H.useTransition()};Q.version="19.2.7"});
|
|
2
|
+
export{Lt as I2};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$o as L,BL as m,CL as h,GL as c,ap as D,bp as O,ep as _,fp as S,hL as R,lL as b,oL as w,uL as M,wL as P}from"./cli-0.7.4-1tkzz9x6.mjs";import{Qaa as x,Yaa as T,Zea as N,aca as B,cca as A,fca as C,ffa as j,pca as E}from"./cli-0.7.4-hvnzwb5v.mjs";import{Rga as U,Sga as v}from"./cli-0.7.4-r1ebyx3p.mjs";import{Iia as G,Lia as F}from"./cli-0.7.4-hegk157e.mjs";import{Pqa as y}from"./cli-0.7.4-58p1wenr.mjs";import{join as I}from"path";async function qq(){let q=C(),z=[],W=L();for(let[K,Q]of Object.entries(W))if(K.includes("@")&&Q)z.push(K);if(q.enabledPlugins)for(let[K,Q]of Object.entries(q.enabledPlugins)){if(!K.includes("@"))continue;let J=z.indexOf(K);if(Q){if(J===-1)z.push(K)}else if(J!==-1)z.splice(J,1)}return z}function zq(){let q=new Map,z=L();for(let[K,Q]of Object.entries(z)){if(!K.includes("@"))continue;if(Q===!0)q.set(K,"flag");else if(Q===!1)q.delete(K)}let W=[{scope:"managed",source:"policySettings"},{scope:"user",source:"userSettings"},{scope:"project",source:"projectSettings"},{scope:"local",source:"localSettings"},{scope:"flag",source:"flagSettings"}];for(let{scope:K,source:Q}of W){let J=B(Q);if(!J?.enabledPlugins)continue;for(let[V,Y]of Object.entries(J.enabledPlugins)){if(!V.includes("@"))continue;if(V in z&&z[V]!==Y)G(`Plugin ${V} from --add-dir (${z[V]}) overridden by ${Q} (${Y})`);if(Y===!0)q.set(V,K);else if(Y===!1)q.delete(V)}}return G(`Found ${q.size} enabled plugins with scopes: ${Array.from(q.entries()).map(([K,Q])=>`${K}(${Q})`).join(", ")}`),q}function Jq(q){return q!=="flag"}function Kq(q){return O[q]}async function p(){M().catch((W)=>{N(W)});let q=w(),z=Object.keys(q.plugins);return G(`Found ${z.length} installed plugins`),z}async function Qq(q){try{let z=await p(),W=q.filter((J)=>!z.includes(J));return(await Promise.all(W.map(async(J)=>{try{let V=await R(J);return{pluginId:J,found:V!==null&&V!==void 0}}catch(V){return G(`Failed to check plugin ${J} in marketplace: ${V}`),{pluginId:J,found:!1}}}))).filter(({found:J})=>J).map(({pluginId:J})=>J)}catch(z){return N(z),[]}}async function Vq(q,z,W="user"){let K=W!=="user"?U():void 0,Q=_(W),J=B(Q),V={...J?.enabledPlugins},Y=[],k=[];for(let H=0;H<q.length;H++){let X=q[H];if(!X)continue;if(z)z(X,H+1,q.length);try{let Z=await R(X);if(!Z){k.push({name:X,error:"Plugin not found in any marketplace"});continue}let{entry:$,marketplaceInstallLocation:f}=Z;if(!x($.source))await m(X,$,W,K);else h({pluginId:X,installPath:I(f,$.source),version:$.version},W,K);V[X]=!0,Y.push(X)}catch(Z){let $=Z instanceof Error?Z.message:String(Z);k.push({name:X,error:$}),N(Z)}}return A(Q,{...J,enabledPlugins:V}),{installed:Y,failed:k}}var a=y(()=>{v();F();j();E();D();P();b();S();c();T()});
|
|
2
|
+
export{qq as Wd,zq as Xd,Jq as Yd,Kq as Zd,p as _d,Qq as $d,Vq as ae,a as be};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import{BA as qq,CA as Xq,LJ as Pq,Mk as r,Ok as Wq,QP as $q,SJ as Zq,UJ as Uq,WP as yq,Wt as s,YI as b,ZI as R,Zy as e,_I as vq,_y as Nq,au as t,bJ as p,cJ as S,dJ as zq,eJ as Bq,fJ as I,gJ as k,gu as Hq,mJ as Jq,nJ as Qq,rJ as wq,uJ as Vq,vJ as Oq,xJ as Yq,xp as a,zp as Kq}from"./cli-0.7.4-1tkzz9x6.mjs";import{Zea as h,ffa as Fq}from"./cli-0.7.4-hvnzwb5v.mjs";import{Rga as n,Sga as Lq}from"./cli-0.7.4-r1ebyx3p.mjs";import{$ia as y,nja as jq}from"./cli-0.7.4-g9w5x5ns.mjs";import{Pqa as M}from"./cli-0.7.4-58p1wenr.mjs";function x(B,z){let J=g[z]??1,Z=B!==void 0?g[B]:void 0;if(Z===void 0)return z;return Z<=J?B:z}var g;var m=M(()=>{g={plan:0,default:1,acceptEdits:2,bypassPermissions:3}});function C(B,z){if(B.length<=z)return B;return`${B.slice(0,z)}
|
|
2
|
+
…[truncated ${B.length-z} chars]`}function u(B,z,J,Z){let Y=[];if(Y.push(`You are a worker agent in the "${B.name}" workflow, phase "${Z.name}".`),B.instructions.trim())Y.push(`Workflow instructions:
|
|
3
|
+
${B.instructions.trim()}`);if(Y.push(`Task:
|
|
4
|
+
${z}`),J.trim())Y.push(`Work so far (accumulated artifact from earlier phases):
|
|
5
|
+
${C(J.trim(),Gq)}`);return Y.push("Do your part of this phase and report your findings/output. Another agent (the orchestrator) will synthesize the phase and decide what happens next — you do not decide the flow."),Y.join(`
|
|
6
|
+
|
|
7
|
+
`)}function c(B,z){let J=[];if(J.push(`You are the orchestrator (main) of the "${z.name}" workflow. You control the flow.`),z.instructions.trim())J.push(`Workflow instructions:
|
|
8
|
+
${z.instructions.trim()}`);J.push(`Task:
|
|
9
|
+
${B.task}`);let Z=z.steps.findIndex((V)=>V.name===B.currentStep),Y=z.steps.map((V,Q)=>{let j=Q<Z?"[done]":Q===Z?"[current]":"[pending]",H=I(V)?" (terminal)":"";return` ${Q+1}. ${V.name} ${j}${H}`}).join(`
|
|
10
|
+
`);if(J.push(`Phases:
|
|
11
|
+
${Y}`),B.history.length>0){let V=B.history.map((Q)=>{let j=Q.agents.map((q)=>{let L=q.failed?" (FAILED)":"";return` • ${q.label}${L}:
|
|
12
|
+
${C(q.output,f).split(`
|
|
13
|
+
`).map((N)=>` ${N}`).join(`
|
|
14
|
+
`)}`}).join(`
|
|
15
|
+
`),H=Q.decision?` decision: ${Q.decision.decision}${Q.decision.target?` → ${Q.decision.target}`:""} — ${Q.decision.notes}`:" decision: (pending — this is the phase you are deciding now)";return` Phase "${Q.step}":
|
|
16
|
+
${j}
|
|
17
|
+
${Q.synthesis?` synthesis: ${C(Q.synthesis,f)}
|
|
18
|
+
`:""}${H}`}).join(`
|
|
19
|
+
|
|
20
|
+
`);J.push(`History (all phases so far):
|
|
21
|
+
${V}`)}let G=z.steps[Z]?.handbackTo??[];return J.push(G.length>0?`From the current phase you may hand back to: ${G.join(", ")}.`:"The current phase has no handback targets; you may only advance or refine."),J.push("Synthesize the current phase's worker outputs into an updated artifact (your final text), then call the StructuredOutput tool with your decision: advance (next phase), refine (re-run this phase), or handback (return to an allowed earlier phase). Include a short `notes` explaining why."),J.join(`
|
|
22
|
+
|
|
23
|
+
`)}var f=4000,Gq=6000;var l=M(()=>{k()});function d(B,z,J){let Z=J.steps,Y=Z.findIndex((j)=>j.name===B.currentStep),$={...B.refineCounts},G=B.transitions+1,V=B.currentStep,Q="running";if(z.decision==="advance"){let j=Z[Y+1];if(I(j)){if(Q="done",j)V=j.name}else V=j.name}else if(z.decision==="refine"){if($[V]=($[V]??0)+1,$[V]>S)Q="stalled"}else{let j=Z[Y]?.handbackTo??[];if(!z.target||!j.includes(z.target))Q="stalled";else if($[z.target]=($[z.target]??0)+1,$[z.target]>S)Q="stalled";else V=z.target}if(Q==="running"&&G>=p)Q="stalled";return{...B,currentStep:V,status:Q,refineCounts:$,transitions:G,updatedAt:Date.now()}}var i=M(()=>{k()});import Dq from"os";function Iq(){return Math.max(1,Math.min(8,Dq.cpus().length-1))}function hq(B){let z="",J=0;for(let Y=B.length-1;Y>=0;Y--){let $=B[Y];if($.type!=="assistant"||!$.message)continue;if(!z){let G=($.message.content??[]).filter((V)=>V.type==="text"&&V.text);if(G.length>0)z=G.map((V)=>V.text??"").join(`
|
|
24
|
+
`)}if(J===0&&$.message.usage)J=$q($.message.usage);if(z&&J)break}let Z=e(B);return{text:z,tokens:J,tools:Z}}async function o(B){let{label:z,agentDef:J,promptText:Z,toolUseContext:Y,canUseTool:$,extraTools:G,runId:V}=B,Q=Date.now(),j=Y.getAppState(),H=j.toolPermissionContext.mode,q={...j.toolPermissionContext,mode:x(J.permissionMode,H)},L=Zq(q,j.mcp.tools);if(G&&G.length>0)L=[...L,...G];let N=J.model??String(Y.options.mainLoopModel??""),F=[],X,P=!1;try{let K=qq({agentDefinition:J,promptMessages:[Yq({content:Z})],toolUseContext:Y,canUseTool:$,isAsync:!1,querySource:a(J.agentType,s(J)),availableTools:L,transcriptSubdir:`workflows/${V}`,description:`${z} (workflow)`,override:{abortController:B.abortController}});for await(let w of K)if(F.push(w),w.type==="attachment"&&w.attachment?.type==="structured_output")X=w.attachment.data}catch(K){if(y(K))throw K;h(K),P=!0}let{text:E,tokens:_,tools:v}=hq(F);return{run:{label:z,model:N,tokens:_,tools:v,ms:Date.now()-Q,output:P?"":E,failed:P},structuredOutput:X}}async function tq(B){let{def:z,task:J,toolUseContext:Z,canUseTool:Y,onProgress:$,signal:G}=B,{allAgents:V}=await t(n()),Q=new Map(V.map((N)=>[N.agentType,N]));Q.set(b,R);let j=Q.get(z.main??b)??R,H=new AbortController;if(G)if(G.aborted)H.abort();else G.addEventListener("abort",()=>H.abort(),{once:!0});let q=await Jq({workflow:z.name,description:z.description,task:J,firstStep:z.steps[0].name});$?.(q);let L=async()=>{await Qq(q),$?.(q)};while(q.status==="running"){if(G?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let N=z.steps.findIndex((W)=>W.name===q.currentStep),F=z.steps[N];if(I(F)){q={...q,status:"done",updatedAt:Date.now()},await L();break}q={...q,agentsInPhase:F.agents.length,agentsDone:0,updatedAt:Date.now()},await L();let X;try{X=(await Vq(F.agents,async(O)=>{let T={run:{label:`${F.name}:${O}`,model:"",tokens:0,tools:0,ms:0,output:"",failed:!0}},A;try{let D=Q.get(O);A=D?await o({label:`${F.name}:${O}`,agentDef:D,promptText:u(z,J,q.artifact,F),toolUseContext:Z,canUseTool:Y,runId:q.runId,abortController:H}):T}catch(D){if(y(D))throw D;h(D),A=T}return q={...q,agentsDone:(q.agentsDone??0)+1,updatedAt:Date.now()},await L(),A},{concurrency:Iq()})).map((O)=>O.run)}catch(W){if(y(W)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw W}let P={step:F.name,stepIndex:N,agents:X,synthesis:"",decision:null,at:Date.now()};if(q={...q,history:[...q.history,P],totalTokens:q.totalTokens+X.reduce((W,O)=>W+O.tokens,0),updatedAt:Date.now()},await L(),F.agents.length>0&&X.every((W)=>W.failed)){h(Error(`workflow phase "${F.name}": all ${X.length} worker(s) failed`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}if(G?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let E=r(Bq(F));if(!("tool"in E)){h(Error(`workflow decision schema build failed: ${E.error}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let _=[E.tool],v;try{v=await o({label:"main",agentDef:j,promptText:c(q,z),toolUseContext:Z,canUseTool:Y,extraTools:_,runId:q.runId,abortController:H})}catch(W){if(y(W)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw W}let K=zq.safeParse(v.structuredOutput),w=[...q.history];if(w[w.length-1]={...P,synthesis:v.run.output,decision:K.success?K.data:null,agents:[...X,v.run]},q={...q,history:w,artifact:v.run.output.trim()?v.run.output:q.artifact,totalTokens:q.totalTokens+v.run.tokens,updatedAt:Date.now()},!K.success){h(Error(`workflow main produced no valid decision: ${K.error?.message??"no decision"}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let U=d(q,K.data,z);q={...q,currentStep:U.currentStep,status:U.status,refineCounts:U.refineCounts,transitions:U.transitions,updatedAt:U.updatedAt},await L()}return q}var Eq=M(()=>{Oq();Uq();Hq();Nq();Xq();Wq();Lq();jq();Fq();Pq();Kq();yq();vq();m();l();wq();i();k()});
|
|
25
|
+
export{tq as ji,Eq as ki};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Cb as W,Db as z}from"./cli-0.7.4-zbdceewq.mjs";import{Ib as R}from"./cli-0.7.4-mq3qzben.mjs";import{GV as M,HV as w}from"./cli-0.7.4-dwjhqjan.mjs";import{Iia as L,Lia as j}from"./cli-0.7.4-hegk157e.mjs";import{gja as Z,nja as H}from"./cli-0.7.4-g9w5x5ns.mjs";j();H();w();function I(B){return{write:(G)=>B.write(G),writeBatch:(G)=>B.writeBatch(G),close:()=>B.close(),isConnectedStatus:()=>B.isConnectedStatus(),getStateLabel:()=>B.getStateLabel(),setOnData:(G)=>B.setOnData(G),setOnClose:(G)=>B.setOnClose(G),setOnConnect:(G)=>B.setOnConnect(G),connect:()=>void B.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return B.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function k(B){let{sessionUrl:G,ingressToken:_,sessionId:$,initialSequenceNum:E,getAuthToken:N}=B,P;if(N)P=()=>{let x=N();if(!x)return{};return{Authorization:`Bearer ${x}`}};else M(_);let Q=B.epoch??await R(G,_);L(`[bridge:repl] CCR v2: worker sessionId=${$} epoch=${Q}${B.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let V=new URL(G);V.pathname=V.pathname.replace(/\/$/,"")+"/worker/events/stream";let K=new z(V,{},$,void 0,E,P),X,J=new W(K,new URL(G),{getAuthHeaders:P,heartbeatIntervalMs:B.heartbeatIntervalMs,heartbeatJitterFraction:B.heartbeatJitterFraction,onEpochMismatch:()=>{L("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{J.close(),K.close(),X?.(4090)}catch(x){L(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${Z(x)}`,{level:"error"})}throw Error("epoch superseded")}});K.setOnEvent((x)=>{J.reportDelivery(x.event_id,"received"),J.reportDelivery(x.event_id,"processed")});let f,Y=!1,q=!1;return{write(x){return J.writeEvent(x)},async writeBatch(x){for(let O of x){if(q)break;await J.writeEvent(O)}},close(){q=!0,J.close(),K.close()},isConnectedStatus(){return Y},getStateLabel(){if(K.isClosedStatus())return"closed";if(K.isConnectedStatus())return Y?"connected":"init";return"connecting"},setOnData(x){K.setOnData(x)},setOnClose(x){X=x,K.setOnClose((O)=>{J.close(),x(O??4092)})},setOnConnect(x){f=x},getLastSequenceNum(){return K.getLastSequenceNum()},droppedBatchCount:0,reportState(x){J.reportState(x)},reportMetadata(x){J.reportMetadata(x)},reportDelivery(x,O){J.reportDelivery(x,O)},flush(){return J.flush()},connect(){if(!B.outboundOnly)K.connect();J.initialize(Q).then(()=>{Y=!0,L(`[bridge:repl] v2 transport ready for writes (epoch=${Q}, sse=${K.isConnectedStatus()?"open":"opening"})`),f?.()},(x)=>{L(`[bridge:repl] CCR v2 initialize failed: ${Z(x)}`,{level:"error"}),J.close(),K.close(),X?.(4091)})}}}class D{_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(...B){if(!this._active)return!1;return this._pending.push(...B),!0}drop(){this._active=!1;let B=this._pending.length;return this._pending.length=0,B}deactivate(){this._active=!1}}
|
|
2
|
+
export{I as xb,k as yb,D as zb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{cF as R,dF as E,eF as l,fF as i,gF as c,hF as w,iF as O,mF as y,nF as e}from"./cli-0.7.4-1tkzz9x6.mjs";import{jX as x,kX as s}from"./cli-0.7.4-wtz9ed9r.mjs";import{JZ as j,KZ as r,UZ as k,WZ as W,o0 as Q,z0 as K,zY as n}from"./cli-0.7.4-2apswqf5.mjs";import{E2 as A,F2 as V,G2 as D,H2 as v}from"./cli-0.7.4-hnfm0p8b.mjs";import{I2 as t}from"./cli-0.7.4-85txq06q.mjs";import{Lqa as q,Pqa as p}from"./cli-0.7.4-58p1wenr.mjs";function X1(J){let b=S.c(17),{query:$,placeholder:N,isFocused:Z,isTerminalFocused:H,prefix:g,width:P,cursorOffset:_,borderless:Y}=J,G=N===void 0?"Search…":N,h=g===void 0?"⌕":g,L=Y===void 0?!1:Y,B=_??$.length,m=L?void 0:"round",z=Z?"suggestion":void 0,d=!Z,F=L?0:1,T=!Z,X;if(b[0]!==Z||b[1]!==H||b[2]!==B||b[3]!==G||b[4]!==$)X=Z?V(A,{children:$?H?D(A,{children:[V(W,{children:$.slice(0,B)}),V(W,{inverse:!0,children:B<$.length?$[B]:" "}),B<$.length&&V(W,{children:$.slice(B+1)})]}):V(W,{children:$}):H?D(A,{children:[V(W,{inverse:!0,children:G.charAt(0)}),V(W,{dimColor:!0,children:G.slice(1)})]}):V(W,{dimColor:!0,children:G})}):$?V(W,{children:$}):V(W,{children:G}),b[0]=Z,b[1]=H,b[2]=B,b[3]=G,b[4]=$,b[5]=X;else X=b[5];let M;if(b[6]!==h||b[7]!==T||b[8]!==X)M=D(W,{dimColor:T,children:[h," ",X]}),b[6]=h,b[7]=T,b[8]=X,b[9]=M;else M=b[9];let I;if(b[10]!==M||b[11]!==m||b[12]!==z||b[13]!==d||b[14]!==F||b[15]!==P)I=V(k,{flexShrink:0,borderStyle:m,borderColor:z,borderDimColor:d,paddingX:F,width:P,children:M}),b[10]=M,b[11]=m,b[12]=z,b[13]=d,b[14]=F,b[15]=P,b[16]=I;else I=b[16];return I}var S;var u=p(()=>{K();v();S=q(n(),1)});function d1(J){if(J.ctrl&&(J.key==="k"||J.key==="u"||J.key==="w"))return!0;if(J.meta&&J.key==="backspace")return!0;return!1}function T1(J){return(J.ctrl||J.meta)&&J.key==="y"}function W1({isActive:J,onExit:b,onCancel:$,onExitUp:N,columns:Z,passthroughCtrlKeys:H=[],initialQuery:g="",backspaceExitsOnEmpty:P=!0}){let{columns:_}=x(),Y=Z??_,[G,h]=U.useState(g),[L,B]=U.useState(g.length),m=U.useCallback((d)=>{h(d),B(d.length)},[]),z=(d)=>{if(!J)return;let F=y.fromText(G,Y,L);if(d.ctrl&&H.includes(d.key.toLowerCase()))return;if(!d1(d))l();if(!T1(d))O();if(d.key==="return"||d.key==="down"){d.preventDefault(),b();return}if(d.key==="up"){if(d.preventDefault(),N)N();return}if(d.key==="escape"){if(d.preventDefault(),$)$();else if(G.length>0)h(""),B(0);else b();return}if(d.key==="backspace"){if(d.preventDefault(),d.meta){let{cursor:X,killed:M}=F.deleteWordBefore();R(M,"prepend"),h(X.text),B(X.offset);return}if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}if(d.key==="delete"){d.preventDefault();let T=F.del();h(T.text),B(T.offset);return}if(d.key==="left"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.prevWord();B(T.offset);return}if(d.key==="right"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.nextWord();B(T.offset);return}if(d.key==="left"){d.preventDefault();let T=F.left();B(T.offset);return}if(d.key==="right"){d.preventDefault();let T=F.right();B(T.offset);return}if(d.key==="home"){d.preventDefault(),B(0);return}if(d.key==="end"){d.preventDefault(),B(G.length);return}if(d.ctrl){switch(d.preventDefault(),d.key.toLowerCase()){case"a":B(0);return;case"e":B(G.length);return;case"b":B(F.left().offset);return;case"f":B(F.right().offset);return;case"d":{if(G.length===0){($??b)();return}let T=F.del();h(T.text),B(T.offset);return}case"h":{if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}case"k":{let{cursor:T,killed:X}=F.deleteToLineEnd();R(X,"append"),h(T.text),B(T.offset);return}case"u":{let{cursor:T,killed:X}=F.deleteToLineStart();R(X,"prepend"),h(T.text),B(T.offset);return}case"w":{let{cursor:T,killed:X}=F.deleteWordBefore();R(X,"prepend"),h(T.text),B(T.offset);return}case"y":{let T=E();if(T.length>0){let X=F.offset,M=F.insert(T);i(X,T.length),h(M.text),B(M.offset)}return}case"g":case"c":if($){$();return}}return}if(d.meta){switch(d.preventDefault(),d.key.toLowerCase()){case"b":B(F.prevWord().offset);return;case"f":B(F.nextWord().offset);return;case"d":{let T=F.deleteWordAfter();h(T.text),B(T.offset);return}case"y":{let T=c();if(T){let{text:X,start:M,length:I}=T,f=G.slice(0,M),a=G.slice(M+I),C=f+X+a,o=M+X.length;w(X.length),h(C),B(o)}return}}return}if(d.key==="tab")return;if(d.key.length>=1&&!b1.has(d.key)){d.preventDefault();let T=F.insert(d.key);h(T.text),B(T.offset)}};return Q((d,F,T)=>{z(new j(T.keypress))},{isActive:J}),{query:G,setQuery:m,cursorOffset:L,handleKeyDown:z}}var U,b1;var B1=p(()=>{r();K();e();s();U=q(t(),1);b1=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});
|
|
2
|
+
export{X1 as wh,u as xh,W1 as yh,B1 as zh};
|