@claudiolabs/claudin 0.6.5 → 0.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -25
- package/dist/chunks/AgentTool-0.6.7-f7t2mgqb.mjs +1 -0
- package/dist/chunks/App-0.6.7-9x70f9jb.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.6.7-2tb75j23.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.6.7-afdtan0w.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.6.7-pyzr75b3.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.6.7-nfncnj0q.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.7-n2e142wm.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.6.7-phc7vznz.mjs +1 -0
- package/dist/chunks/DiffDialog-0.6.7-s9x3mya9.mjs +7 -0
- package/dist/chunks/Doctor-0.6.7-smded214.mjs +1 -0
- package/dist/chunks/ExplorerDialog-0.6.7-4hy6ry9q.mjs +6 -0
- package/dist/chunks/Grove-0.6.7-ahyrvw0t.mjs +1 -0
- package/dist/chunks/ITermBackend-0.6.7-fcnt914g.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.6.7-00bjfj0e.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.6.7-13q0q9de.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.6.7-858rv0qw.mjs +1 -0
- package/dist/chunks/Onboarding-0.6.7-dt8tdzek.mjs +1 -0
- package/dist/chunks/ProviderManager-0.6.7-6v39p38e.mjs +1 -0
- package/dist/chunks/REPL-0.6.7-q0nc0w32.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.6.7-pdhahpga.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.6.7-m392exrv.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.6.7-1dr1gjn2.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.7-sv7jdzae.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.6.7-p36an880.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.6.7-aefcv1eq.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.6.7-ff2nyjj7.mjs +1 -0
- package/dist/chunks/TrustDialog-0.6.7-seknmzsh.mjs +1 -0
- package/dist/chunks/activeProvider-0.6.7-0w1yte74.mjs +1 -0
- package/dist/chunks/add-dir-0.6.7-85gjr3q5.mjs +1 -0
- package/dist/chunks/agents-0.6.7-bwmzpbmy.mjs +110 -0
- package/dist/chunks/agents-0.6.7-zctgtzc9.mjs +3 -0
- package/dist/chunks/api-0.6.7-mfw9d6jg.mjs +1 -0
- package/dist/chunks/asciicast-0.6.7-tecyvajs.mjs +1 -0
- package/dist/chunks/assistant-0.6.7-0krnapvp.mjs +1 -0
- package/dist/chunks/auth-0.6.7-vsm2s3fs.mjs +1 -0
- package/dist/chunks/auth-0.6.7-y4kcahyj.mjs +1 -0
- package/dist/chunks/autoMode-0.6.7-ysajwbz7.mjs +48 -0
- package/dist/chunks/autoUpdater-0.6.7-ztgvnr84.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.6.7-hyrc03zs.mjs +1 -0
- package/dist/chunks/branch-0.6.7-hs9qva1m.mjs +4 -0
- package/dist/chunks/bridge-0.6.7-6tz3q7eh.mjs +2 -0
- package/dist/chunks/bridgeConfig-0.6.7-nb52xna6.mjs +1 -0
- package/dist/chunks/bridgeEnabled-0.6.7-a4xw7wv8.mjs +1 -0
- package/dist/chunks/bridgeMain-0.6.7-tdh5qxzb.mjs +88 -0
- package/dist/chunks/bridgePointer-0.6.7-dh27kqnd.mjs +1 -0
- package/dist/chunks/btw-0.6.7-7mwpkxc8.mjs +1 -0
- package/dist/chunks/buddy-0.6.7-nq3yjbfx.mjs +3 -0
- package/dist/chunks/cacache-0.6.7-g9830zbt.mjs +1 -0
- package/dist/chunks/cache-probe-0.6.7-f97mkfrz.mjs +21 -0
- package/dist/chunks/cacheStats-0.6.7-cajakjmn.mjs +4 -0
- package/dist/chunks/caches-0.6.7-j5y9mwvb.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.6.7-86f3d3gt.mjs +1 -0
- package/dist/chunks/claudemd-0.6.7-bhnp37nv.mjs +1 -0
- package/dist/chunks/clear-0.6.7-b2weanr6.mjs +1 -0
- package/dist/chunks/clearTerminal-0.6.7-dtmyqs1m.mjs +1 -0
- package/dist/chunks/cli-0.6.7-04v8p8ay.mjs +2 -0
- package/dist/chunks/cli-0.6.7-09aymh1b.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0a04vzzk.mjs +28 -0
- package/dist/chunks/cli-0.6.7-0a406bqw.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0c5ban8m.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0ecsc6v5.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0eeyfjk8.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0fc4sq47.mjs +42 -0
- package/dist/chunks/cli-0.6.7-0ncx2c9t.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0qzj0d6r.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0t1e9vab.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0t5ssfvj.mjs +2 -0
- package/dist/chunks/cli-0.6.7-0z5z87v6.mjs +1 -0
- package/dist/chunks/cli-0.6.7-105zxdx5.mjs +2 -0
- package/dist/chunks/cli-0.6.7-11a89p5q.mjs +2 -0
- package/dist/chunks/cli-0.6.7-15mn3n46.mjs +2 -0
- package/dist/chunks/cli-0.6.7-17dafwxd.mjs +2 -0
- package/dist/chunks/cli-0.6.7-1jmt8r8f.mjs +7 -0
- package/dist/chunks/cli-0.6.7-1mvkcg2k.mjs +2 -0
- package/dist/chunks/cli-0.6.7-1nxk10ra.mjs +12 -0
- package/dist/chunks/cli-0.6.7-1v8p5kj1.mjs +2 -0
- package/dist/chunks/cli-0.6.7-1vdk7j2f.mjs +2 -0
- package/dist/chunks/cli-0.6.7-1wy6neqr.mjs +2 -0
- package/dist/chunks/cli-0.6.7-26ph2hrd.mjs +2 -0
- package/dist/chunks/cli-0.6.7-26tkvqk3.mjs +2 -0
- package/dist/chunks/cli-0.6.7-29j5a7qt.mjs +2 -0
- package/dist/chunks/cli-0.6.7-2kkhf54p.mjs +133 -0
- package/dist/chunks/cli-0.6.7-2rppvwcw.mjs +2 -0
- package/dist/chunks/cli-0.6.7-2rxv4h2n.mjs +5348 -0
- package/dist/chunks/cli-0.6.7-30y87jp9.mjs +3 -0
- package/dist/chunks/cli-0.6.7-31vjvqm0.mjs +2 -0
- package/dist/chunks/cli-0.6.7-32sp32ph.mjs +2 -0
- package/dist/chunks/cli-0.6.7-37a1n221.mjs +2 -0
- package/dist/chunks/cli-0.6.7-393mf77x.mjs +2 -0
- package/dist/chunks/cli-0.6.7-3anc14y3.mjs +2 -0
- package/dist/chunks/cli-0.6.7-3nk6g2dp.mjs +2 -0
- package/dist/chunks/cli-0.6.7-3rkngb3p.mjs +2 -0
- package/dist/chunks/cli-0.6.7-3w59rctc.mjs +2 -0
- package/dist/chunks/cli-0.6.7-3zgmbaw1.mjs +2 -0
- package/dist/chunks/cli-0.6.7-417g4eq7.mjs +2 -0
- package/dist/chunks/cli-0.6.7-4723xt8g.mjs +4 -0
- package/dist/chunks/cli-0.6.7-4qezg54y.mjs +2 -0
- package/dist/chunks/cli-0.6.7-4qv89taa.mjs +2 -0
- package/dist/chunks/cli-0.6.7-4r8s96as.mjs +18 -0
- package/dist/chunks/cli-0.6.7-4rswb0s0.mjs +2 -0
- package/dist/chunks/cli-0.6.7-4y6eh566.mjs +2 -0
- package/dist/chunks/cli-0.6.7-568qkrtn.mjs +2 -0
- package/dist/chunks/cli-0.6.7-5jkermx7.mjs +2 -0
- package/dist/chunks/cli-0.6.7-5tksrgt5.mjs +2 -0
- package/dist/chunks/cli-0.6.7-5y4c00t6.mjs +2 -0
- package/dist/chunks/cli-0.6.7-6ezmhmp0.mjs +67 -0
- package/dist/chunks/cli-0.6.7-6fh5e7r0.mjs +2 -0
- package/dist/chunks/cli-0.6.7-79a1ryqj.mjs +17 -0
- package/dist/chunks/cli-0.6.7-7eze8zyh.mjs +2 -0
- package/dist/chunks/cli-0.6.7-7ggj90ge.mjs +26 -0
- package/dist/chunks/cli-0.6.7-7hqt2520.mjs +2 -0
- package/dist/chunks/cli-0.6.7-7jnmn6s1.mjs +2 -0
- package/dist/chunks/cli-0.6.7-7p1zvk1f.mjs +4 -0
- package/dist/chunks/cli-0.6.7-7q89ngt8.mjs +4 -0
- package/dist/chunks/cli-0.6.7-7wfcpd35.mjs +5 -0
- package/dist/chunks/cli-0.6.7-895afk0q.mjs +39 -0
- package/dist/chunks/cli-0.6.7-8hg68yde.mjs +3 -0
- package/dist/chunks/cli-0.6.7-8npy06pd.mjs +2 -0
- package/dist/chunks/cli-0.6.7-8nt66wx8.mjs +2 -0
- package/dist/chunks/cli-0.6.7-8rckbxrq.mjs +2 -0
- package/dist/chunks/cli-0.6.7-94jxfcfx.mjs +2 -0
- package/dist/chunks/cli-0.6.7-986a2c9a.mjs +20 -0
- package/dist/chunks/cli-0.6.7-9ewdkgf6.mjs +2 -0
- package/dist/chunks/cli-0.6.7-9qjmzyph.mjs +59 -0
- package/dist/chunks/cli-0.6.7-9zvbhkwn.mjs +2 -0
- package/dist/chunks/cli-0.6.7-a49h84jx.mjs +2 -0
- package/dist/chunks/cli-0.6.7-a8d5a7gy.mjs +2 -0
- package/dist/chunks/cli-0.6.7-ad305tsz.mjs +2 -0
- package/dist/chunks/cli-0.6.7-aj0r6e7f.mjs +2 -0
- package/dist/chunks/cli-0.6.7-ajy2kcrw.mjs +4 -0
- package/dist/chunks/cli-0.6.7-askr0gdn.mjs +12 -0
- package/dist/chunks/cli-0.6.7-axgab18a.mjs +2 -0
- package/dist/chunks/cli-0.6.7-b6ssk5st.mjs +50 -0
- package/dist/chunks/cli-0.6.7-bf5gjw6d.mjs +4 -0
- package/dist/chunks/cli-0.6.7-bgtwgprg.mjs +2 -0
- package/dist/chunks/cli-0.6.7-bvke740f.mjs +58 -0
- package/dist/chunks/cli-0.6.7-bvsyxh29.mjs +45 -0
- package/dist/chunks/cli-0.6.7-c9drqby8.mjs +5 -0
- package/dist/chunks/cli-0.6.7-cc1w6ch6.mjs +2 -0
- package/dist/chunks/cli-0.6.7-csw6s95q.mjs +2 -0
- package/dist/chunks/cli-0.6.7-cykfmytk.mjs +2 -0
- package/dist/chunks/cli-0.6.7-d0hce9x9.mjs +2 -0
- package/dist/chunks/cli-0.6.7-d513frqa.mjs +2 -0
- package/dist/chunks/cli-0.6.7-d6md6s9z.mjs +2 -0
- package/dist/chunks/cli-0.6.7-dn51gm8s.mjs +2 -0
- package/dist/chunks/cli-0.6.7-dzhzeyee.mjs +2 -0
- package/dist/chunks/cli-0.6.7-e96htnt8.mjs +2 -0
- package/dist/chunks/cli-0.6.7-egf9dysz.mjs +2 -0
- package/dist/chunks/cli-0.6.7-ej85ys91.mjs +133 -0
- package/dist/chunks/cli-0.6.7-ery7wb2b.mjs +25 -0
- package/dist/chunks/cli-0.6.7-ewn2cwb7.mjs +6 -0
- package/dist/chunks/cli-0.6.7-ex9w59mx.mjs +3 -0
- package/dist/chunks/cli-0.6.7-fbgdkq7p.mjs +2 -0
- package/dist/chunks/cli-0.6.7-fbkbnkmx.mjs +2 -0
- package/dist/chunks/cli-0.6.7-g3bdwra6.mjs +12 -0
- package/dist/chunks/cli-0.6.7-g4r471w6.mjs +15 -0
- package/dist/chunks/cli-0.6.7-ggbx3zye.mjs +21 -0
- package/dist/chunks/cli-0.6.7-gj1zv8je.mjs +2 -0
- package/dist/chunks/cli-0.6.7-gp1x8mcf.mjs +2 -0
- package/dist/chunks/cli-0.6.7-hcp3t5gk.mjs +2 -0
- package/dist/chunks/cli-0.6.7-hd512c6x.mjs +2 -0
- package/dist/chunks/cli-0.6.7-hsf1v92p.mjs +2 -0
- package/dist/chunks/cli-0.6.7-hsxghzzr.mjs +2 -0
- package/dist/chunks/cli-0.6.7-hvjb13p8.mjs +2 -0
- package/dist/chunks/cli-0.6.7-hxpbsv1t.mjs +2 -0
- package/dist/chunks/cli-0.6.7-jayzyra3.mjs +2 -0
- package/dist/chunks/cli-0.6.7-jry3hr0z.mjs +18 -0
- package/dist/chunks/cli-0.6.7-jt8cfe25.mjs +3 -0
- package/dist/chunks/cli-0.6.7-jvyry09r.mjs +3 -0
- package/dist/chunks/cli-0.6.7-k0h6t7d8.mjs +3 -0
- package/dist/chunks/cli-0.6.7-k69edthm.mjs +2 -0
- package/dist/chunks/cli-0.6.7-k7qq705k.mjs +2 -0
- package/dist/chunks/cli-0.6.7-kfm63wm2.mjs +17 -0
- package/dist/chunks/cli-0.6.7-m5a4md2p.mjs +24 -0
- package/dist/chunks/cli-0.6.7-m7f7sbcz.mjs +3 -0
- package/dist/chunks/cli-0.6.7-m9gs7avb.mjs +2 -0
- package/dist/chunks/cli-0.6.7-me667czz.mjs +2 -0
- package/dist/chunks/cli-0.6.7-mfw4bdkw.mjs +2 -0
- package/dist/chunks/cli-0.6.7-mgzf6br3.mjs +2 -0
- package/dist/chunks/cli-0.6.7-mh4wva6p.mjs +2 -0
- package/dist/chunks/cli-0.6.7-mjkd8p19.mjs +16 -0
- package/dist/chunks/cli-0.6.7-mq2xzatd.mjs +34 -0
- package/dist/chunks/cli-0.6.7-mr3rwnv4.mjs +2 -0
- package/dist/chunks/cli-0.6.7-msab4rsa.mjs +3 -0
- package/dist/chunks/cli-0.6.7-mxbbt73y.mjs +2 -0
- package/dist/chunks/cli-0.6.7-n4hcg1jw.mjs +2 -0
- package/dist/chunks/cli-0.6.7-n7v99j1c.mjs +3 -0
- package/dist/chunks/cli-0.6.7-n9b6fykd.mjs +2 -0
- package/dist/chunks/cli-0.6.7-ndz1ybhe.mjs +2 -0
- package/dist/chunks/cli-0.6.7-nembqgq6.mjs +4 -0
- package/dist/chunks/cli-0.6.7-njtz9caz.mjs +2 -0
- package/dist/chunks/cli-0.6.7-nkk7dy60.mjs +3 -0
- package/dist/chunks/cli-0.6.7-nkngqbzm.mjs +2 -0
- package/dist/chunks/cli-0.6.7-nmasp64q.mjs +2 -0
- package/dist/chunks/cli-0.6.7-nsaek892.mjs +2 -0
- package/dist/chunks/cli-0.6.7-nyj8vj8s.mjs +2 -0
- package/dist/chunks/cli-0.6.7-p01n2g5q.mjs +3 -0
- package/dist/chunks/cli-0.6.7-p0s9xa7d.mjs +2 -0
- package/dist/chunks/cli-0.6.7-p140ghs7.mjs +4 -0
- package/dist/chunks/cli-0.6.7-p1s9dq5f.mjs +2 -0
- package/dist/chunks/cli-0.6.7-p76h2hj4.mjs +193 -0
- package/dist/chunks/cli-0.6.7-p77b3p80.mjs +4 -0
- package/dist/chunks/cli-0.6.7-p8qqm0e2.mjs +10 -0
- package/dist/chunks/cli-0.6.7-pacmjx4t.mjs +6 -0
- package/dist/chunks/cli-0.6.7-pd4qacrw.mjs +2 -0
- package/dist/chunks/cli-0.6.7-pt6c37tf.mjs +2 -0
- package/dist/chunks/cli-0.6.7-pz0hvq11.mjs +2 -0
- package/dist/chunks/cli-0.6.7-q2qk5c16.mjs +2 -0
- package/dist/chunks/cli-0.6.7-q7rhxc3k.mjs +2 -0
- package/dist/chunks/cli-0.6.7-qcc8znjg.mjs +2 -0
- package/dist/chunks/cli-0.6.7-qkzax44g.mjs +2 -0
- package/dist/chunks/cli-0.6.7-qnpad07x.mjs +15 -0
- package/dist/chunks/cli-0.6.7-qwv7z40j.mjs +2 -0
- package/dist/chunks/cli-0.6.7-qz4f20t8.mjs +9 -0
- package/dist/chunks/cli-0.6.7-r2phypw4.mjs +2 -0
- package/dist/chunks/cli-0.6.7-r4494gs0.mjs +2 -0
- package/dist/chunks/cli-0.6.7-r4njgjve.mjs +2 -0
- package/dist/chunks/cli-0.6.7-r57fq6gw.mjs +4 -0
- package/dist/chunks/cli-0.6.7-rcx8mb9z.mjs +2 -0
- package/dist/chunks/cli-0.6.7-rgfh878z.mjs +2 -0
- package/dist/chunks/cli-0.6.7-rp0ejp3a.mjs +2 -0
- package/dist/chunks/cli-0.6.7-rq1v6xnn.mjs +2 -0
- package/dist/chunks/cli-0.6.7-rqfxfpg7.mjs +2 -0
- package/dist/chunks/cli-0.6.7-sdxzxe1y.mjs +2 -0
- package/dist/chunks/cli-0.6.7-sea2kbnt.mjs +2 -0
- package/dist/chunks/cli-0.6.7-sfc53wbe.mjs +2 -0
- package/dist/chunks/cli-0.6.7-sfvrze2k.mjs +2 -0
- package/dist/chunks/cli-0.6.7-sh9fbs9v.mjs +2 -0
- package/dist/chunks/cli-0.6.7-sw46gwfw.mjs +2 -0
- package/dist/chunks/cli-0.6.7-sx1q6ybw.mjs +2 -0
- package/dist/chunks/cli-0.6.7-t4vdc40t.mjs +2 -0
- package/dist/chunks/cli-0.6.7-tb1cvasf.mjs +5 -0
- package/dist/chunks/cli-0.6.7-tg6w7ex7.mjs +8 -0
- package/dist/chunks/cli-0.6.7-tnrt8ht0.mjs +2 -0
- package/dist/chunks/cli-0.6.7-tqfm4g33.mjs +2 -0
- package/dist/chunks/cli-0.6.7-tthw17vc.mjs +6 -0
- package/dist/chunks/cli-0.6.7-v1emd8z7.mjs +4 -0
- package/dist/chunks/cli-0.6.7-v65b4qmr.mjs +2 -0
- package/dist/chunks/cli-0.6.7-v82zs0dw.mjs +6 -0
- package/dist/chunks/cli-0.6.7-vd2t62t5.mjs +2 -0
- package/dist/chunks/cli-0.6.7-vdks0afp.mjs +3 -0
- package/dist/chunks/cli-0.6.7-vs95ynh5.mjs +2 -0
- package/dist/chunks/cli-0.6.7-vy64g49j.mjs +2 -0
- package/dist/chunks/cli-0.6.7-w2amr6nt.mjs +2 -0
- package/dist/chunks/cli-0.6.7-wbqq7cmg.mjs +15 -0
- package/dist/chunks/cli-0.6.7-wjg0q7hk.mjs +2 -0
- package/dist/chunks/cli-0.6.7-wyped9p6.mjs +2 -0
- package/dist/chunks/cli-0.6.7-xjbwt2hg.mjs +2 -0
- package/dist/chunks/cli-0.6.7-xzf3g8pg.mjs +3 -0
- package/dist/chunks/cli-0.6.7-y6pqw2vj.mjs +2 -0
- package/dist/chunks/cli-0.6.7-ybk07j40.mjs +2 -0
- package/dist/chunks/cli-0.6.7-z26mhn5a.mjs +2 -0
- package/dist/chunks/cli-0.6.7-z4dw5tyz.mjs +2 -0
- package/dist/chunks/cli-0.6.7-z7jett9s.mjs +2 -0
- package/dist/chunks/cli-0.6.7-zwd8kz5t.mjs +24 -0
- package/dist/chunks/cli-0.6.7-zwf5adf9.mjs +2 -0
- package/dist/chunks/client-0.6.7-445v9987.mjs +1 -0
- package/dist/chunks/color-0.6.7-856m55kg.mjs +1 -0
- package/dist/chunks/compact-0.6.7-xkjxsjky.mjs +3 -0
- package/dist/chunks/config-0.6.7-8cp9wg00.mjs +1 -0
- package/dist/chunks/config-0.6.7-h357gwre.mjs +1 -0
- package/dist/chunks/constants-0.6.7-jz2rzgah.mjs +1 -0
- package/dist/chunks/context-0.6.7-52mqtjt5.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.6.7-0vn31bty.mjs +1 -0
- package/dist/chunks/conversation-0.6.7-6rb0jxt5.mjs +1 -0
- package/dist/chunks/copilotHeaders-0.6.7-6szcxcqp.mjs +1 -0
- package/dist/chunks/copy-0.6.7-kt6m78c9.mjs +9 -0
- package/dist/chunks/cost-0.6.7-mcmacwts.mjs +1 -0
- package/dist/chunks/createSSHSession-0.6.7-2bxjzphp.mjs +1 -0
- package/dist/chunks/createSession-0.6.7-h53s0r94.mjs +1 -0
- package/dist/chunks/debug-0.6.7-40mxhr43.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.6.7-swjqrq2d.mjs +1367 -0
- package/dist/chunks/desktop-0.6.7-m8hceses.mjs +1 -0
- package/dist/chunks/detectRepository-0.6.7-37snr69q.mjs +1 -0
- package/dist/chunks/detection-0.6.7-796dd7my.mjs +1 -0
- package/dist/chunks/diff-0.6.7-jvhy5bfv.mjs +1 -0
- package/dist/chunks/doctor-0.6.7-69xecv72.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.6.7-86wn5fas.mjs +1 -0
- package/dist/chunks/earlyInput-0.6.7-j5kqcad7.mjs +1 -0
- package/dist/chunks/effort-0.6.7-pzsgdygp.mjs +10 -0
- package/dist/chunks/envLessBridgeConfig-0.6.7-8ev8zrnr.mjs +1 -0
- package/dist/chunks/envUtils-0.6.7-t2mfcf3k.mjs +1 -0
- package/dist/chunks/environmentSelection-0.6.7-qsjyn0qh.mjs +1 -0
- package/dist/chunks/environments-0.6.7-s37ppzq2.mjs +1 -0
- package/dist/chunks/errors-0.6.7-ewn9ej98.mjs +1 -0
- package/dist/chunks/exampleCommands-0.6.7-ha5gh86w.mjs +1 -0
- package/dist/chunks/exit-0.6.7-ke7w1zfb.mjs +1 -0
- package/dist/chunks/explorer-0.6.7-mwasq7vb.mjs +1 -0
- package/dist/chunks/export-0.6.7-nxr4yk69.mjs +2 -0
- package/dist/chunks/extra-usage-0.6.7-4y4y16s7.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.6.7-39bqy32f.mjs +1 -0
- package/dist/chunks/fast-0.6.7-kq9cp91g.mjs +1 -0
- package/dist/chunks/feedback-0.6.7-negh6v8m.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.6.7-tx7c7x8t.mjs +1 -0
- package/dist/chunks/git-0.6.7-2vwe8z3v.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.6.7-33qbe5yn.mjs +1 -0
- package/dist/chunks/goal-0.6.7-h6jz54qb.mjs +4 -0
- package/dist/chunks/grove-0.6.7-54ezkxs0.mjs +1 -0
- package/dist/chunks/growthbook-0.6.7-dtryf1q9.mjs +1 -0
- package/dist/chunks/headless-0.6.7-35yksmzv.mjs +2 -0
- package/dist/chunks/heapdump-0.6.7-k6xhk8rq.mjs +6 -0
- package/dist/chunks/help-0.6.7-xe78z9ep.mjs +1 -0
- package/dist/chunks/hookChains-0.6.7-cr0c8y5v.mjs +3 -0
- package/dist/chunks/hooks-0.6.7-3dzcec4j.mjs +79 -0
- package/dist/chunks/hooks-0.6.7-8d0h5mh8.mjs +1 -0
- package/dist/chunks/ide-0.6.7-5yx4zawt.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.6.7-58mhvg4s.mjs +1 -0
- package/dist/chunks/inboundAttachments-0.6.7-9afh5jdh.mjs +1 -0
- package/dist/chunks/index-0.6.7-0p9m5cfc.mjs +1 -0
- package/dist/chunks/index-0.6.7-1ngjds1q.mjs +30 -0
- package/dist/chunks/index-0.6.7-269433vt.mjs +2 -0
- package/dist/chunks/index-0.6.7-299hd0kq.mjs +1 -0
- package/dist/chunks/index-0.6.7-2p1qzv7b.mjs +9 -0
- package/dist/chunks/index-0.6.7-7fw7s1w6.mjs +1 -0
- package/dist/chunks/index-0.6.7-938hete3.mjs +1 -0
- package/dist/chunks/index-0.6.7-9qxbggwj.mjs +1 -0
- package/dist/chunks/index-0.6.7-adw6e99t.mjs +1 -0
- package/dist/chunks/index-0.6.7-da5n32m6.mjs +1 -0
- package/dist/chunks/index-0.6.7-ebdnq1xs.mjs +1 -0
- package/dist/chunks/index-0.6.7-fewh0t9g.mjs +1 -0
- package/dist/chunks/index-0.6.7-jyep217e.mjs +1 -0
- package/dist/chunks/index-0.6.7-mmh99nq4.mjs +1 -0
- package/dist/chunks/index-0.6.7-p9vm0q7s.mjs +2 -0
- package/dist/chunks/index-0.6.7-pspakten.mjs +1 -0
- package/dist/chunks/index-0.6.7-qy50jasm.mjs +5 -0
- package/dist/chunks/index-0.6.7-r7sewgza.mjs +1 -0
- package/dist/chunks/index-0.6.7-tet87444.mjs +1 -0
- package/dist/chunks/index-0.6.7-vwv8f9ey.mjs +1 -0
- package/dist/chunks/index-0.6.7-xhxjqdft.mjs +1 -0
- package/dist/chunks/index-0.6.7-yc13tnk8.mjs +1 -0
- package/dist/chunks/index-0.6.7-zm9ed9xd.mjs +9 -0
- package/dist/chunks/init-0.6.7-9mxee8s9.mjs +1 -0
- package/dist/chunks/initReplBridge-0.6.7-2v1w7wq6.mjs +1 -0
- package/dist/chunks/ink-0.6.7-24swqw8m.mjs +1 -0
- package/dist/chunks/insights-0.6.7-wf368crb.mjs +870 -0
- package/dist/chunks/install-0.6.7-a9dezzjy.mjs +1 -0
- package/dist/chunks/install-github-app-0.6.7-wr0r1fb5.mjs +149 -0
- package/dist/chunks/install-slack-app-0.6.7-ftc8w786.mjs +1 -0
- package/dist/chunks/instrumentation-0.6.7-y1xv08zm.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.6.7-kg2yqwhs.mjs +1 -0
- package/dist/chunks/keybindings-0.6.7-xa10wdn0.mjs +2 -0
- package/dist/chunks/knowledge-0.6.7-p8ys3wf6.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.6.7-7ss3jynk.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.6.7-g16npyc7.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.7-d1p7v7wd.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.7-qy17rc72.mjs +1 -0
- package/dist/chunks/log-0.6.7-a9pyn4zr.mjs +1 -0
- package/dist/chunks/main-0.6.7-epme77xk.mjs +1 -0
- package/dist/chunks/managedEnv-0.6.7-1h0tpwq1.mjs +1 -0
- package/dist/chunks/mcp-0.6.7-1pq6d47c.mjs +17 -0
- package/dist/chunks/mcp-0.6.7-krdmdzbj.mjs +4 -0
- package/dist/chunks/mcp-0.6.7-sh0wnst3.mjs +1 -0
- package/dist/chunks/mcpb-0.6.7-wethrsb6.mjs +1 -0
- package/dist/chunks/memory-0.6.7-wwbx8j9h.mjs +3 -0
- package/dist/chunks/model-0.6.7-bnf162h5.mjs +2 -0
- package/dist/chunks/model-0.6.7-ta2zt9yw.mjs +1 -0
- package/dist/chunks/node-0.6.7-9wgtbtkn.mjs +12 -0
- package/dist/chunks/oauth-0.6.7-ecry38es.mjs +1 -0
- package/dist/chunks/openaiShim-0.6.7-6haddefk.mjs +14 -0
- package/dist/chunks/output-style-0.6.7-heg5p49f.mjs +1 -0
- package/dist/chunks/package-FMOR3ELU-0.6.7-g0c2811q.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.6.7-rmje9xpc.mjs +1 -0
- package/dist/chunks/parser-0.6.7-dwxttek7.mjs +1 -0
- package/dist/chunks/passes-0.6.7-6md5xpaz.mjs +1 -0
- package/dist/chunks/permissions-0.6.7-25nzz9y0.mjs +3 -0
- package/dist/chunks/permissions-0.6.7-bm6zx02e.mjs +1 -0
- package/dist/chunks/plan-0.6.7-9pxaje2z.mjs +1 -0
- package/dist/chunks/plist-0.6.7-vcn459ke.mjs +1 -0
- package/dist/chunks/plugin-0.6.7-a5erdt59.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.6.7-4v446m9d.mjs +1 -0
- package/dist/chunks/plugins-0.6.7-g2r5qgvr.mjs +9 -0
- package/dist/chunks/preActionHook-0.6.7-m3b66d2g.mjs +2 -0
- package/dist/chunks/print-0.6.7-qwsqdjpa.mjs +57 -0
- package/dist/chunks/privacy-settings-0.6.7-f7mdzrj9.mjs +1 -0
- package/dist/chunks/process-0.6.7-mwpj2ag5.mjs +1 -0
- package/dist/chunks/processBashCommand-0.6.7-zmq7s8bg.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.6.7-aeq77f0r.mjs +9 -0
- package/dist/chunks/prompt-0.6.7-bjk6r969.mjs +1 -0
- package/dist/chunks/prompt-0.6.7-cqwn4ebm.mjs +1 -0
- package/dist/chunks/prompts-0.6.7-sx1ddpn3.mjs +1 -0
- package/dist/chunks/protocolHandler-0.6.7-4htrgj10.mjs +13 -0
- package/dist/chunks/provider-0.6.7-cf13j8jp.mjs +2 -0
- package/dist/chunks/providerProfiles-0.6.7-s1vbbbf8.mjs +1 -0
- package/dist/chunks/providerValidation-0.6.7-d5tsv9wn.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.6.7-xxb91evy.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.6.7-qmmn95tv.mjs +34 -0
- package/dist/chunks/registry-0.6.7-vnf153w2.mjs +1 -0
- package/dist/chunks/release-notes-0.6.7-140nchxs.mjs +5 -0
- package/dist/chunks/reload-plugins-0.6.7-2zjnq8rk.mjs +2 -0
- package/dist/chunks/remote-env-0.6.7-dmn903f9.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.6.7-vjavg15v.mjs +1 -0
- package/dist/chunks/remoteSession-0.6.7-j6t9wnvq.mjs +1 -0
- package/dist/chunks/rename-0.6.7-9hky49hm.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.6.7-fg56fjhe.mjs +1 -0
- package/dist/chunks/replLauncher-0.6.7-135zqkvm.mjs +1 -0
- package/dist/chunks/resume-0.6.7-ag66nvjc.mjs +2 -0
- package/dist/chunks/rewind-0.6.7-pbgnt37r.mjs +1 -0
- package/dist/chunks/rootOptions-0.6.7-dhbhchhw.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.6.7-wav9ed7k.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.6.7-xvjvjn90.mjs +1 -0
- package/dist/chunks/session-0.6.7-dv8ptwrb.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.6.7-k5zpyw84.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.6.7-rrcrsek8.mjs +1 -0
- package/dist/chunks/sessionStorage-0.6.7-fx0mbvg6.mjs +1 -0
- package/dist/chunks/settings-0.6.7-nwqqfy0f.mjs +1 -0
- package/dist/chunks/setup-0.6.7-1w2gtqvq.mjs +5 -0
- package/dist/chunks/sinks-0.6.7-rh7wgd1s.mjs +1 -0
- package/dist/chunks/skills-0.6.7-p7nm0dqx.mjs +1 -0
- package/dist/chunks/startupProfiler-0.6.7-0sgmtd5m.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.6.7-pe8vnbmy.mjs +1 -0
- package/dist/chunks/state-0.6.7-7zgmm7bx.mjs +1 -0
- package/dist/chunks/stats-0.6.7-qwjhmd0m.mjs +6 -0
- package/dist/chunks/status-0.6.7-4dybregh.mjs +1 -0
- package/dist/chunks/stickers-0.6.7-me3v3dmh.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.6.7-qnce4qzp.mjs +1 -0
- package/dist/chunks/tasks-0.6.7-sbx5a37t.mjs +1 -0
- package/dist/chunks/teamHelpers-0.6.7-pwbpqycb.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.6.7-qef93h04.mjs +1 -0
- package/dist/chunks/teleport-0.6.7-rtj4ts5d.mjs +1 -0
- package/dist/chunks/terminalSetup-0.6.7-tka4bjp2.mjs +1 -0
- package/dist/chunks/theme-0.6.7-x8qqpmm6.mjs +1 -0
- package/dist/chunks/thinkback-0.6.7-w6wj1na3.mjs +1 -0
- package/dist/chunks/thinkback-play-0.6.7-m433zrvk.mjs +1 -0
- package/dist/chunks/toolPool-0.6.7-5x90r1f5.mjs +1 -0
- package/dist/chunks/toolSearch-0.6.7-ev30cxmd.mjs +1 -0
- package/dist/chunks/tools-0.6.7-w23c68c1.mjs +1 -0
- package/dist/chunks/trustedDevice-0.6.7-yp482r12.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.6.7-6qtfbqqk.mjs +69 -0
- package/dist/chunks/types-0.6.7-q8m8v654.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-0.6.7-8azkbc2y.mjs +4 -0
- package/dist/chunks/update-0.6.7-gwfz54bh.mjs +86 -0
- package/dist/chunks/upgrade-0.6.7-3mraezx0.mjs +1 -0
- package/dist/chunks/upload-0.6.7-xxfcdyx1.mjs +7 -0
- package/dist/chunks/upstreamproxy-0.6.7-5w2ftmfc.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.6.7-3jfvm422.mjs +1 -0
- package/dist/chunks/usage-0.6.7-pkmqvqgq.mjs +1 -0
- package/dist/chunks/util-0.6.7-3z6r92wt.mjs +1 -0
- package/dist/chunks/utils-0.6.7-sdkkjj30.mjs +1 -0
- package/dist/chunks/vim-0.6.7-3rsss4ez.mjs +1 -0
- package/dist/chunks/watcher-0.6.7-kh7rkhx8.mjs +1 -0
- package/dist/chunks/wiki-0.6.7-jrn54nk5.mjs +132 -0
- package/dist/chunks/worktree-0.6.7-214cy52d.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.6.7-3z7e768n.mjs +1 -0
- package/dist/chunks/wrapper-0.6.7-h3kjv9nf.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +14 -14
- package/dist/chunks/AgentTool-0.6.5-9pre88qb.mjs +0 -1
- package/dist/chunks/App-0.6.5-syfacmqb.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.6.5-2rrtj277.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.6.5-8deawh7z.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.6.5-8e3v3cgx.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.6.5-3pjygvs2.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.5-s2js1wag.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.6.5-36z08571.mjs +0 -1
- package/dist/chunks/DiffDialog-0.6.5-g256mdz0.mjs +0 -3
- package/dist/chunks/Doctor-0.6.5-vty8ec8n.mjs +0 -1
- package/dist/chunks/Grove-0.6.5-p00f24rh.mjs +0 -1
- package/dist/chunks/ITermBackend-0.6.5-53j2wh9w.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.6.5-gtpj7hn7.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.6.5-3d3v9kn1.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.6.5-mnbsk1bz.mjs +0 -1
- package/dist/chunks/Onboarding-0.6.5-9r9rkgj0.mjs +0 -1
- package/dist/chunks/ProviderManager-0.6.5-yb8w75gs.mjs +0 -1
- package/dist/chunks/REPL-0.6.5-wqyg8nfv.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.6.5-0d1tkqfd.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.6.5-n5pa0d9r.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.6.5-t863eyfb.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.5-11ykz8de.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.6.5-dn6dvzvv.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.6.5-yd46t6dv.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.6.5-6kssfnkp.mjs +0 -1
- package/dist/chunks/TrustDialog-0.6.5-mdbqw8dc.mjs +0 -1
- package/dist/chunks/activeProvider-0.6.5-wpe1bnhr.mjs +0 -1
- package/dist/chunks/add-dir-0.6.5-zphaxr62.mjs +0 -1
- package/dist/chunks/agents-0.6.5-9rhdp3vp.mjs +0 -110
- package/dist/chunks/agents-0.6.5-krnahvn4.mjs +0 -3
- package/dist/chunks/api-0.6.5-vfnxfssn.mjs +0 -1
- package/dist/chunks/asciicast-0.6.5-hr205c81.mjs +0 -1
- package/dist/chunks/assistant-0.6.5-nfbsgssx.mjs +0 -1
- package/dist/chunks/auth-0.6.5-9baxvtxg.mjs +0 -1
- package/dist/chunks/auth-0.6.5-cq4yrhn2.mjs +0 -1
- package/dist/chunks/autoMode-0.6.5-kzhwpmfg.mjs +0 -48
- package/dist/chunks/autoUpdater-0.6.5-bkzpv0pd.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.6.5-2mkev4qh.mjs +0 -1
- package/dist/chunks/branch-0.6.5-8vtt7esr.mjs +0 -4
- package/dist/chunks/bridge-0.6.5-9c1v2e52.mjs +0 -2
- package/dist/chunks/bridgeConfig-0.6.5-w77y3p5n.mjs +0 -1
- package/dist/chunks/bridgeEnabled-0.6.5-k6hvamvf.mjs +0 -1
- package/dist/chunks/bridgeMain-0.6.5-pea2hztr.mjs +0 -88
- package/dist/chunks/bridgePointer-0.6.5-87t92nmh.mjs +0 -1
- package/dist/chunks/btw-0.6.5-xhyyarh0.mjs +0 -1
- package/dist/chunks/buddy-0.6.5-g9csmkdw.mjs +0 -3
- package/dist/chunks/cacache-0.6.5-kzjmbjve.mjs +0 -1
- package/dist/chunks/cache-probe-0.6.5-c2br8x9m.mjs +0 -21
- package/dist/chunks/cacheStats-0.6.5-kbdcab9q.mjs +0 -4
- package/dist/chunks/caches-0.6.5-nwzvsny2.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.6.5-51tkmdr1.mjs +0 -1
- package/dist/chunks/claudemd-0.6.5-212twher.mjs +0 -1
- package/dist/chunks/clear-0.6.5-yg0wcbw4.mjs +0 -1
- package/dist/chunks/clearTerminal-0.6.5-0c24f1yy.mjs +0 -1
- package/dist/chunks/cli-0.6.5-00kbsd9f.mjs +0 -2
- package/dist/chunks/cli-0.6.5-0356tc6y.mjs +0 -2
- package/dist/chunks/cli-0.6.5-06d8zge2.mjs +0 -2
- package/dist/chunks/cli-0.6.5-0j7fzwkx.mjs +0 -2
- package/dist/chunks/cli-0.6.5-0pt0eq6a.mjs +0 -3
- package/dist/chunks/cli-0.6.5-13g3042y.mjs +0 -12
- package/dist/chunks/cli-0.6.5-192npvx3.mjs +0 -2
- package/dist/chunks/cli-0.6.5-19mg5dfx.mjs +0 -6
- package/dist/chunks/cli-0.6.5-1bz46ywp.mjs +0 -2
- package/dist/chunks/cli-0.6.5-1fqhk4mv.mjs +0 -9
- package/dist/chunks/cli-0.6.5-1k5wyv3x.mjs +0 -2
- package/dist/chunks/cli-0.6.5-1m46f13z.mjs +0 -2
- package/dist/chunks/cli-0.6.5-1r4j3nda.mjs +0 -58
- package/dist/chunks/cli-0.6.5-2dq7pa8p.mjs +0 -34
- package/dist/chunks/cli-0.6.5-2s673b9m.mjs +0 -2
- package/dist/chunks/cli-0.6.5-38gqwg2m.mjs +0 -2
- package/dist/chunks/cli-0.6.5-3hemanw8.mjs +0 -15
- package/dist/chunks/cli-0.6.5-3p5vg2yx.mjs +0 -2
- package/dist/chunks/cli-0.6.5-3ybp7ww7.mjs +0 -6
- package/dist/chunks/cli-0.6.5-406dcpxw.mjs +0 -2
- package/dist/chunks/cli-0.6.5-41tc50h9.mjs +0 -2
- package/dist/chunks/cli-0.6.5-477kp2fg.mjs +0 -2
- package/dist/chunks/cli-0.6.5-47s6s6ew.mjs +0 -2
- package/dist/chunks/cli-0.6.5-4k3kk3pr.mjs +0 -17
- package/dist/chunks/cli-0.6.5-4whh4m3h.mjs +0 -2
- package/dist/chunks/cli-0.6.5-54w728vm.mjs +0 -2
- package/dist/chunks/cli-0.6.5-57jmtd2z.mjs +0 -2
- package/dist/chunks/cli-0.6.5-58ck75qn.mjs +0 -2
- package/dist/chunks/cli-0.6.5-5py2stcw.mjs +0 -2
- package/dist/chunks/cli-0.6.5-5rpfanmw.mjs +0 -3
- package/dist/chunks/cli-0.6.5-5t6d3asz.mjs +0 -5347
- package/dist/chunks/cli-0.6.5-5wr197ms.mjs +0 -25
- package/dist/chunks/cli-0.6.5-5ymbb1v4.mjs +0 -2
- package/dist/chunks/cli-0.6.5-60hfev34.mjs +0 -2
- package/dist/chunks/cli-0.6.5-61tnv5c7.mjs +0 -2
- package/dist/chunks/cli-0.6.5-6829jyhh.mjs +0 -9
- package/dist/chunks/cli-0.6.5-69f24h9w.mjs +0 -8
- package/dist/chunks/cli-0.6.5-6ab8b50h.mjs +0 -2
- package/dist/chunks/cli-0.6.5-6e6pv00e.mjs +0 -2
- package/dist/chunks/cli-0.6.5-6ev1k0qv.mjs +0 -133
- package/dist/chunks/cli-0.6.5-6q2d7p49.mjs +0 -2
- package/dist/chunks/cli-0.6.5-6qvtcs5y.mjs +0 -2
- package/dist/chunks/cli-0.6.5-6wpz6mks.mjs +0 -2
- package/dist/chunks/cli-0.6.5-6x91apzw.mjs +0 -2
- package/dist/chunks/cli-0.6.5-72v6gjqf.mjs +0 -2
- package/dist/chunks/cli-0.6.5-7am1hb1v.mjs +0 -2
- package/dist/chunks/cli-0.6.5-7tzhpeyn.mjs +0 -2
- package/dist/chunks/cli-0.6.5-7vnp5x55.mjs +0 -15
- package/dist/chunks/cli-0.6.5-81fzcvec.mjs +0 -4
- package/dist/chunks/cli-0.6.5-87qz97g2.mjs +0 -2
- package/dist/chunks/cli-0.6.5-8hsxq1p3.mjs +0 -2
- package/dist/chunks/cli-0.6.5-8zsy7h21.mjs +0 -2
- package/dist/chunks/cli-0.6.5-95a4872h.mjs +0 -2
- package/dist/chunks/cli-0.6.5-983fq4aj.mjs +0 -7
- package/dist/chunks/cli-0.6.5-987r1x1q.mjs +0 -2
- package/dist/chunks/cli-0.6.5-9cs6r2j7.mjs +0 -2
- package/dist/chunks/cli-0.6.5-9d9gmzev.mjs +0 -2
- package/dist/chunks/cli-0.6.5-9g1pn7jy.mjs +0 -2
- package/dist/chunks/cli-0.6.5-9g7p6wdj.mjs +0 -5
- package/dist/chunks/cli-0.6.5-9hp0d08c.mjs +0 -2
- package/dist/chunks/cli-0.6.5-a0ke5n08.mjs +0 -2
- package/dist/chunks/cli-0.6.5-a1csk51d.mjs +0 -3
- package/dist/chunks/cli-0.6.5-a23zsgke.mjs +0 -3
- package/dist/chunks/cli-0.6.5-a8za8sjg.mjs +0 -2
- package/dist/chunks/cli-0.6.5-akw85jbw.mjs +0 -2
- package/dist/chunks/cli-0.6.5-amtt1tbm.mjs +0 -39
- package/dist/chunks/cli-0.6.5-awhfeefv.mjs +0 -5
- package/dist/chunks/cli-0.6.5-azwzatpd.mjs +0 -20
- package/dist/chunks/cli-0.6.5-b7x38zg8.mjs +0 -2
- package/dist/chunks/cli-0.6.5-bm7v9qp0.mjs +0 -2
- package/dist/chunks/cli-0.6.5-brk2sfdw.mjs +0 -2
- package/dist/chunks/cli-0.6.5-bzz83kdv.mjs +0 -2
- package/dist/chunks/cli-0.6.5-c0nyamvd.mjs +0 -17
- package/dist/chunks/cli-0.6.5-c4v4vgw4.mjs +0 -2
- package/dist/chunks/cli-0.6.5-c7yx03g7.mjs +0 -16
- package/dist/chunks/cli-0.6.5-ce51qb6k.mjs +0 -4
- package/dist/chunks/cli-0.6.5-ckc9hr8m.mjs +0 -2
- package/dist/chunks/cli-0.6.5-cwaewkgb.mjs +0 -2
- package/dist/chunks/cli-0.6.5-czc9nvxh.mjs +0 -133
- package/dist/chunks/cli-0.6.5-d7nvtk63.mjs +0 -2
- package/dist/chunks/cli-0.6.5-dcr7rpqe.mjs +0 -2
- package/dist/chunks/cli-0.6.5-dm2rwpsb.mjs +0 -2
- package/dist/chunks/cli-0.6.5-e47bwdgy.mjs +0 -2
- package/dist/chunks/cli-0.6.5-e5pzxdbx.mjs +0 -2
- package/dist/chunks/cli-0.6.5-e7k35s7j.mjs +0 -2
- package/dist/chunks/cli-0.6.5-e9t7harq.mjs +0 -2
- package/dist/chunks/cli-0.6.5-ef17hb7w.mjs +0 -2
- package/dist/chunks/cli-0.6.5-ef6b5qvc.mjs +0 -193
- package/dist/chunks/cli-0.6.5-efh1xzne.mjs +0 -24
- package/dist/chunks/cli-0.6.5-efsxkpxr.mjs +0 -2
- package/dist/chunks/cli-0.6.5-ej3jf59h.mjs +0 -2
- package/dist/chunks/cli-0.6.5-env00jtm.mjs +0 -1
- package/dist/chunks/cli-0.6.5-eq4cscgw.mjs +0 -2
- package/dist/chunks/cli-0.6.5-eqk6q7pf.mjs +0 -2
- package/dist/chunks/cli-0.6.5-ev41fmky.mjs +0 -2
- package/dist/chunks/cli-0.6.5-f34ttkbg.mjs +0 -2
- package/dist/chunks/cli-0.6.5-f4x1fb90.mjs +0 -4
- package/dist/chunks/cli-0.6.5-f71ncwzk.mjs +0 -59
- package/dist/chunks/cli-0.6.5-fg2a16s4.mjs +0 -2
- package/dist/chunks/cli-0.6.5-g43wnabd.mjs +0 -2
- package/dist/chunks/cli-0.6.5-g7d8vsb2.mjs +0 -2
- package/dist/chunks/cli-0.6.5-g8qt9gm7.mjs +0 -2
- package/dist/chunks/cli-0.6.5-gjzdpmdx.mjs +0 -2
- package/dist/chunks/cli-0.6.5-gk89f6jk.mjs +0 -4
- package/dist/chunks/cli-0.6.5-gw6ygdnq.mjs +0 -3
- package/dist/chunks/cli-0.6.5-h08jc3cj.mjs +0 -18
- package/dist/chunks/cli-0.6.5-h0xnjwg1.mjs +0 -2
- package/dist/chunks/cli-0.6.5-h3cch37f.mjs +0 -2
- package/dist/chunks/cli-0.6.5-h5x9r5ap.mjs +0 -50
- package/dist/chunks/cli-0.6.5-j45setk1.mjs +0 -2
- package/dist/chunks/cli-0.6.5-j5v5jpq8.mjs +0 -2
- package/dist/chunks/cli-0.6.5-je97ssab.mjs +0 -2
- package/dist/chunks/cli-0.6.5-jqbkgjhs.mjs +0 -2
- package/dist/chunks/cli-0.6.5-jrnx4znh.mjs +0 -2
- package/dist/chunks/cli-0.6.5-jygg6ynx.mjs +0 -2
- package/dist/chunks/cli-0.6.5-k15yzap9.mjs +0 -2
- package/dist/chunks/cli-0.6.5-k74repdw.mjs +0 -2
- package/dist/chunks/cli-0.6.5-k8vb0qqx.mjs +0 -2
- package/dist/chunks/cli-0.6.5-k8vgyecf.mjs +0 -2
- package/dist/chunks/cli-0.6.5-kac7d6qe.mjs +0 -2
- package/dist/chunks/cli-0.6.5-kd1sw5qm.mjs +0 -2
- package/dist/chunks/cli-0.6.5-ke48d24y.mjs +0 -2
- package/dist/chunks/cli-0.6.5-khsn0wkk.mjs +0 -21
- package/dist/chunks/cli-0.6.5-kjntnfas.mjs +0 -2
- package/dist/chunks/cli-0.6.5-kqhpzqdw.mjs +0 -67
- package/dist/chunks/cli-0.6.5-kr0q8v74.mjs +0 -2
- package/dist/chunks/cli-0.6.5-kxwg80ye.mjs +0 -42
- package/dist/chunks/cli-0.6.5-kyp268ew.mjs +0 -2
- package/dist/chunks/cli-0.6.5-kzr5p1mv.mjs +0 -2
- package/dist/chunks/cli-0.6.5-kztnt6aq.mjs +0 -2
- package/dist/chunks/cli-0.6.5-m2619f84.mjs +0 -2
- package/dist/chunks/cli-0.6.5-mgv2cvps.mjs +0 -45
- package/dist/chunks/cli-0.6.5-mpdvzrnw.mjs +0 -2
- package/dist/chunks/cli-0.6.5-mtx91sgr.mjs +0 -2
- package/dist/chunks/cli-0.6.5-n4hnag3x.mjs +0 -2
- package/dist/chunks/cli-0.6.5-n64fe6ey.mjs +0 -2
- package/dist/chunks/cli-0.6.5-nd6kqcck.mjs +0 -2
- package/dist/chunks/cli-0.6.5-nngqh0bh.mjs +0 -2
- package/dist/chunks/cli-0.6.5-p6n42hmh.mjs +0 -4
- package/dist/chunks/cli-0.6.5-pa3ap7rs.mjs +0 -2
- package/dist/chunks/cli-0.6.5-pbahk0n4.mjs +0 -12
- package/dist/chunks/cli-0.6.5-pbyhms5s.mjs +0 -2
- package/dist/chunks/cli-0.6.5-pgs0eeqg.mjs +0 -2
- package/dist/chunks/cli-0.6.5-pky7r4pf.mjs +0 -2
- package/dist/chunks/cli-0.6.5-pv1b8wyy.mjs +0 -2
- package/dist/chunks/cli-0.6.5-pw1077hd.mjs +0 -2
- package/dist/chunks/cli-0.6.5-pz5add8h.mjs +0 -4
- package/dist/chunks/cli-0.6.5-q027r0rf.mjs +0 -2
- package/dist/chunks/cli-0.6.5-q1qpax7b.mjs +0 -2
- package/dist/chunks/cli-0.6.5-q2z0n0me.mjs +0 -2
- package/dist/chunks/cli-0.6.5-q4gh8d4w.mjs +0 -6
- package/dist/chunks/cli-0.6.5-q67zwknt.mjs +0 -4
- package/dist/chunks/cli-0.6.5-qhq9tmd4.mjs +0 -24
- package/dist/chunks/cli-0.6.5-qx67z0cv.mjs +0 -2
- package/dist/chunks/cli-0.6.5-r06ahe39.mjs +0 -3
- package/dist/chunks/cli-0.6.5-r2khv6re.mjs +0 -2
- package/dist/chunks/cli-0.6.5-ras9cma3.mjs +0 -2
- package/dist/chunks/cli-0.6.5-rkjw25m5.mjs +0 -2
- package/dist/chunks/cli-0.6.5-rrteyxna.mjs +0 -5
- package/dist/chunks/cli-0.6.5-rsve86mh.mjs +0 -12
- package/dist/chunks/cli-0.6.5-rvnz8f4b.mjs +0 -3
- package/dist/chunks/cli-0.6.5-ry2zfh45.mjs +0 -2
- package/dist/chunks/cli-0.6.5-s1ahtmc1.mjs +0 -2
- package/dist/chunks/cli-0.6.5-s42kf4d5.mjs +0 -2
- package/dist/chunks/cli-0.6.5-s580r0vs.mjs +0 -2
- package/dist/chunks/cli-0.6.5-sph3w6xt.mjs +0 -2
- package/dist/chunks/cli-0.6.5-svr5tx29.mjs +0 -2
- package/dist/chunks/cli-0.6.5-sz8mbg6v.mjs +0 -2
- package/dist/chunks/cli-0.6.5-t0x65qv4.mjs +0 -26
- package/dist/chunks/cli-0.6.5-t4tz7xht.mjs +0 -18
- package/dist/chunks/cli-0.6.5-th48yhz2.mjs +0 -2
- package/dist/chunks/cli-0.6.5-thfwpyjp.mjs +0 -2
- package/dist/chunks/cli-0.6.5-tj3hcx9x.mjs +0 -2
- package/dist/chunks/cli-0.6.5-tqwbfn5c.mjs +0 -2
- package/dist/chunks/cli-0.6.5-ts0kvt5k.mjs +0 -2
- package/dist/chunks/cli-0.6.5-vbw9z7ya.mjs +0 -2
- package/dist/chunks/cli-0.6.5-vj647gqr.mjs +0 -2
- package/dist/chunks/cli-0.6.5-vjydf7v2.mjs +0 -2
- package/dist/chunks/cli-0.6.5-vn8pa80z.mjs +0 -3
- package/dist/chunks/cli-0.6.5-vpebat6v.mjs +0 -4
- package/dist/chunks/cli-0.6.5-vqb4jtcr.mjs +0 -2
- package/dist/chunks/cli-0.6.5-vsmwyh7p.mjs +0 -2
- package/dist/chunks/cli-0.6.5-vywqm5j0.mjs +0 -2
- package/dist/chunks/cli-0.6.5-w2qf3sbz.mjs +0 -2
- package/dist/chunks/cli-0.6.5-wa6b2ksg.mjs +0 -2
- package/dist/chunks/cli-0.6.5-wgdp3ytt.mjs +0 -15
- package/dist/chunks/cli-0.6.5-xbz59an6.mjs +0 -2
- package/dist/chunks/cli-0.6.5-xngsek99.mjs +0 -3
- package/dist/chunks/cli-0.6.5-xwvfjaga.mjs +0 -2
- package/dist/chunks/cli-0.6.5-xxnhfq1f.mjs +0 -3
- package/dist/chunks/cli-0.6.5-xxtrec34.mjs +0 -2
- package/dist/chunks/cli-0.6.5-y4kbaj8m.mjs +0 -3
- package/dist/chunks/cli-0.6.5-ybxktrwn.mjs +0 -4
- package/dist/chunks/cli-0.6.5-ynxewk0a.mjs +0 -18
- package/dist/chunks/cli-0.6.5-yv4805v6.mjs +0 -2
- package/dist/chunks/cli-0.6.5-ywh9eaz9.mjs +0 -3
- package/dist/chunks/cli-0.6.5-yy3mtt7p.mjs +0 -4
- package/dist/chunks/cli-0.6.5-z5qqy4bb.mjs +0 -10
- package/dist/chunks/cli-0.6.5-z64827fd.mjs +0 -2
- package/dist/chunks/cli-0.6.5-zxppzj42.mjs +0 -3
- package/dist/chunks/client-0.6.5-kcsx56gb.mjs +0 -1
- package/dist/chunks/color-0.6.5-m4adc5zy.mjs +0 -1
- package/dist/chunks/compact-0.6.5-pp3jftxy.mjs +0 -3
- package/dist/chunks/config-0.6.5-4t1bbgpf.mjs +0 -1
- package/dist/chunks/config-0.6.5-8j3ajra5.mjs +0 -1
- package/dist/chunks/constants-0.6.5-z1rfnbw0.mjs +0 -1
- package/dist/chunks/context-0.6.5-k4dkxskt.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.6.5-t2s33qfv.mjs +0 -1
- package/dist/chunks/conversation-0.6.5-wtjv42fh.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.6.5-t5d64yyd.mjs +0 -1
- package/dist/chunks/copy-0.6.5-r2cah677.mjs +0 -9
- package/dist/chunks/cost-0.6.5-8bs4d6y0.mjs +0 -1
- package/dist/chunks/createSSHSession-0.6.5-7p69k83d.mjs +0 -1
- package/dist/chunks/createSession-0.6.5-fwtmdngf.mjs +0 -1
- package/dist/chunks/debug-0.6.5-xmxftwgk.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.6.5-z6w9jmje.mjs +0 -1367
- package/dist/chunks/desktop-0.6.5-fargeve3.mjs +0 -1
- package/dist/chunks/detectRepository-0.6.5-ymk4cd49.mjs +0 -1
- package/dist/chunks/detection-0.6.5-9v4p8jdz.mjs +0 -1
- package/dist/chunks/diff-0.6.5-8ja76cbj.mjs +0 -1
- package/dist/chunks/doctor-0.6.5-j9ztya6c.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.6.5-4rk9v7gn.mjs +0 -1
- package/dist/chunks/earlyInput-0.6.5-jnt6pqdj.mjs +0 -1
- package/dist/chunks/effort-0.6.5-wn6gayah.mjs +0 -10
- package/dist/chunks/envLessBridgeConfig-0.6.5-eptez4tg.mjs +0 -1
- package/dist/chunks/envUtils-0.6.5-62qkktte.mjs +0 -1
- package/dist/chunks/environmentSelection-0.6.5-zdqp06ex.mjs +0 -1
- package/dist/chunks/environments-0.6.5-4cxm9f2v.mjs +0 -1
- package/dist/chunks/errors-0.6.5-zrzdygzb.mjs +0 -1
- package/dist/chunks/exampleCommands-0.6.5-c4p6gs14.mjs +0 -1
- package/dist/chunks/exit-0.6.5-491d2dm3.mjs +0 -1
- package/dist/chunks/export-0.6.5-ydgbaqvw.mjs +0 -2
- package/dist/chunks/extra-usage-0.6.5-qc1chr9f.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.6.5-g2ratb24.mjs +0 -1
- package/dist/chunks/fast-0.6.5-19egbvsn.mjs +0 -1
- package/dist/chunks/feedback-0.6.5-r15hzy5x.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.6.5-h0wam92d.mjs +0 -1
- package/dist/chunks/git-0.6.5-kd4a5hgs.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.6.5-ahxqf63c.mjs +0 -1
- package/dist/chunks/goal-0.6.5-kyahd6wn.mjs +0 -4
- package/dist/chunks/grove-0.6.5-qjgh7ss3.mjs +0 -1
- package/dist/chunks/growthbook-0.6.5-ax1nfvk4.mjs +0 -1
- package/dist/chunks/headless-0.6.5-4pg9fsvq.mjs +0 -2
- package/dist/chunks/heapdump-0.6.5-9k0vppqs.mjs +0 -6
- package/dist/chunks/help-0.6.5-tfhm2beq.mjs +0 -1
- package/dist/chunks/hookChains-0.6.5-6szjehhz.mjs +0 -3
- package/dist/chunks/hooks-0.6.5-dgpkkjn0.mjs +0 -79
- package/dist/chunks/hooks-0.6.5-w5dctm3q.mjs +0 -1
- package/dist/chunks/ide-0.6.5-13et7be7.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.6.5-hnw96fqh.mjs +0 -1
- package/dist/chunks/inboundAttachments-0.6.5-qc951hng.mjs +0 -1
- package/dist/chunks/index-0.6.5-01x1ejhn.mjs +0 -1
- package/dist/chunks/index-0.6.5-0abf9jmk.mjs +0 -1
- package/dist/chunks/index-0.6.5-1mp331dd.mjs +0 -1
- package/dist/chunks/index-0.6.5-1sg6s6z6.mjs +0 -1
- package/dist/chunks/index-0.6.5-4q6jjbs7.mjs +0 -1
- package/dist/chunks/index-0.6.5-6sk15ws5.mjs +0 -2
- package/dist/chunks/index-0.6.5-6t864t2c.mjs +0 -1
- package/dist/chunks/index-0.6.5-6xqpvv54.mjs +0 -30
- package/dist/chunks/index-0.6.5-7zhnqzn2.mjs +0 -1
- package/dist/chunks/index-0.6.5-89hxhv95.mjs +0 -1
- package/dist/chunks/index-0.6.5-aty810n8.mjs +0 -1
- package/dist/chunks/index-0.6.5-c2hwywv3.mjs +0 -1
- package/dist/chunks/index-0.6.5-e2wq7gh6.mjs +0 -2
- package/dist/chunks/index-0.6.5-g0kwgaqr.mjs +0 -17
- package/dist/chunks/index-0.6.5-gtcspa71.mjs +0 -1
- package/dist/chunks/index-0.6.5-h3efeppv.mjs +0 -1
- package/dist/chunks/index-0.6.5-m5ejvtqa.mjs +0 -1
- package/dist/chunks/index-0.6.5-mh7r1b3g.mjs +0 -1
- package/dist/chunks/index-0.6.5-pvve2ng4.mjs +0 -5
- package/dist/chunks/index-0.6.5-snpzxxv3.mjs +0 -9
- package/dist/chunks/index-0.6.5-tfw7v414.mjs +0 -9
- package/dist/chunks/index-0.6.5-wjkwk8e7.mjs +0 -1
- package/dist/chunks/index-0.6.5-z62wqvcx.mjs +0 -1
- package/dist/chunks/init-0.6.5-zhc6fyd5.mjs +0 -1
- package/dist/chunks/initReplBridge-0.6.5-7r1y5662.mjs +0 -1
- package/dist/chunks/ink-0.6.5-tndp68zg.mjs +0 -1
- package/dist/chunks/insights-0.6.5-vqzkktqr.mjs +0 -870
- package/dist/chunks/install-0.6.5-5gr23h3m.mjs +0 -1
- package/dist/chunks/install-github-app-0.6.5-tng076rr.mjs +0 -149
- package/dist/chunks/install-slack-app-0.6.5-gsz9yrym.mjs +0 -1
- package/dist/chunks/instrumentation-0.6.5-nqsng4g6.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.6.5-k1pvqxme.mjs +0 -1
- package/dist/chunks/keybindings-0.6.5-xerpw7ac.mjs +0 -2
- package/dist/chunks/knowledge-0.6.5-3cqswtp3.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.6.5-mvrgq9dd.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.6.5-h16ggtfs.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.5-35e6kcw6.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.5-qm874zd2.mjs +0 -1
- package/dist/chunks/log-0.6.5-xge4vs13.mjs +0 -1
- package/dist/chunks/main-0.6.5-4pf8xcyc.mjs +0 -1
- package/dist/chunks/managedEnv-0.6.5-qbgyznrt.mjs +0 -1
- package/dist/chunks/mcp-0.6.5-293k7n7h.mjs +0 -4
- package/dist/chunks/mcp-0.6.5-45d2qxwd.mjs +0 -17
- package/dist/chunks/mcp-0.6.5-b5jvd286.mjs +0 -1
- package/dist/chunks/mcpb-0.6.5-e68tqw35.mjs +0 -1
- package/dist/chunks/memory-0.6.5-9htftc81.mjs +0 -3
- package/dist/chunks/model-0.6.5-rpyjsh6m.mjs +0 -1
- package/dist/chunks/model-0.6.5-zsk9vwg7.mjs +0 -2
- package/dist/chunks/node-0.6.5-j42ec4dm.mjs +0 -12
- package/dist/chunks/oauth-0.6.5-d8r75abq.mjs +0 -1
- package/dist/chunks/openaiShim-0.6.5-deev7qr4.mjs +0 -14
- package/dist/chunks/output-style-0.6.5-t4my27zb.mjs +0 -1
- package/dist/chunks/package-D6422PQU-0.6.5-a34phgmb.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.6.5-3rw1krw2.mjs +0 -1
- package/dist/chunks/parser-0.6.5-hnbj9e8f.mjs +0 -1
- package/dist/chunks/passes-0.6.5-9x43pms7.mjs +0 -1
- package/dist/chunks/permissions-0.6.5-aymv501j.mjs +0 -1
- package/dist/chunks/permissions-0.6.5-y4jnw514.mjs +0 -3
- package/dist/chunks/plan-0.6.5-kct7xqkt.mjs +0 -1
- package/dist/chunks/plist-0.6.5-gp660say.mjs +0 -1
- package/dist/chunks/plugin-0.6.5-5vnph48t.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.6.5-y74n8rfx.mjs +0 -1
- package/dist/chunks/plugins-0.6.5-y0xna858.mjs +0 -9
- package/dist/chunks/preActionHook-0.6.5-gd8pge33.mjs +0 -2
- package/dist/chunks/print-0.6.5-zr884wv0.mjs +0 -57
- package/dist/chunks/privacy-settings-0.6.5-gm8tkeqk.mjs +0 -1
- package/dist/chunks/process-0.6.5-ha5587zb.mjs +0 -1
- package/dist/chunks/processBashCommand-0.6.5-qpanbrjt.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.6.5-0zzej132.mjs +0 -9
- package/dist/chunks/prompt-0.6.5-n2e16857.mjs +0 -1
- package/dist/chunks/prompt-0.6.5-yd9wwvye.mjs +0 -1
- package/dist/chunks/prompts-0.6.5-4h181zjj.mjs +0 -1
- package/dist/chunks/protocolHandler-0.6.5-btkqsev6.mjs +0 -13
- package/dist/chunks/provider-0.6.5-pk6rtf1a.mjs +0 -2
- package/dist/chunks/providerProfiles-0.6.5-spn4hk2w.mjs +0 -1
- package/dist/chunks/providerValidation-0.6.5-j9fqm33r.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.6.5-n0s4jxw7.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.6.5-s6pemg0a.mjs +0 -34
- package/dist/chunks/registry-0.6.5-q9cda2p7.mjs +0 -1
- package/dist/chunks/release-notes-0.6.5-5s8sv8ea.mjs +0 -5
- package/dist/chunks/reload-plugins-0.6.5-bqh5fz13.mjs +0 -2
- package/dist/chunks/remote-env-0.6.5-29f08tqs.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.6.5-gk9afz22.mjs +0 -1
- package/dist/chunks/remoteSession-0.6.5-w7r3dh6h.mjs +0 -1
- package/dist/chunks/rename-0.6.5-es4wyt7z.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.6.5-66va2rkv.mjs +0 -1
- package/dist/chunks/replLauncher-0.6.5-xzbbew8q.mjs +0 -1
- package/dist/chunks/resume-0.6.5-q2e001ra.mjs +0 -2
- package/dist/chunks/rewind-0.6.5-hhxvb1pk.mjs +0 -1
- package/dist/chunks/rootOptions-0.6.5-smyb5d6s.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.6.5-6zvjjrgg.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.6.5-ch59ryyz.mjs +0 -1
- package/dist/chunks/session-0.6.5-22r80wyd.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.6.5-aae5t467.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.6.5-a6xg367a.mjs +0 -1
- package/dist/chunks/sessionStorage-0.6.5-dqg82tdb.mjs +0 -1
- package/dist/chunks/settings-0.6.5-egjxpxrx.mjs +0 -1
- package/dist/chunks/setup-0.6.5-ks0cjhc0.mjs +0 -5
- package/dist/chunks/sinks-0.6.5-vnqdp1xs.mjs +0 -1
- package/dist/chunks/skills-0.6.5-fhq4v7kx.mjs +0 -1
- package/dist/chunks/startupProfiler-0.6.5-qg0j96r8.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.6.5-kgegmr3s.mjs +0 -1
- package/dist/chunks/state-0.6.5-s7hqk377.mjs +0 -1
- package/dist/chunks/stats-0.6.5-1c35kfn8.mjs +0 -6
- package/dist/chunks/status-0.6.5-wxfn3y7k.mjs +0 -1
- package/dist/chunks/stickers-0.6.5-vr2yr1fh.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.6.5-p4nz5egm.mjs +0 -1
- package/dist/chunks/tasks-0.6.5-jq5x8fny.mjs +0 -1
- package/dist/chunks/teamHelpers-0.6.5-s5tew7t1.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.6.5-0yh7b47q.mjs +0 -1
- package/dist/chunks/teleport-0.6.5-hmv7mh01.mjs +0 -1
- package/dist/chunks/terminalSetup-0.6.5-k9d4e82r.mjs +0 -1
- package/dist/chunks/theme-0.6.5-24hr0s0e.mjs +0 -1
- package/dist/chunks/thinkback-0.6.5-6997cmgj.mjs +0 -1
- package/dist/chunks/thinkback-play-0.6.5-5bm6dv3e.mjs +0 -1
- package/dist/chunks/toolPool-0.6.5-599y15ba.mjs +0 -1
- package/dist/chunks/toolSearch-0.6.5-acm72rsk.mjs +0 -1
- package/dist/chunks/tools-0.6.5-kydccz7r.mjs +0 -1
- package/dist/chunks/trustedDevice-0.6.5-44vjv9at.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.6.5-s2n7faa4.mjs +0 -69
- package/dist/chunks/types-0.6.5-h60ghfcx.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-0.6.5-vhpd8cxc.mjs +0 -4
- package/dist/chunks/update-0.6.5-j61jnpbt.mjs +0 -86
- package/dist/chunks/upgrade-0.6.5-yg323wxz.mjs +0 -1
- package/dist/chunks/upload-0.6.5-5tsm3bt7.mjs +0 -7
- package/dist/chunks/upstreamproxy-0.6.5-0ayrwt4t.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.6.5-6sb73p95.mjs +0 -1
- package/dist/chunks/usage-0.6.5-0tjr5c54.mjs +0 -1
- package/dist/chunks/util-0.6.5-xcfvn255.mjs +0 -1
- package/dist/chunks/utils-0.6.5-gjqewwe3.mjs +0 -1
- package/dist/chunks/vim-0.6.5-hmp35ayy.mjs +0 -1
- package/dist/chunks/watcher-0.6.5-jra6eh4m.mjs +0 -1
- package/dist/chunks/wiki-0.6.5-0k1cftcn.mjs +0 -132
- package/dist/chunks/worktree-0.6.5-a5vvycs0.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.6.5-rva8222w.mjs +0 -1
- package/dist/chunks/wrapper-0.6.5-0bxnwc77.mjs +0 -7
- /package/dist/chunks/{cli-0.6.5-pynms6t8.mjs → cli-0.6.7-790sqdfy.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.5-dy5v4gms.mjs → cli-0.6.7-nzdwcqxv.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.5-pev4540w.mjs → cli-0.6.7-pgcg3w1c.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{PR as z,hq as _}from"./cli-0.6.5-5t6d3asz.mjs";import{y1 as f}from"./cli-0.6.5-k74repdw.mjs";import{Q4 as k,V5 as A,j2 as K}from"./cli-0.6.5-c7yx03g7.mjs";import{N8 as T,Q7 as L,Yaa as v,hca as x,m_ as W}from"./cli-0.6.5-ef6b5qvc.mjs";import{Zea as H}from"./cli-0.6.5-kac7d6qe.mjs";import{qfa as b,sfa as Q,tfa as q,ufa as V}from"./cli-0.6.5-kqhpzqdw.mjs";import{kga as w}from"./cli-0.6.5-kzr5p1mv.mjs";import{oga as O}from"./cli-0.6.5-6qvtcs5y.mjs";import{Pha as U}from"./cli-0.6.5-ce51qb6k.mjs";import{Eja as X,Gna as B}from"./cli-0.6.5-ckc9hr8m.mjs";import{ppa as G}from"./cli-0.6.5-bm7v9qp0.mjs";var Z,$;var J=G(()=>{Q();V();Z=q(()=>b.object({entries:b.record(b.string(),b.string())})),$=q(()=>b.object({userId:b.string(),version:b.number(),lastModified:b.string(),checksum:b.string(),content:Z()}))});var Y=G(()=>{B();w();A();z();x();L();U();T();K();W();v();X();k();f();H();O();_();J()});
|
|
2
|
-
export{Y as qd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Hd as Jq,Ld as Tq}from"./cli-0.6.5-yy3mtt7p.mjs";import{Sd as zq,Td as bq}from"./cli-0.6.5-5py2stcw.mjs";import{$I as S,EJ as e,FG as u,GG as fq,GJ as Rq,NJ as qq,QE as r,RE as Gq,RJ as Fq,cJ as Nq,fK as D,gn as n,hn as yq,iK as Cq,nJ as s,oJ as _q,sJ as a,vJ as l,zJ as t}from"./cli-0.6.5-5t6d3asz.mjs";import{BY as F,DY as C,YW as i,ZW as Kq,gX as Bq,gZ as Oq}from"./cli-0.6.5-f71ncwzk.mjs";import{m1 as v,n1 as R,o1 as p}from"./cli-0.6.5-8hsxq1p3.mjs";import{p1 as Lq}from"./cli-0.6.5-vqb4jtcr.mjs";import{Fda as m,G7 as g,H7 as Zq,Nda as wq,P8 as o,Q8 as Hq,S7 as $,T9 as vq,U7 as Xq,x9 as x}from"./cli-0.6.5-ef6b5qvc.mjs";import{oha as B,rha as Yq}from"./cli-0.6.5-q4gh8d4w.mjs";import{Hha as P,Kha as h,Pha as Wq}from"./cli-0.6.5-ce51qb6k.mjs";import{lpa as d,ppa as Vq}from"./cli-0.6.5-bm7v9qp0.mjs";import{readFile as c}from"fs/promises";import{join as j}from"path";function Qq(){return s}function Aq(){return Mq}function Uq(){return`thinkback@${Qq()}`}async function jq(){let{enabled:H}=await D(),q=H.find((U)=>U.name==="thinkback"||U.source&&U.source.includes(Uq()));if(!q)return null;let J=j(q.path,"skills",Sq);if(await x(J))return J;return null}async function Iq(H){let q=j(H,"year_in_review.js"),J=j(H,"player.js");try{await c(q)}catch(z){if(h(z))return{success:!1,message:"No animation found. Run /think-back first to generate one."};return m(z),{success:!1,message:`Could not access animation data: ${P(z).message}`}}try{await c(J)}catch(z){if(h(z))return{success:!1,message:"Player script not found. The player.js file is missing from the thinkback skill."};return m(z),{success:!1,message:`Could not access player script: ${P(z).message}`}}let U=i.get(process.stdout);if(!U)return{success:!1,message:"Failed to access terminal instance"};U.enterAlternateScreen();try{await g("node",[J],{stdio:"inherit",cwd:H,reject:!1})}catch{}finally{U.exitAlternateScreen()}let O=j(H,"year_in_review.html");if(await x(O)){let z=o();$(z==="macos"?"open":z==="windows"?"start":"xdg-open",[O])}return{success:!0,message:"Year in review animation complete!"}}function Pq({onReady:H,onError:q}){let[J,U]=K.useState({phase:"checking"}),[O,z]=K.useState("");if(K.useEffect(()=>{async function Z(){try{let y=await l(),Y=Qq(),G=Aq(),X=Uq(),_=Y in y,L=qq(X);if(!_)U({phase:"installing-marketplace"}),B(`Installing marketplace ${G}`),await t({source:"github",repo:G},(V)=>{z(V)}),S(),B(`Marketplace ${Y} installed`);else if(!L)U({phase:"installing-marketplace"}),z("Updating marketplace…"),B(`Refreshing marketplace ${Y}`),await e(Y,(V)=>{z(V)}),a(),S(),B(`Marketplace ${Y} refreshed`);if(!L){U({phase:"installing-plugin"}),B(`Installing plugin ${X}`);let V=await zq([X]);if(V.failed.length>0){let w=V.failed.map((W)=>`${W.name}: ${W.error}`).join(", ");throw Error(`Failed to install plugin: ${w}`)}S(),B(`Plugin ${X} installed`)}else{let{disabled:V}=await D();if(V.some((W)=>W.name==="thinkback"||W.source?.includes(X))){U({phase:"enabling-plugin"}),B(`Enabling plugin ${X}`);let W=await Jq(X);if(!W.success)throw Error(`Failed to enable plugin: ${W.message}`);S(),B(`Plugin ${X} enabled`)}}U({phase:"ready"}),H()}catch(y){let Y=P(y);m(Y),U({phase:"error",message:Y.message}),q(Y.message)}}Z()},[H,q]),J.phase==="error")return v(F,{flexDirection:"column",children:R(C,{color:"error",children:["Error: ",J.message]})});if(J.phase==="ready")return null;let T=J.phase==="checking"?"Checking thinkback installation…":J.phase==="installing-marketplace"?"Installing marketplace…":J.phase==="enabling-plugin"?"Enabling thinkback plugin…":"Installing thinkback plugin…";return v(F,{flexDirection:"column",children:R(F,{children:[v(u,{}),v(C,{children:O||T})]})})}function mq(H){let q=k.c(19),{onDone:J,onAction:U,skillDir:O,hasGenerated:z}=H,[T,Z]=K.useState(!1),y;if(q[0]!==z)y=z?[{label:"Play animation",value:"play",description:"Watch your year in review"},{label:"Edit content",value:"edit",description:"Modify the animation"},{label:"Fix errors",value:"fix",description:"Fix validation or rendering issues"},{label:"Regenerate",value:"regenerate",description:"Create a new animation from scratch"}]:[{label:"Let's go!",value:"regenerate",description:"Generate your personalized animation"}],q[0]=z,q[1]=y;else y=q[1];let Y=y,G;if(q[2]!==U||q[3]!==J||q[4]!==O)G=function(b){if(Z(!0),b==="play")Iq(O).then(()=>{J(void 0,{display:"skip"})});else U(b)},q[2]=U,q[3]=J,q[4]=O,q[5]=G;else G=q[5];let X=G,_;if(q[6]!==J)_=function(){J(void 0,{display:"skip"})},q[6]=J,q[7]=_;else _=q[7];let L=_;if(T)return null;let V;if(q[8]!==z)V=!z&&R(F,{flexDirection:"column",children:[v(C,{children:"Relive your year of coding with Claude."}),v(C,{dimColor:!0,children:"We'll create a personalized ASCII animation celebrating your journey."})]}),q[8]=z,q[9]=V;else V=q[9];let w;if(q[10]!==X||q[11]!==Y)w=v(r,{options:Y,onChange:X,visibleOptionCount:5}),q[10]=X,q[11]=Y,q[12]=w;else w=q[12];let W;if(q[13]!==V||q[14]!==w)W=R(F,{flexDirection:"column",gap:1,children:[V,w]}),q[13]=V,q[14]=w,q[15]=W;else W=q[15];let f;if(q[16]!==L||q[17]!==W)f=v(n,{title:"Think Back on 2025 with Claude Code",subtitle:"Generate your 2025 Claude Code Think Back (takes a few minutes to run)",onCancel:L,color:"claude",children:W}),q[16]=L,q[17]=W,q[18]=f;else f=q[18];return f}function uq(H){let q=k.c(27),{onDone:J}=H,[U,O]=K.useState(!1),[z,T]=K.useState(null),[Z,y]=K.useState(null),[Y,G]=K.useState(null),X;if(q[0]===Symbol.for("react.memo_cache_sentinel"))X=function(){O(!0)},q[0]=X;else X=q[0];let _=X,L;if(q[1]!==J)L=(Q)=>{T(Q),J(`Error with thinkback: ${Q}. Try running /plugin to manually install the think-back plugin.`,{display:"system"})},q[1]=J,q[2]=L;else L=q[2];let V=L,w,W;if(q[3]!==V||q[4]!==U||q[5]!==z||q[6]!==Z)w=()=>{if(U&&!Z&&!z)jq().then((Q)=>{if(Q)B(`Thinkback skill directory: ${Q}`),y(Q);else V("Could not find thinkback skill directory")})},W=[U,Z,z,V],q[3]=V,q[4]=U,q[5]=z,q[6]=Z,q[7]=w,q[8]=W;else w=q[7],W=q[8];K.useEffect(w,W);let f,M;if(q[9]!==Z)f=()=>{if(!Z)return;let Q=j(Z,"year_in_review.js");x(Q).then((N)=>{B(`Checking for ${Q}: ${N?"found":"not found"}`),G(N)})},M=[Z],q[9]=Z,q[10]=f,q[11]=M;else f=q[10],M=q[11];K.useEffect(f,M);let b;if(q[12]!==J)b=function(N){J({edit:xq,fix:Eq,regenerate:hq}[N],{display:"user",shouldQuery:!0})},q[12]=J,q[13]=b;else b=q[13];let E=b;if(z){let Q;if(q[14]!==z)Q=R(C,{color:"error",children:["Error: ",z]}),q[14]=z,q[15]=Q;else Q=q[15];let N;if(q[16]===Symbol.for("react.memo_cache_sentinel"))N=v(C,{dimColor:!0,children:"Try running /plugin to manually install the think-back plugin."}),q[16]=N;else N=q[16];let A;if(q[17]!==Q)A=R(F,{flexDirection:"column",children:[Q,N]}),q[17]=Q,q[18]=A;else A=q[18];return A}if(!U){let Q;if(q[19]!==V)Q=v(Pq,{onReady:_,onError:V}),q[19]=V,q[20]=Q;else Q=q[20];return Q}if(!Z||Y===null){let Q;if(q[21]===Symbol.for("react.memo_cache_sentinel"))Q=R(F,{children:[v(u,{}),v(C,{children:"Loading thinkback skill…"})]}),q[21]=Q;else Q=q[21];return Q}let I;if(q[22]!==E||q[23]!==Y||q[24]!==J||q[25]!==Z)I=v(mq,{onDone:J,onAction:E,skillDir:Z,hasGenerated:Y}),q[22]=E,q[23]=Y,q[24]=J,q[25]=Z,q[26]=I;else I=q[26];return I}async function Yz(H){return v(uq,{onDone:H})}var k,K,Mq="anthropics/claude-plugins-official",Sq="thinkback",xq='Use the Skill tool to invoke the "thinkback" skill with mode=edit to modify my existing Claude Code year in review animation. Ask me what I want to change. When the animation is ready, tell the user to run /think-back again to play it.',Eq='Use the Skill tool to invoke the "thinkback" skill with mode=fix to fix validation or rendering errors in my existing Claude Code year in review animation. Run the validator, identify errors, and fix them. When the animation is ready, tell the user to run /think-back again to play it.',hq='Use the Skill tool to invoke the "thinkback" skill with mode=regenerate to create a completely new Claude Code year in review animation from scratch. Delete the existing animation and start fresh. When the animation is ready, tell the user to run /think-back again to play it.';var Dq=Vq(()=>{Zq();Gq();yq();fq();Kq();Oq();Tq();Yq();Wq();Xq();vq();wq();Hq();Nq();Fq();Rq();_q();Cq();bq();p();k=d(Bq(),1),K=d(Lq(),1)});
|
|
2
|
-
export{Iq as xd,Yz as yd,Dq as zd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ppa as t}from"./cli-0.6.5-bm7v9qp0.mjs";var r,i=(s,e)=>function(){return e||(0,s[r(s)[0]])((e={exports:{}}).exports,e),e.exports},n;var a=t(()=>{r=Object.getOwnPropertyNames,n=i({"package.json"(s,e){e.exports={name:"@mendable/firecrawl-js",version:"4.25.2",description:"JavaScript SDK for Firecrawl API",main:"dist/index.js",types:"dist/index.d.ts",exports:{"./package.json":"./package.json",".":{import:"./dist/index.js",default:"./dist/index.cjs"}},type:"module",scripts:{build:"tsup","build-and-publish":"pnpm run build && pnpm publish --access public","publish-beta":"pnpm run build && pnpm publish --access public --tag beta",test:"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/e2e/v2/*.test.ts --detectOpenHandles","test:unit":"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/unit/v2/*.test.ts"},repository:{type:"git",url:"git+https://github.com/firecrawl/firecrawl.git"},author:"Mendable.ai",license:"MIT",dependencies:{axios:"1.16.1",firecrawl:"4.16.0","typescript-event-target":"^1.1.1",zod:"^3.23.8","zod-to-json-schema":"^3.23.0"},bugs:{url:"https://github.com/firecrawl/firecrawl/issues"},homepage:"https://github.com/firecrawl/firecrawl#readme",devDependencies:{"@jest/globals":"^30.2.0","@types/dotenv":"^8.2.0","@types/jest":"^30.0.0","@types/mocha":"^10.0.6","@types/node":"^20.12.12","@types/uuid":"^9.0.8",dotenv:"^16.4.5",jest:"^30.2.0","ts-jest":"^29.4.5",tsup:"^8.5.0",typescript:"^5.4.5",uuid:"^9.0.1"},keywords:["firecrawl","mendable","crawler","web","scraper","api","sdk"],engines:{node:">=22.0.0"},pnpm:{overrides:{"@isaacs/brace-expansion@<=5.0.0":">=5.0.1","minimatch@<10.2.3":">=10.2.3","rollup@<4.59.0":">=4.59.0","picomatch@<4.0.4":">=4.0.4",handlebars:">=4.7.9","brace-expansion":">=5.0.6","axios@>=1.0.0 <1.16.0":"1.16.1","follow-redirects@<1.16.0":">=1.16.0 <2.0.0"}}}}})});
|
|
2
|
-
export{n as Kh,a as Lh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{N8 as x,_7 as X,c8 as k,r8 as Y}from"./cli-0.6.5-ef6b5qvc.mjs";import{iea as $}from"./cli-0.6.5-pz5add8h.mjs";import{ppa as Z}from"./cli-0.6.5-bm7v9qp0.mjs";import{stat as I}from"fs/promises";import{join as Q,sep as P}from"path";async function H(J){let q=await Y(J);if(!q)return;let K=await X(q),[z,B]=await Promise.all([V(Q(q,"FETCH_HEAD")),K?V(Q(K,"FETCH_HEAD")):Promise.resolve(void 0)]);if(z&&B)return z>B?z:B;return z??B}async function V(J){try{let{mtime:q}=await I(J);return q}catch{return}}var M=Z(()=>{$();k();x()});
|
|
2
|
-
export{H as Bb,M as Cb};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{GS as W,HS as P}from"./cli-0.6.5-e9t7harq.mjs";import{Fda as O,N8 as _,Nda as F,T7 as K,U7 as I,Uba as B,Vba as G,hca as S,p8 as M,q8 as R,x_ as A,z_ as y}from"./cli-0.6.5-ef6b5qvc.mjs";import{xfa as D,yfa as x}from"./cli-0.6.5-rkjw25m5.mjs";import{doa as $,eoa as z}from"./cli-0.6.5-6ab8b50h.mjs";z();x();S();y();I();_();F();P();var T=[/(?:^|\/)(?:package-lock\.json|yarn\.lock|bun\.lock|bun\.lockb|pnpm-lock\.yaml|Pipfile\.lock|poetry\.lock|Cargo\.lock|Gemfile\.lock|go\.sum|composer\.lock|uv\.lock)$/,/\.generated\./,/(?:^|\/)(?:dist|build|out|target|node_modules|\.next|__pycache__)\//,/\.(?:min\.js|min\.css|map|pyc|pyo)$/,/\.(?:json|ya?ml|toml|xml|ini|cfg|conf|env|lock|txt|md|mdx|rst|csv|log|svg)$/i,/(?:^|\/)\.?(?:eslintrc|prettierrc|babelrc|editorconfig|gitignore|gitattributes|dockerignore|npmrc)/,/(?:^|\/)(?:tsconfig|jsconfig|biome|vitest\.config|jest\.config|webpack\.config|vite\.config|rollup\.config)\.[a-z]+$/,/(?:^|\/)\.(?:github|vscode|idea|claude)\//,/(?:^|\/)(?:CHANGELOG|LICENSE|CONTRIBUTING|CODEOWNERS|README)(?:\.[a-z]+)?$/i];function k(L){return!T.some((U)=>U.test(L))}function d(L,U=20){let H=new Map;for(let V of L)H.set(V,(H.get(V)||0)+1);return Array.from(H.entries()).sort((V,Q)=>Q[1]-V[1]).slice(0,U).map(([V,Q])=>`${Q.toString().padStart(6)} ${V}`).join(`
|
|
2
|
-
`)}function E(L,U){let H=[],V=new Set,Q=new Map;for(let J=1;H.length<U&&J<=U;J++)for(let X of L){if(H.length>=U)break;if(!k(X))continue;let Y=Math.max(X.lastIndexOf("/"),X.lastIndexOf("\\")),Z=Y>=0?X.slice(Y+1):X;if(!Z||V.has(Z))continue;let q=Y>=0?X.slice(0,Y):".";if((Q.get(q)??0)>=J)continue;H.push(Z),V.add(Z),Q.set(q,(Q.get(q)??0)+1)}return H.length>=U?H:[]}async function N(){if(A.platform==="win32")return[];if(!await R())return[];try{let L=await W(),U=["log","-n","1000","--pretty=format:","--name-only","--diff-filter=M"],H=new Map,V=(J)=>{for(let X of J.split(`
|
|
3
|
-
`)){let Y=X.trim();if(Y)H.set(Y,(H.get(Y)??0)+1)}};if(L){let{stdout:J}=await K("git",[...U,`--author=${L}`],{cwd:D()});V(J)}if(H.size<10){let{stdout:J}=await K(M(),U,{cwd:D()});V(J)}let Q=Array.from(H.entries()).sort((J,X)=>X[1]-J[1]).map(([J])=>J);return E(Q,5)}catch(L){return O(L),[]}}var b=604800000;function v(L){let U=B(),H=U.exampleFiles?.length?U.exampleFiles:["<filepath>"],Q=[...["fix lint errors","fix typecheck errors",`how does ${H[0]} work?`,`refactor ${H[Math.floor(H.length/2)]}`,"how do I log an error?",`edit ${H[H.length-1]} to...`,`write a test for ${H[0]}`,"create a util logging.py that..."]];for(let J=Q.length-1;J>0;J--){let X=Math.floor(Math.random()*(J+1));[Q[J],Q[X]]=[Q[X],Q[J]]}return Q.slice(0,L).map((J)=>`Try "${J}"`)}var p=$(()=>{return v(1)[0]??'Try "fix lint errors"'}),c=$((L)=>{return v(L)}),r=$(async()=>{let L=B(),U=Date.now(),H=L.exampleFilesGeneratedAt??0;if(U-H>b)L.exampleFiles=[];if(!L.exampleFiles?.length)N().then((V)=>{if(V.length)G((Q)=>({...Q,exampleFiles:V,exampleFilesGeneratedAt:Date.now()}))})});
|
|
4
|
-
export{d as pa,E as qa,p as ra,c as sa,r as ta};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{I0 as k,K0 as w}from"./cli-0.6.5-wa6b2ksg.mjs";import{B5 as j,V5 as v}from"./cli-0.6.5-c7yx03g7.mjs";import{Nea as d,Yea as h,Zea as s}from"./cli-0.6.5-kac7d6qe.mjs";import{dia as q}from"./cli-0.6.5-s580r0vs.mjs";import{ppa as p}from"./cli-0.6.5-bm7v9qp0.mjs";function m(){return y()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function x(){return m()}async function O(){return x()}async function P(){if(!m())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function y(){try{return j()}catch{return!1}}function Q(){return d("tengu_bridge_repl_v2",!1)}function R(){return d("tengu_bridge_repl_v2_cse_shim_enabled",!0)}function U(){{let b=h("tengu_bridge_min_version",{minVersion:"0.0.0"});if(b.minVersion&&k("99.0.0",b.minVersion))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
-
Version ${b.minVersion} or higher is required. Run \`claudin update\` to update.`}return null}function W(){return!1}function X(){return!1}var z=p(()=>{s();v();q();w()});
|
|
3
|
-
export{x as qU,O as rU,P as sU,Q as tU,R as uU,U as vU,W as wU,X as xU,z as yU};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{re as kZ,xe as XX}from"./cli-0.6.5-j5v5jpq8.mjs";import{Be as YZ,Ce as gQ}from"./cli-0.6.5-pgs0eeqg.mjs";import{$G as OJ,$m as A0,AG as MJ,BG as F0,CG as i0,EC as FQ,FC as vX,Gy as NZ,Hr as VQ,Hy as rQ,Ij as u0,Iu as NQ,Jj as pJ,Ju as CX,KE as OQ,Kk as qQ,Km as HJ,Kr as KX,Ky as a0,Kz as IX,Lm as DQ,Ly as CZ,Lz as DX,Mk as MX,NE as gX,QE as j0,RE as QX,Rj as dZ,Ru as zJ,Sj as tQ,Su as WQ,Uq as aZ,Uu as bX,Vj as r0,Vu as yZ,WG as pZ,Wu as iQ,XO as lZ,Xj as GZ,Xq as FX,Yj as UJ,Ym as GQ,Yq as cJ,ZG as kJ,Zm as EX,Zq as LQ,_G as JZ,_m as l,aH as WJ,aP as iZ,bH as ZZ,bx as RQ,cH as QZ,cn as Z0,dH as XZ,dn as B0,er as U0,ez as fJ,fH as p0,fz as BX,gH as _0,gP as LZ,gn as n,hH as PJ,hn as I0,hx as AX,kI as $0,mz as mZ,nI as FZ,nz as ZX,or as vQ,pj as VZ,qq as MZ,rD as HQ,tq as lQ,tr as d0,uD as hX,wG as WZ,wr as hQ,xG as RZ,yG as s0}from"./cli-0.6.5-5t6d3asz.mjs";import{SV as QJ,TV as nZ,fW as q0,gW as g0}from"./cli-0.6.5-6x91apzw.mjs";import{BY as C,DY as V,HY as JJ,RY as wZ,gX as R0,gZ as f0,pX as l0}from"./cli-0.6.5-f71ncwzk.mjs";import{c1 as hJ,j1 as yX}from"./cli-0.6.5-q1qpax7b.mjs";import{l1 as o,m1 as f,n1 as W,o1 as $}from"./cli-0.6.5-8hsxq1p3.mjs";import{p1 as o0}from"./cli-0.6.5-vqb4jtcr.mjs";import{A1 as mJ,K1 as MQ}from"./cli-0.6.5-95a4872h.mjs";import{M1 as DJ,N1 as JX}from"./cli-0.6.5-5rpfanmw.mjs";import{$1 as tJ,P4 as NJ,Q4 as wQ,a2 as IQ}from"./cli-0.6.5-c7yx03g7.mjs";import{B7 as t0,C7 as cZ,Fda as eJ,Nda as BQ,P_ as z0,Q$ as TZ,Q_ as w0,R$ as uZ,T$ as eQ,W_ as m0,eaa as Q0,maa as IJ,r9 as fQ,s9 as M0,u9 as CJ}from"./cli-0.6.5-ef6b5qvc.mjs";import{Vda as y0,Yda as b0,_da as oZ,aea as e0,bea as x0,iea as h0}from"./cli-0.6.5-pz5add8h.mjs";import{Nea as sJ,Zea as AQ}from"./cli-0.6.5-kac7d6qe.mjs";import{lga as t,oga as _J}from"./cli-0.6.5-6qvtcs5y.mjs";import{cha as $Z,eha as RX,oha as D0,rha as dJ}from"./cli-0.6.5-q4gh8d4w.mjs";import{Iha as v0,Pha as aJ}from"./cli-0.6.5-ce51qb6k.mjs";import{lpa as J0,mpa as FJ,opa as $J,ppa as a}from"./cli-0.6.5-bm7v9qp0.mjs";function T0(Q){return typeof Q==="object"&&Q!==null&&"type"in Q&&Q.type==="local_agent"}function qJ(Q){return{...Q,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:cJ(Q.status)?Date.now()+UQ:void 0}}function GJ(Q,J){t("tengu_transcript_view_enter",{}),J((Z)=>{let X=Z.tasks[Q],z=Z.viewingAgentTaskId,Y=z!==void 0?Z.tasks[z]:void 0,G=z!==void 0&&z!==Q&&T0(Y)&&Y.retain,q=T0(X)&&(!X.retain||X.evictAfter!==void 0),R=Z.viewingAgentTaskId!==Q||Z.viewSelectionMode!=="viewing-agent";if(!q&&!R&&!G)return Z;let F=Z.tasks;if(G||q){if(F={...Z.tasks},G)F[z]=qJ(Y);if(q)F[Q]={...X,retain:!0,evictAfter:void 0}}return{...Z,viewingAgentTaskId:Q,viewSelectionMode:"viewing-agent",tasks:F}})}function VJ(Q){t("tengu_transcript_view_exit",{}),Q((J)=>{let Z=J.viewingAgentTaskId,X={...J,viewingAgentTaskId:void 0,viewSelectionMode:"none"};if(Z===void 0)return J.viewSelectionMode==="none"?J:X;let z=J.tasks[Z];if(!T0(z)||!z.retain)return X;return{...X,tasks:{...J.tasks,[Z]:qJ(z)}}})}function xX(Q,J){J((Z)=>{let X=Z.tasks[Q];if(!T0(X))return Z;if(X.status==="running")return X.abortController?.abort(),Z;if(X.evictAfter===0)return Z;let z=Z.viewingAgentTaskId===Q;return{...Z,tasks:{...Z.tasks,[Q]:{...qJ(X),evictAfter:0}},...z&&{viewingAgentTaskId:void 0,viewSelectionMode:"none"}}})}var UQ=30000;var TJ=a(()=>{_J();LQ()});class xJ{exitPlanCalls=[];results=new Map;rejectedIds=new Set;terminated=null;rescanAfterRejection=!1;everSeenPending=!1;get rejectCount(){return this.rejectedIds.size}get hasPendingPlan(){let Q=this.exitPlanCalls.findLast((J)=>!this.rejectedIds.has(J));return Q!==void 0&&!this.results.has(Q)}ingest(Q){for(let X of Q)if(X.type==="assistant")for(let z of X.message.content){if(z.type!=="tool_use")continue;let Y=z;if(Y.name===u0)this.exitPlanCalls.push(Y.id)}else if(X.type==="user"){let z=X.message.content;if(!Array.isArray(z))continue;for(let Y of z)if(Y.type==="tool_result")this.results.set(Y.tool_use_id,Y)}else if(X.type==="result"&&X.subtype!=="success")this.terminated={subtype:X.subtype};let J=Q.length>0||this.rescanAfterRejection;this.rescanAfterRejection=!1;let Z=null;if(J){for(let X=this.exitPlanCalls.length-1;X>=0;X--){let z=this.exitPlanCalls[X];if(this.rejectedIds.has(z))continue;let Y=this.results.get(z);if(!Y)Z={kind:"pending"};else if(Y.is_error===!0){let G=KQ(Y.content);Z=G!==null?{kind:"teleport",plan:G}:{kind:"rejected",id:z}}else Z={kind:"approved",plan:CQ(Y.content)};break}if(Z?.kind==="approved"||Z?.kind==="teleport")return Z}if(Z?.kind==="rejected")this.rejectedIds.add(Z.id),this.rescanAfterRejection=!0;if(this.terminated)return{kind:"terminated",subtype:this.terminated.subtype};if(Z?.kind==="rejected")return Z;if(Z?.kind==="pending")return this.everSeenPending=!0,Z;return{kind:"unchanged"}}}async function rJ(Q,J,Z,X){let z=Date.now()+J,Y=new xJ,G=null,q=0,R="running";while(Date.now()<z){if(X?.())throw new W0("poll stopped by caller","stopped",Y.rejectCount);let F,O;try{let L=await kJ(Q,G);F=L.newEvents,G=L.lastEventId,O=L.sessionStatus,q=0}catch(L){if(!mJ(L)||++q>=yQ)throw new W0(L instanceof Error?L.message:String(L),"network_or_unknown",Y.rejectCount,{cause:L});await NJ(uJ);continue}let H;try{H=Y.ingest(F)}catch(L){throw new W0(L instanceof Error?L.message:String(L),"extract_marker_missing",Y.rejectCount)}if(H.kind==="approved")return{plan:H.plan,rejectCount:Y.rejectCount,executionTarget:"remote"};if(H.kind==="teleport")return{plan:H.plan,rejectCount:Y.rejectCount,executionTarget:"local"};if(H.kind==="terminated")throw new W0(`remote session ended (${H.subtype}) before plan approval`,"terminated",Y.rejectCount);let P=(O==="idle"||O==="requires_action")&&F.length===0,w=Y.hasPendingPlan?"plan_ready":P?"needs_input":"running";if(w!==R)D0(`[ultraplan] phase ${R} → ${w}`),R=w,Z?.(w);await NJ(uJ)}throw new W0(Y.everSeenPending?`no approval after ${J/1000}s`:`ExitPlanMode never reached after ${J/1000}s (the remote container failed to start, or session ID mismatch?)`,Y.everSeenPending?"timeout_pending":"timeout_no_plan",Y.rejectCount)}function lJ(Q){return typeof Q==="string"?Q:Array.isArray(Q)?Q.map((J)=>("text"in J)?J.text:"").join(""):""}function KQ(Q){let J=lJ(Q),Z=`${EQ}
|
|
2
|
-
`,X=J.indexOf(Z);if(X===-1)return null;return J.slice(X+Z.length).trimEnd()}function CQ(Q){let J=lJ(Q),Z=[`## Approved Plan (edited by user):
|
|
3
|
-
`,`## Approved Plan:
|
|
4
|
-
`];for(let X of Z){let z=J.indexOf(X);if(z!==-1)return J.slice(z+X.length).trimEnd()}throw Error(`ExitPlanMode approved but tool_result has no "## Approved Plan:" marker — remote may have hit the empty-plan or isAgent branch. Content preview: ${J.slice(0,200)}`)}var uJ=3000,yQ=5,W0,EQ="__ULTRAPLAN_TELEPORT_LOCAL__";var iJ=a(()=>{pJ();dJ();wQ();MQ();WJ();W0=class W0 extends Error{reason;rejectCount;constructor(Q,J,Z,X){super(Q,X);this.reason=J;this.rejectCount=Z;this.name="UltraplanPollError"}}});var oJ={};$J(oJ,{default:()=>bQ});var bQ=`This is a planning prompt stub.
|
|
5
|
-
`;var nJ=()=>{};function jQ(){return sJ("tengu_ultraplan_model",tJ.opus46.firstParty)}function TQ(Q,J){let Z=[];if(J)Z.push("Here is a draft plan to refine:","",J,"");if(Z.push(cQ),Q)Z.push("",Q);return Z.join(`
|
|
6
|
-
`)}function uQ(Q,J,Z,X,z){let Y=Date.now(),G=!1;(async()=>{try{let{plan:q,rejectCount:R,executionTarget:F}=await rJ(J,SQ,(O)=>{if(O==="needs_input")t("tengu_ultraplan_awaiting_input",{});d0(Q,z,(H)=>{if(H.status!=="running")return H;let P=O==="running"?void 0:O;return H.ultraplanPhase===P?H:{...H,ultraplanPhase:P}})},()=>X().tasks?.[Q]?.status!=="running");if(t("tengu_ultraplan_approved",{duration_ms:Date.now()-Y,plan_length:q.length,reject_count:R,execution_target:F}),F==="remote"){if(X().tasks?.[Q]?.status!=="running")return;d0(Q,z,(H)=>H.status!=="running"?H:{...H,status:"completed",endTime:Date.now()}),z((H)=>H.ultraplanSessionUrl===Z?{...H,ultraplanSessionUrl:void 0}:H),U0({value:[`Ultraplan approved — executing in Claude Code on the web. Follow along at: ${Z}`,"","Results will land as a pull request when the remote session finishes. There is nothing to do here."].join(`
|
|
7
|
-
`),mode:"task-notification"})}else z((O)=>{let H=O.tasks?.[Q];if(!H||H.status!=="running")return O;return{...O,ultraplanPendingChoice:{plan:q,sessionId:J,taskId:Q}}})}catch(q){if(X().tasks?.[Q]?.status!=="running")return;G=!0,t("tengu_ultraplan_failed",{duration_ms:Date.now()-Y,reason:q instanceof W0?q.reason:"network_or_unknown",reject_count:q instanceof W0?q.rejectCount:void 0}),U0({value:`Ultraplan failed: ${v0(q)}
|
|
8
|
-
|
|
9
|
-
Session: ${Z}`,mode:"task-notification"}),OJ(J).catch((F)=>D0(`ultraplan archive failed: ${String(F)}`)),z((F)=>F.ultraplanSessionUrl===Z?{...F,ultraplanSessionUrl:void 0}:F)}finally{if(G)d0(Q,z,(q)=>q.status!=="running"?q:{...q,status:"failed",endTime:Date.now()})}})()}function dQ(Q){let J=Q?`${YZ} `:"";return`${z0} ultraplan
|
|
10
|
-
${J}Starting Claude Code on the web…`}function mQ(Q){return`${z0} ultraplan · Monitor progress in Claude Code on the web ${Q}
|
|
11
|
-
You can continue working — when the ${z0} fills, press ↓ to view results`}function fZ(Q){return Q?`ultraplan: already polling. Open ${Q} to check status, or wait for the plan to land here.`:"ultraplan: already launching. Please wait for the session to start."}async function LJ(Q,J,Z){await p0.kill(Q,Z),Z((z)=>z.ultraplanSessionUrl||z.ultraplanPendingChoice||z.ultraplanLaunching?{...z,ultraplanSessionUrl:void 0,ultraplanPendingChoice:void 0,ultraplanLaunching:void 0}:z);let X=HJ(J,process.env.SESSION_INGRESS_URL);U0({value:`Ultraplan stopped.
|
|
12
|
-
|
|
13
|
-
Session: ${X}`,mode:"task-notification"}),U0({value:"The user stopped the ultraplan session above. Do not respond to the stop notification — wait for their next message.",mode:"task-notification",isMeta:!0})}async function pQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,disconnectedBridge:G,onSessionReady:q}=Q,{ultraplanSessionUrl:R,ultraplanLaunching:F}=X();if(R||F)return t("tengu_ultraplan_create_failed",{reason:R?"already_polling":"already_launching"}),fZ(R);if(!J&&!Z)return['Usage: /ultraplan \\<prompt\\>, or include "ultraplan" anywhere',"in your prompt","","Advanced multi-agent plan mode with our most powerful model","(Opus). Runs in Claude Code on the web. When the plan is ready,","you can execute it in the web session or send it back here.","Terminal stays free while the remote plans.","Requires /login.","",`Terms: ${zZ}`].join(`
|
|
14
|
-
`);return z((O)=>O.ultraplanLaunching?O:{...O,ultraplanLaunching:!0}),kQ({blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:q}),dQ(G)}async function kQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:G}=Q,q;try{let R=jQ(),F=await ZZ();if(!F.eligible){t("tengu_ultraplan_create_failed",{reason:"precondition",precondition_errors:F.errors.map((K)=>K.type).join(",")});let U=F.errors.map(QZ).join(`
|
|
15
|
-
`);U0({value:`ultraplan: cannot launch remote session —
|
|
16
|
-
${U}`,mode:"task-notification"});return}let O=TQ(J,Z),H,P=await JZ({initialMessage:O,description:J||"Refine local plan",model:R,permissionMode:"plan",ultraplan:!0,signal:Y,useDefaultEnvironment:!0,onBundleFail:(U)=>{H=U}});if(!P){t("tengu_ultraplan_create_failed",{reason:H?"bundle_fail":"teleport_null"}),U0({value:`ultraplan: session creation failed${H?` — ${H}`:""}. See --debug for details.`,mode:"task-notification"});return}q=P.id;let w=HJ(P.id,process.env.SESSION_INGRESS_URL);z((U)=>({...U,ultraplanSessionUrl:w,ultraplanLaunching:void 0})),G?.(mQ(w)),t("tengu_ultraplan_launched",{has_seed_plan:Boolean(Z),model:R});let{taskId:L}=XZ({remoteTaskType:"ultraplan",session:{id:P.id,title:J||"Ultraplan"},command:J,context:{abortController:new AbortController,getAppState:X,setAppState:z},isUltraplan:!0});uQ(L,P.id,w,X,z)}catch(R){if(eJ(R),t("tengu_ultraplan_create_failed",{reason:"unexpected_error"}),U0({value:`ultraplan: unexpected error — ${v0(R)}`,mode:"task-notification"}),q)OJ(q).catch((F)=>D0("ultraplan: failed to archive orphaned session",F)),z((F)=>F.ultraplanSessionUrl?{...F,ultraplanSessionUrl:void 0}:F)}finally{z((R)=>R.ultraplanLaunching?{...R,ultraplanLaunching:void 0}:R)}}var SQ=1800000,zZ="https://code.claude.com/docs/en/claude-code-on-the-web",RJ,_Q,cQ,xQ=async(Q,J,Z)=>{let X=Z.trim();if(!X){let G=await pQ({blurb:X,getAppState:J.getAppState,setAppState:J.setAppState,signal:J.abortController.signal});return Q(G,{display:"system"}),null}let{ultraplanSessionUrl:z,ultraplanLaunching:Y}=J.getAppState();if(z||Y)return t("tengu_ultraplan_create_failed",{reason:z?"already_polling":"already_launching"}),Q(fZ(z),{display:"system"}),null;return J.setAppState((G)=>({...G,ultraplanLaunchPending:{blurb:X}})),Q(void 0,{display:"skip"}),null},WY;var qZ=a(()=>{gQ();m0();DQ();AQ();_J();PJ();dJ();aJ();BQ();vQ();IQ();hQ();WJ();iJ();RJ=(nJ(),FJ(oJ)),_Q=(typeof RJ==="string"?RJ:RJ.default).trimEnd(),cQ=_Q;WY={type:"local-jsx",name:"ultraplan",description:`~10–30 min · Claude Code on the web drafts an advanced plan you can edit and approve. See ${zZ}`,argumentHint:"<prompt>",isEnabled:()=>!1,load:()=>Promise.resolve({call:xQ})}});function k0(Q,J,Z){let X=GZ(J,Q.toolName);if(!X)return Q.toolName;try{let z=X.inputSchema.safeParse(Q.input),Y=z.success?z.data:{},G=X.userFacingName(Y);if(!G)return Q.toolName;let q=X.renderToolUseMessage(Y,{theme:Z,verbose:!1});if(q)return W(V,{children:[G,"(",q,")"]});return G}catch{return Q.toolName}}var wJ=a(()=>{f0();UJ();$()});function OZ(Q){let J=HZ.c(54),{agent:Z,onDone:X,onKillAgent:z,onBack:Y}=Q,[G]=l0(),q;if(J[0]===Symbol.for("react.memo_cache_sentinel"))q=$0(r0()),J[0]=q;else q=J[0];let R=q,F=F0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),O;if(J[1]!==X)O={"confirm:yes":X},J[1]=X,J[2]=O;else O=J[2];let H;if(J[3]===Symbol.for("react.memo_cache_sentinel"))H={context:"Confirmation"},J[3]=H;else H=J[3];q0(O,H);let P;if(J[4]!==Z.status||J[5]!==Y||J[6]!==X||J[7]!==z)P=(g)=>{if(g.key===" ")g.preventDefault(),X();else if(g.key==="left"&&Y)g.preventDefault(),Y();else if(g.key==="x"&&Z.status==="running"&&z)g.preventDefault(),z()},J[4]=Z.status,J[5]=Y,J[6]=X,J[7]=z,J[8]=P;else P=J[8];let w=P,L;if(J[9]!==Z.prompt)L=VZ(Z.prompt,"plan"),J[9]=Z.prompt,J[10]=L;else L=J[10];let U=L,K=Z.prompt.length>300?Z.prompt.substring(0,297)+"…":Z.prompt,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,v=Z.selectedAgent?.agentType??"agent",D=Z.description||"Async agent",I;if(J[11]!==v||J[12]!==D)I=W(V,{children:[v," ›"," ",D]}),J[11]=v,J[12]=D,J[13]=I;else I=J[13];let y=I,B;if(J[14]!==Z.status)B=Z.status!=="running"&&W(V,{color:RZ(Z.status),children:[WZ(Z.status)," ",Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[14]=Z.status,J[15]=B;else B=J[15];let m;if(J[16]!==E)m=E!==void 0&&E>0&&W(o,{children:[" · ",x0(E)," tokens"]}),J[16]=E,J[17]=m;else m=J[17];let u;if(J[18]!==A)u=A!==void 0&&A>0&&W(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[18]=A,J[19]=u;else u=J[19];let S;if(J[20]!==F||J[21]!==m||J[22]!==u)S=W(V,{dimColor:!0,children:[F,m,u]}),J[20]=F,J[21]=m,J[22]=u,J[23]=S;else S=J[23];let x;if(J[24]!==S||J[25]!==B)x=W(V,{children:[B,S]}),J[24]=S,J[25]=B,J[26]=x;else x=J[26];let d=x,h;if(J[27]!==Z.status||J[28]!==Y||J[29]!==z)h=(g)=>g.pending?W(V,{children:["Press ",g.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"})]}),J[27]=Z.status,J[28]=Y,J[29]=z,J[30]=h;else h=J[30];let b;if(J[31]!==Z.progress||J[32]!==Z.status||J[33]!==G)b=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&W(C,{flexDirection:"column",children:[f(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((g,k)=>W(V,{dimColor:k<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[k===Z.progress.recentActivities.length-1?"› ":" ",k0(g,R,G)]},k))]}),J[31]=Z.progress,J[32]=Z.status,J[33]=G,J[34]=b;else b=J[34];let p;if(J[35]!==K||J[36]!==U)p=U?f(C,{marginTop:1,children:f(NZ,{addMargin:!1,planContent:U})}):W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,dimColor:!0,children:"Prompt"}),f(V,{wrap:"wrap",children:K})]}),J[35]=K,J[36]=U,J[37]=p;else p=J[37];let c;if(J[38]!==Z.error||J[39]!==Z.status)c=Z.status==="failed"&&Z.error&&W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,color:"error",children:"Error"}),f(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[38]=Z.error,J[39]=Z.status,J[40]=c;else c=J[40];let _;if(J[41]!==b||J[42]!==p||J[43]!==c)_=W(C,{flexDirection:"column",children:[b,p,c]}),J[41]=b,J[42]=p,J[43]=c,J[44]=_;else _=J[44];let j;if(J[45]!==X||J[46]!==d||J[47]!==h||J[48]!==_||J[49]!==y)j=f(n,{title:y,subtitle:d,onCancel:X,color:"background",inputGuide:h,children:_}),J[45]=X,J[46]=d,J[47]=h,J[48]=_,J[49]=y,J[50]=j;else j=J[50];let T;if(J[51]!==w||J[52]!==j)T=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:w,children:j}),J[51]=w,J[52]=j,J[53]=T;else T=J[53];return T}var HZ;var PZ=a(()=>{i0();f0();g0();UJ();FZ();h0();LZ();B0();I0();A0();rQ();wJ();MJ();$();HZ=J0(R0(),1)});function bJ(Q,J,Z,X){if(!Q)return`${J} found · ${Z} verified`;if(Q==="synthesizing"){let z=[`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.push("deduping"),z.join(" · ")}if(Q==="verifying"){let z=[`${J} found`,`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return J>0?`${J} found`:"finding"}function yJ(Q){let J=n0.c(5),{text:Z,phase:X}=Q,z=X===void 0?0:X,Y;if(J[0]!==Z)Y=[...Z],J[0]=Z,J[1]=Y;else Y=J[1];let G;if(J[2]!==z||J[3]!==Y)G=f(o,{children:Y.map((q,R)=>f(V,{color:MZ(R+z),children:q},R))}),J[2]=z,J[3]=Y,J[4]=G;else G=J[4];return G}function EJ(Q,J,Z){let X=KJ.useRef(Q),z=KJ.useRef(J);if(Z||Q<X.current)X.current=Q;else if(Q>X.current&&J!==z.current)X.current+=1,z.current=J;return X.current}function $Q(Q){let J=n0.c(15),{session:Z}=Q,z=yZ().prefersReducedMotion??!1,Y=Z.reviewProgress,G=Z.status==="running",[,q]=wZ(G&&!z?UZ:null),R=Y?.bugsFound??0,F=Y?.bugsVerified??0,O=Y?.bugsRefuted??0,H=z||!G,P=EJ(R,q,H),w=EJ(F,q,H),L=EJ(O,q,H),U=Math.floor(q/(UZ*3))%7;if(Z.status==="completed"){let B;if(J[0]===Symbol.for("react.memo_cache_sentinel"))B=W(o,{children:[W(V,{color:"background",children:[w0," "]}),f(yJ,{text:"ultrareview",phase:0}),f(V,{dimColor:!0,children:" ready · shift+↓ to view"})]}),J[0]=B;else B=J[0];return B}if(Z.status==="failed"){let B;if(J[1]===Symbol.for("react.memo_cache_sentinel"))B=W(o,{children:[W(V,{color:"background",children:[w0," "]}),f(yJ,{text:"ultrareview",phase:0}),W(V,{color:"error",dimColor:!0,children:[" · ","error"]})]}),J[1]=B;else B=J[1];return B}let K;if(J[2]!==P||J[3]!==Y||J[4]!==L||J[5]!==w)K=!Y?"setting up":bJ(Y.stage,P,w,L),J[2]=P,J[3]=Y,J[4]=L,J[5]=w,J[6]=K;else K=J[6];let E=K,A;if(J[7]===Symbol.for("react.memo_cache_sentinel"))A=W(V,{color:"background",children:[z0," "]}),J[7]=A;else A=J[7];let v=G?U:0,D;if(J[8]!==v)D=f(yJ,{text:"ultrareview",phase:v}),J[8]=v,J[9]=D;else D=J[9];let I;if(J[10]!==E)I=W(V,{dimColor:!0,children:[" · ",E]}),J[10]=E,J[11]=I;else I=J[11];let y;if(J[12]!==D||J[13]!==I)y=W(o,{children:[A,D,I]}),J[12]=D,J[13]=I,J[14]=y;else y=J[14];return y}function S0(Q){let J=n0.c(11),{session:Z}=Q;if(Z.isRemoteReview){let q;if(J[0]!==Z)q=f($Q,{session:Z}),J[0]=Z,J[1]=q;else q=J[1];return q}if(Z.status==="completed"){let q;if(J[2]===Symbol.for("react.memo_cache_sentinel"))q=f(V,{bold:!0,color:"success",dimColor:!0,children:"done"}),J[2]=q;else q=J[2];return q}if(Z.status==="failed"){let q;if(J[3]===Symbol.for("react.memo_cache_sentinel"))q=f(V,{bold:!0,color:"error",dimColor:!0,children:"error"}),J[3]=q;else q=J[3];return q}if(!Z.todoList.length){let q;if(J[4]!==Z.status)q=W(V,{dimColor:!0,children:[Z.status,"…"]}),J[4]=Z.status,J[5]=q;else q=J[5];return q}let X;if(J[6]!==Z.todoList)X=M0(Z.todoList,oQ),J[6]=Z.todoList,J[7]=X;else X=J[7];let z=X,Y=Z.todoList.length,G;if(J[8]!==z||J[9]!==Y)G=W(V,{dimColor:!0,children:[z,"/",Y]}),J[8]=z,J[9]=Y,J[10]=G;else G=J[10];return G}function oQ(Q){return Q.status==="completed"}var n0,KJ,UZ=80;var AJ=a(()=>{m0();iQ();f0();CJ();lQ();$();n0=J0(R0(),1),KJ=J0(o0(),1)});function H0(Q){let J=BJ.c(4),{status:Z,label:X,suffix:z}=Q,Y=X??Z,G=Z==="completed"?"success":Z==="failed"?"error":Z==="killed"?"warning":void 0,q;if(J[0]!==G||J[1]!==Y||J[2]!==z)q=W(V,{color:G,dimColor:!0,children:["(",Y,z,")"]}),J[0]=G,J[1]=Y,J[2]=z,J[3]=q;else q=J[3];return q}function EZ(Q){let J=BJ.c(4),{shell:Z}=Q;switch(Z.status){case"completed":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"completed",label:"done"}),J[0]=X;else X=J[0];return X}case"failed":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"failed",label:"error"}),J[1]=X;else X=J[1];return X}case"killed":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"killed",label:"stopped"}),J[2]=X;else X=J[2];return X}case"running":case"pending":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"running"}),J[3]=X;else X=J[3];return X}}}var BJ;var KZ=a(()=>{f0();$();BJ=J0(R0(),1)});function AZ(Q){let J=bZ.c(92),{task:Z,maxActivityWidth:X}=Q,z=X??40;switch(Z.type){case"local_bash":{let Y=Z.kind==="monitor"?Z.description:Z.command,G;if(J[0]!==z||J[1]!==Y)G=b0(Y,z,!0),J[0]=z,J[1]=Y,J[2]=G;else G=J[2];let q;if(J[3]!==Z)q=f(EZ,{shell:Z}),J[3]=Z,J[4]=q;else q=J[4];let R;if(J[5]!==G||J[6]!==q)R=W(V,{children:[G," ",q]}),J[5]=G,J[6]=q,J[7]=R;else R=J[7];return R}case"remote_agent":{if(Z.isRemoteReview){let P;if(J[8]!==Z)P=f(V,{children:f(S0,{session:Z})}),J[8]=Z,J[9]=P;else P=J[9];return P}let G=Z.status==="running"||Z.status==="pending"?z0:w0,q;if(J[10]!==G)q=W(V,{dimColor:!0,children:[G," "]}),J[10]=G,J[11]=q;else q=J[11];let R;if(J[12]!==z||J[13]!==Z.title)R=b0(Z.title,z,!0),J[12]=z,J[13]=Z.title,J[14]=R;else R=J[14];let F;if(J[15]===Symbol.for("react.memo_cache_sentinel"))F=f(V,{dimColor:!0,children:" · "}),J[15]=F;else F=J[15];let O;if(J[16]!==Z)O=f(S0,{session:Z}),J[16]=Z,J[17]=O;else O=J[17];let H;if(J[18]!==q||J[19]!==R||J[20]!==O)H=W(V,{children:[q,R,F,O]}),J[18]=q,J[19]=R,J[20]=O,J[21]=H;else H=J[21];return H}case"local_agent":{let Y;if(J[22]!==z||J[23]!==Z.description)Y=b0(Z.description,z,!0),J[22]=z,J[23]=Z.description,J[24]=Y;else Y=J[24];let G=Z.status==="completed"?"done":void 0,q=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[25]!==G||J[26]!==q||J[27]!==Z.status)R=f(H0,{status:Z.status,label:G,suffix:q}),J[25]=G,J[26]=q,J[27]=Z.status,J[28]=R;else R=J[28];let F;if(J[29]!==Y||J[30]!==R)F=W(V,{children:[Y," ",R]}),J[29]=Y,J[30]=R,J[31]=F;else F=J[31];return F}case"in_process_teammate":{let Y,G,q,R,F,O;if(J[32]!==z||J[33]!==Z){let w=s0(Z);G=V;let L;if(J[40]!==Z.identity.color)L=a0(Z.identity.color),J[40]=Z.identity.color,J[41]=L;else L=J[41];if(J[42]!==L||J[43]!==Z.identity.agentName)O=W(V,{color:L,children:["@",Z.identity.agentName]}),J[42]=L,J[43]=Z.identity.agentName,J[44]=O;else O=J[44];Y=V,q=!0,R=": ",F=b0(w,z,!0),J[32]=z,J[33]=Z,J[34]=Y,J[35]=G,J[36]=q,J[37]=R,J[38]=F,J[39]=O}else Y=J[34],G=J[35],q=J[36],R=J[37],F=J[38],O=J[39];let H;if(J[45]!==Y||J[46]!==q||J[47]!==R||J[48]!==F)H=W(Y,{dimColor:q,children:[R,F]}),J[45]=Y,J[46]=q,J[47]=R,J[48]=F,J[49]=H;else H=J[49];let P;if(J[50]!==G||J[51]!==O||J[52]!==H)P=W(G,{children:[O,H]}),J[50]=G,J[51]=O,J[52]=H,J[53]=P;else P=J[53];return P}case"local_workflow":{let Y=Z.workflowName??Z.summary??Z.description,G;if(J[54]!==z||J[55]!==Y)G=b0(Y,z,!0),J[54]=z,J[55]=Y,J[56]=G;else G=J[56];let q;if(J[57]!==Z.agentCount||J[58]!==Z.status)q=Z.status==="running"?`${Z.agentCount} ${Q0(Z.agentCount,"agent")}`:Z.status==="completed"?"done":void 0,J[57]=Z.agentCount,J[58]=Z.status,J[59]=q;else q=J[59];let R=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[60]!==q||J[61]!==R||J[62]!==Z.status)F=f(H0,{status:Z.status,label:q,suffix:R}),J[60]=q,J[61]=R,J[62]=Z.status,J[63]=F;else F=J[63];let O;if(J[64]!==G||J[65]!==F)O=W(V,{children:[G," ",F]}),J[64]=G,J[65]=F,J[66]=O;else O=J[66];return O}case"monitor_mcp":{let Y;if(J[67]!==z||J[68]!==Z.description)Y=b0(Z.description,z,!0),J[67]=z,J[68]=Z.description,J[69]=Y;else Y=J[69];let G=Z.status==="completed"?"done":void 0,q=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[70]!==G||J[71]!==q||J[72]!==Z.status)R=f(H0,{status:Z.status,label:G,suffix:q}),J[70]=G,J[71]=q,J[72]=Z.status,J[73]=R;else R=J[73];let F;if(J[74]!==Y||J[75]!==R)F=W(V,{children:[Y," ",R]}),J[74]=Y,J[75]=R,J[76]=F;else F=J[76];return F}case"dream":{let Y=Z.filesTouched.length,G;if(J[77]!==Y||J[78]!==Z.phase||J[79]!==Z.sessionsReviewing)G=Z.phase==="updating"&&Y>0?`${Y} ${Q0(Y,"file")}`:`${Z.sessionsReviewing} ${Q0(Z.sessionsReviewing,"session")}`,J[77]=Y,J[78]=Z.phase,J[79]=Z.sessionsReviewing,J[80]=G;else G=J[80];let q=G,R;if(J[81]!==q||J[82]!==Z.phase)R=W(V,{dimColor:!0,children:["· ",Z.phase," · ",q]}),J[81]=q,J[82]=Z.phase,J[83]=R;else R=J[83];let F=Z.status==="completed"?"done":void 0,O=Z.status==="completed"&&!Z.notified?", unread":void 0,H;if(J[84]!==F||J[85]!==O||J[86]!==Z.status)H=f(H0,{status:Z.status,label:F,suffix:O}),J[84]=F,J[85]=O,J[86]=Z.status,J[87]=H;else H=J[87];let P;if(J[88]!==R||J[89]!==H||J[90]!==Z.description)P=W(V,{children:[Z.description," ",R," ",H]}),J[88]=R,J[89]=H,J[90]=Z.description,J[91]=P;else P=J[91];return P}}}var bZ;var BZ=a(()=>{f0();h0();CZ();IJ();m0();AJ();KZ();MJ();$();bZ=J0(R0(),1)});function DZ(Q){let J=IZ.c(70),{task:Z,onDone:X,onBack:z,onKill:Y}=Q,G=F0(Z.startTime,Z.status==="running",1000,0),q;if(J[0]!==X)q={"confirm:yes":X},J[0]=X,J[1]=q;else q=J[1];let R;if(J[2]===Symbol.for("react.memo_cache_sentinel"))R={context:"Confirmation"},J[2]=R;else R=J[2];q0(q,R);let F;if(J[3]!==z||J[4]!==X||J[5]!==Y||J[6]!==Z.status)F=(b)=>{if(b.key===" ")b.preventDefault(),X();else if(b.key==="left"&&z)b.preventDefault(),z();else if(b.key==="x"&&Z.status==="running"&&Y)b.preventDefault(),Y()},J[3]=z,J[4]=X,J[5]=Y,J[6]=Z.status,J[7]=F;else F=J[7];let O=F,H,P,w,L,U,K,E,A,v,D,I,y,B,m,u,S;if(J[8]!==G||J[9]!==O||J[10]!==z||J[11]!==X||J[12]!==Y||J[13]!==Z.filesTouched.length||J[14]!==Z.sessionsReviewing||J[15]!==Z.status||J[16]!==Z.turns){let b=Z.turns.filter(sQ),p=b.slice(-nQ),c=b.length-p.length;w=C,E="column",A=0,v=!0,D=O,P=n,u="Memory consolidation";let _=Z.sessionsReviewing,j;if(J[33]!==Z.sessionsReviewing)j=Q0(Z.sessionsReviewing,"session"),J[33]=Z.sessionsReviewing,J[34]=j;else j=J[34];let T;if(J[35]!==Z.filesTouched.length)T=Z.filesTouched.length>0&&W(o,{children:[" ","· ",Z.filesTouched.length," ",Q0(Z.filesTouched.length,"file")," touched"]}),J[35]=Z.filesTouched.length,J[36]=T;else T=J[36];if(J[37]!==G||J[38]!==j||J[39]!==T||J[40]!==Z.sessionsReviewing)S=W(V,{dimColor:!0,children:[G," · reviewing ",_," ",j,T]}),J[37]=G,J[38]=j,J[39]=T,J[40]=Z.sessionsReviewing,J[41]=S;else S=J[41];if(L=X,U="background",J[42]!==z||J[43]!==Y||J[44]!==Z.status)K=(k)=>k.pending?W(V,{children:["Press ",k.keyName," again to exit"]}):W(Z0,{children:[z&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&Y&&f(l,{shortcut:"x",action:"stop"})]}),J[42]=z,J[43]=Y,J[44]=Z.status,J[45]=K;else K=J[45];H=C,I="column",y=1;let g;if(J[46]===Symbol.for("react.memo_cache_sentinel"))g=f(V,{bold:!0,children:"Status:"}),J[46]=g;else g=J[46];if(J[47]!==Z.status)B=W(V,{children:[g," ",Z.status==="running"?f(V,{color:"background",children:"running"}):Z.status==="completed"?f(V,{color:"success",children:Z.status}):f(V,{color:"error",children:Z.status})]}),J[47]=Z.status,J[48]=B;else B=J[48];m=p.length===0?f(V,{dimColor:!0,children:Z.status==="running"?"Starting…":"(no text output)"}):W(o,{children:[c>0&&W(V,{dimColor:!0,children:["(",c," earlier ",Q0(c,"turn"),")"]}),p.map(aQ)]}),J[8]=G,J[9]=O,J[10]=z,J[11]=X,J[12]=Y,J[13]=Z.filesTouched.length,J[14]=Z.sessionsReviewing,J[15]=Z.status,J[16]=Z.turns,J[17]=H,J[18]=P,J[19]=w,J[20]=L,J[21]=U,J[22]=K,J[23]=E,J[24]=A,J[25]=v,J[26]=D,J[27]=I,J[28]=y,J[29]=B,J[30]=m,J[31]=u,J[32]=S}else H=J[17],P=J[18],w=J[19],L=J[20],U=J[21],K=J[22],E=J[23],A=J[24],v=J[25],D=J[26],I=J[27],y=J[28],B=J[29],m=J[30],u=J[31],S=J[32];let x;if(J[49]!==H||J[50]!==I||J[51]!==y||J[52]!==B||J[53]!==m)x=W(H,{flexDirection:I,gap:y,children:[B,m]}),J[49]=H,J[50]=I,J[51]=y,J[52]=B,J[53]=m,J[54]=x;else x=J[54];let d;if(J[55]!==P||J[56]!==L||J[57]!==U||J[58]!==K||J[59]!==x||J[60]!==u||J[61]!==S)d=f(P,{title:u,subtitle:S,onCancel:L,color:U,inputGuide:K,children:x}),J[55]=P,J[56]=L,J[57]=U,J[58]=K,J[59]=x,J[60]=u,J[61]=S,J[62]=d;else d=J[62];let h;if(J[63]!==w||J[64]!==E||J[65]!==A||J[66]!==v||J[67]!==D||J[68]!==d)h=f(w,{flexDirection:E,tabIndex:A,autoFocus:v,onKeyDown:D,children:d}),J[63]=w,J[64]=E,J[65]=A,J[66]=v,J[67]=D,J[68]=d,J[69]=h;else h=J[69];return h}function aQ(Q,J){return W(C,{flexDirection:"column",children:[f(V,{wrap:"wrap",children:Q.text}),Q.toolUseCount>0&&W(V,{dimColor:!0,children:[" ","(",Q.toolUseCount," ",Q0(Q.toolUseCount,"tool"),")"]})]},J)}function sQ(Q){return Q.text!==""}var IZ,nQ=6;var vZ=a(()=>{i0();f0();g0();IJ();B0();I0();A0();$();IZ=J0(R0(),1)});function gZ(Q){let J=hZ.c(63),{teammate:Z,onDone:X,onKill:z,onBack:Y,onForeground:G}=Q,[q]=l0(),R;if(J[0]===Symbol.for("react.memo_cache_sentinel"))R=$0(r0()),J[0]=R;else R=J[0];let F=R,O=F0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),H;if(J[1]!==X)H={"confirm:yes":X},J[1]=X,J[2]=H;else H=J[2];let P;if(J[3]===Symbol.for("react.memo_cache_sentinel"))P={context:"Confirmation"},J[3]=P;else P=J[3];q0(H,P);let w;if(J[4]!==Y||J[5]!==X||J[6]!==G||J[7]!==z||J[8]!==Z.status)w=(M)=>{if(M.key===" ")M.preventDefault(),X();else if(M.key==="left"&&Y)M.preventDefault(),Y();else if(M.key==="x"&&Z.status==="running"&&z)M.preventDefault(),z();else if(M.key==="f"&&Z.status==="running"&&G)M.preventDefault(),G()},J[4]=Y,J[5]=X,J[6]=G,J[7]=z,J[8]=Z.status,J[9]=w;else w=J[9];let L=w,U;if(J[10]!==Z)U=s0(Z),J[10]=Z,J[11]=U;else U=J[11];let K=U,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,v;if(J[12]!==Z.prompt)v=y0(Z.prompt,300),J[12]=Z.prompt,J[13]=v;else v=J[13];let D=v,I;if(J[14]!==Z.identity.color)I=a0(Z.identity.color),J[14]=Z.identity.color,J[15]=I;else I=J[15];let y;if(J[16]!==I||J[17]!==Z.identity.agentName)y=W(V,{color:I,children:["@",Z.identity.agentName]}),J[16]=I,J[17]=Z.identity.agentName,J[18]=y;else y=J[18];let B;if(J[19]!==K)B=K&&W(V,{dimColor:!0,children:[" (",K,")"]}),J[19]=K,J[20]=B;else B=J[20];let m;if(J[21]!==y||J[22]!==B)m=W(V,{children:[y,B]}),J[21]=y,J[22]=B,J[23]=m;else m=J[23];let u=m,S;if(J[24]!==Z.status)S=Z.status!=="running"&&W(V,{color:Z.status==="completed"?"success":Z.status==="killed"?"warning":"error",children:[Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[24]=Z.status,J[25]=S;else S=J[25];let x;if(J[26]!==E)x=E!==void 0&&E>0&&W(o,{children:[" · ",x0(E)," tokens"]}),J[26]=E,J[27]=x;else x=J[27];let d;if(J[28]!==A)d=A!==void 0&&A>0&&W(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[28]=A,J[29]=d;else d=J[29];let h;if(J[30]!==O||J[31]!==x||J[32]!==d)h=W(V,{dimColor:!0,children:[O,x,d]}),J[30]=O,J[31]=x,J[32]=d,J[33]=h;else h=J[33];let b;if(J[34]!==S||J[35]!==h)b=W(V,{children:[S,h]}),J[34]=S,J[35]=h,J[36]=b;else b=J[36];let p=b,c;if(J[37]!==Y||J[38]!==G||J[39]!==z||J[40]!==Z.status)c=(M)=>M.pending?W(V,{children:["Press ",M.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"}),Z.status==="running"&&G&&f(l,{shortcut:"f",action:"foreground"})]}),J[37]=Y,J[38]=G,J[39]=z,J[40]=Z.status,J[41]=c;else c=J[41];let _;if(J[42]!==Z.progress||J[43]!==Z.status||J[44]!==q)_=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&W(C,{flexDirection:"column",children:[f(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((M,r)=>W(V,{dimColor:r<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[r===Z.progress.recentActivities.length-1?"› ":" ",k0(M,F,q)]},r))]}),J[42]=Z.progress,J[43]=Z.status,J[44]=q,J[45]=_;else _=J[45];let j;if(J[46]===Symbol.for("react.memo_cache_sentinel"))j=f(V,{bold:!0,dimColor:!0,children:"Prompt"}),J[46]=j;else j=J[46];let T;if(J[47]!==D)T=W(C,{flexDirection:"column",marginTop:1,children:[j,f(V,{wrap:"wrap",children:D})]}),J[47]=D,J[48]=T;else T=J[48];let g;if(J[49]!==Z.error||J[50]!==Z.status)g=Z.status==="failed"&&Z.error&&W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,color:"error",children:"Error"}),f(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[49]=Z.error,J[50]=Z.status,J[51]=g;else g=J[51];let k;if(J[52]!==X||J[53]!==p||J[54]!==c||J[55]!==_||J[56]!==T||J[57]!==g||J[58]!==u)k=W(n,{title:u,subtitle:p,onCancel:X,color:"background",inputGuide:c,children:[_,T,g]}),J[52]=X,J[53]=p,J[54]=c,J[55]=_,J[56]=T,J[57]=g,J[58]=u,J[59]=k;else k=J[59];let N;if(J[60]!==L||J[61]!==k)N=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:L,children:k}),J[60]=L,J[61]=k,J[62]=N;else N=J[62];return N}var hZ;var SZ=a(()=>{i0();f0();g0();UJ();FZ();h0();CZ();B0();I0();A0();wJ();MJ();$();hZ=J0(R0(),1)});function YX(Q,J){if(Q===u0)return"Review the plan in Claude Code on the web";if(!J||typeof J!=="object")return Q;if(Q===dZ&&"questions"in J){let Z=J.questions;if(Array.isArray(Z)&&Z[0]&&typeof Z[0]==="object"){let X="question"in Z[0]&&typeof Z[0].question==="string"&&Z[0].question?Z[0].question:("header"in Z[0])&&typeof Z[0].header==="string"?Z[0].header:null;if(X){let z=X.replace(/\s+/g," ").trim();return`Answer in browser: ${y0(z,50)}`}}}for(let Z of Object.values(J))if(typeof Z==="string"&&Z.trim()){let X=Z.replace(/\s+/g," ").trim();return`${Q} ${y0(X,60)}`}return Q}function qX(Q){let J=ZJ.c(70),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,G=Z.status==="running"||Z.status==="pending",q=Z.ultraplanPhase,R=G?q?zX[q]:"running":Z.status,F=F0(Z.startTime,G,1000,0,Z.endTime),O=0,H=0,P=null;for(let X0 of Z.log){if(X0.type!=="assistant")continue;for(let e of X0.message.content){if(e.type!=="tool_use")continue;if(H++,P=e,e.name===TZ||e.name===uZ)O++}}let w=1+O,L;if(J[0]!==P)L=P?YX(P.name,P.input):null,J[0]=P,J[1]=L;else L=J[1];let U;if(J[2]!==H||J[3]!==w||J[4]!==L)U={agentsWorking:w,toolCalls:H,lastToolCall:L},J[2]=H,J[3]=w,J[4]=L,J[5]=U;else U=J[5];let{agentsWorking:K,toolCalls:E,lastToolCall:A}=U,v;if(J[6]!==Z.sessionId)v=_0(Z.sessionId),J[6]=Z.sessionId,J[7]=v;else v=J[7];let D=v,I;if(J[8]!==z||J[9]!==X)I=z??(()=>X("Remote session details dismissed",{display:"system"})),J[8]=z,J[9]=X,J[10]=I;else I=J[10];let y=I,[B,m]=O0.useState(!1);if(B){let X0;if(J[11]===Symbol.for("react.memo_cache_sentinel"))X0=()=>m(!1),J[11]=X0;else X0=J[11];let e;if(J[12]===Symbol.for("react.memo_cache_sentinel"))e=f(V,{dimColor:!0,children:"This will terminate the Claude Code on the web session."}),J[12]=e;else e=J[12];let C0;if(J[13]===Symbol.for("react.memo_cache_sentinel"))C0={label:"Terminate session",value:"stop"},J[13]=C0;else C0=J[13];let i;if(J[14]===Symbol.for("react.memo_cache_sentinel"))i=[C0,{label:"Back",value:"back"}],J[14]=i;else i=J[14];let L0;if(J[15]!==y||J[16]!==Y)L0=f(n,{title:"Stop ultraplan?",onCancel:X0,color:"background",children:W(C,{flexDirection:"column",gap:1,children:[e,f(j0,{options:i,onChange:(c0)=>{if(c0==="stop")Y?.(),y();else m(!1)}})]})}),J[15]=y,J[16]=Y,J[17]=L0;else L0=J[17];return L0}let u=q==="plan_ready"?w0:z0,S;if(J[18]!==u)S=W(V,{color:"background",children:[u," "]}),J[18]=u,J[19]=S;else S=J[19];let x;if(J[20]===Symbol.for("react.memo_cache_sentinel"))x=f(V,{bold:!0,children:"ultraplan"}),J[20]=x;else x=J[20];let d;if(J[21]!==F||J[22]!==R)d=W(V,{dimColor:!0,children:[" · ",F," · ",R]}),J[21]=F,J[22]=R,J[23]=d;else d=J[23];let h;if(J[24]!==S||J[25]!==d)h=W(V,{children:[S,x,d]}),J[24]=S,J[25]=d,J[26]=h;else h=J[26];let b;if(J[27]!==q)b=q==="plan_ready"&&W(V,{color:"success",children:[t0.tick," "]}),J[27]=q,J[28]=b;else b=J[28];let p;if(J[29]!==K)p=Q0(K,"agent"),J[29]=K,J[30]=p;else p=J[30];let c=q?fX[q]:"working",_;if(J[31]!==E)_=Q0(E,"call"),J[31]=E,J[32]=_;else _=J[32];let j;if(J[33]!==K||J[34]!==b||J[35]!==p||J[36]!==c||J[37]!==_||J[38]!==E)j=W(V,{children:[b,K," ",p," ",c," · ",E," tool"," ",_]}),J[33]=K,J[34]=b,J[35]=p,J[36]=c,J[37]=_,J[38]=E,J[39]=j;else j=J[39];let T;if(J[40]!==A)T=A&&f(V,{dimColor:!0,children:A}),J[40]=A,J[41]=T;else T=J[41];let g;if(J[42]!==D)g=f(V,{dimColor:!0,children:D}),J[42]=D,J[43]=g;else g=J[43];let k;if(J[44]!==D||J[45]!==g)k=f(JJ,{url:D,children:g}),J[44]=D,J[45]=g,J[46]=k;else k=J[46];let N;if(J[47]===Symbol.for("react.memo_cache_sentinel"))N={label:"Review in Claude Code on the web",value:"open"},J[47]=N;else N=J[47];let M;if(J[48]!==Y||J[49]!==G)M=Y&&G?[{label:"Stop ultraplan",value:"stop"}]:[],J[48]=Y,J[49]=G,J[50]=M;else M=J[50];let r;if(J[51]===Symbol.for("react.memo_cache_sentinel"))r={label:"Back",value:"back"},J[51]=r;else r=J[51];let s;if(J[52]!==M)s=[N,...M,r],J[52]=M,J[53]=s;else s=J[53];let Y0;if(J[54]!==y||J[55]!==X||J[56]!==D)Y0=(X0)=>{switch(X0){case"open":{DJ(D),X();return}case"stop":{m(!0);return}case"back":{y();return}}},J[54]=y,J[55]=X,J[56]=D,J[57]=Y0;else Y0=J[57];let V0;if(J[58]!==s||J[59]!==Y0)V0=f(j0,{options:s,onChange:Y0}),J[58]=s,J[59]=Y0,J[60]=V0;else V0=J[60];let N0;if(J[61]!==j||J[62]!==T||J[63]!==k||J[64]!==V0)N0=W(C,{flexDirection:"column",gap:1,children:[j,T,k,V0]}),J[61]=j,J[62]=T,J[63]=k,J[64]=V0,J[65]=N0;else N0=J[65];let K0;if(J[66]!==y||J[67]!==h||J[68]!==N0)K0=f(n,{title:h,onCancel:y,color:"background",children:N0}),J[66]=y,J[67]=h,J[68]=N0,J[69]=K0;else K0=J[69];return K0}function GX(Q){let J=ZJ.c(15),{stage:Z,completed:X,hasProgress:z}=Q,Y;if(J[0]!==Z)Y=Z?jZ.indexOf(Z):-1,J[0]=Z,J[1]=Y;else Y=J[1];let G=Y,q=!X&&!z,R;if(J[2]!==q)R=q?f(V,{color:"background",children:"Setup"}):f(V,{dimColor:!0,children:"Setup"}),J[2]=q,J[3]=R;else R=J[3];let F;if(J[4]===Symbol.for("react.memo_cache_sentinel"))F=f(V,{dimColor:!0,children:" → "}),J[4]=F;else F=J[4];let O;if(J[5]!==X||J[6]!==G||J[7]!==q)O=jZ.map((w,L)=>{let U=!X&&!q&&L===G;return W(O0.default.Fragment,{children:[L>0&&f(V,{dimColor:!0,children:" → "}),U?f(V,{color:"background",children:_Z[w]}):f(V,{dimColor:!0,children:_Z[w]})]},w)}),J[5]=X,J[6]=G,J[7]=q,J[8]=O;else O=J[8];let H;if(J[9]!==X)H=X&&f(V,{color:"success",children:" ✓"}),J[9]=X,J[10]=H;else H=J[10];let P;if(J[11]!==R||J[12]!==O||J[13]!==H)P=W(V,{children:[R,F,O,H]}),J[11]=R,J[12]=O,J[13]=H,J[14]=P;else P=J[14];return P}function VX(Q){let J=Q.reviewProgress;if(!J)return Q.status==="completed"?"done":"setting up";let Z=J.bugsVerified,X=J.bugsRefuted??0;if(Q.status==="completed"){let z=[`${Z} ${Q0(Z,"finding")}`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return bJ(J.stage,J.bugsFound,Z,X)}function NX(Q){let J=ZJ.c(56),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,G=Z.status==="completed",q=Z.status==="running"||Z.status==="pending",[R,F]=O0.useState(!1),O=F0(Z.startTime,q,1000,0,Z.endTime),H;if(J[0]!==X)H=()=>X("Remote session details dismissed",{display:"system"}),J[0]=X,J[1]=H;else H=J[1];let P=H,w=z??P,L;if(J[2]!==Z.sessionId)L=_0(Z.sessionId),J[2]=Z.sessionId,J[3]=L;else L=J[3];let U=L,K=G?"ready":q?"running":Z.status;if(R){let k;if(J[4]===Symbol.for("react.memo_cache_sentinel"))k=()=>F(!1),J[4]=k;else k=J[4];let N;if(J[5]===Symbol.for("react.memo_cache_sentinel"))N=f(V,{dimColor:!0,children:"This archives the remote session and stops local tracking. The review will not complete and any findings so far are discarded."}),J[5]=N;else N=J[5];let M;if(J[6]===Symbol.for("react.memo_cache_sentinel"))M={label:"Stop ultrareview",value:"stop"},J[6]=M;else M=J[6];let r;if(J[7]===Symbol.for("react.memo_cache_sentinel"))r=[M,{label:"Back",value:"back"}],J[7]=r;else r=J[7];let s;if(J[8]!==w||J[9]!==Y)s=f(n,{title:"Stop ultrareview?",onCancel:k,color:"background",children:W(C,{flexDirection:"column",gap:1,children:[N,f(j0,{options:r,onChange:(Y0)=>{if(Y0==="stop")Y?.(),w();else F(!1)}})]})}),J[8]=w,J[9]=Y,J[10]=s;else s=J[10];return s}let E;if(J[11]!==G||J[12]!==Y||J[13]!==q)E=G?[{label:"Open in Claude Code on the web",value:"open"},{label:"Dismiss",value:"dismiss"}]:[{label:"Open in Claude Code on the web",value:"open"},...Y&&q?[{label:"Stop ultrareview",value:"stop"}]:[],{label:"Back",value:"back"}],J[11]=G,J[12]=Y,J[13]=q,J[14]=E;else E=J[14];let A=E,v;if(J[15]!==w||J[16]!==P||J[17]!==X||J[18]!==U)v=(k)=>{J:switch(k){case"open":{DJ(U),X();break J}case"stop":{F(!0);break J}case"back":{w();break J}case"dismiss":P()}},J[15]=w,J[16]=P,J[17]=X,J[18]=U,J[19]=v;else v=J[19];let D=v,I=G?w0:z0,y;if(J[20]!==I)y=W(V,{color:"background",children:[I," "]}),J[20]=I,J[21]=y;else y=J[21];let B;if(J[22]===Symbol.for("react.memo_cache_sentinel"))B=f(V,{bold:!0,children:"ultrareview"}),J[22]=B;else B=J[22];let m;if(J[23]!==O||J[24]!==K)m=W(V,{dimColor:!0,children:[" · ",O," · ",K]}),J[23]=O,J[24]=K,J[25]=m;else m=J[25];let u;if(J[26]!==y||J[27]!==m)u=W(V,{children:[y,B,m]}),J[26]=y,J[27]=m,J[28]=u;else u=J[28];let S=Z.reviewProgress?.stage,x=!!Z.reviewProgress,d;if(J[29]!==G||J[30]!==S||J[31]!==x)d=f(GX,{stage:S,completed:G,hasProgress:x}),J[29]=G,J[30]=S,J[31]=x,J[32]=d;else d=J[32];let h;if(J[33]!==Z)h=VX(Z),J[33]=Z,J[34]=h;else h=J[34];let b;if(J[35]!==h)b=f(V,{children:h}),J[35]=h,J[36]=b;else b=J[36];let p;if(J[37]!==U)p=f(V,{dimColor:!0,children:U}),J[37]=U,J[38]=p;else p=J[38];let c;if(J[39]!==U||J[40]!==p)c=f(JJ,{url:U,children:p}),J[39]=U,J[40]=p,J[41]=c;else c=J[41];let _;if(J[42]!==b||J[43]!==c)_=W(C,{flexDirection:"column",children:[b,c]}),J[42]=b,J[43]=c,J[44]=_;else _=J[44];let j;if(J[45]!==D||J[46]!==A)j=f(j0,{options:A,onChange:D}),J[45]=D,J[46]=A,J[47]=j;else j=J[47];let T;if(J[48]!==d||J[49]!==_||J[50]!==j)T=W(C,{flexDirection:"column",gap:1,children:[d,_,j]}),J[48]=d,J[49]=_,J[50]=j,J[51]=T;else T=J[51];let g;if(J[52]!==w||J[53]!==T||J[54]!==u)g=f(n,{title:u,onCancel:w,color:"background",inputGuide:WX,children:T}),J[52]=w,J[53]=T,J[54]=u,J[55]=g;else g=J[55];return g}function WX(Q){return Q.pending?W(V,{children:["Press ",Q.keyName," again to exit"]}):W(Z0,{children:[f(l,{shortcut:"Enter",action:"select"}),f(l,{shortcut:"Esc",action:"go back"})]})}function xZ({session:Q,toolUseContext:J,onDone:Z,onBack:X,onKill:z}){let[Y,G]=O0.useState(!1),[q,R]=O0.useState(null),F=O0.useMemo(()=>{if(Q.isUltraplan||Q.isRemoteReview)return[];return lZ(kZ(Q.log)).filter((U)=>U.type!=="progress").slice(-3)},[Q]);if(Q.isUltraplan)return f(qX,{session:Q,onDone:Z,onBack:X,onKill:z});if(Q.isRemoteReview)return f(NX,{session:Q,onDone:Z,onBack:X,onKill:z});let O=()=>Z("Remote session details dismissed",{display:"system"}),H=(U)=>{if(U.key===" ")U.preventDefault(),Z("Remote session details dismissed",{display:"system"});else if(U.key==="left"&&X)U.preventDefault(),X();else if(U.key==="t"&&!Y)U.preventDefault(),P();else if(U.key==="return")U.preventDefault(),O()};async function P(){G(!0),R(null);try{await pZ(Q.sessionId)}catch(U){R(v0(U))}finally{G(!1)}}let w=y0(Q.title,50),L=Q.status==="pending"?"starting":Q.status;return f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:H,children:W(n,{title:"Remote session details",onCancel:O,color:"background",inputGuide:(U)=>U.pending?W(V,{children:["Press ",U.keyName," again to exit"]}):W(Z0,{children:[X&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),!Y&&f(l,{shortcut:"t",action:"teleport"})]}),children:[W(C,{flexDirection:"column",children:[W(V,{children:[f(V,{bold:!0,children:"Status"}),":"," ",L==="running"||L==="starting"?f(V,{color:"background",children:L}):L==="completed"?f(V,{color:"success",children:L}):f(V,{color:"error",children:L})]}),W(V,{children:[f(V,{bold:!0,children:"Runtime"}),":"," ",e0((Q.endTime??Date.now())-Q.startTime)]}),W(V,{wrap:"truncate-end",children:[f(V,{bold:!0,children:"Title"}),": ",w]}),W(V,{children:[f(V,{bold:!0,children:"Progress"}),":"," ",f(S0,{session:Q})]}),W(V,{children:[f(V,{bold:!0,children:"Session URL"}),":"," ",f(JJ,{url:_0(Q.sessionId),children:f(V,{dimColor:!0,children:_0(Q.sessionId)})})]})]}),Q.log.length>0&&W(C,{flexDirection:"column",marginTop:1,children:[W(V,{children:[f(V,{bold:!0,children:"Recent messages"}),":"]}),f(C,{flexDirection:"column",height:10,overflowY:"hidden",children:F.map((U,K)=>f(mZ,{message:U,lookups:iZ,addMargin:K>0,tools:J.options.tools,commands:J.options.commands,verbose:J.options.verbose,inProgressToolUseIDs:new Set,progressMessagesForMessage:[],shouldAnimate:!1,shouldShowDot:!1,style:"condensed",isTranscriptMode:!1,isStatic:!0},K))}),f(C,{marginTop:1,children:W(V,{dimColor:!0,italic:!0,children:["Showing last ",F.length," of ",Q.log.length," ","messages"]})})]}),q&&f(C,{marginTop:1,children:W(V,{color:"error",children:["Teleport failed: ",q]})}),Y&&f(V,{color:"background",children:"Teleporting to session…"})]})})}var ZJ,O0,zX,fX,jZ,_Z;var rZ=a(()=>{cZ();m0();i0();f0();PJ();eQ();tQ();pJ();JX();aJ();h0();XX();LZ();IJ();WJ();QX();B0();I0();A0();ZX();AJ();$();ZJ=J0(R0(),1),O0=J0(o0(),1);zX={needs_input:"input required",plan_ready:"ready"},fX={needs_input:"waiting",plan_ready:"done"};jZ=["finding","verifying","synthesizing"],_Z={finding:"Find",verifying:"Verify",synthesizing:"Dedupe"}});async function sZ(Q){let J=aZ(Q.id);try{let Z=await $Z(J,HX);return{content:Z.content,bytesTotal:Z.bytesTotal}}catch{return{content:"",bytesTotal:0}}}function eZ(Q){let J=vJ.c(57),{shell:Z,onDone:X,onKillShell:z,onBack:Y}=Q,{columns:G}=QJ(),q;if(J[0]!==Z)q=()=>sZ(Z),J[0]=Z,J[1]=q;else q=J[1];let[R,F]=G0.useState(q),O=G0.useDeferredValue(R),H;if(J[2]!==Z)H=()=>{if(Z.status!=="running")return;let r=setInterval(OX,1000,F,Z);return()=>clearInterval(r)},J[2]=Z,J[3]=H;else H=J[3];let P;if(J[4]!==Z.id||J[5]!==Z.status)P=[Z.id,Z.status],J[4]=Z.id,J[5]=Z.status,J[6]=P;else P=J[6];G0.useEffect(H,P);let w;if(J[7]!==X)w=()=>X("Shell details dismissed",{display:"system"}),J[7]=X,J[8]=w;else w=J[8];let L=w,U;if(J[9]!==L)U={"confirm:yes":L},J[9]=L,J[10]=U;else U=J[10];let K;if(J[11]===Symbol.for("react.memo_cache_sentinel"))K={context:"Confirmation"},J[11]=K;else K=J[11];q0(U,K);let E;if(J[12]!==Y||J[13]!==X||J[14]!==z||J[15]!==Z.status)E=(r)=>{if(r.key===" ")r.preventDefault(),X("Shell details dismissed",{display:"system"});else if(r.key==="left"&&Y)r.preventDefault(),Y();else if(r.key==="x"&&Z.status==="running"&&z)r.preventDefault(),z()},J[12]=Y,J[13]=X,J[14]=z,J[15]=Z.status,J[16]=E;else E=J[16];let A=E,v=Z.kind==="monitor",D;if(J[17]!==Z.command)D=y0(Z.command,280),J[17]=Z.command,J[18]=D;else D=J[18];let I=D,y=v?"Monitor details":"Shell details",B;if(J[19]!==Y||J[20]!==z||J[21]!==Z.status)B=(r)=>r.pending?W(V,{children:["Press ",r.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"})]}),J[19]=Y,J[20]=z,J[21]=Z.status,J[22]=B;else B=J[22];let m;if(J[23]===Symbol.for("react.memo_cache_sentinel"))m=f(V,{bold:!0,children:"Status:"}),J[23]=m;else m=J[23];let u;if(J[24]!==Z.result||J[25]!==Z.status)u=W(V,{children:[m," ",Z.status==="running"?W(V,{color:"background",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):Z.status==="completed"?W(V,{color:"success",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):W(V,{color:"error",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]})]}),J[24]=Z.result,J[25]=Z.status,J[26]=u;else u=J[26];let S;if(J[27]===Symbol.for("react.memo_cache_sentinel"))S=f(V,{bold:!0,children:"Runtime:"}),J[27]=S;else S=J[27];let x;if(J[28]!==Z.endTime)x=Z.endTime??Date.now(),J[28]=Z.endTime,J[29]=x;else x=J[29];let d=x-Z.startTime,h;if(J[30]!==d)h=e0(d),J[30]=d,J[31]=h;else h=J[31];let b;if(J[32]!==h)b=W(V,{children:[S," ",h]}),J[32]=h,J[33]=b;else b=J[33];let p=v?"Script:":"Command:",c;if(J[34]!==p)c=f(V,{bold:!0,children:p}),J[34]=p,J[35]=c;else c=J[35];let _;if(J[36]!==I||J[37]!==c)_=W(V,{wrap:"wrap",children:[c," ",I]}),J[36]=I,J[37]=c,J[38]=_;else _=J[38];let j;if(J[39]!==u||J[40]!==b||J[41]!==_)j=W(C,{flexDirection:"column",children:[u,b,_]}),J[39]=u,J[40]=b,J[41]=_,J[42]=j;else j=J[42];let T;if(J[43]===Symbol.for("react.memo_cache_sentinel"))T=f(V,{bold:!0,children:"Output:"}),J[43]=T;else T=J[43];let g;if(J[44]===Symbol.for("react.memo_cache_sentinel"))g=f(V,{dimColor:!0,children:"Loading output…"}),J[44]=g;else g=J[44];let k;if(J[45]!==G||J[46]!==O)k=W(C,{flexDirection:"column",children:[T,f(G0.Suspense,{fallback:g,children:f(PX,{outputPromise:O,columns:G})})]}),J[45]=G,J[46]=O,J[47]=k;else k=J[47];let N;if(J[48]!==L||J[49]!==B||J[50]!==j||J[51]!==k||J[52]!==y)N=W(n,{title:y,onCancel:L,color:"background",inputGuide:B,children:[j,k]}),J[48]=L,J[49]=B,J[50]=j,J[51]=k,J[52]=y,J[53]=N;else N=J[53];let M;if(J[54]!==A||J[55]!==N)M=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:A,children:N}),J[54]=A,J[55]=N,J[56]=M;else M=J[56];return M}function OX(Q,J){return Q(sZ(J))}function PX(Q){let J=vJ.c(19),{outputPromise:Z,columns:X}=Q,{content:z,bytesTotal:Y}=G0.use(Z);if(!z){let U;if(J[0]===Symbol.for("react.memo_cache_sentinel"))U=f(V,{dimColor:!0,children:"No output available"}),J[0]=U;else U=J[0];return U}let G,q;if(J[1]!==Y||J[2]!==z){let U=[],K=z.length;for(let E=0;E<10&&K>0;E++){let A=z.lastIndexOf(`
|
|
17
|
-
`,K-1);U.push(A+1),K=A}U.reverse(),G=Y>z.length,q=[];for(let E=0;E<U.length;E++){let A=U[E],v=E<U.length-1?U[E+1]-1:z.length,D=z.slice(A,v);if(D)q.push(D)}J[1]=Y,J[2]=z,J[3]=G,J[4]=q}else G=J[3],q=J[4];let R=X-6,F;if(J[5]!==q)F=q.map(LX),J[5]=q,J[6]=F;else F=J[6];let O;if(J[7]!==R||J[8]!==F)O=f(C,{borderStyle:"round",paddingX:1,flexDirection:"column",height:12,maxWidth:R,children:F}),J[7]=R,J[8]=F,J[9]=O;else O=J[9];let H=`Showing ${q.length} lines`,P;if(J[10]!==Y||J[11]!==G)P=G?` of ${oZ(Y)}`:"",J[10]=Y,J[11]=G,J[12]=P;else P=J[12];let w;if(J[13]!==H||J[14]!==P)w=W(V,{dimColor:!0,italic:!0,children:[H,P]}),J[13]=H,J[14]=P,J[15]=w;else w=J[15];let L;if(J[16]!==O||J[17]!==w)L=W(o,{children:[O,w]}),J[16]=O,J[17]=w,J[18]=L;else L=J[18];return L}function LX(Q,J){return f(V,{wrap:"truncate-end",children:Q},J)}var vJ,G0,HX=8192;var tZ=a(()=>{nZ();f0();g0();h0();RX();FX();B0();I0();A0();$();vJ=J0(R0(),1),G0=J0(o0(),1)});var JQ={};$J(JQ,{default:()=>wX});var UX=()=>null,wX;var ZQ=a(()=>{wX=UX});function jX(Q,J){return Object.values(Q??{}).filter(fJ).filter((X)=>!(X.type==="local_agent"&&X.id===J))}function Sf({onDone:Q,toolUseContext:J,initialDetailTaskId:Z}){let X=zJ((N)=>N.tasks),z=zJ((N)=>N.foregroundedTaskId),Y=zJ((N)=>N.expandedView)==="teammates",G=WQ(),q=GQ("chat:killAgents","Chat","ctrl+x ctrl+k"),R=X,F=P0.useRef(!1),[O,H]=P0.useState(()=>{if(Z)return F.current=!0,{mode:"detail",itemId:Z};let N=jX(R,z);if(N.length===1)return F.current=!0,{mode:"detail",itemId:N[0].id};return{mode:"list"}}),[P,w]=P0.useState(0);OQ("background-tasks-dialog");let{bashTasks:L,remoteSessions:U,agentTasks:K,teammateTasks:E,workflowTasks:A,mcpMonitors:v,dreamTasks:D,allSelectableItems:I}=P0.useMemo(()=>{let r=Object.values(R??{}).filter(fJ).map(_X).sort((i,L0)=>{let c0=i.status,jJ=L0.status;if(c0==="running"&&jJ!=="running")return-1;if(c0!=="running"&&jJ==="running")return 1;let PQ="task"in i?i.task.startTime:0;return("task"in L0?L0.task.startTime:0)-PQ}),s=r.filter((i)=>i.type==="local_bash"),Y0=r.filter((i)=>i.type==="remote_agent"),V0=r.filter((i)=>i.type==="local_agent"&&i.id!==z),N0=r.filter((i)=>i.type==="local_workflow"),K0=r.filter((i)=>i.type==="monitor_mcp"),X0=r.filter((i)=>i.type==="dream"),e=Y?[]:r.filter((i)=>i.type==="in_process_teammate"),C0=e.length>0?[{id:"__leader__",type:"leader",label:`@${hJ}`,status:"running"}]:[];return{bashTasks:s,remoteSessions:Y0,agentTasks:V0,workflowTasks:N0,mcpMonitors:K0,dreamTasks:X0,teammateTasks:[...C0,...e],allSelectableItems:[...C0,...e,...s,...K0,...Y0,...V0,...N0,...X0]}},[R,z,Y]),y=I[P]??null;q0({"confirm:previous":()=>w((N)=>Math.max(0,N-1)),"confirm:next":()=>w((N)=>Math.min(I.length-1,N+1)),"confirm:yes":()=>{let N=I[P];if(N)if(N.type==="leader")VJ(G),Q("Viewing leader",{display:"system"});else H({mode:"detail",itemId:N.id})}},{context:"Confirmation",isActive:O.mode==="list"});let B=(N)=>{if(O.mode!=="list")return;if(N.key==="left"){N.preventDefault(),Q("Background tasks dialog dismissed",{display:"system"});return}let M=I[P];if(!M)return;if(N.key==="x"){if(N.preventDefault(),M.type==="local_bash"&&M.status==="running")m(M.id);else if(M.type==="local_agent"&&M.status==="running")u(M.id);else if(M.type==="in_process_teammate"&&M.status==="running")S(M.id);else if(M.type==="local_workflow"&&M.status==="running"&&XJ)XJ(M.id,G);else if(M.type==="monitor_mcp"&&M.status==="running"&&YJ)YJ(M.id,G);else if(M.type==="dream"&&M.status==="running")x(M.id);else if(M.type==="remote_agent"&&M.status==="running")if(M.task.isUltraplan)LJ(M.id,M.task.sessionId,G);else d(M.id)}if(N.key==="f"){if(M.type==="in_process_teammate"&&M.status==="running")N.preventDefault(),GJ(M.id,G),Q("Viewing teammate",{display:"system"});else if(M.type==="leader")N.preventDefault(),VJ(G),Q("Viewing leader",{display:"system"})}};async function m(N){await VQ.kill(N,G)}async function u(N){await HQ.kill(N,G)}async function S(N){await RQ.kill(N,G)}async function x(N){await FQ.kill(N,G)}async function d(N){await p0.kill(N,G)}let h=NQ(Q);P0.useEffect(()=>{if(O.mode!=="list"){let M=(R??{})[O.itemId];if(!M||M.type!=="local_workflow"&&!fJ(M))if(F.current)h("Background tasks dialog dismissed",{display:"system"});else H({mode:"list"})}let N=I.length;if(P>=N&&N>0)w(N-1)},[O,R,P,I,h]);let b=()=>{if(F.current&&I.length<=1)Q("Background tasks dialog dismissed",{display:"system"});else F.current=!1,H({mode:"list"})};if(O.mode!=="list"&&R){let N=R[O.itemId];if(!N)return null;switch(N.type){case"local_bash":return f(eZ,{shell:N,onDone:Q,onKillShell:()=>void m(N.id),onBack:b},`shell-${N.id}`);case"local_agent":return f(OZ,{agent:N,onDone:Q,onKillAgent:()=>void u(N.id),onBack:b},`agent-${N.id}`);case"remote_agent":return f(xZ,{session:N,onDone:Q,toolUseContext:J,onBack:b,onKill:N.status!=="running"?void 0:N.isUltraplan?()=>void LJ(N.id,N.sessionId,G):()=>void d(N.id)},`session-${N.id}`);case"in_process_teammate":return f(gZ,{teammate:N,onDone:Q,onKill:N.status==="running"?()=>void S(N.id):void 0,onBack:b,onForeground:N.status==="running"?()=>{GJ(N.id,G),Q("Viewing teammate",{display:"system"})}:void 0},`teammate-${N.id}`);case"local_workflow":if(!QQ)return null;return f(QQ,{workflow:N,onDone:Q,onKill:N.status==="running"&&XJ?()=>XJ(N.id,G):void 0,onSkipAgent:N.status==="running"&&XQ?(M)=>XQ(N.id,M,G):void 0,onRetryAgent:N.status==="running"&&YQ?(M)=>YQ(N.id,M,G):void 0,onBack:b},`workflow-${N.id}`);case"monitor_mcp":if(!zQ)return null;return f(zQ,{task:N,onKill:N.status==="running"&&YJ?()=>YJ(N.id,G):void 0,onBack:b},`monitor-mcp-${N.id}`);case"dream":return f(DZ,{task:N,onDone:()=>Q("Background tasks dialog dismissed",{display:"system"}),onBack:b,onKill:N.status==="running"?()=>void x(N.id):void 0},`dream-${N.id}`)}}let p=M0(L,(N)=>N.status==="running"),c=M0(U,(N)=>N.status==="running"||N.status==="pending")+M0(K,(N)=>N.status==="running"),_=M0(E,(N)=>N.status==="running"),j=fQ([..._>0?[W(V,{children:[_," ",_!==1?"agents":"agent"]},"teammates")]:[],...p>0?[W(V,{children:[p," ",p!==1?"active shells":"active shell"]},"shells")]:[],...c>0?[W(V,{children:[c," ",c!==1?"active agents":"active agent"]},"agents")]:[]],(N)=>f(V,{children:" · "},`separator-${N}`)),T=[f(l,{shortcut:"↑/↓",action:"select"},"upDown"),f(l,{shortcut:"Enter",action:"view"},"enter"),...y?.type==="in_process_teammate"&&y.status==="running"?[f(l,{shortcut:"f",action:"foreground"},"foreground")]:[],...(y?.type==="local_bash"||y?.type==="local_agent"||y?.type==="in_process_teammate"||y?.type==="local_workflow"||y?.type==="monitor_mcp"||y?.type==="dream"||y?.type==="remote_agent")&&y.status==="running"?[f(l,{shortcut:"x",action:"stop"},"kill")]:[],...K.some((N)=>N.status==="running")?[f(l,{shortcut:q,action:"stop all agents"},"kill-all")]:[],f(l,{shortcut:"←/Esc",action:"close"},"esc")],g=()=>Q("Background tasks dialog dismissed",{display:"system"});function k(N){if(N.pending)return W(V,{children:["Press ",N.keyName," again to exit"]});return f(Z0,{children:T})}return f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:B,children:f(n,{title:"Background tasks",subtitle:f(o,{children:j}),onCancel:g,color:"background",inputGuide:k,children:I.length===0?f(V,{dimColor:!0,children:"No tasks currently running"}):W(C,{flexDirection:"column",children:[E.length>0&&W(C,{flexDirection:"column",children:[(L.length>0||U.length>0||K.length>0)&&W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Agents"]})," (",M0(E,(N)=>N.type!=="leader"),")"]}),f(C,{flexDirection:"column",children:f(cX,{teammateTasks:E,currentSelectionId:y?.id})})]}),L.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0?1:0,children:[(E.length>0||U.length>0||K.length>0)&&W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Shells"]})," (",L.length,")"]}),f(C,{flexDirection:"column",children:L.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),v.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Monitors"]})," (",v.length,")"]}),f(C,{flexDirection:"column",children:v.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),U.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Remote agents"]})," (",U.length,")"]}),f(C,{flexDirection:"column",children:U.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),K.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Local agents"]})," (",K.length,")"]}),f(C,{flexDirection:"column",children:K.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),A.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0||K.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Workflows"]})," (",A.length,")"]}),f(C,{flexDirection:"column",children:A.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),D.length>0&&f(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0||K.length>0||A.length>0?1:0,children:f(C,{flexDirection:"column",children:D.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})})]})})})}function _X(Q){switch(Q.type){case"local_bash":return{id:Q.id,type:"local_bash",label:Q.kind==="monitor"?Q.description:Q.command,status:Q.status,task:Q};case"remote_agent":return{id:Q.id,type:"remote_agent",label:Q.title,status:Q.status,task:Q};case"local_agent":return{id:Q.id,type:"local_agent",label:Q.description,status:Q.status,task:Q};case"in_process_teammate":return{id:Q.id,type:"in_process_teammate",label:`@${Q.identity.agentName}`,status:Q.status,task:Q};case"local_workflow":return{id:Q.id,type:"local_workflow",label:Q.summary??Q.description,status:Q.status,task:Q};case"monitor_mcp":return{id:Q.id,type:"monitor_mcp",label:Q.description,status:Q.status,task:Q};case"dream":return{id:Q.id,type:"dream",label:Q.description,status:Q.status,task:Q}}}function E0(Q){let J=gJ.c(14),{item:Z,isSelected:X}=Q,{columns:z}=QJ(),Y=Math.max(30,z-26),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=qQ(),J[0]=G;else G=J[0];let q=G,R=q&&X,F=X?t0.pointer+" ":" ",O;if(J[1]!==R||J[2]!==F)O=f(V,{dimColor:R,children:F}),J[1]=R,J[2]=F,J[3]=O;else O=J[3];let H=X&&!q?"suggestion":void 0,P;if(J[4]!==Z.task||J[5]!==Z.type||J[6]!==Y)P=Z.type==="leader"?W(V,{children:["@",hJ]}):f(AZ,{task:Z.task,maxActivityWidth:Y}),J[4]=Z.task,J[5]=Z.type,J[6]=Y,J[7]=P;else P=J[7];let w;if(J[8]!==H||J[9]!==P)w=f(V,{color:H,children:P}),J[8]=H,J[9]=P,J[10]=w;else w=J[10];let L;if(J[11]!==O||J[12]!==w)L=W(C,{flexDirection:"row",children:[O,w]}),J[11]=O,J[12]=w,J[13]=L;else L=J[13];return L}function cX(Q){let J=gJ.c(3),{teammateTasks:Z,currentSelectionId:X}=Q,z;if(J[0]!==X||J[1]!==Z){let Y=Z.filter(uX),G=Z.filter(TX),q=new Map;for(let F of G){let O=F.task.identity.teamName,H=q.get(O);if(H)H.push(F);else q.set(O,[F])}let R=[...q.entries()];z=f(o,{children:R.map((F)=>{let[O,H]=F,P=H.length+Y.length;return W(C,{flexDirection:"column",children:[W(V,{dimColor:!0,children:[" ","Team: ",O," (",P,")"]}),Y.map((w)=>f(E0,{item:w,isSelected:w.id===X},`${w.id}-${O}`)),H.map((w)=>f(E0,{item:w,isSelected:w.id===X},w.id))]},O)})}),J[0]=X,J[1]=Z,J[2]=z}else z=J[2];return z}function TX(Q){return Q.type==="in_process_teammate"}function uX(Q){return Q.type==="leader"}var gJ,P0,QQ=null,SJ=null,XJ,XQ,YQ,SX,YJ,zQ;var dX=a(()=>{cZ();MX();CX();nZ();bX();TJ();vX();AX();hX();KX();PJ();BX();CJ();yX();qZ();gX();f0();g0();EX();CJ();B0();I0();A0();PZ();BZ();vZ();SZ();rZ();tZ();$();gJ=J0(R0(),1),P0=J0(o0(),1),XJ=SJ?.killWorkflowTask??null,XQ=SJ?.skipWorkflowAgent??null,YQ=SJ?.retryWorkflowAgent??null,SX=(DX(),FJ(IX)),YJ=SX?.killMonitorMcp??null,zQ=(ZQ(),FJ(JQ)).MonitorMcpDetailDialog});
|
|
18
|
-
export{GJ as ie,VJ as je,xX as ke,TJ as le,LJ as me,pQ as ne,qZ as oe,Sf as pe,dX as qe};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ac as L,Bc as m}from"./cli-0.6.5-9hp0d08c.mjs";import{Hc as O,Ic as G,Jc as u}from"./cli-0.6.5-mpdvzrnw.mjs";import{V5 as E,e5 as U,i5 as k,n5 as A}from"./cli-0.6.5-c7yx03g7.mjs";import{$_ as Z,Fca as x,Fda as y,Laa as N,Lba as F,Nda as C,Oba as D,Vba as Q,Yaa as g,__ as K,f$ as P,hca as h,pca as R,vca as _,wca as $}from"./cli-0.6.5-ef6b5qvc.mjs";import{Hha as Y,Pha as f}from"./cli-0.6.5-ce51qb6k.mjs";import{Gna as b,Wka as J}from"./cli-0.6.5-ckc9hr8m.mjs";import{ppa as T}from"./cli-0.6.5-bm7v9qp0.mjs";function n(){V=!0}function M(){if(!V)return!1;return V=!1,!0}function a(j){return(z)=>({...z,...typeof j.permission_mode==="string"?{toolPermissionContext:{...z.toolPermissionContext,mode:Z(j.permission_mode)}}:{},...typeof j.is_ultraplan_mode==="boolean"?{isUltraplanMode:j.is_ultraplan_mode}:{}})}function t({newState:j,oldState:z}){let W=M(),X=z.toolPermissionContext.mode,H=j.toolPermissionContext.mode;if(X!==H){let q=K(X),B=K(H);if(q!==B){let I=B==="plan"&&j.isUltraplanMode&&!z.isUltraplanMode?!0:null;O({permission_mode:B,is_ultraplan_mode:I})}G(H)}if(j.mainLoopModel!==z.mainLoopModel&&j.mainLoopModel===null){if(J(null),!W)if(R()!==void 0)Q((q)=>({...q,activeModelForProject:void 0}));else N("userSettings",{model:void 0}),$()}if(j.mainLoopModel!==z.mainLoopModel&&j.mainLoopModel!==null){if(J(j.mainLoopModel),!W)if(R()!==void 0)Q((q)=>({...q,activeModelForProject:j.mainLoopModel??void 0}));else N("userSettings",{model:j.mainLoopModel}),_(j.mainLoopModel)}if(j.expandedView!==z.expandedView){let q=j.expandedView==="tasks",B=j.expandedView==="teammates";if(D().showExpandedTodos!==q||D().showSpinnerTree!==B)F((I)=>({...I,showExpandedTodos:q,showSpinnerTree:B}))}if(j.verbose!==z.verbose&&D().verbose!==j.verbose){let q=j.verbose;F((B)=>({...B,verbose:q}))}if(j.collapseSubagentProgress!==z.collapseSubagentProgress&&D().collapseSubagentProgress!==j.collapseSubagentProgress){let q=j.collapseSubagentProgress;F((B)=>({...B,collapseSubagentProgress:q}))}if(j.settings!==z.settings)try{if(U(),k(),A(),j.settings.env!==z.settings.env)L()}catch(q){y(Y(q))}}var V=!1;var c=T(()=>{b();E();h();f();C();m();x();P();u();g()});
|
|
2
|
-
export{n as vc,a as wc,t as xc,c as yc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{bpa as p,cpa as a}from"./cli-0.6.5-6829jyhh.mjs";import{npa as i}from"./cli-0.6.5-bm7v9qp0.mjs";var u=i((V)=>{var v=p(),T=a(),_="AWS_ACCESS_KEY_ID",N="AWS_SECRET_ACCESS_KEY",S="AWS_SESSION_TOKEN",C="AWS_CREDENTIAL_EXPIRATION",A="AWS_CREDENTIAL_SCOPE",I="AWS_ACCOUNT_ID",d=(e)=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let r=process.env[_],s=process.env[N],E=process.env[S],o=process.env[C],n=process.env[A],t=process.env[I];if(r&&s){let c={accessKeyId:r,secretAccessKey:s,...E&&{sessionToken:E},...o&&{expiration:new Date(o)},...n&&{credentialScope:n},...t&&{accountId:t}};return v.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new T.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};V.ENV_ACCOUNT_ID=I;V.ENV_CREDENTIAL_SCOPE=A;V.ENV_EXPIRATION=C;V.ENV_KEY=_;V.ENV_SECRET=N;V.ENV_SESSION=S;V.fromEnv=d});
|
|
2
|
-
export{u as J6};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import{nc as Mc,oc as aa}from"./cli-0.6.5-9g1pn7jy.mjs";import{pc as bn,qc as Zt,rc as Rt,sc as Nc,uc as ua}from"./cli-0.6.5-e47bwdgy.mjs";import{vc as Ct,yc as ca}from"./cli-0.6.5-h0xnjwg1.mjs";import{$o as _c,FG as Gn,GE as ot,GG as du,Gx as $c,HE as Qn,Hx as Lc,IG as ta,Ix as ju,JG as na,QE as Y,RE as mu,SE as vu,So as ic,Su as Fc,To as Qu,Uo as ec,Uu as Du,Vo as oc,Wo as mc,Xo as dc,Yo as I,Zo as rn,_o as Gu,bp as wc,cp as qc,ep as Oc,fF as xn,gF as qu,hF as Dn,iF as jn,jF as vn,kF as Su,vp as Sc,wp as xu}from"./cli-0.6.5-5t6d3asz.mjs";import{eW as ct,gW as pu,sW as kc,tW as Iu}from"./cli-0.6.5-6x91apzw.mjs";import{BY as g,DY as l,gZ as _n}from"./cli-0.6.5-f71ncwzk.mjs";import{d0 as qn,e0 as Sn,f0 as Fn,g0 as $n,h0 as Ln,i0 as ou,l0 as Nn,p0 as Mn,q0 as Xc,r0 as Vn}from"./cli-0.6.5-xbz59an6.mjs";import{l1 as et,m1 as a,n1 as y,o1 as Nt}from"./cli-0.6.5-8hsxq1p3.mjs";import{p1 as Vt}from"./cli-0.6.5-vqb4jtcr.mjs";import{M1 as uc,N1 as Mu}from"./cli-0.6.5-5rpfanmw.mjs";import{b2 as Xn,d2 as eu}from"./cli-0.6.5-c7yx03g7.mjs";import{$ca as sn,B7 as dt,Bca as dn,C7 as Eu,Fca as kn,Kca as cn,Lca as En,Mca as Pn,Nca as Qt,Oca as un,Pca as Bn,Qca as nn,Rca as pn,Sca as In,Tca as _u,Uca as yn,Vca as nc,Wca as Cn,Yca as cc,_ca as zc,ica as Rc,jca as yt,kca as Pu,lca as Kt,mca as v,nda as Bu,oca as T,pca as Jt,rca as ft,sca as on,tca as tt,uca as Ot,yca as gt,zca as mn}from"./cli-0.6.5-ef6b5qvc.mjs";import{Xha as nt,dia as hn}from"./cli-0.6.5-s580r0vs.mjs";import{lpa as Mt,mpa as Uu,ppa as p}from"./cli-0.6.5-bm7v9qp0.mjs";function Cu(t,n=Dt,u){let h=v().find((i)=>i.provider==="openai"&&i.extras?.githubToken!==void 0);if(h)return Ot(h.id,{provider:"openai",name:h.name,baseUrl:u||h.baseUrl,model:h.model||n,apiKey:t,extras:{...h.extras,githubToken:t}}),gt(h.id),{mode:"updated"};return tt({provider:"openai",name:"GitHub Copilot",baseUrl:u||yu,model:n,apiKey:t,extras:{githubToken:t}},{makeActive:!0}),{mode:"created"}}function Yn({onDone:t,onBack:n,onChangeAPIKey:u}){let h=Nn()?.trim()?"already-authed":"menu",[i,m]=E.useState(h),[A,w]=E.useState(null),[z,b]=E.useState(""),[R,q]=E.useState(0),[L,Z]=E.useState(null),V=E.useCallback(async(Q,_=Dt,x,S)=>{let W=Mn(Q,x,S?.enterpriseDomain);if(!W.success){w(W.warning??"Could not save token to secure storage."),m("error");return}Cu(Q,_,S?.baseUrl),Xn(),u?.(),t("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[u,t]),C=E.useCallback(async(Q)=>{m("device-busy"),w(null),Z(null);try{let _=await Sn({domain:Q});Z({user_code:_.user_code,verification_uri:_.verification_uri}),await $n(_.verification_uri);let x=await Fn(_.device_code,{initialInterval:_.interval,timeoutSeconds:_.expires_in,domain:Q}),S=await Ln(x,{domain:Q});await V(S.token,Dt,x,{baseUrl:S.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:Q})}catch(_){w(_ instanceof Error?_.message:String(_)),m("error")}},[V]);if(i==="already-authed")return y(g,{flexDirection:"column",gap:1,children:[a(l,{bold:!0,children:"GitHub Copilot"}),a(l,{children:"You are already signed in to GitHub Copilot."}),a(l,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),a(Y,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:n?"Back to /provider menu":"Cancel",value:"back"}],onChange:(_)=>{if(_==="sign-in-again"){C();return}if(_==="enterprise"){m("enterprise-domain");return}if(n){n();return}t("GitHub onboard cancelled",{display:"system"})}})]});if(i==="enterprise-domain")return y(g,{flexDirection:"column",gap:1,children:[a(l,{bold:!0,children:"GitHub Enterprise sign-in"}),a(l,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),y(g,{flexDirection:"row",gap:1,children:[a(l,{children:">"}),a(ot,{value:z,onChange:b,onSubmit:()=>{let _=qn(z);if(!_){C();return}C(_)},onExit:()=>m(h),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:R,onChangeCursorOffset:q})]}),a(l,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(i==="error"&&A)return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"red",children:A}),a(Y,{options:[{label:n?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(_)=>{if(_==="back"){if(n){n();return}m("menu"),w(null);return}t("GitHub onboard cancelled",{display:"system"})}})]});if(i==="device-busy")return y(g,{flexDirection:"column",gap:1,children:[a(l,{children:"GitHub Copilot sign-in"}),L?y(et,{children:[y(l,{children:["Enter code ",a(l,{bold:!0,children:L.user_code})," at"," ",L.verification_uri]}),a(l,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):a(l,{dimColor:!0,children:"Requesting device code from GitHub..."}),a(Gn,{})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{bold:!0,children:"GitHub Copilot setup"}),a(l,{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."}),a(Y,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:n?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(Q)=>{if(Q==="cancel"){if(n){n();return}t("GitHub onboard cancelled",{display:"system"});return}if(Q==="enterprise"){m("enterprise-domain");return}C()}})]})}var E,Dt="github:copilot",yu="https://api.githubcopilot.com";var Jn=p(()=>{mu();du();Qn();_n();ou();Vn();eu();kn();Nt();E=Mt(Vt(),1)});function Kn(t){return[t.name,t.family??"",...t.families??[],t.parameterSize??"",t.quantizationLevel??""].join(" ").toLowerCase()}function At(t,n){return n.some((u)=>t.includes(u))}function Ou(t){return!At(Kn(t),Zn)}function gu(t){return t.find(Ou)??null}function jt(t){let u=`${t.parameterSize??""} ${t.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(u?.[1])return Number(u[1]);if(typeof t.sizeBytes==="number"&&t.sizeBytes>0)return Number((t.sizeBytes/1e9).toFixed(1));return null}function Au(t){return(t.quantizationLevel??t.name).toLowerCase()}function fu(t,n,u){if(t===null)return u.push("unknown size"),0;if(n==="latency"){if(t<=4)return u.push("tiny model for low latency"),32;if(t<=8)return u.push("small model for fast responses"),26;if(t<=14)return u.push("mid-sized model with acceptable latency"),16;if(t<=24)return u.push("larger model may be slower"),8;return u.push("large model likely slower locally"),t<=40?0:-8}if(n==="coding"){if(t>=7&&t<=14)return u.push("strong coding size tier"),24;if(t>14&&t<=34)return u.push("large coding-capable size tier"),28;if(t>34)return u.push("very large model with higher quality potential"),18;return u.push("compact model may trade off coding depth"),12}if(t>=7&&t<=14)return u.push("great balanced size tier"),26;if(t>=3&&t<7)return u.push("compact balanced size tier"),18;if(t>14&&t<=24)return u.push("high quality balanced size tier"),20;if(t>24)return u.push("large model for quality-first usage"),10;return u.push("very small model for general usage"),8}function Ru(t,n,u){let h=Au(t);if(h.includes("q4"))return u.push("efficient Q4 quantization"),n==="latency"?8:4;if(h.includes("q5"))return u.push("balanced Q5 quantization"),n==="latency"?6:5;if(h.includes("q8"))return u.push("higher quality Q8 quantization"),n==="latency"?2:5;return 0}function zu(t,n,u){if(n.score!==t.score)return n.score-t.score;let h=jt(t)??Number.POSITIVE_INFINITY,i=jt(n)??Number.POSITIVE_INFINITY;if(u==="latency")return h-i;if(u==="coding")return i-h;let m=14;return Math.abs(h-m)-Math.abs(i-m)}function vt(t,n){return t.map((u)=>{let h=Kn(u),i=[],m=0;if(At(h,Zn))m-=40,i.push("not a chat-first model");if(At(h,su))m+=n==="coding"?24:n==="balanced"?10:4,i.push("coding-oriented model family");if(At(h,bu))m+=n==="latency"?4:n==="coding"?6:8,i.push("strong general-purpose model family");if(At(h,wu))m+=n==="latency"?2:6,i.push("chat/instruct tuned");if(h.includes("vision")||h.includes("vl"))m-=2,i.push("vision model adds extra overhead");m+=fu(jt(u),n,i),m+=Ru(u,n,i);let A=i.slice(0,3).join(", ");return{...u,score:m,reasons:i,summary:A}}).sort((u,h)=>zu(u,h,n))}function Hn(t,n){return gu(vt(t,n))}var su,bu,wu,Zn;var Tn=p(()=>{su=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],bu=["llama","qwen","mistral","gemma","phi","deepseek"],wu=["instruct","chat","assistant"],Zn=["embed","embedding","rerank","bge","whisper"]});function Xu(t){let n=t.toLowerCase();return ku.some((u)=>n.includes(u))}function tn(t){try{let n=new URL(t);if(n.username)n.username="redacted";if(n.password)n.password="redacted";for(let u of n.searchParams.keys())if(Xu(u))n.searchParams.set(u,"redacted");return n.toString()}catch{return t.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 ku;var Wn=p(()=>{ku=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function Fu(t){let n=`http://localhost:${t.port}/auth/callback`,u=new URL(`${cn}/oauth/authorize`);return u.searchParams.append("response_type","code"),u.searchParams.append("client_id",un()),u.searchParams.append("redirect_uri",n),u.searchParams.append("scope",En),u.searchParams.append("code_challenge",t.codeChallenge),u.searchParams.append("code_challenge_method","S256"),u.searchParams.append("id_token_add_organizations","true"),u.searchParams.append("codex_cli_simplified_flow","true"),u.searchParams.append("state",t.state),u.searchParams.append("originator",Pn),u.toString()}function $u(){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 Lu(t){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>${pn(t)}</p>
|
|
31
|
-
<p>You can close this window and try again in Claudin.</p>
|
|
32
|
-
</body>
|
|
33
|
-
</html>`}function Un(){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 Nu(t){let n=`http://localhost:${t.port}/auth/callback`,u=new URLSearchParams({grant_type:"authorization_code",code:t.authorizationCode,redirect_uri:n,client_id:un(),code_verifier:t.codeVerifier}),h=await fetch(`${cn}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:u,signal:t.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!h.ok){let b=await h.text().catch(()=>"");throw Error(b.trim()?`Codex OAuth token exchange failed (${h.status}): ${b.trim()}`:`Codex OAuth token exchange failed with status ${h.status}.`)}let i=await h.json(),m=Qt(i.access_token),A=Qt(i.refresh_token);if(!m||!A)throw Error("Codex OAuth completed, but the token response was missing credentials.");let w=Qt(i.id_token);return{apiKey:w?await In(w).catch(()=>{return}):void 0,accessToken:m,refreshToken:A,idToken:w,accountId:nn(w)??nn(m)}}class an{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(t){let n=Dn(),u=Bn(),h=new xn("/auth/callback");this.authCodeListener=h,this.port=null;try{let i=await h.start(u);this.port=i;let m=vn(),A=await jn(n),w=Fu({port:i,codeChallenge:A,state:m});try{let z=await h.waitForAuthorization(m,async()=>{await t(w)}),b=new AbortController;this.tokenExchangeAbortController=b;let R;try{R=await Nu({authorizationCode:z,codeVerifier:n,port:i,signal:b.signal})}finally{if(this.tokenExchangeAbortController===b)this.tokenExchangeAbortController=null}if(this.authCodeListener!==h)throw this.buildCancellationError();return h.handleSuccessRedirect([],(q)=>{q.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),q.end($u())}),R}catch(z){let b=this.authCodeListener===h?z:this.buildCancellationError();if(h.hasPendingResponse()){let R=b instanceof Error&&b.message==="Codex OAuth flow was cancelled.";h.handleErrorRedirect((q)=>{q.writeHead(R?200:400,{"Content-Type":"text/html; charset=utf-8"}),q.end(R?Un():Lu(b instanceof Error?b.message:String(b)))})}throw b}finally{this.cleanup()}}catch(i){let m=i instanceof Error?i.message:String(i);if(m.includes("EADDRINUSE")||m.includes(String(u)))throw Error(`Codex OAuth needs localhost:${u} for its callback. Close any app already using that port and try again.`);throw i}}cleanup(){let t=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(t),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((n)=>{n.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),n.end(Un())});this.authCodeListener?.cancelPendingAuthorization(t),this.authCodeListener=null,this.port=null}}var tc=p(()=>{qu();Su();_u()});function Vu(){return new an}function ac(t){let{onAuthenticated:n}=t,u=t.deps?.createOAuthService??Vu,h=t.deps?.openBrowser??uc,i=t.deps?.saveCodexCredentials??nc,m=t.deps?.isBareMode??nt,[A,w]=Gt.useState({state:"starting"});return Gt.useEffect(()=>{if(m()){w({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let z=!1,b=u();return b.startOAuthFlow(async(R)=>{if(z)return;w({state:"waiting",authUrl:R,browserOpened:null});let q=await h(R);if(z)return;w({state:"waiting",authUrl:R,browserOpened:q})}).then(async(R)=>{if(z)return;await n(R,(L)=>{let Z=i({apiKey:R.apiKey,accessToken:R.accessToken,refreshToken:R.refreshToken,idToken:R.idToken,accountId:R.accountId,profileId:L?.profileId});if(!Z.success)throw Error(Z.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((R)=>{if(z)return;w({state:"error",message:R instanceof Error?R.message:String(R)})}),()=>{z=!0,b.cleanup()}},[u,m,n,h,i]),A}var Gt;var hc=p(()=>{tc();Mu();cc();hn();Gt=Mt(Vt(),1)});function sc(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":ic()}}function lc(t,n){let u=Number(t);return Number.isFinite(u)&&u>0?u*1000:n}function Ku(t,n){if(n?.aborted)return Promise.resolve();return new Promise((u)=>{let h=setTimeout(()=>{n?.removeEventListener("abort",i),u()},t),i=()=>{clearTimeout(h),u()};n?.addEventListener("abort",i,{once:!0})})}async function Hu(t){let n=t?.fetchImpl??fetch,u=t?.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),h=await n(oc,{method:"POST",headers:sc(),body:new URLSearchParams({client_id:rn(),scope:dc}).toString(),signal:u});if(!h.ok){let z=await h.text().catch(()=>"");throw Error(`xAI device code request failed (${h.status})${z?`: ${z.trim()}`:""}`)}let i=await h.json(),m=I(i.device_code),A=I(i.user_code),w=I(i.verification_uri);if(!m||!A||!w)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:m,user_code:A,verification_uri:w,verification_uri_complete:I(i.verification_uri_complete),expires_in:typeof i.expires_in==="number"&&i.expires_in>0?i.expires_in:Cc/1000,interval:typeof i.interval==="number"&&i.interval>0?i.interval:yc/1000}}async function Tu(t,n){let u=n?.fetchImpl??fetch,h=n?.sleep??Ku,i=n?.now??(()=>Date.now()),m=lc(t.expires_in,Cc),A=i()+m,w=Math.max(lc(t.interval,yc),Yu);while(i()<A){if(n?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let z=await u(ec,{method:"POST",headers:sc(),body:new URLSearchParams({grant_type:mc,client_id:rn(),device_code:t.device_code}).toString(),signal:n?.signal});if(z.ok){let L=await z.json(),Z=I(L.access_token),V=I(L.refresh_token);if(!Z||!V)throw Error("xAI OAuth completed, but the token response was missing credentials.");let C=typeof L.expires_in==="number"&&Number.isFinite(L.expires_in)&&L.expires_in>0?L.expires_in:3600;return{accessToken:Z,refreshToken:V,idToken:I(L.id_token),expiresAt:i()+C*1000}}let b=await z.json().catch(()=>({})),R=Math.max(0,A-i());if(b.error==="authorization_pending"){await h(Math.min(w+rc,R),n?.signal);continue}if(b.error==="slow_down"){w=Math.min(w+Ju,Zu),await h(Math.min(w+rc,R),n?.signal);continue}if(b.error==="access_denied"||b.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(b.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let q=b.error_description??b.error??"";throw Error(`xAI device token exchange failed (${z.status})${q?`: ${q}`:""}`)}throw Error("xAI device authorization timed out.")}class ln{abortController=null;async startDeviceFlow(t){let n=new AbortController;this.abortController=n;try{let u=await Hu({signal:n.signal});return await t(u),await Tu(u,{signal:n.signal})}finally{if(this.abortController===n)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var yc=5000,Yu=1000,Ju=5000,Zu=60000,Cc=300000,rc=3000;var bc=p(()=>{Qu();Gu()});function Wu(){return new ln}function gc(t){let{onAuthenticated:n}=t,u=t.deps?.createOAuthService??Wu,h=t.deps?.saveXaiCredentials??wc,i=t.deps?.isBareMode??nt,[m,A]=Yt.useState({state:"starting"});return Yt.useEffect(()=>{if(i()){A({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let w=!1,z=u();return z.startDeviceFlow(async(b)=>{if(w)return;A({state:"waiting",userCode:b.user_code,verificationUri:b.verification_uri,verificationUriComplete:b.verification_uri_complete})}).then(async(b)=>{if(w)return;await n(b,(q)=>{let L=h({accessToken:b.accessToken,refreshToken:b.refreshToken,idToken:b.idToken,expiresAt:b.expiresAt,profileId:q?.profileId});if(!L.success)throw Error(L.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((b)=>{if(w)return;A({state:"error",message:b instanceof Error?b.message:String(b)})}),()=>{w=!0,z.cleanup()}},[u,i,n,h]),m}var Yt;var Ac=p(()=>{bc();hn();Oc();Yt=Mt(Vt(),1)});function ea(t){return{name:t.name,baseUrl:t.baseUrl,model:t.model,apiKey:t.apiKey??""}}function oa(t){let n=Kt(t);return{name:n.name,baseUrl:n.baseUrl,model:n.model,apiKey:n.apiKey??""}}function ma(t){let n={};for(let u of t.split(/\r?\n/)){let h=u.trim();if(!h)continue;let i=h.indexOf(":");if(i<=0)continue;let m=h.slice(0,i).trim(),A=h.slice(i+1).trim();if(m&&A)n[m]=A}return n}function da(t){if(!t)return"";return Object.entries(t).map(([n,u])=>`${n}: ${u}`).join(`
|
|
49
|
-
`)}function ya(t,n){let u={},h=t.awsRegion?.trim();if(h)u.awsRegion=h;let i=t.gcpProject?.trim();if(i)u.gcpProject=i;let m=t.gcpRegion?.trim();if(m)u.gcpRegion=m;let A=t.azureResource?.trim();if(A)u.azureResource=A;let w=ma(n);if(Object.keys(w).length>0)u.customHeaders=w;return Object.keys(u).length>0?u:void 0}function sa(t,n){let u=n?" (active)":"",h=t.apiKey?"key set":"no key",i=t.provider==="anthropic"?"anthropic":"openai-compatible",m=Rc(t.model),A=m.length<=3?m.join(", "):`${m[0]}, ${m[1]} + ${m.length-2} more`;return`${i} · ${t.baseUrl} · ${A} · ${h}${u}`}function ba(t,n){if(t.state==="unreachable")return`Could not reach Atomic Chat at ${tn(n)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(t.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 wa(t,n){if(t.state==="unreachable")return`Could not reach Ollama at ${tn(n)}. Start Ollama first, or enter the endpoint manually.`;if(t.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(t.state==="generation_failed"){let u=t.probeModel??"the selected model",h=t.detail?` Details: ${t.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${u}.${h} Run "ollama run ${u}" once and retry, or enter details manually.`}return""}function en(t,n){if(!n)return;return t.find((u)=>u.id===n)}function fc(t,n){return Boolean(t&&n&&t.id===n)}function Oa({onBack:t,onConfigured:n}){let u=s.useCallback(async(i,m)=>{await n(i,m)},[n]);ct("confirm:no",t,[t]);let h=ac({onAuthenticated:u});if(h.state==="error")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"error",bold:!0,children:"Codex OAuth failed"}),a(l,{children:h.message}),a(l,{dimColor:!0,children:"Press Enter or Esc to go back."}),a(Y,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Codex OAuth"}),a(l,{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."}),h.state==="starting"?a(l,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):h.browserOpened===!1?y(et,{children:[a(l,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),a(l,{children:h.authUrl})]}):h.browserOpened===!0?y(et,{children:[a(l,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),a(l,{children:h.authUrl})]}):a(l,{dimColor:!0,children:"Opening your browser..."}),a(l,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function ga({onBack:t,onConfigured:n}){let u=s.useCallback(async(i,m)=>{await n(i,m)},[n]);ct("confirm:no",t,[t]);let h=gc({onAuthenticated:u});if(h.state==="error")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"error",bold:!0,children:"xAI OAuth failed"}),a(l,{children:h.message}),a(l,{dimColor:!0,children:"Press Enter or Esc to go back."}),a(Y,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:t,onCancel:t,visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),h.state==="starting"?a(l,{dimColor:!0,children:"Requesting a device code from xAI..."}):y(et,{children:[y(l,{children:["Open this URL on any device:"," ",a(l,{bold:!0,children:h.verificationUri})]}),y(l,{children:["Enter code ",a(l,{bold:!0,children:h.userCode})]}),h.verificationUriComplete&&h.verificationUriComplete!==h.verificationUri?y(l,{dimColor:!0,children:["Or open this prefilled URL: ",h.verificationUriComplete]}):null,a(l,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),a(l,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function gh({mode:t,onDone:n}){let u=Fc(),[h,i]=s.useState([]),[m,A]=s.useState(),[w,z]=s.useState(),[b,R]=s.useState(!1),[q,L]=s.useState(),Z=s.useRef(0),[V,C]=s.useState(t==="first-run"?"select-preset":"menu"),[ut,Q]=s.useState(null),[_,x]=s.useState("openai"),[S,W]=s.useState(()=>oa("ollama")),[Ht,zt]=s.useState({}),[wn,Tt]=s.useState(""),[Vc,Qc]=s.useState(0),[Gc,Yc]=s.useState(0),[Wt,On]=s.useState(null),[at,st]=s.useState(0),[ht,D]=s.useState(0),[Jc,j]=s.useState(0),[gn,N]=s.useState(),[rt,f]=s.useState(),[Zc,Kc]=s.useState(),[An,kt]=s.useState(!1),[bt,wt]=s.useState(),[P,Xt]=s.useState({state:"idle"}),[B,_t]=s.useState({state:"idle"}),[Hc,Tc]=s.useState(!0),[Wc,H]=s.useState(!1),Ut=s.useRef(!1),[Et,Pt]=s.useState(()=>Rt()),[fn,Uc]=s.useState(()=>Nc());s.useEffect(()=>{queueMicrotask(()=>{let c=v(),r=T()?.id;i(c),A(r),z(Jt()),L(on()),R(ft()),Tc(!1)})},[]);let lt=mt[ht]??mt[0],qt=lt.key,Ec=S[qt],Bt=h.length>0,St=Bt,Rn=s.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},...Et?[{value:"import-legacy",label:"Import from Claude Code",description:"Copy ~/.claude/ tokens, settings, skills, agents, plugins."}]:[],{value:"activate",label:"Set active provider (Global)",description:q?`Currently: ${h.find((c)=>c.id===q)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!St},{value:"activate-project",label:"Set active provider (Project)",description:w?`Currently: ${h.find((c)=>c.id===w)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!St},...b?[{value:"clear-project-override",label:"Clear project provider override",description:w?"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:!Bt},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!St},...An?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[St,Bt,An,Et,q,w,h]),pt=s.useCallback(()=>{if(nt()){Z.current+=1,kt(!1),wt(void 0);return}let c=++Z.current;(async()=>{let r=await yn();if(c!==Z.current)return;kt(Boolean(r?.apiKey||r?.accessToken||r?.refreshToken||r?.idToken)),wt(r?.profileId)})()},[]);s.useEffect(()=>{return pt(),()=>{Z.current+=1}},[pt]),s.useEffect(()=>{if(V!=="select-ollama-model")return;let c=!1;return Xt({state:"loading"}),(async()=>{let r=await Lc({baseUrl:S.baseUrl});if(r.state!=="ready"){if(!c)Xt({state:"unavailable",message:wa(r,S.baseUrl)});return}let o=vt(r.models,"balanced"),e=Hn(r.models,"balanced");if(!c)Xt({state:"ready",defaultValue:e?.name??o[0]?.name,options:o.map((d)=>({label:d.name,value:d.name,description:d.summary}))})})(),()=>{c=!0}},[S.baseUrl,V]),s.useEffect(()=>{if(V!=="select-atomic-chat-model")return;let c=!1;return _t({state:"loading"}),(async()=>{let r=await $c({baseUrl:S.baseUrl});if(r.state!=="ready"){if(!c)_t({state:"unavailable",message:ba(r,S.baseUrl)});return}if(!c)_t({state:"ready",defaultValue:r.models[0],options:r.models.map((o)=>({label:o,value:o}))})})(),()=>{c=!0}},[S.baseUrl,V]);function M(){if(Ut.current)return;Ut.current=!0,queueMicrotask(()=>{let c=v();i(c),A(T()?.id),z(Jt()),L(on()),R(ft()),pt(),Ut.current=!1})}function it(){return null}function It(c){if(c.activationWarning)return`${c.prefix}. Saved for next startup. Warning: ${c.warnings.join("; ")}.`;if(c.warnings.length>0)return`${c.prefix}. Claudin switched to it for this session with warnings: ${c.warnings.join("; ")}.`;return`${c.prefix}. Claudin switched to it for this session.`}async function xt(c){if(c?.accessToken&&c.accountId)return null;let r=await yn();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 zn(){Sc()}async function Pc(c){let r="provider";H(!0),N("Activating provider...");try{await new Promise((U)=>queueMicrotask(U));let o=ft(),e=gt(c);if(!e){f("Could not change active provider."),H(!1),k();return}let d=o?T()??e:e,O=yt(d.model);if(!o)u((U)=>({...U,mainLoopModel:O,mainLoopModelForSession:null}));r=e.name;let X=it(),J=fc(e,bt),$=J?await xt():null;M();let K=o&&d.id!==e.id?` (project override still active — this project keeps using ${d.name}; use "Clear project provider override" to apply the new default here)`:"",F=J?It({prefix:`Active provider: ${e.name}${K}`,activationWarning:$,warnings:[$,X?`could not clear startup provider override (${X})`:null].filter((U)=>Boolean(U))}):X?`Active provider: ${e.name}${K}. Warning: could not clear startup provider override (${X}).`:`Active provider: ${e.name}${K}`;N(F),H(!1),n({action:"activated",activeProfileId:e.id,activeProviderName:e.name,activeProviderModel:O,message:`Provider switched to ${e.name} (${O})`}),k()}catch(o){M(),N(void 0),H(!1);let e=o instanceof Error?o.message:String(o);f(`Could not finish activating ${r}: ${e}`),k()}}async function Bc(){H(!0),N("Clearing project provider override...");try{await new Promise((r)=>queueMicrotask(r)),mn(null),M();let c=T();if(c){let r=yt(c.model);Ct(),u((o)=>({...o,mainLoopModel:r,mainLoopModelForSession:null})),N(`Project override cleared. Using global default: ${c.name}.`),H(!1),n({action:"activated",activeProfileId:c.id,activeProviderName:c.name,activeProviderModel:r,message:`Project override cleared — using ${c.name} (${r})`}),k()}else N("Project provider override cleared. No global default set."),H(!1),n({action:"saved",message:"Project provider override cleared. No global default set."}),k()}catch(c){M(),N(void 0),H(!1);let r=c instanceof Error?c.message:String(c);f(`Could not clear project provider override: ${r}`),k()}}async function pc(c){let r="provider";H(!0),N("Setting provider for this project...");try{await new Promise((F)=>queueMicrotask(F));let o=Jt(),e=mn(c);if(!e){f("Could not set project provider override."),H(!1),k();return}let d=yt(e.model);if(o===e.id)Ct();u((F)=>({...F,mainLoopModel:d,mainLoopModelForSession:null})),r=e.name;let O=it(),X=fc(e,bt),J=X?await xt():null;M();let $=`Active provider for this project: ${e.name}. Other projects keep the global default.`,K=X?It({prefix:$,activationWarning:J,warnings:[J,O?`could not clear startup provider override (${O})`:null].filter((F)=>Boolean(F))}):O?`${$} Warning: could not clear startup provider override (${O}).`:$;N(K),H(!1),n({action:"activated",activeProfileId:e.id,activeProviderName:e.name,activeProviderModel:d,message:`Provider switched to ${e.name} (${d}) for this project`}),k()}catch(o){M(),N(void 0),H(!1);let e=o instanceof Error?o.message:String(o);f(`Could not finish setting ${r} for this project: ${e}`),k()}}function k(){Kc("done"),C("menu")}function Ft(c){n({action:"cancelled",message:c})}function Ic(c){let r=Kt(c),o={name:r.name,baseUrl:r.baseUrl,model:r.model,apiKey:r.apiKey??""};if(Q(null),x(r.provider??"openai"),W(o),zt({}),Tt(""),On(c),D(0),st(0),j(o.name.length),f(void 0),c==="ollama"){Xt({state:"loading"}),C("select-ollama-model");return}if(c==="atomic-chat"){_t({state:"loading"}),C("select-atomic-chat-model");return}if(c==="anthropic"){C("anthropic-auth-choice");return}if(c==="bedrock"||c==="vertex"||c==="foundry"){C("cloud-extras");return}C("form")}function xc(c){let r=h.find((e)=>e.id===c);if(!r)return;let o=ea(r);Q(c),x(r.provider??"openai"),W(o),zt({awsRegion:r.extras?.awsRegion,gcpProject:r.extras?.gcpProject,gcpRegion:r.extras?.gcpRegion,azureResource:r.extras?.azureResource}),Tt(da(r.extras?.customHeaders)),On(null),D(0),st(0),j(o.name.length),f(void 0),C("form")}function $t(c=S){let r=ya(Ht,wn),o={provider:_,name:c.name,baseUrl:c.baseUrl,model:c.model,apiKey:c.apiKey,extras:r},e=ut?Ot(ut,o):tt(o,{makeActive:!0});if(!e){f("Could not save provider. Fill all required fields.");return}let d=T()?.id===e.id;if(d)Ct(),u((K)=>({...K,mainLoopModel:yt(e.model),mainLoopModelForSession:null}));let O=d?it():null;M();let X=!ut&&ft()&&!d,J=X?T()?.name??"override target":null,$=ut?`Updated provider: ${e.name}`:X?`Added provider: ${e.name} (now global default — project keeps using ${J}; use "Clear project provider override" to apply here)`:`Added provider: ${e.name} (now active)`;if(N(O?`${$}. Warning: could not clear startup provider override (${O}).`:$),t==="first-run"){n({action:"saved",activeProfileId:e.id,message:`Provider configured: ${e.name}`});return}Q(null),D(0),f(void 0),k()}function Dc(){if(B.state==="loading"||B.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),a(l,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(B.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Atomic Chat setup"}),a(l,{dimColor:!0,children:B.message}),a(Y,{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:(c)=>{if(c==="manual"){D(0),j(S.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),a(l,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),a(Y,{options:B.options,defaultValue:B.defaultValue,defaultFocusValue:B.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,B.options.length),onChange:(c)=>{let r={...S,model:c};W(r),$t(r)},onCancel:()=>C("select-preset")})]})}function jc(){if(P.state==="loading"||P.state==="idle")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Checking Ollama"}),a(l,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(P.state==="unavailable")return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Ollama setup"}),a(l,{dimColor:!0,children:P.message}),a(Y,{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:(c)=>{if(c==="manual"){D(0),j(S.name.length),C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:2})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Choose an Ollama model"}),a(l,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),a(Y,{options:P.options,defaultValue:P.defaultValue,defaultFocusValue:P.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,P.options.length),onChange:(c)=>{let r={...S,model:c};W(r),$t(r)},onCancel:()=>C("select-preset")})]})}function vc(c){let r=c.trim();if(!lt.optional&&r.length===0){f(`${lt.label} is required.`);return}let o={...S,[qt]:r};if(W(o),f(void 0),ht<mt.length-1){let e=ht+1,d=mt[e]?.key??"name";D(e),j(o[d].length);return}if((Wt==="anthropic"||Wt==="custom")&&V==="form"){W(o),C("custom-headers");return}$t(o)}function tu(){if(f(void 0),ht>0){let c=ht-1,r=mt[c]?.key??"name";D(c),j(S[r].length);return}if(t==="first-run"){C("select-preset");return}k()}ct("confirm:no",tu,{context:"Settings",isActive:V==="form"});function nu(){if(f(void 0),at>0){st(at-1);return}C("select-preset")}ct("confirm:no",nu,{context:"Settings",isActive:V==="cloud-extras"}),ct("confirm:no",()=>C("form"),{context:"Settings",isActive:V==="custom-headers"}),ct("confirm:no",()=>C("select-preset"),{context:"Settings",isActive:V==="anthropic-auth-choice"||V==="anthropic-oauth"});function cu(){let c=!nt(),r=[...Et?[{value:"import-legacy",label:"Import from Claude Code",description:"Reuse ~/.claude/ tokens, settings, theme, MCP, skills, agents, plugins."}]:[],{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)"},...c?[{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 - API",description:"Moonshot AI - API endpoint"},{value:"kimi-code",label:"Moonshot AI - Kimi Code",description:"Moonshot AI - Kimi Code Subscription endpoint"},{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:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...t==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:t==="first-run"?"Set up provider":"Choose provider preset"}),a(l,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),a(Y,{options:r,onChange:(o)=>{if(o==="skip"){Ft("Provider setup skipped");return}if(o==="codex-oauth"){C("codex-oauth");return}if(o==="xai-oauth"){C("xai-oauth");return}if(o==="github-onboard"){C("github-onboard");return}if(o==="import-legacy"){(async()=>{let e=await bn({force:!0});Pt(Rt()),M();let d=Zt(e);if(e.errors.length>0){f(d);return}let O=T();if(t==="first-run"&&O){n({action:"saved",activeProfileId:O.id,activeProviderName:O.name,activeProviderModel:O.model,message:d});return}if(N(d),f(void 0),t==="manage")k()})();return}Ic(o)},onCancel:()=>{if(t==="first-run"){Ft("Provider setup skipped");return}k()},visibleOptionCount:Math.min(13,r.length)})]})}function uu(){return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),a(l,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),a(Y,{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:(c)=>{if(c==="oauth"){C("anthropic-oauth");return}if(c==="apiKey"){C("form");return}C("select-preset")},onCancel:()=>C("select-preset"),visibleOptionCount:3})]})}function au(){let c=(na(),Uu(ta)).ConsoleOAuthFlow;return a(g,{flexDirection:"column",gap:1,children:a(c,{mode:"login",onDone:()=>{let r=Kt("anthropic"),o={provider:"anthropic",name:r.name,baseUrl:r.baseUrl,model:r.model},e=tt(o,{makeActive:!0});if(!e){f("OAuth completed, but the Anthropic profile could not be saved."),C("select-preset");return}let d=`Anthropic OAuth configured: ${e.name}`;if(M(),t==="first-run"){n({action:"saved",activeProfileId:e.id,message:d});return}N(d),f(void 0),k()}})})}function hu(){let c=Wt;if(c!=="bedrock"&&c!=="vertex"&&c!=="foundry")return null;let r=Ca[c],o=r[at]??r[0],e=Ht[o.key]??"";function d(O){let X=O.trim();if(X.length===0){f(`${o.label} is required.`);return}let J={...Ht,[o.key]:X};if(zt(J),f(void 0),at<r.length-1){st(at+1);return}st(0),C("form")}return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:`${c==="bedrock"?"AWS Bedrock":c==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),a(l,{dimColor:!0,children:o.helpText}),y(l,{dimColor:!0,children:["Step ",at+1," of ",r.length,": ",o.label]}),y(g,{flexDirection:"row",gap:1,children:[a(l,{children:dt.pointer}),a(ot,{value:e,onChange:(O)=>zt((X)=>({...X,[o.key]:O})),onSubmit:d,focus:!0,showCursor:!0,placeholder:`${o.placeholder}${dt.ellipsis}`,columns:80,cursorOffset:Vc,onChangeCursorOffset:Qc})]}),rt&&a(l,{color:"error",children:rt}),a(l,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function ru(){return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Custom headers (optional)"}),y(l,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",a(l,{children:"Header: Value"}),". Leave empty to skip."]}),y(g,{flexDirection:"row",gap:1,children:[a(l,{children:dt.pointer}),a(ot,{value:wn,onChange:Tt,onSubmit:()=>$t(S),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:Gc,onChangeCursorOffset:Yc})]}),rt&&a(l,{color:"error",children:rt}),a(l,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function lu(){return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:ut?"Edit provider profile":"Create provider profile"}),a(l,{dimColor:!0,children:lt.helpText}),y(l,{dimColor:!0,children:["Provider type:"," ",_==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),y(l,{dimColor:!0,children:["Step ",ht+1," of ",mt.length,": ",lt.label]}),y(g,{flexDirection:"row",gap:1,children:[a(l,{children:dt.pointer}),a(ot,{value:Ec,onChange:(c)=>W((r)=>({...r,[qt]:c})),onSubmit:vc,focus:!0,showCursor:!0,placeholder:`${lt.placeholder}${dt.ellipsis}`,mask:qt==="apiKey"?"*":void 0,columns:80,cursorOffset:Jc,onChangeCursorOffset:j})]}),rt&&a(l,{color:"error",children:rt}),a(l,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function iu(){let c=h.length>0,r=c;return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Provider manager"}),a(l,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),gn&&a(l,{children:gn}),a(g,{flexDirection:"column",children:h.length===0?a(l,{dimColor:!0,children:"No provider profiles configured yet."}):h.map((o)=>y(l,{dimColor:!0,children:["- ",o.name,": ",sa(o,o.id===m)]},o.id))}),a(Y,{options:Rn,onChange:(o)=>{switch(f(void 0),o){case"add":C("select-preset");break;case"import-legacy":{(async()=>{let e=await bn({force:!0});if(Pt(Rt()),M(),e.errors.length>0)f(Zt(e));else N(Zt(e))})();break}case"activate":if(r)C("select-active");break;case"activate-project":if(r)C("select-active-project");break;case"clear-project-override":Bc();break;case"edit":if(c)C("select-edit");break;case"delete":if(r)C("select-delete");break;case"logout-codex-oauth":{let e=Cn();if(!e.success){f(e.warning??"Could not clear Codex OAuth credentials.");break}kt(!1),wt(void 0);let d=en(v(),bt),O=null;if(d){let X=dn(d.id);if(!X.removed){f("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),M();break}zn(),O=X.activeProfileId?it():null}M(),N(O?`Codex OAuth logged out. Warning: could not clear startup provider override (${O}).`:"Codex OAuth logged out.");break}default:Ft("Provider manager closed");break}},onCancel:()=>Ft("Provider manager closed"),defaultFocusValue:Zc,visibleOptionCount:Rn.length})]})}function Lt(c,r,o){let e=h.map((d)=>{let O=[];if(d.id===m)O.push("active");if(w&&d.id===w)O.push("this project");if(q&&d.id===q)O.push("global default");let X=O.length>0?` (${O.join(", ")})`:"";return{value:d.id,label:`${d.name}${X}`,description:`${d.provider==="anthropic"?"anthropic":"openai-compatible"} · ${d.baseUrl} · ${d.model}`}});if(e.length===0)return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:c}),a(l,{dimColor:!0,children:r}),a(Y,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>k(),onCancel:()=>k(),visibleOptionCount:1})]});return y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:c}),a(Y,{options:e,onChange:o,onCancel:()=>k(),visibleOptionCount:Math.min(10,Math.max(2,e.length))})]})}let G;switch(V){case"select-preset":G=cu();break;case"select-ollama-model":G=jc();break;case"select-atomic-chat-model":G=Dc();break;case"codex-oauth":G=a(Oa,{onBack:()=>C("select-preset"),onConfigured:async(c,r)=>{let o={provider:"openai",name:ha,baseUrl:zc,model:ra,apiKey:""},e=en(v(),bt),d=e?Ot(e.id,o):tt(o,{makeActive:!0});if(!d){f("Codex OAuth login finished, but the provider profile could not be saved."),k();return}let O=e&&m!==d.id?gt(d.id):d;if(!O){f("Codex OAuth login finished, but the provider could not be set as the startup provider."),k();return}r({profileId:d.id});let X=it(),J=await xt(c);kt(!0),wt(d.id),M();let $=[J,X?`could not clear startup provider override (${X})`:null].filter((F)=>Boolean(F)),K=It({prefix:"Codex OAuth configured",activationWarning:J,warnings:$});if(t==="first-run"){n({action:"saved",activeProfileId:O.id,message:K});return}N(K),f(void 0),k()}});break;case"xai-oauth":G=a(ga,{onBack:()=>C("select-preset"),onConfigured:async(c,r)=>{let e=tt({provider:"openai",name:la,baseUrl:sn,model:ia,apiKey:""},{makeActive:!0});if(!e){f("xAI OAuth login finished, but the provider profile could not be saved."),k();return}try{r({profileId:e.id})}catch(O){f(O instanceof Error?O.message:String(O)),k();return}M();let d="xAI / Grok configured. Claudin switched to it for this session.";if(t==="first-run"){n({action:"saved",activeProfileId:e.id,message:d});return}N(d),f(void 0),k()}});break;case"github-onboard":G=a(Yn,{onDone:(c)=>{if(c)N(c),f(void 0);M(),k()},onBack:()=>C("select-preset"),onChangeAPIKey:M});break;case"anthropic-auth-choice":G=uu();break;case"anthropic-oauth":G=au();break;case"cloud-extras":G=hu();break;case"custom-headers":G=ru();break;case"form":G=lu();break;case"select-active":G=Lt("Set active provider (Global)","No providers available. Add one first.",(c)=>{Pc(c)});break;case"select-active-project":G=Lt("Set active provider (Project)","No providers available. Add one first.",(c)=>{pc(c)});break;case"select-edit":G=Lt("Edit provider","No providers available. Add one first.",(c)=>{xc(c)});break;case"select-delete":G=Lt("Delete provider","No providers available. Add one first.",(c)=>{let r=h.find(($)=>$.id===c),o=r?.provider==="openai"&&r?.extras?.githubToken!==void 0,e=en(h,bt)?.id===c,d=_c()?.profileId,O=r?.provider==="openai"&&r.baseUrl===sn&&!r.apiKey&&d===c,X=T()?.id===c,J=dn(c);if(!J.removed)f("Could not delete provider.");else{let $=[];if(e){let F=Cn();if(!F.success)$.push(F.warning??"could not clear Codex OAuth credentials");else wt(void 0);zn()}if(o){let F=Xc();if(!F.success)$.push(F.warning??"could not clear GitHub Copilot token")}if(O){let F=qc();if(!F.success)$.push(F.warning??"could not clear xAI OAuth credentials")}let K=J.activeProfileId?it():null;if(K)$.push(`could not clear startup provider override (${K})`);if(M(),X){let F=T();if(F)Ct(),u((U)=>({...U,mainLoopModel:yt(F.model),mainLoopModelForSession:null}));else Ct(),u((U)=>({...U,mainLoopModel:null,mainLoopModelForSession:null}))}N($.length>0?`Provider deleted. Warning: ${$.join("; ")}.`:"Provider deleted")}k()});break;case"menu":default:G=iu();break}return y(kc,{color:"permission",children:[a(Mc,{enabled:fn,onDismiss:(c)=>{Pt(Rt()),Uc(!1),M();let r=T();if(c==="migrated"&&t==="first-run"&&r)n({action:"saved",activeProfileId:r.id,activeProviderName:r.name,activeProviderModel:r.model})}}),fn?null:Hc?y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Loading providers..."}),a(l,{dimColor:!0,children:"Reading provider profiles from disk."})]}):Wc?y(g,{flexDirection:"column",gap:1,children:[a(l,{color:"remember",bold:!0,children:"Activating provider..."}),a(l,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):G]})}var s,mt,ha="Codex OAuth",ra="codexplan",la="xAI / Grok (OAuth)",ia="grok-4",Ca;var Aa=p(()=>{Eu();Jn();Bu();_n();pu();Du();ca();cc();hn();Pu();xu();kn();Vn();ju();Tn();Wn();vu();Iu();aa();Qn();hc();Ac();Oc();ua();Nt();s=Mt(Vt(),1),mt=[{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:"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.'},{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}];Ca={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."}]}});
|
|
50
|
-
export{tn as ic,Wn as jc,ma as kc,gh as lc,Aa as mc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{n7 as Z,r7 as _,s7 as w}from"./cli-0.6.5-87qz97g2.mjs";import{Lba as W,N8 as T,Oba as V,T9 as D,b8 as Y,c8 as U,hca as j,n8 as $,x9 as k}from"./cli-0.6.5-ef6b5qvc.mjs";import{oha as N,rha as M}from"./cli-0.6.5-q4gh8d4w.mjs";import{Gna as O,Pja as X}from"./cli-0.6.5-ckc9hr8m.mjs";O();j();M();w();D();U();T();import{realpath as v}from"fs/promises";async function b(){try{let q=await Z();if(!q){N("Not in a GitHub repository, skipping path mapping update");return}let A=X(),z=$(A)??A,B;try{B=(await v(z)).normalize("NFC")}catch{B=z}let J=q.toLowerCase(),L=V().githubRepoPaths?.[J]??[];if(L[0]===B){N(`Path ${B} already tracked for repo ${J}`);return}let E=L.filter((S)=>S!==B),H=[B,...E];W((S)=>({...S,githubRepoPaths:{...S.githubRepoPaths,[J]:H}})),N(`Added ${B} to tracked paths for repo ${J}`)}catch(q){N(`Error updating repo path mapping: ${q}`)}}function y(q){let A=V(),I=q.toLowerCase();return A.githubRepoPaths?.[I]??[]}async function P(q){let A=await Promise.all(q.map(k));return q.filter((I,z)=>A[z])}async function d(q,A){try{let I=await Y(q);if(!I)return!1;let z=_(I);if(!z)return!1;return z.toLowerCase()===A.toLowerCase()}catch{return!1}}function c(q,A){let I=V(),z=q.toLowerCase(),B=I.githubRepoPaths?.[z]??[],J=B.filter((L)=>L!==A);if(J.length===B.length)return;let Q={...I.githubRepoPaths};if(J.length===0)delete Q[z];else Q[z]=J;W((L)=>({...L,githubRepoPaths:Q})),N(`Removed ${A} from tracked paths for repo ${z}`)}
|
|
2
|
-
export{b as Db,y as Eb,P as Fb,d as Gb,c as Hb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Al as W,Dl as P,Ij as Q,Jj as I,gP as R,yO as Y}from"./cli-0.6.5-5t6d3asz.mjs";import{Qda as B,Rda as f}from"./cli-0.6.5-pz5add8h.mjs";import{Ffa as H,Gfa as J,aga as F}from"./cli-0.6.5-rkjw25m5.mjs";import{Gna as $,Jja as v}from"./cli-0.6.5-ckc9hr8m.mjs";import{ppa as Z}from"./cli-0.6.5-bm7v9qp0.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();F();I();f();R();P()});
|
|
2
|
-
export{S as re,V as se,X as te,r as ue,w as ve,T as we,G as xe};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ef as rG,xf as EG,yf as iG}from"./cli-0.6.5-f4x1fb90.mjs";import{AK as y,BK as o,BL as sG,Bm as fG,CK as lG,EK as kG,FL as f,GL as s,HL as c,IL as v,JK as _G,JL as i,ML as u,QL as cG,Rq as vG,Ru as l,SK as aG,Su as jG,Tu as HG,UD as KG,Uu as dG,VD as mG,aL as $G,bL as oG,jK as LG,kK as BG,mK as pG,mm as FG,nm as OG,oK as WG,or as uG,pK as qG,rm as VG,uK as a,yK as DG,yL as bG}from"./cli-0.6.5-5t6d3asz.mjs";import{gX as QJ}from"./cli-0.6.5-f71ncwzk.mjs";import{m1 as wG,o1 as PG}from"./cli-0.6.5-8hsxq1p3.mjs";import{p1 as YG}from"./cli-0.6.5-vqb4jtcr.mjs";import{Jda as R,K$ as zG,Kda as _,Nda as gG,P$ as CG}from"./cli-0.6.5-ef6b5qvc.mjs";import{Zea as NG}from"./cli-0.6.5-kac7d6qe.mjs";import{lga as A,oga as MG}from"./cli-0.6.5-6qvtcs5y.mjs";import{Yga as yG,oha as ZG,rha as SG}from"./cli-0.6.5-q4gh8d4w.mjs";import{Iha as h,Pha as TG}from"./cli-0.6.5-ce51qb6k.mjs";import{Gna as XG,Jja as QG}from"./cli-0.6.5-ckc9hr8m.mjs";import{lpa as r,ppa as p}from"./cli-0.6.5-bm7v9qp0.mjs";var e=p(()=>{yG();NG()});function GG(Z){let z="plugin"in Z?Z.plugin:"no-plugin";return`${Z.type}:${Z.source}:${z}`}function JG(Z,z){if(z.length===0)return;Z((k)=>{let U=new Set(k.plugins.errors.map((j)=>GG(j))),$=z.filter((j)=>!U.has(GG(j)));if($.length===0)return k;return{...k,plugins:{...k.plugins,errors:[...k.plugins.errors,...$]}}})}function GJ(Z,z,k,U){let $=z==="disabled"?U??[]:U;if($===void 0)return Z;let j=new Map;for(let W of $)if(W.name!==void 0)j.set(W.name,W);let V=[],P=new Set;for(let W of Z){if(!W.name?.startsWith(k)){V.push(W);continue}let w=j.get(W.name);if(w)V.push(w),P.add(W.name)}for(let W of $)if(W.name===void 0||!P.has(W.name))V.push(W);return V}function IG(Z,z=!1){let k=HG(),U=l((G)=>G.authVersion),$=l((G)=>G.mcp.pluginReconnectKey),j=jG(),V=D.useRef(new Map),P=D.useRef(new Set),W=D.useRef(null);D.useEffect(()=>{},[j]);let{addNotification:w}=KG(),RG=16,d=D.useRef([]),N=D.useRef(null),C=D.useCallback(()=>{N.current=null;let G=d.current;if(G.length===0)return;d.current=[],j((Y)=>{let F=Y.mcp;for(let B of G){let{tools:X,commands:H,resources:q,...J}=B,K=J.type==="disabled"||J.type==="failed"?H??[]:H,Q=J.type==="disabled"||J.type==="failed"?q??[]:q,O=zG(J.name),I=F.clients.findIndex((M)=>M.name===J.name)===-1?[...F.clients,J]:F.clients.map((M)=>M.name===J.name?J:M),g=GJ(F.tools,J.type,O,X),x=K===void 0?F.commands:[...$G(F.commands,(M)=>kG(M,J.name)),...K],m=Q===void 0?F.resources:{...F.resources,...Q.length>0?{[J.name]:Q}:EG(F.resources,J.name)};F={...F,clients:I,tools:g,commands:x,resources:m}}return{...Y,mcp:F}})},[j]),b=D.useCallback((G)=>{if(d.current.push(G),N.current===null)N.current=setTimeout(C,RG)},[C]),E=D.useCallback(({client:G,tools:Y,commands:F,resources:B})=>{switch(b({...G,tools:Y,commands:F,resources:B}),G.type){case"connected":{if(bG(G.client,G.name,j),G.client.onclose=()=>{let X=G.config.type??"stdio";if(u(G.name,G.config).catch(()=>{ZG(`Failed to invalidate the server cache: ${G.name}`)}),y(G.name)){_(G.name,"Server is disabled, skipping automatic reconnection");return}if(X!=="stdio"&&X!=="sdk"){let H=JJ(X);_(G.name,`${H} transport closed/disconnected, attempting automatic reconnection`);let q=V.current.get(G.name);if(q)clearTimeout(q),V.current.delete(G.name);(async()=>{for(let K=1;K<=T;K++){if(y(G.name)){_(G.name,"Server disabled during reconnection, stopping retry"),V.current.delete(G.name);return}b({...G,type:"pending",reconnectAttempt:K,maxReconnectAttempts:T});let Q=Date.now();try{let L=await v(G.name,G.config),I=Date.now()-Q;if(L.client.type==="connected"){_(G.name,`${H} reconnection successful after ${I}ms (attempt ${K})`),V.current.delete(G.name),E(L);return}if(_(G.name,`${H} reconnection attempt ${K} completed with status: ${L.client.type}`),K===T){_(G.name,`Max reconnection attempts (${T}) reached, giving up`),V.current.delete(G.name),E(L);return}}catch(L){let I=Date.now()-Q;if(R(G.name,`${H} reconnection attempt ${K} failed after ${I}ms: ${L}`),K===T){_(G.name,`Max reconnection attempts (${T}) reached, giving up`),V.current.delete(G.name),b({...G,type:"failed"});return}}let O=Math.min(tG*Math.pow(2,K-1),eG);_(G.name,`Scheduling reconnection attempt ${K+1} in ${O}ms`),await new Promise((L)=>{let I=setTimeout(L,O);V.current.set(G.name,I)})}})()}else b({...G,type:"failed"})},!1)switch(X.action){case"register":case"skip":}if(G.capabilities?.tools?.listChanged)G.client.setNotificationHandler(VG,async()=>{_(G.name,"Received tools/list_changed notification, refreshing tools");try{let X=f.cache.get(G.name);f.cache.delete(G.name);let H=await f(G),q=H.length;if(X)X.then((J)=>{A("tengu_mcp_list_changed",{type:"tools",previousCount:J.length,newCount:q})},()=>{A("tengu_mcp_list_changed",{type:"tools",newCount:q})});else A("tengu_mcp_list_changed",{type:"tools",newCount:q});b({...G,tools:H})}catch(X){R(G.name,`Failed to refresh tools after list_changed notification: ${h(X)}`)}});if(G.capabilities?.prompts?.listChanged)G.client.setNotificationHandler(OG,async()=>{_(G.name,"Received prompts/list_changed notification, refreshing prompts"),A("tengu_mcp_list_changed",{type:"prompts"});try{c.cache.delete(G.name);let[X,H]=await Promise.all([c(G),Promise.resolve([])]);b({...G,commands:[...X,...H]}),nG?.()}catch(X){R(G.name,`Failed to refresh prompts after list_changed notification: ${h(X)}`)}});if(G.capabilities?.resources?.listChanged)G.client.setNotificationHandler(FG,async()=>{_(G.name,"Received resources/list_changed notification, refreshing resources"),A("tengu_mcp_list_changed",{type:"resources"});try{s.cache.delete(G.name);{let X=await s(G);b({...G,resources:X})}}catch(X){R(G.name,`Failed to refresh resources after list_changed notification: ${h(X)}`)}});break}case"needs-auth":case"failed":case"pending":case"disabled":break}},[b]),t=QG();D.useEffect(()=>{async function G(){let{servers:Y,errors:F}=z?{servers:{},errors:[]}:await a(Z),B={...Y,...Z};JG(j,F),j((X)=>{let{stale:H,...q}=_G(X.mcp,B);for(let Q of H){let O=V.current.get(Q.name);if(O)clearTimeout(O),V.current.delete(Q.name);if(Q.type==="connected")Q.client.onclose=void 0,u(Q.name,Q.config).catch(()=>{})}let J=new Set(q.clients.map((Q)=>Q.name)),K=Object.entries(B).filter(([Q])=>!J.has(Q)).map(([Q,O])=>({name:Q,type:y(Q)?"disabled":"pending",config:O}));if(K.length===0&&H.length===0)return X;return{...X,mcp:{...X.mcp,...q,clients:[...q.clients,...K]}}})}G().catch((Y)=>{R("useManageMCPConnections",`Failed to initialize servers as pending: ${h(Y)}`)})},[z,Z,j,t,$]),D.useEffect(()=>{let G=!1;async function Y(){let F;if(z||DG())F=Promise.resolve({});else BG(),F=LG();let{servers:B,errors:X}=z?{servers:{},errors:[]}:await a(Z,F);if(G)return;JG(j,X);let H={...B,...Z},q=Object.fromEntries(Object.entries(H).filter(([O])=>!y(O)));i(E,q).catch((O)=>{R("useManageMcpConnections",`Failed to get MCP resources: ${h(O)}`)});let J={};if(!z){if(J=qG(await F).allowed,G)return;if(Object.keys(J).length>0){let{servers:O}=WG(J,H);J=O}if(Object.keys(J).length>0){j((L)=>{let I=new Set(L.mcp.clients.map((x)=>x.name)),g=Object.entries(J).filter(([x])=>!I.has(x)).map(([x,m])=>({name:x,type:y(x)?"disabled":"pending",config:m}));if(g.length===0)return L;return{...L,mcp:{...L.mcp,clients:[...L.mcp.clients,...g]}}});let O=Object.fromEntries(Object.entries(J).filter(([L])=>!y(L)));i(E,O).catch((L)=>{R("useManageMcpConnections",`Failed to get claude.ai MCP resources: ${h(L)}`)})}}let K={...H,...J},Q={enterprise:0,global:0,project:0,user:0,plugin:0,claudeai:0};for(let O of Object.values(K))if(O.scope==="enterprise")Q.enterprise++;else if(O.scope==="user")Q.global++;else if(O.scope==="project")Q.project++;else if(O.scope==="local")Q.user++;else if(O.scope==="dynamic")Q.plugin++;else if(O.scope==="claudeai")Q.claudeai++;A("tengu_mcp_servers",{...Q})}return Y(),()=>{G=!0}},[z,Z,E,j,U,t,$]),D.useEffect(()=>{let G=V.current;return()=>{for(let Y of G.values())clearTimeout(Y);if(G.clear(),N.current!==null)clearTimeout(N.current),N.current=null,C()}},[C]);let AG=D.useCallback(async(G)=>{let Y=k.getState().mcp.clients.find((X)=>X.name===G);if(!Y)throw Error(`MCP server ${G} not found`);let F=V.current.get(G);if(F)clearTimeout(F),V.current.delete(G);let B=await v(G,Y.config);return E(B),B},[k,E]),hG=D.useCallback(async(G)=>{let Y=k.getState().mcp.clients.find((B)=>B.name===G);if(!Y)throw Error(`MCP server ${G} not found`);if(Y.type!=="disabled"){let B=V.current.get(G);if(B)clearTimeout(B),V.current.delete(G);if(o(G,!1),Y.type==="connected")await u(G,Y.config);b({name:G,type:"disabled",config:Y.config})}else{o(G,!0),b({name:G,type:"pending",config:Y.config});let B=await v(G,Y.config);E(B)}},[k,b,E]);return{reconnectMcpServer:AG,toggleMcpServer:hG}}function JJ(Z){switch(Z){case"http":return"HTTP";case"ws":case"ws-ide":return"WebSocket";default:return"SSE"}}var D,nG=null,T=5,tG=1000,eG=30000;var UG=p(()=>{XG();cG();fG();iG();oG();MG();lG();SG();XG();mG();dG();TG();gG();uG();rG();e();pG();sG();CG();aG();vG();D=r(YG(),1)});function aJ(){let Z=S.useContext(n);if(!Z)throw Error("useMcpReconnect must be used within MCPConnectionManager");return Z.reconnectMcpServer}function oJ(){let Z=S.useContext(n);if(!Z)throw Error("useMcpToggleEnabled must be used within MCPConnectionManager");return Z.toggleMcpServer}function sJ(Z){let z=xG.c(6),{children:k,dynamicMcpConfig:U,isStrictMcpConfig:$}=Z,{reconnectMcpServer:j,toggleMcpServer:V}=IG(U,$),P;if(z[0]!==j||z[1]!==V)P={reconnectMcpServer:j,toggleMcpServer:V},z[0]=j,z[1]=V,z[2]=P;else P=z[2];let W=P,w;if(z[3]!==k||z[4]!==W)w=wG(n.Provider,{value:W,children:k}),z[3]=k,z[4]=W,z[5]=w;else w=z[5];return w}var xG,S,n;var XJ=p(()=>{UG();PG();xG=r(QJ(),1),S=r(YG(),1),n=S.createContext(null)});
|
|
2
|
-
export{e as sf,aJ as tf,oJ as uf,sJ as vf,XJ as wf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Nx as U,Ox as V,Rx as f,nt as R,ot as T,pt as $}from"./cli-0.6.5-5t6d3asz.mjs";import{K3 as Q,L3 as _}from"./cli-0.6.5-c7yx03g7.mjs";import{Fda as G,Nda as Z,c_ as L,j_ as Y}from"./cli-0.6.5-ef6b5qvc.mjs";import{ppa as X}from"./cli-0.6.5-bm7v9qp0.mjs";function S(q,j){let z=new Map;for(let x of j)z.set(x.agentType,x);let H=new Set,J=[];for(let x of q){let K=`${x.agentType}:${x.source}`;if(H.has(K))continue;H.add(K);let E=z.get(x.agentType),W=E&&E.source!==x.source?E.source:void 0;J.push({...x,overriddenBy:W})}return J}function I(q){let j=q.model||U();if(!j)return;if(j==="inherit")return"inherit";if(j==="haiku"||j==="sonnet"||j==="opus"){try{if(!V())return"inherit";if(!Q(j))return"inherit"}catch(z){G(z)}return j}return T(j,`agent:${q.agentType}`,{getAvailableModelIds:R,logDebug:()=>{},logErr:G})??j}function N(q){return L(q).toLowerCase()}function P(q,j){return q.agentType.localeCompare(j.agentType,void 0,{sensitivity:"base"})}var O;var h=X(()=>{f();_();Z();Y();$();O=[{label:"User agents",source:"userSettings"},{label:"Project agents",source:"projectSettings"},{label:"Local agents",source:"localSettings"},{label:"Managed agents",source:"policySettings"},{label:"Plugin agents",source:"plugin"},{label:"CLI arg agents",source:"flagSettings"},{label:"Built-in agents",source:"built-in"}]});
|
|
2
|
-
export{O as Kc,S as Lc,I as Mc,N as Nc,P as Oc,h as Pc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ym as Q,Zm as aq,nu as Pq,ru as hq}from"./cli-0.6.5-5t6d3asz.mjs";import{JW as Uq,KW as Iq,NW as fq}from"./cli-0.6.5-2dq7pa8p.mjs";import{BY as J,DY as L,gX as nq,gZ as Sq}from"./cli-0.6.5-f71ncwzk.mjs";import{m1 as H,n1 as O,o1 as vq}from"./cli-0.6.5-8hsxq1p3.mjs";import{e3 as bq,f3 as Mq,y3 as jq}from"./cli-0.6.5-c7yx03g7.mjs";import{Oba as Rq,P8 as Xq,Q8 as yq,hca as pq,x_ as Nq,z_ as _q}from"./cli-0.6.5-ef6b5qvc.mjs";import{Zea as kq}from"./cli-0.6.5-kac7d6qe.mjs";import{lpa as Bq,ppa as Gq}from"./cli-0.6.5-bm7v9qp0.mjs";function lq(){return Rq().editorMode==="vim"}function Kq(){if(Nq.terminal==="Apple_Terminal"&&process.platform==="darwin")return"shift + ⏎ for newline";if(Uq())return"shift + ⏎ for newline";return Iq()?"\\⏎ for newline":"backslash (\\) + return (⏎) for newline"}function mq(V,q){if(q.ctrl||q.meta||q.escape||q.return||q.tab||q.backspace||q.delete||q.upArrow||q.downArrow||q.leftArrow||q.rightArrow||q.pageUp||q.pageDown||q.home||q.end)return!1;return V.length>0&&!/^\s/.test(V)&&!V.startsWith("\x1B")}var Wq=Gq(()=>{fq();pq();_q()});function T(V){return V.replace(/\+/g," + ")}function DD(V){let q=Eq.c(99),{dimColor:D,fixedWidth:Aq,gap:x,paddingX:l}=V,m=Q("app:toggleTranscript","Global","ctrl+o"),p;if(q[0]!==m)p=T(m),q[0]=m,q[1]=p;else p=q[1];let e=p,d=Q("app:toggleTodos","Global","ctrl+t"),f;if(q[2]!==d)f=T(d),q[2]=d,q[3]=f;else f=q[3];let s=f,i=Q("chat:undo","Chat","ctrl+_"),B;if(q[4]!==i)B=T(i),q[4]=i,q[5]=B;else B=q[5];let r=B,$=Q("chat:stash","Chat","ctrl+s"),k;if(q[6]!==$)k=T($),q[6]=$,q[7]=k;else k=q[7];let o=k,t=Q("chat:cycleMode","Chat","shift+tab"),y;if(q[8]!==t)y=T(t),q[8]=t,q[9]=y;else y=q[9];let qq=y,Dq=Q("chat:modelPicker","Chat","alt+p"),j;if(q[10]!==Dq)j=T(Dq),q[10]=Dq,q[11]=j;else j=q[11];let Hq=j,Jq=Q("chat:fastMode","Chat","alt+o"),n;if(q[12]!==Jq)n=T(Jq),q[12]=Jq,q[13]=n;else n=q[13];let Lq=n,Oq=Q("chat:externalEditor","Chat","ctrl+g"),S;if(q[14]!==Oq)S=T(Oq),q[14]=Oq,q[15]=S;else S=q[15];let Qq=S,Tq=Q("app:toggleTerminal","Global","meta+j"),a;if(q[16]!==Tq)a=T(Tq),q[16]=Tq,q[17]=a;else a=q[17];let Fq=a,Vq=Q("chat:imagePaste","Chat","ctrl+v"),h;if(q[18]!==Vq)h=T(Vq),q[18]=Vq,q[19]=h;else h=q[19];let Yq=h,gq=T(Q("chat:increaseEffort","Chat","shift+right")),C;if(q[20]!==D||q[21]!==Fq)C=null,q[20]=D,q[21]=Fq,q[22]=C;else C=q[22];let Zq=C,wq=Aq?24:void 0,Y;if(q[23]!==D)Y=H(J,{children:H(L,{dimColor:D,children:"! for bash mode"})}),q[23]=D,q[24]=Y;else Y=q[24];let Z;if(q[25]!==D)Z=H(J,{children:H(L,{dimColor:D,children:"/ for commands"})}),q[25]=D,q[26]=Z;else Z=q[26];let w;if(q[27]!==D)w=H(J,{children:H(L,{dimColor:D,children:"@ for file paths"})}),q[27]=D,q[28]=w;else w=q[28];let z;if(q[29]!==D)z=H(J,{children:H(L,{dimColor:D,children:"& for background"})}),q[29]=D,q[30]=z;else z=q[30];let A;if(q[31]!==D)A=H(J,{children:H(L,{dimColor:D,children:"/btw for side question"})}),q[31]=D,q[32]=A;else A=q[32];let F;if(q[33]!==wq||q[34]!==Y||q[35]!==Z||q[36]!==w||q[37]!==z||q[38]!==A)F=O(J,{flexDirection:"column",width:wq,children:[Y,Z,w,z,A]}),q[33]=wq,q[34]=Y,q[35]=Z,q[36]=w,q[37]=z,q[38]=A,q[39]=F;else F=q[39];let zq=Aq?35:void 0,G;if(q[40]!==D)G=H(J,{children:H(L,{dimColor:D,children:"double tap esc to clear input"})}),q[40]=D,q[41]=G;else G=q[41];let N;if(q[42]!==qq||q[43]!==D)N=H(J,{children:O(L,{dimColor:D,children:[qq," ","to auto-accept edits"]})}),q[42]=qq,q[43]=D,q[44]=N;else N=q[44];let R;if(q[45]!==D||q[46]!==e)R=H(J,{children:O(L,{dimColor:D,children:[e," for verbose output"]})}),q[45]=D,q[46]=e,q[47]=R;else R=q[47];let U;if(q[48]!==D||q[49]!==s)U=H(J,{children:O(L,{dimColor:D,children:[s," to toggle tasks"]})}),q[48]=D,q[49]=s,q[50]=U;else U=q[50];let c;if(q[51]===Symbol.for("react.memo_cache_sentinel"))c=Kq(),q[51]=c;else c=q[51];let I;if(q[52]!==D)I=H(J,{children:H(L,{dimColor:D,children:c})}),q[52]=D,q[53]=I;else I=q[53];let K;if(q[54]!==zq||q[55]!==G||q[56]!==N||q[57]!==R||q[58]!==U||q[59]!==I||q[60]!==Zq)K=O(J,{flexDirection:"column",width:zq,children:[G,N,R,U,Zq,I]}),q[54]=zq,q[55]=G,q[56]=N,q[57]=R,q[58]=U,q[59]=I,q[60]=Zq,q[61]=K;else K=q[61];let W;if(q[62]!==D||q[63]!==r)W=H(J,{children:O(L,{dimColor:D,children:[r," to undo"]})}),q[62]=D,q[63]=r,q[64]=W;else W=q[64];let v;if(q[65]!==D)v=Xq()!=="windows"&&H(J,{children:H(L,{dimColor:D,children:"ctrl + z to suspend"})}),q[65]=D,q[66]=v;else v=q[66];let X;if(q[67]!==D||q[68]!==Yq)X=H(J,{children:O(L,{dimColor:D,children:[Yq," to paste images"]})}),q[67]=D,q[68]=Yq,q[69]=X;else X=q[69];let b;if(q[70]!==D||q[71]!==Hq)b=H(J,{children:O(L,{dimColor:D,children:[Hq," to switch model"]})}),q[70]=D,q[71]=Hq,q[72]=b;else b=q[72];let M;if(q[73]!==D||q[74]!==Lq)M=bq()&&Mq()&&H(J,{children:O(L,{dimColor:D,children:[Lq," to toggle fast mode"]})}),q[73]=D,q[74]=Lq,q[75]=M;else M=q[75];let P;if(q[76]!==D||q[77]!==o)P=H(J,{children:O(L,{dimColor:D,children:[o," to stash prompt"]})}),q[76]=D,q[77]=o,q[78]=P;else P=q[78];let E;if(q[79]!==D||q[80]!==Qq)E=H(J,{children:O(L,{dimColor:D,children:[Qq," to edit in $EDITOR"]})}),q[79]=D,q[80]=Qq,q[81]=E;else E=q[81];let g;if(q[82]!==D)g=Pq()&&H(J,{children:H(L,{dimColor:D,children:"/keybindings to customize"})}),q[82]=D,q[83]=g;else g=q[83];let _;if(q[84]!==W||q[85]!==v||q[86]!==X||q[87]!==b||q[88]!==M||q[89]!==P||q[90]!==E||q[91]!==g)_=O(J,{flexDirection:"column",children:[W,v,X,b,H(J,{children:O(L,{dimColor:D,children:[gq," to change effort"]})}),M,P,E,g]}),q[84]=W,q[85]=v,q[86]=X,q[87]=b,q[88]=M,q[89]=P,q[90]=E,q[91]=g,q[92]=_;else _=q[92];let u;if(q[93]!==x||q[94]!==l||q[95]!==F||q[96]!==K||q[97]!==_)u=O(J,{paddingX:l,flexDirection:"row",gap:x,children:[F,K,_]}),q[93]=x,q[94]=l,q[95]=F,q[96]=K,q[97]=_,q[98]=u;else u=q[98];return u}var Eq;var Cq=Gq(()=>{Sq();yq();hq();aq();kq();jq();Wq();vq();Eq=Bq(nq(),1)});
|
|
2
|
-
export{lq as fg,mq as gg,Wq as hg,DD as ig,Cq as jg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{m1 as v,o1 as D}from"./cli-0.6.5-8hsxq1p3.mjs";import{qpa as B}from"./cli-0.6.5-bm7v9qp0.mjs";D();var w,z;function N(g,q){w=g,z=q}async function O(g,q,F,G){let H=w??import("./App-0.6.5-syfacmqb.mjs"),J=z??import("./REPL-0.6.5-wqyg8nfv.mjs");w=void 0,z=void 0;let[{App:K},{REPL:M}]=await Promise.all([H,J]);await G(g,v(K,{...q,children:v(M,{...F})}))}
|
|
2
|
-
export{N as Sa,O as Ta};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{QE as h,SE as I,gn as g,hn as k}from"./cli-0.6.5-5t6d3asz.mjs";import{DY as s,gX as S,gZ as _}from"./cli-0.6.5-f71ncwzk.mjs";import{m1 as c,n1 as m,o1 as T}from"./cli-0.6.5-8hsxq1p3.mjs";import{Lba as b,hca as P}from"./cli-0.6.5-ef6b5qvc.mjs";import{lpa as D}from"./cli-0.6.5-bm7v9qp0.mjs";_();P();I();k();T();var v=D(S(),1);function E(C){let e=v.c(17),{customApiKeyTruncated:o,onDone:p}=C,r;if(e[0]!==o||e[1]!==p)r=function(R){e:switch(R){case"yes":{b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,approved:[...n.customApiKeyResponses?.approved??[],o]}})),p(!0);break e}case"no":b((n)=>({...n,customApiKeyResponses:{...n.customApiKeyResponses,rejected:[...n.customApiKeyResponses?.rejected??[],o]}})),p(!1)}},e[0]=o,e[1]=p,e[2]=r;else r=e[2];let t=r,l;if(e[3]!==t)l=()=>t("no"),e[3]=t,e[4]=l;else l=e[4];let f;if(e[5]===Symbol.for("react.memo_cache_sentinel"))f=c(s,{bold:!0,children:"ANTHROPIC_API_KEY"}),e[5]=f;else f=e[5];let i;if(e[6]!==o)i=m(s,{children:[f,m(s,{children:[": sk-ant-...",o]})]}),e[6]=o,e[7]=i;else i=e[7];let u;if(e[8]===Symbol.for("react.memo_cache_sentinel"))u=c(s,{children:"Do you want to use this API key?"}),e[8]=u;else u=e[8];let y;if(e[9]===Symbol.for("react.memo_cache_sentinel"))y={label:"Yes",value:"yes"},e[9]=y;else y=e[9];let d;if(e[10]===Symbol.for("react.memo_cache_sentinel"))d=[y,{label:m(s,{children:["No (",c(s,{bold:!0,children:"recommended"}),")"]}),value:"no"}],e[10]=d;else d=e[10];let a;if(e[11]!==t)a=c(h,{defaultValue:"no",defaultFocusValue:"no",options:d,onChange:(K)=>t(K),onCancel:()=>t("no")}),e[11]=t,e[12]=a;else a=e[12];let A;if(e[13]!==l||e[14]!==i||e[15]!==a)A=m(g,{title:"Detected a custom API key in your environment",color:"warning",onCancel:l,children:[i,u,a]}),e[13]=l,e[14]=i,e[15]=a,e[16]=A;else A=e[16];return A}
|
|
2
|
-
export{E as N};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ppa as s}from"./cli-0.6.5-bm7v9qp0.mjs";function c(){return"claude-code/99.0.0"}function i(){let e=process.env.CLAUDE_CODE_ENTRYPOINT??"cli",n=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",t=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claudin/0.6.5 (${e}${n}${t})`}var r=()=>{};
|
|
2
|
-
export{c as w1,i as x1,r as y1};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{FG as U,GG as w}from"./cli-0.6.5-5t6d3asz.mjs";import{BY as N,DY as O,gX as f,gZ as k}from"./cli-0.6.5-f71ncwzk.mjs";import{m1 as M,n1 as H,o1 as R}from"./cli-0.6.5-8hsxq1p3.mjs";import{lpa as Y,ppa as Z}from"./cli-0.6.5-bm7v9qp0.mjs";function _(X){let q=V.c(10),{message:I,bold:P,dimColor:Q,subtitle:D}=X,J=P===void 0?!1:P,K=Q===void 0?!1:Q,E;if(q[0]===Symbol.for("react.memo_cache_sentinel"))E=M(U,{}),q[0]=E;else E=q[0];let v;if(q[1]!==J||q[2]!==K||q[3]!==I)v=H(N,{flexDirection:"row",children:[E,H(O,{bold:J,dimColor:K,children:[" ",I]})]}),q[1]=J,q[2]=K,q[3]=I,q[4]=v;else v=q[4];let z;if(q[5]!==D)z=D&&M(O,{dimColor:!0,children:D}),q[5]=D,q[6]=z;else z=q[6];let G;if(q[7]!==v||q[8]!==z)G=H(N,{flexDirection:"column",children:[v,z]}),q[7]=v,q[8]=z,q[9]=G;else G=q[9];return G}var V;var A=Z(()=>{k();w();R();V=Y(f(),1)});
|
|
2
|
-
export{_ as mg,A as ng};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{kd as Z,ld as _,md as $,pd as O}from"./cli-0.6.5-xxtrec34.mjs";import{Gd as Y,Ld as x}from"./cli-0.6.5-yy3mtt7p.mjs";import{BJ as W,GJ as S,HJ as X,RJ as V,wJ as U}from"./cli-0.6.5-5t6d3asz.mjs";import{oha as R,rha as K}from"./cli-0.6.5-q4gh8d4w.mjs";import{Iha as Q,Pha as C}from"./cli-0.6.5-ce51qb6k.mjs";x();K();C();V();S();O();function b(G,J,L){let H=new Set(J.plugins.map((z)=>z.name)),A=`@${L}`,q=[];for(let z of Object.keys(G.plugins)){if(!z.endsWith(A))continue;let h=z.slice(0,-A.length);if(!H.has(h))q.push(z)}return q}async function F(){await Z();let G=X(),J=_(),L=await U(),H=[];for(let A of Object.keys(L))try{let q=await W(A);if(!q.forceRemoveDeletedPlugins)continue;let z=b(G,q,A);for(let h of z){if(h in J)continue;let T=G.plugins[h]??[];if(!T.some((B)=>B.scope==="user"||B.scope==="project"||B.scope==="local"))continue;for(let B of T){let{scope:E}=B;if(E!=="user"&&E!=="project"&&E!=="local")continue;try{await Y(h,E)}catch(v){R(`Failed to auto-uninstall delisted plugin ${h} from ${E}: ${Q(v)}`,{level:"error"})}}await $(h),H.push(h)}}catch(q){R(`Failed to check for delisted plugins in "${A}": ${Q(q)}`,{level:"warn"})}return H}
|
|
2
|
-
export{F as Ia};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ppa as C}from"./cli-0.6.5-bm7v9qp0.mjs";import E from"node:fs";import G from"node:path";import H from"node:os";function A(){if(q!==void 0)return;try{let b=process.env.CLAUDE_FEATURE_FLAGS_FILE||G.join(H.homedir(),".claudin","feature-flags.json"),j=JSON.parse(E.readFileSync(b,"utf-8"));q=j&&typeof j==="object"&&!Array.isArray(j)?j:null}catch{q=null}}function x(b,j){if(A(),q!=null&&Object.hasOwn(q,b))return q[b];if(Object.hasOwn(z,b))return z[b];return j}function O(){return I}function Q(){return!1}function R(){return A(),q||{}}function S(){return{}}function T(){}function U(){}function W(){return}async function Y(b,j){return x(b,j)}function Z(b,j){return x(b,j)}function $(b,j){return x(b,j)}function v(b){return Boolean(x(b,!1))}async function w(b){return!1}async function P(b){return Boolean(x(b,!1))}function B(){}function D(){q=void 0}async function h(){q=void 0}function N(){}function m(){}async function c(b,j){return x(b,j)}function F(b,j){return x(b,j)}var q=void 0,z,I=()=>{},X=async()=>null;var J=C(()=>{z={tengu_sedge_lantern:!0,tengu_passport_quail:!0,tengu_coral_fern:!0,tengu_bramble_lintel:15,tengu_glacier_2xr:!0}});
|
|
2
|
-
export{O as Eea,Q as Fea,R as Gea,S as Hea,T as Iea,U as Jea,W as Kea,X as Lea,Y as Mea,Z as Nea,$ as Oea,v as Pea,w as Qea,P as Rea,B as Sea,D as Tea,h as Uea,N as Vea,m as Wea,c as Xea,F as Yea,J as Zea};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ppa as K}from"./cli-0.6.5-bm7v9qp0.mjs";function C(f){return(j)=>{if(j.code==="EPIPE")f.destroy()}}function M(){process.stdout.on("error",C(process.stdout)),process.stderr.on("error",C(process.stderr))}function G(f,j){if(f.destroyed)return;f.write(j)}function N(f){G(process.stdout,f)}function Q(f){G(process.stderr,f)}function R(f){console.error(f),process.exit(1)}function S(f,j){return new Promise((H)=>{let q=(J)=>{clearTimeout(B),f.off("end",z),f.off("data",A),H(J)},z=()=>q(!1),A=()=>clearTimeout(B),B=setTimeout(q,j,!0);f.once("end",z),f.once("data",A)})}var L=()=>{};
|
|
2
|
-
export{M as sha,N as tha,Q as uha,R as vha,S as wha,L as xha};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Wc as K,Xc as Y}from"./cli-0.6.5-ef17hb7w.mjs";import{Gk as G,Hk as B,KK as J,Lk as U,Mk as V,Mo as H,No as W,SK as X}from"./cli-0.6.5-5t6d3asz.mjs";import{mpa as q,ppa as v}from"./cli-0.6.5-bm7v9qp0.mjs";function P(h){return x.some((g)=>h.endsWith(g))}function C(h){return h.filter((g)=>G.has(g.name)||P(g.name))}function A(h,g,E){let[Q,Z]=K(H([...h,...g],"name"),J),k=($,j)=>$.name.localeCompare(j.name),w=[...Z.sort(k),...Q.sort(k)];if(z){if(z.isCoordinatorMode())return C(w)}return w}var x,z;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];z=(V(),q(U))});
|
|
2
|
-
export{P as Sc,C as Tc,A as Uc,D as Vc};
|