@claudiolabs/claudin 1.1.33 → 1.1.34
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.34-5bkzspjw.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.34-v9m1h6yf.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.34-s8q45b8r.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.34-za20vma5.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.34-bfqcybrw.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.34-y3y8zaw0.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.34-2c48wrw2.mjs +6 -0
- package/dist/chunks/Doctor-1.1.34-5pfk2t4c.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.34-jhjx7d79.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.34-fdz2yay1.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.34-9kn20864.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.34-rs0n3tbm.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.34-mb74003t.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.34-bfdfnz31.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.34-mxhsj5pz.mjs +1 -0
- package/dist/chunks/REPL-1.1.34-g9xtcxfm.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.34-wjd1x7s6.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.34-zpsemk3f.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.34-gse2x86w.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.34-cp51s05w.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.34-pcx5e2xc.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.34-s3tfzny5.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.34-g8hnps71.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.34-a1bg24mk.mjs +1 -0
- package/dist/chunks/add-dir-1.1.34-fs7fa841.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.34-ybf25dvm.mjs +1 -0
- package/dist/chunks/agents-1.1.34-6xhfrt25.mjs +3 -0
- package/dist/chunks/agents-1.1.34-wsjsbryq.mjs +110 -0
- package/dist/chunks/api-1.1.34-99hm00p0.mjs +1 -0
- package/dist/chunks/asciicast-1.1.34-qydk3ezz.mjs +1 -0
- package/dist/chunks/auth-1.1.34-32n80bwr.mjs +1 -0
- package/dist/chunks/auth-1.1.34-mhmakxvf.mjs +1 -0
- package/dist/chunks/autoMode-1.1.34-jyxbmbqd.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.34-2b10v0j4.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.34-bd3mdsv9.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.34-v4c2njkh.mjs +1 -0
- package/dist/chunks/branch-1.1.34-949t9ara.mjs +4 -0
- package/dist/chunks/bridge-1.1.34-8jc0ek6w.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.34-kgr2qvyz.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.34-ygna8r55.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.34-saff9rp6.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.34-5apzxa58.mjs +1 -0
- package/dist/chunks/btw-1.1.34-4246e84n.mjs +1 -0
- package/dist/chunks/buddy-1.1.34-kj9mygnh.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.34-gyemr2df.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.34-fqz6k1qv.mjs +4 -0
- package/dist/chunks/caches-1.1.34-ebn0bryh.mjs +1 -0
- package/dist/chunks/cd-1.1.34-6458ex95.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.34-4jr3kmkg.mjs +1 -0
- package/dist/chunks/clear-1.1.34-da0gwb7n.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.34-410eb173.mjs +1 -0
- package/dist/chunks/cli-1.1.34-00hxx56p.mjs +2 -0
- package/dist/chunks/cli-1.1.34-0cmmxs6g.mjs +9 -0
- package/dist/chunks/cli-1.1.34-0h4whfas.mjs +6 -0
- package/dist/chunks/cli-1.1.34-0kkae10p.mjs +2 -0
- package/dist/chunks/cli-1.1.34-0mjf3pve.mjs +2 -0
- package/dist/chunks/cli-1.1.34-0t1h2v5v.mjs +2 -0
- package/dist/chunks/cli-1.1.34-0zqthr52.mjs +2 -0
- package/dist/chunks/cli-1.1.34-1229x70a.mjs +2 -0
- package/dist/chunks/cli-1.1.34-166q8s04.mjs +24 -0
- package/dist/chunks/cli-1.1.34-1a3s3rqs.mjs +3 -0
- package/dist/chunks/cli-1.1.34-1ategs07.mjs +2 -0
- package/dist/chunks/cli-1.1.34-1m5v3ffj.mjs +2 -0
- package/dist/chunks/cli-1.1.34-1nxczs7m.mjs +3 -0
- package/dist/chunks/cli-1.1.34-1xg52b7q.mjs +12 -0
- package/dist/chunks/cli-1.1.34-20femz8z.mjs +2 -0
- package/dist/chunks/cli-1.1.34-20p72tmb.mjs +20 -0
- package/dist/chunks/cli-1.1.34-21nzcpj6.mjs +5 -0
- package/dist/chunks/cli-1.1.34-24h4yeqf.mjs +2 -0
- package/dist/chunks/cli-1.1.34-2tf44a9a.mjs +2 -0
- package/dist/chunks/cli-1.1.34-33s2xs9e.mjs +2 -0
- package/dist/chunks/cli-1.1.34-372a0qyj.mjs +2 -0
- package/dist/chunks/cli-1.1.34-37g65vk7.mjs +2 -0
- package/dist/chunks/cli-1.1.34-37mgsk8w.mjs +2 -0
- package/dist/chunks/cli-1.1.34-3pr2wgys.mjs +2 -0
- package/dist/chunks/cli-1.1.34-3qpxmhy6.mjs +2 -0
- package/dist/chunks/cli-1.1.34-3rcacat5.mjs +3 -0
- package/dist/chunks/cli-1.1.34-4v8eanby.mjs +2 -0
- package/dist/chunks/cli-1.1.34-4x915j9t.mjs +2 -0
- package/dist/chunks/cli-1.1.34-4y5bvnfe.mjs +2 -0
- package/dist/chunks/cli-1.1.34-4zj4kbw4.mjs +2 -0
- package/dist/chunks/cli-1.1.34-58ergrxf.mjs +7 -0
- package/dist/chunks/cli-1.1.34-59csbz1a.mjs +60 -0
- package/dist/chunks/cli-1.1.34-5ec767fj.mjs +2 -0
- package/dist/chunks/cli-1.1.34-5ffnhvmt.mjs +3 -0
- package/dist/chunks/cli-1.1.34-5jdjfha3.mjs +2 -0
- package/dist/chunks/cli-1.1.34-5jnn83ne.mjs +2 -0
- package/dist/chunks/cli-1.1.34-5mg7y1hs.mjs +2 -0
- package/dist/chunks/cli-1.1.34-5qzy93s7.mjs +2 -0
- package/dist/chunks/cli-1.1.34-5t01yf6x.mjs +2 -0
- package/dist/chunks/cli-1.1.34-5vktvncs.mjs +2 -0
- package/dist/chunks/cli-1.1.34-5z4epq5b.mjs +4 -0
- package/dist/chunks/cli-1.1.34-643n510j.mjs +2 -0
- package/dist/chunks/cli-1.1.34-6jkjn6pd.mjs +2 -0
- package/dist/chunks/cli-1.1.34-70pxm3rb.mjs +133 -0
- package/dist/chunks/cli-1.1.34-79mxk0bc.mjs +2 -0
- package/dist/chunks/cli-1.1.34-7ad0dt89.mjs +2 -0
- package/dist/chunks/cli-1.1.34-7bcbswdn.mjs +2 -0
- package/dist/chunks/cli-1.1.34-7bxexffs.mjs +6 -0
- package/dist/chunks/cli-1.1.34-7n5bvchq.mjs +2 -0
- package/dist/chunks/cli-1.1.34-7npd3as5.mjs +18 -0
- package/dist/chunks/cli-1.1.34-7rd2xv38.mjs +3 -0
- package/dist/chunks/cli-1.1.34-80nhtgdq.mjs +2 -0
- package/dist/chunks/cli-1.1.34-83s0mm9a.mjs +2 -0
- package/dist/chunks/cli-1.1.34-84707tma.mjs +5491 -0
- package/dist/chunks/cli-1.1.34-859ap6f7.mjs +2 -0
- package/dist/chunks/cli-1.1.34-8r5c91mz.mjs +2 -0
- package/dist/chunks/cli-1.1.34-8s2k8jnr.mjs +39 -0
- package/dist/chunks/cli-1.1.34-8vfey6b5.mjs +2 -0
- package/dist/chunks/cli-1.1.34-92kps6jn.mjs +63 -0
- package/dist/chunks/cli-1.1.34-9jn997h8.mjs +2 -0
- package/dist/chunks/cli-1.1.34-9tctqya9.mjs +6 -0
- package/dist/chunks/cli-1.1.34-9tze8t1x.mjs +2 -0
- package/dist/chunks/cli-1.1.34-9z887t80.mjs +2 -0
- package/dist/chunks/cli-1.1.34-a6gj1b3g.mjs +2 -0
- package/dist/chunks/cli-1.1.34-a7et4z4n.mjs +2 -0
- package/dist/chunks/cli-1.1.34-ajqsr81p.mjs +2 -0
- package/dist/chunks/cli-1.1.34-ak4sm3t1.mjs +2 -0
- package/dist/chunks/cli-1.1.34-axnnzxpw.mjs +2 -0
- package/dist/chunks/cli-1.1.34-b9j8be5k.mjs +2 -0
- package/dist/chunks/cli-1.1.34-bt9brnrs.mjs +2 -0
- package/dist/chunks/cli-1.1.34-c3w48hst.mjs +2 -0
- package/dist/chunks/cli-1.1.34-cp457g25.mjs +11 -0
- package/dist/chunks/cli-1.1.34-cptp243m.mjs +2 -0
- package/dist/chunks/cli-1.1.34-cqxr7fsq.mjs +2 -0
- package/dist/chunks/cli-1.1.34-ctjatnq8.mjs +2 -0
- package/dist/chunks/cli-1.1.34-czhcyzgw.mjs +2 -0
- package/dist/chunks/cli-1.1.34-d0sgyvr1.mjs +4 -0
- package/dist/chunks/cli-1.1.34-d5enzbca.mjs +2 -0
- package/dist/chunks/cli-1.1.34-d8bccy48.mjs +7 -0
- package/dist/chunks/cli-1.1.34-dceap5rk.mjs +4 -0
- package/dist/chunks/cli-1.1.34-dj3hwt6m.mjs +3 -0
- package/dist/chunks/cli-1.1.34-dvx08sv2.mjs +2 -0
- package/dist/chunks/cli-1.1.34-e1vkhvbm.mjs +2 -0
- package/dist/chunks/cli-1.1.34-e4f2qw6n.mjs +2 -0
- package/dist/chunks/cli-1.1.34-e7fd8zh6.mjs +2 -0
- package/dist/chunks/cli-1.1.34-e9rxgan0.mjs +2 -0
- package/dist/chunks/cli-1.1.34-ehad4d4f.mjs +2 -0
- package/dist/chunks/cli-1.1.34-ev8ffgr9.mjs +2 -0
- package/dist/chunks/cli-1.1.34-ew7p2ct8.mjs +2 -0
- package/dist/chunks/cli-1.1.34-exsrnr6k.mjs +2 -0
- package/dist/chunks/cli-1.1.34-f806gv2e.mjs +7 -0
- package/dist/chunks/cli-1.1.34-faavcjnj.mjs +2 -0
- package/dist/chunks/cli-1.1.34-fd3cb4wv.mjs +2 -0
- package/dist/chunks/cli-1.1.34-ff6hyf5n.mjs +2 -0
- package/dist/chunks/cli-1.1.34-ffs3510y.mjs +2 -0
- package/dist/chunks/cli-1.1.34-fgbv1rw4.mjs +17 -0
- package/dist/chunks/cli-1.1.34-fgx6ej2m.mjs +34 -0
- package/dist/chunks/cli-1.1.34-fm4a40ta.mjs +2 -0
- package/dist/chunks/cli-1.1.34-fnds3msv.mjs +6 -0
- package/dist/chunks/cli-1.1.34-ftd1h34q.mjs +2 -0
- package/dist/chunks/cli-1.1.34-g0sqgp9m.mjs +2 -0
- package/dist/chunks/cli-1.1.34-g6kkzzxg.mjs +2 -0
- package/dist/chunks/cli-1.1.34-g7q1qz3e.mjs +2 -0
- package/dist/chunks/cli-1.1.34-g888fgsj.mjs +4 -0
- package/dist/chunks/cli-1.1.34-ge8xp99z.mjs +2 -0
- package/dist/chunks/cli-1.1.34-gsrndv90.mjs +2 -0
- package/dist/chunks/cli-1.1.34-h3ysfavt.mjs +4 -0
- package/dist/chunks/cli-1.1.34-h7927ctg.mjs +2 -0
- package/dist/chunks/cli-1.1.34-h7bcvee5.mjs +2 -0
- package/dist/chunks/cli-1.1.34-hdva7ptv.mjs +10 -0
- package/dist/chunks/cli-1.1.34-he92bjvt.mjs +2 -0
- package/dist/chunks/cli-1.1.34-hpn89fzn.mjs +2 -0
- package/dist/chunks/cli-1.1.34-hpt8kch4.mjs +2 -0
- package/dist/chunks/cli-1.1.34-hrw37per.mjs +8 -0
- package/dist/chunks/cli-1.1.34-hsngtgbm.mjs +24 -0
- package/dist/chunks/cli-1.1.34-hyya784q.mjs +2 -0
- package/dist/chunks/cli-1.1.34-j8ab267c.mjs +2 -0
- package/dist/chunks/cli-1.1.34-jkdgk3ns.mjs +2 -0
- package/dist/chunks/cli-1.1.34-jrxh48kf.mjs +4 -0
- package/dist/chunks/cli-1.1.34-jsp1hy0k.mjs +2 -0
- package/dist/chunks/cli-1.1.34-k4zd38bd.mjs +15 -0
- package/dist/chunks/cli-1.1.34-k761g5m2.mjs +2 -0
- package/dist/chunks/cli-1.1.34-k8gmdsqr.mjs +2 -0
- package/dist/chunks/cli-1.1.34-mbeaqq0q.mjs +6 -0
- package/dist/chunks/cli-1.1.34-mhjjf878.mjs +5 -0
- package/dist/chunks/cli-1.1.34-n5t6xk0e.mjs +2 -0
- package/dist/chunks/cli-1.1.34-n5zh4wyg.mjs +42 -0
- package/dist/chunks/cli-1.1.34-ncz9dava.mjs +2 -0
- package/dist/chunks/cli-1.1.34-nr50vg8g.mjs +25 -0
- package/dist/chunks/cli-1.1.34-nxeb9r8s.mjs +2 -0
- package/dist/chunks/cli-1.1.34-p5v4dwpg.mjs +4 -0
- package/dist/chunks/cli-1.1.34-p7yjh2wb.mjs +2 -0
- package/dist/chunks/cli-1.1.34-p9rd6dtm.mjs +2 -0
- package/dist/chunks/cli-1.1.34-q5stzg7k.mjs +2 -0
- package/dist/chunks/cli-1.1.34-q83yydqv.mjs +133 -0
- package/dist/chunks/cli-1.1.34-q8chhxkt.mjs +2 -0
- package/dist/chunks/cli-1.1.34-qc15bhsg.mjs +10 -0
- package/dist/chunks/cli-1.1.34-qef4zhc3.mjs +2 -0
- package/dist/chunks/cli-1.1.34-qs805z7n.mjs +9 -0
- package/dist/chunks/cli-1.1.34-qwd6k5t4.mjs +2 -0
- package/dist/chunks/cli-1.1.34-r222exkd.mjs +2 -0
- package/dist/chunks/cli-1.1.34-r3kdjy4e.mjs +2 -0
- package/dist/chunks/cli-1.1.34-r5dphbcm.mjs +2 -0
- package/dist/chunks/cli-1.1.34-rb7wdjza.mjs +45 -0
- package/dist/chunks/cli-1.1.34-rkx3x9f6.mjs +4 -0
- package/dist/chunks/cli-1.1.34-rqkzp4n2.mjs +2 -0
- package/dist/chunks/cli-1.1.34-rs4xg86x.mjs +2 -0
- package/dist/chunks/cli-1.1.34-s4gsmtx9.mjs +21 -0
- package/dist/chunks/cli-1.1.34-s8c2c7g3.mjs +3 -0
- package/dist/chunks/cli-1.1.34-s9g6mekb.mjs +2 -0
- package/dist/chunks/cli-1.1.34-sfxba1xz.mjs +3 -0
- package/dist/chunks/cli-1.1.34-shm51n5s.mjs +2 -0
- package/dist/chunks/cli-1.1.34-sj1pcnn3.mjs +2 -0
- package/dist/chunks/cli-1.1.34-sq51za8b.mjs +2 -0
- package/dist/chunks/cli-1.1.34-sxpgdyxm.mjs +2 -0
- package/dist/chunks/cli-1.1.34-syx85e6f.mjs +15 -0
- package/dist/chunks/cli-1.1.34-t4rp44p7.mjs +2 -0
- package/dist/chunks/cli-1.1.34-tj5mvsam.mjs +2 -0
- package/dist/chunks/cli-1.1.34-tmwcg7q1.mjs +2 -0
- package/dist/chunks/cli-1.1.34-ty06ehzt.mjs +3 -0
- package/dist/chunks/cli-1.1.34-v2gbtt59.mjs +50 -0
- package/dist/chunks/cli-1.1.34-vdk5kjz7.mjs +15 -0
- package/dist/chunks/cli-1.1.34-vdwfqapw.mjs +2 -0
- package/dist/chunks/cli-1.1.34-vmnqkma9.mjs +2 -0
- package/dist/chunks/cli-1.1.34-vpwwhg8z.mjs +2 -0
- package/dist/chunks/cli-1.1.34-vrsb0pea.mjs +2 -0
- package/dist/chunks/cli-1.1.34-vz14r55x.mjs +3 -0
- package/dist/chunks/cli-1.1.34-w7vjt3vm.mjs +2 -0
- package/dist/chunks/cli-1.1.34-w9ek3z9c.mjs +2 -0
- package/dist/chunks/cli-1.1.34-webjc1s3.mjs +2 -0
- package/dist/chunks/cli-1.1.34-wfb66gsv.mjs +2 -0
- package/dist/chunks/cli-1.1.34-wh74w227.mjs +2 -0
- package/dist/chunks/cli-1.1.34-whbj9gb8.mjs +24 -0
- package/dist/chunks/cli-1.1.34-wqkce8kj.mjs +2 -0
- package/dist/chunks/cli-1.1.34-wwjkncsv.mjs +203 -0
- package/dist/chunks/cli-1.1.34-wwvcrp2d.mjs +2 -0
- package/dist/chunks/cli-1.1.34-xptd4xtb.mjs +2 -0
- package/dist/chunks/cli-1.1.34-xwg0x7p4.mjs +5 -0
- package/dist/chunks/cli-1.1.34-xx555z7d.mjs +25 -0
- package/dist/chunks/cli-1.1.34-yfasvar9.mjs +2 -0
- package/dist/chunks/cli-1.1.34-yk56k2na.mjs +2 -0
- package/dist/chunks/cli-1.1.34-yqryw36t.mjs +2 -0
- package/dist/chunks/cli-1.1.34-yqyrt954.mjs +2 -0
- package/dist/chunks/cli-1.1.34-yrk4mxjw.mjs +16 -0
- package/dist/chunks/cli-1.1.34-z14xw89f.mjs +2 -0
- package/dist/chunks/cli-1.1.34-z1htezxg.mjs +2 -0
- package/dist/chunks/cli-1.1.34-z1tmh10g.mjs +2 -0
- package/dist/chunks/cli-1.1.34-z84fkt5q.mjs +2 -0
- package/dist/chunks/cli-1.1.34-zpsaqq15.mjs +17 -0
- package/dist/chunks/client-1.1.34-4exntck8.mjs +1 -0
- package/dist/chunks/color-1.1.34-d4199wch.mjs +1 -0
- package/dist/chunks/compact-1.1.34-jwr60dt0.mjs +2 -0
- package/dist/chunks/config-1.1.34-acewhfv4.mjs +1 -0
- package/dist/chunks/config-1.1.34-tqzmnvs7.mjs +1 -0
- package/dist/chunks/constants-1.1.34-s2nkrx7g.mjs +1 -0
- package/dist/chunks/context-1.1.34-wc822wp5.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.34-59xb33ys.mjs +1 -0
- package/dist/chunks/conversation-1.1.34-5k03q5nt.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.34-dkmsvh40.mjs +1 -0
- package/dist/chunks/copy-1.1.34-efb24nm3.mjs +9 -0
- package/dist/chunks/cost-1.1.34-nqqv2xjh.mjs +1 -0
- package/dist/chunks/createSession-1.1.34-69d3ep6s.mjs +1 -0
- package/dist/chunks/debug-1.1.34-k568mcye.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.34-16tn959k.mjs +1480 -0
- package/dist/chunks/desktop-1.1.34-p9x626qf.mjs +2 -0
- package/dist/chunks/detectRepository-1.1.34-rqyapz8m.mjs +1 -0
- package/dist/chunks/detection-1.1.34-5xfznq79.mjs +1 -0
- package/dist/chunks/diff-1.1.34-5ggzgzf5.mjs +1 -0
- package/dist/chunks/doctor-1.1.34-j6mbdd5g.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.34-spmjpktf.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.34-a0ptf6h4.mjs +1 -0
- package/dist/chunks/effort-1.1.34-9k8mc8ca.mjs +13 -0
- package/dist/chunks/engine-1.1.34-y28mg4na.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.34-wm7tybv6.mjs +1 -0
- package/dist/chunks/envUtils-1.1.34-rmsh5nt5.mjs +1 -0
- package/dist/chunks/errors-1.1.34-61fzsrh4.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.34-8x8b7p9t.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.34-zemxr8xw.mjs +1 -0
- package/dist/chunks/exit-1.1.34-sw6zmmgn.mjs +1 -0
- package/dist/chunks/explorer-1.1.34-3apnqz0a.mjs +1 -0
- package/dist/chunks/export-1.1.34-1hyv5efm.mjs +2 -0
- package/dist/chunks/fast-1.1.34-3d72mbz1.mjs +1 -0
- package/dist/chunks/feedback-1.1.34-k74bh5v8.mjs +16 -0
- package/dist/chunks/git-1.1.34-p3qv0ed3.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.34-hmjt89m3.mjs +1 -0
- package/dist/chunks/goal-1.1.34-m6dge19b.mjs +4 -0
- package/dist/chunks/headless-1.1.34-hpaadbg6.mjs +2 -0
- package/dist/chunks/heapdump-1.1.34-zc52x1pc.mjs +6 -0
- package/dist/chunks/help-1.1.34-0sgw7jbh.mjs +1 -0
- package/dist/chunks/hooks-1.1.34-8s6pawxx.mjs +1 -0
- package/dist/chunks/hooks-1.1.34-vnm6rywf.mjs +79 -0
- package/dist/chunks/ide-1.1.34-jbcf8ma9.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.34-zrk7wvw2.mjs +1 -0
- package/dist/chunks/import-1.1.34-4j35p307.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.34-pk5t3y0v.mjs +1 -0
- package/dist/chunks/index-1.1.34-086aty1n.mjs +1 -0
- package/dist/chunks/index-1.1.34-0q46c1bj.mjs +1 -0
- package/dist/chunks/index-1.1.34-2j48ar1m.mjs +1 -0
- package/dist/chunks/index-1.1.34-427npr7a.mjs +1 -0
- package/dist/chunks/index-1.1.34-50d0rg8h.mjs +5 -0
- package/dist/chunks/index-1.1.34-50j6q6gr.mjs +1 -0
- package/dist/chunks/index-1.1.34-ehvgt047.mjs +1 -0
- package/dist/chunks/index-1.1.34-faq1af2v.mjs +1 -0
- package/dist/chunks/index-1.1.34-fvrswew9.mjs +2 -0
- package/dist/chunks/index-1.1.34-mx39dxjj.mjs +30 -0
- package/dist/chunks/index-1.1.34-mxpb8hvr.mjs +9 -0
- package/dist/chunks/index-1.1.34-nye63dch.mjs +1 -0
- package/dist/chunks/index-1.1.34-qmmg0npy.mjs +2 -0
- package/dist/chunks/index-1.1.34-qxa3e3cv.mjs +1 -0
- package/dist/chunks/index-1.1.34-snehdv50.mjs +1 -0
- package/dist/chunks/index-1.1.34-t7jsxdbk.mjs +1 -0
- package/dist/chunks/index-1.1.34-wgm8z1dz.mjs +1 -0
- package/dist/chunks/index-1.1.34-wz64a3d4.mjs +9 -0
- package/dist/chunks/index-1.1.34-x83gwj6g.mjs +23 -0
- package/dist/chunks/index-1.1.34-xa114b8t.mjs +1 -0
- package/dist/chunks/index-1.1.34-y10pcdv1.mjs +1 -0
- package/dist/chunks/index-1.1.34-yqzmcm9y.mjs +1 -0
- package/dist/chunks/index-1.1.34-yxzywg42.mjs +1 -0
- package/dist/chunks/init-1.1.34-jdhgqsrc.mjs +2 -0
- package/dist/chunks/initReplBridge-1.1.34-b0awafmd.mjs +1 -0
- package/dist/chunks/ink-1.1.34-yb3z87en.mjs +1 -0
- package/dist/chunks/insights-1.1.34-a321wxgf.mjs +870 -0
- package/dist/chunks/install-1.1.34-064wyxwb.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.34-smwffy57.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.34-a5bwj8gk.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.34-pq1b6btm.mjs +1 -0
- package/dist/chunks/keybindings-1.1.34-rq312f3j.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.34-x006sta9.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.34-2w0hm9wz.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.34-t9s8mknk.mjs +1 -0
- package/dist/chunks/log-1.1.34-n41t6etn.mjs +1 -0
- package/dist/chunks/main-1.1.34-gh9n8dgw.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.34-qntg5ykr.mjs +1 -0
- package/dist/chunks/mcp-1.1.34-5mtgev8d.mjs +17 -0
- package/dist/chunks/mcp-1.1.34-61dcjzjk.mjs +4 -0
- package/dist/chunks/mcp-1.1.34-9d1py1ez.mjs +1 -0
- package/dist/chunks/mcpb-1.1.34-x9mxeryp.mjs +1 -0
- package/dist/chunks/memory-1.1.34-sys90hns.mjs +128 -0
- package/dist/chunks/model-1.1.34-v1r14fy7.mjs +1 -0
- package/dist/chunks/model-1.1.34-vks7w05g.mjs +2 -0
- package/dist/chunks/node-1.1.34-5b5b2m9b.mjs +1 -0
- package/dist/chunks/node-1.1.34-sdqnj3qm.mjs +15 -0
- package/dist/chunks/oauth-1.1.34-bbmwrswg.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.34-kj2a4r19.mjs +14 -0
- package/dist/chunks/output-style-1.1.34-a4dykckn.mjs +1 -0
- package/dist/chunks/package-F6O7J2XI-1.1.34-291qk0fk.mjs +1 -0
- package/dist/chunks/permissions-1.1.34-bqhsed60.mjs +1 -0
- package/dist/chunks/permissions-1.1.34-xkrhteme.mjs +3 -0
- package/dist/chunks/plan-1.1.34-j7qcpv9s.mjs +1 -0
- package/dist/chunks/plist-1.1.34-ykta36sg.mjs +1 -0
- package/dist/chunks/plugin-1.1.34-vszmzh0r.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.34-5xap799m.mjs +1 -0
- package/dist/chunks/plugins-1.1.34-6ea553qa.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.34-xy1pecch.mjs +2 -0
- package/dist/chunks/print-1.1.34-2gdkw86g.mjs +57 -0
- package/dist/chunks/process-1.1.34-fms89mxv.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.34-gcydk2hd.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.34-a3q257ff.mjs +9 -0
- package/dist/chunks/prompt-1.1.34-ctfxsw9h.mjs +1 -0
- package/dist/chunks/prompt-1.1.34-wp8mvh7t.mjs +1 -0
- package/dist/chunks/prompts-1.1.34-bmq3swzy.mjs +1 -0
- package/dist/chunks/provider-1.1.34-00xnjkhs.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.34-psred1pr.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.34-0vamj708.mjs +6 -0
- package/dist/chunks/registerSubcommands-1.1.34-pmqr2nmf.mjs +26 -0
- package/dist/chunks/registry-1.1.34-sapmjhjz.mjs +1 -0
- package/dist/chunks/release-notes-1.1.34-p6wg8evp.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.34-cd8e00jp.mjs +2 -0
- package/dist/chunks/remote-env-1.1.34-fpepp6cm.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.34-mmxz0ypj.mjs +1 -0
- package/dist/chunks/rename-1.1.34-gwdavcb8.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.34-5yvyazea.mjs +1 -0
- package/dist/chunks/resume-1.1.34-9abwrf3b.mjs +2 -0
- package/dist/chunks/rewind-1.1.34-qf51de9x.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.34-dkd3s4x5.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.34-c0j2ym4w.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.34-ad556paa.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.34-1x2ddxv2.mjs +1 -0
- package/dist/chunks/session-1.1.34-h46ywygv.mjs +2 -0
- package/dist/chunks/sessionStorage-1.1.34-tc7rwcvm.mjs +1 -0
- package/dist/chunks/settings-1.1.34-bk3tb34s.mjs +1 -0
- package/dist/chunks/setup-1.1.34-3ddxnk01.mjs +12 -0
- package/dist/chunks/sinks-1.1.34-ww0tcz6j.mjs +1 -0
- package/dist/chunks/skills-1.1.34-3ybbxgjn.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.34-7z13z7v7.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.34-45fyr9wz.mjs +1 -0
- package/dist/chunks/state-1.1.34-pymefs1m.mjs +1 -0
- package/dist/chunks/stats-1.1.34-4jw41qjm.mjs +1 -0
- package/dist/chunks/status-1.1.34-r120pa8k.mjs +1 -0
- package/dist/chunks/stickers-1.1.34-5zsfjhdn.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.34-44r7jf62.mjs +1 -0
- package/dist/chunks/tasks-1.1.34-1mhjk4hs.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.34-jfmrh1r7.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.34-m47hpvj2.mjs +1 -0
- package/dist/chunks/teleport-1.1.34-g7gk9g3q.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.34-8e12gzad.mjs +1 -0
- package/dist/chunks/theme-1.1.34-bvmx3zyc.mjs +1 -0
- package/dist/chunks/thinkback-1.1.34-bz9h3qn7.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.34-azysb61e.mjs +1 -0
- package/dist/chunks/toolPool-1.1.34-tewk9s1e.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.34-70r6c6d3.mjs +1 -0
- package/dist/chunks/tools-1.1.34-a7jpjvb5.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.34-jhn5330j.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.34-8ve160tv.mjs +69 -0
- package/dist/chunks/types-1.1.34-0as4p0wf.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.34-b7bpj27y.mjs +4 -0
- package/dist/chunks/update-1.1.34-wnetpcv6.mjs +72 -0
- package/dist/chunks/upload-1.1.34-3cdkjhmm.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.34-x376823n.mjs +14 -0
- package/dist/chunks/usage-1.1.34-h5bv8trt.mjs +1 -0
- package/dist/chunks/util-1.1.34-7ctz504f.mjs +1 -0
- package/dist/chunks/utils-1.1.34-h9r9ybtj.mjs +1 -0
- package/dist/chunks/vim-1.1.34-4y4504z8.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.34-tnjnpc05.mjs +13 -0
- package/dist/chunks/wiki-1.1.34-53n04tv3.mjs +132 -0
- package/dist/chunks/workflows-1.1.34-zefy425g.mjs +1 -0
- package/dist/chunks/worktree-1.1.34-gzm7041w.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.34-x9qxm01a.mjs +1 -0
- package/dist/chunks/wrapper-1.1.34-jmcmxyrm.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/App-1.1.33-y76d67dw.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.33-fz6kxvwx.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.33-99ykhjpz.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.33-tzr7atf1.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.33-3ehzc9bn.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.33-mptzgfxf.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.33-anvv0w3b.mjs +0 -6
- package/dist/chunks/Doctor-1.1.33-8m3ek5ex.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.33-70aphca6.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.33-0syshawj.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.33-40sq04vm.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.33-tgp186pw.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.33-9tcy3d33.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.33-zjx8xhqz.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.33-zm2tkf0s.mjs +0 -1
- package/dist/chunks/REPL-1.1.33-gh2kz8dk.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.33-v284310j.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.33-5dqj1qp9.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.33-q3p5maex.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.33-dhrpj9a6.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.33-gph2cfsr.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.33-qv8tchk3.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.33-bq45cvv6.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.33-v055y8f3.mjs +0 -1
- package/dist/chunks/add-dir-1.1.33-e811cqdx.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.33-t5nvprgp.mjs +0 -1
- package/dist/chunks/agents-1.1.33-mbve4trn.mjs +0 -3
- package/dist/chunks/agents-1.1.33-nhfb2axy.mjs +0 -110
- package/dist/chunks/api-1.1.33-2sg5ga0j.mjs +0 -1
- package/dist/chunks/asciicast-1.1.33-xr41erq2.mjs +0 -1
- package/dist/chunks/auth-1.1.33-k778a810.mjs +0 -1
- package/dist/chunks/auth-1.1.33-xappxyn1.mjs +0 -1
- package/dist/chunks/autoMode-1.1.33-wb6nwcf3.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.33-43tmanjr.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.33-py6amejh.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.33-zn01axaz.mjs +0 -1
- package/dist/chunks/branch-1.1.33-gthrar82.mjs +0 -4
- package/dist/chunks/bridge-1.1.33-9s3v1h77.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.33-183x874k.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.33-42yktg6p.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.33-62ytf81q.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.33-weh8egz5.mjs +0 -1
- package/dist/chunks/btw-1.1.33-xhjhwhex.mjs +0 -1
- package/dist/chunks/buddy-1.1.33-6e4bcghj.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.33-65t8nv3y.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.33-anfjhga9.mjs +0 -4
- package/dist/chunks/caches-1.1.33-ehvfr1c6.mjs +0 -1
- package/dist/chunks/cd-1.1.33-xbpsa40s.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.33-en5r91rv.mjs +0 -1
- package/dist/chunks/clear-1.1.33-90jr5w5d.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.33-4ts9jf6w.mjs +0 -1
- package/dist/chunks/cli-1.1.33-05291q1a.mjs +0 -2
- package/dist/chunks/cli-1.1.33-0bk8mrfh.mjs +0 -15
- package/dist/chunks/cli-1.1.33-0ktq50cd.mjs +0 -133
- package/dist/chunks/cli-1.1.33-0kvxjey5.mjs +0 -24
- package/dist/chunks/cli-1.1.33-0sckqj39.mjs +0 -2
- package/dist/chunks/cli-1.1.33-1fpzq80d.mjs +0 -2
- package/dist/chunks/cli-1.1.33-20v60hvd.mjs +0 -203
- package/dist/chunks/cli-1.1.33-20zqrzzq.mjs +0 -2
- package/dist/chunks/cli-1.1.33-22addsh7.mjs +0 -4
- package/dist/chunks/cli-1.1.33-231zj4yg.mjs +0 -2
- package/dist/chunks/cli-1.1.33-241y9eee.mjs +0 -5
- package/dist/chunks/cli-1.1.33-283f43sy.mjs +0 -2
- package/dist/chunks/cli-1.1.33-2chamq3v.mjs +0 -2
- package/dist/chunks/cli-1.1.33-2xqjkz7r.mjs +0 -2
- package/dist/chunks/cli-1.1.33-303jm377.mjs +0 -2
- package/dist/chunks/cli-1.1.33-30vd7w1w.mjs +0 -10
- package/dist/chunks/cli-1.1.33-39q98nwa.mjs +0 -2
- package/dist/chunks/cli-1.1.33-3by7vn1v.mjs +0 -2
- package/dist/chunks/cli-1.1.33-3de2dtv6.mjs +0 -2
- package/dist/chunks/cli-1.1.33-3kk4en4s.mjs +0 -2
- package/dist/chunks/cli-1.1.33-3yjvh7fr.mjs +0 -2
- package/dist/chunks/cli-1.1.33-46bkj0rz.mjs +0 -5
- package/dist/chunks/cli-1.1.33-4ghpq4rw.mjs +0 -24
- package/dist/chunks/cli-1.1.33-4t7b2799.mjs +0 -2
- package/dist/chunks/cli-1.1.33-525zf497.mjs +0 -16
- package/dist/chunks/cli-1.1.33-56fen5jd.mjs +0 -4
- package/dist/chunks/cli-1.1.33-5c19q87v.mjs +0 -2
- package/dist/chunks/cli-1.1.33-5ehc9tkd.mjs +0 -2
- package/dist/chunks/cli-1.1.33-5fc0dkzm.mjs +0 -2
- package/dist/chunks/cli-1.1.33-5pa215hx.mjs +0 -2
- package/dist/chunks/cli-1.1.33-6fq5cn5g.mjs +0 -17
- package/dist/chunks/cli-1.1.33-726gr74y.mjs +0 -2
- package/dist/chunks/cli-1.1.33-7b2yeb1x.mjs +0 -2
- package/dist/chunks/cli-1.1.33-7qjhgket.mjs +0 -2
- package/dist/chunks/cli-1.1.33-7qr8n3qn.mjs +0 -2
- package/dist/chunks/cli-1.1.33-7rd596wq.mjs +0 -2
- package/dist/chunks/cli-1.1.33-7shybbdj.mjs +0 -2
- package/dist/chunks/cli-1.1.33-7sm3r61g.mjs +0 -50
- package/dist/chunks/cli-1.1.33-87p06j57.mjs +0 -2
- package/dist/chunks/cli-1.1.33-8dxvf995.mjs +0 -2
- package/dist/chunks/cli-1.1.33-8esj8tkg.mjs +0 -18
- package/dist/chunks/cli-1.1.33-8p3h818h.mjs +0 -2
- package/dist/chunks/cli-1.1.33-8q8sfbe6.mjs +0 -2
- package/dist/chunks/cli-1.1.33-8xyzgp13.mjs +0 -2
- package/dist/chunks/cli-1.1.33-90w26xxw.mjs +0 -4
- package/dist/chunks/cli-1.1.33-94s66kd2.mjs +0 -2
- package/dist/chunks/cli-1.1.33-9dt8xzkt.mjs +0 -2
- package/dist/chunks/cli-1.1.33-9fetbt6a.mjs +0 -2
- package/dist/chunks/cli-1.1.33-9z2gy96d.mjs +0 -2
- package/dist/chunks/cli-1.1.33-9zba2a1d.mjs +0 -60
- package/dist/chunks/cli-1.1.33-a49fwy5a.mjs +0 -3
- package/dist/chunks/cli-1.1.33-a6dvne78.mjs +0 -2
- package/dist/chunks/cli-1.1.33-ad43mr1x.mjs +0 -2
- package/dist/chunks/cli-1.1.33-ad75ezdj.mjs +0 -2
- package/dist/chunks/cli-1.1.33-afsw641c.mjs +0 -2
- package/dist/chunks/cli-1.1.33-aj5dy49h.mjs +0 -3
- package/dist/chunks/cli-1.1.33-apx2xgzn.mjs +0 -11
- package/dist/chunks/cli-1.1.33-bczwyjaq.mjs +0 -2
- package/dist/chunks/cli-1.1.33-bfx6z02g.mjs +0 -2
- package/dist/chunks/cli-1.1.33-bh8452tq.mjs +0 -2
- package/dist/chunks/cli-1.1.33-btd9w5q2.mjs +0 -2
- package/dist/chunks/cli-1.1.33-bxw3sz3d.mjs +0 -2
- package/dist/chunks/cli-1.1.33-c14msjsc.mjs +0 -2
- package/dist/chunks/cli-1.1.33-c37dxjja.mjs +0 -2
- package/dist/chunks/cli-1.1.33-c45mt1yq.mjs +0 -2
- package/dist/chunks/cli-1.1.33-c5j1t4gd.mjs +0 -2
- package/dist/chunks/cli-1.1.33-cdzhbn5g.mjs +0 -15
- package/dist/chunks/cli-1.1.33-cfj1bzen.mjs +0 -2
- package/dist/chunks/cli-1.1.33-cj2t55an.mjs +0 -2
- package/dist/chunks/cli-1.1.33-cjfrq2jz.mjs +0 -4
- package/dist/chunks/cli-1.1.33-czpahv90.mjs +0 -25
- package/dist/chunks/cli-1.1.33-czrp8ff2.mjs +0 -2
- package/dist/chunks/cli-1.1.33-d2jds1x5.mjs +0 -4
- package/dist/chunks/cli-1.1.33-d9fea5m8.mjs +0 -2
- package/dist/chunks/cli-1.1.33-das1k5jq.mjs +0 -3
- package/dist/chunks/cli-1.1.33-dd7gk6d2.mjs +0 -5
- package/dist/chunks/cli-1.1.33-df8tggjt.mjs +0 -2
- package/dist/chunks/cli-1.1.33-dfb8xrtp.mjs +0 -2
- package/dist/chunks/cli-1.1.33-dfbvd02g.mjs +0 -3
- package/dist/chunks/cli-1.1.33-dm8nxxnv.mjs +0 -2
- package/dist/chunks/cli-1.1.33-dp41gds0.mjs +0 -2
- package/dist/chunks/cli-1.1.33-dv29f6yk.mjs +0 -2
- package/dist/chunks/cli-1.1.33-e2jx0b65.mjs +0 -2
- package/dist/chunks/cli-1.1.33-e4gbaaq5.mjs +0 -3
- package/dist/chunks/cli-1.1.33-e87tvy6n.mjs +0 -2
- package/dist/chunks/cli-1.1.33-edgxaxbt.mjs +0 -10
- package/dist/chunks/cli-1.1.33-effqmrgb.mjs +0 -2
- package/dist/chunks/cli-1.1.33-evp1q65w.mjs +0 -2
- package/dist/chunks/cli-1.1.33-ezzc0e6x.mjs +0 -2
- package/dist/chunks/cli-1.1.33-f4vhy9zk.mjs +0 -2
- package/dist/chunks/cli-1.1.33-f83qf2zv.mjs +0 -63
- package/dist/chunks/cli-1.1.33-fcfv2vn6.mjs +0 -2
- package/dist/chunks/cli-1.1.33-g3wvn6f8.mjs +0 -2
- package/dist/chunks/cli-1.1.33-gbjym0yt.mjs +0 -6
- package/dist/chunks/cli-1.1.33-gfehnxj8.mjs +0 -2
- package/dist/chunks/cli-1.1.33-ggk9m978.mjs +0 -7
- package/dist/chunks/cli-1.1.33-ghcxb1ce.mjs +0 -34
- package/dist/chunks/cli-1.1.33-gnejtk17.mjs +0 -7
- package/dist/chunks/cli-1.1.33-gpp6mbxj.mjs +0 -17
- package/dist/chunks/cli-1.1.33-h0mx2ccc.mjs +0 -2
- package/dist/chunks/cli-1.1.33-h27b2an0.mjs +0 -2
- package/dist/chunks/cli-1.1.33-h75frpfe.mjs +0 -2
- package/dist/chunks/cli-1.1.33-heys42qe.mjs +0 -9
- package/dist/chunks/cli-1.1.33-hfkfz9g9.mjs +0 -2
- package/dist/chunks/cli-1.1.33-hwmqqtqr.mjs +0 -45
- package/dist/chunks/cli-1.1.33-j5q2mpwf.mjs +0 -2
- package/dist/chunks/cli-1.1.33-j6ep4mfm.mjs +0 -6
- package/dist/chunks/cli-1.1.33-j75f13gr.mjs +0 -2
- package/dist/chunks/cli-1.1.33-j8ajj3nv.mjs +0 -2
- package/dist/chunks/cli-1.1.33-jdtfdqvz.mjs +0 -2
- package/dist/chunks/cli-1.1.33-jp2qs3mr.mjs +0 -2
- package/dist/chunks/cli-1.1.33-jsyd53zn.mjs +0 -2
- package/dist/chunks/cli-1.1.33-jww2z5yy.mjs +0 -2
- package/dist/chunks/cli-1.1.33-k1vhqgx4.mjs +0 -2
- package/dist/chunks/cli-1.1.33-k466m68a.mjs +0 -2
- package/dist/chunks/cli-1.1.33-k51bffb8.mjs +0 -2
- package/dist/chunks/cli-1.1.33-kdbb1eq4.mjs +0 -2
- package/dist/chunks/cli-1.1.33-kg221c89.mjs +0 -2
- package/dist/chunks/cli-1.1.33-kqsskxv0.mjs +0 -133
- package/dist/chunks/cli-1.1.33-kth7ttsa.mjs +0 -4
- package/dist/chunks/cli-1.1.33-kty1kjfd.mjs +0 -2
- package/dist/chunks/cli-1.1.33-kxjb58yw.mjs +0 -2
- package/dist/chunks/cli-1.1.33-m06xge1a.mjs +0 -2
- package/dist/chunks/cli-1.1.33-m08stm17.mjs +0 -2
- package/dist/chunks/cli-1.1.33-m402nk5n.mjs +0 -2
- package/dist/chunks/cli-1.1.33-mg60nkfe.mjs +0 -2
- package/dist/chunks/cli-1.1.33-mgmqjt4t.mjs +0 -2
- package/dist/chunks/cli-1.1.33-mhph00kg.mjs +0 -24
- package/dist/chunks/cli-1.1.33-mkzxq2c9.mjs +0 -2
- package/dist/chunks/cli-1.1.33-mm3hdty7.mjs +0 -2
- package/dist/chunks/cli-1.1.33-n2d1txyn.mjs +0 -4
- package/dist/chunks/cli-1.1.33-n55k105y.mjs +0 -2
- package/dist/chunks/cli-1.1.33-n7rpkhs4.mjs +0 -2
- package/dist/chunks/cli-1.1.33-nd6tv1an.mjs +0 -15
- package/dist/chunks/cli-1.1.33-ndste4rf.mjs +0 -39
- package/dist/chunks/cli-1.1.33-nq2hxcp4.mjs +0 -9
- package/dist/chunks/cli-1.1.33-nvfshp5c.mjs +0 -6
- package/dist/chunks/cli-1.1.33-p0fb1k1s.mjs +0 -7
- package/dist/chunks/cli-1.1.33-pcsrkgrn.mjs +0 -8
- package/dist/chunks/cli-1.1.33-pw7bmns5.mjs +0 -42
- package/dist/chunks/cli-1.1.33-q8hq263y.mjs +0 -2
- package/dist/chunks/cli-1.1.33-qr675sx2.mjs +0 -2
- package/dist/chunks/cli-1.1.33-qss1gs3e.mjs +0 -2
- package/dist/chunks/cli-1.1.33-ra054vbq.mjs +0 -2
- package/dist/chunks/cli-1.1.33-raynjbkq.mjs +0 -2
- package/dist/chunks/cli-1.1.33-rr2q4wq6.mjs +0 -2
- package/dist/chunks/cli-1.1.33-rr5sxpa0.mjs +0 -2
- package/dist/chunks/cli-1.1.33-rrhe6g9q.mjs +0 -2
- package/dist/chunks/cli-1.1.33-rrvgm0jd.mjs +0 -2
- package/dist/chunks/cli-1.1.33-rtme70ck.mjs +0 -2
- package/dist/chunks/cli-1.1.33-rv2bkx6b.mjs +0 -2
- package/dist/chunks/cli-1.1.33-rxe1dmbg.mjs +0 -2
- package/dist/chunks/cli-1.1.33-s5kw6064.mjs +0 -3
- package/dist/chunks/cli-1.1.33-sbgh2rsy.mjs +0 -2
- package/dist/chunks/cli-1.1.33-sf95jk5d.mjs +0 -2
- package/dist/chunks/cli-1.1.33-sv5dwqh6.mjs +0 -3
- package/dist/chunks/cli-1.1.33-t0fg1hsr.mjs +0 -2
- package/dist/chunks/cli-1.1.33-t10xrxez.mjs +0 -2
- package/dist/chunks/cli-1.1.33-t26pazs8.mjs +0 -2
- package/dist/chunks/cli-1.1.33-t591k29k.mjs +0 -21
- package/dist/chunks/cli-1.1.33-t63yat1z.mjs +0 -2
- package/dist/chunks/cli-1.1.33-t78313g4.mjs +0 -3
- package/dist/chunks/cli-1.1.33-t8cxmf0c.mjs +0 -12
- package/dist/chunks/cli-1.1.33-tp6bhara.mjs +0 -4
- package/dist/chunks/cli-1.1.33-ts50d9at.mjs +0 -2
- package/dist/chunks/cli-1.1.33-ttc7emph.mjs +0 -25
- package/dist/chunks/cli-1.1.33-ty6y9kn2.mjs +0 -2
- package/dist/chunks/cli-1.1.33-v08vb0sv.mjs +0 -6
- package/dist/chunks/cli-1.1.33-v615gn7w.mjs +0 -3
- package/dist/chunks/cli-1.1.33-vgynvhys.mjs +0 -5491
- package/dist/chunks/cli-1.1.33-vr8cqqar.mjs +0 -2
- package/dist/chunks/cli-1.1.33-wfjtjsvq.mjs +0 -6
- package/dist/chunks/cli-1.1.33-wrdskpzf.mjs +0 -2
- package/dist/chunks/cli-1.1.33-wx8rtpc5.mjs +0 -2
- package/dist/chunks/cli-1.1.33-x6zgk4kb.mjs +0 -2
- package/dist/chunks/cli-1.1.33-xdqetcyr.mjs +0 -2
- package/dist/chunks/cli-1.1.33-xfawy00r.mjs +0 -2
- package/dist/chunks/cli-1.1.33-xt2ehzej.mjs +0 -2
- package/dist/chunks/cli-1.1.33-yd2b6czv.mjs +0 -2
- package/dist/chunks/cli-1.1.33-yd4xhx6x.mjs +0 -20
- package/dist/chunks/cli-1.1.33-ypfa1t3b.mjs +0 -2
- package/dist/chunks/cli-1.1.33-yqqr1e67.mjs +0 -2
- package/dist/chunks/cli-1.1.33-yqxphe1x.mjs +0 -2
- package/dist/chunks/cli-1.1.33-yy53bmhe.mjs +0 -2
- package/dist/chunks/cli-1.1.33-yygdy86h.mjs +0 -2
- package/dist/chunks/cli-1.1.33-z5rv4tr3.mjs +0 -3
- package/dist/chunks/cli-1.1.33-z7fa1fgt.mjs +0 -2
- package/dist/chunks/cli-1.1.33-zqqj4d1f.mjs +0 -2
- package/dist/chunks/cli-1.1.33-zsk851wd.mjs +0 -2
- package/dist/chunks/client-1.1.33-qhf9zz8n.mjs +0 -1
- package/dist/chunks/color-1.1.33-q69y353w.mjs +0 -1
- package/dist/chunks/compact-1.1.33-5vxewt1w.mjs +0 -2
- package/dist/chunks/config-1.1.33-h6tzt18x.mjs +0 -1
- package/dist/chunks/config-1.1.33-m6rgj5rq.mjs +0 -1
- package/dist/chunks/constants-1.1.33-myvdtn6q.mjs +0 -1
- package/dist/chunks/context-1.1.33-pm79kmgf.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.33-6pd4by4q.mjs +0 -1
- package/dist/chunks/conversation-1.1.33-acjggjj2.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.33-s1k9b90v.mjs +0 -1
- package/dist/chunks/copy-1.1.33-yynkyja4.mjs +0 -9
- package/dist/chunks/cost-1.1.33-sjebbq22.mjs +0 -1
- package/dist/chunks/createSession-1.1.33-cw4pppsw.mjs +0 -1
- package/dist/chunks/debug-1.1.33-h1ep6bea.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.33-t1wa4x2g.mjs +0 -1480
- package/dist/chunks/desktop-1.1.33-cgj2ar5t.mjs +0 -2
- package/dist/chunks/detectRepository-1.1.33-5yfd53ae.mjs +0 -1
- package/dist/chunks/detection-1.1.33-dnyn9hs6.mjs +0 -1
- package/dist/chunks/diff-1.1.33-nf6wy43p.mjs +0 -1
- package/dist/chunks/doctor-1.1.33-58atgaxs.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.33-v3ht88pf.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.33-qff3qk4b.mjs +0 -1
- package/dist/chunks/effort-1.1.33-nf63b81y.mjs +0 -13
- package/dist/chunks/engine-1.1.33-bqcqevb5.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.33-1bfctzjp.mjs +0 -1
- package/dist/chunks/envUtils-1.1.33-1jg5pqx5.mjs +0 -1
- package/dist/chunks/errors-1.1.33-xdf8frps.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.33-br81c33d.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.33-mmyfbtpt.mjs +0 -1
- package/dist/chunks/exit-1.1.33-s8c549bt.mjs +0 -1
- package/dist/chunks/explorer-1.1.33-q2kc2yjm.mjs +0 -1
- package/dist/chunks/export-1.1.33-wzsrmyr9.mjs +0 -2
- package/dist/chunks/fast-1.1.33-hh2t95cz.mjs +0 -1
- package/dist/chunks/feedback-1.1.33-fhamzkxx.mjs +0 -16
- package/dist/chunks/git-1.1.33-nb9mf6gs.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.33-zzecd9we.mjs +0 -1
- package/dist/chunks/goal-1.1.33-6ptfsbeb.mjs +0 -4
- package/dist/chunks/headless-1.1.33-2ks3qpn2.mjs +0 -2
- package/dist/chunks/heapdump-1.1.33-48a71a5d.mjs +0 -6
- package/dist/chunks/help-1.1.33-65k2zqsp.mjs +0 -1
- package/dist/chunks/hooks-1.1.33-7zb4rp07.mjs +0 -1
- package/dist/chunks/hooks-1.1.33-87w55gzt.mjs +0 -79
- package/dist/chunks/ide-1.1.33-jpbj91cb.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.33-cb605b4s.mjs +0 -1
- package/dist/chunks/import-1.1.33-9vq41kwx.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.33-pshb9f55.mjs +0 -1
- package/dist/chunks/index-1.1.33-0szd959f.mjs +0 -9
- package/dist/chunks/index-1.1.33-1cyg72cg.mjs +0 -5
- package/dist/chunks/index-1.1.33-20n0wyay.mjs +0 -2
- package/dist/chunks/index-1.1.33-37m0wr5f.mjs +0 -1
- package/dist/chunks/index-1.1.33-4e6weswv.mjs +0 -2
- package/dist/chunks/index-1.1.33-5at6jw86.mjs +0 -9
- package/dist/chunks/index-1.1.33-5bb2bqbt.mjs +0 -1
- package/dist/chunks/index-1.1.33-6r4xb4kw.mjs +0 -1
- package/dist/chunks/index-1.1.33-809kmg0e.mjs +0 -1
- package/dist/chunks/index-1.1.33-av56945n.mjs +0 -1
- package/dist/chunks/index-1.1.33-ayj1khn3.mjs +0 -1
- package/dist/chunks/index-1.1.33-d4h14a2g.mjs +0 -1
- package/dist/chunks/index-1.1.33-j01a41jn.mjs +0 -1
- package/dist/chunks/index-1.1.33-j3pffnmd.mjs +0 -30
- package/dist/chunks/index-1.1.33-nbb1jr6q.mjs +0 -23
- package/dist/chunks/index-1.1.33-pdret8nd.mjs +0 -1
- package/dist/chunks/index-1.1.33-px65xz19.mjs +0 -1
- package/dist/chunks/index-1.1.33-q02fr1yn.mjs +0 -1
- package/dist/chunks/index-1.1.33-qckmwfjb.mjs +0 -1
- package/dist/chunks/index-1.1.33-sj1fgs0b.mjs +0 -1
- package/dist/chunks/index-1.1.33-thfe8yxq.mjs +0 -1
- package/dist/chunks/index-1.1.33-vpdejaqk.mjs +0 -1
- package/dist/chunks/index-1.1.33-x6vn8g63.mjs +0 -1
- package/dist/chunks/init-1.1.33-8jzeqmrh.mjs +0 -2
- package/dist/chunks/initReplBridge-1.1.33-xhzad71d.mjs +0 -1
- package/dist/chunks/ink-1.1.33-8xkyvv5c.mjs +0 -1
- package/dist/chunks/insights-1.1.33-p2xfqqpr.mjs +0 -870
- package/dist/chunks/install-1.1.33-yddevjtj.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.33-3wksmje2.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.33-mgb365bd.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.33-ac7wkzh0.mjs +0 -1
- package/dist/chunks/keybindings-1.1.33-pwx8bd0q.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.33-fqw2q9w0.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.33-y4yydpcn.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.33-3rxrvf8b.mjs +0 -1
- package/dist/chunks/log-1.1.33-pqjf8wsv.mjs +0 -1
- package/dist/chunks/main-1.1.33-qvas86jh.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.33-67fc5dj7.mjs +0 -1
- package/dist/chunks/mcp-1.1.33-88w7d35a.mjs +0 -1
- package/dist/chunks/mcp-1.1.33-ewqaq0ms.mjs +0 -4
- package/dist/chunks/mcp-1.1.33-v74knj3c.mjs +0 -17
- package/dist/chunks/mcpb-1.1.33-dnjbpy7e.mjs +0 -1
- package/dist/chunks/memory-1.1.33-9qffk96q.mjs +0 -128
- package/dist/chunks/model-1.1.33-h0mjh5z8.mjs +0 -1
- package/dist/chunks/model-1.1.33-v4vqzg9w.mjs +0 -2
- package/dist/chunks/node-1.1.33-jm7rqpq8.mjs +0 -1
- package/dist/chunks/node-1.1.33-qg258pyx.mjs +0 -15
- package/dist/chunks/oauth-1.1.33-423q5vp6.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.33-dsp1wwgs.mjs +0 -14
- package/dist/chunks/output-style-1.1.33-ayj4863v.mjs +0 -1
- package/dist/chunks/package-F6O7J2XI-1.1.33-cwk2kcw8.mjs +0 -1
- package/dist/chunks/permissions-1.1.33-mtca1vka.mjs +0 -1
- package/dist/chunks/permissions-1.1.33-qk86j364.mjs +0 -3
- package/dist/chunks/plan-1.1.33-brttkasm.mjs +0 -1
- package/dist/chunks/plist-1.1.33-j08fwnf5.mjs +0 -1
- package/dist/chunks/plugin-1.1.33-ed5352d9.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.33-w1dcdv7e.mjs +0 -1
- package/dist/chunks/plugins-1.1.33-dz0szv60.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.33-cyss3q48.mjs +0 -2
- package/dist/chunks/print-1.1.33-0an9v6wm.mjs +0 -57
- package/dist/chunks/process-1.1.33-34nr1vvf.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.33-c3baefbs.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.33-7z1q5tgw.mjs +0 -9
- package/dist/chunks/prompt-1.1.33-a9nfj0nx.mjs +0 -1
- package/dist/chunks/prompt-1.1.33-t1x27qfd.mjs +0 -1
- package/dist/chunks/prompts-1.1.33-n8cpfrn6.mjs +0 -1
- package/dist/chunks/provider-1.1.33-s17k8dew.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.33-nabanrxj.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.33-45rfx8mk.mjs +0 -6
- package/dist/chunks/registerSubcommands-1.1.33-drbt7d0n.mjs +0 -26
- package/dist/chunks/registry-1.1.33-2rc0g3js.mjs +0 -1
- package/dist/chunks/release-notes-1.1.33-azfdj96s.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.33-22m52m4k.mjs +0 -2
- package/dist/chunks/remote-env-1.1.33-2zxh4gns.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.33-tvhbeebf.mjs +0 -1
- package/dist/chunks/rename-1.1.33-hh0a7vzm.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.33-17gj37pg.mjs +0 -1
- package/dist/chunks/resume-1.1.33-cxjpjtfg.mjs +0 -2
- package/dist/chunks/rewind-1.1.33-gwyc73ty.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.33-t9mmhhea.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.33-9e4hd973.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.33-ydzap1ky.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.33-vch1t63t.mjs +0 -1
- package/dist/chunks/session-1.1.33-aepc1jdx.mjs +0 -2
- package/dist/chunks/sessionStorage-1.1.33-170gteyg.mjs +0 -1
- package/dist/chunks/settings-1.1.33-16470dd7.mjs +0 -1
- package/dist/chunks/setup-1.1.33-nbfqv6x2.mjs +0 -12
- package/dist/chunks/sinks-1.1.33-8qav4btz.mjs +0 -1
- package/dist/chunks/skills-1.1.33-srydghps.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.33-a97fyetk.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.33-n5x93kr9.mjs +0 -1
- package/dist/chunks/state-1.1.33-yr57kw5b.mjs +0 -1
- package/dist/chunks/stats-1.1.33-py9web9f.mjs +0 -1
- package/dist/chunks/status-1.1.33-rstx4c0p.mjs +0 -1
- package/dist/chunks/stickers-1.1.33-bag4g2g6.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.33-k219nhcm.mjs +0 -1
- package/dist/chunks/tasks-1.1.33-170ayzks.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.33-d0etezah.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.33-wwj36vt2.mjs +0 -1
- package/dist/chunks/teleport-1.1.33-zvzb36mc.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.33-6btb4bdr.mjs +0 -1
- package/dist/chunks/theme-1.1.33-ht9yrvwn.mjs +0 -1
- package/dist/chunks/thinkback-1.1.33-kvaqf5ep.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.33-dfqez4t9.mjs +0 -1
- package/dist/chunks/toolPool-1.1.33-fsqgv07g.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.33-g3ha7h5f.mjs +0 -1
- package/dist/chunks/tools-1.1.33-6qn3rfzr.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.33-f5feh965.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.33-km66apwr.mjs +0 -69
- package/dist/chunks/types-1.1.33-bc49bs3y.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.33-byqccwrh.mjs +0 -4
- package/dist/chunks/update-1.1.33-hz986n0w.mjs +0 -72
- package/dist/chunks/upload-1.1.33-cc27f6xm.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.33-k5haaaqa.mjs +0 -14
- package/dist/chunks/usage-1.1.33-jspq6593.mjs +0 -1
- package/dist/chunks/util-1.1.33-8w7wsk2x.mjs +0 -1
- package/dist/chunks/utils-1.1.33-613tmzqb.mjs +0 -1
- package/dist/chunks/vim-1.1.33-gamhf412.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.33-w4q3ncxj.mjs +0 -13
- package/dist/chunks/wiki-1.1.33-qgzy0eh8.mjs +0 -132
- package/dist/chunks/workflows-1.1.33-82kzthpb.mjs +0 -1
- package/dist/chunks/worktree-1.1.33-7n8nkfht.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.33-qq22bj1e.mjs +0 -1
- package/dist/chunks/wrapper-1.1.33-qgpy796k.mjs +0 -7
- /package/dist/chunks/{cli-1.1.33-kx980gfw.mjs → cli-1.1.34-0f5qa0q0.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.33-5ff9vmz9.mjs → cli-1.1.34-1426jsf4.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.33-xyh0vcv7.mjs → cli-1.1.34-6ndxsqp1.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.33-f0vf76a6.mjs → cli-1.1.34-gmaedxb1.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.33-1mfasbf1.mjs → cli-1.1.34-h9h6119y.mjs} +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import{Dd as Yz,Ed as I1}from"./cli-1.1.34-1229x70a.mjs";import{Fd as pq,Gd as lq,Hd as E0,Id as Gz,Kd as dq}from"./cli-1.1.34-1m5v3ffj.mjs";import{Ld as F0,Od as k1}from"./cli-1.1.34-w9ek3z9c.mjs";import{nh as Yq,oh as L1}from"./cli-1.1.34-859ap6f7.mjs";import{$B as qz,$E as g,AF as H2,BF as iz,CF as y2,DF as b2,EF as L2,FF as az,GO as y0,HO as z2,Ix as eq,Jx as P1,VG as q2,WG as Cz,Wr as rq,Xr as M1,YG as U1,ZG as B1,aF as Tz,bC as zz,cC as Qz,dC as $z,eC as Jz,fC as m1,gO as Zz,iO as h1,kF as a0,kx as o,lF as m0,mx as zq}from"./cli-1.1.34-84707tma.mjs";import{IX as B,KX as G,pY as Y0}from"./cli-1.1.34-59csbz1a.mjs";import{LY as c2,MY as x2,NY as p2,OY as l2,PY as Gq,QY as N0,RY as _4,SY as d2,TY as n2,UY as R1,VY as A4,XY as t2,YY as tq,_Y as s2,bZ as P2,cZ as q1,dZ as m2,eZ as h2,fZ as k2,gZ as I2,hZ as Z0,iZ as w4,jZ as z1,kZ as T4,mZ as g2,nZ as sq,pZ as j2}from"./cli-1.1.34-rqkzp4n2.mjs";import{BZ as t4,FZ as s4,GZ as oq,HZ as e4,tZ as n4,uZ as i4,vZ as a4,wZ as o4,xZ as r4,yZ as Az}from"./cli-1.1.34-z1htezxg.mjs";import{JZ as x0,KZ as U2}from"./cli-1.1.34-5ffnhvmt.mjs";import{S1 as G0,T1 as J,U1 as y,V1 as d}from"./cli-1.1.34-8vfey6b5.mjs";import{W1 as H0}from"./cli-1.1.34-7ad0dt89.mjs";import{b4 as r0,l2 as d4,n2 as Ez,t4 as D1}from"./cli-1.1.34-yrk4mxjw.mjs";import{$ea as o0,$fa as Mq,Afa as H4,Bfa as X2,Cfa as K2,Dfa as nz,Efa as I4,Ffa as F2,Gfa as E4,Ifa as _2,K9 as L0,Kfa as aq,L9 as O1,Lfa as I0,Uea as Lq,Vea as w0,Wea as wq,Xea as b0,Yea as a,_ea as i,bfa as A0,cfa as m4,dfa as z0,efa as Q0,ifa as $0,jfa as h4,lfa as k4,pfa as D0,ufa as y4,vfa as R2,wfa as W2,xfa as c0,yfa as b4,zfa as V2}from"./cli-1.1.34-wwjkncsv.mjs";import{dka as s,jka as P0}from"./cli-1.1.34-ev8ffgr9.mjs";import{Eqa as K0,Fqa as _1,Iqa as v}from"./cli-1.1.34-4x915j9t.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 yd,D4 as zd,Dq as Ad,E3 as Bd,E1 as Cd};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{O1 as $J,R1 as TJ}from"./cli-1.1.34-k761g5m2.mjs";import{A_ as jJ,D_ as w,Tea as E,Yda as ZJ,aaa as K,baa as f,h$ as YJ,i$ as xJ,jea as NJ,m_ as U,nga as q,o_ as P,sga as m,y_ as QJ}from"./cli-1.1.34-wwjkncsv.mjs";import{Via as k,Wia as L,_ia as b,cja as y,gja as D,qja as W,tja as wJ}from"./cli-1.1.34-xwg0x7p4.mjs";import{Aja as JJ,Rja as M,Sja as B,Vja as g,Xja as N}from"./cli-1.1.34-d0sgyvr1.mjs";import{_ja as O,jka as I}from"./cli-1.1.34-ev8ffgr9.mjs";import{Iqa as x}from"./cli-1.1.34-4x915j9t.mjs";import{access as u,chmod as vJ,writeFile as BJ}from"fs/promises";import{homedir as d}from"os";import{join as v}from"path";function T(){return v(O(),"local")}function GJ(J=d()){return v(J,".claude","local")}function h(J){let Q=J?.homeDir??d(),Y=J?.configHomeDir??O();return Array.from(new Set([v(Y,"local"),GJ(Q)]))}function p(J){return[v(J,"node_modules",".bin","claudin"),v(J,"node_modules",".bin","claude")]}function RJ(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function A(){return v(T(),"claudin")}function iJ(){return RJ(U())}async function F(J,Q,Y){try{return await BJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(M(Z)==="EEXIST")return!1;throw Z}}async function _J(){try{let J=T();await y().mkdir(J),await F(v(J,"package.json"),k({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=A();if(await F(Q,`#!/bin/sh
|
|
2
|
+
exec "${J}/node_modules/.bin/claudin" "$@"`,493))await vJ(Q,493);return!0}catch(J){return q(J),!1}}async function eJ(J,Q){try{if(!await _J())return"install_failed";let Z=await K("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:T(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return w(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function rJ(){for(let J of h())for(let Q of p(J))try{return await u(Q),!0}catch{}return!1}async function JQ(){for(let J of h())for(let Q of p(J))try{return await u(Q),J}catch{}return null}function QQ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var c=x(()=>{P();E();I();N();f();D();m();b()});import{open as OJ,readFile as MJ,stat as yJ}from"fs/promises";import{homedir as n}from"os";import{join as V}from"path";function C(J){let Q=J?.homedir??n(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:V(Z,".zshrc"),bash:V(Q,".bashrc"),fish:V(Q,".config/fish/config.fish")}}function s(J){let Q=!1;return{filtered:J.filter((Z)=>{if(t.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===A())return Q=!0,!1}}return!0}),hadAlias:Q}}async function S(J){try{return(await MJ(J,{encoding:"utf8"})).split(`
|
|
3
|
+
`)}catch(Q){if(g(Q))return null;throw Q}}async function l(J,Q){let Y=await OJ(J,"w");try{await Y.writeFile(Q.join(`
|
|
4
|
+
`),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function UJ(J){let Q=C(J);for(let Y of Object.values(Q)){let Z=await S(Y);if(!Z)continue;for(let $ of Z)if(t.test($)){let X=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(X&&X[1])return X[1]}}return null}async function XQ(J){let Q=await UJ(J);if(!Q)return null;let Y=J?.homedir??n(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await yJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var t;var a=x(()=>{N();c();t=/^\s*alias\s+claude\s*=/});import{constants as qJ}from"fs";import{access as KJ,readFile as AJ,stat as VJ,writeFile as o}from"fs/promises";import{homedir as z}from"os";import{join as H}from"path";function CJ(){let J=U();if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}function WJ(){return CJ()?"bun":"npm"}function XJ(){let J=process.env.BUN_INSTALL||H(z(),".bun");return H(J,"install","global","node_modules","@claudiolabs/claudin")}async function FJ(){let J=await K("npm",["-g","config","get","prefix"],{cwd:z()});if(J.code!==0)return null;let Q=J.stdout.trim();if(!Q)return null;return YJ()==="windows"?H(Q,"node_modules","@claudiolabs/claudin"):H(Q,"lib","node_modules","@claudiolabs/claudin")}async function i(J){try{let Q=await AJ(H(J,"package.json"),"utf8"),Y=L(Q);return typeof Y.version==="string"?Y.version:null}catch(Q){if(!B(Q))q(Q);return null}}function e(J){return J==="bun"?Promise.resolve(XJ()):FJ()}async function IJ(J,Q,Y){let Z=J==="npm"?"bun":"npm",$=await e(Z);if(!$)return;let X=await i($);if(!X)return;let R=await e(J),_=R?await i(R):null;if(_&&X===_)return;W(`update: repairing stale ${Z} install ${X} at ${$}`);let j=await K(Z,Z==="npm"?["install","-g","--force",Q]:["install","-g",Q],{cwd:z()});if(j.code!==0){q(new G(`Failed to refresh the ${Z} global install at ${$}: ${j.stdout} ${j.stderr}`));return}if(Z==="bun")await zJ();Y?.(`Repaired old version ${X} at ${$}`)}async function kJ(J,Q){let Y=await K("node",[J],{cwd:Q});if(Y.code===0)return!0;if(!LJ.test(Y.error??""))return q(new G(`Skipped postinstall failed under node: ${Y.stdout} ${Y.stderr}`)),!1;let Z=await K("bun",[J],{cwd:Q});if(Z.code===0)return!0;return q(new G(`Skipped postinstall failed under bun: ${Z.stdout} ${Z.stderr}`)),!1}async function zJ(){let J=XJ(),Q=H(J,"install.cjs"),Y=H(J,"bin","claudin.exe");try{await KJ(Q,qJ.F_OK)}catch(Z){if(!B(Z))q(Z);return!1}try{if((await VJ(Y)).size>SJ)return!1}catch(Z){if(!B(Z))return q(Z),!1}if(!await kJ(Q,J))return!1;return W("update: repaired Bun global launcher via install.cjs"),!0}async function SQ(){}async function LQ(){return}async function FQ(){return}function IQ(J){let Y=ZJ()?.minimumVersion;if(!Y)return!1;let Z=!$J(J,Y);if(Z)W(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function HJ(){return H(O(),".update.lock")}async function bJ(){let J=y(),Q=HJ();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<r)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<r)return!1;await J.unlink(Q)}catch($){if(!B($))return q($),!1}}catch(Y){if(!B(Y))return q(Y),!1}try{return await o(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=M(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(O()),await o(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(M($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function DJ(){let J=y(),Q=HJ();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(B(Y))return;q(Y)}}async function PJ(){let J=WJ()==="bun",Q=null;if(J)Q=await K("bun",["pm","bin","-g"],{cwd:z()});else Q=await K("npm",["-g","config","get","prefix"],{cwd:z()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function fJ(){try{let J=await PJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await KJ(J,qJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new G("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function kQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await K("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:z()});if($.code!==0){if(W(`npm view failed with code ${$.code}`),$.stderr)W(`npm stderr: ${$.stderr.trim()}`);else W("npm stderr: (empty)");if($.stdout)W(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function bQ(){let J=await K("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:z()});if(J.code!==0)return W(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=L(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return W(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function DQ(J){return null}async function PQ(){return{latest:null,stable:null}}async function fQ(J,Q){if(!await bJ())return q(new G("Another process is currently installing an update")),"in_progress";try{await EJ();let Y=WJ();if(Y==="npm"&&QJ.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),console.error(`
|
|
5
|
+
Error: Windows NPM detected in WSL
|
|
6
|
+
|
|
7
|
+
You're running Claudin in WSL but using the Windows NPM installation from /mnt/c/.
|
|
8
|
+
This configuration is not supported for updates.
|
|
9
|
+
|
|
10
|
+
To fix this issue:
|
|
11
|
+
1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
|
|
12
|
+
2. Make sure Linux NPM is in your PATH before the Windows version
|
|
13
|
+
3. Try updating again with 'claudin update'
|
|
14
|
+
`),"install_failed";let{hasPermissions:Z}=await fJ();if(!Z)return"no_permissions";let $=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",R=await K(Y,Y==="npm"?["install","-g","--force",$]:["install","-g",$],{cwd:z()});if(R.code!==0){let _=new G(`Failed to install new version of claude: ${R.stdout} ${R.stderr}`);return q(_),"install_failed"}return await zJ(),await IJ(Y,$,Q?.onProgress),w((_)=>({..._,installMethod:"global"})),"success"}finally{await DJ()}}async function EJ(){let J=C();for(let[,Q]of Object.entries(J))try{let Y=await S(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=s(Y);if($)await l(Q,Z),W(`Removed claude alias from ${Q}`)}catch(Y){W(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var G,SJ=4096,LJ,r=300000;var mJ=x(()=>{P();E();wJ();jJ();I();N();f();D();m();xJ();TJ();NJ();a();b();G=class G extends JJ{};LJ=/ENOENT/i});
|
|
15
|
+
export{iJ as eT,eJ as fT,rJ as gT,JQ as hT,QQ as iT,c as jT,C as kT,s as lT,S as mT,l as nT,UJ as oT,XQ as pT,a as qT,XJ as rT,zJ as sT,SQ as tT,LQ as uT,FQ as vT,IQ as wT,HJ as xT,fJ as yT,kQ as zT,bQ as AT,DQ as BT,PQ as CT,fQ as DT,mJ as ET};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ly as Q,My as $}from"./cli-1.1.34-84707tma.mjs";import{pla as V,qla as P,rma as W,sma as E}from"./cli-1.1.34-qef4zhc3.mjs";import{Iqa as L}from"./cli-1.1.34-4x915j9t.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
|
|
2
|
+
export{v as rc,C as sc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ob as d}from"./cli-1.1.34-6ndxsqp1.mjs";import{AE as Hj,BR as A,ER as Kj,Fj as O,Hj as o,Jk as $,Kk as n,NR as c,Ol as P,Oq as W,PS as F,Pl as R,RJ as x,Rk as v,Rq as V,SS as Vj,Sk as r,UR as p,VR as X,Xq as jj,Zv as h,_v as k,dw as qj,fR as Jj,fm as s,gS as Qj,kn as E,ln as e,pB as I,qA as w,qB as Gj,qm as y,sA as zj,vR as f,vm as t,wR as m,xR as S,zE as D}from"./cli-1.1.34-84707tma.mjs";import{IU as Bj,tU as C}from"./cli-1.1.34-9jn997h8.mjs";import{m4 as T,t4 as u}from"./cli-1.1.34-yrk4mxjw.mjs";import{Eha as Z,Gha as i}from"./cli-1.1.34-0t1h2v5v.mjs";import{qja as b,tja as l}from"./cli-1.1.34-xwg0x7p4.mjs";import{Rka as U,Uka as _,Zka as Y,qpa as K,sna as M,una as N,upa as g}from"./cli-1.1.34-qef4zhc3.mjs";g();e();qj();jj();r();o();import{dirname as Xj}from"path";Vj();Kj();i();l();zj();Jj();u();t();n();Gj();Qj();Bj();Hj();s();function Yj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===v);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=D().safeParse(G.todos);return H.success?H.data:[]}return[]}function Aj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)w(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!C()&&j.messages&&j.messages.length>0){let B=Yj(j.messages);if(B.length>0){let z=U();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function Zj(j){return}function $j(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function Pj(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return b(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!M()&&z.model&&z.model!=="inherit")N(T(z.model));return{agentDefinition:z,agentType:z.agentType}}async function Rj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:W(H)}}function yj(j){let q=P();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}I(j.worktreePath),Y(Z()),R(j),F(),E(),y.cache.clear?.(),$()}function cj(){let j=P();if(!j)return;R(null),F(),E(),y.cache.clear?.(),$();try{process.chdir(j.originalCwd)}catch{return}I(j.originalCwd),Y(Z())}async function pj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(x(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(_(O(Q),q.transcriptPath?Xj(q.transcriptPath):null),await d(),await m(),!h(Q))k(j.messages)}}else if(j.contentReplacements?.length)await f(j.contentReplacements);if(c(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)yj(j.worktreeSession),S();let{agentDefinition:G,agentType:H}=Pj(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);p(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?Zj(j):void 0,L=$j(j.agentName,j.agentColor);A(j.agentName);let a=await Rj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...L&&{standaloneAgentContext:L},agentDefinitions:a}}}
|
|
2
|
+
export{Aj as La,$j as Ma,Pj as Na,yj as Oa,cj as Pa,pj as Qa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Kaa as $,yaa as T}from"./cli-1.1.34-wwjkncsv.mjs";import{Eha as J,Gha as Y}from"./cli-1.1.34-0t1h2v5v.mjs";import{qja as E,tja as X}from"./cli-1.1.34-xwg0x7p4.mjs";import{Iqa as V}from"./cli-1.1.34-4x915j9t.mjs";function j(){B.clear()}async function P(){let q=await Z();if(!q)return null;if(q.host!=="github.com")return null;return`${q.owner}/${q.name}`}async function Z(){let q=J();if(B.has(q))return B.get(q)??null;try{let x=await T();if(E(`Git remote URL: ${x}`),!x)return E("No git remote URL found"),B.set(q,null),null;let z=Q(x);return E(`Parsed repository: ${z?`${z.host}/${z.owner}/${z.name}`:null} from URL: ${x}`),B.set(q,z),z}catch(x){return E(`Error detecting repository: ${x}`),B.set(q,null),null}}function S(){let q=B.get(J());if(!q||q.host!=="github.com")return null;return`${q.owner}/${q.name}`}function Q(q){let x=q.trim(),z=x.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]){if(!O(z[1]))return null;return{host:z[1],owner:z[2],name:z[3]}}let A=x.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(A?.[1]&&A[2]&&A[3]&&A[4]){let I=A[1],K=A[2],N=K.split(":")[0]??"";if(!O(N))return null;return{host:I==="https"||I==="http"?K:N,owner:A[3],name:A[4]}}return null}function D(q){let x=q.trim(),z=Q(x);if(z){if(z.host!=="github.com")return null;return`${z.owner}/${z.name}`}if(!x.includes("://")&&!x.includes("@")&&x.includes("/")){let A=x.split("/");if(A.length===2&&A[0]&&A[1]){let I=A[1].replace(/\.git$/,"");return`${A[0]}/${I}`}}return E(`Could not parse repository from: ${x}`),null}function O(q){if(!q.includes("."))return!1;let x=q.split(".").pop();if(!x)return!1;return/^[a-zA-Z]+$/.test(x)}var B;var _=V(()=>{Y();X();$();B=new Map});
|
|
2
|
+
export{j as v9,P as w9,Z as x9,S as y9,Q as z9,D as A9,_ as B9};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ab as S}from"./cli-1.1.34-a6gj1b3g.mjs";import{Lc as P,Pc as Tq}from"./cli-1.1.34-wfb66gsv.mjs";import{Sc as I,Tc as v,Uc as $,Vc as Vq}from"./cli-1.1.34-jsp1hy0k.mjs";import{Ev as N,Fv as e,IM as A,JM as Gq,Jv as L,Lv as qq,ez as h,fO as M,fv as C,gO as E,gz as Bq,iO as Jq,jO as f,kO as Qq,lv as r,rp as D,up as a,uq as F,vq as s}from"./cli-1.1.34-84707tma.mjs";import{W1 as t}from"./cli-1.1.34-7ad0dt89.mjs";import{M_ as y,O_ as l,fba as w,hba as o,nga as _,sga as n}from"./cli-1.1.34-wwjkncsv.mjs";import{qja as j,tja as d}from"./cli-1.1.34-xwg0x7p4.mjs";import{Pja as x,Xja as p}from"./cli-1.1.34-d0sgyvr1.mjs";import{Eqa as i}from"./cli-1.1.34-4x915j9t.mjs";Qq();qq();Jq();Vq();o();d();l();p();n();s();Gq();r();e();Bq();var T=i(t(),1);Tq();a();function Fq({enabled:V=!0}={}){let c=T.useSyncExternalStore(v,I,I),H=E(),O=M((J)=>J.plugins.needsRefresh),{addNotification:z}=f(),R=T.useCallback(async()=>{try{let{enabled:J,disabled:W,errors:Q}=await D();await S();let Z=P();if(Object.keys(Z).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let X=[],Y=[];try{X=await A(),$(X)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Y=await F()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await C()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let b=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await h(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await N(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);L(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let g=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(g)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:W,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${W.length}, Commands: ${X.length}, Agents: ${Y.length}, Errors: ${Q.length}`);let u=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:W.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:X.length,agent_count:Y.length,hook_count:u,mcp_count:b,lsp_count:m}}catch(J){let W=x(J);return _(W),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let Z=Q.plugins.errors.filter((Y)=>Y.source==="lsp-manager"||Y.source.startsWith("plugin:")),X={type:"generic-error",source:"plugin-system",error:W.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...Z,X]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return T.useEffect(()=>{if(!V)return;R().then((J)=>{let{ant_enabled_names:W,...Q}=J,Z={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDIN_PLUGIN_CACHE_DIR};y("info","plugins_loaded",Z)})},[R,V]),T.useEffect(()=>{if(V)return;$([])},[V]),T.useEffect(()=>{if(!V||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[V,O,z]),V?c:[]}
|
|
2
|
+
export{Fq as $a};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{$ga as N,dha as T}from"./cli-1.1.34-37g65vk7.mjs";import{Iqa as Q}from"./cli-1.1.34-4x915j9t.mjs";function X(){if(!process.stdin.isTTY||F||process.argv.includes("-p")||process.argv.includes("--print"))return;F=!0,A="";try{process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdin.ref(),J=()=>{let q=process.stdin.read();while(q!==null){if(typeof q==="string")U(q);q=process.stdin.read()}},process.stdin.on("readable",J)}catch{F=!1}}function U(q){let v=0;while(v<q.length){let M=q[v],z=M.charCodeAt(0);if(z===3){K(),process.exit(130);return}if(z===4){K();return}if(z===127||z===8){if(A.length>0){let O=N(A);A=A.slice(0,-(O.length||1))}v++;continue}if(z===27){v++;while(v<q.length&&!(q.charCodeAt(v)>=64&&q.charCodeAt(v)<=126))v++;if(v<q.length)v++;continue}if(z<32&&z!==9&&z!==10&&z!==13){v++;continue}if(z===13){A+=`
|
|
2
|
+
`,v++;continue}A+=M,v++}}function K(){if(!F)return;if(F=!1,J)process.stdin.removeListener("readable",J),J=null}function Y(){K();let q=A.trim();return A="",q}function Z(q){A=q}var A="",F=!1,J=null;var V=Q(()=>{T()});
|
|
3
|
+
export{X as qY,K as rY,Y as sY,Z as tY,V as uY};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ki as S,Li as y,Mi as Yq}from"./cli-1.1.34-czhcyzgw.mjs";import{Ni as r,Oi as Zq}from"./cli-1.1.34-0mjf3pve.mjs";import{gm as W,hm as Qq}from"./cli-1.1.34-84707tma.mjs";import{IX as _,KX as V,pY as Kq}from"./cli-1.1.34-59csbz1a.mjs";import{T1 as B,U1 as N,V1 as x}from"./cli-1.1.34-8vfey6b5.mjs";import{W1 as Jq}from"./cli-1.1.34-7ad0dt89.mjs";import{K9 as c,L9 as qq}from"./cli-1.1.34-wwjkncsv.mjs";import{Aga as g,Pga as e,vga as G,wga as t,xga as u,yga as v}from"./cli-1.1.34-p5v4dwpg.mjs";import{Eqa as s,Iqa as i}from"./cli-1.1.34-4x915j9t.mjs";function Uq(J,q,Z){if(J.startsWith("file-"))return Z?S(q):"+";if(J.startsWith("mcp-resource-"))return"◇";if(J.startsWith("agent-"))return"*";return"+"}function l(J){return J.startsWith("file-")||J.startsWith("mcp-resource-")||J.startsWith("agent-")}function Hq(J){let q=J.metadata?.type;return q==="directory"||q==="file"}function kq(J,q,Z){if(q<=0||Z<=0)return[];let Y=J.replace(Aq," ").trim();if(Y==="")return[];let Q=[],K="";for(let z of Y.split(" ")){if(K==="")K=z;else if(G(K)+1+G(z)<=q)K=`${K} ${z}`;else Q.push(K),K=z;while(G(K)>q){let U=g(K,q);if(U==="")break;Q.push(U),K=K.slice(U.length)}if(Q.length>Z)break}if(K!=="")Q.push(K);if(Q.length<=Z)return Q;let O=Q.slice(Z-1).join(" "),A=Q.slice(0,Z);return A[Z-1]=G(O)<=q?O:v(O,q),A}function d(J,q,Z){let Y=Math.floor(q*0.4),Q=Math.min(Z??G(J.displayText)+5,Y),K=J.displayText;if(G(K)>Q-2)K=v(K,Q-2);let O=Hq(J)?`${D?S(J.displayText):"+"} `:"",A=J.tag?`[${J.tag}] `:"",z=Math.max(0,q-C-Q-G(A)-4),U=J.description?kq(J.description,z,Oq):[];return{displayText:K,displayTextWidth:Q,pathIcon:O,tagText:A,descriptionLines:U}}function Bq(J,q,Z){if(l(J.id))return 1;return Math.max(1,d(J,q,Z).descriptionLines.length)}function fq({suggestions:J,selectedSuggestion:q,maxColumnWidth:Z,overlay:Y}){let{columns:Q,rows:K}=W(),O=Math.max(1,K-2),A=O>=$q?Math.min(Gq,O):O;if(J.length===0)return null;let z=Z??Math.max(...J.map(($)=>G($.displayText)))+5,U=J.map(($)=>Bq($,Q,z)),k=($)=>Math.max(0,Math.min(q-Math.floor($/2),J.length-$)),H=Math.min(A,J.length);while(H>1){let $=k(H);if(U.slice($,$+H).reduce((P,R)=>P+R,0)<=O)break;H--}let X=k(H),b=Math.min(X+H,J.length),F=J.slice(X,b);return B(_,{flexDirection:"column",justifyContent:Y?void 0:"flex-end",children:F.map(($)=>B(Mq,{item:$,maxColumnWidth:z,isSelected:$.id===J[q]?.id},`${$.id}:${$.id===J[q]?.id?"selected":"idle"}`))})}var T,$q=6,Gq=6,Oq=2,a,zq=" ",C,Aq,D,Mq,Rq;var Vq=i(()=>{qq();Qq();t();Kq();Yq();e();Zq();x();T=s(Jq(),1),a=`${c.pointer} `,C=G(a),Aq=/\s+/g,D=r();Mq=T.memo(function({item:q,maxColumnWidth:Z,isSelected:Y}){let Q=W().columns,K=Y?a:zq,O=Y?"suggestion":void 0,A=Y?"inverseText":void 0;if(l(q.id)){let M=Uq(q.id,q.displayText,D),L=!Y,p=q.id.startsWith("file-"),I=D&&p&&!Y?y(q.displayText):void 0,o=q.id.startsWith("mcp-resource-"),Xq=2,vq=4,h=q.description?3:0,f;if(p){let E=q.description?Math.min(20,G(q.description)):0,n=Q-C-2-4-h-E;f=u(q.displayText,n)}else if(o)f=v(q.displayText,30);else f=q.displayText;let m=Q-C-2-G(f)-h-4,w;if(q.description){let E=v(q.description.replace(/\s+/g," "),Math.max(0,m));w=` ${f} - ${E}`}else w=` ${f}`;return B(_,{width:"100%",opaque:!0,backgroundColor:O,children:N(V,{color:A,dimColor:L,bold:Y,wrap:"truncate",children:[K,I?B(V,{color:I,dimColor:!1,children:M}):M,w]})})}let{displayText:z,displayTextWidth:U,pathIcon:k,tagText:H,descriptionLines:X}=d(q,Q,Z),b=z+" ".repeat(Math.max(0,U-G(z))),F=K+k+b,$=" ".repeat(G(F)+G(H)),j=D&&k!==""&&!Y?y(q.displayText):void 0,P=`${b}${H}${X[0]??""}`,R=X.slice(1).map((M)=>`${$}${M}`);return N(_,{flexDirection:"column",width:"100%",opaque:!0,backgroundColor:O,children:[N(V,{color:A,dimColor:!Y,bold:Y,wrap:"truncate",children:[K,j?B(V,{color:j,dimColor:!1,children:k}):k,P]}),R.map((M,L)=>B(V,{color:A,dimColor:!Y,bold:Y,wrap:"truncate",children:M},L))]})});Rq=T.memo(fq)});
|
|
2
|
+
export{fq as Fi,Rq as Gi,Vq as Hi};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Qd as j,Rd as m}from"./cli-1.1.34-wqkce8kj.mjs";import{Xd as k,Yd as O,Zd as P}from"./cli-1.1.34-p9rd6dtm.mjs";import{$5 as E,q5 as I,u5 as K,z5 as V}from"./cli-1.1.34-yrk4mxjw.mjs";import{D_ as N,F_ as J,Oaa as U,Tea as G,_ea as F,ica as W,jca as $,nga as H,pca as x,pfa as h,sga as b}from"./cli-1.1.34-wwjkncsv.mjs";import{Pja as _,Xja as L}from"./cli-1.1.34-d0sgyvr1.mjs";import{una as R,upa as T}from"./cli-1.1.34-qef4zhc3.mjs";import{Iqa as y}from"./cli-1.1.34-4x915j9t.mjs";function l(){X=!0}function f(){if(!X)return!1;return X=!1,!0}function s(q){return(B)=>({...B,...typeof q.permission_mode==="string"?{toolPermissionContext:{...B.toolPermissionContext,mode:$(q.permission_mode)}}:{}})}function S({newState:q,oldState:B}){let Y=f(),Z=B.toolPermissionContext.mode,Q=q.toolPermissionContext.mode;if(Z!==Q){let z=W(Z),D=W(Q);if(z!==D)k({permission_mode:D});O(Q)}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel===null){if(R(null),!Y)U((z)=>({...z,activeModelForProject:void 0,activeModelForProjectProfileId:void 0}))}if(q.mainLoopModel!==B.mainLoopModel&&q.mainLoopModel!==null){if(R(q.mainLoopModel),!Y){let z=F()?.id;U((D)=>({...D,activeModelForProject:q.mainLoopModel??void 0,activeModelForProjectProfileId:z}))}}if(q.expandedView!==B.expandedView){let z=q.expandedView==="tasks",D=q.expandedView==="teammates";if(J().showExpandedTodos!==z||J().showSpinnerTree!==D)N((A)=>({...A,showExpandedTodos:z,showSpinnerTree:D}))}if(q.verbose!==B.verbose&&J().verbose!==q.verbose){let z=q.verbose;N((D)=>({...D,verbose:z}))}if(q.collapseSubagentProgress!==B.collapseSubagentProgress&&J().collapseSubagentProgress!==q.collapseSubagentProgress){let z=q.collapseSubagentProgress;N((D)=>({...D,collapseSubagentProgress:z}))}if(q.settings!==B.settings)try{if(I(),K(),V(),q.settings.env!==B.settings.env)j()}catch(z){H(_(z))}}var X=!1;var u=y(()=>{T();E();G();L();b();m();h();x();P()});
|
|
2
|
+
export{l as Ld,s as Md,S as Nd,u as Od};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{M_ as T,O_ as M}from"./cli-1.1.34-wwjkncsv.mjs";import{Wia as L,_ia as y,qja as O,tja as x}from"./cli-1.1.34-xwg0x7p4.mjs";import{Qja as C,Xja as k}from"./cli-1.1.34-d0sgyvr1.mjs";x();M();k();y();function N(W){if(W<60000)return`${Math.round(W/1000)}s`;let Z=Math.floor(W/60000),z=Math.round(W%60000/1000);return z>0?`${Z}m ${z}s`:`${Z}m`}function c(W){let z=(W.startsWith("sk-ant-si-")?W.slice(10):W).split(".");if(z.length!==3||!z[1])return null;try{return L(Buffer.from(z[1],"base64url").toString("utf8"))}catch{return null}}function p(W){let Z=c(W);if(Z!==null&&typeof Z==="object"&&"exp"in Z&&typeof Z.exp==="number")return Z.exp;return null}var E=300000,j=1800000,H=3,F=60000;function u({getAccessToken:W,onRefresh:Z,label:z,refreshBufferMs:P=E}){let J=new Map,Y=new Map,w=new Map;function U(q){let Q=(w.get(q)??0)+1;return w.set(q,Q),Q}function B(q,Q){let $=p(Q);if(!$){O(`[${z}:token] Could not decode JWT expiry for sessionId=${q}, token prefix=${Q.slice(0,15)}…, keeping existing timer`);return}let V=J.get(q);if(V)clearTimeout(V);let v=U(q),X=new Date($*1000).toISOString(),G=$*1000-Date.now()-P;if(G<=0){O(`[${z}:token] Token for sessionId=${q} expires=${X} (past or within buffer), refreshing immediately`),K(q,v);return}O(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(G)} (expires=${X}, buffer=${P/1000}s)`);let _=setTimeout(K,G,q,v);J.set(q,_)}function A(q,Q){let $=J.get(q);if($)clearTimeout($);let V=U(q),v=Math.max(Q*1000-P,30000);O(`[${z}:token] Scheduled token refresh for sessionId=${q} in ${N(v)} (expires_in=${Q}s, buffer=${P/1000}s)`);let X=setTimeout(K,v,q,V);J.set(q,X)}async function K(q,Q){let $;try{$=await W()}catch(v){O(`[${z}:token] getAccessToken threw for sessionId=${q}: ${C(v)}`,{level:"error"})}if(w.get(q)!==Q){O(`[${z}:token] doRefresh for sessionId=${q} stale (gen ${Q} vs ${w.get(q)}), skipping`);return}if(!$){let v=(Y.get(q)??0)+1;if(Y.set(q,v),O(`[${z}:token] No OAuth token available for refresh, sessionId=${q} (failure ${v}/${H})`,{level:"error"}),T("error","bridge_token_refresh_no_oauth"),v<H){let X=setTimeout(K,F,q,Q);J.set(q,X)}return}Y.delete(q),O(`[${z}:token] Refreshing token for sessionId=${q}: new token prefix=${$.slice(0,15)}…`),Z(q,$);let V=setTimeout(K,j,q,Q);J.set(q,V),O(`[${z}:token] Scheduled follow-up refresh for sessionId=${q} in ${N(j)}`)}function D(q){U(q);let Q=J.get(q);if(Q)clearTimeout(Q),J.delete(q);Y.delete(q)}function S(){for(let q of w.keys())U(q);for(let q of J.values())clearTimeout(q);J.clear(),Y.clear()}return{schedule:B,scheduleFromExpiresIn:A,cancel:D,cancelAll:S}}
|
|
2
|
+
export{p as Db,u as Eb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{ao as Q,eo as f}from"./cli-1.1.34-84707tma.mjs";import{nga as B,sga as M}from"./cli-1.1.34-wwjkncsv.mjs";import{Via as W,Wia as Z,_ia as X,cja as $,gja as Y,qja as b,tja as A}from"./cli-1.1.34-xwg0x7p4.mjs";import{Iqa as U}from"./cli-1.1.34-4x915j9t.mjs";import{randomBytes as G}from"crypto";import{readFile as L,rename as N,unlink as j,writeFile as S}from"fs/promises";import{join as T}from"path";function R(){return T(Q(),_)}function E(q){let v=Z(q);if(typeof v!=="object"||v===null||!("plugins"in v)||typeof v.plugins!=="object"||v.plugins===null)return{};let x=v.plugins,C={};for(let[J,H]of Object.entries(x))if(H&&typeof H==="object"&&"flaggedAt"in H&&typeof H.flaggedAt==="string"){let V={flaggedAt:H.flaggedAt};if("seenAt"in H&&typeof H.seenAt==="string")V.seenAt=H.seenAt;C[J]=V}return C}async function K(){try{let q=await L(R(),{encoding:"utf-8"});return E(q)}catch{return{}}}async function O(q){let v=R(),x=`${v}.${G(8).toString("hex")}.tmp`;try{await $().mkdir(Q());let C=W({plugins:q},null,2);await S(x,C,{encoding:"utf-8",mode:384}),await N(x,v),z=q}catch(C){B(C);try{await j(x)}catch{}}}async function u(){let q=await K(),v=Date.now(),x=!1;for(let[C,J]of Object.entries(q))if(J.seenAt&&v-new Date(J.seenAt).getTime()>=w)delete q[C],x=!0;if(z=q,x)await O(q)}function p(){return z??{}}async function c(q){if(z===null)z=await K();let v={...z,[q]:{flaggedAt:new Date().toISOString()}};await O(v),b(`Flagged plugin: ${q}`)}async function g(q){if(z===null)z=await K();let v=new Date().toISOString(),x=!1,C={...z};for(let J of q){let H=C[J];if(H&&!H.seenAt)C[J]={...H,seenAt:v},x=!0}if(x)await O(C)}async function d(q){if(z===null)z=await K();if(!(q in z))return;let{[q]:v,...x}=z;z=x,await O(x)}var _="flagged-plugins.json",w=172800000,z=null;var k=U(()=>{A();Y();M();X();f()});
|
|
2
|
+
export{u as Kc,p as Lc,c as Mc,g as Nc,d as Oc,k as Pc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$0 as M,V0 as K}from"./cli-1.1.34-bt9brnrs.mjs";import{Iqa as B,Jqa as L}from"./cli-1.1.34-4x915j9t.mjs";function G(){for(let k of A)k()}function H(k){if(z?.Component===k)return;z={Component:k},G()}function O(){if(z===null)return;z=null,G()}function Q(k){return A.add(k),()=>{A.delete(k)}}function R(){return z}var z=null,A;var J=B(()=>{A=new Set});async function X(){if(!K())return!1;let{DiffDialog:k}=await import("./DiffDialog-1.1.34-2c48wrw2.mjs");return H(k),!0}var N=B(()=>{M();J()});
|
|
2
|
+
export{O as Sh,Q as Th,R as Uh,J as Vh,X as Wh,N as Xh};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{qg as _Q,sg as iQ}from"./cli-1.1.34-mhjjf878.mjs";import{xi as WQ,yi as zX}from"./cli-1.1.34-xx555z7d.mjs";import{BJ as VQ,Du as BQ,EJ as IJ,FJ as nJ,GJ as rJ,GO as SJ,Gx as zJ,HJ as gQ,HO as NQ,Hx as iJ,Nu as ZX,gm as bJ,hm as aJ,kx as FQ,lo as ZQ,mo as uQ,mx as $X,oJ as JJ,pJ as mJ,px as CQ,qx as qX,wJ as YQ,xJ as GQ,yJ as KQ,zJ as OQ}from"./cli-1.1.34-84707tma.mjs";import{AW as BJ,DX as FJ,EX as CJ,FX as oJ,IX as N,KX as M,UX as t,dY as e,pY as WJ,uW as LJ,vW as lJ}from"./cli-1.1.34-59csbz1a.mjs";import{T1 as q,U1 as _,V1 as s}from"./cli-1.1.34-8vfey6b5.mjs";import{W1 as AJ}from"./cli-1.1.34-7ad0dt89.mjs";import{v6 as i,w6 as dJ}from"./cli-1.1.34-7bxexffs.mjs";import{nga as x,sga as DJ}from"./cli-1.1.34-wwjkncsv.mjs";import{Cga as uJ,Hga as vJ,Pga as kQ,vga as f,wga as pJ,yga as n}from"./cli-1.1.34-p5v4dwpg.mjs";import{Eha as UQ,Gha as aQ}from"./cli-1.1.34-0t1h2v5v.mjs";import{Eqa as OJ,Iqa as qJ,Jqa as oQ}from"./cli-1.1.34-4x915j9t.mjs";import{writeFile as fQ}from"fs/promises";import{join as hQ}from"path";function PJ(J){if(J<1000)return`${J}ms`;let U=Math.round(J/1000);if(U<60)return`${U}s`;return`${Math.floor(U/60)}m ${U%60}s`}function sJ(J){if(J==="done")return"success";if(J==="stalled"||J==="failed")return"error";if(J==="cancelled")return"warning";return"permission"}function cQ(J){if(J==="running")return"▸";if(J==="failed"||J==="stalled")return"✗";if(J==="cancelled")return"⊘";return"✓"}function tJ(J){let U=0,K=0;for(let H of J.history)for(let A of HJ(H.agents))if(K+=1,!A.failed)U+=1;return{done:U,total:K}}function eJ(J){let U=J.history.map((K)=>{let H=HJ(K.agents);return{step:K.step,done:H.filter((A)=>!A.failed).length,total:H.length,agents:K.agents,decision:K.decision}});if(J.status==="running"&&!J.history.some((K)=>K.step===J.currentStep))U.push({step:J.currentStep,done:J.agentsDone??0,total:J.agentsInPhase??0,agents:null,decision:null});return U}function JQ(J,U){return`${CJ(J)}${U}\x1B[39m`}function jJ(J,U,K){return J+" ".repeat(Math.max(0,K-U))}function xQ(J,U,K){let H=J.failed?"✗ ":"✓ ",A=JQ(J.failed?K.error:K.success,H.trimEnd())+" ",W=PJ(J.ms),X=f(W),I=Math.max(4,U-f(H)-X-1),w=n(`${J.label} ${J.model||"inherit"} · ${vJ(J.tokens)} tok`,I),S=w.length<=J.label.length?i.bold(w):i.bold(w.slice(0,J.label.length))+i.dim(w.slice(J.label.length)),F=Math.max(1,U-f(H)-f(w)-X);return A+S+" ".repeat(F)+i.dim(W)}function pQ({run:J,phaseIndex:U}){let{columns:K,rows:H}=bJ(),A=eJ(J),W=Math.min(U,Math.max(0,A.length-1)),X=A[W],{done:I,total:w}=tJ(J),[S]=BJ(),F=FJ(S),g=Math.max(6,H-6),R=g-2,l=TJ-4,v=Math.max(20,K-4-TJ-1-4-4),k=X?` ${X.step} · ${X.agents?HJ(X.agents).length:X.total} agents `:" phase ",C=A.map((D,L)=>{let V=L===W,O=D.total>0&&D.done===D.total?"✓":D.agents===null?"▸":"✓",m=n(`${V?") ":" "}${O} ${D.step}${D.total>0?` ${D.done}/${D.total}`:""}`,l);return jJ(V?JQ(F.permission,m):m,f(m),l)});while(C.length<R)C.push(" ".repeat(l));let j=!X?[jJ(i.dim("starting…"),f("starting…"),v)]:X.agents===null?[jJ(i.dim(`running… ${X.done}/${X.total} done`),f(`running… ${X.done}/${X.total} done`),v)]:HJ(X.agents).map((D)=>xQ(D,v,F));while(j.length<R)j.push(" ".repeat(v));return _(N,{flexDirection:"column",marginTop:1,children:[_(N,{flexDirection:"row",justifyContent:"space-between",children:[_(N,{flexDirection:"column",flexShrink:1,minWidth:0,children:[q(M,{bold:!0,color:"permission",wrap:"truncate",children:J.workflow}),J.description?q(M,{dimColor:!0,wrap:"truncate",children:J.description}):null]}),_(M,{color:sJ(J.status),wrap:"truncate",children:[I,"/",w," agents · ",PJ(J.updatedAt-J.startedAt)," · ",J.status]})]}),_(N,{flexDirection:"row",marginTop:1,gap:1,children:[q(N,{flexDirection:"column",flexShrink:0,width:TJ,height:g,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:" Phases ",position:"top",align:"start"},children:q(t,{lines:C.slice(0,R),width:l})}),q(N,{flexDirection:"column",flexGrow:1,height:g,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:k,position:"top",align:"start"},children:q(t,{lines:j.slice(0,R),width:v})})]})]})}function QQ({liveRun:J,onStop:U,initialRunId:K,onViewChange:H}){let[A,W]=y.useState([]),[X,I]=y.useState(0),[w,S]=y.useState(0),[F,g]=y.useState(K?{mode:"detail",runId:K}:{mode:"list"}),[R,l]=y.useState(null),[v,k]=y.useState(!1),[C,j]=y.useState(new Set);y.useEffect(()=>{IJ().then(W).catch(($)=>x($))},[J?.runId,J?.updatedAt]);let D=(J?[J,...A.filter(($)=>$.runId!==J.runId)]:A).filter(($)=>!C.has($.runId)),L=D[Math.min(X,Math.max(0,D.length-1))],V=F.mode==="detail"?D.find(($)=>$.runId===F.runId):void 0;y.useEffect(()=>{H?.(F.mode==="detail")},[F.mode,H]);let O=y.useCallback(()=>{LJ.get(process.stdout)?.prepareFullRepaint()},[]),m=y.useRef(!1);y.useEffect(()=>{if(m.current||!K)return;let $=D.findIndex((Y)=>Y.runId===K);if($>=0)I($),m.current=!0},[K,D]);let T=F.mode==="detail"?V:L,h=y.useCallback(async()=>{if(!T)return;try{let $=hQ(JJ(),`run-${T.runId}.md`);await fQ($,rJ(T)),l($)}catch($){x($)}},[T]),c=y.useCallback(async()=>{if(!L)return;try{await nJ(L.runId),j(($)=>new Set($).add(L.runId)),I(($)=>Math.max(0,Math.min($,D.length-2))),W(await IJ())}catch($){x($)}},[L,D.length]);if(e(($,Y)=>{if(F.mode==="detail"){let P=V?eJ(V).length:0;if(Y.escape)O(),g({mode:"list"});else if(Y.upArrow)O(),S((B)=>Math.max(0,B-1));else if(Y.downArrow)O(),S((B)=>Math.min(Math.max(0,P-1),B+1));else if($==="s")h();else if($==="x"&&V&&J&&V.runId===J.runId)U();return}if(v){if(k(!1),$==="y")c();return}if(Y.upArrow)I((P)=>Math.max(0,P-1));else if(Y.downArrow)I((P)=>Math.min(D.length-1,P+1));else if(Y.return&&L)O(),S(0),g({mode:"detail",runId:L.runId});else if($==="s")h();else if($==="x"&&L&&J&&L.runId===J.runId)U();else if($==="d"&&L&&L.status!=="running")k(!0)},{isActive:!0}),F.mode==="detail"){if(!V)return q(N,{paddingX:2,paddingTop:1,children:q(M,{dimColor:!0,children:"Run not found."})});return _(N,{flexDirection:"column",paddingX:2,children:[q(pQ,{run:V,phaseIndex:w}),R&&_(M,{color:"success",children:["Saved → ",R]})]})}return _(N,{flexDirection:"column",paddingTop:1,children:[q(zJ,{color:"permission",padding:4}),D.length===0?q(N,{paddingX:2,marginTop:1,children:q(M,{dimColor:!0,children:"No workflow runs yet. Start one from the Library tab."})}):_(N,{flexDirection:"column",paddingX:2,marginTop:1,children:[D.map(($,Y)=>{let{total:P}=tJ($);return _(M,{inverse:Y===X,wrap:"truncate",children:[Y===X?"▸ ":" ",q(M,{color:sJ($.status),children:cQ($.status)})," ",$.workflow," ",P," agents · ",vJ($.totalTokens)," tok · ",PJ($.updatedAt-$.startedAt)]},$.runId)}),R&&q(N,{marginTop:1,children:_(M,{color:"success",children:["Saved → ",R]})}),v&&L&&q(N,{marginTop:1,children:_(M,{color:"warning",children:['Delete run "',L.workflow,'" (',PJ(L.updatedAt-L.startedAt),")? (y/n)"]})})]})]})}var y,HJ=(J)=>J.filter((U)=>U.label!=="main"),TJ=26;var XQ=qJ(()=>{dJ();WJ();lJ();pJ();kQ();DJ();oJ();uJ();aJ();iJ();gQ();mJ();s();y=OJ(AJ(),1)});function lQ(J){let U={name:J.name};if(J.agents.length>0)U.agents=J.agents;if(J.handbackTo?.length)U.handbackTo=J.handbackTo;return U}function $Q(J,U={}){let K={name:J.name,description:J.description};if(J.main)K.main=J.main;K.steps=J.steps.map(lQ);for(let[W,X]of Object.entries(U))if(!dQ.has(W))K[W]=X;let H=ZQ(K).trimEnd(),A=J.instructions.trim();return`---
|
|
2
|
+
${H}
|
|
3
|
+
---
|
|
4
|
+
${A?`${A}
|
|
5
|
+
`:""}`}function qQ(J,U,K){let H=J[U]?.name;return J.map((A,W)=>({...A,name:W===U?K:A.name,handbackTo:A.handbackTo?.map((X)=>X===H?K:X)}))}var dQ;var zQ=qJ(()=>{uQ();dQ=new Set(["name","description","main","steps"])});import{unlinkSync as nQ,writeFileSync as rQ}from"fs";import{readFile as sQ,writeFile as tQ}from"fs/promises";import{tmpdir as eQ}from"os";import{join as yJ}from"path";function UJ(J,U){return`${CJ(J)}${U}\x1B[39m`}function ZJ(J,U,K){return J+" ".repeat(Math.max(0,K-U))}function EJ(J,U,K){let H=J.slice(0,U);while(H.length<U)H.push(" ".repeat(K));return H}function MQ({sourceFile:J,onClose:U}){let{columns:K,rows:H}=bJ(),[A]=BJ(),W=FJ(A),[X,I]=E.useState(null),[w,S]=E.useState({}),[F,g]=E.useState(null),[R,l]=E.useState(!1),[v,k]=E.useState("phases"),[C,j]=E.useState(0),[D,L]=E.useState(0),[V,O]=E.useState(null),[m,T]=E.useState(null),[h,c]=E.useState(null),$=E.useCallback(()=>{LJ.get(process.stdout)?.prepareFullRepaint()},[]);E.useEffect(()=>{sQ(yJ(JJ(),J),"utf-8").then((Q)=>{let Z=YQ(Q,J.replace(/\.md$/,""));if(Z.def)I(Z.def),S(Z.rawFrontmatter);else g(Z.errors.join("; "))}).catch((Q)=>{x(Q),g("Failed to read workflow file.")})},[J]),E.useEffect(()=>{import("./agentTypes-1.1.34-ybf25dvm.mjs").then((Q)=>Q.getKnownAgentTypes(UQ())).then(c).catch((Q)=>x(Q))},[]);let Y=E.useMemo(()=>{if(!X)return[];let Q=GQ(X);if(h)Q.push(...KQ(X,h));return Q},[X,h]),P=E.useCallback((Q)=>{$(),I((Z)=>Z?Q(Z):Z),l(!0),T(null)},[$]),B=C-1,u=X&&B>=0?X.steps[B]:void 0,YJ=C===0?["description","main"]:["name","agents","handbackTo"],bQ=E.useCallback(async()=>{if(!X)return;try{let Q=yJ(JJ(),J);await tQ(Q,$Q(X,w)),l(!1),T(`Saved → ${Q}`)}catch(Q){x(Q),T("Failed to save.")}},[X,w,J]),EQ=E.useCallback(()=>{if(!X)return;let Q=yJ(eQ(),`claudin-wf-prompt-${Date.now()}.md`);try{rQ(Q,X.instructions?`${X.instructions}
|
|
6
|
+
`:"");let Z=_Q(Q);if(Z.error)T(Z.error);else if(Z.content===null)T("No external editor available — set $EDITOR or $VISUAL.");else{let z=Z.content.trim();if(z!==X.instructions)P((G)=>({...G,instructions:z}))}}catch(Z){x(Z),T("Failed to open editor.")}finally{try{nQ(Q)}catch{}}},[X,P]),SQ=E.useCallback(()=>{if(!X)return;let Q=YJ[D];if($(),C===0){if(Q==="description")O({kind:"input",target:"description",value:X.description,cursor:X.description.length});else{let Z=["(default)",...[...h??[]].sort()];O({kind:"picker",target:"main",options:Z,checked:new Set([X.main??"(default)"]),cursor:Math.max(0,Z.indexOf(X.main??"(default)")),multi:!1})}return}if(!u)return;if(Q==="name")O({kind:"input",target:"name",value:u.name,cursor:u.name.length});else if(Q==="agents"){let Z=[...new Set([...[...h??[]].sort(),...u.agents])];O({kind:"picker",target:"agents",options:Z,checked:new Set(u.agents),cursor:0,multi:!0})}else{let Z=X.steps.slice(0,B).map((z)=>z.name);if(Z.length===0){T("No earlier phases to hand back to.");return}O({kind:"picker",target:"handbackTo",options:Z,checked:new Set(u.handbackTo??[]),cursor:0,multi:!0})}},[X,YJ,D,C,u,B,h,$]),RQ=E.useCallback((Q,Z)=>{let z=Z.trim();if($(),O(null),!z)return;if(Q==="description")P((G)=>({...G,description:z}));else if(Q==="name"&&B>=0)P((G)=>({...G,steps:qQ(G.steps,B,z)}));else if(Q==="addStep"){let G=C===0?0:C;P((b)=>({...b,steps:[...b.steps.slice(0,G),{name:z,agents:[]},...b.steps.slice(G)]})),j(G+1),k("phases")}},[$,C,B,P]),TQ=E.useCallback((Q)=>{if($(),O(null),Q.target==="main"){let z=Q.options[Q.cursor];P((G)=>({...G,main:z==="(default)"?void 0:z}));return}let Z=Q.options.filter((z)=>Q.checked.has(z));if(Q.target==="agents"&&B>=0)P((z)=>({...z,steps:z.steps.map((G,b)=>b===B?{...G,agents:Z}:G)}));else if(Q.target==="handbackTo"&&B>=0)P((z)=>({...z,steps:z.steps.map((G,b)=>b===B?{...G,handbackTo:Z.length?Z:void 0}:G)}))},[$,B,P]),jQ=E.useCallback(()=>{if(B<0)return;P((Q)=>({...Q,steps:Q.steps.filter((Z,z)=>z!==B)})),j((Q)=>Math.max(0,Math.min(Q,(X?.steps.length??1)-1))),k("phases")},[X,B,P]),gJ=E.useCallback((Q)=>{if(!X||B<0)return;let Z=B+Q;if(Z<0||Z>=X.steps.length)return;P((z)=>{let G=[...z.steps],[b]=G.splice(B,1);return G.splice(Z,0,b),{...z,steps:G}}),j(Z+1)},[X,B,P]);if(e((Q,Z)=>{if(!X){if(Z.escape)U();return}if(V?.kind==="input")return;if(V?.kind==="confirmDelete"){if($(),O(null),Q==="y")jQ();return}if(V?.kind==="confirmDiscard"){if($(),O(null),Q==="y")U();return}if(V?.kind==="picker"){let z=(G)=>{$(),O((b)=>b?.kind==="picker"?G(b):b)};if(Z.upArrow)z((G)=>({...G,cursor:Math.max(0,G.cursor-1)}));else if(Z.downArrow)z((G)=>({...G,cursor:Math.min(G.options.length-1,G.cursor+1)}));else if(Q===" "&&V.multi)z((G)=>{let b=G.options[G.cursor];if(b===void 0)return G;let a=new Set(G.checked);if(a.has(b))a.delete(b);else a.add(b);return{...G,checked:a}});else if(Z.return)TQ(V);else if(Z.escape)$(),O(null);return}if(Q==="s"){bQ();return}if(Q==="p"){EQ();return}if(v==="fields"){if(Z.escape)$(),k("phases");else if(Z.upArrow)$(),L((z)=>Math.max(0,z-1));else if(Z.downArrow)$(),L((z)=>Math.min(YJ.length-1,z+1));else if(Z.return)SQ();return}if(Z.escape)if(R)$(),O({kind:"confirmDiscard"});else U();else if(Z.upArrow)$(),j((z)=>Math.max(0,z-1));else if(Z.downArrow)$(),j((z)=>Math.min(X.steps.length,z+1));else if(Z.return)$(),k("fields"),L(0);else if(Q==="a")$(),O({kind:"input",target:"addStep",value:"",cursor:0});else if(Q==="d"&&C>0)$(),O({kind:"confirmDelete"});else if(Q==="K")gJ(-1);else if(Q==="J")gJ(1)},{isActive:!0}),F)return _(N,{flexDirection:"column",paddingX:2,paddingTop:1,children:[_(M,{color:"error",children:["⚠ ",F]}),_(M,{dimColor:!0,children:["Esc to go back — fix the file by hand at .claudin/workflows/",J,"."]})]});if(!X)return q(N,{paddingX:2,paddingTop:1,children:q(M,{dimColor:!0,children:"Loading…"})});let $J=Math.max(6,H-6),r=wJ-4,o=Math.max(20,K-4-wJ-1-4-4),IQ=$J-2,GJ=(Q)=>Q?") ":" ",KJ=[];{let Q=n(`${GJ(C===0)}${X.name}`,r);KJ.push(ZJ(C===0?UJ(W.permission,Q):i.bold(Q),f(Q),r));let Z=` ${"─".repeat(Math.max(1,r-2))}`;KJ.push(ZJ(i.dim(Z),f(Z),r)),X.steps.forEach((z,G)=>{let b=C===G+1,a=n(`${GJ(b)}${z.name} ${z.agents.length}`,r);KJ.push(ZJ(b?UJ(W.permission,a):a,f(a),r))})}let fJ=V?.kind==="picker",VJ,NJ,vQ=" Prompt (p to edit) ",_J=[],mQ=kJ-2,hJ=Math.max(3,$J-kJ),cJ=hJ-2;if(fJ){let Q=V;VJ=Q.target==="main"?" main orchestrator ":` ${Q.target==="agents"?"agents":"hand back to"} · ${u?.name??X.name} `;let Z=$J-2,z=Math.max(0,Math.min(Q.cursor-Math.floor(Z/2),Q.options.length-Z));NJ=Q.options.slice(z,z+Z).map((G,b)=>{let XJ=z+b===Q.cursor,RJ=Q.multi?Q.checked.has(G)?"[x] ":"[ ] ":"",xJ=Q.target==="agents"&&h&&!h.has(G),MJ=n(`${GJ(XJ)}${RJ}${G}${xJ?" (unknown)":""}`,o),wQ=XJ?UJ(W.permission,MJ):xJ?UJ(W.error,MJ):MJ;return ZJ(wQ,f(MJ),o)})}else{VJ=C===0?` ${X.name} `:` phase: ${u?.name??""} `;let Q=(z)=>{if(z==="description")return X.description||"(empty)";if(z==="main")return X.main??"(default)";if(z==="name")return u?.name??"";if(z==="agents")return u?.agents.join(", ")||"(none)";return u?.handbackTo?.join(", ")??"—"};if(NJ=YJ.map((z,G)=>{let b=v==="fields"&&G===D,a=z==="handbackTo"?"handback":z,XJ=n(`${GJ(b)}${a}: ${Q(z)}`,o),RJ=b?UJ(W.permission,XJ):i.dim(XJ.slice(0,2+a.length+1))+XJ.slice(2+a.length+1);return ZJ(RJ,f(XJ),o)}),_J=(X.instructions?X.instructions.split(`
|
|
7
|
+
`):[]).slice(0,cJ).map((z)=>{let G=n(z,o);return ZJ(i.dim(G),f(G),o)}),_J.length===0)_J=[ZJ(i.dim("(empty — press p to write the prompt)"),f("(empty — press p to write the prompt)"),o)]}let QJ=V?.kind==="input"?V:null,yQ=QJ?.target==="addStep"?"New phase name:":QJ?.target==="name"?"Rename phase:":"Description:";return _(N,{flexDirection:"column",marginTop:1,children:[_(N,{flexDirection:"row",justifyContent:"space-between",children:[q(M,{bold:!0,color:"permission",wrap:"truncate",children:X.name}),q(M,{color:R?"warning":"success",wrap:"truncate",children:R?"● unsaved":"saved"})]}),_(N,{flexDirection:"row",marginTop:1,gap:1,children:[q(N,{flexDirection:"column",flexShrink:0,width:wJ,height:$J,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:" Phases ",position:"top",align:"start"},children:q(t,{lines:EJ(KJ,IQ,r),width:r})}),fJ?q(N,{flexDirection:"column",flexGrow:1,height:$J,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:VJ,position:"top",align:"start"},children:q(t,{lines:EJ(NJ,$J-2,o),width:o})}):_(N,{flexDirection:"column",flexGrow:1,children:[q(N,{flexDirection:"column",height:kJ,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:VJ,position:"top",align:"start"},children:q(t,{lines:EJ(NJ,mQ,o),width:o})}),q(N,{flexDirection:"column",height:hJ,overflow:"hidden",borderStyle:"round",borderColor:"subtle",paddingX:1,borderText:{content:vQ,position:"top",align:"start"},children:q(t,{lines:EJ(_J,cJ,o),width:o})})]})]}),QJ&&_(N,{flexDirection:"column",children:[q(M,{children:yQ}),q(N,{borderStyle:"round",borderDimColor:!0,paddingLeft:1,children:q(SJ,{value:QJ.value,onChange:(Q)=>O((Z)=>Z?.kind==="input"?{...Z,value:Q}:Z),onSubmit:()=>RQ(QJ.target,QJ.value),columns:80,cursorOffset:QJ.cursor,onChangeCursorOffset:(Q)=>O((Z)=>Z?.kind==="input"?{...Z,cursor:Q}:Z),showCursor:!0})}),q(M,{dimColor:!0,children:"Enter to confirm · empty + Enter to cancel"})]}),V?.kind==="confirmDelete"&&u&&_(M,{color:"warning",children:['Delete phase "',u.name,'"? (y/n)']}),V?.kind==="confirmDiscard"&&q(M,{color:"warning",children:"Discard unsaved changes? (y/n)"}),Y.length>0&&_(M,{color:"error",wrap:"truncate",children:["⚠ ",Y.join(" · ")]}),m&&q(M,{dimColor:!0,wrap:"truncate",children:m})]})}var E,wJ=26,kJ=7;var PQ=qJ(()=>{dJ();WJ();lJ();pJ();NQ();aJ();aQ();DJ();iQ();oJ();uJ();VQ();mJ();zQ();s();E=OJ(AJ(),1)});import{unlink as JX,writeFile as QX}from"fs/promises";import{join as HQ}from"path";function DQ({onRun:J,onInputActiveChange:U,onViewChange:K}){let[H,A]=p.useState([]),[W,X]=p.useState({}),[I,w]=p.useState(0),[S,F]=p.useState("list"),[g,R]=p.useState(""),[l,v]=p.useState(0),[k,C]=p.useState(null),[j,D]=p.useState(null),L=p.useCallback(()=>{OQ().then(({defs:Y,errorsByFile:P})=>{A(Y),X(P)}).catch((Y)=>x(Y))},[]);p.useEffect(L,[L]),p.useEffect(()=>{U(S!=="list")},[S,U]),p.useEffect(()=>{K?.(j!==null)},[j,K]);let V=H[Math.min(I,Math.max(0,H.length-1))],O=(Y)=>Y.sourceFile??`${Y.name}.md`,m=V?W[O(V)]:void 0,T=(Y)=>{R(""),v(0),C(null),F(Y)},h=()=>{if(V&&g.trim())J(V,g.trim());F("list")},c=async()=>{let Y=g.trim();if(!Y){F("list");return}try{let P=HQ(JJ(),`${Y}.md`);await QX(P,XX(Y)),L(),D(`${Y}.md`)}catch(P){x(P),C("Failed to create workflow.")}F("list")},$=async()=>{if(V)try{await JX(HQ(JJ(),O(V))),C(`Deleted ${V.name}.`),L()}catch(Y){x(Y),C("Failed to delete workflow.")}F("list")};if(e((Y,P)=>{if(j!==null)return;if(S==="confirmDelete"){if(Y==="y")$();else F("list");return}if(S!=="list")return;if(P.upArrow)w((B)=>Math.max(0,B-1));else if(P.downArrow)w((B)=>Math.min(H.length-1,B+1));else if(P.return&&V)T("task");else if(Y==="n")T("new");else if(Y==="d"&&V)F("confirmDelete");else if(Y==="e"&&V)C(null),D(O(V));else if(Y==="r")L()},{isActive:!0}),j!==null)return q(N,{paddingX:2,children:q(MQ,{sourceFile:j,onClose:()=>{D(null),L()}})});if(S==="task"||S==="new"){let Y=S==="task"?`Task for "${V?.name}":`:"New workflow name:";return _(N,{flexDirection:"column",paddingTop:1,paddingX:2,children:[q(zJ,{color:"permission"}),q(N,{marginTop:1,children:q(M,{children:Y})}),q(N,{borderStyle:"round",borderDimColor:!0,marginY:1,paddingLeft:1,children:q(SJ,{value:g,onChange:R,onSubmit:S==="task"?h:()=>void c(),columns:80,cursorOffset:l,onChangeCursorOffset:v,showCursor:!0})}),q(M,{dimColor:!0,children:"Enter to confirm · empty + Enter to cancel"})]})}return _(N,{flexDirection:"column",paddingTop:1,children:[q(zJ,{color:"permission"}),_(N,{flexDirection:"column",paddingX:2,marginTop:1,children:[H.length===0?q(M,{dimColor:!0,children:'No workflows. Press "n" to create one at .claudin/workflows/.'}):H.map((Y,P)=>{let B=Boolean(W[O(Y)]?.length);return _(M,{inverse:P===I,children:[P===I?"▸ ":" ",Y.name,B?" ⚠":""," ",_(M,{dimColor:!0,children:["· ",Y.steps.length," phases"]})]},Y.name)}),V&&_(N,{flexDirection:"column",marginTop:1,children:[q(M,{dimColor:!0,children:V.description}),V.steps.map((Y)=>_(M,{dimColor:!0,children:[" ",Y.name,": ",Y.agents.join(", ")||"(terminal)",Y.handbackTo?.length?` ↩ ${Y.handbackTo.join(",")}`:""]},Y.name)),m?.length?_(M,{color:"error",children:["⚠ ",m.join("; ")]}):null]}),S==="confirmDelete"&&V&&q(N,{marginTop:1,children:_(M,{color:"warning",children:['Delete "',V.name,'"? (y/n)']})}),k&&q(N,{marginTop:1,children:q(M,{dimColor:!0,children:k})})]})]})}var p,XX=(J)=>`---
|
|
8
|
+
name: ${J}
|
|
9
|
+
description: What this workflow does
|
|
10
|
+
steps:
|
|
11
|
+
- name: explore
|
|
12
|
+
agents: [explorer]
|
|
13
|
+
- name: synthesize
|
|
14
|
+
agents: [synthesizer]
|
|
15
|
+
handbackTo: [explore]
|
|
16
|
+
- name: done
|
|
17
|
+
---
|
|
18
|
+
Describe the goal and any house rules for this workflow.
|
|
19
|
+
`;var LQ=qJ(()=>{WJ();NQ();DJ();iJ();VQ();mJ();PQ();s();p=OJ(AJ(),1)});function AQ({hint:J,onExit:U,escActive:K=!0}){let H=CQ();return FQ("confirm:no",U,{context:"Settings",isActive:K}),q(N,{marginLeft:2,marginTop:1,children:q(M,{dimColor:!0,children:H.pending?`Press ${H.keyName} again to exit`:J})})}function NZ({context:J,onExit:U,initialTab:K,initialRunId:H}){let[A,W]=d.useState(K??"library"),[X,I]=d.useState(null),[w,S]=d.useState(!1),[F,g]=d.useState(!1),[R,l]=d.useState(!1),v=d.useRef(null),k=d.useRef(!0);d.useEffect(()=>{return k.current=!0,()=>{k.current=!1}},[]);let C=J.canUseTool??UX,j=d.useCallback((O,m)=>{v.current?.abort();let T=new AbortController;v.current=T,W("running");let h={...J,setAppState:()=>{},setAppStateForTasks:J.setAppStateForTasks??J.setAppState};WQ({def:O,task:m,toolUseContext:h,canUseTool:C,signal:T.signal,onProgress:(c)=>{if(k.current)I({...c})}}).then((c)=>{if(k.current)I({...c});let $=(c.artifact||"").slice(0,2000);BQ({value:`<task-notification>
|
|
20
|
+
<status>${c.status}</status>
|
|
21
|
+
<summary>Workflow "${O.name}" ${c.status} (run ${c.runId})</summary>
|
|
22
|
+
<result>${$}</result>
|
|
23
|
+
</task-notification>`,mode:"task-notification"})}).catch((c)=>x(c))},[J,C]),D=d.useCallback(()=>{v.current?.abort()},[]);e((O,m)=>{if(m.tab||m.leftArrow)W((T)=>T==="running"?"library":"running");else if(m.rightArrow)W("running")},{isActive:!w&&!F&&!R});let L=_(N,{flexDirection:"row",gap:1,children:[q(M,{bold:!0,color:"permission",children:"Workflows"}),_(M,{bold:A==="running",inverse:A==="running",children:[" ","Running"," "]}),_(M,{bold:A==="library",inverse:A==="library",children:[" ","Library"," "]})]}),V=()=>U("Workflows dialog dismissed",{display:"system"});if(A==="running")return _(N,{flexDirection:"column",children:[!F&&L,q(QQ,{liveRun:X,onStop:D,initialRunId:H,onViewChange:g}),q(AQ,{hint:F?"↑↓ select · esc back · s save":"Tab tabs · ↑↓ select · Enter view · s save · x stop · d delete · Esc close",escActive:!F,onExit:V})]});return _(N,{flexDirection:"column",children:[!R&&L,q(DQ,{onRun:j,onInputActiveChange:S,onViewChange:l}),q(AQ,{hint:R?"↑↓ nav · Enter edit · a add · d del · K/J move · p prompt · s save · Esc back":"Tab tabs · ↑↓ select · Enter run · n new · e edit · d delete · Esc close",escActive:!R,onExit:V})]})}var d,UX=async(J,U)=>({behavior:"allow",updatedInput:U});var YX=qJ(()=>{WJ();qX();$X();DJ();ZX();zX();XQ();LQ();s();d=OJ(AJ(),1)});
|
|
24
|
+
export{NZ as Zb,YX as _b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$S as b,_S as m,aT as H,cT as N,dT as K}from"./cli-1.1.34-372a0qyj.mjs";import{a6 as x,b6 as M,e6 as D,g6 as R,q6 as L,s6 as O,t6 as _}from"./cli-1.1.34-1xg52b7q.mjs";import{F_ as Y,Tda as X,Tea as G,Yda as Z,jea as A,sba as j,uba as P}from"./cli-1.1.34-wwjkncsv.mjs";import{bka as $,jka as I}from"./cli-1.1.34-ev8ffgr9.mjs";import{Iqa as F}from"./cli-1.1.34-4x915j9t.mjs";function V(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:w,CLAUDE_CODE_OAUTH_TOKEN:C,...U}=q;return U}function k(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!H(B))z[B]=Q;return z}function p(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return p(k(V(q)))}function S(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Y().env));for(let z of h){if(z==="policySettings")continue;if(!j(z))continue;Object.assign(process.env,J(X(z)?.env))}m(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Z()?.env);for(let[z,B]of Object.entries(q))if(N.has(z.toUpperCase()))process.env[z]=B}function a(){Object.assign(process.env,J(Y().env)),Object.assign(process.env,J(Z()?.env)),x(),D(),O(),L()}var W,h;var T=F(()=>{b();M();G();I();K();R();_();P();A();h=["userSettings","flagSettings","policySettings"]});
|
|
2
|
+
export{S as Pd,a as Qd,T as Rd};
|