@claudiolabs/claudin 1.1.27 → 1.1.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.1.28-hdgcephe.mjs +1 -0
- package/dist/chunks/App-1.1.28-rdhr58j6.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.28-dn460p70.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.28-k16de89c.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.28-19td2te8.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.28-011pgh7b.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.28-ych5693j.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.28-7p5bx0b5.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.28-nkct57y5.mjs +6 -0
- package/dist/chunks/Doctor-1.1.28-xerfvzx5.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.28-ne9ftnxx.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.28-07enf929.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.28-mcsd53vd.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.28-rmrgfzbv.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.28-w5mh2w2b.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.28-7q9nc8c9.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.28-08ytr6ma.mjs +1 -0
- package/dist/chunks/REPL-1.1.28-pxy1ag0k.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.28-b2pk1nan.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.28-xa772x92.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.28-6x6ca6kq.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.28-vy7p3j3e.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.28-egnv67by.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.28-y1ss2e0h.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.28-7w099741.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.28-49aey2f6.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.28-gw9e23bc.mjs +1 -0
- package/dist/chunks/add-dir-1.1.28-5j989gf2.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.28-hxk0wpj5.mjs +1 -0
- package/dist/chunks/agents-1.1.28-3yth9sa4.mjs +110 -0
- package/dist/chunks/agents-1.1.28-4qdh001q.mjs +3 -0
- package/dist/chunks/api-1.1.28-znpy0eyy.mjs +1 -0
- package/dist/chunks/asciicast-1.1.28-r6dsend4.mjs +1 -0
- package/dist/chunks/assistant-1.1.28-16hn1f6b.mjs +1 -0
- package/dist/chunks/auth-1.1.28-bw7dane8.mjs +1 -0
- package/dist/chunks/auth-1.1.28-ht6j3ag3.mjs +1 -0
- package/dist/chunks/autoMode-1.1.28-nyaf1s0s.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.28-sjjeha2m.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.28-070wmr6y.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.28-y5mjznxx.mjs +1 -0
- package/dist/chunks/branch-1.1.28-5d97ysjr.mjs +4 -0
- package/dist/chunks/bridge-1.1.28-62qv0wgq.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.28-m986jcxg.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.28-0fs5tkxx.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.28-pyr5gvmx.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.28-wpzz2yca.mjs +1 -0
- package/dist/chunks/btw-1.1.28-p1tk901s.mjs +1 -0
- package/dist/chunks/buddy-1.1.28-thrnzpdp.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.28-bb4xsnev.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.28-9p9fmxas.mjs +4 -0
- package/dist/chunks/caches-1.1.28-t6dq2xtp.mjs +1 -0
- package/dist/chunks/cd-1.1.28-84z1kqam.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.28-3x0y2w87.mjs +1 -0
- package/dist/chunks/claudemd-1.1.28-skmb6ar5.mjs +1 -0
- package/dist/chunks/clear-1.1.28-78f1rnc5.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.28-sx5qqtxb.mjs +1 -0
- package/dist/chunks/cli-1.1.28-01g60h7m.mjs +2 -0
- package/dist/chunks/cli-1.1.28-040xb4f8.mjs +2 -0
- package/dist/chunks/cli-1.1.28-0c0kb6x2.mjs +24 -0
- package/dist/chunks/cli-1.1.28-0njtm2nf.mjs +60 -0
- package/dist/chunks/cli-1.1.28-0vgve5rw.mjs +24 -0
- package/dist/chunks/cli-1.1.28-12g8qyfk.mjs +58 -0
- package/dist/chunks/cli-1.1.28-130w2y17.mjs +50 -0
- package/dist/chunks/cli-1.1.28-13j6r7pz.mjs +2 -0
- package/dist/chunks/cli-1.1.28-14abe08r.mjs +4 -0
- package/dist/chunks/cli-1.1.28-1jd8x2af.mjs +2 -0
- package/dist/chunks/cli-1.1.28-1mscaejt.mjs +2 -0
- package/dist/chunks/cli-1.1.28-1q409efb.mjs +2 -0
- package/dist/chunks/cli-1.1.28-1rrn1mhr.mjs +2 -0
- package/dist/chunks/cli-1.1.28-1vrff9a3.mjs +5 -0
- package/dist/chunks/cli-1.1.28-2arzkhzs.mjs +2 -0
- package/dist/chunks/cli-1.1.28-2dafhgjv.mjs +34 -0
- package/dist/chunks/cli-1.1.28-2esp2ssp.mjs +6 -0
- package/dist/chunks/cli-1.1.28-2q7dztmb.mjs +2 -0
- package/dist/chunks/cli-1.1.28-2wem9fnx.mjs +2 -0
- package/dist/chunks/cli-1.1.28-2ykcw73j.mjs +2 -0
- package/dist/chunks/cli-1.1.28-2zhmwh7t.mjs +2 -0
- package/dist/chunks/cli-1.1.28-30yw5q4z.mjs +4 -0
- package/dist/chunks/cli-1.1.28-347ygvzg.mjs +6 -0
- package/dist/chunks/cli-1.1.28-36891pwy.mjs +2 -0
- package/dist/chunks/cli-1.1.28-36y6830c.mjs +2 -0
- package/dist/chunks/cli-1.1.28-37rkgevh.mjs +2 -0
- package/dist/chunks/cli-1.1.28-3bj091x6.mjs +2 -0
- package/dist/chunks/cli-1.1.28-3fssr567.mjs +2 -0
- package/dist/chunks/cli-1.1.28-3p6j7k4a.mjs +2 -0
- package/dist/chunks/cli-1.1.28-4kda7s33.mjs +2 -0
- package/dist/chunks/cli-1.1.28-4kxqqtpz.mjs +2 -0
- package/dist/chunks/cli-1.1.28-4mpm44jj.mjs +9 -0
- package/dist/chunks/cli-1.1.28-4qh42y9g.mjs +2 -0
- package/dist/chunks/cli-1.1.28-4sx3zr2c.mjs +3 -0
- package/dist/chunks/cli-1.1.28-58rs1ja0.mjs +2 -0
- package/dist/chunks/cli-1.1.28-5edzsdcr.mjs +6 -0
- package/dist/chunks/cli-1.1.28-5y1xeh89.mjs +206 -0
- package/dist/chunks/cli-1.1.28-638dshxx.mjs +42 -0
- package/dist/chunks/cli-1.1.28-6bc84c0n.mjs +2 -0
- package/dist/chunks/cli-1.1.28-6x9c71q9.mjs +2 -0
- package/dist/chunks/cli-1.1.28-6y7vtevf.mjs +17 -0
- package/dist/chunks/cli-1.1.28-75thpvfa.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7amn29ks.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7e3nqd5c.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7fz4fqgd.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7g65bppm.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7nye6zs7.mjs +4 -0
- package/dist/chunks/cli-1.1.28-7pmtq82j.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7vvtkeeh.mjs +25 -0
- package/dist/chunks/cli-1.1.28-7x94aewp.mjs +2 -0
- package/dist/chunks/cli-1.1.28-7zpfvkxq.mjs +2 -0
- package/dist/chunks/cli-1.1.28-81p0zmxc.mjs +2 -0
- package/dist/chunks/cli-1.1.28-83k0knzj.mjs +2 -0
- package/dist/chunks/cli-1.1.28-8ahmbnjh.mjs +2 -0
- package/dist/chunks/cli-1.1.28-8avwqt1z.mjs +4 -0
- package/dist/chunks/cli-1.1.28-8jrfznkw.mjs +2 -0
- package/dist/chunks/cli-1.1.28-8v2vx373.mjs +2 -0
- package/dist/chunks/cli-1.1.28-943993zt.mjs +2 -0
- package/dist/chunks/cli-1.1.28-94sk1z8g.mjs +5 -0
- package/dist/chunks/cli-1.1.28-95fs05hq.mjs +2 -0
- package/dist/chunks/cli-1.1.28-9e74kqtd.mjs +2 -0
- package/dist/chunks/cli-1.1.28-9s4pee5a.mjs +2 -0
- package/dist/chunks/cli-1.1.28-a00k75hj.mjs +2 -0
- package/dist/chunks/cli-1.1.28-a79xcdg3.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ad15rvp0.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ak2bzv1v.mjs +16 -0
- package/dist/chunks/cli-1.1.28-atrbc4s7.mjs +2 -0
- package/dist/chunks/cli-1.1.28-avxe0zxq.mjs +15 -0
- package/dist/chunks/cli-1.1.28-b2jq83aj.mjs +15 -0
- package/dist/chunks/cli-1.1.28-be8cxh1e.mjs +2 -0
- package/dist/chunks/cli-1.1.28-bfs5hmfp.mjs +3 -0
- package/dist/chunks/cli-1.1.28-bqtpnyqr.mjs +2 -0
- package/dist/chunks/cli-1.1.28-brh6rw23.mjs +2 -0
- package/dist/chunks/cli-1.1.28-bsqgt8m4.mjs +2 -0
- package/dist/chunks/cli-1.1.28-bwbz3v3j.mjs +2 -0
- package/dist/chunks/cli-1.1.28-bwgr7j8z.mjs +2 -0
- package/dist/chunks/cli-1.1.28-by5acg3a.mjs +2 -0
- package/dist/chunks/cli-1.1.28-c9nh8cpr.mjs +2 -0
- package/dist/chunks/cli-1.1.28-cb5wemmj.mjs +7 -0
- package/dist/chunks/cli-1.1.28-cfq2wwx5.mjs +2 -0
- package/dist/chunks/cli-1.1.28-cyrrpdkd.mjs +2 -0
- package/dist/chunks/cli-1.1.28-d5h3kve6.mjs +24 -0
- package/dist/chunks/cli-1.1.28-davs3ve8.mjs +58 -0
- package/dist/chunks/cli-1.1.28-denmqz0s.mjs +2 -0
- package/dist/chunks/cli-1.1.28-dqsxqszf.mjs +2 -0
- package/dist/chunks/cli-1.1.28-dy3tnnyd.mjs +3 -0
- package/dist/chunks/cli-1.1.28-e2mfhtpx.mjs +2 -0
- package/dist/chunks/cli-1.1.28-egskcwa5.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ek683x01.mjs +2 -0
- package/dist/chunks/cli-1.1.28-epzkhgww.mjs +2 -0
- package/dist/chunks/cli-1.1.28-erqn7gwg.mjs +6 -0
- package/dist/chunks/cli-1.1.28-es8var4t.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ev0gfjgf.mjs +24 -0
- package/dist/chunks/cli-1.1.28-evvcbjb6.mjs +2 -0
- package/dist/chunks/cli-1.1.28-f0vrbk1t.mjs +2 -0
- package/dist/chunks/cli-1.1.28-f1n8p9v2.mjs +12 -0
- package/dist/chunks/cli-1.1.28-f3rdt4zg.mjs +2 -0
- package/dist/chunks/cli-1.1.28-f8av9yzr.mjs +39 -0
- package/dist/chunks/cli-1.1.28-fetsedc8.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ffy07rnm.mjs +2 -0
- package/dist/chunks/cli-1.1.28-fjbefwwe.mjs +2 -0
- package/dist/chunks/cli-1.1.28-fnd6z5bq.mjs +2 -0
- package/dist/chunks/cli-1.1.28-fv1twt9b.mjs +8 -0
- package/dist/chunks/cli-1.1.28-h00s5n5y.mjs +2 -0
- package/dist/chunks/cli-1.1.28-h7p3dmnv.mjs +2 -0
- package/dist/chunks/cli-1.1.28-hb02sa63.mjs +2 -0
- package/dist/chunks/cli-1.1.28-hkfays5k.mjs +2 -0
- package/dist/chunks/cli-1.1.28-hx5j3q23.mjs +17 -0
- package/dist/chunks/cli-1.1.28-hxbkncxe.mjs +2 -0
- package/dist/chunks/cli-1.1.28-hyd7kkyr.mjs +2 -0
- package/dist/chunks/cli-1.1.28-j5m0kc75.mjs +3 -0
- package/dist/chunks/cli-1.1.28-j6nysca9.mjs +2 -0
- package/dist/chunks/cli-1.1.28-jqnzq23v.mjs +3 -0
- package/dist/chunks/cli-1.1.28-jr3jtfkf.mjs +2 -0
- package/dist/chunks/cli-1.1.28-jwg70mjs.mjs +2 -0
- package/dist/chunks/cli-1.1.28-k0ewezmj.mjs +20 -0
- package/dist/chunks/cli-1.1.28-k10f3f7z.mjs +3 -0
- package/dist/chunks/cli-1.1.28-k7pnt9ba.mjs +2 -0
- package/dist/chunks/cli-1.1.28-kaddwxsy.mjs +2 -0
- package/dist/chunks/cli-1.1.28-kc8f0nz7.mjs +3 -0
- package/dist/chunks/cli-1.1.28-khcgtk4a.mjs +2 -0
- package/dist/chunks/cli-1.1.28-knfg26kb.mjs +2 -0
- package/dist/chunks/cli-1.1.28-m6k4d2wx.mjs +2 -0
- package/dist/chunks/cli-1.1.28-mdexghj2.mjs +2 -0
- package/dist/chunks/cli-1.1.28-mk8zwqb2.mjs +4 -0
- package/dist/chunks/cli-1.1.28-mkm05wf9.mjs +2 -0
- package/dist/chunks/cli-1.1.28-mpjz8znf.mjs +3 -0
- package/dist/chunks/cli-1.1.28-mqmy0gy0.mjs +2 -0
- package/dist/chunks/cli-1.1.28-mvkxhjmj.mjs +2 -0
- package/dist/chunks/cli-1.1.28-mx413hqd.mjs +3 -0
- package/dist/chunks/cli-1.1.28-n2jx5w3n.mjs +2 -0
- package/dist/chunks/cli-1.1.28-n7v87yyn.mjs +2 -0
- package/dist/chunks/cli-1.1.28-n8d1x31e.mjs +2 -0
- package/dist/chunks/cli-1.1.28-neqd5cwa.mjs +2 -0
- package/dist/chunks/cli-1.1.28-nq2qxnzx.mjs +10 -0
- package/dist/chunks/cli-1.1.28-nqjbqqb6.mjs +4 -0
- package/dist/chunks/cli-1.1.28-nyvjfkx6.mjs +2 -0
- package/dist/chunks/cli-1.1.28-p11zcjmv.mjs +2 -0
- package/dist/chunks/cli-1.1.28-pabfwpqr.mjs +2 -0
- package/dist/chunks/cli-1.1.28-pdxwmetp.mjs +25 -0
- package/dist/chunks/cli-1.1.28-pfnc9p9n.mjs +2 -0
- package/dist/chunks/cli-1.1.28-prd0t983.mjs +9 -0
- package/dist/chunks/cli-1.1.28-pykx8k1j.mjs +4 -0
- package/dist/chunks/cli-1.1.28-q14qmewe.mjs +2 -0
- package/dist/chunks/cli-1.1.28-q43r6snq.mjs +2 -0
- package/dist/chunks/cli-1.1.28-q6dv65zx.mjs +2 -0
- package/dist/chunks/cli-1.1.28-qb921m5a.mjs +3 -0
- package/dist/chunks/cli-1.1.28-qf1qq8t0.mjs +3 -0
- package/dist/chunks/cli-1.1.28-qhqkr80z.mjs +45 -0
- package/dist/chunks/cli-1.1.28-qj312jgw.mjs +2 -0
- package/dist/chunks/cli-1.1.28-qjn28vhw.mjs +2 -0
- package/dist/chunks/cli-1.1.28-qrx5ata3.mjs +2 -0
- package/dist/chunks/cli-1.1.28-qvpamm5s.mjs +4 -0
- package/dist/chunks/cli-1.1.28-qvr8rkg2.mjs +2 -0
- package/dist/chunks/cli-1.1.28-qzg6n6hj.mjs +2 -0
- package/dist/chunks/cli-1.1.28-r81y1681.mjs +3 -0
- package/dist/chunks/cli-1.1.28-rbjeq16x.mjs +2 -0
- package/dist/chunks/cli-1.1.28-rbne7wtq.mjs +4 -0
- package/dist/chunks/cli-1.1.28-rez81jab.mjs +6 -0
- package/dist/chunks/cli-1.1.28-rq49kn4q.mjs +2 -0
- package/dist/chunks/cli-1.1.28-rt0aect8.mjs +2 -0
- package/dist/chunks/cli-1.1.28-rwfwz209.mjs +2 -0
- package/dist/chunks/cli-1.1.28-s1pbcd86.mjs +3 -0
- package/dist/chunks/cli-1.1.28-s2pcpdyc.mjs +2 -0
- package/dist/chunks/cli-1.1.28-s6w8jb6z.mjs +2 -0
- package/dist/chunks/cli-1.1.28-smb1frk6.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ss8nzmnb.mjs +12 -0
- package/dist/chunks/cli-1.1.28-sx3mmc5d.mjs +2 -0
- package/dist/chunks/cli-1.1.28-sz8sgxj4.mjs +2 -0
- package/dist/chunks/cli-1.1.28-t5yawarz.mjs +2 -0
- package/dist/chunks/cli-1.1.28-tt0c354s.mjs +2 -0
- package/dist/chunks/cli-1.1.28-v1p12e3g.mjs +2 -0
- package/dist/chunks/cli-1.1.28-v5r7bmzh.mjs +2 -0
- package/dist/chunks/cli-1.1.28-v5ypq0r2.mjs +2 -0
- package/dist/chunks/cli-1.1.28-v6ewa1y0.mjs +2 -0
- package/dist/chunks/cli-1.1.28-vctvnrwx.mjs +133 -0
- package/dist/chunks/cli-1.1.28-vf3j29kt.mjs +2 -0
- package/dist/chunks/cli-1.1.28-vgfss8e4.mjs +2 -0
- package/dist/chunks/cli-1.1.28-vje1ac31.mjs +7 -0
- package/dist/chunks/cli-1.1.28-vphadsag.mjs +2 -0
- package/dist/chunks/cli-1.1.28-vyzp74xh.mjs +3 -0
- package/dist/chunks/cli-1.1.28-w0kxa99b.mjs +2 -0
- package/dist/chunks/cli-1.1.28-w6cd3j36.mjs +20 -0
- package/dist/chunks/cli-1.1.28-wew8jymx.mjs +2 -0
- package/dist/chunks/cli-1.1.28-wmyy1pdj.mjs +2 -0
- package/dist/chunks/cli-1.1.28-wvj52k91.mjs +2 -0
- package/dist/chunks/cli-1.1.28-wze93r29.mjs +2 -0
- package/dist/chunks/cli-1.1.28-x04zkwy5.mjs +18 -0
- package/dist/chunks/cli-1.1.28-x0ypcq4e.mjs +2 -0
- package/dist/chunks/cli-1.1.28-x13sctb2.mjs +2 -0
- package/dist/chunks/cli-1.1.28-xv2tg10n.mjs +2 -0
- package/dist/chunks/cli-1.1.28-y173v5ak.mjs +133 -0
- package/dist/chunks/cli-1.1.28-y4k1f7he.mjs +2 -0
- package/dist/chunks/cli-1.1.28-y5w3ev7m.mjs +2 -0
- package/dist/chunks/cli-1.1.28-yaa1gft3.mjs +15 -0
- package/dist/chunks/cli-1.1.28-ypzyse5q.mjs +2 -0
- package/dist/chunks/cli-1.1.28-yv5gzenz.mjs +2 -0
- package/dist/chunks/cli-1.1.28-yyk292aq.mjs +6 -0
- package/dist/chunks/cli-1.1.28-z4kzjv3v.mjs +21 -0
- package/dist/chunks/cli-1.1.28-z5mbbt38.mjs +2 -0
- package/dist/chunks/cli-1.1.28-zarbrcn7.mjs +2 -0
- package/dist/chunks/cli-1.1.28-ze1j03ww.mjs +1 -0
- package/dist/chunks/cli-1.1.28-zhftjycn.mjs +5553 -0
- package/dist/chunks/cli-1.1.28-zqpvgqxf.mjs +2 -0
- package/dist/chunks/cli-1.1.28-zv9zfwz9.mjs +2 -0
- package/dist/chunks/client-1.1.28-59t63af8.mjs +1 -0
- package/dist/chunks/color-1.1.28-gmbrq89g.mjs +1 -0
- package/dist/chunks/compact-1.1.28-14hmkmd6.mjs +3 -0
- package/dist/chunks/config-1.1.28-b69ey9g1.mjs +1 -0
- package/dist/chunks/config-1.1.28-cryax439.mjs +1 -0
- package/dist/chunks/constants-1.1.28-63cv4s6z.mjs +1 -0
- package/dist/chunks/context-1.1.28-09kfp2sa.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.28-h9279pbh.mjs +1 -0
- package/dist/chunks/conversation-1.1.28-qnj7ywxq.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.28-yjrmx9z1.mjs +1 -0
- package/dist/chunks/copy-1.1.28-az1n9y3n.mjs +9 -0
- package/dist/chunks/cost-1.1.28-507xt42s.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.28-m9ecjhc1.mjs +1 -0
- package/dist/chunks/createSession-1.1.28-gbrmw9ad.mjs +1 -0
- package/dist/chunks/debug-1.1.28-k9m06yz6.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.28-4sxh2jyw.mjs +1534 -0
- package/dist/chunks/desktop-1.1.28-ycc1hv5c.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.28-mxrqqjv6.mjs +1 -0
- package/dist/chunks/detection-1.1.28-06p2mev8.mjs +1 -0
- package/dist/chunks/diff-1.1.28-d9a2n60t.mjs +1 -0
- package/dist/chunks/doctor-1.1.28-qef12k2p.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.28-v5rq4x27.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.28-xr89w719.mjs +1 -0
- package/dist/chunks/effort-1.1.28-yjbwr68r.mjs +13 -0
- package/dist/chunks/engine-1.1.28-yv6qdcgp.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.28-tpjzc2ar.mjs +1 -0
- package/dist/chunks/envUtils-1.1.28-n17cxj8h.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.28-c7vj172q.mjs +1 -0
- package/dist/chunks/environments-1.1.28-08b7gpg6.mjs +1 -0
- package/dist/chunks/errors-1.1.28-eysc80qa.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.28-gk1ma509.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.28-4nc53n56.mjs +1 -0
- package/dist/chunks/exit-1.1.28-7rjnfzc2.mjs +1 -0
- package/dist/chunks/explorer-1.1.28-hf7jvkfg.mjs +1 -0
- package/dist/chunks/export-1.1.28-3xgdy7gr.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.28-6wkgsscs.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.28-03hnqa8n.mjs +1 -0
- package/dist/chunks/fast-1.1.28-gf0rb9by.mjs +1 -0
- package/dist/chunks/feedback-1.1.28-dvdyq5v7.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.28-rd6eskzg.mjs +1 -0
- package/dist/chunks/git-1.1.28-ktf61jaz.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.28-re8t0b2z.mjs +1 -0
- package/dist/chunks/goal-1.1.28-s7n55rqn.mjs +4 -0
- package/dist/chunks/growthbook-1.1.28-jcs0qzz8.mjs +1 -0
- package/dist/chunks/headless-1.1.28-yzfk04g2.mjs +2 -0
- package/dist/chunks/heapdump-1.1.28-hgfac8pe.mjs +6 -0
- package/dist/chunks/help-1.1.28-yhrv28x1.mjs +1 -0
- package/dist/chunks/hookChains-1.1.28-9y5pz734.mjs +3 -0
- package/dist/chunks/hooks-1.1.28-pwy1h39c.mjs +79 -0
- package/dist/chunks/hooks-1.1.28-xhtrbwa5.mjs +1 -0
- package/dist/chunks/ide-1.1.28-27vb56tk.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.28-b092deny.mjs +1 -0
- package/dist/chunks/import-1.1.28-bqs6ebec.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.28-0jb4nc2j.mjs +1 -0
- package/dist/chunks/index-1.1.28-0p3tfhd7.mjs +23 -0
- package/dist/chunks/index-1.1.28-30ges9rx.mjs +1 -0
- package/dist/chunks/index-1.1.28-3kg2kmpd.mjs +1 -0
- package/dist/chunks/index-1.1.28-76ztpb54.mjs +1 -0
- package/dist/chunks/index-1.1.28-a6fzpa8n.mjs +1 -0
- package/dist/chunks/index-1.1.28-ac1sbem8.mjs +9 -0
- package/dist/chunks/index-1.1.28-axnrgqkq.mjs +1 -0
- package/dist/chunks/index-1.1.28-b5b1qact.mjs +1 -0
- package/dist/chunks/index-1.1.28-bqm5cnw1.mjs +1 -0
- package/dist/chunks/index-1.1.28-bt937784.mjs +1 -0
- package/dist/chunks/index-1.1.28-bxtzy977.mjs +2 -0
- package/dist/chunks/index-1.1.28-dgnx1m4x.mjs +9 -0
- package/dist/chunks/index-1.1.28-dtfxav1q.mjs +1 -0
- package/dist/chunks/index-1.1.28-gk3v69b8.mjs +1 -0
- package/dist/chunks/index-1.1.28-m2nnkj3d.mjs +1 -0
- package/dist/chunks/index-1.1.28-qk8rhq5n.mjs +1 -0
- package/dist/chunks/index-1.1.28-vgc6r0g0.mjs +1 -0
- package/dist/chunks/index-1.1.28-w2a4k4md.mjs +2 -0
- package/dist/chunks/index-1.1.28-wajajmmp.mjs +1 -0
- package/dist/chunks/index-1.1.28-xaw4tf13.mjs +30 -0
- package/dist/chunks/index-1.1.28-y7jd8m9f.mjs +1 -0
- package/dist/chunks/index-1.1.28-ymg3kz4x.mjs +5 -0
- package/dist/chunks/index-1.1.28-z85wbmey.mjs +1 -0
- package/dist/chunks/init-1.1.28-vt168swt.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.28-vtkc85kf.mjs +1 -0
- package/dist/chunks/ink-1.1.28-8bcvzs97.mjs +1 -0
- package/dist/chunks/insights-1.1.28-hcccjwbm.mjs +870 -0
- package/dist/chunks/install-1.1.28-azeaj14w.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.28-jr58yj7c.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.28-ca73e004.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.28-v5fj6zfn.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.28-k8pjx51r.mjs +1 -0
- package/dist/chunks/keybindings-1.1.28-szefym9t.mjs +2 -0
- package/dist/chunks/knowledge-1.1.28-twc2bf6q.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.28-swqk1ppm.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.28-gvzkk593.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.28-j5fvzh5b.mjs +1 -0
- package/dist/chunks/log-1.1.28-744tvnnz.mjs +1 -0
- package/dist/chunks/main-1.1.28-ngd4qj24.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.28-v3t5y08t.mjs +1 -0
- package/dist/chunks/mcp-1.1.28-bjtwbjwv.mjs +17 -0
- package/dist/chunks/mcp-1.1.28-k0p4t3rs.mjs +1 -0
- package/dist/chunks/mcp-1.1.28-pxxge6kd.mjs +4 -0
- package/dist/chunks/mcpb-1.1.28-rjvsf8d4.mjs +1 -0
- package/dist/chunks/memory-1.1.28-437zyh3m.mjs +77 -0
- package/dist/chunks/model-1.1.28-1weg50dg.mjs +2 -0
- package/dist/chunks/model-1.1.28-qbnnaa17.mjs +1 -0
- package/dist/chunks/node-1.1.28-f9q7m0bb.mjs +15 -0
- package/dist/chunks/node-1.1.28-q18jbvyv.mjs +1 -0
- package/dist/chunks/oauth-1.1.28-nv1bmgrh.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.28-qt0bgn0p.mjs +14 -0
- package/dist/chunks/output-style-1.1.28-xpmnvzvz.mjs +1 -0
- package/dist/chunks/package-OS7RONXY-1.1.28-s8fma63p.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.28-9e7g8r3q.mjs +1 -0
- package/dist/chunks/parser-1.1.28-hahczgmc.mjs +1 -0
- package/dist/chunks/passes-1.1.28-73vxd2mh.mjs +1 -0
- package/dist/chunks/permissions-1.1.28-4dzfyh6m.mjs +1 -0
- package/dist/chunks/permissions-1.1.28-mh27xg9k.mjs +3 -0
- package/dist/chunks/plan-1.1.28-awnhzrk0.mjs +1 -0
- package/dist/chunks/plist-1.1.28-yf5fjx19.mjs +1 -0
- package/dist/chunks/plugin-1.1.28-m9j8cnkz.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.28-w4yvsmat.mjs +1 -0
- package/dist/chunks/plugins-1.1.28-rgr19gwa.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.28-bq157gz5.mjs +2 -0
- package/dist/chunks/print-1.1.28-g8smjzce.mjs +57 -0
- package/dist/chunks/process-1.1.28-tk5w2b0a.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.28-0a601ws2.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.28-2mq2y7nd.mjs +9 -0
- package/dist/chunks/prompt-1.1.28-tj8v37yx.mjs +1 -0
- package/dist/chunks/prompt-1.1.28-x4mxe7n2.mjs +1 -0
- package/dist/chunks/prompts-1.1.28-z2rx5cb6.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.28-cvce24s6.mjs +13 -0
- package/dist/chunks/provider-1.1.28-wd0k9dj9.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.28-ansdm0bp.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.28-xkpar3nj.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.28-kv8762wq.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.28-464hjqs0.mjs +26 -0
- package/dist/chunks/registry-1.1.28-a9wz892f.mjs +1 -0
- package/dist/chunks/release-notes-1.1.28-3dsn738r.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.28-8kfgxbx6.mjs +2 -0
- package/dist/chunks/remote-env-1.1.28-x46beyd7.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.28-1pr9890h.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.28-0dbsb9gr.mjs +1 -0
- package/dist/chunks/rename-1.1.28-m7z3qe6s.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.28-h8cn3e2b.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.28-dc94xnm0.mjs +1 -0
- package/dist/chunks/resume-1.1.28-mr6necqk.mjs +2 -0
- package/dist/chunks/rewind-1.1.28-dk5z09nd.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.28-g6c2bc4a.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.28-2r5z099n.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.28-9gkyj8zg.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.28-mvyww40e.mjs +1 -0
- package/dist/chunks/session-1.1.28-8xwfxnzq.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.28-6twnc7gm.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.28-w6yt6st1.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.28-rfvff5qy.mjs +1 -0
- package/dist/chunks/settings-1.1.28-b3wrgfej.mjs +1 -0
- package/dist/chunks/setup-1.1.28-6vt58sg8.mjs +12 -0
- package/dist/chunks/sinks-1.1.28-rdvsx829.mjs +1 -0
- package/dist/chunks/skills-1.1.28-b53h2c2v.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.28-mk4vmdef.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.28-0p8x3xh5.mjs +1 -0
- package/dist/chunks/state-1.1.28-fd27gqw0.mjs +1 -0
- package/dist/chunks/stats-1.1.28-fmezsyc4.mjs +1 -0
- package/dist/chunks/status-1.1.28-67a4bkc3.mjs +1 -0
- package/dist/chunks/stickers-1.1.28-0g68m8nd.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.28-548a2kyv.mjs +1 -0
- package/dist/chunks/tasks-1.1.28-h3xfz4f4.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.28-4twfmqhf.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.28-7p6f8wg0.mjs +1 -0
- package/dist/chunks/teleport-1.1.28-zdrc7v25.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.28-fbkk7v65.mjs +1 -0
- package/dist/chunks/theme-1.1.28-tj36fh0f.mjs +1 -0
- package/dist/chunks/thinkback-1.1.28-x1bq9k3h.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.28-3jdfk2q7.mjs +1 -0
- package/dist/chunks/toolPool-1.1.28-fpt8xrnv.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.28-mvqt18a8.mjs +1 -0
- package/dist/chunks/tools-1.1.28-a9t3fc6d.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.28-9e0gqehg.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.28-dhs0afg7.mjs +69 -0
- package/dist/chunks/types-1.1.28-51fcbp8c.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.28-d4ca5c58.mjs +4 -0
- package/dist/chunks/update-1.1.28-t9v2gpbh.mjs +72 -0
- package/dist/chunks/upgrade-1.1.28-12174ed0.mjs +1 -0
- package/dist/chunks/upload-1.1.28-whe18m8m.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.28-bnjrek99.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.28-0gh9dbnj.mjs +1 -0
- package/dist/chunks/usage-1.1.28-6m1bv4x5.mjs +1 -0
- package/dist/chunks/util-1.1.28-cvpx898d.mjs +1 -0
- package/dist/chunks/utils-1.1.28-ztac8cf7.mjs +1 -0
- package/dist/chunks/vim-1.1.28-rrv9qbr2.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.28-rtznty0c.mjs +13 -0
- package/dist/chunks/watcher-1.1.28-7v4bd9pm.mjs +1 -0
- package/dist/chunks/wiki-1.1.28-m0y2n8rc.mjs +132 -0
- package/dist/chunks/workflows-1.1.28-k9wt163q.mjs +1 -0
- package/dist/chunks/worktree-1.1.28-5bjehwgc.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.28-d1yy7627.mjs +1 -0
- package/dist/chunks/wrapper-1.1.28-qgyry9mh.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.27-db5m9gzv.mjs +0 -1
- package/dist/chunks/App-1.1.27-jz9pzpv7.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.27-b5mwy6bs.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.27-2kwhe57h.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.27-g5rhes32.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.27-jxn4ptdz.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.27-2veddc9s.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.27-mt31pcwm.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.27-ts2drs72.mjs +0 -6
- package/dist/chunks/Doctor-1.1.27-mh9ttzx4.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.27-qh4nye9z.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.27-054hfzze.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.27-gyk98cx3.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.27-agv9khdv.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.27-fhzyv0es.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.27-e7a3yzxe.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.27-zc2zrqpt.mjs +0 -1
- package/dist/chunks/REPL-1.1.27-zm25dsxc.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.27-93vdmd0g.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.27-rcmc5990.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.27-7mwc4ntd.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.27-jyjyshza.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.27-g4s9ej88.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.27-bfqad2sg.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.27-b39dysny.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.27-nerfy2hh.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.27-7akd7pzq.mjs +0 -1
- package/dist/chunks/add-dir-1.1.27-jfd8t81g.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.27-gvc8sgz1.mjs +0 -1
- package/dist/chunks/agents-1.1.27-pdcva4bt.mjs +0 -110
- package/dist/chunks/agents-1.1.27-vdvjpsev.mjs +0 -3
- package/dist/chunks/api-1.1.27-v0jrrv5d.mjs +0 -1
- package/dist/chunks/asciicast-1.1.27-a6ydv5ce.mjs +0 -1
- package/dist/chunks/assistant-1.1.27-gazcm6s7.mjs +0 -1
- package/dist/chunks/auth-1.1.27-d561ngfq.mjs +0 -1
- package/dist/chunks/auth-1.1.27-gp1b9bvj.mjs +0 -1
- package/dist/chunks/autoMode-1.1.27-187c13xb.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.27-v3ap18cy.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.27-hty6t0t8.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.27-efmykd33.mjs +0 -1
- package/dist/chunks/branch-1.1.27-d16zzy8m.mjs +0 -4
- package/dist/chunks/bridge-1.1.27-3znqrqgh.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.27-bbn4xfe7.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.27-hky0jg83.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.27-j9tfnew8.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.27-95k3w0tb.mjs +0 -1
- package/dist/chunks/btw-1.1.27-wx6yv865.mjs +0 -1
- package/dist/chunks/buddy-1.1.27-9afpekx4.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.27-f84tajyp.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.27-g9qwr4y9.mjs +0 -4
- package/dist/chunks/caches-1.1.27-fw7fsfx6.mjs +0 -1
- package/dist/chunks/cd-1.1.27-y9t4zyf7.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.27-182n35a2.mjs +0 -1
- package/dist/chunks/claudemd-1.1.27-gp9ndxg8.mjs +0 -1
- package/dist/chunks/clear-1.1.27-rrvq1asb.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.27-6esk4j27.mjs +0 -1
- package/dist/chunks/cli-1.1.27-090g18py.mjs +0 -2
- package/dist/chunks/cli-1.1.27-0h1xdjxp.mjs +0 -2
- package/dist/chunks/cli-1.1.27-0rz9qd34.mjs +0 -4
- package/dist/chunks/cli-1.1.27-0wv0k9sb.mjs +0 -2
- package/dist/chunks/cli-1.1.27-14xp8pk4.mjs +0 -2
- package/dist/chunks/cli-1.1.27-1hdrfsqd.mjs +0 -2
- package/dist/chunks/cli-1.1.27-1qrkn0zf.mjs +0 -25
- package/dist/chunks/cli-1.1.27-1rztfj2j.mjs +0 -2
- package/dist/chunks/cli-1.1.27-1vmmkyhn.mjs +0 -3
- package/dist/chunks/cli-1.1.27-1yvzf2v8.mjs +0 -2
- package/dist/chunks/cli-1.1.27-1yyef8w3.mjs +0 -2
- package/dist/chunks/cli-1.1.27-1ztbchyz.mjs +0 -2
- package/dist/chunks/cli-1.1.27-22f6jd6a.mjs +0 -2
- package/dist/chunks/cli-1.1.27-2922x4n2.mjs +0 -5
- package/dist/chunks/cli-1.1.27-2e7wwbbp.mjs +0 -2
- package/dist/chunks/cli-1.1.27-2mtc2dbf.mjs +0 -2
- package/dist/chunks/cli-1.1.27-3cjhx8c4.mjs +0 -4
- package/dist/chunks/cli-1.1.27-3eax0jv3.mjs +0 -6
- package/dist/chunks/cli-1.1.27-3mpdw95c.mjs +0 -2
- package/dist/chunks/cli-1.1.27-3qx1npht.mjs +0 -2
- package/dist/chunks/cli-1.1.27-42wr3qtg.mjs +0 -2
- package/dist/chunks/cli-1.1.27-48ezce33.mjs +0 -206
- package/dist/chunks/cli-1.1.27-4ch8wq6c.mjs +0 -3
- package/dist/chunks/cli-1.1.27-4cjm0m5c.mjs +0 -24
- package/dist/chunks/cli-1.1.27-4pm4y79r.mjs +0 -2
- package/dist/chunks/cli-1.1.27-4xegg6js.mjs +0 -2
- package/dist/chunks/cli-1.1.27-51sqdnt6.mjs +0 -2
- package/dist/chunks/cli-1.1.27-55evh9sy.mjs +0 -21
- package/dist/chunks/cli-1.1.27-575dbhvc.mjs +0 -2
- package/dist/chunks/cli-1.1.27-5jvkkbcy.mjs +0 -2
- package/dist/chunks/cli-1.1.27-5vejs4bz.mjs +0 -3
- package/dist/chunks/cli-1.1.27-6dm0tj1c.mjs +0 -2
- package/dist/chunks/cli-1.1.27-6f5wmt15.mjs +0 -2
- package/dist/chunks/cli-1.1.27-6g67vpnz.mjs +0 -2
- package/dist/chunks/cli-1.1.27-6s7e0eyt.mjs +0 -2
- package/dist/chunks/cli-1.1.27-6spv5ha8.mjs +0 -60
- package/dist/chunks/cli-1.1.27-704q0rhh.mjs +0 -2
- package/dist/chunks/cli-1.1.27-79504h3t.mjs +0 -2
- package/dist/chunks/cli-1.1.27-7a101p3z.mjs +0 -2
- package/dist/chunks/cli-1.1.27-7gnbh46g.mjs +0 -2
- package/dist/chunks/cli-1.1.27-7hws4y92.mjs +0 -4
- package/dist/chunks/cli-1.1.27-7jakzfss.mjs +0 -24
- package/dist/chunks/cli-1.1.27-7jc0gzqt.mjs +0 -4
- package/dist/chunks/cli-1.1.27-7wrz865m.mjs +0 -2
- package/dist/chunks/cli-1.1.27-7zpnm6dn.mjs +0 -2
- package/dist/chunks/cli-1.1.27-83exfkej.mjs +0 -2
- package/dist/chunks/cli-1.1.27-8em170zt.mjs +0 -2
- package/dist/chunks/cli-1.1.27-8fve969w.mjs +0 -2
- package/dist/chunks/cli-1.1.27-8gsqhqyf.mjs +0 -42
- package/dist/chunks/cli-1.1.27-8vkygf4q.mjs +0 -2
- package/dist/chunks/cli-1.1.27-8vrv0ver.mjs +0 -2
- package/dist/chunks/cli-1.1.27-8zkr609d.mjs +0 -4
- package/dist/chunks/cli-1.1.27-91eh3cyz.mjs +0 -3
- package/dist/chunks/cli-1.1.27-9427t707.mjs +0 -2
- package/dist/chunks/cli-1.1.27-94qc7asn.mjs +0 -2
- package/dist/chunks/cli-1.1.27-96ccvbyj.mjs +0 -2
- package/dist/chunks/cli-1.1.27-96yksxag.mjs +0 -2
- package/dist/chunks/cli-1.1.27-98bpezgc.mjs +0 -45
- package/dist/chunks/cli-1.1.27-9chfrr9e.mjs +0 -2
- package/dist/chunks/cli-1.1.27-9d0bkxf6.mjs +0 -15
- package/dist/chunks/cli-1.1.27-9m09gcqr.mjs +0 -2
- package/dist/chunks/cli-1.1.27-9sswt66t.mjs +0 -12
- package/dist/chunks/cli-1.1.27-a454a3rb.mjs +0 -2
- package/dist/chunks/cli-1.1.27-aahmf6wc.mjs +0 -2
- package/dist/chunks/cli-1.1.27-b0s2nhr1.mjs +0 -24
- package/dist/chunks/cli-1.1.27-b3bkjfyh.mjs +0 -2
- package/dist/chunks/cli-1.1.27-b42yen3p.mjs +0 -2
- package/dist/chunks/cli-1.1.27-bpbp93hw.mjs +0 -2
- package/dist/chunks/cli-1.1.27-bwc1f1yx.mjs +0 -15
- package/dist/chunks/cli-1.1.27-byba8306.mjs +0 -20
- package/dist/chunks/cli-1.1.27-byxgdj3w.mjs +0 -2
- package/dist/chunks/cli-1.1.27-cth2wwrh.mjs +0 -2
- package/dist/chunks/cli-1.1.27-cth3rq9k.mjs +0 -2
- package/dist/chunks/cli-1.1.27-cw1p9ac2.mjs +0 -3
- package/dist/chunks/cli-1.1.27-cw9bqwta.mjs +0 -2
- package/dist/chunks/cli-1.1.27-cxy3fqs0.mjs +0 -2
- package/dist/chunks/cli-1.1.27-d0k9rgj1.mjs +0 -2
- package/dist/chunks/cli-1.1.27-d1zgycfk.mjs +0 -2
- package/dist/chunks/cli-1.1.27-d4km9s81.mjs +0 -2
- package/dist/chunks/cli-1.1.27-d4w9gqgs.mjs +0 -50
- package/dist/chunks/cli-1.1.27-d5q76t7c.mjs +0 -3
- package/dist/chunks/cli-1.1.27-d7r6x0ew.mjs +0 -2
- package/dist/chunks/cli-1.1.27-dfww0knt.mjs +0 -2
- package/dist/chunks/cli-1.1.27-dhzbmaf3.mjs +0 -2
- package/dist/chunks/cli-1.1.27-e2p4abq5.mjs +0 -2
- package/dist/chunks/cli-1.1.27-e53f6at7.mjs +0 -2
- package/dist/chunks/cli-1.1.27-eag2dgb4.mjs +0 -2
- package/dist/chunks/cli-1.1.27-es2rn3j6.mjs +0 -2
- package/dist/chunks/cli-1.1.27-eypype7d.mjs +0 -8
- package/dist/chunks/cli-1.1.27-f218cppx.mjs +0 -34
- package/dist/chunks/cli-1.1.27-f3cv6wk1.mjs +0 -2
- package/dist/chunks/cli-1.1.27-fary910g.mjs +0 -2
- package/dist/chunks/cli-1.1.27-fc1my4zp.mjs +0 -2
- package/dist/chunks/cli-1.1.27-fdhry9qy.mjs +0 -2
- package/dist/chunks/cli-1.1.27-fr8vw4x1.mjs +0 -2
- package/dist/chunks/cli-1.1.27-fw9r8cwg.mjs +0 -4
- package/dist/chunks/cli-1.1.27-fxmty4t4.mjs +0 -5
- package/dist/chunks/cli-1.1.27-g8n6nr2e.mjs +0 -1
- package/dist/chunks/cli-1.1.27-gan2msv5.mjs +0 -3
- package/dist/chunks/cli-1.1.27-ge84mp6e.mjs +0 -2
- package/dist/chunks/cli-1.1.27-ggg6m9qt.mjs +0 -2
- package/dist/chunks/cli-1.1.27-gmknn4xh.mjs +0 -2
- package/dist/chunks/cli-1.1.27-gnhg7s3x.mjs +0 -2
- package/dist/chunks/cli-1.1.27-gnvm8gat.mjs +0 -2
- package/dist/chunks/cli-1.1.27-h7ytc7jg.mjs +0 -9
- package/dist/chunks/cli-1.1.27-hafa2nxa.mjs +0 -2
- package/dist/chunks/cli-1.1.27-hcnrf84n.mjs +0 -2
- package/dist/chunks/cli-1.1.27-hh78rvvf.mjs +0 -2
- package/dist/chunks/cli-1.1.27-hhkkts5k.mjs +0 -6
- package/dist/chunks/cli-1.1.27-hrwxg46q.mjs +0 -2
- package/dist/chunks/cli-1.1.27-hs6hv3bh.mjs +0 -20
- package/dist/chunks/cli-1.1.27-j362egg2.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jcn2gvsw.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jfqvck1y.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jg3tymed.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jh817v59.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jm7jbypb.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jmegwyzr.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jmz9pczh.mjs +0 -3
- package/dist/chunks/cli-1.1.27-jt1gb6nf.mjs +0 -2
- package/dist/chunks/cli-1.1.27-jvs6enw9.mjs +0 -2
- package/dist/chunks/cli-1.1.27-k115ge4q.mjs +0 -6
- package/dist/chunks/cli-1.1.27-k2fyp83y.mjs +0 -2
- package/dist/chunks/cli-1.1.27-k6dwtkrp.mjs +0 -2
- package/dist/chunks/cli-1.1.27-k9jt24bv.mjs +0 -2
- package/dist/chunks/cli-1.1.27-kdv6nw9e.mjs +0 -12
- package/dist/chunks/cli-1.1.27-kerbk21s.mjs +0 -2
- package/dist/chunks/cli-1.1.27-kgpk1m6k.mjs +0 -2
- package/dist/chunks/cli-1.1.27-kkt8se1z.mjs +0 -2
- package/dist/chunks/cli-1.1.27-kpqha1ce.mjs +0 -2
- package/dist/chunks/cli-1.1.27-krtd4rf3.mjs +0 -3
- package/dist/chunks/cli-1.1.27-m2n4m352.mjs +0 -2
- package/dist/chunks/cli-1.1.27-m5wtrd2b.mjs +0 -2
- package/dist/chunks/cli-1.1.27-m6ne80zc.mjs +0 -2
- package/dist/chunks/cli-1.1.27-maxx6jt7.mjs +0 -4
- package/dist/chunks/cli-1.1.27-me6jhh1k.mjs +0 -2
- package/dist/chunks/cli-1.1.27-mqt20a61.mjs +0 -2
- package/dist/chunks/cli-1.1.27-mr1wxvzb.mjs +0 -3
- package/dist/chunks/cli-1.1.27-n09bs0db.mjs +0 -2
- package/dist/chunks/cli-1.1.27-n3fg97y6.mjs +0 -2
- package/dist/chunks/cli-1.1.27-n6vfvfw4.mjs +0 -2
- package/dist/chunks/cli-1.1.27-nbgxr715.mjs +0 -10
- package/dist/chunks/cli-1.1.27-njcbrvnc.mjs +0 -58
- package/dist/chunks/cli-1.1.27-nmp82pea.mjs +0 -3
- package/dist/chunks/cli-1.1.27-nx2yxmg9.mjs +0 -3
- package/dist/chunks/cli-1.1.27-nxkc7nfr.mjs +0 -2
- package/dist/chunks/cli-1.1.27-ny95570d.mjs +0 -133
- package/dist/chunks/cli-1.1.27-p1sh0ft2.mjs +0 -2
- package/dist/chunks/cli-1.1.27-p7kjkqhn.mjs +0 -2
- package/dist/chunks/cli-1.1.27-p99q7a22.mjs +0 -133
- package/dist/chunks/cli-1.1.27-pab2avnw.mjs +0 -2
- package/dist/chunks/cli-1.1.27-pyjha53q.mjs +0 -2
- package/dist/chunks/cli-1.1.27-q2msmggk.mjs +0 -2
- package/dist/chunks/cli-1.1.27-q830jx95.mjs +0 -2
- package/dist/chunks/cli-1.1.27-qcvp3n4v.mjs +0 -2
- package/dist/chunks/cli-1.1.27-qkzc0vzs.mjs +0 -2
- package/dist/chunks/cli-1.1.27-qnzhd86k.mjs +0 -2
- package/dist/chunks/cli-1.1.27-r32k5nw7.mjs +0 -4
- package/dist/chunks/cli-1.1.27-r335xv52.mjs +0 -6
- package/dist/chunks/cli-1.1.27-r3r36jvq.mjs +0 -25
- package/dist/chunks/cli-1.1.27-r4ck0s0j.mjs +0 -2
- package/dist/chunks/cli-1.1.27-r9jjyax0.mjs +0 -7
- package/dist/chunks/cli-1.1.27-rct7c74m.mjs +0 -2
- package/dist/chunks/cli-1.1.27-rnwaxvgf.mjs +0 -2
- package/dist/chunks/cli-1.1.27-rqdq9mhj.mjs +0 -2
- package/dist/chunks/cli-1.1.27-ryd2t3vk.mjs +0 -2
- package/dist/chunks/cli-1.1.27-s62prq89.mjs +0 -2
- package/dist/chunks/cli-1.1.27-sbj1hdj9.mjs +0 -2
- package/dist/chunks/cli-1.1.27-scfswqdr.mjs +0 -2
- package/dist/chunks/cli-1.1.27-sdw0p0c4.mjs +0 -58
- package/dist/chunks/cli-1.1.27-sngxwsap.mjs +0 -2
- package/dist/chunks/cli-1.1.27-sr4a2gd6.mjs +0 -2
- package/dist/chunks/cli-1.1.27-sw6tnehx.mjs +0 -2
- package/dist/chunks/cli-1.1.27-t13xq38e.mjs +0 -2
- package/dist/chunks/cli-1.1.27-t1dxp2pw.mjs +0 -2
- package/dist/chunks/cli-1.1.27-t32zh7r1.mjs +0 -2
- package/dist/chunks/cli-1.1.27-t4rm4dqf.mjs +0 -6
- package/dist/chunks/cli-1.1.27-tc4b7enb.mjs +0 -17
- package/dist/chunks/cli-1.1.27-tpefzkds.mjs +0 -4
- package/dist/chunks/cli-1.1.27-tw693ept.mjs +0 -2
- package/dist/chunks/cli-1.1.27-v24sqtag.mjs +0 -24
- package/dist/chunks/cli-1.1.27-v49qz5nz.mjs +0 -2
- package/dist/chunks/cli-1.1.27-v9dwxgsv.mjs +0 -15
- package/dist/chunks/cli-1.1.27-vh1r16sd.mjs +0 -6
- package/dist/chunks/cli-1.1.27-vhdd7ed4.mjs +0 -39
- package/dist/chunks/cli-1.1.27-w0jz23zw.mjs +0 -2
- package/dist/chunks/cli-1.1.27-w8pwj9ef.mjs +0 -5522
- package/dist/chunks/cli-1.1.27-wbtq2bbb.mjs +0 -2
- package/dist/chunks/cli-1.1.27-wj32ftfy.mjs +0 -2
- package/dist/chunks/cli-1.1.27-wpnpp1vg.mjs +0 -2
- package/dist/chunks/cli-1.1.27-wtthtmes.mjs +0 -3
- package/dist/chunks/cli-1.1.27-wz24bwzn.mjs +0 -2
- package/dist/chunks/cli-1.1.27-x6dqasdj.mjs +0 -17
- package/dist/chunks/cli-1.1.27-xdfkhk5m.mjs +0 -16
- package/dist/chunks/cli-1.1.27-xjabxtdd.mjs +0 -7
- package/dist/chunks/cli-1.1.27-xx0q9f0f.mjs +0 -2
- package/dist/chunks/cli-1.1.27-y6pe4jk6.mjs +0 -2
- package/dist/chunks/cli-1.1.27-y712t8h2.mjs +0 -2
- package/dist/chunks/cli-1.1.27-y935z28w.mjs +0 -2
- package/dist/chunks/cli-1.1.27-yghv5btz.mjs +0 -2
- package/dist/chunks/cli-1.1.27-z32qkf2d.mjs +0 -18
- package/dist/chunks/cli-1.1.27-zbbzy1ze.mjs +0 -2
- package/dist/chunks/cli-1.1.27-zgweqxf0.mjs +0 -9
- package/dist/chunks/cli-1.1.27-zq9wak2z.mjs +0 -2
- package/dist/chunks/cli-1.1.27-zr523fbq.mjs +0 -3
- package/dist/chunks/client-1.1.27-ex7wh5hg.mjs +0 -1
- package/dist/chunks/color-1.1.27-58s1yrz1.mjs +0 -1
- package/dist/chunks/compact-1.1.27-c1wgqww4.mjs +0 -3
- package/dist/chunks/config-1.1.27-7vwe1qph.mjs +0 -1
- package/dist/chunks/config-1.1.27-ymfcbn84.mjs +0 -1
- package/dist/chunks/constants-1.1.27-3r2715sd.mjs +0 -1
- package/dist/chunks/context-1.1.27-yznf0qn9.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.27-g15en4j2.mjs +0 -1
- package/dist/chunks/conversation-1.1.27-jmmsnhbw.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.27-g0p5y9rf.mjs +0 -1
- package/dist/chunks/copy-1.1.27-pr6pzthk.mjs +0 -9
- package/dist/chunks/cost-1.1.27-q1yqmxr9.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.27-4cwnpwje.mjs +0 -1
- package/dist/chunks/createSession-1.1.27-xdq80vrv.mjs +0 -1
- package/dist/chunks/debug-1.1.27-42bn4afg.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.27-t14xxt79.mjs +0 -1534
- package/dist/chunks/desktop-1.1.27-c8h6b96d.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.27-qx3djtsx.mjs +0 -1
- package/dist/chunks/detection-1.1.27-0974kbef.mjs +0 -1
- package/dist/chunks/diff-1.1.27-1cb81w47.mjs +0 -1
- package/dist/chunks/doctor-1.1.27-5ky6nxzq.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.27-jcx2c92k.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.27-btzh8ch0.mjs +0 -1
- package/dist/chunks/effort-1.1.27-5yvfxd52.mjs +0 -13
- package/dist/chunks/engine-1.1.27-xcjbgefa.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.27-tdwb5zkz.mjs +0 -1
- package/dist/chunks/envUtils-1.1.27-r07jyd3m.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.27-dr64k9he.mjs +0 -1
- package/dist/chunks/environments-1.1.27-s1z96vy8.mjs +0 -1
- package/dist/chunks/errors-1.1.27-bm50fpjg.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.27-wnw6egjm.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.27-evt4sr84.mjs +0 -1
- package/dist/chunks/exit-1.1.27-vgdg65b7.mjs +0 -1
- package/dist/chunks/explorer-1.1.27-zkb8zkpf.mjs +0 -1
- package/dist/chunks/export-1.1.27-tda60v40.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.27-2bmjnc65.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.27-m7byqk30.mjs +0 -1
- package/dist/chunks/fast-1.1.27-8bjn4w16.mjs +0 -1
- package/dist/chunks/feedback-1.1.27-vzfx84xw.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.27-57d5r280.mjs +0 -1
- package/dist/chunks/git-1.1.27-pe9yjmar.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.27-r2w00yyn.mjs +0 -1
- package/dist/chunks/goal-1.1.27-da40b321.mjs +0 -4
- package/dist/chunks/growthbook-1.1.27-rmhw14zh.mjs +0 -1
- package/dist/chunks/headless-1.1.27-gwzekzne.mjs +0 -2
- package/dist/chunks/heapdump-1.1.27-0702z5xd.mjs +0 -6
- package/dist/chunks/help-1.1.27-gwcwagyv.mjs +0 -1
- package/dist/chunks/hookChains-1.1.27-jyc4rzjs.mjs +0 -3
- package/dist/chunks/hooks-1.1.27-8p1xt4z2.mjs +0 -1
- package/dist/chunks/hooks-1.1.27-vvzpa77q.mjs +0 -79
- package/dist/chunks/ide-1.1.27-w2am9w2t.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.27-fk490n21.mjs +0 -1
- package/dist/chunks/import-1.1.27-69zkqd7t.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.27-7whcznny.mjs +0 -1
- package/dist/chunks/index-1.1.27-03qtf3bh.mjs +0 -9
- package/dist/chunks/index-1.1.27-2w3eyz3g.mjs +0 -1
- package/dist/chunks/index-1.1.27-4td4kk2r.mjs +0 -2
- package/dist/chunks/index-1.1.27-72s4gvww.mjs +0 -1
- package/dist/chunks/index-1.1.27-7rmx1z0f.mjs +0 -9
- package/dist/chunks/index-1.1.27-949q66tk.mjs +0 -1
- package/dist/chunks/index-1.1.27-9w6rbss1.mjs +0 -1
- package/dist/chunks/index-1.1.27-9w6y0sqf.mjs +0 -5
- package/dist/chunks/index-1.1.27-9za77x22.mjs +0 -2
- package/dist/chunks/index-1.1.27-av965j5w.mjs +0 -1
- package/dist/chunks/index-1.1.27-dpf9bwn3.mjs +0 -1
- package/dist/chunks/index-1.1.27-dzzkz91c.mjs +0 -1
- package/dist/chunks/index-1.1.27-ed0cj234.mjs +0 -30
- package/dist/chunks/index-1.1.27-fz6pezpj.mjs +0 -1
- package/dist/chunks/index-1.1.27-haym7ds6.mjs +0 -1
- package/dist/chunks/index-1.1.27-k2zye2ba.mjs +0 -1
- package/dist/chunks/index-1.1.27-ktav82bw.mjs +0 -1
- package/dist/chunks/index-1.1.27-qj3j1rkb.mjs +0 -1
- package/dist/chunks/index-1.1.27-r6ypg71x.mjs +0 -1
- package/dist/chunks/index-1.1.27-r8jqe3yp.mjs +0 -1
- package/dist/chunks/index-1.1.27-rcxd3h0n.mjs +0 -23
- package/dist/chunks/index-1.1.27-spc0z43g.mjs +0 -1
- package/dist/chunks/index-1.1.27-xvd24vg3.mjs +0 -1
- package/dist/chunks/init-1.1.27-kbwzggfn.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.27-r8gnhged.mjs +0 -1
- package/dist/chunks/ink-1.1.27-btbyg6z5.mjs +0 -1
- package/dist/chunks/insights-1.1.27-r17n37gt.mjs +0 -870
- package/dist/chunks/install-1.1.27-rst7c5sr.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.27-qe83k348.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.27-9btj28ve.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.27-zs5yatff.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.27-vkw6dmnx.mjs +0 -1
- package/dist/chunks/keybindings-1.1.27-1sx34z24.mjs +0 -2
- package/dist/chunks/knowledge-1.1.27-3vda7yge.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.27-8vg474pc.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.27-ax53z9hj.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.27-34tp38m5.mjs +0 -1
- package/dist/chunks/log-1.1.27-trbh6pmv.mjs +0 -1
- package/dist/chunks/main-1.1.27-y8ep0qqz.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.27-xf362k5y.mjs +0 -1
- package/dist/chunks/mcp-1.1.27-af12t0f2.mjs +0 -1
- package/dist/chunks/mcp-1.1.27-qzntdrh6.mjs +0 -17
- package/dist/chunks/mcp-1.1.27-vsgp33q0.mjs +0 -4
- package/dist/chunks/mcpb-1.1.27-m9bw286t.mjs +0 -1
- package/dist/chunks/memory-1.1.27-tzff1b9e.mjs +0 -72
- package/dist/chunks/model-1.1.27-968y8qcm.mjs +0 -2
- package/dist/chunks/model-1.1.27-p2b82a7t.mjs +0 -1
- package/dist/chunks/node-1.1.27-bghx5g4n.mjs +0 -1
- package/dist/chunks/node-1.1.27-rjfnqhpk.mjs +0 -15
- package/dist/chunks/oauth-1.1.27-19qatx62.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.27-p50pa80m.mjs +0 -14
- package/dist/chunks/output-style-1.1.27-6h4astb5.mjs +0 -1
- package/dist/chunks/package-OS7RONXY-1.1.27-nvbtkqpn.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.27-3gy61f1e.mjs +0 -1
- package/dist/chunks/parser-1.1.27-6m7zhkr7.mjs +0 -1
- package/dist/chunks/passes-1.1.27-2n9jw11x.mjs +0 -1
- package/dist/chunks/permissions-1.1.27-ah7j2bj9.mjs +0 -3
- package/dist/chunks/permissions-1.1.27-qnhk36mh.mjs +0 -1
- package/dist/chunks/plan-1.1.27-vkhc8mq9.mjs +0 -1
- package/dist/chunks/plist-1.1.27-vg4h3pf9.mjs +0 -1
- package/dist/chunks/plugin-1.1.27-benemmgh.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.27-tyd8w4ay.mjs +0 -1
- package/dist/chunks/plugins-1.1.27-er0je2r7.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.27-8w2hxz61.mjs +0 -2
- package/dist/chunks/print-1.1.27-nf4vjdv0.mjs +0 -57
- package/dist/chunks/process-1.1.27-1en4vj8c.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.27-y2nx754j.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.27-mert7w0e.mjs +0 -9
- package/dist/chunks/prompt-1.1.27-0qqepg5j.mjs +0 -1
- package/dist/chunks/prompt-1.1.27-40pnv6x7.mjs +0 -1
- package/dist/chunks/prompts-1.1.27-kvtvsbhd.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.27-27de09ht.mjs +0 -13
- package/dist/chunks/provider-1.1.27-g4r1c84c.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.27-tp6zknw0.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.27-ntakvdzk.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.27-fvdwd7xd.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.27-5pprq81w.mjs +0 -26
- package/dist/chunks/registry-1.1.27-vccj3rtk.mjs +0 -1
- package/dist/chunks/release-notes-1.1.27-a7x9237x.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.27-7yf3667k.mjs +0 -2
- package/dist/chunks/remote-env-1.1.27-2vdhr1s9.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.27-0qn70btv.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.27-21n6mx7d.mjs +0 -1
- package/dist/chunks/rename-1.1.27-x0qfjvj2.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.27-661m032k.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.27-48an8y55.mjs +0 -1
- package/dist/chunks/resume-1.1.27-0n7jaz71.mjs +0 -2
- package/dist/chunks/rewind-1.1.27-0dhz50d0.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.27-8k0jbnfk.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.27-3a15vms4.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.27-j8pr6jz7.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.27-r1nrcxaz.mjs +0 -1
- package/dist/chunks/session-1.1.27-bv5zha49.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.27-z50hzta3.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.27-vc8ajjh0.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.27-0vfss5b6.mjs +0 -1
- package/dist/chunks/settings-1.1.27-jar0d6ey.mjs +0 -1
- package/dist/chunks/setup-1.1.27-ggnhb2c8.mjs +0 -12
- package/dist/chunks/sinks-1.1.27-qevt5nft.mjs +0 -1
- package/dist/chunks/skills-1.1.27-wjq94pk8.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.27-q5yb3a35.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.27-k3spb2gh.mjs +0 -1
- package/dist/chunks/state-1.1.27-fpyqkxby.mjs +0 -1
- package/dist/chunks/stats-1.1.27-xb10zj7e.mjs +0 -1
- package/dist/chunks/status-1.1.27-7vscpczw.mjs +0 -1
- package/dist/chunks/stickers-1.1.27-j4em7gfg.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.27-0dm2v5n5.mjs +0 -1
- package/dist/chunks/tasks-1.1.27-a7d9cx1a.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.27-2jkv3830.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.27-8vmyznjc.mjs +0 -1
- package/dist/chunks/teleport-1.1.27-d6bgvctx.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.27-8k6bdqzf.mjs +0 -1
- package/dist/chunks/theme-1.1.27-dzme81zx.mjs +0 -1
- package/dist/chunks/thinkback-1.1.27-8hrqe8zc.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.27-7pf0t9jk.mjs +0 -1
- package/dist/chunks/toolPool-1.1.27-yndm4vnc.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.27-m1tpg8zj.mjs +0 -1
- package/dist/chunks/tools-1.1.27-f6v2cxn6.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.27-bkp7wbqw.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.27-ev0anxmd.mjs +0 -69
- package/dist/chunks/types-1.1.27-pgjcgwmr.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.27-fzpef911.mjs +0 -4
- package/dist/chunks/update-1.1.27-0rwrmj8m.mjs +0 -72
- package/dist/chunks/upgrade-1.1.27-zacn9g92.mjs +0 -1
- package/dist/chunks/upload-1.1.27-9natjvcx.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.27-484n2sck.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.27-e0vf9zwd.mjs +0 -1
- package/dist/chunks/usage-1.1.27-qdx2zhbe.mjs +0 -1
- package/dist/chunks/util-1.1.27-m60qqy4m.mjs +0 -1
- package/dist/chunks/utils-1.1.27-bpj1f9q9.mjs +0 -1
- package/dist/chunks/vim-1.1.27-dvj5bk5p.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.27-1vydfkzw.mjs +0 -13
- package/dist/chunks/watcher-1.1.27-jxayr96k.mjs +0 -1
- package/dist/chunks/wiki-1.1.27-t7nxcbah.mjs +0 -132
- package/dist/chunks/workflows-1.1.27-7bdgxjth.mjs +0 -1
- package/dist/chunks/worktree-1.1.27-6kkgvwks.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.27-ax7kv7qq.mjs +0 -1
- package/dist/chunks/wrapper-1.1.27-q9kmdf61.mjs +0 -7
- /package/dist/chunks/{cli-1.1.27-f8njyndt.mjs → cli-1.1.28-43p679k7.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.27-4an77vdm.mjs → cli-1.1.28-7d7hz6b4.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.27-5mn2zxpk.mjs → cli-1.1.28-f658tc1w.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.27-097en7tp.mjs → cli-1.1.28-m37hk495.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.27-sgvc7y72.mjs → cli-1.1.28-m7x3ax7z.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.27-r2qyxh4t.mjs → cli-1.1.28-qzdtd4w8.mjs} +0 -0
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import{be as EQ,he as lX}from"./cli-1.1.27-p7kjkqhn.mjs";import{le as LZ,me as HX}from"./cli-1.1.27-42wr3qtg.mjs";import{$I as KQ,$k as zJ,CS as AQ,DI as TZ,EI as uZ,FI as FJ,HI as gJ,JS as xZ,Kt as t0,MB as wQ,MF as QJ,MG as lQ,NB as kX,Nt as AZ,Oy as iZ,PF as hZ,PG as UY,Py as bX,QC as u0,Qw as JJ,RC as DZ,Rk as o0,SG as m0,Sk as zZ,TG as rX,Ts as IQ,UC as h0,Ul as mQ,VC as ZZ,Vk as MQ,WC as QZ,Wk as mX,Wl as VY,Ws as ZY,Ww as bZ,XC as nQ,XE as ZJ,Xs as tJ,YC as tZ,YE as vZ,Ys as $Q,ZC as JQ,_C as DX,ao as DJ,bl as _Z,bo as GX,cC as BZ,cJ as qZ,cl as _J,dC as PY,dJ as MZ,dt as w0,dy as kQ,eB as R0,eC as IZ,eJ as vJ,ey as NY,fB as GJ,fJ as bJ,fr as lZ,gJ as wZ,hJ as KZ,iJ as EZ,ir as AX,kJ as S0,ky as fJ,lJ as x0,ly as rQ,mJ as s0,nL as VJ,nt as VX,ny as RY,oo as xQ,ot as MJ,oz as gZ,po as HY,pt as FY,pz as yX,qL as cZ,qo as k,ro as I0,sz as HJ,tz as nZ,uo as t,ut as n0,vo as D0,xS as yQ,yk as jZ,yo as s,yt as WX,zo as v0}from"./cli-1.1.27-w8pwj9ef.mjs";import{SY as j0,TY as rJ,fZ as z0,gZ as _0}from"./cli-1.1.27-9chfrr9e.mjs";import{F1 as E,H1 as V,L1 as UJ,V1 as rZ,g0 as N0,k2 as G0,p0 as qJ}from"./cli-1.1.27-6spv5ha8.mjs";import{h4 as $J,o4 as WY}from"./cli-1.1.27-94qc7asn.mjs";import{T4 as a,U4 as Y,V4 as F,W4 as $}from"./cli-1.1.27-kgpk1m6k.mjs";import{X4 as d0}from"./cli-1.1.27-m5wtrd2b.mjs";import{i5 as YZ,s5 as eQ}from"./cli-1.1.27-1rztfj2j.mjs";import{u5 as lJ,v5 as xX}from"./cli-1.1.27-wtthtmes.mjs";import{A8 as sQ,J5 as fZ,K5 as qX,z8 as yJ}from"./cli-1.1.27-xdfkhk5m.mjs";import{Sha as OZ,Wca as q0,Xca as K0,Xda as OQ,Yda as fQ,_da as pX,_ha as zX,bda as a0,kba as pQ,lba as E0,lea as Q0,nba as dJ,r$ as PJ,s$ as UQ,tea as kJ}from"./cli-1.1.27-48ezce33.mjs";import{gia as C0,jia as L0,lia as BQ,nia as RJ,oia as YJ,via as c0}from"./cli-1.1.27-fw9r8cwg.mjs";import{Yia as UZ,ija as YX}from"./cli-1.1.27-dfww0knt.mjs";import{uka as Z0,xka as eJ}from"./cli-1.1.27-7gnbh46g.mjs";import{Ala as AJ,lla as bQ,nla as JY,xla as B0}from"./cli-1.1.27-r335xv52.mjs";import{Xla as T0,cma as PZ}from"./cli-1.1.27-0rz9qd34.mjs";import{Ita as J0,Jta as IJ,Lta as FZ,Mta as n}from"./cli-1.1.27-8vrv0ver.mjs";function r0(Q){return typeof Q==="object"&&Q!==null&&"type"in Q&&Q.type==="local_agent"}function KJ(Q){return{...Q,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:tJ(Q.status)?Date.now()+oQ:void 0}}function EJ(Q,J){Z0("",{}),J((Z)=>{let X=Z.tasks[Q],q=Z.viewingAgentTaskId,z=q!==void 0?Z.tasks[q]:void 0,W=q!==void 0&&q!==Q&&r0(z)&&z.retain,G=r0(X)&&(!X.retain||X.evictAfter!==void 0),N=Z.viewingAgentTaskId!==Q||Z.viewSelectionMode!=="viewing-agent";if(!G&&!N&&!W)return Z;let R=Z.tasks;if(W||G){if(R={...Z.tasks},W)R[q]=KJ(z);if(G)R[Q]={...X,retain:!0,evictAfter:void 0}}return{...Z,viewingAgentTaskId:Q,viewSelectionMode:"viewing-agent",tasks:R}})}function LJ(Q){Z0("",{}),Q((J)=>{let Z=J.viewingAgentTaskId,X={...J,viewingAgentTaskId:void 0,viewSelectionMode:"none"};if(Z===void 0)return J.viewSelectionMode==="none"?J:X;let q=J.tasks[Z];if(!r0(q)||!q.retain)return X;return{...X,tasks:{...J.tasks,[Z]:KJ(q)}}})}function bY(Q,J){J((Z)=>{let X=Z.tasks[Q];if(!r0(X))return Z;if(X.status==="running")return X.abortController?.abort(),Z;if(X.evictAfter===0)return Z;let q=Z.viewingAgentTaskId===Q;return{...Z,tasks:{...Z.tasks,[Q]:{...KJ(X),evictAfter:0}},...q&&{viewingAgentTaskId:void 0,viewSelectionMode:"none"}}})}var oQ=30000;var JZ=n(()=>{eJ();$Q()});function l0(Q){let J=[h0(Q.container),QZ(Q.container,Q.restartCount)];if(Q.container.state==="running"){let Z=ZZ(Q.container);if(Z)J.push(Z)}return J.join(aQ)}var aQ=" · ";var i0=n(()=>{nQ()});function $0(Q){switch(Q.type){case"local_bash":return Q.kind==="monitor"?Q.description:Q.command;case"remote_agent":return Q.title;case"local_agent":return Q.description;case"local_workflow":return Q.summary??Q.description;case"monitor_mcp":return Q.description;case"dream":return Q.description;case"in_process_teammate":return`@${Q.identity.agentName}`;case"container":return l0(Q);default:return""}}var CJ=n(()=>{i0()});class GZ{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 q of X.message.content){if(q.type!=="tool_use")continue;let z=q;if(z.name===o0)this.exitPlanCalls.push(z.id)}else if(X.type==="user"){let q=X.message.content;if(!Array.isArray(q))continue;for(let z of q)if(z.type==="tool_result")this.results.set(z.tool_use_id,z)}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 q=this.exitPlanCalls[X];if(this.rejectedIds.has(q))continue;let z=this.results.get(q);if(!z)Z={kind:"pending"};else if(z.is_error===!0){let W=ZX(z.content);Z=W!==null?{kind:"teleport",plan:W}:{kind:"rejected",id:q}}else Z={kind:"approved",plan:QX(z.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 VZ(Q,J,Z,X){let q=Date.now()+J,z=new GZ,W=null,G=0,N="running";while(Date.now()<q){if(X?.())throw new F0("poll stopped by caller","stopped",z.rejectCount);let R,U;try{let f=await qZ(Q,W);R=f.newEvents,W=f.lastEventId,U=f.sessionStatus,G=0}catch(f){if(!YZ(f)||++G>=tQ)throw new F0(f instanceof Error?f.message:String(f),"network_or_unknown",z.rejectCount,{cause:f});await yJ(XZ);continue}let P;try{P=z.ingest(R)}catch(f){throw new F0(f instanceof Error?f.message:String(f),"extract_marker_missing",z.rejectCount)}if(P.kind==="approved")return{plan:P.plan,rejectCount:z.rejectCount,executionTarget:"remote"};if(P.kind==="teleport")return{plan:P.plan,rejectCount:z.rejectCount,executionTarget:"local"};if(P.kind==="terminated")throw new F0(`remote session ended (${P.subtype}) before plan approval`,"terminated",z.rejectCount);let O=(U==="idle"||U==="requires_action")&&R.length===0,w=z.hasPendingPlan?"plan_ready":O?"needs_input":"running";if(w!==N)B0(`[ultraplan] phase ${N} → ${w}`),N=w,Z?.(w);await yJ(XZ)}throw new F0(z.everSeenPending?`no approval after ${J/1000}s`:`ExitPlanMode never reached after ${J/1000}s (the remote container failed to start, or session ID mismatch?)`,z.everSeenPending?"timeout_pending":"timeout_no_plan",z.rejectCount)}function WZ(Q){return typeof Q==="string"?Q:Array.isArray(Q)?Q.map((J)=>("text"in J)?J.text:"").join(""):""}function ZX(Q){let J=WZ(Q),Z=`${JX}
|
|
2
|
-
`,X=J.indexOf(Z);if(X===-1)return null;return J.slice(X+Z.length).trimEnd()}function QX(Q){let J=WZ(Q),Z=[`## Approved Plan (edited by user):
|
|
3
|
-
`,`## Approved Plan:
|
|
4
|
-
`];for(let X of Z){let q=J.indexOf(X);if(q!==-1)return J.slice(q+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 XZ=3000,tQ=5,F0,JX="__ULTRAPLAN_TELEPORT_LOCAL__";var HZ=n(()=>{zZ();AJ();sQ();eQ();bJ();F0=class F0 extends Error{reason;rejectCount;constructor(Q,J,Z,X){super(Q,X);this.reason=J;this.rejectCount=Z;this.name="UltraplanPollError"}}});var NZ={};FZ(NZ,{default:()=>XX});var XX=`This is a planning prompt stub.
|
|
5
|
-
`;var RZ=()=>{};function NX(){return UZ("tengu_ultraplan_model",fZ.opus46.firstParty)}function UX(Q,J){let Z=[];if(J)Z.push("Here is a draft plan to refine:","",J,"");if(Z.push(PX),Q)Z.push("",Q);return Z.join(`
|
|
6
|
-
`)}function OX(Q,J,Z,X,q){let z=Date.now(),W=!1;(async()=>{try{let{plan:G,rejectCount:N,executionTarget:R}=await VZ(J,FX,(U)=>{if(U==="needs_input")Z0("",{});n0(Q,q,(P)=>{if(P.status!=="running")return P;let O=U==="running"?void 0:U;return P.ultraplanPhase===O?P:{...P,ultraplanPhase:O}})},()=>X().tasks?.[Q]?.status!=="running");if(Z0("",{duration_ms:Date.now()-z,plan_length:G.length,reject_count:N,execution_target:R}),R==="remote"){if(X().tasks?.[Q]?.status!=="running")return;n0(Q,q,(P)=>P.status!=="running"?P:{...P,status:"completed",endTime:Date.now()}),q((P)=>P.ultraplanSessionUrl===Z?{...P,ultraplanSessionUrl:void 0}:P),w0({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 q((U)=>{let P=U.tasks?.[Q];if(!P||P.status!=="running")return U;return{...U,ultraplanPendingChoice:{plan:G,sessionId:J,taskId:Q}}})}catch(G){if(X().tasks?.[Q]?.status!=="running")return;W=!0,Z0("",{duration_ms:Date.now()-z,reason:G instanceof F0?G.reason:"network_or_unknown",reject_count:G instanceof F0?G.rejectCount:void 0}),w0({value:`Ultraplan failed: ${T0(G)}
|
|
8
|
-
|
|
9
|
-
Session: ${Z}`,mode:"task-notification"}),vJ(J).catch((R)=>B0(`ultraplan archive failed: ${String(R)}`)),q((R)=>R.ultraplanSessionUrl===Z?{...R,ultraplanSessionUrl:void 0}:R)}finally{if(W)n0(Q,q,(G)=>G.status!=="running"?G:{...G,status:"failed",endTime:Date.now()})}})()}function fX(Q){let J=Q?`${LZ} `:"";return`${q0} ultraplan
|
|
10
|
-
${J}Starting Claude Code on the web…`}function MX(Q){return`${q0} ultraplan · Monitor progress in Claude Code on the web ${Q}
|
|
11
|
-
You can continue working — when the ${q0} fills, press ↓ to view results`}function yZ(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 e0(Q,J,Z){await S0.kill(Q,Z),Z((q)=>q.ultraplanSessionUrl||q.ultraplanPendingChoice||q.ultraplanLaunching?{...q,ultraplanSessionUrl:void 0,ultraplanPendingChoice:void 0,ultraplanLaunching:void 0}:q);let X=DJ(J,process.env.SESSION_INGRESS_URL);w0({value:`Ultraplan stopped.
|
|
12
|
-
|
|
13
|
-
Session: ${X}`,mode:"task-notification"}),w0({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 wX(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:q,signal:z,disconnectedBridge:W,onSessionReady:G}=Q,{ultraplanSessionUrl:N,ultraplanLaunching:R}=X();if(N||R)return Z0("",{reason:N?"already_polling":"already_launching"}),yZ(N);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: ${CZ}`].join(`
|
|
14
|
-
`);return q((U)=>U.ultraplanLaunching?U:{...U,ultraplanLaunching:!0}),KX({blurb:J,seedPlan:Z,getAppState:X,setAppState:q,signal:z,onSessionReady:G}),fX(W)}async function KX(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:q,signal:z,onSessionReady:W}=Q,G;try{let N=NX(),R=await wZ();if(!R.eligible){Z0("",{reason:"precondition",precondition_errors:R.errors.map((C)=>C.type).join(",")});let M=R.errors.map(KZ).join(`
|
|
15
|
-
`);w0({value:`ultraplan: cannot launch remote session —
|
|
16
|
-
${M}`,mode:"task-notification"});return}let U=UX(J,Z),P,O=await MZ({initialMessage:U,description:J||"Refine local plan",model:N,permissionMode:"plan",ultraplan:!0,signal:z,useDefaultEnvironment:!0,onBundleFail:(M)=>{P=M}});if(!O){Z0("",{reason:P?"bundle_fail":"teleport_null"}),w0({value:`ultraplan: session creation failed${P?` — ${P}`:""}. See --debug for details.`,mode:"task-notification"});return}G=O.id;let w=DJ(O.id,process.env.SESSION_INGRESS_URL);q((M)=>({...M,ultraplanSessionUrl:w,ultraplanLaunching:void 0})),W?.(MX(w)),Z0("",{has_seed_plan:Boolean(Z),model:N});let{taskId:f}=EZ({remoteTaskType:"ultraplan",session:{id:O.id,title:J||"Ultraplan"},command:J,context:{abortController:new AbortController,getAppState:X,setAppState:q},isUltraplan:!0});OX(f,O.id,w,X,q)}catch(N){if(OZ(N),Z0("",{reason:"unexpected_error"}),w0({value:`ultraplan: unexpected error — ${T0(N)}`,mode:"task-notification"}),G)vJ(G).catch((R)=>B0("ultraplan: failed to archive orphaned session",R)),q((R)=>R.ultraplanSessionUrl?{...R,ultraplanSessionUrl:void 0}:R)}finally{q((N)=>N.ultraplanLaunching?{...N,ultraplanLaunching:void 0}:N)}}var FX=1800000,CZ="https://code.claude.com/docs/en/claude-code-on-the-web",BJ,RX,PX,EX=async(Q,J,Z)=>{let X=Z.trim();if(!X){let W=await wX({blurb:X,getAppState:J.getAppState,setAppState:J.setAppState,signal:J.abortController.signal});return Q(W,{display:"system"}),null}let{ultraplanSessionUrl:q,ultraplanLaunching:z}=J.getAppState();if(q||z)return Z0("",{reason:q?"already_polling":"already_launching"}),Q(yZ(q),{display:"system"}),null;return J.setAppState((W)=>({...W,ultraplanLaunchPending:{blurb:X}})),Q(void 0,{display:"skip"}),null},eY;var hJ=n(()=>{HX();a0();GX();YX();eJ();s0();AJ();PZ();zX();VX();qX();WX();bJ();HZ();BJ=(RZ(),IJ(NZ)),RX=(typeof BJ==="string"?BJ:BJ.default).trimEnd(),PX=RX;eY={type:"local-jsx",name:"ultraplan",description:`~10–30 min · Claude Code on the web drafts an advanced plan you can edit and approve. See ${CZ}`,argumentHint:"<prompt>",isEnabled:()=>!1,load:()=>Promise.resolve({call:EX})}});function SJ(Q,J){if(Q.status!=="running")return;switch(Q.type){case"container":if(!u0(Q))return;J((Z)=>({...Z,pendingContainerStop:{taskId:Q.id,name:h0(Q.container),startedByUs:Q.startedByUs}}));return;case"local_bash":t0.kill(Q.id,J);return;case"local_agent":QJ.kill(Q.id,J);return;case"in_process_teammate":JJ.kill(Q.id,J);return;case"local_workflow":CX?.(Q.id,J);return;case"monitor_mcp":BZ.kill(Q.id,J);return;case"dream":ZJ.kill(Q.id,J);return;case"remote_agent":if(Q.isUltraplan)e0(Q.id,Q.sessionId,J);else S0.kill(Q.id,J);return;default:{B0(`killBackgroundTask: unhandled task type ${String(Q.type)}`);return}}}var LX=null,CX;var SZ=n(()=>{hJ();vZ();bZ();hZ();AZ();IZ();s0();DZ();i0();AJ();CX=LX?.killWorkflowTask??null});function XJ(Q,J,Z){let X=_Z(J,Q.toolName);if(!X)return Q.toolName;try{let q=X.inputSchema.safeParse(Q.input),z=q.success?q.data:{},W=X.userFacingName(z);if(!W)return Q.toolName;let G=X.renderToolUseMessage(z,{theme:Z,verbose:!1});if(G)return F(V,{children:[W,"(",G,")"]});return W}catch{return Q.toolName}}var jJ=n(()=>{G0();_J();$()});function pZ(Q){let J=dZ.c(54),{agent:Z,onDone:X,onKillAgent:q,onBack:z}=Q,[W]=qJ(),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=VJ(zJ()),J[0]=G;else G=J[0];let N=G,R=R0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),U;if(J[1]!==X)U={"confirm:yes":X},J[1]=X,J[2]=U;else U=J[2];let P;if(J[3]===Symbol.for("react.memo_cache_sentinel"))P={context:"Confirmation"},J[3]=P;else P=J[3];z0(U,P);let O;if(J[4]!==Z.status||J[5]!==z||J[6]!==X||J[7]!==q)O=(v)=>{if(v.key===" ")v.preventDefault(),X();else if(v.key==="left"&&z)v.preventDefault(),z();else if(v.key==="x"&&Z.status==="running"&&q)v.preventDefault(),q()},J[4]=Z.status,J[5]=z,J[6]=X,J[7]=q,J[8]=O;else O=J[8];let w=O,f;if(J[9]!==Z.prompt)f=jZ(Z.prompt,"plan"),J[9]=Z.prompt,J[10]=f;else f=J[10];let M=f,C=Z.prompt.length>300?Z.prompt.substring(0,297)+"…":Z.prompt,L=Z.result?.totalTokens??Z.progress?.tokenCount,b=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,I=Z.selectedAgent?.agentType??"agent",A=Z.description||"Async agent",h;if(J[11]!==I||J[12]!==A)h=F(V,{children:[I," ›"," ",A]}),J[11]=I,J[12]=A,J[13]=h;else h=J[13];let y=h,K;if(J[14]!==Z.status)K=Z.status!=="running"&&F(V,{color:uZ(Z.status),children:[TZ(Z.status)," ",Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[14]=Z.status,J[15]=K;else K=J[15];let p;if(J[16]!==L)p=L!==void 0&&L>0&&F(a,{children:[" · ",YJ(L)," tokens"]}),J[16]=L,J[17]=p;else p=J[17];let c;if(J[18]!==b)c=b!==void 0&&b>0&&F(a,{children:[" ","· ",b," ",b===1?"tool":"tools"]}),J[18]=b,J[19]=c;else c=J[19];let j;if(J[20]!==R||J[21]!==p||J[22]!==c)j=F(V,{dimColor:!0,children:[R,p,c]}),J[20]=R,J[21]=p,J[22]=c,J[23]=j;else j=J[23];let x;if(J[24]!==j||J[25]!==K)x=F(V,{children:[K,j]}),J[24]=j,J[25]=K,J[26]=x;else x=J[26];let d=x,S;if(J[27]!==Z.status||J[28]!==z||J[29]!==q)S=(v)=>v.pending?F(V,{children:["Press ",v.keyName," again to exit"]}):F(t,{children:[z&&Y(k,{shortcut:"←",action:"go back"}),Y(k,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&q&&Y(k,{shortcut:"x",action:"stop"})]}),J[27]=Z.status,J[28]=z,J[29]=q,J[30]=S;else S=J[30];let B;if(J[31]!==Z.progress||J[32]!==Z.status||J[33]!==W)B=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&F(E,{flexDirection:"column",children:[Y(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((v,m)=>F(V,{dimColor:m<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[m===Z.progress.recentActivities.length-1?"› ":" ",XJ(v,N,W)]},m))]}),J[31]=Z.progress,J[32]=Z.status,J[33]=W,J[34]=B;else B=J[34];let _;if(J[35]!==C||J[36]!==M)_=M?Y(E,{marginTop:1,children:Y(gZ,{addMargin:!1,planContent:M})}):F(E,{flexDirection:"column",marginTop:1,children:[Y(V,{bold:!0,dimColor:!0,children:"Prompt"}),Y(V,{wrap:"wrap",children:C})]}),J[35]=C,J[36]=M,J[37]=_;else _=J[37];let T;if(J[38]!==Z.error||J[39]!==Z.status)T=Z.status==="failed"&&Z.error&&F(E,{flexDirection:"column",marginTop:1,children:[Y(V,{bold:!0,color:"error",children:"Error"}),Y(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[38]=Z.error,J[39]=Z.status,J[40]=T;else T=J[40];let g;if(J[41]!==B||J[42]!==_||J[43]!==T)g=F(E,{flexDirection:"column",children:[B,_,T]}),J[41]=B,J[42]=_,J[43]=T,J[44]=g;else g=J[44];let D;if(J[45]!==X||J[46]!==d||J[47]!==S||J[48]!==g||J[49]!==y)D=Y(s,{title:y,subtitle:d,onCancel:X,color:"background",inputGuide:S,children:g}),J[45]=X,J[46]=d,J[47]=S,J[48]=g,J[49]=y,J[50]=D;else D=J[50];let u;if(J[51]!==w||J[52]!==D)u=Y(E,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:w,children:D}),J[51]=w,J[52]=D,J[53]=u;else u=J[53];return u}var dZ;var mZ=n(()=>{GJ();G0();_0();_J();cZ();c0();xZ();D0();v0();I0();yX();jJ();gJ();$();dZ=J0(N0(),1)});function pJ(Q,J,Z,X){if(!Q)return`${J} found · ${Z} verified`;if(Q==="synthesizing"){let q=[`${Z} verified`];if(X>0)q.push(`${X} refuted`);return q.push("deduping"),q.join(" · ")}if(Q==="verifying"){let q=[`${J} found`,`${Z} verified`];if(X>0)q.push(`${X} refuted`);return q.join(" · ")}return J>0?`${J} found`:"finding"}function TJ(Q){let J=WJ.c(5),{text:Z,phase:X}=Q,q=X===void 0?0:X,z;if(J[0]!==Z)z=[...Z],J[0]=Z,J[1]=z;else z=J[1];let W;if(J[2]!==q||J[3]!==z)W=Y(a,{children:z.map((G,N)=>Y(V,{color:lZ(N+q),children:G},N))}),J[2]=q,J[3]=z,J[4]=W;else W=J[4];return W}function uJ(Q,J,Z){let X=cJ.useRef(Q),q=cJ.useRef(J);if(Z||Q<X.current)X.current=Q;else if(Q>X.current&&J!==q.current)X.current+=1,q.current=J;return X.current}function BX(Q){let J=WJ.c(15),{session:Z}=Q,q=iZ().prefersReducedMotion??!1,z=Z.reviewProgress,W=Z.status==="running",[,G]=rZ(W&&!q?kZ:null),N=z?.bugsFound??0,R=z?.bugsVerified??0,U=z?.bugsRefuted??0,P=q||!W,O=uJ(N,G,P),w=uJ(R,G,P),f=uJ(U,G,P),M=Math.floor(G/(kZ*3))%7;if(Z.status==="completed"){let K;if(J[0]===Symbol.for("react.memo_cache_sentinel"))K=F(a,{children:[F(V,{color:"background",children:[K0," "]}),Y(TJ,{text:"ultrareview",phase:0}),Y(V,{dimColor:!0,children:" ready · shift+↓ to view"})]}),J[0]=K;else K=J[0];return K}if(Z.status==="failed"){let K;if(J[1]===Symbol.for("react.memo_cache_sentinel"))K=F(a,{children:[F(V,{color:"background",children:[K0," "]}),Y(TJ,{text:"ultrareview",phase:0}),F(V,{color:"error",dimColor:!0,children:[" · ","error"]})]}),J[1]=K;else K=J[1];return K}let C;if(J[2]!==O||J[3]!==z||J[4]!==f||J[5]!==w)C=!z?"setting up":pJ(z.stage,O,w,f),J[2]=O,J[3]=z,J[4]=f,J[5]=w,J[6]=C;else C=J[6];let L=C,b;if(J[7]===Symbol.for("react.memo_cache_sentinel"))b=F(V,{color:"background",children:[q0," "]}),J[7]=b;else b=J[7];let I=W?M:0,A;if(J[8]!==I)A=Y(TJ,{text:"ultrareview",phase:I}),J[8]=I,J[9]=A;else A=J[9];let h;if(J[10]!==L)h=F(V,{dimColor:!0,children:[" · ",L]}),J[10]=L,J[11]=h;else h=J[11];let y;if(J[12]!==A||J[13]!==h)y=F(a,{children:[b,A,h]}),J[12]=A,J[13]=h,J[14]=y;else y=J[14];return y}function p0(Q){let J=WJ.c(11),{session:Z}=Q;if(Z.isRemoteReview){let G;if(J[0]!==Z)G=Y(BX,{session:Z}),J[0]=Z,J[1]=G;else G=J[1];return G}if(Z.status==="completed"){let G;if(J[2]===Symbol.for("react.memo_cache_sentinel"))G=Y(V,{bold:!0,color:"success",dimColor:!0,children:"done"}),J[2]=G;else G=J[2];return G}if(Z.status==="failed"){let G;if(J[3]===Symbol.for("react.memo_cache_sentinel"))G=Y(V,{bold:!0,color:"error",dimColor:!0,children:"error"}),J[3]=G;else G=J[3];return G}if(!Z.todoList.length){let G;if(J[4]!==Z.status)G=F(V,{dimColor:!0,children:[Z.status,"…"]}),J[4]=Z.status,J[5]=G;else G=J[5];return G}let X;if(J[6]!==Z.todoList)X=E0(Z.todoList,IX),J[6]=Z.todoList,J[7]=X;else X=J[7];let q=X,z=Z.todoList.length,W;if(J[8]!==q||J[9]!==z)W=F(V,{dimColor:!0,children:[q,"/",z]}),J[8]=q,J[9]=z,J[10]=W;else W=J[10];return W}function IX(Q){return Q.status==="completed"}var WJ,cJ,kZ=80;var mJ=n(()=>{a0();bX();G0();dJ();AX();$();WJ=J0(N0(),1),cJ=J0(d0(),1)});function P0(Q){let J=xJ.c(4),{status:Z,label:X,suffix:q}=Q,z=X??Z,W=Z==="completed"?"success":Z==="failed"?"error":Z==="killed"?"warning":void 0,G;if(J[0]!==W||J[1]!==z||J[2]!==q)G=F(V,{color:W,dimColor:!0,children:["(",z,q,")"]}),J[0]=W,J[1]=z,J[2]=q,J[3]=G;else G=J[3];return G}function $Z(Q){let J=xJ.c(4),{shell:Z}=Q;switch(Z.status){case"completed":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=Y(P0,{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=Y(P0,{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=Y(P0,{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=Y(P0,{status:"running"}),J[3]=X;else X=J[3];return X}}}var xJ;var oZ=n(()=>{G0();$();xJ=J0(N0(),1)});function sZ(Q){let J=aZ.c(92),{task:Z,maxActivityWidth:X}=Q,q=X??40;switch(Z.type){case"local_bash":{let z=Z.kind==="monitor"?Z.description:Z.command,W;if(J[0]!==q||J[1]!==z)W=L0(z,q,!0),J[0]=q,J[1]=z,J[2]=W;else W=J[2];let G;if(J[3]!==Z)G=Y($Z,{shell:Z}),J[3]=Z,J[4]=G;else G=J[4];let N;if(J[5]!==W||J[6]!==G)N=F(V,{children:[W," ",G]}),J[5]=W,J[6]=G,J[7]=N;else N=J[7];return N}case"remote_agent":{if(Z.isRemoteReview){let O;if(J[8]!==Z)O=Y(V,{children:Y(p0,{session:Z})}),J[8]=Z,J[9]=O;else O=J[9];return O}let W=Z.status==="running"||Z.status==="pending"?q0:K0,G;if(J[10]!==W)G=F(V,{dimColor:!0,children:[W," "]}),J[10]=W,J[11]=G;else G=J[11];let N;if(J[12]!==q||J[13]!==Z.title)N=L0(Z.title,q,!0),J[12]=q,J[13]=Z.title,J[14]=N;else N=J[14];let R;if(J[15]===Symbol.for("react.memo_cache_sentinel"))R=Y(V,{dimColor:!0,children:" · "}),J[15]=R;else R=J[15];let U;if(J[16]!==Z)U=Y(p0,{session:Z}),J[16]=Z,J[17]=U;else U=J[17];let P;if(J[18]!==G||J[19]!==N||J[20]!==U)P=F(V,{children:[G,N,R,U]}),J[18]=G,J[19]=N,J[20]=U,J[21]=P;else P=J[21];return P}case"local_agent":{let z;if(J[22]!==q||J[23]!==Z.description)z=L0(Z.description,q,!0),J[22]=q,J[23]=Z.description,J[24]=z;else z=J[24];let W=Z.status==="completed"?"done":void 0,G=Z.status==="completed"&&!Z.notified?", unread":void 0,N;if(J[25]!==W||J[26]!==G||J[27]!==Z.status)N=Y(P0,{status:Z.status,label:W,suffix:G}),J[25]=W,J[26]=G,J[27]=Z.status,J[28]=N;else N=J[28];let R;if(J[29]!==z||J[30]!==N)R=F(V,{children:[z," ",N]}),J[29]=z,J[30]=N,J[31]=R;else R=J[31];return R}case"in_process_teammate":{let z,W,G,N,R,U;if(J[32]!==q||J[33]!==Z){let w=FJ(Z);W=V;let f;if(J[40]!==Z.identity.color)f=HJ(Z.identity.color),J[40]=Z.identity.color,J[41]=f;else f=J[41];if(J[42]!==f||J[43]!==Z.identity.agentName)U=F(V,{color:f,children:["@",Z.identity.agentName]}),J[42]=f,J[43]=Z.identity.agentName,J[44]=U;else U=J[44];z=V,G=!0,N=": ",R=L0(w,q,!0),J[32]=q,J[33]=Z,J[34]=z,J[35]=W,J[36]=G,J[37]=N,J[38]=R,J[39]=U}else z=J[34],W=J[35],G=J[36],N=J[37],R=J[38],U=J[39];let P;if(J[45]!==z||J[46]!==G||J[47]!==N||J[48]!==R)P=F(z,{dimColor:G,children:[N,R]}),J[45]=z,J[46]=G,J[47]=N,J[48]=R,J[49]=P;else P=J[49];let O;if(J[50]!==W||J[51]!==U||J[52]!==P)O=F(W,{children:[U,P]}),J[50]=W,J[51]=U,J[52]=P,J[53]=O;else O=J[53];return O}case"local_workflow":{let z=Z.workflowName??Z.summary??Z.description,W;if(J[54]!==q||J[55]!==z)W=L0(z,q,!0),J[54]=q,J[55]=z,J[56]=W;else W=J[56];let G;if(J[57]!==Z.agentCount||J[58]!==Z.status)G=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]=G;else G=J[59];let N=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[60]!==G||J[61]!==N||J[62]!==Z.status)R=Y(P0,{status:Z.status,label:G,suffix:N}),J[60]=G,J[61]=N,J[62]=Z.status,J[63]=R;else R=J[63];let U;if(J[64]!==W||J[65]!==R)U=F(V,{children:[W," ",R]}),J[64]=W,J[65]=R,J[66]=U;else U=J[66];return U}case"monitor_mcp":{let z;if(J[67]!==q||J[68]!==Z.description)z=L0(Z.description,q,!0),J[67]=q,J[68]=Z.description,J[69]=z;else z=J[69];let W=Z.status==="completed"?"done":void 0,G=Z.status==="completed"&&!Z.notified?", unread":void 0,N;if(J[70]!==W||J[71]!==G||J[72]!==Z.status)N=Y(P0,{status:Z.status,label:W,suffix:G}),J[70]=W,J[71]=G,J[72]=Z.status,J[73]=N;else N=J[73];let R;if(J[74]!==z||J[75]!==N)R=F(V,{children:[z," ",N]}),J[74]=z,J[75]=N,J[76]=R;else R=J[76];return R}case"dream":{let z=Z.filesTouched.length,W;if(J[77]!==z||J[78]!==Z.phase||J[79]!==Z.sessionsReviewing)W=Z.phase==="updating"&&z>0?`${z} ${Q0(z,"file")}`:`${Z.sessionsReviewing} ${Q0(Z.sessionsReviewing,"session")}`,J[77]=z,J[78]=Z.phase,J[79]=Z.sessionsReviewing,J[80]=W;else W=J[80];let G=W,N;if(J[81]!==G||J[82]!==Z.phase)N=F(V,{dimColor:!0,children:["· ",Z.phase," · ",G]}),J[81]=G,J[82]=Z.phase,J[83]=N;else N=J[83];let R=Z.status==="completed"?"done":void 0,U=Z.status==="completed"&&!Z.notified?", unread":void 0,P;if(J[84]!==R||J[85]!==U||J[86]!==Z.status)P=Y(P0,{status:Z.status,label:R,suffix:U}),J[84]=R,J[85]=U,J[86]=Z.status,J[87]=P;else P=J[87];let O;if(J[88]!==N||J[89]!==P||J[90]!==Z.description)O=F(V,{children:[Z.description," ",N," ",P]}),J[88]=N,J[89]=P,J[90]=Z.description,J[91]=O;else O=J[91];return O}case"container":return Y(V,{children:L0($0(Z),q,!0)})}}var aZ;var eZ=n(()=>{G0();c0();nZ();kJ();a0();mJ();oZ();gJ();CJ();$();aZ=J0(N0(),1)});function ZQ(Q){return SX.test(Q)}function _X(Q){return["logs","--tail",String(NJ),"--timestamps",Q]}function jX(Q,J){let Z=[],X=0;for(let q of[Q,J]){let z="";for(let W of q.split(`
|
|
17
|
-
`)){if(W==="")continue;let G=hX.exec(W);if(G)z=G[1],Z.push({key:z,seq:X++,line:{time:G[2],text:G[3]}});else Z.push({key:z,seq:X++,line:{time:null,text:W}})}}return Z.sort((q,z)=>q.key===z.key?q.seq-z.seq:q.key<z.key?-1:1),Z.slice(-NJ).map((q)=>q.line)}async function QQ(Q,J){let Z=await JQ(_X(Q),{timeout:vX,abortSignal:J});if(Z.code!==0)return{kind:"error",message:Z.unavailable?tZ(Z.unavailable):Z.stderr.split(`
|
|
18
|
-
`).find((z)=>z.trim()!=="")??`docker logs exited with code ${Z.code}`};let X=jX(Z.stdout,Z.stderr);return X.length===0?{kind:"empty"}:{kind:"ok",lines:X}}var NJ=50,vX=1e4,hX,SX;var XQ=n(()=>{DX();hX=/^(\d{4}-\d{2}-\d{2}T(\d{2}:\d{2}:\d{2})\.\d+Z) (.*)$/;SX=/^[[(]?(?:\d{4}-\d{2}-\d{2}[T ])?\d{2}:\d{2}:\d{2}/});function zQ({task:Q,onDone:J,onBack:Z,onStop:X}){let{columns:q}=j0(),[z,W]=g0.useState(null),G=Q.container.id,N=Q.container.state==="running";g0.useEffect(()=>{let O=!1,w=new AbortController,f=async()=>{let C=await QQ(G,w.signal);if(!O)W(C)};if(f(),!N)return()=>{O=!0,w.abort()};let M=setInterval(()=>void f(),gX);return()=>{O=!0,w.abort(),clearInterval(M)}},[G,N]);let R=g0.useCallback(()=>J("Container logs dismissed",{display:"system"}),[J]);z0({"confirm:yes":R},{context:"Confirmation"});let U=(O)=>{if(O.key===" ")O.preventDefault(),R();else if(O.key==="left"&&Z)O.preventDefault(),Z();else if(O.key==="x"&&X)O.preventDefault(),X()},P=(O)=>{if(O.pending)return F(V,{children:["Press ",O.keyName," again to exit"]});return F(t,{children:[Z&&Y(k,{shortcut:"←",action:"go back"}),Y(k,{shortcut:"Esc/Enter/Space",action:"close"}),X&&Y(k,{shortcut:"x",action:"stop container"})]})};return Y(E,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:U,children:F(s,{title:`Logs · ${h0(Q.container)}`,subtitle:Y(V,{children:l0(Q)}),onCancel:R,color:"background",inputGuide:P,children:[Y(E,{marginX:2,flexDirection:"column",children:F(V,{children:[Y(V,{bold:!0,children:"Image:"})," ",Q.container.image]})}),Y(TX,{logs:z,columns:q})]})})}function TX({logs:Q,columns:J}){if(Q===null)return Y(E,{marginX:2,children:Y(V,{dimColor:!0,children:"Loading logs…"})});if(Q.kind==="error")return Y(E,{marginX:2,flexDirection:"column",children:Y(V,{color:"error",children:Q.message})});if(Q.kind==="empty")return Y(E,{marginX:2,flexDirection:"column",children:Y(V,{dimColor:!0,children:"No logs written yet."})});let Z=Q.lines.slice(-YQ);return F(E,{marginX:2,flexDirection:"column",children:[Y(E,{borderStyle:"round",paddingX:1,flexDirection:"column",height:YQ+2,maxWidth:J-6,children:Z.map((X,q)=>F(V,{wrap:"truncate-end",children:[X.time!==null&&X.text!==""&&!ZQ(X.text)&&F(V,{dimColor:!0,children:[X.time," "]}),X.text]},q))}),F(V,{dimColor:!0,italic:!0,children:["Showing ",Z.length," of the last ",NJ," lines"]})]})}var g0,YQ=14,gX=2000;var qQ=n(()=>{G0();D0();v0();I0();_0();rJ();i0();XQ();$();g0=J0(d0(),1)});function VQ(Q){let J=GQ.c(70),{task:Z,onDone:X,onBack:q,onKill:z}=Q,W=R0(Z.startTime,Z.status==="running",1000,0),G;if(J[0]!==X)G={"confirm:yes":X},J[0]=X,J[1]=G;else G=J[1];let N;if(J[2]===Symbol.for("react.memo_cache_sentinel"))N={context:"Confirmation"},J[2]=N;else N=J[2];z0(G,N);let R;if(J[3]!==q||J[4]!==X||J[5]!==z||J[6]!==Z.status)R=(B)=>{if(B.key===" ")B.preventDefault(),X();else if(B.key==="left"&&q)B.preventDefault(),q();else if(B.key==="x"&&Z.status==="running"&&z)B.preventDefault(),z()},J[3]=q,J[4]=X,J[5]=z,J[6]=Z.status,J[7]=R;else R=J[7];let U=R,P,O,w,f,M,C,L,b,I,A,h,y,K,p,c,j;if(J[8]!==W||J[9]!==U||J[10]!==q||J[11]!==X||J[12]!==z||J[13]!==Z.filesTouched.length||J[14]!==Z.sessionsReviewing||J[15]!==Z.status||J[16]!==Z.turns){let B=Z.turns.filter(dX),_=B.slice(-uX),T=B.length-_.length;w=E,L="column",b=0,I=!0,A=U,O=s,c="Memory consolidation";let g=Z.sessionsReviewing,D;if(J[33]!==Z.sessionsReviewing)D=Q0(Z.sessionsReviewing,"session"),J[33]=Z.sessionsReviewing,J[34]=D;else D=J[34];let u;if(J[35]!==Z.filesTouched.length)u=Z.filesTouched.length>0&&F(a,{children:[" ","· ",Z.filesTouched.length," ",Q0(Z.filesTouched.length,"file")," touched"]}),J[35]=Z.filesTouched.length,J[36]=u;else u=J[36];if(J[37]!==W||J[38]!==D||J[39]!==u||J[40]!==Z.sessionsReviewing)j=F(V,{dimColor:!0,children:[W," · reviewing ",g," ",D,u]}),J[37]=W,J[38]=D,J[39]=u,J[40]=Z.sessionsReviewing,J[41]=j;else j=J[41];if(f=X,M="background",J[42]!==q||J[43]!==z||J[44]!==Z.status)C=(m)=>m.pending?F(V,{children:["Press ",m.keyName," again to exit"]}):F(t,{children:[q&&Y(k,{shortcut:"←",action:"go back"}),Y(k,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&Y(k,{shortcut:"x",action:"stop"})]}),J[42]=q,J[43]=z,J[44]=Z.status,J[45]=C;else C=J[45];P=E,h="column",y=1;let v;if(J[46]===Symbol.for("react.memo_cache_sentinel"))v=Y(V,{bold:!0,children:"Status:"}),J[46]=v;else v=J[46];if(J[47]!==Z.status)K=F(V,{children:[v," ",Z.status==="running"?Y(V,{color:"background",children:"running"}):Z.status==="completed"?Y(V,{color:"success",children:Z.status}):Y(V,{color:"error",children:Z.status})]}),J[47]=Z.status,J[48]=K;else K=J[48];p=_.length===0?Y(V,{dimColor:!0,children:Z.status==="running"?"Starting…":"(no text output)"}):F(a,{children:[T>0&&F(V,{dimColor:!0,children:["(",T," earlier ",Q0(T,"turn"),")"]}),_.map(cX)]}),J[8]=W,J[9]=U,J[10]=q,J[11]=X,J[12]=z,J[13]=Z.filesTouched.length,J[14]=Z.sessionsReviewing,J[15]=Z.status,J[16]=Z.turns,J[17]=P,J[18]=O,J[19]=w,J[20]=f,J[21]=M,J[22]=C,J[23]=L,J[24]=b,J[25]=I,J[26]=A,J[27]=h,J[28]=y,J[29]=K,J[30]=p,J[31]=c,J[32]=j}else P=J[17],O=J[18],w=J[19],f=J[20],M=J[21],C=J[22],L=J[23],b=J[24],I=J[25],A=J[26],h=J[27],y=J[28],K=J[29],p=J[30],c=J[31],j=J[32];let x;if(J[49]!==P||J[50]!==h||J[51]!==y||J[52]!==K||J[53]!==p)x=F(P,{flexDirection:h,gap:y,children:[K,p]}),J[49]=P,J[50]=h,J[51]=y,J[52]=K,J[53]=p,J[54]=x;else x=J[54];let d;if(J[55]!==O||J[56]!==f||J[57]!==M||J[58]!==C||J[59]!==x||J[60]!==c||J[61]!==j)d=Y(O,{title:c,subtitle:j,onCancel:f,color:M,inputGuide:C,children:x}),J[55]=O,J[56]=f,J[57]=M,J[58]=C,J[59]=x,J[60]=c,J[61]=j,J[62]=d;else d=J[62];let S;if(J[63]!==w||J[64]!==L||J[65]!==b||J[66]!==I||J[67]!==A||J[68]!==d)S=Y(w,{flexDirection:L,tabIndex:b,autoFocus:I,onKeyDown:A,children:d}),J[63]=w,J[64]=L,J[65]=b,J[66]=I,J[67]=A,J[68]=d,J[69]=S;else S=J[69];return S}function cX(Q,J){return F(E,{flexDirection:"column",children:[Y(V,{wrap:"wrap",children:Q.text}),Q.toolUseCount>0&&F(V,{dimColor:!0,children:[" ","(",Q.toolUseCount," ",Q0(Q.toolUseCount,"tool"),")"]})]},J)}function dX(Q){return Q.text!==""}var GQ,uX=6;var WQ=n(()=>{GJ();G0();_0();kJ();D0();v0();I0();$();GQ=J0(N0(),1)});function FQ(Q){let J=HQ.c(63),{teammate:Z,onDone:X,onKill:q,onBack:z,onForeground:W}=Q,[G]=qJ(),N;if(J[0]===Symbol.for("react.memo_cache_sentinel"))N=VJ(zJ()),J[0]=N;else N=J[0];let R=N,U=R0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),P;if(J[1]!==X)P={"confirm:yes":X},J[1]=X,J[2]=P;else P=J[2];let O;if(J[3]===Symbol.for("react.memo_cache_sentinel"))O={context:"Confirmation"},J[3]=O;else O=J[3];z0(P,O);let w;if(J[4]!==z||J[5]!==X||J[6]!==W||J[7]!==q||J[8]!==Z.status)w=(r)=>{if(r.key===" ")r.preventDefault(),X();else if(r.key==="left"&&z)r.preventDefault(),z();else if(r.key==="x"&&Z.status==="running"&&q)r.preventDefault(),q();else if(r.key==="f"&&Z.status==="running"&&W)r.preventDefault(),W()},J[4]=z,J[5]=X,J[6]=W,J[7]=q,J[8]=Z.status,J[9]=w;else w=J[9];let f=w,M;if(J[10]!==Z)M=FJ(Z),J[10]=Z,J[11]=M;else M=J[11];let C=M,L=Z.result?.totalTokens??Z.progress?.tokenCount,b=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,I;if(J[12]!==Z.prompt)I=C0(Z.prompt,300),J[12]=Z.prompt,J[13]=I;else I=J[13];let A=I,h;if(J[14]!==Z.identity.color)h=HJ(Z.identity.color),J[14]=Z.identity.color,J[15]=h;else h=J[15];let y;if(J[16]!==h||J[17]!==Z.identity.agentName)y=F(V,{color:h,children:["@",Z.identity.agentName]}),J[16]=h,J[17]=Z.identity.agentName,J[18]=y;else y=J[18];let K;if(J[19]!==C)K=C&&F(V,{dimColor:!0,children:[" (",C,")"]}),J[19]=C,J[20]=K;else K=J[20];let p;if(J[21]!==y||J[22]!==K)p=F(V,{children:[y,K]}),J[21]=y,J[22]=K,J[23]=p;else p=J[23];let c=p,j;if(J[24]!==Z.status)j=Z.status!=="running"&&F(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]=j;else j=J[25];let x;if(J[26]!==L)x=L!==void 0&&L>0&&F(a,{children:[" · ",YJ(L)," tokens"]}),J[26]=L,J[27]=x;else x=J[27];let d;if(J[28]!==b)d=b!==void 0&&b>0&&F(a,{children:[" ","· ",b," ",b===1?"tool":"tools"]}),J[28]=b,J[29]=d;else d=J[29];let S;if(J[30]!==U||J[31]!==x||J[32]!==d)S=F(V,{dimColor:!0,children:[U,x,d]}),J[30]=U,J[31]=x,J[32]=d,J[33]=S;else S=J[33];let B;if(J[34]!==j||J[35]!==S)B=F(V,{children:[j,S]}),J[34]=j,J[35]=S,J[36]=B;else B=J[36];let _=B,T;if(J[37]!==z||J[38]!==W||J[39]!==q||J[40]!==Z.status)T=(r)=>r.pending?F(V,{children:["Press ",r.keyName," again to exit"]}):F(t,{children:[z&&Y(k,{shortcut:"←",action:"go back"}),Y(k,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&q&&Y(k,{shortcut:"x",action:"stop"}),Z.status==="running"&&W&&Y(k,{shortcut:"f",action:"foreground"})]}),J[37]=z,J[38]=W,J[39]=q,J[40]=Z.status,J[41]=T;else T=J[41];let g;if(J[42]!==Z.progress||J[43]!==Z.status||J[44]!==G)g=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&F(E,{flexDirection:"column",children:[Y(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((r,H)=>F(V,{dimColor:H<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[H===Z.progress.recentActivities.length-1?"› ":" ",XJ(r,R,G)]},H))]}),J[42]=Z.progress,J[43]=Z.status,J[44]=G,J[45]=g;else g=J[45];let D;if(J[46]===Symbol.for("react.memo_cache_sentinel"))D=Y(V,{bold:!0,dimColor:!0,children:"Prompt"}),J[46]=D;else D=J[46];let u;if(J[47]!==A)u=F(E,{flexDirection:"column",marginTop:1,children:[D,Y(V,{wrap:"wrap",children:A})]}),J[47]=A,J[48]=u;else u=J[48];let v;if(J[49]!==Z.error||J[50]!==Z.status)v=Z.status==="failed"&&Z.error&&F(E,{flexDirection:"column",marginTop:1,children:[Y(V,{bold:!0,color:"error",children:"Error"}),Y(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[49]=Z.error,J[50]=Z.status,J[51]=v;else v=J[51];let m;if(J[52]!==X||J[53]!==_||J[54]!==T||J[55]!==g||J[56]!==u||J[57]!==v||J[58]!==c)m=F(s,{title:c,subtitle:_,onCancel:X,color:"background",inputGuide:T,children:[g,u,v]}),J[52]=X,J[53]=_,J[54]=T,J[55]=g,J[56]=u,J[57]=v,J[58]=c,J[59]=m;else m=J[59];let i;if(J[60]!==f||J[61]!==m)i=Y(E,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:f,children:m}),J[60]=f,J[61]=m,J[62]=i;else i=J[62];return i}var HQ;var NQ=n(()=>{GJ();G0();_0();_J();cZ();c0();nZ();D0();v0();I0();jJ();gJ();$();HQ=J0(N0(),1)});function iX(Q,J){if(Q===o0)return"Review the plan in Claude Code on the web";if(!J||typeof J!=="object")return Q;if(Q===MQ&&"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 q=X.replace(/\s+/g," ").trim();return`Answer in browser: ${C0(q,50)}`}}}for(let Z of Object.values(J))if(typeof Z==="string"&&Z.trim()){let X=Z.replace(/\s+/g," ").trim();return`${Q} ${C0(X,60)}`}return Q}function nX(Q){let J=OJ.c(70),{session:Z,onDone:X,onBack:q,onKill:z}=Q,W=Z.status==="running"||Z.status==="pending",G=Z.ultraplanPhase,N=W?G?$X[G]:"running":Z.status,R=R0(Z.startTime,W,1000,0,Z.endTime),U=0,P=0,O=null;for(let X0 of Z.log){if(X0.type!=="assistant")continue;for(let Y0 of X0.message.content){if(Y0.type!=="tool_use")continue;if(P++,O=Y0,Y0.name===OQ||Y0.name===fQ)U++}}let w=1+U,f;if(J[0]!==O)f=O?iX(O.name,O.input):null,J[0]=O,J[1]=f;else f=J[1];let M;if(J[2]!==P||J[3]!==w||J[4]!==f)M={agentsWorking:w,toolCalls:P,lastToolCall:f},J[2]=P,J[3]=w,J[4]=f,J[5]=M;else M=J[5];let{agentsWorking:C,toolCalls:L,lastToolCall:b}=M,I;if(J[6]!==Z.sessionId)I=x0(Z.sessionId),J[6]=Z.sessionId,J[7]=I;else I=J[7];let A=I,h;if(J[8]!==q||J[9]!==X)h=q??(()=>X("Remote session details dismissed",{display:"system"})),J[8]=q,J[9]=X,J[10]=h;else h=J[10];let y=h,[K,p]=U0.useState(!1);if(K){let X0;if(J[11]===Symbol.for("react.memo_cache_sentinel"))X0=()=>p(!1),J[11]=X0;else X0=J[11];let Y0;if(J[12]===Symbol.for("react.memo_cache_sentinel"))Y0=Y(V,{dimColor:!0,children:"This will terminate the Claude Code on the web session."}),J[12]=Y0;else Y0=J[12];let A0;if(J[13]===Symbol.for("react.memo_cache_sentinel"))A0={label:"Terminate session",value:"stop"},J[13]=A0;else A0=J[13];let b0;if(J[14]===Symbol.for("react.memo_cache_sentinel"))b0=[A0,{label:"Back",value:"back"}],J[14]=b0;else b0=J[14];let M0;if(J[15]!==y||J[16]!==z)M0=Y(s,{title:"Stop ultraplan?",onCancel:X0,color:"background",children:F(E,{flexDirection:"column",gap:1,children:[Y0,Y(m0,{options:b0,onChange:(k0)=>{if(k0==="stop")z?.(),y();else p(!1)}})]})}),J[15]=y,J[16]=z,J[17]=M0;else M0=J[17];return M0}let c=G==="plan_ready"?K0:q0,j;if(J[18]!==c)j=F(V,{color:"background",children:[c," "]}),J[18]=c,J[19]=j;else j=J[19];let x;if(J[20]===Symbol.for("react.memo_cache_sentinel"))x=Y(V,{bold:!0,children:"ultraplan"}),J[20]=x;else x=J[20];let d;if(J[21]!==R||J[22]!==N)d=F(V,{dimColor:!0,children:[" · ",R," · ",N]}),J[21]=R,J[22]=N,J[23]=d;else d=J[23];let S;if(J[24]!==j||J[25]!==d)S=F(V,{children:[j,x,d]}),J[24]=j,J[25]=d,J[26]=S;else S=J[26];let B;if(J[27]!==G)B=G==="plan_ready"&&F(V,{color:"success",children:[PJ.tick," "]}),J[27]=G,J[28]=B;else B=J[28];let _;if(J[29]!==C)_=Q0(C,"agent"),J[29]=C,J[30]=_;else _=J[30];let T=G?oX[G]:"working",g;if(J[31]!==L)g=Q0(L,"call"),J[31]=L,J[32]=g;else g=J[32];let D;if(J[33]!==C||J[34]!==B||J[35]!==_||J[36]!==T||J[37]!==g||J[38]!==L)D=F(V,{children:[B,C," ",_," ",T," · ",L," tool"," ",g]}),J[33]=C,J[34]=B,J[35]=_,J[36]=T,J[37]=g,J[38]=L,J[39]=D;else D=J[39];let u;if(J[40]!==b)u=b&&Y(V,{dimColor:!0,children:b}),J[40]=b,J[41]=u;else u=J[41];let v;if(J[42]!==A)v=Y(V,{dimColor:!0,children:A}),J[42]=A,J[43]=v;else v=J[43];let m;if(J[44]!==A||J[45]!==v)m=Y(UJ,{url:A,children:v}),J[44]=A,J[45]=v,J[46]=m;else m=J[46];let i;if(J[47]===Symbol.for("react.memo_cache_sentinel"))i={label:"Review in Claude Code on the web",value:"open"},J[47]=i;else i=J[47];let r;if(J[48]!==z||J[49]!==W)r=z&&W?[{label:"Stop ultraplan",value:"stop"}]:[],J[48]=z,J[49]=W,J[50]=r;else r=J[50];let H;if(J[51]===Symbol.for("react.memo_cache_sentinel"))H={label:"Back",value:"back"},J[51]=H;else H=J[51];let l;if(J[52]!==r)l=[i,...r,H],J[52]=r,J[53]=l;else l=J[53];let e;if(J[54]!==y||J[55]!==X||J[56]!==A)e=(X0)=>{switch(X0){case"open":{lJ(A),X();return}case"stop":{p(!0);return}case"back":{y();return}}},J[54]=y,J[55]=X,J[56]=A,J[57]=e;else e=J[57];let W0;if(J[58]!==l||J[59]!==e)W0=Y(m0,{options:l,onChange:e}),J[58]=l,J[59]=e,J[60]=W0;else W0=J[60];let H0;if(J[61]!==D||J[62]!==u||J[63]!==m||J[64]!==W0)H0=F(E,{flexDirection:"column",gap:1,children:[D,u,m,W0]}),J[61]=D,J[62]=u,J[63]=m,J[64]=W0,J[65]=H0;else H0=J[65];let y0;if(J[66]!==y||J[67]!==S||J[68]!==H0)y0=Y(s,{title:S,onCancel:y,color:"background",children:H0}),J[66]=y,J[67]=S,J[68]=H0,J[69]=y0;else y0=J[69];return y0}function aX(Q){let J=OJ.c(15),{stage:Z,completed:X,hasProgress:q}=Q,z;if(J[0]!==Z)z=Z?RQ.indexOf(Z):-1,J[0]=Z,J[1]=z;else z=J[1];let W=z,G=!X&&!q,N;if(J[2]!==G)N=G?Y(V,{color:"background",children:"Setup"}):Y(V,{dimColor:!0,children:"Setup"}),J[2]=G,J[3]=N;else N=J[3];let R;if(J[4]===Symbol.for("react.memo_cache_sentinel"))R=Y(V,{dimColor:!0,children:" → "}),J[4]=R;else R=J[4];let U;if(J[5]!==X||J[6]!==W||J[7]!==G)U=RQ.map((w,f)=>{let M=!X&&!G&&f===W;return F(U0.default.Fragment,{children:[f>0&&Y(V,{dimColor:!0,children:" → "}),M?Y(V,{color:"background",children:PQ[w]}):Y(V,{dimColor:!0,children:PQ[w]})]},w)}),J[5]=X,J[6]=W,J[7]=G,J[8]=U;else U=J[8];let P;if(J[9]!==X)P=X&&Y(V,{color:"success",children:" ✓"}),J[9]=X,J[10]=P;else P=J[10];let O;if(J[11]!==N||J[12]!==U||J[13]!==P)O=F(V,{children:[N,R,U,P]}),J[11]=N,J[12]=U,J[13]=P,J[14]=O;else O=J[14];return O}function sX(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 q=[`${Z} ${Q0(Z,"finding")}`];if(X>0)q.push(`${X} refuted`);return q.join(" · ")}return pJ(J.stage,J.bugsFound,Z,X)}function eX(Q){let J=OJ.c(56),{session:Z,onDone:X,onBack:q,onKill:z}=Q,W=Z.status==="completed",G=Z.status==="running"||Z.status==="pending",[N,R]=U0.useState(!1),U=R0(Z.startTime,G,1000,0,Z.endTime),P;if(J[0]!==X)P=()=>X("Remote session details dismissed",{display:"system"}),J[0]=X,J[1]=P;else P=J[1];let O=P,w=q??O,f;if(J[2]!==Z.sessionId)f=x0(Z.sessionId),J[2]=Z.sessionId,J[3]=f;else f=J[3];let M=f,C=W?"ready":G?"running":Z.status;if(N){let m;if(J[4]===Symbol.for("react.memo_cache_sentinel"))m=()=>R(!1),J[4]=m;else m=J[4];let i;if(J[5]===Symbol.for("react.memo_cache_sentinel"))i=Y(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]=i;else i=J[5];let r;if(J[6]===Symbol.for("react.memo_cache_sentinel"))r={label:"Stop ultrareview",value:"stop"},J[6]=r;else r=J[6];let H;if(J[7]===Symbol.for("react.memo_cache_sentinel"))H=[r,{label:"Back",value:"back"}],J[7]=H;else H=J[7];let l;if(J[8]!==w||J[9]!==z)l=Y(s,{title:"Stop ultrareview?",onCancel:m,color:"background",children:F(E,{flexDirection:"column",gap:1,children:[i,Y(m0,{options:H,onChange:(e)=>{if(e==="stop")z?.(),w();else R(!1)}})]})}),J[8]=w,J[9]=z,J[10]=l;else l=J[10];return l}let L;if(J[11]!==W||J[12]!==z||J[13]!==G)L=W?[{label:"Open in Claude Code on the web",value:"open"},{label:"Dismiss",value:"dismiss"}]:[{label:"Open in Claude Code on the web",value:"open"},...z&&G?[{label:"Stop ultrareview",value:"stop"}]:[],{label:"Back",value:"back"}],J[11]=W,J[12]=z,J[13]=G,J[14]=L;else L=J[14];let b=L,I;if(J[15]!==w||J[16]!==O||J[17]!==X||J[18]!==M)I=(m)=>{J:switch(m){case"open":{lJ(M),X();break J}case"stop":{R(!0);break J}case"back":{w();break J}case"dismiss":O()}},J[15]=w,J[16]=O,J[17]=X,J[18]=M,J[19]=I;else I=J[19];let A=I,h=W?K0:q0,y;if(J[20]!==h)y=F(V,{color:"background",children:[h," "]}),J[20]=h,J[21]=y;else y=J[21];let K;if(J[22]===Symbol.for("react.memo_cache_sentinel"))K=Y(V,{bold:!0,children:"ultrareview"}),J[22]=K;else K=J[22];let p;if(J[23]!==U||J[24]!==C)p=F(V,{dimColor:!0,children:[" · ",U," · ",C]}),J[23]=U,J[24]=C,J[25]=p;else p=J[25];let c;if(J[26]!==y||J[27]!==p)c=F(V,{children:[y,K,p]}),J[26]=y,J[27]=p,J[28]=c;else c=J[28];let j=Z.reviewProgress?.stage,x=!!Z.reviewProgress,d;if(J[29]!==W||J[30]!==j||J[31]!==x)d=Y(aX,{stage:j,completed:W,hasProgress:x}),J[29]=W,J[30]=j,J[31]=x,J[32]=d;else d=J[32];let S;if(J[33]!==Z)S=sX(Z),J[33]=Z,J[34]=S;else S=J[34];let B;if(J[35]!==S)B=Y(V,{children:S}),J[35]=S,J[36]=B;else B=J[36];let _;if(J[37]!==M)_=Y(V,{dimColor:!0,children:M}),J[37]=M,J[38]=_;else _=J[38];let T;if(J[39]!==M||J[40]!==_)T=Y(UJ,{url:M,children:_}),J[39]=M,J[40]=_,J[41]=T;else T=J[41];let g;if(J[42]!==B||J[43]!==T)g=F(E,{flexDirection:"column",children:[B,T]}),J[42]=B,J[43]=T,J[44]=g;else g=J[44];let D;if(J[45]!==A||J[46]!==b)D=Y(m0,{options:b,onChange:A}),J[45]=A,J[46]=b,J[47]=D;else D=J[47];let u;if(J[48]!==d||J[49]!==g||J[50]!==D)u=F(E,{flexDirection:"column",gap:1,children:[d,g,D]}),J[48]=d,J[49]=g,J[50]=D,J[51]=u;else u=J[51];let v;if(J[52]!==w||J[53]!==u||J[54]!==c)v=Y(s,{title:c,onCancel:w,color:"background",inputGuide:tX,children:u}),J[52]=w,J[53]=u,J[54]=c,J[55]=v;else v=J[55];return v}function tX(Q){return Q.pending?F(V,{children:["Press ",Q.keyName," again to exit"]}):F(t,{children:[Y(k,{shortcut:"Enter",action:"select"}),Y(k,{shortcut:"Esc",action:"go back"})]})}function LQ({session:Q,toolUseContext:J,onDone:Z,onBack:X,onKill:q}){let[z,W]=U0.useState(!1),[G,N]=U0.useState(null),R=U0.useMemo(()=>{if(Q.isUltraplan||Q.isRemoteReview)return[];return yQ(EQ(Q.log)).filter((M)=>M.type!=="progress").slice(-3)},[Q]);if(Q.isUltraplan)return Y(nX,{session:Q,onDone:Z,onBack:X,onKill:q});if(Q.isRemoteReview)return Y(eX,{session:Q,onDone:Z,onBack:X,onKill:q});let U=()=>Z("Remote session details dismissed",{display:"system"}),P=(M)=>{if(M.key===" ")M.preventDefault(),Z("Remote session details dismissed",{display:"system"});else if(M.key==="left"&&X)M.preventDefault(),X();else if(M.key==="t"&&!z)M.preventDefault(),O();else if(M.key==="return")M.preventDefault(),U()};async function O(){W(!0),N(null);try{await KQ(Q.sessionId)}catch(M){N(T0(M))}finally{W(!1)}}let w=C0(Q.title,50),f=Q.status==="pending"?"starting":Q.status;return Y(E,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:P,children:F(s,{title:"Remote session details",onCancel:U,color:"background",inputGuide:(M)=>M.pending?F(V,{children:["Press ",M.keyName," again to exit"]}):F(t,{children:[X&&Y(k,{shortcut:"←",action:"go back"}),Y(k,{shortcut:"Esc/Enter/Space",action:"close"}),!z&&Y(k,{shortcut:"t",action:"teleport"})]}),children:[F(E,{flexDirection:"column",children:[F(V,{children:[Y(V,{bold:!0,children:"Status"}),":"," ",f==="running"||f==="starting"?Y(V,{color:"background",children:f}):f==="completed"?Y(V,{color:"success",children:f}):Y(V,{color:"error",children:f})]}),F(V,{children:[Y(V,{bold:!0,children:"Runtime"}),":"," ",RJ((Q.endTime??Date.now())-Q.startTime)]}),F(V,{wrap:"truncate-end",children:[Y(V,{bold:!0,children:"Title"}),": ",w]}),F(V,{children:[Y(V,{bold:!0,children:"Progress"}),":"," ",Y(p0,{session:Q})]}),F(V,{children:[Y(V,{bold:!0,children:"Session URL"}),":"," ",Y(UJ,{url:x0(Q.sessionId),children:Y(V,{dimColor:!0,children:x0(Q.sessionId)})})]})]}),Q.log.length>0&&F(E,{flexDirection:"column",marginTop:1,children:[F(V,{children:[Y(V,{bold:!0,children:"Recent messages"}),":"]}),Y(E,{flexDirection:"column",height:10,overflowY:"hidden",children:R.map((M,C)=>Y(wQ,{message:M,lookups:AQ,addMargin:C>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},C))}),Y(E,{marginTop:1,children:F(V,{dimColor:!0,italic:!0,children:["Showing last ",R.length," of ",Q.log.length," ","messages"]})})]}),G&&Y(E,{marginTop:1,children:F(V,{color:"error",children:["Teleport failed: ",G]})}),z&&Y(V,{color:"background",children:"Teleporting to session…"})]})})}var OJ,U0,$X,oX,RQ,PQ;var CQ=n(()=>{UQ();a0();GJ();G0();s0();pX();mX();zZ();xX();PZ();c0();lX();xZ();kJ();bJ();rX();D0();v0();I0();kX();mJ();$();OJ=J0(N0(),1),U0=J0(d0(),1);$X={needs_input:"input required",plan_ready:"ready"},oX={needs_input:"waiting",plan_ready:"done"};RQ=["finding","verifying","synthesizing"],PQ={finding:"Find",verifying:"Verify",synthesizing:"Dedupe"}});async function DQ(Q){let J=IQ(Q.id);try{let Z=await bQ(J,QY);return{content:Z.content,bytesTotal:Z.bytesTotal}}catch{return{content:"",bytesTotal:0}}}function vQ(Q){let J=iJ.c(57),{shell:Z,onDone:X,onKillShell:q,onBack:z}=Q,{columns:W}=j0(),G;if(J[0]!==Z)G=()=>DQ(Z),J[0]=Z,J[1]=G;else G=J[1];let[N,R]=V0.useState(G),U=V0.useDeferredValue(N),P;if(J[2]!==Z)P=()=>{if(Z.status!=="running")return;let H=setInterval(XY,1000,R,Z);return()=>clearInterval(H)},J[2]=Z,J[3]=P;else P=J[3];let O;if(J[4]!==Z.id||J[5]!==Z.status)O=[Z.id,Z.status],J[4]=Z.id,J[5]=Z.status,J[6]=O;else O=J[6];V0.useEffect(P,O);let w;if(J[7]!==X)w=()=>X("Shell details dismissed",{display:"system"}),J[7]=X,J[8]=w;else w=J[8];let f=w,M;if(J[9]!==f)M={"confirm:yes":f},J[9]=f,J[10]=M;else M=J[10];let C;if(J[11]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},J[11]=C;else C=J[11];z0(M,C);let L;if(J[12]!==z||J[13]!==X||J[14]!==q||J[15]!==Z.status)L=(H)=>{if(H.key===" ")H.preventDefault(),X("Shell details dismissed",{display:"system"});else if(H.key==="left"&&z)H.preventDefault(),z();else if(H.key==="x"&&Z.status==="running"&&q)H.preventDefault(),q()},J[12]=z,J[13]=X,J[14]=q,J[15]=Z.status,J[16]=L;else L=J[16];let b=L,I=Z.kind==="monitor",A;if(J[17]!==Z.command)A=C0(Z.command,280),J[17]=Z.command,J[18]=A;else A=J[18];let h=A,y=I?"Monitor details":"Shell details",K;if(J[19]!==z||J[20]!==q||J[21]!==Z.status)K=(H)=>H.pending?F(V,{children:["Press ",H.keyName," again to exit"]}):F(t,{children:[z&&Y(k,{shortcut:"←",action:"go back"}),Y(k,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&q&&Y(k,{shortcut:"x",action:"stop"})]}),J[19]=z,J[20]=q,J[21]=Z.status,J[22]=K;else K=J[22];let p;if(J[23]===Symbol.for("react.memo_cache_sentinel"))p=Y(V,{bold:!0,children:"Status:"}),J[23]=p;else p=J[23];let c;if(J[24]!==Z.result||J[25]!==Z.status)c=F(V,{children:[p," ",Z.status==="running"?F(V,{color:"background",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):Z.status==="completed"?F(V,{color:"success",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):F(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]=c;else c=J[26];let j;if(J[27]===Symbol.for("react.memo_cache_sentinel"))j=Y(V,{bold:!0,children:"Runtime:"}),J[27]=j;else j=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,S;if(J[30]!==d)S=RJ(d),J[30]=d,J[31]=S;else S=J[31];let B;if(J[32]!==S)B=F(V,{children:[j," ",S]}),J[32]=S,J[33]=B;else B=J[33];let _=I?"Script:":"Command:",T;if(J[34]!==_)T=Y(V,{bold:!0,children:_}),J[34]=_,J[35]=T;else T=J[35];let g;if(J[36]!==h||J[37]!==T)g=F(V,{wrap:"wrap",children:[T," ",h]}),J[36]=h,J[37]=T,J[38]=g;else g=J[38];let D;if(J[39]!==c||J[40]!==B||J[41]!==g)D=F(E,{flexDirection:"column",children:[c,B,g]}),J[39]=c,J[40]=B,J[41]=g,J[42]=D;else D=J[42];let u;if(J[43]===Symbol.for("react.memo_cache_sentinel"))u=Y(V,{bold:!0,children:"Output:"}),J[43]=u;else u=J[43];let v;if(J[44]===Symbol.for("react.memo_cache_sentinel"))v=Y(V,{dimColor:!0,children:"Loading output…"}),J[44]=v;else v=J[44];let m;if(J[45]!==W||J[46]!==U)m=F(E,{flexDirection:"column",children:[u,Y(V0.Suspense,{fallback:v,children:Y(YY,{outputPromise:U,columns:W})})]}),J[45]=W,J[46]=U,J[47]=m;else m=J[47];let i;if(J[48]!==f||J[49]!==K||J[50]!==D||J[51]!==m||J[52]!==y)i=F(s,{title:y,onCancel:f,color:"background",inputGuide:K,children:[D,m]}),J[48]=f,J[49]=K,J[50]=D,J[51]=m,J[52]=y,J[53]=i;else i=J[53];let r;if(J[54]!==b||J[55]!==i)r=Y(E,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:b,children:i}),J[54]=b,J[55]=i,J[56]=r;else r=J[56];return r}function XY(Q,J){return Q(DQ(J))}function YY(Q){let J=iJ.c(19),{outputPromise:Z,columns:X}=Q,{content:q,bytesTotal:z}=V0.use(Z);if(!q){let M;if(J[0]===Symbol.for("react.memo_cache_sentinel"))M=Y(V,{dimColor:!0,children:"No output available"}),J[0]=M;else M=J[0];return M}let W,G;if(J[1]!==z||J[2]!==q){let M=[],C=q.length;for(let L=0;L<10&&C>0;L++){let b=q.lastIndexOf(`
|
|
19
|
-
`,C-1);M.push(b+1),C=b}M.reverse(),W=z>q.length,G=[];for(let L=0;L<M.length;L++){let b=M[L],I=L<M.length-1?M[L+1]-1:q.length,A=q.slice(b,I);if(A)G.push(A)}J[1]=z,J[2]=q,J[3]=W,J[4]=G}else W=J[3],G=J[4];let N=X-6,R;if(J[5]!==G)R=G.map(zY),J[5]=G,J[6]=R;else R=J[6];let U;if(J[7]!==N||J[8]!==R)U=Y(E,{borderStyle:"round",paddingX:1,flexDirection:"column",height:12,maxWidth:N,children:R}),J[7]=N,J[8]=R,J[9]=U;else U=J[9];let P=`Showing ${G.length} lines`,O;if(J[10]!==z||J[11]!==W)O=W?` of ${BQ(z)}`:"",J[10]=z,J[11]=W,J[12]=O;else O=J[12];let w;if(J[13]!==P||J[14]!==O)w=F(V,{dimColor:!0,italic:!0,children:[P,O]}),J[13]=P,J[14]=O,J[15]=w;else w=J[15];let f;if(J[16]!==U||J[17]!==w)f=F(a,{children:[U,w]}),J[16]=U,J[17]=w,J[18]=f;else f=J[18];return f}function zY(Q,J){return Y(V,{wrap:"truncate-end",children:Q},J)}var iJ,V0,QY=8192;var hQ=n(()=>{rJ();G0();_0();c0();JY();ZY();D0();v0();I0();$();iJ=J0(N0(),1),V0=J0(d0(),1)});var SQ={};FZ(SQ,{default:()=>GY});var qY=()=>null,GY;var _Q=n(()=>{GY=qY});function fY(Q,J){return Object.values(Q??{}).filter(MJ).filter((X)=>!(X.type==="local_agent"&&X.id===J))}function nG({onDone:Q,toolUseContext:J,initialDetailTaskId:Z}){let X=fJ((H)=>H.tasks),q=fJ((H)=>H.foregroundedTaskId),z=fJ((H)=>H.expandedView)==="teammates",W=rQ(),G=xQ("chat:killAgents","Chat","ctrl+x ctrl+k"),N=X,R=f0.useRef(!1),[U,P]=f0.useState(()=>{if(Z)return R.current=!0,{mode:"detail",itemId:Z};let H=fY(N,q);if(H.length===1)return R.current=!0,{mode:"detail",itemId:H[0].id};return{mode:"list"}}),[O,w]=f0.useState(0);lQ("background-tasks-dialog");let{bashTasks:f,remoteSessions:M,agentTasks:C,teammateTasks:L,workflowTasks:b,mcpMonitors:I,containerTasks:A,dreamTasks:h,allSelectableItems:y}=f0.useMemo(()=>{let e=Object.values(N??{}).filter(MJ).map(MY).sort((o,wJ)=>{let aJ=o.status,sJ=wJ.status;if(aJ==="running"&&sJ!=="running")return-1;if(aJ!=="running"&&sJ==="running")return 1;let iQ="task"in o?o.task.startTime:0;return("task"in wJ?wJ.task.startTime:0)-iQ}),W0=e.filter((o)=>o.type==="local_bash"),H0=e.filter((o)=>o.type==="remote_agent"),y0=e.filter((o)=>o.type==="local_agent"&&o.id!==q),X0=e.filter((o)=>o.type==="local_workflow"),Y0=e.filter((o)=>o.type==="monitor_mcp"),A0=e.filter((o)=>o.type==="container"),b0=e.filter((o)=>o.type==="dream"),M0=z?[]:e.filter((o)=>o.type==="in_process_teammate"),k0=M0.length>0?[{id:"__leader__",type:"leader",label:`@${$J}`,status:"running"}]:[];return{bashTasks:W0,remoteSessions:H0,agentTasks:y0,workflowTasks:X0,mcpMonitors:Y0,containerTasks:A0,dreamTasks:b0,teammateTasks:[...k0,...M0],allSelectableItems:[...k0,...M0,...W0,...Y0,...A0,...H0,...y0,...X0,...b0]}},[N,q,z]),K=y[O]??null;z0({"confirm:previous":()=>w((H)=>Math.max(0,H-1)),"confirm:next":()=>w((H)=>Math.min(y.length-1,H+1)),"confirm:yes":()=>{let H=y[O];if(H)if(H.type==="leader")LJ(W),Q("Viewing leader",{display:"system"});else P({mode:"detail",itemId:H.id})}},{context:"Confirmation",isActive:U.mode==="list"});let p=(H)=>{if(U.mode!=="list")return;if(H.key==="left"){H.preventDefault(),Q("Background tasks dialog dismissed",{display:"system"});return}let l=y[O];if(!l)return;if(H.key==="x"){if(H.preventDefault(),l.type!=="leader")SJ(l.task,W)}if(H.key==="f"){if(l.type==="in_process_teammate"&&l.status==="running")H.preventDefault(),EJ(l.id,W),Q("Viewing teammate",{display:"system"});else if(l.type==="leader")H.preventDefault(),LJ(W),Q("Viewing leader",{display:"system"})}};async function c(H){await t0.kill(H,W)}async function j(H){await QJ.kill(H,W)}async function x(H){await JJ.kill(H,W)}async function d(H){await ZJ.kill(H,W)}async function S(H){await S0.kill(H,W)}let B=kQ(Q);f0.useEffect(()=>{if(U.mode!=="list"){let l=(N??{})[U.itemId];if(!l||l.type!=="local_workflow"&&!MJ(l))if(R.current)B("Background tasks dialog dismissed",{display:"system"});else P({mode:"list"})}let H=y.length;if(O>=H&&H>0)w(H-1)},[U,N,O,y,B]);let _=()=>{if(R.current&&y.length<=1)Q("Background tasks dialog dismissed",{display:"system"});else R.current=!1,P({mode:"list"})};if(U.mode!=="list"&&N){let H=N[U.itemId];if(!H)return null;switch(H.type){case"local_bash":return Y(vQ,{shell:H,onDone:Q,onKillShell:()=>void c(H.id),onBack:_},`shell-${H.id}`);case"local_agent":return Y(pZ,{agent:H,onDone:Q,onKillAgent:()=>void j(H.id),onBack:_},`agent-${H.id}`);case"remote_agent":return Y(LQ,{session:H,onDone:Q,toolUseContext:J,onBack:_,onKill:H.status!=="running"?void 0:H.isUltraplan?()=>void e0(H.id,H.sessionId,W):()=>void S(H.id)},`session-${H.id}`);case"in_process_teammate":return Y(FQ,{teammate:H,onDone:Q,onKill:H.status==="running"?()=>void x(H.id):void 0,onBack:_,onForeground:H.status==="running"?()=>{EJ(H.id,W),Q("Viewing teammate",{display:"system"})}:void 0},`teammate-${H.id}`);case"local_workflow":if(!jQ)return null;return Y(jQ,{workflow:H,onDone:Q,onKill:H.status==="running"&&gQ?()=>gQ(H.id,W):void 0,onSkipAgent:H.status==="running"&&TQ?(l)=>TQ(H.id,l,W):void 0,onRetryAgent:H.status==="running"&&uQ?(l)=>uQ(H.id,l,W):void 0,onBack:_},`workflow-${H.id}`);case"monitor_mcp":if(!dQ)return null;return Y(dQ,{task:H,onKill:H.status==="running"&&cQ?()=>cQ(H.id,W):void 0,onBack:_},`monitor-mcp-${H.id}`);case"dream":return Y(VQ,{task:H,onDone:()=>Q("Background tasks dialog dismissed",{display:"system"}),onBack:_,onKill:H.status==="running"?()=>void d(H.id):void 0},`dream-${H.id}`);case"container":return Y(zQ,{task:H,onDone:Q,onBack:_,onStop:u0(H)?()=>SJ(H,W):void 0},`container-${H.id}`)}}let T=E0(f,(H)=>H.status==="running"),g=E0(M,(H)=>H.status==="running"||H.status==="pending")+E0(C,(H)=>H.status==="running"),D=E0(L,(H)=>H.status==="running"),u=pQ([...D>0?[F(V,{children:[D," ",D!==1?"agents":"agent"]},"teammates")]:[],...T>0?[F(V,{children:[T," ",T!==1?"active shells":"active shell"]},"shells")]:[],...g>0?[F(V,{children:[g," ",g!==1?"active agents":"active agent"]},"agents")]:[]],(H)=>Y(V,{children:" · "},`separator-${H}`)),v=K!==null&&K.type!=="leader"&&(K.type==="container"?u0(K.task):K.status==="running"),m=[Y(k,{shortcut:"↑/↓",action:"select"},"upDown"),...K?[Y(k,{shortcut:"Enter",action:K.type==="container"?"logs":"view"},"enter")]:[],...K?.type==="in_process_teammate"&&K.status==="running"?[Y(k,{shortcut:"f",action:"foreground"},"foreground")]:[],...v?[Y(k,{shortcut:"x",action:K?.type==="container"?"stop container":"stop"},"kill")]:[],...C.some((H)=>H.status==="running")?[Y(k,{shortcut:G,action:"stop all agents"},"kill-all")]:[],Y(k,{shortcut:"←/Esc",action:"close"},"esc")],i=()=>Q("Background tasks dialog dismissed",{display:"system"});function r(H){if(H.pending)return F(V,{children:["Press ",H.keyName," again to exit"]});return Y(t,{children:m})}return Y(E,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:p,children:Y(s,{title:"Background tasks",subtitle:Y(a,{children:u}),onCancel:i,color:"background",inputGuide:r,children:y.length===0?Y(V,{dimColor:!0,children:"No tasks currently running"}):F(E,{flexDirection:"column",children:[L.length>0&&F(E,{flexDirection:"column",children:[(f.length>0||M.length>0||C.length>0)&&F(V,{dimColor:!0,children:[F(V,{bold:!0,children:[" ","Agents"]})," (",E0(L,(H)=>H.type!=="leader"),")"]}),Y(E,{flexDirection:"column",children:Y(wY,{teammateTasks:L,currentSelectionId:K?.id})})]}),f.length>0&&F(E,{flexDirection:"column",marginTop:L.length>0?1:0,children:[(L.length>0||M.length>0||C.length>0)&&F(V,{dimColor:!0,children:[F(V,{bold:!0,children:[" ","Shells"]})," (",f.length,")"]}),Y(E,{flexDirection:"column",children:f.map((H)=>Y(O0,{item:H,isSelected:H.id===K?.id},H.id))})]}),I.length>0&&F(E,{flexDirection:"column",marginTop:L.length>0||f.length>0?1:0,children:[F(V,{dimColor:!0,children:[F(V,{bold:!0,children:[" ","Monitors"]})," (",I.length,")"]}),Y(E,{flexDirection:"column",children:I.map((H)=>Y(O0,{item:H,isSelected:H.id===K?.id},H.id))})]}),A.length>0&&F(E,{flexDirection:"column",marginTop:L.length>0||f.length>0||I.length>0?1:0,children:[F(V,{dimColor:!0,children:[F(V,{bold:!0,children:[" ","Containers"]})," (",A.length,")"]}),Y(E,{flexDirection:"column",children:A.map((H)=>Y(O0,{item:H,isSelected:H.id===K?.id},H.id))})]}),M.length>0&&F(E,{flexDirection:"column",marginTop:L.length>0||f.length>0||I.length>0||A.length>0?1:0,children:[F(V,{dimColor:!0,children:[F(V,{bold:!0,children:[" ","Remote agents"]})," (",M.length,")"]}),Y(E,{flexDirection:"column",children:M.map((H)=>Y(O0,{item:H,isSelected:H.id===K?.id},H.id))})]}),C.length>0&&F(E,{flexDirection:"column",marginTop:L.length>0||f.length>0||I.length>0||A.length>0||M.length>0?1:0,children:[F(V,{dimColor:!0,children:[F(V,{bold:!0,children:[" ","Local agents"]})," (",C.length,")"]}),Y(E,{flexDirection:"column",children:C.map((H)=>Y(O0,{item:H,isSelected:H.id===K?.id},H.id))})]}),b.length>0&&F(E,{flexDirection:"column",marginTop:L.length>0||f.length>0||I.length>0||A.length>0||M.length>0||C.length>0?1:0,children:[F(V,{dimColor:!0,children:[F(V,{bold:!0,children:[" ","Workflows"]})," (",b.length,")"]}),Y(E,{flexDirection:"column",children:b.map((H)=>Y(O0,{item:H,isSelected:H.id===K?.id},H.id))})]}),h.length>0&&Y(E,{flexDirection:"column",marginTop:L.length>0||f.length>0||I.length>0||A.length>0||M.length>0||C.length>0||b.length>0?1:0,children:Y(E,{flexDirection:"column",children:h.map((H)=>Y(O0,{item:H,isSelected:H.id===K?.id},H.id))})})]})})})}function MY(Q){let J=$0(Q);switch(Q.type){case"local_bash":return{id:Q.id,type:"local_bash",label:J,status:Q.status,task:Q};case"remote_agent":return{id:Q.id,type:"remote_agent",label:J,status:Q.status,task:Q};case"local_agent":return{id:Q.id,type:"local_agent",label:J,status:Q.status,task:Q};case"in_process_teammate":return{id:Q.id,type:"in_process_teammate",label:J,status:Q.status,task:Q};case"local_workflow":return{id:Q.id,type:"local_workflow",label:J,status:Q.status,task:Q};case"monitor_mcp":return{id:Q.id,type:"monitor_mcp",label:J,status:Q.status,task:Q};case"dream":return{id:Q.id,type:"dream",label:J,status:Q.status,task:Q};case"container":return{id:Q.id,type:"container",label:J,status:Q.status,task:Q};default:throw Error(`toListItem: unhandled task type ${String(Q.type)}`)}}function O0(Q){let J=oJ.c(14),{item:Z,isSelected:X}=Q,{columns:q}=j0(),z=Math.max(30,q-26),W;if(J[0]===Symbol.for("react.memo_cache_sentinel"))W=mQ(),J[0]=W;else W=J[0];let G=W,N=G&&X,R=X?PJ.pointer+" ":" ",U;if(J[1]!==N||J[2]!==R)U=Y(V,{dimColor:N,children:R}),J[1]=N,J[2]=R,J[3]=U;else U=J[3];let P=X&&!G?"suggestion":void 0,O;if(J[4]!==Z.task||J[5]!==Z.type||J[6]!==z)O=Z.type==="leader"?F(V,{children:["@",$J]}):Y(sZ,{task:Z.task,maxActivityWidth:z}),J[4]=Z.task,J[5]=Z.type,J[6]=z,J[7]=O;else O=J[7];let w;if(J[8]!==P||J[9]!==O)w=Y(V,{color:P,children:O}),J[8]=P,J[9]=O,J[10]=w;else w=J[10];let f;if(J[11]!==U||J[12]!==w)f=F(E,{flexDirection:"row",children:[U,w]}),J[11]=U,J[12]=w,J[13]=f;else f=J[13];return f}function wY(Q){let J=oJ.c(3),{teammateTasks:Z,currentSelectionId:X}=Q,q;if(J[0]!==X||J[1]!==Z){let z=Z.filter(EY),W=Z.filter(KY),G=new Map;for(let R of W){let U=R.task.identity.teamName,P=G.get(U);if(P)P.push(R);else G.set(U,[R])}let N=[...G.entries()];q=Y(a,{children:N.map((R)=>{let[U,P]=R,O=P.length+z.length;return F(E,{flexDirection:"column",children:[F(V,{dimColor:!0,children:[" ","Team: ",U," (",O,")"]}),z.map((w)=>Y(O0,{item:w,isSelected:w.id===X},`${w.id}-${U}`)),P.map((w)=>Y(O0,{item:w,isSelected:w.id===X},w.id))]},U)})}),J[0]=X,J[1]=Z,J[2]=q}else q=J[2];return q}function KY(Q){return Q.type==="in_process_teammate"}function EY(Q){return Q.type==="leader"}var oJ,f0,jQ=null,nJ=null,gQ,TQ,uQ,OY,cQ,dQ;var LY=n(()=>{UQ();VY();NY();rJ();RY();JZ();vZ();bZ();hZ();AZ();s0();DZ();FY();CJ();SZ();dJ();WY();hJ();UY();G0();_0();HY();dJ();D0();v0();I0();mZ();eZ();qQ();WQ();NQ();CQ();hQ();$();oJ=J0(N0(),1),f0=J0(d0(),1),gQ=nJ?.killWorkflowTask??null,TQ=nJ?.skipWorkflowAgent??null,uQ=nJ?.retryWorkflowAgent??null,OY=(IZ(),IJ(PY)),cQ=OY?.killMonitorMcp??null,dQ=(_Q(),IJ(SQ)).MonitorMcpDetailDialog});
|
|
20
|
-
export{EJ as Rd,LJ as Sd,bY as Td,JZ as Ud,$0 as Vd,CJ as Wd,wX as Xd,hJ as Yd,SJ as Zd,SZ as _d,nG as $d,LY as ae};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Yp as W,Zp as n,rx as I,sx as P,wx as t}from"./cli-1.1.27-w8pwj9ef.mjs";import{a5 as H,b5 as p}from"./cli-1.1.27-d4km9s81.mjs";import{f5 as C,h5 as i}from"./cli-1.1.27-8vkygf4q.mjs";import{F9 as l,G8 as v,O5 as S,U5 as c,f9 as R,l9 as V}from"./cli-1.1.27-xdfkhk5m.mjs";import{Aha as y,Dha as k,Gha as g,Sha as D,Wfa as E,Zfa as X,_ha as m,sfa as q,sga as O,sha as T,tfa as u,uha as Y}from"./cli-1.1.27-48ezce33.mjs";import{Aja as G,Bja as f,Cja as $,Dja as h}from"./cli-1.1.27-njcbrvnc.mjs";import{nka as Z,ska as _,tka as M}from"./cli-1.1.27-y712t8h2.mjs";import{Ala as b,xla as x}from"./cli-1.1.27-r335xv52.mjs";import{Ysa as Q,ota as A}from"./cli-1.1.27-4cjm0m5c.mjs";import{Mta as U}from"./cli-1.1.27-8vrv0ver.mjs";async function s(){if(q())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),E((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{A();n();l();f();M();O();b();p();h();m();c();u();t();i();g();y();d=$(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
|
|
2
|
-
export{Yj as jc,r as kc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Se as k,Ue as a}from"./cli-1.1.27-t13xq38e.mjs";import{b3 as D,e3 as g}from"./cli-1.1.27-m2n4m352.mjs";import{Ala as u,xla as K}from"./cli-1.1.27-r335xv52.mjs";import{Xla as G,cma as l}from"./cli-1.1.27-0rz9qd34.mjs";import{Mta as c,Nta as J}from"./cli-1.1.27-8vrv0ver.mjs";function b(P){return P===200||P===201}function n(P,Q){return Q&&P===400}async function e({environmentId:P,title:Q,events:z,gitRepoUrl:q,branch:L,signal:H,baseUrl:y,getAccessToken:B,permissionMode:$,onFailure:Z}){let{getClaudeAIOAuthTokens:W}=await import("./auth-1.1.27-gp1b9bvj.mjs"),{getOrganizationUUID:_}=await import("./client-1.1.27-ex7wh5hg.mjs"),{getOauthConfig:V}=await import("./oauth-1.1.27-19qatx62.mjs"),{getOAuthHeaders:N}=await import("./api-1.1.27-v0jrrv5d.mjs"),{parseGitHubRepository:E}=await import("./detectRepository-1.1.27-qx3djtsx.mjs"),{getDefaultBranch:T}=await import("./git-1.1.27-pe9yjmar.mjs"),{getMainLoopModel:j}=await import("./model-1.1.27-p2b82a7t.mjs"),{default:x}=await import("./index-1.1.27-xvd24vg3.mjs"),R=B?.()??W()?.accessToken;if(!R)return K("[bridge] No access token for session creation"),Z?.({retryable:!1,detail:"not signed in"}),null;let v=await _();if(!v)return K("[bridge] No org UUID for session creation"),Z?.({retryable:!1,detail:"no organization for this account"}),null;let A=null,O=null;if(q){let{parseGitRemote:Y}=await import("./detectRepository-1.1.27-qx3djtsx.mjs"),w=Y(q);if(w){let{host:C,owner:S,name:f}=w,m=L||await T()||void 0;A={type:"git_repository",url:`https://${C}/${S}/${f}`,revision:m},O={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${L||"task"}`]}}}else{let C=E(q);if(C){let[S,f]=C.split("/");if(S&&f){let m=L||await T()||void 0;A={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:m},O={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${L||"task"}`]}}}}}}let h=(Y)=>({...Q!==void 0&&{title:Q},events:z,session_context:{sources:Y&&A?[A]:[],outcomes:Y&&O?[O]:[],model:j()},environment_id:P,source:"remote-control",...$&&{permission_mode:$}}),d={...N(R),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":v},p=`${y??V().BASE_API_URL}/v1/sessions`,F=async(Y)=>{try{return await x.post(p,h(Y),{headers:d,signal:H,validateStatus:(w)=>w<500})}catch(w){return K(`[bridge] Session creation request failed: ${G(w)}`),Z?.({retryable:!0,detail:G(w)}),null}},U=A!==null&&!I,X=await F(U);if(!X)return null;if(!b(X.status)&&n(X.status,U)){let Y=k(X.data);if(K(`[bridge] Session creation rejected with status ${X.status}${Y?`: ${Y}`:""} — retrying without the git context`),I=!0,X=await F(!1),!X)return null}if(!b(X.status)){let Y=k(X.data);return K(`[bridge] Session creation failed with status ${X.status}${Y?`: ${Y}`:""}`),Z?.({status:X.status,detail:Y,retryable:X.status===429}),null}let M=X.data;if(!M||typeof M!=="object"||!("id"in M)||typeof M.id!=="string")return K("[bridge] No session ID in response"),Z?.({status:X.status,detail:"malformed session response",retryable:!1}),null;return M.id}async function JJ(P,Q){let{getClaudeAIOAuthTokens:z}=await import("./auth-1.1.27-gp1b9bvj.mjs"),{getOrganizationUUID:q}=await import("./client-1.1.27-ex7wh5hg.mjs"),{getOauthConfig:L}=await import("./oauth-1.1.27-19qatx62.mjs"),{getOAuthHeaders:H}=await import("./api-1.1.27-v0jrrv5d.mjs"),{default:y}=await import("./index-1.1.27-xvd24vg3.mjs"),B=Q?.getAccessToken?.()??z()?.accessToken;if(!B)return K("[bridge] No access token for session fetch"),null;let $=await q();if(!$)return K("[bridge] No org UUID for session fetch"),null;let Z={...H(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":$},W=`${Q?.baseUrl??L().BASE_API_URL}/v1/sessions/${P}`,_=1e4;K(`[bridge] Fetching session ${P}`);let V;try{V=await y.get(W,{headers:Z,timeout:_,validateStatus:(N)=>N<500})}catch(N){if(y.isAxiosError(N)){let E=N.response?.status??"no-response",T=N.code??"unknown-code",j=N.config?.url??W,x=N.config?.method?.toUpperCase()??"GET",R=N.message??G(N),v=N.config?.timeout??_;K(`[bridge] Session fetch request failed: status=${E} code=${T} method=${x} url=${j} timeout=${v} message=${R}`)}else K(`[bridge] Session fetch request failed: url=${W} timeout=${_} message=${G(N)}`);return null}if(V.status!==200){let N=k(V.data);return K(`[bridge] Session fetch failed with status ${V.status} url=${W}${N?`: ${N}`:""}`),null}return V.data}async function KJ(P,Q){let{getClaudeAIOAuthTokens:z}=await import("./auth-1.1.27-gp1b9bvj.mjs"),{getOrganizationUUID:q}=await import("./client-1.1.27-ex7wh5hg.mjs"),{getOauthConfig:L}=await import("./oauth-1.1.27-19qatx62.mjs"),{getOAuthHeaders:H}=await import("./api-1.1.27-v0jrrv5d.mjs"),{default:y}=await import("./index-1.1.27-xvd24vg3.mjs"),B=Q?.getAccessToken?.()??z()?.accessToken;if(!B){K("[bridge] No access token for session archive");return}let $=await q();if(!$){K("[bridge] No org UUID for session archive");return}let Z={...H(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":$},W=`${Q?.baseUrl??L().BASE_API_URL}/v1/sessions/${P}/archive`;K(`[bridge] Archiving session ${P}`);let _=await y.post(W,{},{headers:Z,timeout:Q?.timeoutMs??1e4,validateStatus:(V)=>V<500});if(_.status===200)K(`[bridge] Session ${P} archived successfully`);else{let V=k(_.data);K(`[bridge] Session archive failed with status ${_.status}${V?`: ${V}`:""}`)}}async function NJ(P,Q,z){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.1.27-gp1b9bvj.mjs"),{getOrganizationUUID:L}=await import("./client-1.1.27-ex7wh5hg.mjs"),{getOauthConfig:H}=await import("./oauth-1.1.27-19qatx62.mjs"),{getOAuthHeaders:y}=await import("./api-1.1.27-v0jrrv5d.mjs"),{default:B}=await import("./index-1.1.27-xvd24vg3.mjs"),$=z?.getAccessToken?.()??q()?.accessToken;if(!$){K("[bridge] No access token for session title update");return}let Z=await L();if(!Z){K("[bridge] No org UUID for session title update");return}let W={...y($),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Z},_=D(P),V=`${z?.baseUrl??H().BASE_API_URL}/v1/sessions/${_}`;K(`[bridge] Updating session title: ${_} → ${Q}`);try{let N=await B.patch(V,{title:Q},{headers:W,timeout:1e4,validateStatus:(E)=>E<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let E=k(N.data);K(`[bridge] Session title update failed with status ${N.status}${E?`: ${E}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${G(N)}`)}}var I=!1;var i=c(()=>{u();l();a();g()});
|
|
2
|
-
export{n as Ie,e as Je,JJ as Ke,KJ as Le,NJ as Me,i as Ne};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{GW as f,HW as h,XW as u}from"./cli-1.1.27-2mtc2dbf.mjs";import{eY as C,qY as d}from"./cli-1.1.27-nxkc7nfr.mjs";import{q5 as w,s5 as F}from"./cli-1.1.27-1rztfj2j.mjs";import{O5 as O,U5 as i}from"./cli-1.1.27-xdfkhk5m.mjs";import{J9 as x,M9 as v,T9 as M,U9 as A,Z9 as I}from"./cli-1.1.27-kdv6nw9e.mjs";import{Sha as K,_ha as j}from"./cli-1.1.27-48ezce33.mjs";import{ska as R,tka as _}from"./cli-1.1.27-y712t8h2.mjs";import{Ala as W,ala as X,bla as P,fla as T,xla as J}from"./cli-1.1.27-r335xv52.mjs";import{Xla as y,cma as p}from"./cli-1.1.27-0rz9qd34.mjs";import{Nta as q}from"./cli-1.1.27-8vrv0ver.mjs";W();j();F();_();W();p();j();v();I();T();import{randomUUID as S}from"crypto";var L=2000,k=5,c=30000,Y=3,E=new Set([4003]);function b(B){if(typeof B!=="object"||B===null||!("type"in B))return!1;return typeof B.type==="string"}class U{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(B,z,Q,G){this.sessionId=B;this.orgUuid=z;this.getAccessToken=Q;this.callbacks=G}async connect(){if(this.state==="connecting"){J("[SessionsWebSocket] Already connecting");return}this.state="connecting";let z=`${R().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;J(`[SessionsWebSocket] Connecting to ${z}`);let G={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let $=new globalThis.WebSocket(z,{headers:G,proxy:A(z),tls:x()||void 0});this.ws=$,$.addEventListener("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),$.addEventListener("message",(Z)=>{let H=typeof Z.data==="string"?Z.data:String(Z.data);this.handleMessage(H)}),$.addEventListener("error",()=>{let Z=Error("[SessionsWebSocket] WebSocket error");K(Z),this.callbacks.onError?.(Z)}),$.addEventListener("close",(Z)=>{J(`[SessionsWebSocket] Closed: code=${Z.code} reason=${Z.reason}`),this.handleClose(Z.code)}),$.addEventListener("pong",()=>{J("[SessionsWebSocket] Pong received")})}else{let{default:$}=await import("./wrapper-1.1.27-q9kmdf61.mjs"),Z=new $(z,{headers:G,agent:M(z),...x()});this.ws=Z,Z.on("open",()=>{J("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),Z.on("message",(H)=>{this.handleMessage(H.toString())}),Z.on("error",(H)=>{K(Error(`[SessionsWebSocket] Error: ${H.message}`)),this.callbacks.onError?.(H)}),Z.on("close",(H,V)=>{J(`[SessionsWebSocket] Closed: code=${H} reason=${V.toString()}`),this.handleClose(H)}),Z.on("pong",()=>{J("[SessionsWebSocket] Pong received")})}}handleMessage(B){try{let z=P(B);if(b(z))this.callbacks.onMessage(z);else J(`[SessionsWebSocket] Ignoring message type: ${typeof z==="object"&&z!==null&&"type"in z?String(z.type):"unknown"}`)}catch(z){K(Error(`[SessionsWebSocket] Failed to parse message: ${y(z)}`))}}handleClose(B){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let z=this.state;if(this.state="closed",E.has(B)){J(`[SessionsWebSocket] Permanent close code ${B}, not reconnecting`),this.callbacks.onClose?.();return}if(B===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>Y){J(`[SessionsWebSocket] 4001 retry budget exhausted (${Y}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(L*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${Y}`);return}if(z==="connected"&&this.reconnectAttempts<k)this.reconnectAttempts++,this.scheduleReconnect(L,`attempt ${this.reconnectAttempts}/${k}`);else J("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(B,z){this.callbacks.onReconnecting?.(),J(`[SessionsWebSocket] Scheduling reconnect (${z}) in ${B}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},B)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},c)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(B){if(!this.ws||this.state!=="connected"){K(Error("[SessionsWebSocket] Cannot send: not connected"));return}J("[SessionsWebSocket] Sending control response"),this.ws.send(X(B))}sendControlRequest(B){if(!this.ws||this.state!=="connected"){K(Error("[SessionsWebSocket] Cannot send: not connected"));return}let z={type:"control_request",request_id:S(),request:B};J(`[SessionsWebSocket] Sending control request: ${B.subtype}`),this.ws.send(X(z))}isConnected(){return this.state==="connected"}close(){if(J("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){J("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function D(B){return B.type!=="control_request"&&B.type!=="control_response"&&B.type!=="control_cancel_request"}class N{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(B,z){this.config=B;this.callbacks=z}connect(){J(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let B={onMessage:(z)=>this.handleMessage(z),onConnected:()=>{J("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{J("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{J("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(z)=>{K(z),this.callbacks.onError?.(z)}};this.websocket=new U(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,B),this.websocket.connect()}handleMessage(B){if(B.type==="control_request"){this.handleControlRequest(B);return}if(B.type==="control_cancel_request"){let{request_id:z}=B,Q=this.pendingPermissionRequests.get(z);J(`[RemoteSessionManager] Permission request cancelled: ${z}`),this.pendingPermissionRequests.delete(z),this.callbacks.onPermissionCancelled?.(z,Q?.tool_use_id);return}if(B.type==="control_response"){J("[RemoteSessionManager] Received control response");return}if(D(B))this.callbacks.onMessage(B)}handleControlRequest(B){let{request_id:z,request:Q}=B;if(Q.subtype==="can_use_tool")J(`[RemoteSessionManager] Permission request for tool: ${Q.tool_name}`),this.pendingPermissionRequests.set(z,Q),this.callbacks.onPermissionRequest(Q,z);else{J(`[RemoteSessionManager] Unsupported control request subtype: ${Q.subtype}`);let G={type:"control_response",response:{subtype:"error",request_id:z,error:`Unsupported control request subtype: ${Q.subtype}`}};this.websocket?.sendControlResponse(G)}}async sendMessage(B,z){J(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Q=await w(this.config.sessionId,B,z);if(!Q)K(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Q}respondToPermissionRequest(B,z){if(!this.pendingPermissionRequests.get(B)){K(Error(`[RemoteSessionManager] No pending permission request with ID: ${B}`));return}this.pendingPermissionRequests.delete(B);let G={type:"control_response",response:{subtype:"success",request_id:B,response:{behavior:z.behavior,...z.behavior==="allow"?{updatedInput:z.updatedInput}:{message:z.message}}}};J(`[RemoteSessionManager] Sending permission response: ${z.behavior}`),this.websocket?.sendControlResponse(G)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){J("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){J("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){J("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function $z(B,z,Q,G=!1,$=!1){return{sessionId:B,getAccessToken:z,orgUuid:Q,hasInitialPrompt:G,viewerOnly:$}}W();j();d();u();function Xz(){let B=C();if(!B?.teamName||!B?.agentName){J("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:z,agentId:Q,agentName:G}=B,$=h(z);if(!$){K(Error(`[computeInitialTeamContext] Could not read team file for ${z}`));return}let Z=f(z),H=!Q;return J(`[Reconnection] Computed initial team context for ${H?"leader":`teammate ${G}`} in team ${z}`),{teamName:z,teamFilePath:Z,leadAgentId:$.leadAgentId,selfAgentId:Q,selfAgentName:G,isLeader:H,teammates:{}}}function xz(B,z,Q){let G=h(z);if(!G){K(Error(`[initializeTeammateContextFromSession] Could not read team file for ${z} (agent: ${Q})`));return}let $=G.members.find((V)=>V.name===Q);if(!$)J(`[Reconnection] Member ${Q} not found in team ${z} - may have been removed`);let Z=$?.agentId,H=f(z);B((V)=>({...V,teamContext:{teamName:z,teamFilePath:H,leadAgentId:G.leadAgentId,selfAgentId:Z,selfAgentName:Q,isLeader:!1,teammates:{}}})),J(`[Reconnection] Initialized agent context from session for ${Q} in team ${z}`)}i();var m={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026"}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026"}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null}}};function l(B){let z=B.toLowerCase(),Q=O();for(let[G,$]of Object.entries(m)){let Z=$.retirementDates[Q];if(!z.includes(G)||!Z)continue;return{isDeprecated:!0,modelName:$.modelName,retirementDate:Z}}return{isDeprecated:!1}}function Uz(B){if(!B)return null;let z=l(B);if(!z.isDeprecated)return null;return`⚠ ${z.modelName} will be retired on ${z.retirementDate}. Consider switching to a newer model.`}
|
|
2
|
-
export{N as Ka,$z as La,Xz as Ma,xz as Na,Uz as Oa};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{qd as v,rd as m,sd as Vk}from"./cli-1.1.27-6s7e0eyt.mjs";import{Mz as l,Nz as wk,RF as g,SF as a,_F as Gk,gH as n,hH as w,iH as i,jB as s,jP as o,kB as zk,ko as p,lH as Lk,lP as t,lT as r,lo as jk,mT as kk,pP as Tk,qT as Dk,uP as e,vP as Ck}from"./cli-1.1.27-w8pwj9ef.mjs";import{O5 as L,U5 as Jk,m6 as f,o6 as Ok}from"./cli-1.1.27-xdfkhk5m.mjs";import{L9 as u,M9 as Ik,W9 as d,Z9 as Mk}from"./cli-1.1.27-kdv6nw9e.mjs";import{d$ as S,i$ as _k}from"./cli-1.1.27-k9jt24bv.mjs";import{D$ as K,Dha as _,F$ as Zk,Gha as Hk,Kaa as P,Oaa as $k,Qea as D,Zfa as U,bga as b,gfa as Kk,kga as c,sga as $}from"./cli-1.1.27-48ezce33.mjs";import{Aia as J,Eia as Yk}from"./cli-1.1.27-fw9r8cwg.mjs";import{ska as G,tka as Bk}from"./cli-1.1.27-y712t8h2.mjs";import{Aka as O,Ala as C,Cka as Rk,xla as B}from"./cli-1.1.27-r335xv52.mjs";import{Rla as h,Xla as Y,cma as Xk}from"./cli-1.1.27-0rz9qd34.mjs";import{ima as E,qma as Wk}from"./cli-1.1.27-t1dxp2pw.mjs";import{Lpa as V,Vra as j,tpa as F,vpa as y}from"./cli-1.1.27-m6ne80zc.mjs";import{ssa as A,tsa as Qk}from"./cli-1.1.27-jg3tymed.mjs";import{Nta as W}from"./cli-1.1.27-8vrv0ver.mjs";Yk();j();$();Qk();j();j();wk();Ok();Gk();Lk();Bk();Hk();Jk();var z=!1;function T(){if(z)return;if(z=!0,L()!=="firstParty")return;let k=_()?.transport;if(k==="bedrock"||k==="vertex"||k==="foundry")return;if(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.ANTHROPIC_UNIX_SOCKET||process.env.CLAUDIN_CLIENT_CERT||process.env.CLAUDIN_CLIENT_KEY)return;let q=_(),N=(q?.transport==="anthropic"?q.baseUrl:void 0)||G().BASE_API_URL;fetch(N,{method:"HEAD",signal:AbortSignal.timeout(1e4)}).catch(()=>{})}$();C();Kk();function x(){if(process.env.NODE_EXTRA_CA_CERTS)return;let k=Nk();if(k)process.env.NODE_EXTRA_CA_CERTS=k,B(`CA certs: Applied NODE_EXTRA_CA_CERTS from config to process.env: ${k}`)}function Nk(){try{let q=U()?.env,Q=D("userSettings")?.env;B(`CA certs: Config fallback - globalEnv keys: ${q?Object.keys(q).join(","):"none"}, settingsEnv keys: ${Q?Object.keys(Q).join(","):"none"}`);let R=Q?.NODE_EXTRA_CA_CERTS||q?.NODE_EXTRA_CA_CERTS;if(R)B(`CA certs: Found NODE_EXTRA_CA_CERTS in config/settings: ${R}`);return R}catch(k){B(`CA certs: Config fallback failed: ${k}`,{level:"error"});return}}Rk();$();C();_k();Zk();jk();Wk();Xk();Dk();Vk();Ik();Tk();Mk();Ck();zk();$k();var I=!1,Yq=A(async()=>{let k=Date.now();K("info","init_started"),J("init_function_start");try{let q=Date.now();b(),K("info","init_configs_enabled",{duration_ms:Date.now()-q}),J("init_configs_enabled");let N=Date.now();if(v(),x(),K("info","init_safe_env_vars_applied",{duration_ms:Date.now()-N}),J("init_safe_env_vars_applied"),r(),J("init_after_graceful_shutdown"),Promise.all([import("./firstPartyEventLogger-1.1.27-57d5r280.mjs"),import("./growthbook-1.1.27-rmhw14zh.mjs")]).then(([H,X])=>{H.initialize1PEventLogging(),X.onGrowthBookRefresh(()=>{H.reinitialize1PEventLoggingIfConfigChanged()})}),J("init_after_1p_event_logging"),f(),J("init_after_oauth_populate"),p(),J("init_after_jetbrains_detection"),S(),w())n();if(a())g();J("init_after_remote_settings_check"),c();let Q=Date.now();B("[init] configureGlobalMTLS starting"),u(),K("info","init_mtls_configured",{duration_ms:Date.now()-Q}),B("[init] configureGlobalMTLS complete");let R=Date.now();if(B("[init] configureGlobalAgents starting"),d(),K("info","init_proxy_configured",{duration_ms:Date.now()-R}),B("[init] configureGlobalAgents complete"),J("init_network_configured"),T(),E(process.env.CLAUDE_CODE_REMOTE))try{let{initUpstreamProxy:H,getUpstreamProxyEnv:X}=await import("./upstreamproxy-1.1.27-484n2sck.mjs"),{registerUpstreamProxyEnvFn:Z}=await import("./subprocessEnv-1.1.27-0dm2v5n5.mjs");Z(X),await H()}catch(H){B(`[init] upstreamproxy init failed: ${H instanceof Error?H.message:String(H)}; continuing without proxy`,{level:"warn"})}if(P(),O(l),O(async()=>{let{cleanupSessionTeams:H}=await import("./teamHelpers-1.1.27-2jkv3830.mjs");await H()}),o()){let H=Date.now();await t(),K("info","init_scratchpad_created",{duration_ms:Date.now()-H})}K("info","init_completed",{duration_ms:Date.now()-k}),J("init_function_end")}catch(q){if(q instanceof h){if(V()){process.stderr.write(`Configuration error in ${q.filePath}: ${q.message}
|
|
2
|
-
`),kk(1);return}return import("./InvalidConfigDialog-1.1.27-gyk98cx3.mjs").then((N)=>N.showInvalidConfigDialog({error:q}))}else throw q}});function Zq(){if(w()){if(V()&&e())M().catch((k)=>{B(`[3P telemetry] Eager telemetry init failed (beta tracing): ${Y(k)}`,{level:"error"})});B("[3P telemetry] Waiting for remote managed settings before telemetry init"),i().then(async()=>{B("[3P telemetry] Remote managed settings loaded, initializing telemetry"),m(),await M()}).catch((k)=>{B(`[3P telemetry] Telemetry init failed (remote settings path): ${Y(k)}`,{level:"error"})})}else M().catch((k)=>{B(`[3P telemetry] Telemetry init failed: ${Y(k)}`,{level:"error"})})}async function M(){if(I)return;I=!0;try{await Uk()}catch(k){throw I=!1,k}}async function Uk(){let{initializeTelemetry:k}=await import("./instrumentation-1.1.27-zs5yatff.mjs"),q=await k();if(q)F(q,(Q,R)=>{let H=q?.createCounter(Q,R);return{add(X,Z={}){let qk={...s(),...Z};H?.add(X,qk)}}}),y()?.add(1)}
|
|
3
|
-
export{Yq as aa,Zq as ba};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Eta as n}from"./cli-1.1.27-tc4b7enb.mjs";import{Kta as r}from"./cli-1.1.27-8vrv0ver.mjs";var i=r((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.readFile=e.externalDataInterceptor=e.parseKnownFiles=e.loadSsoSessionData=e.loadSharedConfigFiles=e.CONFIG_PREFIX_SEPARATOR=e.getSSOTokenFromFile=e.getSSOTokenFilepath=e.getProfileName=e.DEFAULT_PROFILE=e.ENV_PROFILE=e.getHomeDir=void 0;var t=n();Object.defineProperty(e,"getHomeDir",{enumerable:!0,get:function(){return t.getHomeDir}});Object.defineProperty(e,"ENV_PROFILE",{enumerable:!0,get:function(){return t.ENV_PROFILE}});Object.defineProperty(e,"DEFAULT_PROFILE",{enumerable:!0,get:function(){return t.DEFAULT_PROFILE}});Object.defineProperty(e,"getProfileName",{enumerable:!0,get:function(){return t.getProfileName}});Object.defineProperty(e,"getSSOTokenFilepath",{enumerable:!0,get:function(){return t.getSSOTokenFilepath}});Object.defineProperty(e,"getSSOTokenFromFile",{enumerable:!0,get:function(){return t.getSSOTokenFromFile}});Object.defineProperty(e,"CONFIG_PREFIX_SEPARATOR",{enumerable:!0,get:function(){return t.CONFIG_PREFIX_SEPARATOR}});Object.defineProperty(e,"loadSharedConfigFiles",{enumerable:!0,get:function(){return t.loadSharedConfigFiles}});Object.defineProperty(e,"loadSsoSessionData",{enumerable:!0,get:function(){return t.loadSsoSessionData}});Object.defineProperty(e,"parseKnownFiles",{enumerable:!0,get:function(){return t.parseKnownFiles}});Object.defineProperty(e,"externalDataInterceptor",{enumerable:!0,get:function(){return t.externalDataInterceptor}});Object.defineProperty(e,"readFile",{enumerable:!0,get:function(){return t.readFile}})});
|
|
2
|
-
export{i as R_};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Vra as I,aoa as z,eoa as F}from"./cli-1.1.27-m6ne80zc.mjs";import{Mta as E}from"./cli-1.1.27-8vrv0ver.mjs";import{AsyncLocalStorage as J}from"async_hooks";function U(G,H){return D.run(G,H)}function K(){return D.getStore()??F()}function V(){try{return K()}catch{return z()}}function W(){return D.getStore()??z()}var D;var M=E(()=>{I();D=new J});var Y="command-name",Z="command-message",$="command-args",j="bash-input",q="bash-stdout",B="bash-stderr",L="local-command-stdout",R="local-command-stderr",_="local-command-caveat",b="tick",x="task-notification",A="task-id",T="tool-use-id",k="task-type",p="output-file",u="status",v="summary",y="worktree",f="worktreePath",C="worktreeBranch",S="remote-review",O="remote-review-progress",m="teammate-message",g="channel",h="fork-boilerplate",l="Your directive: ",w,c;var N=E(()=>{w=["help","-h","--help"],c=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
|
|
2
|
-
export{U as Eja,K as Fja,V as Gja,W as Hja,M as Ija,Y as Jja,Z as Kja,$ as Lja,j as Mja,q as Nja,B as Oja,L as Pja,R as Qja,_ as Rja,b as Sja,x as Tja,A as Uja,T as Vja,k as Wja,p as Xja,u as Yja,v as Zja,y as _ja,f as $ja,C as aka,S as bka,O as cka,m as dka,g as eka,h as fka,l as gka,w as hka,c as ika,N as jka};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Gaa as I,Q$ as X,U$ as k,kaa as Y}from"./cli-1.1.27-48ezce33.mjs";import{via as $}from"./cli-1.1.27-fw9r8cwg.mjs";import{Mta as Z}from"./cli-1.1.27-8vrv0ver.mjs";import{stat as M}from"fs/promises";import{join as Q,sep as U}from"path";async function b(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 M(J);return q}catch{return}}var W=Z(()=>{$();k();I()});
|
|
2
|
-
export{b as Kb,W as Lb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{nj as H,pj as m}from"./cli-1.1.27-1ztbchyz.mjs";import{qj as k,rj as y}from"./cli-1.1.27-t32zh7r1.mjs";import{d5 as G,e5 as f}from"./cli-1.1.27-d4km9s81.mjs";import{l5 as X,n5 as Y,s5 as R}from"./cli-1.1.27-1rztfj2j.mjs";import{u5 as B,v5 as C}from"./cli-1.1.27-wtthtmes.mjs";import{F9 as E,q9 as w}from"./cli-1.1.27-xdfkhk5m.mjs";import{Sha as Q,Wfa as S,Zfa as j,_ha as D,sga as x}from"./cli-1.1.27-48ezce33.mjs";import{ska as V,tka as b}from"./cli-1.1.27-y712t8h2.mjs";import{Ysa as W,ota as I}from"./cli-1.1.27-4cjm0m5c.mjs";import{Mta as Z}from"./cli-1.1.27-8vrv0ver.mjs";async function _(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests`;return(await W.post(J,L,{headers:K})).data}async function $(L,N){let{accessToken:P,orgUUID:K}=await X(),J={...Y(P),"x-organization-uuid":K},F=`${V().BASE_API_URL}/api/oauth/organizations/${K}/admin_requests/me?request_type=${L}`;for(let v of N)F+=`&statuses=${v}`;return(await W.get(F,{headers:J})).data}async function z(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests/eligibility?request_type=${L}`;return(await W.get(J,{headers:K})).data}var M=Z(()=>{I();b();R()});async function i(){if(!j().hasVisitedExtraUsage)S((J)=>({...J,hasVisitedExtraUsage:!0}));H();let L=w(),N=L==="team"||L==="enterprise";if(!G()&&N){let J;try{J=(await k())?.extra_usage}catch(F){Q(F)}if(J?.is_enabled&&J.monthly_limit===null)return{type:"message",value:"Your organization already has unlimited extra usage. No request needed."};try{if((await z("limit_increase"))?.is_allowed===!1)return{type:"message",value:"Please contact your admin to manage extra usage settings."}}catch(F){Q(F)}try{let F=await $("limit_increase",["pending","dismissed"]);if(F&&F.length>0)return{type:"message",value:"You have already submitted a request for extra usage to your admin."}}catch(F){Q(F)}try{return await _({request_type:"limit_increase",details:null}),{type:"message",value:J?.is_enabled?"Request sent to your admin to increase extra usage.":"Request sent to your admin to enable extra usage."}}catch(F){Q(F)}return{type:"message",value:"Please contact your admin to manage extra usage settings."}}let K=N?"https://claude.ai/admin-settings/usage":"https://claude.ai/settings/usage";try{let J=await B(K);return{type:"browser-opened",url:K,opened:J}}catch(J){return Q(J),{type:"message",value:`Failed to open browser. Please visit ${K} to manage extra usage.`}}}var A=Z(()=>{M();m();y();E();f();C();x();D()});
|
|
2
|
-
export{i as kj,A as lj};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{g5 as V,h5 as q}from"./cli-1.1.27-8vkygf4q.mjs";import{F8 as H,F9 as D,G8 as P,f9 as W,h9 as x,k9 as N,q9 as _}from"./cli-1.1.27-xdfkhk5m.mjs";import{Zfa as X,sga as K}from"./cli-1.1.27-48ezce33.mjs";import{nka as Z,tka as U}from"./cli-1.1.27-y712t8h2.mjs";import{ima as G,qma as I}from"./cli-1.1.27-t1dxp2pw.mjs";import{Ysa as $,ota as j}from"./cli-1.1.27-4cjm0m5c.mjs";import{Mta as Y}from"./cli-1.1.27-8vrv0ver.mjs";function C(){let z=process.env.CLAUDE_AGENT_SDK_VERSION?`, agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`:"",J=process.env.CLAUDE_AGENT_SDK_CLIENT_APP?`, client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`:"";return`claude-cli/99.0.0 (${process.env.CLAUDE_CODE_ENTRYPOINT??"cli"}${z}${J})`}function v(){let z=[];if(process.env.CLAUDE_CODE_ENTRYPOINT)z.push(process.env.CLAUDE_CODE_ENTRYPOINT);if(process.env.CLAUDE_AGENT_SDK_VERSION)z.push(`agent-sdk/${process.env.CLAUDE_AGENT_SDK_VERSION}`);if(process.env.CLAUDE_AGENT_SDK_CLIENT_APP)z.push(`client-app/${process.env.CLAUDE_AGENT_SDK_CLIENT_APP}`);return`claude-code/99.0.0${z.length>0?` (${z.join(", ")})`:""}`}function y(){return`Claudin-User (${V()})`}function f(){if(N()){let J=W();if(!J?.accessToken)return{headers:{},error:"No OAuth token available"};return{headers:{Authorization:`Bearer ${J.accessToken}`,"anthropic-beta":Z}}}let z=P();if(!z)return{headers:{},error:"No API key available"};return{headers:{"x-api-key":z}}}async function b(z,J){try{return await z()}catch(F){if(!$.isAxiosError(F))throw F;let L=F.response?.status;if(!(L===401||J?.also403Revoked&&L===403&&typeof F.response?.data==="string"&&F.response.data.includes("OAuth token has been revoked")))throw F;let M=W()?.accessToken;if(!M)throw F;return await x(M),await z()}}var B=Y(()=>{j();U();D();q()});function A(){if(G(process.env.DISABLE_COST_WARNINGS))return!1;if(N())return!1;let J=H(),F=P()!==null;if(!J.hasToken&&!F)return!1;let L=X(),Q=L.oauthAccount?.organizationRole,M=L.oauthAccount?.workspaceRole;if(!Q||!M)return!1;return["admin","billing"].includes(Q)||["workspace_admin","workspace_billing"].includes(M)}function g(){if(w!==null)return w;if(!N())return!1;let z=_();if(z==="max"||z==="pro")return!0;let F=X().oauthAccount?.organizationRole;return!!F&&["admin","billing","owner","primary_owner"].includes(F)}var w=null;var m=Y(()=>{D();K();I()});
|
|
2
|
-
export{C as Y4,v as Z4,y as _4,f as $4,b as a5,B as b5,A as c5,g as d5,m as e5};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import{ed as K2,fd as sq}from"./cli-1.1.27-4pm4y79r.mjs";import{gd as V2,hd as X2,id as a0,jd as y2,ld as rq}from"./cli-1.1.27-hcnrf84n.mjs";import{md as _0,pd as tq}from"./cli-1.1.27-8fve969w.mjs";import{ci as m2,di as iq}from"./cli-1.1.27-wj32ftfy.mjs";import{Bq as iz,Eq as wz,Fq as Lq,Gq as Bz,Hq as jz,IG as L0,Iq as Oz,JG as t4,Jq as Uz,KI as r4,Kq as J0,LI as r2,Lq as X4,Mq as Fq,NI as nq,Nq as O4,OI as aq,Pq as Ez,Qq as $2,SG as C,Sq as uz,Sr as J2,TG as t2,Tr as lq,YG as U4,ZG as dq,ly as W2,mH as Wz,mq as Cz,nH as mq,nq as fz,ny as vq,oH as mz,oq as gz,pH as Vz,pq as xz,qH as Xz,qq as R2,rH as Vq,rq as G0,sq as K4,sx as Z2,tq as cz,tx as N2,uq as lz,ux as G2,vq as Iq,vx as Y2,wq as j4,wx as pq,yq as az,zq as Q2}from"./cli-1.1.27-w8pwj9ef.mjs";import{eZ as a,gZ as xq,sZ as z2,tZ as cq}from"./cli-1.1.27-9chfrr9e.mjs";import{F1 as w,H1 as N,k2 as x4}from"./cli-1.1.27-6spv5ha8.mjs";import{D3 as c4,E3 as l4,F3 as p4,G3 as v4,H3 as d4,I3 as i2,L3 as n4,P3 as a4,Q3 as q2,R3 as i4}from"./cli-1.1.27-zq9wak2z.mjs";import{T4 as N0,U4 as $,V4 as y,W4 as g0}from"./cli-1.1.27-kgpk1m6k.mjs";import{X4 as U0}from"./cli-1.1.27-m5wtrd2b.mjs";import{u5 as l0,v5 as Hz}from"./cli-1.1.27-wtthtmes.mjs";import{D7 as n0,L5 as g4,N5 as a2,W7 as gq}from"./cli-1.1.27-xdfkhk5m.mjs";import{$ga as Y4,Aga as d0,Aha as fq,Cga as P0,Dga as F4,Ega as R0,Fga as Q0,Jga as $0,Kga as M4,Mga as _4,Qga as f4,Vga as W4,Wga as Jz,Xga as Zz,Yga as x0,Zga as m4,_ga as Nz,aha as Gz,bha as Yz,cha as Wq,dha as w4,eha as Kz,fha as B4,hha as bz,jha as ez,kha as t0,r$ as F0,s$ as Aq,tga as oz,uga as M0,vga as Cq,wga as i0,xga as n,zga as v}from"./cli-1.1.27-48ezce33.mjs";import{kma as t,qma as c0}from"./cli-1.1.27-t1dxp2pw.mjs";import{Ita as O0,Jta as kq,Mta as d}from"./cli-1.1.27-8vrv0ver.mjs";function o2(z,q=J4,R){let J=n().find((W)=>W.provider==="openai"&&W.extras?.githubToken!==void 0);if(J){if(!Q0(J.id,{provider:"openai",name:J.name,baseUrl:R||J.baseUrl,model:J.model||q,apiKey:z,extras:{...J.extras,githubToken:z}}))return{mode:"failed"};return $0(J.id),{mode:"updated"}}if(!R0({provider:"openai",name:"GitHub Copilot",baseUrl:R||s2,model:q,apiKey:z,extras:{githubToken:z}},{makeActive:!0}))return{mode:"failed"};return{mode:"created"}}function s4({onDone:z,onBack:q,onChangeAPIKey:R}){let J=n4()?.trim()?"already-authed":"menu",[G,W]=i.useState(J),[_,b]=i.useState(null),[M,K]=i.useState(""),[L,P]=i.useState(0),[U,T]=i.useState(null),h=i.useCallback(async(f,D=J4,Z0,I)=>{let p=a4(f,Z0,I?.enterpriseDomain);if(!p.success){b(p.warning??"Could not save token to secure storage."),W("error");return}if(o2(f,D,I?.baseUrl).mode==="failed"){b("Could not save the GitHub Copilot provider profile."),W("error");return}g4(),R?.(),z("GitHub Copilot onboard complete. Copilot token stored in secure storage and as the active /provider profile.",{display:"user"})},[R,z]),X=i.useCallback(async(f)=>{W("device-busy"),b(null),T(null);try{let D=await l4({domain:f});T({user_code:D.user_code,verification_uri:D.verification_uri}),await v4(D.verification_uri);let Z0=await p4(D.device_code,{initialInterval:D.interval,timeoutSeconds:D.expires_in,domain:f}),I=await d4(Z0,{domain:f});await h(I.token,J4,Z0,{baseUrl:I.endpoints.api?.replace(/\/+$/,"")||void 0,enterpriseDomain:f})}catch(D){b(D instanceof Error?D.message:String(D)),W("error")}},[h]);if(G==="already-authed")return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Copilot"}),$(N,{children:"You are already signed in to GitHub Copilot."}),$(N,{dimColor:!0,children:'Choose "Sign in again" to refresh your token, or go back to the provider menu.'}),$(C,{options:[{label:"Sign in again",value:"sign-in-again"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:q?"Back to /provider menu":"Cancel",value:"back"}],onChange:(D)=>{if(D==="sign-in-again"){X();return}if(D==="enterprise"){W("enterprise-domain");return}if(q){q();return}z("GitHub onboard cancelled",{display:"system"})}})]});if(G==="enterprise-domain")return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Enterprise sign-in"}),$(N,{dimColor:!0,children:"Enter your GitHub Enterprise domain (e.g. github.acme.com). Leave empty for github.com."}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:">"}),$(L0,{value:M,onChange:K,onSubmit:()=>{let D=c4(M);if(!D){X();return}X(D)},onExit:()=>W(J),focus:!0,showCursor:!0,placeholder:"github.acme.com",columns:80,cursorOffset:L,onChangeCursorOffset:P})]}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]});if(G==="error"&&_)return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",children:_}),$(C,{options:[{label:q?"Back to /provider menu":"Back to menu",value:"back"},{label:"Exit",value:"exit"}],onChange:(D)=>{if(D==="back"){if(q){q();return}W("menu"),b(null);return}z("GitHub onboard cancelled",{display:"system"})}})]});if(G==="device-busy")return y(w,{flexDirection:"column",gap:1,children:[$(N,{children:"GitHub Copilot sign-in"}),U?y(N0,{children:[y(N,{children:["Enter code ",$(N,{bold:!0,children:U.user_code})," at"," ",U.verification_uri]}),$(N,{dimColor:!0,children:"A browser window may have opened. Waiting for authorization..."})]}):$(N,{dimColor:!0,children:"Requesting device code from GitHub..."}),$(r4,{})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{bold:!0,children:"GitHub Copilot setup"}),$(N,{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."}),$(C,{options:[{label:"Sign in with browser",value:"device"},{label:"Sign in with GitHub Enterprise",value:"enterprise"},{label:q?"Back to /provider menu":"Cancel",value:"cancel"}],onChange:(f)=>{if(f==="cancel"){if(q){q();return}z("GitHub onboard cancelled",{display:"system"});return}if(f==="enterprise"){W("enterprise-domain");return}X()}})]})}var i,J4="github:copilot",s2="https://api.githubcopilot.com";var o4=d(()=>{t2();r2();t4();x4();i2();i4();a2();f4();g0();i=O0(U0(),1)});function zz(z){return[z.name,z.family??"",...z.families??[],z.parameterSize??"",z.quantizationLevel??""].join(" ").toLowerCase()}function I0(z,q){return q.some((R)=>z.includes(R))}function Rq(z){return!I0(zz(z),e4)}function Qq(z){return z.find(Rq)??null}function Z4(z){let R=`${z.parameterSize??""} ${z.name}`.toLowerCase().match(/(\d+(?:\.\d+)?)\s*b\b/);if(R?.[1])return Number(R[1]);if(typeof z.sizeBytes==="number"&&z.sizeBytes>0)return Number((z.sizeBytes/1e9).toFixed(1));return null}function $q(z){return(z.quantizationLevel??z.name).toLowerCase()}function Jq(z,q,R){if(z===null)return R.push("unknown size"),0;if(q==="latency"){if(z<=4)return R.push("tiny model for low latency"),32;if(z<=8)return R.push("small model for fast responses"),26;if(z<=14)return R.push("mid-sized model with acceptable latency"),16;if(z<=24)return R.push("larger model may be slower"),8;return R.push("large model likely slower locally"),z<=40?0:-8}if(q==="coding"){if(z>=7&&z<=14)return R.push("strong coding size tier"),24;if(z>14&&z<=34)return R.push("large coding-capable size tier"),28;if(z>34)return R.push("very large model with higher quality potential"),18;return R.push("compact model may trade off coding depth"),12}if(z>=7&&z<=14)return R.push("great balanced size tier"),26;if(z>=3&&z<7)return R.push("compact balanced size tier"),18;if(z>14&&z<=24)return R.push("high quality balanced size tier"),20;if(z>24)return R.push("large model for quality-first usage"),10;return R.push("very small model for general usage"),8}function Zq(z,q,R){let J=$q(z);if(J.includes("q4"))return R.push("efficient Q4 quantization"),q==="latency"?8:4;if(J.includes("q5"))return R.push("balanced Q5 quantization"),q==="latency"?6:5;if(J.includes("q8"))return R.push("higher quality Q8 quantization"),q==="latency"?2:5;return 0}function Nq(z,q,R){if(q.score!==z.score)return q.score-z.score;let J=Z4(z)??Number.POSITIVE_INFINITY,G=Z4(q)??Number.POSITIVE_INFINITY;if(R==="latency")return J-G;if(R==="coding")return G-J;let W=14;return Math.abs(J-W)-Math.abs(G-W)}function N4(z,q){return z.map((R)=>{let J=zz(R),G=[],W=0;if(I0(J,e4))W-=40,G.push("not a chat-first model");if(I0(J,e2))W+=q==="coding"?24:q==="balanced"?10:4,G.push("coding-oriented model family");if(I0(J,zq))W+=q==="latency"?4:q==="coding"?6:8,G.push("strong general-purpose model family");if(I0(J,qq))W+=q==="latency"?2:6,G.push("chat/instruct tuned");if(J.includes("vision")||J.includes("vl"))W-=2,G.push("vision model adds extra overhead");W+=Jq(Z4(R),q,G),W+=Zq(R,q,G);let _=G.slice(0,3).join(", ");return{...R,score:W,reasons:G,summary:_}}).sort((R,J)=>Nq(R,J,q))}function qz(z,q){return Qq(N4(z,q))}var e2,zq,qq,e4;var Rz=d(()=>{e2=["coder","codellama","codegemma","codestral","devstral","starcoder","deepseek-coder","qwen2.5-coder","qwen-coder"],zq=["llama","qwen","mistral","gemma","phi","deepseek"],qq=["instruct","chat","assistant"],e4=["embed","embedding","rerank","bge","whisper"]});function Yq(z){let q=z.toLowerCase();return Gq.some((R)=>q.includes(R))}function G4(z){try{let q=new URL(z);if(q.username)q.username="redacted";if(q.password)q.password="redacted";for(let R of q.searchParams.keys())if(Yq(R))q.searchParams.set(R,"redacted");return q.toString()}catch{return z.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 Gq;var Qz=d(()=>{Gq=["api_key","apikey","key","token","access_token","refresh_token","signature","sig","secret","password","passwd","pwd","auth","authorization"]});function Xq(z){let q=`http://localhost:${z.port}/auth/callback`,R=new URL(`${W4}/oauth/authorize`);return R.searchParams.append("response_type","code"),R.searchParams.append("client_id",m4()),R.searchParams.append("redirect_uri",q),R.searchParams.append("scope",Jz),R.searchParams.append("code_challenge",z.codeChallenge),R.searchParams.append("code_challenge_method","S256"),R.searchParams.append("id_token_add_organizations","true"),R.searchParams.append("codex_cli_simplified_flow","true"),R.searchParams.append("state",z.state),R.searchParams.append("originator",Zz),R.toString()}function yq(){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 Kq(z){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>${Gz(z)}</p>
|
|
31
|
-
<p>You can close this window and try again in Claudin.</p>
|
|
32
|
-
</body>
|
|
33
|
-
</html>`}function $z(){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 bq(z){let q=`http://localhost:${z.port}/auth/callback`,R=new URLSearchParams({grant_type:"authorization_code",code:z.authorizationCode,redirect_uri:q,client_id:m4(),code_verifier:z.codeVerifier}),J=await fetch(`${W4}/oauth/token`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:R,signal:z.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000)});if(!J.ok){let K=await J.text().catch(()=>"");throw Error(K.trim()?`Codex OAuth token exchange failed (${J.status}): ${K.trim()}`:`Codex OAuth token exchange failed with status ${J.status}.`)}let G=await J.json(),W=x0(G.access_token),_=x0(G.refresh_token);if(!W||!_)throw Error("Codex OAuth completed, but the token response was missing credentials.");let b=x0(G.id_token);return{apiKey:b?await Yz(b).catch(()=>{return}):void 0,accessToken:W,refreshToken:_,idToken:b,accountId:Y4(b)??Y4(W)}}class V4{authCodeListener=null;port=null;tokenExchangeAbortController=null;buildCancellationError(){return Error("Codex OAuth flow was cancelled.")}async startOAuthFlow(z){let q=mz(),R=Nz(),J=new Wz("/auth/callback");this.authCodeListener=J,this.port=null;try{let G=await J.start(R);this.port=G;let W=Xz(),_=await Vz(q),b=Xq({port:G,codeChallenge:_,state:W});try{let M=await J.waitForAuthorization(W,async()=>{await z(b)}),K=new AbortController;this.tokenExchangeAbortController=K;let L;try{L=await bq({authorizationCode:M,codeVerifier:q,port:G,signal:K.signal})}finally{if(this.tokenExchangeAbortController===K)this.tokenExchangeAbortController=null}if(this.authCodeListener!==J)throw this.buildCancellationError();return J.handleSuccessRedirect([],(P)=>{P.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),P.end(yq())}),L}catch(M){let K=this.authCodeListener===J?M:this.buildCancellationError();if(J.hasPendingResponse()){let L=K instanceof Error&&K.message==="Codex OAuth flow was cancelled.";J.handleErrorRedirect((P)=>{P.writeHead(L?200:400,{"Content-Type":"text/html; charset=utf-8"}),P.end(L?$z():Kq(K instanceof Error?K.message:String(K)))})}throw K}finally{this.cleanup()}}catch(G){let W=G instanceof Error?G.message:String(G);if(W.includes("EADDRINUSE")||W.includes(String(R)))throw Error(`Codex OAuth needs localhost:${R} for its callback. Close any app already using that port and try again.`);throw G}}cleanup(){let z=this.buildCancellationError();if(this.tokenExchangeAbortController?.abort(z),this.tokenExchangeAbortController=null,this.authCodeListener?.hasPendingResponse())this.authCodeListener.handleErrorRedirect((q)=>{q.writeHead(200,{"Content-Type":"text/html; charset=utf-8"}),q.end($z())});this.authCodeListener?.cancelPendingAuthorization(z),this.authCodeListener=null,this.port=null}}var yz=d(()=>{mq();Vq();Wq()});function Hq(){return new V4}function Lz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??Hq,J=z.deps?.openBrowser??l0,G=z.deps?.saveCodexCredentials??Kz,W=z.deps?.isBareMode??t,[_,b]=p0.useState({state:"starting"});return p0.useEffect(()=>{if(W()){b({state:"error",message:"Codex OAuth is unavailable in --bare because secure storage is disabled."});return}let M=!1,K=R();return K.startOAuthFlow(async(L)=>{if(M)return;b({state:"waiting",authUrl:L,browserOpened:null});let P=await J(L);if(M)return;b({state:"waiting",authUrl:L,browserOpened:P})}).then(async(L)=>{if(M)return;await q(L,(U)=>{let T=G({apiKey:L.apiKey,accessToken:L.accessToken,refreshToken:L.refreshToken,idToken:L.idToken,accountId:L.accountId,profileId:U?.profileId});if(!T.success)throw Error(T.warning??"Codex OAuth succeeded, but credentials could not be saved securely.")})}).catch((L)=>{if(M)return;b({state:"error",message:L instanceof Error?L.message:String(L)})}),()=>{M=!0,K.cleanup()}},[R,W,q,J,G]),_}var p0;var Fz=d(()=>{yz();Hz();bz();c0();p0=O0(U0(),1)});function hz(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":wz()}}function _z(z,q){let R=Number(z);return Number.isFinite(R)&&R>0?R*1000:q}function Bq(z,q){if(q?.aborted)return Promise.resolve();return new Promise((R)=>{let J=setTimeout(()=>{q?.removeEventListener("abort",G),R()},z),G=()=>{clearTimeout(J),R()};q?.addEventListener("abort",G,{once:!0})})}async function jq(z){let q=z?.fetchImpl??fetch,R=z?.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),J=await q(jz,{method:"POST",headers:hz(),body:new URLSearchParams({client_id:X4(),scope:Uz}).toString(),signal:R});if(!J.ok){let M=await J.text().catch(()=>"");throw Error(`xAI device code request failed (${J.status})${M?`: ${M.trim()}`:""}`)}let G=await J.json(),W=J0(G.device_code),_=J0(G.user_code),b=J0(G.verification_uri);if(!W||!_||!b)throw Error("xAI device code response is missing device_code / user_code / verification_uri.");return{device_code:W,user_code:_,verification_uri:b,verification_uri_complete:J0(G.verification_uri_complete),expires_in:typeof G.expires_in==="number"&&G.expires_in>0?G.expires_in:Pz/1000,interval:typeof G.interval==="number"&&G.interval>0?G.interval:Iz/1000}}async function Oq(z,q){let R=q?.fetchImpl??fetch,J=q?.sleep??Bq,G=q?.now??(()=>Date.now()),W=_z(z.expires_in,Pz),_=G()+W,b=Math.max(_z(z.interval,Iz),Mq);while(G()<_){if(q?.signal?.aborted)throw Error("xAI device authorization was cancelled.");let M=await R(Bz,{method:"POST",headers:hz(),body:new URLSearchParams({grant_type:Oz,client_id:X4(),device_code:z.device_code}).toString(),signal:q?.signal});if(M.ok){let U=await M.json(),T=J0(U.access_token),h=J0(U.refresh_token);if(!T||!h)throw Error("xAI OAuth completed, but the token response was missing credentials.");let X=typeof U.expires_in==="number"&&Number.isFinite(U.expires_in)&&U.expires_in>0?U.expires_in:3600;return{accessToken:T,refreshToken:h,idToken:J0(U.id_token),expiresAt:G()+X*1000}}let K=await M.json().catch(()=>({})),L=Math.max(0,_-G());if(K.error==="authorization_pending"){await J(Math.min(b+Mz,L),q?.signal);continue}if(K.error==="slow_down"){b=Math.min(b+_q,wq),await J(Math.min(b+Mz,L),q?.signal);continue}if(K.error==="access_denied"||K.error==="authorization_denied")throw Error("xAI device authorization was denied.");if(K.error==="expired_token")throw Error("xAI device code expired - please re-run login.");let P=K.error_description??K.error??"";throw Error(`xAI device token exchange failed (${M.status})${P?`: ${P}`:""}`)}throw Error("xAI device authorization timed out.")}class y4{abortController=null;async startDeviceFlow(z){let q=new AbortController;this.abortController=q;try{let R=await jq({signal:q.signal});return await z(R),await Oq(R,{signal:q.signal})}finally{if(this.abortController===q)this.abortController=null}}cleanup(){this.abortController?.abort(Error("xAI device authorization was cancelled.")),this.abortController=null}}var Iz=5000,Mq=1000,_q=5000,wq=60000,Pz=300000,Mz=3000;var Dz=d(()=>{Lq();Fq()});function Uq(){return new y4}function Tz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??Uq,J=z.deps?.saveXaiCredentials??Ez,G=z.deps?.isBareMode??t,[W,_]=v0.useState({state:"starting"});return v0.useEffect(()=>{if(G()){_({state:"error",message:"xAI OAuth is unavailable in --bare because secure storage is disabled."});return}let b=!1,M=R();return M.startDeviceFlow(async(K)=>{if(b)return;_({state:"waiting",userCode:K.user_code,verificationUri:K.verification_uri,verificationUriComplete:K.verification_uri_complete})}).then(async(K)=>{if(b)return;await q(K,(P)=>{let U=J({accessToken:K.accessToken,refreshToken:K.refreshToken,idToken:K.idToken,expiresAt:K.expiresAt,profileId:P?.profileId});if(!U.success)throw Error(U.warning??"xAI OAuth succeeded, but credentials could not be saved securely.")})}).catch((K)=>{if(b)return;_({state:"error",message:K instanceof Error?K.message:String(K)})}),()=>{b=!0,M.cleanup()}},[R,G,q,J]),W}var v0;var Sz=d(()=>{Dz();c0();uz();v0=O0(U0(),1)});async function dz(){return{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":xz,...await lz()}}function Az(z,q){let R=Number(z);return Number.isFinite(R)&&R>0?R*1000:q}function Eq(z,q){if(q?.aborted)return Promise.resolve();return new Promise((R)=>{let J=setTimeout(()=>{q?.removeEventListener("abort",G),R()},z),G=()=>{clearTimeout(J),R()};q?.addEventListener("abort",G,{once:!0})})}async function uq(z){let q=z?.fetchImpl??fetch,R=z?.signal?AbortSignal.any([z.signal,AbortSignal.timeout(15000)]):AbortSignal.timeout(15000),J=await q(Cz,{method:"POST",headers:await dz(),body:new URLSearchParams({client_id:K4()}).toString(),signal:R});if(!J.ok){let M=await J.text().catch(()=>"");throw Error(`Kimi device code request failed (${J.status})${M?`: ${M.trim()}`:""}`)}let G=await J.json(),W=G0(G.device_code),_=G0(G.user_code),b=G0(G.verification_uri);if(!W||!_||!b)throw Error("Kimi device code response is missing device_code / user_code / verification_uri.");return{device_code:W,user_code:_,verification_uri:b,verification_uri_complete:G0(G.verification_uri_complete),expires_in:typeof G.expires_in==="number"&&G.expires_in>0?G.expires_in:vz/1000,interval:typeof G.interval==="number"&&G.interval>0?G.interval:pz/1000}}async function Tq(z,q){let R=q?.fetchImpl??fetch,J=q?.sleep??Eq,G=q?.now??(()=>Date.now()),W=Az(z.expires_in,vz),_=G()+W,b=Math.max(Az(z.interval,pz),Pq);while(G()<_){if(q?.signal?.aborted)throw Error("Kimi device authorization was cancelled.");let M=await R(fz,{method:"POST",headers:await dz(),body:new URLSearchParams({grant_type:gz,client_id:K4(),device_code:z.device_code}).toString(),signal:q?.signal});if(M.ok){let U=await M.json(),T=G0(U.access_token),h=G0(U.refresh_token);if(!T||!h)throw Error("Kimi OAuth completed, but the token response was missing credentials.");let X=typeof U.expires_in==="number"&&Number.isFinite(U.expires_in)&&U.expires_in>0?U.expires_in:900;return{accessToken:T,refreshToken:h,expiresAt:G()+X*1000}}let K=await M.json().catch(()=>({})),L=Math.max(0,_-G());if(K.error==="authorization_pending"){await J(Math.min(b+kz,L),q?.signal);continue}if(K.error==="slow_down"){b=Math.min(b+hq,Dq),await J(Math.min(b+kz,L),q?.signal);continue}if(K.error==="access_denied"||K.error==="authorization_denied")throw Error("Kimi device authorization was denied.");if(K.error==="expired_token")throw Error("Kimi device code expired - please re-run login.");let P=K.error_description??K.error??"";throw Error(`Kimi device token exchange failed (${M.status})${P?`: ${P}`:""}`)}throw Error("Kimi device authorization timed out.")}class b4{abortController=null;async startDeviceFlow(z){let q=new AbortController;this.abortController=q;try{let R=await uq({signal:q.signal});return await z(R),await Tq(R,{signal:q.signal})}finally{if(this.abortController===q)this.abortController=null}}cleanup(){this.abortController?.abort(Error("Kimi device authorization was cancelled.")),this.abortController=null}}var pz=5000,Pq=1000,hq=5000,Dq=60000,vz=1800000,kz=3000;var nz=d(()=>{Iq();cz()});function Sq(){return new b4}function tz(z){let{onAuthenticated:q}=z,R=z.deps?.createOAuthService??Sq,J=z.deps?.saveKimiCredentials??az,G=z.deps?.isBareMode??t,[W,_]=Y0.useState({state:"starting"}),b=Y0.useRef(!1);return Y0.useEffect(()=>{if(G()){_({state:"error",message:"Kimi Code OAuth is unavailable in --bare because secure storage is disabled."});return}let M=!1,K=R();return K.startDeviceFlow(async(L)=>{if(M)return;_({state:"waiting",userCode:L.user_code,verificationUri:L.verification_uri,verificationUriComplete:L.verification_uri_complete})}).then(async(L)=>{if(M)return;await q(L,(U)=>{let T=J({accessToken:L.accessToken,refreshToken:L.refreshToken,expiresAt:L.expiresAt,profileId:U?.profileId});if(!T.success)throw Error(T.warning??"Kimi Code OAuth succeeded, but credentials could not be saved securely.")})}).catch((L)=>{if(M)return;_({state:"error",message:L instanceof Error?L.message:String(L)})}),()=>{M=!0,K.cleanup()}},[R,G,q,J]),Y0.useEffect(()=>{if(W.state!=="waiting")return;if(b.current)return;let M=W.verificationUriComplete??W.verificationUri;if(!M)return;b.current=!0,l0(M).catch(()=>{})},[W]),W}var Y0;var rz=d(()=>{nz();Hz();c0();iz();Y0=O0(U0(),1)});function Z1(z){return{name:z.name,baseUrl:z.baseUrl,model:z.model,apiKey:z.apiKey??""}}function N1(z){let q=i0(z);return{name:q.name,baseUrl:q.baseUrl,model:q.model,apiKey:q.apiKey??""}}function G1(z){let q={};for(let R of z.split(/\r?\n/)){let J=R.trim();if(!J)continue;let G=J.indexOf(":");if(G<=0)continue;let W=J.slice(0,G).trim(),_=J.slice(G+1).trim();if(W&&_)q[W]=_}return q}function Y1(z){if(!z)return"";return Object.entries(z).map(([q,R])=>`${q}: ${R}`).join(`
|
|
49
|
-
`)}function W1(z,q){let R={},J=z.awsRegion?.trim();if(J)R.awsRegion=J;let G=z.gcpProject?.trim();if(G)R.gcpProject=G;let W=z.gcpRegion?.trim();if(W)R.gcpRegion=W;let _=z.azureResource?.trim();if(_)R.azureResource=_;let b=G1(q);if(Object.keys(b).length>0)R.customHeaders=b;return Object.keys(R).length>0?R:void 0}function V1(z,q){let R=q?" (active)":"",J=z.apiKey?"key set":"no key",G=z.provider==="anthropic"?"anthropic":"openai-compatible",W=oz(z.model),_=W.length<=3?W.join(", "):`${W[0]}, ${W[1]} + ${W.length-2} more`;return`${G} · ${z.baseUrl} · ${_} · ${J}${R}`}function X1(z,q){if(z.state==="unreachable")return`Could not reach Atomic Chat at ${G4(q)}. Start the Atomic Chat app first, or enter the endpoint manually.`;if(z.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 y1(z,q){if(z.state==="unreachable")return`Could not reach Ollama at ${G4(q)}. Start Ollama first, or enter the endpoint manually.`;if(z.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(z.state==="generation_failed"){let R=z.probeModel??"the selected model",J=z.detail?` Details: ${z.detail}.`:"";return`Ollama is reachable and models are installed, but a generation probe failed for ${R}.${J} Run "ollama run ${R}" once and retry, or enter details manually.`}return""}function L4(z,q){if(!q)return;return z.find((R)=>R.id===q)}function sz(z,q){return Boolean(z&&q&&z.id===q)}function K1(z,q){if(q){let R=z.find((J)=>J.id===q);if(R)return R}return z.find((R)=>R.provider==="openai"&&R.baseUrl===I4&&!R.apiKey)}function b1(z,q){if(q){let R=z.find((J)=>J.id===q);if(R)return R}return z.find((R)=>R.provider==="openai"&&R.baseUrl===t0&&!R.apiKey)}function H1(z,q){return z.find((R)=>R.provider==="anthropic"&&R.baseUrl===q&&!R.apiKey)}function L1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,W)=>{await q(G,W)},[q]);a("confirm:no",z);let J=Lz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"Codex OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(C,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Codex OAuth"}),$(N,{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."}),J.state==="starting"?$(N,{dimColor:!0,children:"Starting local callback and preparing your browser..."}):J.browserOpened===!1?y(N0,{children:[$(N,{color:"warning",children:"Browser did not open automatically. Visit this URL to continue:"}),$(N,{children:J.authUrl})]}):J.browserOpened===!0?y(N0,{children:[$(N,{dimColor:!0,children:"Browser opened. Finish the ChatGPT sign-in there and this setup will complete automatically."}),$(N,{children:J.authUrl})]}):$(N,{dimColor:!0,children:"Opening your browser..."}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function F1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,W)=>{await q(G,W)},[q]);a("confirm:no",z);let J=Tz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"xAI OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(C,{options:[{value:"back",label:"Back",description:"Return to provider presets"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"xAI / Grok OAuth"}),J.state==="starting"?$(N,{dimColor:!0,children:"Requesting a device code from xAI..."}):y(N0,{children:[y(N,{children:["Open this URL on any device:"," ",$(N,{bold:!0,children:J.verificationUri})]}),y(N,{children:["Enter code ",$(N,{bold:!0,children:J.userCode})]}),J.verificationUriComplete&&J.verificationUriComplete!==J.verificationUri?y(N,{dimColor:!0,children:["Or open this prefilled URL: ",J.verificationUriComplete]}):null,$(N,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function M1({onBack:z,onConfigured:q}){let R=H.useCallback(async(G,W)=>{await q(G,W)},[q]);a("confirm:no",z);let J=tz({onAuthenticated:R});if(J.state==="error")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"error",bold:!0,children:"Kimi Code OAuth failed"}),$(N,{children:J.message}),$(N,{dimColor:!0,children:"Press Enter or Esc to go back."}),$(C,{options:[{value:"back",label:"Back",description:"Return to Moonshot AI authentication choices"}],onChange:z,onCancel:z,visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Moonshot AI · Kimi Code"}),J.state==="starting"?$(N,{dimColor:!0,children:"Requesting a device code from Kimi..."}):y(N0,{children:[y(N,{children:["Open this URL on any device:"," ",$(N,{bold:!0,children:J.verificationUri})]}),y(N,{children:["Enter code ",$(N,{bold:!0,children:J.userCode})]}),J.verificationUriComplete&&J.verificationUriComplete!==J.verificationUri?y(N,{dimColor:!0,children:["Or open this prefilled URL: ",J.verificationUriComplete]}):null,$(N,{dimColor:!0,children:"Waiting for you to authorize in the browser..."})]}),$(N,{dimColor:!0,children:"Press Esc to cancel and go back."})]})}function T8({mode:z,onDone:q}){let R=W2(),[J,G]=H.useState([]),[W,_]=H.useState(),[b,M]=H.useState(),[K,L]=H.useState(!1),[P,U]=H.useState(),T=H.useRef(0),[h,X]=H.useState(z==="first-run"?"select-preset":"menu"),[m0,f]=H.useState(null),[D,Z0]=H.useState("openai"),[I,p]=H.useState(()=>N1("ollama")),[h0,D0]=H.useState({}),[P4,r0]=H.useState(""),[b2,H2]=H.useState(0),[L2,F2]=H.useState(0),[s0,h4]=H.useState(null),[V0,w0]=H.useState(0),[X0,r]=H.useState(0),[M2,s]=H.useState(0),[D4,S]=H.useState(),[y0,B]=H.useState(),[_2,w2]=H.useState(),[E4,E0]=H.useState(!1),[B0,j0]=H.useState(),[o,u0]=H.useState({state:"idle"}),[e,T0]=H.useState({state:"idle"}),[z0,o0]=H.useState({state:"idle"}),[B2,j2]=H.useState(!0),[O2,l]=H.useState(!1),e0=H.useRef(!1),[U2,u4]=H.useState(()=>a0()),[T4,I2]=H.useState(()=>y2());H.useEffect(()=>{queueMicrotask(()=>{let Q=n(),Z=v()?.id;G(Q),_(Z),M(d0()),U(F4()),L(P0()),j2(!1)})},[]);let K0=W0[X0]??W0[0],S0=K0.key,P2=I[S0],z4=J.length>0,k0=z4,S4=H.useMemo(()=>[{value:"add",label:"Add provider",description:"Create a new provider profile"},{value:"activate",label:"Set active provider (Global)",description:P?`Currently: ${J.find((Q)=>Q.id===P)?.name??"unknown"}`:"Default profile for projects without an override",disabled:!k0},{value:"activate-project",label:"Set active provider (Project)",description:b?`Currently: ${J.find((Q)=>Q.id===b)?.name??"unknown"} (this project)`:"Override the global default for this project only",disabled:!k0},...K?[{value:"clear-project-override",label:"Clear project provider override",description:b?"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:!z4},{value:"delete",label:"Delete provider",description:"Remove a provider profile",disabled:!k0},...E4?[{value:"logout-codex-oauth",label:"Log out Codex OAuth",description:"Clear securely stored Codex OAuth credentials"}]:[],{value:"done",label:"Done",description:"Return to chat"}],[k0,z4,E4,P,b,J]),q4=H.useCallback(()=>{if(t()){T.current+=1,E0(!1),j0(void 0);return}let Q=++T.current;(async()=>{let Z=await w4();if(Q!==T.current)return;E0(Boolean(Z?.apiKey||Z?.accessToken||Z?.refreshToken||Z?.idToken)),j0(Z?.profileId)})()},[]);H.useEffect(()=>{return q4(),()=>{T.current+=1}},[q4]),H.useEffect(()=>{if(h!=="select-ollama-model")return;let Q=!1;return u0({state:"loading"}),(async()=>{let Z=await Y2({baseUrl:I.baseUrl});if(Z.state!=="ready"){if(!Q)u0({state:"unavailable",message:y1(Z,I.baseUrl)});return}let Y=N4(Z.models,"balanced"),m=qz(Z.models,"balanced");if(!Q)u0({state:"ready",defaultValue:m?.name??Y[0]?.name,options:Y.map((V)=>({label:V.name,value:V.name,description:V.summary}))})})(),()=>{Q=!0}},[I.baseUrl,h]),H.useEffect(()=>{if(h!=="select-atomic-chat-model")return;let Q=!1;return T0({state:"loading"}),(async()=>{let Z=await G2({baseUrl:I.baseUrl});if(Z.state!=="ready"){if(!Q)T0({state:"unavailable",message:X1(Z,I.baseUrl)});return}if(!Q)T0({state:"ready",defaultValue:Z.models[0],options:Z.models.map((Y)=>({label:Y,value:Y}))})})(),()=>{Q=!0}},[I.baseUrl,h]),H.useEffect(()=>{if(h!=="select-openai-model")return;let Q=!1;return o0({state:"loading"}),(async()=>{let Z=await Z2({baseUrl:I.baseUrl,apiKey:I.apiKey||void 0});if(Q)return;if(!Z||Z.length===0){o0({state:"unavailable",message:"Couldn't list models from this provider. Enter the model id manually, or go back to check the base URL and API key."});return}let{options:Y,defaultValue:m}=N2(Z,I.model);o0({state:"ready",options:Y,defaultValue:m})})(),()=>{Q=!0}},[I.baseUrl,I.apiKey,h]);function A(){if(e0.current)return;e0.current=!0,queueMicrotask(()=>{let Q=n();G(Q),_(v()?.id),M(d0()),U(F4()),L(P0()),q4(),e0.current=!1})}function b0(){return null}function R4(Q){if(Q.activationWarning)return`${Q.prefix}. Saved for next startup. Warning: ${Q.warnings.join("; ")}.`;if(Q.warnings.length>0)return`${Q.prefix}. Claudin switched to it for this session with warnings: ${Q.warnings.join("; ")}.`;return`${Q.prefix}. Claudin switched to it for this session.`}async function Q4(Q){if(Q?.accessToken&&Q.accountId)return null;let Z=await w4();if(!Z)return"stored Codex OAuth credentials could not be loaded";if(!Z.accountId)return"stored Codex OAuth credentials are missing a ChatGPT account id";return null}function k4(){J2()}async function h2(Q){let Z="provider";l(!0),S("Activating provider...");try{await new Promise((q0)=>queueMicrotask(q0));let Y=P0(),m=$0(Q);if(!m){B("Could not change active provider."),l(!1),O();return}let V=Y?v()??m:m,F=M0(V.model)||n0();if(!Y)R((q0)=>({...q0,mainLoopModel:F,mainLoopModelForSession:null}));Z=m.name;let j=b0(),E=sz(m,B0),x=E?await Q4():null;A();let c=Y&&V.id!==m.id?` (project override still active — this project keeps using ${V.name}; use "Clear project provider override" to apply the new default here)`:"",k=E?R4({prefix:`Active provider: ${m.name}${c}`,activationWarning:x,warnings:[x,j?`could not clear startup provider override (${j})`:null].filter((q0)=>Boolean(q0))}):j?`Active provider: ${m.name}${c}. Warning: could not clear startup provider override (${j}).`:`Active provider: ${m.name}${c}`;S(k),l(!1),q({action:"activated",activeProfileId:m.id,activeProviderName:m.name,activeProviderModel:F,message:`Provider switched to ${m.name} (${F})`}),O()}catch(Y){A(),S(void 0),l(!1);let m=Y instanceof Error?Y.message:String(Y);B(`Could not finish activating ${Z}: ${m}`),O()}}async function D2(){l(!0),S("Clearing project provider override...");try{await new Promise((Z)=>queueMicrotask(Z)),M4(null),A();let Q=v();if(Q){let Z=M0(Q.model)||n0();_0(),R((Y)=>({...Y,mainLoopModel:Z,mainLoopModelForSession:null})),S(`Project override cleared. Using global default: ${Q.name}.`),l(!1),q({action:"activated",activeProfileId:Q.id,activeProviderName:Q.name,activeProviderModel:Z,message:`Project override cleared — using ${Q.name} (${Z})`}),O()}else S("Project provider override cleared. No global default set."),l(!1),q({action:"saved",message:"Project provider override cleared. No global default set."}),O()}catch(Q){A(),S(void 0),l(!1);let Z=Q instanceof Error?Q.message:String(Q);B(`Could not clear project provider override: ${Z}`),O()}}async function E2(Q){let Z="provider";l(!0),S("Setting provider for this project...");try{await new Promise((k)=>queueMicrotask(k));let Y=d0(),m=M4(Q);if(!m){B("Could not set project provider override."),l(!1),O();return}let V=M0(m.model)||n0();if(Y===m.id)_0();R((k)=>({...k,mainLoopModel:V,mainLoopModelForSession:null})),Z=m.name;let F=b0(),j=sz(m,B0),E=j?await Q4():null;A();let x=`Active provider for this project: ${m.name}. Other projects keep the global default.`,c=j?R4({prefix:x,activationWarning:E,warnings:[E,F?`could not clear startup provider override (${F})`:null].filter((k)=>Boolean(k))}):F?`${x} Warning: could not clear startup provider override (${F}).`:x;S(c),l(!1),q({action:"activated",activeProfileId:m.id,activeProviderName:m.name,activeProviderModel:V,message:`Provider switched to ${m.name} (${V}) for this project`}),O()}catch(Y){A(),S(void 0),l(!1);let m=Y instanceof Error?Y.message:String(Y);B(`Could not finish setting ${Z} for this project: ${m}`),O()}}function O(){w2("done"),X("menu")}function A0(Q){q({action:"cancelled",message:Q})}function A4(Q){let Z=i0(Q),Y={name:Z.name,baseUrl:Z.baseUrl,model:Z.model,apiKey:Z.apiKey??""};if(f(null),Z0(Z.provider??"openai"),p(Y),D0({}),r0(""),h4(Q),r(0),w0(0),s(Y.name.length),B(void 0),Q==="ollama"){u0({state:"loading"}),X("select-ollama-model");return}if(Q==="atomic-chat"){T0({state:"loading"}),X("select-atomic-chat-model");return}if(Q==="anthropic"){X("anthropic-auth-choice");return}if(Q==="bedrock"||Q==="vertex"||Q==="foundry"){X("cloud-extras");return}X("form")}function u2(Q){let Z=J.find((m)=>m.id===Q);if(!Z)return;let Y=Z1(Z);f(Q),Z0(Z.provider??"openai"),p(Y),D0({awsRegion:Z.extras?.awsRegion,gcpProject:Z.extras?.gcpProject,gcpRegion:Z.extras?.gcpRegion,azureResource:Z.extras?.azureResource}),r0(Y1(Z.extras?.customHeaders)),h4(null),r(0),w0(0),s(Y.name.length),B(void 0),X("form")}function C0(Q=I){let Z=W1(h0,P4),Y={provider:D,name:Q.name,baseUrl:Q.baseUrl,model:Q.model,apiKey:Q.apiKey,extras:Z},m=m0?Q0(m0,Y):R0(Y,{makeActive:!0});if(!m){B("Could not save provider. Fill all required fields.");return}let V=v()?.id===m.id;if(V)_0(),R((c)=>({...c,mainLoopModel:M0(m.model),mainLoopModelForSession:null}));let F=V?b0():null;A();let j=!m0&&P0()&&!V,E=j?v()?.name??"override target":null,x=m0?`Updated provider: ${m.name}`:j?`Added provider: ${m.name} (now global default — project keeps using ${E}; use "Clear project provider override" to apply here)`:`Added provider: ${m.name} (now active)`;if(S(F?`${x}. Warning: could not clear startup provider override (${F}).`:x),z==="first-run"){q({action:"saved",activeProfileId:m.id,message:`Provider configured: ${m.name}`});return}f(null),r(0),B(void 0),O()}function T2(){if(e.state==="loading"||e.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Checking Atomic Chat"}),$(N,{dimColor:!0,children:"Looking for loaded Atomic Chat models..."})]});if(e.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Atomic Chat setup"}),$(N,{dimColor:!0,children:e.message}),$(C,{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:(Q)=>{if(Q==="manual"){r(0),s(I.name.length),X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:2})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose an Atomic Chat model"}),$(N,{dimColor:!0,children:"Pick one of the models loaded in Atomic Chat to save into a local provider profile."}),$(C,{options:e.options,defaultValue:e.defaultValue,defaultFocusValue:e.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,e.options.length),onChange:(Q)=>{let Z={...I,model:Q};p(Z),C0(Z)},onCancel:()=>X("select-preset")})]})}function S2(){if(o.state==="loading"||o.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Checking Ollama"}),$(N,{dimColor:!0,children:"Looking for installed Ollama models..."})]});if(o.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Ollama setup"}),$(N,{dimColor:!0,children:o.message}),$(C,{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:(Q)=>{if(Q==="manual"){r(0),s(I.name.length),X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:2})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose an Ollama model"}),$(N,{dimColor:!0,children:"Pick one of the installed Ollama models to save into a local provider profile."}),$(C,{options:o.options,defaultValue:o.defaultValue,defaultFocusValue:o.defaultValue,inlineDescriptions:!0,visibleOptionCount:Math.min(8,o.options.length),onChange:(Q)=>{let Z={...I,model:Q};p(Z),C0(Z)},onCancel:()=>X("select-preset")})]})}function H0(Q){let Z=W0.findIndex((Y)=>Y.key===Q);r(Z<0?0:Z),s(I[Q].length),B(void 0),X("form")}function k2(){if(z0.state==="loading"||z0.state==="idle")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Fetching models"}),$(N,{dimColor:!0,children:"Looking for models on your OpenAI-compatible provider…"}),$(N,{dimColor:!0,children:"Press Esc to enter the model manually."})]});if(z0.state==="unavailable")return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose a model"}),$(N,{dimColor:!0,children:z0.message}),$(C,{options:[{value:"manual",label:"Enter manually",description:"Type the model id yourself"},{value:"back",label:"Back",description:"Return to the API key step"}],onChange:(Y)=>{if(Y==="manual"){H0("model");return}H0("apiKey")},onCancel:()=>H0("apiKey"),visibleOptionCount:2})]});let Q=[...z0.options,{value:H4,label:"Enter a model id manually",description:"Type an id the provider did not list"}],Z=z0.defaultValue??H4;return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Choose a model"}),$(N,{dimColor:!0,children:"Models from your OpenAI-compatible provider."}),$(C,{options:Q,defaultValue:Z,defaultFocusValue:Z,inlineDescriptions:!0,visibleOptionCount:Math.min(8,Q.length),onChange:(Y)=>{if(Y===H4){H0("model");return}let m={...I,model:Y};p(m),C4(m)},onCancel:()=>H0("apiKey")}),$(N,{dimColor:!0,children:"Enter to select · Esc to go back"})]})}function C4(Q){if(s0==="anthropic"||s0==="custom"){p(Q),X("custom-headers");return}C0(Q)}function A2(Q){let Z=Q.trim();if(!K0.optional&&Z.length===0){B(`${K0.label} is required.`);return}let Y={...I,[S0]:Z};if(p(Y),B(void 0),X0<W0.length-1){let m=X0+1,V=W0[m]?.key??"name";if(V==="model"&&!oq.has(D)&&Y.baseUrl.trim().length>0){X("select-openai-model");return}r(m),s(Y[V].length);return}C4(Y)}function C2(){if(B(void 0),X0>0){let Q=X0-1,Z=W0[Q]?.key??"name";r(Q),s(I[Z].length);return}if(z==="first-run"){X("select-preset");return}O()}a("confirm:no",C2,{context:"Settings",isActive:h==="form"}),a("confirm:no",()=>H0("model"),{context:"Settings",isActive:h==="select-openai-model"&&(z0.state==="loading"||z0.state==="idle")});function f2(){if(B(void 0),V0>0){w0(V0-1);return}X("select-preset")}a("confirm:no",f2,{context:"Settings",isActive:h==="cloud-extras"}),a("confirm:no",()=>X("form"),{context:"Settings",isActive:h==="custom-headers"}),a("confirm:no",()=>X("select-preset"),{context:"Settings",isActive:h==="anthropic-auth-choice"||h==="anthropic-oauth"||h==="kimi-auth-choice"}),a("confirm:no",()=>X("kimi-auth-choice"),{context:"Settings",isActive:h==="kimi-oauth"});function g2(){let Q=!t(),Z=[...U2?[{value:"import-legacy",label:"Reuse Claude Code sign-in",description:"Copy ~/.claude/ API tokens and provider profiles. /import brings the rest."}]:[],{value:"dashscope-intl",label:"Alibaba Coding Plan",description:"Alibaba DashScope International endpoint"},{value:"dashscope-cn",label:"Alibaba Coding Plan (China)",description:"Alibaba DashScope China endpoint"},{value:"anthropic",label:"Anthropic",description:"Native Claude API (x-api-key auth)"},{value:"atomic-chat",label:"Atomic Chat",description:"Local Model Provider"},{value:"azure-openai",label:"Azure OpenAI",description:"Azure OpenAI endpoint (model=deployment name)"},{value:"foundry",label:"Azure AI Foundry",description:"Anthropic models hosted on Azure AI Foundry (resource-scoped)"},{value:"bedrock",label:"AWS Bedrock",description:"Anthropic models on AWS Bedrock (region-scoped, AWS creds)"},{value:"bankr",label:"Bankr",description:"Bankr LLM Gateway (OpenAI-compatible)"},{value:"cloudflare-workers-ai",label:"Cloudflare Workers AI",description:"Cloudflare Workers AI (OpenAI-compatible); set your account ID in the base URL"},{value:"cloudflare-ai-gateway",label:"Cloudflare AI Gateway",description:"Cloudflare AI Gateway unified endpoint; set your account ID in the base URL"},...Q?[{value:"codex-oauth",label:"Codex OAuth",description:"Sign in with ChatGPT in your browser and store Codex credentials securely"},{value:"xai-oauth",label:"xAI / Grok (OAuth)",description:"Sign in with xAI in your browser and store Grok credentials securely"}]:[],{value:"github-onboard",label:"GitHub Copilot",description:"Sign in with GitHub in your browser to use Copilot models"},{value:"deepseek",label:"DeepSeek",description:"DeepSeek OpenAI-compatible endpoint"},{value:"gemini",label:"Google Gemini",description:"Gemini OpenAI-compatible endpoint"},{value:"vertex",label:"Google Vertex AI",description:"Anthropic models on Vertex AI (project + region, ADC)"},{value:"groq",label:"Groq",description:"Groq OpenAI-compatible endpoint"},{value:"lmstudio",label:"LM Studio",description:"Local LM Studio endpoint"},{value:"minimax",label:"MiniMax",description:"MiniMax API endpoint"},{value:"mistral",label:"Mistral",description:"Mistral OpenAI-compatible endpoint"},{value:"moonshotai",label:"Moonshot AI",description:"API key or Kimi Code OAuth sign-in"},{value:"nvidia-nim",label:"NVIDIA NIM",description:"NVIDIA NIM endpoint"},{value:"opencode-go",label:"OpenCode GO",description:"OpenCode GO OpenAI-compatible endpoint"},{value:"opencode-zen",label:"OpenCode Zen",description:"OpenCode Zen OpenAI-compatible endpoint"},{value:"ollama",label:"Ollama",description:"Local or remote Ollama endpoint"},{value:"openai",label:"OpenAI",description:"OpenAI API with API key"},{value:"openrouter",label:"OpenRouter",description:"OpenRouter OpenAI-compatible endpoint"},{value:"together",label:"Together AI",description:"Together chat/completions endpoint"},{value:"zai",label:"Z.AI (GLM Coding Plan)",description:"Z.AI GLM Coding Plan (OpenAI-compatible)"},{value:"custom",label:"Custom",description:"Any OpenAI-compatible provider"},...z==="first-run"?[{value:"skip",label:"Skip for now",description:"Continue with current defaults"}]:[]];return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:z==="first-run"?"Set up provider":"Choose provider preset"}),$(N,{dimColor:!0,children:"Pick a preset, then confirm base URL, model, and API key."}),$(U4,{options:Z,searchPlaceholder:"Search presets…",onChange:(Y)=>{if(Y==="skip"){A0("Provider setup skipped");return}if(Y==="codex-oauth"){X("codex-oauth");return}if(Y==="xai-oauth"){X("xai-oauth");return}if(Y==="moonshotai"){X("kimi-auth-choice");return}if(Y==="github-onboard"){X("github-onboard");return}if(Y==="import-legacy"){(async()=>{let m=await V2({force:!0});u4(a0()),A();let V=X2(m);if(m.errors.length>0){B(V);return}let F=v();if(z==="first-run"&&F){q({action:"saved",activeProfileId:F.id,activeProviderName:F.name,activeProviderModel:F.model,message:V});return}if(S(V),B(void 0),z==="manage")O()})();return}A4(Y)},onCancel:()=>{if(z==="first-run"){A0("Provider setup skipped");return}O()},visibleOptionCount:Math.min(13,Z.length)})]})}function x2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Anthropic — choose authentication"}),$(N,{dimColor:!0,children:"Sign in with your Anthropic account in the browser, or paste an API key."}),$(C,{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:(Q)=>{if(Q==="oauth"){X("anthropic-oauth");return}if(Q==="apiKey"){X("form");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:3})]})}function c2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Moonshot AI — choose authentication"}),$(N,{dimColor:!0,children:"Sign in with your Kimi Code subscription in the browser, or paste a Moonshot AI API key."}),$(C,{options:[{value:"oauth",label:"Sign in with web (OAuth)",description:"Open a browser, sign in to Kimi Code, and store tokens in ~/.claudin/.credentials.json"},{value:"apiKey",label:"Use API key",description:"Paste a Moonshot AI API key (sk-…)"},{value:"back",label:"Back",description:"Choose a different provider"}],onChange:(Q)=>{if(Q==="oauth"){X("kimi-oauth");return}if(Q==="apiKey"){A4("moonshotai");return}X("select-preset")},onCancel:()=>X("select-preset"),visibleOptionCount:3})]})}function l2(){let Q=(aq(),kq(nq)).ConsoleOAuthFlow;return $(w,{flexDirection:"column",gap:1,children:$(Q,{mode:"login",onDone:()=>{let Z=i0("anthropic"),Y={provider:"anthropic",name:Z.name,baseUrl:Z.baseUrl,model:Z.model},m=H1(n(),Z.baseUrl),V=m?Q0(m.id,Y):R0(Y,{makeActive:!0});if(!V){B("OAuth completed, but the Anthropic profile could not be saved."),X("select-preset");return}let F=m&&W!==V.id?$0(V.id):V;if(!F){B("OAuth completed, but the Anthropic profile could not be set as the startup provider."),X("select-preset");return}let j=`Anthropic OAuth configured: ${F.name}`;if(A(),z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}S(j),B(void 0),O()}})})}function p2(){let Q=s0;if(Q!=="bedrock"&&Q!=="vertex"&&Q!=="foundry")return null;let Z=m1[Q],Y=Z[V0]??Z[0],m=h0[Y.key]??"";function V(F){let j=F.trim();if(j.length===0){B(`${Y.label} is required.`);return}let E={...h0,[Y.key]:j};if(D0(E),B(void 0),V0<Z.length-1){w0(V0+1);return}w0(0),X("form")}return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:`${Q==="bedrock"?"AWS Bedrock":Q==="vertex"?"Google Vertex AI":"Azure AI Foundry"} setup`}),$(N,{dimColor:!0,children:Y.helpText}),y(N,{dimColor:!0,children:["Step ",V0+1," of ",Z.length,": ",Y.label]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:m,onChange:(F)=>D0((j)=>({...j,[Y.key]:F})),onSubmit:V,focus:!0,showCursor:!0,placeholder:`${Y.placeholder}${F0.ellipsis}`,columns:80,cursorOffset:b2,onChangeCursorOffset:H2})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function v2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Custom headers (optional)"}),y(N,{dimColor:!0,children:["Add HTTP headers sent on every request. One header per line as"," ",$(N,{children:"Header: Value"}),". Leave empty to skip."]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:P4,onChange:r0,onSubmit:()=>C0(I),focus:!0,showCursor:!0,placeholder:"X-Header: value",columns:80,multiline:!0,cursorOffset:L2,onChangeCursorOffset:F2})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter on a blank line to save. Press Esc to go back."})]})}function d2(){return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:m0?"Edit provider profile":"Create provider profile"}),$(N,{dimColor:!0,children:K0.helpText}),y(N,{dimColor:!0,children:["Provider type:"," ",D==="anthropic"?"Anthropic native API":"OpenAI-compatible API"]}),y(N,{dimColor:!0,children:["Step ",X0+1," of ",W0.length,": ",K0.label]}),y(w,{flexDirection:"row",gap:1,children:[$(N,{children:F0.pointer}),$(L0,{value:P2,onChange:(Q)=>p((Z)=>({...Z,[S0]:Q})),onSubmit:A2,focus:!0,showCursor:!0,placeholder:`${K0.placeholder}${F0.ellipsis}`,mask:S0==="apiKey"?"*":void 0,columns:80,cursorOffset:M2,onChangeCursorOffset:s})]}),y0&&$(N,{color:"error",children:y0}),$(N,{dimColor:!0,children:"Press Enter to continue. Press Esc to go back."})]})}function n2(){let Q=J.length>0,Z=Q;return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Provider manager"}),$(N,{dimColor:!0,children:"Active profile controls base URL, model, and API key used by this session."}),D4&&$(N,{children:D4}),$(w,{flexDirection:"column",children:J.length===0?$(N,{dimColor:!0,children:"No provider profiles configured yet."}):J.map((Y)=>y(N,{dimColor:!0,children:["- ",Y.name,": ",V1(Y,Y.id===W)]},Y.id))}),$(C,{options:S4,onChange:(Y)=>{switch(B(void 0),Y){case"add":X("select-preset");break;case"activate":if(Z)X("select-active");break;case"activate-project":if(Z)X("select-active-project");break;case"clear-project-override":D2();break;case"edit":if(Q)X("select-edit");break;case"delete":if(Z)X("select-delete");break;case"logout-codex-oauth":{let m=B4();if(!m.success){B(m.warning??"Could not clear Codex OAuth credentials.");break}E0(!1),j0(void 0);let V=L4(n(),B0),F=null;if(V){let j=_4(V.id);if(!j.removed){B("Codex OAuth credentials were cleared, but the Codex profile could not be removed."),A();break}k4(),F=j.activeProfileId?b0():null}A(),S(F?`Codex OAuth logged out. Warning: could not clear startup provider override (${F}).`:"Codex OAuth logged out.");break}default:A0("Provider manager closed");break}},onCancel:()=>A0("Provider manager closed"),defaultFocusValue:_2,visibleOptionCount:S4.length})]})}function f0(Q,Z,Y){let m=J.map((V)=>{let F=[];if(V.id===W)F.push("active");if(b&&V.id===b)F.push("this project");if(P&&V.id===P)F.push("global default");let j=F.length>0?` (${F.join(", ")})`:"";return{value:V.id,label:`${V.name}${j}`,description:`${V.provider==="anthropic"?"anthropic":"openai-compatible"} · ${V.baseUrl} · ${V.model}`}});if(m.length===0)return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:Q}),$(N,{dimColor:!0,children:Z}),$(C,{options:[{value:"back",label:"Back",description:"Return to provider manager"}],onChange:()=>O(),onCancel:()=>O(),visibleOptionCount:1})]});return y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:Q}),$(U4,{options:m,favorites:J1,searchPlaceholder:"Search providers…",onChange:Y,onCancel:()=>O(),visibleOptionCount:Math.min(10,Math.max(2,m.length))})]})}let u;switch(h){case"select-preset":u=g2();break;case"select-ollama-model":u=S2();break;case"select-openai-model":u=k2();break;case"select-atomic-chat-model":u=T2();break;case"codex-oauth":u=$(L1,{onBack:()=>X("select-preset"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:eq,baseUrl:ez,model:z1,apiKey:""},m=L4(n(),B0),V=m?Q0(m.id,Y):R0(Y,{makeActive:!0});if(!V){B("Codex OAuth login finished, but the provider profile could not be saved."),O();return}let F=m&&W!==V.id?$0(V.id):V;if(!F){B("Codex OAuth login finished, but the provider could not be set as the startup provider."),O();return}Z({profileId:V.id});let j=b0(),E=await Q4(Q);E0(!0),j0(V.id),A();let x=[E,j?`could not clear startup provider override (${j})`:null].filter((k)=>Boolean(k)),c=R4({prefix:"Codex OAuth configured",activationWarning:E,warnings:x});if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:c});return}S(c),B(void 0),O()}});break;case"xai-oauth":u=$(F1,{onBack:()=>X("select-preset"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:q1,baseUrl:t0,model:R1,apiKey:""},m=b1(n(),O4()?.profileId),V=m?Q0(m.id,Y):R0(Y,{makeActive:!0});if(!V){B("xAI OAuth login finished, but the provider profile could not be saved."),O();return}let F=m&&W!==V.id?$0(V.id):V;if(!F){B("xAI OAuth login finished, but the provider could not be set as the startup provider."),O();return}try{Z({profileId:V.id})}catch(E){B(E instanceof Error?E.message:String(E)),O();return}A();let j="xAI / Grok configured. Claudin switched to it for this session.";if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}S(j),B(void 0),O()}});break;case"kimi-auth-choice":u=c2();break;case"kimi-oauth":u=$(M1,{onBack:()=>X("kimi-auth-choice"),onConfigured:async(Q,Z)=>{let Y={provider:"openai",name:Q1,baseUrl:I4,model:$1,apiKey:""},m=K1(n(),j4()?.profileId),V=m?Q0(m.id,Y):R0(Y,{makeActive:!0});if(!V){B("Kimi Code OAuth login finished, but the provider profile could not be saved."),O();return}let F=m&&W!==V.id?$0(V.id):V;if(!F){B("Kimi Code OAuth login finished, but the provider could not be set as the startup provider."),O();return}try{Z({profileId:V.id})}catch(E){B(E instanceof Error?E.message:String(E)),O();return}A();let j="Kimi Code configured. Claudin switched to it for this session.";if(z==="first-run"){q({action:"saved",activeProfileId:F.id,message:j});return}S(j),B(void 0),O()}});break;case"github-onboard":u=$(s4,{onDone:(Q)=>{if(Q)S(Q),B(void 0);A(),O()},onBack:()=>X("select-preset"),onChangeAPIKey:A});break;case"anthropic-auth-choice":u=x2();break;case"anthropic-oauth":u=l2();break;case"cloud-extras":u=p2();break;case"custom-headers":u=v2();break;case"form":u=d2();break;case"select-active":u=f0("Set active provider (Global)","No providers available. Add one first.",(Q)=>{h2(Q)});break;case"select-active-project":u=f0("Set active provider (Project)","No providers available. Add one first.",(Q)=>{E2(Q)});break;case"select-edit":u=f0("Edit provider","No providers available. Add one first.",(Q)=>{u2(Q)});break;case"select-delete":u=f0("Delete provider","No providers available. Add one first.",(Q)=>{let Z=J.find((k)=>k.id===Q),Y=Z?.provider==="openai"&&Z?.extras?.githubToken!==void 0,m=L4(J,B0)?.id===Q,V=O4()?.profileId,F=Z?.provider==="openai"&&Z.baseUrl===t0&&!Z.apiKey&&V===Q,j=j4()?.profileId,E=Z?.provider==="openai"&&Z.baseUrl===I4&&!Z.apiKey&&j===Q,x=v()?.id===Q,c=_4(Q);if(!c.removed)B("Could not delete provider.");else{let k=[];if(m){let g=B4();if(!g.success)k.push(g.warning??"could not clear Codex OAuth credentials");else j0(void 0);k4()}if(Y){let g=q2();if(!g.success)k.push(g.warning??"could not clear GitHub Copilot token")}if(F){let g=$2();if(!g.success)k.push(g.warning??"could not clear xAI OAuth credentials")}if(E){let g=Q2();if(!g.success)k.push(g.warning??"could not clear Kimi Code OAuth credentials")}let q0=c.activeProfileId?b0():null;if(q0)k.push(`could not clear startup provider override (${q0})`);if(A(),x){let g=v();if(g)_0(),R(($4)=>({...$4,mainLoopModel:M0(g.model),mainLoopModelForSession:null}));else _0(),R(($4)=>({...$4,mainLoopModel:null,mainLoopModelForSession:null}))}S(k.length>0?`Provider deleted. Warning: ${k.join("; ")}.`:"Provider deleted")}O()});break;case"menu":default:u=n2();break}return y(z2,{color:"permission",children:[$(K2,{enabled:T4,onDismiss:(Q)=>{u4(a0()),I2(!1),A();let Z=v();if(Q==="migrated"&&z==="first-run"&&Z)q({action:"saved",activeProfileId:Z.id,activeProviderName:Z.name,activeProviderModel:Z.model})}}),T4?null:B2?y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Loading providers..."}),$(N,{dimColor:!0,children:"Reading provider profiles from disk."})]}):O2?y(w,{flexDirection:"column",gap:1,children:[$(N,{color:"remember",bold:!0,children:"Activating provider..."}),$(N,{dimColor:!0,children:"Please wait while the provider is being configured."})]}):u]})}var H,W0,H4="\x00__manual__",oq,eq="Codex OAuth",z1="codexplan",q1="xAI / Grok (OAuth)",R1="grok-4",Q1="Moonshot AI",$1,I4="https://api.kimi.com/coding/v1",J1,m1;var _1=d(()=>{Aq();o4();fq();x4();xq();vq();tq();bz();c0();Cq();gq();lq();f4();i4();pq();Rz();Qz();dq();iq();cq();sq();t4();Fz();Sz();rz();uz();iz();cz();rq();g0();H=O0(U0(),1),W0=[{key:"name",label:"Provider name",placeholder:"e.g. Ollama Home, OpenAI Work",helpText:"A short label shown in /provider and startup setup."},{key:"baseUrl",label:"Base URL",placeholder:"e.g. http://localhost:11434/v1",helpText:"API base URL used for this provider profile."},{key:"apiKey",label:"API key",placeholder:"Leave empty if your provider does not require one",helpText:"Optional. Press Enter with empty value to skip.",optional:!0},{key:"model",label:"Default model",placeholder:"e.g. llama3.1:8b or glm-4.7; glm-4.7-flash",helpText:'Model name(s) to use. Separate multiple with ";" or ","; first is default.'}],oq=new Set(["anthropic","bedrock","vertex","foundry"]),$1=R2,J1=m2("providerProfile",(z)=>z);m1={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{G4 as $c,Qz as ad,G1 as bd,T8 as cd,_1 as dd};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Bta as x,Dta as y,Hta as C}from"./cli-1.1.27-tc4b7enb.mjs";import{Kta as k}from"./cli-1.1.27-8vrv0ver.mjs";var MF=k((n)=>{var K=x(),b=C(),w=y(),f=(F)=>F[K.SMITHY_CONTEXT_KEY]||(F[K.SMITHY_CONTEXT_KEY]={}),h=(F,J)=>{if(!J||J.length===0)return F;let G=[];for(let L of J)for(let Q of F)if(Q.schemeId.split("#")[1]===L)G.push(Q);for(let L of F)if(!G.find(({schemeId:Q})=>Q===L.schemeId))G.push(L);return G};function v(F){let J=new Map;for(let G of F)J.set(G.schemeId,G);return J}var j=(F,J)=>(G,L)=>async(Q)=>{let V=F.httpAuthSchemeProvider(await J.httpAuthSchemeParametersProvider(F,L,Q.input)),W=F.authSchemePreference?await F.authSchemePreference():[],Z=h(V,W),Y=v(F.httpAuthSchemes),U=w.getSmithyContext(L),$=[];for(let X of Z){let B=Y.get(X.schemeId);if(!B){$.push(`HttpAuthScheme \`${X.schemeId}\` was not enabled for this service.`);continue}let D=B.identityProvider(await J.identityProviderConfigProvider(F));if(!D){$.push(`HttpAuthScheme \`${X.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:N={},signingProperties:R={}}=X.propertiesExtractor?.(F,L)||{};X.identityProperties=Object.assign(X.identityProperties||{},N),X.signingProperties=Object.assign(X.signingProperties||{},R),U.selectedHttpAuthScheme={httpAuthOption:X,identity:await D(X.identityProperties),signer:B.signer};break}if(!U.selectedHttpAuthScheme)throw Error($.join(`
|
|
2
|
-
`));return G(Q)},H={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},P=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),H)}}),M={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},l=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),M)}}),m=(F)=>(J)=>{throw J},u=(F,J)=>{},O=(F)=>(J,G)=>async(L)=>{if(!b.HttpRequest.isInstance(L.request))return J(L);let V=w.getSmithyContext(G).selectedHttpAuthScheme;if(!V)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:W={}},identity:Z,signer:Y}=V,U=await J({...L,request:await Y.sign(L.request,Z,W)}).catch((Y.errorHandler||m)(W));return(Y.successHandler||u)(U.response,W),U},I={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},c=(F)=>({applyToStack:(J)=>{J.addRelativeTo(O(),I)}}),a=(F)=>{if(typeof F==="function")return F;let J=Promise.resolve(F);return()=>J},d=async(F,J,G,L=(V)=>V,...Q)=>{let V=new F(G);return V=L(V)??V,await J.send(V,...Q)};function g(F,J,G,L,Q){return async function*(W,Z,...Y){let U=Z,$=W.startingToken??U[G],X=!0,B;while(X){if(U[G]=$,Q)U[Q]=U[Q]??W.pageSize;if(W.client instanceof F)B=await d(J,W.client,Z,W.withCommand,...Y);else throw Error(`Invalid client, expected instance of ${F.name}`);yield B;let D=$;$=p(B,L),X=!!($&&(!W.stopOnSameToken||$!==D))}return}}var p=(F,J)=>{let G=F,L=J.split(".");for(let Q of L){if(!G||typeof G!=="object")return;G=G[Q]}return G};function s(F,J,G){if(!F.__smithy_context)F.__smithy_context={features:{}};else if(!F.__smithy_context.features)F.__smithy_context.features={};F.__smithy_context.features[J]=G}class E{authSchemes=new Map;constructor(F){for(let J in F){let G=F[J];if(G!==void 0)this.authSchemes.set(J,G)}}getIdentityProvider(F){return this.authSchemes.get(F)}}class _{async sign(F,J,G){if(!G)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!G.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!G.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!J.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let L=b.HttpRequest.clone(F);if(G.in===K.HttpApiKeyAuthLocation.QUERY)L.query[G.name]=J.apiKey;else if(G.in===K.HttpApiKeyAuthLocation.HEADER)L.headers[G.name]=G.scheme?`${G.scheme} ${J.apiKey}`:J.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+G.in+"`");return L}}class z{async sign(F,J,G){let L=b.HttpRequest.clone(F);if(!J.token)throw Error("request could not be signed with `token` since the `token` is not defined");return L.headers.Authorization=`Bearer ${J.token}`,L}}class A{async sign(F,J,G){return F}}var q=(F)=>function(G){return S(G)&&G.expiration.getTime()-Date.now()<F},T=300000,r=q(T),S=(F)=>F.expiration!==void 0,o=(F,J,G)=>{if(F===void 0)return;let L=typeof F!=="function"?async()=>Promise.resolve(F):F,Q,V,W,Z=!1,Y=async(U)=>{if(!V)V=L(U);try{Q=await V,W=!0,Z=!1}finally{V=void 0}return Q};if(J===void 0)return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);return Q};return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);if(Z)return Q;if(!G(Q))return Z=!0,Q;if(J(Q))return await Y(U),Q;return Q}};n.requestBuilder=b.requestBuilder;n.DefaultIdentityProviderConfig=E;n.EXPIRATION_MS=T;n.HttpApiKeyAuthSigner=_;n.HttpBearerAuthSigner=z;n.NoAuthSigner=A;n.createIsIdentityExpiredFunction=q;n.createPaginator=g;n.doesIdentityRequireRefresh=S;n.getHttpAuthSchemeEndpointRuleSetPlugin=P;n.getHttpAuthSchemePlugin=l;n.getHttpSigningPlugin=c;n.getSmithyContext=f;n.httpAuthSchemeEndpointRuleSetMiddlewareOptions=H;n.httpAuthSchemeMiddleware=j;n.httpAuthSchemeMiddlewareOptions=M;n.httpSigningMiddleware=O;n.httpSigningMiddlewareOptions=I;n.isIdentityExpired=r;n.memoizeIdentityProvider=o;n.normalizeProvider=a;n.setFeature=s});
|
|
3
|
-
export{MF as Q_};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ci as SJ,di as YQ}from"./cli-1.1.27-wj32ftfy.mjs";import{Di as S,Ei as CJ}from"./cli-1.1.27-b42yen3p.mjs";import{Ax as QQ,Br as OJ,Fr as QJ,Hr as fq,Kr as MJ,Lr as ZJ,Ly as Sq,My as _q,Ny as gJ,YG as FJ,ZG as zQ,eo as IJ,fo as oJ,kr as xq,ky as bq,ly as BJ,mr as h,nr as jJ,ny as ZQ,qo as DJ,ro as tJ,so as LJ,to as eJ,uo as RJ,vo as qQ,wr as NJ,zr as TJ,zx as wJ}from"./cli-1.1.27-w8pwj9ef.mjs";import{fZ as AJ,gZ as lJ,jZ as PJ,kZ as aJ,sZ as VJ,tZ as JQ}from"./cli-1.1.27-9chfrr9e.mjs";import{F1 as M,H1 as V,J1 as sq,K1 as EJ,g0 as hJ,k2 as rJ}from"./cli-1.1.27-6spv5ha8.mjs";import{T4 as GJ,U4 as D,V4 as T,W4 as YJ}from"./cli-1.1.27-kgpk1m6k.mjs";import{X4 as sJ}from"./cli-1.1.27-m5wtrd2b.mjs";import{$6 as HJ,D7 as uq,F7 as r,F9 as PQ,M6 as mq,N6 as WJ,P6 as gq,P7 as p,S7 as Cq,W7 as dJ,e7 as nJ,g8 as _J,k9 as kJ,l8 as AQ}from"./cli-1.1.27-xdfkhk5m.mjs";import{$9 as X,a_ as yJ}from"./cli-1.1.27-vh1r16sd.mjs";import{Nca as aq,Oca as tq,Pca as vq,Qca as eq,Rca as qJ,Sca as JJ,bda as cJ}from"./cli-1.1.27-48ezce33.mjs";import{uka as UJ,xka as pJ}from"./cli-1.1.27-7gnbh46g.mjs";import{Ita as XJ,Mta as Dq}from"./cli-1.1.27-8vrv0ver.mjs";function rq(J){let q=J.messageActionsBackground;return q==="ansi:white"||q==="ansi:whiteBright"?J.inactive:q}function mJ(J){let q=J.userMessageBackground;return q==="ansi:white"||q==="ansi:whiteBright"?J.inactive:q}function Y(J,q,Q){if(q.startsWith("ansi:")){let z=q.slice(5),K=J;if(Q==="fg")return K[z]??J;let U=`bg${z[0].toUpperCase()}${z.slice(1)}`;return K[U]??J}if(q.startsWith("#"))return Q==="fg"?J.hex(q):J.bgHex(q);if(q.startsWith("ansi256(")){let z=parseInt(q.slice(8));return Q==="fg"?J.ansi256(z):J.bgAnsi256(z)}let Z=$J.exec(q);if(Z){let[z,K,U]=[+Z[1],+Z[2],+Z[3]];return Q==="fg"?J.rgb(z,K,U):J.bgRgb(z,K,U)}return J}function NQ(J,q,Q,Z,z){if(!S())return fJ(J,q,Q,Z,z);let{suggestion:K,messageActionsBackground:U}=z,H=U==="ansi:white"||U==="ansi:whiteBright"?z.inactive:U,G=z.inverseText,A=z.suggestion,L=Y(Y(X,K,"bg"),G,"fg").bold,I=Y(Y(X,K,"fg"),H,"bg"),P=Y(Y(X,H,"bg"),A,"fg"),R=Y(X,H,"fg"),w=Y(X,K,"fg"),j=L(` ${J} `);if(q){if(j+=I(F),j+=P(` ${hq} ${q}`),Q>0||Z>0){if(j+=P(" ("),Q>0)j+=Y(Y(X,H,"bg"),z.success,"fg")(`↑${Q}`);if(Q>0&&Z>0)j+=P(" ");if(Z>0)j+=Y(Y(X,H,"bg"),z.warning,"fg")(`↓${Z}`);j+=P(")")}j+=P(" "),j+=R(F)}else j+=w(F);return j}function TQ(J,q,Q){if(!S()){let H=Y(X,q.suggestion,"fg").bold;return`[ ${H(J)} ]`}let{suggestion:Z,inverseText:z}=q,K=Y(Y(X,Z,"bg"),z,"fg").bold,U=Q?Y(Y(X,Q,"bg"),Z,"fg"):Y(X,Z,"fg");return K(` ${J} `)+U(F)}function OQ(J,q,Q){if(!J)return"";if(!S()){let H=Y(X,q.suggestion,"fg").bold;return`[ ${H(J.trim())} ]`}let{suggestion:Z,inverseText:z}=q,K=Y(Y(X,Z,"bg"),z,"fg").bold,U=Q?Y(Y(X,Q,"bg"),Z,"fg"):Y(X,Z,"fg");return K(` ${J}`)+U(F)}function MQ(J,q,Q){if(!J)return"";if(!S())return`[ ${Y(X,q.suggestion,"fg")(J.trim())} ]`;let Z=rq(q),z=q.suggestion,K=Y(Y(X,Z,"bg"),z,"fg"),U=Q?Y(Y(X,Q,"bg"),Z,"fg"):Y(X,Z,"fg");return K(` ${J}`)+U(F)}function oq(J,q,Q){if(!J)return"";if(!S())return`[ ${J} ]`;let Z=Y(Y(X,q,"bg"),Q.inverseText,"fg").bold,z=Y(X,q,"fg");return Z(` ${J} `)+z(F)}function uJ(J,q,Q,Z){if(!S())return"";let z=J+q;if(z<=0)return"";let K=Math.round(J/z*kq);return Q(nq.repeat(K))+Z(nq.repeat(kq-K))}function wQ(J,q,Q=Number.POSITIVE_INFINITY){let Z=Y(X,q.success,"fg"),z=Y(X,q.error,"fg"),K=Y(X,q.inactive,"fg"),U=J.branch,H=U?{count:U,ref:U.base}:J.uncommitted?{count:J.uncommitted,ref:"HEAD"}:{count:J.session},{count:G,ref:A}=H;if(G.added<=0&&G.removed<=0)return null;let L=[],I=0;if(A)L.push(K(A)),I+=A.length;if(G.added>0){let w=`+${G.added}`;L.push(Z(w)),I+=w.length}if(G.removed>0){let w=`-${G.removed}`;L.push(z(w)),I+=w.length}let P=uJ(G.added,G.removed,Z,z);if(P)L.push(P),I+=kq;let R=I+L.length-1+4;if(R>Q)return null;return{text:`${K("[")} ${L.join(" ")} ${K("]")}`,width:R}}function BQ(J,q,Q,Z,z){if(!J)return"";if(!S()){let I=Y(X,Z.suggestion,"fg")(J);if(q>0||Q>0){if(I+=" (",q>0)I+=Y(X,Z.success,"fg")(`↑${q}`);if(q>0&&Q>0)I+=" ";if(Q>0)I+=Y(X,Z.warning,"fg")(`↓${Q}`);I+=")"}return`[ ${I} ]`}let K=rq(Z),U=Z.suggestion,H=Y(Y(X,K,"bg"),U,"fg"),G=z?Y(Y(X,z,"bg"),K,"fg"):Y(X,K,"fg"),A=H(` ${hq} ${J}`);if(q>0||Q>0){if(A+=H(" ("),q>0)A+=Y(Y(X,K,"bg"),Z.success,"fg")(`↑${q}`);if(q>0&&Q>0)A+=H(" ");if(Q>0)A+=Y(Y(X,K,"bg"),Z.warning,"fg")(`↓${Q}`);A+=H(")")}return A+=H(" "),A+=G(F),A}function dq(J,q){if(!q||!sq())return J;return`${Sq}${q}${_q}${J}${Sq}${_q}`}function FQ(J,q,Q,Z="PR",z){if(!S()){let L=q==="approved"?Q.success:q==="changes_requested"?Q.error:q==="pending"?Q.warning:q==="merged"?Q.merged:Q.inactive,I=dq(Y(X,L,"fg")(`#${J}`),z);return`[ ${Y(X,Q.inactive,"fg")(Z)} ${I} ]`}let K=mJ(Q),U=q==="approved"?Q.success:q==="changes_requested"?Q.error:q==="pending"?Q.warning:q==="merged"?Q.merged:Q.inactive,H=Y(Y(X,K,"bg"),Q.inactive,"fg"),G=Y(Y(X,K,"bg"),U,"fg"),A=Y(X,K,"fg");return H(` ${bJ} `)+dq(G(`#${J}`),z)+H(" ")+A(F)}function fJ(J,q,Q,Z,z){let K=Y(X,z.suggestion,"fg").bold,U=`[ ${K(J)} ]`;if(q){let G=Y(X,z.suggestion,"fg")(q);if(Q>0||Z>0){if(G+=" (",Q>0)G+=Y(X,z.success,"fg")(`↑${Q}`);if(Q>0&&Z>0)G+=" ";if(Z>0)G+=Y(X,z.warning,"fg")(`↓${Z}`);G+=")"}U+=` [ ${G} ]`}return U}var F="",hq="",bJ="",$J,kq=4,nq="■";var lq=Dq(()=>{yJ();EJ();gJ();CJ();$J=/^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/});function iJ(J,q){if(xq(J))return q.suggestion;switch(J){case"low":return q.inactive;case"medium":return q.warning;case"high":return q.claude;case"xhigh":return q.error;case"max":return q.merged;default:return q.error}}function xQ(J,q,Q){if(!h(q))return;let Z=QJ(q,J),z=iJ(Z,Q);return{pill:oq(`${yq(Z)} ${Z}`,z,Q),bg:z}}function yq(J){if(xq(J))return JJ;switch(J){case"low":return aq;case"medium":return tq;case"high":return vq;case"xhigh":return eq;case"max":return qJ;default:return vq}}var zJ=Dq(()=>{cJ();ZJ();lq()});function tQ(J){let q=cq.c(82),{initial:Q,sessionModel:Z,onSelect:z,onCancel:K,isStandaloneCommand:U,showFastModeNotice:H,headerText:G,skipSettingsWrite:A}=J,L=BJ(),I=PJ(),P=Q===null?n:Q,[R,w]=Lq.useState(P),j=bq(HQ),[_,vJ]=Lq.useState(!1),k=bq(WQ),o;if(q[0]!==k)o=k!==void 0?fq(k):void 0,q[0]=k,q[1]=o;else o=q[1];let[v,iq]=Lq.useState(o),Rq=j??!1,l;if(q[2]!==Rq)l=wJ(Rq),q[2]=Rq,q[3]=l;else l=q[3];let d=l,Vq;q:{if(Q!==null&&!d.some((W)=>{if(W.value===Q)return!0;if(W.value===null)return!1;try{return r(p(String(W.value)))===r(p(Q))}catch{return!1}})){let W;if(q[4]!==Q)W=Cq(Q),q[4]=Q,q[5]=W;else W=q[5];let N;if(q[6]!==Q||q[7]!==W)N={value:Q,label:W,description:"Current model"},q[6]=Q,q[7]=W,q[8]=N;else N=q[8];let x;if(q[9]!==d||q[10]!==N)x=[...d,N],q[9]=d,q[10]=N,q[11]=x;else x=q[11];Vq=x;break q}Vq=d}let jq=Vq,a;if(q[12]!==jq)a=jq.map(UQ),q[12]=jq,q[13]=a;else a=q[13];let O=a,t;if(q[14]!==P||q[15]!==O)t=O.find((W)=>{if(W.value===P)return!0;if(P===n||W.value===null)return!1;try{return r(p(String(W.value)))===r(p(String(P)))}catch{return!1}})?.value??O[0]?.value??void 0,q[14]=P,q[15]=O,q[16]=t;else t=q[16];let Nq=t,Tq=Math.min(10,O.length),e=0,qq;if(q[17]!==R||q[18]!==O)qq=O.find((W)=>W.value===R)?.label,q[17]=R,q[18]=O,q[19]=qq;else qq=q[19];let Jq=qq,B,Qq;if(q[20]!==R){let W=$q(R);B=W?h(W):!1,Qq=W?jJ(W):!1,q[20]=R,q[21]=B,q[22]=Qq}else B=q[21],Qq=q[22];let Zq=Qq,zq;if(q[23]!==R)zq=Eq(R),q[23]=R,q[24]=zq;else zq=q[24];let y=zq,s=v==="max"&&!Zq?"high":v,Yq;if(q[25]!==k||q[26]!==_)Yq=(W)=>{if(w(W),!_&&k===void 0)iq(Eq(W))},q[25]=k,q[26]=_,q[27]=Yq;else Yq=q[27];let Oq=Yq,Kq;if(q[28]!==y||q[29]!==B||q[30]!==Zq)Kq=(W)=>{if(!B)return;iq((N)=>GQ(N??y,W,Zq)),vJ(!0)},q[28]=y,q[29]=B,q[30]=Zq,q[31]=Kq;else Kq=q[31];let Xq=Kq,Uq;if(q[32]!==Xq)Uq={"modelPicker:decreaseEffort":()=>Xq("left"),"modelPicker:increaseEffort":()=>Xq("right")},q[32]=Xq,q[33]=Uq;else Uq=q[33];let Wq;if(q[34]===Symbol.for("react.memo_cache_sentinel"))Wq={context:"ModelPicker"},q[34]=Wq;else Wq=q[34];AJ(Uq,Wq);let Hq;if(q[35]!==v||q[36]!==_||q[37]!==z||q[38]!==L||q[39]!==A)Hq=function(N){if(UJ("",{effort:v}),!A){let Fq=OJ(v,Eq(N),TJ(),_);if(Fq!==void 0)NJ(Fq);L((xJ)=>({...xJ,effortValue:Fq}))}let x=$q(N),pq=_&&x&&h(x)?v:void 0;if(N===n){z(null,pq);return}z(N,pq)},q[35]=v,q[36]=_,q[37]=z,q[38]=L,q[39]=A,q[40]=Hq;else Hq=q[40];let Mq=Hq,Gq;if(q[41]===Symbol.for("react.memo_cache_sentinel"))Gq=D(V,{color:"remember",bold:!0,children:"Select model"}),q[41]=Gq;else Gq=q[41];let wq=G??"Switch between Claude models. Applies to this session and future Claudin sessions. For other/previous model names, specify with --model.",E;if(q[42]!==wq)E=D(V,{dimColor:!0,children:wq}),q[42]=wq,q[43]=E;else E=q[43];let g;if(q[44]!==Z)g=Z&&T(V,{dimColor:!0,children:["Currently using ",Cq(Z)," for this session (set by plan mode). Selecting a model will undo this."]}),q[44]=Z,q[45]=g;else g=q[45];let C;if(q[46]!==E||q[47]!==g)C=T(M,{marginBottom:1,flexDirection:"column",children:[Gq,E,g]}),q[46]=E,q[47]=g,q[48]=C;else C=q[48];let Bq=K??XQ,b;if(q[49]!==Oq||q[50]!==Mq||q[51]!==Nq||q[52]!==P||q[53]!==O||q[54]!==Bq||q[55]!==Tq)b=D(M,{flexDirection:"column",children:D(FJ,{defaultValue:P,defaultFocusValue:Nq,options:O,onChange:Mq,onFocus:Oq,onCancel:Bq,visibleOptionCount:Tq,favorites:KQ,searchPlaceholder:"Search models…",showOverflowCount:!0})}),q[49]=Oq,q[50]=Mq,q[51]=Nq,q[52]=P,q[53]=O,q[54]=Bq,q[55]=Tq,q[56]=b;else b=q[56];let $;if(q[57]!==e)$=e>0&&D(M,{paddingLeft:3,children:T(V,{dimColor:!0,children:["and ",e," more…"]})}),q[57]=e,q[58]=$;else $=q[58];let m;if(q[59]!==b||q[60]!==$)m=T(M,{flexDirection:"column",marginBottom:1,children:[b,$]}),q[59]=b,q[60]=$,q[61]=m;else m=q[61];let u;if(q[62]!==s||q[63]!==y||q[64]!==Jq||q[65]!==B)u=D(M,{marginBottom:1,flexDirection:"column",children:B?T(V,{dimColor:!0,children:[D(KJ,{effort:s})," ",IJ(s)," effort",s===y?" (default)":""," ",D(V,{color:"subtle",children:"← → to adjust"})]}):T(V,{color:"subtle",children:[D(KJ,{effort:void 0})," Effort not supported",Jq?` for ${Jq}`:""]})}),q[62]=s,q[63]=y,q[64]=Jq,q[65]=B,q[66]=u;else u=q[66];let f;if(q[67]!==H)f=mq()?H?D(M,{marginBottom:1,children:T(V,{dimColor:!0,children:["Fast mode is ",D(V,{bold:!0,children:"ON"})," and available with"," ",gq," only (/fast). Switching to other models turn off fast mode."]})}):WJ()&&!HJ()?D(M,{marginBottom:1,children:T(V,{dimColor:!0,children:["Use ",D(V,{bold:!0,children:"/fast"})," to turn on Fast mode (",gq," only)."]})}):null:null,q[67]=H,q[68]=f;else f=q[68];let c;if(q[69]!==C||q[70]!==m||q[71]!==u||q[72]!==f)c=T(M,{flexDirection:"column",children:[C,m,u,f]}),q[69]=C,q[70]=m,q[71]=u,q[72]=f,q[73]=c;else c=q[73];let i;if(q[74]!==I||q[75]!==U)i=U&&D(V,{dimColor:!0,italic:!0,children:I.pending?T(GJ,{children:["Press ",I.keyName," again to exit"]}):T(RJ,{children:[D(DJ,{shortcut:"Enter",action:"confirm"}),D(LJ,{action:"select:cancel",context:"Select",fallback:"Esc",description:"exit"})]})}),q[74]=I,q[75]=U,q[76]=i;else i=q[76];let Iq;if(q[77]!==c||q[78]!==i)Iq=T(M,{flexDirection:"column",children:[c,i]}),q[77]=c,q[78]=i,q[79]=Iq;else Iq=q[79];let Aq=Iq;if(!U)return Aq;let Pq;if(q[80]!==Aq)Pq=D(VJ,{color:"permission",children:Aq}),q[80]=Aq,q[81]=Pq;else Pq=q[81];return Pq}function XQ(){}function UQ(J){return{...J,value:J.value===null?n:J.value}}function WQ(J){return J.effortValue}function HQ(J){return mq()?J.fastMode:!1}function $q(J){if(!J)return;return J===n?uq():p(J)}function KJ(J){let q=cq.c(5),{effort:Q}=J,Z=Q?"claude":"subtle",z=Q??"low",K;if(q[0]!==z)K=yq(z),q[0]=z,q[1]=K;else K=q[1];let U;if(q[2]!==Z||q[3]!==K)U=D(V,{color:Z,children:K}),q[2]=Z,q[3]=K,q[4]=U;else U=q[4];return U}function GQ(J,q,Q){let Z=Q?["low","medium","high","max"]:["low","medium","high"],z=Z.indexOf(J),K=z!==-1?z:Z.indexOf("high");if(q==="right")return Z[(K+1)%Z.length];else return Z[(K-1+Z.length)%Z.length]}function Eq(J){let q=$q(J)??uq(),Q=MJ(q);return Q!==void 0?fq(Q):"high"}var cq,Lq,n="__NO_PREFERENCE__",KQ;var IQ=Dq(()=>{oJ();aJ();pJ();nJ();rJ();lJ();ZQ();ZJ();dJ();QQ();eJ();zQ();YQ();qQ();tJ();JQ();zJ();YJ();cq=XJ(hJ(),1),Lq=XJ(sJ(),1),KQ=SJ("model",(J)=>J===n?null:J)});function ZZ(J,q,Q){if(!kJ())return!1;if(q)return!0;if(J===null||!_J(J))return!1;let Z=J.toLowerCase().replace(/\[1m\]$/,"").trim(),z=Z==="opus"||Z.includes("opus-4-6")||Z.includes("opus-4-7"),K=Z==="sonnet"||Z.includes("sonnet-4-6");if(z&&Q)return!1;return z||K}var DQ=Dq(()=>{PQ();AQ()});
|
|
2
|
-
export{rq as Nh,mJ as Oh,NQ as Ph,TQ as Qh,OQ as Rh,MQ as Sh,wQ as Th,BQ as Uh,FQ as Vh,lq as Wh,xQ as Xh,yq as Yh,zJ as Zh,tQ as _h,IQ as $h,ZZ as ai,DQ as bi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Mta as C}from"./cli-1.1.27-8vrv0ver.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 Pia,Q as Qia,R as Ria,S as Sia,T as Tia,U as Uia,W as Via,X as Wia,Y as Xia,Z as Yia,$ as Zia,v as _ia,w as $ia,P as aja,B as bja,D as cja,h as dja,N as eja,m as fja,c as gja,F as hja,J as ija};
|