@claudiolabs/claudin 1.1.39 → 1.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/App-1.1.40-eb4xn79h.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.40-s12f36rk.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.40-08yczhe8.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.40-xw7040fw.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.40-ejq4fmn7.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.40-n8xq1ghm.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.40-2ykfyp2y.mjs +6 -0
- package/dist/chunks/Doctor-1.1.40-5q8gn92n.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.40-qbvaevt6.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.40-tbt91h1c.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.40-bx3xnmmr.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.40-kg7st12w.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.40-d7hcx55h.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.40-mwq5eg90.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.40-z85fnyyw.mjs +1 -0
- package/dist/chunks/REPL-1.1.40-h9ccg2t4.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.40-0ghfz7ak.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.40-39n922s2.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.40-shkd3dr0.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.40-5e4necay.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.40-kfzg6nqe.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.40-x1k41dnq.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.40-3r59c8nw.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.40-8ywrwcaw.mjs +1 -0
- package/dist/chunks/add-dir-1.1.40-4etvgznk.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.40-0jgkahp3.mjs +1 -0
- package/dist/chunks/agents-1.1.40-aa2gqrkq.mjs +110 -0
- package/dist/chunks/agents-1.1.40-v0vqxazw.mjs +3 -0
- package/dist/chunks/api-1.1.40-dwsbnjc3.mjs +1 -0
- package/dist/chunks/asciicast-1.1.40-y0e6w0q6.mjs +1 -0
- package/dist/chunks/auth-1.1.40-43w4cqf5.mjs +1 -0
- package/dist/chunks/auth-1.1.40-jhdwprg7.mjs +1 -0
- package/dist/chunks/autoMode-1.1.40-gy1w9r7y.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.40-8jjzstby.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.40-q7a2hm0c.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.40-pnakm6fp.mjs +1 -0
- package/dist/chunks/branch-1.1.40-1aq0shtd.mjs +4 -0
- package/dist/chunks/bridge-1.1.40-jngt6dkf.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.40-6zjr3dgb.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.40-5ra4n5cw.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.40-q22hv9eb.mjs +64 -0
- package/dist/chunks/bridgePointer-1.1.40-8nvycyyd.mjs +1 -0
- package/dist/chunks/btw-1.1.40-vqdnk39f.mjs +1 -0
- package/dist/chunks/buddy-1.1.40-wkym7yqv.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.40-5ac1ane9.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.40-dc4nspga.mjs +4 -0
- package/dist/chunks/caches-1.1.40-9ej2vasg.mjs +1 -0
- package/dist/chunks/cd-1.1.40-d5jhbgzp.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.40-2wmbzv9t.mjs +1 -0
- package/dist/chunks/claudemd-1.1.40-5bw0jeka.mjs +1 -0
- package/dist/chunks/clear-1.1.40-3gpjnsv0.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.40-ny8kqt7d.mjs +1 -0
- package/dist/chunks/cli-1.1.40-0507kdps.mjs +2 -0
- package/dist/chunks/cli-1.1.40-05q41dcq.mjs +63 -0
- package/dist/chunks/cli-1.1.40-0a9nnbar.mjs +2 -0
- package/dist/chunks/cli-1.1.40-0hb84ejd.mjs +2 -0
- package/dist/chunks/cli-1.1.40-0p3na6a1.mjs +2 -0
- package/dist/chunks/cli-1.1.40-0vdhw7mm.mjs +3 -0
- package/dist/chunks/cli-1.1.40-0z5szwzt.mjs +2 -0
- package/dist/chunks/cli-1.1.40-13ccwz6g.mjs +2 -0
- package/dist/chunks/cli-1.1.40-13e9gynq.mjs +16 -0
- package/dist/chunks/cli-1.1.40-14x4xtjy.mjs +2 -0
- package/dist/chunks/cli-1.1.40-1a4pn4ww.mjs +2 -0
- package/dist/chunks/cli-1.1.40-1pe6rcmh.mjs +2 -0
- package/dist/chunks/cli-1.1.40-1r9pwsgr.mjs +2 -0
- package/dist/chunks/cli-1.1.40-1z293953.mjs +2 -0
- package/dist/chunks/cli-1.1.40-202jxgqx.mjs +2 -0
- package/dist/chunks/cli-1.1.40-25wt0y2a.mjs +2 -0
- package/dist/chunks/cli-1.1.40-2e8t1hzy.mjs +2 -0
- package/dist/chunks/cli-1.1.40-2j20ecjm.mjs +11 -0
- package/dist/chunks/cli-1.1.40-2ndseghs.mjs +2 -0
- package/dist/chunks/cli-1.1.40-2ted9r2b.mjs +2 -0
- package/dist/chunks/cli-1.1.40-2z1ppytd.mjs +2 -0
- package/dist/chunks/cli-1.1.40-390v6b8q.mjs +2 -0
- package/dist/chunks/cli-1.1.40-3e58725b.mjs +3 -0
- package/dist/chunks/cli-1.1.40-3hqepe0h.mjs +34 -0
- package/dist/chunks/cli-1.1.40-3m4n20em.mjs +2 -0
- package/dist/chunks/cli-1.1.40-4a1p6q3b.mjs +2 -0
- package/dist/chunks/cli-1.1.40-4d4b7cw2.mjs +2 -0
- package/dist/chunks/cli-1.1.40-4d6gye21.mjs +2 -0
- package/dist/chunks/cli-1.1.40-586jg9as.mjs +4 -0
- package/dist/chunks/cli-1.1.40-5m7tntdx.mjs +2 -0
- package/dist/chunks/cli-1.1.40-5szxfmd7.mjs +2 -0
- package/dist/chunks/cli-1.1.40-5x38x6mx.mjs +2 -0
- package/dist/chunks/cli-1.1.40-66c2dzxw.mjs +8 -0
- package/dist/chunks/cli-1.1.40-6bv738vq.mjs +2 -0
- package/dist/chunks/cli-1.1.40-6evbnv5e.mjs +4 -0
- package/dist/chunks/cli-1.1.40-6gc7p5by.mjs +2 -0
- package/dist/chunks/cli-1.1.40-6v8d2hq7.mjs +18 -0
- package/dist/chunks/cli-1.1.40-718chdj8.mjs +2 -0
- package/dist/chunks/cli-1.1.40-75jka1rb.mjs +2 -0
- package/dist/chunks/cli-1.1.40-77d85srw.mjs +2 -0
- package/dist/chunks/cli-1.1.40-7mtszf6q.mjs +2 -0
- package/dist/chunks/cli-1.1.40-7p7pbsj7.mjs +3 -0
- package/dist/chunks/cli-1.1.40-7sp5dtqz.mjs +2 -0
- package/dist/chunks/cli-1.1.40-7xegymwp.mjs +3 -0
- package/dist/chunks/cli-1.1.40-88vceqkj.mjs +6 -0
- package/dist/chunks/cli-1.1.40-8dzrhmwv.mjs +2 -0
- package/dist/chunks/cli-1.1.40-8j3wdrn6.mjs +2 -0
- package/dist/chunks/cli-1.1.40-8jkb2pk8.mjs +3 -0
- package/dist/chunks/cli-1.1.40-8tkx8d1m.mjs +50 -0
- package/dist/chunks/cli-1.1.40-8x5yey3y.mjs +20 -0
- package/dist/chunks/cli-1.1.40-8xvdt1py.mjs +2 -0
- package/dist/chunks/cli-1.1.40-8zhx2a4q.mjs +2 -0
- package/dist/chunks/cli-1.1.40-904bkcqe.mjs +2 -0
- package/dist/chunks/cli-1.1.40-9bqkn2xd.mjs +2 -0
- package/dist/chunks/cli-1.1.40-9ktcep8b.mjs +2 -0
- package/dist/chunks/cli-1.1.40-a8ztxtkt.mjs +2 -0
- package/dist/chunks/cli-1.1.40-a94m02ck.mjs +2 -0
- package/dist/chunks/cli-1.1.40-a9t3gajj.mjs +2 -0
- package/dist/chunks/cli-1.1.40-aaec6y8n.mjs +2 -0
- package/dist/chunks/cli-1.1.40-aknkj6rt.mjs +2 -0
- package/dist/chunks/cli-1.1.40-asmc6tcr.mjs +2 -0
- package/dist/chunks/cli-1.1.40-b37e0jb8.mjs +6 -0
- package/dist/chunks/cli-1.1.40-bdt7jzc8.mjs +12 -0
- package/dist/chunks/cli-1.1.40-beywxqng.mjs +2 -0
- package/dist/chunks/cli-1.1.40-bh7z7ek2.mjs +2 -0
- package/dist/chunks/cli-1.1.40-bkxrf16s.mjs +2 -0
- package/dist/chunks/cli-1.1.40-cacr2bwg.mjs +135 -0
- package/dist/chunks/cli-1.1.40-cjmpr9fj.mjs +6 -0
- package/dist/chunks/cli-1.1.40-cjtb9y6z.mjs +2 -0
- package/dist/chunks/cli-1.1.40-ckjrbh6b.mjs +60 -0
- package/dist/chunks/cli-1.1.40-cr76k9c5.mjs +2 -0
- package/dist/chunks/cli-1.1.40-cy642er2.mjs +5 -0
- package/dist/chunks/cli-1.1.40-czkgycwy.mjs +2 -0
- package/dist/chunks/cli-1.1.40-d94fysd2.mjs +2 -0
- package/dist/chunks/cli-1.1.40-dbt9wvcg.mjs +133 -0
- package/dist/chunks/cli-1.1.40-dcgb31te.mjs +2 -0
- package/dist/chunks/cli-1.1.40-dsncefwy.mjs +2 -0
- package/dist/chunks/cli-1.1.40-e6xs2c7n.mjs +2 -0
- package/dist/chunks/cli-1.1.40-evm7c2fk.mjs +2 -0
- package/dist/chunks/cli-1.1.40-f4906zck.mjs +3 -0
- package/dist/chunks/cli-1.1.40-fewramj2.mjs +2 -0
- package/dist/chunks/cli-1.1.40-fjbq162e.mjs +24 -0
- package/dist/chunks/cli-1.1.40-fn6qzvk2.mjs +17 -0
- package/dist/chunks/cli-1.1.40-fqcnge4w.mjs +4 -0
- package/dist/chunks/cli-1.1.40-fwxd22jm.mjs +2 -0
- package/dist/chunks/cli-1.1.40-g1vnzwpn.mjs +2 -0
- package/dist/chunks/cli-1.1.40-gk34ey8n.mjs +24 -0
- package/dist/chunks/cli-1.1.40-gv0xj4g0.mjs +2 -0
- package/dist/chunks/cli-1.1.40-gym1gqwr.mjs +2 -0
- package/dist/chunks/cli-1.1.40-h2t9z1xa.mjs +2 -0
- package/dist/chunks/cli-1.1.40-h5r5wmqv.mjs +3 -0
- package/dist/chunks/cli-1.1.40-h6v9p00b.mjs +2 -0
- package/dist/chunks/cli-1.1.40-h87wvfsr.mjs +24 -0
- package/dist/chunks/cli-1.1.40-h9vf8tb3.mjs +2 -0
- package/dist/chunks/cli-1.1.40-hdf9qdf0.mjs +2 -0
- package/dist/chunks/cli-1.1.40-hf5jtfgb.mjs +2 -0
- package/dist/chunks/cli-1.1.40-hfe06y9j.mjs +250 -0
- package/dist/chunks/cli-1.1.40-hn5j9ca8.mjs +3 -0
- package/dist/chunks/cli-1.1.40-j3mmbyn6.mjs +2 -0
- package/dist/chunks/cli-1.1.40-j822dmk0.mjs +2 -0
- package/dist/chunks/cli-1.1.40-jc0pv06v.mjs +2 -0
- package/dist/chunks/cli-1.1.40-jdhz6qrn.mjs +4 -0
- package/dist/chunks/cli-1.1.40-jdyqkhjm.mjs +15 -0
- package/dist/chunks/cli-1.1.40-jxt31ej7.mjs +2 -0
- package/dist/chunks/cli-1.1.40-k3z93zzh.mjs +2 -0
- package/dist/chunks/cli-1.1.40-k9ms1jzt.mjs +2 -0
- package/dist/chunks/cli-1.1.40-kafpmwa6.mjs +2 -0
- package/dist/chunks/cli-1.1.40-kcs8jb1x.mjs +2 -0
- package/dist/chunks/cli-1.1.40-kn1916j7.mjs +2 -0
- package/dist/chunks/cli-1.1.40-knp59dzj.mjs +25 -0
- package/dist/chunks/cli-1.1.40-ksaxg9vb.mjs +2 -0
- package/dist/chunks/cli-1.1.40-kvhhhzww.mjs +2 -0
- package/dist/chunks/cli-1.1.40-m0j9t9he.mjs +2 -0
- package/dist/chunks/cli-1.1.40-m0km8bx0.mjs +2 -0
- package/dist/chunks/cli-1.1.40-m3m3zyes.mjs +2 -0
- package/dist/chunks/cli-1.1.40-m4hyy4k1.mjs +2 -0
- package/dist/chunks/cli-1.1.40-mtj9edbn.mjs +2 -0
- package/dist/chunks/cli-1.1.40-mtqb5txt.mjs +2 -0
- package/dist/chunks/cli-1.1.40-n9wve56a.mjs +2 -0
- package/dist/chunks/cli-1.1.40-ncvv73yk.mjs +2 -0
- package/dist/chunks/cli-1.1.40-nj4dbcsq.mjs +5 -0
- package/dist/chunks/cli-1.1.40-nvwa39p8.mjs +2 -0
- package/dist/chunks/cli-1.1.40-p0d9ms1q.mjs +2 -0
- package/dist/chunks/cli-1.1.40-p1ezfj24.mjs +2 -0
- package/dist/chunks/cli-1.1.40-p3jhg1v9.mjs +2 -0
- package/dist/chunks/cli-1.1.40-p6sasq8k.mjs +2 -0
- package/dist/chunks/cli-1.1.40-pmw99nnn.mjs +2 -0
- package/dist/chunks/cli-1.1.40-ptbes5dy.mjs +2 -0
- package/dist/chunks/cli-1.1.40-qbqaea7j.mjs +2 -0
- package/dist/chunks/cli-1.1.40-qj79t43w.mjs +2 -0
- package/dist/chunks/cli-1.1.40-qrryep7k.mjs +2 -0
- package/dist/chunks/cli-1.1.40-r0e1tymb.mjs +4 -0
- package/dist/chunks/cli-1.1.40-rcfj1etg.mjs +2 -0
- package/dist/chunks/cli-1.1.40-rq9y2zd8.mjs +4 -0
- package/dist/chunks/cli-1.1.40-rwbr7d1h.mjs +2 -0
- package/dist/chunks/cli-1.1.40-s5zzvtq2.mjs +2 -0
- package/dist/chunks/cli-1.1.40-sa2ca2mh.mjs +2 -0
- package/dist/chunks/cli-1.1.40-sh39fzfc.mjs +2 -0
- package/dist/chunks/cli-1.1.40-sjmpb8kv.mjs +2 -0
- package/dist/chunks/cli-1.1.40-sw6avn9f.mjs +15 -0
- package/dist/chunks/cli-1.1.40-swnje8x1.mjs +2 -0
- package/dist/chunks/cli-1.1.40-t3fwj4bx.mjs +2 -0
- package/dist/chunks/cli-1.1.40-t6s30nmj.mjs +10 -0
- package/dist/chunks/cli-1.1.40-tb7zgp10.mjs +2 -0
- package/dist/chunks/cli-1.1.40-tbjmztnt.mjs +7 -0
- package/dist/chunks/cli-1.1.40-test5hfq.mjs +9 -0
- package/dist/chunks/cli-1.1.40-tjxcmknk.mjs +10 -0
- package/dist/chunks/cli-1.1.40-tpcjtjay.mjs +2 -0
- package/dist/chunks/cli-1.1.40-vemj3v7n.mjs +2 -0
- package/dist/chunks/cli-1.1.40-vjrn2xbp.mjs +39 -0
- package/dist/chunks/cli-1.1.40-vnckyxj2.mjs +6 -0
- package/dist/chunks/cli-1.1.40-vzsswgmp.mjs +2 -0
- package/dist/chunks/cli-1.1.40-wgmkydqq.mjs +2 -0
- package/dist/chunks/cli-1.1.40-wh51ya47.mjs +5524 -0
- package/dist/chunks/cli-1.1.40-wwtg9jyr.mjs +2 -0
- package/dist/chunks/cli-1.1.40-x07axsvg.mjs +3 -0
- package/dist/chunks/cli-1.1.40-x0em3hsa.mjs +42 -0
- package/dist/chunks/cli-1.1.40-x155sz4a.mjs +2 -0
- package/dist/chunks/cli-1.1.40-x8fyash9.mjs +2 -0
- package/dist/chunks/cli-1.1.40-xjt6qe30.mjs +2 -0
- package/dist/chunks/cli-1.1.40-xrdf30ff.mjs +4 -0
- package/dist/chunks/cli-1.1.40-xsx6q1wa.mjs +2 -0
- package/dist/chunks/cli-1.1.40-xty2k2d8.mjs +2 -0
- package/dist/chunks/cli-1.1.40-xvw930pn.mjs +4 -0
- package/dist/chunks/cli-1.1.40-xxr2978q.mjs +2 -0
- package/dist/chunks/cli-1.1.40-xz65jcaq.mjs +2 -0
- package/dist/chunks/cli-1.1.40-yb9c5882.mjs +6 -0
- package/dist/chunks/cli-1.1.40-ycdfy6nf.mjs +15 -0
- package/dist/chunks/cli-1.1.40-yggza6ab.mjs +2 -0
- package/dist/chunks/cli-1.1.40-ypd0pmm1.mjs +9 -0
- package/dist/chunks/cli-1.1.40-yxch4yjw.mjs +2 -0
- package/dist/chunks/cli-1.1.40-yyx9dq0t.mjs +2 -0
- package/dist/chunks/cli-1.1.40-z2y2xwz9.mjs +21 -0
- package/dist/chunks/cli-1.1.40-z3hcyy04.mjs +25 -0
- package/dist/chunks/cli-1.1.40-z4zyefya.mjs +10 -0
- package/dist/chunks/cli-1.1.40-zc4hs061.mjs +2 -0
- package/dist/chunks/cli-1.1.40-zjd4syvr.mjs +2 -0
- package/dist/chunks/cli-1.1.40-zn2yvg4w.mjs +7 -0
- package/dist/chunks/cli-1.1.40-zwpz8d3c.mjs +2 -0
- package/dist/chunks/cli-1.1.40-zx6c6dj7.mjs +2 -0
- package/dist/chunks/cli-1.1.40-zxgbpq09.mjs +2 -0
- package/dist/chunks/cli-1.1.40-zz1e7ypt.mjs +2 -0
- package/dist/chunks/client-1.1.40-7wf4ewe0.mjs +1 -0
- package/dist/chunks/color-1.1.40-v7cj369z.mjs +1 -0
- package/dist/chunks/compact-1.1.40-9frgndw1.mjs +2 -0
- package/dist/chunks/config-1.1.40-hpmvve33.mjs +1 -0
- package/dist/chunks/config-1.1.40-vyqe5y0b.mjs +1 -0
- package/dist/chunks/constants-1.1.40-ddn3fezq.mjs +1 -0
- package/dist/chunks/context-1.1.40-v3bm6v6h.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.40-grk3112n.mjs +1 -0
- package/dist/chunks/conversation-1.1.40-18fff5dm.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.40-8mws1sed.mjs +1 -0
- package/dist/chunks/copy-1.1.40-0j7zfq2m.mjs +9 -0
- package/dist/chunks/cost-1.1.40-haa10e3n.mjs +1 -0
- package/dist/chunks/createSession-1.1.40-m1yre1z2.mjs +1 -0
- package/dist/chunks/debug-1.1.40-jb16xf0z.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.40-6jxq6wj1.mjs +1458 -0
- package/dist/chunks/desktop-1.1.40-78kvtn3w.mjs +2 -0
- package/dist/chunks/detectRepository-1.1.40-bfsfnrg0.mjs +1 -0
- package/dist/chunks/detection-1.1.40-ynqhwygh.mjs +1 -0
- package/dist/chunks/diff-1.1.40-ry5r3hxm.mjs +1 -0
- package/dist/chunks/doctor-1.1.40-3jq6vt4j.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.40-xkn6p433.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.40-cgnyfxrr.mjs +1 -0
- package/dist/chunks/effort-1.1.40-x92e5y73.mjs +13 -0
- package/dist/chunks/engine-1.1.40-xfhy56h0.mjs +1 -0
- package/dist/chunks/envUtils-1.1.40-x04vk5d2.mjs +1 -0
- package/dist/chunks/errors-1.1.40-5rmm9jgq.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.40-0bqsxh7q.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.40-ckxrp2ds.mjs +1 -0
- package/dist/chunks/exit-1.1.40-3z02mbj5.mjs +1 -0
- package/dist/chunks/explorer-1.1.40-wd802dbj.mjs +1 -0
- package/dist/chunks/export-1.1.40-jfwshttx.mjs +2 -0
- package/dist/chunks/fast-1.1.40-60ervp24.mjs +1 -0
- package/dist/chunks/feedback-1.1.40-prjs4btg.mjs +16 -0
- package/dist/chunks/git-1.1.40-j53g8ee0.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.40-mcem604d.mjs +1 -0
- package/dist/chunks/goal-1.1.40-g8esr771.mjs +4 -0
- package/dist/chunks/headless-1.1.40-vr772edq.mjs +2 -0
- package/dist/chunks/heapdump-1.1.40-8rmhv3eq.mjs +6 -0
- package/dist/chunks/help-1.1.40-x9vde04q.mjs +1 -0
- package/dist/chunks/hooks-1.1.40-gm4rps4s.mjs +79 -0
- package/dist/chunks/hooks-1.1.40-wb0fy1tx.mjs +1 -0
- package/dist/chunks/ide-1.1.40-ymf3dffe.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.40-kk0nhrm1.mjs +1 -0
- package/dist/chunks/import-1.1.40-8q1yygwm.mjs +260 -0
- package/dist/chunks/inboundAttachments-1.1.40-gdzw0a60.mjs +1 -0
- package/dist/chunks/index-1.1.40-1036v870.mjs +1 -0
- package/dist/chunks/index-1.1.40-2pnxjnrq.mjs +9 -0
- package/dist/chunks/index-1.1.40-3dg7neyn.mjs +1 -0
- package/dist/chunks/index-1.1.40-3wmvffnj.mjs +1 -0
- package/dist/chunks/index-1.1.40-6h7p7965.mjs +5 -0
- package/dist/chunks/index-1.1.40-7m7py5an.mjs +1 -0
- package/dist/chunks/index-1.1.40-7thhkf50.mjs +1 -0
- package/dist/chunks/index-1.1.40-7zb9nwfm.mjs +1 -0
- package/dist/chunks/index-1.1.40-a4nq3a6p.mjs +23 -0
- package/dist/chunks/index-1.1.40-agp7ccgc.mjs +2 -0
- package/dist/chunks/index-1.1.40-ce1vrpmy.mjs +1 -0
- package/dist/chunks/index-1.1.40-d7gm1zpq.mjs +1 -0
- package/dist/chunks/index-1.1.40-e5mrxhrw.mjs +9 -0
- package/dist/chunks/index-1.1.40-hqxrsc3k.mjs +30 -0
- package/dist/chunks/index-1.1.40-hyjbaxfp.mjs +1 -0
- package/dist/chunks/index-1.1.40-kxj8bd6n.mjs +1 -0
- package/dist/chunks/index-1.1.40-m8hvmnp3.mjs +2 -0
- package/dist/chunks/index-1.1.40-re5y6sqg.mjs +1 -0
- package/dist/chunks/index-1.1.40-rxqg2zmw.mjs +1 -0
- package/dist/chunks/index-1.1.40-scsfdxb9.mjs +1 -0
- package/dist/chunks/index-1.1.40-sebq5zf0.mjs +1 -0
- package/dist/chunks/index-1.1.40-sw11xm4f.mjs +1 -0
- package/dist/chunks/index-1.1.40-wm4s6wvy.mjs +1 -0
- package/dist/chunks/init-1.1.40-t57rwm04.mjs +2 -0
- package/dist/chunks/initReplBridge-1.1.40-mjwfh9qk.mjs +1 -0
- package/dist/chunks/ink-1.1.40-9d6z3zms.mjs +1 -0
- package/dist/chunks/insights-1.1.40-a9638asy.mjs +870 -0
- package/dist/chunks/install-1.1.40-zxccztd6.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.40-zf5bv85a.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.40-5zhc4ky1.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.40-8b699chw.mjs +1 -0
- package/dist/chunks/latestVersionCache-1.1.40-pf10bcf1.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.40-2phb1zja.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.40-nyy8edra.mjs +1 -0
- package/dist/chunks/log-1.1.40-bd06efpx.mjs +1 -0
- package/dist/chunks/main-1.1.40-jsd88fnb.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.40-5bct44v9.mjs +1 -0
- package/dist/chunks/mcp-1.1.40-gwsy9z99.mjs +17 -0
- package/dist/chunks/mcp-1.1.40-ne4zhaas.mjs +4 -0
- package/dist/chunks/mcp-1.1.40-w28yghrq.mjs +1 -0
- package/dist/chunks/mcpb-1.1.40-rmczagzm.mjs +1 -0
- package/dist/chunks/memory-1.1.40-bw1f5kas.mjs +128 -0
- package/dist/chunks/model-1.1.40-abq8e5vn.mjs +1 -0
- package/dist/chunks/model-1.1.40-mchqmvyj.mjs +2 -0
- package/dist/chunks/new-1.1.40-52px2j2q.mjs +1 -0
- package/dist/chunks/node-1.1.40-9cewz2cq.mjs +1 -0
- package/dist/chunks/node-1.1.40-feq5eqhb.mjs +15 -0
- package/dist/chunks/oauth-1.1.40-g2ddff91.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.40-1f1x96vz.mjs +14 -0
- package/dist/chunks/output-style-1.1.40-57gexey1.mjs +1 -0
- package/dist/chunks/package-V72LKFNW-1.1.40-fsxygmx4.mjs +1 -0
- package/dist/chunks/permissions-1.1.40-a3gt3a6r.mjs +1 -0
- package/dist/chunks/permissions-1.1.40-tk64h5pw.mjs +3 -0
- package/dist/chunks/plan-1.1.40-qktxc0xv.mjs +1 -0
- package/dist/chunks/plist-1.1.40-syaedef6.mjs +1 -0
- package/dist/chunks/plugin-1.1.40-40707xv2.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.40-0s8z5pda.mjs +1 -0
- package/dist/chunks/plugins-1.1.40-36g7cedj.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.40-xs0mts7r.mjs +2 -0
- package/dist/chunks/print-1.1.40-n8tbgpmb.mjs +57 -0
- package/dist/chunks/process-1.1.40-2d6jw6ja.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.40-9wg7776s.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.40-xt635hzb.mjs +9 -0
- package/dist/chunks/prompt-1.1.40-384zryvv.mjs +1 -0
- package/dist/chunks/prompt-1.1.40-fafe7d93.mjs +1 -0
- package/dist/chunks/prompts-1.1.40-dkjt46vt.mjs +1 -0
- package/dist/chunks/provider-1.1.40-jdhrf16x.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.40-bw1gvrwa.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.40-grkw6t7j.mjs +6 -0
- package/dist/chunks/registerSubcommands-1.1.40-829pxw1w.mjs +26 -0
- package/dist/chunks/registry-1.1.40-gcsbpq05.mjs +1 -0
- package/dist/chunks/release-notes-1.1.40-7k7w7byk.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.40-0hnncx1c.mjs +2 -0
- package/dist/chunks/remote-env-1.1.40-8yjn1yy1.mjs +1 -0
- package/dist/chunks/rename-1.1.40-k97agc44.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.40-t07rfxt3.mjs +1 -0
- package/dist/chunks/resume-1.1.40-aztvxhw1.mjs +2 -0
- package/dist/chunks/rewind-1.1.40-qqcys5j3.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.40-1phbx46q.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.40-4zdbvgxr.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.40-w8261442.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.40-3jcyaq2m.mjs +1 -0
- package/dist/chunks/session-1.1.40-t3q2q12k.mjs +2 -0
- package/dist/chunks/sessionStorage-1.1.40-k9kv0fc5.mjs +1 -0
- package/dist/chunks/settings-1.1.40-xk0psj3p.mjs +1 -0
- package/dist/chunks/setup-1.1.40-k28y0vhd.mjs +12 -0
- package/dist/chunks/sinks-1.1.40-jmrhph0p.mjs +1 -0
- package/dist/chunks/skills-1.1.40-p548yntr.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.40-r0r0td60.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.40-9k4m0y14.mjs +1 -0
- package/dist/chunks/state-1.1.40-48n6bztp.mjs +1 -0
- package/dist/chunks/stats-1.1.40-7b8de2xc.mjs +1 -0
- package/dist/chunks/status-1.1.40-y6f9m60d.mjs +1 -0
- package/dist/chunks/stickers-1.1.40-6861rtwc.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.40-j8teh9py.mjs +1 -0
- package/dist/chunks/tasks-1.1.40-z0pdc2v6.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.40-dg7kse00.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.40-h0ps5f8m.mjs +1 -0
- package/dist/chunks/teleport-1.1.40-968xt0kq.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.40-tyj663fm.mjs +1 -0
- package/dist/chunks/theme-1.1.40-pt3gmfb7.mjs +1 -0
- package/dist/chunks/toolPool-1.1.40-7evty87j.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.40-js92r1j0.mjs +1 -0
- package/dist/chunks/tools-1.1.40-3xs7vby7.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.40-r64pb7jc.mjs +69 -0
- package/dist/chunks/types-1.1.40-106z8mxc.mjs +1 -0
- package/dist/chunks/update-1.1.40-t843j2px.mjs +72 -0
- package/dist/chunks/upload-1.1.40-mq50976a.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.40-8sq5v7b7.mjs +14 -0
- package/dist/chunks/usage-1.1.40-m5z82r48.mjs +1 -0
- package/dist/chunks/util-1.1.40-wt30k81w.mjs +1 -0
- package/dist/chunks/utils-1.1.40-59bpagj3.mjs +1 -0
- package/dist/chunks/vim-1.1.40-4kra5190.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.40-2vzyqrvn.mjs +13 -0
- package/dist/chunks/wiki-1.1.40-c29899s1.mjs +132 -0
- package/dist/chunks/workflows-1.1.40-heqcwgty.mjs +1 -0
- package/dist/chunks/worktree-1.1.40-mw6zf174.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.40-2wrpxrjt.mjs +1 -0
- package/dist/chunks/wrapper-1.1.40-07rbayqn.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/App-1.1.39-k3pzg19w.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.39-bycvt1g5.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.39-4j00w97q.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.39-38wypq07.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.39-edm7rsre.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.39-my209qf5.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.39-dt5qmt50.mjs +0 -6
- package/dist/chunks/Doctor-1.1.39-kv2tpcs1.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.39-d5t22ss6.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.39-z3zx6y4m.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.39-nwstppyf.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.39-pfjzxc4p.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.39-3mpd0tbf.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.39-r5976zwt.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.39-dzacd3pt.mjs +0 -1
- package/dist/chunks/REPL-1.1.39-ww7zvk7k.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.39-mdn16ej3.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.39-tnhzkmtn.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.39-vz4td3jg.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.39-rfjygmym.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.39-vbqywsj7.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.39-bb46mna1.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.39-b57dgsm7.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.39-jgfyp0cs.mjs +0 -1
- package/dist/chunks/add-dir-1.1.39-1wp8d118.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.39-0x20gy8e.mjs +0 -1
- package/dist/chunks/agents-1.1.39-b3k5kxn7.mjs +0 -110
- package/dist/chunks/agents-1.1.39-nt8wcmtp.mjs +0 -3
- package/dist/chunks/api-1.1.39-tn9g67g0.mjs +0 -1
- package/dist/chunks/asciicast-1.1.39-22byg1gm.mjs +0 -1
- package/dist/chunks/auth-1.1.39-1x1eer36.mjs +0 -1
- package/dist/chunks/auth-1.1.39-vz0zkq99.mjs +0 -1
- package/dist/chunks/autoMode-1.1.39-sjezrxh7.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.39-e6gvda2k.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.39-cz95xv2n.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.39-vsn9w5k2.mjs +0 -1
- package/dist/chunks/branch-1.1.39-e0ww5bkp.mjs +0 -4
- package/dist/chunks/bridge-1.1.39-k5vb0mmb.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.39-6czf6nvj.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.39-crv4d7xn.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.39-488k7mc8.mjs +0 -64
- package/dist/chunks/bridgePointer-1.1.39-xb9s18xx.mjs +0 -1
- package/dist/chunks/btw-1.1.39-n1psbg89.mjs +0 -1
- package/dist/chunks/buddy-1.1.39-ms13d421.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.39-j0aybz93.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.39-dg202ye5.mjs +0 -4
- package/dist/chunks/caches-1.1.39-v3nps0e9.mjs +0 -1
- package/dist/chunks/cd-1.1.39-awhhtq1z.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.39-azj9es6w.mjs +0 -1
- package/dist/chunks/claudemd-1.1.39-7a02xhkm.mjs +0 -1
- package/dist/chunks/clear-1.1.39-k197h5f0.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.39-twgf5kky.mjs +0 -1
- package/dist/chunks/cli-1.1.39-01qgb22d.mjs +0 -4
- package/dist/chunks/cli-1.1.39-07d1v3y9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-0k9p4g5p.mjs +0 -2
- package/dist/chunks/cli-1.1.39-0mtb82ww.mjs +0 -2
- package/dist/chunks/cli-1.1.39-0rsjfyh1.mjs +0 -9
- package/dist/chunks/cli-1.1.39-0s0eqwsn.mjs +0 -2
- package/dist/chunks/cli-1.1.39-10wrcybe.mjs +0 -2
- package/dist/chunks/cli-1.1.39-111vm2e1.mjs +0 -24
- package/dist/chunks/cli-1.1.39-14jxs3k5.mjs +0 -3
- package/dist/chunks/cli-1.1.39-15jr1t97.mjs +0 -2
- package/dist/chunks/cli-1.1.39-17mj2gq0.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1es853x9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1m7bzjpd.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1mpe0mv2.mjs +0 -17
- package/dist/chunks/cli-1.1.39-1q43eavk.mjs +0 -4
- package/dist/chunks/cli-1.1.39-1r1cbvk8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1tcqp8ky.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1wg6zvk6.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1yysfg6y.mjs +0 -2
- package/dist/chunks/cli-1.1.39-212q1ba2.mjs +0 -2
- package/dist/chunks/cli-1.1.39-24z9gjkg.mjs +0 -6
- package/dist/chunks/cli-1.1.39-2gzgjcxr.mjs +0 -6
- package/dist/chunks/cli-1.1.39-2hgsp1ry.mjs +0 -2
- package/dist/chunks/cli-1.1.39-2k0w4c3v.mjs +0 -6
- package/dist/chunks/cli-1.1.39-2vf0yc3g.mjs +0 -2
- package/dist/chunks/cli-1.1.39-2x3kj4gh.mjs +0 -2
- package/dist/chunks/cli-1.1.39-2xmkpvn8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-31e9rw45.mjs +0 -2
- package/dist/chunks/cli-1.1.39-3g0p54p8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-3mghgnn1.mjs +0 -24
- package/dist/chunks/cli-1.1.39-3yy2wxqa.mjs +0 -24
- package/dist/chunks/cli-1.1.39-4bdssx8e.mjs +0 -2
- package/dist/chunks/cli-1.1.39-4he45b53.mjs +0 -2
- package/dist/chunks/cli-1.1.39-4p4c56cn.mjs +0 -2
- package/dist/chunks/cli-1.1.39-4w5sz267.mjs +0 -2
- package/dist/chunks/cli-1.1.39-52k1fj82.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5gdtmek1.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5ge6mqxz.mjs +0 -63
- package/dist/chunks/cli-1.1.39-5h7tfgqc.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5r6zjkfz.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5t4113gt.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5xkhxv1a.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5yxt37n7.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5zc15zgx.mjs +0 -2
- package/dist/chunks/cli-1.1.39-6pkc868v.mjs +0 -2
- package/dist/chunks/cli-1.1.39-6y7dsvjs.mjs +0 -2
- package/dist/chunks/cli-1.1.39-70t1q2pm.mjs +0 -2
- package/dist/chunks/cli-1.1.39-75gxbxsn.mjs +0 -7
- package/dist/chunks/cli-1.1.39-7ck7pqh0.mjs +0 -2
- package/dist/chunks/cli-1.1.39-7d9k8cma.mjs +0 -2
- package/dist/chunks/cli-1.1.39-7hm6zgk1.mjs +0 -15
- package/dist/chunks/cli-1.1.39-7jhstkb2.mjs +0 -2
- package/dist/chunks/cli-1.1.39-7kjnzaa8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-7tchegvs.mjs +0 -5
- package/dist/chunks/cli-1.1.39-7tgaawmj.mjs +0 -2
- package/dist/chunks/cli-1.1.39-7xc1qp70.mjs +0 -2
- package/dist/chunks/cli-1.1.39-89e5xfsc.mjs +0 -2
- package/dist/chunks/cli-1.1.39-8e62hz1p.mjs +0 -3
- package/dist/chunks/cli-1.1.39-8gscnd8w.mjs +0 -2
- package/dist/chunks/cli-1.1.39-8jw8s604.mjs +0 -2
- package/dist/chunks/cli-1.1.39-8k3rh435.mjs +0 -2
- package/dist/chunks/cli-1.1.39-8xf0xfkw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-905jk7a7.mjs +0 -133
- package/dist/chunks/cli-1.1.39-9afxesb0.mjs +0 -3
- package/dist/chunks/cli-1.1.39-9bh2t20k.mjs +0 -3
- package/dist/chunks/cli-1.1.39-9dfw3wt9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-9j9vfcg0.mjs +0 -10
- package/dist/chunks/cli-1.1.39-9qsdqnm7.mjs +0 -6
- package/dist/chunks/cli-1.1.39-9yg363zk.mjs +0 -2
- package/dist/chunks/cli-1.1.39-a1rc9y55.mjs +0 -3
- package/dist/chunks/cli-1.1.39-a40ak4sd.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ay2p31kb.mjs +0 -39
- package/dist/chunks/cli-1.1.39-b1gewbgs.mjs +0 -2
- package/dist/chunks/cli-1.1.39-b314axe0.mjs +0 -2
- package/dist/chunks/cli-1.1.39-b3geta93.mjs +0 -21
- package/dist/chunks/cli-1.1.39-bd66bjj3.mjs +0 -2
- package/dist/chunks/cli-1.1.39-brzpjtja.mjs +0 -2
- package/dist/chunks/cli-1.1.39-c4c832m5.mjs +0 -2
- package/dist/chunks/cli-1.1.39-c6mm3w1n.mjs +0 -135
- package/dist/chunks/cli-1.1.39-c86mbrv2.mjs +0 -2
- package/dist/chunks/cli-1.1.39-chveh83h.mjs +0 -2
- package/dist/chunks/cli-1.1.39-cjc01sak.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ck0k3rxx.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ckty7bt1.mjs +0 -2
- package/dist/chunks/cli-1.1.39-cq5nwqfw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-cvbzp08c.mjs +0 -2
- package/dist/chunks/cli-1.1.39-cyx7zw76.mjs +0 -50
- package/dist/chunks/cli-1.1.39-czh4aj72.mjs +0 -4
- package/dist/chunks/cli-1.1.39-d25xsy5x.mjs +0 -2
- package/dist/chunks/cli-1.1.39-dfrms96j.mjs +0 -2
- package/dist/chunks/cli-1.1.39-djtdv45d.mjs +0 -4
- package/dist/chunks/cli-1.1.39-dm5rqr07.mjs +0 -8
- package/dist/chunks/cli-1.1.39-dvfdgp8r.mjs +0 -2
- package/dist/chunks/cli-1.1.39-dwfknzds.mjs +0 -2
- package/dist/chunks/cli-1.1.39-dwgjp6zp.mjs +0 -2
- package/dist/chunks/cli-1.1.39-e4p7vgrg.mjs +0 -2
- package/dist/chunks/cli-1.1.39-e98w7pr4.mjs +0 -2
- package/dist/chunks/cli-1.1.39-en8a3nq6.mjs +0 -11
- package/dist/chunks/cli-1.1.39-epktaska.mjs +0 -3
- package/dist/chunks/cli-1.1.39-esp4w3m4.mjs +0 -2
- package/dist/chunks/cli-1.1.39-evs7a20p.mjs +0 -9
- package/dist/chunks/cli-1.1.39-eyp8d7vv.mjs +0 -2
- package/dist/chunks/cli-1.1.39-f0wf0m0n.mjs +0 -2
- package/dist/chunks/cli-1.1.39-f1schffw.mjs +0 -25
- package/dist/chunks/cli-1.1.39-f2qc1x1n.mjs +0 -2
- package/dist/chunks/cli-1.1.39-f5azyvet.mjs +0 -2
- package/dist/chunks/cli-1.1.39-fka8qdkr.mjs +0 -2
- package/dist/chunks/cli-1.1.39-fm08hbtj.mjs +0 -2
- package/dist/chunks/cli-1.1.39-fqsaf1st.mjs +0 -2
- package/dist/chunks/cli-1.1.39-g751n1kp.mjs +0 -2
- package/dist/chunks/cli-1.1.39-g7mbr2ky.mjs +0 -2
- package/dist/chunks/cli-1.1.39-g9rcf6cw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ghja51c5.mjs +0 -2
- package/dist/chunks/cli-1.1.39-gnkk8fs7.mjs +0 -2
- package/dist/chunks/cli-1.1.39-gtm67f9z.mjs +0 -2
- package/dist/chunks/cli-1.1.39-h06axtf8.mjs +0 -4
- package/dist/chunks/cli-1.1.39-h8ahn5vw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-h90nz8dv.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ha8fn1m0.mjs +0 -2
- package/dist/chunks/cli-1.1.39-hgm87yas.mjs +0 -10
- package/dist/chunks/cli-1.1.39-j6nvja1z.mjs +0 -2
- package/dist/chunks/cli-1.1.39-jmh4b6db.mjs +0 -2
- package/dist/chunks/cli-1.1.39-jncrq8d3.mjs +0 -2
- package/dist/chunks/cli-1.1.39-jq1a84j4.mjs +0 -2
- package/dist/chunks/cli-1.1.39-k8n2ksgh.mjs +0 -2
- package/dist/chunks/cli-1.1.39-kcq7gw24.mjs +0 -60
- package/dist/chunks/cli-1.1.39-kfztpa2h.mjs +0 -2
- package/dist/chunks/cli-1.1.39-kkgyntg1.mjs +0 -7
- package/dist/chunks/cli-1.1.39-kw258d7x.mjs +0 -4
- package/dist/chunks/cli-1.1.39-mhv15208.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ms0zz1pq.mjs +0 -2
- package/dist/chunks/cli-1.1.39-mtdpf384.mjs +0 -2
- package/dist/chunks/cli-1.1.39-n8j5q839.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nc39g50q.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nde8mxzw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ne2jz4j1.mjs +0 -12
- package/dist/chunks/cli-1.1.39-nhgqks5q.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nk9xnj41.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nkv70wmc.mjs +0 -10
- package/dist/chunks/cli-1.1.39-nmm4w3bh.mjs +0 -16
- package/dist/chunks/cli-1.1.39-nnc7eg6p.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nsgjkze0.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nxv718fh.mjs +0 -3
- package/dist/chunks/cli-1.1.39-p2sg5g92.mjs +0 -250
- package/dist/chunks/cli-1.1.39-pc9dgxhx.mjs +0 -5
- package/dist/chunks/cli-1.1.39-q8q90rxq.mjs +0 -2
- package/dist/chunks/cli-1.1.39-rfkva6dd.mjs +0 -42
- package/dist/chunks/cli-1.1.39-rhqy2d5w.mjs +0 -2
- package/dist/chunks/cli-1.1.39-rjxm15hw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-rp6sehng.mjs +0 -3
- package/dist/chunks/cli-1.1.39-rprv5zq8.mjs +0 -25
- package/dist/chunks/cli-1.1.39-rqs6bqnm.mjs +0 -2
- package/dist/chunks/cli-1.1.39-rxpy9zgc.mjs +0 -2
- package/dist/chunks/cli-1.1.39-s4g9xyv5.mjs +0 -2
- package/dist/chunks/cli-1.1.39-srjkdp3j.mjs +0 -2
- package/dist/chunks/cli-1.1.39-swktejeb.mjs +0 -2
- package/dist/chunks/cli-1.1.39-t2jqv0s9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-t4a22cet.mjs +0 -6
- package/dist/chunks/cli-1.1.39-tc87f2ta.mjs +0 -2
- package/dist/chunks/cli-1.1.39-tjpdjpp5.mjs +0 -15
- package/dist/chunks/cli-1.1.39-tveshzdb.mjs +0 -2
- package/dist/chunks/cli-1.1.39-v92y62n9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-vh86jjp2.mjs +0 -4
- package/dist/chunks/cli-1.1.39-vhqah8m7.mjs +0 -2
- package/dist/chunks/cli-1.1.39-vtt2tmb9.mjs +0 -18
- package/dist/chunks/cli-1.1.39-wdctfdbb.mjs +0 -4
- package/dist/chunks/cli-1.1.39-whzghgxz.mjs +0 -2
- package/dist/chunks/cli-1.1.39-x6jkg8mf.mjs +0 -20
- package/dist/chunks/cli-1.1.39-xg4cr6x8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-xm6k98xf.mjs +0 -2
- package/dist/chunks/cli-1.1.39-xyddt40c.mjs +0 -2
- package/dist/chunks/cli-1.1.39-y341qw3m.mjs +0 -2
- package/dist/chunks/cli-1.1.39-yjwk9mw8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ypma7nx9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ytvr80fj.mjs +0 -15
- package/dist/chunks/cli-1.1.39-yyqx9zb5.mjs +0 -5522
- package/dist/chunks/cli-1.1.39-z1akavz2.mjs +0 -2
- package/dist/chunks/cli-1.1.39-z21b507j.mjs +0 -2
- package/dist/chunks/cli-1.1.39-z6fepfnh.mjs +0 -2
- package/dist/chunks/cli-1.1.39-zc1b8zf6.mjs +0 -2
- package/dist/chunks/cli-1.1.39-zdsdsv4h.mjs +0 -3
- package/dist/chunks/cli-1.1.39-zfb5hcs0.mjs +0 -34
- package/dist/chunks/client-1.1.39-zrdzybfj.mjs +0 -1
- package/dist/chunks/color-1.1.39-qsgg6xt0.mjs +0 -1
- package/dist/chunks/compact-1.1.39-ye5nj18m.mjs +0 -2
- package/dist/chunks/config-1.1.39-cfgcj726.mjs +0 -1
- package/dist/chunks/config-1.1.39-nsgxmahr.mjs +0 -1
- package/dist/chunks/constants-1.1.39-s4anaxa3.mjs +0 -1
- package/dist/chunks/context-1.1.39-a93qe83k.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.39-2428zhce.mjs +0 -1
- package/dist/chunks/conversation-1.1.39-x581tx1z.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.39-bnzefwe6.mjs +0 -1
- package/dist/chunks/copy-1.1.39-tqab4hm1.mjs +0 -9
- package/dist/chunks/cost-1.1.39-ak71khd3.mjs +0 -1
- package/dist/chunks/createSession-1.1.39-yv7a37ye.mjs +0 -1
- package/dist/chunks/debug-1.1.39-50dvjcn3.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.39-483fm6xk.mjs +0 -1458
- package/dist/chunks/desktop-1.1.39-hbx627a1.mjs +0 -2
- package/dist/chunks/detectRepository-1.1.39-nq1yyp24.mjs +0 -1
- package/dist/chunks/detection-1.1.39-myz8dcyc.mjs +0 -1
- package/dist/chunks/diff-1.1.39-zwwd0sxq.mjs +0 -1
- package/dist/chunks/doctor-1.1.39-bw8w0sdj.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.39-x9azkqjy.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.39-3wtxyym8.mjs +0 -1
- package/dist/chunks/effort-1.1.39-4r28x4kv.mjs +0 -13
- package/dist/chunks/engine-1.1.39-jjwgtndr.mjs +0 -1
- package/dist/chunks/envUtils-1.1.39-azqd5ff8.mjs +0 -1
- package/dist/chunks/errors-1.1.39-z6wpc1z1.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.39-fhwx5xxp.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.39-raa250pr.mjs +0 -1
- package/dist/chunks/exit-1.1.39-vwjekv6v.mjs +0 -1
- package/dist/chunks/explorer-1.1.39-rs5cjdex.mjs +0 -1
- package/dist/chunks/export-1.1.39-eg5q8fpq.mjs +0 -2
- package/dist/chunks/fast-1.1.39-j8zrdcv9.mjs +0 -1
- package/dist/chunks/feedback-1.1.39-tt17q1d1.mjs +0 -16
- package/dist/chunks/git-1.1.39-hf1cm8nf.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.39-yb2392an.mjs +0 -1
- package/dist/chunks/goal-1.1.39-6q6twvx9.mjs +0 -4
- package/dist/chunks/headless-1.1.39-e745sf98.mjs +0 -2
- package/dist/chunks/heapdump-1.1.39-1mf2vt2g.mjs +0 -6
- package/dist/chunks/help-1.1.39-szdr1nvx.mjs +0 -1
- package/dist/chunks/hooks-1.1.39-5pws6gsg.mjs +0 -79
- package/dist/chunks/hooks-1.1.39-6tz18s8r.mjs +0 -1
- package/dist/chunks/ide-1.1.39-nk0vmfg1.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.39-rx4ypf8k.mjs +0 -1
- package/dist/chunks/import-1.1.39-eyddkf9v.mjs +0 -260
- package/dist/chunks/inboundAttachments-1.1.39-g0fjztwj.mjs +0 -1
- package/dist/chunks/index-1.1.39-1wfhz9pz.mjs +0 -1
- package/dist/chunks/index-1.1.39-27vjd0t1.mjs +0 -1
- package/dist/chunks/index-1.1.39-3mp0kdhv.mjs +0 -1
- package/dist/chunks/index-1.1.39-aj2fb3nf.mjs +0 -30
- package/dist/chunks/index-1.1.39-ajb8kk03.mjs +0 -1
- package/dist/chunks/index-1.1.39-bznxqgpz.mjs +0 -1
- package/dist/chunks/index-1.1.39-cf96agzw.mjs +0 -2
- package/dist/chunks/index-1.1.39-d4j661cs.mjs +0 -1
- package/dist/chunks/index-1.1.39-dapcfrje.mjs +0 -1
- package/dist/chunks/index-1.1.39-e9fjpss8.mjs +0 -1
- package/dist/chunks/index-1.1.39-eg0vw6jg.mjs +0 -1
- package/dist/chunks/index-1.1.39-eqm0e7bk.mjs +0 -1
- package/dist/chunks/index-1.1.39-frzv879p.mjs +0 -23
- package/dist/chunks/index-1.1.39-fthy3yb2.mjs +0 -1
- package/dist/chunks/index-1.1.39-h7tvkmm7.mjs +0 -9
- package/dist/chunks/index-1.1.39-hn7czx81.mjs +0 -5
- package/dist/chunks/index-1.1.39-jeg0xvtv.mjs +0 -1
- package/dist/chunks/index-1.1.39-qh6j97r3.mjs +0 -2
- package/dist/chunks/index-1.1.39-szfdrv3c.mjs +0 -9
- package/dist/chunks/index-1.1.39-t358fdhx.mjs +0 -1
- package/dist/chunks/index-1.1.39-w73ez3fh.mjs +0 -1
- package/dist/chunks/index-1.1.39-xcj56xfg.mjs +0 -1
- package/dist/chunks/index-1.1.39-zy7eyf9r.mjs +0 -1
- package/dist/chunks/init-1.1.39-fm3907f2.mjs +0 -2
- package/dist/chunks/initReplBridge-1.1.39-76qw9tbk.mjs +0 -1
- package/dist/chunks/ink-1.1.39-f9cyw022.mjs +0 -1
- package/dist/chunks/insights-1.1.39-ee2ra979.mjs +0 -870
- package/dist/chunks/install-1.1.39-1hv4f4fk.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.39-tg2jfpvx.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.39-69fgekh2.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.39-5caf0pb7.mjs +0 -1
- package/dist/chunks/latestVersionCache-1.1.39-31bygz1b.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.39-1jtdv1bq.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.39-4xw48447.mjs +0 -1
- package/dist/chunks/log-1.1.39-50bfm8j0.mjs +0 -1
- package/dist/chunks/main-1.1.39-f3n951kv.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.39-bwtexcjv.mjs +0 -1
- package/dist/chunks/mcp-1.1.39-15sz3hsq.mjs +0 -1
- package/dist/chunks/mcp-1.1.39-h4h304ze.mjs +0 -4
- package/dist/chunks/mcp-1.1.39-rdsgsc15.mjs +0 -17
- package/dist/chunks/mcpb-1.1.39-5qywjc26.mjs +0 -1
- package/dist/chunks/memory-1.1.39-8edv180p.mjs +0 -128
- package/dist/chunks/model-1.1.39-95b780x9.mjs +0 -2
- package/dist/chunks/model-1.1.39-a5xmtpbv.mjs +0 -1
- package/dist/chunks/new-1.1.39-9476r8p1.mjs +0 -1
- package/dist/chunks/node-1.1.39-pqhskkn0.mjs +0 -15
- package/dist/chunks/node-1.1.39-xgvdgvgj.mjs +0 -1
- package/dist/chunks/oauth-1.1.39-5h69g0mf.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.39-jnp9fkcv.mjs +0 -14
- package/dist/chunks/output-style-1.1.39-e5qsw51y.mjs +0 -1
- package/dist/chunks/package-V72LKFNW-1.1.39-0gcw2fkh.mjs +0 -1
- package/dist/chunks/permissions-1.1.39-0m2h5ctr.mjs +0 -3
- package/dist/chunks/permissions-1.1.39-djt32qkn.mjs +0 -1
- package/dist/chunks/plan-1.1.39-qcq9a7rg.mjs +0 -1
- package/dist/chunks/plist-1.1.39-esb4db3e.mjs +0 -1
- package/dist/chunks/plugin-1.1.39-xztkvc83.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.39-pzynd625.mjs +0 -1
- package/dist/chunks/plugins-1.1.39-2vnnwfwq.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.39-w6ay049g.mjs +0 -2
- package/dist/chunks/print-1.1.39-m20hre3d.mjs +0 -57
- package/dist/chunks/process-1.1.39-7pp4m6p6.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.39-z8xyxzeb.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.39-025rdqc4.mjs +0 -9
- package/dist/chunks/prompt-1.1.39-8cves1th.mjs +0 -1
- package/dist/chunks/prompt-1.1.39-vys3tszv.mjs +0 -1
- package/dist/chunks/prompts-1.1.39-agk5ys12.mjs +0 -1
- package/dist/chunks/provider-1.1.39-ezn3013z.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.39-c20aqfkp.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.39-5bwc03ac.mjs +0 -6
- package/dist/chunks/registerSubcommands-1.1.39-tg42q4mt.mjs +0 -26
- package/dist/chunks/registry-1.1.39-69kg9048.mjs +0 -1
- package/dist/chunks/release-notes-1.1.39-vm602996.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.39-hq5jb4fe.mjs +0 -2
- package/dist/chunks/remote-env-1.1.39-b742xwt8.mjs +0 -1
- package/dist/chunks/rename-1.1.39-37583s4r.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.39-x7vm725e.mjs +0 -1
- package/dist/chunks/resume-1.1.39-7x78pwef.mjs +0 -2
- package/dist/chunks/rewind-1.1.39-36y4s8ng.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.39-ns1nx8k9.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.39-8p1cbkrx.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.39-bt6cm9af.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.39-a3p74qsk.mjs +0 -1
- package/dist/chunks/session-1.1.39-qgpx4589.mjs +0 -2
- package/dist/chunks/sessionStorage-1.1.39-fp105vvb.mjs +0 -1
- package/dist/chunks/settings-1.1.39-qe258cgb.mjs +0 -1
- package/dist/chunks/setup-1.1.39-4zjv96k3.mjs +0 -12
- package/dist/chunks/sinks-1.1.39-6xx75cg6.mjs +0 -1
- package/dist/chunks/skills-1.1.39-2d5tfynf.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.39-jcvdrk17.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.39-43maz2ha.mjs +0 -1
- package/dist/chunks/state-1.1.39-4sbpam9q.mjs +0 -1
- package/dist/chunks/stats-1.1.39-8p35mm3v.mjs +0 -1
- package/dist/chunks/status-1.1.39-1qcsfp99.mjs +0 -1
- package/dist/chunks/stickers-1.1.39-hppwbrtb.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.39-hp2bbefp.mjs +0 -1
- package/dist/chunks/tasks-1.1.39-qs8xddg1.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.39-qnvqd2j1.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.39-pr2vnqzw.mjs +0 -1
- package/dist/chunks/teleport-1.1.39-zt8tze77.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.39-715qq4cf.mjs +0 -1
- package/dist/chunks/theme-1.1.39-gnxdfpcb.mjs +0 -1
- package/dist/chunks/toolPool-1.1.39-77884kvy.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.39-b2k8yjaz.mjs +0 -1
- package/dist/chunks/tools-1.1.39-7nbe7hrf.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.39-h0gz7em7.mjs +0 -69
- package/dist/chunks/types-1.1.39-jcqnbyss.mjs +0 -1
- package/dist/chunks/update-1.1.39-1w75psfh.mjs +0 -72
- package/dist/chunks/upload-1.1.39-z8ymn737.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.39-j1d74feb.mjs +0 -14
- package/dist/chunks/usage-1.1.39-s31k5fep.mjs +0 -1
- package/dist/chunks/util-1.1.39-ad8sk0dp.mjs +0 -1
- package/dist/chunks/utils-1.1.39-ya8kcrhm.mjs +0 -1
- package/dist/chunks/vim-1.1.39-b6pfmpbz.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.39-h3bxe3p9.mjs +0 -13
- package/dist/chunks/wiki-1.1.39-5aj4xh5m.mjs +0 -132
- package/dist/chunks/workflows-1.1.39-f31ham8r.mjs +0 -1
- package/dist/chunks/worktree-1.1.39-sf55cdqj.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.39-4ja3es46.mjs +0 -1
- package/dist/chunks/wrapper-1.1.39-r1fj52tb.mjs +0 -7
- /package/dist/chunks/{cli-1.1.39-avfsydnr.mjs → cli-1.1.40-1y2tz88m.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.39-hn5s43sr.mjs → cli-1.1.40-3xg2bc7f.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.39-jsnryd3j.mjs → cli-1.1.40-8vgr1z6h.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.39-z8ts6axr.mjs → cli-1.1.40-jxfk62k7.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.39-erbg35qn.mjs → cli-1.1.40-x18jz9h5.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.39-qnem4654.mjs → cli-1.1.40-ys83fnw1.mjs} +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{b9 as M0,c9 as H0}from"./cli-1.1.40-m4hyy4k1.mjs";import{Kqa as L0,Lqa as J,Nqa as R0,Oqa as E}from"./cli-1.1.40-jxfk62k7.mjs";var u_=J((Ch,b_)=>{var T=1000,$=T*60,O=$*60,U=O*24,rS=U*7,sS=U*365.25;b_.exports=function(_,S){S=S||{};var z=typeof _;if(z==="string"&&_.length>0)return aS(_);else if(z==="number"&&isFinite(_))return S.long?_0(_):eS(_);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(_))};function aS(_){if(_=String(_),_.length>100)return;var S=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(_);if(!S)return;var z=parseFloat(S[1]),h=(S[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return z*sS;case"weeks":case"week":case"w":return z*rS;case"days":case"day":case"d":return z*U;case"hours":case"hour":case"hrs":case"hr":case"h":return z*O;case"minutes":case"minute":case"mins":case"min":case"m":return z*$;case"seconds":case"second":case"secs":case"sec":case"s":return z*T;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return z;default:return}}function eS(_){var S=Math.abs(_);if(S>=U)return Math.round(_/U)+"d";if(S>=O)return Math.round(_/O)+"h";if(S>=$)return Math.round(_/$)+"m";if(S>=T)return Math.round(_/T)+"s";return _+"ms"}function _0(_){var S=Math.abs(_);if(S>=U)return t(_,S,U,"day");if(S>=O)return t(_,S,O,"hour");if(S>=$)return t(_,S,$,"minute");if(S>=T)return t(_,S,T,"second");return _+" ms"}function t(_,S,z,h){var K=S>=z*1.5;return Math.round(_/z)+" "+h+(K?"s":"")}});var J_=J((Ih,m_)=>{function z0(_){z.debug=z,z.default=z,z.coerce=M,z.disable=W,z.enable=K,z.enabled=V,z.humanize=u_(),z.destroy=F,Object.keys(_).forEach((Z)=>{z[Z]=_[Z]}),z.names=[],z.skips=[],z.formatters={};function S(Z){let Y=0;for(let G=0;G<Z.length;G++)Y=(Y<<5)-Y+Z.charCodeAt(G),Y|=0;return z.colors[Math.abs(Y)%z.colors.length]}z.selectColor=S;function z(Z){let Y,G=null,L,x;function H(...N){if(!H.enabled)return;let A=H,n=Number(new Date),lS=n-(Y||n);if(A.diff=lS,A.prev=Y,A.curr=n,Y=n,N[0]=z.coerce(N[0]),typeof N[0]!=="string")N.unshift("%O");let l=0;N[0]=N[0].replace(/%([a-zA-Z%])/g,(Z_,tS)=>{if(Z_==="%%")return"%";l++;let g_=z.formatters[tS];if(typeof g_==="function"){let oS=N[l];Z_=g_.call(A,oS),N.splice(l,1),l--}return Z_}),z.formatArgs.call(A,N),(A.log||z.log).apply(A,N)}if(H.namespace=Z,H.useColors=z.useColors(),H.color=z.selectColor(Z),H.extend=h,H.destroy=z.destroy,Object.defineProperty(H,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(G!==null)return G;if(L!==z.namespaces)L=z.namespaces,x=z.enabled(Z);return x},set:(N)=>{G=N}}),typeof z.init==="function")z.init(H);return H}function h(Z,Y){let G=z(this.namespace+(typeof Y>"u"?":":Y)+Z);return G.log=this.log,G}function K(Z){z.save(Z),z.namespaces=Z,z.names=[],z.skips=[];let Y=(typeof Z==="string"?Z:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let G of Y)if(G[0]==="-")z.skips.push(G.slice(1));else z.names.push(G)}function Q(Z,Y){let G=0,L=0,x=-1,H=0;while(G<Z.length)if(L<Y.length&&(Y[L]===Z[G]||Y[L]==="*"))if(Y[L]==="*")x=L,H=G,L++;else G++,L++;else if(x!==-1)L=x+1,H++,G=H;else return!1;while(L<Y.length&&Y[L]==="*")L++;return L===Y.length}function W(){let Z=[...z.names,...z.skips.map((Y)=>"-"+Y)].join(",");return z.enable(""),Z}function V(Z){for(let Y of z.skips)if(Q(Z,Y))return!1;for(let Y of z.names)if(Q(Z,Y))return!0;return!1}function M(Z){if(Z instanceof Error)return Z.stack||Z.message;return Z}function F(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return z.enable(z.load()),z}m_.exports=z0});var i_=J((p_,o)=>{p_.formatArgs=h0;p_.save=K0;p_.load=Q0;p_.useColors=S0;p_.storage=Z0();p_.destroy=(()=>{let _=!1;return()=>{if(!_)_=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();p_.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function S0(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let _;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(_=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(_[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function h0(_){if(_[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+_[0]+(this.useColors?"%c ":" ")+"+"+o.exports.humanize(this.diff),!this.useColors)return;let S="color: "+this.color;_.splice(1,0,S,"color: inherit");let z=0,h=0;_[0].replace(/%[a-zA-Z%]/g,(K)=>{if(K==="%%")return;if(z++,K==="%c")h=z}),_.splice(h,0,S)}p_.log=console.debug||console.log||(()=>{});function K0(_){try{if(_)p_.storage.setItem("debug",_);else p_.storage.removeItem("debug")}catch(S){}}function Q0(){let _;try{_=p_.storage.getItem("debug")||p_.storage.getItem("DEBUG")}catch(S){}if(!_&&typeof process<"u"&&"env"in process)_=process.env.DEBUG;return _}function Z0(){try{return localStorage}catch(_){}}o.exports=J_()(p_);var{formatters:J0}=o.exports;J0.j=function(_){try{return JSON.stringify(_)}catch(S){return"[UnexpectedJSONParseError]: "+S.message}}});var l_=J((c_,s)=>{var q0=E("tty"),r=E("util");c_.init=U0;c_.log=E0;c_.formatArgs=N0;c_.save=D0;c_.load=A0;c_.useColors=w0;c_.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");c_.colors=[6,2,3,4,5,1];try{let _=(H0(),L0(M0));if(_&&(_.stderr||_).level>=2)c_.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(_){}c_.inspectOpts=Object.keys(process.env).filter((_)=>{return/^debug_/i.test(_)}).reduce((_,S)=>{let z=S.substring(6).toLowerCase().replace(/_([a-z])/g,(K,Q)=>{return Q.toUpperCase()}),h=process.env[S];if(/^(yes|on|true|enabled)$/i.test(h))h=!0;else if(/^(no|off|false|disabled)$/i.test(h))h=!1;else if(h==="null")h=null;else h=Number(h);return _[z]=h,_},{});function w0(){return"colors"in c_.inspectOpts?Boolean(c_.inspectOpts.colors):q0.isatty(process.stderr.fd)}function N0(_){let{namespace:S,useColors:z}=this;if(z){let h=this.color,K="\x1B[3"+(h<8?h:"8;5;"+h),Q=` ${K};1m${S} \x1B[0m`;_[0]=Q+_[0].split(`
|
|
2
|
+
`).join(`
|
|
3
|
+
`+Q),_.push(K+"m+"+s.exports.humanize(this.diff)+"\x1B[0m")}else _[0]=x0()+S+" "+_[0]}function x0(){if(c_.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function E0(..._){return process.stderr.write(r.formatWithOptions(c_.inspectOpts,..._)+`
|
|
4
|
+
`)}function D0(_){if(_)process.env.DEBUG=_;else delete process.env.DEBUG}function A0(){return process.env.DEBUG}function U0(_){_.inspectOpts={};let S=Object.keys(c_.inspectOpts);for(let z=0;z<S.length;z++)_.inspectOpts[S[z]]=c_.inspectOpts[S[z]]}s.exports=J_()(c_);var{formatters:d_}=s.exports;d_.o=function(_){return this.inspectOpts.colors=this.useColors,r.inspect(_,this.inspectOpts).split(`
|
|
5
|
+
`).map((S)=>S.trim()).join(" ")};d_.O=function(_){return this.inspectOpts.colors=this.useColors,r.inspect(_,this.inspectOpts)}});var t_=J((Oh,Y_)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)Y_.exports=i_();else Y_.exports=l_()});function y0(_){try{return new URL(_)}catch{return null}}function Rh(_){var S=(typeof _==="string"?y0(_):_)||{},z=S.protocol,h=S.host,K=S.port;if(typeof h!=="string"||!h||typeof z!=="string")return"";if(z=z.split(":",1)[0],h=h.replace(/:\d*$/,""),K=parseInt(K)||P0[z]||0,!k0(h,K))return"";var Q=W_(z+"_proxy")||W_("all_proxy");if(Q&&Q.indexOf("://")===-1)Q=z+"://"+Q;return Q}function k0(_,S){var z=W_("no_proxy").toLowerCase();if(!z)return!0;if(z==="*")return!1;return z.split(/[,\s]/).every(function(h){if(!h)return!0;var K=h.match(/^(.+):(\d+)$/),Q=K?K[1]:h,W=K?parseInt(K[2]):0;if(W&&W!==S)return!0;if(!/^[.*]/.test(Q))return _!==Q;if(Q.charAt(0)==="*")Q=Q.slice(1);return!_.endsWith(Q)})}function W_(_){return process.env[_.toLowerCase()]||process.env[_.toUpperCase()]||""}var P0;var v0=R0(()=>{P0={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443}});var r_=J((yh,o_)=>{var b;o_.exports=function(){if(!b){try{b=t_()("follow-redirects")}catch(_){}if(typeof b!=="function")b=function(){}}b.apply(null,arguments)}});var a0=J((kh,x_)=>{var m=E("url"),u=m.URL,g0=E("http"),b0=E("https"),X_=E("stream").Writable,L_=E("assert"),s_=r_();(function(){var S=typeof process<"u",z=typeof window<"u"&&typeof document<"u",h=C(Error.captureStackTrace);if(!S&&(z||!h))console.warn("The follow-redirects package should be excluded from browser builds.")})();var M_=!1;try{L_(new u(""))}catch(_){M_=_.code==="ERR_INVALID_URL"}var u0=["Authorization","Proxy-Authorization","Cookie"],m0=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],H_=["abort","aborted","connect","error","socket","timeout"],q_=Object.create(null);H_.forEach(function(_){q_[_]=function(S,z,h){this._redirectable.emit(_,S,z,h)}});var G_=p("ERR_INVALID_URL","Invalid URL",TypeError),V_=p("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),p0=p("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",V_),i0=p("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),d0=p("ERR_STREAM_WRITE_AFTER_END","write after end"),c0=X_.prototype.destroy||e_;function w(_,S){if(X_.call(this),this._sanitizeOptions(_),this._options=_,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],S)this.on("response",S);var z=this;this._onNativeResponse=function(h){try{z._processResponse(h)}catch(K){z.emit("error",K instanceof V_?K:new V_({cause:K}))}},this._headerFilter=new RegExp("^(?:"+u0.concat(_.sensitiveHeaders).map(s0).join("|")+")$","i"),this._performRequest()}w.prototype=Object.create(X_.prototype);w.prototype.abort=function(){N_(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};w.prototype.destroy=function(_){return N_(this._currentRequest,_),c0.call(this,_),this};w.prototype.write=function(_,S,z){if(this._ending)throw new d0;if(!j(_)&&!o0(_))throw TypeError("data should be a string, Buffer or Uint8Array");if(C(S))z=S,S=null;if(_.length===0){if(z)z();return}if(this._requestBodyLength+_.length<=this._options.maxBodyLength)this._requestBodyLength+=_.length,this._requestBodyBuffers.push({data:_,encoding:S}),this._currentRequest.write(_,S,z);else this.emit("error",new i0),this.abort()};w.prototype.end=function(_,S,z){if(C(_))z=_,_=S=null;else if(C(S))z=S,S=null;if(!_)this._ended=this._ending=!0,this._currentRequest.end(null,null,z);else{var h=this,K=this._currentRequest;this.write(_,S,function(){h._ended=!0,K.end(null,null,z)}),this._ending=!0}};w.prototype.setHeader=function(_,S){this._options.headers[_]=S,this._currentRequest.setHeader(_,S)};w.prototype.removeHeader=function(_){delete this._options.headers[_],this._currentRequest.removeHeader(_)};w.prototype.setTimeout=function(_,S){var z=this;function h(W){W.setTimeout(_),W.removeListener("timeout",W.destroy),W.addListener("timeout",W.destroy)}function K(W){if(z._timeout)clearTimeout(z._timeout);z._timeout=setTimeout(function(){z.emit("timeout"),Q()},_),h(W)}function Q(){if(z._timeout)clearTimeout(z._timeout),z._timeout=null;if(z.removeListener("abort",Q),z.removeListener("error",Q),z.removeListener("response",Q),z.removeListener("close",Q),S)z.removeListener("timeout",S);if(!z.socket)z._currentRequest.removeListener("socket",K)}if(S)this.on("timeout",S);if(this.socket)K(this.socket);else this._currentRequest.once("socket",K);return this.on("socket",h),this.on("abort",Q),this.on("error",Q),this.on("response",Q),this.on("close",Q),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(_){w.prototype[_]=function(S,z){return this._currentRequest[_](S,z)}});["aborted","connection","socket"].forEach(function(_){Object.defineProperty(w.prototype,_,{get:function(){return this._currentRequest[_]}})});w.prototype._sanitizeOptions=function(_){if(!_.headers)_.headers={};if(!t0(_.sensitiveHeaders))_.sensitiveHeaders=[];if(_.host){if(!_.hostname)_.hostname=_.host;delete _.host}if(!_.pathname&&_.path){var S=_.path.indexOf("?");if(S<0)_.pathname=_.path;else _.pathname=_.path.substring(0,S),_.search=_.path.substring(S)}};w.prototype._performRequest=function(){var _=this._options.protocol,S=this._options.nativeProtocols[_];if(!S)throw TypeError("Unsupported protocol "+_);if(this._options.agents){var z=_.slice(0,-1);this._options.agent=this._options.agents[z]}var h=this._currentRequest=S.request(this._options,this._onNativeResponse);h._redirectable=this;for(var K of H_)h.on(K,q_[K]);if(this._currentUrl=/^\//.test(this._options.path)?m.format(this._options):this._options.path,this._isRedirect){var Q=0,W=this,V=this._requestBodyBuffers;(function M(F){if(h===W._currentRequest){if(F)W.emit("error",F);else if(Q<V.length){var Z=V[Q++];if(!h.finished)h.write(Z.data,Z.encoding,M)}else if(W._ended)h.end()}})()}};w.prototype._processResponse=function(_){var S=_.statusCode;if(this._options.trackRedirects)this._redirects.push({url:this._currentUrl,headers:_.headers,statusCode:S});var z=_.headers.location;if(!z||this._options.followRedirects===!1||S<300||S>=400){_.responseUrl=this._currentUrl,_.redirects=this._redirects,this.emit("response",_),this._requestBodyBuffers=[];return}if(N_(this._currentRequest),_.destroy(),++this._redirectCount>this._options.maxRedirects)throw new p0;var h,K=this._options.beforeRedirect;if(K)h=Object.assign({Host:_.req.getHeader("host")},this._options.headers);var Q=this._options.method;if((S===301||S===302)&&this._options.method==="POST"||S===303&&!/^(?:GET|HEAD)$/.test(this._options.method))this._options.method="GET",this._requestBodyBuffers=[],B_(/^content-/i,this._options.headers);var W=B_(/^host$/i,this._options.headers),V=w_(this._currentUrl),M=W||V.host,F=/^\w+:/.test(z)?this._currentUrl:m.format(Object.assign(V,{host:M})),Z=n0(z,F);if(s_("redirecting to",Z.href),this._isRedirect=!0,F_(Z,this._options),Z.protocol!==V.protocol&&Z.protocol!=="https:"||Z.host!==M&&!l0(Z.host,M))B_(this._headerFilter,this._options.headers);if(C(K)){var Y={headers:_.headers,statusCode:S},G={url:F,method:Q,headers:h};K(this._options,Y,G),this._sanitizeOptions(this._options)}this._performRequest()};function a_(_){var S={maxRedirects:21,maxBodyLength:10485760},z={};return Object.keys(_).forEach(function(h){var K=h+":",Q=z[K]=_[h],W=S[h]=Object.create(Q);function V(F,Z,Y){if(r0(F))F=F_(F);else if(j(F))F=F_(w_(F));else Y=Z,Z=_z(F),F={protocol:K};if(C(Z))Y=Z,Z=null;if(Z=Object.assign({maxRedirects:S.maxRedirects,maxBodyLength:S.maxBodyLength},F,Z),Z.nativeProtocols=z,!j(Z.host)&&!j(Z.hostname))Z.hostname="::1";return L_.equal(Z.protocol,K,"protocol mismatch"),s_("options",Z),new w(Z,Y)}function M(F,Z,Y){var G=W.request(F,Z,Y);return G.end(),G}Object.defineProperties(W,{request:{value:V,configurable:!0,enumerable:!0,writable:!0},get:{value:M,configurable:!0,enumerable:!0,writable:!0}})}),S}function e_(){}function w_(_){var S;if(M_)S=new u(_);else if(S=_z(m.parse(_)),!j(S.protocol))throw new G_({input:_});return S}function n0(_,S){return M_?new u(_,S):w_(m.resolve(S,_))}function _z(_){if(/^\[/.test(_.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(_.hostname))throw new G_({input:_.href||_});if(/^\[/.test(_.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(_.host))throw new G_({input:_.href||_});return _}function F_(_,S){var z=S||{};for(var h of m0)z[h]=_[h];if(z.hostname.startsWith("["))z.hostname=z.hostname.slice(1,-1);if(z.port!=="")z.port=Number(z.port);return z.path=z.search?z.pathname+z.search:z.pathname,z}function B_(_,S){var z;for(var h in S)if(_.test(h))z=S[h],delete S[h];return z===null||typeof z>"u"?void 0:String(z).trim()}function p(_,S,z){function h(K){if(C(Error.captureStackTrace))Error.captureStackTrace(this,this.constructor);Object.assign(this,K||{}),this.code=_,this.message=this.cause?S+": "+this.cause.message:S}return h.prototype=new(z||Error),Object.defineProperties(h.prototype,{constructor:{value:h,enumerable:!1},name:{value:"Error ["+_+"]",enumerable:!1}}),h}function N_(_,S){for(var z of H_)_.removeListener(z,q_[z]);_.on("error",e_),_.destroy(S)}function l0(_,S){L_(j(_)&&j(S));var z=_.length-S.length-1;return z>0&&_[z]==="."&&_.endsWith(S)}function t0(_){return _ instanceof Array}function j(_){return typeof _==="string"||_ instanceof String}function C(_){return typeof _==="function"}function o0(_){return typeof _==="object"&&"length"in _}function r0(_){return u&&_ instanceof u}function s0(_){return _.replace(/[\]\\/()*+?.$]/g,"\\$&")}x_.exports=a_({http:g0,https:b0});x_.exports.wrap=a_});var hz=J((vh,Sz)=>{var zz=E("stream").Stream,e0=E("util");Sz.exports=D;function D(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e0.inherits(D,zz);D.create=function(_,S){var z=new this;S=S||{};for(var h in S)z[h]=S[h];z.source=_;var K=_.emit;if(_.emit=function(){return z._handleEmit(arguments),K.apply(_,arguments)},_.on("error",function(){}),z.pauseStream)_.pause();return z};Object.defineProperty(D.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});D.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};D.prototype.resume=function(){if(!this._released)this.release();this.source.resume()};D.prototype.pause=function(){this.source.pause()};D.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(_){this.emit.apply(this,_)}.bind(this)),this._bufferedEvents=[]};D.prototype.pipe=function(){var _=zz.prototype.pipe.apply(this,arguments);return this.resume(),_};D.prototype._handleEmit=function(_){if(this._released){this.emit.apply(this,_);return}if(_[0]==="data")this.dataSize+=_[1].length,this._checkIfMaxDataSizeExceeded();this._bufferedEvents.push(_)};D.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded)return;if(this.dataSize<=this.maxDataSize)return;this._maxDataSizeExceeded=!0;var _="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",Error(_))}});var z1=J((gh,Zz)=>{var _1=E("util"),Qz=E("stream").Stream,Kz=hz();Zz.exports=X;function X(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}_1.inherits(X,Qz);X.create=function(_){var S=new this;_=_||{};for(var z in _)S[z]=_[z];return S};X.isStreamLike=function(_){return typeof _!=="function"&&typeof _!=="string"&&typeof _!=="boolean"&&typeof _!=="number"&&!Buffer.isBuffer(_)};X.prototype.append=function(_){var S=X.isStreamLike(_);if(S){if(!(_ instanceof Kz)){var z=Kz.create(_,{maxDataSize:1/0,pauseStream:this.pauseStreams});_.on("data",this._checkDataSize.bind(this)),_=z}if(this._handleErrors(_),this.pauseStreams)_.pause()}return this._streams.push(_),this};X.prototype.pipe=function(_,S){return Qz.prototype.pipe.call(this,_,S),this.resume(),_};X.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};X.prototype._realGetNext=function(){var _=this._streams.shift();if(typeof _>"u"){this.end();return}if(typeof _!=="function"){this._pipeNext(_);return}var S=_;S(function(z){var h=X.isStreamLike(z);if(h)z.on("data",this._checkDataSize.bind(this)),this._handleErrors(z);this._pipeNext(z)}.bind(this))};X.prototype._pipeNext=function(_){this._currentStream=_;var S=X.isStreamLike(_);if(S){_.on("end",this._getNext.bind(this)),_.pipe(this,{end:!1});return}var z=_;this.write(z),this._getNext()};X.prototype._handleErrors=function(_){var S=this;_.on("error",function(z){S._emitError(z)})};X.prototype.write=function(_){this.emit("data",_)};X.prototype.pause=function(){if(!this.pauseStreams)return;if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};X.prototype.resume=function(){if(!this._released)this._released=!0,this.writable=!0,this._getNext();if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};X.prototype.end=function(){this._reset(),this.emit("end")};X.prototype.destroy=function(){this._reset(),this.emit("close")};X.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};X.prototype._checkDataSize=function(){if(this._updateDataSize(),this.dataSize<=this.maxDataSize)return;var _="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(Error(_))};X.prototype._updateDataSize=function(){this.dataSize=0;var _=this;if(this._streams.forEach(function(S){if(!S.dataSize)return;_.dataSize+=S.dataSize}),this._currentStream&&this._currentStream.dataSize)this.dataSize+=this._currentStream.dataSize};X.prototype._emitError=function(_){this._reset(),this.emit("error",_)}});var Yz=J((bh,Jz)=>{Jz.exports=S1;function S1(_){var S=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(S)S(_);else setTimeout(_,0)}});var E_=J((uh,Bz)=>{var Wz=Yz();Bz.exports=h1;function h1(_){var S=!1;return Wz(function(){S=!0}),function(h,K){if(S)_(h,K);else Wz(function(){_(h,K)})}}});var D_=J((mh,Gz)=>{Gz.exports=K1;function K1(_){Object.keys(_.jobs).forEach(Q1.bind(_)),_.jobs={}}function Q1(_){if(typeof this.jobs[_]=="function")this.jobs[_]()}});var A_=J((ph,Fz)=>{var Vz=E_(),Z1=D_();Fz.exports=J1;function J1(_,S,z,h){var K=z.keyedList?z.keyedList[z.index]:z.index;z.jobs[K]=Y1(S,K,_[K],function(Q,W){if(!(K in z.jobs))return;if(delete z.jobs[K],Q)Z1(z);else z.results[K]=W;h(Q,z.results)})}function Y1(_,S,z,h){var K;if(_.length==2)K=_(z,Vz(h));else K=_(z,S,Vz(h));return K}});var U_=J((ih,Xz)=>{Xz.exports=W1;function W1(_,S){var z=!Array.isArray(_),h={index:0,keyedList:z||S?Object.keys(_):null,jobs:{},results:z?{}:[],size:z?Object.keys(_).length:_.length};if(S)h.keyedList.sort(z?S:function(K,Q){return S(_[K],_[Q])});return h}});var f_=J((dh,Lz)=>{var B1=D_(),G1=E_();Lz.exports=V1;function V1(_){if(!Object.keys(this.jobs).length)return;this.index=this.size,B1(this),G1(_)(null,this.results)}});var Hz=J((ch,Mz)=>{var F1=A_(),X1=U_(),L1=f_();Mz.exports=M1;function M1(_,S,z){var h=X1(_);while(h.index<(h.keyedList||_).length)F1(_,S,h,function(K,Q){if(K){z(K,Q);return}if(Object.keys(h.jobs).length===0){z(null,h.results);return}}),h.index++;return L1.bind(h,z)}});var j_=J((nh,a)=>{var qz=A_(),H1=U_(),q1=f_();a.exports=w1;a.exports.ascending=wz;a.exports.descending=N1;function w1(_,S,z,h){var K=H1(_,z);return qz(_,S,K,function Q(W,V){if(W){h(W,V);return}if(K.index++,K.index<(K.keyedList||_).length){qz(_,S,K,Q);return}h(null,K.results)}),q1.bind(K,h)}function wz(_,S){return _<S?-1:_>S?1:0}function N1(_,S){return-1*wz(_,S)}});var xz=J((lh,Nz)=>{var x1=j_();Nz.exports=E1;function E1(_,S,z){return x1(_,S,null,z)}});var D1=J((th,Ez)=>{Ez.exports={parallel:Hz(),serial:xz(),serialOrdered:j_()}});var C_=J((oh,Dz)=>{Dz.exports=Object});var Uz=J((rh,Az)=>{Az.exports=Error});var jz=J((sh,fz)=>{fz.exports=EvalError});var Iz=J((ah,Cz)=>{Cz.exports=RangeError});var $z=J((eh,Tz)=>{Tz.exports=ReferenceError});var Rz=J((_2,Oz)=>{Oz.exports=SyntaxError});var e=J((z2,Pz)=>{Pz.exports=TypeError});var kz=J((S2,yz)=>{yz.exports=URIError});var gz=J((h2,vz)=>{vz.exports=Math.abs});var uz=J((K2,bz)=>{bz.exports=Math.floor});var pz=J((Q2,mz)=>{mz.exports=Math.max});var dz=J((Z2,iz)=>{iz.exports=Math.min});var nz=J((J2,cz)=>{cz.exports=Math.pow});var tz=J((Y2,lz)=>{lz.exports=Math.round});var rz=J((W2,oz)=>{oz.exports=Number.isNaN||function(S){return S!==S}});var az=J((B2,sz)=>{var A1=rz();sz.exports=function(S){if(A1(S)||S===0)return S;return S<0?-1:1}});var _S=J((G2,ez)=>{ez.exports=Object.getOwnPropertyDescriptor});var I_=J((V2,zS)=>{var __=_S();if(__)try{__([],"length")}catch(_){__=null}zS.exports=__});var hS=J((F2,SS)=>{var z_=Object.defineProperty||!1;if(z_)try{z_({},"a",{value:1})}catch(_){z_=!1}SS.exports=z_});var T_=J((X2,KS)=>{KS.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var S={},z=Symbol("test"),h=Object(z);if(typeof z==="string")return!1;if(Object.prototype.toString.call(z)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(h)!=="[object Symbol]")return!1;var K=42;S[z]=K;for(var Q in S)return!1;if(typeof Object.keys==="function"&&Object.keys(S).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(S).length!==0)return!1;var W=Object.getOwnPropertySymbols(S);if(W.length!==1||W[0]!==z)return!1;if(!Object.prototype.propertyIsEnumerable.call(S,z))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var V=Object.getOwnPropertyDescriptor(S,z);if(V.value!==K||V.enumerable!==!0)return!1}return!0}});var JS=J((L2,ZS)=>{var QS=typeof Symbol<"u"&&Symbol,U1=T_();ZS.exports=function(){if(typeof QS!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof QS("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return U1()}});var $_=J((M2,YS)=>{YS.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var O_=J((H2,WS)=>{var f1=C_();WS.exports=f1.getPrototypeOf||null});var VS=J((q2,GS)=>{var j1="Function.prototype.bind called on incompatible ",C1=Object.prototype.toString,I1=Math.max,T1="[object Function]",BS=function(S,z){var h=[];for(var K=0;K<S.length;K+=1)h[K]=S[K];for(var Q=0;Q<z.length;Q+=1)h[Q+S.length]=z[Q];return h},$1=function(S,z){var h=[];for(var K=z||0,Q=0;K<S.length;K+=1,Q+=1)h[Q]=S[K];return h},O1=function(_,S){var z="";for(var h=0;h<_.length;h+=1)if(z+=_[h],h+1<_.length)z+=S;return z};GS.exports=function(S){var z=this;if(typeof z!=="function"||C1.apply(z)!==T1)throw TypeError(j1+z);var h=$1(arguments,1),K,Q=function(){if(this instanceof K){var Z=z.apply(this,BS(h,arguments));if(Object(Z)===Z)return Z;return this}return z.apply(S,BS(h,arguments))},W=I1(0,z.length-h.length),V=[];for(var M=0;M<W;M++)V[M]="$"+M;if(K=Function("binder","return function ("+O1(V,",")+"){ return binder.apply(this,arguments); }")(Q),z.prototype){var F=function(){};F.prototype=z.prototype,K.prototype=new F,F.prototype=null}return K}});var R=J((w2,FS)=>{var R1=VS();FS.exports=Function.prototype.bind||R1});var S_=J((N2,XS)=>{XS.exports=Function.prototype.call});var R_=J((x2,LS)=>{LS.exports=Function.prototype.apply});var HS=J((E2,MS)=>{MS.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var wS=J((D2,qS)=>{var P1=R(),y1=R_(),k1=S_(),v1=HS();qS.exports=v1||P1.call(k1,y1)});var xS=J((A2,NS)=>{var g1=R(),b1=e(),u1=S_(),m1=wS();NS.exports=function(S){if(S.length<1||typeof S[0]!=="function")throw new b1("a function is required");return m1(g1,u1,S)}});var jS=J((U2,fS)=>{var p1=xS(),ES=I_(),AS;try{AS=[].__proto__===Array.prototype}catch(_){if(!_||typeof _!=="object"||!("code"in _)||_.code!=="ERR_PROTO_ACCESS")throw _}var P_=!!AS&&ES&&ES(Object.prototype,"__proto__"),US=Object,DS=US.getPrototypeOf;fS.exports=P_&&typeof P_.get==="function"?p1([P_.get]):typeof DS==="function"?function(S){return DS(S==null?S:US(S))}:!1});var OS=J((f2,$S)=>{var CS=$_(),IS=O_(),TS=jS();$S.exports=CS?function(S){return CS(S)}:IS?function(S){if(!S||typeof S!=="object"&&typeof S!=="function")throw TypeError("getProto: not an object");return IS(S)}:TS?function(S){return TS(S)}:null});var PS=J((j2,RS)=>{var i1=Function.prototype.call,d1=Object.prototype.hasOwnProperty,c1=R();RS.exports=c1.call(i1,d1)});var uS=J((C2,bS)=>{var B,n1=C_(),l1=Uz(),t1=jz(),o1=Iz(),r1=$z(),v=Rz(),k=e(),s1=kz(),a1=gz(),e1=uz(),_h=pz(),zh=dz(),Sh=nz(),hh=tz(),Kh=az(),vS=Function,y_=function(_){try{return vS('"use strict"; return ('+_+").constructor;")()}catch(S){}},i=I_(),Qh=hS(),k_=function(){throw new k},Zh=i?function(){try{return arguments.callee,k_}catch(_){try{return i(arguments,"callee").get}catch(S){return k_}}}():k_,P=JS()(),q=OS(),Jh=O_(),Yh=$_(),gS=R_(),d=S_(),y={},Wh=typeof Uint8Array>"u"||!q?B:q(Uint8Array),I={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?B:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?B:ArrayBuffer,"%ArrayIteratorPrototype%":P&&q?q([][Symbol.iterator]()):B,"%AsyncFromSyncIteratorPrototype%":B,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":typeof Atomics>"u"?B:Atomics,"%BigInt%":typeof BigInt>"u"?B:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?B:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?B:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?B:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":l1,"%eval%":eval,"%EvalError%":t1,"%Float16Array%":typeof Float16Array>"u"?B:Float16Array,"%Float32Array%":typeof Float32Array>"u"?B:Float32Array,"%Float64Array%":typeof Float64Array>"u"?B:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?B:FinalizationRegistry,"%Function%":vS,"%GeneratorFunction%":y,"%Int8Array%":typeof Int8Array>"u"?B:Int8Array,"%Int16Array%":typeof Int16Array>"u"?B:Int16Array,"%Int32Array%":typeof Int32Array>"u"?B:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&q?q(q([][Symbol.iterator]())):B,"%JSON%":typeof JSON==="object"?JSON:B,"%Map%":typeof Map>"u"?B:Map,"%MapIteratorPrototype%":typeof Map>"u"||!P||!q?B:q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n1,"%Object.getOwnPropertyDescriptor%":i,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?B:Promise,"%Proxy%":typeof Proxy>"u"?B:Proxy,"%RangeError%":o1,"%ReferenceError%":r1,"%Reflect%":typeof Reflect>"u"?B:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?B:Set,"%SetIteratorPrototype%":typeof Set>"u"||!P||!q?B:q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?B:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&q?q(""[Symbol.iterator]()):B,"%Symbol%":P?Symbol:B,"%SyntaxError%":v,"%ThrowTypeError%":Zh,"%TypedArray%":Wh,"%TypeError%":k,"%Uint8Array%":typeof Uint8Array>"u"?B:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?B:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?B:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?B:Uint32Array,"%URIError%":s1,"%WeakMap%":typeof WeakMap>"u"?B:WeakMap,"%WeakRef%":typeof WeakRef>"u"?B:WeakRef,"%WeakSet%":typeof WeakSet>"u"?B:WeakSet,"%Function.prototype.call%":d,"%Function.prototype.apply%":gS,"%Object.defineProperty%":Qh,"%Object.getPrototypeOf%":Jh,"%Math.abs%":a1,"%Math.floor%":e1,"%Math.max%":_h,"%Math.min%":zh,"%Math.pow%":Sh,"%Math.round%":hh,"%Math.sign%":Kh,"%Reflect.getPrototypeOf%":Yh};if(q)try{null.error}catch(_){v_=q(q(_)),I["%Error.prototype%"]=v_}var v_,Bh=function _(S){var z;if(S==="%AsyncFunction%")z=y_("async function () {}");else if(S==="%GeneratorFunction%")z=y_("function* () {}");else if(S==="%AsyncGeneratorFunction%")z=y_("async function* () {}");else if(S==="%AsyncGenerator%"){var h=_("%AsyncGeneratorFunction%");if(h)z=h.prototype}else if(S==="%AsyncIteratorPrototype%"){var K=_("%AsyncGenerator%");if(K&&q)z=q(K.prototype)}return I[S]=z,z},yS={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},c=R(),h_=PS(),Gh=c.call(d,Array.prototype.concat),Vh=c.call(gS,Array.prototype.splice),kS=c.call(d,String.prototype.replace),K_=c.call(d,String.prototype.slice),Fh=c.call(d,RegExp.prototype.exec),Xh=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Lh=/\\(\\)?/g,Mh=function(S){var z=K_(S,0,1),h=K_(S,-1);if(z==="%"&&h!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");else if(h==="%"&&z!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var K=[];return kS(S,Xh,function(Q,W,V,M){K[K.length]=V?kS(M,Lh,"$1"):W||Q}),K},Hh=function(S,z){var h=S,K;if(h_(yS,h))K=yS[h],h="%"+K[0]+"%";if(h_(I,h)){var Q=I[h];if(Q===y)Q=Bh(h);if(typeof Q>"u"&&!z)throw new k("intrinsic "+S+" exists, but is not available. Please file an issue!");return{alias:K,name:h,value:Q}}throw new v("intrinsic "+S+" does not exist!")};bS.exports=function(S,z){if(typeof S!=="string"||S.length===0)throw new k("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof z!=="boolean")throw new k('"allowMissing" argument must be a boolean');if(Fh(/^%?[^%]*%?$/,S)===null)throw new v("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var h=Mh(S),K=h.length>0?h[0]:"",Q=Hh("%"+K+"%",z),W=Q.name,V=Q.value,M=!1,F=Q.alias;if(F)K=F[0],Vh(h,Gh([0,1],F));for(var Z=1,Y=!0;Z<h.length;Z+=1){var G=h[Z],L=K_(G,0,1),x=K_(G,-1);if((L==='"'||L==="'"||L==="`"||(x==='"'||x==="'"||x==="`"))&&L!==x)throw new v("property names with quotes must have matching quotes");if(G==="constructor"||!Y)M=!0;if(K+="."+G,W="%"+K+"%",h_(I,W))V=I[W];else if(V!=null){if(!(G in V)){if(!z)throw new k("base intrinsic for "+S+" exists, but the property is not available.");return}if(i&&Z+1>=h.length){var H=i(V,G);if(Y=!!H,Y&&"get"in H&&!("originalValue"in H.get))V=H.get;else V=V[G]}else Y=h_(V,G),V=V[G];if(Y&&!M)I[W]=V}}return V}});var pS=J((I2,mS)=>{var qh=T_();mS.exports=function(){return qh()&&!!Symbol.toStringTag}});var dS=J((T2,iS)=>{var wh=Function.prototype.call,Nh=Object.prototype.hasOwnProperty,xh=R();iS.exports=xh.call(wh,Nh)});var fh=J(($2,nS)=>{var Eh=uS(),cS=Eh("%Object.defineProperty%",!0),Dh=pS()(),Ah=dS(),Uh=e(),Q_=Dh?Symbol.toStringTag:null;nS.exports=function(S,z){var h=arguments.length>2&&!!arguments[2]&&arguments[2].force,K=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof h<"u"&&typeof h!=="boolean"||typeof K<"u"&&typeof K!=="boolean")throw new Uh("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");if(Q_&&(h||!Ah(S,Q_)))if(cS)cS(S,Q_,{configurable:!K,enumerable:!1,value:z,writable:!1});else S[Q_]=z}});
|
|
6
|
+
export{z1 as U8,D1 as V8,R as W8,fh as X8,Rh as Y8,v0 as Z8,t_ as _8,a0 as $8};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Dfa as K2,Rfa as j,Wea as X,Wfa as p,Xea as K,ofa as G2,pfa as V2}from"./cli-1.1.40-hfe06y9j.mjs";import{vja as N,yja as b}from"./cli-1.1.40-cy642er2.mjs";import{Xja as W,aka as S}from"./cli-1.1.40-rq9y2zd8.mjs";import{ika as Z,oka as T}from"./cli-1.1.40-tb7zgp10.mjs";import{Nqa as V}from"./cli-1.1.40-jxfk62k7.mjs";function U(J){if(typeof J!=="string")return;let P=J.trim();return P?P:void 0}function d(J=process.env){return U(J.KIMI_OAUTH_CLIENT_ID)??"17e5f671-d194-4dfb-9706-5516cb48c098"}function I(J=process.env){return U(J.KIMI_CLI_VERSION)??"0.27.0"}function t(J){let P=J.split(".");if(P.length<2)return;try{let L=P[1].replace(/-/g,"+").replace(/_/g,"/"),H=L+"=".repeat((4-L.length%4)%4),q=Buffer.from(H,"base64").toString("utf8"),Q=JSON.parse(q);return Q&&typeof Q==="object"?Q:void 0}catch{return}}var b2="https://auth.kimi.com/api/oauth/device_authorization",m="https://auth.kimi.com/api/oauth/token",g2="urn:ietf:params:oauth:grant-type:device_code",n="kimi_code_cli",l="node",u2="k3, kimi-for-coding, kimi-for-coding-highspeed";var A=()=>{};import{arch as N2,hostname as Y2,release as o,type as X2}from"os";import{randomUUID as s}from"crypto";function D2(){return X({allowPlainTextFallback:!0})}async function O2(){if(Y)return Y;if(Z())return Y=s(),Y;let J=D2();try{let L=U((await J.readAsync())?.[a]);if(L)return Y=L,L}catch(L){if(!W(L))j(L)}let P=s();try{let L=J.read()||{};J.update({...L,[a]:P})}catch(L){j(L)}return Y=P,P}function k2(J){return{"X-Msh-Platform":n,"X-Msh-Version":I(),"X-Msh-Device-Name":Y2(),"X-Msh-Device-Model":`${X2()} ${o()} ${N2()}`,"X-Msh-Os-Version":o(),"X-Msh-Device-Id":J}}async function E(){return k2(await O2())}var a="kimiDeviceId",Y;var v=V(()=>{T();S();p();K();A()});function i(){B=null}function M(){return X({allowPlainTextFallback:!0})}function F2(J){if(!J)return;let P=t(J)?.exp;return typeof P==="number"&&Number.isFinite(P)?P*1000:void 0}function z(J){if(!J||typeof J!=="object")return;let P=J,L=U(P.accessToken);if(!L)return;let H=(q)=>typeof q==="number"&&Number.isFinite(q)?q:void 0;return{accessToken:L,refreshToken:U(P.refreshToken),profileId:U(P.profileId),expiresAt:H(P.expiresAt),lastRefreshAt:H(P.lastRefreshAt),lastRefreshFailureAt:H(P.lastRefreshFailureAt)}}function C2(J){let P=J.expiresAt??F2(J.accessToken);if(P===void 0)return!1;return P<=Date.now()+B2}function I2(J,P=Date.now()){let L=Math.max(J.lastRefreshFailureAt??0,x??0);if(!L)return!1;return P-L<z2}function A2(J,P){if(!P.trim())return`Kimi token refresh failed with status ${J}.`;try{let L=JSON.parse(P),H=U(L.error_description)??U(L.error)??P.trim();return`Kimi token refresh failed with status ${J}: ${H}`}catch{return`Kimi token refresh failed with status ${J}: ${P.trim()}`}}function q4(){if(Z())return;try{let J=M().read();return z(J?.[D])}catch(J){if(!W(J))j(J);return}}async function g(){if(Z())return;let J=Date.now();if(B&&B.expiresAt>J)return B.blob;try{let P=await M().readAsync(),L=z(P?.[D]);return B={blob:L,expiresAt:J+f2},L}catch(P){if(!W(P))j(P);return}}function r(J){if(Z())return{success:!1,warning:"Bare mode: secure storage is disabled."};let P=z(J);if(!P)return{success:!1,warning:"Kimi credentials are incomplete."};let L=M(),H=L.read()||{},q=z(H[D]),Q={...H,[D]:{...P,profileId:P.profileId??q?.profileId,expiresAt:P.expiresAt??q?.expiresAt,lastRefreshAt:P.lastRefreshAt??Date.now()}},$=L.update(Q);if(i(),$.success)x=z(Q[D])?.lastRefreshFailureAt??null;return $}function E2(J,P){if(!r({...J,lastRefreshFailureAt:P}).success)x=P}function Q4(){if(Z())return{success:!0};let J=M(),L={...J.read()||{}};delete L[D];let H=J.update(L);if(i(),H.success)x=null;else{let q=H.warning??"secure storage update failed";return j(`clearKimiCredentials: failed to remove Kimi entry (${q})`),{success:!1,warning:q}}return H}async function e(J){if(Z())return{refreshed:!1};let P=await g();if(!P)return{refreshed:!1};if(!P.refreshToken)return{refreshed:!1,credentials:P};if(!J?.force&&!C2(P))return{refreshed:!1,credentials:P};if(!J?.force&&I2(P))return{refreshed:!1,credentials:P};if(k)return k;return k=(async()=>{let L=Date.now();try{let H=await fetch(m,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":l,...await E()},body:new URLSearchParams({client_id:d(),grant_type:"refresh_token",refresh_token:P.refreshToken}),signal:AbortSignal.timeout(15000)});if(!H.ok){let C=await H.text().catch(()=>"");throw Error(A2(H.status,C))}let q=await H.json(),Q=U(q.access_token);if(!Q)throw Error("Kimi token refresh succeeded without a new access token.");let $=typeof q.expires_in==="number"&&Number.isFinite(q.expires_in)&&q.expires_in>0?q.expires_in:900,G={accessToken:Q,refreshToken:U(q.refresh_token)??P.refreshToken,profileId:P.profileId,expiresAt:Date.now()+$*1000,lastRefreshAt:Date.now()},_=r(G);if(!_.success)N(`[kimi] token refresh succeeded but credentials could not be saved: ${_.warning??"unknown error"}`,{level:"warn"});return{refreshed:!0,credentials:G}}catch(H){throw E2(P,L),H}finally{k=null}})(),k}var D="kimiCode",B2=60000,z2=60000,k=null,x=null,f2=30000,B=null;var P2=V(()=>{b();T();S();v();p();K();A()});function x2(){try{if(typeof MACRO<"u")return"1.1.40"}catch{return}return}function R(){return`claudin/${x2()??"dev"}`}var u=()=>{};function w(J){if(typeof J!=="string")return;let P=J.trim();return P?P:void 0}function L2(J=process.env){return w(J.XAI_OAUTH_CLIENT_ID)??"b1a00492-073a-47ea-816f-4c329264a828"}function H2(J){let P=J.split(".");if(P.length<2)return;try{let L=P[1].replace(/-/g,"+").replace(/_/g,"/"),H=L+"=".repeat((4-L.length%4)%4),q=Buffer.from(H,"base64").toString("utf8"),Q=JSON.parse(q);return Q&&typeof Q==="object"?Q:void 0}catch{return}}var J2="https://auth.x.ai/oauth2/token",U4="https://auth.x.ai/oauth2/device/code",j4="urn:ietf:params:oauth:grant-type:device_code",w4="openid profile email offline_access grok-cli:access api:access";var q2=()=>{};function y(){return X({allowPlainTextFallback:!0})}function Q2(J){if(!J)return;let L=H2(J)?.exp;if(typeof L==="number"&&Number.isFinite(L))return L*1000;return}function F(J){if(!J||typeof J!=="object")return;let P=J,L=w(P.accessToken);if(!L)return;let H=w(P.refreshToken),q=w(P.idToken),Q=w(P.profileId),$=typeof P.lastRefreshAt==="number"&&Number.isFinite(P.lastRefreshAt)?P.lastRefreshAt:void 0,G=typeof P.lastRefreshFailureAt==="number"&&Number.isFinite(P.lastRefreshFailureAt)?P.lastRefreshFailureAt:void 0,_=typeof P.expiresAt==="number"&&Number.isFinite(P.expiresAt)?P.expiresAt:void 0;return{accessToken:L,refreshToken:H,idToken:q,profileId:Q,expiresAt:_,lastRefreshAt:$,lastRefreshFailureAt:G}}function h2(J){let P=J.expiresAt??Q2(J.accessToken)??Q2(J.idToken);if(P===void 0)return!1;return P<=Date.now()+M2}function y2(J,P=Date.now()){let L=Math.max(J.lastRefreshFailureAt??0,h??0);if(!L)return!1;return P-L<R2}function T2(J,P){if(!P.trim())return`xAI token refresh failed with status ${J}.`;try{let L=JSON.parse(P),H=L.error&&typeof L.error==="object"?L.error:void 0,q=w(H?.code??L.code),Q=w(H?.message??L.error_description)??P.trim();return q?`xAI token refresh failed (${q}): ${Q}`:`xAI token refresh failed with status ${J}: ${Q}`}catch{return`xAI token refresh failed with status ${J}: ${P.trim()}`}}function O4(){if(Z())return;try{let J=y().read();return F(J?.[O])}catch(J){if(!W(J))j(J);return}}async function c(){if(Z())return;try{let J=await y().readAsync();return F(J?.[O])}catch(J){if(!W(J))j(J);return}}function Z2(J){if(Z())return{success:!1,warning:"Bare mode: secure storage is disabled."};let P=F(J);if(!P)return{success:!1,warning:"xAI credentials are incomplete."};let L=y(),H=L.read()||{},q=F(H[O]),Q={...H,[O]:{...P,profileId:P.profileId??q?.profileId,expiresAt:P.expiresAt??q?.expiresAt,lastRefreshAt:P.lastRefreshAt??Date.now()}},$=L.update(Q);if($.success)h=F(Q[O])?.lastRefreshFailureAt??null;return $}function S2(J,P){if(!Z2({...J,lastRefreshFailureAt:P}).success)h=P}function k4(){if(Z())return{success:!0};let J=y(),L={...J.read()||{}};delete L[O];let H=J.update(L);if(H.success)h=null;else{let q=H.warning??"secure storage update failed";return j(`clearXaiCredentials: failed to remove xAI entry (${q})`),{success:!1,warning:q}}return H}async function $2(J){if(Z())return{refreshed:!1};let P=await c();if(!P)return{refreshed:!1};if(!P.refreshToken)return{refreshed:!1,credentials:P};if(!J?.force&&!h2(P))return{refreshed:!1,credentials:P};if(!J?.force&&y2(P))return{refreshed:!1,credentials:P};if(f)return f;return f=(async()=>{let L=Date.now();try{let H=new URLSearchParams({client_id:L2(),grant_type:"refresh_token",refresh_token:P.refreshToken}),q=await fetch(J2,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":R()},body:H,signal:AbortSignal.timeout(15000)});if(!q.ok){let _2=await q.text().catch(()=>"");throw Error(T2(q.status,_2))}let Q=await q.json(),$=w(Q.access_token);if(!$)throw Error("xAI token refresh succeeded without a new access token.");let G=typeof Q.expires_in==="number"&&Number.isFinite(Q.expires_in)&&Q.expires_in>0?Q.expires_in:3600,_={accessToken:$,refreshToken:w(Q.refresh_token)??P.refreshToken,idToken:w(Q.id_token)??P.idToken,profileId:P.profileId,expiresAt:Date.now()+G*1000,lastRefreshAt:Date.now()},C=Z2(_);if(!C.success)N(`[xai] token refresh succeeded but credentials could not be saved: ${C.warning??"unknown error"}`,{level:"warn"});return{refreshed:!0,credentials:_}}catch(H){throw S2(P,L),H}finally{f=null}})(),f}var O="xai",M2=120000,R2=60000,f=null,h=null;var U2=V(()=>{b();T();S();p();K();u();q2()});function j2(){return`kimi-code-cli/${I()}`}var w2=V(()=>{A()});function W2(J){return p2.find((P)=>P.matches(J))}async function R4(J){let P=W2(J?.baseUrl);if(!P)return{};let L;if(!J?.apiKey)L=(await P.refresh().catch(async(q)=>{return N(`[${P.id}] access token refresh failed before request: ${q instanceof Error?q.message:String(q)}`,{level:"warn"}),{credentials:await P.readCredentials()}})).credentials?.accessToken??void 0;if(L||P.attachHeadersWithoutToken)return{accessToken:L,userAgent:P.userAgent(),deviceHeaders:P.deviceHeaders?await P.deviceHeaders():void 0};return{}}async function h4(J){let P=W2(J);if(!P)return"no-match";return await P.refresh({force:!0}).then(()=>!0,(H)=>{return N(`[${P.id}] force-refresh on 401 failed: ${H instanceof Error?H.message:String(H)}`,{level:"warn"}),!1})?"refreshed":"failed"}var p2;var v2=V(()=>{b();P2();v();w2();U2();u();K2();p2=[{id:"xai",matches:G2,refresh:$2,readCredentials:c,userAgent:R,attachHeadersWithoutToken:!1},{id:"kimi",matches:V2,refresh:e,readCredentials:g,userAgent:j2,deviceHeaders:E,attachHeadersWithoutToken:!0}]});
|
|
2
|
+
export{b2 as tY,m as uY,g2 as vY,l as wY,u2 as xY,U as yY,d as zY,A as AY,E as BY,v as CY,q4 as DY,g as EY,r as FY,Q4 as GY,e as HY,P2 as IY,j2 as JY,w2 as KY,R as LY,u as MY,J2 as NY,U4 as OY,j4 as PY,w4 as QY,w as RY,L2 as SY,q2 as TY,O4 as UY,c as VY,Z2 as WY,k4 as XY,$2 as YY,U2 as ZY,R4 as _Y,h4 as $Y,v2 as aZ};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Tv as K,Uv as M,Vv as Y}from"./cli-1.1.40-wh51ya47.mjs";import{_fa as Q,rga as X}from"./cli-1.1.40-6evbnv5e.mjs";import{Hga as N}from"./cli-1.1.40-hf5jtfgb.mjs";Y();Q();X();N();var T=30000;function V(){let z=new Date,F=String(z.getHours()).padStart(2,"0"),H=String(z.getMinutes()).padStart(2,"0"),J=String(z.getSeconds()).padStart(2,"0");return`${F}:${H}:${J}`}function Z(z,F){return`${K(void 0,F)}/code?bridge=${z}`}function C(z,F,H){return`${M(z,H)}?bridge=${F}`}function E({error:z,connected:F,sessionActive:H,reconnecting:J}){if(z)return{label:"Remote Control failed",color:"error"};if(J)return{label:"Remote Control reconnecting",color:"warning"};if(H||F)return{label:"Remote Control active",color:"success"};return{label:"Remote Control connecting…",color:"warning"}}function L(z){return`Code everywhere with the Claude app or ${z}`}function A(z){return`Continue coding in the Claude app or ${z}`}var P="Something went wrong, please try again";function b(z,F){return`\x1B]8;;${F}\x07${z}\x1B]8;;\x07`}
|
|
2
|
+
export{T as xa,V as ya,Z as za,C as Aa,E as Ba,L as Ca,A as Da,P as Ea,b as Fa};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Ma as $}from"./cli-1.1.40-aknkj6rt.mjs";import{B8 as O,T8 as C}from"./cli-1.1.40-gk34ey8n.mjs";import{Pfa as q,Qfa as H,Wfa as E}from"./cli-1.1.40-hfe06y9j.mjs";import{Aia as w,_ia as z,dja as y,hja as V,lja as L,vja as X,wia as R,xia as A,yia as _,yja as N}from"./cli-1.1.40-cy642er2.mjs";import{Wka as Z,zpa as M}from"./cli-1.1.40-5m7tntdx.mjs";C();M();A();import{dirname as F,join as x}from"path";w();N();L();E();y();var D=q(new Date);function T(){return x($.errors(),D+".jsonl")}function J(G){return x($.mcpLogs(G),D+".jsonl")}function P(G){let K=R(G);return{write(Q){K.write(z(Q)+`
|
|
2
|
+
`)},flush:K.flush,dispose:K.dispose}}var B=new Map;function W(G){let K=B.get(G);if(!K){let Q=F(G);K=P({writeFn:(U)=>{try{V().appendFileSync(G,U)}catch{V().mkdirSync(Q),V().appendFileSync(G,U)}},flushIntervalMs:1000,maxBufferSize:50}),B.set(G,K),_(async()=>K?.dispose())}return K}function S(G,K){}function I(G){if(typeof G==="string")return G;if(G&&typeof G==="object"){let K=G;if(typeof K.message==="string")return K.message;if(typeof K.error==="object"&&K.error&&"message"in K.error&&typeof K.error.message==="string")return K.error.message}return}function v(G){let K=G.stack||G.message,Q="";if(O.isAxiosError(G)&&G.config?.url){let U=[`url=${G.config.url}`];if(G.response?.status!==void 0)U.push(`status=${G.response.status}`);let Y=I(G.response?.data);if(Y)U.push(`body=${Y}`);Q=`[${U.join(",")}] `}X(`${G.name}: ${Q}${K}`,{level:"error"}),S(T(),{error:`${Q}${K}`})}function f(G,K){X(`MCP server "${G}" ${K}`,{level:"error"});let Q=J(G),Y={error:K instanceof Error?K.stack||K.message:String(K),timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};W(Q).write(Y)}function j(G,K){X(`MCP server "${G}": ${K}`);let Q=J(G),U={debug:K,timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};W(Q).write(U)}function k(){H({logError:v,logMCPError:f,logMCPDebug:j,getErrorsPath:T,getMCPLogsPath:J}),X("Error log sink initialized")}function a(){k()}
|
|
3
|
+
export{a as D};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import{hd as Yz,id as I1}from"./cli-1.1.40-h2t9z1xa.mjs";import{jd as pq,kd as lq,ld as E0,md as Gz,od as dq}from"./cli-1.1.40-9bqkn2xd.mjs";import{pd as F0,sd as k1}from"./cli-1.1.40-p1ezfj24.mjs";import{nh as Yq,oh as L1}from"./cli-1.1.40-n9wve56a.mjs";import{$E as m0,$p as M1,DO as Zz,FO as h1,JG as q2,Jx as eq,KG as Cz,Kx as P1,MG as U1,NG as B1,PB as qz,PE as g,QE as Tz,RB as zz,SB as Qz,TB as $z,UB as Jz,VB as m1,_E as a0,_p as rq,bP as y0,cP as z2,lx as o,nx as zq,oF as H2,pF as iz,qF as y2,rF as b2,sF as L2,tF as az}from"./cli-1.1.40-wh51ya47.mjs";import{$X as Y0,tX as B,vX as G}from"./cli-1.1.40-ckjrbh6b.mjs";import{AY as d2,BY as n2,CY as R1,DY as A4,FY as t2,GY as tq,IY as s2,LY as P2,MY as q1,NY as m2,OY as h2,PY as k2,QY as I2,RY as Z0,SY as w4,TY as z1,UY as T4,WY as g2,XY as sq,ZY as j2,tY as c2,uY as x2,vY as p2,wY as l2,xY as Gq,yY as N0,zY as _4}from"./cli-1.1.40-8dzrhmwv.mjs";import{bZ as n4,cZ as i4,dZ as a4,eZ as o4,fZ as r4,gZ as Az,jZ as t4,nZ as s4,oZ as oq,pZ as e4}from"./cli-1.1.40-1z293953.mjs";import{rZ as x0,sZ as U2}from"./cli-1.1.40-0vdhw7mm.mjs";import{B1 as G0,C1 as J,D1 as y,E1 as d}from"./cli-1.1.40-rwbr7d1h.mjs";import{F1 as H0}from"./cli-1.1.40-202jxgqx.mjs";import{N3 as r0,W1 as d4,Y1 as Ez,d4 as D1}from"./cli-1.1.40-13e9gynq.mjs";import{$ea as c0,Aea as a,Cea as i,Dea as o0,Dfa as Mq,Fea as A0,Gea as m4,Hea as z0,Iea as Q0,Mea as $0,Nea as h4,Pea as k4,Tea as D0,Yea as y4,Zea as R2,_ea as W2,afa as b4,bfa as V2,cfa as H4,dfa as X2,efa as K2,ffa as nz,gfa as I4,hfa as F2,ifa as E4,kfa as _2,mfa as aq,nfa as I0,r9 as L0,s9 as O1,wea as Lq,xea as w0,yea as wq,zea as b0}from"./cli-1.1.40-hfe06y9j.mjs";import{ika as s,oka as P0}from"./cli-1.1.40-tb7zgp10.mjs";import{Jqa as K0,Kqa as _1,Nqa as v}from"./cli-1.1.40-jxfk62k7.mjs";function jz(q,z=V4,Q,$){let Z=$?.activate??!0,N=a().find((V)=>V.provider==="openai"&&V.extras?.githubToken!==void 0);if(N){if(!Q0(N.id,{provider:"openai",name:N.name,baseUrl:Q||N.baseUrl,model:N.model||z,apiKey:q,extras:{...N.extras,githubToken:q}}))return{mode:"failed"};if(Z)$0(N.id);return{mode:"updated"}}if(!z0({provider:"openai",name:"GitHub Copilot",baseUrl:Q||gz,model:z,apiKey:q,extras:{githubToken:q}},{makeActive:Z}))return{mode:"failed"};return{mode:"created"}}function Q2({onDone:q,onBack:z,onChangeAPIKey:Q,activateOnSave:$=!0}){let Z=t4()?.trim()?"already-authed":"menu",[N,X]=q0.useState(Z),[V,H]=q0.useState(null),[W,L]=q0.useState(""),[w,D]=q0.useState(0),[M,P]=q0.useState(null),F=q0.useCallback(async(c,E=V4,k,x)=>{let _0=s4(c,k,x?.enterpriseDomain);if(!_0.success){H(_0.warning??"Could not save token to secure storage."),X("error");return}if(jz(c,E,x?.baseUrl,{activate:$}).mode==="failed"){H("Could not save the GitHub Copilot provider profile."),X("error");return}d4(),Q?.(),q($?"GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.":'GitHub Copilot sign-in complete. Copilot token stored in secure storage; the profile was saved without changing the active provider — activate it from "Set active provider".',{display:"user"})},[$,Q,q]),A=q0.useCallback(async(c)=>{X("device-busy"),H(null),P(null);try{let E=await i4({domain:c});P({user_code:E.user_code,verification_uri:E.verification_uri}),await o4(E.verification_uri);let k=await a4(E.device_code,{initialInterval:E.interval,timeoutSeconds:E.expires_in,domain:c}),x=await r4(k,{domain:c});await F(x.token,V4,k,{baseUrl:x.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:c})}catch(E){H(E instanceof Error?E.message:String(E)),X("error")}},[F]);if(N==="already-authed")return y(B,{flexDirection:"column",gap:1,children:[J(G,{bold:!0,children:"GitHub Copilot"}),J(G,{children:"You are already signed in to GitHub Copilot."}),J(G,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),J(g,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:z?"Back to /provider menu":"Cancel",value:"back"}],onChange:(E)=>{if(E==="sign-in-again"){A();return}if(E==="enterprise"){X("enterprise-domain");return}if(z){z();return}q("GitHub onboard cancelled",{display:"system"})}})]});if(N==="enterprise-domain")return y(B,{flexDirection:"column",gap:1,children:[J(G,{bold:!0,children:"GitHub Enterprise sign-in"}),J(G,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),y(B,{flexDirection:"row",gap:1,children:[J(G,{children:">"}),J(y0,{value:W,onChange:L,onSubmit:()=>{let E=n4(W);if(!E){A();return}A(E)},onExit:()=>X(Z),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:w,onChangeCursorOffset:D})]}),J(G,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(N==="error"&&V)return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"error",children:V}),J(g,{options:[{label:z?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(E)=>{if(E==="back"){if(z){z();return}X("menu"),H(null);return}q("GitHub onboard cancelled",{display:"system"})}})]});if(N==="device-busy")return y(B,{flexDirection:"column",gap:1,children:[J(G,{children:"GitHub Copilot sign-in"}),M?y(G0,{children:[y(G,{children:["Enter code ",J(G,{bold:!0,children:M.user_code})," at"," ",M.verification_uri]}),J(G,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):J(G,{dimColor:!0,children:"Requesting device code from GitHub..."}),J(q2,{})]});return y(B,{flexDirection:"column",gap:1,children:[J(G,{bold:!0,children:"GitHub Copilot setup"}),J(G,{dimColor:!0,children:"Stores your token in the OS credential store (macOS Keychain when available) and creates a /provider profile so Copilot is the active provider — no manual env exports required."}),J(g,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:z?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(c)=>{if(c==="cancel"){if(z){z();return}q("GitHub onboard cancelled",{display:"system"});return}if(c==="enterprise"){X("enterprise-domain");return}A()}})]})}var q0,V4="github:copilot",gz="https://api.githubcopilot.com";var $2=v(()=>{Tz();Cz();z2();Y0();Az();e4();Ez();D0();d();q0=K0(H0(),1)});function Z2(q){return[q.name,q.family??"",...q.families??[],q.parameterSize??"",q.quantizationLevel??""].join(" ").toLowerCase()}function M0(q,z){return z.some((Q)=>q.includes(Q))}function vz(q){return!M0(Z2(q),J2)}function cz(q){return q.find(vz)??null}function X4(q){let Q=`${q.parameterSize??""} ${q.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(Q?.[1])return Number(Q[1]);if(typeof q.sizeBytes==="number"&&q.sizeBytes>0)return Number((q.sizeBytes/1e9).toFixed(1));return null}function xz(q){return(q.quantizationLevel??q.name).toLowerCase()}function pz(q,z,Q){if(q===null)return Q.push("unknown size"),0;if(z==="latency"){if(q<=4)return Q.push("tiny model for low latency"),32;if(q<=8)return Q.push("small model for fast responses"),26;if(q<=14)return Q.push("mid-sized model with acceptable latency"),16;if(q<=24)return Q.push("larger model may be slower"),8;return Q.push("large model likely slower locally"),q<=40?0:-8}if(z==="coding"){if(q>=7&&q<=14)return Q.push("strong coding size tier"),24;if(q>14&&q<=34)return Q.push("large coding-capable size tier"),28;if(q>34)return Q.push("very large model with higher quality potential"),18;return Q.push("compact model may trade off coding depth"),12}if(q>=7&&q<=14)return Q.push("great balanced size tier"),26;if(q>=3&&q<7)return Q.push("compact balanced size tier"),18;if(q>14&&q<=24)return Q.push("high quality balanced size tier"),20;if(q>24)return Q.push("large model for quality-first usage"),10;return Q.push("very small model for general usage"),8}function lz(q,z,Q){let $=xz(q);if($.includes("q4"))return Q.push("efficient Q4 quantization"),z==="latency"?8:4;if($.includes("q5"))return Q.push("balanced Q5 quantization"),z==="latency"?6:5;if($.includes("q8"))return Q.push("higher quality Q8 quantization"),z==="latency"?2:5;return 0}function dz(q,z,Q){if(z.score!==q.score)return z.score-q.score;let $=X4(q)??Number.POSITIVE_INFINITY,Z=X4(z)??Number.POSITIVE_INFINITY;if(Q==="latency")return $-Z;if(Q==="coding")return Z-$;let N=14;return Math.abs($-N)-Math.abs(Z-N)}function K4(q,z){return q.map((Q)=>{let $=Z2(Q),Z=[],N=0;if(M0($,J2))N-=40,Z.push("not a chat-first model");if(M0($,Sz))N+=z==="coding"?24:z==="balanced"?10:4,Z.push("coding-oriented model family");if(M0($,uz))N+=z==="latency"?4:z==="coding"?6:8,Z.push("strong general-purpose model family");if(M0($,fz))N+=z==="latency"?2:6,Z.push("chat/instruct tuned");if($.includes("vision")||$.includes("vl"))N-=2,Z.push("vision model adds extra overhead");N+=pz(X4(Q),z,Z),N+=lz(Q,z,Z);let X=Z.slice(0,3).join(", ");return{...Q,score:N,reasons:Z,summary:X}}).sort((Q,$)=>dz(Q,$,z))}function G2(q,z){return cz(K4(q,z))}var Sz,uz,fz,J2;var Y2=v(()=>{Sz=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],uz=["llama","qwen","mistral","gemma","phi","deepseek"],fz=["instruct","chat","assistant"],J2=["embed","embedding","rerank","bge","whisper"]});function oz(q){let z=`http://localhost:${q.port}/auth/callback`,Q=new URL(`${y4}/oauth/authorize`);return Q.searchParams.append("response_type","code"),Q.searchParams.append("client_id",b4()),Q.searchParams.append("redirect_uri",z),Q.searchParams.append("scope",R2),Q.searchParams.append("code_challenge",q.codeChallenge),Q.searchParams.append("code_challenge_method","S256"),Q.searchParams.append("id_token_add_organizations","true"),Q.searchParams.append("codex_cli_simplified_flow","true"),Q.searchParams.append("state",q.state),Q.searchParams.append("originator",W2),Q.toString()}function rz(){return`<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>Codex Login Complete</title>
|
|
6
|
+
<style>
|
|
7
|
+
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
8
|
+
h1 { margin: 0 0 12px; font-size: 22px; }
|
|
9
|
+
p { margin: 0 0 10px; }
|
|
10
|
+
</style>
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<h1>Codex login complete</h1>
|
|
14
|
+
<p>You can return to Claudin now.</p>
|
|
15
|
+
<p>Claudin will finish activating your new Codex OAuth login.</p>
|
|
16
|
+
</body>
|
|
17
|
+
</html>`}function tz(q){return`<!doctype html>
|
|
18
|
+
<html lang="en">
|
|
19
|
+
<head>
|
|
20
|
+
<meta charset="utf-8" />
|
|
21
|
+
<title>Codex Login Failed</title>
|
|
22
|
+
<style>
|
|
23
|
+
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
24
|
+
h1 { margin: 0 0 12px; font-size: 22px; color: #991b1b; }
|
|
25
|
+
p { margin: 0 0 10px; }
|
|
26
|
+
</style>
|
|
27
|
+
</head>
|
|
28
|
+
<body>
|
|
29
|
+
<h1>Codex login failed</h1>
|
|
30
|
+
<p>${X2(q)}</p>
|
|
31
|
+
<p>You can close this window and try again in Claudin.</p>
|
|
32
|
+
</body>
|
|
33
|
+
</html>`}function N2(){return`<!doctype html>
|
|
34
|
+
<html lang="en">
|
|
35
|
+
<head>
|
|
36
|
+
<meta charset="utf-8" />
|
|
37
|
+
<title>Codex Login Cancelled</title>
|
|
38
|
+
<style>
|
|
39
|
+
body { font-family: sans-serif; padding: 32px; line-height: 1.5; color: #111827; }
|
|
40
|
+
h1 { margin: 0 0 12px; font-size: 22px; }
|
|
41
|
+
p { margin: 0 0 10px; }
|
|
42
|
+
</style>
|
|
43
|
+
</head>
|
|
44
|
+
<body>
|
|
45
|
+
<h1>Codex login cancelled</h1>
|
|
46
|
+
<p>You can close this window and retry in Claudin.</p>
|
|
47
|
+
</body>
|
|
48
|
+
</html>`}async function sz(q){let z=`http://localhost:${q.port}/auth/callback`,Q=new URLSearchParams({grant_type:"authorization_code",code:q.authorizationCode,redirect_uri:z,client_id:b4(),code_verifier:q.codeVerifier}),$=await fetch(`${y4}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:Q,signal:q.signal?AbortSignal.any([q.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!$.ok){let W=await $.text().catch(()=>"");throw Error(W.trim()?`Codex OAuth token exchange failed (${$.status}): ${W.trim()}`:`Codex OAuth token exchange failed with status ${$.status}.`)}let Z=await $.json(),N=c0(Z.access_token),X=c0(Z.refresh_token);if(!N||!X)throw Error("Codex OAuth completed, but the token response was missing credentials.");let V=c0(Z.id_token);return{apiKey:V?await K2(V).catch(()=>{return}):void 0,accessToken:N,refreshToken:X,idToken:V,accountId:H4(V)??H4(N)}}class L4{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(q){let z=y2(),Q=V2(),$=new H2("/auth/callback");this.authCodeListener=$,this.port=null;try{let Z=await $.start(Q);this.port=Z;let N=L2(),X=await b2(z),V=oz({port:Z,codeChallenge:X,state:N});try{let H=await $.waitForAuthorization(N,async()=>{await q(V)}),W=new AbortController;this.tokenExchangeAbortController=W;let L;try{L=await sz({authorizationCode:H,codeVerifier:z,port:Z,signal:W.signal})}finally{if(this.tokenExchangeAbortController===W)this.tokenExchangeAbortController=null}if(this.authCodeListener!==$)throw this.buildCancellationError();return $.handleSuccessRedirect([],(w)=>{w.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),w.end(rz())}),L}catch(H){let W=this.authCodeListener===$?H:this.buildCancellationError();if($.hasPendingResponse()){let L=W instanceof Error&&W.message==="Codex OAuth flow was cancelled.";$.handleErrorRedirect((w)=>{w.writeHead(L?200:400,{"Content-Type":"text/html; charset=utf-8"}),w.end(L?N2():tz(W instanceof Error?W.message:String(W)))})}throw W}finally{this.cleanup()}}catch(Z){let N=Z instanceof Error?Z.message:String(Z);if(N.includes("EADDRINUSE")||N.includes(String(Q)))throw Error(`Codex OAuth needs localhost:${Q} for its callback. Close any app already using that port and try again.`);throw Z}}cleanup(){let q=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(q),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((z)=>{z.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),z.end(N2())});this.authCodeListener?.cancelPendingAuthorization(q),this.authCodeListener=null,this.port=null}}var w2=v(()=>{iz();az();nz()});function ez(){return new L4}function B2(q){let{onAuthenticated:z}=q,Q=q.deps?.createOAuthService??ez,$=q.deps?.openBrowser??x0,Z=q.deps?.saveCodexCredentials??F2,N=q.deps?.isBareMode??s,[X,V]=p0.useState({state:"starting"});return p0.useEffect(()=>{if(N()){V({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let H=!1,W=Q();return W.startOAuthFlow(async(L)=>{if(H)return;V({state:"waiting",authUrl:L,browserOpened:null});let w=await $(L);if(H)return;V({state:"waiting",authUrl:L,browserOpened:w})}).then(async(L)=>{if(H)return;await z(L,(D)=>{let M=Z({apiKey:L.apiKey,accessToken:L.accessToken,refreshToken:L.refreshToken,idToken:L.idToken,accountId:L.accountId,profileId:D?.profileId});if(!M.success)throw Error(M.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((L)=>{if(H)return;V({state:"error",message:L instanceof Error?L.message:String(L)})}),()=>{H=!0,W.cleanup()}},[Q,N,z,$,Z]),X}var p0;var O2=v(()=>{w2();U2();_2();P0();p0=K0(H0(),1)});function T2(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":P2()}}function M2(q,z){let Q=Number(q);return Number.isFinite(Q)&&Q>0?Q*1000:z}function Z1(q,z){if(z?.aborted)return Promise.resolve();return new Promise((Q)=>{let $=setTimeout(()=>{z?.removeEventListener("abort",Z),Q()},q),Z=()=>{clearTimeout($),Q()};z?.addEventListener("abort",Z,{once:!0})})}async function G1(q){let z=q?.fetchImpl??fetch,Q=q?.signal?AbortSignal.any([q.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),$=await z(h2,{method:"POST",headers:T2(),body:new URLSearchParams({client_id:w4(),scope:I2}).toString(),signal:Q});if(!$.ok){let H=await $.text().catch(()=>"");throw Error(`xAI device code request failed (${$.status})${H?`: ${H.trim()}`:""}`)}let Z=await $.json(),N=Z0(Z.device_code),X=Z0(Z.user_code),V=Z0(Z.verification_uri);if(!N||!X||!V)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:N,user_code:X,verification_uri:V,verification_uri_complete:Z0(Z.verification_uri_complete),expires_in:typeof Z.expires_in==="number"&&Z.expires_in>0?Z.expires_in:A2/1000,interval:typeof Z.interval==="number"&&Z.interval>0?Z.interval:E2/1000}}async function Y1(q,z){let Q=z?.fetchImpl??fetch,$=z?.sleep??Z1,Z=z?.now??(()=>Date.now()),N=M2(q.expires_in,A2),X=Z()+N,V=Math.max(M2(q.interval,E2),Q1);while(Z()<X){if(z?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let H=await Q(m2,{method:"POST",headers:T2(),body:new URLSearchParams({grant_type:k2,client_id:w4(),device_code:q.device_code}).toString(),signal:z?.signal});if(H.ok){let D=await H.json(),M=Z0(D.access_token),P=Z0(D.refresh_token);if(!M||!P)throw Error("xAI OAuth completed, but the token response was missing credentials.");let F=typeof D.expires_in==="number"&&Number.isFinite(D.expires_in)&&D.expires_in>0?D.expires_in:3600;return{accessToken:M,refreshToken:P,idToken:Z0(D.id_token),expiresAt:Z()+F*1000}}let W=await H.json().catch(()=>({})),L=Math.max(0,X-Z());if(W.error==="authorization_pending"){await $(Math.min(V+D2,L),z?.signal);continue}if(W.error==="slow_down"){V=Math.min(V+$1,J1),await $(Math.min(V+D2,L),z?.signal);continue}if(W.error==="access_denied"||W.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(W.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let w=W.error_description??W.error??"";throw Error(`xAI device token exchange failed (${H.status})${w?`: ${w}`:""}`)}throw Error("xAI device authorization timed out.")}class F4{abortController=null;async startDeviceFlow(q){let z=new AbortController;this.abortController=z;try{let Q=await G1({signal:z.signal});return await q(Q),await Y1(Q,{signal:z.signal})}finally{if(this.abortController===z)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var E2=5000,Q1=1000,$1=5000,J1=60000,A2=300000,D2=3000;var C2=v(()=>{q1();z1()});function N1(){return new F4}function S2(q){let{onAuthenticated:z}=q,Q=q.deps?.createOAuthService??N1,$=q.deps?.saveXaiCredentials??g2,Z=q.deps?.isBareMode??s,[N,X]=l0.useState({state:"starting"});return l0.useEffect(()=>{if(Z()){X({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let V=!1,H=Q();return H.startDeviceFlow(async(W)=>{if(V)return;X({state:"waiting",userCode:W.user_code,verificationUri:W.verification_uri,verificationUriComplete:W.verification_uri_complete})}).then(async(W)=>{if(V)return;await z(W,(w)=>{let D=$({accessToken:W.accessToken,refreshToken:W.refreshToken,idToken:W.idToken,expiresAt:W.expiresAt,profileId:w?.profileId});if(!D.success)throw Error(D.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((W)=>{if(V)return;X({state:"error",message:W instanceof Error?W.message:String(W)})}),()=>{V=!0,H.cleanup()}},[Q,Z,z,$]),N}var l0;var u2=v(()=>{C2();P0();j2();l0=K0(H0(),1)});async function o2(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":l2,...await n2()}}function v2(q,z){let Q=Number(q);return Number.isFinite(Q)&&Q>0?Q*1000:z}function K1(q,z){if(z?.aborted)return Promise.resolve();return new Promise((Q)=>{let $=setTimeout(()=>{z?.removeEventListener("abort",Z),Q()},q),Z=()=>{clearTimeout($),Q()};z?.addEventListener("abort",Z,{once:!0})})}async function H1(q){let z=q?.fetchImpl??fetch,Q=q?.signal?AbortSignal.any([q.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),$=await z(c2,{method:"POST",headers:await o2(),body:new URLSearchParams({client_id:_4()}).toString(),signal:Q});if(!$.ok){let H=await $.text().catch(()=>"");throw Error(`Kimi device code request failed (${$.status})${H?`: ${H.trim()}`:""}`)}let Z=await $.json(),N=N0(Z.device_code),X=N0(Z.user_code),V=N0(Z.verification_uri);if(!N||!X||!V)throw Error("Kimi device code response is missing device_code / user_code / verification_uri.");return{device_code:N,user_code:X,verification_uri:V,verification_uri_complete:N0(Z.verification_uri_complete),expires_in:typeof Z.expires_in==="number"&&Z.expires_in>0?Z.expires_in:a2/1000,interval:typeof Z.interval==="number"&&Z.interval>0?Z.interval:i2/1000}}async function y1(q,z){let Q=z?.fetchImpl??fetch,$=z?.sleep??K1,Z=z?.now??(()=>Date.now()),N=v2(q.expires_in,a2),X=Z()+N,V=Math.max(v2(q.interval,i2),W1);while(Z()<X){if(z?.signal?.aborted)throw Error("Kimi device authorization was cancelled.");let H=await Q(x2,{method:"POST",headers:await o2(),body:new URLSearchParams({grant_type:p2,client_id:_4(),device_code:q.device_code}).toString(),signal:z?.signal});if(H.ok){let D=await H.json(),M=N0(D.access_token),P=N0(D.refresh_token);if(!M||!P)throw Error("Kimi OAuth completed, but the token response was missing credentials.");let F=typeof D.expires_in==="number"&&Number.isFinite(D.expires_in)&&D.expires_in>0?D.expires_in:900;return{accessToken:M,refreshToken:P,expiresAt:Z()+F*1000}}let W=await H.json().catch(()=>({})),L=Math.max(0,X-Z());if(W.error==="authorization_pending"){await $(Math.min(V+f2,L),z?.signal);continue}if(W.error==="slow_down"){V=Math.min(V+V1,X1),await $(Math.min(V+f2,L),z?.signal);continue}if(W.error==="access_denied"||W.error==="authorization_denied")throw Error("Kimi device authorization was denied.");if(W.error==="expired_token")throw Error("Kimi device code expired - please re-run login.");let w=W.error_description??W.error??"";throw Error(`Kimi device token exchange failed (${H.status})${w?`: ${w}`:""}`)}throw Error("Kimi device authorization timed out.")}class U4{abortController=null;async startDeviceFlow(q){let z=new AbortController;this.abortController=z;try{let Q=await H1({signal:z.signal});return await q(Q),await y1(Q,{signal:z.signal})}finally{if(this.abortController===z)this.abortController=null}}cleanup(){this.abortController?.abort(Error("Kimi device authorization was cancelled.")),this.abortController=null}}var i2=5000,W1=1000,V1=5000,X1=60000,a2=1800000,f2=3000;var r2=v(()=>{R1();d2()});function b1(){return new U4}function e2(q){let{onAuthenticated:z}=q,Q=q.deps?.createOAuthService??b1,$=q.deps?.saveKimiCredentials??t2,Z=q.deps?.isBareMode??s,N=q.deps?.openBrowser??x0,[X,V]=R0.useState({state:"starting"}),H=R0.useRef(!1);return R0.useEffect(()=>{if(Z()){V({state:"error",message:"Kimi Code OAuth is unavailable in --bare because secure storage is disabled."});return}let W=!1,L=Q();return L.startDeviceFlow(async(w)=>{if(W)return;V({state:"waiting",userCode:w.user_code,verificationUri:w.verification_uri,verificationUriComplete:w.verification_uri_complete})}).then(async(w)=>{if(W)return;await z(w,(M)=>{let P=$({accessToken:w.accessToken,refreshToken:w.refreshToken,expiresAt:w.expiresAt,profileId:M?.profileId});if(!P.success)throw Error(P.warning??"Kimi Code OAuth succeeded, but credentials could not be saved securely.")})}).catch((w)=>{if(W)return;V({state:"error",message:w instanceof Error?w.message:String(w)})}),()=>{W=!0,L.cleanup()}},[Q,Z,z,$]),R0.useEffect(()=>{if(X.state!=="waiting")return;if(H.current)return;let W=X.verificationUriComplete??X.verificationUri;if(!W)return;H.current=!0,N(W).catch(()=>{})},[N,X]),X}var R0;var qq=v(()=>{r2();U2();P0();s2();R0=K0(H0(),1)});function Qq({onBack:q,onConfigured:z}){let Q=d0.useCallback(async(Z,N)=>{await z(Z,N)},[z]);o("confirm:no",q);let $=B2({onAuthenticated:Q});if($.state==="error")return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"error",bold:!0,children:"Codex OAuth failed"}),J(G,{children:$.message}),J(G,{dimColor:!0,children:"Press Enter or Esc to go back."}),J(g,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:q,onCancel:q,visibleOptionCount:1})]});return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Codex OAuth"}),J(G,{children:"Sign in with your ChatGPT account in the browser. Claudin will store the resulting Codex credentials securely and switch this session to the new Codex login when setup completes."}),$.state==="starting"?J(G,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):$.browserOpened===!1?y(G0,{children:[J(G,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),J(G,{children:$.authUrl})]}):$.browserOpened===!0?y(G0,{children:[J(G,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),J(G,{children:$.authUrl})]}):J(G,{dimColor:!0,children:"Opening your browser..."}),J(G,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function $q({onBack:q,onConfigured:z}){let Q=d0.useCallback(async(Z,N)=>{await z(Z,N)},[z]);o("confirm:no",q);let $=S2({onAuthenticated:Q});if($.state==="error")return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"error",bold:!0,children:"xAI OAuth failed"}),J(G,{children:$.message}),J(G,{dimColor:!0,children:"Press Enter or Esc to go back."}),J(g,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:q,onCancel:q,visibleOptionCount:1})]});return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),$.state==="starting"?J(G,{dimColor:!0,children:"Requesting a device code from xAI..."}):y(G0,{children:[y(G,{children:["Open this URL on any device:"," ",J(G,{bold:!0,children:$.verificationUri})]}),y(G,{children:["Enter code ",J(G,{bold:!0,children:$.userCode})]}),$.verificationUriComplete&&$.verificationUriComplete!==$.verificationUri?y(G,{dimColor:!0,children:["Or open this prefilled URL: ",$.verificationUriComplete]}):null,J(G,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),J(G,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function Jq({onBack:q,onConfigured:z}){let Q=d0.useCallback(async(Z,N)=>{await z(Z,N)},[z]);o("confirm:no",q);let $=e2({onAuthenticated:Q});if($.state==="error")return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"error",bold:!0,children:"Kimi Code OAuth failed"}),J(G,{children:$.message}),J(G,{dimColor:!0,children:"Press Enter or Esc to go back."}),J(g,{options:[{value:"back",label:"Back",description:"Return to Moonshot AI authentication choices"}],onChange:q,onCancel:q,visibleOptionCount:1})]});return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Moonshot AI · Kimi Code"}),$.state==="starting"?J(G,{dimColor:!0,children:"Requesting a device code from Kimi..."}):y(G0,{children:[y(G,{children:["Open this URL on any device:"," ",J(G,{bold:!0,children:$.verificationUri})]}),y(G,{children:["Enter code ",J(G,{bold:!0,children:$.userCode})]}),$.verificationUriComplete&&$.verificationUriComplete!==$.verificationUri?y(G,{dimColor:!0,children:["Or open this prefilled URL: ",$.verificationUriComplete]}):null,J(G,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),J(G,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}var d0;var Zq=v(()=>{m0();Y0();zq();O2();u2();qq();d();d0=K0(H0(),1)});var r,n0="\x00__manual__",Nq,Rq="Codex OAuth",Wq="codexplan",Vq="xAI / Grok (OAuth)",Xq="grok-4",Kq="Moonshot AI",Hq,h0="https://api.kimi.com/coding/v1",yq,bq;var k0=v(()=>{L1();d2();r=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'}],Nq=new Set(["anthropic","bedrock","vertex","foundry"]),Hq=Gq,yq=Yq("providerProfile",(q)=>q),bq={bedrock:[{key:"awsRegion",label:"AWS region",placeholder:"e.g. us-east-1",helpText:"Region of your Bedrock-enabled AWS account. Credentials are picked up from the AWS SDK chain."}],vertex:[{key:"gcpProject",label:"GCP project ID",placeholder:"e.g. my-project-123456",helpText:"Google Cloud project where Vertex AI is enabled. Credentials are picked up from ADC."},{key:"gcpRegion",label:"GCP region",placeholder:"e.g. us-central1",helpText:"Vertex AI region for the model."}],foundry:[{key:"azureResource",label:"Azure resource",placeholder:"e.g. my-foundry-resource",helpText:"Name of your Azure AI Foundry resource. Credentials are picked up from DefaultAzureCredential."}]}});function Fq(q){return{name:q.name,baseUrl:q.baseUrl,model:q.model,apiKey:q.apiKey??""}}function B4(q){let z=b0(q);return{name:z.name,baseUrl:z.baseUrl,model:z.model,apiKey:z.apiKey??""}}function _q(q){let z={};for(let Q of q.split(/\r?\n/)){let $=Q.trim();if(!$)continue;let Z=$.indexOf(":");if(Z<=0)continue;let N=$.slice(0,Z).trim(),X=$.slice(Z+1).trim();if(N&&X)z[N]=X}return z}function Uq(q){if(!q)return"";return Object.entries(q).map(([z,Q])=>`${z}: ${Q}`).join(`
|
|
49
|
+
`)}function Bq(q,z){let Q={},$=q.awsRegion?.trim();if($)Q.awsRegion=$;let Z=q.gcpProject?.trim();if(Z)Q.gcpProject=Z;let N=q.gcpRegion?.trim();if(N)Q.gcpRegion=N;let X=q.azureResource?.trim();if(X)Q.azureResource=X;let V=_q(z);if(Object.keys(V).length>0)Q.customHeaders=V;return Object.keys(Q).length>0?Q:void 0}function Oq(q,z){let Q=z?" (active)":"",$=q.apiKey?"key set":"no key",Z=q.provider==="anthropic"?"anthropic":"openai-compatible",N=Lq(q.model),X=N.length<=3?N.join(", "):`${N[0]}, ${N[1]} + ${N.length-2} more`;return`${Z} · ${q.baseUrl} · ${X} · ${$}${Q}`}var O4=v(()=>{wq();D0()});function F1(q){let z=q.toLowerCase();return w1.some((Q)=>z.includes(Q))}function D4(q){try{let z=new URL(q);if(z.username)z.username="redacted";if(z.password)z.password="redacted";for(let Q of z.searchParams.keys())if(F1(Q))z.searchParams.set(Q,"redacted");return z.toString()}catch{return q.replace(/\/\/[^/@\s]+(?::[^/@\s]*)?@/g,"//redacted@").replace(/([?&](?:token|access_token|refresh_token|api_key|apikey|key|password|passwd|pwd|auth|authorization|signature|sig|secret)=)[^&#]*/gi,"$1redacted")}}var w1;var Dq=v(()=>{w1=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function Pq(q,z){if(q.state==="unreachable")return`Could not reach Atomic Chat at ${D4(z)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(q.state==="no_models")return"Atomic Chat is running, but no models are loaded. Download and load a model inside the Atomic Chat app first, or enter details manually.";return""}function mq(q,z){if(q.state==="unreachable")return`Could not reach Ollama at ${D4(z)}. Start Ollama first, or enter the endpoint manually.`;if(q.state==="no_models")return"Ollama is running, but no installed models were found. Pull a chat model such as qwen2.5-coder:7b or llama3.1:8b first, or enter details manually.";if(q.state==="generation_failed"){let Q=q.probeModel??"the selected model",$=q.detail?` Details: ${q.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${Q}.${$} Run "ollama run ${Q}" once and retry, or enter details manually.`}return""}function i0(q,z){if(!z)return;return q.find((Q)=>Q.id===z)}function M4(q,z){return Boolean(q&&z&&q.id===z)}function hq(q,z){if(z){let Q=q.find(($)=>$.id===z);if(Q)return Q}return q.find((Q)=>Q.provider==="openai"&&Q.baseUrl===h0&&!Q.apiKey)}function kq(q,z){if(z){let Q=q.find(($)=>$.id===z);if(Q)return Q}return q.find((Q)=>Q.provider==="openai"&&Q.baseUrl===I0&&!Q.apiKey)}function Iq(q,z){return q.find((Q)=>Q.provider==="anthropic"&&Q.baseUrl===z&&!Q.apiKey)}var P4=v(()=>{Mq();k0();Dq()});function Eq({setScreen:q}){return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),J(G,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),J(g,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Claude, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste an x-api-key value (sk-ant-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(z)=>{if(z==="oauth"){q("anthropic-oauth");return}if(z==="apiKey"){q("form");return}q("select-preset")},onCancel:()=>q("select-preset"),visibleOptionCount:3})]})}function Aq({setScreen:q,startCreateFromPreset:z}){return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Moonshot AI — choose authentication"}),J(G,{dimColor:!0,children:"Sign in with your Kimi Code subscription in the browser, or paste a Moonshot AI API key."}),J(g,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Kimi Code, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste a Moonshot AI API key (sk-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(Q)=>{if(Q==="oauth"){q("kimi-oauth");return}if(Q==="apiKey"){z("moonshotai");return}q("select-preset")},onCancel:()=>q("select-preset"),visibleOptionCount:3})]})}function Tq({mode:q,onDone:z,activeProfileId:Q,setErrorMessage:$,setScreen:Z,setStatusMessage:N,refreshProfiles:X,returnToMenu:V}){let H=(B1(),_1(U1)).ConsoleOAuthFlow;return J(B,{flexDirection:"column",gap:1,children:J(H,{mode:"login",onDone:()=>{let W=b0("anthropic"),L={provider:"anthropic",name:W.name,baseUrl:W.baseUrl,model:W.model},w=Iq(a(),W.baseUrl),D=q==="first-run",M=w?Q0(w.id,L):z0(L,{makeActive:D});if(!M){$("OAuth completed, but the Anthropic profile could not be saved."),Z("select-preset");return}let P=D&&w&&Q!==M.id?$0(M.id):M;if(!P){$("OAuth completed, but the Anthropic profile could not be set as the startup provider."),Z("select-preset");return}let F=`Anthropic OAuth configured: ${P.name}`;if(X(),q==="first-run"){z({action:"saved",activeProfileId:P.id,message:F});return}N(F),$(void 0),V()}})})}var Cq=v(()=>{m0();Y0();D0();P4();d()});function gq({formStepIndex:q,draft:z,setDraft:Q,setCursorOffset:$,cursorOffset:Z,editingProfileId:N,draftProvider:X,errorMessage:V,handleFormSubmit:H}){let W=r[q]??r[0],L=W.key,w=z[L];return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:N?"Edit provider profile":"Create provider profile"}),J(G,{dimColor:!0,children:W.helpText}),y(G,{dimColor:!0,children:["Provider type:"," ",X==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),y(G,{dimColor:!0,children:["Step ",q+1," of ",r.length,": ",W.label]}),y(B,{flexDirection:"row",gap:1,children:[J(G,{children:L0.pointer}),J(y0,{value:w,onChange:(D)=>Q((M)=>({...M,[L]:D})),onSubmit:H,focus:!0,showCursor:!0,placeholder:`${W.placeholder}${L0.ellipsis}`,mask:L==="apiKey"?"*":void 0,columns:80,cursorOffset:Z,onChangeCursorOffset:$})]}),V&&J(G,{color:"error",children:V}),J(G,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function jq({pendingPreset:q,cloudExtrasStepIndex:z,draftExtras:Q,cloudExtrasCursor:$,errorMessage:Z,setDraftExtras:N,setCloudExtrasStepIndex:X,setCloudExtrasCursor:V,setErrorMessage:H,setScreen:W}){let L=q;if(L!=="bedrock"&&L!=="vertex"&&L!=="foundry")return null;let w=bq[L],D=w[z]??w[0],M=Q[D.key]??"";function P(F){let A=F.trim();if(A.length===0){H(`${D.label} is required.`);return}let W0={...Q,[D.key]:A};if(N(W0),H(void 0),z<w.length-1){X(z+1);return}X(0),W("form")}return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:`${L==="bedrock"?"AWS Bedrock":L==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),J(G,{dimColor:!0,children:D.helpText}),y(G,{dimColor:!0,children:["Step ",z+1," of ",w.length,": ",D.label]}),y(B,{flexDirection:"row",gap:1,children:[J(G,{children:L0.pointer}),J(y0,{value:M,onChange:(F)=>N((A)=>({...A,[D.key]:F})),onSubmit:P,focus:!0,showCursor:!0,placeholder:`${D.placeholder}${L0.ellipsis}`,columns:80,cursorOffset:$,onChangeCursorOffset:V})]}),Z&&J(G,{color:"error",children:Z}),J(G,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function Sq({draftCustomHeaders:q,draft:z,customHeadersCursor:Q,errorMessage:$,setDraftCustomHeaders:Z,setCustomHeadersCursor:N,persistDraft:X}){return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Custom headers (optional)"}),y(G,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",J(G,{children:"Header: Value"}),". Leave empty to skip."]}),y(B,{flexDirection:"row",gap:1,children:[J(G,{children:L0.pointer}),J(y0,{value:q,onChange:Z,onSubmit:()=>X(z),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:Q,onChangeCursorOffset:N})]}),$&&J(G,{color:"error",children:$}),J(G,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}var uq=v(()=>{O1();Y0();z2();k0();d()});function fq({selection:q,draft:z,setDraft:Q,setScreen:$,setFormStepIndex:Z,setCursorOffset:N,persistDraft:X}){if(q.state==="loading"||q.state==="idle")return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),J(G,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(q.state==="unavailable")return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Atomic Chat setup"}),J(G,{dimColor:!0,children:q.message}),J(g,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(V)=>{if(V==="manual"){Z(0),N(z.name.length),$("form");return}$("select-preset")},onCancel:()=>$("select-preset"),visibleOptionCount:2})]});return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),J(G,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),J(g,{options:q.options,defaultValue:q.defaultValue,defaultFocusValue:q.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,q.options.length),onChange:(V)=>{let H={...z,model:V};Q(H),X(H)},onCancel:()=>$("select-preset")})]})}function vq({selection:q,draft:z,setDraft:Q,setScreen:$,setFormStepIndex:Z,setCursorOffset:N,persistDraft:X}){if(q.state==="loading"||q.state==="idle")return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Checking Ollama"}),J(G,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(q.state==="unavailable")return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Ollama setup"}),J(G,{dimColor:!0,children:q.message}),J(g,{options:[{value:"manual",label:"Enter manually",description:"Fill in the base URL and model yourself"},{value:"back",label:"Back",description:"Choose another provider preset"}],onChange:(V)=>{if(V==="manual"){Z(0),N(z.name.length),$("form");return}$("select-preset")},onCancel:()=>$("select-preset"),visibleOptionCount:2})]});return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Choose an Ollama model"}),J(G,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),J(g,{options:q.options,defaultValue:q.defaultValue,defaultFocusValue:q.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,q.options.length),onChange:(V)=>{let H={...z,model:V};Q(H),X(H)},onCancel:()=>$("select-preset")})]})}function cq({openAiModelSelection:q,draft:z,setDraft:Q,goToFormStep:$,goToManualModelStep:Z,finishAfterModelStep:N}){if(q.state==="loading"||q.state==="idle")return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Fetching models"}),J(G,{dimColor:!0,children:"Looking for models on your OpenAI-compatible provider…"}),J(G,{dimColor:!0,children:"Press Esc to enter the model manually."})]});if(q.state==="unavailable")return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Choose a model"}),J(G,{dimColor:!0,children:q.message}),J(g,{options:[{value:"manual",label:"Enter manually",description:"Type the model id yourself"},{value:"back",label:"Back",description:"Return to the API key step"}],onChange:(H)=>{if(H==="manual"){Z();return}$("apiKey")},onCancel:()=>$("apiKey"),visibleOptionCount:2})]});let X=[...q.options,{value:n0,label:"Enter a model id manually",description:"Type an id the provider did not list"}],V=q.defaultValue??n0;return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Choose a model"}),J(G,{dimColor:!0,children:"Models from your OpenAI-compatible provider."}),J(g,{options:X,defaultValue:V,defaultFocusValue:V,inlineDescriptions:!0,visibleOptionCount:Math.min(8,X.length),onChange:(H)=>{if(H===n0){Z();return}let W={...z,model:H};Q(W),N(W)},onCancel:()=>$("apiKey")}),J(G,{dimColor:!0,children:"Enter to select · Esc to go back"})]})}var xq=v(()=>{m0();Y0();k0();d()});function nq({mode:q,onDone:z,canImportLegacyClaude:Q,setScreen:$,setCanImportLegacyClaude:Z,setErrorMessage:N,setStatusMessage:X,closeWithCancelled:V,refreshProfiles:H,returnToMenu:W,startCreateFromPreset:L}){let w=!s(),D=[...Q?[{value:"import-legacy",label:"Reuse Claude Code sign-in",description:"Copy ~/.claude/ API tokens and provider profiles. /import brings the rest."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},{value:"cloudflare-workers-ai",label:"Cloudflare Workers AI",description:"Cloudflare Workers AI (OpenAI-compatible); set your account ID in the base URL"},{value:"cloudflare-ai-gateway",label:"Cloudflare AI Gateway",description:"Cloudflare AI Gateway unified endpoint; set your account ID in the base URL"},...w?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"},{value:"xai-oauth",label:"xAI / Grok (OAuth)",description:"Sign in with xAI in your browser and store Grok credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI",description:"API key or Kimi Code OAuth sign-in"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"zai",label:"Z.AI (GLM Coding Plan)",description:"Z.AI GLM Coding Plan (OpenAI-compatible)"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...q==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:q==="first-run"?"Set up provider":"Choose provider preset"}),J(G,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),J(a0,{options:D,searchPlaceholder:"Search presets…",onChange:(M)=>{if(M==="skip"){V("Provider setup skipped");return}if(M==="codex-oauth"){$("codex-oauth");return}if(M==="xai-oauth"){$("xai-oauth");return}if(M==="moonshotai"){$("kimi-auth-choice");return}if(M==="github-onboard"){$("github-onboard");return}if(M==="import-legacy"){(async()=>{let P=await pq({force:!0});Z(E0()),H();let F=lq(P);if(P.errors.length>0){N(F);return}let A=i();if(q==="first-run"&&A){z({action:"saved",activeProfileId:A.id,activeProviderName:A.name,activeProviderModel:A.model,message:F});return}if(X(F),N(void 0),q==="manage")W()})();return}L(M)},onCancel:()=>{if(q==="first-run"){V("Provider setup skipped");return}W()},visibleOptionCount:Math.min(13,D.length)})]})}var iq=v(()=>{m0();Y0();P0();D0();dq();d()});function E3({mode:q,onDone:z}){let Q=Zz(),[$,Z]=O.useState([]),[N,X]=O.useState(),[V,H]=O.useState(),[W,L]=O.useState(!1),[w,D]=O.useState(),M=O.useRef(0),[P,F]=O.useState(q==="first-run"?"select-preset":"menu"),[A,W0]=O.useState(null),[c,E]=O.useState("openai"),[k,x]=O.useState(()=>B4("ollama")),[_0,T0]=O.useState({}),[C4,t0]=O.useState(""),[Nz,Rz]=O.useState(0),[Wz,Vz]=O.useState(0),[U0,g4]=O.useState(null),[s0,C0]=O.useState(0),[V0,J0]=O.useState(0),[Xz,e]=O.useState(0),[j4,u]=O.useState(),[e0,m]=O.useState(),[Kz,Hz]=O.useState(),[S4,g0]=O.useState(!1),[B0,O0]=O.useState(),[yz,j0]=O.useState({state:"idle"}),[bz,S0]=O.useState({state:"idle"}),[q4,z4]=O.useState({state:"idle"}),[Lz,wz]=O.useState(!0),[Fz,n]=O.useState(!1),Q4=O.useRef(!1),[_z,u4]=O.useState(()=>E0()),[f4,Uz]=O.useState(()=>Gz());O.useEffect(()=>{queueMicrotask(()=>{let Y=a(),R=i()?.id;Z(Y),X(R),H(o0()),D(m4()),L(A0()),wz(!1)})},[]);let $4=r[V0]??r[0],Bz=$4.key,J4=$.length>0,u0=J4,v4=O.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},{value:"activate",label:"Set active provider (Global)",description:w?`Currently: ${$.find((Y)=>Y.id===w)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!u0},{value:"activate-project",label:"Set active provider (Project)",description:V?`Currently: ${$.find((Y)=>Y.id===V)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!u0},...W?[{value:"clear-project-override",label:"Clear project provider override",description:V?"Stop overriding for this project; fall back to global":"Project override points to a missing profile; clear it"}]:[],{value:"edit",label:"Edit provider",description:"Update URL, model, or key",disabled:!J4},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!u0},...S4?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[u0,J4,S4,w,V,$]),Z4=O.useCallback(()=>{if(s()){M.current+=1,g0(!1),O0(void 0);return}let Y=++M.current;(async()=>{let R=await I4();if(Y!==M.current)return;g0(Boolean(R?.apiKey||R?.accessToken||R?.refreshToken||R?.idToken)),O0(R?.profileId)})()},[]);O.useEffect(()=>{return Z4(),()=>{M.current+=1}},[Z4]),O.useEffect(()=>{if(P!=="select-ollama-model")return;let Y=!1;return j0({state:"loading"}),(async()=>{let R=await Jz({baseUrl:k.baseUrl});if(R.state!=="ready"){if(!Y)j0({state:"unavailable",message:mq(R,k.baseUrl)});return}let b=K4(R.models,"balanced"),K=G2(R.models,"balanced");if(!Y)j0({state:"ready",defaultValue:K?.name??b[0]?.name,options:b.map((U)=>({label:U.name,value:U.name,description:U.summary}))})})(),()=>{Y=!0}},[k.baseUrl,P]),O.useEffect(()=>{if(P!=="select-atomic-chat-model")return;let Y=!1;return S0({state:"loading"}),(async()=>{let R=await $z({baseUrl:k.baseUrl});if(R.state!=="ready"){if(!Y)S0({state:"unavailable",message:Pq(R,k.baseUrl)});return}if(!Y)S0({state:"ready",defaultValue:R.models[0],options:R.models.map((b)=>({label:b,value:b}))})})(),()=>{Y=!0}},[k.baseUrl,P]),O.useEffect(()=>{if(P!=="select-openai-model")return;let Y=!1;return z4({state:"loading"}),(async()=>{let R=await qz({baseUrl:k.baseUrl,apiKey:k.apiKey||void 0});if(Y)return;if(!R.ok){z4({state:"unavailable",message:zz(R)});return}let{options:b,defaultValue:K}=Qz(R.ids,k.model);z4({state:"ready",options:b,defaultValue:K})})(),()=>{Y=!0}},[k.baseUrl,k.apiKey,P]);function f(){if(Q4.current)return;Q4.current=!0,queueMicrotask(()=>{let Y=a();Z(Y),X(i()?.id),H(o0()),D(m4()),L(A0()),Z4(),Q4.current=!1})}function X0(){return null}function G4(Y){if(Y.activationWarning)return`${Y.prefix}. Saved for next startup. Warning: ${Y.warnings.join("; ")}.`;if(Y.warnings.length>0)return`${Y.prefix}. Claudin switched to it for this session with warnings: ${Y.warnings.join("; ")}.`;return`${Y.prefix}. Claudin switched to it for this session.`}async function Y4(Y){if(Y?.accessToken&&Y.accountId)return null;let R=await I4();if(!R)return"stored Codex OAuth credentials could not be loaded";if(!R.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function c4(){rq()}async function Oz(Y){let R="provider";n(!0),u("Activating provider...");try{await new Promise((t)=>queueMicrotask(t));let b=A0(),K=$0(Y);if(!K){m("Could not change active provider."),n(!1),h();return}let U=b?i()??K:K,_=w0(U.model)||r0();if(!b)Q((t)=>({...t,mainLoopModel:_,mainLoopModelForSession:null}));R=K.name;let I=X0(),S=M4(K,B0),T=S?await Y4():null;f();let p=b&&U.id!==K.id?` (project override still active — this project keeps using ${U.name}; use "Clear project provider override" to apply the new default here)`:"",C=S?G4({prefix:`Active provider: ${K.name}${p}`,activationWarning:T,warnings:[T,I?`could not clear startup provider override (${I})`:null].filter((t)=>Boolean(t))}):I?`Active provider: ${K.name}${p}. Warning: could not clear startup provider override (${I}).`:`Active provider: ${K.name}${p}`;u(C),n(!1),z({action:"activated",activeProfileId:K.id,activeProviderName:K.name,activeProviderModel:_,message:`Provider switched to ${K.name} (${_})`}),h()}catch(b){f(),u(void 0),n(!1);let K=b instanceof Error?b.message:String(b);m(`Could not finish activating ${R}: ${K}`),h()}}async function Dz(){n(!0),u("Clearing project provider override...");try{await new Promise((R)=>queueMicrotask(R)),h4(null),f();let Y=i();if(Y){let R=w0(Y.model)||r0();F0(),Q((b)=>({...b,mainLoopModel:R,mainLoopModelForSession:null})),u(`Project override cleared. Using global default: ${Y.name}.`),n(!1),z({action:"activated",activeProfileId:Y.id,activeProviderName:Y.name,activeProviderModel:R,message:`Project override cleared — using ${Y.name} (${R})`}),h()}else u("Project provider override cleared. No global default set."),n(!1),z({action:"saved",message:"Project provider override cleared. No global default set."}),h()}catch(Y){f(),u(void 0),n(!1);let R=Y instanceof Error?Y.message:String(Y);m(`Could not clear project provider override: ${R}`),h()}}async function Mz(Y){let R="provider";n(!0),u("Setting provider for this project...");try{await new Promise((C)=>queueMicrotask(C));let b=o0(),K=h4(Y);if(!K){m("Could not set project provider override."),n(!1),h();return}let U=w0(K.model)||r0();if(b===K.id)F0();Q((C)=>({...C,mainLoopModel:U,mainLoopModelForSession:null})),R=K.name;let _=X0(),I=M4(K,B0),S=I?await Y4():null;f();let T=`Active provider for this project: ${K.name}. Other projects keep the global default.`,p=I?G4({prefix:T,activationWarning:S,warnings:[S,_?`could not clear startup provider override (${_})`:null].filter((C)=>Boolean(C))}):_?`${T} Warning: could not clear startup provider override (${_}).`:T;u(p),n(!1),z({action:"activated",activeProfileId:K.id,activeProviderName:K.name,activeProviderModel:U,message:`Provider switched to ${K.name} (${U}) for this project`}),h()}catch(b){f(),u(void 0),n(!1);let K=b instanceof Error?b.message:String(b);m(`Could not finish setting ${R} for this project: ${K}`),h()}}function h(){Hz("done"),F("menu")}function N4(Y){z({action:"cancelled",message:Y})}function x4(Y){let R=b0(Y),b={name:R.name,baseUrl:R.baseUrl,model:R.model,apiKey:R.apiKey??""};if(W0(null),E(R.provider??"openai"),x(b),T0({}),t0(""),g4(Y),J0(0),C0(0),e(b.name.length),m(void 0),Y==="ollama"){j0({state:"loading"}),F("select-ollama-model");return}if(Y==="atomic-chat"){S0({state:"loading"}),F("select-atomic-chat-model");return}if(Y==="anthropic"){F("anthropic-auth-choice");return}if(Y==="bedrock"||Y==="vertex"||Y==="foundry"){F("cloud-extras");return}F("form")}function Pz(Y){let R=$.find((K)=>K.id===Y);if(!R)return;let b=Fq(R);W0(Y),E(R.provider??"openai"),x(b),T0({awsRegion:R.extras?.awsRegion,gcpProject:R.extras?.gcpProject,gcpRegion:R.extras?.gcpRegion,azureResource:R.extras?.azureResource}),t0(Uq(R.extras?.customHeaders)),g4(null),J0(0),C0(0),e(b.name.length),m(void 0),F("form")}function f0(Y=k){let R=Bq(_0,C4),b={provider:c,name:Y.name,baseUrl:Y.baseUrl,model:Y.model,apiKey:Y.apiKey,extras:R},K=A?Q0(A,b):z0(b,{makeActive:q==="first-run"});if(!K){m("Could not save provider. Fill all required fields.");return}let U=i()?.id===K.id;if(U)F0(),Q((C)=>({...C,mainLoopModel:w0(K.model),mainLoopModelForSession:null}));let _=U?X0():null;f();let I=q==="first-run"&&!A&&A0()&&!U,S=I?i()?.name??"override target":null,T=q==="first-run"?`Added provider: ${K.name} (now active)`:`Added provider: ${K.name} (active provider unchanged)`,p=A?`Updated provider: ${K.name}`:I?`Added provider: ${K.name} (now global default — project keeps using ${S}; use "Clear project provider override" to apply here)`:T;if(u(_?`${p}. Warning: could not clear startup provider override (${_}).`:p),q==="first-run"){z({action:"saved",activeProfileId:K.id,message:`Provider configured: ${K.name}`});return}W0(null),J0(0),m(void 0),h()}function R4(Y){let R=r.findIndex((b)=>b.key===Y);J0(R<0?0:R),e(k[Y].length),m(void 0),F("form")}function p4(){if(!A&&U0&&k.model===B4(U0).model){let Y={...k,model:""};x(Y),R4("model"),e(0);return}R4("model")}function l4(Y){if(U0==="anthropic"||U0==="custom"){x(Y),F("custom-headers");return}f0(Y)}function mz(Y){let R=Y.trim();if(!$4.optional&&R.length===0){m(`${$4.label} is required.`);return}let b={...k,[Bz]:R};if(x(b),m(void 0),V0<r.length-1){let K=V0+1,U=r[K]?.key??"name";if(U==="model"&&!Nq.has(c)&&b.baseUrl.trim().length>0){F("select-openai-model");return}J0(K),e(b[U].length);return}l4(b)}function hz(){if(m(void 0),V0>0){let Y=V0-1,R=r[Y]?.key??"name";J0(Y),e(k[R].length);return}if(q==="first-run"){F("select-preset");return}h()}o("confirm:no",hz,{context:"Settings",isActive:P==="form"}),o("confirm:no",()=>p4(),{context:"Settings",isActive:P==="select-openai-model"&&(q4.state==="loading"||q4.state==="idle")});function kz(){if(m(void 0),s0>0){C0(s0-1);return}F("select-preset")}o("confirm:no",kz,{context:"Settings",isActive:P==="cloud-extras"}),o("confirm:no",()=>F("form"),{context:"Settings",isActive:P==="custom-headers"}),o("confirm:no",()=>F("select-preset"),{context:"Settings",isActive:P==="anthropic-auth-choice"||P==="anthropic-oauth"||P==="kimi-auth-choice"}),o("confirm:no",()=>F("kimi-auth-choice"),{context:"Settings",isActive:P==="kimi-oauth"});function Iz(){let Y=$.length>0,R=Y;return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Provider manager"}),J(G,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),j4&&J(G,{children:j4}),J(B,{flexDirection:"column",children:$.length===0?J(G,{dimColor:!0,children:"No provider profiles configured yet."}):$.map((b)=>y(G,{dimColor:!0,children:["- ",b.name,": ",Oq(b,b.id===N)]},b.id))}),J(g,{options:v4,onChange:(b)=>{switch(m(void 0),b){case"add":F("select-preset");break;case"activate":if(R)F("select-active");break;case"activate-project":if(R)F("select-active-project");break;case"clear-project-override":Dz();break;case"edit":if(Y)F("select-edit");break;case"delete":if(R)F("select-delete");break;case"logout-codex-oauth":{let K=E4();if(!K.success){m(K.warning??"Could not clear Codex OAuth credentials.");break}g0(!1),O0(void 0);let U=i0(a(),B0),_=null;if(U){let I=k4(U.id);if(!I.removed){m("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),f();break}c4(),_=I.activeProfileId?X0():null}f(),u(_?`Codex OAuth logged out. Warning: could not clear startup provider override (${_}).`:"Codex OAuth logged out.");break}default:N4("Provider manager closed");break}},onCancel:()=>N4("Provider manager closed"),defaultFocusValue:Kz,visibleOptionCount:v4.length})]})}function v0(Y,R,b){let K=$.map((U)=>{let _=[];if(U.id===N)_.push("active");if(V&&U.id===V)_.push("this project");if(w&&U.id===w)_.push("global default");let I=_.length>0?` (${_.join(", ")})`:"";return{value:U.id,label:`${U.name}${I}`,description:`${U.provider==="anthropic"?"anthropic":"openai-compatible"} · ${U.baseUrl} · ${U.model}`}});if(K.length===0)return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:Y}),J(G,{dimColor:!0,children:R}),J(g,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>h(),onCancel:()=>h(),visibleOptionCount:1})]});return y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:Y}),J(a0,{options:K,favorites:yq,searchPlaceholder:"Search providers…",onChange:b,onCancel:()=>h(),visibleOptionCount:Math.min(10,Math.max(2,K.length))})]})}let j;switch(P){case"select-preset":j=J(nq,{mode:q,onDone:z,canImportLegacyClaude:_z,setScreen:F,setCanImportLegacyClaude:u4,setErrorMessage:m,setStatusMessage:u,closeWithCancelled:N4,refreshProfiles:f,returnToMenu:h,startCreateFromPreset:x4});break;case"select-ollama-model":j=J(vq,{selection:yz,draft:k,setDraft:x,setScreen:F,setFormStepIndex:J0,setCursorOffset:e,persistDraft:f0});break;case"select-openai-model":j=J(cq,{openAiModelSelection:q4,draft:k,setDraft:x,goToFormStep:R4,goToManualModelStep:p4,finishAfterModelStep:l4});break;case"select-atomic-chat-model":j=J(fq,{selection:bz,draft:k,setDraft:x,setScreen:F,setFormStepIndex:J0,setCursorOffset:e,persistDraft:f0});break;case"codex-oauth":j=J(Qq,{onBack:()=>F("select-preset"),onConfigured:async(Y,R)=>{let b={provider:"openai",name:Rq,baseUrl:aq,model:Wq,apiKey:""},K=i0(a(),B0),U=q==="first-run",_=K?Q0(K.id,b):z0(b,{makeActive:U});if(!_){m("Codex OAuth login finished, but the provider profile could not be saved."),h();return}let I=U&&K&&N!==_.id?$0(_.id):_;if(!I){m("Codex OAuth login finished, but the provider could not be set as the startup provider."),h();return}R({profileId:_.id}),g0(!0),O0(_.id),f();let S;if(!U)S=`Codex OAuth configured: ${_.name} (active provider unchanged — activate it from "Set active provider")`;else{let T=X0(),p=await Y4(Y),C=[p,T?`could not clear startup provider override (${T})`:null].filter((t)=>Boolean(t));S=G4({prefix:"Codex OAuth configured",activationWarning:p,warnings:C})}if(q==="first-run"){z({action:"saved",activeProfileId:I.id,message:S});return}u(S),m(void 0),h()}});break;case"xai-oauth":j=J($q,{onBack:()=>F("select-preset"),onConfigured:async(Y,R)=>{let b={provider:"openai",name:Vq,baseUrl:I0,model:Xq,apiKey:""},K=kq(a(),T4()?.profileId),U=q==="first-run",_=K?Q0(K.id,b):z0(b,{makeActive:U});if(!_){m("xAI OAuth login finished, but the provider profile could not be saved."),h();return}let I=U&&K&&N!==_.id?$0(_.id):_;if(!I){m("xAI OAuth login finished, but the provider could not be set as the startup provider."),h();return}try{R({profileId:_.id})}catch(T){m(T instanceof Error?T.message:String(T)),h();return}f();let S=U?"xAI / Grok configured. Claudin switched to it for this session.":`xAI / Grok configured: ${_.name} (active provider unchanged — activate it from "Set active provider")`;if(q==="first-run"){z({action:"saved",activeProfileId:I.id,message:S});return}u(S),m(void 0),h()}});break;case"kimi-auth-choice":j=J(Aq,{setScreen:F,startCreateFromPreset:x4});break;case"kimi-oauth":j=J(Jq,{onBack:()=>F("kimi-auth-choice"),onConfigured:async(Y,R)=>{let b={provider:"openai",name:Kq,baseUrl:h0,model:Hq,apiKey:""},K=hq(a(),A4()?.profileId),U=q==="first-run",_=K?Q0(K.id,b):z0(b,{makeActive:U});if(!_){m("Kimi Code OAuth login finished, but the provider profile could not be saved."),h();return}let I=U&&K&&N!==_.id?$0(_.id):_;if(!I){m("Kimi Code OAuth login finished, but the provider could not be set as the startup provider."),h();return}try{R({profileId:_.id})}catch(T){m(T instanceof Error?T.message:String(T)),h();return}f();let S=U?"Kimi Code configured. Claudin switched to it for this session.":`Kimi Code configured: ${_.name} (active provider unchanged — activate it from "Set active provider")`;if(q==="first-run"){z({action:"saved",activeProfileId:I.id,message:S});return}u(S),m(void 0),h()}});break;case"github-onboard":j=J(Q2,{activateOnSave:q==="first-run",onDone:(Y)=>{if(Y)u(Y),m(void 0);f(),h()},onBack:()=>F("select-preset"),onChangeAPIKey:f});break;case"anthropic-auth-choice":j=J(Eq,{setScreen:F});break;case"anthropic-oauth":j=J(Tq,{mode:q,onDone:z,activeProfileId:N,setErrorMessage:m,setScreen:F,setStatusMessage:u,refreshProfiles:f,returnToMenu:h});break;case"cloud-extras":j=J(jq,{pendingPreset:U0,cloudExtrasStepIndex:s0,draftExtras:_0,cloudExtrasCursor:Nz,errorMessage:e0,setDraftExtras:T0,setCloudExtrasStepIndex:C0,setCloudExtrasCursor:Rz,setErrorMessage:m,setScreen:F});break;case"custom-headers":j=J(Sq,{draftCustomHeaders:C4,draft:k,customHeadersCursor:Wz,errorMessage:e0,setDraftCustomHeaders:t0,setCustomHeadersCursor:Vz,persistDraft:f0});break;case"form":j=J(gq,{formStepIndex:V0,draft:k,setDraft:x,setCursorOffset:e,cursorOffset:Xz,editingProfileId:A,draftProvider:c,errorMessage:e0,handleFormSubmit:mz});break;case"select-active":j=v0("Set active provider (Global)","No providers available. Add one first.",(Y)=>{Oz(Y)});break;case"select-active-project":j=v0("Set active provider (Project)","No providers available. Add one first.",(Y)=>{Mz(Y)});break;case"select-edit":j=v0("Edit provider","No providers available. Add one first.",(Y)=>{Pz(Y)});break;case"select-delete":j=v0("Delete provider","No providers available. Add one first.",(Y)=>{let R=$.find((C)=>C.id===Y),b=R?.provider==="openai"&&R?.extras?.githubToken!==void 0,K=i0($,B0)?.id===Y,U=T4()?.profileId,_=R?.provider==="openai"&&R.baseUrl===I0&&!R.apiKey&&U===Y,I=A4()?.profileId,S=R?.provider==="openai"&&R.baseUrl===h0&&!R.apiKey&&I===Y,T=i()?.id===Y,p=k4(Y);if(!p.removed)m("Could not delete provider.");else{let C=[];if(K){let l=E4();if(!l.success)C.push(l.warning??"could not clear Codex OAuth credentials");else O0(void 0);c4()}if(b){let l=oq();if(!l.success)C.push(l.warning??"could not clear GitHub Copilot token")}if(_){let l=sq();if(!l.success)C.push(l.warning??"could not clear xAI OAuth credentials")}if(S){let l=tq();if(!l.success)C.push(l.warning??"could not clear Kimi Code OAuth credentials")}let t=p.activeProfileId?X0():null;if(t)C.push(`could not clear startup provider override (${t})`);if(f(),T){let l=i();if(l)F0(),Q((W4)=>({...W4,mainLoopModel:w0(l.model),mainLoopModelForSession:null}));else F0(),Q((W4)=>({...W4,mainLoopModel:null,mainLoopModelForSession:null}))}u(C.length>0?`Provider deleted. Warning: ${C.join("; ")}.`:"Provider deleted")}h()});break;case"menu":default:j=Iz();break}return y(eq,{color:"permission",children:[J(Yz,{enabled:f4,onDismiss:(Y)=>{u4(E0()),Uz(!1),f();let R=i();if(Y==="migrated"&&q==="first-run"&&R)z({action:"saved",activeProfileId:R.id,activeProviderName:R.name,activeProviderModel:R.model})}}),f4?null:Lz?y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Loading providers..."}),J(G,{dimColor:!0,children:"Reading provider profiles from disk."})]}):Fz?y(B,{flexDirection:"column",gap:1,children:[J(G,{color:"remember",bold:!0,children:"Activating provider..."}),J(G,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):j]})}var O;var E1=v(()=>{$2();Mq();Y0();zq();h1();k1();_2();P0();wq();D1();M1();D0();e4();m1();Y2();m0();P1();I1();Zq();j2();s2();dq();k0();O4();P4();Cq();uq();xq();iq();O4();d();O=K0(H0(),1)});
|
|
50
|
+
export{_q as cd,D4 as dd,Dq as ed,E3 as fd,E1 as gd};
|