@claudiolabs/claudin 0.5.9 → 0.5.10
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/bin/claudin +62 -0
- package/dist/chunks/AgentTool-0.5.10-k5mymxpj.mjs +1 -0
- package/dist/chunks/App-0.5.10-yzg0d70f.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.5.10-mpm24aq5.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.5.10-jbgn5s9r.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.5.10-tk2jpgdr.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.5.10-2gqvp73t.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.10-mwwqh2cz.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.5.10-f4wd3yew.mjs +1 -0
- package/dist/chunks/DiffDialog-0.5.10-f28xdhns.mjs +3 -0
- package/dist/chunks/Doctor-0.5.10-dz3ndek3.mjs +1 -0
- package/dist/chunks/Grove-0.5.10-f2m596r7.mjs +1 -0
- package/dist/chunks/ITermBackend-0.5.10-k9sjxv27.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.5.10-d5f0ba3j.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.5.10-vyexdzf7.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.5.10-fxhfd566.mjs +1 -0
- package/dist/chunks/Onboarding-0.5.10-61c4a01v.mjs +1 -0
- package/dist/chunks/ProviderManager-0.5.10-mhnze07c.mjs +1 -0
- package/dist/chunks/REPL-0.5.10-qag06ykw.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.5.10-ax66yat2.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.5.10-mkzs7881.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.5.10-762m6e6b.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.5.10-mr8ddjsn.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.5.10-rs9vs3j0.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.5.10-s7yrx34h.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.5.10-8tejm808.mjs +1 -0
- package/dist/chunks/TrustDialog-0.5.10-v09an4xe.mjs +1 -0
- package/dist/chunks/activeProvider-0.5.10-1c68rtzb.mjs +1 -0
- package/dist/chunks/add-dir-0.5.10-6hyjyege.mjs +1 -0
- package/dist/chunks/agents-0.5.10-34zhsd0m.mjs +110 -0
- package/dist/chunks/agents-0.5.10-fa6mrf84.mjs +3 -0
- package/dist/chunks/api-0.5.10-hvafwq9b.mjs +1 -0
- package/dist/chunks/asciicast-0.5.10-c2nfaps4.mjs +1 -0
- package/dist/chunks/assistant-0.5.10-w55twa4a.mjs +1 -0
- package/dist/chunks/auth-0.5.10-dmv8dcy1.mjs +1 -0
- package/dist/chunks/auth-0.5.10-tqm37j6k.mjs +1 -0
- package/dist/chunks/autoMode-0.5.10-bew44c3j.mjs +48 -0
- package/dist/chunks/autoUpdater-0.5.10-dav9gs0x.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.5.10-rsyjn0x7.mjs +1 -0
- package/dist/chunks/branch-0.5.10-k81z6new.mjs +4 -0
- package/dist/chunks/bridgePointer-0.5.10-h727df9t.mjs +1 -0
- package/dist/chunks/btw-0.5.10-f1syxkz1.mjs +1 -0
- package/dist/chunks/buddy-0.5.10-a15r3a8e.mjs +3 -0
- package/dist/chunks/cacache-0.5.10-1hz9d6s8.mjs +1 -0
- package/dist/chunks/cache-probe-0.5.10-fcxj2wy5.mjs +21 -0
- package/dist/chunks/cacheStats-0.5.10-vedv1qp4.mjs +4 -0
- package/dist/chunks/caches-0.5.10-fmadrqb1.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.5.10-mz1s1yqp.mjs +1 -0
- package/dist/chunks/claudemd-0.5.10-9mb95kbb.mjs +1 -0
- package/dist/chunks/clear-0.5.10-tshbmj0g.mjs +1 -0
- package/dist/chunks/clearTerminal-0.5.10-bjqnvfmf.mjs +1 -0
- package/dist/chunks/cli-0.5.10-0ar26ct8.mjs +2 -0
- package/dist/chunks/cli-0.5.10-0p24d24e.mjs +2 -0
- package/dist/chunks/cli-0.5.10-0sg20shr.mjs +2 -0
- package/dist/chunks/cli-0.5.10-0twjtft5.mjs +2 -0
- package/dist/chunks/cli-0.5.10-0vs5gmpe.mjs +4 -0
- package/dist/chunks/cli-0.5.10-0xb1405m.mjs +2 -0
- package/dist/chunks/cli-0.5.10-0yn5x3m6.mjs +2 -0
- package/dist/chunks/cli-0.5.10-1gafefn2.mjs +3 -0
- package/dist/chunks/cli-0.5.10-207502x5.mjs +2 -0
- package/dist/chunks/cli-0.5.10-20w5v1ja.mjs +2 -0
- package/dist/chunks/cli-0.5.10-20x96vwq.mjs +2 -0
- package/dist/chunks/cli-0.5.10-2c19pn7b.mjs +2 -0
- package/dist/chunks/cli-0.5.10-2es9q9n1.mjs +2 -0
- package/dist/chunks/cli-0.5.10-2fqes7gy.mjs +193 -0
- package/dist/chunks/cli-0.5.10-2qxn5ad9.mjs +2 -0
- package/dist/chunks/cli-0.5.10-2yqdkew6.mjs +3 -0
- package/dist/chunks/cli-0.5.10-2yrgbmd1.mjs +9 -0
- package/dist/chunks/cli-0.5.10-347yjq4a.mjs +2 -0
- package/dist/chunks/cli-0.5.10-3xnh04c6.mjs +2 -0
- package/dist/chunks/cli-0.5.10-4ekf1v4x.mjs +2 -0
- package/dist/chunks/cli-0.5.10-58erwwbz.mjs +3 -0
- package/dist/chunks/cli-0.5.10-5m76kmzk.mjs +2 -0
- package/dist/chunks/cli-0.5.10-5mp7dx81.mjs +2 -0
- package/dist/chunks/cli-0.5.10-5nzsgwh2.mjs +2 -0
- package/dist/chunks/cli-0.5.10-5stz3dbm.mjs +2 -0
- package/dist/chunks/cli-0.5.10-5w3eaafz.mjs +2 -0
- package/dist/chunks/cli-0.5.10-661g0gft.mjs +2 -0
- package/dist/chunks/cli-0.5.10-68wvhytx.mjs +10 -0
- package/dist/chunks/cli-0.5.10-6c055y30.mjs +2 -0
- package/dist/chunks/cli-0.5.10-6g0257t2.mjs +2 -0
- package/dist/chunks/cli-0.5.10-6jarntdq.mjs +2 -0
- package/dist/chunks/cli-0.5.10-6twsf5qs.mjs +2 -0
- package/dist/chunks/cli-0.5.10-6wzddpjt.mjs +42 -0
- package/dist/chunks/cli-0.5.10-6y9d3fye.mjs +45 -0
- package/dist/chunks/cli-0.5.10-6z4j2qja.mjs +24 -0
- package/dist/chunks/cli-0.5.10-6zwxmza2.mjs +4 -0
- package/dist/chunks/cli-0.5.10-7f5q1zvk.mjs +2 -0
- package/dist/chunks/cli-0.5.10-7j4590js.mjs +2 -0
- package/dist/chunks/cli-0.5.10-7shp24xv.mjs +3 -0
- package/dist/chunks/cli-0.5.10-7tpa30tv.mjs +3 -0
- package/dist/chunks/cli-0.5.10-84q7z5hq.mjs +2 -0
- package/dist/chunks/cli-0.5.10-84z0ztsf.mjs +18 -0
- package/dist/chunks/cli-0.5.10-87sd2pqh.mjs +3 -0
- package/dist/chunks/cli-0.5.10-8f53zcp3.mjs +2 -0
- package/dist/chunks/cli-0.5.10-8jjacn05.mjs +5262 -0
- package/dist/chunks/cli-0.5.10-8kpt6897.mjs +3 -0
- package/dist/chunks/cli-0.5.10-8wqagr68.mjs +4 -0
- package/dist/chunks/cli-0.5.10-8zwd1xme.mjs +25 -0
- package/dist/chunks/cli-0.5.10-948wwm63.mjs +2 -0
- package/dist/chunks/cli-0.5.10-9dazv3hg.mjs +2 -0
- package/dist/chunks/cli-0.5.10-9ek8f4vk.mjs +2 -0
- package/dist/chunks/cli-0.5.10-9h23hhgb.mjs +2 -0
- package/dist/chunks/cli-0.5.10-9mt7ynrh.mjs +2 -0
- package/dist/chunks/cli-0.5.10-9xc8zhxg.mjs +59 -0
- package/dist/chunks/cli-0.5.10-9ynpb3y0.mjs +21 -0
- package/dist/chunks/cli-0.5.10-a1hh6v31.mjs +2 -0
- package/dist/chunks/cli-0.5.10-a38pnxbz.mjs +2 -0
- package/dist/chunks/cli-0.5.10-a8ecfnq0.mjs +2 -0
- package/dist/chunks/cli-0.5.10-atkghjt0.mjs +2 -0
- package/dist/chunks/cli-0.5.10-ax0fmeqk.mjs +2 -0
- package/dist/chunks/cli-0.5.10-azhfv28d.mjs +2 -0
- package/dist/chunks/cli-0.5.10-b4j3x063.mjs +4 -0
- package/dist/chunks/cli-0.5.10-b761m5q2.mjs +2 -0
- package/dist/chunks/cli-0.5.10-b7r8mjbd.mjs +9 -0
- package/dist/chunks/cli-0.5.10-ba15gakh.mjs +2 -0
- package/dist/chunks/cli-0.5.10-bad3yv4c.mjs +2 -0
- package/dist/chunks/cli-0.5.10-bhb8rt9y.mjs +2 -0
- package/dist/chunks/cli-0.5.10-bj0bm26b.mjs +4 -0
- package/dist/chunks/cli-0.5.10-bmc43e4g.mjs +2 -0
- package/dist/chunks/cli-0.5.10-bsqvacka.mjs +2 -0
- package/dist/chunks/cli-0.5.10-c0xtw3q0.mjs +34 -0
- package/dist/chunks/cli-0.5.10-c82cgdm7.mjs +133 -0
- package/dist/chunks/cli-0.5.10-c9z4tdw2.mjs +2 -0
- package/dist/chunks/cli-0.5.10-cm0r4pkd.mjs +3 -0
- package/dist/chunks/cli-0.5.10-cw4ykvbj.mjs +2 -0
- package/dist/chunks/cli-0.5.10-cz6csv1p.mjs +2 -0
- package/dist/chunks/cli-0.5.10-d1y749qy.mjs +2 -0
- package/dist/chunks/cli-0.5.10-d2cw91xn.mjs +3 -0
- package/dist/chunks/cli-0.5.10-d4d9x2de.mjs +2 -0
- package/dist/chunks/cli-0.5.10-d609fanf.mjs +2 -0
- package/dist/chunks/cli-0.5.10-d64hr722.mjs +3 -0
- package/dist/chunks/cli-0.5.10-d9xf1jnz.mjs +12 -0
- package/dist/chunks/cli-0.5.10-dkt8bbmm.mjs +3 -0
- package/dist/chunks/cli-0.5.10-dmmckmyf.mjs +12 -0
- package/dist/chunks/cli-0.5.10-dvmddb7c.mjs +6 -0
- package/dist/chunks/cli-0.5.10-dz26120x.mjs +2 -0
- package/dist/chunks/cli-0.5.10-dzr8kmx4.mjs +2 -0
- package/dist/chunks/cli-0.5.10-e8tz9596.mjs +2 -0
- package/dist/chunks/cli-0.5.10-e8wz8kc0.mjs +58 -0
- package/dist/chunks/cli-0.5.10-eh9hq9n3.mjs +2 -0
- package/dist/chunks/cli-0.5.10-ewcdy4pj.mjs +2 -0
- package/dist/chunks/cli-0.5.10-f3fj7f3q.mjs +2 -0
- package/dist/chunks/cli-0.5.10-fcbrnw81.mjs +2 -0
- package/dist/chunks/cli-0.5.10-fjvz4bt0.mjs +8 -0
- package/dist/chunks/cli-0.5.10-fzx10svb.mjs +2 -0
- package/dist/chunks/cli-0.5.10-g4khh98h.mjs +2 -0
- package/dist/chunks/cli-0.5.10-gekw3xnm.mjs +2 -0
- package/dist/chunks/cli-0.5.10-gk9n4zev.mjs +2 -0
- package/dist/chunks/cli-0.5.10-gs8dx67v.mjs +2 -0
- package/dist/chunks/cli-0.5.10-hmp23q7z.mjs +2 -0
- package/dist/chunks/cli-0.5.10-hzh8tpg0.mjs +2 -0
- package/dist/chunks/cli-0.5.10-j1aznw8b.mjs +2 -0
- package/dist/chunks/cli-0.5.10-jd7ff66n.mjs +2 -0
- package/dist/chunks/cli-0.5.10-jhtht51h.mjs +4 -0
- package/dist/chunks/cli-0.5.10-jsnrvena.mjs +2 -0
- package/dist/chunks/cli-0.5.10-k0mnqs0g.mjs +15 -0
- package/dist/chunks/cli-0.5.10-k1s62rww.mjs +2 -0
- package/dist/chunks/cli-0.5.10-k3qbvfj5.mjs +2 -0
- package/dist/chunks/cli-0.5.10-kj2g5r8c.mjs +15 -0
- package/dist/chunks/cli-0.5.10-kyt82zt5.mjs +2 -0
- package/dist/chunks/cli-0.5.10-m0hghx42.mjs +2 -0
- package/dist/chunks/cli-0.5.10-mcw01p8b.mjs +2 -0
- package/dist/chunks/cli-0.5.10-mgkc1jay.mjs +15 -0
- package/dist/chunks/cli-0.5.10-mrgw2c00.mjs +2 -0
- package/dist/chunks/cli-0.5.10-mvckg6zv.mjs +17 -0
- package/dist/chunks/cli-0.5.10-mxzdkm6r.mjs +2 -0
- package/dist/chunks/cli-0.5.10-n70d8n1f.mjs +2 -0
- package/dist/chunks/cli-0.5.10-neaex6bh.mjs +2 -0
- package/dist/chunks/cli-0.5.10-npmmxjts.mjs +5 -0
- package/dist/chunks/cli-0.5.10-nqvng39w.mjs +2 -0
- package/dist/chunks/cli-0.5.10-nvmq8pez.mjs +2 -0
- package/dist/chunks/cli-0.5.10-nx3m5sa2.mjs +2 -0
- package/dist/chunks/cli-0.5.10-p3g04417.mjs +20 -0
- package/dist/chunks/cli-0.5.10-p4wmnjhz.mjs +6 -0
- package/dist/chunks/cli-0.5.10-p5j82v0t.mjs +2 -0
- package/dist/chunks/cli-0.5.10-p7jd1z33.mjs +2 -0
- package/dist/chunks/cli-0.5.10-p8hbe96w.mjs +133 -0
- package/dist/chunks/cli-0.5.10-pk91q3s6.mjs +4 -0
- package/dist/chunks/cli-0.5.10-pq8nhdeq.mjs +2 -0
- package/dist/chunks/cli-0.5.10-pr0nkqpw.mjs +2 -0
- package/dist/chunks/cli-0.5.10-pr8yqs5v.mjs +2 -0
- package/dist/chunks/cli-0.5.10-pxhw9mwz.mjs +2 -0
- package/dist/chunks/cli-0.5.10-qvp1fb5n.mjs +2 -0
- package/dist/chunks/cli-0.5.10-qw9y3mst.mjs +2 -0
- package/dist/chunks/cli-0.5.10-qx17jbqj.mjs +2 -0
- package/dist/chunks/cli-0.5.10-r0jt3zrj.mjs +2 -0
- package/dist/chunks/cli-0.5.10-rhmrff22.mjs +2 -0
- package/dist/chunks/cli-0.5.10-rk7at2tn.mjs +2 -0
- package/dist/chunks/cli-0.5.10-rq5mv7xq.mjs +2 -0
- package/dist/chunks/cli-0.5.10-rwqvbtg3.mjs +18 -0
- package/dist/chunks/cli-0.5.10-rxnwkka5.mjs +24 -0
- package/dist/chunks/cli-0.5.10-rzshk2m6.mjs +6 -0
- package/dist/chunks/cli-0.5.10-rzz4tgvw.mjs +12 -0
- package/dist/chunks/cli-0.5.10-s8bv5q7m.mjs +2 -0
- package/dist/chunks/cli-0.5.10-srd78kpc.mjs +7 -0
- package/dist/chunks/cli-0.5.10-syb1bnb2.mjs +4 -0
- package/dist/chunks/cli-0.5.10-t11my4jb.mjs +2 -0
- package/dist/chunks/cli-0.5.10-t9d916t1.mjs +39 -0
- package/dist/chunks/cli-0.5.10-tbpqmp1s.mjs +2 -0
- package/dist/chunks/cli-0.5.10-tkjtbv56.mjs +2 -0
- package/dist/chunks/cli-0.5.10-tqpg21eq.mjs +2 -0
- package/dist/chunks/cli-0.5.10-tqyytkxn.mjs +2 -0
- package/dist/chunks/cli-0.5.10-tr692cqd.mjs +2 -0
- package/dist/chunks/cli-0.5.10-v36c5nnr.mjs +2 -0
- package/dist/chunks/cli-0.5.10-v6kj3ej2.mjs +2 -0
- package/dist/chunks/cli-0.5.10-vhn14p7a.mjs +2 -0
- package/dist/chunks/cli-0.5.10-vhrqqvdz.mjs +5 -0
- package/dist/chunks/cli-0.5.10-vpfctkxf.mjs +2 -0
- package/dist/chunks/cli-0.5.10-vqkn3pgf.mjs +17 -0
- package/dist/chunks/cli-0.5.10-vqrqhas6.mjs +2 -0
- package/dist/chunks/cli-0.5.10-vyem3gpm.mjs +2 -0
- package/dist/chunks/cli-0.5.10-w29mv5e9.mjs +4 -0
- package/dist/chunks/cli-0.5.10-w41wxn5f.mjs +50 -0
- package/dist/chunks/cli-0.5.10-w698y5mp.mjs +5 -0
- package/dist/chunks/cli-0.5.10-w93v7bhm.mjs +2 -0
- package/dist/chunks/cli-0.5.10-xfqxbzc6.mjs +4 -0
- package/dist/chunks/cli-0.5.10-xg27xawf.mjs +2 -0
- package/dist/chunks/cli-0.5.10-xhy1yx61.mjs +2 -0
- package/dist/chunks/cli-0.5.10-xk6v4sy0.mjs +2 -0
- package/dist/chunks/cli-0.5.10-xnmg1qwd.mjs +2 -0
- package/dist/chunks/cli-0.5.10-xrwj7982.mjs +67 -0
- package/dist/chunks/cli-0.5.10-xy780m03.mjs +2 -0
- package/dist/chunks/cli-0.5.10-xyscak5q.mjs +16 -0
- package/dist/chunks/cli-0.5.10-y0sfzz9t.mjs +2 -0
- package/dist/chunks/cli-0.5.10-y0sr20nf.mjs +2 -0
- package/dist/chunks/cli-0.5.10-y4tn070k.mjs +1 -0
- package/dist/chunks/cli-0.5.10-y7j4tsb5.mjs +2 -0
- package/dist/chunks/cli-0.5.10-y9qd4psg.mjs +2 -0
- package/dist/chunks/cli-0.5.10-ytqna8q4.mjs +2 -0
- package/dist/chunks/cli-0.5.10-yvjnvgky.mjs +2 -0
- package/dist/chunks/cli-0.5.10-yxxbgd59.mjs +2 -0
- package/dist/chunks/cli-0.5.10-yzqkgb55.mjs +2 -0
- package/dist/chunks/cli-0.5.10-z4bzn8vh.mjs +2 -0
- package/dist/chunks/cli-0.5.10-z5ysspq8.mjs +2 -0
- package/dist/chunks/cli-0.5.10-zk1h67jm.mjs +2 -0
- package/dist/chunks/client-0.5.10-a5rmwz53.mjs +1 -0
- package/dist/chunks/color-0.5.10-3mtfm5rv.mjs +1 -0
- package/dist/chunks/compact-0.5.10-7zdm8hke.mjs +3 -0
- package/dist/chunks/config-0.5.10-ns9jcqxp.mjs +1 -0
- package/dist/chunks/config-0.5.10-vtf1kzhz.mjs +1 -0
- package/dist/chunks/context-0.5.10-qjjyyqx9.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.5.10-244bgmbj.mjs +1 -0
- package/dist/chunks/conversation-0.5.10-zza66sgq.mjs +1 -0
- package/dist/chunks/copy-0.5.10-d6nstaxy.mjs +9 -0
- package/dist/chunks/cost-0.5.10-k89r76j7.mjs +1 -0
- package/dist/chunks/createSSHSession-0.5.10-xy3z3tdw.mjs +1 -0
- package/dist/chunks/createSession-0.5.10-ntrenxk4.mjs +1 -0
- package/dist/chunks/debug-0.5.10-bxkhvfc6.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.5.10-h673vq05.mjs +1177 -0
- package/dist/chunks/desktop-0.5.10-v0j5w6e8.mjs +1 -0
- package/dist/chunks/detectRepository-0.5.10-z29dy30r.mjs +1 -0
- package/dist/chunks/detection-0.5.10-jhy1kffq.mjs +1 -0
- package/dist/chunks/diff-0.5.10-14m8b77v.mjs +1 -0
- package/dist/chunks/doctor-0.5.10-pn374er7.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.5.10-wkjtp4z5.mjs +1 -0
- package/dist/chunks/earlyInput-0.5.10-9nxfn64h.mjs +1 -0
- package/dist/chunks/effort-0.5.10-sjn55ka6.mjs +10 -0
- package/dist/chunks/envUtils-0.5.10-sdrg5j2r.mjs +1 -0
- package/dist/chunks/environmentSelection-0.5.10-nkxtjsa6.mjs +1 -0
- package/dist/chunks/environments-0.5.10-j3cwt63g.mjs +1 -0
- package/dist/chunks/errors-0.5.10-k3a2vs5j.mjs +1 -0
- package/dist/chunks/exampleCommands-0.5.10-s4q3ndpx.mjs +1 -0
- package/dist/chunks/exit-0.5.10-aaqjsrb3.mjs +1 -0
- package/dist/chunks/export-0.5.10-g3n84jha.mjs +2 -0
- package/dist/chunks/extra-usage-0.5.10-1k8453hn.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.5.10-h0s4j23t.mjs +1 -0
- package/dist/chunks/fast-0.5.10-6jg8q83t.mjs +1 -0
- package/dist/chunks/feedback-0.5.10-f4cms77n.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.5.10-mtcdee5x.mjs +1 -0
- package/dist/chunks/git-0.5.10-5yr5z4ap.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.5.10-pfeadzx7.mjs +1 -0
- package/dist/chunks/grove-0.5.10-4vzycmmm.mjs +1 -0
- package/dist/chunks/growthbook-0.5.10-nf8eqz7k.mjs +1 -0
- package/dist/chunks/headless-0.5.10-kqpgc4q6.mjs +2 -0
- package/dist/chunks/heapdump-0.5.10-zedkfpnn.mjs +6 -0
- package/dist/chunks/help-0.5.10-a3vhmv05.mjs +1 -0
- package/dist/chunks/hookChains-0.5.10-yc93jx3d.mjs +3 -0
- package/dist/chunks/hooks-0.5.10-negsdbpw.mjs +1 -0
- package/dist/chunks/hooks-0.5.10-t26wz67x.mjs +79 -0
- package/dist/chunks/ide-0.5.10-qsh8k0we.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.5.10-8kz0m2nd.mjs +1 -0
- package/dist/chunks/index-0.5.10-0j9kz8a6.mjs +1 -0
- package/dist/chunks/index-0.5.10-0wzdjjzk.mjs +5 -0
- package/dist/chunks/index-0.5.10-5fsxcv9a.mjs +1 -0
- package/dist/chunks/index-0.5.10-6v1h8fb2.mjs +17 -0
- package/dist/chunks/index-0.5.10-7t36m4fw.mjs +30 -0
- package/dist/chunks/index-0.5.10-8t5phmpa.mjs +9 -0
- package/dist/chunks/index-0.5.10-ak9fnp4h.mjs +2 -0
- package/dist/chunks/index-0.5.10-asj7h5d6.mjs +9 -0
- package/dist/chunks/index-0.5.10-dxkhh5bg.mjs +1 -0
- package/dist/chunks/index-0.5.10-eh8w8ayw.mjs +2 -0
- package/dist/chunks/index-0.5.10-fjf8d5vq.mjs +1 -0
- package/dist/chunks/index-0.5.10-fyt0d84h.mjs +1 -0
- package/dist/chunks/index-0.5.10-m8cjzf6y.mjs +1 -0
- package/dist/chunks/index-0.5.10-marrtwvx.mjs +1 -0
- package/dist/chunks/index-0.5.10-n7zsm7mc.mjs +1 -0
- package/dist/chunks/index-0.5.10-p69q9n6x.mjs +1 -0
- package/dist/chunks/index-0.5.10-rv6kfzr0.mjs +1 -0
- package/dist/chunks/index-0.5.10-s5ttsdnm.mjs +1 -0
- package/dist/chunks/index-0.5.10-thyhdy51.mjs +1 -0
- package/dist/chunks/index-0.5.10-tncm271j.mjs +1 -0
- package/dist/chunks/index-0.5.10-wzxzkrhk.mjs +1 -0
- package/dist/chunks/index-0.5.10-x3apane6.mjs +1 -0
- package/dist/chunks/init-0.5.10-ef7yaw4p.mjs +1 -0
- package/dist/chunks/initReplBridge-0.5.10-we7sga8z.mjs +1 -0
- package/dist/chunks/ink-0.5.10-chpcjhk0.mjs +1 -0
- package/dist/chunks/insights-0.5.10-advkjwjk.mjs +870 -0
- package/dist/chunks/install-0.5.10-znt3x5wn.mjs +1 -0
- package/dist/chunks/install-github-app-0.5.10-jg0eqhv0.mjs +149 -0
- package/dist/chunks/install-slack-app-0.5.10-ryvy8j96.mjs +1 -0
- package/dist/chunks/instrumentation-0.5.10-36atfc3f.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.5.10-asvens6h.mjs +1 -0
- package/dist/chunks/keybindings-0.5.10-csc1yzpg.mjs +2 -0
- package/dist/chunks/knowledge-0.5.10-tg7cvbym.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.5.10-wjt7dbqy.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.5.10-7zwxynjb.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.5.10-c8kk1n2h.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.5.10-qx8rwccw.mjs +1 -0
- package/dist/chunks/log-0.5.10-ews8b6yn.mjs +1 -0
- package/dist/chunks/main-0.5.10-dxwhwf46.mjs +1 -0
- package/dist/chunks/managedEnv-0.5.10-5jce9mqj.mjs +1 -0
- package/dist/chunks/mcp-0.5.10-1wxhgtsr.mjs +17 -0
- package/dist/chunks/mcp-0.5.10-5wsj8fv2.mjs +1 -0
- package/dist/chunks/mcp-0.5.10-ydcjrb4p.mjs +4 -0
- package/dist/chunks/mcpb-0.5.10-120rqrb1.mjs +1 -0
- package/dist/chunks/memory-0.5.10-0pqjdjed.mjs +3 -0
- package/dist/chunks/mobile-0.5.10-kp63nfej.mjs +2 -0
- package/dist/chunks/model-0.5.10-9zszn74v.mjs +2 -0
- package/dist/chunks/model-0.5.10-b64fg4gd.mjs +1 -0
- package/dist/chunks/node-0.5.10-tny076t5.mjs +12 -0
- package/dist/chunks/oauth-0.5.10-fccp2x7y.mjs +1 -0
- package/dist/chunks/openaiShim-0.5.10-gwjyjn7m.mjs +14 -0
- package/dist/chunks/output-style-0.5.10-526tregy.mjs +1 -0
- package/dist/chunks/package-D6422PQU-0.5.10-we8amhca.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.5.10-nhkxeakd.mjs +1 -0
- package/dist/chunks/parser-0.5.10-m4aj9jm7.mjs +1 -0
- package/dist/chunks/passes-0.5.10-vwhmhxn9.mjs +1 -0
- package/dist/chunks/permissions-0.5.10-b7p2zxt8.mjs +3 -0
- package/dist/chunks/plan-0.5.10-s8612fw1.mjs +1 -0
- package/dist/chunks/plist-0.5.10-e8k2gtwm.mjs +1 -0
- package/dist/chunks/plugin-0.5.10-pjh90f93.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.5.10-mamzxaj6.mjs +1 -0
- package/dist/chunks/plugins-0.5.10-3zq96m7k.mjs +9 -0
- package/dist/chunks/preActionHook-0.5.10-6x12np60.mjs +2 -0
- package/dist/chunks/print-0.5.10-5a31vx9j.mjs +57 -0
- package/dist/chunks/privacy-settings-0.5.10-rdfd63af.mjs +1 -0
- package/dist/chunks/process-0.5.10-nf4cmk34.mjs +1 -0
- package/dist/chunks/processBashCommand-0.5.10-mw974xep.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.5.10-e8c6n292.mjs +9 -0
- package/dist/chunks/prompt-0.5.10-6pbxq1g3.mjs +1 -0
- package/dist/chunks/prompt-0.5.10-n31de4d4.mjs +1 -0
- package/dist/chunks/prompts-0.5.10-0cxg5rvf.mjs +1 -0
- package/dist/chunks/protocolHandler-0.5.10-n15zj80n.mjs +13 -0
- package/dist/chunks/provider-0.5.10-0chtqqq3.mjs +2 -0
- package/dist/chunks/providerProfiles-0.5.10-kk39f15h.mjs +1 -0
- package/dist/chunks/providerValidation-0.5.10-5b2bmm6k.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.5.10-qen28djd.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.5.10-xmgpzx1a.mjs +34 -0
- package/dist/chunks/registry-0.5.10-q3yb1jt6.mjs +1 -0
- package/dist/chunks/release-notes-0.5.10-3m0mwzvq.mjs +5 -0
- package/dist/chunks/reload-plugins-0.5.10-2ngnamq3.mjs +2 -0
- package/dist/chunks/remote-env-0.5.10-gm9a4ms5.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.5.10-s9tnpv93.mjs +1 -0
- package/dist/chunks/remoteSession-0.5.10-mk8be8a3.mjs +1 -0
- package/dist/chunks/rename-0.5.10-9ecwm2ar.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.5.10-9956kd4a.mjs +1 -0
- package/dist/chunks/replLauncher-0.5.10-94wyag0m.mjs +1 -0
- package/dist/chunks/resume-0.5.10-nc3z5h15.mjs +2 -0
- package/dist/chunks/rewind-0.5.10-wbs4stfg.mjs +1 -0
- package/dist/chunks/rootOptions-0.5.10-8ky1y6hv.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.5.10-jg0fj7ss.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.5.10-yy9272d9.mjs +1 -0
- package/dist/chunks/session-0.5.10-jqzxp3r3.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.5.10-7va0srxq.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.5.10-bykpya1w.mjs +1 -0
- package/dist/chunks/sessionStorage-0.5.10-yy69cv78.mjs +1 -0
- package/dist/chunks/settings-0.5.10-kx3ep0z5.mjs +1 -0
- package/dist/chunks/setup-0.5.10-w0byw3fs.mjs +5 -0
- package/dist/chunks/sinks-0.5.10-289qngp8.mjs +1 -0
- package/dist/chunks/skills-0.5.10-6kvsqc69.mjs +1 -0
- package/dist/chunks/startupProfiler-0.5.10-e0mg4v8r.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.5.10-08eextv5.mjs +1 -0
- package/dist/chunks/state-0.5.10-7xqjnrdw.mjs +1 -0
- package/dist/chunks/stats-0.5.10-fafdyc91.mjs +6 -0
- package/dist/chunks/status-0.5.10-y9t6rf31.mjs +1 -0
- package/dist/chunks/stickers-0.5.10-ta1pq624.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.5.10-zv2wcv5q.mjs +1 -0
- package/dist/chunks/tasks-0.5.10-d0y0wvjj.mjs +1 -0
- package/dist/chunks/teamHelpers-0.5.10-qpwpfv94.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.5.10-92d1devr.mjs +1 -0
- package/dist/chunks/teleport-0.5.10-rkxj6c9z.mjs +1 -0
- package/dist/chunks/terminalSetup-0.5.10-xtrfcff1.mjs +1 -0
- package/dist/chunks/theme-0.5.10-5rz8k2g9.mjs +1 -0
- package/dist/chunks/thinkback-0.5.10-pmdfhfhz.mjs +1 -0
- package/dist/chunks/thinkback-play-0.5.10-051qtb4m.mjs +1 -0
- package/dist/chunks/toolPool-0.5.10-702w7qvh.mjs +1 -0
- package/dist/chunks/toolSearch-0.5.10-emqjgdkv.mjs +1 -0
- package/dist/chunks/tools-0.5.10-2msmk0nf.mjs +1 -0
- package/dist/chunks/trustedDevice-0.5.10-rc23c6gy.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.5.10-a87sftz7.mjs +69 -0
- package/dist/chunks/ultrareviewCommand-0.5.10-z29nftnt.mjs +4 -0
- package/dist/chunks/update-0.5.10-52yyras3.mjs +86 -0
- package/dist/chunks/upgrade-0.5.10-xqdpemsf.mjs +1 -0
- package/dist/chunks/upstreamproxy-0.5.10-154q742m.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.5.10-8af5etcc.mjs +1 -0
- package/dist/chunks/usage-0.5.10-hhg47trs.mjs +1 -0
- package/dist/chunks/util-0.5.10-0zqyyf2e.mjs +1 -0
- package/dist/chunks/utils-0.5.10-36gnsqbk.mjs +1 -0
- package/dist/chunks/vim-0.5.10-0zas1t6x.mjs +1 -0
- package/dist/chunks/watcher-0.5.10-9etw516s.mjs +1 -0
- package/dist/chunks/wiki-0.5.10-rwktf7fm.mjs +132 -0
- package/dist/chunks/worktree-0.5.10-afdnv059.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.5.10-n0bmqq02.mjs +1 -0
- package/dist/chunks/wrapper-0.5.10-0bca9c3g.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.5.9-560de9d1.mjs +0 -1
- package/dist/chunks/App-0.5.9-zsap2q4b.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.5.9-8zgzn0jw.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.5.9-92f16280.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.5.9-708dpq05.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.5.9-thv5358f.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.5.9-h0dan6qh.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.5.9-35ajv7zw.mjs +0 -1
- package/dist/chunks/DiffDialog-0.5.9-2gfy103v.mjs +0 -3
- package/dist/chunks/Doctor-0.5.9-wjw0w0c1.mjs +0 -1
- package/dist/chunks/Grove-0.5.9-hty0xzar.mjs +0 -1
- package/dist/chunks/ITermBackend-0.5.9-pch1zyqn.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.5.9-xjp9bdct.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.5.9-t4wkfdrh.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.5.9-12p8z825.mjs +0 -1
- package/dist/chunks/Onboarding-0.5.9-d02fdy7a.mjs +0 -1
- package/dist/chunks/ProviderManager-0.5.9-2h6pym7f.mjs +0 -1
- package/dist/chunks/REPL-0.5.9-fn63chv9.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.5.9-wdc0fys1.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.5.9-ty7tvdf3.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.5.9-th2cx2b2.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.5.9-gqyef6wv.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.5.9-e4b9wj1z.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.5.9-xx7btmxb.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.5.9-7h9j8zft.mjs +0 -1
- package/dist/chunks/TrustDialog-0.5.9-y0bxcnzx.mjs +0 -1
- package/dist/chunks/activeProvider-0.5.9-bqhnxdga.mjs +0 -1
- package/dist/chunks/add-dir-0.5.9-t52c4h9t.mjs +0 -1
- package/dist/chunks/agents-0.5.9-b270304w.mjs +0 -110
- package/dist/chunks/agents-0.5.9-h9dw36cp.mjs +0 -3
- package/dist/chunks/api-0.5.9-jnhtend7.mjs +0 -1
- package/dist/chunks/asciicast-0.5.9-hrjx2e4n.mjs +0 -1
- package/dist/chunks/assistant-0.5.9-ap4j82na.mjs +0 -1
- package/dist/chunks/auth-0.5.9-cna7nxzb.mjs +0 -1
- package/dist/chunks/auth-0.5.9-q8ejya3n.mjs +0 -1
- package/dist/chunks/autoMode-0.5.9-w9j324dc.mjs +0 -48
- package/dist/chunks/autoUpdater-0.5.9-3x3xcjhq.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.5.9-ngzjz5nf.mjs +0 -1
- package/dist/chunks/branch-0.5.9-4389y3jh.mjs +0 -4
- package/dist/chunks/bridgePointer-0.5.9-ph0vdzcm.mjs +0 -1
- package/dist/chunks/btw-0.5.9-kq7dda47.mjs +0 -1
- package/dist/chunks/buddy-0.5.9-3s5bz133.mjs +0 -3
- package/dist/chunks/cacache-0.5.9-k02nazjg.mjs +0 -1
- package/dist/chunks/cache-probe-0.5.9-vdfe8hkq.mjs +0 -21
- package/dist/chunks/cacheStats-0.5.9-89wd0xyf.mjs +0 -4
- package/dist/chunks/caches-0.5.9-kg4820wg.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.5.9-7pt2wjt1.mjs +0 -1
- package/dist/chunks/claudemd-0.5.9-bhqwq7vs.mjs +0 -1
- package/dist/chunks/clear-0.5.9-5mg9gs8a.mjs +0 -1
- package/dist/chunks/clearTerminal-0.5.9-esamq102.mjs +0 -1
- package/dist/chunks/cli-0.5.9-00ms6tt7.mjs +0 -4
- package/dist/chunks/cli-0.5.9-02vwh5bc.mjs +0 -2
- package/dist/chunks/cli-0.5.9-0a5jxqra.mjs +0 -58
- package/dist/chunks/cli-0.5.9-0b1wx67c.mjs +0 -193
- package/dist/chunks/cli-0.5.9-0becvd5f.mjs +0 -2
- package/dist/chunks/cli-0.5.9-0w46b370.mjs +0 -3
- package/dist/chunks/cli-0.5.9-10ar539r.mjs +0 -2
- package/dist/chunks/cli-0.5.9-12gj3v8y.mjs +0 -12
- package/dist/chunks/cli-0.5.9-1ktmgzhb.mjs +0 -15
- package/dist/chunks/cli-0.5.9-1qkhnqnk.mjs +0 -4
- package/dist/chunks/cli-0.5.9-1zc8qwr4.mjs +0 -2
- package/dist/chunks/cli-0.5.9-248na0hf.mjs +0 -2
- package/dist/chunks/cli-0.5.9-2fcyavah.mjs +0 -17
- package/dist/chunks/cli-0.5.9-2jfbm2es.mjs +0 -12
- package/dist/chunks/cli-0.5.9-2txnqxd1.mjs +0 -2
- package/dist/chunks/cli-0.5.9-31f5vjyq.mjs +0 -2
- package/dist/chunks/cli-0.5.9-32fpvgpt.mjs +0 -2
- package/dist/chunks/cli-0.5.9-371mb3zf.mjs +0 -4
- package/dist/chunks/cli-0.5.9-3bsjckc3.mjs +0 -2
- package/dist/chunks/cli-0.5.9-3s1c44tz.mjs +0 -2
- package/dist/chunks/cli-0.5.9-41dpv5z9.mjs +0 -2
- package/dist/chunks/cli-0.5.9-42t3s85x.mjs +0 -2
- package/dist/chunks/cli-0.5.9-4aga12a5.mjs +0 -2
- package/dist/chunks/cli-0.5.9-4fdad25z.mjs +0 -3
- package/dist/chunks/cli-0.5.9-4m738pn1.mjs +0 -25
- package/dist/chunks/cli-0.5.9-4s8nynfd.mjs +0 -2
- package/dist/chunks/cli-0.5.9-4t8b91eb.mjs +0 -4
- package/dist/chunks/cli-0.5.9-4w9169na.mjs +0 -3
- package/dist/chunks/cli-0.5.9-5ah34c4c.mjs +0 -39
- package/dist/chunks/cli-0.5.9-5e3fhttm.mjs +0 -2
- package/dist/chunks/cli-0.5.9-5hzwn715.mjs +0 -2
- package/dist/chunks/cli-0.5.9-5s8vtyx6.mjs +0 -4
- package/dist/chunks/cli-0.5.9-5vdqnecb.mjs +0 -4
- package/dist/chunks/cli-0.5.9-5vj7cvdr.mjs +0 -2
- package/dist/chunks/cli-0.5.9-5ykvr12k.mjs +0 -2
- package/dist/chunks/cli-0.5.9-610r4gbg.mjs +0 -2
- package/dist/chunks/cli-0.5.9-637n1msd.mjs +0 -15
- package/dist/chunks/cli-0.5.9-671nz4d9.mjs +0 -2
- package/dist/chunks/cli-0.5.9-68rmtj23.mjs +0 -2
- package/dist/chunks/cli-0.5.9-6rrqt96f.mjs +0 -2
- package/dist/chunks/cli-0.5.9-72tax9cd.mjs +0 -2
- package/dist/chunks/cli-0.5.9-77nxjft3.mjs +0 -2
- package/dist/chunks/cli-0.5.9-7bq8wzr3.mjs +0 -18
- package/dist/chunks/cli-0.5.9-7hcka84h.mjs +0 -2
- package/dist/chunks/cli-0.5.9-7qcan18n.mjs +0 -2
- package/dist/chunks/cli-0.5.9-8h1qpeef.mjs +0 -2
- package/dist/chunks/cli-0.5.9-8kfemzbn.mjs +0 -2
- package/dist/chunks/cli-0.5.9-8ndgy03m.mjs +0 -4
- package/dist/chunks/cli-0.5.9-91gjew0x.mjs +0 -3
- package/dist/chunks/cli-0.5.9-9fgjryqc.mjs +0 -2
- package/dist/chunks/cli-0.5.9-9rrpczqk.mjs +0 -17
- package/dist/chunks/cli-0.5.9-a720c6hc.mjs +0 -9
- package/dist/chunks/cli-0.5.9-ajbjmz51.mjs +0 -2
- package/dist/chunks/cli-0.5.9-ap6gvqkx.mjs +0 -67
- package/dist/chunks/cli-0.5.9-apc46v07.mjs +0 -15
- package/dist/chunks/cli-0.5.9-awa1dtdz.mjs +0 -2
- package/dist/chunks/cli-0.5.9-b4t4xfpb.mjs +0 -2
- package/dist/chunks/cli-0.5.9-b4xgpen1.mjs +0 -5
- package/dist/chunks/cli-0.5.9-bax4dxrj.mjs +0 -2
- package/dist/chunks/cli-0.5.9-bc0wvx5b.mjs +0 -2
- package/dist/chunks/cli-0.5.9-bfn7177j.mjs +0 -2
- package/dist/chunks/cli-0.5.9-bp09b2xm.mjs +0 -2
- package/dist/chunks/cli-0.5.9-bv3m0yb8.mjs +0 -2
- package/dist/chunks/cli-0.5.9-bwdsfdf6.mjs +0 -2
- package/dist/chunks/cli-0.5.9-c54d94sv.mjs +0 -2
- package/dist/chunks/cli-0.5.9-cbgfqb0x.mjs +0 -2
- package/dist/chunks/cli-0.5.9-cy4sm0c2.mjs +0 -2
- package/dist/chunks/cli-0.5.9-d5rn9c6v.mjs +0 -12
- package/dist/chunks/cli-0.5.9-d66wktpd.mjs +0 -2
- package/dist/chunks/cli-0.5.9-d89n2ccx.mjs +0 -2
- package/dist/chunks/cli-0.5.9-da0mspn4.mjs +0 -2
- package/dist/chunks/cli-0.5.9-dszssq6z.mjs +0 -2
- package/dist/chunks/cli-0.5.9-dtbcqw2e.mjs +0 -2
- package/dist/chunks/cli-0.5.9-e1gk7v9y.mjs +0 -2
- package/dist/chunks/cli-0.5.9-e4sr85eg.mjs +0 -2
- package/dist/chunks/cli-0.5.9-e5ex267m.mjs +0 -2
- package/dist/chunks/cli-0.5.9-e7gc5p54.mjs +0 -2
- package/dist/chunks/cli-0.5.9-eagw660r.mjs +0 -2
- package/dist/chunks/cli-0.5.9-ejmv1n9p.mjs +0 -3
- package/dist/chunks/cli-0.5.9-ek649arf.mjs +0 -6
- package/dist/chunks/cli-0.5.9-ezc11axw.mjs +0 -2
- package/dist/chunks/cli-0.5.9-ezpjdejw.mjs +0 -2
- package/dist/chunks/cli-0.5.9-f9jt7awn.mjs +0 -2
- package/dist/chunks/cli-0.5.9-fn6ees65.mjs +0 -2
- package/dist/chunks/cli-0.5.9-fv4jrdef.mjs +0 -2
- package/dist/chunks/cli-0.5.9-g6qpvmj4.mjs +0 -133
- package/dist/chunks/cli-0.5.9-g9kt9aw7.mjs +0 -2
- package/dist/chunks/cli-0.5.9-ga0kqnkz.mjs +0 -5
- package/dist/chunks/cli-0.5.9-gbq794tt.mjs +0 -2
- package/dist/chunks/cli-0.5.9-gcsba93g.mjs +0 -18
- package/dist/chunks/cli-0.5.9-ghbax09k.mjs +0 -2
- package/dist/chunks/cli-0.5.9-gk1vb8nn.mjs +0 -2
- package/dist/chunks/cli-0.5.9-gp0bq7wk.mjs +0 -2
- package/dist/chunks/cli-0.5.9-gr8zgxwx.mjs +0 -2
- package/dist/chunks/cli-0.5.9-grgf8g99.mjs +0 -2
- package/dist/chunks/cli-0.5.9-h5d0zxek.mjs +0 -3
- package/dist/chunks/cli-0.5.9-h6nmz5e3.mjs +0 -2
- package/dist/chunks/cli-0.5.9-h7gh7ym5.mjs +0 -24
- package/dist/chunks/cli-0.5.9-h836a3wa.mjs +0 -2
- package/dist/chunks/cli-0.5.9-hg2qm56h.mjs +0 -4
- package/dist/chunks/cli-0.5.9-hpq0xehd.mjs +0 -2
- package/dist/chunks/cli-0.5.9-hwet4kvx.mjs +0 -2
- package/dist/chunks/cli-0.5.9-j2d1jct8.mjs +0 -2
- package/dist/chunks/cli-0.5.9-j8629kcy.mjs +0 -2
- package/dist/chunks/cli-0.5.9-j9ns2awb.mjs +0 -8
- package/dist/chunks/cli-0.5.9-jd8be7cd.mjs +0 -6
- package/dist/chunks/cli-0.5.9-jdzavz2g.mjs +0 -2
- package/dist/chunks/cli-0.5.9-jjtdefqj.mjs +0 -2
- package/dist/chunks/cli-0.5.9-jk4rx6zt.mjs +0 -4
- package/dist/chunks/cli-0.5.9-jnhyr1zg.mjs +0 -2
- package/dist/chunks/cli-0.5.9-jsxqd90d.mjs +0 -3
- package/dist/chunks/cli-0.5.9-k3prcbg9.mjs +0 -2
- package/dist/chunks/cli-0.5.9-k47s77hf.mjs +0 -2
- package/dist/chunks/cli-0.5.9-k6qxbj0d.mjs +0 -42
- package/dist/chunks/cli-0.5.9-k9yedz53.mjs +0 -5262
- package/dist/chunks/cli-0.5.9-kfpgp09g.mjs +0 -6
- package/dist/chunks/cli-0.5.9-knc0w8sn.mjs +0 -2
- package/dist/chunks/cli-0.5.9-krvpcgvw.mjs +0 -2
- package/dist/chunks/cli-0.5.9-ktxeg6my.mjs +0 -2
- package/dist/chunks/cli-0.5.9-m1y4hmzs.mjs +0 -2
- package/dist/chunks/cli-0.5.9-mcezkpp8.mjs +0 -2
- package/dist/chunks/cli-0.5.9-mhz9wt6a.mjs +0 -2
- package/dist/chunks/cli-0.5.9-mmvtbr39.mjs +0 -2
- package/dist/chunks/cli-0.5.9-mpqmy7zw.mjs +0 -2
- package/dist/chunks/cli-0.5.9-n08gkgng.mjs +0 -21
- package/dist/chunks/cli-0.5.9-ncjg30aq.mjs +0 -3
- package/dist/chunks/cli-0.5.9-nct7sarc.mjs +0 -2
- package/dist/chunks/cli-0.5.9-nfhfsnw6.mjs +0 -2
- package/dist/chunks/cli-0.5.9-nk3pacrn.mjs +0 -5
- package/dist/chunks/cli-0.5.9-nvf5kfmq.mjs +0 -9
- package/dist/chunks/cli-0.5.9-ppr1420k.mjs +0 -2
- package/dist/chunks/cli-0.5.9-q3wvc7qb.mjs +0 -2
- package/dist/chunks/cli-0.5.9-q69vj08a.mjs +0 -2
- package/dist/chunks/cli-0.5.9-q7a4xcwy.mjs +0 -3
- package/dist/chunks/cli-0.5.9-q9ne4r9p.mjs +0 -50
- package/dist/chunks/cli-0.5.9-qddf6zq9.mjs +0 -2
- package/dist/chunks/cli-0.5.9-qexy3mqr.mjs +0 -59
- package/dist/chunks/cli-0.5.9-qvvxrm93.mjs +0 -3
- package/dist/chunks/cli-0.5.9-qy6qkzwb.mjs +0 -2
- package/dist/chunks/cli-0.5.9-r9d405kc.mjs +0 -2
- package/dist/chunks/cli-0.5.9-rbjjfytb.mjs +0 -2
- package/dist/chunks/cli-0.5.9-rh5280xq.mjs +0 -2
- package/dist/chunks/cli-0.5.9-rhycyvwn.mjs +0 -2
- package/dist/chunks/cli-0.5.9-rjdhjn49.mjs +0 -20
- package/dist/chunks/cli-0.5.9-rm62v7hr.mjs +0 -34
- package/dist/chunks/cli-0.5.9-rpgjj6qg.mjs +0 -2
- package/dist/chunks/cli-0.5.9-rv2328c4.mjs +0 -2
- package/dist/chunks/cli-0.5.9-s2jh3scf.mjs +0 -3
- package/dist/chunks/cli-0.5.9-sd34jmva.mjs +0 -2
- package/dist/chunks/cli-0.5.9-sjcz03eb.mjs +0 -2
- package/dist/chunks/cli-0.5.9-ss870bda.mjs +0 -2
- package/dist/chunks/cli-0.5.9-syr6nffj.mjs +0 -2
- package/dist/chunks/cli-0.5.9-t2fy8t5r.mjs +0 -45
- package/dist/chunks/cli-0.5.9-tav5jmz1.mjs +0 -2
- package/dist/chunks/cli-0.5.9-tbz9s4h3.mjs +0 -2
- package/dist/chunks/cli-0.5.9-tj6dt3d6.mjs +0 -2
- package/dist/chunks/cli-0.5.9-tke5evvm.mjs +0 -2
- package/dist/chunks/cli-0.5.9-v1srrn02.mjs +0 -2
- package/dist/chunks/cli-0.5.9-v5mkedy5.mjs +0 -16
- package/dist/chunks/cli-0.5.9-v69cq6f1.mjs +0 -2
- package/dist/chunks/cli-0.5.9-ve2b6kmp.mjs +0 -2
- package/dist/chunks/cli-0.5.9-vkt9t3z8.mjs +0 -133
- package/dist/chunks/cli-0.5.9-w1g3tgzh.mjs +0 -2
- package/dist/chunks/cli-0.5.9-wc5gt1zw.mjs +0 -2
- package/dist/chunks/cli-0.5.9-whf5zybr.mjs +0 -2
- package/dist/chunks/cli-0.5.9-wjvc994v.mjs +0 -2
- package/dist/chunks/cli-0.5.9-wkhmkyaq.mjs +0 -2
- package/dist/chunks/cli-0.5.9-wrndf987.mjs +0 -2
- package/dist/chunks/cli-0.5.9-xbvqph1k.mjs +0 -2
- package/dist/chunks/cli-0.5.9-xcexsk79.mjs +0 -2
- package/dist/chunks/cli-0.5.9-xge969yd.mjs +0 -2
- package/dist/chunks/cli-0.5.9-xn1qcye7.mjs +0 -2
- package/dist/chunks/cli-0.5.9-xn369es1.mjs +0 -2
- package/dist/chunks/cli-0.5.9-xz1pg47z.mjs +0 -10
- package/dist/chunks/cli-0.5.9-yazhwsgb.mjs +0 -4
- package/dist/chunks/cli-0.5.9-yh7f5m4w.mjs +0 -2
- package/dist/chunks/cli-0.5.9-yqn35x2d.mjs +0 -2
- package/dist/chunks/cli-0.5.9-ywc7arzn.mjs +0 -2
- package/dist/chunks/cli-0.5.9-z87j725g.mjs +0 -2
- package/dist/chunks/cli-0.5.9-zb26tq1c.mjs +0 -2
- package/dist/chunks/cli-0.5.9-zerpef2t.mjs +0 -1
- package/dist/chunks/cli-0.5.9-zeskcndd.mjs +0 -24
- package/dist/chunks/cli-0.5.9-zqgkcx3g.mjs +0 -2
- package/dist/chunks/cli-0.5.9-zrcz538q.mjs +0 -2
- package/dist/chunks/cli-0.5.9-zwpt90q9.mjs +0 -7
- package/dist/chunks/client-0.5.9-bhc7ghsr.mjs +0 -1
- package/dist/chunks/color-0.5.9-5722xdf4.mjs +0 -1
- package/dist/chunks/compact-0.5.9-4cf807hc.mjs +0 -3
- package/dist/chunks/config-0.5.9-936tss5g.mjs +0 -1
- package/dist/chunks/config-0.5.9-kk16cygb.mjs +0 -1
- package/dist/chunks/context-0.5.9-b0afgp2c.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.5.9-wj6fxcsj.mjs +0 -1
- package/dist/chunks/conversation-0.5.9-rtntf81h.mjs +0 -1
- package/dist/chunks/copy-0.5.9-93t8z0wz.mjs +0 -9
- package/dist/chunks/cost-0.5.9-2csvd1ae.mjs +0 -1
- package/dist/chunks/createSSHSession-0.5.9-0aqkvqad.mjs +0 -1
- package/dist/chunks/createSession-0.5.9-j9xdpffh.mjs +0 -1
- package/dist/chunks/debug-0.5.9-kd9n32y2.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.5.9-1f7mkn9m.mjs +0 -1177
- package/dist/chunks/desktop-0.5.9-ce65mt7y.mjs +0 -1
- package/dist/chunks/detectRepository-0.5.9-4nd76hbs.mjs +0 -1
- package/dist/chunks/detection-0.5.9-mpgxg1d5.mjs +0 -1
- package/dist/chunks/diff-0.5.9-89ny0sp6.mjs +0 -1
- package/dist/chunks/doctor-0.5.9-e8bxsm2r.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.5.9-kwncc3yh.mjs +0 -1
- package/dist/chunks/earlyInput-0.5.9-cxrgrx2e.mjs +0 -1
- package/dist/chunks/effort-0.5.9-dbgsjfep.mjs +0 -10
- package/dist/chunks/envUtils-0.5.9-59e9sq5q.mjs +0 -1
- package/dist/chunks/environmentSelection-0.5.9-5tjt9mkd.mjs +0 -1
- package/dist/chunks/environments-0.5.9-ebm4yp6e.mjs +0 -1
- package/dist/chunks/errors-0.5.9-xp1e5xqp.mjs +0 -1
- package/dist/chunks/exampleCommands-0.5.9-dxv2wpk4.mjs +0 -1
- package/dist/chunks/exit-0.5.9-q7cpk25k.mjs +0 -1
- package/dist/chunks/export-0.5.9-1dpbp185.mjs +0 -2
- package/dist/chunks/extra-usage-0.5.9-ctd5dnsr.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.5.9-hbmbvzb5.mjs +0 -1
- package/dist/chunks/fast-0.5.9-wagaw91z.mjs +0 -1
- package/dist/chunks/feedback-0.5.9-x37szs13.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.5.9-g8st730b.mjs +0 -1
- package/dist/chunks/git-0.5.9-zxdvsyxq.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.5.9-mp51r114.mjs +0 -1
- package/dist/chunks/grove-0.5.9-grafpqtx.mjs +0 -1
- package/dist/chunks/growthbook-0.5.9-mr1nyz65.mjs +0 -1
- package/dist/chunks/headless-0.5.9-pxnbg1dh.mjs +0 -2
- package/dist/chunks/heapdump-0.5.9-58bmar8y.mjs +0 -6
- package/dist/chunks/help-0.5.9-x6ds3za0.mjs +0 -1
- package/dist/chunks/hookChains-0.5.9-1sz7vw7t.mjs +0 -3
- package/dist/chunks/hooks-0.5.9-4mjp8k78.mjs +0 -1
- package/dist/chunks/hooks-0.5.9-n14e2a57.mjs +0 -79
- package/dist/chunks/ide-0.5.9-gk5tarwc.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.5.9-eept9e9s.mjs +0 -1
- package/dist/chunks/index-0.5.9-0n7mpzrj.mjs +0 -17
- package/dist/chunks/index-0.5.9-3ng34e8n.mjs +0 -2
- package/dist/chunks/index-0.5.9-4b9dgj2z.mjs +0 -9
- package/dist/chunks/index-0.5.9-4fzd2pns.mjs +0 -1
- package/dist/chunks/index-0.5.9-6awv6fyn.mjs +0 -1
- package/dist/chunks/index-0.5.9-6cbrcdyh.mjs +0 -1
- package/dist/chunks/index-0.5.9-725p0eby.mjs +0 -1
- package/dist/chunks/index-0.5.9-85ep6547.mjs +0 -30
- package/dist/chunks/index-0.5.9-8h5ceajb.mjs +0 -1
- package/dist/chunks/index-0.5.9-8ws7n6wv.mjs +0 -5
- package/dist/chunks/index-0.5.9-b3jm65x4.mjs +0 -1
- package/dist/chunks/index-0.5.9-cjjbeyt8.mjs +0 -1
- package/dist/chunks/index-0.5.9-gnac3s48.mjs +0 -1
- package/dist/chunks/index-0.5.9-m68jcsx2.mjs +0 -1
- package/dist/chunks/index-0.5.9-n91crv8a.mjs +0 -1
- package/dist/chunks/index-0.5.9-npkfayxd.mjs +0 -1
- package/dist/chunks/index-0.5.9-pbzzad7t.mjs +0 -9
- package/dist/chunks/index-0.5.9-thp631gs.mjs +0 -1
- package/dist/chunks/index-0.5.9-xcy5t1fw.mjs +0 -1
- package/dist/chunks/index-0.5.9-y07jxja1.mjs +0 -1
- package/dist/chunks/index-0.5.9-yjkfcf2g.mjs +0 -2
- package/dist/chunks/index-0.5.9-zb346057.mjs +0 -1
- package/dist/chunks/init-0.5.9-cmszfh8j.mjs +0 -1
- package/dist/chunks/initReplBridge-0.5.9-y2j594wz.mjs +0 -1
- package/dist/chunks/ink-0.5.9-km3f0tv6.mjs +0 -1
- package/dist/chunks/insights-0.5.9-fevx72ve.mjs +0 -870
- package/dist/chunks/install-0.5.9-6m05dpsa.mjs +0 -1
- package/dist/chunks/install-github-app-0.5.9-91syqpey.mjs +0 -149
- package/dist/chunks/install-slack-app-0.5.9-9rqmjej1.mjs +0 -1
- package/dist/chunks/instrumentation-0.5.9-55dt6kkh.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.5.9-47bhz9at.mjs +0 -1
- package/dist/chunks/keybindings-0.5.9-y134m89v.mjs +0 -2
- package/dist/chunks/knowledge-0.5.9-d1m7e2b4.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.5.9-69z169gq.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.5.9-vtemqv8c.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.5.9-xxp0pj2x.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.5.9-zgq2s8sm.mjs +0 -1
- package/dist/chunks/log-0.5.9-8aszszjb.mjs +0 -1
- package/dist/chunks/main-0.5.9-cjg2h8yb.mjs +0 -1
- package/dist/chunks/managedEnv-0.5.9-nq2mbery.mjs +0 -1
- package/dist/chunks/mcp-0.5.9-g39bj87f.mjs +0 -17
- package/dist/chunks/mcp-0.5.9-h1sdm6zb.mjs +0 -4
- package/dist/chunks/mcp-0.5.9-vpwsq0wd.mjs +0 -1
- package/dist/chunks/mcpb-0.5.9-pavmx8mm.mjs +0 -1
- package/dist/chunks/memory-0.5.9-se036fe4.mjs +0 -3
- package/dist/chunks/mobile-0.5.9-57ycqdp3.mjs +0 -2
- package/dist/chunks/model-0.5.9-4e6fc1m4.mjs +0 -1
- package/dist/chunks/model-0.5.9-k0m86zrn.mjs +0 -2
- package/dist/chunks/node-0.5.9-ftk6pxmx.mjs +0 -12
- package/dist/chunks/oauth-0.5.9-bytwte72.mjs +0 -1
- package/dist/chunks/openaiShim-0.5.9-f9gdeama.mjs +0 -14
- package/dist/chunks/output-style-0.5.9-1wbqsbc0.mjs +0 -1
- package/dist/chunks/package-D6422PQU-0.5.9-4gkr65dy.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.5.9-d0t88r4n.mjs +0 -1
- package/dist/chunks/parser-0.5.9-j1kdtn15.mjs +0 -1
- package/dist/chunks/passes-0.5.9-w08t80rc.mjs +0 -1
- package/dist/chunks/permissions-0.5.9-mzx7w14f.mjs +0 -3
- package/dist/chunks/plan-0.5.9-trs5gepx.mjs +0 -1
- package/dist/chunks/plist-0.5.9-rzpv4ecn.mjs +0 -1
- package/dist/chunks/plugin-0.5.9-x1xsznkk.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.5.9-qwkp82xp.mjs +0 -1
- package/dist/chunks/plugins-0.5.9-8yj1w6bf.mjs +0 -9
- package/dist/chunks/preActionHook-0.5.9-130eb4bx.mjs +0 -2
- package/dist/chunks/print-0.5.9-fm0q92d1.mjs +0 -57
- package/dist/chunks/privacy-settings-0.5.9-vhjhbccg.mjs +0 -1
- package/dist/chunks/process-0.5.9-syp1y7ym.mjs +0 -1
- package/dist/chunks/processBashCommand-0.5.9-admb0s9z.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.5.9-x5wmbzr0.mjs +0 -9
- package/dist/chunks/prompt-0.5.9-6s763n7m.mjs +0 -1
- package/dist/chunks/prompt-0.5.9-fg1exp0e.mjs +0 -1
- package/dist/chunks/prompts-0.5.9-a6jrpexy.mjs +0 -1
- package/dist/chunks/protocolHandler-0.5.9-5920qvb2.mjs +0 -13
- package/dist/chunks/provider-0.5.9-ew50s03j.mjs +0 -2
- package/dist/chunks/providerProfiles-0.5.9-ygv5pxbq.mjs +0 -1
- package/dist/chunks/providerValidation-0.5.9-pebvjkk0.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.5.9-p39mhxr9.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.5.9-5576rw9k.mjs +0 -34
- package/dist/chunks/registry-0.5.9-tkmx5qgm.mjs +0 -1
- package/dist/chunks/release-notes-0.5.9-cmf1033z.mjs +0 -5
- package/dist/chunks/reload-plugins-0.5.9-ynqb4wwm.mjs +0 -2
- package/dist/chunks/remote-env-0.5.9-ddnwx90m.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.5.9-br32ecze.mjs +0 -1
- package/dist/chunks/remoteSession-0.5.9-9ee3jy2n.mjs +0 -1
- package/dist/chunks/rename-0.5.9-h0npjxhv.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.5.9-4tjg5rct.mjs +0 -1
- package/dist/chunks/replLauncher-0.5.9-y4zkk3hb.mjs +0 -1
- package/dist/chunks/resume-0.5.9-5n9z570h.mjs +0 -2
- package/dist/chunks/rewind-0.5.9-cawzh2f5.mjs +0 -1
- package/dist/chunks/rootOptions-0.5.9-z7hher7x.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.5.9-m8dy3vak.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.5.9-d7hfb9dw.mjs +0 -1
- package/dist/chunks/session-0.5.9-spjfzb60.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.5.9-k8tw4apd.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.5.9-kzd77836.mjs +0 -1
- package/dist/chunks/sessionStorage-0.5.9-5eaxh9e1.mjs +0 -1
- package/dist/chunks/settings-0.5.9-9y9yx2ep.mjs +0 -1
- package/dist/chunks/setup-0.5.9-cbnsjaz6.mjs +0 -5
- package/dist/chunks/sinks-0.5.9-3kes56y2.mjs +0 -1
- package/dist/chunks/skills-0.5.9-816ec23f.mjs +0 -1
- package/dist/chunks/startupProfiler-0.5.9-j5rdws5r.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.5.9-wgd2amqq.mjs +0 -1
- package/dist/chunks/state-0.5.9-ssv90pdf.mjs +0 -1
- package/dist/chunks/stats-0.5.9-09jq1eez.mjs +0 -6
- package/dist/chunks/status-0.5.9-zm23czy4.mjs +0 -1
- package/dist/chunks/stickers-0.5.9-df1ha62e.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.5.9-4bh9v7rk.mjs +0 -1
- package/dist/chunks/tasks-0.5.9-75eaj64t.mjs +0 -1
- package/dist/chunks/teamHelpers-0.5.9-a239c7as.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.5.9-gpfpnhg1.mjs +0 -1
- package/dist/chunks/teleport-0.5.9-jq0cm2ce.mjs +0 -1
- package/dist/chunks/terminalSetup-0.5.9-zscy8b5b.mjs +0 -1
- package/dist/chunks/theme-0.5.9-crkb4a1t.mjs +0 -1
- package/dist/chunks/thinkback-0.5.9-bqzpccev.mjs +0 -1
- package/dist/chunks/thinkback-play-0.5.9-avsgpz11.mjs +0 -1
- package/dist/chunks/toolPool-0.5.9-9k94r61g.mjs +0 -1
- package/dist/chunks/toolSearch-0.5.9-qm8rqvys.mjs +0 -1
- package/dist/chunks/tools-0.5.9-e5fa6xh1.mjs +0 -1
- package/dist/chunks/trustedDevice-0.5.9-dhpwn40g.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.5.9-bwat06c0.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.5.9-qfz8shw1.mjs +0 -4
- package/dist/chunks/update-0.5.9-yv6acwy6.mjs +0 -86
- package/dist/chunks/upgrade-0.5.9-3xpmapbj.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.5.9-ebc62ytm.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.5.9-ejbmjrv9.mjs +0 -1
- package/dist/chunks/usage-0.5.9-ze5694v0.mjs +0 -1
- package/dist/chunks/util-0.5.9-8517xr6w.mjs +0 -1
- package/dist/chunks/utils-0.5.9-tq5p3g26.mjs +0 -1
- package/dist/chunks/vim-0.5.9-3pwhv6s4.mjs +0 -1
- package/dist/chunks/watcher-0.5.9-ft2b96h8.mjs +0 -1
- package/dist/chunks/wiki-0.5.9-f96c34xg.mjs +0 -132
- package/dist/chunks/worktree-0.5.9-p28ne51h.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.5.9-4tgvrvd2.mjs +0 -1
- package/dist/chunks/wrapper-0.5.9-asjtntyw.mjs +0 -7
- /package/dist/chunks/{cli-0.5.9-ysvsqcpa.mjs → cli-0.5.10-1sd567wn.mjs} +0 -0
- /package/dist/chunks/{cli-0.5.9-ehe0yr95.mjs → cli-0.5.10-57andxje.mjs} +0 -0
- /package/dist/chunks/{cli-0.5.9-x9tg4bxs.mjs → cli-0.5.10-5kz0qdsz.mjs} +0 -0
- /package/dist/chunks/{cli-0.5.9-c91t0fys.mjs → cli-0.5.10-a542fww1.mjs} +0 -0
- /package/dist/chunks/{cli-0.5.9-4yxntpxv.mjs → cli-0.5.10-n8pz2na8.mjs} +0 -0
- /package/dist/chunks/{cli-0.5.9-1y9n9z2h.mjs → cli-0.5.10-ra711jkk.mjs} +0 -0
- /package/dist/chunks/{cli-0.5.9-mk69z06z.mjs → cli-0.5.10-t2s1mxyn.mjs} +0 -0
- /package/dist/chunks/{cli-0.5.9-an1j3dqv.mjs → cli-0.5.10-vsgznv7p.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{db as c}from"./cli-0.5.9-7qcan18n.mjs";import{eb as S}from"./cli-0.5.9-mk69z06z.mjs";import{rc as P,vc as Vq}from"./cli-0.5.9-sjcz03eb.mjs";import{Ac as v,Bc as $,Cc as Wq,zc as I}from"./cli-0.5.9-xge969yd.mjs";import{Bs as Bq,Bt as A,Ct as _,Et as Gq,FI as f,II as Tq,Mr as N,Nr as e,nH as E,oH as Qq,rn as C,ss as L,tn as r,ts as qq,yC as M,zC as Jq,zs as h}from"./cli-0.5.9-k9yedz53.mjs";import{pZ as s}from"./cli-0.5.9-bp09b2xm.mjs";import{b8 as w,d8 as t,kca as F,sca as a,x6 as D,z6 as n}from"./cli-0.5.9-0b1wx67c.mjs";import{Oea as x,Qea as d}from"./cli-0.5.9-4s8nynfd.mjs";import{Qfa as j,Tfa as o}from"./cli-0.5.9-ek649arf.mjs";import{hga as y,pga as l}from"./cli-0.5.9-yazhwsgb.mjs";import{Hna as p}from"./cli-0.5.9-ysvsqcpa.mjs";Jq();d();Bq();Gq();Wq();t();o();n();l();a();e();Qq();var V=p(s(),1);qq();r();Vq();Tq();function Lq({enabled:W=!0}={}){let b=V.useSyncExternalStore(v,I,I),H=_(),O=A((J)=>J.plugins.needsRefresh),{addNotification:z}=M(),R=V.useCallback(async()=>{try{let{enabled:J,disabled:T,errors:Q}=await f();await c();let X=P();if(Object.keys(X).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let Y=[],Z=[];try{Y=await E(),$(Y)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Z=await N()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await S()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let u=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await C(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await L(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);h(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let i=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(i)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:T,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${T.length}, Commands: ${Y.length}, Agents: ${Z.length}, Errors: ${Q.length}`);let g=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:T.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:Y.length,agent_count:Z.length,hook_count:g,mcp_count:u,lsp_count:m}}catch(J){let T=y(J);return F(T),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let X=Q.plugins.errors.filter((Z)=>Z.source==="lsp-manager"||Z.source.startsWith("plugin:")),Y={type:"generic-error",source:"plugin-system",error:T.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...X,Y]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return V.useEffect(()=>{if(!W)return;R().then((J)=>{let{ant_enabled_names:T,...Q}=J,X={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDE_CODE_PLUGIN_CACHE_DIR};x("tengu_plugins_loaded",{...X,...T!==void 0&&{enabled_names:T}}),D("info","tengu_plugins_loaded",X)})},[R,W]),V.useEffect(()=>{if(W)return;$([])},[W]),V.useEffect(()=>{if(!W||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[W,O,z]),W?b:[]}
|
|
2
|
-
export{Lq as cb};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{o as f}from"./cli-0.5.9-zwpt90q9.mjs";import{ar as F,br as i}from"./cli-0.5.9-k9yedz53.mjs";import{$Q as e,YQ as T,aR as k,bR as z,gR as d}from"./cli-0.5.9-z87j725g.mjs";import{X3 as W,_3 as m,f4 as y,g4 as U,l4 as c}from"./cli-0.5.9-nvf5kfmq.mjs";import{x6 as Z,z6 as R}from"./cli-0.5.9-0b1wx67c.mjs";import{Ada as N,Bda as v,xda as V,zda as I}from"./cli-0.5.9-ap6gvqkx.mjs";import{Mda as E,Xda as b}from"./cli-0.5.9-7hcka84h.mjs";import{Oea as q,Qea as h}from"./cli-0.5.9-4s8nynfd.mjs";import{Qfa as Y,Tfa as _,tfa as O,yfa as p}from"./cli-0.5.9-ek649arf.mjs";import{Fga as w,vga as H}from"./cli-0.5.9-eagw660r.mjs";import{Wma as S,mna as s}from"./cli-0.5.9-7bq8wzr3.mjs";import{Mna as u}from"./cli-0.5.9-ysvsqcpa.mjs";I();b();v();var j={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var x={message:"must be 0 (disabled) or ≥100ms"},C=N(()=>V.object({poll_interval_ms_not_at_capacity:V.number().int().min(100),poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x),non_exclusive_heartbeat_interval_ms:V.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x).default(j.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:V.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:V.number().int().min(0).default(120000)}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function BJ(){let J=E("tengu_bridge_poll_interval_config",j,300000),K=C().safeParse(J);return K.success?K.data:j}s();_();R();e();h();i();_();R();w();m();c();d();p();var g=`{"type":"keep_alive"}
|
|
2
|
-
`,t=1000,l=1000,D=30000,n=600000,r=1e4,o=300000,A=D*2,a=new Set([1002,4001,4003]);class L{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new F(t)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:U(this.url.href),tls:W()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-0.5.9-asjtntyw.mjs"),Q=new K(this.url.href,{headers:J,agent:y(this.url.href),...W()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)q("tengu_ws_transport_reconnected",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),k(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)q("tengu_ws_transport_closed",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&a.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>A)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<n){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let B=this.refreshHeaders();Object.assign(this.headers,B),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(l*Math.pow(2,this.reconnectAttempts-1),D),G=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(G)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)q("tengu_ws_transport_reconnecting",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(G)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},G)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((G)=>("uuid"in G)&&G.uuid===J);if($>=0){Q=$+1;let G=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(G),G.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${G.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:G.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let G=O($)+`
|
|
3
|
-
`;if(!this.sendLine(G)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=O(J)+`
|
|
4
|
-
`;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>A){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},r)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),H(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(g),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},o)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var JJ=100,KJ=15000,QJ=3000;class XJ extends L{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:G,onBatchDropped:B}=$??{};this.postUrl=YJ(J),this.uploader=new f({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:G,onBatchDropped:(M,P)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:M,failures:P}),B?.(M,P)},send:(M)=>this.postOnce(M)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),JJ);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,QJ)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=T();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await S.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:KJ})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function YJ(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
|
|
5
|
-
export{j as a,BJ as b,L as c,XJ as d};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{nh as G,ph as m}from"./cli-0.5.9-bwdsfdf6.mjs";import{qh as H,rh as C}from"./cli-0.5.9-8kfemzbn.mjs";import{DZ as X,FZ as Y,KZ as R}from"./cli-0.5.9-whf5zybr.mjs";import{MZ as k,NZ as y}from"./cli-0.5.9-w1g3tgzh.mjs";import{E3 as B,T3 as f,l0 as w,m0 as E}from"./cli-0.5.9-v5mkedy5.mjs";import{Raa as x,kca as Q,sca as D,uaa as S,xaa as j}from"./cli-0.5.9-0b1wx67c.mjs";import{Mea as V,Nea as b}from"./cli-0.5.9-tav5jmz1.mjs";import{Wma as W,mna as I}from"./cli-0.5.9-7bq8wzr3.mjs";import{Lna as Z}from"./cli-0.5.9-ysvsqcpa.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}));G();let L=B(),N=L==="team"||L==="enterprise";if(!w()&&N){let J;try{J=(await H())?.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 k(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();C();f();E();y();x();D()});
|
|
2
|
-
export{i as kh,A as lh};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{Bd as YZ,Cd as gQ}from"./cli-0.5.9-syr6nffj.mjs";import{Dd as kZ,Jd as XX}from"./cli-0.5.9-ghbax09k.mjs";import{$B as HQ,$i as GZ,$p as U0,AF as JZ,BF as OJ,Bt as zJ,CF as WJ,Cq as VQ,Ct as WQ,DF as ZZ,DN as LZ,EF as QZ,Et as bX,FF as XZ,Fq as KX,Ft as yZ,Gt as iQ,HF as p0,IF as _0,JF as PJ,KG as $0,NG as FZ,Nv as RQ,Oi as u0,Ol as HJ,Ox as fJ,Pi as pJ,Pl as DQ,Pp as aZ,Px as BX,Qj as qQ,Sj as MX,Sp as FX,Tp as cJ,Tv as AX,Up as LQ,Vi as dZ,Wi as tQ,Wx as mZ,Xx as ZX,YE as WZ,ZE as RZ,Zi as r0,_E as s0,aF as MJ,aj as UJ,am as GQ,bF as F0,bm as EX,cC as hX,cF as i0,cm as l,dm as A0,gm as Z0,hm as B0,jq as vQ,km as n,lm as I0,mB as FQ,nB as vX,np as MZ,oD as OQ,oq as d0,ox as NZ,px as rQ,qp as lQ,rD as gX,rq as hQ,sN as lZ,st as NQ,sx as a0,sy as IX,tt as CX,tx as CZ,ty as DX,uD as j0,vD as QX,vi as VZ,wF as pZ,xN as iZ,zF as kJ}from"./cli-0.5.9-k9yedz53.mjs";import{TU as QJ,UU as nZ,gV as q0,hV as g0}from"./cli-0.5.9-qy6qkzwb.mjs";import{JX as f0,LV as R0,UV as l0,cX as C,eX as V,iX as JJ,sX as wZ}from"./cli-0.5.9-qexy3mqr.mjs";import{dZ as hJ,kZ as yX}from"./cli-0.5.9-knc0w8sn.mjs";import{lZ as o,mZ as f,nZ as W,oZ as $}from"./cli-0.5.9-krvpcgvw.mjs";import{pZ as o0}from"./cli-0.5.9-bp09b2xm.mjs";import{AZ as mJ,KZ as MQ}from"./cli-0.5.9-whf5zybr.mjs";import{MZ as DJ,NZ as JX}from"./cli-0.5.9-w1g3tgzh.mjs";import{$Z as tJ,N2 as NJ,O2 as wQ,a0 as IQ}from"./cli-0.5.9-v5mkedy5.mjs";import{A_ as uZ,C_ as eQ,D9 as m0,P_ as Q0,X_ as IJ,a8 as fQ,b8 as M0,d8 as CJ,k6 as t0,kca as eJ,l6 as cZ,sca as BQ,x9 as z0,y9 as w0,z_ as TZ}from"./cli-0.5.9-0b1wx67c.mjs";import{Aca as y0,Dca as b0,Fca as oZ,Hca as e0,Ica as x0,Pca as h0}from"./cli-0.5.9-5vdqnecb.mjs";import{Lda as sJ,Xda as AQ}from"./cli-0.5.9-7hcka84h.mjs";import{Oea as t,Qea as _J}from"./cli-0.5.9-4s8nynfd.mjs";import{Efa as $Z,Gfa as RX,Qfa as D0,Tfa as dJ}from"./cli-0.5.9-ek649arf.mjs";import{iga as v0,pga as aJ}from"./cli-0.5.9-yazhwsgb.mjs";import{Hna as J0,Ina as FJ,Kna as $J,Lna as a}from"./cli-0.5.9-ysvsqcpa.mjs";function T0(Q){return typeof Q==="object"&&Q!==null&&"type"in Q&&Q.type==="local_agent"}function qJ(Q){return{...Q,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:cJ(Q.status)?Date.now()+UQ:void 0}}function GJ(Q,J){t("tengu_transcript_view_enter",{}),J((Z)=>{let X=Z.tasks[Q],z=Z.viewingAgentTaskId,Y=z!==void 0?Z.tasks[z]:void 0,G=z!==void 0&&z!==Q&&T0(Y)&&Y.retain,q=T0(X)&&(!X.retain||X.evictAfter!==void 0),R=Z.viewingAgentTaskId!==Q||Z.viewSelectionMode!=="viewing-agent";if(!q&&!R&&!G)return Z;let F=Z.tasks;if(G||q){if(F={...Z.tasks},G)F[z]=qJ(Y);if(q)F[Q]={...X,retain:!0,evictAfter:void 0}}return{...Z,viewingAgentTaskId:Q,viewSelectionMode:"viewing-agent",tasks:F}})}function VJ(Q){t("tengu_transcript_view_exit",{}),Q((J)=>{let Z=J.viewingAgentTaskId,X={...J,viewingAgentTaskId:void 0,viewSelectionMode:"none"};if(Z===void 0)return J.viewSelectionMode==="none"?J:X;let z=J.tasks[Z];if(!T0(z)||!z.retain)return X;return{...X,tasks:{...J.tasks,[Z]:qJ(z)}}})}function xX(Q,J){J((Z)=>{let X=Z.tasks[Q];if(!T0(X))return Z;if(X.status==="running")return X.abortController?.abort(),Z;if(X.evictAfter===0)return Z;let z=Z.viewingAgentTaskId===Q;return{...Z,tasks:{...Z.tasks,[Q]:{...qJ(X),evictAfter:0}},...z&&{viewingAgentTaskId:void 0,viewSelectionMode:"none"}}})}var UQ=30000;var TJ=a(()=>{_J();LQ()});class xJ{exitPlanCalls=[];results=new Map;rejectedIds=new Set;terminated=null;rescanAfterRejection=!1;everSeenPending=!1;get rejectCount(){return this.rejectedIds.size}get hasPendingPlan(){let Q=this.exitPlanCalls.findLast((J)=>!this.rejectedIds.has(J));return Q!==void 0&&!this.results.has(Q)}ingest(Q){for(let X of Q)if(X.type==="assistant")for(let z of X.message.content){if(z.type!=="tool_use")continue;let Y=z;if(Y.name===u0)this.exitPlanCalls.push(Y.id)}else if(X.type==="user"){let z=X.message.content;if(!Array.isArray(z))continue;for(let Y of z)if(Y.type==="tool_result")this.results.set(Y.tool_use_id,Y)}else if(X.type==="result"&&X.subtype!=="success")this.terminated={subtype:X.subtype};let J=Q.length>0||this.rescanAfterRejection;this.rescanAfterRejection=!1;let Z=null;if(J){for(let X=this.exitPlanCalls.length-1;X>=0;X--){let z=this.exitPlanCalls[X];if(this.rejectedIds.has(z))continue;let Y=this.results.get(z);if(!Y)Z={kind:"pending"};else if(Y.is_error===!0){let G=KQ(Y.content);Z=G!==null?{kind:"teleport",plan:G}:{kind:"rejected",id:z}}else Z={kind:"approved",plan:CQ(Y.content)};break}if(Z?.kind==="approved"||Z?.kind==="teleport")return Z}if(Z?.kind==="rejected")this.rejectedIds.add(Z.id),this.rescanAfterRejection=!0;if(this.terminated)return{kind:"terminated",subtype:this.terminated.subtype};if(Z?.kind==="rejected")return Z;if(Z?.kind==="pending")return this.everSeenPending=!0,Z;return{kind:"unchanged"}}}async function rJ(Q,J,Z,X){let z=Date.now()+J,Y=new xJ,G=null,q=0,R="running";while(Date.now()<z){if(X?.())throw new W0("poll stopped by caller","stopped",Y.rejectCount);let F,O;try{let L=await kJ(Q,G);F=L.newEvents,G=L.lastEventId,O=L.sessionStatus,q=0}catch(L){if(!mJ(L)||++q>=yQ)throw new W0(L instanceof Error?L.message:String(L),"network_or_unknown",Y.rejectCount,{cause:L});await NJ(uJ);continue}let H;try{H=Y.ingest(F)}catch(L){throw new W0(L instanceof Error?L.message:String(L),"extract_marker_missing",Y.rejectCount)}if(H.kind==="approved")return{plan:H.plan,rejectCount:Y.rejectCount,executionTarget:"remote"};if(H.kind==="teleport")return{plan:H.plan,rejectCount:Y.rejectCount,executionTarget:"local"};if(H.kind==="terminated")throw new W0(`remote session ended (${H.subtype}) before plan approval`,"terminated",Y.rejectCount);let P=(O==="idle"||O==="requires_action")&&F.length===0,w=Y.hasPendingPlan?"plan_ready":P?"needs_input":"running";if(w!==R)D0(`[ultraplan] phase ${R} → ${w}`),R=w,Z?.(w);await NJ(uJ)}throw new W0(Y.everSeenPending?`no approval after ${J/1000}s`:`ExitPlanMode never reached after ${J/1000}s (the remote container failed to start, or session ID mismatch?)`,Y.everSeenPending?"timeout_pending":"timeout_no_plan",Y.rejectCount)}function lJ(Q){return typeof Q==="string"?Q:Array.isArray(Q)?Q.map((J)=>("text"in J)?J.text:"").join(""):""}function KQ(Q){let J=lJ(Q),Z=`${EQ}
|
|
2
|
-
`,X=J.indexOf(Z);if(X===-1)return null;return J.slice(X+Z.length).trimEnd()}function CQ(Q){let J=lJ(Q),Z=[`## Approved Plan (edited by user):
|
|
3
|
-
`,`## Approved Plan:
|
|
4
|
-
`];for(let X of Z){let z=J.indexOf(X);if(z!==-1)return J.slice(z+X.length).trimEnd()}throw Error(`ExitPlanMode approved but tool_result has no "## Approved Plan:" marker — remote may have hit the empty-plan or isAgent branch. Content preview: ${J.slice(0,200)}`)}var uJ=3000,yQ=5,W0,EQ="__ULTRAPLAN_TELEPORT_LOCAL__";var iJ=a(()=>{pJ();dJ();wQ();MQ();WJ();W0=class W0 extends Error{reason;rejectCount;constructor(Q,J,Z,X){super(Q,X);this.reason=J;this.rejectCount=Z;this.name="UltraplanPollError"}}});var oJ={};$J(oJ,{default:()=>bQ});var bQ=`This is a planning prompt stub.
|
|
5
|
-
`;var nJ=()=>{};function jQ(){return sJ("tengu_ultraplan_model",tJ.opus46.firstParty)}function TQ(Q,J){let Z=[];if(J)Z.push("Here is a draft plan to refine:","",J,"");if(Z.push(cQ),Q)Z.push("",Q);return Z.join(`
|
|
6
|
-
`)}function uQ(Q,J,Z,X,z){let Y=Date.now(),G=!1;(async()=>{try{let{plan:q,rejectCount:R,executionTarget:F}=await rJ(J,SQ,(O)=>{if(O==="needs_input")t("tengu_ultraplan_awaiting_input",{});d0(Q,z,(H)=>{if(H.status!=="running")return H;let P=O==="running"?void 0:O;return H.ultraplanPhase===P?H:{...H,ultraplanPhase:P}})},()=>X().tasks?.[Q]?.status!=="running");if(t("tengu_ultraplan_approved",{duration_ms:Date.now()-Y,plan_length:q.length,reject_count:R,execution_target:F}),F==="remote"){if(X().tasks?.[Q]?.status!=="running")return;d0(Q,z,(H)=>H.status!=="running"?H:{...H,status:"completed",endTime:Date.now()}),z((H)=>H.ultraplanSessionUrl===Z?{...H,ultraplanSessionUrl:void 0}:H),U0({value:[`Ultraplan approved — executing in Claude Code on the web. Follow along at: ${Z}`,"","Results will land as a pull request when the remote session finishes. There is nothing to do here."].join(`
|
|
7
|
-
`),mode:"task-notification"})}else z((O)=>{let H=O.tasks?.[Q];if(!H||H.status!=="running")return O;return{...O,ultraplanPendingChoice:{plan:q,sessionId:J,taskId:Q}}})}catch(q){if(X().tasks?.[Q]?.status!=="running")return;G=!0,t("tengu_ultraplan_failed",{duration_ms:Date.now()-Y,reason:q instanceof W0?q.reason:"network_or_unknown",reject_count:q instanceof W0?q.rejectCount:void 0}),U0({value:`Ultraplan failed: ${v0(q)}
|
|
8
|
-
|
|
9
|
-
Session: ${Z}`,mode:"task-notification"}),OJ(J).catch((F)=>D0(`ultraplan archive failed: ${String(F)}`)),z((F)=>F.ultraplanSessionUrl===Z?{...F,ultraplanSessionUrl:void 0}:F)}finally{if(G)d0(Q,z,(q)=>q.status!=="running"?q:{...q,status:"failed",endTime:Date.now()})}})()}function dQ(Q){let J=Q?`${YZ} `:"";return`${z0} ultraplan
|
|
10
|
-
${J}Starting Claude Code on the web…`}function mQ(Q){return`${z0} ultraplan · Monitor progress in Claude Code on the web ${Q}
|
|
11
|
-
You can continue working — when the ${z0} fills, press ↓ to view results`}function fZ(Q){return Q?`ultraplan: already polling. Open ${Q} to check status, or wait for the plan to land here.`:"ultraplan: already launching. Please wait for the session to start."}async function LJ(Q,J,Z){await p0.kill(Q,Z),Z((z)=>z.ultraplanSessionUrl||z.ultraplanPendingChoice||z.ultraplanLaunching?{...z,ultraplanSessionUrl:void 0,ultraplanPendingChoice:void 0,ultraplanLaunching:void 0}:z);let X=HJ(J,process.env.SESSION_INGRESS_URL);U0({value:`Ultraplan stopped.
|
|
12
|
-
|
|
13
|
-
Session: ${X}`,mode:"task-notification"}),U0({value:"The user stopped the ultraplan session above. Do not respond to the stop notification — wait for their next message.",mode:"task-notification",isMeta:!0})}async function pQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,disconnectedBridge:G,onSessionReady:q}=Q,{ultraplanSessionUrl:R,ultraplanLaunching:F}=X();if(R||F)return t("tengu_ultraplan_create_failed",{reason:R?"already_polling":"already_launching"}),fZ(R);if(!J&&!Z)return['Usage: /ultraplan \\<prompt\\>, or include "ultraplan" anywhere',"in your prompt","","Advanced multi-agent plan mode with our most powerful model","(Opus). Runs in Claude Code on the web. When the plan is ready,","you can execute it in the web session or send it back here.","Terminal stays free while the remote plans.","Requires /login.","",`Terms: ${zZ}`].join(`
|
|
14
|
-
`);return z((O)=>O.ultraplanLaunching?O:{...O,ultraplanLaunching:!0}),kQ({blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:q}),dQ(G)}async function kQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:G}=Q,q;try{let R=jQ(),F=await ZZ();if(!F.eligible){t("tengu_ultraplan_create_failed",{reason:"precondition",precondition_errors:F.errors.map((K)=>K.type).join(",")});let U=F.errors.map(QZ).join(`
|
|
15
|
-
`);U0({value:`ultraplan: cannot launch remote session —
|
|
16
|
-
${U}`,mode:"task-notification"});return}let O=TQ(J,Z),H,P=await JZ({initialMessage:O,description:J||"Refine local plan",model:R,permissionMode:"plan",ultraplan:!0,signal:Y,useDefaultEnvironment:!0,onBundleFail:(U)=>{H=U}});if(!P){t("tengu_ultraplan_create_failed",{reason:H?"bundle_fail":"teleport_null"}),U0({value:`ultraplan: session creation failed${H?` — ${H}`:""}. See --debug for details.`,mode:"task-notification"});return}q=P.id;let w=HJ(P.id,process.env.SESSION_INGRESS_URL);z((U)=>({...U,ultraplanSessionUrl:w,ultraplanLaunching:void 0})),G?.(mQ(w)),t("tengu_ultraplan_launched",{has_seed_plan:Boolean(Z),model:R});let{taskId:L}=XZ({remoteTaskType:"ultraplan",session:{id:P.id,title:J||"Ultraplan"},command:J,context:{abortController:new AbortController,getAppState:X,setAppState:z},isUltraplan:!0});uQ(L,P.id,w,X,z)}catch(R){if(eJ(R),t("tengu_ultraplan_create_failed",{reason:"unexpected_error"}),U0({value:`ultraplan: unexpected error — ${v0(R)}`,mode:"task-notification"}),q)OJ(q).catch((F)=>D0("ultraplan: failed to archive orphaned session",F)),z((F)=>F.ultraplanSessionUrl?{...F,ultraplanSessionUrl:void 0}:F)}finally{z((R)=>R.ultraplanLaunching?{...R,ultraplanLaunching:void 0}:R)}}var SQ=1800000,zZ="https://code.claude.com/docs/en/claude-code-on-the-web",RJ,_Q,cQ,xQ=async(Q,J,Z)=>{let X=Z.trim();if(!X){let G=await pQ({blurb:X,getAppState:J.getAppState,setAppState:J.setAppState,signal:J.abortController.signal});return Q(G,{display:"system"}),null}let{ultraplanSessionUrl:z,ultraplanLaunching:Y}=J.getAppState();if(z||Y)return t("tengu_ultraplan_create_failed",{reason:z?"already_polling":"already_launching"}),Q(fZ(z),{display:"system"}),null;return J.setAppState((G)=>({...G,ultraplanLaunchPending:{blurb:X}})),Q(void 0,{display:"skip"}),null},WY;var qZ=a(()=>{gQ();m0();DQ();AQ();_J();PJ();dJ();aJ();BQ();vQ();IQ();hQ();WJ();iJ();RJ=(nJ(),FJ(oJ)),_Q=(typeof RJ==="string"?RJ:RJ.default).trimEnd(),cQ=_Q;WY={type:"local-jsx",name:"ultraplan",description:`~10–30 min · Claude Code on the web drafts an advanced plan you can edit and approve. See ${zZ}`,argumentHint:"<prompt>",isEnabled:()=>!1,load:()=>Promise.resolve({call:xQ})}});function k0(Q,J,Z){let X=GZ(J,Q.toolName);if(!X)return Q.toolName;try{let z=X.inputSchema.safeParse(Q.input),Y=z.success?z.data:{},G=X.userFacingName(Y);if(!G)return Q.toolName;let q=X.renderToolUseMessage(Y,{theme:Z,verbose:!1});if(q)return W(V,{children:[G,"(",q,")"]});return G}catch{return Q.toolName}}var wJ=a(()=>{f0();UJ();$()});function OZ(Q){let J=HZ.c(54),{agent:Z,onDone:X,onKillAgent:z,onBack:Y}=Q,[G]=l0(),q;if(J[0]===Symbol.for("react.memo_cache_sentinel"))q=$0(r0()),J[0]=q;else q=J[0];let R=q,F=F0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),O;if(J[1]!==X)O={"confirm:yes":X},J[1]=X,J[2]=O;else O=J[2];let H;if(J[3]===Symbol.for("react.memo_cache_sentinel"))H={context:"Confirmation"},J[3]=H;else H=J[3];q0(O,H);let P;if(J[4]!==Z.status||J[5]!==Y||J[6]!==X||J[7]!==z)P=(g)=>{if(g.key===" ")g.preventDefault(),X();else if(g.key==="left"&&Y)g.preventDefault(),Y();else if(g.key==="x"&&Z.status==="running"&&z)g.preventDefault(),z()},J[4]=Z.status,J[5]=Y,J[6]=X,J[7]=z,J[8]=P;else P=J[8];let w=P,L;if(J[9]!==Z.prompt)L=VZ(Z.prompt,"plan"),J[9]=Z.prompt,J[10]=L;else L=J[10];let U=L,K=Z.prompt.length>300?Z.prompt.substring(0,297)+"…":Z.prompt,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,v=Z.selectedAgent?.agentType??"agent",D=Z.description||"Async agent",I;if(J[11]!==v||J[12]!==D)I=W(V,{children:[v," ›"," ",D]}),J[11]=v,J[12]=D,J[13]=I;else I=J[13];let y=I,B;if(J[14]!==Z.status)B=Z.status!=="running"&&W(V,{color:RZ(Z.status),children:[WZ(Z.status)," ",Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[14]=Z.status,J[15]=B;else B=J[15];let m;if(J[16]!==E)m=E!==void 0&&E>0&&W(o,{children:[" · ",x0(E)," tokens"]}),J[16]=E,J[17]=m;else m=J[17];let u;if(J[18]!==A)u=A!==void 0&&A>0&&W(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[18]=A,J[19]=u;else u=J[19];let S;if(J[20]!==F||J[21]!==m||J[22]!==u)S=W(V,{dimColor:!0,children:[F,m,u]}),J[20]=F,J[21]=m,J[22]=u,J[23]=S;else S=J[23];let x;if(J[24]!==S||J[25]!==B)x=W(V,{children:[B,S]}),J[24]=S,J[25]=B,J[26]=x;else x=J[26];let d=x,h;if(J[27]!==Z.status||J[28]!==Y||J[29]!==z)h=(g)=>g.pending?W(V,{children:["Press ",g.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"})]}),J[27]=Z.status,J[28]=Y,J[29]=z,J[30]=h;else h=J[30];let b;if(J[31]!==Z.progress||J[32]!==Z.status||J[33]!==G)b=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&W(C,{flexDirection:"column",children:[f(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((g,k)=>W(V,{dimColor:k<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[k===Z.progress.recentActivities.length-1?"› ":" ",k0(g,R,G)]},k))]}),J[31]=Z.progress,J[32]=Z.status,J[33]=G,J[34]=b;else b=J[34];let p;if(J[35]!==K||J[36]!==U)p=U?f(C,{marginTop:1,children:f(NZ,{addMargin:!1,planContent:U})}):W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,dimColor:!0,children:"Prompt"}),f(V,{wrap:"wrap",children:K})]}),J[35]=K,J[36]=U,J[37]=p;else p=J[37];let c;if(J[38]!==Z.error||J[39]!==Z.status)c=Z.status==="failed"&&Z.error&&W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,color:"error",children:"Error"}),f(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[38]=Z.error,J[39]=Z.status,J[40]=c;else c=J[40];let _;if(J[41]!==b||J[42]!==p||J[43]!==c)_=W(C,{flexDirection:"column",children:[b,p,c]}),J[41]=b,J[42]=p,J[43]=c,J[44]=_;else _=J[44];let j;if(J[45]!==X||J[46]!==d||J[47]!==h||J[48]!==_||J[49]!==y)j=f(n,{title:y,subtitle:d,onCancel:X,color:"background",inputGuide:h,children:_}),J[45]=X,J[46]=d,J[47]=h,J[48]=_,J[49]=y,J[50]=j;else j=J[50];let T;if(J[51]!==w||J[52]!==j)T=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:w,children:j}),J[51]=w,J[52]=j,J[53]=T;else T=J[53];return T}var HZ;var PZ=a(()=>{i0();f0();g0();UJ();FZ();h0();LZ();B0();I0();A0();rQ();wJ();MJ();$();HZ=J0(R0(),1)});function bJ(Q,J,Z,X){if(!Q)return`${J} found · ${Z} verified`;if(Q==="synthesizing"){let z=[`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.push("deduping"),z.join(" · ")}if(Q==="verifying"){let z=[`${J} found`,`${Z} verified`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return J>0?`${J} found`:"finding"}function yJ(Q){let J=n0.c(5),{text:Z,phase:X}=Q,z=X===void 0?0:X,Y;if(J[0]!==Z)Y=[...Z],J[0]=Z,J[1]=Y;else Y=J[1];let G;if(J[2]!==z||J[3]!==Y)G=f(o,{children:Y.map((q,R)=>f(V,{color:MZ(R+z),children:q},R))}),J[2]=z,J[3]=Y,J[4]=G;else G=J[4];return G}function EJ(Q,J,Z){let X=KJ.useRef(Q),z=KJ.useRef(J);if(Z||Q<X.current)X.current=Q;else if(Q>X.current&&J!==z.current)X.current+=1,z.current=J;return X.current}function $Q(Q){let J=n0.c(15),{session:Z}=Q,z=yZ().prefersReducedMotion??!1,Y=Z.reviewProgress,G=Z.status==="running",[,q]=wZ(G&&!z?UZ:null),R=Y?.bugsFound??0,F=Y?.bugsVerified??0,O=Y?.bugsRefuted??0,H=z||!G,P=EJ(R,q,H),w=EJ(F,q,H),L=EJ(O,q,H),U=Math.floor(q/(UZ*3))%7;if(Z.status==="completed"){let B;if(J[0]===Symbol.for("react.memo_cache_sentinel"))B=W(o,{children:[W(V,{color:"background",children:[w0," "]}),f(yJ,{text:"ultrareview",phase:0}),f(V,{dimColor:!0,children:" ready · shift+↓ to view"})]}),J[0]=B;else B=J[0];return B}if(Z.status==="failed"){let B;if(J[1]===Symbol.for("react.memo_cache_sentinel"))B=W(o,{children:[W(V,{color:"background",children:[w0," "]}),f(yJ,{text:"ultrareview",phase:0}),W(V,{color:"error",dimColor:!0,children:[" · ","error"]})]}),J[1]=B;else B=J[1];return B}let K;if(J[2]!==P||J[3]!==Y||J[4]!==L||J[5]!==w)K=!Y?"setting up":bJ(Y.stage,P,w,L),J[2]=P,J[3]=Y,J[4]=L,J[5]=w,J[6]=K;else K=J[6];let E=K,A;if(J[7]===Symbol.for("react.memo_cache_sentinel"))A=W(V,{color:"background",children:[z0," "]}),J[7]=A;else A=J[7];let v=G?U:0,D;if(J[8]!==v)D=f(yJ,{text:"ultrareview",phase:v}),J[8]=v,J[9]=D;else D=J[9];let I;if(J[10]!==E)I=W(V,{dimColor:!0,children:[" · ",E]}),J[10]=E,J[11]=I;else I=J[11];let y;if(J[12]!==D||J[13]!==I)y=W(o,{children:[A,D,I]}),J[12]=D,J[13]=I,J[14]=y;else y=J[14];return y}function S0(Q){let J=n0.c(11),{session:Z}=Q;if(Z.isRemoteReview){let q;if(J[0]!==Z)q=f($Q,{session:Z}),J[0]=Z,J[1]=q;else q=J[1];return q}if(Z.status==="completed"){let q;if(J[2]===Symbol.for("react.memo_cache_sentinel"))q=f(V,{bold:!0,color:"success",dimColor:!0,children:"done"}),J[2]=q;else q=J[2];return q}if(Z.status==="failed"){let q;if(J[3]===Symbol.for("react.memo_cache_sentinel"))q=f(V,{bold:!0,color:"error",dimColor:!0,children:"error"}),J[3]=q;else q=J[3];return q}if(!Z.todoList.length){let q;if(J[4]!==Z.status)q=W(V,{dimColor:!0,children:[Z.status,"…"]}),J[4]=Z.status,J[5]=q;else q=J[5];return q}let X;if(J[6]!==Z.todoList)X=M0(Z.todoList,oQ),J[6]=Z.todoList,J[7]=X;else X=J[7];let z=X,Y=Z.todoList.length,G;if(J[8]!==z||J[9]!==Y)G=W(V,{dimColor:!0,children:[z,"/",Y]}),J[8]=z,J[9]=Y,J[10]=G;else G=J[10];return G}function oQ(Q){return Q.status==="completed"}var n0,KJ,UZ=80;var AJ=a(()=>{m0();iQ();f0();CJ();lQ();$();n0=J0(R0(),1),KJ=J0(o0(),1)});function H0(Q){let J=BJ.c(4),{status:Z,label:X,suffix:z}=Q,Y=X??Z,G=Z==="completed"?"success":Z==="failed"?"error":Z==="killed"?"warning":void 0,q;if(J[0]!==G||J[1]!==Y||J[2]!==z)q=W(V,{color:G,dimColor:!0,children:["(",Y,z,")"]}),J[0]=G,J[1]=Y,J[2]=z,J[3]=q;else q=J[3];return q}function EZ(Q){let J=BJ.c(4),{shell:Z}=Q;switch(Z.status){case"completed":{let X;if(J[0]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"completed",label:"done"}),J[0]=X;else X=J[0];return X}case"failed":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"failed",label:"error"}),J[1]=X;else X=J[1];return X}case"killed":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"killed",label:"stopped"}),J[2]=X;else X=J[2];return X}case"running":case"pending":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=f(H0,{status:"running"}),J[3]=X;else X=J[3];return X}}}var BJ;var KZ=a(()=>{f0();$();BJ=J0(R0(),1)});function AZ(Q){let J=bZ.c(92),{task:Z,maxActivityWidth:X}=Q,z=X??40;switch(Z.type){case"local_bash":{let Y=Z.kind==="monitor"?Z.description:Z.command,G;if(J[0]!==z||J[1]!==Y)G=b0(Y,z,!0),J[0]=z,J[1]=Y,J[2]=G;else G=J[2];let q;if(J[3]!==Z)q=f(EZ,{shell:Z}),J[3]=Z,J[4]=q;else q=J[4];let R;if(J[5]!==G||J[6]!==q)R=W(V,{children:[G," ",q]}),J[5]=G,J[6]=q,J[7]=R;else R=J[7];return R}case"remote_agent":{if(Z.isRemoteReview){let P;if(J[8]!==Z)P=f(V,{children:f(S0,{session:Z})}),J[8]=Z,J[9]=P;else P=J[9];return P}let G=Z.status==="running"||Z.status==="pending"?z0:w0,q;if(J[10]!==G)q=W(V,{dimColor:!0,children:[G," "]}),J[10]=G,J[11]=q;else q=J[11];let R;if(J[12]!==z||J[13]!==Z.title)R=b0(Z.title,z,!0),J[12]=z,J[13]=Z.title,J[14]=R;else R=J[14];let F;if(J[15]===Symbol.for("react.memo_cache_sentinel"))F=f(V,{dimColor:!0,children:" · "}),J[15]=F;else F=J[15];let O;if(J[16]!==Z)O=f(S0,{session:Z}),J[16]=Z,J[17]=O;else O=J[17];let H;if(J[18]!==q||J[19]!==R||J[20]!==O)H=W(V,{children:[q,R,F,O]}),J[18]=q,J[19]=R,J[20]=O,J[21]=H;else H=J[21];return H}case"local_agent":{let Y;if(J[22]!==z||J[23]!==Z.description)Y=b0(Z.description,z,!0),J[22]=z,J[23]=Z.description,J[24]=Y;else Y=J[24];let G=Z.status==="completed"?"done":void 0,q=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[25]!==G||J[26]!==q||J[27]!==Z.status)R=f(H0,{status:Z.status,label:G,suffix:q}),J[25]=G,J[26]=q,J[27]=Z.status,J[28]=R;else R=J[28];let F;if(J[29]!==Y||J[30]!==R)F=W(V,{children:[Y," ",R]}),J[29]=Y,J[30]=R,J[31]=F;else F=J[31];return F}case"in_process_teammate":{let Y,G,q,R,F,O;if(J[32]!==z||J[33]!==Z){let w=s0(Z);G=V;let L;if(J[40]!==Z.identity.color)L=a0(Z.identity.color),J[40]=Z.identity.color,J[41]=L;else L=J[41];if(J[42]!==L||J[43]!==Z.identity.agentName)O=W(V,{color:L,children:["@",Z.identity.agentName]}),J[42]=L,J[43]=Z.identity.agentName,J[44]=O;else O=J[44];Y=V,q=!0,R=": ",F=b0(w,z,!0),J[32]=z,J[33]=Z,J[34]=Y,J[35]=G,J[36]=q,J[37]=R,J[38]=F,J[39]=O}else Y=J[34],G=J[35],q=J[36],R=J[37],F=J[38],O=J[39];let H;if(J[45]!==Y||J[46]!==q||J[47]!==R||J[48]!==F)H=W(Y,{dimColor:q,children:[R,F]}),J[45]=Y,J[46]=q,J[47]=R,J[48]=F,J[49]=H;else H=J[49];let P;if(J[50]!==G||J[51]!==O||J[52]!==H)P=W(G,{children:[O,H]}),J[50]=G,J[51]=O,J[52]=H,J[53]=P;else P=J[53];return P}case"local_workflow":{let Y=Z.workflowName??Z.summary??Z.description,G;if(J[54]!==z||J[55]!==Y)G=b0(Y,z,!0),J[54]=z,J[55]=Y,J[56]=G;else G=J[56];let q;if(J[57]!==Z.agentCount||J[58]!==Z.status)q=Z.status==="running"?`${Z.agentCount} ${Q0(Z.agentCount,"agent")}`:Z.status==="completed"?"done":void 0,J[57]=Z.agentCount,J[58]=Z.status,J[59]=q;else q=J[59];let R=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[60]!==q||J[61]!==R||J[62]!==Z.status)F=f(H0,{status:Z.status,label:q,suffix:R}),J[60]=q,J[61]=R,J[62]=Z.status,J[63]=F;else F=J[63];let O;if(J[64]!==G||J[65]!==F)O=W(V,{children:[G," ",F]}),J[64]=G,J[65]=F,J[66]=O;else O=J[66];return O}case"monitor_mcp":{let Y;if(J[67]!==z||J[68]!==Z.description)Y=b0(Z.description,z,!0),J[67]=z,J[68]=Z.description,J[69]=Y;else Y=J[69];let G=Z.status==="completed"?"done":void 0,q=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[70]!==G||J[71]!==q||J[72]!==Z.status)R=f(H0,{status:Z.status,label:G,suffix:q}),J[70]=G,J[71]=q,J[72]=Z.status,J[73]=R;else R=J[73];let F;if(J[74]!==Y||J[75]!==R)F=W(V,{children:[Y," ",R]}),J[74]=Y,J[75]=R,J[76]=F;else F=J[76];return F}case"dream":{let Y=Z.filesTouched.length,G;if(J[77]!==Y||J[78]!==Z.phase||J[79]!==Z.sessionsReviewing)G=Z.phase==="updating"&&Y>0?`${Y} ${Q0(Y,"file")}`:`${Z.sessionsReviewing} ${Q0(Z.sessionsReviewing,"session")}`,J[77]=Y,J[78]=Z.phase,J[79]=Z.sessionsReviewing,J[80]=G;else G=J[80];let q=G,R;if(J[81]!==q||J[82]!==Z.phase)R=W(V,{dimColor:!0,children:["· ",Z.phase," · ",q]}),J[81]=q,J[82]=Z.phase,J[83]=R;else R=J[83];let F=Z.status==="completed"?"done":void 0,O=Z.status==="completed"&&!Z.notified?", unread":void 0,H;if(J[84]!==F||J[85]!==O||J[86]!==Z.status)H=f(H0,{status:Z.status,label:F,suffix:O}),J[84]=F,J[85]=O,J[86]=Z.status,J[87]=H;else H=J[87];let P;if(J[88]!==R||J[89]!==H||J[90]!==Z.description)P=W(V,{children:[Z.description," ",R," ",H]}),J[88]=R,J[89]=H,J[90]=Z.description,J[91]=P;else P=J[91];return P}}}var bZ;var BZ=a(()=>{f0();h0();CZ();IJ();m0();AJ();KZ();MJ();$();bZ=J0(R0(),1)});function DZ(Q){let J=IZ.c(70),{task:Z,onDone:X,onBack:z,onKill:Y}=Q,G=F0(Z.startTime,Z.status==="running",1000,0),q;if(J[0]!==X)q={"confirm:yes":X},J[0]=X,J[1]=q;else q=J[1];let R;if(J[2]===Symbol.for("react.memo_cache_sentinel"))R={context:"Confirmation"},J[2]=R;else R=J[2];q0(q,R);let F;if(J[3]!==z||J[4]!==X||J[5]!==Y||J[6]!==Z.status)F=(b)=>{if(b.key===" ")b.preventDefault(),X();else if(b.key==="left"&&z)b.preventDefault(),z();else if(b.key==="x"&&Z.status==="running"&&Y)b.preventDefault(),Y()},J[3]=z,J[4]=X,J[5]=Y,J[6]=Z.status,J[7]=F;else F=J[7];let O=F,H,P,w,L,U,K,E,A,v,D,I,y,B,m,u,S;if(J[8]!==G||J[9]!==O||J[10]!==z||J[11]!==X||J[12]!==Y||J[13]!==Z.filesTouched.length||J[14]!==Z.sessionsReviewing||J[15]!==Z.status||J[16]!==Z.turns){let b=Z.turns.filter(sQ),p=b.slice(-nQ),c=b.length-p.length;w=C,E="column",A=0,v=!0,D=O,P=n,u="Memory consolidation";let _=Z.sessionsReviewing,j;if(J[33]!==Z.sessionsReviewing)j=Q0(Z.sessionsReviewing,"session"),J[33]=Z.sessionsReviewing,J[34]=j;else j=J[34];let T;if(J[35]!==Z.filesTouched.length)T=Z.filesTouched.length>0&&W(o,{children:[" ","· ",Z.filesTouched.length," ",Q0(Z.filesTouched.length,"file")," touched"]}),J[35]=Z.filesTouched.length,J[36]=T;else T=J[36];if(J[37]!==G||J[38]!==j||J[39]!==T||J[40]!==Z.sessionsReviewing)S=W(V,{dimColor:!0,children:[G," · reviewing ",_," ",j,T]}),J[37]=G,J[38]=j,J[39]=T,J[40]=Z.sessionsReviewing,J[41]=S;else S=J[41];if(L=X,U="background",J[42]!==z||J[43]!==Y||J[44]!==Z.status)K=(k)=>k.pending?W(V,{children:["Press ",k.keyName," again to exit"]}):W(Z0,{children:[z&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&Y&&f(l,{shortcut:"x",action:"stop"})]}),J[42]=z,J[43]=Y,J[44]=Z.status,J[45]=K;else K=J[45];H=C,I="column",y=1;let g;if(J[46]===Symbol.for("react.memo_cache_sentinel"))g=f(V,{bold:!0,children:"Status:"}),J[46]=g;else g=J[46];if(J[47]!==Z.status)B=W(V,{children:[g," ",Z.status==="running"?f(V,{color:"background",children:"running"}):Z.status==="completed"?f(V,{color:"success",children:Z.status}):f(V,{color:"error",children:Z.status})]}),J[47]=Z.status,J[48]=B;else B=J[48];m=p.length===0?f(V,{dimColor:!0,children:Z.status==="running"?"Starting…":"(no text output)"}):W(o,{children:[c>0&&W(V,{dimColor:!0,children:["(",c," earlier ",Q0(c,"turn"),")"]}),p.map(aQ)]}),J[8]=G,J[9]=O,J[10]=z,J[11]=X,J[12]=Y,J[13]=Z.filesTouched.length,J[14]=Z.sessionsReviewing,J[15]=Z.status,J[16]=Z.turns,J[17]=H,J[18]=P,J[19]=w,J[20]=L,J[21]=U,J[22]=K,J[23]=E,J[24]=A,J[25]=v,J[26]=D,J[27]=I,J[28]=y,J[29]=B,J[30]=m,J[31]=u,J[32]=S}else H=J[17],P=J[18],w=J[19],L=J[20],U=J[21],K=J[22],E=J[23],A=J[24],v=J[25],D=J[26],I=J[27],y=J[28],B=J[29],m=J[30],u=J[31],S=J[32];let x;if(J[49]!==H||J[50]!==I||J[51]!==y||J[52]!==B||J[53]!==m)x=W(H,{flexDirection:I,gap:y,children:[B,m]}),J[49]=H,J[50]=I,J[51]=y,J[52]=B,J[53]=m,J[54]=x;else x=J[54];let d;if(J[55]!==P||J[56]!==L||J[57]!==U||J[58]!==K||J[59]!==x||J[60]!==u||J[61]!==S)d=f(P,{title:u,subtitle:S,onCancel:L,color:U,inputGuide:K,children:x}),J[55]=P,J[56]=L,J[57]=U,J[58]=K,J[59]=x,J[60]=u,J[61]=S,J[62]=d;else d=J[62];let h;if(J[63]!==w||J[64]!==E||J[65]!==A||J[66]!==v||J[67]!==D||J[68]!==d)h=f(w,{flexDirection:E,tabIndex:A,autoFocus:v,onKeyDown:D,children:d}),J[63]=w,J[64]=E,J[65]=A,J[66]=v,J[67]=D,J[68]=d,J[69]=h;else h=J[69];return h}function aQ(Q,J){return W(C,{flexDirection:"column",children:[f(V,{wrap:"wrap",children:Q.text}),Q.toolUseCount>0&&W(V,{dimColor:!0,children:[" ","(",Q.toolUseCount," ",Q0(Q.toolUseCount,"tool"),")"]})]},J)}function sQ(Q){return Q.text!==""}var IZ,nQ=6;var vZ=a(()=>{i0();f0();g0();IJ();B0();I0();A0();$();IZ=J0(R0(),1)});function gZ(Q){let J=hZ.c(63),{teammate:Z,onDone:X,onKill:z,onBack:Y,onForeground:G}=Q,[q]=l0(),R;if(J[0]===Symbol.for("react.memo_cache_sentinel"))R=$0(r0()),J[0]=R;else R=J[0];let F=R,O=F0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),H;if(J[1]!==X)H={"confirm:yes":X},J[1]=X,J[2]=H;else H=J[2];let P;if(J[3]===Symbol.for("react.memo_cache_sentinel"))P={context:"Confirmation"},J[3]=P;else P=J[3];q0(H,P);let w;if(J[4]!==Y||J[5]!==X||J[6]!==G||J[7]!==z||J[8]!==Z.status)w=(M)=>{if(M.key===" ")M.preventDefault(),X();else if(M.key==="left"&&Y)M.preventDefault(),Y();else if(M.key==="x"&&Z.status==="running"&&z)M.preventDefault(),z();else if(M.key==="f"&&Z.status==="running"&&G)M.preventDefault(),G()},J[4]=Y,J[5]=X,J[6]=G,J[7]=z,J[8]=Z.status,J[9]=w;else w=J[9];let L=w,U;if(J[10]!==Z)U=s0(Z),J[10]=Z,J[11]=U;else U=J[11];let K=U,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,v;if(J[12]!==Z.prompt)v=y0(Z.prompt,300),J[12]=Z.prompt,J[13]=v;else v=J[13];let D=v,I;if(J[14]!==Z.identity.color)I=a0(Z.identity.color),J[14]=Z.identity.color,J[15]=I;else I=J[15];let y;if(J[16]!==I||J[17]!==Z.identity.agentName)y=W(V,{color:I,children:["@",Z.identity.agentName]}),J[16]=I,J[17]=Z.identity.agentName,J[18]=y;else y=J[18];let B;if(J[19]!==K)B=K&&W(V,{dimColor:!0,children:[" (",K,")"]}),J[19]=K,J[20]=B;else B=J[20];let m;if(J[21]!==y||J[22]!==B)m=W(V,{children:[y,B]}),J[21]=y,J[22]=B,J[23]=m;else m=J[23];let u=m,S;if(J[24]!==Z.status)S=Z.status!=="running"&&W(V,{color:Z.status==="completed"?"success":Z.status==="killed"?"warning":"error",children:[Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[24]=Z.status,J[25]=S;else S=J[25];let x;if(J[26]!==E)x=E!==void 0&&E>0&&W(o,{children:[" · ",x0(E)," tokens"]}),J[26]=E,J[27]=x;else x=J[27];let d;if(J[28]!==A)d=A!==void 0&&A>0&&W(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[28]=A,J[29]=d;else d=J[29];let h;if(J[30]!==O||J[31]!==x||J[32]!==d)h=W(V,{dimColor:!0,children:[O,x,d]}),J[30]=O,J[31]=x,J[32]=d,J[33]=h;else h=J[33];let b;if(J[34]!==S||J[35]!==h)b=W(V,{children:[S,h]}),J[34]=S,J[35]=h,J[36]=b;else b=J[36];let p=b,c;if(J[37]!==Y||J[38]!==G||J[39]!==z||J[40]!==Z.status)c=(M)=>M.pending?W(V,{children:["Press ",M.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"}),Z.status==="running"&&G&&f(l,{shortcut:"f",action:"foreground"})]}),J[37]=Y,J[38]=G,J[39]=z,J[40]=Z.status,J[41]=c;else c=J[41];let _;if(J[42]!==Z.progress||J[43]!==Z.status||J[44]!==q)_=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&W(C,{flexDirection:"column",children:[f(V,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((M,r)=>W(V,{dimColor:r<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[r===Z.progress.recentActivities.length-1?"› ":" ",k0(M,F,q)]},r))]}),J[42]=Z.progress,J[43]=Z.status,J[44]=q,J[45]=_;else _=J[45];let j;if(J[46]===Symbol.for("react.memo_cache_sentinel"))j=f(V,{bold:!0,dimColor:!0,children:"Prompt"}),J[46]=j;else j=J[46];let T;if(J[47]!==D)T=W(C,{flexDirection:"column",marginTop:1,children:[j,f(V,{wrap:"wrap",children:D})]}),J[47]=D,J[48]=T;else T=J[48];let g;if(J[49]!==Z.error||J[50]!==Z.status)g=Z.status==="failed"&&Z.error&&W(C,{flexDirection:"column",marginTop:1,children:[f(V,{bold:!0,color:"error",children:"Error"}),f(V,{color:"error",wrap:"wrap",children:Z.error})]}),J[49]=Z.error,J[50]=Z.status,J[51]=g;else g=J[51];let k;if(J[52]!==X||J[53]!==p||J[54]!==c||J[55]!==_||J[56]!==T||J[57]!==g||J[58]!==u)k=W(n,{title:u,subtitle:p,onCancel:X,color:"background",inputGuide:c,children:[_,T,g]}),J[52]=X,J[53]=p,J[54]=c,J[55]=_,J[56]=T,J[57]=g,J[58]=u,J[59]=k;else k=J[59];let N;if(J[60]!==L||J[61]!==k)N=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:L,children:k}),J[60]=L,J[61]=k,J[62]=N;else N=J[62];return N}var hZ;var SZ=a(()=>{i0();f0();g0();UJ();FZ();h0();CZ();B0();I0();A0();wJ();MJ();$();hZ=J0(R0(),1)});function YX(Q,J){if(Q===u0)return"Review the plan in Claude Code on the web";if(!J||typeof J!=="object")return Q;if(Q===dZ&&"questions"in J){let Z=J.questions;if(Array.isArray(Z)&&Z[0]&&typeof Z[0]==="object"){let X="question"in Z[0]&&typeof Z[0].question==="string"&&Z[0].question?Z[0].question:("header"in Z[0])&&typeof Z[0].header==="string"?Z[0].header:null;if(X){let z=X.replace(/\s+/g," ").trim();return`Answer in browser: ${y0(z,50)}`}}}for(let Z of Object.values(J))if(typeof Z==="string"&&Z.trim()){let X=Z.replace(/\s+/g," ").trim();return`${Q} ${y0(X,60)}`}return Q}function qX(Q){let J=ZJ.c(70),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,G=Z.status==="running"||Z.status==="pending",q=Z.ultraplanPhase,R=G?q?zX[q]:"running":Z.status,F=F0(Z.startTime,G,1000,0,Z.endTime),O=0,H=0,P=null;for(let X0 of Z.log){if(X0.type!=="assistant")continue;for(let e of X0.message.content){if(e.type!=="tool_use")continue;if(H++,P=e,e.name===TZ||e.name===uZ)O++}}let w=1+O,L;if(J[0]!==P)L=P?YX(P.name,P.input):null,J[0]=P,J[1]=L;else L=J[1];let U;if(J[2]!==H||J[3]!==w||J[4]!==L)U={agentsWorking:w,toolCalls:H,lastToolCall:L},J[2]=H,J[3]=w,J[4]=L,J[5]=U;else U=J[5];let{agentsWorking:K,toolCalls:E,lastToolCall:A}=U,v;if(J[6]!==Z.sessionId)v=_0(Z.sessionId),J[6]=Z.sessionId,J[7]=v;else v=J[7];let D=v,I;if(J[8]!==z||J[9]!==X)I=z??(()=>X("Remote session details dismissed",{display:"system"})),J[8]=z,J[9]=X,J[10]=I;else I=J[10];let y=I,[B,m]=O0.useState(!1);if(B){let X0;if(J[11]===Symbol.for("react.memo_cache_sentinel"))X0=()=>m(!1),J[11]=X0;else X0=J[11];let e;if(J[12]===Symbol.for("react.memo_cache_sentinel"))e=f(V,{dimColor:!0,children:"This will terminate the Claude Code on the web session."}),J[12]=e;else e=J[12];let C0;if(J[13]===Symbol.for("react.memo_cache_sentinel"))C0={label:"Terminate session",value:"stop"},J[13]=C0;else C0=J[13];let i;if(J[14]===Symbol.for("react.memo_cache_sentinel"))i=[C0,{label:"Back",value:"back"}],J[14]=i;else i=J[14];let L0;if(J[15]!==y||J[16]!==Y)L0=f(n,{title:"Stop ultraplan?",onCancel:X0,color:"background",children:W(C,{flexDirection:"column",gap:1,children:[e,f(j0,{options:i,onChange:(c0)=>{if(c0==="stop")Y?.(),y();else m(!1)}})]})}),J[15]=y,J[16]=Y,J[17]=L0;else L0=J[17];return L0}let u=q==="plan_ready"?w0:z0,S;if(J[18]!==u)S=W(V,{color:"background",children:[u," "]}),J[18]=u,J[19]=S;else S=J[19];let x;if(J[20]===Symbol.for("react.memo_cache_sentinel"))x=f(V,{bold:!0,children:"ultraplan"}),J[20]=x;else x=J[20];let d;if(J[21]!==F||J[22]!==R)d=W(V,{dimColor:!0,children:[" · ",F," · ",R]}),J[21]=F,J[22]=R,J[23]=d;else d=J[23];let h;if(J[24]!==S||J[25]!==d)h=W(V,{children:[S,x,d]}),J[24]=S,J[25]=d,J[26]=h;else h=J[26];let b;if(J[27]!==q)b=q==="plan_ready"&&W(V,{color:"success",children:[t0.tick," "]}),J[27]=q,J[28]=b;else b=J[28];let p;if(J[29]!==K)p=Q0(K,"agent"),J[29]=K,J[30]=p;else p=J[30];let c=q?fX[q]:"working",_;if(J[31]!==E)_=Q0(E,"call"),J[31]=E,J[32]=_;else _=J[32];let j;if(J[33]!==K||J[34]!==b||J[35]!==p||J[36]!==c||J[37]!==_||J[38]!==E)j=W(V,{children:[b,K," ",p," ",c," · ",E," tool"," ",_]}),J[33]=K,J[34]=b,J[35]=p,J[36]=c,J[37]=_,J[38]=E,J[39]=j;else j=J[39];let T;if(J[40]!==A)T=A&&f(V,{dimColor:!0,children:A}),J[40]=A,J[41]=T;else T=J[41];let g;if(J[42]!==D)g=f(V,{dimColor:!0,children:D}),J[42]=D,J[43]=g;else g=J[43];let k;if(J[44]!==D||J[45]!==g)k=f(JJ,{url:D,children:g}),J[44]=D,J[45]=g,J[46]=k;else k=J[46];let N;if(J[47]===Symbol.for("react.memo_cache_sentinel"))N={label:"Review in Claude Code on the web",value:"open"},J[47]=N;else N=J[47];let M;if(J[48]!==Y||J[49]!==G)M=Y&&G?[{label:"Stop ultraplan",value:"stop"}]:[],J[48]=Y,J[49]=G,J[50]=M;else M=J[50];let r;if(J[51]===Symbol.for("react.memo_cache_sentinel"))r={label:"Back",value:"back"},J[51]=r;else r=J[51];let s;if(J[52]!==M)s=[N,...M,r],J[52]=M,J[53]=s;else s=J[53];let Y0;if(J[54]!==y||J[55]!==X||J[56]!==D)Y0=(X0)=>{switch(X0){case"open":{DJ(D),X();return}case"stop":{m(!0);return}case"back":{y();return}}},J[54]=y,J[55]=X,J[56]=D,J[57]=Y0;else Y0=J[57];let V0;if(J[58]!==s||J[59]!==Y0)V0=f(j0,{options:s,onChange:Y0}),J[58]=s,J[59]=Y0,J[60]=V0;else V0=J[60];let N0;if(J[61]!==j||J[62]!==T||J[63]!==k||J[64]!==V0)N0=W(C,{flexDirection:"column",gap:1,children:[j,T,k,V0]}),J[61]=j,J[62]=T,J[63]=k,J[64]=V0,J[65]=N0;else N0=J[65];let K0;if(J[66]!==y||J[67]!==h||J[68]!==N0)K0=f(n,{title:h,onCancel:y,color:"background",children:N0}),J[66]=y,J[67]=h,J[68]=N0,J[69]=K0;else K0=J[69];return K0}function GX(Q){let J=ZJ.c(15),{stage:Z,completed:X,hasProgress:z}=Q,Y;if(J[0]!==Z)Y=Z?jZ.indexOf(Z):-1,J[0]=Z,J[1]=Y;else Y=J[1];let G=Y,q=!X&&!z,R;if(J[2]!==q)R=q?f(V,{color:"background",children:"Setup"}):f(V,{dimColor:!0,children:"Setup"}),J[2]=q,J[3]=R;else R=J[3];let F;if(J[4]===Symbol.for("react.memo_cache_sentinel"))F=f(V,{dimColor:!0,children:" → "}),J[4]=F;else F=J[4];let O;if(J[5]!==X||J[6]!==G||J[7]!==q)O=jZ.map((w,L)=>{let U=!X&&!q&&L===G;return W(O0.default.Fragment,{children:[L>0&&f(V,{dimColor:!0,children:" → "}),U?f(V,{color:"background",children:_Z[w]}):f(V,{dimColor:!0,children:_Z[w]})]},w)}),J[5]=X,J[6]=G,J[7]=q,J[8]=O;else O=J[8];let H;if(J[9]!==X)H=X&&f(V,{color:"success",children:" ✓"}),J[9]=X,J[10]=H;else H=J[10];let P;if(J[11]!==R||J[12]!==O||J[13]!==H)P=W(V,{children:[R,F,O,H]}),J[11]=R,J[12]=O,J[13]=H,J[14]=P;else P=J[14];return P}function VX(Q){let J=Q.reviewProgress;if(!J)return Q.status==="completed"?"done":"setting up";let Z=J.bugsVerified,X=J.bugsRefuted??0;if(Q.status==="completed"){let z=[`${Z} ${Q0(Z,"finding")}`];if(X>0)z.push(`${X} refuted`);return z.join(" · ")}return bJ(J.stage,J.bugsFound,Z,X)}function NX(Q){let J=ZJ.c(56),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,G=Z.status==="completed",q=Z.status==="running"||Z.status==="pending",[R,F]=O0.useState(!1),O=F0(Z.startTime,q,1000,0,Z.endTime),H;if(J[0]!==X)H=()=>X("Remote session details dismissed",{display:"system"}),J[0]=X,J[1]=H;else H=J[1];let P=H,w=z??P,L;if(J[2]!==Z.sessionId)L=_0(Z.sessionId),J[2]=Z.sessionId,J[3]=L;else L=J[3];let U=L,K=G?"ready":q?"running":Z.status;if(R){let k;if(J[4]===Symbol.for("react.memo_cache_sentinel"))k=()=>F(!1),J[4]=k;else k=J[4];let N;if(J[5]===Symbol.for("react.memo_cache_sentinel"))N=f(V,{dimColor:!0,children:"This archives the remote session and stops local tracking. The review will not complete and any findings so far are discarded."}),J[5]=N;else N=J[5];let M;if(J[6]===Symbol.for("react.memo_cache_sentinel"))M={label:"Stop ultrareview",value:"stop"},J[6]=M;else M=J[6];let r;if(J[7]===Symbol.for("react.memo_cache_sentinel"))r=[M,{label:"Back",value:"back"}],J[7]=r;else r=J[7];let s;if(J[8]!==w||J[9]!==Y)s=f(n,{title:"Stop ultrareview?",onCancel:k,color:"background",children:W(C,{flexDirection:"column",gap:1,children:[N,f(j0,{options:r,onChange:(Y0)=>{if(Y0==="stop")Y?.(),w();else F(!1)}})]})}),J[8]=w,J[9]=Y,J[10]=s;else s=J[10];return s}let E;if(J[11]!==G||J[12]!==Y||J[13]!==q)E=G?[{label:"Open in Claude Code on the web",value:"open"},{label:"Dismiss",value:"dismiss"}]:[{label:"Open in Claude Code on the web",value:"open"},...Y&&q?[{label:"Stop ultrareview",value:"stop"}]:[],{label:"Back",value:"back"}],J[11]=G,J[12]=Y,J[13]=q,J[14]=E;else E=J[14];let A=E,v;if(J[15]!==w||J[16]!==P||J[17]!==X||J[18]!==U)v=(k)=>{J:switch(k){case"open":{DJ(U),X();break J}case"stop":{F(!0);break J}case"back":{w();break J}case"dismiss":P()}},J[15]=w,J[16]=P,J[17]=X,J[18]=U,J[19]=v;else v=J[19];let D=v,I=G?w0:z0,y;if(J[20]!==I)y=W(V,{color:"background",children:[I," "]}),J[20]=I,J[21]=y;else y=J[21];let B;if(J[22]===Symbol.for("react.memo_cache_sentinel"))B=f(V,{bold:!0,children:"ultrareview"}),J[22]=B;else B=J[22];let m;if(J[23]!==O||J[24]!==K)m=W(V,{dimColor:!0,children:[" · ",O," · ",K]}),J[23]=O,J[24]=K,J[25]=m;else m=J[25];let u;if(J[26]!==y||J[27]!==m)u=W(V,{children:[y,B,m]}),J[26]=y,J[27]=m,J[28]=u;else u=J[28];let S=Z.reviewProgress?.stage,x=!!Z.reviewProgress,d;if(J[29]!==G||J[30]!==S||J[31]!==x)d=f(GX,{stage:S,completed:G,hasProgress:x}),J[29]=G,J[30]=S,J[31]=x,J[32]=d;else d=J[32];let h;if(J[33]!==Z)h=VX(Z),J[33]=Z,J[34]=h;else h=J[34];let b;if(J[35]!==h)b=f(V,{children:h}),J[35]=h,J[36]=b;else b=J[36];let p;if(J[37]!==U)p=f(V,{dimColor:!0,children:U}),J[37]=U,J[38]=p;else p=J[38];let c;if(J[39]!==U||J[40]!==p)c=f(JJ,{url:U,children:p}),J[39]=U,J[40]=p,J[41]=c;else c=J[41];let _;if(J[42]!==b||J[43]!==c)_=W(C,{flexDirection:"column",children:[b,c]}),J[42]=b,J[43]=c,J[44]=_;else _=J[44];let j;if(J[45]!==D||J[46]!==A)j=f(j0,{options:A,onChange:D}),J[45]=D,J[46]=A,J[47]=j;else j=J[47];let T;if(J[48]!==d||J[49]!==_||J[50]!==j)T=W(C,{flexDirection:"column",gap:1,children:[d,_,j]}),J[48]=d,J[49]=_,J[50]=j,J[51]=T;else T=J[51];let g;if(J[52]!==w||J[53]!==T||J[54]!==u)g=f(n,{title:u,onCancel:w,color:"background",inputGuide:WX,children:T}),J[52]=w,J[53]=T,J[54]=u,J[55]=g;else g=J[55];return g}function WX(Q){return Q.pending?W(V,{children:["Press ",Q.keyName," again to exit"]}):W(Z0,{children:[f(l,{shortcut:"Enter",action:"select"}),f(l,{shortcut:"Esc",action:"go back"})]})}function xZ({session:Q,toolUseContext:J,onDone:Z,onBack:X,onKill:z}){let[Y,G]=O0.useState(!1),[q,R]=O0.useState(null),F=O0.useMemo(()=>{if(Q.isUltraplan||Q.isRemoteReview)return[];return lZ(kZ(Q.log)).filter((U)=>U.type!=="progress").slice(-3)},[Q]);if(Q.isUltraplan)return f(qX,{session:Q,onDone:Z,onBack:X,onKill:z});if(Q.isRemoteReview)return f(NX,{session:Q,onDone:Z,onBack:X,onKill:z});let O=()=>Z("Remote session details dismissed",{display:"system"}),H=(U)=>{if(U.key===" ")U.preventDefault(),Z("Remote session details dismissed",{display:"system"});else if(U.key==="left"&&X)U.preventDefault(),X();else if(U.key==="t"&&!Y)U.preventDefault(),P();else if(U.key==="return")U.preventDefault(),O()};async function P(){G(!0),R(null);try{await pZ(Q.sessionId)}catch(U){R(v0(U))}finally{G(!1)}}let w=y0(Q.title,50),L=Q.status==="pending"?"starting":Q.status;return f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:H,children:W(n,{title:"Remote session details",onCancel:O,color:"background",inputGuide:(U)=>U.pending?W(V,{children:["Press ",U.keyName," again to exit"]}):W(Z0,{children:[X&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),!Y&&f(l,{shortcut:"t",action:"teleport"})]}),children:[W(C,{flexDirection:"column",children:[W(V,{children:[f(V,{bold:!0,children:"Status"}),":"," ",L==="running"||L==="starting"?f(V,{color:"background",children:L}):L==="completed"?f(V,{color:"success",children:L}):f(V,{color:"error",children:L})]}),W(V,{children:[f(V,{bold:!0,children:"Runtime"}),":"," ",e0((Q.endTime??Date.now())-Q.startTime)]}),W(V,{wrap:"truncate-end",children:[f(V,{bold:!0,children:"Title"}),": ",w]}),W(V,{children:[f(V,{bold:!0,children:"Progress"}),":"," ",f(S0,{session:Q})]}),W(V,{children:[f(V,{bold:!0,children:"Session URL"}),":"," ",f(JJ,{url:_0(Q.sessionId),children:f(V,{dimColor:!0,children:_0(Q.sessionId)})})]})]}),Q.log.length>0&&W(C,{flexDirection:"column",marginTop:1,children:[W(V,{children:[f(V,{bold:!0,children:"Recent messages"}),":"]}),f(C,{flexDirection:"column",height:10,overflowY:"hidden",children:F.map((U,K)=>f(mZ,{message:U,lookups:iZ,addMargin:K>0,tools:J.options.tools,commands:J.options.commands,verbose:J.options.verbose,inProgressToolUseIDs:new Set,progressMessagesForMessage:[],shouldAnimate:!1,shouldShowDot:!1,style:"condensed",isTranscriptMode:!1,isStatic:!0},K))}),f(C,{marginTop:1,children:W(V,{dimColor:!0,italic:!0,children:["Showing last ",F.length," of ",Q.log.length," ","messages"]})})]}),q&&f(C,{marginTop:1,children:W(V,{color:"error",children:["Teleport failed: ",q]})}),Y&&f(V,{color:"background",children:"Teleporting to session…"})]})})}var ZJ,O0,zX,fX,jZ,_Z;var rZ=a(()=>{cZ();m0();i0();f0();PJ();eQ();tQ();pJ();JX();aJ();h0();XX();LZ();IJ();WJ();QX();B0();I0();A0();ZX();AJ();$();ZJ=J0(R0(),1),O0=J0(o0(),1);zX={needs_input:"input required",plan_ready:"ready"},fX={needs_input:"waiting",plan_ready:"done"};jZ=["finding","verifying","synthesizing"],_Z={finding:"Find",verifying:"Verify",synthesizing:"Dedupe"}});async function sZ(Q){let J=aZ(Q.id);try{let Z=await $Z(J,HX);return{content:Z.content,bytesTotal:Z.bytesTotal}}catch{return{content:"",bytesTotal:0}}}function eZ(Q){let J=vJ.c(57),{shell:Z,onDone:X,onKillShell:z,onBack:Y}=Q,{columns:G}=QJ(),q;if(J[0]!==Z)q=()=>sZ(Z),J[0]=Z,J[1]=q;else q=J[1];let[R,F]=G0.useState(q),O=G0.useDeferredValue(R),H;if(J[2]!==Z)H=()=>{if(Z.status!=="running")return;let r=setInterval(OX,1000,F,Z);return()=>clearInterval(r)},J[2]=Z,J[3]=H;else H=J[3];let P;if(J[4]!==Z.id||J[5]!==Z.status)P=[Z.id,Z.status],J[4]=Z.id,J[5]=Z.status,J[6]=P;else P=J[6];G0.useEffect(H,P);let w;if(J[7]!==X)w=()=>X("Shell details dismissed",{display:"system"}),J[7]=X,J[8]=w;else w=J[8];let L=w,U;if(J[9]!==L)U={"confirm:yes":L},J[9]=L,J[10]=U;else U=J[10];let K;if(J[11]===Symbol.for("react.memo_cache_sentinel"))K={context:"Confirmation"},J[11]=K;else K=J[11];q0(U,K);let E;if(J[12]!==Y||J[13]!==X||J[14]!==z||J[15]!==Z.status)E=(r)=>{if(r.key===" ")r.preventDefault(),X("Shell details dismissed",{display:"system"});else if(r.key==="left"&&Y)r.preventDefault(),Y();else if(r.key==="x"&&Z.status==="running"&&z)r.preventDefault(),z()},J[12]=Y,J[13]=X,J[14]=z,J[15]=Z.status,J[16]=E;else E=J[16];let A=E,v=Z.kind==="monitor",D;if(J[17]!==Z.command)D=y0(Z.command,280),J[17]=Z.command,J[18]=D;else D=J[18];let I=D,y=v?"Monitor details":"Shell details",B;if(J[19]!==Y||J[20]!==z||J[21]!==Z.status)B=(r)=>r.pending?W(V,{children:["Press ",r.keyName," again to exit"]}):W(Z0,{children:[Y&&f(l,{shortcut:"←",action:"go back"}),f(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&f(l,{shortcut:"x",action:"stop"})]}),J[19]=Y,J[20]=z,J[21]=Z.status,J[22]=B;else B=J[22];let m;if(J[23]===Symbol.for("react.memo_cache_sentinel"))m=f(V,{bold:!0,children:"Status:"}),J[23]=m;else m=J[23];let u;if(J[24]!==Z.result||J[25]!==Z.status)u=W(V,{children:[m," ",Z.status==="running"?W(V,{color:"background",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):Z.status==="completed"?W(V,{color:"success",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):W(V,{color:"error",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]})]}),J[24]=Z.result,J[25]=Z.status,J[26]=u;else u=J[26];let S;if(J[27]===Symbol.for("react.memo_cache_sentinel"))S=f(V,{bold:!0,children:"Runtime:"}),J[27]=S;else S=J[27];let x;if(J[28]!==Z.endTime)x=Z.endTime??Date.now(),J[28]=Z.endTime,J[29]=x;else x=J[29];let d=x-Z.startTime,h;if(J[30]!==d)h=e0(d),J[30]=d,J[31]=h;else h=J[31];let b;if(J[32]!==h)b=W(V,{children:[S," ",h]}),J[32]=h,J[33]=b;else b=J[33];let p=v?"Script:":"Command:",c;if(J[34]!==p)c=f(V,{bold:!0,children:p}),J[34]=p,J[35]=c;else c=J[35];let _;if(J[36]!==I||J[37]!==c)_=W(V,{wrap:"wrap",children:[c," ",I]}),J[36]=I,J[37]=c,J[38]=_;else _=J[38];let j;if(J[39]!==u||J[40]!==b||J[41]!==_)j=W(C,{flexDirection:"column",children:[u,b,_]}),J[39]=u,J[40]=b,J[41]=_,J[42]=j;else j=J[42];let T;if(J[43]===Symbol.for("react.memo_cache_sentinel"))T=f(V,{bold:!0,children:"Output:"}),J[43]=T;else T=J[43];let g;if(J[44]===Symbol.for("react.memo_cache_sentinel"))g=f(V,{dimColor:!0,children:"Loading output…"}),J[44]=g;else g=J[44];let k;if(J[45]!==G||J[46]!==O)k=W(C,{flexDirection:"column",children:[T,f(G0.Suspense,{fallback:g,children:f(PX,{outputPromise:O,columns:G})})]}),J[45]=G,J[46]=O,J[47]=k;else k=J[47];let N;if(J[48]!==L||J[49]!==B||J[50]!==j||J[51]!==k||J[52]!==y)N=W(n,{title:y,onCancel:L,color:"background",inputGuide:B,children:[j,k]}),J[48]=L,J[49]=B,J[50]=j,J[51]=k,J[52]=y,J[53]=N;else N=J[53];let M;if(J[54]!==A||J[55]!==N)M=f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:A,children:N}),J[54]=A,J[55]=N,J[56]=M;else M=J[56];return M}function OX(Q,J){return Q(sZ(J))}function PX(Q){let J=vJ.c(19),{outputPromise:Z,columns:X}=Q,{content:z,bytesTotal:Y}=G0.use(Z);if(!z){let U;if(J[0]===Symbol.for("react.memo_cache_sentinel"))U=f(V,{dimColor:!0,children:"No output available"}),J[0]=U;else U=J[0];return U}let G,q;if(J[1]!==Y||J[2]!==z){let U=[],K=z.length;for(let E=0;E<10&&K>0;E++){let A=z.lastIndexOf(`
|
|
17
|
-
`,K-1);U.push(A+1),K=A}U.reverse(),G=Y>z.length,q=[];for(let E=0;E<U.length;E++){let A=U[E],v=E<U.length-1?U[E+1]-1:z.length,D=z.slice(A,v);if(D)q.push(D)}J[1]=Y,J[2]=z,J[3]=G,J[4]=q}else G=J[3],q=J[4];let R=X-6,F;if(J[5]!==q)F=q.map(LX),J[5]=q,J[6]=F;else F=J[6];let O;if(J[7]!==R||J[8]!==F)O=f(C,{borderStyle:"round",paddingX:1,flexDirection:"column",height:12,maxWidth:R,children:F}),J[7]=R,J[8]=F,J[9]=O;else O=J[9];let H=`Showing ${q.length} lines`,P;if(J[10]!==Y||J[11]!==G)P=G?` of ${oZ(Y)}`:"",J[10]=Y,J[11]=G,J[12]=P;else P=J[12];let w;if(J[13]!==H||J[14]!==P)w=W(V,{dimColor:!0,italic:!0,children:[H,P]}),J[13]=H,J[14]=P,J[15]=w;else w=J[15];let L;if(J[16]!==O||J[17]!==w)L=W(o,{children:[O,w]}),J[16]=O,J[17]=w,J[18]=L;else L=J[18];return L}function LX(Q,J){return f(V,{wrap:"truncate-end",children:Q},J)}var vJ,G0,HX=8192;var tZ=a(()=>{nZ();f0();g0();h0();RX();FX();B0();I0();A0();$();vJ=J0(R0(),1),G0=J0(o0(),1)});var JQ={};$J(JQ,{default:()=>wX});var UX=()=>null,wX;var ZQ=a(()=>{wX=UX});function jX(Q,J){return Object.values(Q??{}).filter(fJ).filter((X)=>!(X.type==="local_agent"&&X.id===J))}function Sf({onDone:Q,toolUseContext:J,initialDetailTaskId:Z}){let X=zJ((N)=>N.tasks),z=zJ((N)=>N.foregroundedTaskId),Y=zJ((N)=>N.expandedView)==="teammates",G=WQ(),q=GQ("chat:killAgents","Chat","ctrl+x ctrl+k"),R=X,F=P0.useRef(!1),[O,H]=P0.useState(()=>{if(Z)return F.current=!0,{mode:"detail",itemId:Z};let N=jX(R,z);if(N.length===1)return F.current=!0,{mode:"detail",itemId:N[0].id};return{mode:"list"}}),[P,w]=P0.useState(0);OQ("background-tasks-dialog");let{bashTasks:L,remoteSessions:U,agentTasks:K,teammateTasks:E,workflowTasks:A,mcpMonitors:v,dreamTasks:D,allSelectableItems:I}=P0.useMemo(()=>{let r=Object.values(R??{}).filter(fJ).map(_X).sort((i,L0)=>{let c0=i.status,jJ=L0.status;if(c0==="running"&&jJ!=="running")return-1;if(c0!=="running"&&jJ==="running")return 1;let PQ="task"in i?i.task.startTime:0;return("task"in L0?L0.task.startTime:0)-PQ}),s=r.filter((i)=>i.type==="local_bash"),Y0=r.filter((i)=>i.type==="remote_agent"),V0=r.filter((i)=>i.type==="local_agent"&&i.id!==z),N0=r.filter((i)=>i.type==="local_workflow"),K0=r.filter((i)=>i.type==="monitor_mcp"),X0=r.filter((i)=>i.type==="dream"),e=Y?[]:r.filter((i)=>i.type==="in_process_teammate"),C0=e.length>0?[{id:"__leader__",type:"leader",label:`@${hJ}`,status:"running"}]:[];return{bashTasks:s,remoteSessions:Y0,agentTasks:V0,workflowTasks:N0,mcpMonitors:K0,dreamTasks:X0,teammateTasks:[...C0,...e],allSelectableItems:[...C0,...e,...s,...K0,...Y0,...V0,...N0,...X0]}},[R,z,Y]),y=I[P]??null;q0({"confirm:previous":()=>w((N)=>Math.max(0,N-1)),"confirm:next":()=>w((N)=>Math.min(I.length-1,N+1)),"confirm:yes":()=>{let N=I[P];if(N)if(N.type==="leader")VJ(G),Q("Viewing leader",{display:"system"});else H({mode:"detail",itemId:N.id})}},{context:"Confirmation",isActive:O.mode==="list"});let B=(N)=>{if(O.mode!=="list")return;if(N.key==="left"){N.preventDefault(),Q("Background tasks dialog dismissed",{display:"system"});return}let M=I[P];if(!M)return;if(N.key==="x"){if(N.preventDefault(),M.type==="local_bash"&&M.status==="running")m(M.id);else if(M.type==="local_agent"&&M.status==="running")u(M.id);else if(M.type==="in_process_teammate"&&M.status==="running")S(M.id);else if(M.type==="local_workflow"&&M.status==="running"&&XJ)XJ(M.id,G);else if(M.type==="monitor_mcp"&&M.status==="running"&&YJ)YJ(M.id,G);else if(M.type==="dream"&&M.status==="running")x(M.id);else if(M.type==="remote_agent"&&M.status==="running")if(M.task.isUltraplan)LJ(M.id,M.task.sessionId,G);else d(M.id)}if(N.key==="f"){if(M.type==="in_process_teammate"&&M.status==="running")N.preventDefault(),GJ(M.id,G),Q("Viewing teammate",{display:"system"});else if(M.type==="leader")N.preventDefault(),VJ(G),Q("Viewing leader",{display:"system"})}};async function m(N){await VQ.kill(N,G)}async function u(N){await HQ.kill(N,G)}async function S(N){await RQ.kill(N,G)}async function x(N){await FQ.kill(N,G)}async function d(N){await p0.kill(N,G)}let h=NQ(Q);P0.useEffect(()=>{if(O.mode!=="list"){let M=(R??{})[O.itemId];if(!M||M.type!=="local_workflow"&&!fJ(M))if(F.current)h("Background tasks dialog dismissed",{display:"system"});else H({mode:"list"})}let N=I.length;if(P>=N&&N>0)w(N-1)},[O,R,P,I,h]);let b=()=>{if(F.current&&I.length<=1)Q("Background tasks dialog dismissed",{display:"system"});else F.current=!1,H({mode:"list"})};if(O.mode!=="list"&&R){let N=R[O.itemId];if(!N)return null;switch(N.type){case"local_bash":return f(eZ,{shell:N,onDone:Q,onKillShell:()=>void m(N.id),onBack:b},`shell-${N.id}`);case"local_agent":return f(OZ,{agent:N,onDone:Q,onKillAgent:()=>void u(N.id),onBack:b},`agent-${N.id}`);case"remote_agent":return f(xZ,{session:N,onDone:Q,toolUseContext:J,onBack:b,onKill:N.status!=="running"?void 0:N.isUltraplan?()=>void LJ(N.id,N.sessionId,G):()=>void d(N.id)},`session-${N.id}`);case"in_process_teammate":return f(gZ,{teammate:N,onDone:Q,onKill:N.status==="running"?()=>void S(N.id):void 0,onBack:b,onForeground:N.status==="running"?()=>{GJ(N.id,G),Q("Viewing teammate",{display:"system"})}:void 0},`teammate-${N.id}`);case"local_workflow":if(!QQ)return null;return f(QQ,{workflow:N,onDone:Q,onKill:N.status==="running"&&XJ?()=>XJ(N.id,G):void 0,onSkipAgent:N.status==="running"&&XQ?(M)=>XQ(N.id,M,G):void 0,onRetryAgent:N.status==="running"&&YQ?(M)=>YQ(N.id,M,G):void 0,onBack:b},`workflow-${N.id}`);case"monitor_mcp":if(!zQ)return null;return f(zQ,{task:N,onKill:N.status==="running"&&YJ?()=>YJ(N.id,G):void 0,onBack:b},`monitor-mcp-${N.id}`);case"dream":return f(DZ,{task:N,onDone:()=>Q("Background tasks dialog dismissed",{display:"system"}),onBack:b,onKill:N.status==="running"?()=>void x(N.id):void 0},`dream-${N.id}`)}}let p=M0(L,(N)=>N.status==="running"),c=M0(U,(N)=>N.status==="running"||N.status==="pending")+M0(K,(N)=>N.status==="running"),_=M0(E,(N)=>N.status==="running"),j=fQ([..._>0?[W(V,{children:[_," ",_!==1?"agents":"agent"]},"teammates")]:[],...p>0?[W(V,{children:[p," ",p!==1?"active shells":"active shell"]},"shells")]:[],...c>0?[W(V,{children:[c," ",c!==1?"active agents":"active agent"]},"agents")]:[]],(N)=>f(V,{children:" · "},`separator-${N}`)),T=[f(l,{shortcut:"↑/↓",action:"select"},"upDown"),f(l,{shortcut:"Enter",action:"view"},"enter"),...y?.type==="in_process_teammate"&&y.status==="running"?[f(l,{shortcut:"f",action:"foreground"},"foreground")]:[],...(y?.type==="local_bash"||y?.type==="local_agent"||y?.type==="in_process_teammate"||y?.type==="local_workflow"||y?.type==="monitor_mcp"||y?.type==="dream"||y?.type==="remote_agent")&&y.status==="running"?[f(l,{shortcut:"x",action:"stop"},"kill")]:[],...K.some((N)=>N.status==="running")?[f(l,{shortcut:q,action:"stop all agents"},"kill-all")]:[],f(l,{shortcut:"←/Esc",action:"close"},"esc")],g=()=>Q("Background tasks dialog dismissed",{display:"system"});function k(N){if(N.pending)return W(V,{children:["Press ",N.keyName," again to exit"]});return f(Z0,{children:T})}return f(C,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:B,children:f(n,{title:"Background tasks",subtitle:f(o,{children:j}),onCancel:g,color:"background",inputGuide:k,children:I.length===0?f(V,{dimColor:!0,children:"No tasks currently running"}):W(C,{flexDirection:"column",children:[E.length>0&&W(C,{flexDirection:"column",children:[(L.length>0||U.length>0||K.length>0)&&W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Agents"]})," (",M0(E,(N)=>N.type!=="leader"),")"]}),f(C,{flexDirection:"column",children:f(cX,{teammateTasks:E,currentSelectionId:y?.id})})]}),L.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0?1:0,children:[(E.length>0||U.length>0||K.length>0)&&W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Shells"]})," (",L.length,")"]}),f(C,{flexDirection:"column",children:L.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),v.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Monitors"]})," (",v.length,")"]}),f(C,{flexDirection:"column",children:v.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),U.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Remote agents"]})," (",U.length,")"]}),f(C,{flexDirection:"column",children:U.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),K.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Local agents"]})," (",K.length,")"]}),f(C,{flexDirection:"column",children:K.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),A.length>0&&W(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0||K.length>0?1:0,children:[W(V,{dimColor:!0,children:[W(V,{bold:!0,children:[" ","Workflows"]})," (",A.length,")"]}),f(C,{flexDirection:"column",children:A.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})]}),D.length>0&&f(C,{flexDirection:"column",marginTop:E.length>0||L.length>0||v.length>0||U.length>0||K.length>0||A.length>0?1:0,children:f(C,{flexDirection:"column",children:D.map((N)=>f(E0,{item:N,isSelected:N.id===y?.id},N.id))})})]})})})}function _X(Q){switch(Q.type){case"local_bash":return{id:Q.id,type:"local_bash",label:Q.kind==="monitor"?Q.description:Q.command,status:Q.status,task:Q};case"remote_agent":return{id:Q.id,type:"remote_agent",label:Q.title,status:Q.status,task:Q};case"local_agent":return{id:Q.id,type:"local_agent",label:Q.description,status:Q.status,task:Q};case"in_process_teammate":return{id:Q.id,type:"in_process_teammate",label:`@${Q.identity.agentName}`,status:Q.status,task:Q};case"local_workflow":return{id:Q.id,type:"local_workflow",label:Q.summary??Q.description,status:Q.status,task:Q};case"monitor_mcp":return{id:Q.id,type:"monitor_mcp",label:Q.description,status:Q.status,task:Q};case"dream":return{id:Q.id,type:"dream",label:Q.description,status:Q.status,task:Q}}}function E0(Q){let J=gJ.c(14),{item:Z,isSelected:X}=Q,{columns:z}=QJ(),Y=Math.max(30,z-26),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=qQ(),J[0]=G;else G=J[0];let q=G,R=q&&X,F=X?t0.pointer+" ":" ",O;if(J[1]!==R||J[2]!==F)O=f(V,{dimColor:R,children:F}),J[1]=R,J[2]=F,J[3]=O;else O=J[3];let H=X&&!q?"suggestion":void 0,P;if(J[4]!==Z.task||J[5]!==Z.type||J[6]!==Y)P=Z.type==="leader"?W(V,{children:["@",hJ]}):f(AZ,{task:Z.task,maxActivityWidth:Y}),J[4]=Z.task,J[5]=Z.type,J[6]=Y,J[7]=P;else P=J[7];let w;if(J[8]!==H||J[9]!==P)w=f(V,{color:H,children:P}),J[8]=H,J[9]=P,J[10]=w;else w=J[10];let L;if(J[11]!==O||J[12]!==w)L=W(C,{flexDirection:"row",children:[O,w]}),J[11]=O,J[12]=w,J[13]=L;else L=J[13];return L}function cX(Q){let J=gJ.c(3),{teammateTasks:Z,currentSelectionId:X}=Q,z;if(J[0]!==X||J[1]!==Z){let Y=Z.filter(uX),G=Z.filter(TX),q=new Map;for(let F of G){let O=F.task.identity.teamName,H=q.get(O);if(H)H.push(F);else q.set(O,[F])}let R=[...q.entries()];z=f(o,{children:R.map((F)=>{let[O,H]=F,P=H.length+Y.length;return W(C,{flexDirection:"column",children:[W(V,{dimColor:!0,children:[" ","Team: ",O," (",P,")"]}),Y.map((w)=>f(E0,{item:w,isSelected:w.id===X},`${w.id}-${O}`)),H.map((w)=>f(E0,{item:w,isSelected:w.id===X},w.id))]},O)})}),J[0]=X,J[1]=Z,J[2]=z}else z=J[2];return z}function TX(Q){return Q.type==="in_process_teammate"}function uX(Q){return Q.type==="leader"}var gJ,P0,QQ=null,SJ=null,XJ,XQ,YQ,SX,YJ,zQ;var dX=a(()=>{cZ();MX();CX();nZ();bX();TJ();vX();AX();hX();KX();PJ();BX();CJ();yX();qZ();gX();f0();g0();EX();CJ();B0();I0();A0();PZ();BZ();vZ();SZ();rZ();tZ();$();gJ=J0(R0(),1),P0=J0(o0(),1),XJ=SJ?.killWorkflowTask??null,XQ=SJ?.skipWorkflowAgent??null,YQ=SJ?.retryWorkflowAgent??null,SX=(DX(),FJ(IX)),YJ=SX?.killMonitorMcp??null,zQ=(ZQ(),FJ(JQ)).MonitorMcpDetailDialog});
|
|
18
|
-
export{GJ as rd,VJ as sd,xX as td,TJ as ud,LJ as vd,pQ as wd,qZ as xd,Sf as yd,dX as zd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{DN as R,Gk as W,Jk as P,Oi as Q,Pi as I,WM as Y}from"./cli-0.5.9-k9yedz53.mjs";import{vca as B,wca as f}from"./cli-0.5.9-5vdqnecb.mjs";import{Dea as F,gea as H,hea as J}from"./cli-0.5.9-31f5vjyq.mjs";import{ama as $,jia as v}from"./cli-0.5.9-3bsjckc3.mjs";import{Lna as Z}from"./cli-0.5.9-ysvsqcpa.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();F();I();f();R();P()});
|
|
2
|
-
export{S as Dd,V as Ed,X as Fd,r as Gd,w as Hd,T as Id,G as Jd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{mZ as v,oZ as D}from"./cli-0.5.9-krvpcgvw.mjs";import{Mna as B}from"./cli-0.5.9-ysvsqcpa.mjs";D();var w,z;function N(g,q){w=g,z=q}async function O(g,q,F,G){let H=w??import("./App-0.5.9-zsap2q4b.mjs"),J=z??import("./REPL-0.5.9-fn63chv9.mjs");w=void 0,z=void 0;let[{App:K},{REPL:M}]=await Promise.all([H,J]);await G(g,v(K,{...q,children:v(M,{...F})}))}
|
|
2
|
-
export{N as xb,O as yb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Kna as Q,Lna as U}from"./cli-0.5.9-ysvsqcpa.mjs";var w={};Q(w,{default:()=>x,createSupportsColor:()=>K});import M from"node:process";import V from"node:os";import O from"node:tty";function z(q,B=globalThis.Deno?globalThis.Deno.args:M.argv){let D=q.startsWith("-")?"":q.length===1?"-":"--",E=B.indexOf(D+q),G=B.indexOf("--");return E!==-1&&(G===-1||E<G)}function X(){if(!("FORCE_COLOR"in j))return;if(j.FORCE_COLOR==="true")return 1;if(j.FORCE_COLOR==="false")return 0;if(j.FORCE_COLOR.length===0)return 1;let q=Math.min(Number.parseInt(j.FORCE_COLOR,10),3);if(![0,1,2,3].includes(q))return;return q}function Z(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function $(q,{streamIsTTY:B,sniffFlags:D=!0}={}){let E=X();if(E!==void 0)H=E;let G=D?H:E;if(G===0)return 0;if(D){if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2}if("TF_BUILD"in j&&"AGENT_NAME"in j)return 1;if(q&&!B&&G===void 0)return 0;let J=G||0;if(j.TERM==="dumb")return J;if(M.platform==="win32"){let A=V.release().split(".");if(Number(A[0])>=10&&Number(A[2])>=10586)return Number(A[2])>=14931?3:2;return 1}if("CI"in j){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((A)=>(A in j)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((A)=>(A in j))||j.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in j)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(j.TEAMCITY_VERSION)?1:0;if(j.COLORTERM==="truecolor")return 3;if(j.TERM==="xterm-kitty")return 3;if(j.TERM==="xterm-ghostty")return 3;if(j.TERM==="wezterm")return 3;if("TERM_PROGRAM"in j){let A=Number.parseInt((j.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(j.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(j.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(j.TERM))return 1;if("COLORTERM"in j)return 1;return J}function K(q,B={}){let D=$(q,{streamIsTTY:q&&q.isTTY,...B});return Z(D)}var j,H,b,x;var L=U(()=>{({env:j}=M);if(z("no-color")||z("no-colors")||z("color=false")||z("color=never"))H=0;else if(z("color")||z("colors")||z("color=true")||z("color=always"))H=1;b={stdout:K({isTTY:O.isatty(1)}),stderr:K({isTTY:O.isatty(2)})},x=b});
|
|
2
|
-
export{K as sna,w as tna,L as una};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ih as a,jh as l}from"./cli-0.5.9-3s1c44tz.mjs";import{kh as m,lh as c}from"./cli-0.5.9-gbq794tt.mjs";import{mZ as e,oZ as n}from"./cli-0.5.9-krvpcgvw.mjs";import{Lna as s}from"./cli-0.5.9-ysvsqcpa.mjs";async function f(o,r){let t=await m();if(t.type==="message")return o(t.value),null;return e(a,{startingMessage:"Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.",onDone:(i)=>{r.onChangeAPIKey(),o(i?"Login successful":"Login interrupted")}})}var g=s(()=>{l();c();n()});
|
|
2
|
-
export{f as gh,g as hh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{mh as R,oh as y,ph as v}from"./cli-0.5.9-bwdsfdf6.mjs";import{JX as E,LV as c,eX as K}from"./cli-0.5.9-qexy3mqr.mjs";import{lZ as O,mZ as N,nZ as M,oZ as U}from"./cli-0.5.9-krvpcgvw.mjs";import{pZ as G}from"./cli-0.5.9-bp09b2xm.mjs";import{Raa as b,xaa as L}from"./cli-0.5.9-0b1wx67c.mjs";import{Dca as Z,Pca as W}from"./cli-0.5.9-5vdqnecb.mjs";import{Qea as p}from"./cli-0.5.9-4s8nynfd.mjs";import{Hna as F,Lna as j}from"./cli-0.5.9-ysvsqcpa.mjs";function f(){let q=R();if(!q||!q.available||q.granted)return!1;return y(q)!==null}function r(){if(!f())return!1;let q=L();if(q.hasVisitedExtraUsage)return!1;if((q.overageCreditUpsellSeenCount??0)>=T)return!1;return!0}function C(q){return`${q} in extra usage for third-party apps · /extra-usage`}function w(q){return`${q} in extra usage`}function n(q){let k=S.c(8),{maxWidth:z,twoLine:P}=q,Q,H;if(k[0]!==z||k[1]!==P){H=Symbol.for("react.early_return_sentinel");k:{let A=R();if(!A){H=null;break k}let V=y(A);if(!V){H=null;break k}if(P){let I=w(V),J;if(k[4]!==z)J=z?Z(_,z):_,k[4]=z,k[5]=J;else J=k[5];let Y;if(k[6]!==J)Y=N(K,{dimColor:!0,children:J}),k[6]=J,k[7]=Y;else Y=k[7];H=M(O,{children:[N(K,{color:"claude",children:z?Z(I,z):I}),Y]});break k}let B=C(V),X=z?Z(B,z):B,D=Math.min(w(V).length,X.length);Q=M(K,{dimColor:!0,children:[N(K,{color:"claude",children:X.slice(0,D)}),X.slice(D)]})}k[0]=z,k[1]=P,k[2]=Q,k[3]=H}else Q=k[2],H=k[3];if(H!==Symbol.for("react.early_return_sentinel"))return H;return Q}var S,$,T=3,_="On us. Works on third-party apps · /extra-usage";var l=j(()=>{E();p();v();b();W();U();S=F(c(),1),$=F(G(),1)});
|
|
2
|
-
export{f as Mf,r as Nf,n as Of,l as Pf};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{Qg as d,Rg as Vq}from"./cli-0.5.9-5vj7cvdr.mjs";import{PP as Oq,hO as a,jO as yq,nP as l}from"./cli-0.5.9-k9yedz53.mjs";import{JX as Gq,LV as Zq,cX as T,eX as R,yX as $}from"./cli-0.5.9-qexy3mqr.mjs";import{AY as t,CY as v,FY as e}from"./cli-0.5.9-ywc7arzn.mjs";import{mZ as P,nZ as N,oZ as S}from"./cli-0.5.9-krvpcgvw.mjs";import{pZ as Yq}from"./cli-0.5.9-bp09b2xm.mjs";import{MZ as u,NZ as Aq}from"./cli-0.5.9-w1g3tgzh.mjs";import{B6 as G,C8 as s,D6 as o,g8 as j}from"./cli-0.5.9-0b1wx67c.mjs";import{$da as r,_da as w}from"./cli-0.5.9-31f5vjyq.mjs";import{Qfa as L,Tfa as n}from"./cli-0.5.9-ek649arf.mjs";import{iga as c,pga as Xq}from"./cli-0.5.9-yazhwsgb.mjs";import{ama as i,jia as f}from"./cli-0.5.9-3bsjckc3.mjs";import{Hna as I,Lna as h}from"./cli-0.5.9-ysvsqcpa.mjs";import{readdir as qq}from"fs/promises";import{join as zq}from"path";function _(){let H=[process.argv[1]||"",process.execPath||""],q=["/build-ant/","/build-ant-native/","/build-external/","/build-external-native/"];return H.some((z)=>q.some((Q)=>z.includes(Q)))}function Jq(H){let q=_()?"claude-dev":"claude",z=new URL(`${q}://resume`);return z.searchParams.set("session",H),z.searchParams.set("cwd",w()),z.toString()}async function g(){if(_())return!0;let H=process.platform;if(H==="darwin")return j("/Applications/Claude.app");else if(H==="linux"){let{code:q,stdout:z}=await G("xdg-mime",["query","default","x-scheme-handler/claude"]);return q===0&&z.trim().length>0}else if(H==="win32"){let{code:q}=await G("reg",["query","HKEY_CLASSES_ROOT\\claude","/ve"]);return q===0}return!1}async function Qq(){let H=process.platform;if(H==="darwin"){let{code:q,stdout:z}=await G("defaults",["read","/Applications/Claude.app/Contents/Info.plist","CFBundleShortVersionString"]);if(q!==0)return null;let Q=z.trim();return Q.length>0?Q:null}else if(H==="win32"){let q=process.env.LOCALAPPDATA;if(!q)return null;let z=zq(q,"AnthropicClaude");try{let Y=(await qq(z)).filter((W)=>W.startsWith("app-")).map((W)=>W.slice(4)).filter((W)=>K.coerce(W)!==null).sort((W,B)=>{let V=K.coerce(W),y=K.coerce(B);return V.compare(y)});return Y.length>0?Y[Y.length-1]:null}catch{return null}}return null}async function x(){if(!await g())return{status:"not-installed"};let q;try{q=await Qq()}catch{return{status:"ready",version:"unknown"}}if(!q)return{status:"ready",version:"unknown"};let z=K.coerce(q);if(!z||!v(z.version,Hq))return{status:"version-too-old",version:q};return{status:"ready",version:q}}async function Wq(H){let q=process.platform;if(L(`Opening deep link: ${H}`),q==="darwin"){if(_()){let{code:Q}=await G("osascript",["-e",`tell application "Electron" to open location "${H}"`]);return Q===0}let{code:z}=await G("open",[H]);return z===0}else if(q==="linux"){let{code:z}=await G("xdg-open",[H]);return z===0}else if(q==="win32"){let{code:z}=await G("cmd",["/c","start","",H]);return z===0}return!1}async function m(){let H=f();if(!await g())return{success:!1,error:"Claude Desktop is not installed. Install it from https://claude.ai/download"};let z=Jq(H);if(!await Wq(z))return{success:!1,error:"Failed to open Claude Desktop. Please try opening it manually.",deepLinkUrl:z};return{success:!0,deepLinkUrl:z}}var K,Hq="1.1.2396";var k=h(()=>{i();r();n();o();s();e();K=I(t(),1)});function Kq(){switch(process.platform){case"win32":return"https://claude.ai/api/desktop/win32/x64/exe/latest/redirect";default:return"https://claude.ai/api/desktop/darwin/universal/dmg/latest/redirect"}}function mq(H){let q=p.c(20),{onDone:z}=H,[Q,Y]=A.useState("checking"),[W,B]=A.useState(null),[V,y]=A.useState(""),O;if(q[0]!==W||q[1]!==z||q[2]!==Q)O=(J)=>{if(Q==="error"){z(W??"Unknown error",{display:"system"});return}if(Q==="prompt-download"){if(J==="y"||J==="Y")u(Kq()).catch(Rq),z(`Starting download. Re-run /desktop once you’ve installed the app.
|
|
2
|
-
Learn more at ${D}`,{display:"system"});else if(J==="n"||J==="N")z(`The desktop app is required for /desktop. Learn more at ${D}`,{display:"system"})}},q[0]=W,q[1]=z,q[2]=Q,q[3]=O;else O=q[3];$(O);let E,F;if(q[4]!==z)E=()=>{(async function(){Y("checking");let X=await x();if(X.status==="not-installed"){y("Claude Desktop is not installed."),Y("prompt-download");return}if(X.status==="version-too-old"){y(`Claude Desktop needs to be updated (found v${X.version}, need v1.1.2396+).`),Y("prompt-download");return}Y("flushing"),await l(),Y("opening");let U=await m();if(!U.success){B(U.error??"Failed to open Claude Desktop"),Y("error");return}Y("success"),setTimeout(Pq,500,z)})().catch((Z)=>{B(c(Z)),Y("error")})},F=[z],q[4]=z,q[5]=E,q[6]=F;else E=q[5],F=q[6];if(A.useEffect(E,F),Q==="error"){let J;if(q[7]!==W)J=N(R,{color:"error",children:["Error: ",W]}),q[7]=W,q[8]=J;else J=q[8];let Z;if(q[9]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{dimColor:!0,children:"Press any key to continue…"}),q[9]=Z;else Z=q[9];let X;if(q[10]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[10]=J,q[11]=X;else X=q[11];return X}if(Q==="prompt-download"){let J;if(q[12]!==V)J=P(R,{children:V}),q[12]=V,q[13]=J;else J=q[13];let Z;if(q[14]===Symbol.for("react.memo_cache_sentinel"))Z=P(R,{children:"Download now? (y/n)"}),q[14]=Z;else Z=q[14];let X;if(q[15]!==J)X=N(T,{flexDirection:"column",paddingX:2,children:[J,Z]}),q[15]=J,q[16]=X;else X=q[16];return X}let C;if(q[17]===Symbol.for("react.memo_cache_sentinel"))C={checking:"Checking for Claude Desktop…",flushing:"Saving session…",opening:"Opening Claude Desktop…",success:"Opening in Claude Desktop…"},q[17]=C;else C=q[17];let b=C[Q],M;if(q[18]!==b)M=P(d,{message:b}),q[18]=b,q[19]=M;else M=q[19];return M}async function Pq(H){H("Session transferred to Claude Desktop",{display:"system"}),await a(0,"other")}function Rq(){}var p,A,D="https://clau.de/desktop";var Bq=h(()=>{Gq();Aq();k();Xq();yq();Oq();Vq();S();p=I(Zq(),1),A=I(Yq(),1)});
|
|
3
|
-
export{mq as Og,Bq as Pg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{km as y,lm as p,uD as O,wD as j}from"./cli-0.5.9-k9yedz53.mjs";import{JX as v,LV as S,cX as F,eX as I,iX as R}from"./cli-0.5.9-qexy3mqr.mjs";import{mZ as Z,nZ as N,oZ as U}from"./cli-0.5.9-krvpcgvw.mjs";import{pZ as d}from"./cli-0.5.9-bp09b2xm.mjs";import{H$ as E,u$ as M}from"./cli-0.5.9-0b1wx67c.mjs";import{Oea as H,Qea as b}from"./cli-0.5.9-4s8nynfd.mjs";import{Hna as k}from"./cli-0.5.9-ysvsqcpa.mjs";b();v();E();j();p();U();var T=k(S(),1),h=k(d(),1),x="Auto mode lets Claude handle permission prompts automatically — Claude checks each tool call for risky actions and prompt injection before executing. Actions Claude identifies as safe are executed, while actions Claude identifies as risky are blocked and Claude may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claude can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";function l(A){let f=T.c(18),{onAccept:J,onDecline:q,declineExits:C}=A,K;if(f[0]===Symbol.for("react.memo_cache_sentinel"))K=[],f[0]=K;else K=f[0];h.default.useEffect(_,K);let Q;if(f[1]!==J||f[2]!==q)Q=function(m){f:switch(m){case"accept":{H("tengu_auto_mode_opt_in_dialog_accept",{}),M("userSettings",{skipAutoPermissionPrompt:!0}),J();break f}case"accept-default":{H("tengu_auto_mode_opt_in_dialog_accept_default",{}),M("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),J();break f}case"decline":H("tengu_auto_mode_opt_in_dialog_decline",{}),q()}},f[1]=J,f[2]=q,f[3]=Q;else Q=f[3];let B=Q,V;if(f[4]===Symbol.for("react.memo_cache_sentinel"))V=N(F,{flexDirection:"column",gap:1,children:[Z(I,{children:x}),Z(R,{url:"https://code.claude.com/docs/en/security"})]}),f[4]=V;else V=f[4];let W;if(f[5]===Symbol.for("react.memo_cache_sentinel"))W=[{label:"Yes, and make it my default mode",value:"accept-default"}],f[5]=W;else W=f[5];let X;if(f[6]===Symbol.for("react.memo_cache_sentinel"))X={label:"Yes, enable auto mode",value:"accept"},f[6]=X;else X=f[6];let L=C?"No, exit":"No, go back",w;if(f[7]!==L)w=[...W,X,{label:L,value:"decline"}],f[7]=L,f[8]=w;else w=f[8];let z;if(f[9]!==B)z=(P)=>B(P),f[9]=B,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=Z(O,{options:w,onChange:z,onCancel:q}),f[11]=q,f[12]=w,f[13]=z,f[14]=G;else G=f[14];let Y;if(f[15]!==q||f[16]!==G)Y=N(y,{title:"Enable auto mode?",color:"warning",onCancel:q,children:[V,G]}),f[15]=q,f[16]=G,f[17]=Y;else Y=f[17];return Y}function _(){H("tengu_auto_mode_opt_in_dialog_shown",{})}
|
|
2
|
-
export{x as gb,l as hb};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{Ya as LY}from"./cli-0.5.9-1y9n9z2h.mjs";import{nd as HY,qd as lQ}from"./cli-0.5.9-77nxjft3.mjs";import{wh as kY,xh as zW}from"./cli-0.5.9-mcezkpp8.mjs";import{$A as HW,$k as EZ,$n as qY,Aj as L9,Ar as VY,Bj as z9,Br as mQ,Bt as F0,Bx as BW,Cj as iY,Cr as fY,DN as wZ,Di as RY,Et as l9,Kn as O9,LA as KY,LK as JY,LL as uY,Ln as dW,MA as cQ,NK as dQ,Nq as $0,PN as lY,Qq as j0,Rq as TZ,TH as U9,UL as mY,VH as E9,Vq as d9,WL as cY,XA as GY,XM as s,YA as gQ,YN as aY,Yk as UZ,ZA as IY,ZH as y9,_L as AW,_n as nZ,aO as NY,al as o0,ao as $Z,ay as hY,bN as gY,bo as DY,cy as LW,dB as i,dO as BY,dv as R0,eI as lW,ev as kZ,fB as vW,fF as b0,fv as f0,gF as n9,gv as S0,gz as xY,hN as dY,hv as h0,hz as qW,iN as SZ,iv as k0,iy as MY,jH as yY,jv as xZ,jy as bY,kv as pZ,ky as JW,lv as x0,lz as pY,mH as XW,mN as hZ,mv as p0,mz as DW,nv as u0,ov as m0,pv as c0,qv as g0,rj as J9,rv as d0,sj as SW,sv as l0,tj as H9,tv as a0,uD as M0,uj as N9,uv as WQ,vD as a9,vi as XZ,vj as FZ,wj as eZ,xj as B9,yi as w0,yj as WZ,yr as s0,yx as SY,zj as Z0,zr as fQ}from"./cli-0.5.9-k9yedz53.mjs";import{CT as bW,yT as eY}from"./cli-0.5.9-zeskcndd.mjs";import{fU as y0,gU as c9}from"./cli-0.5.9-xn369es1.mjs";import{TU as O0,UU as u9,fV as U0,gV as E0,hV as m9,nV as P0,oV as g9}from"./cli-0.5.9-qy6qkzwb.mjs";import{JX as p9,LV as x9,cX as p,eX as F}from"./cli-0.5.9-qexy3mqr.mjs";import{lZ as a,mZ as E,nZ as M,oZ as V0}from"./cli-0.5.9-krvpcgvw.mjs";import{pZ as k9}from"./cli-0.5.9-bp09b2xm.mjs";import{T3 as WW,W2 as EY,r1 as UY,v1 as QW}from"./cli-0.5.9-v5mkedy5.mjs";import{A_ as wY,C8 as cW,C_ as ZW,F8 as tY,H$ as YW,K8 as MW,Z6 as A9,b8 as IZ,d8 as f9,dca as A0,g8 as _9,gca as h9,h_ as w9,k6 as vZ,kca as e,l6 as R9,o_ as gW,sca as _0,w7 as mW,x6 as XY,y$ as OY,z6 as uQ,z_ as _Y}from"./cli-0.5.9-0b1wx67c.mjs";import{Dca as J0,Lca as H0,Pca as T9}from"./cli-0.5.9-5vdqnecb.mjs";import{Ada as q,Bda as OZ,xda as Y,yda as k,zda as KZ}from"./cli-0.5.9-ap6gvqkx.mjs";import{Mda as nY,Xda as OW}from"./cli-0.5.9-7hcka84h.mjs";import{$da as eQ,Dea as S9,_da as AY,bea as CZ,eea as N0,fea as B0,gea as L0,hea as z0,kea as q0,lea as D0,xea as v0}from"./cli-0.5.9-31f5vjyq.mjs";import{Oea as d,Qea as _Z}from"./cli-0.5.9-4s8nynfd.mjs";import{Qfa as b,Tea as sY,Tfa as GZ,Vea as FW,tfa as ZZ,ufa as QY,yfa as PZ}from"./cli-0.5.9-ek649arf.mjs";import{Vfa as WY,Zfa as pQ}from"./cli-0.5.9-wkhmkyaq.mjs";import{aga as YY,iga as v9,jga as oZ,pga as gZ}from"./cli-0.5.9-yazhwsgb.mjs";import{Qka as V9,Rka as zZ,Ska as K9,Uka as G9,Zla as FY,ama as HZ,jia as JZ,pia as Y0,qia as oY,yja as vY}from"./cli-0.5.9-3bsjckc3.mjs";import{Hna as G0,Kna as fZ,Lna as AZ,Mna as aZ}from"./cli-0.5.9-ysvsqcpa.mjs";var YQ={};fZ(YQ,{selectableUserMessagesFilter:()=>T0,messagesAfterAreOnlySynthetic:()=>ZQ,MessageSelector:()=>r9});import{randomUUID as i9}from"crypto";import*as QZ from"path";function I0(Q){return Q.type==="text"}function RZ(Q){return Q==="summarize"||Q==="summarize_up_to"}function r9({messages:Q,onPreRestore:Z,onRestoreMessage:W,onRestoreCode:X,onSummarize:V,onClose:J,preselectedMessage:K}){let H=F0((U)=>U.fileHistory),[B,z]=I.useState(void 0),G=$0(),L=I.useMemo(i9,[]),w=I.useMemo(()=>[...Q.filter(T0),{...s({content:""}),uuid:L}],[Q,L]),[v,_]=I.useState(w.length-1),P=Math.max(0,Math.min(v-Math.floor(bZ/2),w.length-bZ)),C=w.length>1,[D,$]=I.useState(K),[y,T]=I.useState(void 0);I.useEffect(()=>{if(!K||!G)return;let U=!1;return TZ(H,K.uuid).then((f)=>{if(!U)T(f)}),()=>{U=!0}},[K,G,H]);let[O,j]=I.useState(!1),[l,n]=I.useState(null),[S,m]=I.useState("both"),[g,x]=I.useState(""),[A,N]=I.useState("");function R(U){let f=U?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],u={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return f.push({value:"summarize",label:"Summarize from here",...u,onChange:x}),f.push({value:"nevermind",label:"Never mind"}),f}I.useEffect(()=>{d("tengu_message_selector_opened",{})},[]);async function h(U){Z(),j(!0);try{await W(U),j(!1),J()}catch(f){e(f),j(!1),z(`Failed to restore the conversation:
|
|
2
|
-
${f}`)}}async function r(U){let f=Q.indexOf(U),u=Q.length-1-f;if(d("tengu_message_selector_selected",{index_from_end:u,message_type:U.type,is_current_prompt:!1}),!Q.includes(U)){J();return}if(!G){await h(U);return}let c=await TZ(H,U.uuid);$(U),T(c)}async function t(U){if(d("tengu_message_selector_restore_option_selected",{option:U}),!D){z("Message not found.");return}if(U==="nevermind"){if(K)J();else $(void 0);return}if(RZ(U)){Z(),j(!0),n(U),z(void 0);try{let c=U==="summarize_up_to"?"up_to":"from",YZ=(c==="up_to"?A:g).trim()||void 0;await V(D,YZ,c),j(!1),n(null),$(void 0),J()}catch(c){e(c),j(!1),n(null),$(void 0),z(`Failed to summarize:
|
|
3
|
-
${c}`)}return}Z(),j(!0),z(void 0);let f=null,u=null;if(U==="code"||U==="both")try{await X(D)}catch(c){f=c,e(f)}if(U==="conversation"||U==="both")try{await W(D)}catch(c){u=c,e(u)}if(j(!1),$(void 0),u&&f)z(`Failed to restore the conversation and code:
|
|
4
|
-
${u}
|
|
5
|
-
${f}`);else if(u)z(`Failed to restore the conversation:
|
|
6
|
-
${u}`);else if(f)z(`Failed to restore the code:
|
|
7
|
-
${f}`);else J()}let Q0=y0(),$9=I.useCallback(()=>{if(D&&!K){$(void 0);return}d("tengu_message_selector_cancelled",{}),J()},[J,D,K]),j9=I.useCallback(()=>_((U)=>Math.max(0,U-1)),[]),F9=I.useCallback(()=>_((U)=>Math.min(w.length-1,U+1)),[w.length]),M9=I.useCallback(()=>_(0),[]),b9=I.useCallback(()=>_(w.length-1),[w.length]),I9=I.useCallback(()=>{let U=w[v];if(U)r(U)},[w,v,r]);U0("confirm:no",$9,{context:"Confirmation",isActive:!D}),E0({"messageSelector:up":j9,"messageSelector:down":F9,"messageSelector:top":M9,"messageSelector:bottom":b9,"messageSelector:select":I9},{context:"MessageSelector",isActive:!O&&!B&&!D&&C});let[W0,X0]=I.useState({});I.useEffect(()=>{async function U(){if(!G)return;Promise.all(w.map(async(f,u)=>{if(f.uuid!==L){let c=j0(H,f.uuid),YZ=w.at(u+1),DZ=c?e9(Q,f.uuid,YZ?.uuid!==L?YZ?.uuid:void 0):void 0;if(DZ!==void 0)X0((o)=>({...o,[u]:DZ}));else X0((o)=>({...o,[u]:void 0}))}}))}U()},[w,Q,L,H,G]);let qZ=G&&y?.filesChanged&&y.filesChanged.length>0,C9=!B&&!D&&!K&&C;return M(p,{flexDirection:"column",width:"100%",children:[E(P0,{color:"suggestion"}),M(p,{flexDirection:"column",marginX:1,gap:1,children:[E(F,{bold:!0,color:"suggestion",children:"Rewind"}),B&&E(a,{children:M(F,{color:"error",children:["Error: ",B]})}),!C&&E(a,{children:E(F,{children:"Nothing to rewind to yet."})}),!B&&D&&C&&M(a,{children:[M(F,{children:["Confirm you want to restore"," ",!y&&"the conversation ","to the point before you sent this message:"]}),M(p,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[E(K0,{userMessage:D,color:"text",isCurrent:!1}),M(F,{dimColor:!0,children:["(",H0(new Date(D.timestamp)),")"]})]}),E(s9,{selectedRestoreOption:S,canRestoreCode:!!qZ,diffStatsForRestore:y}),O&&RZ(l)?M(p,{flexDirection:"row",gap:1,children:[E(b0,{}),E(F,{children:"Summarizing…"})]}):E(M0,{isDisabled:O,options:R(!!qZ),defaultFocusValue:qZ?"both":"conversation",onFocus:(U)=>m(U),onChange:(U)=>t(U),onCancel:()=>K?J():$(void 0)}),qZ&&E(p,{marginBottom:1,children:M(F,{dimColor:!0,children:[vZ.warning," Rewinding does not affect files edited manually or via bash."]})})]}),C9&&M(a,{children:[G?E(F,{children:"Restore the code and/or conversation to the point before…"}):E(F,{children:"Restore and fork the conversation to the point before…"}),E(p,{width:"100%",flexDirection:"column",children:w.slice(P,P+bZ).map((U,f)=>{let u=P+f,c=u===v,YZ=U.uuid===L,DZ=u in W0,o=W0[u],MZ=o?.filesChanged&&o.filesChanged.length;return M(p,{height:G?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[E(p,{width:2,minWidth:2,children:c?M(F,{color:"permission",bold:!0,children:[vZ.pointer," "]}):E(F,{children:" "})}),M(p,{flexDirection:"column",children:[E(p,{flexShrink:1,height:1,overflow:"hidden",children:E(K0,{userMessage:U,color:c?"suggestion":void 0,isCurrent:YZ,paddingRight:10})}),G&&DZ&&E(p,{height:1,flexDirection:"row",children:o?E(a,{children:E(F,{dimColor:!c,color:"inactive",children:MZ?M(a,{children:[MZ===1&&o.filesChanged[0]?`${QZ.basename(o.filesChanged[0])} `:`${MZ} files changed `,E(C0,{diffStats:o})]}):E(a,{children:"No code changes"})})}):M(F,{dimColor:!0,color:"warning",children:[vZ.warning," No code restore"]})})]})]},U.uuid)})})]}),!D&&E(F,{dimColor:!0,italic:!0,children:Q0.pending?M(a,{children:["Press ",Q0.keyName," again to exit"]}):M(a,{children:[!B&&C&&"Enter to continue · ","Esc to exit"]})})]})]})}function o9(Q){switch(Q){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function s9(Q){let Z=VZ.c(11),{selectedRestoreOption:W,canRestoreCode:X,diffStatsForRestore:V}=Q,J=X&&(W==="both"||W==="code"),K;if(Z[0]!==W)K=o9(W),Z[0]=W,Z[1]=K;else K=Z[1];let H;if(Z[2]!==K)H=E(F,{dimColor:!0,children:K}),Z[2]=K,Z[3]=H;else H=Z[3];let B;if(Z[4]!==V||Z[5]!==W||Z[6]!==J)B=!RZ(W)&&(J?E(t9,{diffStatsForRestore:V}):E(F,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=V,Z[5]=W,Z[6]=J,Z[7]=B;else B=Z[7];let z;if(Z[8]!==H||Z[9]!==B)z=M(p,{flexDirection:"column",children:[H,B]}),Z[8]=H,Z[9]=B,Z[10]=z;else z=Z[10];return z}function t9(Q){let Z=VZ.c(14),{diffStatsForRestore:W}=Q;if(W===void 0)return;if(!W.filesChanged||!W.filesChanged[0]){let H;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))H=E(F,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=H;else H=Z[0];return H}let X=W.filesChanged.length,V;if(X===1){let H;if(Z[1]!==W.filesChanged[0])H=QZ.basename(W.filesChanged[0]||""),Z[1]=W.filesChanged[0],Z[2]=H;else H=Z[2];V=H}else if(X===2){let H;if(Z[3]!==W.filesChanged[0])H=QZ.basename(W.filesChanged[0]||""),Z[3]=W.filesChanged[0],Z[4]=H;else H=Z[4];let B=H,z;if(Z[5]!==W.filesChanged[1])z=QZ.basename(W.filesChanged[1]||""),Z[5]=W.filesChanged[1],Z[6]=z;else z=Z[6];V=`${B} and ${z}`}else{let H;if(Z[7]!==W.filesChanged[0])H=QZ.basename(W.filesChanged[0]||""),Z[7]=W.filesChanged[0],Z[8]=H;else H=Z[8];V=`${H} and ${W.filesChanged.length-1} other files`}let J;if(Z[9]!==W)J=E(C0,{diffStats:W}),Z[9]=W,Z[10]=J;else J=Z[10];let K;if(Z[11]!==V||Z[12]!==J)K=E(a,{children:M(F,{dimColor:!0,children:["The code will be restored"," ",J," in ",V,"."]})}),Z[11]=V,Z[12]=J,Z[13]=K;else K=Z[13];return K}function C0(Q){let Z=VZ.c(7),{diffStats:W}=Q;if(!W||!W.filesChanged)return;let X;if(Z[0]!==W.insertions)X=M(F,{color:"diffAddedWord",children:["+",W.insertions," "]}),Z[0]=W.insertions,Z[1]=X;else X=Z[1];let V;if(Z[2]!==W.deletions)V=M(F,{color:"diffRemovedWord",children:["-",W.deletions]}),Z[2]=W.deletions,Z[3]=V;else V=Z[3];let J;if(Z[4]!==X||Z[5]!==V)J=M(a,{children:[X,V]}),Z[4]=X,Z[5]=V,Z[6]=J;else J=Z[6];return J}function K0(Q){let Z=VZ.c(31),{userMessage:W,color:X,dimColor:V,isCurrent:J,paddingRight:K}=Q,{columns:H}=O0();if(J){let T;if(Z[0]!==X||Z[1]!==V)T=E(p,{width:"100%",children:E(F,{italic:!0,color:X,dimColor:V,children:"(current)"})}),Z[0]=X,Z[1]=V,Z[2]=T;else T=Z[2];return T}let B=W.message.content,z=typeof B==="string"?null:B[B.length-1],G,L,w,v,_,P,C,D;if(Z[3]!==X||Z[4]!==H||Z[5]!==B||Z[6]!==V||Z[7]!==z||Z[8]!==K){D=Symbol.for("react.early_return_sentinel");Z:{let T=typeof B==="string"?B.trim():z&&I0(z)?z.text.trim():"(no prompt)",O=A0(T);if(w0(O)){let j;if(Z[17]!==X||Z[18]!==V)j=E(p,{flexDirection:"row",width:"100%",children:E(F,{italic:!0,color:X,dimColor:V,children:"((empty message))"})}),Z[17]=X,Z[18]=V,Z[19]=j;else j=Z[19];D=j;break Z}if(O.includes("<bash-input>")){let j=XZ(O,"bash-input");if(j){let l;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))l=E(F,{color:"bashBorder",children:"!"}),Z[20]=l;else l=Z[20];D=M(p,{flexDirection:"row",width:"100%",children:[l,M(F,{color:X,dimColor:V,children:[" ",j]})]});break Z}}if(O.includes(`<${CZ}>`)){let j=XZ(O,CZ),l=XZ(O,"command-args"),n=XZ(O,"skill-format")==="true";if(j)if(n){D=E(p,{flexDirection:"row",width:"100%",children:M(F,{color:X,dimColor:V,children:["Skill(",j,")"]})});break Z}else{D=E(p,{flexDirection:"row",width:"100%",children:M(F,{color:X,dimColor:V,children:["/",j," ",l]})});break Z}}L=p,P="row",C="100%",G=F,w=X,v=V,_=K?J0(O,H-K,!0):O.slice(0,500).split(`
|
|
8
|
-
`).slice(0,4).join(`
|
|
9
|
-
`)}Z[3]=X,Z[4]=H,Z[5]=B,Z[6]=V,Z[7]=z,Z[8]=K,Z[9]=G,Z[10]=L,Z[11]=w,Z[12]=v,Z[13]=_,Z[14]=P,Z[15]=C,Z[16]=D}else G=Z[9],L=Z[10],w=Z[11],v=Z[12],_=Z[13],P=Z[14],C=Z[15],D=Z[16];if(D!==Symbol.for("react.early_return_sentinel"))return D;let $;if(Z[21]!==G||Z[22]!==w||Z[23]!==v||Z[24]!==_)$=E(G,{color:w,dimColor:v,children:_}),Z[21]=G,Z[22]=w,Z[23]=v,Z[24]=_,Z[25]=$;else $=Z[25];let y;if(Z[26]!==L||Z[27]!==P||Z[28]!==C||Z[29]!==$)y=E(L,{flexDirection:P,width:C,children:$}),Z[26]=L,Z[27]=P,Z[28]=C,Z[29]=$,Z[30]=y;else y=Z[30];return y}function e9(Q,Z,W){let X=Q.findIndex((B)=>B.uuid===Z);if(X===-1)return;let V=W?Q.findIndex((B)=>B.uuid===W):Q.length;if(V===-1)V=Q.length;let J=[],K=0,H=0;for(let B=X+1;B<V;B++){let z=Q[B];if(!z||!hZ(z))continue;let G=z.toolUseResult;if(!G||!G.filePath||!G.structuredPatch)continue;if(!J.includes(G.filePath))J.push(G.filePath);try{if("type"in G&&G.type==="create")K+=G.content.split(/\r?\n/).length;else for(let L of G.structuredPatch){let w=IZ(L.lines,(_)=>_.startsWith("+")),v=IZ(L.lines,(_)=>_.startsWith("-"));K+=w,H+=v}}catch{continue}}return{filesChanged:J,insertions:K,deletions:H}}function T0(Q){if(Q.type!=="user")return!1;if(Array.isArray(Q.message.content)&&Q.message.content[0]?.type==="tool_result")return!1;if(SZ(Q))return!1;if(Q.isMeta)return!1;if(Q.isCompactSummary||Q.isVisibleInTranscriptOnly)return!1;let Z=Q.message.content,W=typeof Z==="string"?null:Z[Z.length-1],X=typeof Z==="string"?Z.trim():W&&I0(W)?W.text.trim():"";if(X.indexOf(`<${L0}>`)!==-1||X.indexOf(`<${z0}>`)!==-1||X.indexOf(`<${N0}>`)!==-1||X.indexOf(`<${B0}>`)!==-1||X.indexOf(`<${D0}>`)!==-1||X.indexOf(`<${q0}>`)!==-1||X.indexOf(`<${v0}`)!==-1)return!1;return!0}function ZQ(Q,Z){for(let W=Z+1;W<Q.length;W++){let X=Q[W];if(!X)continue;if(SZ(X))continue;if(hZ(X))continue;if(X.type==="progress")continue;if(X.type==="system")continue;if(X.type==="attachment")continue;if(X.type==="user"&&X.isMeta)continue;if(X.type==="assistant"){let V=X.message.content;if(Array.isArray(V)){if(V.some((K)=>K.type==="text"&&K.text.trim()||K.type==="tool_use"))return!1}continue}if(X.type==="user")return!1}return!0}var VZ,I,bZ=7;var QQ=AZ(()=>{R9();_Z();l9();d9();_0();c9();p9();m9();h9();wZ();a9();n9();u9();S9();f9();T9();g9();V0();VZ=G0(x9(),1),I=G0(k9(),1)});var $W={};fZ($W,{getCronJitterConfig:()=>PW});function PW(){let Q=nY("tengu_kairos_cron_config",WZ,UW),Z=yW().safeParse(Q);return Z.success?Z.data:WZ}var UW=60000,iZ=1800000,EW=2592000000,yW;var jW=AZ(()=>{KZ();OW();iY();OZ();yW=q(()=>Y.object({recurringFrac:Y.number().min(0).max(1),recurringCapMs:Y.number().int().min(0).max(iZ),oneShotMaxMs:Y.number().int().min(0).max(iZ),oneShotFloorMs:Y.number().int().min(0).max(iZ),oneShotMinuteMod:Y.number().int().min(1).max(60),recurringMaxAgeMs:Y.number().int().min(0).max(EW).default(WZ.recurringMaxAgeMs)}).refine((Q)=>Q.oneShotFloorMs<=Q.oneShotMaxMs))});import{mkdir as IW,readFile as CW,unlink as Z9,writeFile as sZ}from"fs/promises";import{dirname as TW,join as Y9}from"path";function BZ(Q){return Y9(Q??oY(),RW)}async function Q9(Q){let Z;try{Z=await CW(BZ(Q),"utf8")}catch{return}let W=fW().safeParse(tY(Z,!1));return W.success?W.data:void 0}async function rY(Q,Z){let W=BZ(Z),X=ZZ(Q);try{return await sZ(W,X,{flag:"wx"}),!0}catch(V){let J=oZ(V);if(J==="EEXIST")return!1;if(J==="ENOENT"){await IW(TW(W),{recursive:!0});try{return await sZ(W,X,{flag:"wx"}),!0}catch(K){if(oZ(K)==="EEXIST")return!1;throw K}}throw V}}function rZ(Q){jZ?.(),jZ=sY(async()=>{await LZ(Q)})}async function tZ(Q){let Z=Q?.dir,W=Q?.lockIdentity??JZ(),X={sessionId:W,pid:process.pid,acquiredAt:Date.now()};if(await rY(X,Z))return NZ=void 0,rZ(Q),b(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let V=await Q9(Z);if(V?.sessionId===W){if(V.pid!==process.pid)await sZ(BZ(Z),ZZ(X)),rZ(Q);return!0}if(V&&eY(V.pid)){if(NZ!==V.sessionId)NZ=V.sessionId,b(`[ScheduledTasks] scheduler lock held by session ${V.sessionId} (PID ${V.pid})`);return!1}if(V)b(`[ScheduledTasks] recovering stale scheduler lock from PID ${V.pid}`);if(await Z9(BZ(Z)).catch(()=>{}),await rY(X,Z))return NZ=void 0,rZ(Q),!0;return!1}async function LZ(Q){jZ?.(),jZ=void 0,NZ=void 0;let Z=Q?.dir,W=Q?.lockIdentity??JZ(),X=await Q9(Z);if(!X||X.sessionId!==W)return;try{await Z9(BZ(Z)),b("[ScheduledTasks] released scheduler lock")}catch{}}var RW,fW,jZ,NZ;var W9=AZ(()=>{KZ();HZ();FW();GZ();gZ();bW();MW();OZ();PZ();RW=Y9(".claudin","scheduled_tasks.lock"),fW=q(()=>Y.object({sessionId:Y.string(),pid:Y.number(),acquiredAt:Y.number()}))});var pW={};fZ(pW,{isRecurringTaskAged:()=>q9,createCronScheduler:()=>xW,buildMissedTaskNotification:()=>D9});function q9(Q,Z,W){if(W===0)return!1;return Boolean(Q.recurring&&!Q.permanent&&Z-Q.createdAt>=W)}function xW(Q){let{onFire:Z,isLoading:W,assistantMode:X=!1,onFireTask:V,onMissed:J,dir:K,lockIdentity:H,getJitterConfig:B,isKilled:z,filter:G}=Q,L=K||H?{dir:K,lockIdentity:H}:void 0,w=[],v=new Map,_=new Set,P=new Set,C=null,D=null,$=null,y=null,T=!1,O=!1;async function j(S){let m=await N9(K);if(T)return;if(w=m,!S)return;let g=Date.now(),x=z9(m,g).filter((A)=>!A.recurring&&!_.has(A.id)&&(!G||G(A)));if(x.length>0){for(let A of x)_.add(A.id),v.set(A.id,1/0);if(d("tengu_scheduled_task_missed",{count:x.length,taskIds:x.map((A)=>A.id).join(",")}),J)J(x);else Z(D9(x));eZ(x.map((A)=>A.id),K).catch((A)=>b(`[ScheduledTasks] failed to remove missed tasks: ${A}`)),b(`[ScheduledTasks] surfaced ${x.length} missed one-shot task(s)`)}}function l(){if(z?.())return;if(W()&&!X)return;let S=Date.now(),m=new Set,g=[],x=B?.()??WZ;function A(N,R){if(G&&!G(N))return;if(m.add(N.id),P.has(N.id))return;let h=v.get(N.id);if(h===void 0)h=N.recurring?Z0(N.cron,N.lastFiredAt??N.createdAt,N.id,x)??1/0:L9(N.cron,N.createdAt,N.id,x)??1/0,v.set(N.id,h),b(`[ScheduledTasks] scheduled ${N.id} for ${h===1/0?"never":new Date(h).toISOString()}`);if(S<h)return;if(b(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`),d("tengu_scheduled_task_fire",{recurring:N.recurring??!1,taskId:N.id}),V)V(N);else Z(N.prompt);let r=q9(N,S,x.recurringMaxAgeMs);if(r){let t=Math.floor((S-N.createdAt)/1000/60/60);b(`[ScheduledTasks] recurring task ${N.id} aged out (${t}h since creation), deleting after final fire`),d("tengu_scheduled_task_expired",{taskId:N.id,ageHours:t})}if(N.recurring&&!r){let t=Z0(N.cron,S,N.id,x)??1/0;if(v.set(N.id,t),!R)g.push(N.id)}else if(R)G9([N.id]),v.delete(N.id);else P.add(N.id),eZ([N.id],K).catch((t)=>b(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>P.delete(N.id)),v.delete(N.id)}if(O){for(let N of w)A(N,!1);if(g.length>0){for(let N of g)P.add(N);B9(g,S,K).catch((N)=>b(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of g)P.delete(N)})}}if(K===void 0)for(let N of K9())A(N,!0);if(m.size===0){v.clear();return}for(let N of v.keys())if(!m.has(N))v.delete(N)}async function n(){if(T)return;if(C)clearInterval(C),C=null;let{default:S}=await import("./index-0.5.9-4fzd2pns.mjs");if(T)return;if(O=await tZ(L).catch(()=>!1),T){if(O)O=!1,LZ(L);return}if(!O)$=setInterval(()=>{tZ(L).then((g)=>{if(T){if(g)LZ(L);return}if(g){if(O=!0,$)clearInterval($),$=null}}).catch((g)=>b(String(g),{level:"error"}))},kW),$.unref?.();j(!0);let m=H9(K);y=S.watch(m,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:hW},ignorePermissionErrors:!0}),y.on("add",()=>void j(!1)),y.on("change",()=>void j(!1)),y.on("unlink",()=>{if(!T)w=[],v.clear()}),D=setInterval(l,X9),D.unref?.()}return{start(){if(T=!1,K!==void 0){b(`[ScheduledTasks] scheduler start() — dir=${K}, hasTasks=${FZ(K)}`),n();return}if(b(`[ScheduledTasks] scheduler start() — enabled=${zZ()}, hasTasks=${FZ()}`),!zZ()&&(X||FZ()))V9(!0);if(zZ()){n();return}C=setInterval((S)=>{if(zZ())S()},X9,n),C.unref?.()},stop(){if(T=!0,C)clearInterval(C),C=null;if(D)clearInterval(D),D=null;if($)clearInterval($),$=null;if(y?.close(),y=null,O)O=!1,LZ(L)},getNextFireTime(){let S=1/0;for(let m of v.values())if(m<S)S=m;return S===1/0?null:S}}}function D9(Q){let Z=Q.length>1,W=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claudin/scheduled_tasks.json.
|
|
10
|
-
|
|
11
|
-
Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,X=Q.map((V)=>{let J=`[${J9(V.cron)}, created ${new Date(V.createdAt).toLocaleString()}]`,K=(V.prompt.match(/`+/g)??[]).reduce((B,z)=>Math.max(B,z.length),0),H="`".repeat(Math.max(3,K+1));return`${J}
|
|
12
|
-
${H}
|
|
13
|
-
${V.prompt}
|
|
14
|
-
${H}`});return`${W}
|
|
15
|
-
|
|
16
|
-
${X.join(`
|
|
17
|
-
|
|
18
|
-
`)}`}var X9=1000,hW=300,kW=5000;var uW=AZ(()=>{HZ();_Z();SW();iY();W9();GZ()});import{randomUUID as cZ}from"crypto";KZ();OZ();WQ();var XQ=q(()=>Y.unknown()),VQ=q(()=>Y.object({matcher:Y.string().optional(),hookCallbackIds:Y.array(Y.string()),timeout:Y.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),KQ=q(()=>Y.object({subtype:Y.literal("initialize"),hooks:Y.record(h0(),Y.array(VQ())).optional(),sdkMcpServers:Y.array(Y.string()).optional(),jsonSchema:Y.record(Y.string(),Y.unknown()).optional(),systemPrompt:Y.string().optional(),appendSystemPrompt:Y.string().optional(),agents:Y.record(Y.string(),u0()).optional(),promptSuggestions:Y.boolean().optional(),agentProgressSummaries:Y.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),A6=q(()=>Y.object({commands:Y.array(xZ()),agents:Y.array(pZ()),output_style:Y.string(),available_output_styles:Y.array(Y.string()),models:Y.array(x0()),account:p0(),pid:Y.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:a0().optional()}).describe("Response from session initialization with available commands, models, and account info.")),GQ=q(()=>Y.object({subtype:Y.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),JQ=q(()=>Y.object({subtype:Y.literal("can_use_tool"),tool_name:Y.string(),input:Y.record(Y.string(),Y.unknown()),permission_suggestions:Y.array(f0()).optional(),blocked_path:Y.string().optional(),decision_reason:Y.string().optional(),title:Y.string().optional(),display_name:Y.string().optional(),tool_use_id:Y.string(),agent_id:Y.string().optional(),description:Y.string().optional()}).describe("Requests permission to use a tool with the given input.")),HQ=q(()=>Y.object({subtype:Y.literal("set_permission_mode"),mode:S0(),ultraplan:Y.boolean().optional().describe("@internal CCR ultraplan session marker.")}).describe("Sets the permission mode for tool execution handling.")),NQ=q(()=>Y.object({subtype:Y.literal("set_model"),model:Y.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),BQ=q(()=>Y.object({subtype:Y.literal("set_max_thinking_tokens"),max_thinking_tokens:Y.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),LQ=q(()=>Y.object({subtype:Y.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),_6=q(()=>Y.object({mcpServers:Y.array(kZ())}).describe("Response containing the current status of all MCP server connections.")),zQ=q(()=>Y.object({subtype:Y.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),qQ=q(()=>Y.object({name:Y.string(),tokens:Y.number(),color:Y.string(),isDeferred:Y.boolean().optional()})),DQ=q(()=>Y.object({color:Y.string(),isFilled:Y.boolean(),categoryName:Y.string(),tokens:Y.number(),percentage:Y.number(),squareFullness:Y.number()})),w6=q(()=>Y.object({categories:Y.array(qQ()),totalTokens:Y.number(),maxTokens:Y.number(),rawMaxTokens:Y.number(),percentage:Y.number(),gridRows:Y.array(Y.array(DQ())),model:Y.string(),memoryFiles:Y.array(Y.object({path:Y.string(),type:Y.string(),tokens:Y.number()})),mcpTools:Y.array(Y.object({name:Y.string(),serverName:Y.string(),tokens:Y.number(),isLoaded:Y.boolean().optional()})),deferredBuiltinTools:Y.array(Y.object({name:Y.string(),tokens:Y.number(),isLoaded:Y.boolean()})).optional(),systemTools:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),systemPromptSections:Y.array(Y.object({name:Y.string(),tokens:Y.number()})).optional(),agents:Y.array(Y.object({agentType:Y.string(),source:Y.string(),tokens:Y.number()})),slashCommands:Y.object({totalCommands:Y.number(),includedCommands:Y.number(),tokens:Y.number()}).optional(),skills:Y.object({totalSkills:Y.number(),includedSkills:Y.number(),tokens:Y.number(),skillFrontmatter:Y.array(Y.object({name:Y.string(),source:Y.string(),tokens:Y.number()}))}).optional(),autoCompactThreshold:Y.number().optional(),isAutoCompactEnabled:Y.boolean(),messageBreakdown:Y.object({toolCallTokens:Y.number(),toolResultTokens:Y.number(),attachmentTokens:Y.number(),assistantMessageTokens:Y.number(),userMessageTokens:Y.number(),toolCallsByType:Y.array(Y.object({name:Y.string(),callTokens:Y.number(),resultTokens:Y.number()})),attachmentsByType:Y.array(Y.object({name:Y.string(),tokens:Y.number()}))}).optional(),apiUsage:Y.object({input_tokens:Y.number(),output_tokens:Y.number(),cache_creation_input_tokens:Y.number(),cache_read_input_tokens:Y.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),vQ=q(()=>Y.object({subtype:Y.literal("rewind_files"),user_message_id:Y.string(),dry_run:Y.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),O6=q(()=>Y.object({canRewind:Y.boolean(),error:Y.string().optional(),filesChanged:Y.array(Y.string()).optional(),insertions:Y.number().optional(),deletions:Y.number().optional()}).describe("Result of a rewindFiles operation.")),AQ=q(()=>Y.object({subtype:Y.literal("cancel_async_message"),message_uuid:Y.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),U6=q(()=>Y.object({cancelled:Y.boolean()}).describe("Result of a cancel_async_message operation. cancelled=false means the message was not in the queue (already dequeued or never enqueued).")),_Q=q(()=>Y.object({subtype:Y.literal("seed_read_state"),path:Y.string(),mtime:Y.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),wQ=q(()=>Y.object({subtype:Y.literal("hook_callback"),callback_id:Y.string(),input:k0(),tool_use_id:Y.string().optional()}).describe("Delivers a hook callback with its input data.")),OQ=q(()=>Y.object({subtype:Y.literal("mcp_message"),server_name:Y.string(),message:XQ()}).describe("Sends a JSON-RPC message to a specific MCP server.")),UQ=q(()=>Y.object({subtype:Y.literal("mcp_set_servers"),servers:Y.record(Y.string(),R0())}).describe("Replaces the set of dynamically managed MCP servers.")),E6=q(()=>Y.object({added:Y.array(Y.string()),removed:Y.array(Y.string()),errors:Y.record(Y.string(),Y.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),EQ=q(()=>Y.object({subtype:Y.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),y6=q(()=>Y.object({commands:Y.array(xZ()),agents:Y.array(pZ()),plugins:Y.array(Y.object({name:Y.string(),path:Y.string(),source:Y.string().optional()})),mcpServers:Y.array(kZ()),error_count:Y.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),yQ=q(()=>Y.object({subtype:Y.literal("mcp_reconnect"),serverName:Y.string()}).describe("Reconnects a disconnected or failed MCP server.")),PQ=q(()=>Y.object({subtype:Y.literal("mcp_toggle"),serverName:Y.string(),enabled:Y.boolean()}).describe("Enables or disables an MCP server.")),$Q=q(()=>Y.object({subtype:Y.literal("stop_task"),task_id:Y.string()}).describe("Stops a running task.")),jQ=q(()=>Y.object({subtype:Y.literal("apply_flag_settings"),settings:Y.record(Y.string(),Y.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),FQ=q(()=>Y.object({subtype:Y.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),P6=q(()=>Y.object({effective:Y.record(Y.string(),Y.unknown()),sources:Y.array(Y.object({source:Y.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Y.record(Y.string(),Y.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Y.object({model:Y.string(),effort:Y.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),MQ=q(()=>Y.object({subtype:Y.literal("elicitation"),mcp_server_name:Y.string(),message:Y.string(),mode:Y.enum(["form","url"]).optional(),url:Y.string().optional(),elicitation_id:Y.string().optional(),requested_schema:Y.record(Y.string(),Y.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),n0=q(()=>Y.object({action:Y.enum(["accept","decline","cancel"]),content:Y.record(Y.string(),Y.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),bQ=q(()=>Y.union([GQ(),JQ(),KQ(),HQ(),NQ(),BQ(),LQ(),zQ(),wQ(),OQ(),vQ(),AQ(),_Q(),UQ(),EQ(),yQ(),PQ(),$Q(),jQ(),FQ(),MQ()])),uZ=q(()=>Y.object({type:Y.literal("control_request"),request_id:Y.string(),request:bQ()})),IQ=q(()=>Y.object({subtype:Y.literal("success"),request_id:Y.string(),response:Y.record(Y.string(),Y.unknown()).optional()})),CQ=q(()=>Y.object({subtype:Y.literal("error"),request_id:Y.string(),error:Y.string(),pending_permission_requests:Y.array(Y.lazy(()=>uZ())).optional()})),i0=q(()=>Y.object({type:Y.literal("control_response"),response:Y.union([IQ(),CQ()])})),TQ=q(()=>Y.object({type:Y.literal("control_cancel_request"),request_id:Y.string()}).describe("Cancels a currently open control request.")),r0=q(()=>Y.object({type:Y.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),RQ=q(()=>Y.object({type:Y.literal("update_environment_variables"),variables:Y.record(Y.string(),Y.string())}).describe("Updates environment variables at runtime.")),$6=q(()=>Y.union([l0(),c0(),g0(),d0(),i0(),uZ(),TQ(),r0()])),j6=q(()=>Y.union([m0(),uZ(),i0(),r0(),RQ()]));mQ();GZ();uQ();gZ();KZ();GZ();OZ();o0();fQ();var R6=q(()=>k.object({tool_name:k.string().describe("The name of the tool requesting permission"),input:k.record(k.string(),k.unknown()).describe("The input for the tool"),tool_use_id:k.string().optional().describe("The unique tool use request ID")})),t0=q(()=>k.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),SQ=q(()=>k.object({behavior:k.literal("allow"),updatedInput:k.record(k.string(),k.unknown()),updatedPermissions:k.array(s0()).optional().catch((Q)=>{b(`Malformed updatedPermissions from SDK host ignored: ${Q.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:k.string().optional(),decisionClassification:t0()})),hQ=q(()=>k.object({behavior:k.literal("deny"),message:k.string(),interrupt:k.boolean().optional(),toolUseID:k.string().optional(),decisionClassification:t0()})),mZ=q(()=>k.union([SQ(),hQ()]));function yZ(Q,Z,W,X){let V={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Q};if(Q.behavior==="allow"){let J=Q.updatedPermissions;if(J)X.setAppState((H)=>({...H,toolPermissionContext:UZ(H.toolPermissionContext,J)})),EZ(J);let K=Object.keys(Q.updatedInput).length>0?Q.updatedInput:W;return{...Q,updatedInput:K,decisionReason:V}}else if(Q.behavior==="deny"&&Q.interrupt)b(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Q.message}`),X.abortController.abort();return{...Q,decisionReason:V}}dQ();pQ();PZ();KZ();cQ();BY();o0();lQ();PZ();gQ();PZ();var kQ=/\u2028|\u2029/g;function xQ(Q){return Q.replace(kQ,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function e0(Q){return xQ(ZZ(Q))}var aQ="SandboxNetworkAccess";function nQ(Q){if(!Q)return;if(Q.type==="classifier")return Q.reason;switch(Q.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Q.reason}}function iQ(Q,Z,W,X){let V;try{V=Q.getActivityDescription?.(Z)??Q.getToolUseSummary?.(Z)??Q.userFacingName(Z)}catch{V=Q.name}return{tool_name:Q.name,action_description:V,tool_use_id:W,request_id:X,input:Z}}var rQ=1000;class oQ{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new GY;constructor(Q,Z){this.input=Q;this.replayUserMessages=Z;this.input=Q,this.structuredInput=this.read()}trackResolvedToolUseId(Q){if(Q.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Q.request.tool_use_id),this.resolvedToolUseIds.size>rQ){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Q){this.prependedLines.push(ZZ({type:"user",session_id:"",message:{role:"user",content:Q},parent_tool_use_id:null})+`
|
|
19
|
-
`)}async*read(){let Q="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Q=this.prependedLines.join("")+Q,this.prependedLines=[];let W=Q.indexOf(`
|
|
20
|
-
`);if(W===-1)break;let X=Q.slice(0,W);Q=Q.slice(W+1);let V=await this.processLine(X);if(V)XY("info","cli_stdin_message_parsed",{type:V.type}),yield V}}.bind(this);yield*Z();for await(let W of this.input)Q+=W,yield*Z();if(Q){let W=await this.processLine(Q);if(W)yield W}this.inputClosed=!0;for(let W of this.pendingRequests.values())W.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Q)=>Q.request).filter((Q)=>Q.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Q){this.unexpectedResponseCallback=Q}injectControlResponse(Q){let Z=Q.response?.request_id;if(!Z)return;let W=this.pendingRequests.get(Z);if(!W)return;if(this.trackResolvedToolUseId(W.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Q.response.subtype==="error")W.reject(Error(Q.response.error));else{let X=Q.response.response;if(W.schema)try{W.resolve(W.schema.parse(X))}catch(V){W.reject(V)}else W.resolve({})}}setOnControlRequestSent(Q){this.onControlRequestSent=Q}setOnControlRequestResolved(Q){this.onControlRequestResolved=Q}async processLine(Q){if(!Q)return;try{let Z=LY(QY(Q));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let W=Object.keys(Z.variables);for(let[X,V]of Object.entries(Z.variables))process.env[X]=V;b(`[structuredIO] applied update_environment_variables: ${W.join(", ")}`);return}if(Z.type==="control_response"){let W="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(W)KY(W,"completed");let X=this.pendingRequests.get(Z.response.request_id);if(!X){let K=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof K==="string"&&this.resolvedToolUseIds.has(K)){b(`Ignoring duplicate control_response for already-resolved toolUseID=${K} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(X.request),this.pendingRequests.delete(Z.response.request_id),X.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){X.reject(Error(Z.response.error));return}let V=Z.response.response;if(X.schema)try{X.resolve(X.schema.parse(V))}catch(J){X.reject(J)}else X.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){b(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)ZY("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;if(Z.message.role!=="user")ZY(`Error: Expected message role 'user', got '${Z.message.role}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Q}: ${Z}`),process.exit(1)}}async write(Q){WY(e0(Q)+`
|
|
21
|
-
`)}async sendRequest(Q,Z,W,X=cZ()){let V={type:"control_request",request_id:X,request:Q};if(this.inputClosed)throw Error("Stream closed");if(W?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(V),Q.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(V);let J=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:X});let K=this.pendingRequests.get(X);if(K)this.trackResolvedToolUseId(K.request),K.reject(new YY)};if(W)W.addEventListener("abort",J,{once:!0});try{return await new Promise((K,H)=>{this.pendingRequests.set(X,{request:{type:"control_request",request_id:X,request:Q},resolve:(B)=>{K(B)},reject:H,schema:Z})})}finally{if(W)W.removeEventListener("abort",J);this.pendingRequests.delete(X)}}createCanUseTool(Q){return async(Z,W,X,V,J,K)=>{let H=K??await JY(Z,W,X,V,J);if(H.behavior==="allow"||H.behavior==="deny")return H;let B=new AbortController,z=X.abortController.signal,G=()=>B.abort();z.addEventListener("abort",G,{once:!0});try{let L=sQ(Z.name,J,W,X,H.suggestions).then((P)=>({source:"hook",decision:P})),w=cZ();Q?.(iQ(Z,W,J,w));let v=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:W,permission_suggestions:H.suggestions,blocked_path:H.blockedPath,decision_reason:nQ(H.decisionReason),tool_use_id:J,agent_id:X.agentId},mZ(),B.signal,w).then((P)=>({source:"sdk",result:P})),_=await Promise.race([L,v]);if(_.source==="hook"){if(_.decision)return v.catch(()=>{}),B.abort(),_.decision;let P=await v;return yZ(P.result,Z,W,X)}return yZ(_.result,Z,W,X)}catch(L){return yZ({behavior:"deny",message:`Tool permission request failed: ${L}`,toolUseID:J},Z,W,X)}finally{if(this.getPendingPermissionRequests().length===0)HY("running");z.removeEventListener("abort",G)}}}createHookCallback(Q,Z){return{type:"callback",timeout:Z,callback:async(W,X,V)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Q,input:W,tool_use_id:X||void 0},VY(),V)}catch(J){return console.error(`Error in hook callback ${Q}:`,J),{}}}}}async handleElicitation(Q,Z,W,X,V,J,K){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Q,message:Z,mode:V,url:J,elicitation_id:K,requested_schema:W},n0(),X)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Q)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:aQ,input:{host:Q.host},tool_use_id:cZ(),description:`Allow network connection to ${Q.host}?`},mZ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Q,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Q,message:Z},Y.object({mcp_response:Y.any()}))).mcp_response}}function ZY(Q){console.error(Q),process.exit(1)}async function sQ(Q,Z,W,X,V){let K=X.getAppState().toolPermissionContext.mode,H=NY(Q,Z,W,X,K,V,X.abortController.signal);for await(let B of H)if(B.permissionRequestResult&&(B.permissionRequestResult.behavior==="allow"||B.permissionRequestResult.behavior==="deny")){let z=B.permissionRequestResult;if(z.behavior==="allow"){let G=z.updatedInput||W,L=z.updatedPermissions??[];if(L.length>0){EZ(L);let w=X.getAppState(),v=UZ(w.toolPermissionContext,L);X.setAppState((_)=>{if(_.toolPermissionContext===v)return _;return{..._,toolPermissionContext:v}})}return{behavior:"allow",updatedInput:G,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:z.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}DY();function XX(Q){if(Q.type!=="user")return;let Z=Q.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let W="uuid"in Q&&typeof Q.uuid==="string"?Q.uuid:void 0;return{content:Array.isArray(Z)?tQ(Z):Z,uuid:W}}function tQ(Q){if(!Q.some(zY))return Q;return Q.map((Z)=>{if(!zY(Z))return Z;let W=Z.source,X=typeof W.mediaType==="string"&&W.mediaType?W.mediaType:qY(Z.source.data);return{...Z,source:{type:"base64",media_type:X,data:Z.source.data}}})}function zY(Q){if(Q.type!=="image"||Q.source?.type!=="base64")return!1;return!Q.source.media_type}HZ();XW();ZW();WW();eQ();QW();YW();import{randomUUID as VW}from"crypto";function KW(Q){return Q===_Y?wY:Q}function qX(Q){let W=OY()?.outputStyle??yY,X={type:"system",subtype:"init",cwd:AY(),session_id:JZ(),tools:Q.tools.map((V)=>KW(V.name)),mcp_servers:Q.mcpClients.map((V)=>({name:V.name,status:V.type})),model:Q.model,permissionMode:Q.permissionMode,slash_commands:Q.commands.filter((V)=>V.userInvocable!==!1).map((V)=>V.name),apiKeySource:EY().source,betas:vY(),claude_code_version:"99.0.0",output_style:W,agents:Q.agents.map((V)=>V.agentType),skills:Q.skills.filter((V)=>V.userInvocable!==!1).map((V)=>V.name),plugins:Q.plugins.map((V)=>({name:V.name,path:V.path,source:V.source})),uuid:VW()};return X.fast_mode_state=UY(Q.model,Q.fastMode),X}var PY={"`":"`",'"':'"',"<":">","{":"}","[":"]","(":")","'":"'"};function GW(Q,Z){if(!new RegExp(Z,"i").test(Q))return[];if(Q.startsWith("/"))return[];let X=[],V=null,J=0,K=(G)=>!!G&&/[\p{L}\p{N}_]/u.test(G);for(let G=0;G<Q.length;G++){let L=Q[G];if(V){if(V==="["&&L==="["){J=G;continue}if(L!==PY[V])continue;if(V==="'"&&K(Q[G+1]))continue;X.push({start:J,end:G+1}),V=null}else if(L==="<"&&G+1<Q.length&&/[a-zA-Z/]/.test(Q[G+1])||L==="'"&&!K(Q[G-1])||L!=="<"&&L!=="'"&&L in PY)V=L,J=G}let H=[],B=new RegExp(`\\b${Z}\\b`,"gi"),z=Q.matchAll(B);for(let G of z){if(G.index===void 0)continue;let L=G.index,w=L+G[0].length;if(X.some((P)=>L>=P.start&&L<P.end))continue;let v=Q[L-1],_=Q[w];if(v==="/"||v==="\\"||v==="-")continue;if(_==="/"||_==="\\"||_==="-"||_==="?")continue;if(_==="."&&K(Q[w+1]))continue;H.push({word:G[0],start:L,end:w})}return H}function vX(Q){return GW(Q,"ultrareview")}_Z();wZ();AW();qW();DW();LW();BY();DY();BW();wZ();vW();zW();import{randomUUID as _W}from"crypto";HZ();_Z();wZ();JW();HW();import{randomUUID as NW}from"crypto";function $Y(Q){let Z=Q.toLowerCase();return/\b(wtf|wth|ffs|omfg|shit(ty|tiest)?|dumbass|horrible|awful|piss(ed|ing)? off|piece of (shit|crap|junk)|what the (fuck|hell)|fucking? (broken|useless|terrible|awful|horrible)|fuck you|screw (this|you)|so frustrating|this sucks|damn it)\b/.test(Z)}function jY(Q){let Z=Q.toLowerCase().trim();if(Z==="continue")return!0;return/\b(keep going|go on)\b/.test(Z)}function CY(Q,Z,W,X,V,J,K){let H=NW();FY(H);let B=typeof Q==="string"?Q:Q.find((v)=>v.type==="text")?.text||"";IY(B);let z=typeof Q==="string"?Q:Q.findLast((v)=>v.type==="text")?.text||"";if(z)bY("user_prompt",{prompt_length:String(z.length),prompt:MY(z),"prompt.id":H});let G=$Y(B),L=jY(B);if(d("tengu_input_prompt",{is_negative:G,is_keep_going:L}),Z.length>0){let v=typeof Q==="string"?Q.trim()?[{type:"text",text:Q}]:[]:Q;return{messages:[s({content:[...v,...Z],uuid:V,imagePasteIds:W.length>0?W:void 0,permissionMode:J,isMeta:K||void 0}),...X],shouldQuery:!0}}return{messages:[s({content:Q,uuid:V,permissionMode:J,isMeta:K||void 0}),...X],shouldQuery:!0}}async function dX({input:Q,preExpansionInput:Z,mode:W,setToolJSX:X,context:V,pastedContents:J,ideSelection:K,messages:H,setUserInputOnProcessing:B,uuid:z,isAlreadyProcessing:G,querySource:L,canUseTool:w,skipSlashCommands:v,bridgeOrigin:_,isMeta:P,skipAttachments:C}){let D=typeof Q==="string"?Q:null;if(W==="prompt"&&D!==null&&!P)B?.(D);i("query_process_user_input_base_start");let $=V.getAppState(),y=await wW(Q,W,X,V,J,K,H,z,G,L,w,$.toolPermissionContext.mode,v,_,P,C,Z);if(i("query_process_user_input_base_end"),!y.shouldQuery)return y;i("query_hooks_start");let T=RY(Q)||"";for await(let O of aY(T,$.toolPermissionContext.mode,V,V.requestPrompt)){if(O.message?.type==="progress")continue;if(O.blockingError){let j=lY(O.blockingError);return{messages:[gY(`${j}
|
|
22
|
-
|
|
23
|
-
Original prompt: ${Q}`,"warning")],shouldQuery:!1,allowedTools:y.allowedTools}}if(O.preventContinuation){let j=O.stopReason?`Operation stopped by hook: ${O.stopReason}`:"Operation stopped by hook";return y.messages.push(s({content:j})),y.shouldQuery=!1,y}if(O.additionalContexts&&O.additionalContexts.length>0)y.messages.push(fY({type:"hook_additional_context",content:O.additionalContexts.map(TY),hookName:"UserPromptSubmit",toolUseID:`hook-${_W()}`,hookEvent:"UserPromptSubmit"}));if(O.message)switch(O.message.attachment.type){case"hook_success":if(!O.message.attachment.content)break;y.messages.push({...O.message,attachment:{...O.message.attachment,content:TY(O.message.attachment.content)}});break;default:y.messages.push(O.message);break}}return i("query_hooks_end"),y}var dZ=1e4;function TY(Q){if(Q.length>dZ)return`${Q.substring(0,dZ)}… [output truncated - exceeded ${dZ} characters]`;return Q}async function wW(Q,Z,W,X,V,J,K,H,B,z,G,L,w,v,_,P,C){let D=null,$=[],y=[],T=Q;if(typeof Q==="string")D=Q;else if(Q.length>0){i("query_image_processing_start");let A=[];for(let R of Q)if(R.type==="image"){let h=await nZ(R);if(h.dimensions){let r=$Z(h.dimensions);if(r)y.push(r)}A.push(h.block)}else A.push(R);T=A,i("query_image_processing_end");let N=A[A.length-1];if(N?.type==="text")D=N.text,$=A.slice(0,-1);else $=A}if(D===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let O=V?Object.values(V).filter(xY):[],j=O.map((A)=>A.id),l=V?await SY(V):new Map;i("query_pasted_image_processing_start");let n=await Promise.all(O.map(async(A)=>{let N={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return d("tengu_pasted_image_resize_attempt",{original_size_bytes:A.content.length}),{resized:await nZ(N),originalDimensions:A.dimensions,sourcePath:A.sourcePath??l.get(A.id)}})),S=[];for(let{resized:A,originalDimensions:N,sourcePath:R}of n){if(A.dimensions){let h=$Z(A.dimensions,R);if(h)y.push(h)}else if(N){let h=$Z(N,R);if(h)y.push(h)}else if(R)y.push(`[Image source: ${R}]`);S.push(A.block)}i("query_pasted_image_processing_end");let m=w;if(v&&D!==null&&D.startsWith("/")){let A=kY(D),N=A?cY(A.commandName,X.options.commands):void 0;if(N)if(mY(N))m=!1;else{let R=`/${uY(N)} isn't available over Remote Control.`;return{messages:[s({content:D,uuid:H}),dY(`<local-command-stdout>${R}</local-command-stdout>`)],shouldQuery:!1,resultText:R}}}let g=!P&&D!==null&&(Z!=="prompt"||m||!D.startsWith("/"));i("query_attachment_loading_start");let x=g?await hY(pY(D,X,J??null,[],K,z)):[];if(i("query_attachment_loading_end"),D!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-0.5.9-admb0s9z.mjs");return lZ(await A(D,$,x,X,W),y)}if(D!==null&&!m&&D.startsWith("/")){let{processSlashCommand:A}=await import("./processSlashCommand-0.5.9-x5wmbzr0.mjs"),N=await A(D,$,S,x,X,W,H,B,G);return lZ(N,y)}if(D!==null&&Z==="prompt"){let A=D.trim(),N=x.find((R)=>R.attachment.type==="agent_mention");if(N){let R=`@agent-${N.attachment.agentType}`,h=A===R,r=A.startsWith(R)&&!h;d("tengu_subagent_at_mention",{is_subagent_only:h,is_prefix:r})}}return lZ(CY(T,S,j,x,H,L,_),y)}function lZ(Q,Z){if(Z.length>0)Q.messages.push(s({content:Z.map((W)=>({type:"text",text:W})),isMeta:!0}));return Q}dW();HZ();GZ();gZ();cW();mW();_0();lW();gW();import{isAbsolute as aW,resolve as nW}from"path";function iW(Q,Z,W){let X=[],V=[],J=[];for(let[K,H]of Object.entries(Q)){let B=Z[K],z=P9(H.source,W?.projectRoot);if(!B)X.push(K);else if(H.sourceIsFallback)J.push(K);else if(!O9(z,B.source))V.push({name:K,declaredSource:z,materializedSource:B.source});else J.push(K)}return{missing:X,sourceChanged:V,upToDate:J}}async function PV(Q){let Z=U9();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let W;try{W=await E9()}catch(G){e(G),W={}}let X=iW(Z,W,{projectRoot:Y0()}),V=[...X.missing.map((G)=>({name:G,source:P9(Z[G].source),action:"install"})),...X.sourceChanged.map(({name:G,declaredSource:L})=>({name:G,source:L,action:"update"}))],J=[],K=[];for(let G of V){if(Q?.skip?.(G.name,G.source)){J.push(G.name);continue}if(G.action==="update"&&w9(G.source)&&!await _9(G.source.path)){b(`[reconcile] '${G.name}' declared path does not exist; keeping materialized entry`),J.push(G.name);continue}K.push(G)}if(K.length===0)return{installed:[],updated:[],failed:[],upToDate:X.upToDate,skipped:J};b(`[reconcile] ${K.length} marketplace(s): ${K.map((G)=>`${G.name}(${G.action})`).join(", ")}`);let H=[],B=[],z=[];for(let G=0;G<K.length;G++){let{name:L,source:w,action:v}=K[G];Q?.onProgress?.({type:"installing",name:L,action:v,index:G+1,total:K.length});try{let _=await y9(w);if(v==="install")H.push(L);else B.push(L);Q?.onProgress?.({type:"installed",name:L,alreadyMaterialized:_.alreadyMaterialized})}catch(_){let P=v9(_);z.push({name:L,error:P}),Q?.onProgress?.({type:"failed",name:L,error:P}),e(_)}}return{installed:H,updated:B,failed:z,upToDate:X.upToDate,skipped:J}}function P9(Q,Z){if((Q.source==="directory"||Q.source==="file")&&!aW(Q.path)){let W=Z??Y0(),X=A9(W);return{...Q,path:nW(X??W,Q.path)}}return Q}
|
|
24
|
-
export{XX as ka,KW as la,qX as ma,r9 as na,T0 as oa,ZQ as pa,YQ as qa,QQ as ra,vX as sa,dX as ta,mZ as ua,yZ as va,e0 as wa,oQ as xa,iW as ya,PV as za,PW as Aa,$W as Ba,jW as Ca,xW as Da,pW as Ea,uW as Fa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{MT as YJ,QT as DJ,UT as vJ,VT as c,WT as SJ,cU as ZJ}from"./cli-0.5.9-671nz4d9.mjs";import{dZ as CJ,kZ as TJ}from"./cli-0.5.9-knc0w8sn.mjs";import{C6 as OJ,D6 as FJ,Q$ as S,S$ as yJ,_6 as xJ,d8 as jJ,kca as p,sca as wJ,w7 as NJ}from"./cli-0.5.9-0b1wx67c.mjs";import{Ada as w,Bda as XJ,xda as R,zda as VJ}from"./cli-0.5.9-ap6gvqkx.mjs";import{Qfa as G,Tfa as QJ,tfa as v,ufa as y,yfa as JJ}from"./cli-0.5.9-ek649arf.mjs";import{iga as W,jga as C,pga as e}from"./cli-0.5.9-yazhwsgb.mjs";import{Fga as a,sga as s,tga as I,vga as t}from"./cli-0.5.9-eagw660r.mjs";import{Yja as i,ama as m,fia as r,gia as MJ,jia as d,pla as L}from"./cli-0.5.9-3bsjckc3.mjs";import{Lna as T,Mna as BJ}from"./cli-0.5.9-ysvsqcpa.mjs";import{mkdir as PJ,readdir as l,readFile as $J,unlink as qJ,writeFile as b}from"fs/promises";import{join as D}from"path";function HQ(J){if(M===J)return;M=J,U()}function UQ(){if(M===void 0)return;M=void 0,U()}function U(){try{GJ.emit()}catch{}}function KJ(J){return D(E(J),cJ)}async function g(J){let Q=KJ(J);try{let V=(await $J(Q,"utf-8")).trim(),X=parseInt(V,10);return isNaN(X)?0:X}catch{return 0}}async function RJ(J,Q){let V=KJ(J);await b(V,String(Q))}function OQ(){if(t(process.env.CLAUDE_CODE_ENABLE_TASKS))return!0;return!i()}async function xQ(J){let Q=E(J),V=await o(J),X;try{X=await S(V,P);let Z=await WJ(J);if(Z>0){let $=await g(J);if(Z>$)await RJ(J,Z)}let Y;try{Y=await l(Q)}catch{Y=[]}for(let $ of Y)if($.endsWith(".json")&&!$.startsWith(".")){let q=D(Q,$);try{await qJ(q)}catch{}}U()}finally{if(X)await X()}}function CQ(){if(process.env.CLAUDE_CODE_TASK_LIST_ID)return process.env.CLAUDE_CODE_TASK_LIST_ID;let J=YJ();if(J)return J.teamName;return c()||M||d()}function _J(J){return J.replace(/[^a-zA-Z0-9_-]/g,"-")}function E(J){return D(s(),"tasks",_J(J))}function A(J,Q){return D(E(J),`${_J(Q)}.json`)}async function bJ(J){let Q=E(J);try{await PJ(Q,{recursive:!0})}catch{}}async function WJ(J){let Q=E(J),V;try{V=await l(Q)}catch{return 0}let X=0;for(let Z of V){if(!Z.endsWith(".json"))continue;let Y=parseInt(Z.replace(".json",""),10);if(!isNaN(Y)&&Y>X)X=Y}return X}async function hJ(J){let[Q,V]=await Promise.all([WJ(J),g(J)]);return Math.max(Q,V)}async function vQ(J,Q){let V=await o(J),X;try{X=await S(V,P);let Z=await hJ(J),Y=String(Z+1),$={id:Y,...Q},q=A(J,Y);return await b(q,v($,null,2)),U(),Y}finally{if(X)await X()}}async function O(J,Q){let V=A(J,Q);try{let X=await $J(V,"utf-8"),Z=y(X),Y=pJ().safeParse(Z);if(!Y.success)return G(`[Tasks] Task ${Q} failed schema validation: ${Y.error.message}`),null;return Y.data}catch(X){if(C(X)==="ENOENT")return null;return G(`[Tasks] Failed to read task ${Q}: ${W(X)}`),p(X),null}}async function EJ(J,Q,V){let X=await O(J,Q);if(!X)return null;let Z={...X,...V,id:Q},Y=A(J,Q);return await b(Y,v(Z,null,2)),U(),Z}async function j(J,Q,V){let X=A(J,Q);if(!await O(J,Q))return null;let Y;try{return Y=await S(X,P),await EJ(J,Q,V)}finally{await Y?.()}}async function SQ(J,Q){let V=A(J,Q);try{let X=parseInt(Q,10);if(!isNaN(X)){let Y=await g(J);if(X>Y)await RJ(J,X)}try{await qJ(V)}catch(Y){if(C(Y)==="ENOENT")return!1;throw Y}let Z=await h(J);for(let Y of Z){let $=Y.blocks.filter((K)=>K!==Q),q=Y.blockedBy.filter((K)=>K!==Q);if($.length!==Y.blocks.length||q.length!==Y.blockedBy.length)await j(J,Y.id,{blocks:$,blockedBy:q})}return U(),!0}catch{return!1}}async function h(J){let Q=E(J),V;try{V=await l(Q)}catch{return[]}let X=V.filter((Y)=>Y.endsWith(".json")).map((Y)=>Y.replace(".json",""));return(await Promise.all(X.map((Y)=>O(J,Y)))).filter((Y)=>Y!==null)}async function AQ(J,Q,V){let[X,Z]=await Promise.all([O(J,Q),O(J,V)]);if(!X||!Z)return!1;if(!X.blocks.includes(V))await j(J,Q,{blocks:[...X.blocks,V]});if(!Z.blockedBy.includes(Q))await j(J,V,{blockedBy:[...Z.blockedBy,Q]});return!0}function LJ(J){return D(E(J),".lock")}async function o(J){await bJ(J);let Q=LJ(J);try{await b(Q,"",{flag:"wx"})}catch{}return Q}async function zQ(J,Q,V,X={}){let Z=A(J,Q);if(!await O(J,Q))return{success:!1,reason:"task_not_found"};if(X.checkAgentBusy)return uJ(J,Q,V);let $;try{$=await S(Z,P);let q=await O(J,Q);if(!q)return{success:!1,reason:"task_not_found"};if(q.owner&&q.owner!==V)return{success:!1,reason:"already_claimed",task:q};if(q.status==="completed")return{success:!1,reason:"already_resolved",task:q};let K=await h(J),B=new Set(K.filter((z)=>z.status!=="completed").map((z)=>z.id)),N=q.blockedBy.filter((z)=>B.has(z));if(N.length>0)return{success:!1,reason:"blocked",task:q,blockedByTasks:N};return{success:!0,task:await EJ(J,Q,{owner:V})}}catch(q){return G(`[Tasks] Failed to claim task ${Q}: ${W(q)}`),p(q),{success:!1,reason:"task_not_found"}}finally{if($)await $()}}async function uJ(J,Q,V){let X=await o(J),Z;try{Z=await S(X,P);let Y=await h(J),$=Y.find((_)=>_.id===Q);if(!$)return{success:!1,reason:"task_not_found"};if($.owner&&$.owner!==V)return{success:!1,reason:"already_claimed",task:$};if($.status==="completed")return{success:!1,reason:"already_resolved",task:$};let q=new Set(Y.filter((_)=>_.status!=="completed").map((_)=>_.id)),K=$.blockedBy.filter((_)=>q.has(_));if(K.length>0)return{success:!1,reason:"blocked",task:$,blockedByTasks:K};let B=Y.filter((_)=>_.status!=="completed"&&_.owner===V&&_.id!==Q);if(B.length>0)return{success:!1,reason:"agent_busy",task:$,busyWithTasks:B.map((_)=>_.id)};return{success:!0,task:await j(J,Q,{owner:V})}}catch(Y){return G(`[Tasks] Failed to claim task ${Q} with busy check: ${W(Y)}`),p(Y),{success:!1,reason:"task_not_found"}}finally{if(Z)await Z()}}async function MQ(J,Q,V,X){let Y=(await h(J)).filter((K)=>K.status!=="completed"&&(K.owner===Q||K.owner===V));for(let K of Y)await j(J,K.id,{owner:void 0,status:"pending"});if(Y.length>0)G(`[Tasks] Unassigned ${Y.length} task(s) from ${V}`);let q=`${V} ${X==="terminated"?"was terminated":"has shut down"}.`;if(Y.length>0){let K=Y.map((B)=>`#${B.id} "${B.subject}"`).join(", ");q+=` ${Y.length} task(s) were unassigned: ${K}. Use TaskList to check availability and TaskUpdate with owner to reassign them to idle teammates.`}return{unassignedTasks:Y.map((K)=>({id:K.id,subject:K.subject})),notificationMessage:q}}var GJ,M,BQ,fJ,pJ,cJ=".highwatermark",P;var HJ=T(()=>{VJ();m();jJ();QJ();a();e();XJ();yJ();wJ();MJ();JJ();ZJ();DJ();GJ=r();BQ=GJ.subscribe;fJ=w(()=>R.enum(["pending","in_progress","completed"])),pJ=w(()=>R.object({id:R.string(),subject:R.string(),description:R.string(),activeForm:R.string().optional(),owner:R.string().optional(),status:fJ(),blocks:R.array(R.string()),blockedBy:R.array(R.string()),metadata:R.record(R.string(),R.unknown()).optional()})),P={retries:{retries:30,minTimeout:5,maxTimeout:100}}});function n(J){return J==="tmux"||J==="iterm2"}var UJ=()=>{};import{mkdirSync as IJ,readFileSync as lJ,writeFileSync as gJ}from"fs";import{mkdir as oJ,readFile as AJ,rm as k,writeFile as nJ}from"fs/promises";import{join as f}from"path";function zJ(J){return J.replace(/[^a-zA-Z0-9]/g,"-").toLowerCase()}function nQ(J){return J.replace(/@/g,"-")}function u(J){return f(I(),zJ(J))}function F(J){return f(u(J),"config.json")}function H(J){try{let Q=lJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}async function kJ(J){try{let Q=await AJ(F(J),"utf-8");return y(Q)}catch(Q){if(C(Q)==="ENOENT")return null;return G(`[TeammateTool] Failed to read team file for ${J}: ${W(Q)}`),null}}function x(J,Q){let V=u(J);IJ(V,{recursive:!0}),gJ(F(J),v(Q,null,2))}async function rJ(J,Q){let V=u(J);await oJ(V,{recursive:!0}),await nJ(F(J),v(Q,null,2))}function kQ(J,Q){let V=Q.agentId||Q.name;if(!V)return G("[TeammateTool] removeTeammateFromTeamFile called with no identifier"),!1;let X=H(J);if(!X)return G(`[TeammateTool] Cannot remove teammate ${V}: failed to read team file for "${J}"`),!1;let Z=X.members.length;if(X.members=X.members.filter((Y)=>{if(Q.agentId&&Y.agentId===Q.agentId)return!1;if(Q.name&&Y.name===Q.name)return!1;return!0}),X.members.length===Z)return G(`[TeammateTool] Teammate ${V} not found in team file for "${J}"`),!1;return x(J,X),G(`[TeammateTool] Removed teammate from team file: ${V}`),!0}function rQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[];if(!X.includes(Q))X.push(Q),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Added ${Q} to hidden panes for team ${J}`);return!0}function dQ(J,Q){let V=H(J);if(!V)return!1;let X=V.hiddenPaneIds??[],Z=X.indexOf(Q);if(Z!==-1)X.splice(Z,1),V.hiddenPaneIds=X,x(J,V),G(`[TeammateTool] Removed ${Q} from hidden panes for team ${J}`);return!0}function iQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.tmuxPaneId===Q);if(X===-1)return!1;if(V.members.splice(X,1),V.hiddenPaneIds){let Z=V.hiddenPaneIds.indexOf(Q);if(Z!==-1)V.hiddenPaneIds.splice(Z,1)}return x(J,V),G(`[TeammateTool] Removed member with pane ${Q} from team ${J}`),!0}function mQ(J,Q){let V=H(J);if(!V)return!1;let X=V.members.findIndex((Z)=>Z.agentId===Q);if(X===-1)return!1;return V.members.splice(X,1),x(J,V),G(`[TeammateTool] Removed member ${Q} from team ${J}`),!0}function dJ(J,Q,V){let X=H(J);if(!X)return!1;let Z=X.members.find(($)=>$.name===Q);if(!Z)return G(`[TeammateTool] Cannot set member mode: member ${Q} not found in team ${J}`),!1;if(Z.mode===V)return!0;let Y=X.members.map(($)=>$.name===Q?{...$,mode:V}:$);return x(J,{...X,members:Y}),G(`[TeammateTool] Set member ${Q} in team ${J} to mode: ${V}`),!0}function sQ(J,Q){if(!SJ())return;let V=Q??c(),X=vJ();if(V&&X)dJ(V,X,J)}function tQ(J,Q){let V=H(J);if(!V)return!1;let X=new Map(Q.map(($)=>[$.memberName,$.mode])),Z=!1,Y=V.members.map(($)=>{let q=X.get($.name);if(q!==void 0&&$.mode!==q)return Z=!0,{...$,mode:q};return $});if(Z)x(J,{...V,members:Y}),G(`[TeammateTool] Set ${Q.length} member modes in team ${J}`);return!0}async function aQ(J,Q,V){let X=await kJ(J);if(!X){G(`[TeammateTool] Cannot set member active: team ${J} not found`);return}let Z=X.members.find((Y)=>Y.name===Q);if(!Z){G(`[TeammateTool] Cannot set member active: member ${Q} not found in team ${J}`);return}if(Z.isActive===V)return;Z.isActive=V,await rJ(J,X),G(`[TeammateTool] Set member ${Q} in team ${J} to ${V?"active":"idle"}`)}async function iJ(J){let Q=f(J,".git"),V=null;try{let Z=(await AJ(Q,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(Z&&Z[1]){let Y=Z[1],$=f(Y,"..","..");V=f($,"..")}}catch{}if(V){let X=await OJ(xJ(),["worktree","remove","--force",J],{cwd:V});if(X.code===0){G(`[TeammateTool] Removed worktree via git: ${J}`);return}if(X.stderr?.includes("not a working tree")){G(`[TeammateTool] Worktree already removed: ${J}`);return}G(`[TeammateTool] git worktree remove failed, falling back to rm: ${X.stderr}`)}try{await k(J,{recursive:!0,force:!0}),G(`[TeammateTool] Removed worktree directory manually: ${J}`)}catch(X){G(`[TeammateTool] Failed to remove worktree ${J}: ${W(X)}`)}}function eQ(J){L().add(J)}function JV(J){L().delete(J)}async function QV(){let J=L();if(J.size===0)return;let Q=Array.from(J);G(`cleanupSessionTeams: removing ${Q.length} orphan team dir(s): ${Q.join(", ")}`),await Promise.allSettled(Q.map((V)=>mJ(V))),await Promise.allSettled(Q.map((V)=>sJ(V))),J.clear()}async function mJ(J){let Q=H(J);if(!Q)return;let V=Q.members.filter((q)=>q.name!==CJ&&q.tmuxPaneId&&q.backendType&&n(q.backendType));if(V.length===0)return;let[{ensureBackendsRegistered:X,getBackendByType:Z},{isInsideTmux:Y}]=await Promise.all([import("./registry-0.5.9-tkmx5qgm.mjs"),import("./detection-0.5.9-mpgxg1d5.mjs")]);await X();let $=!await Y();await Promise.allSettled(V.map(async(q)=>{if(!q.tmuxPaneId||!q.backendType||!n(q.backendType))return;let K=await Z(q.backendType).killPane(q.tmuxPaneId,$);G(`cleanupSessionTeams: killPane ${q.name} (${q.backendType} ${q.tmuxPaneId}) → ${K}`)}))}async function sJ(J){let Q=zJ(J),V=H(J),X=[];if(V){for(let $ of V.members)if($.worktreePath)X.push($.worktreePath)}for(let $ of X)await iJ($);let Z=u(J);try{await k(Z,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up team directory: ${Z}`)}catch($){G(`[TeammateTool] Failed to clean up team directory ${Z}: ${W($)}`)}let Y=E(Q);try{await k(Y,{recursive:!0,force:!0}),G(`[TeammateTool] Cleaned up tasks directory: ${Y}`),U()}catch($){G(`[TeammateTool] Failed to clean up tasks directory ${Y}: ${W($)}`)}}var oQ;var tJ=T(()=>{VJ();m();QJ();a();e();FJ();NJ();XJ();JJ();HJ();ZJ();UJ();TJ();oQ=w(()=>R.strictObject({operation:R.enum(["spawnTeam","cleanup"]).describe("Operation: spawnTeam to create a team, cleanup to remove team and task directories."),agent_type:R.string().optional().describe('Type/role of the team lead (e.g., "researcher", "test-runner"). Used for team file and inter-agent coordination.'),team_name:R.string().optional().describe("Name for the new team to create (required for spawnTeam)."),description:R.string().optional().describe("Team description/purpose (only used with spawnTeam).")}))});
|
|
2
|
-
export{HQ as XR,UQ as YR,BQ as ZR,fJ as _R,OQ as $R,xQ as aS,CQ as bS,_J as cS,E as dS,bJ as eS,vQ as fS,O as gS,j as hS,SQ as iS,h as jS,AQ as kS,zQ as lS,MQ as mS,HJ as nS,n as oS,UJ as pS,oQ as qS,zJ as rS,nQ as sS,u as tS,F as uS,H as vS,kJ as wS,rJ as xS,kQ as yS,rQ as zS,dQ as AS,iQ as BS,mQ as CS,dJ as DS,sQ as ES,tQ as FS,aQ as GS,eQ as HS,JV as IS,QV as JS,sJ as KS,tJ as LS};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Sd as j,Td as w,Ud as _,Vd as D,Wd as L,Xd as A,Yd as O}from"./cli-0.5.9-8ndgy03m.mjs";import{An as R,Dn as b,hO as h,jO as y,ly as W,oy as V,qI as X,qy as C,rI as I}from"./cli-0.5.9-k9yedz53.mjs";import{k6 as Q,kca as U,l6 as N,sca as S}from"./cli-0.5.9-0b1wx67c.mjs";import{Oea as K,Qea as v}from"./cli-0.5.9-4s8nynfd.mjs";import{Vfa as x,Zfa as M}from"./cli-0.5.9-wkhmkyaq.mjs";import{iga as B,pga as F}from"./cli-0.5.9-yazhwsgb.mjs";N();F();y();S();I();b();M();C();v();O();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${Q.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};K("tengu_plugin_command_failed",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await j(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await w(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${Q.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);K("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await _(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await L();if(!z.success)throw Error(z.message);console.log(`${Q.tick} ${z.message}`),K("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
|
|
2
|
-
`);let q=await A(z,J);if(!q.success)throw Error(q.message);if(x(`${Q.tick} ${q.message}
|
|
3
|
-
`),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_updated_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await h(0)}catch(q){Z(q,"update",z)}}
|
|
4
|
-
export{g as s,a as t,i as u,u as v,n as w,r as x};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{yJ as Q,zJ as $}from"./cli-0.5.9-k9yedz53.mjs";import{Sga as V,Tga as P,Uha as W,Vha as E}from"./cli-0.5.9-3bsjckc3.mjs";import{Lna as L}from"./cli-0.5.9-ysvsqcpa.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
|
|
2
|
-
export{v as ac,C as bc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ya as Y}from"./cli-0.5.9-1y9n9z2h.mjs";import{hR as N,iR as C}from"./cli-0.5.9-z87j725g.mjs";import{eca as A,gca as w}from"./cli-0.5.9-0b1wx67c.mjs";import{Oea as B,Qea as k}from"./cli-0.5.9-4s8nynfd.mjs";import{Qfa as W,Tfa as j,ufa as L,yfa as E}from"./cli-0.5.9-ek649arf.mjs";import{iga as G,pga as K}from"./cli-0.5.9-yazhwsgb.mjs";k();C();import{randomUUID as O}from"crypto";j();w();K();E();function T(f){return f!==null&&typeof f==="object"&&"type"in f&&typeof f.type==="string"}function P(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_response"&&"response"in f}function S(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_request"&&"request_id"in f&&"request"in f}function v(f){if((f.type==="user"||f.type==="assistant")&&f.isVirtual)return!1;return f.type==="user"||f.type==="assistant"||f.type==="system"&&f.subtype==="local_command"}function q(f){if(f.type!=="user"||f.isMeta||f.toolUseResult||f.isCompactSummary)return;if(f.origin&&f.origin.kind!=="human")return;let X=f.message.content,Q;if(typeof X==="string")Q=X;else for(let Z of X)if(Z.type==="text"){Q=Z.text;break}if(!Q)return;return A(Q)||void 0}function p(f,X,Q,$,Z,z){try{let H=Y(L(f));if(P(H)){W("[bridge:repl] Ingress message type=control_response"),Z?.(H);return}if(S(H)){W(`[bridge:repl] Inbound control_request subtype=${H.request.subtype}`),z?.(H);return}if(!T(H))return;let J="uuid"in H&&typeof H.uuid==="string"?H.uuid:void 0;if(J&&X.has(J)){W(`[bridge:repl] Ignoring echo: type=${H.type} uuid=${J}`);return}if(J&&Q.has(J)){W(`[bridge:repl] Ignoring re-delivered inbound: type=${H.type} uuid=${J}`);return}if(W(`[bridge:repl] Ingress message type=${H.type}${J?` uuid=${J}`:""}`),H.type==="user"){if(J)Q.add(J);B("tengu_bridge_message_received",{is_repl:!0}),$?.(H)}else W(`[bridge:repl] Ignoring non-user inbound message: type=${H.type}`)}catch(H){W(`[bridge:repl] Failed to parse ingress message: ${G(H)}`)}}var y="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function g(f,X){let{transport:Q,sessionId:$,outboundOnly:Z,onInterrupt:z,onSetModel:H,onSetMaxThinkingTokens:J,onSetPermissionMode:h}=X;if(!Q){W("[bridge:repl] Cannot respond to control_request: transport not configured");return}let V;if(Z&&f.request.subtype!=="initialize"){V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:y}};let x={...V,session_id:$};Q.write(x),W(`[bridge:repl] Rejected ${f.request.subtype} (outbound-only) request_id=${f.request_id}`);return}switch(f.request.subtype){case"initialize":V={type:"control_response",response:{subtype:"success",request_id:f.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":H?.(f.request.model),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_max_thinking_tokens":J?.(f.request.max_thinking_tokens),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_permission_mode":{let x=h?.(f.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(x.ok)V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};else V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:x.error}};break}case"interrupt":z?.(),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;default:V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:`REPL bridge does not handle control_request subtype: ${f.request.subtype}`}}}let _={...V,session_id:$};Q.write(_),W(`[bridge:repl] Sent control_response for ${f.request.subtype} request_id=${f.request_id} result=${V.response.subtype}`)}function d(f){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...N},modelUsage:{},permission_denials:[],session_id:f,uuid:O()}}class R{capacity;ring;set=new Set;writeIdx=0;constructor(f){this.capacity=f,this.ring=Array(f)}add(f){if(this.set.has(f))return;let X=this.ring[this.writeIdx];if(X!==void 0)this.set.delete(X);this.ring[this.writeIdx]=f,this.set.add(f),this.writeIdx=(this.writeIdx+1)%this.capacity}has(f){return this.set.has(f)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
|
|
2
|
-
export{v as Sa,q as Ta,p as Ua,g as Va,d as Wa,R as Xa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Fga as F,vga as w}from"./cli-0.5.9-eagw660r.mjs";import{Lna as D}from"./cli-0.5.9-ysvsqcpa.mjs";function Q(b){z=b}function V(){let b=z?.()??{};if(!w(process.env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB))return Object.keys(b).length>0?{...process.env,...b}:process.env;let d={...process.env,...b};for(let q of J)delete d[q],delete d[`INPUT_${q}`];return d}var J,z;var L=D(()=>{F();J=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_FOUNDRY_API_KEY","ANTHROPIC_CUSTOM_HEADERS","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_TRACES_HEADERS","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","GOOGLE_APPLICATION_CREDENTIALS","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_RUNTIME_URL","ALL_INPUTS","OVERRIDE_GITHUB_TOKEN","DEFAULT_WORKFLOW_TOKEN","SSH_SIGNING_KEY"]});
|
|
2
|
-
export{Q as UR,V as VR,L as WR};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Lna as n}from"./cli-0.5.9-ysvsqcpa.mjs";function o(){return{}}function e(){return null}async function i(){}function g(){return!1}function r(){}function u(){}function f(){}async function l(){}var t=()=>{};
|
|
2
|
-
export{o as LR,e as MR,i as NR,g as OR,r as PR,u as QR,f as RR,l as SR,t as TR};
|