@claudiolabs/claudin 1.1.2 → 1.1.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/README.md +28 -24
- package/dist/chunks/AgentTool-1.1.4-3bagecge.mjs +1 -0
- package/dist/chunks/App-1.1.4-4g3dh0nx.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.4-jxeaz5zn.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.4-9w92vdx4.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.4-x17tymwk.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.4-7fg80a35.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.4-094y677a.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.4-y4jsq70q.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.4-wwr5yxnw.mjs +7 -0
- package/dist/chunks/Doctor-1.1.4-6z4qt6jr.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.4-e5w2phrt.mjs +6 -0
- package/dist/chunks/Grove-1.1.4-yj7xbcnq.mjs +1 -0
- package/dist/chunks/ITermBackend-1.1.4-rgme07qr.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.4-nyd8ja4h.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.4-899r2pfm.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.4-749tfrvg.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.4-f019rkkj.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.4-9239x3zp.mjs +1 -0
- package/dist/chunks/REPL-1.1.4-9nb68maq.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.4-7sr86ks3.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.4-av1tzhr1.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.4-s1g49h7t.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.4-xq8vmgey.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.4-nh55ntyd.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.4-5gtjmz82.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.4-wk88hvrf.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.4-zvk6f63e.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.4-3st8cbec.mjs +1 -0
- package/dist/chunks/add-dir-1.1.4-09gsa25v.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.4-ee7w7dt5.mjs +1 -0
- package/dist/chunks/agents-1.1.4-8k4mrjt7.mjs +110 -0
- package/dist/chunks/agents-1.1.4-w929h9g2.mjs +3 -0
- package/dist/chunks/api-1.1.4-p7hbrnd7.mjs +1 -0
- package/dist/chunks/asciicast-1.1.4-7e877hqq.mjs +1 -0
- package/dist/chunks/assistant-1.1.4-jq08j7n1.mjs +1 -0
- package/dist/chunks/auth-1.1.4-d8jp870f.mjs +1 -0
- package/dist/chunks/auth-1.1.4-pjxgyew6.mjs +1 -0
- package/dist/chunks/autoMode-1.1.4-ar2t9451.mjs +48 -0
- package/dist/chunks/autoUpdater-1.1.4-6ywqc8jc.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.4-ymj2akh8.mjs +1 -0
- package/dist/chunks/branch-1.1.4-m28a3gah.mjs +4 -0
- package/dist/chunks/bridge-1.1.4-n515vy2d.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.4-p3jq4sh0.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.4-0mda1at6.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.4-pya2apxm.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.4-qw0te2bm.mjs +1 -0
- package/dist/chunks/btw-1.1.4-fyx7t7q6.mjs +1 -0
- package/dist/chunks/buddy-1.1.4-hg600pq6.mjs +3 -0
- package/dist/chunks/cacache-1.1.4-ezqx7zp6.mjs +1 -0
- package/dist/chunks/cache-probe-1.1.4-zq67w2hp.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.4-w4g7f1sd.mjs +4 -0
- package/dist/chunks/caches-1.1.4-smgwny8k.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.4-09az178f.mjs +1 -0
- package/dist/chunks/claudemd-1.1.4-zkyggtev.mjs +1 -0
- package/dist/chunks/clear-1.1.4-jpcr7zvx.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.4-ncdjyhkh.mjs +1 -0
- package/dist/chunks/cli-1.1.4-081g3k6v.mjs +2 -0
- package/dist/chunks/cli-1.1.4-08dh9fvb.mjs +2 -0
- package/dist/chunks/cli-1.1.4-0a20jx5n.mjs +18 -0
- package/dist/chunks/cli-1.1.4-0earmzgk.mjs +12 -0
- package/dist/chunks/cli-1.1.4-0efkjzrt.mjs +18 -0
- package/dist/chunks/cli-1.1.4-0k0btfq4.mjs +2 -0
- package/dist/chunks/cli-1.1.4-0nxqjpe0.mjs +133 -0
- package/dist/chunks/cli-1.1.4-0r232fpm.mjs +2 -0
- package/dist/chunks/cli-1.1.4-0smy947g.mjs +2 -0
- package/dist/chunks/cli-1.1.4-0wp3qgzs.mjs +2 -0
- package/dist/chunks/cli-1.1.4-114zcxgj.mjs +2 -0
- package/dist/chunks/cli-1.1.4-17x2wrkx.mjs +2 -0
- package/dist/chunks/cli-1.1.4-181vbtfh.mjs +2 -0
- package/dist/chunks/cli-1.1.4-1bd9da9p.mjs +4 -0
- package/dist/chunks/cli-1.1.4-1f9d29qw.mjs +2 -0
- package/dist/chunks/cli-1.1.4-1gz31tm3.mjs +2 -0
- package/dist/chunks/cli-1.1.4-1kfdt9jy.mjs +2 -0
- package/dist/chunks/cli-1.1.4-2sdcr2b4.mjs +2 -0
- package/dist/chunks/cli-1.1.4-31av4ynk.mjs +2 -0
- package/dist/chunks/cli-1.1.4-3556r6d1.mjs +2 -0
- package/dist/chunks/cli-1.1.4-3d01w53d.mjs +2 -0
- package/dist/chunks/cli-1.1.4-3yy14yyg.mjs +2 -0
- package/dist/chunks/cli-1.1.4-3zzdhas7.mjs +2 -0
- package/dist/chunks/cli-1.1.4-40z19hth.mjs +2 -0
- package/dist/chunks/cli-1.1.4-4cg8jz3d.mjs +2 -0
- package/dist/chunks/cli-1.1.4-4esthaz8.mjs +21 -0
- package/dist/chunks/cli-1.1.4-4qsk7zj5.mjs +2 -0
- package/dist/chunks/cli-1.1.4-4tywpfrb.mjs +3 -0
- package/dist/chunks/cli-1.1.4-4yte7brd.mjs +25 -0
- package/dist/chunks/cli-1.1.4-50ktv3m1.mjs +2 -0
- package/dist/chunks/cli-1.1.4-53fvpymg.mjs +6 -0
- package/dist/chunks/cli-1.1.4-56nffz3p.mjs +17 -0
- package/dist/chunks/cli-1.1.4-5dc9c513.mjs +3 -0
- package/dist/chunks/cli-1.1.4-5ebh6981.mjs +2 -0
- package/dist/chunks/cli-1.1.4-5g0b74dj.mjs +2 -0
- package/dist/chunks/cli-1.1.4-5hz878ns.mjs +2 -0
- package/dist/chunks/cli-1.1.4-64y9aspn.mjs +2 -0
- package/dist/chunks/cli-1.1.4-6c3fshef.mjs +202 -0
- package/dist/chunks/cli-1.1.4-6c5tryej.mjs +2 -0
- package/dist/chunks/cli-1.1.4-6eacj91j.mjs +2 -0
- package/dist/chunks/cli-1.1.4-6f472s2j.mjs +2 -0
- package/dist/chunks/cli-1.1.4-6h6yt6jp.mjs +2 -0
- package/dist/chunks/cli-1.1.4-6raycx0k.mjs +2 -0
- package/dist/chunks/cli-1.1.4-6rkzmmby.mjs +2 -0
- package/dist/chunks/cli-1.1.4-6z69geef.mjs +5649 -0
- package/dist/chunks/cli-1.1.4-788c63fn.mjs +7 -0
- package/dist/chunks/cli-1.1.4-79y1pxkd.mjs +4 -0
- package/dist/chunks/cli-1.1.4-83vy9tsv.mjs +2 -0
- package/dist/chunks/cli-1.1.4-8hmaxd0s.mjs +2 -0
- package/dist/chunks/cli-1.1.4-8hr73xp2.mjs +2 -0
- package/dist/chunks/cli-1.1.4-8kx358k9.mjs +2 -0
- package/dist/chunks/cli-1.1.4-8rzb4wqq.mjs +4 -0
- package/dist/chunks/cli-1.1.4-99ept1n4.mjs +2 -0
- package/dist/chunks/cli-1.1.4-9cw2608s.mjs +2 -0
- package/dist/chunks/cli-1.1.4-9ms3b4tc.mjs +2 -0
- package/dist/chunks/cli-1.1.4-9tej4g5v.mjs +2 -0
- package/dist/chunks/cli-1.1.4-9x9a885k.mjs +17 -0
- package/dist/chunks/cli-1.1.4-a4fsxp91.mjs +2 -0
- package/dist/chunks/cli-1.1.4-aj4f4c5s.mjs +24 -0
- package/dist/chunks/cli-1.1.4-axp071a4.mjs +2 -0
- package/dist/chunks/cli-1.1.4-bhazhxsz.mjs +1 -0
- package/dist/chunks/cli-1.1.4-bnk38sjx.mjs +2 -0
- package/dist/chunks/cli-1.1.4-bx7r8yn5.mjs +2 -0
- package/dist/chunks/cli-1.1.4-bxd06hws.mjs +2 -0
- package/dist/chunks/cli-1.1.4-bxtvw0wr.mjs +2 -0
- package/dist/chunks/cli-1.1.4-c7a7aezt.mjs +2 -0
- package/dist/chunks/cli-1.1.4-cjw4z35m.mjs +2 -0
- package/dist/chunks/cli-1.1.4-ck3xhtdn.mjs +2 -0
- package/dist/chunks/cli-1.1.4-ckmk4b1r.mjs +2 -0
- package/dist/chunks/cli-1.1.4-cknrfh5p.mjs +6 -0
- package/dist/chunks/cli-1.1.4-cp707f4g.mjs +2 -0
- package/dist/chunks/cli-1.1.4-cst0a515.mjs +3 -0
- package/dist/chunks/cli-1.1.4-cwnt4by7.mjs +2 -0
- package/dist/chunks/cli-1.1.4-cyy7hkcy.mjs +2 -0
- package/dist/chunks/cli-1.1.4-d5vhgtz3.mjs +2 -0
- package/dist/chunks/cli-1.1.4-d8mes9hb.mjs +2 -0
- package/dist/chunks/cli-1.1.4-da50kprz.mjs +2 -0
- package/dist/chunks/cli-1.1.4-dapq2czd.mjs +3 -0
- package/dist/chunks/cli-1.1.4-dnypqpw6.mjs +3 -0
- package/dist/chunks/cli-1.1.4-dwez6b01.mjs +2 -0
- package/dist/chunks/cli-1.1.4-e73hv9nk.mjs +4 -0
- package/dist/chunks/cli-1.1.4-edegax48.mjs +2 -0
- package/dist/chunks/cli-1.1.4-ekbns70t.mjs +2 -0
- package/dist/chunks/cli-1.1.4-esw78wsd.mjs +2 -0
- package/dist/chunks/cli-1.1.4-etajychz.mjs +2 -0
- package/dist/chunks/cli-1.1.4-evye603x.mjs +5 -0
- package/dist/chunks/cli-1.1.4-ewczzrrj.mjs +24 -0
- package/dist/chunks/cli-1.1.4-f0ysrk67.mjs +2 -0
- package/dist/chunks/cli-1.1.4-f7y4b0px.mjs +2 -0
- package/dist/chunks/cli-1.1.4-fa18654s.mjs +2 -0
- package/dist/chunks/cli-1.1.4-fap2565a.mjs +15 -0
- package/dist/chunks/cli-1.1.4-fejb0548.mjs +2 -0
- package/dist/chunks/cli-1.1.4-ffgmpsez.mjs +133 -0
- package/dist/chunks/cli-1.1.4-fk420f57.mjs +16 -0
- package/dist/chunks/cli-1.1.4-g21fhx9n.mjs +9 -0
- package/dist/chunks/cli-1.1.4-g6nryz17.mjs +2 -0
- package/dist/chunks/cli-1.1.4-g8kh8f9a.mjs +2 -0
- package/dist/chunks/cli-1.1.4-gag1dbkn.mjs +2 -0
- package/dist/chunks/cli-1.1.4-gc3kgy7y.mjs +2 -0
- package/dist/chunks/cli-1.1.4-gey397p1.mjs +2 -0
- package/dist/chunks/cli-1.1.4-gfbktjpn.mjs +2 -0
- package/dist/chunks/cli-1.1.4-ghf3bx8w.mjs +20 -0
- package/dist/chunks/cli-1.1.4-gpskbg68.mjs +2 -0
- package/dist/chunks/cli-1.1.4-h2a0peqc.mjs +18 -0
- package/dist/chunks/cli-1.1.4-h3nq6gg2.mjs +12 -0
- package/dist/chunks/cli-1.1.4-h4pjzspp.mjs +58 -0
- package/dist/chunks/cli-1.1.4-ha2bfn8a.mjs +2 -0
- package/dist/chunks/cli-1.1.4-hbx9ye2g.mjs +2 -0
- package/dist/chunks/cli-1.1.4-hcp2cxz5.mjs +25 -0
- package/dist/chunks/cli-1.1.4-hdwdbbzk.mjs +2 -0
- package/dist/chunks/cli-1.1.4-hmg1r8h3.mjs +12 -0
- package/dist/chunks/cli-1.1.4-hzx821eq.mjs +4 -0
- package/dist/chunks/cli-1.1.4-j2khf9zj.mjs +2 -0
- package/dist/chunks/cli-1.1.4-ja9ebt3p.mjs +2 -0
- package/dist/chunks/cli-1.1.4-jbsj8fj7.mjs +2 -0
- package/dist/chunks/cli-1.1.4-je9x0pvr.mjs +2 -0
- package/dist/chunks/cli-1.1.4-jeyegjk6.mjs +2 -0
- package/dist/chunks/cli-1.1.4-jf48e5ft.mjs +24 -0
- package/dist/chunks/cli-1.1.4-jn9kbkbv.mjs +2 -0
- package/dist/chunks/cli-1.1.4-jscqx4px.mjs +2 -0
- package/dist/chunks/cli-1.1.4-k65j1mxk.mjs +9 -0
- package/dist/chunks/cli-1.1.4-k6ebhyp0.mjs +2 -0
- package/dist/chunks/cli-1.1.4-kcm529kx.mjs +2 -0
- package/dist/chunks/cli-1.1.4-m11fz0v8.mjs +2 -0
- package/dist/chunks/cli-1.1.4-m312ygm6.mjs +2 -0
- package/dist/chunks/cli-1.1.4-m3gsmnfa.mjs +2 -0
- package/dist/chunks/cli-1.1.4-m3hgkj60.mjs +2 -0
- package/dist/chunks/cli-1.1.4-memqhcjv.mjs +2 -0
- package/dist/chunks/cli-1.1.4-mjhchkyc.mjs +50 -0
- package/dist/chunks/cli-1.1.4-mjtadp4r.mjs +2 -0
- package/dist/chunks/cli-1.1.4-mkk6fe3z.mjs +2 -0
- package/dist/chunks/cli-1.1.4-mvy2zgjw.mjs +3 -0
- package/dist/chunks/cli-1.1.4-my1g33fn.mjs +3 -0
- package/dist/chunks/cli-1.1.4-mzzr964a.mjs +67 -0
- package/dist/chunks/cli-1.1.4-n1e8vyg8.mjs +2 -0
- package/dist/chunks/cli-1.1.4-ncmgrms7.mjs +2 -0
- package/dist/chunks/cli-1.1.4-nh3sscxn.mjs +59 -0
- package/dist/chunks/cli-1.1.4-nkf9c3yn.mjs +5 -0
- package/dist/chunks/cli-1.1.4-nmjtqjhh.mjs +2 -0
- package/dist/chunks/cli-1.1.4-p2223zcm.mjs +2 -0
- package/dist/chunks/cli-1.1.4-p7tcq8ah.mjs +6 -0
- package/dist/chunks/cli-1.1.4-p7xh8tgn.mjs +2 -0
- package/dist/chunks/cli-1.1.4-p81w8zaj.mjs +8 -0
- package/dist/chunks/cli-1.1.4-phjb22vy.mjs +2 -0
- package/dist/chunks/cli-1.1.4-phv78vpk.mjs +2 -0
- package/dist/chunks/cli-1.1.4-pq6xvrw7.mjs +15 -0
- package/dist/chunks/cli-1.1.4-q0acv376.mjs +3 -0
- package/dist/chunks/cli-1.1.4-q6cngbfg.mjs +2 -0
- package/dist/chunks/cli-1.1.4-qe35eyha.mjs +6 -0
- package/dist/chunks/cli-1.1.4-qecgken2.mjs +2 -0
- package/dist/chunks/cli-1.1.4-qf46ypfr.mjs +2 -0
- package/dist/chunks/cli-1.1.4-qjgn7a4a.mjs +2 -0
- package/dist/chunks/cli-1.1.4-rc28sjtd.mjs +4 -0
- package/dist/chunks/cli-1.1.4-rh4x4rv5.mjs +2 -0
- package/dist/chunks/cli-1.1.4-rhexcyth.mjs +2 -0
- package/dist/chunks/cli-1.1.4-rmpkkwfr.mjs +42 -0
- package/dist/chunks/cli-1.1.4-rqwqskb2.mjs +2 -0
- package/dist/chunks/cli-1.1.4-rv3se129.mjs +2 -0
- package/dist/chunks/cli-1.1.4-rwz7t3ph.mjs +2 -0
- package/dist/chunks/cli-1.1.4-s26ny46b.mjs +4 -0
- package/dist/chunks/cli-1.1.4-scm26s6m.mjs +34 -0
- package/dist/chunks/cli-1.1.4-shrznr3s.mjs +2 -0
- package/dist/chunks/cli-1.1.4-sm3xmtbn.mjs +6 -0
- package/dist/chunks/cli-1.1.4-smjkhzzj.mjs +4 -0
- package/dist/chunks/cli-1.1.4-ss2jxen1.mjs +2 -0
- package/dist/chunks/cli-1.1.4-te2372tc.mjs +2 -0
- package/dist/chunks/cli-1.1.4-tmrxfcjm.mjs +2 -0
- package/dist/chunks/cli-1.1.4-tsspgj1c.mjs +2 -0
- package/dist/chunks/cli-1.1.4-v67jx2fw.mjs +2 -0
- package/dist/chunks/cli-1.1.4-v85q5z49.mjs +3 -0
- package/dist/chunks/cli-1.1.4-vajq2dgc.mjs +4 -0
- package/dist/chunks/cli-1.1.4-vcg96p1c.mjs +2 -0
- package/dist/chunks/cli-1.1.4-vdd43cyp.mjs +2 -0
- package/dist/chunks/cli-1.1.4-vgk1xqxb.mjs +2 -0
- package/dist/chunks/cli-1.1.4-vjfpgnyr.mjs +2 -0
- package/dist/chunks/cli-1.1.4-vk7mw9e1.mjs +39 -0
- package/dist/chunks/cli-1.1.4-vpkm2gfp.mjs +4 -0
- package/dist/chunks/cli-1.1.4-vq2bkg07.mjs +2 -0
- package/dist/chunks/cli-1.1.4-vye1xark.mjs +2 -0
- package/dist/chunks/cli-1.1.4-w06xm7pk.mjs +2 -0
- package/dist/chunks/cli-1.1.4-w11nd4na.mjs +2 -0
- package/dist/chunks/cli-1.1.4-w4b4vhj9.mjs +2 -0
- package/dist/chunks/cli-1.1.4-wqxnhcfg.mjs +2 -0
- package/dist/chunks/cli-1.1.4-ws4wcqma.mjs +2 -0
- package/dist/chunks/cli-1.1.4-wt23b5bp.mjs +2 -0
- package/dist/chunks/cli-1.1.4-wtcyy8sp.mjs +4 -0
- package/dist/chunks/cli-1.1.4-wx5t4xvj.mjs +3 -0
- package/dist/chunks/cli-1.1.4-x6hb06sj.mjs +2 -0
- package/dist/chunks/cli-1.1.4-x8m7spde.mjs +2 -0
- package/dist/chunks/cli-1.1.4-x90d3r95.mjs +2 -0
- package/dist/chunks/cli-1.1.4-xdqj8a4v.mjs +45 -0
- package/dist/chunks/cli-1.1.4-xxe2ztwq.mjs +2 -0
- package/dist/chunks/cli-1.1.4-y94ewbpk.mjs +2 -0
- package/dist/chunks/cli-1.1.4-ymrjsf78.mjs +2 -0
- package/dist/chunks/cli-1.1.4-yncbc1sd.mjs +2 -0
- package/dist/chunks/cli-1.1.4-yprszvr2.mjs +2 -0
- package/dist/chunks/cli-1.1.4-yz3t1wmd.mjs +2 -0
- package/dist/chunks/cli-1.1.4-z6qrcsfa.mjs +2 -0
- package/dist/chunks/cli-1.1.4-z8f8hc8t.mjs +12 -0
- package/dist/chunks/cli-1.1.4-z9z0gn83.mjs +15 -0
- package/dist/chunks/cli-1.1.4-zavkgdrm.mjs +2 -0
- package/dist/chunks/cli-1.1.4-zc29khqe.mjs +3 -0
- package/dist/chunks/cli-1.1.4-zp0vvhas.mjs +3 -0
- package/dist/chunks/client-1.1.4-pb5ebapt.mjs +1 -0
- package/dist/chunks/color-1.1.4-f1seyygj.mjs +1 -0
- package/dist/chunks/compact-1.1.4-2a7cwaxp.mjs +3 -0
- package/dist/chunks/config-1.1.4-j2wjnxkk.mjs +1 -0
- package/dist/chunks/config-1.1.4-jb46a3qp.mjs +1 -0
- package/dist/chunks/constants-1.1.4-cspjb06k.mjs +1 -0
- package/dist/chunks/context-1.1.4-dmyt4w9f.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.4-ckp0m156.mjs +1 -0
- package/dist/chunks/conversation-1.1.4-2grxgxr1.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.4-chappesc.mjs +1 -0
- package/dist/chunks/copy-1.1.4-7hw0khh4.mjs +9 -0
- package/dist/chunks/cost-1.1.4-kqvvdsab.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.4-ezqvt66q.mjs +1 -0
- package/dist/chunks/createSession-1.1.4-739bg1q2.mjs +1 -0
- package/dist/chunks/debug-1.1.4-4v8k6t8p.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.4-07fhy4qs.mjs +1446 -0
- package/dist/chunks/desktop-1.1.4-z8nhvfc9.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.4-qs08vv7k.mjs +1 -0
- package/dist/chunks/detection-1.1.4-knvchyz7.mjs +1 -0
- package/dist/chunks/diff-1.1.4-9k603anv.mjs +1 -0
- package/dist/chunks/doctor-1.1.4-76x4k1e3.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.4-dw4gjch2.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.4-wmn2wrxh.mjs +1 -0
- package/dist/chunks/effort-1.1.4-2bfyta5f.mjs +13 -0
- package/dist/chunks/engine-1.1.4-ds4tzxqb.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.4-k2f2p556.mjs +1 -0
- package/dist/chunks/envUtils-1.1.4-h0e2k0kk.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.4-zgvjnc3b.mjs +1 -0
- package/dist/chunks/environments-1.1.4-vvw6w76p.mjs +1 -0
- package/dist/chunks/errors-1.1.4-k81rbfst.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.4-7d1r2j0f.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.4-txkdgph9.mjs +1 -0
- package/dist/chunks/exit-1.1.4-nmtqhsmh.mjs +1 -0
- package/dist/chunks/explorer-1.1.4-z2tjcn1k.mjs +1 -0
- package/dist/chunks/export-1.1.4-sqtrqjrr.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.4-9vjje6h3.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.4-x9nwrrw4.mjs +1 -0
- package/dist/chunks/fast-1.1.4-2jebnd2f.mjs +1 -0
- package/dist/chunks/feedback-1.1.4-axgmd5k0.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.4-ftjf0rjy.mjs +1 -0
- package/dist/chunks/git-1.1.4-ress16mq.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.4-dvpz9d06.mjs +1 -0
- package/dist/chunks/goal-1.1.4-d5hgcz3t.mjs +4 -0
- package/dist/chunks/grove-1.1.4-ag51yh4b.mjs +1 -0
- package/dist/chunks/growthbook-1.1.4-2khgq1sm.mjs +1 -0
- package/dist/chunks/headless-1.1.4-833q6qkz.mjs +2 -0
- package/dist/chunks/heapdump-1.1.4-d7hqys06.mjs +6 -0
- package/dist/chunks/help-1.1.4-35bcy608.mjs +1 -0
- package/dist/chunks/hookChains-1.1.4-fcp2d666.mjs +3 -0
- package/dist/chunks/hooks-1.1.4-h1zy1fdm.mjs +1 -0
- package/dist/chunks/hooks-1.1.4-mwnf6vn4.mjs +79 -0
- package/dist/chunks/ide-1.1.4-5bagw4sy.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.4-rfdtmnfq.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.4-kj5ne7t9.mjs +1 -0
- package/dist/chunks/index-1.1.4-0mcg1bj0.mjs +1 -0
- package/dist/chunks/index-1.1.4-0tamkcjt.mjs +1 -0
- package/dist/chunks/index-1.1.4-2czk0cj2.mjs +2 -0
- package/dist/chunks/index-1.1.4-4pzf6k4d.mjs +1 -0
- package/dist/chunks/index-1.1.4-5ff5qxrs.mjs +1 -0
- package/dist/chunks/index-1.1.4-6gmnecfx.mjs +1 -0
- package/dist/chunks/index-1.1.4-6xgr5zyz.mjs +1 -0
- package/dist/chunks/index-1.1.4-9yayje25.mjs +1 -0
- package/dist/chunks/index-1.1.4-ekp3k254.mjs +1 -0
- package/dist/chunks/index-1.1.4-g4bsry7f.mjs +1 -0
- package/dist/chunks/index-1.1.4-gfbrd9p0.mjs +1 -0
- package/dist/chunks/index-1.1.4-jk66219f.mjs +30 -0
- package/dist/chunks/index-1.1.4-m5859ars.mjs +5 -0
- package/dist/chunks/index-1.1.4-m5kxdznq.mjs +1 -0
- package/dist/chunks/index-1.1.4-mr07jhdc.mjs +1 -0
- package/dist/chunks/index-1.1.4-mw4k6wk5.mjs +17 -0
- package/dist/chunks/index-1.1.4-nx0c7851.mjs +9 -0
- package/dist/chunks/index-1.1.4-p4az8jd4.mjs +9 -0
- package/dist/chunks/index-1.1.4-s48qa1fv.mjs +1 -0
- package/dist/chunks/index-1.1.4-svjv72c1.mjs +1 -0
- package/dist/chunks/index-1.1.4-tjmw2wk0.mjs +1 -0
- package/dist/chunks/index-1.1.4-v1z11db7.mjs +1 -0
- package/dist/chunks/index-1.1.4-wkgybs2k.mjs +2 -0
- package/dist/chunks/init-1.1.4-gggf2npg.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.4-0sk4h8a1.mjs +1 -0
- package/dist/chunks/ink-1.1.4-vw46vbtt.mjs +1 -0
- package/dist/chunks/insights-1.1.4-vjtfwa5p.mjs +870 -0
- package/dist/chunks/install-1.1.4-2ckjxcbg.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.4-e0tfdyjj.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.4-j30f897r.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.4-3dd1n7rj.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.4-mz31r39t.mjs +1 -0
- package/dist/chunks/keybindings-1.1.4-3rx2vnv0.mjs +2 -0
- package/dist/chunks/knowledge-1.1.4-c30znbjx.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.4-ftdcy7g4.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.4-mqdb78s1.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.4-72qxyq0t.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.4-b0wchh9x.mjs +1 -0
- package/dist/chunks/log-1.1.4-2xexxfy0.mjs +1 -0
- package/dist/chunks/main-1.1.4-wapb45da.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.4-qyy8p7f2.mjs +1 -0
- package/dist/chunks/mcp-1.1.4-h54pt8v1.mjs +1 -0
- package/dist/chunks/mcp-1.1.4-rc4pdtng.mjs +4 -0
- package/dist/chunks/mcp-1.1.4-yfnk4mfe.mjs +17 -0
- package/dist/chunks/mcpb-1.1.4-cw5mvq0x.mjs +1 -0
- package/dist/chunks/memory-1.1.4-eqm9fevt.mjs +72 -0
- package/dist/chunks/model-1.1.4-v0jfcnn8.mjs +2 -0
- package/dist/chunks/model-1.1.4-x8a7yhj1.mjs +1 -0
- package/dist/chunks/node-1.1.4-zfc18psp.mjs +12 -0
- package/dist/chunks/oauth-1.1.4-8spjkywn.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.4-k4q3wjsg.mjs +14 -0
- package/dist/chunks/output-style-1.1.4-36tkstrg.mjs +1 -0
- package/dist/chunks/package-2VNCXFNY-1.1.4-b7m4p873.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.4-g49z58pt.mjs +1 -0
- package/dist/chunks/parser-1.1.4-f8fmbx75.mjs +1 -0
- package/dist/chunks/passes-1.1.4-fps8mejy.mjs +1 -0
- package/dist/chunks/permissions-1.1.4-38svh1zd.mjs +3 -0
- package/dist/chunks/permissions-1.1.4-4g141c3c.mjs +1 -0
- package/dist/chunks/plan-1.1.4-66evqh4y.mjs +1 -0
- package/dist/chunks/plist-1.1.4-fx2qbcnp.mjs +1 -0
- package/dist/chunks/plugin-1.1.4-jjtcjgyk.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.4-fhbmfyn5.mjs +1 -0
- package/dist/chunks/plugins-1.1.4-thxg4cdf.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.4-042npmm1.mjs +2 -0
- package/dist/chunks/print-1.1.4-fxrwvp78.mjs +57 -0
- package/dist/chunks/privacy-settings-1.1.4-mmhqzkda.mjs +1 -0
- package/dist/chunks/process-1.1.4-pjq03ry2.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.4-1f4rqd6y.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.4-rpcrfdgr.mjs +9 -0
- package/dist/chunks/prompt-1.1.4-29b0dwtk.mjs +1 -0
- package/dist/chunks/prompt-1.1.4-r7wxvh91.mjs +1 -0
- package/dist/chunks/prompts-1.1.4-26y972y6.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.4-7zfqar8j.mjs +13 -0
- package/dist/chunks/provider-1.1.4-g97havfk.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.4-v8yppf0j.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.4-sr2vhead.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.4-bndvfd35.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.4-abyv44kq.mjs +34 -0
- package/dist/chunks/registry-1.1.4-2dkk6scg.mjs +1 -0
- package/dist/chunks/release-notes-1.1.4-0aqxbex3.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.4-gat28fq4.mjs +2 -0
- package/dist/chunks/remote-env-1.1.4-sn5rdvx2.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.4-pd63jnee.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.4-0wk0yffw.mjs +1 -0
- package/dist/chunks/rename-1.1.4-r9a1zc1y.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.4-rb9fzpda.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.4-cvcyz94s.mjs +1 -0
- package/dist/chunks/resume-1.1.4-3qy136p1.mjs +2 -0
- package/dist/chunks/rewind-1.1.4-c9gdxp13.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.4-6zd74fce.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.4-mvj2fn0p.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.4-j6cfgrhj.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.4-4a59zac7.mjs +1 -0
- package/dist/chunks/session-1.1.4-5504ewv9.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.4-0jmcbvvb.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.4-bkw8bzvd.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.4-jrxy5nwv.mjs +1 -0
- package/dist/chunks/settings-1.1.4-x2nhddwq.mjs +1 -0
- package/dist/chunks/setup-1.1.4-kaet4ypb.mjs +5 -0
- package/dist/chunks/sinks-1.1.4-9g0pah73.mjs +1 -0
- package/dist/chunks/skills-1.1.4-0p66nwxp.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.4-8jnqyvyn.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.4-98n3b718.mjs +1 -0
- package/dist/chunks/state-1.1.4-rm5651xg.mjs +1 -0
- package/dist/chunks/stats-1.1.4-e1vedz6r.mjs +6 -0
- package/dist/chunks/status-1.1.4-v47t86mv.mjs +1 -0
- package/dist/chunks/stickers-1.1.4-5d457j1w.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.4-svxhss0m.mjs +1 -0
- package/dist/chunks/tasks-1.1.4-cvza9kpf.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.4-v21fjxgf.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.4-8075wryx.mjs +1 -0
- package/dist/chunks/teleport-1.1.4-6rxc18rz.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.4-sd7720mx.mjs +1 -0
- package/dist/chunks/theme-1.1.4-6pphnv8h.mjs +1 -0
- package/dist/chunks/thinkback-1.1.4-wd6fcgyw.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.4-ydvvq4y6.mjs +1 -0
- package/dist/chunks/toolPool-1.1.4-v050m5b8.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.4-wg2kk5a2.mjs +1 -0
- package/dist/chunks/tools-1.1.4-g181kv47.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.4-tdeqsy06.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.4-sj3ajz7z.mjs +69 -0
- package/dist/chunks/types-1.1.4-ggcwt1pq.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.4-nrnrb8c3.mjs +4 -0
- package/dist/chunks/update-1.1.4-z8g0pneq.mjs +72 -0
- package/dist/chunks/upgrade-1.1.4-e34ebc9z.mjs +1 -0
- package/dist/chunks/upload-1.1.4-2av9969z.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.4-e3t0n54y.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.4-hghknwdd.mjs +1 -0
- package/dist/chunks/usage-1.1.4-wc38b22t.mjs +1 -0
- package/dist/chunks/util-1.1.4-re2ggpra.mjs +1 -0
- package/dist/chunks/utils-1.1.4-xzem7sm6.mjs +1 -0
- package/dist/chunks/vim-1.1.4-ybw4ky04.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.4-mshcfcqq.mjs +13 -0
- package/dist/chunks/watcher-1.1.4-fbr5em87.mjs +1 -0
- package/dist/chunks/wiki-1.1.4-hddnvztx.mjs +132 -0
- package/dist/chunks/workflows-1.1.4-5zm6r9s5.mjs +1 -0
- package/dist/chunks/worktree-1.1.4-6xqk6k5z.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.4-axxnvhc8.mjs +1 -0
- package/dist/chunks/wrapper-1.1.4-y14g4zah.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.2-6zb8pht6.mjs +0 -1
- package/dist/chunks/App-1.1.2-8j8hmwy9.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.2-ejb1881w.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.2-y7hdgasp.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.2-b2ckdy5h.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.2-nk59yp5m.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.2-t6wsf59z.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.2-ehy8cjkp.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.2-2834m4pm.mjs +0 -7
- package/dist/chunks/Doctor-1.1.2-rrjcjsbd.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.2-a4eqp58y.mjs +0 -6
- package/dist/chunks/Grove-1.1.2-e07ta9pa.mjs +0 -1
- package/dist/chunks/ITermBackend-1.1.2-mdqpkv6t.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.2-fwghx005.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.2-47vmakv0.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.2-tphw5gq9.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.2-a645a6a2.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.2-48xvht72.mjs +0 -1
- package/dist/chunks/REPL-1.1.2-a2z2r0kz.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.2-avb3zbsn.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.2-r8c624d9.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.2-1mmfypbv.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.2-ky4az8t9.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.2-w72b36j1.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.2-ejx4rvac.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.2-5m2ekdy4.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.2-b7q0fb2j.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.2-j0pztex4.mjs +0 -1
- package/dist/chunks/add-dir-1.1.2-fzpmgh1h.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.2-vr9770fz.mjs +0 -1
- package/dist/chunks/agents-1.1.2-n6dejn00.mjs +0 -3
- package/dist/chunks/agents-1.1.2-rxkey856.mjs +0 -110
- package/dist/chunks/api-1.1.2-fpd74byc.mjs +0 -1
- package/dist/chunks/asciicast-1.1.2-0nvcvhqa.mjs +0 -1
- package/dist/chunks/assistant-1.1.2-ywzgwzmt.mjs +0 -1
- package/dist/chunks/auth-1.1.2-cg0svgv7.mjs +0 -1
- package/dist/chunks/auth-1.1.2-s45hhsck.mjs +0 -1
- package/dist/chunks/autoMode-1.1.2-6q0pp71h.mjs +0 -48
- package/dist/chunks/autoUpdater-1.1.2-bnwzvzbf.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.2-meh5zm3k.mjs +0 -1
- package/dist/chunks/branch-1.1.2-exyc66rb.mjs +0 -4
- package/dist/chunks/bridge-1.1.2-zvk3eymq.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.2-mr20ypjr.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.2-s41251vp.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.2-tse9m0x8.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.2-grjrm008.mjs +0 -1
- package/dist/chunks/btw-1.1.2-6xz6s5f3.mjs +0 -1
- package/dist/chunks/buddy-1.1.2-zsy6mntg.mjs +0 -3
- package/dist/chunks/cacache-1.1.2-pr00fyac.mjs +0 -1
- package/dist/chunks/cache-probe-1.1.2-dd1ch184.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.2-xnm7ts60.mjs +0 -4
- package/dist/chunks/caches-1.1.2-s4tektt8.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.2-krejmvza.mjs +0 -1
- package/dist/chunks/claudemd-1.1.2-g1dwsxtx.mjs +0 -1
- package/dist/chunks/clear-1.1.2-5fz98qqy.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.2-heqmh2ay.mjs +0 -1
- package/dist/chunks/cli-1.1.2-00hggnnf.mjs +0 -9
- package/dist/chunks/cli-1.1.2-06gbqkw3.mjs +0 -2
- package/dist/chunks/cli-1.1.2-06wg9ep0.mjs +0 -2
- package/dist/chunks/cli-1.1.2-0q8k3447.mjs +0 -2
- package/dist/chunks/cli-1.1.2-10g0wy7w.mjs +0 -2
- package/dist/chunks/cli-1.1.2-12xajsdg.mjs +0 -2
- package/dist/chunks/cli-1.1.2-1a35rnqk.mjs +0 -2
- package/dist/chunks/cli-1.1.2-1kqxt2v2.mjs +0 -2
- package/dist/chunks/cli-1.1.2-1rh7zj2h.mjs +0 -133
- package/dist/chunks/cli-1.1.2-1v80dsr5.mjs +0 -2
- package/dist/chunks/cli-1.1.2-1z8yre0p.mjs +0 -2
- package/dist/chunks/cli-1.1.2-22w1aakd.mjs +0 -17
- package/dist/chunks/cli-1.1.2-26xrf159.mjs +0 -2
- package/dist/chunks/cli-1.1.2-2d3dw4nn.mjs +0 -25
- package/dist/chunks/cli-1.1.2-2rf4g79b.mjs +0 -3
- package/dist/chunks/cli-1.1.2-2vzy6fgr.mjs +0 -4
- package/dist/chunks/cli-1.1.2-2x9dcdpq.mjs +0 -2
- package/dist/chunks/cli-1.1.2-2ya2s94w.mjs +0 -15
- package/dist/chunks/cli-1.1.2-2ygaa01s.mjs +0 -3
- package/dist/chunks/cli-1.1.2-312r29db.mjs +0 -2
- package/dist/chunks/cli-1.1.2-38rgkyw3.mjs +0 -2
- package/dist/chunks/cli-1.1.2-39xjjhsf.mjs +0 -24
- package/dist/chunks/cli-1.1.2-3mhsnff4.mjs +0 -2
- package/dist/chunks/cli-1.1.2-3mpy81rn.mjs +0 -2
- package/dist/chunks/cli-1.1.2-3v91jtm9.mjs +0 -2
- package/dist/chunks/cli-1.1.2-3vhc8676.mjs +0 -2
- package/dist/chunks/cli-1.1.2-3w0nbdtc.mjs +0 -2
- package/dist/chunks/cli-1.1.2-45nwkmpy.mjs +0 -2
- package/dist/chunks/cli-1.1.2-4d1hhyqs.mjs +0 -2
- package/dist/chunks/cli-1.1.2-4e3xrjth.mjs +0 -2
- package/dist/chunks/cli-1.1.2-4skhxaf4.mjs +0 -6
- package/dist/chunks/cli-1.1.2-4x5wz1xq.mjs +0 -67
- package/dist/chunks/cli-1.1.2-51pdt76x.mjs +0 -2
- package/dist/chunks/cli-1.1.2-526csky8.mjs +0 -2
- package/dist/chunks/cli-1.1.2-5dbzz1pp.mjs +0 -12
- package/dist/chunks/cli-1.1.2-5pe3b93k.mjs +0 -25
- package/dist/chunks/cli-1.1.2-5w2m33hk.mjs +0 -2
- package/dist/chunks/cli-1.1.2-5wfgzqgc.mjs +0 -2
- package/dist/chunks/cli-1.1.2-61nmeckv.mjs +0 -4
- package/dist/chunks/cli-1.1.2-63p3yvzk.mjs +0 -2
- package/dist/chunks/cli-1.1.2-64bjkwj9.mjs +0 -2
- package/dist/chunks/cli-1.1.2-6cj9ggma.mjs +0 -5638
- package/dist/chunks/cli-1.1.2-6kq0hmvj.mjs +0 -2
- package/dist/chunks/cli-1.1.2-6r2ybktd.mjs +0 -18
- package/dist/chunks/cli-1.1.2-79hm6s3a.mjs +0 -7
- package/dist/chunks/cli-1.1.2-7fe75jd9.mjs +0 -2
- package/dist/chunks/cli-1.1.2-7fjx7f8d.mjs +0 -2
- package/dist/chunks/cli-1.1.2-7jcscwh5.mjs +0 -2
- package/dist/chunks/cli-1.1.2-7m5zhsrs.mjs +0 -2
- package/dist/chunks/cli-1.1.2-7q8cqbtc.mjs +0 -2
- package/dist/chunks/cli-1.1.2-7swa79jc.mjs +0 -24
- package/dist/chunks/cli-1.1.2-7xwayv2p.mjs +0 -20
- package/dist/chunks/cli-1.1.2-8d3m4zhf.mjs +0 -2
- package/dist/chunks/cli-1.1.2-8fsex5c8.mjs +0 -2
- package/dist/chunks/cli-1.1.2-8trsbckp.mjs +0 -2
- package/dist/chunks/cli-1.1.2-8wc2wcne.mjs +0 -3
- package/dist/chunks/cli-1.1.2-94nsdbgk.mjs +0 -2
- package/dist/chunks/cli-1.1.2-96wg2gfk.mjs +0 -2
- package/dist/chunks/cli-1.1.2-99rcxvch.mjs +0 -2
- package/dist/chunks/cli-1.1.2-9ash84j3.mjs +0 -2
- package/dist/chunks/cli-1.1.2-9ke8m3ex.mjs +0 -2
- package/dist/chunks/cli-1.1.2-9rh5p8p5.mjs +0 -2
- package/dist/chunks/cli-1.1.2-a69xymn7.mjs +0 -2
- package/dist/chunks/cli-1.1.2-a9n9p929.mjs +0 -2
- package/dist/chunks/cli-1.1.2-aav0ncfm.mjs +0 -2
- package/dist/chunks/cli-1.1.2-ad1q4yds.mjs +0 -4
- package/dist/chunks/cli-1.1.2-aq3e6kg7.mjs +0 -2
- package/dist/chunks/cli-1.1.2-ax711ayq.mjs +0 -2
- package/dist/chunks/cli-1.1.2-b850wzhk.mjs +0 -2
- package/dist/chunks/cli-1.1.2-b9tdyfz3.mjs +0 -21
- package/dist/chunks/cli-1.1.2-bhjzjkag.mjs +0 -4
- package/dist/chunks/cli-1.1.2-bvvn3mfz.mjs +0 -2
- package/dist/chunks/cli-1.1.2-cs3wpy5m.mjs +0 -2
- package/dist/chunks/cli-1.1.2-d0dmaqaz.mjs +0 -2
- package/dist/chunks/cli-1.1.2-d3vc56eg.mjs +0 -4
- package/dist/chunks/cli-1.1.2-d9r7gv39.mjs +0 -2
- package/dist/chunks/cli-1.1.2-dg1134n2.mjs +0 -2
- package/dist/chunks/cli-1.1.2-dgw89jzs.mjs +0 -4
- package/dist/chunks/cli-1.1.2-e9bnprf3.mjs +0 -2
- package/dist/chunks/cli-1.1.2-efe0402v.mjs +0 -2
- package/dist/chunks/cli-1.1.2-em7hye78.mjs +0 -4
- package/dist/chunks/cli-1.1.2-eqyyfzzp.mjs +0 -2
- package/dist/chunks/cli-1.1.2-evsw8rmv.mjs +0 -2
- package/dist/chunks/cli-1.1.2-f5bj8nyg.mjs +0 -2
- package/dist/chunks/cli-1.1.2-f8pc3h46.mjs +0 -16
- package/dist/chunks/cli-1.1.2-fcjvcn8t.mjs +0 -2
- package/dist/chunks/cli-1.1.2-fmrgtbj6.mjs +0 -2
- package/dist/chunks/cli-1.1.2-fnfay3zd.mjs +0 -2
- package/dist/chunks/cli-1.1.2-fnp913tz.mjs +0 -2
- package/dist/chunks/cli-1.1.2-fq7w78vq.mjs +0 -2
- package/dist/chunks/cli-1.1.2-fs1t9yw3.mjs +0 -15
- package/dist/chunks/cli-1.1.2-fwcddg2k.mjs +0 -3
- package/dist/chunks/cli-1.1.2-g3dcz46h.mjs +0 -2
- package/dist/chunks/cli-1.1.2-g3ms995y.mjs +0 -2
- package/dist/chunks/cli-1.1.2-g9cs3fkf.mjs +0 -24
- package/dist/chunks/cli-1.1.2-gb52rdfa.mjs +0 -2
- package/dist/chunks/cli-1.1.2-gb58q1j1.mjs +0 -2
- package/dist/chunks/cli-1.1.2-gdcv810d.mjs +0 -2
- package/dist/chunks/cli-1.1.2-gqdaxfvm.mjs +0 -2
- package/dist/chunks/cli-1.1.2-gtjv8yhc.mjs +0 -2
- package/dist/chunks/cli-1.1.2-gvwc8kmd.mjs +0 -6
- package/dist/chunks/cli-1.1.2-gws9nr18.mjs +0 -9
- package/dist/chunks/cli-1.1.2-gxzwceae.mjs +0 -2
- package/dist/chunks/cli-1.1.2-gy0p2qqf.mjs +0 -4
- package/dist/chunks/cli-1.1.2-h2avr3ya.mjs +0 -2
- package/dist/chunks/cli-1.1.2-h9csstnw.mjs +0 -2
- package/dist/chunks/cli-1.1.2-hpx774ph.mjs +0 -3
- package/dist/chunks/cli-1.1.2-hzaqg545.mjs +0 -17
- package/dist/chunks/cli-1.1.2-j9n5qd1w.mjs +0 -2
- package/dist/chunks/cli-1.1.2-jpgqkhxd.mjs +0 -59
- package/dist/chunks/cli-1.1.2-js4s7tq5.mjs +0 -2
- package/dist/chunks/cli-1.1.2-jv9f8r52.mjs +0 -3
- package/dist/chunks/cli-1.1.2-jxkffay4.mjs +0 -2
- package/dist/chunks/cli-1.1.2-k077a0s0.mjs +0 -2
- package/dist/chunks/cli-1.1.2-k3tsqm2p.mjs +0 -2
- package/dist/chunks/cli-1.1.2-k4bpvm06.mjs +0 -2
- package/dist/chunks/cli-1.1.2-k61a86d8.mjs +0 -3
- package/dist/chunks/cli-1.1.2-kahqzzrg.mjs +0 -2
- package/dist/chunks/cli-1.1.2-kav702qr.mjs +0 -2
- package/dist/chunks/cli-1.1.2-kcfzd7n8.mjs +0 -2
- package/dist/chunks/cli-1.1.2-kkgf4hyc.mjs +0 -3
- package/dist/chunks/cli-1.1.2-kq402xqd.mjs +0 -2
- package/dist/chunks/cli-1.1.2-m0529q09.mjs +0 -45
- package/dist/chunks/cli-1.1.2-m2ar3b2y.mjs +0 -18
- package/dist/chunks/cli-1.1.2-m4ksha3b.mjs +0 -2
- package/dist/chunks/cli-1.1.2-m7d5acdw.mjs +0 -2
- package/dist/chunks/cli-1.1.2-ma8mh6tb.mjs +0 -2
- package/dist/chunks/cli-1.1.2-mnp59g5q.mjs +0 -12
- package/dist/chunks/cli-1.1.2-mr55880g.mjs +0 -2
- package/dist/chunks/cli-1.1.2-mtztdv5m.mjs +0 -2
- package/dist/chunks/cli-1.1.2-n2f8jkwd.mjs +0 -2
- package/dist/chunks/cli-1.1.2-n2k1y1rv.mjs +0 -2
- package/dist/chunks/cli-1.1.2-nd5g2z1v.mjs +0 -2
- package/dist/chunks/cli-1.1.2-nskkg1h5.mjs +0 -5
- package/dist/chunks/cli-1.1.2-p8amxd73.mjs +0 -4
- package/dist/chunks/cli-1.1.2-pbtymf0g.mjs +0 -2
- package/dist/chunks/cli-1.1.2-pgt1vydc.mjs +0 -2
- package/dist/chunks/cli-1.1.2-qg5xbb38.mjs +0 -2
- package/dist/chunks/cli-1.1.2-qge4zbeg.mjs +0 -2
- package/dist/chunks/cli-1.1.2-qm56km1n.mjs +0 -4
- package/dist/chunks/cli-1.1.2-qxjs641v.mjs +0 -2
- package/dist/chunks/cli-1.1.2-r32per66.mjs +0 -2
- package/dist/chunks/cli-1.1.2-r39g5zy8.mjs +0 -2
- package/dist/chunks/cli-1.1.2-re4qc97z.mjs +0 -6
- package/dist/chunks/cli-1.1.2-rm27fqp7.mjs +0 -2
- package/dist/chunks/cli-1.1.2-rp3kb2k1.mjs +0 -2
- package/dist/chunks/cli-1.1.2-rwfksv3e.mjs +0 -8
- package/dist/chunks/cli-1.1.2-rx0kctyq.mjs +0 -15
- package/dist/chunks/cli-1.1.2-ryw7gagg.mjs +0 -2
- package/dist/chunks/cli-1.1.2-s2xde2xb.mjs +0 -2
- package/dist/chunks/cli-1.1.2-s6et33a5.mjs +0 -2
- package/dist/chunks/cli-1.1.2-s76jqr70.mjs +0 -2
- package/dist/chunks/cli-1.1.2-sd7xc4s3.mjs +0 -2
- package/dist/chunks/cli-1.1.2-sdra9y0x.mjs +0 -34
- package/dist/chunks/cli-1.1.2-se3yz188.mjs +0 -2
- package/dist/chunks/cli-1.1.2-sk8gpfnw.mjs +0 -2
- package/dist/chunks/cli-1.1.2-sxp48xhs.mjs +0 -133
- package/dist/chunks/cli-1.1.2-t4aw8heb.mjs +0 -2
- package/dist/chunks/cli-1.1.2-t9knn0qp.mjs +0 -2
- package/dist/chunks/cli-1.1.2-tepjwp3h.mjs +0 -2
- package/dist/chunks/cli-1.1.2-thb8wh7v.mjs +0 -2
- package/dist/chunks/cli-1.1.2-tk5pscqh.mjs +0 -12
- package/dist/chunks/cli-1.1.2-tkr9thek.mjs +0 -6
- package/dist/chunks/cli-1.1.2-tn2dw7tr.mjs +0 -2
- package/dist/chunks/cli-1.1.2-tyx76ya3.mjs +0 -2
- package/dist/chunks/cli-1.1.2-v4dexj9m.mjs +0 -2
- package/dist/chunks/cli-1.1.2-v5aq687d.mjs +0 -4
- package/dist/chunks/cli-1.1.2-vdnvxk7d.mjs +0 -2
- package/dist/chunks/cli-1.1.2-vdtd8tyw.mjs +0 -3
- package/dist/chunks/cli-1.1.2-vedfryrw.mjs +0 -39
- package/dist/chunks/cli-1.1.2-vkw3t6e1.mjs +0 -2
- package/dist/chunks/cli-1.1.2-vn5a5kng.mjs +0 -2
- package/dist/chunks/cli-1.1.2-vqhs2nfg.mjs +0 -2
- package/dist/chunks/cli-1.1.2-w39dxwaq.mjs +0 -5
- package/dist/chunks/cli-1.1.2-w6e54y3j.mjs +0 -2
- package/dist/chunks/cli-1.1.2-wd7anmzt.mjs +0 -2
- package/dist/chunks/cli-1.1.2-wfh9694n.mjs +0 -42
- package/dist/chunks/cli-1.1.2-whyrn26g.mjs +0 -2
- package/dist/chunks/cli-1.1.2-wtjpdxah.mjs +0 -2
- package/dist/chunks/cli-1.1.2-wz2q0wq7.mjs +0 -2
- package/dist/chunks/cli-1.1.2-x6tg8d4f.mjs +0 -58
- package/dist/chunks/cli-1.1.2-x7pdyv4r.mjs +0 -3
- package/dist/chunks/cli-1.1.2-x7qa1qq3.mjs +0 -50
- package/dist/chunks/cli-1.1.2-xbpjh8ph.mjs +0 -2
- package/dist/chunks/cli-1.1.2-xpf1bbmk.mjs +0 -2
- package/dist/chunks/cli-1.1.2-xrfe457w.mjs +0 -2
- package/dist/chunks/cli-1.1.2-y2eet2t4.mjs +0 -2
- package/dist/chunks/cli-1.1.2-y8dhsas4.mjs +0 -12
- package/dist/chunks/cli-1.1.2-yajs5n37.mjs +0 -18
- package/dist/chunks/cli-1.1.2-yh44qbw4.mjs +0 -2
- package/dist/chunks/cli-1.1.2-yj8m159m.mjs +0 -2
- package/dist/chunks/cli-1.1.2-z2m1x4a9.mjs +0 -2
- package/dist/chunks/cli-1.1.2-z31tqg0s.mjs +0 -202
- package/dist/chunks/cli-1.1.2-z56w3mhn.mjs +0 -3
- package/dist/chunks/cli-1.1.2-z7ha6v3f.mjs +0 -2
- package/dist/chunks/cli-1.1.2-ze70ftw0.mjs +0 -1
- package/dist/chunks/cli-1.1.2-zm6bk4ph.mjs +0 -2
- package/dist/chunks/cli-1.1.2-zn8nzq9g.mjs +0 -2
- package/dist/chunks/cli-1.1.2-zv4bhn4s.mjs +0 -6
- package/dist/chunks/cli-1.1.2-zy0pbg7t.mjs +0 -3
- package/dist/chunks/cli-1.1.2-zy7bxchk.mjs +0 -2
- package/dist/chunks/cli-1.1.2-zy8c0mk4.mjs +0 -2
- package/dist/chunks/cli-1.1.2-zzd75gm6.mjs +0 -2
- package/dist/chunks/client-1.1.2-cfb4as3w.mjs +0 -1
- package/dist/chunks/color-1.1.2-1sf55h7k.mjs +0 -1
- package/dist/chunks/compact-1.1.2-dd3f57yj.mjs +0 -3
- package/dist/chunks/config-1.1.2-6bc1gc6c.mjs +0 -1
- package/dist/chunks/config-1.1.2-p9t1wpdw.mjs +0 -1
- package/dist/chunks/constants-1.1.2-tkm4c60r.mjs +0 -1
- package/dist/chunks/context-1.1.2-rw4msk80.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.2-c5hbr649.mjs +0 -1
- package/dist/chunks/conversation-1.1.2-h9dvper4.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.2-nv81crna.mjs +0 -1
- package/dist/chunks/copy-1.1.2-hr7v2mx9.mjs +0 -9
- package/dist/chunks/cost-1.1.2-hdy89g4q.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.2-6v2x5eg0.mjs +0 -1
- package/dist/chunks/createSession-1.1.2-ygyb7e8j.mjs +0 -1
- package/dist/chunks/debug-1.1.2-wk2d9rj6.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.2-gjp00h29.mjs +0 -1446
- package/dist/chunks/desktop-1.1.2-egp65wej.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.2-qh9nf9kg.mjs +0 -1
- package/dist/chunks/detection-1.1.2-02zpqkt2.mjs +0 -1
- package/dist/chunks/diff-1.1.2-29snp7ez.mjs +0 -1
- package/dist/chunks/doctor-1.1.2-b321t9z0.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.2-214xq5kx.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.2-n8b9n8hj.mjs +0 -1
- package/dist/chunks/effort-1.1.2-42pxj2ke.mjs +0 -13
- package/dist/chunks/engine-1.1.2-071c5ycx.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.2-90nzxgap.mjs +0 -1
- package/dist/chunks/envUtils-1.1.2-rdsjbb4f.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.2-eeacbnpj.mjs +0 -1
- package/dist/chunks/environments-1.1.2-e0a09brc.mjs +0 -1
- package/dist/chunks/errors-1.1.2-1fp0w76h.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.2-prrwcbkh.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.2-61na3ack.mjs +0 -1
- package/dist/chunks/exit-1.1.2-eh7t4pcy.mjs +0 -1
- package/dist/chunks/explorer-1.1.2-7brsg8bj.mjs +0 -1
- package/dist/chunks/export-1.1.2-2m0sfme0.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.2-akf4qvp0.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.2-ysbmggsv.mjs +0 -1
- package/dist/chunks/fast-1.1.2-43wzezv3.mjs +0 -1
- package/dist/chunks/feedback-1.1.2-92k099e0.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.2-ksq42qwt.mjs +0 -1
- package/dist/chunks/git-1.1.2-fgm2kpjd.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.2-vj6dwy2c.mjs +0 -1
- package/dist/chunks/goal-1.1.2-hnd6dfnz.mjs +0 -4
- package/dist/chunks/grove-1.1.2-74zq9th4.mjs +0 -1
- package/dist/chunks/growthbook-1.1.2-x4pfbgm2.mjs +0 -1
- package/dist/chunks/headless-1.1.2-rhab73x2.mjs +0 -2
- package/dist/chunks/heapdump-1.1.2-a698r5c6.mjs +0 -6
- package/dist/chunks/help-1.1.2-er6xvvy0.mjs +0 -1
- package/dist/chunks/hookChains-1.1.2-yh3dmw0j.mjs +0 -3
- package/dist/chunks/hooks-1.1.2-63zxxjj9.mjs +0 -79
- package/dist/chunks/hooks-1.1.2-ez3kc0p2.mjs +0 -1
- package/dist/chunks/ide-1.1.2-je812srr.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.2-xe8n5srr.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.2-qywwkc7m.mjs +0 -1
- package/dist/chunks/index-1.1.2-3evh58r7.mjs +0 -1
- package/dist/chunks/index-1.1.2-69bhefzj.mjs +0 -1
- package/dist/chunks/index-1.1.2-7kya3jrk.mjs +0 -1
- package/dist/chunks/index-1.1.2-7sphewt0.mjs +0 -5
- package/dist/chunks/index-1.1.2-947wna4y.mjs +0 -1
- package/dist/chunks/index-1.1.2-95c20hmc.mjs +0 -1
- package/dist/chunks/index-1.1.2-9xdx0kw2.mjs +0 -1
- package/dist/chunks/index-1.1.2-bvpaf73z.mjs +0 -2
- package/dist/chunks/index-1.1.2-dkvq5y5c.mjs +0 -1
- package/dist/chunks/index-1.1.2-ebc3q9cn.mjs +0 -9
- package/dist/chunks/index-1.1.2-htmnqkfh.mjs +0 -1
- package/dist/chunks/index-1.1.2-kdaazhrb.mjs +0 -1
- package/dist/chunks/index-1.1.2-kzzb5289.mjs +0 -1
- package/dist/chunks/index-1.1.2-madt9yt1.mjs +0 -1
- package/dist/chunks/index-1.1.2-mvhaw48f.mjs +0 -2
- package/dist/chunks/index-1.1.2-pzx0977r.mjs +0 -1
- package/dist/chunks/index-1.1.2-r1zg7fm1.mjs +0 -1
- package/dist/chunks/index-1.1.2-s1rqf88d.mjs +0 -1
- package/dist/chunks/index-1.1.2-t2gvqgcr.mjs +0 -1
- package/dist/chunks/index-1.1.2-thaazk19.mjs +0 -17
- package/dist/chunks/index-1.1.2-wey7e6ag.mjs +0 -30
- package/dist/chunks/index-1.1.2-y8ab1zbc.mjs +0 -1
- package/dist/chunks/index-1.1.2-zzrwyq5p.mjs +0 -9
- package/dist/chunks/init-1.1.2-85zbvgkj.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.2-de5jg8xg.mjs +0 -1
- package/dist/chunks/ink-1.1.2-dqpj9964.mjs +0 -1
- package/dist/chunks/insights-1.1.2-y73zf53m.mjs +0 -870
- package/dist/chunks/install-1.1.2-89hhj53e.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.2-qvppzny7.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.2-3h092m6m.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.2-knbaf11q.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.2-1ef73k1d.mjs +0 -1
- package/dist/chunks/keybindings-1.1.2-k2t8cv4v.mjs +0 -2
- package/dist/chunks/knowledge-1.1.2-ssv0qdb3.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.2-hjg7gvvk.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.2-s1ff144v.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.2-byf6cjm1.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.2-yvdv9pjd.mjs +0 -1
- package/dist/chunks/log-1.1.2-8cc3djq5.mjs +0 -1
- package/dist/chunks/main-1.1.2-th8b6kt4.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.2-z470j86z.mjs +0 -1
- package/dist/chunks/mcp-1.1.2-86tk8ay8.mjs +0 -1
- package/dist/chunks/mcp-1.1.2-g64z89y6.mjs +0 -17
- package/dist/chunks/mcp-1.1.2-snaa1cjv.mjs +0 -4
- package/dist/chunks/mcpb-1.1.2-4mdrmbnx.mjs +0 -1
- package/dist/chunks/memory-1.1.2-habj4cwz.mjs +0 -72
- package/dist/chunks/model-1.1.2-vdjmatpe.mjs +0 -1
- package/dist/chunks/model-1.1.2-y4qnzr5d.mjs +0 -2
- package/dist/chunks/node-1.1.2-msn09mvf.mjs +0 -12
- package/dist/chunks/oauth-1.1.2-95md8es8.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.2-swxk5w2d.mjs +0 -14
- package/dist/chunks/output-style-1.1.2-gk5rwyf3.mjs +0 -1
- package/dist/chunks/package-2VNCXFNY-1.1.2-t2qeqjq8.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.2-kh0kdj72.mjs +0 -1
- package/dist/chunks/parser-1.1.2-bq2yyqcn.mjs +0 -1
- package/dist/chunks/passes-1.1.2-z98me43k.mjs +0 -1
- package/dist/chunks/permissions-1.1.2-4q31d83k.mjs +0 -3
- package/dist/chunks/permissions-1.1.2-yj6ep04t.mjs +0 -1
- package/dist/chunks/plan-1.1.2-aq6tkcvx.mjs +0 -1
- package/dist/chunks/plist-1.1.2-wtdpfgrq.mjs +0 -1
- package/dist/chunks/plugin-1.1.2-9h7564kc.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.2-xs7cvmve.mjs +0 -1
- package/dist/chunks/plugins-1.1.2-gktqysmr.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.2-zbm0ahc2.mjs +0 -2
- package/dist/chunks/print-1.1.2-9xz8kk84.mjs +0 -57
- package/dist/chunks/privacy-settings-1.1.2-9w8bvgmp.mjs +0 -1
- package/dist/chunks/process-1.1.2-4ha9kngp.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.2-t1abzpg8.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.2-krgryjdy.mjs +0 -9
- package/dist/chunks/prompt-1.1.2-exabd70s.mjs +0 -1
- package/dist/chunks/prompt-1.1.2-qbhgy60q.mjs +0 -1
- package/dist/chunks/prompts-1.1.2-z5xqs93q.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.2-jzdef7t2.mjs +0 -13
- package/dist/chunks/provider-1.1.2-q784s7t1.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.2-hgq6ezmt.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.2-6svgbwp4.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.2-pdk8r710.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.2-ja3famgz.mjs +0 -34
- package/dist/chunks/registry-1.1.2-bteqae43.mjs +0 -1
- package/dist/chunks/release-notes-1.1.2-m864etmn.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.2-xgc8eghm.mjs +0 -2
- package/dist/chunks/remote-env-1.1.2-jy20nnyn.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.2-wrzz2zme.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.2-2ms5x1xn.mjs +0 -1
- package/dist/chunks/rename-1.1.2-99a39m1m.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.2-6qx7my8a.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.2-8aq6b75y.mjs +0 -1
- package/dist/chunks/resume-1.1.2-n0d6rgp7.mjs +0 -2
- package/dist/chunks/rewind-1.1.2-4mrqvf42.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.2-3vma1kzy.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.2-qpb0brgp.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.2-985g3rtd.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.2-h5bx372x.mjs +0 -1
- package/dist/chunks/session-1.1.2-q3ahqvyx.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.2-qcyr8b8w.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.2-2y6b014f.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.2-6vk4ryr3.mjs +0 -1
- package/dist/chunks/settings-1.1.2-nf07eg97.mjs +0 -1
- package/dist/chunks/setup-1.1.2-5f344krn.mjs +0 -5
- package/dist/chunks/sinks-1.1.2-xq2d5k0p.mjs +0 -1
- package/dist/chunks/skills-1.1.2-2e8x03xz.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.2-vbw0t7zn.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.2-7xtv2jhz.mjs +0 -1
- package/dist/chunks/state-1.1.2-4stfxgxw.mjs +0 -1
- package/dist/chunks/stats-1.1.2-x2men93c.mjs +0 -6
- package/dist/chunks/status-1.1.2-k6342tq7.mjs +0 -1
- package/dist/chunks/stickers-1.1.2-m2ee29wd.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.2-gfsm4m3z.mjs +0 -1
- package/dist/chunks/tasks-1.1.2-52bgwvvk.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.2-fcfqve0r.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.2-s2qw8rtp.mjs +0 -1
- package/dist/chunks/teleport-1.1.2-mxjmy1bj.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.2-376p31n2.mjs +0 -1
- package/dist/chunks/theme-1.1.2-vhrm8pkz.mjs +0 -1
- package/dist/chunks/thinkback-1.1.2-2k5azpda.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.2-w3xe66qy.mjs +0 -1
- package/dist/chunks/toolPool-1.1.2-th0e7c3p.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.2-5vbh7tfs.mjs +0 -1
- package/dist/chunks/tools-1.1.2-0tdzn87s.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.2-s31a3mdh.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.2-aj5hafxn.mjs +0 -69
- package/dist/chunks/types-1.1.2-vst16v9y.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.2-3tcemmrp.mjs +0 -4
- package/dist/chunks/update-1.1.2-7daxbkja.mjs +0 -72
- package/dist/chunks/upgrade-1.1.2-paz816ha.mjs +0 -1
- package/dist/chunks/upload-1.1.2-tb2wafs2.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.2-k3w1snzk.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.2-2w62pdbp.mjs +0 -1
- package/dist/chunks/usage-1.1.2-xa0p51ga.mjs +0 -1
- package/dist/chunks/util-1.1.2-790z163z.mjs +0 -1
- package/dist/chunks/utils-1.1.2-vs0h9jny.mjs +0 -1
- package/dist/chunks/vim-1.1.2-c8e520z8.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.2-e4ehn07s.mjs +0 -13
- package/dist/chunks/watcher-1.1.2-731rkpjz.mjs +0 -1
- package/dist/chunks/wiki-1.1.2-zbc6h2h9.mjs +0 -132
- package/dist/chunks/workflows-1.1.2-g3w76nrf.mjs +0 -1
- package/dist/chunks/worktree-1.1.2-7nptnzv3.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.2-kgnb2ck1.mjs +0 -1
- package/dist/chunks/wrapper-1.1.2-3pstqzgw.mjs +0 -7
- /package/dist/chunks/{cli-1.1.2-8t8veykp.mjs → cli-1.1.4-1f3p70jj.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.2-3vyt3jw9.mjs → cli-1.1.4-ez4xtmvg.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.2-6jbsqbdw.mjs → cli-1.1.4-gp99zrz4.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.2-btgmqahb.mjs → cli-1.1.4-gpvz5jfv.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.2-6d3jf0sj.mjs → cli-1.1.4-n0dzwv49.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.2-r4rfggdk.mjs → cli-1.1.4-q1mcaeav.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.2-pgz05ddc.mjs → cli-1.1.4-tg5t7jrb.mjs} +0 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import{Cb as yJ,Db as xz,Eb as rz,Fb as cz,Gb as iz,Hb as bJ}from"./cli-1.1.4-99ept1n4.mjs";import{Jb as Tz}from"./cli-1.1.4-ha2bfn8a.mjs";import{Rb as TJ,Sb as xJ,Tb as MJ,Ub as wJ,Vb as fJ}from"./cli-1.1.4-5ebh6981.mjs";import{Xb as kJ}from"./cli-1.1.4-2sdcr2b4.mjs";import{Se as VJ,Te as lJ}from"./cli-1.1.4-fap2565a.mjs";import{if as EJ,kf as oz,mf as DK}from"./cli-1.1.4-gey397p1.mjs";import{Bf as LJ,Ff as OJ,zf as mz}from"./cli-1.1.4-cp707f4g.mjs";import{In as UJ,JH as JJ,Jn as CK,KH as Cz,LH as KJ,MH as ZJ,OH as $J,PH as YJ,QH as XJ,RH as QJ,SH as WJ,am as AJ,bk as RJ,bm as vz,ck as NK,fm as BK}from"./cli-1.1.4-6z69geef.mjs";import"./cli-1.1.4-yprszvr2.mjs";import"./cli-1.1.4-z9z0gn83.mjs";import"./cli-1.1.4-hbx9ye2g.mjs";import"./cli-1.1.4-ckmk4b1r.mjs";import"./cli-1.1.4-x6hb06sj.mjs";import"./cli-1.1.4-9x9a885k.mjs";import"./cli-1.1.4-3d01w53d.mjs";import"./cli-1.1.4-6raycx0k.mjs";import"./cli-1.1.4-17x2wrkx.mjs";import{tW as DJ,zW as _K}from"./cli-1.1.4-y94ewbpk.mjs";import"./cli-1.1.4-rh4x4rv5.mjs";import"./cli-1.1.4-4qsk7zj5.mjs";import{VW as az,ZW as RK}from"./cli-1.1.4-vcg96p1c.mjs";import"./cli-1.1.4-5dc9c513.mjs";import"./cli-1.1.4-shrznr3s.mjs";import"./cli-1.1.4-qjgn7a4a.mjs";import"./cli-1.1.4-aj4f4c5s.mjs";import"./cli-1.1.4-jeyegjk6.mjs";import"./cli-1.1.4-k6ebhyp0.mjs";import"./cli-1.1.4-scm26s6m.mjs";import"./cli-1.1.4-nh3sscxn.mjs";import"./cli-1.1.4-wx5t4xvj.mjs";import"./cli-1.1.4-3zzdhas7.mjs";import"./cli-1.1.4-m3gsmnfa.mjs";import{G2 as pz,J2 as PK}from"./cli-1.1.4-6c5tryej.mjs";import"./cli-1.1.4-6h6yt6jp.mjs";import"./cli-1.1.4-hdwdbbzk.mjs";import"./cli-1.1.4-cknrfh5p.mjs";import"./cli-1.1.4-je9x0pvr.mjs";import"./cli-1.1.4-0smy947g.mjs";import"./cli-1.1.4-ss2jxen1.mjs";import"./cli-1.1.4-p7tcq8ah.mjs";import"./cli-1.1.4-40z19hth.mjs";import"./cli-1.1.4-9ms3b4tc.mjs";import"./cli-1.1.4-w4b4vhj9.mjs";import"./cli-1.1.4-v67jx2fw.mjs";import"./cli-1.1.4-g6nryz17.mjs";import"./cli-1.1.4-my1g33fn.mjs";import{W7 as i,X7 as FK}from"./cli-1.1.4-fk420f57.mjs";import"./cli-1.1.4-0earmzgk.mjs";import{w9 as G,x9 as pJ}from"./cli-1.1.4-sm3xmtbn.mjs";import"./cli-1.1.4-0nxqjpe0.mjs";import"./cli-1.1.4-m11fz0v8.mjs";import"./cli-1.1.4-cwnt4by7.mjs";import{$ba as fz,Aba as qK,P_ as Wz,Qga as yz,R_ as HK,Yga as OK,aca as ez,bca as zJ,cca as cJ,zba as CJ}from"./cli-1.1.4-6c3fshef.mjs";import{bha as sz,cha as gJ,eha as Rz,lha as qz,tha as GK}from"./cli-1.1.4-rc28sjtd.mjs";import"./cli-1.1.4-jscqx4px.mjs";import"./cli-1.1.4-wt23b5bp.mjs";import{aia as PJ,iia as jK}from"./cli-1.1.4-qecgken2.mjs";import"./cli-1.1.4-mzzr964a.mjs";import"./cli-1.1.4-f7y4b0px.mjs";import"./cli-1.1.4-m312ygm6.mjs";import{wja as zz,xja as NJ,zja as QK}from"./cli-1.1.4-te2372tc.mjs";import{Cka as tz,cka as qJ,dka as uz,hka as oJ,zka as q}from"./cli-1.1.4-53fvpymg.mjs";import"./cli-1.1.4-4cg8jz3d.mjs";import{Zka as g,ela as VK}from"./cli-1.1.4-hzx821eq.mjs";import{kla as _J,sla as BJ,ula as WK}from"./cli-1.1.4-c7a7aezt.mjs";import"./cli-1.1.4-0r232fpm.mjs";import"./cli-1.1.4-x8m7spde.mjs";import"./cli-1.1.4-rmpkkwfr.mjs";import"./cli-1.1.4-0a20jx5n.mjs";import"./cli-1.1.4-z8f8hc8t.mjs";import"./cli-1.1.4-64y9aspn.mjs";import{Jsa as I}from"./cli-1.1.4-xxe2ztwq.mjs";CK();NK();_K();jK();QK();qK();tz();HK();WK();VK();GK();OK();FK();BK();import{randomUUID as Sz}from"crypto";import{hostname as IJ,tmpdir as AK}from"os";import{basename as UK,join as LK,resolve as lz}from"path";WJ();pJ();lJ();cJ();gJ();tz();WJ();var dJ={type:"utf8",errorCorrectionLevel:"L",small:!0};async function aJ(z){return(await VJ(z,dJ)).split(`
|
|
2
|
+
`).filter((K)=>K.length>0)}function GJ(z){let J=z.write??(($)=>process.stdout.write($)),K=z.verbose,Y=0,O="idle",Z="Ready",R="",B="",U="",F="",L="",A=null,N=[],M=!1,E=null,P=0,x=0,_=1,f=null,k="single-session",b=new Map,d=null,S=0;function Xz($){let j=process.stdout.columns||80,w=0;for(let Gz of $.split(`
|
|
3
|
+
`)){if(Gz.length===0){w++;continue}let Nz=sz(Gz);w+=Math.max(1,Math.ceil(Nz/j))}if($.endsWith(`
|
|
4
|
+
`))w--;return w}function m($){J($),Y+=Xz($)}function a(){if(Y<=0)return;q(`[bridge:ui] clearStatusLines count=${Y}`),J(`\x1B[${Y}A`),J("\x1B[J"),Y=0}function $z($){a(),J($)}function n($){aJ($).then((j)=>{N=j,p()}).catch((j)=>{q(`QR code generation failed: ${j}`,{level:"error"})})}function o(){a();let $=fz[S%fz.length],j="";if(R)j+=G.dim(" · ")+G.dim(R);if(B)j+=G.dim(" · ")+G.dim(B);m(`${G.yellow($)} ${G.yellow("Connecting")}${j}
|
|
5
|
+
`)}function Vz(){t(),o(),d=setInterval(()=>{S++,o()},150)}function t(){if(d)clearInterval(d),d=null}function p(){if(O==="reconnecting"||O==="failed")return;a();let $=O==="idle";if(M)for(let Jz of N)m(`${G.dim(Jz)}
|
|
6
|
+
`);let j=ez,w=$?G.green:G.cyan,Nz=($?G.green:G.cyan)(Z),Oz="";if(R)Oz+=G.dim(" · ")+G.dim(R);if(B&&k!=="worktree")Oz+=G.dim(" · ")+G.dim(B);if(m(`${w(j)} ${Nz}${Oz}
|
|
7
|
+
`),_>1){let Jz=k==="worktree"?"New sessions will be created in an isolated worktree":"New sessions will be created in the current directory";m(` ${G.dim(`Capacity: ${x}/${_} · ${Jz}`)}
|
|
8
|
+
`);for(let[,Kz]of b){let r=Kz.title?Rz(Kz.title,35):G.dim("Attached"),Mz=QJ(r,Kz.url),Fz=Kz.activity,V=Fz&&Fz.type!=="result"&&Fz.type!=="error"?G.dim(` ${Rz(Fz.summary,40)}`):"";m(` ${Mz}${V}
|
|
9
|
+
`)}}if(_===1){let Jz=k==="single-session"?"Single session · exits when complete":k==="worktree"?`Capacity: ${x}/1 · New sessions will be created in an isolated worktree`:`Capacity: ${x}/1 · New sessions will be created in the current directory`;m(` ${G.dim(Jz)}
|
|
10
|
+
`)}if(_===1&&!$&&E&&Date.now()-P<JJ)m(` ${G.dim(Rz(E,60))}
|
|
11
|
+
`);let Qz=A??U;if(Qz){m(`
|
|
12
|
+
`);let Jz=$?$J(Qz):YJ(Qz),Kz=M?G.dim.italic("space to hide QR code"):G.dim.italic("space to show QR code"),r=f?G.dim.italic(" · w to toggle spawn mode"):"";m(`${G.dim(Jz)}
|
|
13
|
+
`),m(`${Kz}${r}
|
|
14
|
+
`)}}return{printBanner($,j){if(F=$.sessionIngressUrl,L=j,U=KJ(j,F),n(U),K)J(G.dim("Remote Control")+` v99.0.0
|
|
15
|
+
`);if(K){if($.spawnMode!=="single-session")J(G.dim("Spawn mode: ")+`${$.spawnMode}
|
|
16
|
+
`),J(G.dim("Max concurrent sessions: ")+`${$.maxSessions}
|
|
17
|
+
`);J(G.dim("Environment ID: ")+`${j}
|
|
18
|
+
`)}if($.sandbox)J(G.dim("Sandbox: ")+`${G.green("Enabled")}
|
|
19
|
+
`);J(`
|
|
20
|
+
`),Vz()},logSessionStart($,j){if(K){let w=Rz(j,80);$z(G.dim(`[${Cz()}]`)+` Session started: ${G.white(`"${w}"`)} (${G.dim($)})
|
|
21
|
+
`)}},logSessionComplete($,j){$z(G.dim(`[${Cz()}]`)+` Session ${G.green("completed")} (${qz(j)}) ${G.dim($)}
|
|
22
|
+
`)},logSessionFailed($,j){$z(G.dim(`[${Cz()}]`)+` Session ${G.red("failed")}: ${j} ${G.dim($)}
|
|
23
|
+
`)},logStatus($){$z(G.dim(`[${Cz()}]`)+` ${$}
|
|
24
|
+
`)},logVerbose($){if(K)$z(G.dim(`[${Cz()}] ${$}`)+`
|
|
25
|
+
`)},logError($){$z(G.red(`[${Cz()}] Error: ${$}`)+`
|
|
26
|
+
`)},logReconnected($){$z(G.dim(`[${Cz()}]`)+` ${G.green("Reconnected")} after ${qz($)}
|
|
27
|
+
`)},setRepoInfo($,j){R=$,B=j},updateIdleStatus(){t(),O="idle",Z="Ready",E=null,P=0,A=null,n(U),p()},setAttached($){if(t(),O="attached",Z="Connected",E=null,P=0,_<=1)A=ZJ($,L,F),n(A);p()},updateReconnectingStatus($,j){if(t(),a(),O="reconnecting",M)for(let Gz of N)m(`${G.dim(Gz)}
|
|
28
|
+
`);let w=fz[S%fz.length];S++,m(`${G.yellow(w)} ${G.yellow("Reconnecting")} ${G.dim("·")} ${G.dim(`retrying in ${$}`)} ${G.dim("·")} ${G.dim(`disconnected ${j}`)}
|
|
29
|
+
`)},updateFailedStatus($){t(),a(),O="failed";let j="";if(R)j+=G.dim(" · ")+G.dim(R);if(B)j+=G.dim(" · ")+G.dim(B);if(m(`${G.red(zJ)} ${G.red("Remote Control Failed")}${j}
|
|
30
|
+
`),m(`${G.dim(XJ)}
|
|
31
|
+
`),$)m(`${G.red($)}
|
|
32
|
+
`)},updateSessionStatus($,j,w,Gz){if(w.type==="tool_start")E=w.summary,P=Date.now();p()},clearStatus(){t(),a()},toggleQr(){M=!M,p()},updateSessionCount($,j,w){if(x===$&&_===j&&k===w)return;x=$,_=j,k=w},setSpawnModeDisplay($){if(f===$)return;if(f=$,$)k=$},addSession($,j){b.set($,{url:j})},updateSessionActivity($,j){let w=b.get($);if(!w)return;w.activity=j},setSessionTitle($,j){let w=b.get($);if(!w)return;if(w.title=j,O==="reconnecting"||O==="failed")return;if(_===1)O="titled",Z=Rz(j,40);p()},removeSession($){b.delete($)},refreshDisplay(){if(O==="reconnecting"||O==="failed")return;p()}}}OJ();PK();oJ();OJ();import{spawn as rJ}from"child_process";import{createWriteStream as iJ}from"fs";import{tmpdir as nJ}from"os";import{dirname as tJ,join as jJ}from"path";import{createInterface as HJ}from"readline";var sJ=10,eJ=10,zK=new Set(["PATH","HOME","USERPROFILE","HOMEPATH","HOMEDRIVE","USERNAME","USER","LOGNAME","TEMP","TMP","TMPDIR","SYSTEMROOT","SYSTEMDRIVE","COMSPEC","WINDIR","LANG","LC_ALL","LC_CTYPE","NODE_OPTIONS","NODE_PATH","NODE_ENV","CLAUDE_CODE_ENVIRONMENT_KIND","CLAUDE_CODE_FORCE_SANDBOX","CLAUDE_CODE_BUBBLEWRAP","CLAUDE_CODE_ENTRYPOINT","CLAUDE_CODE_COORDINATOR_MODE","CLAUDE_CODE_PERMISSIONS_VERSION","CLAUDE_CODE_PERMISSIONS_SETTING","TERM","COLORTERM","FORCE_COLOR","NO_COLOR"]);function JK(z,J){let K={};for(let Y of Object.keys(z))if(zK.has(Y))K[Y]=z[Y];if(K.CLAUDE_CODE_OAUTH_TOKEN=void 0,K.CLAUDE_CODE_ENVIRONMENT_KIND="bridge",J.sandbox)K.CLAUDE_CODE_FORCE_SANDBOX="1";if(K.CLAUDE_CODE_SESSION_ACCESS_TOKEN=J.accessToken,K.CLAUDE_CODE_POST_FOR_SESSION_INGRESS_V2="1",J.useCcrV2)K.CLAUDE_CODE_USE_CCR_V2="1",K.CLAUDE_CODE_WORKER_EPOCH=String(J.workerEpoch);return K}function Iz(z){return z.replace(/[^a-zA-Z0-9_-]/g,"_")}var KK={Read:"Reading",Write:"Writing",Edit:"Editing",MultiEdit:"Editing",Bash:"Running",Glob:"Searching",Grep:"Searching",WebFetch:"Fetching",WebSearch:"Searching",Task:"Running task",FileReadTool:"Reading",FileWriteTool:"Writing",FileEditTool:"Editing",GlobTool:"Searching",GrepTool:"Searching",BashTool:"Running",NotebookEditTool:"Editing notebook",LSP:"LSP"};function ZK(z,J){let K=KK[z]??z,Y=J.file_path??J.filePath??J.pattern??J.command?.slice(0,60)??J.url??J.query??"";if(Y)return`${K} ${Y}`;return K}function $K(z,J,K){let Y;try{Y=uz(z)}catch{return[]}if(!Y||typeof Y!=="object")return[];let O=Y,Z=[],R=Date.now();switch(O.type){case"assistant":{let B=O.message;if(!B)break;let U=B.content;if(!Array.isArray(U))break;for(let F of U){if(!F||typeof F!=="object")continue;let L=F;if(L.type==="tool_use"){let A=L.name??"Tool",N=L.input??{},M=ZK(A,N);Z.push({type:"tool_start",summary:M,timestamp:R}),K(`[bridge:activity] sessionId=${J} tool_use name=${A} ${XK(N)}`)}else if(L.type==="text"){let A=L.text??"";if(A.length>0)Z.push({type:"text",summary:A.slice(0,80),timestamp:R}),K(`[bridge:activity] sessionId=${J} text "${A.slice(0,100)}"`)}}break}case"result":{let B=O.subtype;if(B==="success")Z.push({type:"result",summary:"Session completed",timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=success`);else if(B){let F=O.errors?.[0]??`Error: ${B}`;Z.push({type:"error",summary:F,timestamp:R}),K(`[bridge:activity] sessionId=${J} result subtype=${B} error="${F}"`)}else K(`[bridge:activity] sessionId=${J} result subtype=undefined`);break}default:break}return Z}function YK(z){if(z.parent_tool_use_id!=null||z.isSynthetic||z.isReplay)return;let K=z.message?.content,Y;if(typeof K==="string")Y=K;else if(Array.isArray(K)){for(let O of K)if(O&&typeof O==="object"&&O.type==="text"){Y=O.text;break}}return Y=Y?.trim(),Y?Y:void 0}function XK(z){let J=[];for(let[K,Y]of Object.entries(z)){if(typeof Y==="string")J.push(`${K}="${Y.slice(0,100)}"`);if(J.length>=3)break}return J.join(" ")}function gz(z){return{spawn(J,K){let Y=Iz(J.sessionId),O;if(z.debugFile){let _=z.debugFile.lastIndexOf(".");if(_>0)O=`${z.debugFile.slice(0,_)}-${Y}${z.debugFile.slice(_)}`;else O=`${z.debugFile}-${Y}`}else if(z.verbose)O=jJ(nJ(),"claude",`bridge-session-${Y}.log`);let Z=null,R;if(z.debugFile)R=jJ(tJ(z.debugFile),`bridge-transcript-${Y}.jsonl`),Z=iJ(R,{flags:"a"}),Z.on("error",(_)=>{z.onDebug(`[bridge:session] Transcript write error: ${_.message}`),Z=null}),z.onDebug(`[bridge:session] Transcript log: ${R}`);let B=[...z.scriptArgs,"--print","--sdk-url",J.sdkUrl,"--session-id",J.sessionId,"--input-format","stream-json","--output-format","stream-json","--replay-user-messages",...z.verbose?["--verbose"]:[],...O?["--debug-file",O]:[],...z.permissionMode?["--permission-mode",z.permissionMode]:[]],U=JK(z.env,{accessToken:J.accessToken,useCcrV2:J.useCcrV2,workerEpoch:J.workerEpoch,sandbox:z.sandbox});if(z.onDebug(`[bridge:session] Spawning sessionId=${J.sessionId} sdkUrl=${J.sdkUrl} accessToken=${J.accessToken?"present":"MISSING"}`),z.onDebug(`[bridge:session] Child args: ${B.join(" ")}`),O)z.onDebug(`[bridge:session] Debug log: ${O}`);let F=rJ(z.execPath,B,{cwd:K,stdio:["pipe","pipe","pipe"],env:U,windowsHide:!0});z.onDebug(`[bridge:session] sessionId=${J.sessionId} pid=${F.pid}`);let L=[],A=null,N=[],M=!1,E=!1;if(F.stderr)HJ({input:F.stderr}).on("line",(f)=>{if(z.verbose)process.stderr.write(f+`
|
|
33
|
+
`);if(N.length>=eJ)N.shift();N.push(f)});if(F.stdout)HJ({input:F.stdout}).on("line",(f)=>{if(Z)Z.write(f+`
|
|
34
|
+
`);if(z.onDebug(`[bridge:ws] sessionId=${J.sessionId} <<< ${mz(f)}`),z.verbose)process.stderr.write(f+`
|
|
35
|
+
`);let k=$K(f,J.sessionId,z.onDebug);for(let b of k){if(L.length>=sJ)L.shift();L.push(b),A=b,z.onActivity?.(J.sessionId,b)}{let b;try{b=uz(f)}catch{}if(b&&typeof b==="object"){let d=b;if(d.type==="control_request"){if(d.request?.subtype==="can_use_tool"&&z.onPermissionRequest)z.onPermissionRequest(J.sessionId,b,J.accessToken)}else if(d.type==="user"&&!E&&J.onFirstUserMessage){let S=YK(d);if(S)E=!0,J.onFirstUserMessage(S)}}}});let P=new Promise((_)=>{F.on("close",(f,k)=>{if(Z)Z.end(),Z=null;if(k==="SIGTERM"||k==="SIGINT")z.onDebug(`[bridge:session] sessionId=${J.sessionId} interrupted signal=${k} pid=${F.pid}`),_("interrupted");else if(f===0)z.onDebug(`[bridge:session] sessionId=${J.sessionId} completed exit_code=0 pid=${F.pid}`),_("completed");else z.onDebug(`[bridge:session] sessionId=${J.sessionId} failed exit_code=${f} pid=${F.pid}`),_("failed")}),F.on("error",(f)=>{z.onDebug(`[bridge:session] sessionId=${J.sessionId} spawn error: ${f.message}`),_("failed")})}),x={sessionId:J.sessionId,done:P,activities:L,accessToken:J.accessToken,lastStderr:N,get currentActivity(){return A},kill(){if(!F.killed)if(z.onDebug(`[bridge:session] Sending SIGTERM to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGTERM")},forceKill(){if(!M&&F.pid)if(M=!0,z.onDebug(`[bridge:session] Sending SIGKILL to sessionId=${J.sessionId} pid=${F.pid}`),process.platform==="win32")F.kill();else F.kill("SIGKILL")},writeStdin(_){if(F.stdin&&!F.stdin.destroyed)z.onDebug(`[bridge:ws] sessionId=${J.sessionId} >>> ${mz(_)}`),F.stdin.write(_)},updateAccessToken(_){x.accessToken=_,x.writeStdin(qJ({type:"update_environment_variables",variables:{CLAUDE_CODE_SESSION_ACCESS_TOKEN:_}})+`
|
|
36
|
+
`),z.onDebug(`[bridge:session] Sent token refresh via stdin for sessionId=${J.sessionId}`)}};return x}}}RK();DK();var EK={connInitialMs:2000,connCapMs:120000,connGiveUpMs:600000,generalInitialMs:500,generalCapMs:30000,generalGiveUpMs:600000},yK=1000,vJ=32;async function hJ(){return PJ("tengu_ccr_bridge_multi_session")}function FJ(z){return z.connCapMs*2}function SJ(){if(CJ()||!process.argv[1])return[];return[process.argv[1]]}function TK(z,J,K){try{return z.spawn(J,K)}catch(Y){let O=g(Y);return yz(Error(`Session spawn failed: ${O}`)),O}}async function mJ(z,J,K,Y,O,Z,R,B=EK,U,F){let L=new AbortController;if(R.aborted)L.abort();else R.addEventListener("abort",()=>L.abort(),{once:!0});let A=L.signal,N=new Map,M=new Map,E=new Map,P=new Map,x=new Map,_=new Map,f=new Set,k=new Map,b=new Set,d=new Set,S=bJ(A);async function Xz(){let Q=!1,V=!1,y=[];for(let[H]of N){let D=E.get(H),v=x.get(H);if(!D||!v)continue;try{await Y.heartbeatWork(J,D,v),Q=!0}catch(u){if(q(`[bridge:heartbeat] Failed for sessionId=${H} workId=${D}: ${g(u)}`),u instanceof xz)if(zz("tengu_bridge_heartbeat_error",{status:u.status,error_type:u.status===401||u.status===403?"auth_failed":"fatal"}),u.status===401||u.status===403)y.push(H);else V=!0}}for(let H of y){Z.logVerbose(`Session ${H} token expired — re-queuing via bridge/reconnect`);try{await Y.reconnectSession(J,H),q(`[bridge:heartbeat] Re-queued sessionId=${H} via bridge/reconnect`)}catch(D){Z.logError(`Failed to refresh session ${H} token: ${g(D)}`),q(`[bridge:heartbeat] reconnectSession(${H}) failed: ${g(D)}`,{level:"error"})}}if(V)return"fatal";if(y.length>0)return"auth_failed";return Q?"ok":"failed"}let m=new Set,a=F?kJ({getAccessToken:F,onRefresh:(Q,V)=>{let y=N.get(Q);if(!y)return;if(m.has(Q))Z.logVerbose(`Refreshing session ${Q} token via bridge/reconnect`),Y.reconnectSession(J,Q).catch((H)=>{Z.logError(`Failed to refresh session ${Q} token: ${g(H)}`),q(`[bridge:token] reconnectSession(${Q}) failed: ${g(H)}`,{level:"error"})});else y.updateAccessToken(V)},label:"bridge"}):null,$z=Date.now(),n=new Set;function o(Q){n.add(Q),Q.finally(()=>n.delete(Q))}let Vz=0,t=0,p=null,$=null,j=null,w=null,Gz=!1;if(q(`[bridge:work] Starting poll loop spawnMode=${z.spawnMode} maxSessions=${z.maxSessions} environmentId=${J}`),Wz("info","bridge_loop_started",{max_sessions:z.maxSessions,spawn_mode:z.spawnMode}),Z.printBanner(z,J),Z.updateSessionCount(0,z.maxSessions,z.spawnMode),U)Z.setAttached(U);function Nz(){Z.updateSessionCount(N.size,z.maxSessions,z.spawnMode);for(let[u,X]of N){let T=X.currentActivity;if(T)Z.updateSessionActivity(P.get(u)??u,T)}if(N.size===0){Z.updateIdleStatus();return}let[Q,V]=[...N.entries()].pop(),y=M.get(Q);if(!y)return;let H=V.currentActivity;if(!H||H.type==="result"||H.type==="error"){if(z.maxSessions>1)Z.refreshDisplay();return}let D=qz(Date.now()-y),v=V.activities.filter((u)=>u.type==="tool_start").slice(-5).map((u)=>u.summary);Z.updateSessionStatus(Q,D,H,v)}function Oz(){Qz(),Nz(),w=setInterval(Nz,yK)}function Qz(){if(w)clearInterval(w),w=null}function Jz(Q,V,y){return(H)=>{let D=E.get(Q);N.delete(Q),M.delete(Q),E.delete(Q),x.delete(Q);let v=P.get(Q)??Q;P.delete(Q),Z.removeSession(v),d.delete(v),m.delete(Q);let u=_.get(Q);if(u)clearTimeout(u),_.delete(Q);a?.cancel(Q),S.wake();let X=b.delete(Q),T=X&&H==="interrupted"?"failed":H,c=Date.now()-V;q(`[bridge:session] sessionId=${Q} workId=${D??"unknown"} exited status=${T} duration=${qz(c)}`),zz("tengu_bridge_session_done",{status:T,duration_ms:c}),Wz("info","bridge_session_done",{status:T,duration_ms:c}),Z.clearStatus(),Qz();let s=y.lastStderr.length>0?y.lastStderr.join(`
|
|
37
|
+
`):void 0,Yz;switch(T){case"completed":Z.logSessionComplete(Q,c);break;case"failed":if(!X&&!A.aborted)Yz=s??"Process exited with error",Z.logSessionFailed(Q,Yz),yz(Error(`Bridge session failed: ${Yz}`));break;case"interrupted":Z.logVerbose(`Session ${Q} interrupted`);break}if(T!=="interrupted"&&D)o(kz(Y,J,D,Z,B.stopWorkBaseDelayMs)),f.add(D);let Zz=k.get(Q);if(Zz)k.delete(Q),o(vz(Zz.worktreePath,Zz.worktreeBranch,Zz.gitRoot,Zz.hookBased).catch((l)=>Z.logVerbose(`Failed to remove worktree ${Zz.worktreePath}: ${g(l)}`)));if(T!=="interrupted"&&!A.aborted)if(z.spawnMode!=="single-session")o(Y.archiveSession(v).catch((l)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(l)}`))),q(`[bridge:session] Session ${T}, returning to idle (multi-session mode)`);else{q(`[bridge:session] Session ${T}, aborting poll loop to tear down environment`),L.abort();return}if(!A.aborted)Oz()}}if(!U)Oz();while(!A.aborted){let Q=Tz();try{let V=await Y.pollForWork(J,K,A,Q.reclaim_older_than_ms);if(p!==null||$!==null){let X=Date.now()-(p??$??Date.now());Z.logReconnected(X),q(`[bridge:poll] Reconnected after ${qz(X)}`),zz("tengu_bridge_reconnected",{disconnected_ms:X})}if(Vz=0,t=0,p=null,$=null,j=null,!V){if(N.size>=z.maxSessions){let T=Q.multisession_poll_interval_ms_at_capacity;if(Q.non_exclusive_heartbeat_interval_ms>0){zz("tengu_bridge_heartbeat_mode_entered",{active_sessions:N.size,heartbeat_interval_ms:Q.non_exclusive_heartbeat_interval_ms});let c=T>0?Date.now()+T:null,s="ok",Yz=0;while(!A.aborted&&N.size>=z.maxSessions&&(c===null||Date.now()<c)){let l=Tz();if(l.non_exclusive_heartbeat_interval_ms<=0)break;let _z=S.signal();if(s=await Xz(),s==="auth_failed"||s==="fatal"){_z.cleanup();break}Yz++,await i(l.non_exclusive_heartbeat_interval_ms,_z.signal),_z.cleanup()}let Zz=s==="auth_failed"||s==="fatal"?s:A.aborted?"shutdown":N.size<z.maxSessions?"capacity_changed":c!==null&&Date.now()>=c?"poll_due":"config_disabled";if(zz("tengu_bridge_heartbeat_mode_exited",{reason:Zz,heartbeat_cycles:Yz,active_sessions:N.size}),Zz==="poll_due")q(`[bridge:poll] Heartbeat poll_due after ${Yz} cycles — falling through to pollForWork`);if(s==="auth_failed"||s==="fatal"){let l=S.signal();await i(T>0?T:Q.non_exclusive_heartbeat_interval_ms,l.signal),l.cleanup()}}else if(T>0){let c=S.signal();await i(T,c.signal),c.cleanup()}}else{let T=N.size>0?Q.multisession_poll_interval_ms_partial_capacity:Q.multisession_poll_interval_ms_not_at_capacity;await i(T,A)}continue}let H=N.size>=z.maxSessions;if(f.has(V.id)){if(q(`[bridge:work] Skipping already-completed workId=${V.id}`),H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}else await i(1000,A);continue}let D;try{D=TJ(V.secret)}catch(X){let T=g(X);if(Z.logError(`Failed to decode work secret for workId=${V.id}: ${T}`),zz("tengu_bridge_work_secret_failed",{}),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs)),H){let c=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,c.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,c.signal);c.cleanup()}continue}let v=async()=>{q(`[bridge:work] Acknowledging workId=${V.id}`);try{await Y.acknowledgeWork(J,V.id,D.session_ingress_token)}catch(X){q(`[bridge:work] Acknowledge failed workId=${V.id}: ${g(X)}`)}},u=V.data.type;switch(V.data.type){case"healthcheck":await v(),q("[bridge:work] Healthcheck received"),Z.logVerbose("Healthcheck received");break;case"session":{let X=V.data.id;try{yJ(X,"session_id")}catch{await v(),Z.logError(`Invalid session_id received: ${X}`);break}let T=N.get(X);if(T){T.updateAccessToken(D.session_ingress_token),x.set(X,D.session_ingress_token),E.set(X,V.id),a?.schedule(X,D.session_ingress_token),q(`[bridge:work] Updated access token for existing sessionId=${X} workId=${V.id}`),await v();break}if(N.size>=z.maxSessions){q(`[bridge:work] At capacity (${N.size}/${z.maxSessions}), cannot spawn new session for workId=${V.id}`);break}await v();let c=Date.now(),s,Yz=!1,Zz;if(D.use_code_sessions===!0||_J(process.env.CLAUDE_BRIDGE_USE_CCR_V2)){s=wJ(z.apiBaseUrl,X);for(let W=1;W<=2;W++)try{Zz=await fJ(s,D.session_ingress_token),Yz=!0,q(`[bridge:session] CCR v2: registered worker sessionId=${X} epoch=${Zz} attempt=${W}`);break}catch(C){let h=g(C);if(W<2){if(q(`[bridge:session] CCR v2: registerWorker attempt ${W} failed, retrying: ${h}`),await i(2000,A),A.aborted)break;continue}Z.logError(`CCR v2 worker registration failed for session ${X}: ${h}`),yz(Error(`registerWorker failed: ${h}`)),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs))}if(!Yz)break}else s=xJ(z.sessionIngressUrl,X);let{spawnMode:l,dir:_z}=z,Uz=0;if(l==="worktree"&&(U===void 0||!MJ(X,U))){let W=Date.now();try{let C=await AJ(`bridge-${Iz(X)}`);Uz=Date.now()-W,k.set(X,{worktreePath:C.worktreePath,worktreeBranch:C.worktreeBranch,gitRoot:C.gitRoot,hookBased:C.hookBased}),_z=C.worktreePath,q(`[bridge:session] Created worktree for sessionId=${X} at ${C.worktreePath}`)}catch(C){let h=g(C);Z.logError(`Failed to create worktree for session ${X}: ${h}`),yz(Error(`Worktree creation failed: ${h}`)),f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs));break}}q(`[bridge:session] Spawning sessionId=${X} sdkUrl=${s}`);let e=pz(X),Lz=TK(O,{sessionId:X,sdkUrl:s,accessToken:D.session_ingress_token,useCcrV2:Yz,workerEpoch:Zz,onFirstUserMessage:(W)=>{if(d.has(e))return;d.add(e);let C=mK(W);Z.setSessionTitle(e,C),q(`[bridge:title] derived title for ${e}: ${C}`),import("./createSession-1.1.4-739bg1q2.mjs").then(({updateBridgeSessionTitle:h})=>h(e,C,{baseUrl:z.apiBaseUrl})).catch((h)=>q(`[bridge:title] failed to update title for ${e}: ${h}`,{level:"error"}))}},_z);if(typeof Lz==="string"){Z.logError(`Failed to spawn session ${X}: ${Lz}`);let W=k.get(X);if(W)k.delete(X),o(vz(W.worktreePath,W.worktreeBranch,W.gitRoot,W.hookBased).catch((C)=>Z.logVerbose(`Failed to remove worktree ${W.worktreePath}: ${g(C)}`)));f.add(V.id),o(kz(Y,J,V.id,Z,B.stopWorkBaseDelayMs));break}let Dz=Lz,Az=Date.now()-c;zz("tengu_bridge_session_started",{active_sessions:N.size,spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz,inProtectedNamespace:BJ()}),Wz("info","bridge_session_started",{spawn_mode:l,in_worktree:k.has(X),spawn_duration_ms:Az,worktree_create_ms:Uz}),N.set(X,Dz),E.set(X,V.id),x.set(X,D.session_ingress_token),P.set(X,e);let wz=Date.now();M.set(X,wz),Z.logSessionStart(X,`Session ${X}`);let Ez=Iz(X),jz;if(z.debugFile){let W=z.debugFile.lastIndexOf(".");if(W>0)jz=`${z.debugFile.slice(0,W)}-${Ez}${z.debugFile.slice(W)}`;else jz=`${z.debugFile}-${Ez}`}else if(z.verbose)jz=LK(AK(),"claude",`bridge-session-${Ez}.log`);if(jz)Z.logVerbose(`Debug log: ${jz}`);Z.addSession(e,UJ(e,z.sessionIngressUrl)),Oz(),Z.setAttached(e),uK(e,z.apiBaseUrl).then((W)=>{if(W&&N.has(X))d.add(e),Z.setSessionTitle(e,W),q(`[bridge:title] server title for ${e}: ${W}`)}).catch((W)=>q(`[bridge:title] failed to fetch title for ${e}: ${W}`,{level:"error"}));let Bz=z.sessionTimeoutMs??EJ;if(Bz>0){let W=setTimeout(fK,Bz,X,Bz,Z,b,Dz);_.set(X,W)}if(Yz)m.add(X);a?.schedule(X,D.session_ingress_token),Dz.done.then(Jz(X,wz,Dz));break}default:await v(),q(`[bridge:work] Unknown work type: ${u}, skipping`);break}if(H){let X=S.signal();if(Q.non_exclusive_heartbeat_interval_ms>0)await Xz(),await i(Q.non_exclusive_heartbeat_interval_ms,X.signal);else if(Q.multisession_poll_interval_ms_at_capacity>0)await i(Q.multisession_poll_interval_ms_at_capacity,X.signal);X.cleanup()}}catch(V){if(A.aborted)break;if(V instanceof xz){if(Gz=!0,cz(V.errorType))Z.logStatus(V.message);else if(iz(V))q(`[bridge:work] Suppressed 403 error: ${V.message}`);else Z.logError(V.message),yz(V);zz("tengu_bridge_fatal_error",{status:V.status,error_type:V.errorType}),Wz(cz(V.errorType)?"info":"error","bridge_fatal_error",{status:V.status,error_type:V.errorType});break}let y=LJ(V);if(MK(V)||wK(V)){let H=Date.now();if(j!==null&&H-j>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-j)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-j}),p=null,Vz=0,$=null,t=0;if(j=H,!p)p=H;let D=H-p;if(D>=B.connGiveUpMs){Z.logError(`Server unreachable for ${Math.round(D/60000)} minutes, giving up.`),zz("tengu_bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"connection",elapsed_ms:D}),Gz=!0;break}$=null,t=0,Vz=Vz?Math.min(Vz*2,B.connCapMs):B.connInitialMs;let v=dz(Vz);if(Z.logVerbose(`Connection error, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${y}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}else{let H=Date.now();if(j!==null&&H-j>FJ(B))q(`[bridge:work] Detected system sleep (${Math.round((H-j)/1000)}s gap), resetting error budget`),Wz("info","bridge_poll_sleep_detected",{gapMs:H-j}),p=null,Vz=0,$=null,t=0;if(j=H,!$)$=H;let D=H-$;if(D>=B.generalGiveUpMs){Z.logError(`Persistent errors for ${Math.round(D/60000)} minutes, giving up.`),zz("tengu_bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Wz("error","bridge_poll_give_up",{error_type:"general",elapsed_ms:D}),Gz=!0;break}p=null,Vz=0,t=t?Math.min(t*2,B.generalCapMs):B.generalInitialMs;let v=dz(t);if(Z.logVerbose(`Poll failed, retrying in ${bz(v)} (${Math.round(D/1000)}s elapsed): ${y}`),Z.updateReconnectingStatus(bz(v),qz(D)),Tz().non_exclusive_heartbeat_interval_ms>0)await Xz();await i(v,A)}}}Qz(),Z.clearStatus();let Kz=Date.now()-$z;zz("tengu_bridge_shutdown",{active_sessions:N.size,loop_duration_ms:Kz}),Wz("info","bridge_shutdown",{active_sessions:N.size,loop_duration_ms:Kz});let r=new Set(N.keys());if(U)r.add(U);let Mz=new Map(P);if(N.size>0){q(`[bridge:shutdown] Shutting down ${N.size} active session(s)`),Z.logStatus(`Shutting down ${N.size} active session(s)…`);let Q=new Map(E);for(let[y,H]of N.entries())q(`[bridge:shutdown] Sending SIGTERM to sessionId=${y}`),H.kill();let V=new AbortController;await Promise.race([Promise.allSettled([...N.values()].map((y)=>y.done)),i(B.shutdownGraceMs??30000,V.signal)]),V.abort();for(let[y,H]of N.entries())q(`[bridge:shutdown] Force-killing stuck sessionId=${y}`),H.forceKill();for(let y of _.values())clearTimeout(y);if(_.clear(),a?.cancelAll(),k.size>0){let y=[...k.values()];k.clear(),q(`[bridge:shutdown] Cleaning up ${y.length} worktree(s)`),await Promise.allSettled(y.map((H)=>vz(H.worktreePath,H.worktreeBranch,H.gitRoot,H.hookBased)))}await Promise.allSettled([...Q.entries()].map(([y,H])=>{return Y.stopWork(J,H,!0).catch((D)=>Z.logVerbose(`Failed to stop work ${H} for session ${y}: ${g(D)}`))}))}if(n.size>0)await Promise.allSettled([...n]);if(r.size>0)q(`[bridge:shutdown] Archiving ${r.size} session(s)`),await Promise.allSettled([...r].map((Q)=>Y.archiveSession(Mz.get(Q)??pz(Q)).catch((V)=>Z.logVerbose(`Failed to archive session ${Q}: ${g(V)}`))));try{await Y.deregisterEnvironment(J),q("[bridge:shutdown] Environment deregistered, bridge offline"),Z.logVerbose("Environment deregistered.")}catch(Q){Z.logVerbose(`Failed to deregister environment: ${g(Q)}`)}let{clearBridgePointer:Fz}=await import("./bridgePointer-1.1.4-qw0te2bm.mjs");await Fz(z.dir),Z.logVerbose("Environment offline.")}var xK=new Set(["ECONNREFUSED","ECONNRESET","ETIMEDOUT","ENETUNREACH","EHOSTUNREACH"]);function MK(z){if(z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&xK.has(z.code))return!0;return!1}function wK(z){return!!z&&typeof z==="object"&&"code"in z&&typeof z.code==="string"&&z.code==="ERR_BAD_RESPONSE"}function dz(z){return Math.max(0,z+z*0.25*(2*Math.random()-1))}function bz(z){return z>=1000?`${(z/1000).toFixed(1)}s`:`${Math.round(z)}ms`}async function kz(z,J,K,Y,O=1000){for(let R=1;R<=3;R++)try{await z.stopWork(J,K,!1),q(`[bridge:work] stopWork succeeded for workId=${K} on attempt ${R}/3`);return}catch(B){if(B instanceof xz){if(iz(B))q(`[bridge:work] Suppressed stopWork 403 for ${K}: ${B.message}`);else Y.logError(`Failed to stop work ${K}: ${B.message}`);Wz("error","bridge_stop_work_failed",{attempts:R,fatal:!0});return}let U=g(B);if(R<3){let F=dz(O*Math.pow(2,R-1));Y.logVerbose(`Failed to stop work ${K} (attempt ${R}/3), retrying in ${bz(F)}: ${U}`),await i(F)}else Y.logError(`Failed to stop work ${K} after 3 attempts: ${U}`),Wz("error","bridge_stop_work_failed",{attempts:3})}}function fK(z,J,K,Y,O){q(`[bridge:session] sessionId=${z} timed out after ${qz(J)}`),zz("tengu_bridge_session_timeout",{timeout_ms:J}),K.logSessionFailed(z,`Session timed out after ${qz(J)}`),Y.add(z),O.kill()}var kK=["session","same-dir","worktree"];function bK(z){if(z==="session")return"single-session";if(z==="same-dir")return"same-dir";if(z==="worktree")return"worktree";return`--spawn requires one of: ${kK.join(", ")} (got: ${z??"<missing>"})`}function IK(z){let J=z===void 0?NaN:parseInt(z,10);if(isNaN(J)||J<1)return`--capacity requires a positive integer (got: ${z??"<missing>"})`;return J}function vK(z){let J=!1,K=!1,Y,O,Z,R,B=!1,U,F,L,A,N=!1;for(let E=0;E<z.length;E++){let P=z[E];if(P==="--help"||P==="-h")B=!0;else if(P==="--verbose"||P==="-v")J=!0;else if(P==="--sandbox")K=!0;else if(P==="--no-sandbox")K=!1;else if(P==="--debug-file"&&E+1<z.length)Y=lz(z[++E]);else if(P.startsWith("--debug-file="))Y=lz(P.slice(13));else if(P==="--session-timeout"&&E+1<z.length)O=parseInt(z[++E],10)*1000;else if(P.startsWith("--session-timeout="))O=parseInt(P.slice(18),10)*1000;else if(P==="--permission-mode"&&E+1<z.length)Z=z[++E];else if(P.startsWith("--permission-mode="))Z=P.slice(18);else if(P==="--name"&&E+1<z.length)R=z[++E];else if(P.startsWith("--name="))R=P.slice(7);else if(P==="--spawn"||P.startsWith("--spawn=")){if(U!==void 0)return M("--spawn may only be specified once");let x=P.startsWith("--spawn=")?P.slice(8):z[++E],_=bK(x);if(_==="single-session"||_==="same-dir"||_==="worktree")U=_;else return M(_)}else if(P==="--capacity"||P.startsWith("--capacity=")){if(F!==void 0)return M("--capacity may only be specified once");let x=P.startsWith("--capacity=")?P.slice(11):z[++E],_=IK(x);if(typeof _==="number")F=_;else return M(_)}else if(P==="--create-session-in-dir")L=!0;else if(P==="--no-create-session-in-dir")L=!1;else return M(`Unknown argument: ${P}
|
|
38
|
+
Run 'claude remote-control --help' for usage.`)}if(U==="single-session"&&F!==void 0)return M("--capacity cannot be used with --spawn=session (single-session mode has fixed capacity 1).");if((A||N)&&(U!==void 0||F!==void 0||L!==void 0))return M("--session-id and --continue cannot be used with --spawn, --capacity, or --create-session-in-dir.");if(A&&N)return M("--session-id and --continue cannot be used together.");return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N,help:B};function M(E){return{verbose:J,sandbox:K,debugFile:Y,sessionTimeoutMs:O,permissionMode:Z,name:R,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N,help:B,error:E}}}async function hK(){let{EXTERNAL_PERMISSION_MODES:z}=await import("./permissions-1.1.4-4g141c3c.mjs"),J=z.join(", "),K=await hJ(),Y=K?` --spawn <mode> Spawn mode: same-dir, worktree, session
|
|
39
|
+
(default: same-dir)
|
|
40
|
+
--capacity <N> Max concurrent sessions in worktree or
|
|
41
|
+
same-dir mode (default: ${vJ})
|
|
42
|
+
--[no-]create-session-in-dir Pre-create a session in the current
|
|
43
|
+
directory; in worktree mode this session
|
|
44
|
+
stays in cwd while on-demand sessions get
|
|
45
|
+
isolated worktrees (default: on)
|
|
46
|
+
`:"",R=`
|
|
47
|
+
Remote Control - Connect your local environment to claude.ai/code
|
|
48
|
+
|
|
49
|
+
USAGE
|
|
50
|
+
claude remote-control [options]
|
|
51
|
+
OPTIONS
|
|
52
|
+
--name <name> Name for the session (shown in claude.ai/code)
|
|
53
|
+
--permission-mode <mode> Permission mode for spawned sessions
|
|
54
|
+
(${J})
|
|
55
|
+
--debug-file <path> Write debug logs to file
|
|
56
|
+
-v, --verbose Enable verbose output
|
|
57
|
+
-h, --help Show this help
|
|
58
|
+
${Y}
|
|
59
|
+
DESCRIPTION
|
|
60
|
+
Remote Control allows you to control sessions on your local device from
|
|
61
|
+
claude.ai/code (https://claude.ai/code). Run this command in the
|
|
62
|
+
directory you want to work in, then connect from the Claude app or web.
|
|
63
|
+
${K?`
|
|
64
|
+
Remote Control runs as a persistent server that accepts multiple concurrent
|
|
65
|
+
sessions in the current directory. One session is pre-created on start so
|
|
66
|
+
you have somewhere to type immediately. Use --spawn=worktree to isolate
|
|
67
|
+
each on-demand session in its own git worktree, or --spawn=session for
|
|
68
|
+
the classic single-session mode (exits when that session ends). Press 'w'
|
|
69
|
+
during runtime to toggle between same-dir and worktree.
|
|
70
|
+
`:""}
|
|
71
|
+
NOTES
|
|
72
|
+
- You must be logged in with a Claude account that has a subscription
|
|
73
|
+
- Run \`claude\` first in the directory to accept the workspace trust dialog
|
|
74
|
+
${K?` - Worktree mode requires a git repository or WorktreeCreate/WorktreeRemove hooks
|
|
75
|
+
`:""}`;console.log(R)}var SK=80;function mK(z){let J=z.replace(/\s+/g," ").trim();return Rz(J,SK)}async function uK(z,J){let{getBridgeSession:K}=await import("./createSession-1.1.4-739bg1q2.mjs");return(await K(z,{baseUrl:J}))?.title||void 0}async function kZ(z){let J=vK(z);if(J.help){await hK();return}if(J.error)console.error(`Error: ${J.error}`),process.exit(1);let{verbose:K,sandbox:Y,debugFile:O,sessionTimeoutMs:Z,permissionMode:R,name:B,spawnMode:U,capacity:F,createSessionInDir:L,sessionId:A,continueSession:N}=J,M=A,E,P=U!==void 0||F!==void 0||L!==void 0;if(R!==void 0){let{PERMISSION_MODES:W}=await import("./permissions-1.1.4-4g141c3c.mjs"),C=W;if(!C.includes(R))console.error(`Error: Invalid permission mode '${R}'. Valid modes: ${C.join(", ")}`),process.exit(1)}let x=lz("."),{enableConfigs:_,checkHasTrustDialogAccepted:f}=await import("./config-1.1.4-jb46a3qp.mjs");_();let{initSinks:k}=await import("./sinks-1.1.4-9g0pah73.mjs");k();let b=await hJ();if(P&&!b)await NJ("tengu_bridge_multi_session_denied",{used_spawn:U!==void 0,used_capacity:F!==void 0,used_create_session_in_dir:L!==void 0}),await Promise.race([Promise.all([DJ(),RJ()]),i(500,void 0,{unref:!0})]).catch(()=>{}),console.error("Error: Multi-session Remote Control is not enabled for your account yet."),process.exit(1);let{setOriginalCwd:d,setCwdState:S}=await import("./state-1.1.4-rm5651xg.mjs");if(d(x),S(x),!f())console.error(`Error: Workspace not trusted. Please run \`claude\` in ${x} first to review and accept the workspace trust dialog.`),process.exit(1);let{clearOAuthTokenCache:Xz,checkAndRefreshOAuthTokenIfNeeded:m}=await import("./auth-1.1.4-d8jp870f.mjs"),{getBridgeAccessToken:a,getBridgeBaseUrl:$z}=await import("./bridgeConfig-1.1.4-p3jq4sh0.mjs");if(!a())console.error(oz),process.exit(1);let{getGlobalConfig:o,saveGlobalConfig:Vz,getCurrentProjectConfig:t,saveCurrentProjectConfig:p}=await import("./config-1.1.4-jb46a3qp.mjs");if(!o().remoteDialogSeen){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
|
|
76
|
+
Remote Control lets you access this CLI session from the web (claude.ai/code)
|
|
77
|
+
or the Claude app, so you can pick up where you left off on any device.
|
|
78
|
+
|
|
79
|
+
You can disconnect remote access anytime by running /remote-control again.
|
|
80
|
+
`);let h=await new Promise((Hz)=>{C.question("Enable Remote Control? (y/n) ",Hz)});if(C.close(),Vz((Hz)=>{if(Hz.remoteDialogSeen)return Hz;return{...Hz,remoteDialogSeen:!0}}),h.toLowerCase()!=="y"&&h.toLowerCase()!=="yes")process.exit(0)}let $=$z();if($.startsWith("http://")&&!$.includes("localhost")&&!$.includes("127.0.0.1"))console.error("Error: Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed."),process.exit(1);let j=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||$,{getBranch:w,getRemoteUrl:Gz,findGitRoot:Nz}=await import("./git-1.1.4-ress16mq.mjs"),{hasWorktreeCreateHook:Oz}=await import("./hooks-1.1.4-h1zy1fdm.mjs"),Qz=Oz()||Nz(x)!==null,Jz=b?t().remoteControlSpawnMode:void 0;if(Jz==="worktree"&&!Qz)console.error("Warning: Saved spawn mode is worktree but this directory is not a git repository. Falling back to same-dir."),Jz=void 0,p((W)=>{if(W.remoteControlSpawnMode===void 0)return W;return{...W,remoteControlSpawnMode:void 0}});if(b&&!Jz&&Qz&&U===void 0&&!M&&process.stdin.isTTY){let C=(await import("readline")).createInterface({input:process.stdin,output:process.stdout});console.log(`
|
|
81
|
+
Claude Remote Control is launching in spawn mode which lets you create new sessions in this project from Claude Code on Web or your Mobile app. Learn more here: https://code.claude.com/docs/en/remote-control
|
|
82
|
+
|
|
83
|
+
Spawn mode for this project:
|
|
84
|
+
`+` [1] same-dir — sessions share the current directory (default)
|
|
85
|
+
`+` [2] worktree — each session gets an isolated git worktree
|
|
86
|
+
|
|
87
|
+
`+`This can be changed later or explicitly set with --spawn=same-dir or --spawn=worktree.
|
|
88
|
+
`);let h=await new Promise((Pz)=>{C.question("Choose [1/2] (default: 1): ",Pz)});C.close();let Hz=h.trim()==="2"?"worktree":"same-dir";Jz=Hz,zz("tengu_bridge_spawn_mode_chosen",{spawn_mode:Hz}),p((Pz)=>{if(Pz.remoteControlSpawnMode===Hz)return Pz;return{...Pz,remoteControlSpawnMode:Hz}})}let Kz,r;if(M)r="single-session",Kz="resume";else if(U!==void 0)r=U,Kz="flag";else if(Jz!==void 0)r=Jz,Kz="saved";else r=b?"same-dir":"single-session",Kz="gate_default";let Mz=r==="single-session"?1:F??vJ,Fz=L??!0;if(!M){let{clearBridgePointer:W}=await import("./bridgePointer-1.1.4-qw0te2bm.mjs");await W(x)}if(r==="worktree"&&!Qz)console.error("Error: Worktree mode requires a git repository or WorktreeCreate hooks configured. Use --spawn=session for single-session mode."),process.exit(1);let Q=await w(),V=await Gz(),y=IJ(),H=Sz(),{handleOAuth401Error:D}=await import("./auth-1.1.4-d8jp870f.mjs"),v=rz({baseUrl:$,getAccessToken:a,runnerVersion:"99.0.0",onDebug:q,onAuth401:D,getTrustedDeviceToken:az}),u,X={dir:x,machineName:y,branch:Q,gitRepoUrl:V,maxSessions:Mz,spawnMode:r,verbose:K,sandbox:Y,bridgeId:H,workerType:"claude_code",environmentId:Sz(),reuseEnvironmentId:u,apiBaseUrl:$,sessionIngressUrl:j,debugFile:O,sessionTimeoutMs:Z};q(`[bridge:init] bridgeId=${H}${u?` reuseEnvironmentId=${u}`:""} dir=${x} branch=${Q} gitRepoUrl=${V} machine=${y}`),q(`[bridge:init] apiBaseUrl=${$} sessionIngressUrl=${j}`),q(`[bridge:init] sandbox=${Y}${O?` debugFile=${O}`:""}`);let T,c;try{let W=await v.registerBridgeEnvironment(X);T=W.environment_id,c=W.environment_secret}catch(W){zz("tengu_bridge_registration_failed",{status:W instanceof xz?W.status:void 0}),console.error(W instanceof xz&&W.status===404?"Remote Control environments are not available for your account.":`Error: ${g(W)}`),process.exit(1)}let s;q(`[bridge:init] Registered, server environmentId=${T}`);let Yz=Tz();zz("tengu_bridge_started",{max_sessions:X.maxSessions,has_debug_file:!!X.debugFile,sandbox:X.sandbox,verbose:X.verbose,heartbeat_interval_ms:Yz.non_exclusive_heartbeat_interval_ms,spawn_mode:X.spawnMode,spawn_mode_source:Kz,multi_session_gate:b,pre_create_session:Fz,worktree_available:Qz}),Wz("info","bridge_started",{max_sessions:X.maxSessions,sandbox:X.sandbox,spawn_mode:X.spawnMode});let Zz=gz({execPath:process.execPath,scriptArgs:SJ(),env:process.env,verbose:K,sandbox:Y,debugFile:O,permissionMode:R,onDebug:q,onActivity:(W,C)=>{q(`[bridge:activity] sessionId=${W} ${C.type} ${C.summary}`)},onPermissionRequest:(W,C,h)=>{q(`[bridge:perm] sessionId=${W} tool=${C.request.tool_name} request_id=${C.request_id} (not auto-approving)`)}}),l=GJ({verbose:K}),{parseGitHubRepository:_z}=await import("./detectRepository-1.1.4-qs08vv7k.mjs"),Uz=V?_z(V):null,e=Uz?Uz.split("/").pop():UK(x);l.setRepoInfo(e,Q);let Lz=r!=="single-session"&&Qz;if(Lz)l.setSpawnModeDisplay(r);let Dz=(W)=>{if(W[0]===3||W[0]===4){process.emit("SIGINT");return}if(W[0]===32){l.toggleQr();return}if(W[0]===119){if(!Lz)return;let C=X.spawnMode==="same-dir"?"worktree":"same-dir";X.spawnMode=C,zz("tengu_bridge_spawn_mode_toggled",{spawn_mode:C}),l.logStatus(C==="worktree"?"Spawn mode: worktree (new sessions get isolated git worktrees)":"Spawn mode: same-dir (new sessions share the current directory)"),l.setSpawnModeDisplay(C),l.refreshDisplay(),p((h)=>{if(h.remoteControlSpawnMode===C)return h;return{...h,remoteControlSpawnMode:C}});return}};if(process.stdin.isTTY)process.stdin.setRawMode(!0),process.stdin.resume(),process.stdin.on("data",Dz);let Az=new AbortController,wz=()=>{q("[bridge:shutdown] SIGINT received, shutting down"),Az.abort()},Ez=()=>{q("[bridge:shutdown] SIGTERM received, shutting down"),Az.abort()};process.on("SIGINT",wz),process.on("SIGTERM",Ez);let jz=null;if(Fz){let{createBridgeSession:W}=await import("./createSession-1.1.4-739bg1q2.mjs");try{if(jz=await W({environmentId:T,title:B,events:[],gitRepoUrl:V,branch:Q,signal:Az.signal,baseUrl:$,getAccessToken:a,permissionMode:R}),jz)q(`[bridge:init] Created initial session ${jz}`)}catch(C){q(`[bridge:init] Session creation failed (non-fatal): ${g(C)}`)}}let Bz=null;if(jz&&r==="single-session"){let{writeBridgePointer:W}=await import("./bridgePointer-1.1.4-qw0te2bm.mjs"),C={sessionId:jz,environmentId:T,source:"standalone"};await W(X.dir,C),Bz=setInterval(W,3600000,X.dir,C),Bz.unref?.()}try{await mJ(X,T,c,v,Zz,l,Az.signal,void 0,jz??void 0,async()=>{return Xz(),await m(),a()})}finally{if(Bz!==null)clearInterval(Bz);if(process.off("SIGINT",wz),process.off("SIGTERM",Ez),process.stdin.off("data",Dz),process.stdin.isTTY)process.stdin.setRawMode(!1);process.stdin.pause()}process.exit(0)}class hz extends Error{constructor(z){super(z);this.name="BridgeHeadlessPermanentError"}}async function bZ(z,J){let{dir:K,log:Y}=z;process.chdir(K);let{setOriginalCwd:O,setCwdState:Z}=await import("./state-1.1.4-rm5651xg.mjs");O(K),Z(K);let{enableConfigs:R,checkHasTrustDialogAccepted:B}=await import("./config-1.1.4-jb46a3qp.mjs");R();let{initSinks:U}=await import("./sinks-1.1.4-9g0pah73.mjs");if(U(),!B())throw new hz(`Workspace not trusted: ${K}. Run \`claude\` in that directory first to accept the trust dialog.`);if(!z.getAccessToken())throw Error(oz);let{getBridgeBaseUrl:F}=await import("./bridgeConfig-1.1.4-p3jq4sh0.mjs"),L=F();if(L.startsWith("http://")&&!L.includes("localhost")&&!L.includes("127.0.0.1"))throw new hz("Remote Control base URL uses HTTP. Only HTTPS or localhost HTTP is allowed.");let A=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||L,{getBranch:N,getRemoteUrl:M,findGitRoot:E}=await import("./git-1.1.4-ress16mq.mjs"),{hasWorktreeCreateHook:P}=await import("./hooks-1.1.4-h1zy1fdm.mjs");if(z.spawnMode==="worktree"){if(!(P()||E(K)!==null))throw new hz(`Worktree mode requires a git repository or WorktreeCreate hooks. Directory ${K} has neither.`)}let x=await N(),_=await M(),f=IJ(),k=Sz(),b={dir:K,machineName:f,branch:x,gitRepoUrl:_,maxSessions:z.capacity,spawnMode:z.spawnMode,verbose:!1,sandbox:z.sandbox,bridgeId:k,workerType:"claude_code",environmentId:Sz(),apiBaseUrl:L,sessionIngressUrl:A,sessionTimeoutMs:z.sessionTimeoutMs},d=rz({baseUrl:L,getAccessToken:z.getAccessToken,runnerVersion:"99.0.0",onDebug:Y,onAuth401:z.onAuth401,getTrustedDeviceToken:az}),S,Xz;try{let n=await d.registerBridgeEnvironment(b);S=n.environment_id,Xz=n.environment_secret}catch(n){throw Error(`Bridge registration failed: ${g(n)}`)}let m=gz({execPath:process.execPath,scriptArgs:SJ(),env:process.env,verbose:!1,sandbox:z.sandbox,permissionMode:z.permissionMode,onDebug:Y}),a=gK(Y);a.printBanner(b,S);let $z;if(z.createSessionOnStart){let{createBridgeSession:n}=await import("./createSession-1.1.4-739bg1q2.mjs");try{let o=await n({environmentId:S,title:z.name,events:[],gitRepoUrl:_,branch:x,signal:J,baseUrl:L,getAccessToken:z.getAccessToken,permissionMode:z.permissionMode});if(o)$z=o,Y(`created initial session ${o}`)}catch(o){Y(`session pre-creation failed (non-fatal): ${g(o)}`)}}await mJ(b,S,Xz,d,m,a,J,void 0,$z,async()=>z.getAccessToken())}function gK(z){let J=()=>{};return{printBanner:(K,Y)=>z(`registered environmentId=${Y} dir=${K.dir} spawnMode=${K.spawnMode} capacity=${K.maxSessions}`),logSessionStart:(K,Y)=>z(`session start ${K}`),logSessionComplete:(K,Y)=>z(`session complete ${K} (${Y}ms)`),logSessionFailed:(K,Y)=>z(`session failed ${K}: ${Y}`),logStatus:z,logVerbose:z,logError:(K)=>z(`error: ${K}`),logReconnected:(K)=>z(`reconnected after ${K}ms`),addSession:(K,Y)=>z(`session attached ${K}`),removeSession:(K)=>z(`session detached ${K}`),updateIdleStatus:J,updateReconnectingStatus:J,updateSessionStatus:J,updateSessionActivity:J,updateSessionCount:J,updateFailedStatus:J,setSpawnModeDisplay:J,setRepoInfo:J,setAttached:J,setSessionTitle:J,clearStatus:J,toggleQr:J,refreshDisplay:J}}export{mJ as runBridgeLoop,bZ as runBridgeHeadless,vK as parseArgs,wK as isServerError,MK as isConnectionError,kZ as bridgeMain,hz as BridgeHeadlessPermanentError};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bia as Y,Dia as O,Eia as S,Fia as _,jia as A,kia as k,uia as G,via as N,yia as M}from"./cli-1.1.4-mzzr964a.mjs";import{Cka as R,cka as K,dka as W,hka as j,zka as C}from"./cli-1.1.4-53fvpymg.mjs";import"./cli-1.1.4-4cg8jz3d.mjs";import{$ka as y,ela as c}from"./cli-1.1.4-hzx821eq.mjs";import"./cli-1.1.4-c7a7aezt.mjs";import"./cli-1.1.4-0r232fpm.mjs";import"./cli-1.1.4-x8m7spde.mjs";import"./cli-1.1.4-rmpkkwfr.mjs";import"./cli-1.1.4-xxe2ztwq.mjs";O();R();c();k();_();M();j();import{mkdir as m,readFile as z,stat as E,unlink as T,writeFile as f}from"fs/promises";import{dirname as B,join as b}from"path";var I=50,D=14400000,u=S(()=>Y.object({sessionId:Y.string(),environmentId:Y.string(),source:Y.enum(["standalone","repl"])}));function J(q){return b(N(),G(q),"bridge-pointer.json")}async function g(q,x){let v=J(q);try{await m(B(v),{recursive:!0}),await f(v,K(x),"utf8"),C(`[bridge:pointer] wrote ${v}`)}catch(V){C(`[bridge:pointer] write failed: ${V}`,{level:"warn"})}}async function U(q){let x=J(q),v,V;try{V=(await E(x)).mtimeMs,v=await z(x,"utf8")}catch{return null}let Z=u().safeParse(F(v));if(!Z.success)return C(`[bridge:pointer] invalid schema, clearing: ${x}`),await X(q),null;let $=Math.max(0,Date.now()-V);if($>D)return C(`[bridge:pointer] stale (>4h mtime), clearing: ${x}`),await X(q),null;return{...Z.data,ageMs:$}}async function s(q){let x=await U(q);if(x)return{pointer:x,dir:q};let v=await A(q);if(v.length<=1)return null;if(v.length>I)return C(`[bridge:pointer] ${v.length} worktrees exceeds fanout cap ${I}, skipping`),null;let V=G(q),Z=v.filter((H)=>G(H)!==V),$=await Promise.all(Z.map(async(H)=>{let L=await U(H);return L?{pointer:L,dir:H}:null})),Q=null;for(let H of $)if(H&&(!Q||H.pointer.ageMs<Q.pointer.ageMs))Q=H;if(Q)C(`[bridge:pointer] fanout found pointer in worktree ${Q.dir} (ageMs=${Q.pointer.ageMs})`);return Q}async function X(q){let x=J(q);try{await T(x),C(`[bridge:pointer] cleared ${x}`)}catch(v){if(!y(v))C(`[bridge:pointer] clear failed: ${v}`,{level:"warn"})}}function F(q){try{return W(q)}catch{return null}}export{g as writeBridgePointer,s as readBridgePointerAcrossWorktrees,U as readBridgePointer,J as getBridgePointerPath,X as clearBridgePointer,D as BRIDGE_POINTER_TTL_MS};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Th as a,Uh as bJ}from"./cli-1.1.4-4esthaz8.mjs";import{Vh as x,Wh as AJ}from"./cli-1.1.4-mjtadp4r.mjs";import{$H as vJ,$Q as TJ,DE as kJ,Gx as i,Hx as HJ,Qn as m,Rn as UJ,SQ as r,SR as o,Ty as u,Vy as WJ,_H as $,eS as hJ,kU as s,lU as t,mU as DJ,xE as l}from"./cli-1.1.4-6z69geef.mjs";import"./cli-1.1.4-yprszvr2.mjs";import"./cli-1.1.4-z9z0gn83.mjs";import"./cli-1.1.4-hbx9ye2g.mjs";import"./cli-1.1.4-ckmk4b1r.mjs";import"./cli-1.1.4-x6hb06sj.mjs";import"./cli-1.1.4-9x9a885k.mjs";import"./cli-1.1.4-3d01w53d.mjs";import"./cli-1.1.4-6raycx0k.mjs";import"./cli-1.1.4-17x2wrkx.mjs";import"./cli-1.1.4-y94ewbpk.mjs";import"./cli-1.1.4-rh4x4rv5.mjs";import"./cli-1.1.4-4qsk7zj5.mjs";import"./cli-1.1.4-vcg96p1c.mjs";import"./cli-1.1.4-5dc9c513.mjs";import"./cli-1.1.4-shrznr3s.mjs";import"./cli-1.1.4-qjgn7a4a.mjs";import"./cli-1.1.4-aj4f4c5s.mjs";import"./cli-1.1.4-jeyegjk6.mjs";import{KY as c,MY as IJ,nY as g,oY as QJ}from"./cli-1.1.4-k6ebhyp0.mjs";import"./cli-1.1.4-scm26s6m.mjs";import{DZ as GJ,H1 as NJ,a1 as k,c1 as v,t1 as j,v1 as KJ}from"./cli-1.1.4-nh3sscxn.mjs";import"./cli-1.1.4-wx5t4xvj.mjs";import"./cli-1.1.4-3zzdhas7.mjs";import"./cli-1.1.4-m3gsmnfa.mjs";import"./cli-1.1.4-6c5tryej.mjs";import"./cli-1.1.4-6h6yt6jp.mjs";import"./cli-1.1.4-hdwdbbzk.mjs";import"./cli-1.1.4-cknrfh5p.mjs";import"./cli-1.1.4-je9x0pvr.mjs";import"./cli-1.1.4-0smy947g.mjs";import"./cli-1.1.4-ss2jxen1.mjs";import"./cli-1.1.4-p7tcq8ah.mjs";import{o4 as F,p4 as W,q4 as d}from"./cli-1.1.4-40z19hth.mjs";import{r4 as zJ}from"./cli-1.1.4-9ms3b4tc.mjs";import"./cli-1.1.4-w4b4vhj9.mjs";import"./cli-1.1.4-v67jx2fw.mjs";import"./cli-1.1.4-g6nryz17.mjs";import"./cli-1.1.4-my1g33fn.mjs";import"./cli-1.1.4-fk420f57.mjs";import"./cli-1.1.4-0earmzgk.mjs";import"./cli-1.1.4-sm3xmtbn.mjs";import"./cli-1.1.4-0nxqjpe0.mjs";import"./cli-1.1.4-m11fz0v8.mjs";import"./cli-1.1.4-cwnt4by7.mjs";import{Lba as p,Mba as C,Uea as S,cca as ZJ,qfa as FJ}from"./cli-1.1.4-6c3fshef.mjs";import"./cli-1.1.4-rc28sjtd.mjs";import"./cli-1.1.4-jscqx4px.mjs";import"./cli-1.1.4-wt23b5bp.mjs";import"./cli-1.1.4-qecgken2.mjs";import"./cli-1.1.4-mzzr964a.mjs";import"./cli-1.1.4-f7y4b0px.mjs";import"./cli-1.1.4-m312ygm6.mjs";import"./cli-1.1.4-te2372tc.mjs";import"./cli-1.1.4-53fvpymg.mjs";import"./cli-1.1.4-4cg8jz3d.mjs";import{Zka as f,ela as YJ}from"./cli-1.1.4-hzx821eq.mjs";import"./cli-1.1.4-c7a7aezt.mjs";import"./cli-1.1.4-0r232fpm.mjs";import"./cli-1.1.4-x8m7spde.mjs";import"./cli-1.1.4-rmpkkwfr.mjs";import"./cli-1.1.4-0a20jx5n.mjs";import"./cli-1.1.4-z8f8hc8t.mjs";import"./cli-1.1.4-64y9aspn.mjs";import{Esa as R,Isa as XJ}from"./cli-1.1.4-xxe2ztwq.mjs";function EJ(V){let J=n.c(25),{question:Y,context:z,onDone:G}=V,[Z,e]=N.useState(null),[K,y]=N.useState(null),[P,JJ]=N.useState(0),T=N.useRef(null),{rows:VJ}=c(g()),A;if(J[0]===Symbol.for("react.memo_cache_sentinel"))A=()=>JJ(qJ),J[0]=A;else A=J[0];j(A,Z||K?null:80);let b;if(J[1]!==G)b=function(X){if(X.key==="escape"||X.key==="return"||X.key===" "||X.ctrl&&(X.key==="c"||X.key==="d")){X.preventDefault(),G(void 0,{display:"skip"});return}if(X.key==="up"||X.ctrl&&X.key==="p")X.preventDefault(),T.current?.scrollBy(-_);if(X.key==="down"||X.ctrl&&X.key==="n")X.preventDefault(),T.current?.scrollBy(_)},J[1]=G,J[2]=b;else b=J[2];let h=b,w,L;if(J[3]!==z||J[4]!==Y)w=()=>{let B=m();return async function(){try{let O=await MJ(z),M=await a({question:Y,cacheSafeParams:O});if(!B.signal.aborted)if(M.response)e(M.response);else y("No response received")}catch(O){let M=O;if(!B.signal.aborted)y(f(M)||"Failed to get response")}}(),()=>{B.abort()}},L=[Y,z],J[3]=z,J[4]=Y,J[5]=w,J[6]=L;else w=J[5],L=J[6];N.useEffect(w,L);let D=Math.max(5,VJ-wJ-LJ),E;if(J[7]===Symbol.for("react.memo_cache_sentinel"))E=W(v,{color:"warning",bold:!0,children:["/btw"," "]}),J[7]=E;else E=J[7];let Q;if(J[8]!==Y)Q=W(k,{children:[E,F(v,{dimColor:!0,children:Y})]}),J[8]=Y,J[9]=Q;else Q=J[9];let U;if(J[10]!==K||J[11]!==P||J[12]!==Z)U=F(x,{ref:T,flexDirection:"column",flexGrow:1,children:K?F(v,{color:"error",children:K}):Z?F(u,{children:Z}):W(k,{children:[F($,{frame:P,messageColor:"warning"}),F(v,{color:"warning",children:"Answering..."})]})}),J[10]=K,J[11]=P,J[12]=Z,J[13]=U;else U=J[13];let I;if(J[14]!==D||J[15]!==U)I=F(k,{marginTop:1,marginLeft:2,maxHeight:D,children:U}),J[14]=D,J[15]=U,J[16]=I;else I=J[16];let H;if(J[17]!==K||J[18]!==Z)H=(Z||K)&&F(k,{marginTop:1,children:W(v,{dimColor:!0,children:[p,"/",C," to scroll · Space, Enter, or Escape to dismiss"]})}),J[17]=K,J[18]=Z,J[19]=H;else H=J[19];let q;if(J[20]!==h||J[21]!==Q||J[22]!==I||J[23]!==H)q=W(k,{flexDirection:"column",paddingLeft:2,marginTop:1,tabIndex:0,autoFocus:!0,onKeyDown:h,children:[Q,I,H]}),J[20]=h,J[21]=Q,J[22]=I,J[23]=H,J[24]=q;else q=J[24];return q}function qJ(V){return V+1}function BJ(V){let J=V.at(-1);if(J?.type==="assistant"&&J.message.stop_reason===null)return V.slice(0,-1);return V}async function MJ(V){let J=o(BJ(V.messages)),Y=l();if(Y)return{systemPrompt:Y.systemPrompt,userContext:Y.userContext,systemContext:Y.systemContext,toolUseContext:V,forkContextMessages:J};let[z,G,Z]=await Promise.all([r(V.options.tools,V.options.mainLoopModel,[],V.options.mcpClients),t(),s()]);return{systemPrompt:i(z),userContext:G,systemContext:Z,toolUseContext:V,forkContextMessages:J}}async function aJ(V,J,Y){let z=Y?.trim();if(!z)return V("Usage: /btw <your question>",{display:"system"}),null;return S((G)=>({...G,btwUseCount:G.btwUseCount+1})),F(EJ,{question:z,context:J,onDone:V})}var n,N,wJ=5,LJ=6,_=3;var PJ=XJ(()=>{KJ();WJ();vJ();ZJ();TJ();IJ();DJ();QJ();AJ();NJ();UJ();FJ();YJ();kJ();hJ();bJ();HJ();d();n=R(GJ(),1),N=R(zJ(),1)});PJ();export{aJ as call};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{EX as p,FX as f,GX as a,HX as S}from"./cli-1.1.4-qjgn7a4a.mjs";import{Uea as d,qfa as C}from"./cli-1.1.4-6c3fshef.mjs";import"./cli-1.1.4-rc28sjtd.mjs";import"./cli-1.1.4-jscqx4px.mjs";import"./cli-1.1.4-wt23b5bp.mjs";import"./cli-1.1.4-qecgken2.mjs";import"./cli-1.1.4-mzzr964a.mjs";import{jja as m,kja as y,lja as b}from"./cli-1.1.4-f7y4b0px.mjs";import"./cli-1.1.4-m312ygm6.mjs";import"./cli-1.1.4-te2372tc.mjs";import"./cli-1.1.4-53fvpymg.mjs";import"./cli-1.1.4-4cg8jz3d.mjs";import"./cli-1.1.4-hzx821eq.mjs";import"./cli-1.1.4-c7a7aezt.mjs";import"./cli-1.1.4-0r232fpm.mjs";import"./cli-1.1.4-x8m7spde.mjs";import"./cli-1.1.4-rmpkkwfr.mjs";import{Isa as g}from"./cli-1.1.4-xxe2ztwq.mjs";function R(t){let o=2166136261;for(let s=0;s<t.length;s++)o^=t.charCodeAt(s),o=Math.imul(o,16777619);return o>>>0}function r(t,o){return t[R(o)%t.length]}function M(t){return t.charAt(0).toUpperCase()+t.slice(1)}function O(){let t=f(),{bones:o}=p(`${t}:buddy`),s=r($,`${t}:prefix`),n=r(A,`${t}:suffix`),i=r(w,`${t}:personality`);return{name:`${s}${n}`,personality:`${i}.`,hatchedAt:Date.now()}}function l(t,o,s=!1){t.setAppState((n)=>({...n,companionReaction:o,companionPetAt:s?Date.now():n.companionPetAt}))}function c(t){t(`Usage: /buddy [status|mute|unmute]
|
|
2
|
+
|
|
3
|
+
Run /buddy with no args to hatch your companion the first time, then pet it on later runs.`,{display:"system"})}async function X(t,o,s){let n=s?.trim().toLowerCase()??"";if(m.includes(n)||n===""){let e=a();if(n!==""||e){if(n!=="")return c(t),null}}if(m.includes(n))return c(t),null;if(y.includes(n)||n==="status"){let e=a();if(!e)return t("No buddy hatched yet. Run /buddy to hatch one.",{display:"system"}),null;return t(`${e.name} is your ${M(e.rarity)} ${e.species}. ${e.personality}`,{display:"system"}),null}if(n==="mute"||n==="unmute"){let e=n==="mute";if(d((u)=>({...u,companionMuted:e})),e)l(o,void 0);return t(`Buddy ${e?"muted":"unmuted"}.`,{display:"system"}),null}if(n!=="")return c(t),null;let i=a();if(!i){let e=O();return d((u)=>({...u,companion:e,companionMuted:!1})),i={...p(`${f()}:buddy`).bones,...e},l(o,`${i.name} the ${i.species} has hatched.`,!0),t(`${i.name} the ${i.species} is now your buddy. Run /buddy again to pet them.`,{display:"system"}),null}let h=`${i.name} ${r(E,`${Date.now()}:${i.name}`)}`;return l(o,h,!0),t(void 0,{display:"skip"}),null}var $,A,w,E;var L=g(()=>{C();S();b();$=["Byte","Echo","Glint","Miso","Nova","Pixel","Rune","Static","Vector","Whisk"],A=["bean","bit","bud","dot","ling","loop","moss","patch","puff","spark"],w=["Curious and quietly encouraging","A patient little watcher with strong debugging instincts","Playful, observant, and suspicious of flaky tests","Calm under pressure and fond of clean diffs","A tiny terminal gremlin who likes successful builds"],E=["leans into the headpat","does a proud little bounce","emits a content beep","looks delighted","wiggles happily"]});L();export{X as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./cli-1.1.4-xxe2ztwq.mjs";var g=()=>null,c=class{},q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},z=new Proxy(g,q),C=z,A=!0,B=null,D=new Proxy({},{get:()=>g}),E={parse:()=>({})},F=[],G=g,H=null,I=null,J=g,K=g,L={SUCCESS:0,FAILED:1},M=g,P=c,Q=c,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},u={active:g,with:(v,j)=>j()},w={OK:0,ERROR:1,UNSET:2},y="service.name",N="service.version",O="service.name",T="service.version",h={CUMULATIVE:0,DELTA:1},x={HISTOGRAM:0,SUM:1,GAUGE:2},d={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},f=c,m={};export{k as trace,M as resourceFromAttributes,K as plot,J as getSyntaxTheme,G as getMcpConfigForManifest,C as default,u as context,A as __stub,w as SpanStatusCode,Q as SimpleSpanProcessor,_ as SimpleLogRecordProcessor,m as SeverityNumber,B as SandboxViolationStore,E as SandboxRuntimeConfigSchema,D as SandboxManager,T as SEMRESATTRS_SERVICE_VERSION,O as SEMRESATTRS_SERVICE_NAME,P as Resource,f as PushMetricExporter,Y as PrometheusExporter,i as PeriodicExportingMetricReader,V as OTLPTraceExporter,X as OTLPMetricExporter,W as OTLPLogExporter,S as NodeTracerProvider,b as MeterProvider,Z as LoggerProvider,d as InstrumentType,L as ExportResultCode,x as DataPointType,I as ColorFile,H as ColorDiff,R as BatchSpanProcessor,$ as BatchLogRecordProcessor,U as BasicTracerProvider,F as BROWSER_TOOLS,h as AggregationTemporality,N as ATTR_SERVICE_VERSION,y as ATTR_SERVICE_NAME};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{U2 as h,Y2 as zz}from"./cli-1.1.4-6h6yt6jp.mjs";import"./cli-1.1.4-my1g33fn.mjs";import{T6 as m,r7 as e}from"./cli-1.1.4-fk420f57.mjs";import"./cli-1.1.4-0earmzgk.mjs";import"./cli-1.1.4-sm3xmtbn.mjs";import"./cli-1.1.4-0nxqjpe0.mjs";import"./cli-1.1.4-m11fz0v8.mjs";import{Bga as v,Ega as r,qga as y,yga as s}from"./cli-1.1.4-6c3fshef.mjs";import"./cli-1.1.4-rc28sjtd.mjs";import"./cli-1.1.4-jscqx4px.mjs";import"./cli-1.1.4-wt23b5bp.mjs";import"./cli-1.1.4-qecgken2.mjs";import"./cli-1.1.4-mzzr964a.mjs";import"./cli-1.1.4-f7y4b0px.mjs";import"./cli-1.1.4-m312ygm6.mjs";import"./cli-1.1.4-te2372tc.mjs";import{Cka as o,zka as k}from"./cli-1.1.4-53fvpymg.mjs";import"./cli-1.1.4-4cg8jz3d.mjs";import"./cli-1.1.4-hzx821eq.mjs";import"./cli-1.1.4-c7a7aezt.mjs";import{Zqa as a,_ma as b}from"./cli-1.1.4-0r232fpm.mjs";import"./cli-1.1.4-x8m7spde.mjs";import"./cli-1.1.4-rmpkkwfr.mjs";import"./cli-1.1.4-0a20jx5n.mjs";import"./cli-1.1.4-z8f8hc8t.mjs";import"./cli-1.1.4-64y9aspn.mjs";import{Isa as n}from"./cli-1.1.4-xxe2ztwq.mjs";function Nz(J){if(!J)return"unknown";return J.replace(/-\d{4,}$/,"").replace(/-latest$/,"").replace(/-preview$/,"")}function Y(J,Q){return Q.split(".").reduce((X,O)=>X!=null?X[O]:void 0,J)}async function R(J,Q,X,O){let q=Date.now(),V;try{V=await fetch(J,{method:"POST",headers:Q,body:JSON.stringify(X)})}catch(B){return{label:O,status:0,elapsed:Date.now()-q,headers:{},usage:null,responseId:null,error:B.message}}let A=Date.now()-q,U={};if(V.headers.forEach((B,w)=>{U[w]=B}),!V.ok){let B=await V.text().catch(()=>"");return{label:O,status:V.status,elapsed:A,headers:U,usage:null,responseId:null,error:B}}let L=await V.text(),$=null,T=null,_=J.endsWith("/responses");for(let B of L.split(`
|
|
2
|
+
|
|
3
|
+
`)){let w=B.split(`
|
|
4
|
+
`).map((x)=>x.trim()).filter(Boolean);if(_){let x=w.find((z)=>z.startsWith("event: ")),j=w.filter((z)=>z.startsWith("data: "));if(!x||!j.length)continue;let C=x.slice(7).trim();if(C==="response.completed"||C==="response.incomplete")try{let z=JSON.parse(j.map((W)=>W.slice(6)).join(`
|
|
5
|
+
`));$=z?.response?.usage??null,T=z?.response?.id??null}catch{}}else for(let x of w){if(!x.startsWith("data: "))continue;let j=x.slice(6).trim();if(j==="[DONE]")continue;try{let C=JSON.parse(j);if(C.usage)$=C.usage,T=C.id??null}catch{}}}return{label:O,status:V.status,elapsed:A,headers:U,usage:$,responseId:T,error:null}}function S(J){let Q=[`--- ${J.label} ---`];if(J.error)return Q.push(` ERROR (HTTP ${J.status}): ${J.error.slice(0,200)}`),Q.join(`
|
|
6
|
+
`);if(Q.push(` HTTP ${J.status} — ${J.elapsed}ms`),J.responseId)Q.push(` response.id: ${J.responseId}`);if(J.usage)Q.push(" Usage:"),Q.push(` ${JSON.stringify(J.usage,null,2).replace(/\n/g,`
|
|
7
|
+
`)}`);else Q.push(" Usage: null");for(let X of["openai-processing-ms","x-ratelimit-remaining","x-ratelimit-limit","x-ms-region","x-github-request-id","x-request-id"])if(J.headers[X])Q.push(` ${X}: ${J.headers[X]}`);return Q.join(`
|
|
8
|
+
`)}var Jz,K,M='Say "hello" and nothing else.',g=3000,jz=async(J)=>{let Q=(J??"").trim().split(/\s+/).filter(Boolean),X=Q.includes("--no-key"),q=(Q.find((N)=>!N.startsWith("--"))||void 0)??m(),V=y({model:q}),A=v(),U=A?.transport==="github_copilot";if(U)h();let L=A?.apiKey??A?.extras?.githubToken??"";if(!L)return{type:"text",value:`No API key found. Make sure you are in an active OpenAI-compatible or GitHub Copilot session.
|
|
9
|
+
For GitHub Copilot: run /provider and choose GitHub Copilot.
|
|
10
|
+
For OpenAI-compatible: configure a profile via /provider.`};let $=V.transport==="codex_responses",T=$?"/responses":"/chat/completions",_=`${V.baseUrl}${T}`,B=Nz(V.resolvedModel),w=`${b()}:${B}`,x={"Content-Type":"application/json",Authorization:`Bearer ${L}`,originator:"claudin"};if(U)Object.assign(x,Jz);let j;if($)j={model:V.resolvedModel,instructions:K,input:[{type:"message",role:"user",content:[{type:"input_text",text:M}]}],stream:!0,...X?{}:{store:!1,prompt_cache_key:w}};else j={model:V.resolvedModel,messages:[{role:"system",content:K},{role:"user",content:M}],stream:!0,stream_options:{include_usage:!0},max_tokens:20,...X?{}:{store:!1,prompt_cache_key:w}};let C=[`[cache-probe] Starting cache probe${X?" (--no-key: cache params OMITTED)":""}`,` model: ${V.resolvedModel} (family: ${B})`,` transport: ${V.transport}`,` endpoint: ${_}`,` prompt_cache_key: ${X?"NOT SENT":w}`,` store: ${X?"NOT SENT":"false"}`,` system prompt: ~${Math.round(K.length/4)} tokens`,` delay between calls: ${g}ms`].join(`
|
|
11
|
+
`);k(C);let z=await R(_,x,j,"CALL 1 — Cold (no cache)");if(k(`[cache-probe]
|
|
12
|
+
${S(z)}`),z.error)return{type:"text",value:`Cache probe failed on first call: HTTP ${z.status}
|
|
13
|
+
${z.error.slice(0,300)}
|
|
14
|
+
|
|
15
|
+
Full details in debug log.`};await new Promise((N)=>setTimeout(N,g));let W=await R(_,x,j,"CALL 2 — Warm (cache expected)");k(`[cache-probe]
|
|
16
|
+
${S(W)}`);let c=["input_tokens","output_tokens","total_tokens","prompt_tokens","completion_tokens","input_tokens_details.cached_tokens","prompt_tokens_details.cached_tokens","output_tokens_details.reasoning_tokens"],Z=["[cache-probe] COMPARISON"];Z.push(` ${"Field".padEnd(42)} ${"Call 1".padStart(8)} ${"Call 2".padStart(8)} ${"Delta".padStart(8)}`),Z.push(` ${"-".repeat(72)}`);for(let N of c){let H=Y(z.usage,N),I=Y(W.usage,N);if(H===void 0&&I===void 0)continue;let i=typeof H==="number"&&typeof I==="number"?I-H:"";Z.push(` ${N.padEnd(42)} ${String(H??"-").padStart(8)} ${String(I??"-").padStart(8)} ${String(i).padStart(8)}`)}Z.push(""),Z.push(` Latency: ${z.elapsed}ms → ${W.elapsed}ms (${W.elapsed-z.elapsed>0?"+":""}${W.elapsed-z.elapsed}ms)`);for(let N of["openai-processing-ms","x-ms-region","x-ratelimit-remaining"]){let H=z.headers[N],I=W.headers[N];if(H||I)Z.push(` ${N}: ${H??"-"} → ${I??"-"}`)}let D=Y(W.usage,"input_tokens_details.cached_tokens")??Y(W.usage,"prompt_tokens_details.cached_tokens")??0,F=z.usage?.input_tokens??z.usage?.prompt_tokens??0,P=W.usage?.input_tokens??W.usage?.prompt_tokens??0,G;if(D>0){let N=P>0?Math.round(D/P*100):"?";G=`CACHE HIT: ${D} cached tokens (${N}% of input)`}else if(F===0&&P===0)G="INCONCLUSIVE: Server returns 0 input_tokens — cannot measure";else if(W.elapsed<z.elapsed*0.6&&F>100)G=`POSSIBLE SILENT CACHING: Call 2 was ${Math.round((1-W.elapsed/z.elapsed)*100)}% faster but no cached_tokens reported`;else G="NO CACHE DETECTED";Z.push(`
|
|
17
|
+
Verdict: ${G}`);function u(N){return{input_tokens:N?.input_tokens??0,output_tokens:N?.output_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:0}}function p(N){return{input_tokens:N?.prompt_tokens??0,output_tokens:N?.completion_tokens??0,cache_creation_input_tokens:0,cache_read_input_tokens:N?.prompt_tokens_details?.cached_tokens??0}}let f=$?u:p,d=f(z.usage),E=f(W.usage);if(Z.push(""),Z.push(` --- What main's shim reports (${$?"codexShim.makeUsage":"openaiShim.convertChunkUsage"}) ---`),Z.push(` Call 1: cache_read_input_tokens=${d.cache_read_input_tokens}`),Z.push(` Call 2: cache_read_input_tokens=${E.cache_read_input_tokens}`),$&&D>0)Z.push(` BUG: Server returned ${D} cached tokens but main's makeUsage() drops it → reports 0`);else if(!$&&E.cache_read_input_tokens>0)Z.push(" OK: Chat Completions path on main correctly reads cached_tokens");k(Z.join(`
|
|
18
|
+
`));let t=X?" (NO cache key sent)":"",l=$?"codexShim.makeUsage()":"openaiShim.convertChunkUsage()";return{type:"text",value:[`Cache Probe — ${V.resolvedModel} via ${$?"Responses API":"Chat Completions"}${t}`,"",`Call 1: ${z.elapsed}ms, input=${F}, cached=${Y(z.usage,"input_tokens_details.cached_tokens")??Y(z.usage,"prompt_tokens_details.cached_tokens")??0}`,`Call 2: ${W.elapsed}ms, input=${P}, cached=${D}`,"",G,"",`What main's ${l} reports:`,` Call 2 cache_read_input_tokens = ${E.cache_read_input_tokens}${$&&D>0?" ← BUG: server sent "+D+" but main drops it":""}`,"","Full details written to debug log."].join(`
|
|
19
|
+
`)}};var Qz=n(()=>{a();r();s();o();zz();e();Jz={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"},K=["You are a coding assistant. Answer concisely.","CONTEXT: User is working on a TypeScript project with Bun runtime.",...Array.from({length:80},(J,Q)=>`Rule ${Q+1}: Follow best practices for TypeScript including strict typing, error handling, testing, and clean code. Prefer explicit types over any. Use const assertions. Await all async operations.`)].join(`
|
|
20
|
+
|
|
21
|
+
`)});Qz();export{jz as call};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{a3 as L,b3 as P,c3 as $,g3 as Q,h3 as U,i3 as V,j3 as j}from"./cli-1.1.4-hdwdbbzk.mjs";import{Isa as Z}from"./cli-1.1.4-xxe2ztwq.mjs";function w(k,D){let G=new Date(k.timestamp).toISOString(),B=`${G.slice(0,10)} ${G.slice(11,19)}`,I=L(k.metrics);return` #${String(D+1).padStart(3)} ${B} ${k.label.padEnd(28).slice(0,28)} ${I}`}function K(k,D){return`${k.padEnd(18)}${P(D)}`}var v=20,O=async()=>{let k=V(),D=U(),G=Q();if(k.length===0)return{type:"text",value:`Cache stats
|
|
2
|
+
No API requests yet this session.
|
|
3
|
+
Start a turn and re-run /cache-stats to see results.`};let B=k.slice(-v),I=k.length-B.length,q=["Cache stats",""];q.push(K("Current turn:",G)),q.push(K("Session total:",D)),q.push(""),q.push(`Recent requests (${B.length}${I>0?` of ${k.length}, ${I} older omitted`:""}):`),q.push(" # time model cache");for(let[J,Y]of B.entries())q.push(w(Y,k.length-B.length+J));if(B.some((J)=>!J.metrics.supported))q.push(""),q.push(" N/A rows: provider API does not expose cache usage (GitHub Copilot, Ollama)."),q.push(" The request still ran normally — only the metric is unavailable.");return{type:"text",value:q.join(`
|
|
4
|
+
`)}};var A=Z(()=>{j();$()});A();export{O as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Zh as a,_h as b}from"./cli-1.1.4-m3hgkj60.mjs";import"./cli-1.1.4-h4pjzspp.mjs";import"./cli-1.1.4-smjkhzzj.mjs";import"./cli-1.1.4-6z69geef.mjs";import"./cli-1.1.4-yprszvr2.mjs";import"./cli-1.1.4-z9z0gn83.mjs";import"./cli-1.1.4-hbx9ye2g.mjs";import"./cli-1.1.4-ckmk4b1r.mjs";import"./cli-1.1.4-x6hb06sj.mjs";import"./cli-1.1.4-9x9a885k.mjs";import"./cli-1.1.4-3d01w53d.mjs";import"./cli-1.1.4-6raycx0k.mjs";import"./cli-1.1.4-17x2wrkx.mjs";import"./cli-1.1.4-y94ewbpk.mjs";import"./cli-1.1.4-rh4x4rv5.mjs";import"./cli-1.1.4-4qsk7zj5.mjs";import"./cli-1.1.4-vcg96p1c.mjs";import"./cli-1.1.4-5dc9c513.mjs";import"./cli-1.1.4-shrznr3s.mjs";import"./cli-1.1.4-qjgn7a4a.mjs";import"./cli-1.1.4-aj4f4c5s.mjs";import"./cli-1.1.4-jeyegjk6.mjs";import"./cli-1.1.4-k6ebhyp0.mjs";import"./cli-1.1.4-scm26s6m.mjs";import"./cli-1.1.4-nh3sscxn.mjs";import"./cli-1.1.4-wx5t4xvj.mjs";import"./cli-1.1.4-3zzdhas7.mjs";import"./cli-1.1.4-m3gsmnfa.mjs";import"./cli-1.1.4-6c5tryej.mjs";import"./cli-1.1.4-6h6yt6jp.mjs";import"./cli-1.1.4-hdwdbbzk.mjs";import"./cli-1.1.4-cknrfh5p.mjs";import"./cli-1.1.4-je9x0pvr.mjs";import"./cli-1.1.4-0smy947g.mjs";import"./cli-1.1.4-ss2jxen1.mjs";import"./cli-1.1.4-p7tcq8ah.mjs";import"./cli-1.1.4-40z19hth.mjs";import"./cli-1.1.4-9ms3b4tc.mjs";import"./cli-1.1.4-w4b4vhj9.mjs";import"./cli-1.1.4-v67jx2fw.mjs";import"./cli-1.1.4-g6nryz17.mjs";import"./cli-1.1.4-my1g33fn.mjs";import"./cli-1.1.4-fk420f57.mjs";import"./cli-1.1.4-0earmzgk.mjs";import"./cli-1.1.4-sm3xmtbn.mjs";import"./cli-1.1.4-0nxqjpe0.mjs";import"./cli-1.1.4-m11fz0v8.mjs";import"./cli-1.1.4-cwnt4by7.mjs";import"./cli-1.1.4-6c3fshef.mjs";import"./cli-1.1.4-rc28sjtd.mjs";import"./cli-1.1.4-jscqx4px.mjs";import"./cli-1.1.4-wt23b5bp.mjs";import"./cli-1.1.4-qecgken2.mjs";import"./cli-1.1.4-mzzr964a.mjs";import"./cli-1.1.4-f7y4b0px.mjs";import"./cli-1.1.4-m312ygm6.mjs";import"./cli-1.1.4-te2372tc.mjs";import"./cli-1.1.4-53fvpymg.mjs";import"./cli-1.1.4-4cg8jz3d.mjs";import"./cli-1.1.4-hzx821eq.mjs";import"./cli-1.1.4-c7a7aezt.mjs";import"./cli-1.1.4-0r232fpm.mjs";import"./cli-1.1.4-x8m7spde.mjs";import"./cli-1.1.4-rmpkkwfr.mjs";import"./cli-1.1.4-0a20jx5n.mjs";import"./cli-1.1.4-z8f8hc8t.mjs";import"./cli-1.1.4-64y9aspn.mjs";import"./cli-1.1.4-xxe2ztwq.mjs";b();export{a as clearSessionCaches};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Qga as X,T$ as V,U$ as W,V$ as J,Yga as H,bba as k,gba as N,vca as x,yca as A}from"./cli-1.1.4-6c3fshef.mjs";import"./cli-1.1.4-rc28sjtd.mjs";import"./cli-1.1.4-jscqx4px.mjs";import"./cli-1.1.4-wt23b5bp.mjs";import"./cli-1.1.4-qecgken2.mjs";import"./cli-1.1.4-mzzr964a.mjs";import"./cli-1.1.4-f7y4b0px.mjs";import"./cli-1.1.4-m312ygm6.mjs";import"./cli-1.1.4-te2372tc.mjs";import"./cli-1.1.4-53fvpymg.mjs";import"./cli-1.1.4-4cg8jz3d.mjs";import{_ka as b,ela as y}from"./cli-1.1.4-hzx821eq.mjs";import"./cli-1.1.4-c7a7aezt.mjs";import"./cli-1.1.4-0r232fpm.mjs";import"./cli-1.1.4-x8m7spde.mjs";import"./cli-1.1.4-rmpkkwfr.mjs";import"./cli-1.1.4-xxe2ztwq.mjs";A();y();N();H();J();import{readdir as L,readFile as U,stat as Z}from"fs/promises";import{homedir as _}from"os";import{join as $}from"path";async function F(){let B=W();if(!V.includes(B))throw Error(`Unsupported platform: ${B} - Claude Desktop integration only works on macOS and WSL.`);if(B==="macos")return $(_(),"Library","Application Support","Claude","claude_desktop_config.json");let K=process.env.USERPROFILE?process.env.USERPROFILE.replace(/\\/g,"/"):null;if(K){let q=`/mnt/c${K.replace(/^[A-Z]:/,"")}/AppData/Roaming/Claude/claude_desktop_config.json`;try{return await Z(q),q}catch{}}try{try{let q=await L("/mnt/c/Users",{withFileTypes:!0});for(let z of q){if(z.name==="Public"||z.name==="Default"||z.name==="Default User"||z.name==="All Users")continue;let I=$("/mnt/c/Users",z.name,"AppData","Roaming","Claude","claude_desktop_config.json");try{return await Z(I),I}catch{}}}catch{}}catch(G){X(G)}throw Error("Could not find Claude Desktop config file in Windows. Make sure Claude Desktop is installed on Windows.")}async function h(){if(!V.includes(W()))throw Error("Unsupported platform - Claude Desktop integration only works on macOS and WSL.");try{let B=await F(),K;try{K=await U(B,{encoding:"utf8"})}catch(I){if(b(I)==="ENOENT")return{};throw I}let G=k(K);if(!G||typeof G!=="object")return{};let q=G.mcpServers;if(!q||typeof q!=="object")return{};let z={};for(let[I,Q]of Object.entries(q)){if(!Q||typeof Q!=="object")continue;let Y=x().safeParse(Q);if(Y.success)z[I]=Y.data}return z}catch(B){return X(B),{}}}export{h as readClaudeDesktopMcpServers,F as getClaudeDesktopConfigPath};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$T as l,QT as a,RT as b,ST as c,TT as d,UT as e,VT as f,WT as g,XT as h,YT as i,ZT as j,_T as k,aU as m,bU as n,cU as o,dU as p,eU as q,fU as r,gU as s,hU as t}from"./cli-1.1.4-6z69geef.mjs";import"./cli-1.1.4-yprszvr2.mjs";import"./cli-1.1.4-z9z0gn83.mjs";import"./cli-1.1.4-hbx9ye2g.mjs";import"./cli-1.1.4-ckmk4b1r.mjs";import"./cli-1.1.4-x6hb06sj.mjs";import"./cli-1.1.4-9x9a885k.mjs";import"./cli-1.1.4-3d01w53d.mjs";import"./cli-1.1.4-6raycx0k.mjs";import"./cli-1.1.4-17x2wrkx.mjs";import"./cli-1.1.4-y94ewbpk.mjs";import"./cli-1.1.4-rh4x4rv5.mjs";import"./cli-1.1.4-4qsk7zj5.mjs";import"./cli-1.1.4-vcg96p1c.mjs";import"./cli-1.1.4-5dc9c513.mjs";import"./cli-1.1.4-shrznr3s.mjs";import"./cli-1.1.4-qjgn7a4a.mjs";import"./cli-1.1.4-aj4f4c5s.mjs";import"./cli-1.1.4-jeyegjk6.mjs";import"./cli-1.1.4-k6ebhyp0.mjs";import"./cli-1.1.4-scm26s6m.mjs";import"./cli-1.1.4-nh3sscxn.mjs";import"./cli-1.1.4-wx5t4xvj.mjs";import"./cli-1.1.4-3zzdhas7.mjs";import"./cli-1.1.4-m3gsmnfa.mjs";import"./cli-1.1.4-6c5tryej.mjs";import"./cli-1.1.4-6h6yt6jp.mjs";import"./cli-1.1.4-hdwdbbzk.mjs";import"./cli-1.1.4-cknrfh5p.mjs";import"./cli-1.1.4-je9x0pvr.mjs";import"./cli-1.1.4-0smy947g.mjs";import"./cli-1.1.4-ss2jxen1.mjs";import"./cli-1.1.4-p7tcq8ah.mjs";import"./cli-1.1.4-40z19hth.mjs";import"./cli-1.1.4-9ms3b4tc.mjs";import"./cli-1.1.4-w4b4vhj9.mjs";import"./cli-1.1.4-v67jx2fw.mjs";import"./cli-1.1.4-g6nryz17.mjs";import"./cli-1.1.4-my1g33fn.mjs";import"./cli-1.1.4-fk420f57.mjs";import"./cli-1.1.4-0earmzgk.mjs";import"./cli-1.1.4-sm3xmtbn.mjs";import"./cli-1.1.4-0nxqjpe0.mjs";import"./cli-1.1.4-m11fz0v8.mjs";import"./cli-1.1.4-cwnt4by7.mjs";import"./cli-1.1.4-6c3fshef.mjs";import"./cli-1.1.4-rc28sjtd.mjs";import"./cli-1.1.4-jscqx4px.mjs";import"./cli-1.1.4-wt23b5bp.mjs";import"./cli-1.1.4-qecgken2.mjs";import"./cli-1.1.4-mzzr964a.mjs";import"./cli-1.1.4-f7y4b0px.mjs";import"./cli-1.1.4-m312ygm6.mjs";import"./cli-1.1.4-te2372tc.mjs";import"./cli-1.1.4-53fvpymg.mjs";import"./cli-1.1.4-4cg8jz3d.mjs";import"./cli-1.1.4-hzx821eq.mjs";import"./cli-1.1.4-c7a7aezt.mjs";import"./cli-1.1.4-0r232fpm.mjs";import"./cli-1.1.4-x8m7spde.mjs";import"./cli-1.1.4-rmpkkwfr.mjs";import"./cli-1.1.4-0a20jx5n.mjs";import"./cli-1.1.4-z8f8hc8t.mjs";import"./cli-1.1.4-64y9aspn.mjs";import"./cli-1.1.4-xxe2ztwq.mjs";t();export{b as stripHtmlComments,q as shouldShowClaudeMdExternalIncludesWarning,g as resetGetMemoryFilesCache,c as processMemoryFile,d as processMdRules,n as processConditionedMdRules,r as isMemoryFilePath,p as hasExternalClaudeMdIncludes,l as getMemoryFilesForNestedDirectory,e as getMemoryFiles,k as getManagedAndUserConditionalRules,h as getLargeMemoryFiles,o as getExternalClaudeMdIncludes,m as getConditionalRulesForCwdLevelDirectory,j as getClaudeMds,s as getAllMemoryFilePaths,i as filterInjectedMemoryFiles,f as clearMemoryFileCaches,a as MAX_MEMORY_CHARACTER_COUNT};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Xh as a,Yh as l}from"./cli-1.1.4-etajychz.mjs";import"./cli-1.1.4-m3hgkj60.mjs";import"./cli-1.1.4-h4pjzspp.mjs";import"./cli-1.1.4-h2a0peqc.mjs";import"./cli-1.1.4-smjkhzzj.mjs";import"./cli-1.1.4-6z69geef.mjs";import"./cli-1.1.4-yprszvr2.mjs";import"./cli-1.1.4-z9z0gn83.mjs";import"./cli-1.1.4-hbx9ye2g.mjs";import"./cli-1.1.4-ckmk4b1r.mjs";import"./cli-1.1.4-x6hb06sj.mjs";import"./cli-1.1.4-9x9a885k.mjs";import"./cli-1.1.4-3d01w53d.mjs";import"./cli-1.1.4-6raycx0k.mjs";import"./cli-1.1.4-17x2wrkx.mjs";import"./cli-1.1.4-y94ewbpk.mjs";import"./cli-1.1.4-rh4x4rv5.mjs";import"./cli-1.1.4-4qsk7zj5.mjs";import"./cli-1.1.4-vcg96p1c.mjs";import"./cli-1.1.4-5dc9c513.mjs";import"./cli-1.1.4-shrznr3s.mjs";import"./cli-1.1.4-qjgn7a4a.mjs";import"./cli-1.1.4-aj4f4c5s.mjs";import"./cli-1.1.4-jeyegjk6.mjs";import"./cli-1.1.4-k6ebhyp0.mjs";import"./cli-1.1.4-scm26s6m.mjs";import"./cli-1.1.4-nh3sscxn.mjs";import"./cli-1.1.4-wx5t4xvj.mjs";import"./cli-1.1.4-3zzdhas7.mjs";import"./cli-1.1.4-m3gsmnfa.mjs";import"./cli-1.1.4-6c5tryej.mjs";import"./cli-1.1.4-6h6yt6jp.mjs";import"./cli-1.1.4-hdwdbbzk.mjs";import"./cli-1.1.4-cknrfh5p.mjs";import"./cli-1.1.4-je9x0pvr.mjs";import"./cli-1.1.4-0smy947g.mjs";import"./cli-1.1.4-ss2jxen1.mjs";import"./cli-1.1.4-p7tcq8ah.mjs";import"./cli-1.1.4-40z19hth.mjs";import"./cli-1.1.4-9ms3b4tc.mjs";import"./cli-1.1.4-w4b4vhj9.mjs";import"./cli-1.1.4-v67jx2fw.mjs";import"./cli-1.1.4-g6nryz17.mjs";import"./cli-1.1.4-my1g33fn.mjs";import"./cli-1.1.4-fk420f57.mjs";import"./cli-1.1.4-0earmzgk.mjs";import"./cli-1.1.4-sm3xmtbn.mjs";import"./cli-1.1.4-0nxqjpe0.mjs";import"./cli-1.1.4-m11fz0v8.mjs";import"./cli-1.1.4-cwnt4by7.mjs";import"./cli-1.1.4-6c3fshef.mjs";import"./cli-1.1.4-rc28sjtd.mjs";import"./cli-1.1.4-jscqx4px.mjs";import"./cli-1.1.4-wt23b5bp.mjs";import"./cli-1.1.4-qecgken2.mjs";import"./cli-1.1.4-mzzr964a.mjs";import"./cli-1.1.4-f7y4b0px.mjs";import"./cli-1.1.4-m312ygm6.mjs";import"./cli-1.1.4-te2372tc.mjs";import"./cli-1.1.4-53fvpymg.mjs";import"./cli-1.1.4-4cg8jz3d.mjs";import"./cli-1.1.4-hzx821eq.mjs";import"./cli-1.1.4-c7a7aezt.mjs";import"./cli-1.1.4-0r232fpm.mjs";import"./cli-1.1.4-x8m7spde.mjs";import"./cli-1.1.4-rmpkkwfr.mjs";import"./cli-1.1.4-0a20jx5n.mjs";import"./cli-1.1.4-z8f8hc8t.mjs";import"./cli-1.1.4-64y9aspn.mjs";import{Isa as t}from"./cli-1.1.4-xxe2ztwq.mjs";var n=async(e,o)=>{return await a(o),{type:"text",value:""}};var m=t(()=>{l()});m();export{n as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{w2 as a,x2 as b,y2 as c}from"./cli-1.1.4-3zzdhas7.mjs";import"./cli-1.1.4-xxe2ztwq.mjs";c();export{a as getClearTerminalSequence,b as clearTerminal};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Hc as l,Ic as m,Lc as u,Mc as y}from"./cli-1.1.4-1gz31tm3.mjs";import{xG as p,zG as b}from"./cli-1.1.4-6z69geef.mjs";import{H1 as C,a1 as s,c1 as e}from"./cli-1.1.4-nh3sscxn.mjs";import{o4 as i,p4 as r,q4 as g}from"./cli-1.1.4-40z19hth.mjs";import{r4 as M}from"./cli-1.1.4-9ms3b4tc.mjs";import{Esa as h,Isa as f}from"./cli-1.1.4-xxe2ztwq.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 Fc,w as Gc};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{ksa as r$,lsa as N6,msa as XQ,nsa as M1,osa as KQ}from"./cli-1.1.4-z8f8hc8t.mjs";import{Esa as n4,Gsa as J4,Hsa as Z8,Isa as T,Jsa as K4}from"./cli-1.1.4-xxe2ztwq.mjs";function t0($,Q){return function(){return $.apply(Q,arguments)}}var c4=()=>{};function f0($){return $!==null&&!m0($)&&$.constructor!==null&&!m0($.constructor)&&o($.constructor.isBuffer)&&$.constructor.isBuffer($)}function r6($){let Q;if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)Q=ArrayBuffer.isView($);else Q=$&&$.buffer&&h1($.buffer);return Q}function K$(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;return{}}function e0($,Q,{allOwnKeys:Y=!1}={}){if($===null||typeof $>"u")return;let W,G;if(typeof $!=="object")$=[$];if(P0($))for(W=0,G=$.length;W<G;W++)Q.call(null,$[W],W,$);else{if(f0($))return;let J=Y?Object.getOwnPropertyNames($):Object.keys($),Z=J.length,z;for(W=0;W<Z;W++)z=J[W],Q.call(null,$[z],z,$)}}function u1($,Q){if(f0($))return null;Q=Q.toLowerCase();let Y=Object.keys($),W=Y.length,G;while(W-- >0)if(G=Y[W],Q===G.toLowerCase())return G;return null}function d4(...$){let{caseless:Q,skipUndefined:Y}=c1(this)&&this||{},W={},G=(J,Z)=>{if(Z==="__proto__"||Z==="constructor"||Z==="prototype")return;let z=Q&&typeof Z==="string"&&u1(W,Z)||Z,K=T4(W,z)?W[z]:void 0;if(_4(K)&&_4(J))W[z]=d4(K,J);else if(_4(J))W[z]=d4({},J);else if(P0(J))W[z]=J.slice();else if(!Y||!m0(J))W[z]=J};for(let J=0,Z=$.length;J<Z;J++){let z=$[J];if(!z||f0(z))continue;if(e0(z,G),typeof z!=="object"||P0(z))continue;let K=Object.getOwnPropertySymbols(z);for(let N=0;N<K.length;N++){let M=K[N];if(O$.call(z,M))G(z[M],M)}}return W}function b$($){return!!($&&o($.append)&&$[f1]==="FormData"&&$[o0])}var s6,y0,o0,f1,T4,r0=($,Q)=>{let Y=$,W=[];while(Y!=null&&Y!==Object.prototype){if(W.indexOf(Y)!==-1)return!1;if(W.push(Y),T4(Y,Q))return!0;Y=y0(Y)}return!1},t6=($,Q)=>$!=null&&r0($,Q)?$[Q]:void 0,l4,W0=($)=>{return $=$.toLowerCase(),(Q)=>l4(Q)===$},R4=($)=>(Q)=>typeof Q===$,P0,m0,h1,o6,o,g1,h0=($)=>$!==null&&typeof $==="object",e6=($)=>$===!0||$===!1,_4=($)=>{if(!h0($))return!1;let Q=y0($);return(Q===null||Q===Object.prototype||y0(Q)===null)&&!r0($,f1)&&!r0($,o0)},$$=($)=>{if(!h0($)||f0($))return!1;try{return Object.keys($).length===0&&Object.getPrototypeOf($)===Object.prototype}catch(Q){return!1}},Q$,Y$,W$=($)=>{return!!($&&typeof $.uri<"u")},G$=($)=>$&&typeof $.getParts<"u",Z$,J$,X$=($)=>h0($)&&o($.pipe),y1,m1,z$=($)=>{if(!$)return!1;if(m1&&$ instanceof m1)return!0;let Q=y0($);if(!Q||Q===Object.prototype)return!1;if(!o($.append))return!1;let Y=l4($);return Y==="formdata"||Y==="object"&&o($.toString)&&$.toString()==="[object FormData]"},N$,M$,B$,V$,I$,F$=($)=>{return $.trim?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},q0,c1=($)=>!m0($)&&$!==q0,U$=($,Q,Y,{allOwnKeys:W}={})=>{return e0(Q,(G,J)=>{if(Y&&o(G))Object.defineProperty($,J,{__proto__:null,value:t0(G,Y),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty($,J,{__proto__:null,value:G,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:W}),$},L$=($)=>{if($.charCodeAt(0)===65279)$=$.slice(1);return $},w$=($,Q,Y,W)=>{$.prototype=Object.create(Q.prototype,W),Object.defineProperty($.prototype,"constructor",{__proto__:null,value:$,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty($,"super",{__proto__:null,value:Q.prototype}),Y&&Object.assign($.prototype,Y)},S$=($,Q,Y,W)=>{let G,J,Z,z={};if(Q=Q||{},$==null)return Q;do{G=Object.getOwnPropertyNames($),J=G.length;while(J-- >0)if(Z=G[J],(!W||W(Z,$,Q))&&!z[Z])Q[Z]=$[Z],z[Z]=!0;$=Y!==!1&&y0($)}while($&&(!Y||Y($,Q))&&$!==Object.prototype);return Q},D$=($,Q,Y)=>{if($=String($),Y===void 0||Y>$.length)Y=$.length;Y-=Q.length;let W=$.indexOf(Q,Y);return W!==-1&&W===Y},_$=($)=>{if(!$)return null;if(P0($))return $;let Q=$.length;if(!g1(Q))return null;let Y=Array(Q);while(Q-- >0)Y[Q]=$[Q];return Y},T$,R$=($,Q)=>{let W=($&&$[o0]).call($),G;while((G=W.next())&&!G.done){let J=G.value;Q.call($,J[0],J[1])}},q$=($,Q)=>{let Y,W=[];while((Y=$.exec(Q))!==null)W.push(Y);return W},P$,C$=($)=>{return $.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(Y,W,G){return W.toUpperCase()+G})},O$,H$,d1=($,Q)=>{let Y=Object.getOwnPropertyDescriptors($),W={};e0(Y,(G,J)=>{let Z;if((Z=Q(G,J,$))!==!1)W[J]=Z||G}),Object.defineProperties($,W)},E$=($)=>{d1($,(Q,Y)=>{if(o($)&&["arguments","caller","callee"].includes(Y))return!1;let W=$[Y];if(!o(W))return;if(Q.enumerable=!1,"writable"in Q){Q.writable=!1;return}if(!Q.set)Q.set=()=>{throw Error("Can not rewrite read-only method '"+Y+"'")}})},A$=($,Q)=>{let Y={},W=(G)=>{G.forEach((J)=>{Y[J]=!0})};return P0($)?W($):W(String($).split(Q)),Y},j$=()=>{},k$=($,Q)=>{return $!=null&&Number.isFinite($=+$)?$:Q},x$=($)=>{let Q=new WeakSet,Y=(W)=>{if(h0(W)){if(Q.has(W))return;if(f0(W))return W;if(!("toJSON"in W)){Q.add(W);let G=P0(W)?[]:{};return e0(W,(J,Z)=>{let z=Y(J);!m0(z)&&(G[Z]=z)}),Q.delete(W),G}}return W};return Y($)},v$,y$=($)=>$&&(h0($)||o($))&&o($.then)&&o($.catch),l1,m$,p1=($)=>$!=null&&o($[o0]),f$=($)=>$!=null&&r0($,o0)&&p1($),X;var x=T(()=>{c4();({toString:s6}=Object.prototype),{getPrototypeOf:y0}=Object,{iterator:o0,toStringTag:f1}=Symbol,T4=(({hasOwnProperty:$})=>(Q,Y)=>$.call(Q,Y))(Object.prototype),l4=(($)=>(Q)=>{let Y=s6.call(Q);return $[Y]||($[Y]=Y.slice(8,-1).toLowerCase())})(Object.create(null)),{isArray:P0}=Array,m0=R4("undefined");h1=W0("ArrayBuffer");o6=R4("string"),o=R4("function"),g1=R4("number"),Q$=W0("Date"),Y$=W0("File"),Z$=W0("Blob"),J$=W0("FileList");y1=K$(),m1=typeof y1.FormData<"u"?y1.FormData:void 0,N$=W0("URLSearchParams"),[M$,B$,V$,I$]=["ReadableStream","Request","Response","Headers"].map(W0);q0=(()=>{if(typeof globalThis<"u")return globalThis;return typeof self<"u"?self:typeof window<"u"?window:global})();T$=(($)=>{return(Q)=>{return $&&Q instanceof $}})(typeof Uint8Array<"u"&&y0(Uint8Array)),P$=W0("HTMLFormElement"),{propertyIsEnumerable:O$}=Object.prototype,H$=W0("RegExp");v$=W0("AsyncFunction"),l1=(($,Q)=>{if($)return setImmediate;return Q?((Y,W)=>{return q0.addEventListener("message",({source:G,data:J})=>{if(G===q0&&J===Y)W.length&&W.shift()()},!1),(G)=>{W.push(G),q0.postMessage(Y,"*")}})(`axios@${Math.random()}`,[]):(Y)=>setTimeout(Y)})(typeof setImmediate==="function",o(q0.postMessage)),m$=typeof queueMicrotask<"u"?queueMicrotask.bind(q0):typeof process<"u"&&process.nextTick||l1,X={isArray:P0,isArrayBuffer:h1,isBuffer:f0,isFormData:z$,isArrayBufferView:r6,isString:o6,isNumber:g1,isBoolean:e6,isObject:h0,isPlainObject:_4,isEmptyObject:$$,isReadableStream:M$,isRequest:B$,isResponse:V$,isHeaders:I$,isUndefined:m0,isDate:Q$,isFile:Y$,isReactNativeBlob:W$,isReactNative:G$,isBlob:Z$,isRegExp:H$,isFunction:o,isStream:X$,isURLSearchParams:N$,isTypedArray:T$,isFileList:J$,forEach:e0,merge:d4,extend:U$,trim:F$,stripBOM:L$,inherits:w$,toFlatObject:S$,kindOf:l4,kindOfTest:W0,endsWith:D$,toArray:_$,forEachEntry:R$,matchAll:q$,isHTMLForm:P$,hasOwnProperty:T4,hasOwnProp:T4,hasOwnInPrototypeChain:r0,getSafeProp:t6,reduceDescriptors:d1,freezeMethods:E$,toObjectSet:A$,toCamelCase:C$,noop:j$,toFiniteNumber:k$,findKey:u1,global:q0,isContextDefined:c1,isSpecCompliantForm:b$,toJSONObject:x$,isAsyncFn:v$,isThenable:y$,setImmediate:l1,asap:m$,isIterable:p1,isSafeIterable:f$}});var h$,i1=($)=>{let Q={},Y,W,G;return $&&$.split(`
|
|
2
|
+
`).forEach(function(Z){if(G=Z.indexOf(":"),Y=Z.substring(0,G).trim().toLowerCase(),W=Z.substring(G+1).trim(),!Y||Q[Y]&&h$[Y])return;if(Y==="set-cookie")if(Q[Y])Q[Y].push(W);else Q[Y]=[W];else Q[Y]=Q[Y]?Q[Y]+", "+W:W}),Q};var n1=T(()=>{x();h$=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"])});function g$($){let Q=0,Y=$.length;while(Q<Y){let W=$.charCodeAt(Q);if(W!==9&&W!==32)break;Q+=1}while(Y>Q){let W=$.charCodeAt(Y-1);if(W!==9&&W!==32)break;Y-=1}return Q===0&&Y===$.length?$:$.slice(Q,Y)}function p4($,Q){if(X.isArray($))return $.map((Y)=>p4(Y,Q));return g$(String($).replace(Q,""))}function g0($){let Q=Object.create(null);return X.forEach($.toJSON(),(Y,W)=>{Q[W]=d$(Y)}),Q}var u$,c$,a1=($)=>p4($,u$),d$=($)=>p4($,c$);var $4=T(()=>{x();u$=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),c$=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g")});function Q4($){return $&&String($).trim().toLowerCase()}function q4($){if($===!1||$==null)return $;return X.isArray($)?$.map(q4):a1(String($))}function l$($){let Q=Object.create(null),Y=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,W;while(W=Y.exec($))Q[W[1]]=W[2];return Q}function i4($,Q,Y,W,G){if(X.isFunction(W))return W.call(this,Q,Y);if(G)Q=Y;if(!X.isString(Q))return;if(X.isString(W))return Q.indexOf(W)!==-1;if(X.isRegExp(W))return W.test(Q)}function i$($){return $.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(Q,Y,W)=>{return Y.toUpperCase()+W})}function n$($,Q){let Y=X.toCamelCase(" "+Q);["get","set","has"].forEach((W)=>{Object.defineProperty($,W+Y,{__proto__:null,value:function(G,J,Z){return this[W].call(this,Q,G,J,Z)},configurable:!0})})}var s1,p$=($)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test($.trim()),Y4,y;var G0=T(()=>{x();n1();$4();s1=Symbol("internals");Y4=class Y4{constructor($){$&&this.set($)}set($,Q,Y){let W=this;function G(Z,z,K){let N=Q4(z);if(!N)return;let M=X.findKey(W,N);if(!M||W[M]===void 0||K===!0||K===void 0&&W[M]!==!1)W[M||z]=q4(Z)}let J=(Z,z)=>X.forEach(Z,(K,N)=>G(K,N,z));if(X.isPlainObject($)||$ instanceof this.constructor)J($,Q);else if(X.isString($)&&($=$.trim())&&!p$($))J(i1($),Q);else if(X.isObject($)&&X.isSafeIterable($)){let Z=Object.create(null),z,K;for(let N of $){if(!X.isArray(N))throw TypeError("Object iterator must return a key-value pair");if(K=N[0],X.hasOwnProp(Z,K))z=Z[K],Z[K]=X.isArray(z)?[...z,N[1]]:[z,N[1]];else Z[K]=N[1]}J(Z,Q)}else $!=null&&G(Q,$,Y);return this}get($,Q){if($=Q4($),$){let Y=X.findKey(this,$);if(Y){let W=this[Y];if(!Q)return W;if(Q===!0)return l$(W);if(X.isFunction(Q))return Q.call(this,W,Y);if(X.isRegExp(Q))return Q.exec(W);throw TypeError("parser must be boolean|regexp|function")}}}has($,Q){if($=Q4($),$){let Y=X.findKey(this,$);return!!(Y&&this[Y]!==void 0&&(!Q||i4(this,this[Y],Y,Q)))}return!1}delete($,Q){let Y=this,W=!1;function G(J){if(J=Q4(J),J){let Z=X.findKey(Y,J);if(Z&&(!Q||i4(Y,Y[Z],Z,Q)))delete Y[Z],W=!0}}if(X.isArray($))$.forEach(G);else G($);return W}clear($){let Q=Object.keys(this),Y=Q.length,W=!1;while(Y--){let G=Q[Y];if(!$||i4(this,this[G],G,$,!0))delete this[G],W=!0}return W}normalize($){let Q=this,Y={};return X.forEach(this,(W,G)=>{let J=X.findKey(Y,G);if(J){Q[J]=q4(W),delete Q[G];return}let Z=$?i$(G):String(G).trim();if(Z!==G)delete Q[G];Q[Z]=q4(W),Y[Z]=!0}),this}concat(...$){return this.constructor.concat(this,...$)}toJSON($){let Q=Object.create(null);return X.forEach(this,(Y,W)=>{Y!=null&&Y!==!1&&(Q[W]=$&&X.isArray(Y)?Y.join(", "):Y)}),Q}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([$,Q])=>$+": "+Q).join(`
|
|
3
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from($){return $ instanceof this?$:new this($)}static concat($,...Q){let Y=new this($);return Q.forEach((W)=>Y.set(W)),Y}static accessor($){let Y=(this[s1]=this[s1]={accessors:{}}).accessors,W=this.prototype;function G(J){let Z=Q4(J);if(!Y[Z])n$(W,J),Y[Z]=!0}return X.isArray($)?$.forEach(G):G($),this}};Y4.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);X.reduceDescriptors(Y4.prototype,({value:$},Q)=>{let Y=Q[0].toUpperCase()+Q.slice(1);return{get:()=>$,set(W){this[Y]=W}}});X.freezeMethods(Y4);y=Y4});function s$($){if(X.hasOwnProp($,"toJSON"))return!0;let Q=Object.getPrototypeOf($);while(Q&&Q!==Object.prototype){if(X.hasOwnProp(Q,"toJSON"))return!0;Q=Object.getPrototypeOf(Q)}return!1}function t$($,Q){let Y=new Set(Q.map((J)=>String(J).toLowerCase())),W=[],G=(J)=>{if(J===null||typeof J!=="object")return J;if(X.isBuffer(J))return J;if(W.indexOf(J)!==-1)return;if(J instanceof y)J=J.toJSON();W.push(J);let Z;if(X.isArray(J))Z=[],J.forEach((z,K)=>{let N=G(z);if(!X.isUndefined(N))Z[K]=N});else{if(!X.isPlainObject(J)&&s$(J))return W.pop(),J;Z=Object.create(null);for(let[z,K]of Object.entries(J)){let N=Y.has(z.toLowerCase())?a$:G(K);if(!X.isUndefined(N))Z[z]=N}}return W.pop(),Z};return G($)}var a$="[REDACTED ****]",a,V;var t=T(()=>{x();G0();a=class a extends Error{static from($,Q,Y,W,G,J){let Z=new a($.message,Q||$.code,Y,W,G);if(Object.defineProperty(Z,"cause",{__proto__:null,value:$,writable:!0,enumerable:!1,configurable:!0}),Z.name=$.name,$.status!=null&&Z.status==null)Z.status=$.status;return J&&Object.assign(Z,J),Z}constructor($,Q,Y,W,G){super($);if(Object.defineProperty(this,"message",{__proto__:null,value:$,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,Q&&(this.code=Q),Y&&(this.config=Y),W&&(this.request=W),G)this.response=G,this.status=G.status}toJSON(){let $=this.config,Q=$&&X.hasOwnProp($,"redact")?$.redact:void 0,Y=X.isArray(Q)&&Q.length>0?t$($,Q):X.toJSONObject($);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y,code:this.code,status:this.status}}};a.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";a.ERR_BAD_OPTION="ERR_BAD_OPTION";a.ECONNABORTED="ECONNABORTED";a.ETIMEDOUT="ETIMEDOUT";a.ECONNREFUSED="ECONNREFUSED";a.ERR_NETWORK="ERR_NETWORK";a.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";a.ERR_DEPRECATED="ERR_DEPRECATED";a.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";a.ERR_BAD_REQUEST="ERR_BAD_REQUEST";a.ERR_CANCELED="ERR_CANCELED";a.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";a.ERR_INVALID_URL="ERR_INVALID_URL";a.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";V=a});var t1,P4;var a4=T(()=>{t1=n4(r$(),1),P4=t1.default});function t4($){return X.isPlainObject($)||X.isArray($)}function r1($){return X.endsWith($,"[]")?$.slice(0,-2):$}function s4($,Q,Y){if(!$)return Q;return $.concat(Q).map(function(G,J){return G=r1(G),!Y&&J?"["+G+"]":G}).join(Y?".":"")}function o$($){return X.isArray($)&&!$.some(t4)}function $8($,Q,Y){if(!X.isObject($))throw TypeError("target must be an object");Q=Q||new(P4||FormData),Y=X.toFlatObject(Y,{metaTokens:!0,dots:!1,indexes:!1},!1,function(_,R){return!X.isUndefined(R[_])});let W=Y.metaTokens,G=Y.visitor||S,J=Y.dots,Z=Y.indexes,z=Y.Blob||typeof Blob<"u"&&Blob,K=Y.maxDepth===void 0?r4:Y.maxDepth,N=z&&X.isSpecCompliantForm(Q),M=[];if(!X.isFunction(G))throw TypeError("visitor must be a function");function B(F){if(F===null)return"";if(X.isDate(F))return F.toISOString();if(X.isBoolean(F))return F.toString();if(!N&&X.isBlob(F))throw new V("Blob is not supported. Use a Buffer instead.");if(X.isArrayBuffer(F)||X.isTypedArray(F)){if(N&&typeof z==="function")return new z([F]);if(typeof Buffer<"u")return Buffer.from(F);throw new V("Blob is not supported. Use a Buffer instead.",V.ERR_NOT_SUPPORT)}return F}function I(F){if(F>K)throw new V("Object is too deeply nested ("+F+" levels). Max depth: "+K,V.ERR_FORM_DATA_DEPTH_EXCEEDED)}function U(F,_){if(K===1/0)return JSON.stringify(F);let R=[];return JSON.stringify(F,function(v,k){if(!X.isObject(k))return k;while(R.length&&R[R.length-1]!==this)R.pop();return R.push(k),I(_+R.length-1),k})}function S(F,_,R){let O=F;if(X.isReactNative(Q)&&X.isReactNativeBlob(F))return Q.append(s4(R,_,J),B(F)),!1;if(F&&!R&&typeof F==="object"){if(X.endsWith(_,"{}"))_=W?_:_.slice(0,-2),F=U(F,1);else if(X.isArray(F)&&o$(F)||(X.isFileList(F)||X.endsWith(_,"[]"))&&(O=X.toArray(F)))return _=r1(_),O.forEach(function(k,K0){!(X.isUndefined(k)||k===null)&&Q.append(Z===!0?s4([_],K0,J):Z===null?_:_+"[]",B(k))}),!1}if(t4(F))return!0;return Q.append(s4(R,_,J),B(F)),!1}let q=Object.assign(e$,{defaultVisitor:S,convertValue:B,isVisitable:t4});function L(F,_,R=0){if(X.isUndefined(F))return;if(I(R),M.indexOf(F)!==-1)throw Error("Circular reference detected in "+_.join("."));M.push(F),X.forEach(F,function(v,k){if((!(X.isUndefined(v)||v===null)&&G.call(Q,v,X.isString(k)?k.trim():k,_,q))===!0)L(v,_?_.concat(k):[k],R+1)}),M.pop()}if(!X.isObject($))throw TypeError("data must be an object");return L($),Q}var r4=100,e$,S0;var u0=T(()=>{x();t();a4();e$=X.toFlatObject(X,{},null,function(Q){return/^is[A-Z]/.test(Q)});S0=$8});function o1($){let Q={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent($).replace(/[!'()~]|%20/g,function(W){return Q[W]})}function e1($,Q){this._pairs=[],$&&S0($,this,Q)}var $5,Q5;var Y5=T(()=>{u0();$5=e1.prototype;$5.append=function(Q,Y){this._pairs.push([Q,Y])};$5.toString=function(Q){let Y=Q?(W)=>Q.call(this,W,o1):o1;return this._pairs.map(function(G){return Y(G[0])+"="+Y(G[1])},"").join("&")};Q5=e1});function Q8($){return encodeURIComponent($).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function C0($,Q,Y){if(!Q)return $;$=$||"";let W=X.isFunction(Y)?{serialize:Y}:Y,G=X.getSafeProp(W,"encode")||Q8,J=X.getSafeProp(W,"serialize"),Z;if(J)Z=J(Q,W);else Z=X.isURLSearchParams(Q)?Q.toString():new Q5(Q,W).toString(G);if(Z){let z=$.indexOf("#");if(z!==-1)$=$.slice(0,z);$+=($.indexOf("?")===-1?"?":"&")+Z}return $}var C4=T(()=>{x();Y5()});class W5{constructor(){this.handlers=[]}use($,Q,Y){return this.handlers.push({fulfilled:$,rejected:Q,synchronous:Y?Y.synchronous:!1,runWhen:Y?Y.runWhen:null}),this.handlers.length-1}eject($){if(this.handlers[$])this.handlers[$]=null}clear(){if(this.handlers)this.handlers=[]}forEach($){X.forEach(this.handlers,function(Y){if(Y!==null)$(Y)})}}var o4;var G5=T(()=>{x();o4=W5});var D0;var W4=T(()=>{D0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0}});import Y8 from"url";var Z5;var J5=T(()=>{Z5=Y8.URLSearchParams});import W8 from"crypto";var e4="abcdefghijklmnopqrstuvwxyz",X5="0123456789",K5,G8=($=16,Q=K5.ALPHA_DIGIT)=>{let Y="",{length:W}=Q,G=new Uint32Array($);W8.randomFillSync(G);for(let J=0;J<$;J++)Y+=Q[G[J]%W];return Y},z5;var N5=T(()=>{J5();a4();K5={DIGIT:X5,ALPHA:e4,ALPHA_DIGIT:e4+e4.toUpperCase()+X5},z5={isNode:!0,classes:{URLSearchParams:Z5,FormData:P4,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:K5,generateString:G8,protocols:["http","https","file","data"]}});var Y1={};Z8(Y1,{origin:()=>K8,navigator:()=>$1,hasStandardBrowserWebWorkerEnv:()=>X8,hasStandardBrowserEnv:()=>J8,hasBrowserEnv:()=>Q1});var Q1,$1,J8,X8,K8;var M5=T(()=>{Q1=typeof window<"u"&&typeof document<"u",$1=typeof navigator==="object"&&navigator||void 0,J8=Q1&&(!$1||["ReactNative","NativeScript","NS"].indexOf($1.product)<0),X8=(()=>{return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),K8=Q1&&window.location.href||"http://localhost"});var j;var Z0=T(()=>{N5();M5();j={...Y1,...z5}});function W1($,Q){return S0($,new j.classes.URLSearchParams,{visitor:function(Y,W,G,J){if(j.isNode&&X.isBuffer(Y))return this.append(W,Y.toString("base64")),!1;return J.defaultVisitor.apply(this,arguments)},...Q})}var B5=T(()=>{x();u0();Z0()});function I5($){if($>V5)throw new V("FormData field is too deeply nested ("+$+" levels). Max depth: "+V5,V.ERR_FORM_DATA_DEPTH_EXCEEDED)}function z8($){let Q=[],Y=/\w+|\[(\w*)]/g,W;while((W=Y.exec($))!==null)I5(Q.length),Q.push(W[0]==="[]"?"":W[1]||W[0]);return Q}function N8($){let Q={},Y=Object.keys($),W,G=Y.length,J;for(W=0;W<G;W++)J=Y[W],Q[J]=$[J];return Q}function M8($){function Q(Y,W,G,J){I5(J);let Z=Y[J++];if(Z==="__proto__")return!0;let z=Number.isFinite(+Z),K=J>=Y.length;if(Z=!Z&&X.isArray(G)?G.length:Z,K){if(X.hasOwnProp(G,Z))G[Z]=X.isArray(G[Z])?G[Z].concat(W):[G[Z],W];else G[Z]=W;return!z}if(!X.hasOwnProp(G,Z)||!X.isObject(G[Z]))G[Z]=[];if(Q(Y,W,G[Z],J)&&X.isArray(G[Z]))G[Z]=N8(G[Z]);return!z}if(X.isFormData($)&&X.isFunction($.entries)){let Y={};return X.forEachEntry($,(W,G)=>{Q(z8(W),G,Y,0)}),Y}return null}var V5,O4;var G1=T(()=>{x();t();u0();V5=r4;O4=M8});function B8($,Q,Y){if(X.isString($))try{return(Q||JSON.parse)($),X.trim($)}catch(W){if(W.name!=="SyntaxError")throw W}return(Y||JSON.stringify)($)}var c0=($,Q)=>$!=null&&X.hasOwnProp($,Q)?$[Q]:void 0,Z1,d0;var H4=T(()=>{x();t();W4();u0();B5();Z0();G1();Z1={transitional:D0,adapter:["xhr","http","fetch"],transformRequest:[function(Q,Y){let W=Y.getContentType()||"",G=W.indexOf("application/json")>-1,J=X.isObject(Q);if(J&&X.isHTMLForm(Q))Q=new FormData(Q);if(X.isFormData(Q))return G?JSON.stringify(O4(Q)):Q;if(X.isArrayBuffer(Q)||X.isBuffer(Q)||X.isStream(Q)||X.isFile(Q)||X.isBlob(Q)||X.isReadableStream(Q))return Q;if(X.isArrayBufferView(Q))return Q.buffer;if(X.isURLSearchParams(Q))return Y.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),Q.toString();let z;if(J){let K=c0(this,"formSerializer");if(W.indexOf("application/x-www-form-urlencoded")>-1)return W1(Q,K).toString();if((z=X.isFileList(Q))||W.indexOf("multipart/form-data")>-1){let N=c0(this,"env"),M=N&&N.FormData;return S0(z?{"files[]":Q}:Q,M&&new M,K)}}if(J||G)return Y.setContentType("application/json",!1),B8(Q);return Q}],transformResponse:[function(Q){let Y=c0(this,"transitional")||Z1.transitional,W=Y&&Y.forcedJSONParsing,G=c0(this,"responseType"),J=G==="json";if(X.isResponse(Q)||X.isReadableStream(Q))return Q;if(Q&&X.isString(Q)&&(W&&!G||J)){let z=!(Y&&Y.silentJSONParsing)&&J;try{return JSON.parse(Q,c0(this,"parseReviver"))}catch(K){if(z){if(K.name==="SyntaxError")throw V.from(K,V.ERR_BAD_RESPONSE,this,null,c0(this,"response"));throw K}}}return Q}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:j.classes.FormData,Blob:j.classes.Blob},validateStatus:function(Q){return Q>=200&&Q<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch","query"],($)=>{Z1.headers[$]={}});d0=Z1});function G4($,Q){let Y=this||d0,W=Q||Y,G=y.from(W.headers),J=W.data;return X.forEach($,function(z){J=z.call(Y,J,G.normalize(),Q?Q.status:void 0)}),G.normalize(),J}var F5=T(()=>{x();H4();G0()});function Z4($){return!!($&&$.__CANCEL__)}var J1=()=>{};var U5,$0;var O0=T(()=>{t();U5=class U5 extends V{constructor($,Q,Y){super($==null?"canceled":$,V.ERR_CANCELED,Q,Y);this.name="CanceledError",this.__CANCEL__=!0}};$0=U5});function M0($,Q,Y){let W=Y.config.validateStatus;if(!Y.status||!W||W(Y.status))$(Y);else Q(new V("Request failed with status code "+Y.status,Y.status>=400&&Y.status<500?V.ERR_BAD_REQUEST:V.ERR_BAD_RESPONSE,Y.config,Y.request,Y))}var E4=T(()=>{t()});function X1($){if(typeof $!=="string")return!1;return/^([a-z][a-z\d+\-.]*:)?\/\//i.test($)}var L5=()=>{};function K1($,Q){return Q?$.replace(/\/?\/$/,"")+"/"+Q.replace(/^\/+/,""):$}var w5=()=>{};function F8($){let Q=0;while(Q<$.length&&$.charCodeAt(Q)<=32)Q++;return $.slice(Q)}function U8($){return F8($).replace(I8,"")}function S5($,Q){if(typeof $==="string"&&V8.test(U8($)))throw new V('Invalid URL: missing "//" after protocol',V.ERR_INVALID_URL,Q)}function H0($,Q,Y,W){S5(Q,W);let G=!X1(Q);if($&&(G||Y===!1))return S5($,W),K1($,Q);return Q}var V8,I8;var A4=T(()=>{t();L5();w5();V8=/^https?:(?!\/\/)/i,I8=/[\t\n\r]/g});var _5=J4((D5)=>{Object.defineProperty(D5,"__esModule",{value:!0});function L8($){return function(Q,Y){return new Promise((W,G)=>{$.call(this,Q,Y,(J,Z)=>{if(J)G(J);else W(Z)})})}}D5.default=L8});var q5=J4((N1,R5)=>{var T5=N1&&N1.__importDefault||function($){return $&&$.__esModule?$:{default:$}},S8=K4("events"),D8=T5(M1()),_8=T5(_5()),X4=D8.default("agent-base");function T8($){return Boolean($)&&typeof $.addRequest==="function"}function z1(){let{stack:$}=Error();if(typeof $!=="string")return!1;return $.split(`
|
|
4
|
+
`).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}function j4($,Q){return new j4.Agent($,Q)}(function($){class Q extends S8.EventEmitter{constructor(Y,W){super();let G=W;if(typeof Y==="function")this.callback=Y;else if(Y)G=Y;if(this.timeout=null,G&&typeof G.timeout==="number")this.timeout=G.timeout;this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=1/0,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number")return this.explicitDefaultPort;return z1()?443:80}set defaultPort(Y){this.explicitDefaultPort=Y}get protocol(){if(typeof this.explicitProtocol==="string")return this.explicitProtocol;return z1()?"https:":"http:"}set protocol(Y){this.explicitProtocol=Y}callback(Y,W,G){throw Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(Y,W){let G=Object.assign({},W);if(typeof G.secureEndpoint!=="boolean")G.secureEndpoint=z1();if(G.host==null)G.host="localhost";if(G.port==null)G.port=G.secureEndpoint?443:80;if(G.protocol==null)G.protocol=G.secureEndpoint?"https:":"http:";if(G.host&&G.path)delete G.path;delete G.agent,delete G.hostname,delete G._defaultAgent,delete G.defaultPort,delete G.createConnection,Y._last=!0,Y.shouldKeepAlive=!1;let J=!1,Z=null,z=G.timeout||this.timeout,K=(I)=>{if(Y._hadError)return;Y.emit("error",I),Y._hadError=!0},N=()=>{Z=null,J=!0;let I=Error(`A "socket" was not created for HTTP request before ${z}ms`);I.code="ETIMEOUT",K(I)},M=(I)=>{if(J)return;if(Z!==null)clearTimeout(Z),Z=null;K(I)},B=(I)=>{if(J)return;if(Z!=null)clearTimeout(Z),Z=null;if(T8(I)){X4("Callback returned another Agent instance %o",I.constructor.name),I.addRequest(Y,G);return}if(I){I.once("free",()=>{this.freeSocket(I,G)}),Y.onSocket(I);return}let U=Error(`no Duplex stream was returned to agent-base for \`${Y.method} ${Y.path}\``);K(U)};if(typeof this.callback!=="function"){K(Error("`callback` is not defined"));return}if(!this.promisifiedCallback)if(this.callback.length>=3)X4("Converting legacy callback function to promise"),this.promisifiedCallback=_8.default(this.callback);else this.promisifiedCallback=this.callback;if(typeof z==="number"&&z>0)Z=setTimeout(N,z);if("port"in G&&typeof G.port!=="number")G.port=Number(G.port);try{X4("Resolving socket for %o request: %o",G.protocol,`${Y.method} ${Y.path}`),Promise.resolve(this.promisifiedCallback(Y,G)).then(B,M)}catch(I){Promise.reject(I).catch(M)}}freeSocket(Y,W){X4("Freeing socket %o %o",Y.constructor.name,W),Y.destroy()}destroy(){X4("Destroying agent %o",this.constructor.name)}}$.Agent=Q,$.prototype=$.Agent.prototype})(j4||(j4={}));R5.exports=j4});var P5=J4((N4)=>{var R8=N4&&N4.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(N4,"__esModule",{value:!0});var q8=R8(M1()),z4=q8.default("https-proxy-agent:parse-proxy-response");function P8($){return new Promise((Q,Y)=>{let W=0,G=[];function J(){let B=$.read();if(B)M(B);else $.once("readable",J)}function Z(){$.removeListener("end",K),$.removeListener("error",N),$.removeListener("close",z),$.removeListener("readable",J)}function z(B){z4("onclose had error %o",B)}function K(){z4("onend")}function N(B){Z(),z4("onerror %o",B),Y(B)}function M(B){G.push(B),W+=B.length;let I=Buffer.concat(G,W);if(I.indexOf(`\r
|
|
5
|
+
\r
|
|
6
|
+
`)===-1){z4("have not received end of HTTP headers yet..."),J();return}let S=I.toString("ascii",0,I.indexOf(`\r
|
|
7
|
+
`)),q=+S.split(" ")[1];z4("got proxy server response: %o",S),Q({statusCode:q,buffered:I})}$.on("error",N),$.on("close",z),$.on("end",K),J()})}N4.default=P8});var E5=J4((E0)=>{var C8=E0&&E0.__awaiter||function($,Q,Y,W){function G(J){return J instanceof Y?J:new Y(function(Z){Z(J)})}return new(Y||(Y=Promise))(function(J,Z){function z(M){try{N(W.next(M))}catch(B){Z(B)}}function K(M){try{N(W.throw(M))}catch(B){Z(B)}}function N(M){M.done?J(M.value):G(M.value).then(z,K)}N((W=W.apply($,Q||[])).next())})},l0=E0&&E0.__importDefault||function($){return $&&$.__esModule?$:{default:$}};Object.defineProperty(E0,"__esModule",{value:!0});var C5=l0(K4("net")),O5=l0(K4("tls")),O8=l0(K4("url")),H8=l0(K4("assert")),E8=l0(M1()),A8=q5(),j8=l0(P5()),M4=E8.default("https-proxy-agent:agent");class H5 extends A8.Agent{constructor($){let Q;if(typeof $==="string")Q=O8.default.parse($);else Q=$;if(!Q)throw Error("an HTTP(S) proxy server `host` and `port` must be specified!");M4("creating new HttpsProxyAgent instance: %o",Q);super(Q);let Y=Object.assign({},Q);if(this.secureProxy=Q.secureProxy||x8(Y.protocol),Y.host=Y.hostname||Y.host,typeof Y.port==="string")Y.port=parseInt(Y.port,10);if(!Y.port&&Y.host)Y.port=this.secureProxy?443:80;if(this.secureProxy&&!("ALPNProtocols"in Y))Y.ALPNProtocols=["http 1.1"];if(Y.host&&Y.path)delete Y.path,delete Y.pathname;this.proxy=Y}callback($,Q){return C8(this,void 0,void 0,function*(){let{proxy:Y,secureProxy:W}=this,G;if(W)M4("Creating `tls.Socket`: %o",Y),G=O5.default.connect(Y);else M4("Creating `net.Socket`: %o",Y),G=C5.default.connect(Y);let J=Object.assign({},Y.headers),z=`CONNECT ${`${Q.host}:${Q.port}`} HTTP/1.1\r
|
|
8
|
+
`;if(Y.auth)J["Proxy-Authorization"]=`Basic ${Buffer.from(Y.auth).toString("base64")}`;let{host:K,port:N,secureEndpoint:M}=Q;if(!b8(N,M))K+=`:${N}`;J.Host=K,J.Connection="close";for(let q of Object.keys(J))z+=`${q}: ${J[q]}\r
|
|
9
|
+
`;let B=j8.default(G);G.write(`${z}\r
|
|
10
|
+
`);let{statusCode:I,buffered:U}=yield B;if(I===200){if($.once("socket",k8),Q.secureEndpoint){M4("Upgrading socket connection to TLS");let q=Q.servername||Q.host;return O5.default.connect(Object.assign(Object.assign({},v8(Q,"host","hostname","path","port")),{socket:G,servername:q}))}return G}G.destroy();let S=new C5.default.Socket({writable:!1});return S.readable=!0,$.once("socket",(q)=>{M4("replaying proxy buffer for failed request"),H8.default(q.listenerCount("data")>0),q.push(U),q.push(null)}),S})}}E0.default=H5;function k8($){$.resume()}function b8($,Q){return Boolean(!Q&&$===80||Q&&$===443)}function x8($){return typeof $==="string"?/^https:?$/i.test($):!1}function v8($,...Q){let Y={},W;for(W in $)if(!Q.includes(W))Y[W]=$[W];return Y}});var j5=J4((I1,A5)=>{var y8=I1&&I1.__importDefault||function($){return $&&$.__esModule?$:{default:$}},B1=y8(E5());function V1($){return new B1.default($)}(function($){$.HttpsProxyAgent=B1.default,$.prototype=B1.default.prototype})(V1||(V1={}));A5.exports=V1});var I0="1.18.1";var B4=()=>{};function V4($){let Q=/^([-+\w]{1,25}):(?:\/\/)?/.exec($);return Q&&Q[1]||""}var F1=()=>{};function U1($,Q,Y){let W=Y&&Y.Blob||j.classes.Blob,G=V4($);if(Q===void 0&&W)Q=!0;if(G==="data"){$=G.length?$.slice(G.length+1):$;let J=m8.exec($);if(!J)throw new V("Invalid URL",V.ERR_INVALID_URL);let Z=J[1],z=J[2],K=J[3]?"base64":"utf8",N=J[4],M="";if(Z)M=z?Z+z:Z;else if(z)M="text/plain"+z;let B=K==="base64"?Buffer.from(N,"base64"):Buffer.from(decodeURIComponent(N),K);if(Q){if(!W)throw new V("Blob is not supported",V.ERR_NOT_SUPPORT);return new W([B],{type:M})}return B}throw new V("Unsupported protocol "+G,V.ERR_NOT_SUPPORT)}var m8;var k5=T(()=>{t();F1();Z0();m8=/^([^,;]+\/[^,;]+)?((?:;[^,;=]+=[^,;]+)*)(;base64)?,([\s\S]*)$/});import f8 from"stream";var L1,b5,w1;var x5=T(()=>{x();L1=Symbol("internals");b5=class b5 extends f8.Transform{constructor($){$=X.toFlatObject($,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(Y,W)=>{return!X.isUndefined(W[Y])});super({readableHighWaterMark:$.chunkSize});let Q=this[L1]={timeWindow:$.timeWindow,chunkSize:$.chunkSize,maxRate:$.maxRate,minChunkSize:$.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(Y)=>{if(Y==="progress"){if(!Q.isCaptured)Q.isCaptured=!0}})}_read($){let Q=this[L1];if(Q.onReadCallback)Q.onReadCallback();return super._read($)}_transform($,Q,Y){let W=this[L1],G=W.maxRate,J=this.readableHighWaterMark,Z=W.timeWindow,z=1000/Z,K=G/z,N=W.minChunkSize!==!1?Math.max(W.minChunkSize,K*0.01):0,M=(I,U)=>{let S=Buffer.byteLength(I);if(W.bytesSeen+=S,W.bytes+=S,W.isCaptured&&this.emit("progress",W.bytesSeen),this.push(I))process.nextTick(U);else W.onReadCallback=()=>{W.onReadCallback=null,process.nextTick(U)}},B=(I,U)=>{let S=Buffer.byteLength(I),q=null,L=J,F,_=0;if(G){let R=Date.now();if(!W.ts||(_=R-W.ts)>=Z)W.ts=R,F=K-W.bytes,W.bytes=F<0?-F:0,_=0;F=K-W.bytes}if(G){if(F<=0)return setTimeout(()=>{U(null,I)},Z-_);if(F<L)L=F}if(L&&S>L&&S-L>N)q=I.subarray(L),I=I.subarray(0,L);M(I,q?()=>{process.nextTick(U,null,q)}:U)};B($,function I(U,S){if(U)return Y(U);if(S)B(S,I);else Y(null)})}};w1=b5});var v5,h8=async function*($){if($.stream)yield*$.stream();else if($.arrayBuffer)yield await $.arrayBuffer();else if($[v5])yield*$[v5]();else yield $},k4;var S1=T(()=>{({asyncIterator:v5}=Symbol),k4=h8});import g8 from"util";import{Readable as u8}from"stream";class y5{constructor($,Q){let{escapeName:Y}=this.constructor,W=X.isString(Q),G=`Content-Disposition: form-data; name="${Y($)}"${!W&&Q.name?`; filename="${Y(Q.name)}"`:""}${A0}`;if(W)Q=I4.encode(String(Q).replace(/\r?\n|\r\n?/g,A0));else{let J=String(Q.type||"application/octet-stream").replace(/[\r\n]/g,"");G+=`Content-Type: ${J}${A0}`}this.headers=I4.encode(G+A0),this.contentLength=W?Q.byteLength:Q.size,this.size=this.headers.byteLength+this.contentLength+l8,this.name=$,this.value=Q}async*encode(){yield this.headers;let{value:$}=this;if(X.isTypedArray($))yield $;else yield*k4($);yield d8}static escapeName($){return String($).replace(/[\r\n"]/g,(Q)=>({"\r":"%0D","\n":"%0A",'"':"%22"})[Q])}}var c8,I4,A0=`\r
|
|
11
|
+
`,d8,l8=2,p8=($,Q,Y)=>{let{tag:W="form-data-boundary",size:G=25,boundary:J=W+"-"+j.generateString(G,c8)}=Y||{};if(!X.isFormData($))throw TypeError("FormData instance required");if(J.length<1||J.length>70)throw Error("boundary must be 1-70 characters long");let Z=I4.encode("--"+J+A0),z=I4.encode("--"+J+"--"+A0),K=z.byteLength,N=Array.from($.entries()).map(([B,I])=>{let U=new y5(B,I);return K+=U.size,U});K+=Z.byteLength*N.length,K=X.toFiniteNumber(K);let M={"Content-Type":`multipart/form-data; boundary=${J}`};if(Number.isFinite(K))M["Content-Length"]=K;return Q&&Q(M),u8.from(async function*(){for(let B of N)yield Z,yield*B.encode();yield z}())},m5;var f5=T(()=>{x();S1();Z0();c8=j.ALPHABET.ALPHA_DIGIT+"-_",I4=typeof TextEncoder==="function"?new TextEncoder:new g8.TextEncoder,d8=I4.encode(A0);m5=p8});import i8 from"stream";var h5,g5;var u5=T(()=>{h5=class h5 extends i8.Transform{__transform($,Q,Y){this.push($),Y()}_transform($,Q,Y){if($.length!==0){if(this._transform=this.__transform,$[0]!==120){let W=Buffer.alloc(2);W[0]=120,W[1]=156,this.push(W,Q)}}this.__transform($,Q,Y)}};g5=h5});import n8 from"http2";import a8 from"util";class c5{constructor(){this.sessions=Object.create(null)}getSession($,Q){Q=Object.assign({sessionTimeout:1000},Q);let Y=this.sessions[$];if(Y){let M=Y.length;for(let B=0;B<M;B++){let[I,U]=Y[B];if(!I.destroyed&&!I.closed&&a8.isDeepStrictEqual(U,Q))return I}}let W=n8.connect($,Q),G,J,Z=()=>{if(G)return;if(G=!0,J)clearTimeout(J),J=null;let M=Y,B=M.length,I=B;while(I--)if(M[I][0]===W){if(B===1)delete this.sessions[$];else M.splice(I,1);if(!W.closed)W.close();return}},z=W.request,{sessionTimeout:K}=Q;if(K!=null){let M=0;W.request=function(){let B=z.apply(this,arguments);if(M++,J)clearTimeout(J),J=null;return B.once("close",()=>{if(!--M)J=setTimeout(()=>{J=null,Z()},K)}),B}}W.once("close",Z);let N=[W,Q];return Y?Y.push(N):Y=this.sessions[$]=[N],W}}var d5;var l5=T(()=>{d5=c5});var s8=($,Q)=>{return X.isAsyncFn($)?function(...Y){let W=Y.pop();$.apply(this,Y).then((G)=>{try{Q?W(null,...Q(G)):W(null,G)}catch(J){W(J)}},W)}:$},p5;var i5=T(()=>{x();p5=s8});function _1($){let Q;try{Q=new URL($)}catch(J){return!1}let Y=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!Y)return!1;if(Y==="*")return!0;let W=Number.parseInt(Q.port,10)||e8[Q.protocol.split(":",1)[0]]||0,G=a5(Q.hostname.toLowerCase());return Y.split(/[\s,]+/).some((J)=>{if(!J)return!1;let[Z,z]=$Q(J);if(Z=a5(Z),!Z)return!1;if(z&&z!==W)return!1;if(Z.charAt(0)==="*")Z=Z.slice(1);if(Z.charAt(0)===".")return G.endsWith(Z);return G===Z||n5(G)&&n5(Z)})}var t8,s5=($)=>{let Q=$.split(".");if(Q.length!==4)return!1;if(Q[0]!=="127")return!1;return Q.every((Y)=>/^\d+$/.test(Y)&&Number(Y)>=0&&Number(Y)<=255)},D1=($)=>/^0{1,4}$/.test($),r8=($)=>{if($==="::")return!0;let Q=$.indexOf("::");if(Q!==-1){if(Q!==$.lastIndexOf("::"))return!1;let W=$.slice(0,Q),G=$.slice(Q+2),J=W?W.split(":"):[],Z=G?G.split(":"):[];return J.length+Z.length<8&&J.every(D1)&&Z.every(D1)}let Y=$.split(":");return Y.length===8&&Y.every(D1)},o8=($)=>{if($==="::1")return!0;let Q=$.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(Q)return s5(Q[1]);let Y=$.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(Y){let G=parseInt(Y[1],16);return G>=32512&&G<=32767}let W=$.split(":");if(W.length===8){for(let G=0;G<7;G++)if(!/^0+$/.test(W[G]))return!1;return/^0*1$/.test(W[7])}return!1},n5=($)=>{if(!$)return!1;if(t8.has($))return!0;if(s5($))return!0;if(r8($))return!0;return o8($)},e8,$Q=($)=>{let Q=$,Y=0;if(Q.charAt(0)==="["){let J=Q.indexOf("]");if(J!==-1){let Z=Q.slice(1,J),z=Q.slice(J+1);if(z.charAt(0)===":"&&/^\d+$/.test(z.slice(1)))Y=Number.parseInt(z.slice(1),10);return[Z,Y]}}let W=Q.indexOf(":"),G=Q.lastIndexOf(":");if(W!==-1&&W===G&&/^\d+$/.test(Q.slice(G+1)))Y=Number.parseInt(Q.slice(G+1),10),Q=Q.slice(0,G);return[Q,Y]},QQ,YQ,WQ=($)=>{if(typeof $!=="string"||$.indexOf(":")===-1)return $;let Q=$.match(QQ);if(Q)return Q[1];let Y=$.match(YQ);if(Y){let W=parseInt(Y[1],16),G=parseInt(Y[2],16);return`${W>>8}.${W&255}.${G>>8}.${G&255}`}return $},a5=($)=>{if(!$)return $;if($.charAt(0)==="["&&$.charAt($.length-1)==="]")$=$.slice(1,-1);return WQ($.replace(/\.+$/,""))};var t5=T(()=>{t8=new Set(["localhost","0.0.0.0"]),e8={http:80,https:443,ws:80,wss:443,ftp:21},QQ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,YQ=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i});function GQ($,Q){$=$||10;let Y=Array($),W=Array($),G=0,J=0,Z;return Q=Q!==void 0?Q:1000,function(K){let N=Date.now(),M=W[J];if(!Z)Z=N;Y[G]=K,W[G]=N;let B=J,I=0;while(B!==G)I+=Y[B++],B=B%$;if(G=(G+1)%$,G===J)J=(J+1)%$;if(N-Z<Q)return;let U=M&&N-M;return U?Math.round(I*1000/U):void 0}}var r5;var o5=T(()=>{r5=GQ});function ZQ($,Q){let Y=0,W=1000/Q,G,J,Z=(N,M=Date.now())=>{if(Y=M,G=null,J)clearTimeout(J),J=null;$(...N)};return[(...N)=>{let M=Date.now(),B=M-Y;if(B>=W)Z(N,M);else if(G=N,!J)J=setTimeout(()=>{J=null,Z(G)},W-B)},()=>G&&Z(G)]}var e5;var $6=T(()=>{e5=ZQ});var F0=($,Q,Y=3)=>{let W=0,G=r5(50,250);return e5((J)=>{if(!J||typeof J.loaded!=="number")return;let Z=J.loaded,z=J.lengthComputable?J.total:void 0,K=z!=null?Math.min(Z,z):Z,N=Math.max(0,K-W),M=G(N);W=Math.max(W,K);let B={loaded:K,total:z,progress:z?K/z:void 0,bytes:N,rate:M?M:void 0,estimated:M&&z?(z-K)/M:void 0,event:J,lengthComputable:z!=null,[Q?"download":"upload"]:!0};$(B)},Y)},p0=($,Q)=>{let Y=$!=null;return[(W)=>Q[0]({lengthComputable:Y,total:$,loaded:W}),Q[1]]},i0=($)=>(...Q)=>X.asap(()=>$(...Q));var b4=T(()=>{o5();$6();x()});function F4($){if(!$||typeof $!=="string")return 0;if(!$.startsWith("data:"))return 0;let Q=$.indexOf(",");if(Q<0)return 0;let Y=$.slice(5,Q),W=$.slice(Q+1);if(/;base64/i.test(Y)){let{length:Z,length:z}=W;for(let U=0;U<z;U++)if(W.charCodeAt(U)===37&&U+2<z){let S=W.charCodeAt(U+1),q=W.charCodeAt(U+2);if(x4(S)&&x4(q))Z-=2,U+=2}let K=0,N=z-1,M=(U)=>U>=2&&W.charCodeAt(U-2)===37&&W.charCodeAt(U-1)===51&&(W.charCodeAt(U)===68||W.charCodeAt(U)===100);if(N>=0){if(W.charCodeAt(N)===61)K++,N--;else if(M(N))K++,N-=3}if(K===1&&N>=0){if(W.charCodeAt(N)===61)K++;else if(M(N))K++}let I=Math.floor(Z/4)*3-(K||0);return I>0?I:0}let J=0;for(let Z=0,z=W.length;Z<z;Z++){let K=W.charCodeAt(Z);if(K===37&&JQ(W,Z,z))J+=1,Z+=2;else if(K<128)J+=1;else if(K<2048)J+=2;else if(K>=55296&&K<=56319&&Z+1<z){let N=W.charCodeAt(Z+1);if(N>=56320&&N<=57343)J+=4,Z++;else J+=3}else J+=3}return J}var x4=($)=>$>=48&&$<=57||$>=65&&$<=70||$>=97&&$<=102,JQ=($,Q,Y)=>Q+2<Y&&x4($.charCodeAt(Q+1))&&x4($.charCodeAt(Q+2));var T1=()=>{};import M6 from"http";import B6 from"https";import zQ from"http2";import NQ from"util";import{resolve as Q6}from"path";import Y0 from"zlib";import J0 from"stream";import{EventEmitter as MQ}from"events";function wQ($,Q,Y){if(Y!=="content-only"){$.set(Q);return}Object.entries(Q).forEach(([W,G])=>{if(LQ.includes(W.toLowerCase()))$.set(W,G)})}function DQ($=process.versions&&process.versions.node){if(!$)return!1;let[Q,Y]=$.split(".").map((W)=>Number(W));if(!Number.isInteger(Q)||!Number.isInteger(Y))return!1;if(Q>24)return!0;return Z6[Q]!=null&&Y>=Z6[Q]}function _Q($,Q=process.versions&&process.versions.node){if(!DQ(Q))return!1;let Y=$&&$.options;return Boolean(Y&&X.hasOwnProp(Y,"proxyEnv")&&Y.proxyEnv!=null)}function TQ($,Q,Y){return q1.test($.protocol)?Y||B6.globalAgent:Q||M6.globalAgent}function RQ($,Q){let Y=$.protocol+"//"+$.hostname+":"+($.port||"")+"#"+($.auth||""),W=Q?G6.get(Q)||G6.set(Q,new Map).get(Q):SQ,G=W.get(Y);if(G)return G;let J=Q&&Q.options?{...Q.options,...$}:$;if(G=new R1.default(J),Q&&Q.options){let Z={...Q.options},z=G.callback;G.callback=function(N,M){return z.call(this,N,{...Z,...M})}}return G[L6]=!0,W.set(Y,G),G}function PQ($,Q,Y){if($.beforeRedirects.proxy)$.beforeRedirects.proxy($);if($.beforeRedirects.auth)$.beforeRedirects.auth($);if($.beforeRedirects.sensitiveHeaders)$.beforeRedirects.sensitiveHeaders($,Y);if($.beforeRedirects.config)$.beforeRedirects.config($,Q,Y)}function CQ($,Q){if(!$)return;Object.keys($).forEach((Y)=>{if(Q.has(Y.toLowerCase()))delete $[Y]})}function OQ($,Q){if(!Q)return!1;try{return new URL(Q.url).origin===new URL($.href).origin}catch(Y){return!1}}function w6($,Q,Y,W,G,J){let Z=Q,z=TQ($,J,G);if(!Z&&Z!==!1&&!_Q(z)){let K=N6(Y);if(K){if(!_1(Y))Z=new URL(K)}}if(W&&$.headers){for(let K of Object.keys($.headers))if(K.toLowerCase()==="proxy-authorization")delete $.headers[K]}if(W&&$.agent&&$.agent[L6])$.agent=void 0;if(Z){let K=Z instanceof URL,N=(S)=>K||X.hasOwnProp(Z,S)?Z[S]:void 0,M=N("username"),B=N("password"),I=X.hasOwnProp(Z,"auth")?Z.auth:void 0;if(M)I=(M||"")+":"+(B||"");if(I){let S=typeof I==="object",q=S&&X.hasOwnProp(I,"username")?I.username:void 0,L=S&&X.hasOwnProp(I,"password")?I.password:void 0;if(Boolean(q||L))I=(q||"")+":"+(L||"");else if(S)throw new V("Invalid proxy authorization",V.ERR_BAD_OPTION,{proxy:Z})}if(q1.test($.protocol)){if(!(G instanceof R1.default)){let S=N("hostname")||N("host"),q=N("port"),L=N("protocol"),F=L?L.includes(":")?L:`${L}:`:"http:",_=S&&S.includes(":")&&!S.startsWith("[")?`[${S}]`:S,R=new URL(`${F}//${_}${q?":"+q:""}`),O={protocol:R.protocol,hostname:R.hostname.replace(/^\[|\]$/g,""),port:R.port,auth:I&&typeof I==="string"?I:void 0};if(R.protocol==="https:")O.ALPNProtocols=["http/1.1"];let v=RQ(O,G);if($.agent=v,$.agents)$.agents.https=v}}else{if(I){let F=Buffer.from(I,"utf8").toString("base64");$.headers["Proxy-Authorization"]="Basic "+F}let S=!1;for(let F of Object.keys($.headers))if(F.toLowerCase()==="host"){S=!0;break}if(!S)$.headers.host=$.hostname+($.port?":"+$.port:"");let q=N("hostname")||N("host");$.hostname=q,$.host=q,$.port=N("port"),$.path=Y;let L=N("protocol");if(L)$.protocol=L.includes(":")?L:`${L}:`}}$.beforeRedirects.proxy=function(N){w6(N,Q,N.href,!0,G,J)}}var R1,V6,Y6,BQ,VQ,I6,F6,U6,IQ,FQ,UQ,q1,LQ,W6,v4,L6,SQ,G6,Z6,J6,X6=($)=>{if(!X.isString($))return $;try{return decodeURIComponent($)}catch(Q){return $}},K6=($,[Q,Y])=>{return $.on("end",Y).on("error",Y),Q},qQ,HQ,EQ=($)=>{return new Promise((Q,Y)=>{let W,G,J=(K,N)=>{if(G)return;G=!0,W&&W(K,N)},Z=(K)=>{J(K),Q(K)},z=(K)=>{J(K,!0),Y(K)};$(Z,z,(K)=>W=K).catch(z)})},AQ=({address:$,family:Q})=>{if(!X.isString($))throw TypeError("address must be a string");return{address:$,family:Q||($.indexOf(".")<0?6:4)}},z6=($,Q)=>AQ(X.isObject($)?$:{address:$,family:Q}),jQ,S6;var D6=T(()=>{x();E4();A4();C4();XQ();B4();W4();t();O0();Z0();k5();G0();x5();f5();S1();u5();l5();i5();t5();$4();b4();T1();R1=n4(j5(),1),V6=n4(KQ(),1),Y6={flush:Y0.constants.Z_SYNC_FLUSH,finishFlush:Y0.constants.Z_SYNC_FLUSH},BQ={flush:Y0.constants.BROTLI_OPERATION_FLUSH,finishFlush:Y0.constants.BROTLI_OPERATION_FLUSH},VQ={flush:Y0.constants.ZSTD_e_flush,finishFlush:Y0.constants.ZSTD_e_flush},I6=X.isFunction(Y0.createBrotliDecompress),F6=X.isFunction(Y0.createZstdDecompress),U6="gzip, compress, deflate"+(I6?", br":""),IQ=U6+(F6?", zstd":""),{http:FQ,https:UQ}=V6.default,q1=/https:?/,LQ=["content-type","content-length"];W6=Symbol("axios.http.socketListener"),v4=Symbol("axios.http.currentReq"),L6=Symbol("axios.http.installedTunnel"),SQ=new Map,G6=new WeakMap,Z6={22:21,24:5};J6=j.protocols.map(($)=>{return $+":"}),qQ=new d5;HQ=typeof process<"u"&&X.kindOf(process)==="process",jQ={request($,Q){let Y=$.protocol+"//"+$.hostname+":"+($.port||($.protocol==="https:"?443:80)),{http2Options:W,headers:G}=$,J=qQ.getSession(Y,W),{HTTP2_HEADER_SCHEME:Z,HTTP2_HEADER_METHOD:z,HTTP2_HEADER_PATH:K,HTTP2_HEADER_STATUS:N}=zQ.constants,M={[Z]:$.protocol.replace(":",""),[z]:$.method,[K]:$.path};X.forEach(G,(I,U)=>{U.charAt(0)!==":"&&(M[U]=I)});let B=J.request(M);return B.once("response",(I)=>{let U=B;I=Object.assign({},I);let S=I[N];delete I[N],U.headers=I,U.statusCode=+S,Q(U)}),B}},S6=HQ&&function(Q){return EQ(async function(W,G,J){let Z=(D)=>X.getSafeProp(Q,D),z=Z("transitional")||D0,K=Z("data"),N=Z("lookup"),M=Z("family"),B=Z("httpVersion");if(B===void 0)B=1;let I=Z("http2Options"),U=Z("httpAgent"),S=Z("httpsAgent"),q=Z("proxy"),L=Z("responseType"),F=Z("responseEncoding"),_=Z("socketPath"),R=Z("method").toUpperCase(),O=Z("maxRedirects"),v=Z("maxBodyLength"),k=Z("maxContentLength"),K0=Z("decompress"),j0,U0=!1,E,e;if(B=+B,Number.isNaN(B))throw TypeError(`Invalid protocol version: '${Q.httpVersion}' is not a number`);if(B!==1&&B!==2)throw TypeError(`Unsupported protocol version '${B}'`);let k0=B===2;if(N){let D=p5(N,(w)=>X.isArray(w)?w:[w]);N=(w,H,h)=>{D(w,H,(C,l,s)=>{if(C)return h(C);let u=X.isArray(l)?l.map((v0)=>z6(v0)):[z6(l,s)];H.all?h(C,u):h(C,u[0].address,u[0].family)})}}let L0=new MQ;function c(D){try{L0.emit("abort",!D||D.type?new $0(null,Q,E):D)}catch(w){}}function B0(){if(e)clearTimeout(e),e=null}function _0(){let D=Z("timeout"),w=D?"timeout of "+D+"ms exceeded":"timeout exceeded",H=Z("timeoutErrorMessage");if(H)w=H;return new V(w,z.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,Q,E)}L0.once("abort",G);let T0=()=>{if(B0(),Q.cancelToken)Q.cancelToken.unsubscribe(c);if(Q.signal)Q.signal.removeEventListener("abort",c);L0.removeAllListeners()};if(Q.cancelToken||Q.signal){if(Q.cancelToken&&Q.cancelToken.subscribe(c),Q.signal)Q.signal.aborted?c():Q.signal.addEventListener("abort",c)}J((D,w)=>{if(j0=!0,B0(),w){U0=!0,T0();return}let{data:H}=D;if(H instanceof J0.Readable||H instanceof J0.Duplex){let h=J0.finished(H,()=>{h(),T0()})}else T0()});let S4=H0(Z("baseURL"),Z("url"),Z("allowAbsoluteUrls"),Q),D4=_?"http://localhost":j.hasBrowserEnv?j.origin:void 0,m=new URL(S4,D4),f=m.protocol||J6[0];if(f==="data:"){if(k>-1){let w=String(Z("url")||S4||"");if(F4(w)>k)return G(new V("maxContentLength size of "+k+" exceeded",V.ERR_BAD_RESPONSE,Q))}let D;if(R!=="GET")return M0(W,G,{status:405,statusText:"method not allowed",headers:{},config:Q});try{D=U1(Z("url"),L==="blob",{Blob:Q.env&&Q.env.Blob})}catch(w){throw V.from(w,V.ERR_BAD_REQUEST,Q)}if(L==="text"){if(D=D.toString(F),!F||F==="utf8")D=X.stripBOM(D)}else if(L==="stream")D=J0.Readable.from(D);return M0(W,G,{data:D,status:200,statusText:"OK",headers:new y,config:Q})}if(J6.indexOf(f)===-1)return G(new V("Unsupported protocol "+f,V.ERR_BAD_REQUEST,Q));let g=y.from(Q.headers).normalize();g.set("User-Agent","axios/"+I0,!1);let{onUploadProgress:z0,onDownloadProgress:V0}=Q,R0=Q.maxRate,A=void 0,i=void 0;if(X.isSpecCompliantForm(K)){let D=g.getContentType(/boundary=([-_\w\d]{10,70})/i);K=m5(K,(w)=>{g.set(w)},{tag:`axios-${I0}-boundary`,boundary:D&&D[1]||void 0})}else if(X.isFormData(K)&&X.isFunction(K.getHeaders)&&K.getHeaders!==Object.prototype.getHeaders){if(wQ(g,K.getHeaders(),Z("formDataHeaderPolicy")),!g.hasContentLength())try{let D=await NQ.promisify(K.getLength).call(K);Number.isFinite(D)&&D>=0&&g.setContentLength(D)}catch(D){}}else if(X.isBlob(K)||X.isFile(K))K.size&&g.setContentType(K.type||"application/octet-stream"),g.setContentLength(K.size||0),K=J0.Readable.from(k4(K));else if(K&&!X.isStream(K)){if(Buffer.isBuffer(K));else if(X.isArrayBuffer(K))K=Buffer.from(new Uint8Array(K));else if(X.isString(K))K=Buffer.from(K,"utf-8");else return G(new V("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",V.ERR_BAD_REQUEST,Q));if(g.setContentLength(K.length,!1),v>-1&&K.length>v)return G(new V("Request body larger than maxBodyLength limit",V.ERR_BAD_REQUEST,Q))}let b0=X.toFiniteNumber(g.getContentLength());if(X.isArray(R0))A=R0[0],i=R0[1];else A=i=R0;if(K&&(z0||A)){if(!X.isStream(K))K=J0.Readable.from(K,{objectMode:!1});K=J0.pipeline([K,new w1({maxRate:X.toFiniteNumber(A)})],X.noop),z0&&K.on("progress",K6(K,p0(b0,F0(i0(z0),!1,3))))}let N0=void 0,n0=Z("auth");if(n0){let D=X.getSafeProp(n0,"username")||"",w=X.getSafeProp(n0,"password")||"";N0=D+":"+w}if(!N0&&(m.username||m.password)){let D=X6(m.username),w=X6(m.password);N0=D+":"+w}N0&&g.delete("authorization");let a0;try{a0=C0(m.pathname+m.search,Z("params"),Z("paramsSerializer")).replace(/^\?/,"")}catch(D){return G(V.from(D,V.ERR_BAD_REQUEST,Q,null,null,{url:Z("url"),exists:!0}))}g.set("Accept-Encoding",X.hasOwnProp(z,"advertiseZstdAcceptEncoding")&&z.advertiseZstdAcceptEncoding===!0?IQ:U6,!1);let b=Object.assign(Object.create(null),{path:a0,method:R,headers:g0(g),agents:{http:U,https:S},auth:N0,protocol:f,family:M,beforeRedirect:PQ,beforeRedirects:Object.create(null),http2Options:I});if(!X.isUndefined(N)&&(b.lookup=N),_){if(typeof _!=="string")return G(new V("socketPath must be a string",V.ERR_BAD_OPTION_VALUE,Q));let D=Z("allowedSocketPaths");if(D!=null){let w=Array.isArray(D)?D:[D],H=Q6(_);if(!w.some((C)=>typeof C==="string"&&Q6(C)===H))return G(new V(`socketPath "${_}" is not permitted by allowedSocketPaths`,V.ERR_BAD_OPTION_VALUE,Q))}b.socketPath=_}else b.hostname=m.hostname.startsWith("[")?m.hostname.slice(1,-1):m.hostname,b.port=m.port,w6(b,q,f+"//"+m.hostname+(m.port?":"+m.port:"")+b.path,!1,S,U);let w0,x0=!1,Q0=!1,P=q1.test(b.protocol);if(b.agent==null)b.agent=P?S:U;if(k0)w0=jQ;else{let D=Z("transport");if(D)w0=D;else if(O===0)w0=P?B6:M6,x0=!0;else{if(Q0=!0,b.sensitiveHeaders=[],O)b.maxRedirects=O;let w=Z("beforeRedirect");if(w)b.beforeRedirects.config=w;if(N0){let h=m.origin,C=N0;b.beforeRedirects.auth=function(s){try{if(new URL(s.href).origin===h)s.auth=C}catch(u){}}}let H=Z("sensitiveHeaders");if(H!=null){if(!X.isArray(H))return G(new V("sensitiveHeaders must be an array of strings",V.ERR_BAD_OPTION_VALUE,Q));let h=new Set;for(let C of H){if(!X.isString(C))return G(new V("sensitiveHeaders must be an array of strings",V.ERR_BAD_OPTION_VALUE,Q));h.add(C.toLowerCase())}if(h.size)b.sensitiveHeaders=Array.from(h),b.beforeRedirects.sensitiveHeaders=function(l,s){if(!OQ(l,s))CQ(l.headers,h)}}w0=P?UQ:FQ}}if(v>-1)b.maxBodyLength=v;else b.maxBodyLength=1/0;b.insecureHTTPParser=Boolean(Z("insecureHTTPParser")),E=w0.request(b,function(w){if(B0(),E.destroyed)return;let H=[w],h=X.toFiniteNumber(w.headers["content-length"]);if(V0||i){let u=new w1({maxRate:X.toFiniteNumber(i)});V0&&u.on("progress",K6(u,p0(h,F0(i0(V0),!0,3)))),H.push(u)}let C=w,l=w.req||E;if(K0!==!1&&w.headers["content-encoding"]){if(R==="HEAD"||w.statusCode===204)delete w.headers["content-encoding"];switch((w.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":H.push(Y0.createUnzip(Y6)),delete w.headers["content-encoding"];break;case"deflate":H.push(new g5),H.push(Y0.createUnzip(Y6)),delete w.headers["content-encoding"];break;case"br":if(I6)H.push(Y0.createBrotliDecompress(BQ)),delete w.headers["content-encoding"];break;case"zstd":if(F6)H.push(Y0.createZstdDecompress(VQ)),delete w.headers["content-encoding"];break}}C=H.length>1?J0.pipeline(H,X.noop):H[0];let s={status:w.statusCode,statusText:w.statusMessage,headers:new y(w.headers),config:Q,request:l};if(L==="stream"){if(k>-1){let u=k,v0=C;async function*s0(){let p=0;for await(let v1 of v0){if(p+=v1.length,p>u)throw new V("maxContentLength size of "+u+" exceeded",V.ERR_BAD_RESPONSE,Q,l);yield v1}}C=J0.Readable.from(s0(),{objectMode:!1})}s.data=C,M0(W,G,s)}else{let u=[],v0=0;C.on("data",function(p){if(u.push(p),v0+=p.length,k>-1&&v0>k)U0=!0,C.destroy(),c(new V("maxContentLength size of "+k+" exceeded",V.ERR_BAD_RESPONSE,Q,l))}),C.on("aborted",function(){if(U0)return;let p=new V("stream has been aborted",V.ERR_BAD_RESPONSE,Q,l,s);C.destroy(p),G(p)}),C.on("error",function(p){if(U0)return;G(V.from(p,null,Q,l,s))}),C.on("end",function(){try{let p=u.length===1?u[0]:Buffer.concat(u);if(L!=="arraybuffer"){if(p=p.toString(F),!F||F==="utf8")p=X.stripBOM(p)}s.data=p}catch(p){return G(V.from(p,null,Q,s.request,s))}M0(W,G,s)})}L0.once("abort",(u)=>{if(!C.destroyed)C.emit("error",u),C.destroy()})}),L0.once("abort",(D)=>{if(E.close)E.close();else E.destroy(D)}),E.on("error",function(w){G(V.from(w,null,Q,E))});let n=new Set;if(E.on("socket",function(w){if(typeof w.setKeepAlive==="function")w.setKeepAlive(!0,60000);if(!w[W6])w.on("error",function(h){let C=w[v4];if(C&&!C.destroyed)C.destroy(h)}),w[W6]=!0;w[v4]=E,n.add(w)}),E.once("close",function(){B0();for(let w of n)if(w[v4]===E)w[v4]=null;n.clear()}),Z("timeout")){let D=parseInt(Z("timeout"),10);if(Number.isNaN(D)){c(new V("error trying to parse `config.timeout` to int",V.ERR_BAD_OPTION_VALUE,Q,E));return}let w=function(){if(j0)return;c(_0())};if(x0&&D>0)e=setTimeout(w,D);E.setTimeout(D,w)}else E.setTimeout(0);if(X.isStream(K)){let D=!1,w=!1;K.on("end",()=>{D=!0}),K.once("error",(h)=>{w=!0,E.destroy(h)}),K.on("close",()=>{if(!D&&!w)c(new $0("Request stream has been aborted",Q,E))});let H=K;if(v>-1&&!Q0){let h=v,C=0;H=J0.pipeline([K,new J0.Transform({transform(l,s,u){if(C+=l.length,C>h)return u(new V("Request body larger than maxBodyLength limit",V.ERR_BAD_REQUEST,Q,E));u(null,l)}})],X.noop),H.on("error",(l)=>{if(!E.destroyed)E.destroy(l)})}H.pipe(E)}else K&&E.write(K),E.end()})}});var _6;var T6=T(()=>{Z0();_6=j.hasStandardBrowserEnv?(($,Q)=>(Y)=>{return Y=new URL(Y,j.origin),$.protocol===Y.protocol&&$.host===Y.host&&(Q||$.port===Y.port)})(new URL(j.origin),j.navigator&&/(msie|trident)/i.test(j.navigator.userAgent)):()=>!0});var R6;var q6=T(()=>{x();Z0();R6=j.hasStandardBrowserEnv?{write($,Q,Y,W,G,J,Z){if(typeof document>"u")return;let z=[`${$}=${encodeURIComponent(Q)}`];if(X.isNumber(Y))z.push(`expires=${new Date(Y).toUTCString()}`);if(X.isString(W))z.push(`path=${W}`);if(X.isString(G))z.push(`domain=${G}`);if(J===!0)z.push("secure");if(X.isString(Z))z.push(`SameSite=${Z}`);document.cookie=z.join("; ")},read($){if(typeof document>"u")return null;let Q=document.cookie.split(";");for(let Y=0;Y<Q.length;Y++){let W=Q[Y].replace(/^\s+/,""),G=W.indexOf("=");if(G!==-1&&W.slice(0,G)===$)try{return decodeURIComponent(W.slice(G+1))}catch(J){return W.slice(G+1)}}return null},remove($){this.write($,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}}});function X0($,Q){$=$||{},Q=Q||{};let Y=Object.create(null);Object.defineProperty(Y,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function W(M,B,I,U){if(X.isPlainObject(M)&&X.isPlainObject(B))return X.merge.call({caseless:U},M,B);else if(X.isPlainObject(B))return X.merge({},B);else if(X.isArray(B))return B.slice();return B}function G(M,B,I,U){if(!X.isUndefined(B))return W(M,B,I,U);else if(!X.isUndefined(M))return W(void 0,M,I,U)}function J(M,B){if(!X.isUndefined(B))return W(void 0,B)}function Z(M,B){if(!X.isUndefined(B))return W(void 0,B);else if(!X.isUndefined(M))return W(void 0,M)}function z(M){let B=X.hasOwnProp(Q,"transitional")?Q.transitional:void 0;if(!X.isUndefined(B))if(X.isPlainObject(B)){if(X.hasOwnProp(B,M))return B[M]}else return;let I=X.hasOwnProp($,"transitional")?$.transitional:void 0;if(X.isPlainObject(I)&&X.hasOwnProp(I,M))return I[M];return}function K(M,B,I){if(X.hasOwnProp(Q,I))return W(M,B);else if(X.hasOwnProp($,I))return W(void 0,M)}let N={url:J,method:J,data:J,baseURL:Z,transformRequest:Z,transformResponse:Z,paramsSerializer:Z,timeout:Z,timeoutMessage:Z,withCredentials:Z,withXSRFToken:Z,adapter:Z,responseType:Z,xsrfCookieName:Z,xsrfHeaderName:Z,onUploadProgress:Z,onDownloadProgress:Z,decompress:Z,maxContentLength:Z,maxBodyLength:Z,beforeRedirect:Z,transport:Z,httpAgent:Z,httpsAgent:Z,cancelToken:Z,socketPath:Z,allowedSocketPaths:Z,responseEncoding:Z,validateStatus:K,headers:(M,B,I)=>G(P6(M),P6(B),I,!0)};if(X.forEach(Object.keys({...$,...Q}),function(B){if(B==="__proto__"||B==="constructor"||B==="prototype")return;let I=X.hasOwnProp(N,B)?N[B]:G,U=X.hasOwnProp($,B)?$[B]:void 0,S=X.hasOwnProp(Q,B)?Q[B]:void 0,q=I(U,S,B);X.isUndefined(q)&&I!==K||(Y[B]=q)}),X.hasOwnProp(Q,"validateStatus")&&X.isUndefined(Q.validateStatus)&&z("validateStatusUndefinedResolves")===!1)if(X.hasOwnProp($,"validateStatus"))Y.validateStatus=W(void 0,$.validateStatus);else delete Y.validateStatus;return Y}var P6=($)=>$ instanceof y?{...$}:$;var y4=T(()=>{x();G0()});function bQ($,Q,Y){if(Y!=="content-only"){$.set(Q);return}Object.entries(Q||{}).forEach(([W,G])=>{if(kQ.includes(W.toLowerCase()))$.set(W,G)})}function vQ($){let Q=X0({},$),Y=(I)=>X.hasOwnProp(Q,I)?Q[I]:void 0,W=Y("data"),G=Y("withXSRFToken"),J=Y("xsrfHeaderName"),Z=Y("xsrfCookieName"),z=Y("headers"),K=Y("auth"),N=Y("baseURL"),M=Y("allowAbsoluteUrls"),B=Y("url");if(Q.headers=z=y.from(z),Q.url=C0(H0(N,B,M,Q),Y("params"),Y("paramsSerializer")),K){let I=X.getSafeProp(K,"username")||"",U=X.getSafeProp(K,"password")||"";try{z.set("Authorization","Basic "+btoa(I+":"+(U?xQ(U):"")))}catch(S){throw V.from(S,V.ERR_BAD_OPTION_VALUE,$)}}if(X.isFormData(W)){if(j.hasStandardBrowserEnv||j.hasStandardBrowserWebWorkerEnv||X.isReactNative(W))z.setContentType(void 0);else if(X.isFunction(W.getHeaders))bQ(z,W.getHeaders(),Y("formDataHeaderPolicy"))}if(j.hasStandardBrowserEnv){if(X.isFunction(G))G=G(Q);if(G===!0||G==null&&_6(Q.url)){let U=J&&Z&&R6.read(Z);if(U)z.set(J,U)}}return Q}var kQ,xQ=($)=>encodeURIComponent($).replace(/%([0-9A-F]{2})/gi,(Q,Y)=>String.fromCharCode(parseInt(Y,16))),m4;var P1=T(()=>{Z0();x();t();T6();q6();A4();y4();G0();C4();kQ=["content-type","content-length"];m4=vQ});var yQ,C6;var O6=T(()=>{x();E4();W4();t();O0();F1();Z0();G0();b4();P1();$4();yQ=typeof XMLHttpRequest<"u",C6=yQ&&function($){return new Promise(function(Y,W){let G=m4($),J=G.data,Z=y.from(G.headers).normalize(),{responseType:z,onUploadProgress:K,onDownloadProgress:N}=G,M,B,I,U,S;function q(){U&&U(),S&&S(),G.cancelToken&&G.cancelToken.unsubscribe(M),G.signal&&G.signal.removeEventListener("abort",M)}let L=new XMLHttpRequest;L.open(G.method.toUpperCase(),G.url,!0),L.timeout=G.timeout;function F(){if(!L)return;let R=y.from("getAllResponseHeaders"in L&&L.getAllResponseHeaders()),v={data:!z||z==="text"||z==="json"?L.responseText:L.response,status:L.status,statusText:L.statusText,headers:R,config:$,request:L};M0(function(K0){Y(K0),q()},function(K0){W(K0),q()},v),L=null}if("onloadend"in L)L.onloadend=F;else L.onreadystatechange=function(){if(!L||L.readyState!==4)return;if(L.status===0&&!(L.responseURL&&L.responseURL.startsWith("file:")))return;setTimeout(F)};if(L.onabort=function(){if(!L)return;W(new V("Request aborted",V.ECONNABORTED,$,L)),q(),L=null},L.onerror=function(O){let v=O&&O.message?O.message:"Network Error",k=new V(v,V.ERR_NETWORK,$,L);k.event=O||null,W(k),q(),L=null},L.ontimeout=function(){let O=G.timeout?"timeout of "+G.timeout+"ms exceeded":"timeout exceeded",v=G.transitional||D0;if(G.timeoutErrorMessage)O=G.timeoutErrorMessage;W(new V(O,v.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,$,L)),q(),L=null},J===void 0&&Z.setContentType(null),"setRequestHeader"in L)X.forEach(g0(Z),function(O,v){L.setRequestHeader(v,O)});if(!X.isUndefined(G.withCredentials))L.withCredentials=!!G.withCredentials;if(z&&z!=="json")L.responseType=G.responseType;if(N)[I,S]=F0(N,!0),L.addEventListener("progress",I);if(K&&L.upload)[B,U]=F0(K),L.upload.addEventListener("progress",B),L.upload.addEventListener("loadend",U);if(G.cancelToken||G.signal){if(M=(R)=>{if(!L)return;W(!R||R.type?new $0(null,$,L):R),L.abort(),q(),L=null},G.cancelToken&&G.cancelToken.subscribe(M),G.signal)G.signal.aborted?M():G.signal.addEventListener("abort",M)}let _=V4(G.url);if(_&&!j.protocols.includes(_)){W(new V("Unsupported protocol "+_+":",V.ERR_BAD_REQUEST,$)),q();return}L.send(J||null)})}});var mQ=($,Q)=>{if($=$?$.filter(Boolean):[],!Q&&!$.length)return;let Y=new AbortController,W=!1,G=function(K){if(!W){W=!0,Z();let N=K instanceof Error?K:this.reason;Y.abort(N instanceof V?N:new $0(N instanceof Error?N.message:N))}},J=Q&&setTimeout(()=>{J=null,G(new V(`timeout of ${Q}ms exceeded`,V.ETIMEDOUT))},Q),Z=()=>{if(!$)return;J&&clearTimeout(J),J=null,$.forEach((K)=>{K.unsubscribe?K.unsubscribe(G):K.removeEventListener("abort",G)}),$=null};$.forEach((K)=>K.addEventListener("abort",G,{once:!0}));let{signal:z}=Y;return z.unsubscribe=()=>X.asap(Z),z},H6;var E6=T(()=>{O0();t();x();H6=mQ});var fQ=function*($,Q){let Y=$.byteLength;if(!Q||Y<Q){yield $;return}let W=0,G;while(W<Y)G=W+Q,yield $.slice(W,G),W=G},hQ=async function*($,Q){for await(let Y of gQ($))yield*fQ(Y,Q)},gQ=async function*($){if($[Symbol.asyncIterator]){yield*$;return}let Q=$.getReader();try{for(;;){let{done:Y,value:W}=await Q.read();if(Y)break;yield W}}finally{await Q.cancel()}},C1=($,Q,Y,W)=>{let G=hQ($,Q),J=0,Z,z=(K)=>{if(!Z)Z=!0,W&&W(K)};return new ReadableStream({async pull(K){try{let{done:N,value:M}=await G.next();if(N){z(),K.close();return}let B=M.byteLength;if(Y){let I=J+=B;Y(I)}K.enqueue(new Uint8Array(M))}catch(N){throw z(N),N}},cancel(K){return z(K),G.return()}},{highWaterMark:2})};var A6=()=>{};var j6=65536,f4,uQ=($)=>encodeURIComponent($).replace(/%([0-9A-F]{2})/gi,(Q,Y)=>String.fromCharCode(parseInt(Y,16))),k6=($)=>{if(!X.isString($))return $;try{return decodeURIComponent($)}catch(Q){return $}},b6=($,...Q)=>{try{return!!$(...Q)}catch(Y){return!1}},cQ=($)=>{let Q=$.indexOf("://"),Y=$;if(Q!==-1)Y=Y.slice(Q+3);return Y.includes("@")||Y.includes(":")},dQ=($)=>{let Q=X.global!==void 0&&X.global!==null?X.global:globalThis,{ReadableStream:Y,TextEncoder:W}=Q;$=X.merge.call({skipUndefined:!0},{Request:Q.Request,Response:Q.Response},$);let{fetch:G,Request:J,Response:Z}=$,z=G?f4(G):typeof fetch==="function",K=f4(J),N=f4(Z);if(!z)return!1;let M=z&&f4(Y),B=z&&(typeof W==="function"?((F)=>(_)=>F.encode(_))(new W):async(F)=>new Uint8Array(await new J(F).arrayBuffer())),I=K&&M&&b6(()=>{let F=!1,_=new J(j.origin,{body:new Y,method:"POST",get duplex(){return F=!0,"half"}}),R=_.headers.has("Content-Type");if(_.body!=null)_.body.cancel();return F&&!R}),U=N&&M&&b6(()=>X.isReadableStream(new Z("").body)),S={stream:U&&((F)=>F.body)};z&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((F)=>{!S[F]&&(S[F]=(_,R)=>{let O=_&&_[F];if(O)return O.call(_);throw new V(`Response type '${F}' is not supported`,V.ERR_NOT_SUPPORT,R)})})})();let q=async(F)=>{if(F==null)return 0;if(X.isBlob(F))return F.size;if(X.isSpecCompliantForm(F))return(await new J(j.origin,{method:"POST",body:F}).arrayBuffer()).byteLength;if(X.isArrayBufferView(F)||X.isArrayBuffer(F))return F.byteLength;if(X.isURLSearchParams(F))F=F+"";if(X.isString(F))return(await B(F)).byteLength},L=async(F,_)=>{let R=X.toFiniteNumber(F.getContentLength());return R==null?q(_):R};return async(F)=>{let{url:_,method:R,data:O,signal:v,cancelToken:k,timeout:K0,onDownloadProgress:j0,onUploadProgress:U0,responseType:E,headers:e,withCredentials:k0="same-origin",fetchOptions:L0,maxContentLength:c,maxBodyLength:B0}=m4(F),_0=X.isNumber(c)&&c>-1,T0=X.isNumber(B0)&&B0>-1,S4=(A)=>X.hasOwnProp(F,A)?F[A]:void 0,D4=G||fetch;E=E?(E+"").toLowerCase():"text";let m=H6([v,k&&k.toAbortSignal()],K0),f=null,g=m&&m.unsubscribe&&(()=>{m.unsubscribe()}),z0,V0=null,R0=()=>new V("Request body larger than maxBodyLength limit",V.ERR_BAD_REQUEST,F,f);try{let A=void 0,i=S4("auth");if(i){let P=X.getSafeProp(i,"username")||"",n=X.getSafeProp(i,"password")||"";A={username:P,password:n}}if(cQ(_)){let P=new URL(_,j.origin);if(!A&&(P.username||P.password)){let n=k6(P.username),D=k6(P.password);A={username:n,password:D}}if(P.username||P.password)P.username="",P.password="",_=P.href}if(A)e.delete("authorization"),e.set("Authorization","Basic "+btoa(uQ((A.username||"")+":"+(A.password||""))));if(_0&&typeof _==="string"&&_.startsWith("data:")){if(F4(_)>c)throw new V("maxContentLength size of "+c+" exceeded",V.ERR_BAD_RESPONSE,F,f)}if(T0&&R!=="get"&&R!=="head"){let P=await q(O);if(typeof P==="number"&&isFinite(P)){if(z0=P,P>B0)throw R0()}}let b0=T0&&(X.isReadableStream(O)||X.isStream(O)),N0=(P,n,D)=>C1(P,j6,(w)=>{if(T0&&w>B0)throw V0=R0();n&&n(w)},D);if(I&&R!=="get"&&R!=="head"&&(U0||b0)){if(z0=z0==null?await L(e,O):z0,z0!==0||b0){let P=new J(_,{method:"POST",body:O,duplex:"half"}),n;if(X.isFormData(O)&&(n=P.headers.get("content-type")))e.setContentType(n);if(P.body){let[D,w]=U0&&p0(z0,F0(i0(U0)))||[];O=N0(P.body,D,w)}}}else if(b0&&!K&&M&&R!=="get"&&R!=="head")O=N0(O);else if(b0&&K&&!I&&R!=="get"&&R!=="head")throw new V("Stream request bodies are not supported by the current fetch implementation",V.ERR_NOT_SUPPORT,F,f);if(!X.isString(k0))k0=k0?"include":"omit";let n0=K&&"credentials"in J.prototype;if(X.isFormData(O)){let P=e.getContentType();if(P&&/^multipart\/form-data/i.test(P)&&!/boundary=/i.test(P))e.delete("content-type")}e.set("User-Agent","axios/"+I0,!1);let a0={...L0,signal:m,method:R.toUpperCase(),headers:g0(e.normalize()),body:O,duplex:"half",credentials:n0?k0:void 0};f=K&&new J(_,a0);let b=await(K?D4(f,L0):D4(_,a0)),w0=y.from(b.headers);if(_0){let P=X.toFiniteNumber(w0.getContentLength());if(P!=null&&P>c)throw new V("maxContentLength size of "+c+" exceeded",V.ERR_BAD_RESPONSE,F,f)}let x0=U&&(E==="stream"||E==="response");if(U&&b.body&&(j0||_0||x0&&g)){let P={};["status","statusText","headers"].forEach((C)=>{P[C]=b[C]});let n=X.toFiniteNumber(w0.getContentLength()),[D,w]=j0&&p0(n,F0(i0(j0),!0))||[],H=0,h=(C)=>{if(_0){if(H=C,H>c)throw new V("maxContentLength size of "+c+" exceeded",V.ERR_BAD_RESPONSE,F,f)}D&&D(C)};b=new Z(C1(b.body,j6,h,()=>{w&&w(),g&&g()}),P)}E=E||"text";let Q0=await S[X.findKey(S,E)||"text"](b,F);if(_0&&!U&&!x0){let P;if(Q0!=null){if(typeof Q0.byteLength==="number")P=Q0.byteLength;else if(typeof Q0.size==="number")P=Q0.size;else if(typeof Q0==="string")P=typeof W==="function"?new W().encode(Q0).byteLength:Q0.length}if(typeof P==="number"&&P>c)throw new V("maxContentLength size of "+c+" exceeded",V.ERR_BAD_RESPONSE,F,f)}return!x0&&g&&g(),await new Promise((P,n)=>{M0(P,n,{data:Q0,headers:y.from(b.headers),status:b.status,statusText:b.statusText,config:F,request:f})})}catch(A){if(g&&g(),m&&m.aborted&&m.reason instanceof V){let i=m.reason;if(i.config=F,f&&(i.request=f),A!==i)Object.defineProperty(i,"cause",{__proto__:null,value:A,writable:!0,enumerable:!1,configurable:!0});throw i}if(V0)throw f&&!V0.request&&(V0.request=f),V0;if(A instanceof V)throw f&&!A.request&&(A.request=f),A;if(A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)){let i=new V("Network Error",V.ERR_NETWORK,F,f,A&&A.response);throw Object.defineProperty(i,"cause",{__proto__:null,value:A.cause||A,writable:!0,enumerable:!1,configurable:!0}),i}throw V.from(A,A&&A.code,F,f,A&&A.response)}}},lQ,O1=($)=>{let Q=$&&$.env||{},{fetch:Y,Request:W,Response:G}=Q,J=[W,G,Y],Z=J.length,z=Z,K,N,M=lQ;while(z--)K=J[z],N=M.get(K),N===void 0&&M.set(K,N=z?new Map:dQ(Q)),M=N;return N},B9;var x6=T(()=>{Z0();x();t();E6();A6();G0();b4();P1();E4();T1();B4();$4();({isFunction:f4}=X),lQ=new Map,B9=O1()});function nQ($,Q){$=X.isArray($)?$:[$];let{length:Y}=$,W,G,J={};for(let Z=0;Z<Y;Z++){W=$[Z];let z;if(G=W,!iQ(W)){if(G=H1[(z=String(W)).toLowerCase()],G===void 0)throw new V(`Unknown adapter '${z}'`)}if(G&&(X.isFunction(G)||(G=G.get(Q))))break;J[z||"#"+Z]=G}if(!G){let Z=Object.entries(J).map(([K,N])=>`adapter ${K} `+(N===!1?"is not supported by the environment":"is not available in the build")),z=Y?Z.length>1?`since :
|
|
12
|
+
`+Z.map(v6).join(`
|
|
13
|
+
`):" "+v6(Z[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+z,V.ERR_NOT_SUPPORT)}return G}var H1,v6=($)=>`- ${$}`,iQ=($)=>X.isFunction($)||$===null||$===!1,h4;var E1=T(()=>{x();D6();O6();x6();t();H1={http:S6,xhr:C6,fetch:{get:O1}};X.forEach(H1,($,Q)=>{if($){try{Object.defineProperty($,"name",{__proto__:null,value:Q})}catch(Y){}Object.defineProperty($,"adapterName",{__proto__:null,value:Q})}});h4={getAdapter:nQ,adapters:H1}});function A1($){if($.cancelToken)$.cancelToken.throwIfRequested();if($.signal&&$.signal.aborted)throw new $0(null,$)}function g4($){if(A1($),$.headers=y.from($.headers),$.data=G4.call($,$.transformRequest),["post","put","patch"].indexOf($.method)!==-1)$.headers.setContentType("application/x-www-form-urlencoded",!1);return h4.getAdapter($.adapter||d0.adapter,$)($).then(function(W){A1($),$.response=W;try{W.data=G4.call($,$.transformResponse,W)}finally{delete $.response}return W.headers=y.from(W.headers),W},function(W){if(!Z4(W)){if(A1($),W&&W.response){$.response=W.response;try{W.response.data=G4.call($,$.transformResponse,W.response)}finally{delete $.response}W.response.headers=y.from(W.response.headers)}}return Promise.reject(W)})}var y6=T(()=>{F5();J1();H4();O0();G0();E1()});function aQ($,Q,Y){if(typeof $!=="object"||$===null)throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);let W=Object.keys($),G=W.length;while(G-- >0){let J=W[G],Z=Object.prototype.hasOwnProperty.call(Q,J)?Q[J]:void 0;if(Z){let z=$[J],K=z===void 0||Z(z,J,$);if(K!==!0)throw new V("option "+J+" must be "+K,V.ERR_BAD_OPTION_VALUE);continue}if(Y!==!0)throw new V("Unknown option "+J,V.ERR_BAD_OPTION)}}var u4,m6,U4;var f6=T(()=>{B4();t();u4={};["object","boolean","number","function","string","symbol"].forEach(($,Q)=>{u4[$]=function(W){return typeof W===$||"a"+(Q<1?"n ":" ")+$}});m6={};u4.transitional=function(Q,Y,W){function G(J,Z){return"[Axios v"+I0+"] Transitional option '"+J+"'"+Z+(W?". "+W:"")}return(J,Z,z)=>{if(Q===!1)throw new V(G(Z," has been removed"+(Y?" in "+Y:"")),V.ERR_DEPRECATED);if(Y&&!m6[Z])m6[Z]=!0,console.warn(G(Z," has been deprecated since v"+Y+" and will be removed in the near future"));return Q?Q(J,Z,z):!0}};u4.spelling=function(Q){return(Y,W)=>{return console.warn(`${W} is likely a misspelling of ${Q}`),!0}};U4={assertOptions:aQ,validators:u4}});class L4{constructor($){this.defaults=$||{},this.interceptors={request:new o4,response:new o4}}async request($,Q){try{return await this._request($,Q)}catch(Y){if(Y instanceof Error){let W={};Error.captureStackTrace?Error.captureStackTrace(W):W=Error();let G=(()=>{if(!W.stack)return"";let J=W.stack.indexOf(`
|
|
14
|
+
`);return J===-1?"":W.stack.slice(J+1)})();try{if(!Y.stack)Y.stack=G;else if(G){let J=G.indexOf(`
|
|
15
|
+
`),Z=J===-1?-1:G.indexOf(`
|
|
16
|
+
`,J+1),z=Z===-1?"":G.slice(Z+1);if(!String(Y.stack).endsWith(z))Y.stack+=`
|
|
17
|
+
`+G}}catch(J){}}throw Y}}_request($,Q){if(typeof $==="string")Q=Q||{},Q.url=$;else Q=$||{};Q=X0(this.defaults,Q);let{transitional:Y,paramsSerializer:W,headers:G}=Q;if(Y!==void 0)U4.assertOptions(Y,{silentJSONParsing:r.transitional(r.boolean),forcedJSONParsing:r.transitional(r.boolean),clarifyTimeoutError:r.transitional(r.boolean),legacyInterceptorReqResOrdering:r.transitional(r.boolean),advertiseZstdAcceptEncoding:r.transitional(r.boolean),validateStatusUndefinedResolves:r.transitional(r.boolean)},!1);if(W!=null)if(X.isFunction(W))Q.paramsSerializer={serialize:W};else U4.assertOptions(W,{encode:r.function,serialize:r.function},!0);if(Q.allowAbsoluteUrls!==void 0);else if(this.defaults.allowAbsoluteUrls!==void 0)Q.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls;else Q.allowAbsoluteUrls=!0;U4.assertOptions(Q,{baseUrl:r.spelling("baseURL"),withXsrfToken:r.spelling("withXSRFToken")},!0),Q.method=(Q.method||this.defaults.method||"get").toLowerCase();let J=G&&X.merge(G.common,G[Q.method]);G&&X.forEach(["delete","get","head","post","put","patch","query","common"],(U)=>{delete G[U]}),Q.headers=y.concat(J,G);let Z=[],z=!0;this.interceptors.request.forEach(function(S){if(typeof S.runWhen==="function"&&S.runWhen(Q)===!1)return;z=z&&S.synchronous;let q=Q.transitional||D0;if(q&&q.legacyInterceptorReqResOrdering)Z.unshift(S.fulfilled,S.rejected);else Z.push(S.fulfilled,S.rejected)});let K=[];this.interceptors.response.forEach(function(S){K.push(S.fulfilled,S.rejected)});let N,M=0,B;if(!z){let U=[g4.bind(this),void 0];U.unshift(...Z),U.push(...K),B=U.length,N=Promise.resolve(Q);while(M<B)N=N.then(U[M++],U[M++]);return N}B=Z.length;let I=Q;while(M<B){let U=Z[M++],S=Z[M++];try{I=U(I)}catch(q){S.call(this,q);break}}try{N=g4.call(this,I)}catch(U){return Promise.reject(U)}M=0,B=K.length;while(M<B)N=N.then(K[M++],K[M++]);return N}getUri($){$=X0(this.defaults,$);let Q=H0($.baseURL,$.url,$.allowAbsoluteUrls,$);return C0(Q,$.params,$.paramsSerializer)}}var r,w4;var h6=T(()=>{x();C4();G5();y6();y4();A4();f6();G0();W4();r=U4.validators;X.forEach(["delete","get","head","options"],function(Q){L4.prototype[Q]=function(Y,W){return this.request(X0(W||{},{method:Q,url:Y,data:W&&X.hasOwnProp(W,"data")?W.data:void 0}))}});X.forEach(["post","put","patch","query"],function(Q){function Y(W){return function(J,Z,z){return this.request(X0(z||{},{method:Q,headers:W?{"Content-Type":"multipart/form-data"}:{},url:J,data:Z}))}}if(L4.prototype[Q]=Y(),Q!=="query")L4.prototype[Q+"Form"]=Y(!0)});w4=L4});class j1{constructor($){if(typeof $!=="function")throw TypeError("executor must be a function.");let Q;this.promise=new Promise(function(G){Q=G});let Y=this;this.promise.then((W)=>{if(!Y._listeners)return;let G=Y._listeners.length;while(G-- >0)Y._listeners[G](W);Y._listeners=null}),this.promise.then=(W)=>{let G,J=new Promise((Z)=>{Y.subscribe(Z),G=Z}).then(W);return J.cancel=function(){Y.unsubscribe(G)},J},$(function(G,J,Z){if(Y.reason)return;Y.reason=new $0(G,J,Z),Q(Y.reason)})}throwIfRequested(){if(this.reason)throw this.reason}subscribe($){if(this.reason){$(this.reason);return}if(this._listeners)this._listeners.push($);else this._listeners=[$]}unsubscribe($){if(!this._listeners)return;let Q=this._listeners.indexOf($);if(Q!==-1)this._listeners.splice(Q,1)}toAbortSignal(){let $=new AbortController,Q=(Y)=>{$.abort(Y)};return this.subscribe(Q),$.signal.unsubscribe=()=>this.unsubscribe(Q),$.signal}static source(){let $;return{token:new j1(function(W){$=W}),cancel:$}}}var g6;var u6=T(()=>{O0();g6=j1});function k1($){return function(Y){return $.apply(null,Y)}}var c6=()=>{};function b1($){return X.isObject($)&&$.isAxiosError===!0}var d6=T(()=>{x()});var x1,l6;var p6=T(()=>{x1={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(x1).forEach(([$,Q])=>{x1[Q]=$});l6=x1});function i6($){let Q=new w4($),Y=t0(w4.prototype.request,Q);return X.extend(Y,w4.prototype,Q,{allOwnKeys:!0}),X.extend(Y,Q,null,{allOwnKeys:!0}),Y.create=function(G){return i6(X0($,G))},Y}var d,n6;var a6=T(()=>{x();c4();h6();y4();H4();G1();O0();u6();J1();B4();u0();t();c6();d6();G0();E1();p6();d=i6(d0);d.Axios=w4;d.CanceledError=$0;d.CancelToken=g6;d.isCancel=Z4;d.VERSION=I0;d.toFormData=S0;d.AxiosError=V;d.Cancel=d.CanceledError;d.all=function(Q){return Promise.all(Q)};d.spread=k1;d.isAxiosError=b1;d.mergeConfig=X0;d.AxiosHeaders=y;d.formToJSON=($)=>O4(X.isHTMLForm($)?new FormData($):$);d.getAdapter=h4.getAdapter;d.HttpStatusCode=l6;d.default=d;n6=d});var z2,N2,M2,B2,V2,I2,F2,U2,L2,w2,S2,D2,_2,T2,R2,q2,P2;var sQ=T(()=>{a6();({Axios:z2,AxiosError:N2,CanceledError:M2,isCancel:B2,CancelToken:V2,VERSION:I2,all:F2,Cancel:U2,isAxiosError:L2,spread:w2,toFormData:S2,AxiosHeaders:D2,HttpStatusCode:_2,formToJSON:T2,getAdapter:R2,mergeConfig:q2,create:P2}=n6)});
|
|
18
|
+
export{n6 as Tra,z2 as Ura,N2 as Vra,M2 as Wra,B2 as Xra,V2 as Yra,I2 as Zra,F2 as _ra,U2 as $ra,L2 as asa,w2 as bsa,S2 as csa,D2 as dsa,_2 as esa,T2 as fsa,R2 as gsa,q2 as hsa,P2 as isa,sQ as jsa};
|