@claudiolabs/claudin 1.1.20 → 1.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/AgentTool-1.1.21-enrxqdsb.mjs +1 -0
- package/dist/chunks/App-1.1.21-x1hrya65.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.21-q3rfm86r.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.1.21-djjt8wjf.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.21-8rxzv91c.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.21-2mv1yf69.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.21-qk8b7h6c.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.21-26vykmpr.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.21-3xgr69zd.mjs +6 -0
- package/dist/chunks/Doctor-1.1.21-yv90ebbh.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.21-xbb9damr.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.21-vghjz16w.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.21-s80vswk4.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.21-vcrwctz5.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.21-dx1ga7w0.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.21-v9s07bhb.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.21-r9zcajjp.mjs +1 -0
- package/dist/chunks/REPL-1.1.21-6jn26haf.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.21-s9pjbbba.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.1.21-e2efafxn.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.21-sbtxsq9w.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.21-jbdthnzv.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.21-rg1e4ya1.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.21-th8y0yfa.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.21-ns92ypnd.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.21-tk81657g.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.21-8b6473mc.mjs +1 -0
- package/dist/chunks/add-dir-1.1.21-y2qcrtjr.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.21-0c6btjcc.mjs +1 -0
- package/dist/chunks/agents-1.1.21-1t7q92hk.mjs +3 -0
- package/dist/chunks/agents-1.1.21-jppr4jq8.mjs +110 -0
- package/dist/chunks/api-1.1.21-g8sbqk15.mjs +1 -0
- package/dist/chunks/asciicast-1.1.21-bvqngtzz.mjs +1 -0
- package/dist/chunks/assistant-1.1.21-1zc3dwty.mjs +1 -0
- package/dist/chunks/auth-1.1.21-65a9bbnh.mjs +1 -0
- package/dist/chunks/auth-1.1.21-f0ghh3mq.mjs +1 -0
- package/dist/chunks/autoMode-1.1.21-n2a8t9t3.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.21-9fx83p2j.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.21-52ky9ghk.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.21-j6t4h3jn.mjs +1 -0
- package/dist/chunks/branch-1.1.21-71gampws.mjs +4 -0
- package/dist/chunks/bridge-1.1.21-d1gzs1zz.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.21-9pps44qe.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.21-50r8crvp.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.21-e92yewh9.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.21-ckngyn7x.mjs +1 -0
- package/dist/chunks/btw-1.1.21-aqj4z7z7.mjs +1 -0
- package/dist/chunks/buddy-1.1.21-74rtch74.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.21-a8ne39rt.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.21-pw082ztb.mjs +4 -0
- package/dist/chunks/caches-1.1.21-7s65hxx4.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.1.21-0fp1r8xs.mjs +1 -0
- package/dist/chunks/claudemd-1.1.21-q4k3d1km.mjs +1 -0
- package/dist/chunks/clear-1.1.21-9jjttvr0.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.21-jr9rxdmx.mjs +1 -0
- package/dist/chunks/cli-1.1.21-03kdy8xc.mjs +2 -0
- package/dist/chunks/cli-1.1.21-04brya8b.mjs +2 -0
- package/dist/chunks/cli-1.1.21-0dp6e2at.mjs +2 -0
- package/dist/chunks/cli-1.1.21-0etv5x2s.mjs +2 -0
- package/dist/chunks/cli-1.1.21-0g1a3shp.mjs +2 -0
- package/dist/chunks/cli-1.1.21-0mn9qshg.mjs +2 -0
- package/dist/chunks/cli-1.1.21-0n54q1mb.mjs +12 -0
- package/dist/chunks/cli-1.1.21-0sqcznka.mjs +4 -0
- package/dist/chunks/cli-1.1.21-0w4y6zch.mjs +2 -0
- package/dist/chunks/cli-1.1.21-15f55e7j.mjs +2 -0
- package/dist/chunks/cli-1.1.21-1a9968t0.mjs +3 -0
- package/dist/chunks/cli-1.1.21-1h90n4wy.mjs +2 -0
- package/dist/chunks/cli-1.1.21-1hdfkyjv.mjs +2 -0
- package/dist/chunks/cli-1.1.21-1mhmk0z3.mjs +2 -0
- package/dist/chunks/cli-1.1.21-1mxg753a.mjs +2 -0
- package/dist/chunks/cli-1.1.21-1y508j57.mjs +2 -0
- package/dist/chunks/cli-1.1.21-27a8sw98.mjs +2 -0
- package/dist/chunks/cli-1.1.21-29jp27ks.mjs +2 -0
- package/dist/chunks/cli-1.1.21-2b91fkp9.mjs +66 -0
- package/dist/chunks/cli-1.1.21-2cj3wv9s.mjs +3 -0
- package/dist/chunks/cli-1.1.21-2cqbdmfj.mjs +2 -0
- package/dist/chunks/cli-1.1.21-2gsy9rkt.mjs +7 -0
- package/dist/chunks/cli-1.1.21-2nezc8rm.mjs +2 -0
- package/dist/chunks/cli-1.1.21-2txzm68v.mjs +2 -0
- package/dist/chunks/cli-1.1.21-2zvrsnnb.mjs +15 -0
- package/dist/chunks/cli-1.1.21-36nmjsvc.mjs +3 -0
- package/dist/chunks/cli-1.1.21-3g5qq5vn.mjs +2 -0
- package/dist/chunks/cli-1.1.21-3n2szerd.mjs +2 -0
- package/dist/chunks/cli-1.1.21-3v1e2mge.mjs +3 -0
- package/dist/chunks/cli-1.1.21-3x0d0qkq.mjs +2 -0
- package/dist/chunks/cli-1.1.21-4010086n.mjs +39 -0
- package/dist/chunks/cli-1.1.21-4jzagkc6.mjs +2 -0
- package/dist/chunks/cli-1.1.21-4ka4k9j1.mjs +2 -0
- package/dist/chunks/cli-1.1.21-4s3mz86q.mjs +2 -0
- package/dist/chunks/cli-1.1.21-510h0rfd.mjs +2 -0
- package/dist/chunks/cli-1.1.21-5bxzgpbd.mjs +16 -0
- package/dist/chunks/cli-1.1.21-5jkvz9tr.mjs +2 -0
- package/dist/chunks/cli-1.1.21-5srfgw0e.mjs +2 -0
- package/dist/chunks/cli-1.1.21-5znk8g89.mjs +2 -0
- package/dist/chunks/cli-1.1.21-61eyxvr8.mjs +2 -0
- package/dist/chunks/cli-1.1.21-6drn6rpn.mjs +2 -0
- package/dist/chunks/cli-1.1.21-71yrrgxv.mjs +2 -0
- package/dist/chunks/cli-1.1.21-72p8ma2g.mjs +2 -0
- package/dist/chunks/cli-1.1.21-76ttz1tt.mjs +2 -0
- package/dist/chunks/cli-1.1.21-7bq44n89.mjs +2 -0
- package/dist/chunks/cli-1.1.21-7fymk48z.mjs +2 -0
- package/dist/chunks/cli-1.1.21-7gxr15wj.mjs +2 -0
- package/dist/chunks/cli-1.1.21-7q6ajew6.mjs +6 -0
- package/dist/chunks/cli-1.1.21-8022a544.mjs +3 -0
- package/dist/chunks/cli-1.1.21-811zr6vq.mjs +15 -0
- package/dist/chunks/cli-1.1.21-87rs5rvq.mjs +2 -0
- package/dist/chunks/cli-1.1.21-89hqsfpf.mjs +2 -0
- package/dist/chunks/cli-1.1.21-8db7fdfr.mjs +133 -0
- package/dist/chunks/cli-1.1.21-8f3dmt8c.mjs +2 -0
- package/dist/chunks/cli-1.1.21-8mbdp47n.mjs +34 -0
- package/dist/chunks/cli-1.1.21-8p4zm65z.mjs +4 -0
- package/dist/chunks/cli-1.1.21-8w2yv4xp.mjs +3 -0
- package/dist/chunks/cli-1.1.21-92zh5twv.mjs +2 -0
- package/dist/chunks/cli-1.1.21-93zvwec9.mjs +6 -0
- package/dist/chunks/cli-1.1.21-9fnv418t.mjs +24 -0
- package/dist/chunks/cli-1.1.21-9jq126pc.mjs +2 -0
- package/dist/chunks/cli-1.1.21-9za692z5.mjs +2 -0
- package/dist/chunks/cli-1.1.21-a6pwx2r1.mjs +2 -0
- package/dist/chunks/cli-1.1.21-aa0dfxt3.mjs +17 -0
- package/dist/chunks/cli-1.1.21-admbc6bh.mjs +2 -0
- package/dist/chunks/cli-1.1.21-adykpnkk.mjs +2 -0
- package/dist/chunks/cli-1.1.21-an07xgtv.mjs +25 -0
- package/dist/chunks/cli-1.1.21-arjp8fch.mjs +50 -0
- package/dist/chunks/cli-1.1.21-as9g92fa.mjs +4 -0
- package/dist/chunks/cli-1.1.21-atvca4b4.mjs +2 -0
- package/dist/chunks/cli-1.1.21-ayg2p1x9.mjs +133 -0
- package/dist/chunks/cli-1.1.21-b7q4e2tp.mjs +2 -0
- package/dist/chunks/cli-1.1.21-b7y0x2mz.mjs +3 -0
- package/dist/chunks/cli-1.1.21-b92n11f5.mjs +2 -0
- package/dist/chunks/cli-1.1.21-badssmqg.mjs +25 -0
- package/dist/chunks/cli-1.1.21-bbnxyfz6.mjs +4 -0
- package/dist/chunks/cli-1.1.21-bc6x1hhj.mjs +2 -0
- package/dist/chunks/cli-1.1.21-bjdtgm9x.mjs +2 -0
- package/dist/chunks/cli-1.1.21-bp86y1rn.mjs +2 -0
- package/dist/chunks/cli-1.1.21-c27qrh9k.mjs +2 -0
- package/dist/chunks/cli-1.1.21-cb82p9ss.mjs +24 -0
- package/dist/chunks/cli-1.1.21-ccarwr2t.mjs +2 -0
- package/dist/chunks/cli-1.1.21-cdk96yzq.mjs +2 -0
- package/dist/chunks/cli-1.1.21-cgspbjjg.mjs +2 -0
- package/dist/chunks/cli-1.1.21-cqsmyvsx.mjs +6 -0
- package/dist/chunks/cli-1.1.21-dvkgw1dj.mjs +4 -0
- package/dist/chunks/cli-1.1.21-e28mvxq4.mjs +2 -0
- package/dist/chunks/cli-1.1.21-e4qvgw9g.mjs +4 -0
- package/dist/chunks/cli-1.1.21-e8cbfmn6.mjs +2 -0
- package/dist/chunks/cli-1.1.21-ekphtr04.mjs +6 -0
- package/dist/chunks/cli-1.1.21-eqmp9rz1.mjs +2 -0
- package/dist/chunks/cli-1.1.21-er4j34m5.mjs +4 -0
- package/dist/chunks/cli-1.1.21-eray52nd.mjs +5426 -0
- package/dist/chunks/cli-1.1.21-ev8srpeg.mjs +18 -0
- package/dist/chunks/cli-1.1.21-exwxjwrp.mjs +17 -0
- package/dist/chunks/cli-1.1.21-f3caatgb.mjs +2 -0
- package/dist/chunks/cli-1.1.21-fbxz5jg5.mjs +21 -0
- package/dist/chunks/cli-1.1.21-fdf1j366.mjs +3 -0
- package/dist/chunks/cli-1.1.21-fn4xyb5w.mjs +2 -0
- package/dist/chunks/cli-1.1.21-ftenq1jj.mjs +24 -0
- package/dist/chunks/cli-1.1.21-fyryzam5.mjs +2 -0
- package/dist/chunks/cli-1.1.21-g2fr5c6z.mjs +3 -0
- package/dist/chunks/cli-1.1.21-g6wtm4qg.mjs +206 -0
- package/dist/chunks/cli-1.1.21-g7ve83cr.mjs +2 -0
- package/dist/chunks/cli-1.1.21-g9rmmx1z.mjs +6 -0
- package/dist/chunks/cli-1.1.21-gg6ksnw9.mjs +2 -0
- package/dist/chunks/cli-1.1.21-gyh1fxbr.mjs +20 -0
- package/dist/chunks/cli-1.1.21-h2y2n4jq.mjs +2 -0
- package/dist/chunks/cli-1.1.21-h82yh3wp.mjs +2 -0
- package/dist/chunks/cli-1.1.21-hdc9e0dr.mjs +2 -0
- package/dist/chunks/cli-1.1.21-hjkr35qk.mjs +2 -0
- package/dist/chunks/cli-1.1.21-hmex7wtk.mjs +4 -0
- package/dist/chunks/cli-1.1.21-hn93q5ch.mjs +1 -0
- package/dist/chunks/cli-1.1.21-j0qbp8ym.mjs +2 -0
- package/dist/chunks/cli-1.1.21-j5f9b05q.mjs +2 -0
- package/dist/chunks/cli-1.1.21-jkqtb9j1.mjs +2 -0
- package/dist/chunks/cli-1.1.21-jmrjkgt7.mjs +2 -0
- package/dist/chunks/cli-1.1.21-jqy3a4ze.mjs +9 -0
- package/dist/chunks/cli-1.1.21-kc7af745.mjs +5 -0
- package/dist/chunks/cli-1.1.21-kf8s641e.mjs +2 -0
- package/dist/chunks/cli-1.1.21-kkaftzqq.mjs +2 -0
- package/dist/chunks/cli-1.1.21-krwdkyza.mjs +18 -0
- package/dist/chunks/cli-1.1.21-kv15mvd0.mjs +3 -0
- package/dist/chunks/cli-1.1.21-m53y3ydn.mjs +2 -0
- package/dist/chunks/cli-1.1.21-m7dy7yxc.mjs +2 -0
- package/dist/chunks/cli-1.1.21-m84cxaww.mjs +2 -0
- package/dist/chunks/cli-1.1.21-mqxc9x6p.mjs +3 -0
- package/dist/chunks/cli-1.1.21-mysvm055.mjs +8 -0
- package/dist/chunks/cli-1.1.21-n00fkex6.mjs +15 -0
- package/dist/chunks/cli-1.1.21-nh0wz4ab.mjs +2 -0
- package/dist/chunks/cli-1.1.21-nqzn2wyp.mjs +2 -0
- package/dist/chunks/cli-1.1.21-ns0xhhjk.mjs +2 -0
- package/dist/chunks/cli-1.1.21-pbxjvmxd.mjs +2 -0
- package/dist/chunks/cli-1.1.21-phnkc3q1.mjs +2 -0
- package/dist/chunks/cli-1.1.21-pq9par9t.mjs +2 -0
- package/dist/chunks/cli-1.1.21-pqweg9t6.mjs +3 -0
- package/dist/chunks/cli-1.1.21-q2k4myze.mjs +2 -0
- package/dist/chunks/cli-1.1.21-q2xyk8fc.mjs +2 -0
- package/dist/chunks/cli-1.1.21-qgc6dd5n.mjs +2 -0
- package/dist/chunks/cli-1.1.21-qj7gkh71.mjs +2 -0
- package/dist/chunks/cli-1.1.21-qs47skyh.mjs +2 -0
- package/dist/chunks/cli-1.1.21-qvxw9ea2.mjs +2 -0
- package/dist/chunks/cli-1.1.21-qxx08ev5.mjs +2 -0
- package/dist/chunks/cli-1.1.21-qz8ykx4a.mjs +2 -0
- package/dist/chunks/cli-1.1.21-r90yap4s.mjs +4 -0
- package/dist/chunks/cli-1.1.21-rb0ytqxh.mjs +2 -0
- package/dist/chunks/cli-1.1.21-rtcccwys.mjs +2 -0
- package/dist/chunks/cli-1.1.21-rvm9rmen.mjs +2 -0
- package/dist/chunks/cli-1.1.21-rwr3npv8.mjs +2 -0
- package/dist/chunks/cli-1.1.21-s076czd6.mjs +60 -0
- package/dist/chunks/cli-1.1.21-sa93ge05.mjs +2 -0
- package/dist/chunks/cli-1.1.21-sk1w1xc8.mjs +2 -0
- package/dist/chunks/cli-1.1.21-sqrqvfx9.mjs +2 -0
- package/dist/chunks/cli-1.1.21-srp2gqhn.mjs +2 -0
- package/dist/chunks/cli-1.1.21-st3azfy2.mjs +2 -0
- package/dist/chunks/cli-1.1.21-syphtp6b.mjs +2 -0
- package/dist/chunks/cli-1.1.21-t4e7t3gb.mjs +2 -0
- package/dist/chunks/cli-1.1.21-tf5jnyct.mjs +2 -0
- package/dist/chunks/cli-1.1.21-tgkmdth7.mjs +3 -0
- package/dist/chunks/cli-1.1.21-tjgcqqx5.mjs +12 -0
- package/dist/chunks/cli-1.1.21-v8edsbtk.mjs +24 -0
- package/dist/chunks/cli-1.1.21-vb6krv5p.mjs +2 -0
- package/dist/chunks/cli-1.1.21-vbewc9m8.mjs +2 -0
- package/dist/chunks/cli-1.1.21-vgqvfdjj.mjs +45 -0
- package/dist/chunks/cli-1.1.21-vhz2g6dh.mjs +2 -0
- package/dist/chunks/cli-1.1.21-vpc12nrb.mjs +2 -0
- package/dist/chunks/cli-1.1.21-vqyps5tc.mjs +2 -0
- package/dist/chunks/cli-1.1.21-vtnh7am3.mjs +2 -0
- package/dist/chunks/cli-1.1.21-vtrbe9na.mjs +2 -0
- package/dist/chunks/cli-1.1.21-vyzdf2h8.mjs +2 -0
- package/dist/chunks/cli-1.1.21-w17d43nx.mjs +2 -0
- package/dist/chunks/cli-1.1.21-wermyahx.mjs +2 -0
- package/dist/chunks/cli-1.1.21-wq125rgf.mjs +2 -0
- package/dist/chunks/cli-1.1.21-wwrjy8z7.mjs +2 -0
- package/dist/chunks/cli-1.1.21-x34spqyp.mjs +2 -0
- package/dist/chunks/cli-1.1.21-x652vc6g.mjs +7 -0
- package/dist/chunks/cli-1.1.21-xa36je2k.mjs +2 -0
- package/dist/chunks/cli-1.1.21-xc1ka519.mjs +2 -0
- package/dist/chunks/cli-1.1.21-xds4bha6.mjs +2 -0
- package/dist/chunks/cli-1.1.21-xg5fsk6h.mjs +6 -0
- package/dist/chunks/cli-1.1.21-xkd51fv8.mjs +2 -0
- package/dist/chunks/cli-1.1.21-xngg1p8f.mjs +2 -0
- package/dist/chunks/cli-1.1.21-xrh2trhz.mjs +2 -0
- package/dist/chunks/cli-1.1.21-xsjr5sq9.mjs +2 -0
- package/dist/chunks/cli-1.1.21-xtdgxynh.mjs +9 -0
- package/dist/chunks/cli-1.1.21-xtysnd33.mjs +2 -0
- package/dist/chunks/cli-1.1.21-xx8dx3jd.mjs +4 -0
- package/dist/chunks/cli-1.1.21-y0d1dgzh.mjs +58 -0
- package/dist/chunks/cli-1.1.21-ybbcrjyr.mjs +2 -0
- package/dist/chunks/cli-1.1.21-ym854mnb.mjs +2 -0
- package/dist/chunks/cli-1.1.21-ymepfykz.mjs +2 -0
- package/dist/chunks/cli-1.1.21-ypkp1djh.mjs +5 -0
- package/dist/chunks/cli-1.1.21-yt2eqsfh.mjs +2 -0
- package/dist/chunks/cli-1.1.21-ytgz6a2f.mjs +2 -0
- package/dist/chunks/cli-1.1.21-yx5x54tp.mjs +2 -0
- package/dist/chunks/cli-1.1.21-yxj3mby7.mjs +2 -0
- package/dist/chunks/cli-1.1.21-yzg6k72r.mjs +2 -0
- package/dist/chunks/cli-1.1.21-z008y1nv.mjs +2 -0
- package/dist/chunks/cli-1.1.21-z3qkwz5y.mjs +2 -0
- package/dist/chunks/cli-1.1.21-z6tzkkrz.mjs +2 -0
- package/dist/chunks/cli-1.1.21-zmkcqsqx.mjs +42 -0
- package/dist/chunks/cli-1.1.21-zyz9s3k0.mjs +3 -0
- package/dist/chunks/client-1.1.21-2z9qpd9x.mjs +1 -0
- package/dist/chunks/color-1.1.21-hx6pdrvg.mjs +1 -0
- package/dist/chunks/compact-1.1.21-nwq0kqfv.mjs +3 -0
- package/dist/chunks/config-1.1.21-6a9bh364.mjs +1 -0
- package/dist/chunks/config-1.1.21-mk64wy1s.mjs +1 -0
- package/dist/chunks/constants-1.1.21-6t9m2kc1.mjs +1 -0
- package/dist/chunks/context-1.1.21-0q6bzccr.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.21-4hsfsph7.mjs +1 -0
- package/dist/chunks/conversation-1.1.21-7b7x9kge.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.21-h7jcrbjr.mjs +1 -0
- package/dist/chunks/copy-1.1.21-733m4ede.mjs +9 -0
- package/dist/chunks/cost-1.1.21-wygsny1s.mjs +1 -0
- package/dist/chunks/createSSHSession-1.1.21-xbfgy7b5.mjs +1 -0
- package/dist/chunks/createSession-1.1.21-mz06dkby.mjs +1 -0
- package/dist/chunks/debug-1.1.21-1mr7a9zd.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.21-vax6c0kp.mjs +1534 -0
- package/dist/chunks/desktop-1.1.21-pgp4t084.mjs +1 -0
- package/dist/chunks/detectRepository-1.1.21-4kgqz7gj.mjs +1 -0
- package/dist/chunks/detection-1.1.21-fpdqjz2w.mjs +1 -0
- package/dist/chunks/diff-1.1.21-eh8phe15.mjs +1 -0
- package/dist/chunks/doctor-1.1.21-qsk3dp6v.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.21-vk3kxvax.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.21-hhk47ba3.mjs +1 -0
- package/dist/chunks/effort-1.1.21-ekeecb10.mjs +13 -0
- package/dist/chunks/engine-1.1.21-d6pnpzs9.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.21-45xt8y53.mjs +1 -0
- package/dist/chunks/envUtils-1.1.21-602cy0p0.mjs +1 -0
- package/dist/chunks/environmentSelection-1.1.21-sdkr95ba.mjs +1 -0
- package/dist/chunks/environments-1.1.21-xc2zd8j5.mjs +1 -0
- package/dist/chunks/errors-1.1.21-zpsc24qr.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.21-wktrh3tf.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.21-h0jd5fma.mjs +1 -0
- package/dist/chunks/exit-1.1.21-s6bxy0s5.mjs +1 -0
- package/dist/chunks/explorer-1.1.21-yecddj8m.mjs +1 -0
- package/dist/chunks/export-1.1.21-b5aa7w8q.mjs +2 -0
- package/dist/chunks/extra-usage-1.1.21-ccmxd1ga.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.1.21-jysky3gv.mjs +1 -0
- package/dist/chunks/fast-1.1.21-wdpp74vz.mjs +1 -0
- package/dist/chunks/feedback-1.1.21-gc3be80r.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.1.21-cs1b38yg.mjs +1 -0
- package/dist/chunks/git-1.1.21-ncfwpbjz.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.21-qya4z4p9.mjs +1 -0
- package/dist/chunks/goal-1.1.21-a70wv2cb.mjs +4 -0
- package/dist/chunks/growthbook-1.1.21-hmscgg3x.mjs +1 -0
- package/dist/chunks/headless-1.1.21-dwdnz8rt.mjs +2 -0
- package/dist/chunks/heapdump-1.1.21-tvazwzf0.mjs +6 -0
- package/dist/chunks/help-1.1.21-c9hbdjta.mjs +1 -0
- package/dist/chunks/hookChains-1.1.21-acyv2xry.mjs +3 -0
- package/dist/chunks/hooks-1.1.21-cfmmnnah.mjs +1 -0
- package/dist/chunks/hooks-1.1.21-w12e5h5b.mjs +79 -0
- package/dist/chunks/ide-1.1.21-wywpj723.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.21-yhb521r3.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.1.21-kk58cty9.mjs +1 -0
- package/dist/chunks/index-1.1.21-3b6xa2yf.mjs +1 -0
- package/dist/chunks/index-1.1.21-3d6h7ke1.mjs +1 -0
- package/dist/chunks/index-1.1.21-57kd6ptp.mjs +1 -0
- package/dist/chunks/index-1.1.21-593vrygw.mjs +23 -0
- package/dist/chunks/index-1.1.21-5fmfkm8y.mjs +9 -0
- package/dist/chunks/index-1.1.21-6zxs2rfg.mjs +1 -0
- package/dist/chunks/index-1.1.21-8bhdk6jc.mjs +5 -0
- package/dist/chunks/index-1.1.21-adb7btws.mjs +1 -0
- package/dist/chunks/index-1.1.21-etcjfd99.mjs +1 -0
- package/dist/chunks/index-1.1.21-fy80jkp2.mjs +1 -0
- package/dist/chunks/index-1.1.21-hbxv4pgp.mjs +1 -0
- package/dist/chunks/index-1.1.21-hytfcvqs.mjs +1 -0
- package/dist/chunks/index-1.1.21-m0a3fv04.mjs +30 -0
- package/dist/chunks/index-1.1.21-m167t33s.mjs +1 -0
- package/dist/chunks/index-1.1.21-q5vrbm1a.mjs +1 -0
- package/dist/chunks/index-1.1.21-s1aj62xz.mjs +1 -0
- package/dist/chunks/index-1.1.21-srxg6mfj.mjs +1 -0
- package/dist/chunks/index-1.1.21-vcbqyp49.mjs +1 -0
- package/dist/chunks/index-1.1.21-wqh7rgwt.mjs +2 -0
- package/dist/chunks/index-1.1.21-xc8hadvs.mjs +9 -0
- package/dist/chunks/index-1.1.21-y0mjkxt4.mjs +1 -0
- package/dist/chunks/index-1.1.21-zn4zb4j6.mjs +2 -0
- package/dist/chunks/index-1.1.21-zphh9zyt.mjs +1 -0
- package/dist/chunks/init-1.1.21-3rsjrj70.mjs +1 -0
- package/dist/chunks/initReplBridge-1.1.21-t8zgkgkq.mjs +1 -0
- package/dist/chunks/ink-1.1.21-zrg02gjq.mjs +1 -0
- package/dist/chunks/insights-1.1.21-08rs6ycg.mjs +870 -0
- package/dist/chunks/install-1.1.21-fvsrnj75.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.21-kbd8kwxx.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.21-pvac1nvj.mjs +1 -0
- package/dist/chunks/instrumentation-1.1.21-3ah0jawp.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.21-y8fy1vbg.mjs +1 -0
- package/dist/chunks/keybindings-1.1.21-wmvt9cka.mjs +2 -0
- package/dist/chunks/knowledge-1.1.21-z92hhppb.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.21-cv8x9bkm.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.21-kwpyjgm3.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.21-m59wf0fn.mjs +1 -0
- package/dist/chunks/log-1.1.21-xwc604af.mjs +1 -0
- package/dist/chunks/main-1.1.21-mpr5depp.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.21-nk3htdmq.mjs +1 -0
- package/dist/chunks/mcp-1.1.21-e7spj6dg.mjs +1 -0
- package/dist/chunks/mcp-1.1.21-mv23tsxc.mjs +17 -0
- package/dist/chunks/mcp-1.1.21-wa8c077q.mjs +4 -0
- package/dist/chunks/mcpb-1.1.21-bv8pwy9m.mjs +1 -0
- package/dist/chunks/memory-1.1.21-gqa797mn.mjs +72 -0
- package/dist/chunks/model-1.1.21-3dg8jye0.mjs +1 -0
- package/dist/chunks/model-1.1.21-3x98v8x4.mjs +2 -0
- package/dist/chunks/node-1.1.21-zxmyqm2z.mjs +14 -0
- package/dist/chunks/oauth-1.1.21-4ffdtf1q.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.21-9p741891.mjs +14 -0
- package/dist/chunks/output-style-1.1.21-kxvx8zbe.mjs +1 -0
- package/dist/chunks/package-ZOVFJE7Z-1.1.21-myehvasc.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.1.21-dtjr5vb7.mjs +1 -0
- package/dist/chunks/parser-1.1.21-jaqdwq7t.mjs +1 -0
- package/dist/chunks/passes-1.1.21-g830qx07.mjs +1 -0
- package/dist/chunks/permissions-1.1.21-ec5a6xxt.mjs +3 -0
- package/dist/chunks/permissions-1.1.21-qdday4sh.mjs +1 -0
- package/dist/chunks/plan-1.1.21-f5qe7hem.mjs +1 -0
- package/dist/chunks/plist-1.1.21-y82gjgzs.mjs +1 -0
- package/dist/chunks/plugin-1.1.21-0kfwxmv2.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.21-f5ddb5rc.mjs +1 -0
- package/dist/chunks/plugins-1.1.21-exphk1gb.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.21-jhp4m01m.mjs +2 -0
- package/dist/chunks/print-1.1.21-rcjs5pc4.mjs +57 -0
- package/dist/chunks/process-1.1.21-03zz92gq.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.21-zey1mfgx.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.21-cwxbh5pw.mjs +9 -0
- package/dist/chunks/prompt-1.1.21-49amsrvt.mjs +1 -0
- package/dist/chunks/prompt-1.1.21-gv2b1rk5.mjs +1 -0
- package/dist/chunks/prompts-1.1.21-hggxct4d.mjs +1 -0
- package/dist/chunks/protocolHandler-1.1.21-e974kgtb.mjs +13 -0
- package/dist/chunks/provider-1.1.21-xnprbehk.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.21-b4tnf9te.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.21-0n0739n4.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.1.21-s59gtr3x.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.1.21-wb1mef7h.mjs +26 -0
- package/dist/chunks/registry-1.1.21-knz7xa0h.mjs +1 -0
- package/dist/chunks/release-notes-1.1.21-mvr373q4.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.21-b4czg147.mjs +2 -0
- package/dist/chunks/remote-env-1.1.21-dbnxeqkg.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.21-fr3w35kv.mjs +1 -0
- package/dist/chunks/remoteSession-1.1.21-5fvz5bsw.mjs +1 -0
- package/dist/chunks/rename-1.1.21-6rvag2s4.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.1.21-tay6v7n4.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.21-nzx71pts.mjs +1 -0
- package/dist/chunks/resume-1.1.21-mp3a9npp.mjs +2 -0
- package/dist/chunks/rewind-1.1.21-njh0btq2.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.21-7j3b02hm.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.21-d1v7f1sh.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.21-1vd13wkq.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.21-c7fw2ksr.mjs +1 -0
- package/dist/chunks/session-1.1.21-9gpkxas1.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.1.21-w4676wtk.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.1.21-ecwm1cfg.mjs +1 -0
- package/dist/chunks/sessionStorage-1.1.21-kan90ps9.mjs +1 -0
- package/dist/chunks/settings-1.1.21-4s7ew4vh.mjs +1 -0
- package/dist/chunks/setup-1.1.21-nmfqd6pa.mjs +12 -0
- package/dist/chunks/sinks-1.1.21-grwc3mac.mjs +1 -0
- package/dist/chunks/skills-1.1.21-c7mykz5q.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.21-mtr244kh.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.21-k1569a6r.mjs +1 -0
- package/dist/chunks/state-1.1.21-006s6xsy.mjs +1 -0
- package/dist/chunks/stats-1.1.21-bdpn78b9.mjs +6 -0
- package/dist/chunks/status-1.1.21-dkepakb3.mjs +1 -0
- package/dist/chunks/stickers-1.1.21-xk8yr9yt.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.21-tjx2d81b.mjs +1 -0
- package/dist/chunks/tasks-1.1.21-9qx5fz1q.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.21-pnhycdw4.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.21-279f713t.mjs +1 -0
- package/dist/chunks/teleport-1.1.21-t3yfsxqf.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.21-6t0x22pz.mjs +1 -0
- package/dist/chunks/theme-1.1.21-qp0w8xbb.mjs +1 -0
- package/dist/chunks/thinkback-1.1.21-my7w4nms.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.21-67cnrtz7.mjs +1 -0
- package/dist/chunks/toolPool-1.1.21-njaz40qd.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.21-7b0wbg1q.mjs +1 -0
- package/dist/chunks/tools-1.1.21-zaawccjz.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.21-2h0kxwkb.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.21-tajysy6v.mjs +69 -0
- package/dist/chunks/types-1.1.21-dpz3pqyf.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.21-3r3a34tb.mjs +4 -0
- package/dist/chunks/update-1.1.21-v9n06gej.mjs +72 -0
- package/dist/chunks/upgrade-1.1.21-f40x8myx.mjs +1 -0
- package/dist/chunks/upload-1.1.21-x63yx03n.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.21-4d1nmmca.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.1.21-f8egwk04.mjs +1 -0
- package/dist/chunks/usage-1.1.21-ajfcrtj1.mjs +1 -0
- package/dist/chunks/util-1.1.21-raqpgawk.mjs +1 -0
- package/dist/chunks/utils-1.1.21-ae7844cz.mjs +1 -0
- package/dist/chunks/vim-1.1.21-stgjbrez.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.21-3mrb2p44.mjs +13 -0
- package/dist/chunks/watcher-1.1.21-71vsydsx.mjs +1 -0
- package/dist/chunks/wiki-1.1.21-m8wt2ppx.mjs +132 -0
- package/dist/chunks/workflows-1.1.21-j7gtgean.mjs +1 -0
- package/dist/chunks/worktree-1.1.21-acv1xtvb.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.21-2sg0072j.mjs +1 -0
- package/dist/chunks/wrapper-1.1.21-zbvep84d.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.1.20-gy68hszg.mjs +0 -1
- package/dist/chunks/App-1.1.20-10ggpxf4.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.20-6y0zcy4y.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.1.20-yebtqpwm.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.20-4t2txe84.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.20-6w697wvx.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.20-c3kyqfq3.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.20-87nay89d.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.20-wcg0gh1k.mjs +0 -6
- package/dist/chunks/Doctor-1.1.20-gq08p6c4.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.20-njwmt292.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.20-86szt9a8.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.20-yw03wzhm.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.20-b8bpx0av.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.20-xc1ete3w.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.20-ytp8f67t.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.20-qvj570ty.mjs +0 -1
- package/dist/chunks/REPL-1.1.20-1wqc3hyp.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.20-78gpsm6z.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.1.20-qzvapr16.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.20-tjphzty6.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.20-d63k8snr.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.20-k1pa6f9a.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.20-8mc5wrxb.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.20-xkwtgqwd.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.20-7p5t0a25.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.20-n88f7vxe.mjs +0 -1
- package/dist/chunks/add-dir-1.1.20-mkjy6mne.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.20-mf4dz2fp.mjs +0 -1
- package/dist/chunks/agents-1.1.20-eb13erze.mjs +0 -110
- package/dist/chunks/agents-1.1.20-ps3c6vj2.mjs +0 -3
- package/dist/chunks/api-1.1.20-11grpy2c.mjs +0 -1
- package/dist/chunks/asciicast-1.1.20-bqm28655.mjs +0 -1
- package/dist/chunks/assistant-1.1.20-xny4y49f.mjs +0 -1
- package/dist/chunks/auth-1.1.20-kyscffqe.mjs +0 -1
- package/dist/chunks/auth-1.1.20-ygabh4dg.mjs +0 -1
- package/dist/chunks/autoMode-1.1.20-6ehbhthd.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.20-skjmdzhq.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.20-n7vch4bv.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.20-a3snmx4e.mjs +0 -1
- package/dist/chunks/branch-1.1.20-849br2fw.mjs +0 -4
- package/dist/chunks/bridge-1.1.20-ec0z61jb.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.20-wks1jhmc.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.20-1nza3j0t.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.20-6dks41qc.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.20-tecp8fmk.mjs +0 -1
- package/dist/chunks/btw-1.1.20-mdw6bncw.mjs +0 -1
- package/dist/chunks/buddy-1.1.20-cmmgv2nf.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.20-62xx6y5w.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.20-j7kbrtbn.mjs +0 -4
- package/dist/chunks/caches-1.1.20-ykvsw24v.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.1.20-dhcfye38.mjs +0 -1
- package/dist/chunks/claudemd-1.1.20-0km3pc8d.mjs +0 -1
- package/dist/chunks/clear-1.1.20-rkzhan9n.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.20-h9nb94gb.mjs +0 -1
- package/dist/chunks/cli-1.1.20-003ssrqs.mjs +0 -2
- package/dist/chunks/cli-1.1.20-08kdg42c.mjs +0 -2
- package/dist/chunks/cli-1.1.20-0a8jwwrh.mjs +0 -2
- package/dist/chunks/cli-1.1.20-0cxx0azc.mjs +0 -2
- package/dist/chunks/cli-1.1.20-0hr449k2.mjs +0 -6
- package/dist/chunks/cli-1.1.20-0yjr70td.mjs +0 -2
- package/dist/chunks/cli-1.1.20-11yx2x29.mjs +0 -2
- package/dist/chunks/cli-1.1.20-14z9f90d.mjs +0 -4
- package/dist/chunks/cli-1.1.20-16js342k.mjs +0 -3
- package/dist/chunks/cli-1.1.20-1804zgnt.mjs +0 -2
- package/dist/chunks/cli-1.1.20-1axwpgex.mjs +0 -3
- package/dist/chunks/cli-1.1.20-1jzypzba.mjs +0 -2
- package/dist/chunks/cli-1.1.20-2189wy4p.mjs +0 -2
- package/dist/chunks/cli-1.1.20-25hfpkfc.mjs +0 -34
- package/dist/chunks/cli-1.1.20-28njwehy.mjs +0 -2
- package/dist/chunks/cli-1.1.20-2c8v6etd.mjs +0 -2
- package/dist/chunks/cli-1.1.20-2c9529sa.mjs +0 -4
- package/dist/chunks/cli-1.1.20-2epx2qhj.mjs +0 -4
- package/dist/chunks/cli-1.1.20-2kmxyr07.mjs +0 -2
- package/dist/chunks/cli-1.1.20-2tzzh4zx.mjs +0 -3
- package/dist/chunks/cli-1.1.20-2xfbht26.mjs +0 -2
- package/dist/chunks/cli-1.1.20-3awkxvmy.mjs +0 -2
- package/dist/chunks/cli-1.1.20-3d1z8rpz.mjs +0 -58
- package/dist/chunks/cli-1.1.20-3xgnb054.mjs +0 -2
- package/dist/chunks/cli-1.1.20-3xt27qam.mjs +0 -2
- package/dist/chunks/cli-1.1.20-3ya9b3gp.mjs +0 -2
- package/dist/chunks/cli-1.1.20-41jpan4m.mjs +0 -2
- package/dist/chunks/cli-1.1.20-44e5kpwx.mjs +0 -8
- package/dist/chunks/cli-1.1.20-456jkny0.mjs +0 -2
- package/dist/chunks/cli-1.1.20-45ymf6ss.mjs +0 -2
- package/dist/chunks/cli-1.1.20-4dnyt1jx.mjs +0 -2
- package/dist/chunks/cli-1.1.20-4fckza8j.mjs +0 -133
- package/dist/chunks/cli-1.1.20-4ns5w1w9.mjs +0 -2
- package/dist/chunks/cli-1.1.20-4rera9rk.mjs +0 -2
- package/dist/chunks/cli-1.1.20-4rzj958h.mjs +0 -2
- package/dist/chunks/cli-1.1.20-4t5sspt7.mjs +0 -2
- package/dist/chunks/cli-1.1.20-4wm04f49.mjs +0 -2
- package/dist/chunks/cli-1.1.20-50162v14.mjs +0 -2
- package/dist/chunks/cli-1.1.20-62a99cp9.mjs +0 -2
- package/dist/chunks/cli-1.1.20-6ev0yp0d.mjs +0 -6
- package/dist/chunks/cli-1.1.20-6jbvby2b.mjs +0 -20
- package/dist/chunks/cli-1.1.20-6xmv43xj.mjs +0 -3
- package/dist/chunks/cli-1.1.20-6yk3v95f.mjs +0 -39
- package/dist/chunks/cli-1.1.20-70wc36rc.mjs +0 -2
- package/dist/chunks/cli-1.1.20-751bmsqk.mjs +0 -2
- package/dist/chunks/cli-1.1.20-7732c5qg.mjs +0 -2
- package/dist/chunks/cli-1.1.20-7c1w166r.mjs +0 -2
- package/dist/chunks/cli-1.1.20-7rxmh5n8.mjs +0 -3
- package/dist/chunks/cli-1.1.20-7v6hhn2t.mjs +0 -2
- package/dist/chunks/cli-1.1.20-80v7e5s8.mjs +0 -2
- package/dist/chunks/cli-1.1.20-83btfm1z.mjs +0 -2
- package/dist/chunks/cli-1.1.20-83vhyp8j.mjs +0 -2
- package/dist/chunks/cli-1.1.20-8kjhy0wv.mjs +0 -2
- package/dist/chunks/cli-1.1.20-8s1w9hdq.mjs +0 -2
- package/dist/chunks/cli-1.1.20-93dztzcq.mjs +0 -2
- package/dist/chunks/cli-1.1.20-9c4avkb0.mjs +0 -2
- package/dist/chunks/cli-1.1.20-9g552760.mjs +0 -2
- package/dist/chunks/cli-1.1.20-9h5643kr.mjs +0 -2
- package/dist/chunks/cli-1.1.20-9nj6n1xg.mjs +0 -2
- package/dist/chunks/cli-1.1.20-9p9rns5w.mjs +0 -2
- package/dist/chunks/cli-1.1.20-9sv4xcek.mjs +0 -2
- package/dist/chunks/cli-1.1.20-a9fgbqdg.mjs +0 -2
- package/dist/chunks/cli-1.1.20-admbe52d.mjs +0 -2
- package/dist/chunks/cli-1.1.20-ahqsg433.mjs +0 -2
- package/dist/chunks/cli-1.1.20-atv9jh9v.mjs +0 -2
- package/dist/chunks/cli-1.1.20-azb7xdf4.mjs +0 -2
- package/dist/chunks/cli-1.1.20-b09qhwrn.mjs +0 -2
- package/dist/chunks/cli-1.1.20-b0ehcdrw.mjs +0 -18
- package/dist/chunks/cli-1.1.20-bbb9fqyn.mjs +0 -2
- package/dist/chunks/cli-1.1.20-bgbsr3de.mjs +0 -3
- package/dist/chunks/cli-1.1.20-bk95x5hv.mjs +0 -25
- package/dist/chunks/cli-1.1.20-bs9520ht.mjs +0 -2
- package/dist/chunks/cli-1.1.20-c2g9cejz.mjs +0 -2
- package/dist/chunks/cli-1.1.20-cbehaby4.mjs +0 -2
- package/dist/chunks/cli-1.1.20-cfbterne.mjs +0 -2
- package/dist/chunks/cli-1.1.20-cgqjf8mh.mjs +0 -6
- package/dist/chunks/cli-1.1.20-chzjjxkj.mjs +0 -2
- package/dist/chunks/cli-1.1.20-ckdgd8ze.mjs +0 -45
- package/dist/chunks/cli-1.1.20-csmgax19.mjs +0 -21
- package/dist/chunks/cli-1.1.20-d3ep1y0e.mjs +0 -3
- package/dist/chunks/cli-1.1.20-d5yrsevx.mjs +0 -2
- package/dist/chunks/cli-1.1.20-d6ghx4vg.mjs +0 -15
- package/dist/chunks/cli-1.1.20-d7jg0nb4.mjs +0 -24
- package/dist/chunks/cli-1.1.20-dhn7hn4q.mjs +0 -12
- package/dist/chunks/cli-1.1.20-dhqn7976.mjs +0 -2
- package/dist/chunks/cli-1.1.20-dws48g78.mjs +0 -2
- package/dist/chunks/cli-1.1.20-e49ygqc9.mjs +0 -2
- package/dist/chunks/cli-1.1.20-edmcts0d.mjs +0 -15
- package/dist/chunks/cli-1.1.20-ef6rjnnr.mjs +0 -2
- package/dist/chunks/cli-1.1.20-emfhskxb.mjs +0 -7
- package/dist/chunks/cli-1.1.20-emjnkdmv.mjs +0 -1
- package/dist/chunks/cli-1.1.20-eza9aynd.mjs +0 -2
- package/dist/chunks/cli-1.1.20-ezsprsc5.mjs +0 -2
- package/dist/chunks/cli-1.1.20-f55khzsq.mjs +0 -25
- package/dist/chunks/cli-1.1.20-far01hg1.mjs +0 -42
- package/dist/chunks/cli-1.1.20-ffffyhx3.mjs +0 -3
- package/dist/chunks/cli-1.1.20-fwfjvfmd.mjs +0 -12
- package/dist/chunks/cli-1.1.20-g0w1ksxt.mjs +0 -2
- package/dist/chunks/cli-1.1.20-g41hgcbn.mjs +0 -2
- package/dist/chunks/cli-1.1.20-g68fwrp1.mjs +0 -2
- package/dist/chunks/cli-1.1.20-gd4g9gr0.mjs +0 -3
- package/dist/chunks/cli-1.1.20-geey2q0s.mjs +0 -2
- package/dist/chunks/cli-1.1.20-ghdeh455.mjs +0 -2
- package/dist/chunks/cli-1.1.20-gkc4ptt0.mjs +0 -6
- package/dist/chunks/cli-1.1.20-gmw9jarz.mjs +0 -2
- package/dist/chunks/cli-1.1.20-gtk0ea9e.mjs +0 -2
- package/dist/chunks/cli-1.1.20-h5qtp5v0.mjs +0 -4
- package/dist/chunks/cli-1.1.20-hnvxzngf.mjs +0 -24
- package/dist/chunks/cli-1.1.20-hrw31bb0.mjs +0 -206
- package/dist/chunks/cli-1.1.20-hw1raza2.mjs +0 -2
- package/dist/chunks/cli-1.1.20-j1r8r4kb.mjs +0 -2
- package/dist/chunks/cli-1.1.20-j4a7q58c.mjs +0 -2
- package/dist/chunks/cli-1.1.20-jerx0cvb.mjs +0 -9
- package/dist/chunks/cli-1.1.20-jm6p2cdx.mjs +0 -2
- package/dist/chunks/cli-1.1.20-jsasy45b.mjs +0 -2
- package/dist/chunks/cli-1.1.20-jwgjrhwv.mjs +0 -17
- package/dist/chunks/cli-1.1.20-jy9v0t3f.mjs +0 -5
- package/dist/chunks/cli-1.1.20-k31p3ab5.mjs +0 -2
- package/dist/chunks/cli-1.1.20-ka6crh5z.mjs +0 -2
- package/dist/chunks/cli-1.1.20-kbw4j273.mjs +0 -3
- package/dist/chunks/cli-1.1.20-kdcqs5pc.mjs +0 -2
- package/dist/chunks/cli-1.1.20-keawhead.mjs +0 -5
- package/dist/chunks/cli-1.1.20-kmjn4pys.mjs +0 -2
- package/dist/chunks/cli-1.1.20-kqncmabm.mjs +0 -4
- package/dist/chunks/cli-1.1.20-m1j9gb5j.mjs +0 -2
- package/dist/chunks/cli-1.1.20-m1rmtfx0.mjs +0 -2
- package/dist/chunks/cli-1.1.20-m90d7k90.mjs +0 -133
- package/dist/chunks/cli-1.1.20-m9x20s8d.mjs +0 -2
- package/dist/chunks/cli-1.1.20-mg71dz16.mjs +0 -2
- package/dist/chunks/cli-1.1.20-mmvz3csm.mjs +0 -2
- package/dist/chunks/cli-1.1.20-mtdrx7xp.mjs +0 -2
- package/dist/chunks/cli-1.1.20-n0e2f4pd.mjs +0 -2
- package/dist/chunks/cli-1.1.20-n23sb1sw.mjs +0 -2
- package/dist/chunks/cli-1.1.20-n9ja4mee.mjs +0 -66
- package/dist/chunks/cli-1.1.20-nbpvejz7.mjs +0 -2
- package/dist/chunks/cli-1.1.20-nk2jvm1z.mjs +0 -2
- package/dist/chunks/cli-1.1.20-nkrcdd4b.mjs +0 -2
- package/dist/chunks/cli-1.1.20-nmnzdvrw.mjs +0 -2
- package/dist/chunks/cli-1.1.20-nqwt6n3q.mjs +0 -2
- package/dist/chunks/cli-1.1.20-p0jj07wv.mjs +0 -2
- package/dist/chunks/cli-1.1.20-pfqkbt31.mjs +0 -2
- package/dist/chunks/cli-1.1.20-pg7cfgsa.mjs +0 -2
- package/dist/chunks/cli-1.1.20-psbfz74f.mjs +0 -2
- package/dist/chunks/cli-1.1.20-py0s55wt.mjs +0 -2
- package/dist/chunks/cli-1.1.20-q4bfnf9w.mjs +0 -2
- package/dist/chunks/cli-1.1.20-qbmhpfn5.mjs +0 -15
- package/dist/chunks/cli-1.1.20-qkdde9ck.mjs +0 -2
- package/dist/chunks/cli-1.1.20-r4xfymtx.mjs +0 -60
- package/dist/chunks/cli-1.1.20-r55gwcq5.mjs +0 -2
- package/dist/chunks/cli-1.1.20-r7y2pq10.mjs +0 -2
- package/dist/chunks/cli-1.1.20-rdjbzkh4.mjs +0 -2
- package/dist/chunks/cli-1.1.20-rmvq7swt.mjs +0 -2
- package/dist/chunks/cli-1.1.20-rsrj8q6n.mjs +0 -3
- package/dist/chunks/cli-1.1.20-rvch3wwj.mjs +0 -2
- package/dist/chunks/cli-1.1.20-rvn2axad.mjs +0 -16
- package/dist/chunks/cli-1.1.20-ry7grtff.mjs +0 -2
- package/dist/chunks/cli-1.1.20-ryb6r2jj.mjs +0 -2
- package/dist/chunks/cli-1.1.20-se0125ky.mjs +0 -2
- package/dist/chunks/cli-1.1.20-snwfck2n.mjs +0 -2
- package/dist/chunks/cli-1.1.20-swewj6d5.mjs +0 -2
- package/dist/chunks/cli-1.1.20-sx7811qs.mjs +0 -5419
- package/dist/chunks/cli-1.1.20-sykpdv9k.mjs +0 -4
- package/dist/chunks/cli-1.1.20-t4zen7fz.mjs +0 -2
- package/dist/chunks/cli-1.1.20-t9y64aq1.mjs +0 -2
- package/dist/chunks/cli-1.1.20-tbtnrzgn.mjs +0 -6
- package/dist/chunks/cli-1.1.20-tgpt56rj.mjs +0 -2
- package/dist/chunks/cli-1.1.20-thtv1xqb.mjs +0 -2
- package/dist/chunks/cli-1.1.20-twysxm6j.mjs +0 -2
- package/dist/chunks/cli-1.1.20-txm7z2xq.mjs +0 -2
- package/dist/chunks/cli-1.1.20-ty0gqe2q.mjs +0 -2
- package/dist/chunks/cli-1.1.20-v6kdm8qp.mjs +0 -2
- package/dist/chunks/cli-1.1.20-vf1ea98p.mjs +0 -2
- package/dist/chunks/cli-1.1.20-vxrv3y7w.mjs +0 -9
- package/dist/chunks/cli-1.1.20-w24tmpq4.mjs +0 -7
- package/dist/chunks/cli-1.1.20-w6gv2drs.mjs +0 -2
- package/dist/chunks/cli-1.1.20-wadq5w8t.mjs +0 -2
- package/dist/chunks/cli-1.1.20-we3ekctq.mjs +0 -2
- package/dist/chunks/cli-1.1.20-wn9t9syd.mjs +0 -2
- package/dist/chunks/cli-1.1.20-wr994817.mjs +0 -18
- package/dist/chunks/cli-1.1.20-wrat5rtg.mjs +0 -2
- package/dist/chunks/cli-1.1.20-wszdp4dg.mjs +0 -3
- package/dist/chunks/cli-1.1.20-wt0ygwrd.mjs +0 -6
- package/dist/chunks/cli-1.1.20-wtxwvcad.mjs +0 -4
- package/dist/chunks/cli-1.1.20-wx90y3jb.mjs +0 -24
- package/dist/chunks/cli-1.1.20-wxxphhy4.mjs +0 -2
- package/dist/chunks/cli-1.1.20-wz4h58mp.mjs +0 -2
- package/dist/chunks/cli-1.1.20-x2y5vr9b.mjs +0 -3
- package/dist/chunks/cli-1.1.20-x3cdhjtp.mjs +0 -24
- package/dist/chunks/cli-1.1.20-x3sn0d4f.mjs +0 -2
- package/dist/chunks/cli-1.1.20-x4ezs1pz.mjs +0 -2
- package/dist/chunks/cli-1.1.20-xk4edb6r.mjs +0 -3
- package/dist/chunks/cli-1.1.20-xkatp3rd.mjs +0 -2
- package/dist/chunks/cli-1.1.20-xmkwnf9c.mjs +0 -2
- package/dist/chunks/cli-1.1.20-xvytevdy.mjs +0 -4
- package/dist/chunks/cli-1.1.20-y4b0v8se.mjs +0 -50
- package/dist/chunks/cli-1.1.20-y9jwxk0y.mjs +0 -17
- package/dist/chunks/cli-1.1.20-yh2kxsxg.mjs +0 -4
- package/dist/chunks/cli-1.1.20-yq2kjrr2.mjs +0 -2
- package/dist/chunks/cli-1.1.20-z4ndf118.mjs +0 -2
- package/dist/chunks/cli-1.1.20-zgg887a7.mjs +0 -4
- package/dist/chunks/cli-1.1.20-zhn44mv6.mjs +0 -2
- package/dist/chunks/cli-1.1.20-zvce3e9x.mjs +0 -2
- package/dist/chunks/client-1.1.20-yzk4md3m.mjs +0 -1
- package/dist/chunks/color-1.1.20-nvfrt651.mjs +0 -1
- package/dist/chunks/compact-1.1.20-t1p5wzzx.mjs +0 -3
- package/dist/chunks/config-1.1.20-f5vnf3mj.mjs +0 -1
- package/dist/chunks/config-1.1.20-fyrs9k0m.mjs +0 -1
- package/dist/chunks/constants-1.1.20-2p88w4e8.mjs +0 -1
- package/dist/chunks/context-1.1.20-q5c07f98.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.20-m97bd3hc.mjs +0 -1
- package/dist/chunks/conversation-1.1.20-2tdp5wat.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.20-6bf1fkfp.mjs +0 -1
- package/dist/chunks/copy-1.1.20-jx18zafs.mjs +0 -9
- package/dist/chunks/cost-1.1.20-cvh7ag89.mjs +0 -1
- package/dist/chunks/createSSHSession-1.1.20-yrms9nqw.mjs +0 -1
- package/dist/chunks/createSession-1.1.20-c72cffnc.mjs +0 -1
- package/dist/chunks/debug-1.1.20-2fqdvvvc.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.20-hwtzy20f.mjs +0 -1534
- package/dist/chunks/desktop-1.1.20-mgz7c45r.mjs +0 -1
- package/dist/chunks/detectRepository-1.1.20-d5fezv23.mjs +0 -1
- package/dist/chunks/detection-1.1.20-b17bg403.mjs +0 -1
- package/dist/chunks/diff-1.1.20-rgydsj6p.mjs +0 -1
- package/dist/chunks/doctor-1.1.20-jk5ar7pz.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.20-0q5qfybh.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.20-w47zy9sy.mjs +0 -1
- package/dist/chunks/effort-1.1.20-hy8t94kh.mjs +0 -13
- package/dist/chunks/engine-1.1.20-4etdjq40.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.20-1c7pmf1x.mjs +0 -1
- package/dist/chunks/envUtils-1.1.20-8687estk.mjs +0 -1
- package/dist/chunks/environmentSelection-1.1.20-vtn95gpz.mjs +0 -1
- package/dist/chunks/environments-1.1.20-n27s3sfh.mjs +0 -1
- package/dist/chunks/errors-1.1.20-a30dbhvw.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.20-97zbp5r8.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.20-zvnsd219.mjs +0 -1
- package/dist/chunks/exit-1.1.20-g7dar7aa.mjs +0 -1
- package/dist/chunks/explorer-1.1.20-m606rm48.mjs +0 -1
- package/dist/chunks/export-1.1.20-mgwvg841.mjs +0 -2
- package/dist/chunks/extra-usage-1.1.20-baf3f8zp.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.1.20-60c2b66b.mjs +0 -1
- package/dist/chunks/fast-1.1.20-0cv5rvjb.mjs +0 -1
- package/dist/chunks/feedback-1.1.20-cn6v1mdj.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.1.20-26b3hvex.mjs +0 -1
- package/dist/chunks/git-1.1.20-16amvfft.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.20-g1tq2ecq.mjs +0 -1
- package/dist/chunks/goal-1.1.20-k5akp14a.mjs +0 -4
- package/dist/chunks/growthbook-1.1.20-yrs6qd7c.mjs +0 -1
- package/dist/chunks/headless-1.1.20-ab6xrkks.mjs +0 -2
- package/dist/chunks/heapdump-1.1.20-7ty4e4da.mjs +0 -6
- package/dist/chunks/help-1.1.20-drmq3b45.mjs +0 -1
- package/dist/chunks/hookChains-1.1.20-9xe50nmq.mjs +0 -3
- package/dist/chunks/hooks-1.1.20-ea0rjbyd.mjs +0 -1
- package/dist/chunks/hooks-1.1.20-h3ac1ems.mjs +0 -79
- package/dist/chunks/ide-1.1.20-e5k4xqrh.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.20-yxmq33b1.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.1.20-2e8y4p87.mjs +0 -1
- package/dist/chunks/index-1.1.20-2gxqgc08.mjs +0 -1
- package/dist/chunks/index-1.1.20-3vkfmzw3.mjs +0 -30
- package/dist/chunks/index-1.1.20-7esm5m4s.mjs +0 -23
- package/dist/chunks/index-1.1.20-bszeeg1q.mjs +0 -1
- package/dist/chunks/index-1.1.20-cv1fhrne.mjs +0 -1
- package/dist/chunks/index-1.1.20-e27z5gwd.mjs +0 -1
- package/dist/chunks/index-1.1.20-hzw72qk9.mjs +0 -1
- package/dist/chunks/index-1.1.20-mmt768hj.mjs +0 -5
- package/dist/chunks/index-1.1.20-ms7qs4m6.mjs +0 -1
- package/dist/chunks/index-1.1.20-nkjdz68f.mjs +0 -1
- package/dist/chunks/index-1.1.20-ptjvr4qj.mjs +0 -1
- package/dist/chunks/index-1.1.20-qa9tjj42.mjs +0 -2
- package/dist/chunks/index-1.1.20-r3h0dypg.mjs +0 -1
- package/dist/chunks/index-1.1.20-rcx2fneb.mjs +0 -1
- package/dist/chunks/index-1.1.20-rdm3n4y9.mjs +0 -2
- package/dist/chunks/index-1.1.20-rm6ekqj7.mjs +0 -9
- package/dist/chunks/index-1.1.20-s7fb4knz.mjs +0 -1
- package/dist/chunks/index-1.1.20-s7x9dsyr.mjs +0 -1
- package/dist/chunks/index-1.1.20-t9j801bt.mjs +0 -9
- package/dist/chunks/index-1.1.20-vvmarmb0.mjs +0 -1
- package/dist/chunks/index-1.1.20-w3efr5jj.mjs +0 -1
- package/dist/chunks/index-1.1.20-y78x64xh.mjs +0 -1
- package/dist/chunks/index-1.1.20-z42w2g06.mjs +0 -1
- package/dist/chunks/init-1.1.20-1md8nn1q.mjs +0 -1
- package/dist/chunks/initReplBridge-1.1.20-5zfa29sw.mjs +0 -1
- package/dist/chunks/ink-1.1.20-4rp0112s.mjs +0 -1
- package/dist/chunks/insights-1.1.20-fs1yxv8w.mjs +0 -870
- package/dist/chunks/install-1.1.20-g8hq9z8r.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.20-t1etxwvv.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.20-x4r2g8jm.mjs +0 -1
- package/dist/chunks/instrumentation-1.1.20-8axp9w08.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.20-w1c5qa1c.mjs +0 -1
- package/dist/chunks/keybindings-1.1.20-t46j6vqd.mjs +0 -2
- package/dist/chunks/knowledge-1.1.20-fay2dby4.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.20-18wdnnqq.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.20-ja86yn75.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.20-rpwz8enf.mjs +0 -1
- package/dist/chunks/log-1.1.20-jab23qgp.mjs +0 -1
- package/dist/chunks/main-1.1.20-1tszrrj3.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.20-jhwtkzzq.mjs +0 -1
- package/dist/chunks/mcp-1.1.20-b3j31d37.mjs +0 -17
- package/dist/chunks/mcp-1.1.20-ggtdpb22.mjs +0 -4
- package/dist/chunks/mcp-1.1.20-r35rcax5.mjs +0 -1
- package/dist/chunks/mcpb-1.1.20-nmxsjrst.mjs +0 -1
- package/dist/chunks/memory-1.1.20-2fbhrnrk.mjs +0 -72
- package/dist/chunks/model-1.1.20-2nstg3gs.mjs +0 -2
- package/dist/chunks/model-1.1.20-ag4na6w9.mjs +0 -1
- package/dist/chunks/node-1.1.20-7meq917d.mjs +0 -14
- package/dist/chunks/oauth-1.1.20-xkcs3s0v.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.20-1jxfjf9e.mjs +0 -14
- package/dist/chunks/output-style-1.1.20-m38djt42.mjs +0 -1
- package/dist/chunks/package-ZOVFJE7Z-1.1.20-83n7wkxr.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.1.20-372zdrpd.mjs +0 -1
- package/dist/chunks/parser-1.1.20-gxyz7x28.mjs +0 -1
- package/dist/chunks/passes-1.1.20-ytgbf2dw.mjs +0 -1
- package/dist/chunks/permissions-1.1.20-s9ae41qy.mjs +0 -3
- package/dist/chunks/permissions-1.1.20-y9c9w35s.mjs +0 -1
- package/dist/chunks/plan-1.1.20-wbg3rbe5.mjs +0 -1
- package/dist/chunks/plist-1.1.20-ammve61n.mjs +0 -1
- package/dist/chunks/plugin-1.1.20-kprz45ck.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.20-0s19k556.mjs +0 -1
- package/dist/chunks/plugins-1.1.20-zcnf29dz.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.20-q1vqezxz.mjs +0 -2
- package/dist/chunks/print-1.1.20-jtj5dvm1.mjs +0 -57
- package/dist/chunks/process-1.1.20-gvna1rw4.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.20-4gf4hf9q.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.20-x7cpvyb1.mjs +0 -9
- package/dist/chunks/prompt-1.1.20-44tt0aay.mjs +0 -1
- package/dist/chunks/prompt-1.1.20-kd8b5z70.mjs +0 -1
- package/dist/chunks/prompts-1.1.20-p30n6333.mjs +0 -1
- package/dist/chunks/protocolHandler-1.1.20-k4c3bckj.mjs +0 -13
- package/dist/chunks/provider-1.1.20-x6r7w9y0.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.20-qr1eh5g1.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.20-whqrd8y7.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.1.20-hjftrz50.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.1.20-rspt0fgv.mjs +0 -26
- package/dist/chunks/registry-1.1.20-0mggqvzs.mjs +0 -1
- package/dist/chunks/release-notes-1.1.20-vb0mr5sj.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.20-vh7daesv.mjs +0 -2
- package/dist/chunks/remote-env-1.1.20-sarjwtd8.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.20-wn384wtw.mjs +0 -1
- package/dist/chunks/remoteSession-1.1.20-v6xk4jcm.mjs +0 -1
- package/dist/chunks/rename-1.1.20-f8mjn6dk.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.1.20-rgnef71a.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.20-gtmq90n0.mjs +0 -1
- package/dist/chunks/resume-1.1.20-6azc4a6d.mjs +0 -2
- package/dist/chunks/rewind-1.1.20-y79g5sa8.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.20-j01mdex3.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.20-rjt6cc5k.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.20-2fy5bxtc.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.20-3fhx4jz1.mjs +0 -1
- package/dist/chunks/session-1.1.20-56bsxwcm.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.1.20-5awvar7p.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.1.20-p0m1trtr.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.20-kzwv0rca.mjs +0 -1
- package/dist/chunks/settings-1.1.20-qq5nh010.mjs +0 -1
- package/dist/chunks/setup-1.1.20-rxx0xk5h.mjs +0 -12
- package/dist/chunks/sinks-1.1.20-r3j94336.mjs +0 -1
- package/dist/chunks/skills-1.1.20-rj3k67vs.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.20-28r68j3h.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.20-na2gc2z0.mjs +0 -1
- package/dist/chunks/state-1.1.20-87k38gkf.mjs +0 -1
- package/dist/chunks/stats-1.1.20-4f0k42ck.mjs +0 -6
- package/dist/chunks/status-1.1.20-4q8drpbw.mjs +0 -1
- package/dist/chunks/stickers-1.1.20-6zrpy168.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.20-ay4xqbmj.mjs +0 -1
- package/dist/chunks/tasks-1.1.20-94bxr0pm.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.20-2wx4ycs3.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.20-84jswprz.mjs +0 -1
- package/dist/chunks/teleport-1.1.20-szer4192.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.20-6c6rr077.mjs +0 -1
- package/dist/chunks/theme-1.1.20-h0j5bxzv.mjs +0 -1
- package/dist/chunks/thinkback-1.1.20-xx7byjz0.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.20-y7e52jdn.mjs +0 -1
- package/dist/chunks/toolPool-1.1.20-3z7k5za6.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.20-60qd9jdb.mjs +0 -1
- package/dist/chunks/tools-1.1.20-x11zs4y1.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.20-2xcp041p.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.20-cvck081c.mjs +0 -69
- package/dist/chunks/types-1.1.20-143w1akg.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.20-0ahamh6w.mjs +0 -4
- package/dist/chunks/update-1.1.20-yy0y40m9.mjs +0 -72
- package/dist/chunks/upgrade-1.1.20-wk6398hc.mjs +0 -1
- package/dist/chunks/upload-1.1.20-x7890nxj.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.20-9fag2s50.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.1.20-98f7t8ex.mjs +0 -1
- package/dist/chunks/usage-1.1.20-x3t5jqtp.mjs +0 -1
- package/dist/chunks/util-1.1.20-6yg0jab0.mjs +0 -1
- package/dist/chunks/utils-1.1.20-eextgt51.mjs +0 -1
- package/dist/chunks/vim-1.1.20-45mkg766.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.20-m6zydt8m.mjs +0 -13
- package/dist/chunks/watcher-1.1.20-qtj8t09d.mjs +0 -1
- package/dist/chunks/wiki-1.1.20-3mvcvdfe.mjs +0 -132
- package/dist/chunks/workflows-1.1.20-19kpvc6v.mjs +0 -1
- package/dist/chunks/worktree-1.1.20-mj9bm0pg.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.20-gyvs55qh.mjs +0 -1
- package/dist/chunks/wrapper-1.1.20-8rckzejb.mjs +0 -7
- /package/dist/chunks/{cli-1.1.20-0sgvc4nn.mjs → cli-1.1.21-13kr6en7.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.20-c0p4wjw7.mjs → cli-1.1.21-7snn7kbs.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.20-e4h3mrxr.mjs → cli-1.1.21-7sx1arjq.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.20-nr5scd4y.mjs → cli-1.1.21-cx7tkkx6.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.20-c4ktmkk3.mjs → cli-1.1.21-ftamxg3e.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.20-sfrzvte7.mjs → cli-1.1.21-rte0df0y.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.20-cypawma9.mjs → cli-1.1.21-srd8n2bc.mjs} +0 -0
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{ota as Z}from"./cli-1.1.20-y9jwxk0y.mjs";import{rta as Y,uta as O}from"./cli-1.1.20-0sgvc4nn.mjs";var ye=Y((he)=>{var R=O("node:https"),$=Z(),z=O("node:stream"),D=O("node:http2");function H(e){let t=e&&typeof e==="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let s=Error("Request aborted");return s.name="AbortError",s.cause=t,s}let o=Error(String(t));return o.name="AbortError",o}let n=Error("Request aborted");return n.name="AbortError",n}var ee=["ECONNRESET","EPIPE","ETIMEDOUT"],Q=(e)=>{let t={};for(let n in e){let o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t},d={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:(e)=>clearTimeout(e)},F=1000,te=(e,t,n=0)=>{if(!n)return-1;let o=(s)=>{let r=d.setTimeout(()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))},n-s),c=(u)=>{if(u?.connecting)u.on("connect",()=>{d.clearTimeout(r)});else d.clearTimeout(r)};if(e.socket)c(e.socket);else e.on("socket",c)};if(n<2000)return o(0),0;return d.setTimeout(o.bind(null,F),F)},oe=(e,t,n=0,o,s)=>{if(n)return d.setTimeout(()=>{let r=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){let c=Object.assign(Error(r),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(c),t(c)}else r+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",s?.warn?.(r)},n);return-1},ne=3000,se=(e,{keepAlive:t,keepAliveMsecs:n},o=ne)=>{if(t!==!0)return-1;let s=()=>{if(e.socket)e.socket.setKeepAlive(t,n||0);else e.on("socket",(r)=>{r.setKeepAlive(t,n||0)})};if(o===0)return s(),0;return d.setTimeout(s,o)},W=3000,re=(e,t,n=0)=>{let o=(s)=>{let r=n-s,c=()=>{e.destroy(),t(Object.assign(Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket)e.socket.setTimeout(r,c),e.on("close",()=>e.socket?.removeListener("timeout",c));else e.setTimeout(r,c)};if(0<n&&n<6000)return o(0),0;return d.setTimeout(o.bind(null,n===0?0:W),W)},j=6000;async function V(e,t,n=j,o=!1){let s=t.headers,r=s?s.Expect||s.expect:void 0,c=-1,u=!0;if(!o&&r==="100-continue")u=await Promise.race([new Promise((f)=>{c=Number(d.setTimeout(()=>f(!0),Math.max(j,n)))}),new Promise((f)=>{e.on("continue",()=>{d.clearTimeout(c),f(!0)}),e.on("response",()=>{d.clearTimeout(c),f(!1)}),e.on("error",()=>{d.clearTimeout(c),f(!1)})})]);if(u)ie(e,t.body)}function ie(e,t){if(t instanceof z.Readable){t.pipe(e);return}if(t){let n=Buffer.isBuffer(t);if(n||typeof t==="string"){if(n&&t.byteLength===0)e.end();else e.end(t);return}let s=t;if(typeof s==="object"&&s.buffer&&typeof s.byteOffset==="number"&&typeof s.byteLength==="number"){e.end(Buffer.from(s.buffer,s.byteOffset,s.byteLength));return}e.end(Buffer.from(t));return}e.end()}var ce=0,_=void 0,q=void 0;class I{config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function")return e;return new I(e)}static checkSocketUsage(e,t,n=console){let{sockets:o,requests:s,maxSockets:r}=e;if(typeof r!=="number"||r===1/0)return t;let c=15000;if(Date.now()-c<t)return t;if(o&&s)for(let u in o){let f=o[u]?.length??0,l=s[u]?.length??0;if(f>=r&&l>=2*r)return n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${f} and ${l} additional requests are enqueued.
|
|
2
|
-
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
3
|
-
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return t}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(this.resolveDefaultConfig(o))}).catch(n);else t(this.resolveDefaultConfig(e))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config)this.config=await this.configProvider;let o=this.config,s=e.protocol==="https:";if(!s&&!this.config.httpAgent)this.config.httpAgent=await this.config.httpAgentProvider();return new Promise((r,c)=>{let u=void 0,f=-1,l=-1,m=-1,y=-1,A=-1,b=()=>{d.clearTimeout(f),d.clearTimeout(l),d.clearTimeout(m),d.clearTimeout(y),d.clearTimeout(A)},U=async(i)=>{await u,b(),r(i)},p=async(i)=>{await u,b(),c(i)};if(t?.aborted){let i=H(t);p(i);return}let x=e.headers,M=x?(x.Expect??x.expect)==="100-continue":!1,C=s?o.httpsAgent:o.httpAgent;if(M&&!this.externalAgent)C=new(s?R.Agent:_)({keepAlive:!1,maxSockets:1/0});f=d.setTimeout(()=>{this.socketWarningTimestamp=I.checkSocketUsage(C,this.socketWarningTimestamp,o.logger)},o.socketAcquisitionWarningTimeout??(o.requestTimeout??2000)+(o.connectionTimeout??1000));let P=e.query?$.buildQueryString(e.query):"",S=void 0;if(e.username!=null||e.password!=null){let i=e.username??"",a=e.password??"";S=`${i}:${a}`}let w=e.path;if(P)w+=`?${P}`;if(e.fragment)w+=`#${e.fragment}`;let T=e.hostname??"";if(T[0]==="["&&T.endsWith("]"))T=e.hostname.slice(1,-1);else T=e.hostname;let v={headers:e.headers,host:T,method:e.method,path:w,port:e.port,agent:C,auth:S},h=(s?R.request:q)(v,(i)=>{let a=new $.HttpResponse({statusCode:i.statusCode||-1,reason:i.statusMessage,headers:Q(i.headers),body:i});U({response:a})});if(h.on("error",(i)=>{if(ee.includes(i.code))p(Object.assign(i,{name:"TimeoutError"}));else p(i)}),t){let i=()=>{h.destroy();let a=H(t);p(a)};if(typeof t.addEventListener==="function"){let a=t;a.addEventListener("abort",i,{once:!0}),h.once("close",()=>a.removeEventListener("abort",i))}else t.onabort=i}let k=n??o.requestTimeout;l=te(h,p,o.connectionTimeout),m=oe(h,p,k,o.throwOnRequestTimeout,o.logger??console),y=re(h,p,o.socketTimeout);let E=v.agent;if(typeof E==="object"&&"keepAlive"in E)A=se(h,{keepAlive:E.keepAlive,keepAliveMsecs:E.keepAliveMsecs});u=V(h,e,k,this.externalAgent).catch((i)=>{return b(),c(i)})})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){let{requestTimeout:t,connectionTimeout:n,socketTimeout:o,socketAcquisitionWarningTimeout:s,httpAgent:r,httpsAgent:c,throwOnRequestTimeout:u,logger:f}=e||{},l=!0,m=50;return{connectionTimeout:n,requestTimeout:t,socketTimeout:o,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:async()=>{let{Agent:y,request:A}=await import("node:http");if(q=A,_=y,r instanceof _||typeof r?.destroy==="function")return this.externalAgent=!0,r;return new _({keepAlive:!0,maxSockets:50,...r})},httpsAgent:(()=>{if(c instanceof R.Agent||typeof c?.destroy==="function")return this.externalAgent=!0,c;return new R.Agent({keepAlive:!0,maxSockets:50,...c})})(),logger:f}}}var ae=new Uint16Array(1);class L{id=ae[0]++;total=0;max=0;session;refs=0;constructor(e){e.unref(),this.session=e}retain(){if(this.session.destroyed)throw Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(this.session.destroyed)return;if(this.refs-=1,this.refs===0)this.session.unref();if(this.refs<0)throw Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){if(!this.session.closed)this.session.close()}destroy(){if(this.refs=0,!this.session.destroyed)this.session.destroy()}useCount(){return this.refs}}class K{sessions=[];maxConcurrency=0;constructor(e){this.sessions=(e??[]).map((t)=>new L(t))}poll(){let e=!1;for(let t of this.sessions){if(t.deref().destroyed){e=!0;continue}if(!this.maxConcurrency||t.useCount()<this.maxConcurrency)return t}if(e){for(let t of this.sessions)if(t.deref().destroyed)this.remove(t)}}offerLast(e){this.sessions.push(e)}remove(e){let t=this.sessions.indexOf(e);if(t>-1)this.sessions.splice(t,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(e){this.maxConcurrency=e}destroy(e){this.remove(e),e.destroy()}}class J{config;connectOptions;connectionPools=new Map;constructor(e){if(this.config=e,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw RangeError("maxConcurrency must be greater than zero.")}lease(e,t){let n=this.getUrlString(e),o=this.getPool(n);if(!this.config.disableConcurrency&&!t.isEventStream){let f=o.poll();if(f)return f.retain(),f}let s=new L(this.connect(n)),r=s.deref();if(this.config.maxConcurrency)r.settings({maxConcurrentStreams:this.config.maxConcurrency},(f)=>{if(f)throw Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())});let c=()=>{this.removeFromPoolAndClose(n,s)},u=()=>{this.removeFromPoolAndCheckedDestroy(n,s)};if(r.on("goaway",c),r.on("error",u),r.on("frameError",u),r.on("close",u),t.requestTimeout)r.setTimeout(t.requestTimeout,u);return o.offerLast(s),s.retain(),s}release(e,t){t.free()}createIsolatedSession(e,t){let n=this.getUrlString(e),o=new L(this.connect(n)),s=o.deref();s.settings({maxConcurrentStreams:1});let r=()=>{o.destroy()};if(s.on("error",r),s.on("frameError",r),s.on("close",r),t.requestTimeout)s.setTimeout(t.requestTimeout,r);return o.retain(),o}destroy(){for(let[e,t]of this.connectionPools){for(let n of[...t])n.destroy();this.connectionPools.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0)throw RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=e;for(let t of this.connectionPools.values())t.setMaxConcurrency(e)}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}setNodeHttp2ConnectOptions(e){this.connectOptions=e}debug(){let e={};for(let[t,n]of this.connectionPools){let o=[];for(let s of n)o.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});e[t]={sessions:o}}return e}removeFromPoolAndClose(e,t){this.connectionPools.get(e)?.remove(t),t.close()}removeFromPoolAndCheckedDestroy(e,t){this.connectionPools.get(e)?.remove(t),t.destroy()}getPool(e){if(!this.connectionPools.has(e)){let t=new K;if(this.config.maxConcurrency)t.setMaxConcurrency(this.config.maxConcurrency);this.connectionPools.set(e,t)}return this.connectionPools.get(e)}getUrlString(e){return e.destination.toString()}connect(e){return this.connectOptions===void 0?D.connect(e):D.connect(e,this.connectOptions)}}class B{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new J({});static create(e){if(typeof e?.handle==="function")return e;return new B(e)}constructor(e){this.configProvider=new Promise((t,n)=>{if(typeof e==="function")e().then((o)=>{t(o||{})}).catch(n);else t(e||{})})}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n,isEventStream:o}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:f,maxConcurrentStreams:l,nodeHttp2ConnectOptions:m}=this.config;if(this.connectionManager.setDisableConcurrentStreams(f??!1),l)this.connectionManager.setMaxConcurrentStreams(l);if(m)this.connectionManager.setNodeHttp2ConnectOptions(m)}let{requestTimeout:s,disableConcurrentStreams:r}=this.config,c=r||o,u=n??s;return new Promise((f,l)=>{let m=!1,y=void 0,A=async(a)=>{await y,f(a)},b=async(a)=>{await y,l(a)};if(t?.aborted){m=!0;let a=H(t);b(a);return}let{hostname:U,method:p,port:x,protocol:M,query:C}=e,P="";if(e.username!=null||e.password!=null){let a=e.username??"",g=e.password??"";P=`${a}:${g}@`}let S=`${M}//${P}${U}${x?`:${x}`:""}`,w={destination:new URL(S)},T={requestTimeout:this.config?.sessionTimeout,isEventStream:o},v=c?this.connectionManager.createIsolatedSession(w,T):this.connectionManager.lease(w,T),N=v.deref(),h=(a)=>{if(c)v.destroy();m=!0,b(a)},k=C?$.buildQueryString(C):"",E=e.path;if(k)E+=`?${k}`;if(e.fragment)E+=`#${e.fragment}`;let i=N.request({...e.headers,[D.constants.HTTP2_HEADER_PATH]:E,[D.constants.HTTP2_HEADER_METHOD]:p});if(u)i.setTimeout(u,()=>{i.close();let a=Error(`Stream timed out because of no activity for ${u} ms`);a.name="TimeoutError",h(a)});if(t){let a=()=>{i.close();let g=H(t);h(g)};if(typeof t.addEventListener==="function"){let g=t;g.addEventListener("abort",a,{once:!0}),i.once("close",()=>g.removeEventListener("abort",a))}else t.onabort=a}i.on("frameError",(a,g,X)=>{h(Error(`Frame type id ${a} in stream id ${X} has failed with code ${g}.`))}),i.on("error",h),i.on("aborted",()=>{h(Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${i.rstCode}.`))}),i.on("response",(a)=>{let g=new $.HttpResponse({statusCode:a[":status"]??-1,headers:Q(a),body:i});if(m=!0,A({response:g}),c)N.close()}),i.on("close",()=>{if(c)v.destroy();else this.connectionManager.release(w,v);if(!m)h(Error("Unexpected error: http2 request did not get a response"))}),y=V(i,e,u)})}updateHttpClientConfig(e,t){this.config=void 0,this.configProvider=this.configProvider.then((n)=>{return{...n,[e]:t}})}httpHandlerConfigs(){return this.config??{}}}class G extends z.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e),n()}}var ue=(e)=>{if(fe(e))return de(e);return new Promise((t,n)=>{let o=new G;e.pipe(o),e.on("error",(s)=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})})},fe=(e)=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function de(e){let t=[],n=e.getReader(),o=!1,s=0;while(!o){let{done:u,value:f}=await n.read();if(f)t.push(f),s+=f.length;o=u}let r=new Uint8Array(s),c=0;for(let u of t)r.set(u,c),c+=u.length;return r}he.DEFAULT_REQUEST_TIMEOUT=ce;he.NodeHttp2Handler=B;he.NodeHttpHandler=I;he.streamCollector=ue});
|
|
4
|
-
export{ye as hta};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tta as M}from"./cli-1.1.20-0sgvc4nn.mjs";function P(j){return j.message?.role??j.role}function G(j){return j.message?j.message.content:j.content}function K(j){if(!j||typeof j!=="object")return!1;if(j.type==="image")return!0;if(j.type==="tool_result"&&Array.isArray(j.content))return j.content.some((q)=>K(q));return!1}function Q(j){if(!Array.isArray(j))return!1;return j.some((q)=>K(q))}function U(j){if(!Array.isArray(j)||j.length===0)return!1;return j.every((q)=>{let w=q;return w&&typeof w==="object"&&w.type==="tool_result"})}function V(j){let q=j[j.length-1];if(!q||typeof q!=="object")return"user";if(P(q)!=="user")return"agent";if(U(G(q)))return"agent";return"user"}function W(j){return j.some((q)=>Q(G(q)))}function X(j){let q={"x-initiator":V(j)};if(W(j))q["Copilot-Vision-Request"]="true";return q}function Z(j,q={}){return(w,B)=>{let E=new Headers(B?.headers);for(let[z,F]of Object.entries(q))if(!E.has(z))E.set(z,F);try{if(typeof B?.body==="string"){let z=JSON.parse(B.body);if(Array.isArray(z?.messages))for(let[F,L]of Object.entries(X(z.messages)))E.set(F,L)}}catch{}return j(w,{...B,headers:E})}}var Y=()=>{};
|
|
2
|
-
export{V as Oi,W as Pi,X as Qi,Z as Ri,Y as Si};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{lta as n}from"./cli-1.1.20-y9jwxk0y.mjs";import{rta as r}from"./cli-1.1.20-0sgvc4nn.mjs";var i=r((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.readFile=e.externalDataInterceptor=e.parseKnownFiles=e.loadSsoSessionData=e.loadSharedConfigFiles=e.CONFIG_PREFIX_SEPARATOR=e.getSSOTokenFromFile=e.getSSOTokenFilepath=e.getProfileName=e.DEFAULT_PROFILE=e.ENV_PROFILE=e.getHomeDir=void 0;var t=n();Object.defineProperty(e,"getHomeDir",{enumerable:!0,get:function(){return t.getHomeDir}});Object.defineProperty(e,"ENV_PROFILE",{enumerable:!0,get:function(){return t.ENV_PROFILE}});Object.defineProperty(e,"DEFAULT_PROFILE",{enumerable:!0,get:function(){return t.DEFAULT_PROFILE}});Object.defineProperty(e,"getProfileName",{enumerable:!0,get:function(){return t.getProfileName}});Object.defineProperty(e,"getSSOTokenFilepath",{enumerable:!0,get:function(){return t.getSSOTokenFilepath}});Object.defineProperty(e,"getSSOTokenFromFile",{enumerable:!0,get:function(){return t.getSSOTokenFromFile}});Object.defineProperty(e,"CONFIG_PREFIX_SEPARATOR",{enumerable:!0,get:function(){return t.CONFIG_PREFIX_SEPARATOR}});Object.defineProperty(e,"loadSharedConfigFiles",{enumerable:!0,get:function(){return t.loadSharedConfigFiles}});Object.defineProperty(e,"loadSsoSessionData",{enumerable:!0,get:function(){return t.loadSsoSessionData}});Object.defineProperty(e,"parseKnownFiles",{enumerable:!0,get:function(){return t.parseKnownFiles}});Object.defineProperty(e,"externalDataInterceptor",{enumerable:!0,get:function(){return t.externalDataInterceptor}});Object.defineProperty(e,"readFile",{enumerable:!0,get:function(){return t.readFile}})});
|
|
2
|
-
export{i as h_};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{tta as I}from"./cli-1.1.20-0sgvc4nn.mjs";function R($,q,H){let J=$.indexOf(q);if(J===-1)return $;let K=q.length,Z=0,Q="";do Q+=$.slice(Z,J)+q+H,Z=J+K,J=$.indexOf(q,Z);while(J!==-1);return Q+=$.slice(Z),Q}function T($,q,H,J){let K=0,Z="";do{let Q=$[J-1]==="\r";Z+=$.slice(K,Q?J-1:J)+q+(Q?`\r
|
|
2
|
-
`:`
|
|
3
|
-
`)+H,K=J+1,J=$.indexOf(`
|
|
4
|
-
`,K)}while(J!==-1);return Z+=$.slice(K),Z}var _=()=>{};function a(){let $=new Map;for(let[q,H]of Object.entries(X)){for(let[J,K]of Object.entries(H))X[J]={open:`\x1B[${K[0]}m`,close:`\x1B[${K[1]}m`},H[J]=X[J],$.set(Number.parseInt(K[0],10),K[1]);Object.defineProperty(X,q,{value:H,enumerable:!1})}return Object.defineProperty(X,"codes",{value:$,enumerable:!1}),X.color.close="\x1B[39m",X.bgColor.close="\x1B[49m",X.underlineColor.close="\x1B[59m",X.color.ansi=A(),X.color.ansi256=Y(),X.color.ansi16m=k(),X.bgColor.ansi=A(10),X.bgColor.ansi256=Y(10),X.bgColor.ansi16m=k(10),X.underlineColor.ansi=g,X.underlineColor.ansi256=Y(20),X.underlineColor.ansi16m=k(20),Object.defineProperties(X,{rgbToAnsi256:{value(q,H,J){if(q===H&&H===J){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round(H/255*5)+Math.round(J/255*5)},enumerable:!1},hexToRgb:{value(q){let H=/[\da-f]{6}|[\da-f]{3}/i.exec(q.toString(16));if(!H)return[0,0,0];let[J]=H;if(J.length===3)J=[...J].map((Z)=>Z+Z).join("");let K=Number.parseInt(J,16);return[K>>16&255,K>>8&255,K&255]},enumerable:!1},hexToAnsi256:{value:(q)=>X.rgbToAnsi256(...X.hexToRgb(q)),enumerable:!1},ansi256ToAnsi:{value(q){if(q<8)return 30+q;if(q<16)return 90+(q-8);let H,J,K;if(q>=232)H=((q-232)*10+8)/255,J=H,K=H;else{q-=16;let D=q%36;H=Math.floor(q/36)/5,J=Math.floor(D/6)/5,K=D%6/5}let Z=Math.max(H,J,K)*2;if(Z===0)return 30;let Q=30+(Math.round(K)<<2|Math.round(J)<<1|Math.round(H));if(Z===2)Q+=60;return Q},enumerable:!1},rgbToAnsi:{value:(q,H,J)=>X.ansi256ToAnsi(X.rgbToAnsi256(q,H,J)),enumerable:!1},hexToAnsi:{value:(q)=>X.ansi256ToAnsi(X.hexToAnsi256(q)),enumerable:!1}}),X}var A=($=0)=>(q)=>`\x1B[${q+$}m`,Y=($=0)=>(q)=>`\x1B[${38+$};5;${q}m`,k=($=0)=>(q,H,J)=>`\x1B[${38+$};2;${q};${H};${J}m`,g=($)=>`\x1B[58;5;${$<90?$-30:$-90+8}m`,X,U1,d,i,W1,z1,n,z;var E=I(()=>{X={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],underlineDouble:["4:2",24],underlineCurly:["4:3",24],underlineDotted:["4:4",24],underlineDashed:["4:5",24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},underlineColor:{underlineBlack:["58;5;0",59],underlineRed:["58;5;1",59],underlineGreen:["58;5;2",59],underlineYellow:["58;5;3",59],underlineBlue:["58;5;4",59],underlineMagenta:["58;5;5",59],underlineCyan:["58;5;6",59],underlineWhite:["58;5;7",59],underlineBlackBright:["58;5;8",59],underlineGray:["58;5;8",59],underlineGrey:["58;5;8",59],underlineRedBright:["58;5;9",59],underlineGreenBright:["58;5;10",59],underlineYellowBright:["58;5;11",59],underlineBlueBright:["58;5;12",59],underlineMagentaBright:["58;5;13",59],underlineCyanBright:["58;5;14",59],underlineWhiteBright:["58;5;15",59]}},U1=Object.keys(X.modifier),d=Object.keys(X.color),i=Object.keys(X.bgColor),W1=Object.keys(X.underlineColor),z1=[...d,...i];n=a(),z=n});import x from"node:process";import t from"node:os";import S from"node:tty";function W($,q=globalThis.Deno?globalThis.Deno.args:x.argv){let H=$.startsWith("-")?"":$.length===1?"-":"--",J=q.indexOf(H+$),K=q.indexOf("--");return J!==-1&&(K===-1||J<K)}function b(){return/^\d+$/.test(U.FORCE_COLOR)}function o(){if(!("FORCE_COLOR"in U))return;if(U.FORCE_COLOR==="false")return 0;if(U.FORCE_COLOR==="true"||U.FORCE_COLOR.length===0)return 1;if(!b())return;return Math.min(Number.parseInt(U.FORCE_COLOR,10),3)}function r($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function l($,{streamIsTTY:q,sniffFlags:H=!0}={}){let J=o();if(J!==void 0)P=J;let K=H?P:J;if(K===0)return 0;if(H){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if(K!==void 0&&b())return K;if("TF_BUILD"in U&&"AGENT_NAME"in U)return 1;if($&&!q&&K===void 0)return 0;let Z=K||0;if(U.TERM==="dumb")return Z;if(x.platform==="win32"){let Q=t.release().split(".");if(Number(Q[0])>=10&&Number(Q[2])>=10586)return Number(Q[2])>=14931?3:2;return 1}if("CI"in U){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((Q)=>(Q in U)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((Q)=>(Q in U))||U.CI_NAME==="codeship")return 1;return Z}if("TEAMCITY_VERSION"in U)return/^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(U.TEAMCITY_VERSION)?1:0;if(U.COLORTERM==="truecolor")return 3;if(U.TERM==="xterm-kitty")return 3;if(U.TERM==="xterm-ghostty")return 3;if(U.TERM==="wezterm")return 3;if("TERM_PROGRAM"in U){let Q=Number.parseInt((U.TERM_PROGRAM_VERSION||"").split(".",1)[0],10);switch(U.TERM_PROGRAM){case"iTerm.app":return Q>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(?:color)?$/i.test(U.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(U.TERM))return 1;if("COLORTERM"in U)return 1;return Z}function F($,q={}){let H=l($,{streamIsTTY:$&&$.isTTY,...q});return r(H)}var U,P,s,C;var h=I(()=>{({env:U}=x);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))P=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))P=1;s={stdout:F({isTTY:S.isatty(1)}),stderr:F({isTTY:S.isatty(2)})},C=s});class q1{constructor($){return v($)}}function O($){return v($)}var f,m,G,V,M,w,j,u=($)=>{if(!Number.isSafeInteger($)||$<0||$>3)throw Error("The `level` should be an integer from 0 to 3")},e,$1=($,q={})=>{if(q.level!==void 0)u(q.level);let H=f?f.level:0;$[w]=q.level===void 0?H:q.level},v=($)=>{let q=(...H)=>H.join(" ");return $1(q,$),Object.setPrototypeOf(q,O.prototype),q},H1=($,q)=>{let H=z[q];if($==="rgb"){let K=(Q,D,B)=>H.ansi(z.rgbToAnsi(Q,D,B));return[K,K,(Q,D,B)=>H.ansi256(z.rgbToAnsi256(Q,D,B)),H.ansi16m]}if($==="hex"){let K=(Q)=>H.ansi(z.hexToAnsi(Q));return[K,K,(Q)=>H.ansi256(z.hexToAnsi256(Q)),(Q)=>H.ansi16m(...z.hexToRgb(Q))]}let J=(K)=>H.ansi(z.ansi256ToAnsi(K));return[J,J,H.ansi256,H.ansi256]},J1,K1,p=($,q,H)=>{let J,K;if(H===void 0)J=$,K=q;else J=H.openAll+$,K=q+H.closeAll;return{open:$,close:q,openAll:J,closeAll:K,parent:H}},N=($,q,H)=>{let J=(...K)=>{if(K.length===1)return L(J,""+K[0]);if(K.length===2)return L(J,K[0]+" "+K[1]);return L(J,K.join(" "))};return Object.setPrototypeOf(J,K1),J[G]=$[G]??$,J[V]=q,J[M]=H,J},L=($,q)=>{if($[G][w]<=0||!q)return $[M]?"":q;let H=$[V];if(H===void 0)return q;let{openAll:J,closeAll:K}=H;if(q.includes("\x1B"))while(H!==void 0)q=R(q,H.close,H.open),H=H.parent;let Z=q.indexOf(`
|
|
5
|
-
`);if(Z!==-1)q=T(q,K,J,Z);return J+q+K},Q1,w1,Y1;var X1=I(()=>{_();E();h();({stdout:f,stderr:m}=C),G=Symbol("GENERATOR"),V=Symbol("STYLER"),M=Symbol("IS_EMPTY"),w=Symbol("LEVEL"),j=Object.create(null),e={enumerable:!0,get(){return this[w]},set($){u($),this[w]=$}};Object.setPrototypeOf(O.prototype,Function.prototype);for(let[$,q]of Object.entries(z))j[$]={get(){let H=N(this,p(q.open,q.close,this[V]),this[M]);return Object.defineProperty(this,$,{value:H}),H}};j.visible={get(){let $=N(this,this[V],!0);return Object.defineProperty(this,"visible",{value:$}),$}};J1=["rgb","hex","ansi256"];for(let $ of J1){let q=$[0].toUpperCase()+$.slice(1);for(let[H,J]of[[$,"color"],["bg"+q,"bgColor"],["underline"+q,"underlineColor"]]){let{close:K}=z[J],Z=H1($,J);j[H]={get(){let Q=function(D,B,c){let y=Z[this.level](D,B,c);return N(this,p(y,K,this[V]),this[M])};return Object.defineProperty(this,H,{value:Q}),Q}}}}K1=Object.defineProperties(()=>{},{...j,level:{enumerable:!0,get(){return this[G].level},set($){this[G].level=$}}});Object.defineProperties(O.prototype,{...j,level:e});Q1=O(),w1=O({level:m?m.level:0}),Y1=Q1});
|
|
6
|
-
export{q1 as j9,Y1 as k9,X1 as l9};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{JF as L,KF as h,Wx as J,Xx as Z,rH as z,sH as M}from"./cli-1.1.20-sx7811qs.mjs";import{DZ as X}from"./cli-1.1.20-r4xfymtx.mjs";import{g4 as W}from"./cli-1.1.20-9p9rns5w.mjs";import{Vqa as H,yra as V}from"./cli-1.1.20-j4a7q58c.mjs";import{pta as D,tta as U}from"./cli-1.1.20-0sgvc4nn.mjs";function v(){let b=P.c(6),{addNotification:k,removeNotification:l}=L(),[j,Q]=x.useState(u),p;if(b[0]===Symbol.for("react.memo_cache_sentinel"))p=()=>{let{errors:y}=z();Q(y)},b[0]=p;else p=b[0];J(p);let q,w;if(b[1]!==k||b[2]!==j||b[3]!==l)q=()=>{if(H())return;if(j.length>0){let y=`Found ${j.length} settings ${j.length===1?"issue":"issues"} · /doctor for details`;k({key:B,text:y,color:"warning",priority:"high",timeoutMs:60000})}else l(B)},w=[j,k,l],b[1]=k,b[2]=j,b[3]=l,b[4]=q,b[5]=w;else q=b[4],w=b[5];return x.useEffect(q,w),j}function u(){let{errors:b}=z();return b}var P,x,B="settings-errors";var A=U(()=>{h();V();M();Z();P=D(X(),1),x=D(W(),1)});
|
|
2
|
-
export{v as yg,A as zg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{et as I,ht as X}from"./cli-1.1.20-sx7811qs.mjs";import{Nla as H,Vla as W}from"./cli-1.1.20-003ssrqs.mjs";import{tta as V}from"./cli-1.1.20-0sgvc4nn.mjs";function q(f){J=f}function F(f){z=f}function K(f){N=f}function Q(){return O}function R(f,B){if(O=f,J?.(f,B),f==="requires_action"&&B)G=!0,z?.({pending_action:B});else if(G)G=!1,z?.({pending_action:null});if(f==="idle")z?.({task_summary:null});if(H(process.env.CLAUDE_CODE_EMIT_SESSION_STATE_EVENTS))I({type:"system",subtype:"session_state_changed",state:f})}function _(f){z?.(f)}function j(f){N?.(f)}var J=null,z=null,N=null,G=!1,O="idle";var Y=V(()=>{W();X()});
|
|
2
|
-
export{q as Jc,F as Kc,K as Lc,Q as Mc,R as Nc,_ as Oc,j as Pc,Y as Qc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Jh as e,Mh as fq}from"./cli-1.1.20-jsasy45b.mjs";import{Nh as t,Ph as Hq}from"./cli-1.1.20-g68fwrp1.mjs";import{BG as n,CG as Mq,QO as o,RO as s,SO as Oq,co as S,do as Nq,eo as g,fo as Vq,go as $,ho as Wq,ko as i,lo as Yq,rG as r,sG as kq}from"./cli-1.1.20-sx7811qs.mjs";import{BY as u,DY as Zq}from"./cli-1.1.20-ry7grtff.mjs";import{DZ as Qq,H1 as Xq,a1 as M,c1 as F,u1 as c,v1 as Uq}from"./cli-1.1.20-r4xfymtx.mjs";import{d4 as L,e4 as R,f4 as l}from"./cli-1.1.20-azb7xdf4.mjs";import{g4 as Lq}from"./cli-1.1.20-9p9rns5w.mjs";import{x_ as a,y_ as Jq}from"./cli-1.1.20-hrw31bb0.mjs";import{pta as d,tta as Gq}from"./cli-1.1.20-0sgvc4nn.mjs";function qq(){let Z=T.c(1),q;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=L(F,{dimColor:!0,children:"Claudin will be able to read files in this directory and make edits when auto-accept edits is on."}),Z[0]=q;else q=Z[0];return q}function wq(Z){let q=T.c(5),{path:X}=Z,Q;if(q[0]!==X)Q=L(F,{color:"permission",children:X}),q[0]=X,q[1]=Q;else Q=q[1];let N;if(q[2]===Symbol.for("react.memo_cache_sentinel"))N=L(qq,{}),q[2]=N;else N=q[2];let J;if(q[3]!==Q)J=R(M,{flexDirection:"column",paddingX:2,gap:1,children:[Q,N]}),q[3]=Q,q[4]=J;else J=q[4];return J}function Kq(Z){let q=T.c(14),{value:X,onChange:Q,onSubmit:N,error:J,suggestions:V,selectedSuggestion:w}=Z,k;if(q[0]===Symbol.for("react.memo_cache_sentinel"))k=L(F,{children:"Enter the path to the directory:"}),q[0]=k;else k=q[0];let Y;if(q[1]!==Q||q[2]!==N||q[3]!==X)Y=L(M,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:L(r,{showCursor:!0,placeholder:`Directory path${a.ellipsis}`,value:X,onChange:Q,onSubmit:N,columns:80,cursorOffset:X.length,onChangeCursorOffset:Aq})}),q[1]=Q,q[2]=N,q[3]=X,q[4]=Y;else Y=q[4];let W;if(q[5]!==w||q[6]!==V)W=V.length>0&&L(M,{marginBottom:1,children:L(t,{suggestions:V,selectedSuggestion:w})}),q[5]=w,q[6]=V,q[7]=W;else W=q[7];let U;if(q[8]!==J)U=J&&L(F,{color:"error",children:J}),q[8]=J,q[9]=U;else U=q[9];let O;if(q[10]!==Y||q[11]!==W||q[12]!==U)O=R(M,{flexDirection:"column",children:[k,Y,W,U]}),q[10]=Y,q[11]=W,q[12]=U,q[13]=O;else O=q[13];return O}function Aq(){}function lq(Z){let q=T.c(34),{onAddDirectory:X,onCancel:Q,permissionContext:N,directoryPath:J}=Z,[V,w]=H.useState(""),[k,Y]=H.useState(null),W;if(q[0]===Symbol.for("react.memo_cache_sentinel"))W=[],q[0]=W;else W=q[0];let[U,O]=H.useState(W),[f,B]=H.useState(0),v;if(q[1]===Symbol.for("react.memo_cache_sentinel"))v=async(z)=>{if(!z){O([]),B(0);return}let G=await e(z);O(G),B(0)},q[1]=v;else v=q[1];let I=c(v,100),C,P;if(q[2]!==I||q[3]!==V)C=()=>{I(V)},P=[V,I],q[2]=I,q[3]=V,q[4]=C,q[5]=P;else C=q[4],P=q[5];H.useEffect(C,P);let _;if(q[6]===Symbol.for("react.memo_cache_sentinel"))_=(z)=>{let G=z.id+"/";w(G),Y(null)},q[6]=_;else _=q[6];let zq=_,m;if(q[7]!==X||q[8]!==N)m=async(z)=>{let G=await o(z,N);if(G.resultType==="success")X(G.absolutePath,!1);else Y(s(G))},q[7]=X,q[8]=N,q[9]=m;else m=q[9];let K=m,D;if(q[10]===Symbol.for("react.memo_cache_sentinel"))D={context:"Settings"},q[10]=D;else D=q[10];u("confirm:no",Q,D);let b;if(q[11]!==K||q[12]!==f||q[13]!==U)b=(z)=>{if(U.length>0){if(z.key==="tab"){z.preventDefault();let G=U[f];if(G)zq(G);return}if(z.key==="return"){z.preventDefault();let G=U[f];if(G)K(G.id+"/");return}if(z.key==="up"||z.ctrl&&z.key==="p"){z.preventDefault(),B((G)=>G<=0?U.length-1:G-1);return}if(z.key==="down"||z.ctrl&&z.key==="n"){z.preventDefault(),B((G)=>G>=U.length-1?0:G+1);return}}},q[11]=K,q[12]=f,q[13]=U,q[14]=b;else b=q[14];let x=b,j;if(q[15]!==J||q[16]!==X||q[17]!==Q)j=(z)=>{if(!J)return;let G=z;q:switch(G){case"yes-session":{X(J,!1);break q}case"yes-remember":{X(J,!0);break q}case"no":Q()}},q[15]=J,q[16]=X,q[17]=Q,q[18]=j;else j=q[18];let y=j,p=J?void 0:Eq,A;if(q[19]!==V||q[20]!==J||q[21]!==k||q[22]!==y||q[23]!==K||q[24]!==f||q[25]!==U)A=J?R(M,{flexDirection:"column",gap:1,children:[L(wq,{path:J}),L(n,{options:Rq,onChange:y,onCancel:()=>y("no")})]}):R(M,{flexDirection:"column",gap:1,marginX:2,children:[L(qq,{}),L(Kq,{value:V,onChange:w,onSubmit:K,error:k,suggestions:U,selectedSuggestion:f})]}),q[19]=V,q[20]=J,q[21]=k,q[22]=y,q[23]=K,q[24]=f,q[25]=U,q[26]=A;else A=q[26];let E;if(q[27]!==Q||q[28]!==p||q[29]!==A)E=L(i,{title:"Add directory to workspace",onCancel:Q,color:"permission",isCancelActive:!1,inputGuide:p,children:A}),q[27]=Q,q[28]=p,q[29]=A,q[30]=E;else E=q[30];let h;if(q[31]!==x||q[32]!==E)h=L(M,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:x,children:E}),q[31]=x,q[32]=E,q[33]=h;else h=q[33];return h}function Eq(Z){return Z.pending?R(F,{children:["Press ",Z.keyName," again to exit"]}):R($,{children:[L(S,{shortcut:"Tab",action:"complete"}),L(S,{shortcut:"Enter",action:"add"}),L(g,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"})]})}var T,H,Rq;var Fq=Gq(()=>{Jq();Uq();Oq();kq();Xq();Zq();fq();Vq();Mq();Wq();Yq();Nq();Hq();l();T=d(Qq(),1),H=d(Lq(),1),Rq=[{value:"yes-session",label:"Yes, for this session"},{value:"yes-remember",label:"Yes, and remember this directory"},{value:"no",label:"No"}]});
|
|
2
|
-
export{lq as Hh,Fq as Ih};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tta as r}from"./cli-1.1.20-0sgvc4nn.mjs";var i,a=(s,e)=>function(){try{return e||(0,s[i(s)[0]])((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},n;var p=r(()=>{i=Object.getOwnPropertyNames,n=a({"package.json"(s,e){e.exports={name:"@mendable/firecrawl-js",version:"4.35.0",description:"JavaScript SDK for the Firecrawl API: web scraping, crawling, web search, and scientific literature search over a research paper index of PubMed, bioRxiv, medRxiv and arXiv abstracts",main:"dist/index.js",types:"dist/index.d.ts",exports:{"./package.json":"./package.json",".":{import:"./dist/index.js",default:"./dist/index.cjs"}},type:"module",scripts:{build:"tsup","build-and-publish":"pnpm run build && pnpm publish --access public","publish-beta":"pnpm run build && pnpm publish --access public --tag beta",test:"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/e2e/v2/*.test.ts --detectOpenHandles","test:unit":"NODE_OPTIONS=--experimental-vm-modules jest --verbose src/__tests__/unit/v2/*.test.ts"},repository:{type:"git",url:"git+https://github.com/firecrawl/firecrawl.git"},author:"Mendable.ai",license:"MIT",dependencies:{axios:"1.18.0",firecrawl:"4.30.1","typescript-event-target":"^1.1.1",zod:"^3.23.8","zod-to-json-schema":"^3.23.0"},bugs:{url:"https://github.com/firecrawl/firecrawl/issues"},homepage:"https://github.com/firecrawl/firecrawl#readme",devDependencies:{"@jest/globals":"^30.2.0","@types/dotenv":"^8.2.0","@types/jest":"^30.0.0","@types/mocha":"^10.0.6","@types/node":"^20.12.12","@types/uuid":"^9.0.8",dotenv:"^16.4.5",jest:"^30.2.0","ts-jest":"^29.4.5",tsup:"^8.5.0",typescript:"^5.4.5",uuid:"^14.0.0"},keywords:["firecrawl","mendable","crawler","web","scraper","api","sdk","web-search","literature-search","research","scientific-papers","academic-search","biomedical","life-sciences","pubmed","biorxiv","medrxiv","arxiv","preprints","citations","bioinformatics"],engines:{node:">=22.0.0"}}}})});
|
|
2
|
-
export{n as wi,p as xi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{tta as $}from"./cli-1.1.20-0sgvc4nn.mjs";function w(z){return z>=48&&z<=126}var d,Y="\x1B",h="\x07",j=";",H;var L=$(()=>{d={NUL:0,SOH:1,STX:2,ETX:3,EOT:4,ENQ:5,ACK:6,BEL:7,BS:8,HT:9,LF:10,VT:11,FF:12,CR:13,SO:14,SI:15,DLE:16,DC1:17,DC2:18,DC3:19,DC4:20,NAK:21,SYN:22,ETB:23,CAN:24,EM:25,SUB:26,ESC:27,FS:28,GS:29,RS:30,US:31,DEL:127},H={CSI:91,OSC:93,DCS:80,APC:95,PM:94,SOS:88,ST:92}});function A(z){return z>=Z.PARAM_START&&z<=Z.PARAM_END}function N(z){return z>=Z.INTERMEDIATE_START&&z<=Z.INTERMEDIATE_END}function m(z){return z>=Z.FINAL_START&&z<=Z.FINAL_END}function J(...z){if(z.length===0)return B;if(z.length===1)return`${B}${z[0]}`;let Q=z.slice(0,-1),V=z[z.length-1];return`${B}${Q.join(j)}${V}`}function q(z=1){return z===0?"":J(z,"A")}function D(z=1){return z===0?"":J(z,"B")}function M(z=1){return z===0?"":J(z,"C")}function W(z=1){return z===0?"":J(z,"D")}function R(z){return J(z,"G")}function C(z,Q){return J(z,Q,"H")}function b(z,Q){let V="";if(z<0)V+=W(-z);else if(z>0)V+=M(z);if(Q<0)V+=q(-Q);else if(Q>0)V+=D(Q);return V}function S(){return J("K")}function l(z){if(z<=0)return"";let Q="";for(let V=0;V<z;V++)if(Q+=F,V<z-1)Q+=q(1);return Q+=k,Q}function o(z=1){return z===0?"":J(z,"S")}function y(z=1){return z===0?"":J(z,"T")}function a(z,Q){return J(z,Q,"r")}var B,Z,g,I,_,u,k,v,F,K,E,c,t,n,i,r,e,s,zz,Jz;var X=$(()=>{L();B=Y+String.fromCharCode(H.CSI),Z={PARAM_START:48,PARAM_END:63,INTERMEDIATE_START:32,INTERMEDIATE_END:47,FINAL_START:64,FINAL_END:126};g={CUU:65,CUD:66,CUF:67,CUB:68,CNL:69,CPL:70,CHA:71,CUP:72,CHT:73,VPA:100,HVP:102,ED:74,EL:75,ECH:88,IL:76,DL:77,ICH:64,DCH:80,SU:83,SD:84,SM:104,RM:108,SGR:109,DSR:110,DECSCUSR:113,DECSTBM:114,SCOSC:115,SCORC:117,CBT:90},I=["toEnd","toStart","all","scrollback"],_=["toEnd","toStart","all"],u=[{style:"block",blinking:!0},{style:"block",blinking:!0},{style:"block",blinking:!1},{style:"underline",blinking:!0},{style:"underline",blinking:!1},{style:"bar",blinking:!0},{style:"bar",blinking:!1}];k=J("G");v=J("H");F=J(2,"K"),K=J(2,"J"),E=J(3,"J");c=J("r"),t=J("200~"),n=J("201~"),i=J("I"),r=J("O"),e=J(">1u"),s=J("<u"),zz=J(">4;2m"),Jz=J(">4m")});function U(){return process.platform==="win32"&&!!process.env.WT_SESSION}function p(){if(process.env.TERM_PROGRAM==="mintty")return!0;if(process.platform==="win32"&&process.env.MSYSTEM)return!0;return!1}function G(){if(U())return!0;if(process.platform==="win32"&&process.env.TERM_PROGRAM==="vscode"&&process.env.TERM_PROGRAM_VERSION)return!0;if(p())return!0;return!1}function T(){if(process.platform==="win32"&&!G())return K+P;return K+v}var P,Zz;var f=$(()=>{X();P=J(0,"f");Zz=T()});
|
|
2
|
-
export{d as N1,Y as O1,h as P1,j as Q1,H as R1,w as S1,L as T1,A as U1,N as V1,m as W1,J as X1,g as Y1,I as Z1,_ as _1,u as $1,R as a2,C as b2,v as c2,b as d2,S as e2,K as f2,l as g2,o as h2,y as i2,a as j2,c as k2,t as l2,n as m2,i as n2,r as o2,e as p2,s as q2,zz as r2,Jz as s2,X as t2,T as u2,Zz as v2,f as w2};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{bia as G,mia as K}from"./cli-1.1.20-rmvq7swt.mjs";import{cja as j,eja as M,fja as J,gja as N}from"./cli-1.1.20-n9ja4mee.mjs";M();K();N();var q={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 B={message:"must be 0 (disabled) or ≥100ms"},P=J(()=>j.object({poll_interval_ms_not_at_capacity:j.number().int().min(100),poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B),non_exclusive_heartbeat_interval_ms:j.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B).default(q.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:j.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:j.number().int().min(0).default(120000)}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.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((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.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 $(){let b=G("tengu_bridge_poll_interval_config",q,300000),x=P().safeParse(b);return x.success?x.data:q}
|
|
2
|
-
export{q as yb,$ as zb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Q8 as X,T7 as W,Z4 as x,c5 as G,d5 as V,q8 as m}from"./cli-1.1.20-rvn2axad.mjs";import{laa as J,maa as z,paa as Y,wea as w,xea as B}from"./cli-1.1.20-hrw31bb0.mjs";import{Qja as Z,Yja as M}from"./cli-1.1.20-x4ezs1pz.mjs";import{tta as j}from"./cli-1.1.20-0sgvc4nn.mjs";function D(){q=void 0,J()}function L(){if(q!==void 0)return q;if(x()!=="firstParty")return q=z(!1);if(!G())return q=z(!1);if(w())return q=z(!1);if(process.env.CLAUDE_CODE_ENTRYPOINT==="local-agent")return q=z(!1);let Q=m();if(Q?.accessToken&&Q.subscriptionType===null)return q=z(!0);if(Q?.accessToken&&Q.scopes?.includes(Z)&&(Q.subscriptionType==="enterprise"||Q.subscriptionType==="team"))return q=z(!0);try{let{key:$}=W({skipRetrievingKeyFromApiKeyHelper:!0});if($)return q=z(!0)}catch{}return q=z(!1)}var q;var f=j(()=>{M();X();V();B();Y()});function g(Q){let $=Q.toUpperCase();return k.has($)||v.some((F)=>$.startsWith(F))}var k,v,S,I;var K=j(()=>{k=new Set(["CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST","CLAUDIN_USE_BEDROCK","CLAUDIN_USE_VERTEX","CLAUDIN_USE_FOUNDRY","CLAUDIN_USE_GITHUB","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL","ANTHROPIC_VERTEX_BASE_URL","ANTHROPIC_FOUNDRY_BASE_URL","ANTHROPIC_FOUNDRY_RESOURCE","ANTHROPIC_VERTEX_PROJECT_ID","CLOUD_ML_REGION","ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_BEARER_TOKEN_BEDROCK","ANTHROPIC_FOUNDRY_API_KEY","CLAUDIN_SKIP_BEDROCK_AUTH","CLAUDIN_SKIP_VERTEX_AUTH","CLAUDIN_SKIP_FOUNDRY_AUTH","ANTHROPIC_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_SMALL_FAST_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","CLAUDIN_SUBAGENT_MODEL"]),v=["VERTEX_REGION_CLAUDE_"];S=["apiKeyHelper","awsAuthRefresh","awsCredentialExport","gcpAuthRefresh","otelHeadersHelper","statusLine"],I=new Set(["ANTHROPIC_CUSTOM_HEADERS","ANTHROPIC_CUSTOM_MODEL_OPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","ANTHROPIC_SMALL_FAST_MODEL","AWS_DEFAULT_REGION","AWS_PROFILE","AWS_REGION","BASH_DEFAULT_TIMEOUT_MS","BASH_MAX_OUTPUT_LENGTH","BASH_MAX_TIMEOUT_MS","CLAUDIN_BASH_MAINTAIN_PROJECT_WORKING_DIR","CLAUDIN_API_KEY_HELPER_TTL_MS","CLAUDIN_DISABLE_EXPERIMENTAL_BETAS","CLAUDIN_DISABLE_NONESSENTIAL_TRAFFIC","CLAUDIN_DISABLE_TERMINAL_TITLE","CLAUDE_CODE_ENABLE_TELEMETRY","CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS","CLAUDIN_IDE_SKIP_AUTO_INSTALL","CLAUDIN_MAX_OUTPUT_TOKENS","CLAUDIN_SKIP_BEDROCK_AUTH","CLAUDIN_SKIP_FOUNDRY_AUTH","CLAUDIN_SKIP_VERTEX_AUTH","CLAUDIN_SUBAGENT_MODEL","CLAUDIN_USE_BEDROCK","CLAUDIN_USE_FOUNDRY","CLAUDIN_USE_GITHUB","CLAUDIN_USE_VERTEX","DISABLE_AUTOUPDATER","DISABLE_BUG_COMMAND","DISABLE_COST_WARNINGS","DISABLE_ERROR_REPORTING","DISABLE_FEEDBACK_COMMAND","DISABLE_TELEMETRY","ENABLE_TOOL_SEARCH","MAX_MCP_OUTPUT_TOKENS","MAX_THINKING_TOKENS","MCP_TIMEOUT","MCP_TOOL_TIMEOUT","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_LOGS_PROTOCOL","OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE","OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_PROTOCOL","OTEL_EXPORTER_OTLP_PROTOCOL","OTEL_EXPORTER_OTLP_TRACES_HEADERS","OTEL_LOG_TOOL_DETAILS","OTEL_LOG_USER_PROMPTS","OTEL_LOGS_EXPORT_INTERVAL","OTEL_LOGS_EXPORTER","OTEL_METRIC_EXPORT_INTERVAL","OTEL_METRICS_EXPORTER","OTEL_METRICS_INCLUDE_ACCOUNT_UUID","OTEL_METRICS_INCLUDE_SESSION_ID","OTEL_METRICS_INCLUDE_VERSION","OTEL_RESOURCE_ATTRIBUTES","USE_BUILTIN_RIPGREP","VERTEX_REGION_CLAUDE_3_5_HAIKU","VERTEX_REGION_CLAUDE_3_5_SONNET","VERTEX_REGION_CLAUDE_3_7_SONNET","VERTEX_REGION_CLAUDE_4_0_OPUS","VERTEX_REGION_CLAUDE_4_0_SONNET","VERTEX_REGION_CLAUDE_4_1_OPUS","VERTEX_REGION_CLAUDE_4_5_SONNET","VERTEX_REGION_CLAUDE_4_6_SONNET","VERTEX_REGION_CLAUDE_HAIKU_4_5"])});
|
|
2
|
-
export{D as nU,L as oU,f as pU,g as qU,S as rU,I as sU,K as tU};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{kta as V_,lta as su,nta as K_,ota as f_}from"./cli-1.1.20-y9jwxk0y.mjs";import{rta as H,uta as $_}from"./cli-1.1.20-0sgvc4nn.mjs";var W_=H((k_)=>{var z_=$_("node:stream"),v=V_(),K=f_(),q=K_(),m=(_)=>_?.body instanceof z_.Readable||typeof ReadableStream<"u"&&_?.body instanceof ReadableStream,G_=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],J_=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],X_=["TimeoutError","RequestTimeout","RequestTimeoutException"],C_=[500,502,503,504],d_=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],Z_=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],A=(_)=>_?.$retryable!==void 0,p=(_)=>G_.includes(_.name),y=(_)=>_.$metadata?.clockSkewCorrected,s=(_)=>{let u=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);if(!(_&&_ instanceof TypeError))return!1;return u.has(_.message)},J=(_)=>_.$metadata?.httpStatusCode===429||J_.includes(_.name)||_.$retryable?.throttling==!0,X=(_,u=0)=>A(_)||y(_)||_.name==="InvalidSignatureException"&&_.message?.includes("Signature expired")||X_.includes(_.name)||d_.includes(_?.code||"")||Z_.includes(_?.code||"")||C_.includes(_.$metadata?.httpStatusCode||0)||s(_)||o(_)||_.cause!==void 0&&u<=10&&X(_.cause,u+1),a=(_)=>{if(_.$metadata?.httpStatusCode!==void 0){let u=_.$metadata.httpStatusCode;if(500<=u&&u<=599&&!X(_))return!0;return!1}return!1};function o(_){return _.code==="ERR_HTTP2_STREAM_ERROR"&&_.message.includes("NGHTTP2_REFUSED_STREAM")}var e=100,Q=20000,t=500,Z=500,r=5,__=10,g=1,c="amz-sdk-invocation-id",w="amz-sdk-request";function u_(_,u){if(!K.HttpResponse.isInstance(_))return;for(let E of Object.keys(_.headers)){let O=E.toLowerCase();if(O==="retry-after"){let T=_.headers[E],b=NaN;if(T.endsWith("GMT"))try{b=(q.parseRfc7231DateTime(T).getTime()-Date.now())/1000}catch(L){u?.trace?.("Failed to parse retry-after header"),u?.trace?.(L)}else if(T.match(/ GMT, ((\d+)|(\d+\.\d+))$/))b=Number(T.match(/ GMT, ([\d.]+)$/)?.[1]);else if(T.match(/^((\d+)|(\d+\.\d+))$/))b=Number(T);else if(Date.parse(T)>=Date.now())b=(Date.parse(T)-Date.now())/1000;if(isNaN(b))return;return new Date(Date.now()+b*1000)}else if(O==="x-amz-retry-after"){let T=_.headers[E],b=Number(T);if(isNaN(b)){u?.trace?.(`Failed to parse x-amz-retry-after=${T}`);return}return new Date(Date.now()+b)}}}function H_(_,u){return u_(_,u)}var E_=(_)=>{if(_ instanceof Error)return _;if(_ instanceof Object)return Object.assign(Error(),_);if(typeof _==="string")return Error(_);return Error(`AWS SDK error wrapper for ${_}`)};function O_(_){return(u)=>(E,O)=>async(T)=>{let b=await u.retryStrategy(),L=await u.maxAttempts();if(Q_(b)){b=b;let N=await b.acquireInitialRetryToken((O.partition_id??"")+(O.__retryLongPoll?":longpoll":"")),j=Error(),Y=0,F=0,{request:I}=T,R=K.HttpRequest.isInstance(I);if(R)I.headers[c]=q.v4();while(!0)try{if(R)I.headers[w]=`attempt=${Y+1}; max=${L}`;let{response:V,output:z}=await E(T);return b.recordSuccess(N),z.$metadata.attempts=Y+1,z.$metadata.totalRetryDelay=F,{response:V,output:z}}catch(V){let z=c_(V,u.logger);if(j=E_(V),R&&_(I))throw(O.logger instanceof v.NoOpLogger?console:O.logger)?.warn("An error was encountered in a non-retryable streaming request."),j;try{N=await b.refreshRetryTokenForRetry(N,z)}catch(x){if(typeof x.$backoff==="number")await l(x.$backoff);if(!j.$metadata)j.$metadata={};throw j.$metadata.attempts=Y+1,j.$metadata.totalRetryDelay=F,j}Y=N.getRetryCount();let k=N.getRetryDelay();F+=k,await l(k)}}else{if(b=b,b?.mode)O.userAgent=[...O.userAgent||[],["cfg/retry-mode",b.mode]];return b.retry(E,T)}}}var l=(_)=>new Promise((u)=>setTimeout(u,_)),Q_=(_)=>typeof _.acquireInitialRetryToken<"u"&&typeof _.refreshRetryTokenForRetry<"u"&&typeof _.recordSuccess<"u",c_=(_,u)=>{let E={error:_,errorType:w_(_)},O=u_(_.$response,u);if(O)E.retryAfterHint=O;return E},w_=(_)=>{if(J(_))return"THROTTLING";if(X(_))return"TRANSIENT";if(a(_))return"SERVER_ERROR";return"CLIENT_ERROR"},b_={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};function B_(_){let u=O_(_);return(E)=>({applyToStack:(O)=>{O.add(u(E),b_)}})}class C{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(_){this.beta=_?.beta??0.7,this.minCapacity=_?.minCapacity??1,this.minFillRate=_?.minFillRate??0.5,this.scaleConstant=_?.scaleConstant??0.4,this.smooth=_?.smooth??0.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(_){let u;this.updateMeasuredRate();let E=_;if(E?.errorType==="THROTTLING"||J(E?.error??_)){let b=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=b,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),u=this.cubicThrottle(b),this.enableTokenBucket()}else this.calculateTimeWindow(),u=this.cubicSuccess(this.getCurrentTimeInSeconds());let T=Math.min(u,2*this.measuredTxRate);this.updateTokenBucketRate(T)}getCurrentTimeInSeconds(){return Date.now()/1000}async acquireTokenBucket(_){if(!this.enabled)return;this.refillTokenBucket();while(_>this.availableTokens){let u=(_-this.availableTokens)/this.fillRate*1000;await new Promise((E)=>C.setTimeoutFn(E,u)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-_}refillTokenBucket(){let _=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=_;return}let u=(_-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+u),this.lastTimestamp=_}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,0.3333333333333333))}cubicThrottle(_){return this.getPrecise(_*this.beta)}cubicSuccess(_){return this.getPrecise(this.scaleConstant*Math.pow(_-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(_){this.refillTokenBucket(),this.fillRate=Math.max(_,this.minFillRate),this.maxCapacity=Math.max(_,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let _=this.getCurrentTimeInSeconds(),u=Math.floor(_*2)/2;if(this.requestCount++,u>this.lastTxRateBucket){let E=this.requestCount/(u-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(E*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=u}}getPrecise(_){return parseFloat(_.toFixed(8))}}class M{static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return M.v2026?50:100}static throttlingDelay(){return M.v2026?1000:500}static cost(){return M.v2026?14:5}static throttlingCost(){return M.v2026?5:10}static modifiedCostType(){return M.v2026?"THROTTLING":"TRANSIENT"}}class T_{x=M.delay();computeNextBackoffDelay(_){let u=Math.random(),E=2,O=u*Math.min(this.x*2**_,Q);return Math.floor(O)}setDelayBase(_){this.x=_}}class h{delay;count;cost;longPoll;constructor(_,u,E,O){this.delay=_,this.count=u,this.cost=E,this.longPoll=O}getRetryCount(){return this.count}getRetryDelay(){return Math.min(Q,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}}k_.RETRY_MODES=void 0;(function(_){_.STANDARD="standard",_.ADAPTIVE="adaptive"})(k_.RETRY_MODES||(k_.RETRY_MODES={}));var $=3,Y_=k_.RETRY_MODES.STANDARD,d={incompatible:1,attempts:2,capacity:3},G=class{mode=k_.RETRY_MODES.STANDARD;capacity=Z;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(u){if(typeof u==="number")this.maxAttemptsProvider=async()=>u;else if(typeof u==="function")this.maxAttemptsProvider=u;else if(u&&typeof u==="object")this.maxAttemptsProvider=async()=>u.maxAttempts,this.baseDelay=u.baseDelay,this.retryBackoffStrategy=u.backoff;this.maxAttemptsProvider??=async()=>$,this.baseDelay??=M.delay(),this.retryBackoffStrategy??=new T_}async acquireInitialRetryToken(u){return new h(M.delay(),0,void 0,M.v2026&&u.includes(":longpoll"))}async refreshRetryTokenForRetry(u,E){let O=await this.getMaxAttempts(),T=this.retryCode(u,E,O),b=T===0,L=u.isLongPoll?.();if(b||L){let N=E.errorType;this.retryBackoffStrategy.setDelayBase(N==="THROTTLING"?M.throttlingDelay():this.baseDelay);let j=this.retryBackoffStrategy.computeNextBackoffDelay(u.getRetryCount()),Y=j;if(E.retryAfterHint instanceof Date)Y=Math.max(j,Math.min(E.retryAfterHint.getTime()-Date.now(),j+5000));if(!b)throw Object.assign(Error("No retry token available"),{$backoff:M.v2026&&T===d.capacity&&L?Y:0});else{let F=this.getCapacityCost(N);return this.capacity-=F,new h(Y,u.getRetryCount()+1,F,u.isLongPoll?.()??!1)}}throw Error("No retry token available")}recordSuccess(u){this.capacity=Math.min(Z,this.capacity+(u.getRetryCost()??g))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(u){return console.warn(`Max attempts provider could not resolve. Using default of ${$}`),$}}retryCode(u,E,O){let T=u.getRetryCount()+1,b=this.isRetryableError(E.errorType)?0:d.incompatible,L=T<O?0:d.attempts,N=this.capacity>=this.getCapacityCost(E.errorType)?0:d.capacity;return b||L||N}getCapacityCost(u){return u===M.modifiedCostType()?M.throttlingCost():M.cost()}isRetryableError(u){return u==="THROTTLING"||u==="TRANSIENT"}},j_=class{mode=k_.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(u,E){let{rateLimiter:O}=E??{};this.rateLimiter=O??new C,this.standardRetryStrategy=E?new G({maxAttempts:typeof u==="number"?u:3,...E}):new G(u)}async acquireInitialRetryToken(u){let E=await this.standardRetryStrategy.acquireInitialRetryToken(u);return await this.rateLimiter.getSendToken(),E}async refreshRetryTokenForRetry(u,E){this.rateLimiter.updateClientSendingRate(E);let O=await this.standardRetryStrategy.refreshRetryTokenForRetry(u,E);return await this.rateLimiter.getSendToken(),O}recordSuccess(u){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(u)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}};class P_ extends G{computeNextBackoffDelay;constructor(_,u=M.delay()){super(typeof _==="function"?_:async()=>_);if(typeof u==="number")this.computeNextBackoffDelay=()=>u;else this.computeNextBackoffDelay=u}async refreshRetryTokenForRetry(_,u){let E=await super.refreshRetryTokenForRetry(_,u);return E.getRetryDelay=()=>this.computeNextBackoffDelay(E.getRetryCount()),E}}var v_=(_,u)=>{let E=_,O=g,T=r,b=__,L=_,N=(I)=>I.name==="TimeoutError"?b:T,j=(I)=>N(I)<=L;return Object.freeze({hasRetryTokens:j,retrieveRetryTokens:(I)=>{if(!j(I))throw Error("No retry token available");let R=N(I);return L-=R,R},releaseRetryTokens:(I)=>{L+=I??O,L=Math.min(L,E)}})},L_=(_,u)=>Math.floor(Math.min(Q,Math.random()*2**u*_)),N_=(_)=>{if(!_)return!1;return A(_)||p(_)||J(_)||X(_)};class n{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=k_.RETRY_MODES.STANDARD;constructor(_,u){this.maxAttemptsProvider=_,this.retryDecider=u?.retryDecider??N_,this.delayDecider=u?.delayDecider??L_,this.retryQuota=u?.retryQuota??v_(Z)}shouldRetry(_,u,E){return u<E&&this.retryDecider(_)&&this.retryQuota.hasRetryTokens(_)}async getMaxAttempts(){let _;try{_=await this.maxAttemptsProvider()}catch(u){_=$}return _}async retry(_,u,E){let O,T=0,b=0,L=await this.getMaxAttempts(),{request:N}=u;if(K.HttpRequest.isInstance(N))N.headers[c]=q.v4();while(!0)try{if(K.HttpRequest.isInstance(N))N.headers[w]=`attempt=${T+1}; max=${L}`;if(E?.beforeRequest)await E.beforeRequest();let{response:j,output:Y}=await _(u);if(E?.afterRequest)E.afterRequest(j);return this.retryQuota.releaseRetryTokens(O),Y.$metadata.attempts=T+1,Y.$metadata.totalRetryDelay=b,{response:j,output:Y}}catch(j){let Y=E_(j);if(T++,this.shouldRetry(Y,T,L)){O=this.retryQuota.retrieveRetryTokens(Y);let F=this.delayDecider(J(Y)?t:e,T),I=h_(Y.$response),R=Math.max(I||0,F);b+=R,await new Promise((V)=>setTimeout(V,R));continue}if(!Y.$metadata)Y.$metadata={};throw Y.$metadata.attempts=T,Y.$metadata.totalRetryDelay=b,Y}}}var h_=(_)=>{if(!K.HttpResponse.isInstance(_))return;let u=Object.keys(_.headers).find((b)=>b.toLowerCase()==="retry-after");if(!u)return;let E=_.headers[u],O=Number(E);if(!Number.isNaN(O))return O*1000;return new Date(E).getTime()-Date.now()};class M_ extends n{rateLimiter;constructor(_,u){let{rateLimiter:E,...O}=u??{};super(_,O);this.rateLimiter=E??new C,this.mode=k_.RETRY_MODES.ADAPTIVE}async retry(_,u){return super.retry(_,u,{beforeRequest:async()=>{return this.rateLimiter.getSendToken()},afterRequest:(E)=>{this.rateLimiter.updateClientSendingRate(E)}})}}var S="AWS_MAX_ATTEMPTS",i="max_attempts",S_={environmentVariableSelector:(_)=>{let u=_[S];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Environment variable ${S} mast be a number, got "${u}"`);return E},configFileSelector:(_)=>{let u=_[i];if(!u)return;let E=parseInt(u);if(Number.isNaN(E))throw Error(`Shared config file entry ${i} mast be a number, got "${u}"`);return E},default:$},i_=(_)=>{let{retryStrategy:u,retryMode:E}=_,O=v.normalizeProvider(_.maxAttempts??$),T=u?Promise.resolve(u):void 0,b=async()=>await v.normalizeProvider(E)()===k_.RETRY_MODES.ADAPTIVE?new j_(O):new G(O);return Object.assign(_,{maxAttempts:O,retryStrategy:()=>T??=b()})},U_="AWS_RETRY_MODE",I_="retry_mode",q_={environmentVariableSelector:(_)=>_[U_],configFileSelector:(_)=>_[I_],default:Y_},F_=()=>(_)=>async(u)=>{let{request:E}=u;if(K.HttpRequest.isInstance(E))delete E.headers[c],delete E.headers[w];return _(u)},R_={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},A_=(_)=>({applyToStack:(u)=>{u.addRelativeTo(F_(),R_)}}),g_=O_(m),n_=B_(m);k_.AdaptiveRetryStrategy=j_;k_.CONFIG_MAX_ATTEMPTS=i;k_.CONFIG_RETRY_MODE=I_;k_.ConfiguredRetryStrategy=P_;k_.DEFAULT_MAX_ATTEMPTS=$;k_.DEFAULT_RETRY_DELAY_BASE=e;k_.DEFAULT_RETRY_MODE=Y_;k_.DefaultRateLimiter=C;k_.DeprecatedAdaptiveRetryStrategy=M_;k_.DeprecatedStandardRetryStrategy=n;k_.ENV_MAX_ATTEMPTS=S;k_.ENV_RETRY_MODE=U_;k_.INITIAL_RETRY_TOKENS=Z;k_.INVOCATION_ID_HEADER=c;k_.MAXIMUM_RETRY_DELAY=Q;k_.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=S_;k_.NODE_RETRY_MODE_CONFIG_OPTIONS=q_;k_.NO_RETRY_INCREMENT=g;k_.REQUEST_HEADER=w;k_.RETRY_COST=r;k_.Retry=M;k_.StandardRetryStrategy=G;k_.THROTTLING_RETRY_DELAY_BASE=t;k_.TIMEOUT_RETRY_COST=__;k_.defaultDelayDecider=L_;k_.defaultRetryDecider=N_;k_.getOmitRetryHeadersPlugin=A_;k_.getRetryAfterHint=H_;k_.getRetryPlugin=n_;k_.isBrowserNetworkError=s;k_.isClockSkewCorrectedError=y;k_.isClockSkewError=p;k_.isNodeJsHttp2TransientError=o;k_.isRetryableByTrait=A;k_.isServerError=a;k_.isThrottlingError=J;k_.isTransientError=X;k_.omitRetryHeadersMiddleware=F_;k_.omitRetryHeadersMiddlewareOptions=R_;k_.resolveRetryConfig=i_;k_.retryMiddleware=g_;k_.retryMiddlewareOptions=b_});var D_=H((P)=>{Object.defineProperty(P,"__esModule",{value:!0});P.TIMEOUT_RETRY_COST=P.THROTTLING_RETRY_DELAY_BASE=P.Retry=P.RETRY_MODES=P.RETRY_COST=P.NO_RETRY_INCREMENT=P.REQUEST_HEADER=P.MAXIMUM_RETRY_DELAY=P.INVOCATION_ID_HEADER=P.INITIAL_RETRY_TOKENS=P.DEFAULT_RETRY_MODE=P.DEFAULT_RETRY_DELAY_BASE=P.DEFAULT_MAX_ATTEMPTS=P.StandardRetryStrategy=P.DefaultRateLimiter=P.ConfiguredRetryStrategy=P.AdaptiveRetryStrategy=void 0;var U=W_();Object.defineProperty(P,"AdaptiveRetryStrategy",{enumerable:!0,get:function(){return U.AdaptiveRetryStrategy}});Object.defineProperty(P,"ConfiguredRetryStrategy",{enumerable:!0,get:function(){return U.ConfiguredRetryStrategy}});Object.defineProperty(P,"DefaultRateLimiter",{enumerable:!0,get:function(){return U.DefaultRateLimiter}});Object.defineProperty(P,"StandardRetryStrategy",{enumerable:!0,get:function(){return U.StandardRetryStrategy}});Object.defineProperty(P,"DEFAULT_MAX_ATTEMPTS",{enumerable:!0,get:function(){return U.DEFAULT_MAX_ATTEMPTS}});Object.defineProperty(P,"DEFAULT_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_DELAY_BASE}});Object.defineProperty(P,"DEFAULT_RETRY_MODE",{enumerable:!0,get:function(){return U.DEFAULT_RETRY_MODE}});Object.defineProperty(P,"INITIAL_RETRY_TOKENS",{enumerable:!0,get:function(){return U.INITIAL_RETRY_TOKENS}});Object.defineProperty(P,"INVOCATION_ID_HEADER",{enumerable:!0,get:function(){return U.INVOCATION_ID_HEADER}});Object.defineProperty(P,"MAXIMUM_RETRY_DELAY",{enumerable:!0,get:function(){return U.MAXIMUM_RETRY_DELAY}});Object.defineProperty(P,"REQUEST_HEADER",{enumerable:!0,get:function(){return U.REQUEST_HEADER}});Object.defineProperty(P,"NO_RETRY_INCREMENT",{enumerable:!0,get:function(){return U.NO_RETRY_INCREMENT}});Object.defineProperty(P,"RETRY_COST",{enumerable:!0,get:function(){return U.RETRY_COST}});Object.defineProperty(P,"RETRY_MODES",{enumerable:!0,get:function(){return U.RETRY_MODES}});Object.defineProperty(P,"Retry",{enumerable:!0,get:function(){return U.Retry}});Object.defineProperty(P,"THROTTLING_RETRY_DELAY_BASE",{enumerable:!0,get:function(){return U.THROTTLING_RETRY_DELAY_BASE}});Object.defineProperty(P,"TIMEOUT_RETRY_COST",{enumerable:!0,get:function(){return U.TIMEOUT_RETRY_COST}})});var yu=H((gu)=>{var wu=D_(),B={warningEmitted:!1},Bu=(_)=>{if(_&&!B.warningEmitted){if(process.env.AWS_SDK_JS_NODE_VERSION_SUPPORT_WARNING_DISABLED==="true"){B.warningEmitted=!0;return}let u=parseInt(_.substring(1,_.indexOf("."))),E=22;if(u<E)B.warningEmitted=!0,process.emitWarning(`NodeVersionSupportWarning: The AWS SDK for JavaScript (v3)
|
|
2
|
-
versions published after the first week of January 2027
|
|
3
|
-
will require node >=${E}. You are running node ${_}.
|
|
4
|
-
|
|
5
|
-
To continue receiving updates to AWS services, bug fixes,
|
|
6
|
-
and security updates please upgrade to node >=${E}.
|
|
7
|
-
|
|
8
|
-
More information can be found at: https://a.co/c895JFp`)}},vu=()=>(_,u)=>async(E)=>{return u.__retryLongPoll=!0,_(E)},hu={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},Su=(_)=>({applyToStack:(u)=>{u.add(vu(),hu)}});function iu(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}wu.Retry.v2026||=typeof process==="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";function qu(_,u,E){if(!_.__aws_sdk_context)_.__aws_sdk_context={features:{}};else if(!_.__aws_sdk_context.features)_.__aws_sdk_context.features={};_.__aws_sdk_context.features[u]=E}function Au(_,u,E){if(!_.$source)_.$source={};return _.$source[u]=E,_}gu.emitWarningIfUnsupportedVersion=Bu;gu.getLongPollPlugin=Su;gu.setCredentialFeature=iu;gu.setFeature=qu;gu.setTokenFeature=Au;gu.state=B});var ou=H((D)=>{Object.defineProperty(D,"__esModule",{value:!0});D.memoize=D.fromStatic=D.chain=D.TokenProviderError=D.CredentialsProviderError=D.ProviderError=void 0;var f=su();Object.defineProperty(D,"ProviderError",{enumerable:!0,get:function(){return f.ProviderError}});Object.defineProperty(D,"CredentialsProviderError",{enumerable:!0,get:function(){return f.CredentialsProviderError}});Object.defineProperty(D,"TokenProviderError",{enumerable:!0,get:function(){return f.TokenProviderError}});Object.defineProperty(D,"chain",{enumerable:!0,get:function(){return f.chain}});Object.defineProperty(D,"fromStatic",{enumerable:!0,get:function(){return f.fromValue}});Object.defineProperty(D,"memoize",{enumerable:!0,get:function(){return f.memoize}})});
|
|
9
|
-
export{W_ as dta,D_ as eta,yu as fta,ou as gta};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{Ob as d}from"./cli-1.1.20-ghdeh455.mjs";import{IW as v,JW as U,LW as f,MW as h,NW as c,SW as i}from"./cli-1.1.20-70wc36rc.mjs";import{q4 as O,s4 as b}from"./cli-1.1.20-a9fgbqdg.mjs";import{K7 as B,L7 as A}from"./cli-1.1.20-rvn2axad.mjs";import{b9 as y,i9 as u}from"./cli-1.1.20-dhn7hn4q.mjs";import{J_ as Y,L_ as I}from"./cli-1.1.20-hrw31bb0.mjs";import{Fka as H,Gka as m,Kka as T,ala as G,dla as D}from"./cli-1.1.20-gkc4ptt0.mjs";import{Ala as q,Bla as S,Hla as F}from"./cli-1.1.20-2c9529sa.mjs";import{Bsa as p,Tsa as s}from"./cli-1.1.20-wx90y3jb.mjs";import{randomUUID as N}from"crypto";D();I();F();u();i();f();A();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((Q)=>{this.backpressureResolvers.push(Q)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(Q){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let W=Q instanceof j?Q.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,W));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let Q=0,W=0;while(W<this.pending.length&&W<J){let Z;try{Z=Buffer.byteLength(H(this.pending[W]))}catch{this.pending.splice(W,1);continue}if(W>0&&Q+Z>K)break;Q+=Z,W++}return this.pending.splice(0,W)}retryDelay(J,K){let Q=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+Q;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+Q}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((Q,W)=>{Q.sleepResolve=null,W()},J,this,K)})}}A();class M{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,Q=0;while(!this.closed){if(await this.config.send(K))return;if(Q++,await B(this.retryDelay(Q)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),Q=Math.random()*this.config.jitterMs;return K+Q}}function P(J,K){let Q={...J};for(let[W,Z]of Object.entries(K))if((W==="external_metadata"||W==="internal_metadata")&&Q[W]&&typeof Q[W]==="object"&&typeof Z==="object"&&Z!==null)Q[W]={...Q[W],...Z};else Q[W]=Z;return Q}var g=20000,l=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var n=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let Q=[],W=new Map;for(let Z of J){let $=Z.event;switch($.type){case"message_start":{let z=$.message.id,L=K.scopeToMessage.get(C(Z));if(L)K.byMessage.delete(L);K.scopeToMessage.set(C(Z),z),K.byMessage.set(z,[]),Q.push(Z);break}case"content_block_delta":{if($.delta.type!=="text_delta"){Q.push(Z);break}let z=K.scopeToMessage.get(C(Z)),L=z?K.byMessage.get(z):void 0;if(!L){Q.push(Z);break}let V=L[$.index]??=[];V.push($.delta.text);let X=W.get(V);if(X){X.event.delta.text=V.join("");break}let w={type:"stream_event",uuid:Z.uuid,session_id:Z.session_id,parent_tool_use_id:Z.parent_tool_use_id,event:{type:"content_block_delta",index:$.index,delta:{type:"text_delta",text:V.join("")}}};W.set(V,w),Q.push(w);break}default:Q.push(Z)}}return Q}function t(J,K){J.byMessage.delete(K.message.id);let Q=C(K);if(J.scopeToMessage.get(Q)===K.message.id)J.scopeToMessage.delete(Q)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=y({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,Q){if(this.onEpochMismatch=Q?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=Q?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=Q?.heartbeatJitterFraction??0,this.getAuthHeaders=Q?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let W=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${W}`,this.sessionId=W.split("/").pop()||"",this.workerState=new M({send:(Z)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Z},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Z)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Z},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Z)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Z},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Z)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Z.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Z)=>{this.reportDelivery(Z.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let Q=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),Y("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Z,durationMs:$}=await Q;if(!this.closed)Y("info","cli_worker_state_restored",{duration_ms:$,had_state:Z!==null});return Z}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,Q,W,{timeout:Z=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,Q,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Z});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=v(),V=L?d(L):null;if(V!==null&&V*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(V*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),Y("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=n)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),Y("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${W} returned ${z.status}`,{level:"warn"}),Y("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],V=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(V)&&V>=0)return{ok:!1,retryAfterMs:V*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${W} failed: ${q(z)}`,{level:"warn"}),Y("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),Y("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let Q=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+Q)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),l);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((Q)=>({payload:Q,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:Q=!1,agentId:W}={}){let Z={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...Q&&{is_compaction:!0},...W&&{agent_id:W}};await this.internalEventUploader.enqueue(Z)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,Q){let W=this.getAuthHeaders();if(Object.keys(W).length===0)return null;let Z=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[V,X]of Object.entries(K))z.searchParams.set(V,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),W,Q);if(!L)return null;Z.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Z.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Z}async getWithRetry(J,K,Q){for(let W=1;W<=10;W++){let Z;try{Z=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${W}/10): ${q($)}`,{level:"warn"}),W<10){let z=Math.min(500*2**(W-1),30000)+Math.random()*500;await B(z)}continue}if(Z.status>=200&&Z.status<300)return Z.data;if(Z.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Z.status} (attempt ${W}/10)`,{level:"warn"}),W<10){let $=Math.min(500*2**(W-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),Y("error","cli_worker_get_retries_exhausted",{context:Q}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}s();D();I();F();f();A();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],Q=0,W;while((W=J.indexOf(`
|
|
2
|
-
|
|
3
|
-
`,Q))!==-1){let Z=J.slice(Q,W);if(Q=W+2,!Z.trim())continue;let $={},z=!1;for(let L of Z.split(`
|
|
4
|
-
`)){if(L.startsWith(":")){z=!0;continue}let V=L.indexOf(":");if(V===-1)continue;let X=L.slice(0,V),w=L[V+1]===" "?L.slice(V+2):L.slice(V+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
|
|
5
|
-
`+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(Q)}}class YJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},Q,W,Z,$){this.url=J;if(this.headers=K,this.sessionId=Q,this.refreshHeaders=W,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Z!==void 0&&Z>0)this.lastSequenceNum=Z;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),Y("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Y("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let Q=this.getAuthHeaders(),W={...this.headers,...Q,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(Q.Cookie)delete W.Authorization;if(this.lastSequenceNum>0)W["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),Y("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Z=await fetch(K.href,{headers:W,signal:this.abortController.signal});if(!Z.ok){let z=WJ.has(Z.status);if(G(`SSETransport: HTTP ${Z.status}${z?" (permanent)":""}`,{level:"error"}),Y("error","cli_sse_connect_http_error",{status:Z.status}),z){this.state="closed",this.onCloseCallback?.(Z.status);return}this.handleConnectionError();return}if(!Z.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),Y("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Z.body)}catch(Z){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Z)}`,{level:"error"}),Y("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),Q=new TextDecoder,W="";try{while(!0){let{done:Z,value:$}=await K.read();if(Z)break;W+=Q.decode($,GJ);let{frames:z,remaining:L}=VJ(W);W=L;for(let V of z){if(this.resetLivenessTimer(),V.id){let X=parseInt(V.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),Y("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(V.event&&V.data)this.handleSSEFrame(V.event,V.data);else if(V.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),Y("warn","cli_sse_frame_missing_event_field")}}}catch(Z){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Z)}`,{level:"error"}),Y("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),Y("warn","cli_sse_unexpected_event_type",{event_type:J});return}let Q;try{Q=m(K)}catch(Z){G(`SSETransport: Failed to parse client_event data: ${q(Z)}`,{level:"error"});return}let W=Q.payload;if(W&&typeof W==="object"&&"type"in W){let Z=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${Q.sequence_num} event_id=${Q.event_id} event_type=${Q.event_type} payload_type=${String(W.type)}${Z}`),Y("info","cli_sse_message_received"),this.onData?.(H(W)+`
|
|
6
|
-
`)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${Q.event_id}`);this.onEventCallback?.(Q)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Z=this.refreshHeaders();Object.assign(this.headers,Z),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let Q=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),W=Math.max(0,Q+Q*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(W)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),Y("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},W)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),Y("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),Y("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),Y("warn","cli_sse_post_no_token");return}let Q={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let W=1;W<=x;W++){try{let $=await p.post(this.postUrl,J,{headers:Q,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),Y("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${W}/${x}`),Y("warn","cli_sse_post_retryable_error",{status:$.status,attempt:W})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${W}/${x}`),Y("warn","cli_sse_post_network_error",{attempt:W})}if(W===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),Y("warn","cli_sse_post_retries_exhausted");return}let Z=Math.min(ZJ*Math.pow(2,W-1),$J);await B(Z)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
|
|
7
|
-
export{R as Fb,k as Gb,a as Hb,YJ as Ib};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{D4 as $,y4 as N}from"./cli-1.1.20-7v6hhn2t.mjs";import{Q8 as Z,q8 as M,w5 as L,z5 as Y}from"./cli-1.1.20-rvn2axad.mjs";import{Wga as Q,cha as X}from"./cli-1.1.20-hrw31bb0.mjs";import{Xja as J,Yja as V}from"./cli-1.1.20-x4ezs1pz.mjs";import{Hla as S,zla as P}from"./cli-1.1.20-2c9529sa.mjs";import{Bsa as K,Tsa as W}from"./cli-1.1.20-wx90y3jb.mjs";import{tta as R}from"./cli-1.1.20-0sgvc4nn.mjs";async function f(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{W();V();Y();Z();S();X();$()});
|
|
2
|
-
export{f as hX,j as iX,b as jX};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{pb as d}from"./cli-1.1.20-sfrzvte7.mjs";import{AK as f,Ez as C,Fz as D,JT as Vj,Kz as Gj,Lk as $,Mk as n,Ol as P,Ot as h,Pl as R,Qt as qj,Rm as E,Sm as e,UT as F,Uk as v,Vk as r,XE as Jj,bT as m,cT as S,ck as O,dT as A,eS as Qj,ek as o,ev as k,fU as Xj,gD as I,hD as Hj,hm as s,hv as V,nv as zj,oT as c,ov as w,pv as Bj,um as y,vT as p,wT as X,zm as t}from"./cli-1.1.20-sx7811qs.mjs";import{NV as jj,yV as W}from"./cli-1.1.20-kmjn4pys.mjs";import{OX as x,RX as Kj}from"./cli-1.1.20-d7jg0nb4.mjs";import{_6 as T,f7 as u}from"./cli-1.1.20-rvn2axad.mjs";import{jja as Z,lja as i}from"./cli-1.1.20-nkrcdd4b.mjs";import{ala as b,dla as l}from"./cli-1.1.20-gkc4ptt0.mjs";import{Cna as _,Hna as Y,Moa as M,Ooa as N,Uqa as K,yra as g,zna as U}from"./cli-1.1.20-j4a7q58c.mjs";g();e();Gj();zj();r();o();import{dirname as Yj}from"path";Xj();Jj();Kj();i();l();qj();Qj();u();t();n();Hj();Vj();jj();Bj();s();function Zj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===v);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=w().safeParse(G.todos);return H.success?H.data:[]}return[]}function aj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)h(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!W()&&j.messages&&j.messages.length>0){let B=Zj(j.messages);if(B.length>0){let z=U();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function $j(j){return}function Pj(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function Rj(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return b(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!M()&&z.model&&z.model!=="inherit")N(T(z.model));return{agentDefinition:z,agentType:z.agentType}}async function yj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:k(H)}}function Ej(j){let q=P();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}I(j.worktreePath),Y(Z()),R(j),F(),E(),y.cache.clear?.(),$()}function gj(){let j=P();if(!j)return;R(null),F(),E(),y.cache.clear?.(),$();try{process.chdir(j.originalCwd)}catch{return}I(j.originalCwd),Y(Z())}async function lj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(f(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(_(O(Q),q.transcriptPath?Yj(q.transcriptPath):null),await d(),await S(),!C(Q))D(j.messages)}}else if(j.contentReplacements?.length)await m(j.contentReplacements);if(c(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)Ej(j.worktreeSession),A();let{agentDefinition:G,agentType:H}=Rj(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);p(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?$j(j):void 0,L=Pj(j.agentName,j.agentColor);x(j.agentName);let a=await yj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...L&&{standaloneAgentContext:L},agentDefinitions:a}}}
|
|
2
|
-
export{aj as Pa,Pj as Qa,Rj as Ra,Ej as Sa,gj as Ta,lj as Ua};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{BG as I,DG as _,ko as T,lo as j}from"./cli-1.1.20-sx7811qs.mjs";import{DZ as S,H1 as g,a1 as P,c1 as J,g1 as C}from"./cli-1.1.20-r4xfymtx.mjs";import{d4 as G,e4 as H,f4 as R}from"./cli-1.1.20-azb7xdf4.mjs";import{g4 as v}from"./cli-1.1.20-9p9rns5w.mjs";import{ifa as B,wfa as h}from"./cli-1.1.20-hrw31bb0.mjs";import{Zja as W,aka as D}from"./cli-1.1.20-ka6crh5z.mjs";import{pta as f,tta as p}from"./cli-1.1.20-0sgvc4nn.mjs";function l(q){let b=E.c(18),{onDone:X,isStandaloneDialog:L,externalIncludes:F}=q,K;if(b[0]===Symbol.for("react.memo_cache_sentinel"))K=[],b[0]=K;else K=b[0];m.default.useEffect(i,K);let M;if(b[1]!==X)M=(y)=>{if(y==="no")W("",{}),B(x);else W("",{}),B(d);X()},b[1]=X,b[2]=M;else M=b[2];let w=M,N;if(b[3]!==w)N=()=>{w("no")},b[3]=w,b[4]=N;else N=b[4];let Y=N,Z=!L,k=!L,O;if(b[5]===Symbol.for("react.memo_cache_sentinel"))O=G(J,{children:"This project's CLAUDE.md imports files outside the current working directory. Never allow this for third-party repositories."}),b[5]=O;else O=b[5];let z;if(b[6]!==F)z=F&&F.length>0&&H(P,{flexDirection:"column",children:[G(J,{dimColor:!0,children:"External imports:"}),F.map(u)]}),b[6]=F,b[7]=z;else z=b[7];let Q;if(b[8]===Symbol.for("react.memo_cache_sentinel"))Q=H(J,{dimColor:!0,children:["Important: Only use Claudin with files you trust. Accessing untrusted files may pose security risks"," ",G(C,{url:"https://code.claude.com/docs/en/security"})," "]}),b[8]=Q;else Q=b[8];let U;if(b[9]===Symbol.for("react.memo_cache_sentinel"))U=[{label:"Yes, allow external imports",value:"yes"},{label:"No, disable external imports",value:"no"}],b[9]=U;else U=b[9];let A;if(b[10]!==w)A=G(I,{options:U,onChange:(y)=>w(y)}),b[10]=w,b[11]=A;else A=b[11];let V;if(b[12]!==Y||b[13]!==A||b[14]!==Z||b[15]!==k||b[16]!==z)V=H(T,{title:"Allow external CLAUDE.md file imports?",color:"warning",onCancel:Y,hideBorder:Z,hideInputGuide:k,children:[O,z,Q,A]}),b[12]=Y,b[13]=A,b[14]=Z,b[15]=k,b[16]=z,b[17]=V;else V=b[17];return V}function u(q,b){return H(J,{dimColor:!0,children:[" ",q.path]},b)}function d(q){return{...q,hasClaudeMdExternalIncludesApproved:!0,hasClaudeMdExternalIncludesWarningShown:!0}}function x(q){return{...q,hasClaudeMdExternalIncludesApproved:!1,hasClaudeMdExternalIncludesWarningShown:!0}}function i(){W("",{})}var E,m;var r=p(()=>{D();g();h();_();j();R();E=f(S(),1),m=f(v(),1)});
|
|
2
|
-
export{l as Tg,r as Ug};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Wb as Y}from"./cli-1.1.20-cypawma9.mjs";import{TW as N,UW as O}from"./cli-1.1.20-70wc36rc.mjs";import{Qga as A,Sga as C}from"./cli-1.1.20-hrw31bb0.mjs";import{Zja as G,aka as K}from"./cli-1.1.20-ka6crh5z.mjs";import{Gka as x,Kka as j,ala as X,dla as w}from"./cli-1.1.20-gkc4ptt0.mjs";import{Ala as L,Hla as E}from"./cli-1.1.20-2c9529sa.mjs";K();O();import{randomUUID as T}from"crypto";w();C();E();j();function h(H){return H!==null&&typeof H==="object"&&"type"in H&&typeof H.type==="string"}function P(H){return H!==null&&typeof H==="object"&&"type"in H&&H.type==="control_response"&&"response"in H}function S(H){return H!==null&&typeof H==="object"&&"type"in H&&H.type==="control_request"&&"request_id"in H&&"request"in H}function v(H){if((H.type==="user"||H.type==="assistant")&&H.isVirtual)return!1;return H.type==="user"||H.type==="assistant"||H.type==="system"&&H.subtype==="local_command"}function q(H){if(H.type!=="user"||H.isMeta||H.toolUseResult||H.isCompactSummary)return;if(H.origin&&H.origin.kind!=="human")return;let Z=H.message.content,V;if(typeof Z==="string")V=Z;else for(let $ of Z)if($.type==="text"){V=$.text;break}if(!V)return;return A(V)||void 0}function p(H,Z,V,f,$,B){try{let J=Y(x(H));if(P(J)){X("[bridge:repl] Ingress message type=control_response"),$?.(J);return}if(S(J)){X(`[bridge:repl] Inbound control_request subtype=${J.request.subtype}`),B?.(J);return}if(!h(J))return;let Q="uuid"in J&&typeof J.uuid==="string"?J.uuid:void 0;if(Q&&Z.has(Q)){X(`[bridge:repl] Ignoring echo: type=${J.type} uuid=${Q}`);return}if(Q&&V.has(Q)){X(`[bridge:repl] Ignoring re-delivered inbound: type=${J.type} uuid=${Q}`);return}if(X(`[bridge:repl] Ingress message type=${J.type}${Q?` uuid=${Q}`:""}`),J.type==="user"){if(Q)V.add(Q);G("",{is_repl:!0}),f?.(J)}else X(`[bridge:repl] Ignoring non-user inbound message: type=${J.type}`)}catch(J){X(`[bridge:repl] Failed to parse ingress message: ${L(J)}`)}}var y="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function g(H,Z){let{transport:V,sessionId:f,outboundOnly:$,onInterrupt:B,onSetModel:J,onSetMaxThinkingTokens:Q,onSetPermissionMode:_}=Z;if(!V){X("[bridge:repl] Cannot respond to control_request: transport not configured");return}let W;if($&&H.request.subtype!=="initialize"){W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:y}};let z={...W,session_id:f};V.write(z),X(`[bridge:repl] Rejected ${H.request.subtype} (outbound-only) request_id=${H.request_id}`);return}switch(H.request.subtype){case"initialize":W={type:"control_response",response:{subtype:"success",request_id:H.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":J?.(H.request.model),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;case"set_max_thinking_tokens":Q?.(H.request.max_thinking_tokens),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;case"set_permission_mode":{let z=_?.(H.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(z.ok)W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};else W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:z.error}};break}case"interrupt":B?.(),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;default:W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:`REPL bridge does not handle control_request subtype: ${H.request.subtype}`}}}let k={...W,session_id:f};V.write(k),X(`[bridge:repl] Sent control_response for ${H.request.subtype} request_id=${H.request_id} result=${W.response.subtype}`)}function i(H){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:H,uuid:T()}}class R{capacity;ring;set=new Set;writeIdx=0;constructor(H){this.capacity=H,this.ring=Array(H)}add(H){if(this.set.has(H))return;let Z=this.ring[this.writeIdx];if(Z!==void 0)this.set.delete(Z);this.ring[this.writeIdx]=H,this.set.add(H),this.writeIdx=(this.writeIdx+1)%this.capacity}has(H){return this.set.has(H)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
|
|
2
|
-
export{v as Qb,q as Rb,p as Sb,g as Tb,i as Ub,R as Vb};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{Se as kZ,Ye as XX}from"./cli-1.1.20-4wm04f49.mjs";import{af as YZ,bf as SQ}from"./cli-1.1.20-se0125ky.mjs";import{$x as zJ,AB as pZ,AE as hX,At as CX,BB as ZX,BG as g0,CG as QX,Dk as d0,Dw as HQ,Dy as KZ,Ek as mJ,Ey as iQ,FI as mZ,Gl as GQ,Hk as cZ,II as kJ,Ik as tQ,Il as MX,JI as JZ,Js as aZ,Jw as yX,KI as OJ,LI as NJ,MI as ZZ,Ms as RX,NI as QZ,Nk as r0,Ns as TJ,OI as XZ,OK as $0,On as PJ,Os as fQ,Pk as VZ,Pn as DQ,QI as m0,Qk as LJ,RI as _0,RK as RZ,Rq as MZ,SA as R0,SI as UJ,TA as i0,TB as IX,UA as qJ,UB as DX,Uq as lQ,Ux as NQ,VA as BX,VR as lZ,Vs as L0,Vx as bX,_R as iZ,ao as VQ,ay as FQ,bo as EX,co as l,cy as AX,cz as HZ,do as A0,dt as hQ,dz as rQ,eS as fZ,go as Z0,gz as a0,hI as NZ,ho as B0,hz as yZ,iI as FZ,it as c0,jI as s0,kk as WZ,ko as n,lI as MJ,lo as I0,lt as vQ,oF as PQ,rF as vX,vG as OQ,xt as WQ,yG as SX,zE as RQ}from"./cli-1.1.20-sx7811qs.mjs";import{CY as G0,DY as S0,nY as QJ,oY as nZ}from"./cli-1.1.20-ry7grtff.mjs";import{DZ as F0,H1 as q0,MZ as l0,a1 as y,c1 as W,g1 as JJ,q1 as wZ}from"./cli-1.1.20-r4xfymtx.mjs";import{s3 as vJ,z3 as KX}from"./cli-1.1.20-m1rmtfx0.mjs";import{c4 as o,d4 as q,e4 as N,f4 as $}from"./cli-1.1.20-azb7xdf4.mjs";import{g4 as o0}from"./cli-1.1.20-9p9rns5w.mjs";import{D4 as MQ,t4 as pJ}from"./cli-1.1.20-7v6hhn2t.mjs";import{F4 as DJ,G4 as JX}from"./cli-1.1.20-bgbsr3de.mjs";import{K7 as HJ,L7 as wQ,U4 as tJ,V4 as IQ}from"./cli-1.1.20-rvn2axad.mjs";import{$ba as w0,$ca as uZ,Wga as eJ,_ba as z0,ada as dZ,cda as eQ,cha as BQ,fca as p0,pda as Q0,qaa as qQ,raa as M0,taa as yJ,x_ as t0,xda as IJ,y_ as TZ}from"./cli-1.1.20-hrw31bb0.mjs";import{kha as K0,nha as b0,pha as oZ,rha as e0,sha as x0,zha as v0}from"./cli-1.1.20-xvytevdy.mjs";import{aia as sJ,mia as AQ}from"./cli-1.1.20-rmvq7swt.mjs";import{Zja as t,aka as _J}from"./cli-1.1.20-ka6crh5z.mjs";import{Qka as $Z,Ska as FX,ala as D0,dla as cJ}from"./cli-1.1.20-gkc4ptt0.mjs";import{Ala as h0,Hla as aJ}from"./cli-1.1.20-2c9529sa.mjs";import{pta as J0,qta as RJ,sta as $J,tta as a}from"./cli-1.1.20-0sgvc4nn.mjs";function u0(Q){return typeof Q==="object"&&Q!==null&&"type"in Q&&Q.type==="local_agent"}function GJ(Q){return{...Q,retain:!1,messages:void 0,diskLoaded:!1,evictAfter:TJ(Q.status)?Date.now()+LQ:void 0}}function VJ(Q,J){t("",{}),J((Z)=>{let X=Z.tasks[Q],z=Z.viewingAgentTaskId,Y=z!==void 0?Z.tasks[z]:void 0,V=z!==void 0&&z!==Q&&u0(Y)&&Y.retain,G=u0(X)&&(!X.retain||X.evictAfter!==void 0),F=Z.viewingAgentTaskId!==Q||Z.viewSelectionMode!=="viewing-agent";if(!G&&!F&&!V)return Z;let R=Z.tasks;if(V||G){if(R={...Z.tasks},V)R[z]=GJ(Y);if(G)R[Q]={...X,retain:!0,evictAfter:void 0}}return{...Z,viewingAgentTaskId:Q,viewSelectionMode:"viewing-agent",tasks:R}})}function WJ(Q){t("",{}),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(!u0(z)||!z.retain)return X;return{...X,tasks:{...J.tasks,[Z]:GJ(z)}}})}function xX(Q,J){J((Z)=>{let X=Z.tasks[Q];if(!u0(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]:{...GJ(X),evictAfter:0}},...z&&{viewingAgentTaskId:void 0,viewSelectionMode:"none"}}})}var LQ=30000;var uJ=a(()=>{_J();fQ()});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===d0)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 V=CQ(Y.content);Z=V!==null?{kind:"teleport",plan:V}:{kind:"rejected",id:z}}else Z={kind:"approved",plan:yQ(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,V=null,G=0,F="running";while(Date.now()<z){if(X?.())throw new N0("poll stopped by caller","stopped",Y.rejectCount);let R,O;try{let f=await kJ(Q,V);R=f.newEvents,V=f.lastEventId,O=f.sessionStatus,G=0}catch(f){if(!pJ(f)||++G>=KQ)throw new N0(f instanceof Error?f.message:String(f),"network_or_unknown",Y.rejectCount,{cause:f});await HJ(dJ);continue}let P;try{P=Y.ingest(R)}catch(f){throw new N0(f instanceof Error?f.message:String(f),"extract_marker_missing",Y.rejectCount)}if(P.kind==="approved")return{plan:P.plan,rejectCount:Y.rejectCount,executionTarget:"remote"};if(P.kind==="teleport")return{plan:P.plan,rejectCount:Y.rejectCount,executionTarget:"local"};if(P.kind==="terminated")throw new N0(`remote session ended (${P.subtype}) before plan approval`,"terminated",Y.rejectCount);let U=(O==="idle"||O==="requires_action")&&R.length===0,w=Y.hasPendingPlan?"plan_ready":U?"needs_input":"running";if(w!==F)D0(`[ultraplan] phase ${F} → ${w}`),F=w,Z?.(w);await HJ(dJ)}throw new N0(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 CQ(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 yQ(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 dJ=3000,KQ=5,N0,EQ="__ULTRAPLAN_TELEPORT_LOCAL__";var iJ=a(()=>{mJ();cJ();wQ();MQ();NJ();N0=class N0 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 gQ(){return sJ("tengu_ultraplan_model",tJ.opus46.firstParty)}function uQ(Q,J){let Z=[];if(J)Z.push("Here is a draft plan to refine:","",J,"");if(Z.push(TQ),Q)Z.push("",Q);return Z.join(`
|
|
6
|
-
`)}function dQ(Q,J,Z,X,z){let Y=Date.now(),V=!1;(async()=>{try{let{plan:G,rejectCount:F,executionTarget:R}=await rJ(J,jQ,(O)=>{if(O==="needs_input")t("",{});c0(Q,z,(P)=>{if(P.status!=="running")return P;let U=O==="running"?void 0:O;return P.ultraplanPhase===U?P:{...P,ultraplanPhase:U}})},()=>X().tasks?.[Q]?.status!=="running");if(t("",{duration_ms:Date.now()-Y,plan_length:G.length,reject_count:F,execution_target:R}),R==="remote"){if(X().tasks?.[Q]?.status!=="running")return;c0(Q,z,(P)=>P.status!=="running"?P:{...P,status:"completed",endTime:Date.now()}),z((P)=>P.ultraplanSessionUrl===Z?{...P,ultraplanSessionUrl:void 0}:P),L0({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 P=O.tasks?.[Q];if(!P||P.status!=="running")return O;return{...O,ultraplanPendingChoice:{plan:G,sessionId:J,taskId:Q}}})}catch(G){if(X().tasks?.[Q]?.status!=="running")return;V=!0,t("",{duration_ms:Date.now()-Y,reason:G instanceof N0?G.reason:"network_or_unknown",reject_count:G instanceof N0?G.rejectCount:void 0}),L0({value:`Ultraplan failed: ${h0(G)}
|
|
8
|
-
|
|
9
|
-
Session: ${Z}`,mode:"task-notification"}),OJ(J).catch((R)=>D0(`ultraplan archive failed: ${String(R)}`)),z((R)=>R.ultraplanSessionUrl===Z?{...R,ultraplanSessionUrl:void 0}:R)}finally{if(V)c0(Q,z,(G)=>G.status!=="running"?G:{...G,status:"failed",endTime:Date.now()})}})()}function cQ(Q){let J=Q?`${YZ} `:"";return`${z0} ultraplan
|
|
10
|
-
${J}Starting Claude Code on the web…`}function pQ(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 qZ(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 fJ(Q,J,Z){await m0.kill(Q,Z),Z((z)=>z.ultraplanSessionUrl||z.ultraplanPendingChoice||z.ultraplanLaunching?{...z,ultraplanSessionUrl:void 0,ultraplanPendingChoice:void 0,ultraplanLaunching:void 0}:z);let X=PJ(J,process.env.SESSION_INGRESS_URL);L0({value:`Ultraplan stopped.
|
|
12
|
-
|
|
13
|
-
Session: ${X}`,mode:"task-notification"}),L0({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 mQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,disconnectedBridge:V,onSessionReady:G}=Q,{ultraplanSessionUrl:F,ultraplanLaunching:R}=X();if(F||R)return t("",{reason:F?"already_polling":"already_launching"}),qZ(F);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:G}),cQ(V)}async function kQ(Q){let{blurb:J,seedPlan:Z,getAppState:X,setAppState:z,signal:Y,onSessionReady:V}=Q,G;try{let F=gQ(),R=await ZZ();if(!R.eligible){t("",{reason:"precondition",precondition_errors:R.errors.map((C)=>C.type).join(",")});let L=R.errors.map(QZ).join(`
|
|
15
|
-
`);L0({value:`ultraplan: cannot launch remote session —
|
|
16
|
-
${L}`,mode:"task-notification"});return}let O=uQ(J,Z),P,U=await JZ({initialMessage:O,description:J||"Refine local plan",model:F,permissionMode:"plan",ultraplan:!0,signal:Y,useDefaultEnvironment:!0,onBundleFail:(L)=>{P=L}});if(!U){t("",{reason:P?"bundle_fail":"teleport_null"}),L0({value:`ultraplan: session creation failed${P?` — ${P}`:""}. See --debug for details.`,mode:"task-notification"});return}G=U.id;let w=PJ(U.id,process.env.SESSION_INGRESS_URL);z((L)=>({...L,ultraplanSessionUrl:w,ultraplanLaunching:void 0})),V?.(pQ(w)),t("",{has_seed_plan:Boolean(Z),model:F});let{taskId:f}=XZ({remoteTaskType:"ultraplan",session:{id:U.id,title:J||"Ultraplan"},command:J,context:{abortController:new AbortController,getAppState:X,setAppState:z},isUltraplan:!0});dQ(f,U.id,w,X,z)}catch(F){if(eJ(F),t("",{reason:"unexpected_error"}),L0({value:`ultraplan: unexpected error — ${h0(F)}`,mode:"task-notification"}),G)OJ(G).catch((R)=>D0("ultraplan: failed to archive orphaned session",R)),z((R)=>R.ultraplanSessionUrl?{...R,ultraplanSessionUrl:void 0}:R)}finally{z((F)=>F.ultraplanLaunching?{...F,ultraplanLaunching:void 0}:F)}}var jQ=1800000,zZ="https://code.claude.com/docs/en/claude-code-on-the-web",FJ,_Q,TQ,xQ=async(Q,J,Z)=>{let X=Z.trim();if(!X){let V=await mQ({blurb:X,getAppState:J.getAppState,setAppState:J.setAppState,signal:J.abortController.signal});return Q(V,{display:"system"}),null}let{ultraplanSessionUrl:z,ultraplanLaunching:Y}=J.getAppState();if(z||Y)return t("",{reason:z?"already_polling":"already_launching"}),Q(qZ(z),{display:"system"}),null;return J.setAppState((V)=>({...V,ultraplanLaunchPending:{blurb:X}})),Q(void 0,{display:"skip"}),null},NY;var GZ=a(()=>{SQ();p0();DQ();AQ();_J();UJ();cJ();aJ();BQ();hQ();IQ();vQ();NJ();iJ();FJ=(nJ(),RJ(oJ)),_Q=(typeof FJ==="string"?FJ:FJ.default).trimEnd(),TQ=_Q;NY={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=VZ(J,Q.toolName);if(!X)return Q.toolName;try{let z=X.inputSchema.safeParse(Q.input),Y=z.success?z.data:{},V=X.userFacingName(Y);if(!V)return Q.toolName;let G=X.renderToolUseMessage(Y,{theme:Z,verbose:!1});if(G)return N(W,{children:[V,"(",G,")"]});return V}catch{return Q.toolName}}var wJ=a(()=>{q0();LJ();$()});function OZ(Q){let J=PZ.c(54),{agent:Z,onDone:X,onKillAgent:z,onBack:Y}=Q,[V]=l0(),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=$0(r0()),J[0]=G;else G=J[0];let F=G,R=R0(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 P;if(J[3]===Symbol.for("react.memo_cache_sentinel"))P={context:"Confirmation"},J[3]=P;else P=J[3];G0(O,P);let U;if(J[4]!==Z.status||J[5]!==Y||J[6]!==X||J[7]!==z)U=(S)=>{if(S.key===" ")S.preventDefault(),X();else if(S.key==="left"&&Y)S.preventDefault(),Y();else if(S.key==="x"&&Z.status==="running"&&z)S.preventDefault(),z()},J[4]=Z.status,J[5]=Y,J[6]=X,J[7]=z,J[8]=U;else U=J[8];let w=U,f;if(J[9]!==Z.prompt)f=WZ(Z.prompt,"plan"),J[9]=Z.prompt,J[10]=f;else f=J[10];let L=f,C=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,h=Z.selectedAgent?.agentType??"agent",D=Z.description||"Async agent",I;if(J[11]!==h||J[12]!==D)I=N(W,{children:[h," ›"," ",D]}),J[11]=h,J[12]=D,J[13]=I;else I=J[13];let K=I,B;if(J[14]!==Z.status)B=Z.status!=="running"&&N(W,{color:FZ(Z.status),children:[NZ(Z.status)," ",Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[14]=Z.status,J[15]=B;else B=J[15];let p;if(J[16]!==E)p=E!==void 0&&E>0&&N(o,{children:[" · ",x0(E)," tokens"]}),J[16]=E,J[17]=p;else p=J[17];let d;if(J[18]!==A)d=A!==void 0&&A>0&&N(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[18]=A,J[19]=d;else d=J[19];let j;if(J[20]!==R||J[21]!==p||J[22]!==d)j=N(W,{dimColor:!0,children:[R,p,d]}),J[20]=R,J[21]=p,J[22]=d,J[23]=j;else j=J[23];let x;if(J[24]!==j||J[25]!==B)x=N(W,{children:[B,j]}),J[24]=j,J[25]=B,J[26]=x;else x=J[26];let c=x,v;if(J[27]!==Z.status||J[28]!==Y||J[29]!==z)v=(S)=>S.pending?N(W,{children:["Press ",S.keyName," again to exit"]}):N(Z0,{children:[Y&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&q(l,{shortcut:"x",action:"stop"})]}),J[27]=Z.status,J[28]=Y,J[29]=z,J[30]=v;else v=J[30];let b;if(J[31]!==Z.progress||J[32]!==Z.status||J[33]!==V)b=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&N(y,{flexDirection:"column",children:[q(W,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((S,k)=>N(W,{dimColor:k<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[k===Z.progress.recentActivities.length-1?"› ":" ",k0(S,F,V)]},k))]}),J[31]=Z.progress,J[32]=Z.status,J[33]=V,J[34]=b;else b=J[34];let m;if(J[35]!==C||J[36]!==L)m=L?q(y,{marginTop:1,children:q(HZ,{addMargin:!1,planContent:L})}):N(y,{flexDirection:"column",marginTop:1,children:[q(W,{bold:!0,dimColor:!0,children:"Prompt"}),q(W,{wrap:"wrap",children:C})]}),J[35]=C,J[36]=L,J[37]=m;else m=J[37];let T;if(J[38]!==Z.error||J[39]!==Z.status)T=Z.status==="failed"&&Z.error&&N(y,{flexDirection:"column",marginTop:1,children:[q(W,{bold:!0,color:"error",children:"Error"}),q(W,{color:"error",wrap:"wrap",children:Z.error})]}),J[38]=Z.error,J[39]=Z.status,J[40]=T;else T=J[40];let _;if(J[41]!==b||J[42]!==m||J[43]!==T)_=N(y,{flexDirection:"column",children:[b,m,T]}),J[41]=b,J[42]=m,J[43]=T,J[44]=_;else _=J[44];let g;if(J[45]!==X||J[46]!==c||J[47]!==v||J[48]!==_||J[49]!==K)g=q(n,{title:K,subtitle:c,onCancel:X,color:"background",inputGuide:v,children:_}),J[45]=X,J[46]=c,J[47]=v,J[48]=_,J[49]=K,J[50]=g;else g=J[50];let u;if(J[51]!==w||J[52]!==g)u=q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:w,children:g}),J[51]=w,J[52]=g,J[53]=u;else u=J[53];return u}var PZ;var UZ=a(()=>{i0();q0();S0();LJ();RZ();v0();fZ();B0();I0();A0();rQ();wJ();MJ();$();PZ=J0(F0(),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 KJ(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 V;if(J[2]!==z||J[3]!==Y)V=q(o,{children:Y.map((G,F)=>q(W,{color:MZ(F+z),children:G},F))}),J[2]=z,J[3]=Y,J[4]=V;else V=J[4];return V}function EJ(Q,J,Z){let X=CJ.useRef(Q),z=CJ.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=KZ().prefersReducedMotion??!1,Y=Z.reviewProgress,V=Z.status==="running",[,G]=wZ(V&&!z?LZ:null),F=Y?.bugsFound??0,R=Y?.bugsVerified??0,O=Y?.bugsRefuted??0,P=z||!V,U=EJ(F,G,P),w=EJ(R,G,P),f=EJ(O,G,P),L=Math.floor(G/(LZ*3))%7;if(Z.status==="completed"){let B;if(J[0]===Symbol.for("react.memo_cache_sentinel"))B=N(o,{children:[N(W,{color:"background",children:[w0," "]}),q(KJ,{text:"ultrareview",phase:0}),q(W,{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=N(o,{children:[N(W,{color:"background",children:[w0," "]}),q(KJ,{text:"ultrareview",phase:0}),N(W,{color:"error",dimColor:!0,children:[" · ","error"]})]}),J[1]=B;else B=J[1];return B}let C;if(J[2]!==U||J[3]!==Y||J[4]!==f||J[5]!==w)C=!Y?"setting up":bJ(Y.stage,U,w,f),J[2]=U,J[3]=Y,J[4]=f,J[5]=w,J[6]=C;else C=J[6];let E=C,A;if(J[7]===Symbol.for("react.memo_cache_sentinel"))A=N(W,{color:"background",children:[z0," "]}),J[7]=A;else A=J[7];let h=V?L:0,D;if(J[8]!==h)D=q(KJ,{text:"ultrareview",phase:h}),J[8]=h,J[9]=D;else D=J[9];let I;if(J[10]!==E)I=N(W,{dimColor:!0,children:[" · ",E]}),J[10]=E,J[11]=I;else I=J[11];let K;if(J[12]!==D||J[13]!==I)K=N(o,{children:[A,D,I]}),J[12]=D,J[13]=I,J[14]=K;else K=J[14];return K}function j0(Q){let J=n0.c(11),{session:Z}=Q;if(Z.isRemoteReview){let G;if(J[0]!==Z)G=q($Q,{session:Z}),J[0]=Z,J[1]=G;else G=J[1];return G}if(Z.status==="completed"){let G;if(J[2]===Symbol.for("react.memo_cache_sentinel"))G=q(W,{bold:!0,color:"success",dimColor:!0,children:"done"}),J[2]=G;else G=J[2];return G}if(Z.status==="failed"){let G;if(J[3]===Symbol.for("react.memo_cache_sentinel"))G=q(W,{bold:!0,color:"error",dimColor:!0,children:"error"}),J[3]=G;else G=J[3];return G}if(!Z.todoList.length){let G;if(J[4]!==Z.status)G=N(W,{dimColor:!0,children:[Z.status,"…"]}),J[4]=Z.status,J[5]=G;else G=J[5];return G}let X;if(J[6]!==Z.todoList)X=M0(Z.todoList,oQ),J[6]=Z.todoList,J[7]=X;else X=J[7];let z=X,Y=Z.todoList.length,V;if(J[8]!==z||J[9]!==Y)V=N(W,{dimColor:!0,children:[z,"/",Y]}),J[8]=z,J[9]=Y,J[10]=V;else V=J[10];return V}function oQ(Q){return Q.status==="completed"}var n0,CJ,LZ=80;var AJ=a(()=>{p0();iQ();q0();yJ();lQ();$();n0=J0(F0(),1),CJ=J0(o0(),1)});function P0(Q){let J=BJ.c(4),{status:Z,label:X,suffix:z}=Q,Y=X??Z,V=Z==="completed"?"success":Z==="failed"?"error":Z==="killed"?"warning":void 0,G;if(J[0]!==V||J[1]!==Y||J[2]!==z)G=N(W,{color:V,dimColor:!0,children:["(",Y,z,")"]}),J[0]=V,J[1]=Y,J[2]=z,J[3]=G;else G=J[3];return G}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=q(P0,{status:"completed",label:"done"}),J[0]=X;else X=J[0];return X}case"failed":{let X;if(J[1]===Symbol.for("react.memo_cache_sentinel"))X=q(P0,{status:"failed",label:"error"}),J[1]=X;else X=J[1];return X}case"killed":{let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=q(P0,{status:"killed",label:"stopped"}),J[2]=X;else X=J[2];return X}case"running":case"pending":{let X;if(J[3]===Symbol.for("react.memo_cache_sentinel"))X=q(P0,{status:"running"}),J[3]=X;else X=J[3];return X}}}var BJ;var CZ=a(()=>{q0();$();BJ=J0(F0(),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,V;if(J[0]!==z||J[1]!==Y)V=b0(Y,z,!0),J[0]=z,J[1]=Y,J[2]=V;else V=J[2];let G;if(J[3]!==Z)G=q(EZ,{shell:Z}),J[3]=Z,J[4]=G;else G=J[4];let F;if(J[5]!==V||J[6]!==G)F=N(W,{children:[V," ",G]}),J[5]=V,J[6]=G,J[7]=F;else F=J[7];return F}case"remote_agent":{if(Z.isRemoteReview){let U;if(J[8]!==Z)U=q(W,{children:q(j0,{session:Z})}),J[8]=Z,J[9]=U;else U=J[9];return U}let V=Z.status==="running"||Z.status==="pending"?z0:w0,G;if(J[10]!==V)G=N(W,{dimColor:!0,children:[V," "]}),J[10]=V,J[11]=G;else G=J[11];let F;if(J[12]!==z||J[13]!==Z.title)F=b0(Z.title,z,!0),J[12]=z,J[13]=Z.title,J[14]=F;else F=J[14];let R;if(J[15]===Symbol.for("react.memo_cache_sentinel"))R=q(W,{dimColor:!0,children:" · "}),J[15]=R;else R=J[15];let O;if(J[16]!==Z)O=q(j0,{session:Z}),J[16]=Z,J[17]=O;else O=J[17];let P;if(J[18]!==G||J[19]!==F||J[20]!==O)P=N(W,{children:[G,F,R,O]}),J[18]=G,J[19]=F,J[20]=O,J[21]=P;else P=J[21];return P}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 V=Z.status==="completed"?"done":void 0,G=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[25]!==V||J[26]!==G||J[27]!==Z.status)F=q(P0,{status:Z.status,label:V,suffix:G}),J[25]=V,J[26]=G,J[27]=Z.status,J[28]=F;else F=J[28];let R;if(J[29]!==Y||J[30]!==F)R=N(W,{children:[Y," ",F]}),J[29]=Y,J[30]=F,J[31]=R;else R=J[31];return R}case"in_process_teammate":{let Y,V,G,F,R,O;if(J[32]!==z||J[33]!==Z){let w=s0(Z);V=W;let f;if(J[40]!==Z.identity.color)f=a0(Z.identity.color),J[40]=Z.identity.color,J[41]=f;else f=J[41];if(J[42]!==f||J[43]!==Z.identity.agentName)O=N(W,{color:f,children:["@",Z.identity.agentName]}),J[42]=f,J[43]=Z.identity.agentName,J[44]=O;else O=J[44];Y=W,G=!0,F=": ",R=b0(w,z,!0),J[32]=z,J[33]=Z,J[34]=Y,J[35]=V,J[36]=G,J[37]=F,J[38]=R,J[39]=O}else Y=J[34],V=J[35],G=J[36],F=J[37],R=J[38],O=J[39];let P;if(J[45]!==Y||J[46]!==G||J[47]!==F||J[48]!==R)P=N(Y,{dimColor:G,children:[F,R]}),J[45]=Y,J[46]=G,J[47]=F,J[48]=R,J[49]=P;else P=J[49];let U;if(J[50]!==V||J[51]!==O||J[52]!==P)U=N(V,{children:[O,P]}),J[50]=V,J[51]=O,J[52]=P,J[53]=U;else U=J[53];return U}case"local_workflow":{let Y=Z.workflowName??Z.summary??Z.description,V;if(J[54]!==z||J[55]!==Y)V=b0(Y,z,!0),J[54]=z,J[55]=Y,J[56]=V;else V=J[56];let G;if(J[57]!==Z.agentCount||J[58]!==Z.status)G=Z.status==="running"?`${Z.agentCount} ${Q0(Z.agentCount,"agent")}`:Z.status==="completed"?"done":void 0,J[57]=Z.agentCount,J[58]=Z.status,J[59]=G;else G=J[59];let F=Z.status==="completed"&&!Z.notified?", unread":void 0,R;if(J[60]!==G||J[61]!==F||J[62]!==Z.status)R=q(P0,{status:Z.status,label:G,suffix:F}),J[60]=G,J[61]=F,J[62]=Z.status,J[63]=R;else R=J[63];let O;if(J[64]!==V||J[65]!==R)O=N(W,{children:[V," ",R]}),J[64]=V,J[65]=R,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 V=Z.status==="completed"?"done":void 0,G=Z.status==="completed"&&!Z.notified?", unread":void 0,F;if(J[70]!==V||J[71]!==G||J[72]!==Z.status)F=q(P0,{status:Z.status,label:V,suffix:G}),J[70]=V,J[71]=G,J[72]=Z.status,J[73]=F;else F=J[73];let R;if(J[74]!==Y||J[75]!==F)R=N(W,{children:[Y," ",F]}),J[74]=Y,J[75]=F,J[76]=R;else R=J[76];return R}case"dream":{let Y=Z.filesTouched.length,V;if(J[77]!==Y||J[78]!==Z.phase||J[79]!==Z.sessionsReviewing)V=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]=V;else V=J[80];let G=V,F;if(J[81]!==G||J[82]!==Z.phase)F=N(W,{dimColor:!0,children:["· ",Z.phase," · ",G]}),J[81]=G,J[82]=Z.phase,J[83]=F;else F=J[83];let R=Z.status==="completed"?"done":void 0,O=Z.status==="completed"&&!Z.notified?", unread":void 0,P;if(J[84]!==R||J[85]!==O||J[86]!==Z.status)P=q(P0,{status:Z.status,label:R,suffix:O}),J[84]=R,J[85]=O,J[86]=Z.status,J[87]=P;else P=J[87];let U;if(J[88]!==F||J[89]!==P||J[90]!==Z.description)U=N(W,{children:[Z.description," ",F," ",P]}),J[88]=F,J[89]=P,J[90]=Z.description,J[91]=U;else U=J[91];return U}}}var bZ;var BZ=a(()=>{q0();v0();yZ();IJ();p0();AJ();CZ();MJ();$();bZ=J0(F0(),1)});function DZ(Q){let J=IZ.c(70),{task:Z,onDone:X,onBack:z,onKill:Y}=Q,V=R0(Z.startTime,Z.status==="running",1000,0),G;if(J[0]!==X)G={"confirm:yes":X},J[0]=X,J[1]=G;else G=J[1];let F;if(J[2]===Symbol.for("react.memo_cache_sentinel"))F={context:"Confirmation"},J[2]=F;else F=J[2];G0(G,F);let R;if(J[3]!==z||J[4]!==X||J[5]!==Y||J[6]!==Z.status)R=(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]=R;else R=J[7];let O=R,P,U,w,f,L,C,E,A,h,D,I,K,B,p,d,j;if(J[8]!==V||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),m=b.slice(-nQ),T=b.length-m.length;w=y,E="column",A=0,h=!0,D=O,U=n,d="Memory consolidation";let _=Z.sessionsReviewing,g;if(J[33]!==Z.sessionsReviewing)g=Q0(Z.sessionsReviewing,"session"),J[33]=Z.sessionsReviewing,J[34]=g;else g=J[34];let u;if(J[35]!==Z.filesTouched.length)u=Z.filesTouched.length>0&&N(o,{children:[" ","· ",Z.filesTouched.length," ",Q0(Z.filesTouched.length,"file")," touched"]}),J[35]=Z.filesTouched.length,J[36]=u;else u=J[36];if(J[37]!==V||J[38]!==g||J[39]!==u||J[40]!==Z.sessionsReviewing)j=N(W,{dimColor:!0,children:[V," · reviewing ",_," ",g,u]}),J[37]=V,J[38]=g,J[39]=u,J[40]=Z.sessionsReviewing,J[41]=j;else j=J[41];if(f=X,L="background",J[42]!==z||J[43]!==Y||J[44]!==Z.status)C=(k)=>k.pending?N(W,{children:["Press ",k.keyName," again to exit"]}):N(Z0,{children:[z&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&Y&&q(l,{shortcut:"x",action:"stop"})]}),J[42]=z,J[43]=Y,J[44]=Z.status,J[45]=C;else C=J[45];P=y,I="column",K=1;let S;if(J[46]===Symbol.for("react.memo_cache_sentinel"))S=q(W,{bold:!0,children:"Status:"}),J[46]=S;else S=J[46];if(J[47]!==Z.status)B=N(W,{children:[S," ",Z.status==="running"?q(W,{color:"background",children:"running"}):Z.status==="completed"?q(W,{color:"success",children:Z.status}):q(W,{color:"error",children:Z.status})]}),J[47]=Z.status,J[48]=B;else B=J[48];p=m.length===0?q(W,{dimColor:!0,children:Z.status==="running"?"Starting…":"(no text output)"}):N(o,{children:[T>0&&N(W,{dimColor:!0,children:["(",T," earlier ",Q0(T,"turn"),")"]}),m.map(aQ)]}),J[8]=V,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]=P,J[18]=U,J[19]=w,J[20]=f,J[21]=L,J[22]=C,J[23]=E,J[24]=A,J[25]=h,J[26]=D,J[27]=I,J[28]=K,J[29]=B,J[30]=p,J[31]=d,J[32]=j}else P=J[17],U=J[18],w=J[19],f=J[20],L=J[21],C=J[22],E=J[23],A=J[24],h=J[25],D=J[26],I=J[27],K=J[28],B=J[29],p=J[30],d=J[31],j=J[32];let x;if(J[49]!==P||J[50]!==I||J[51]!==K||J[52]!==B||J[53]!==p)x=N(P,{flexDirection:I,gap:K,children:[B,p]}),J[49]=P,J[50]=I,J[51]=K,J[52]=B,J[53]=p,J[54]=x;else x=J[54];let c;if(J[55]!==U||J[56]!==f||J[57]!==L||J[58]!==C||J[59]!==x||J[60]!==d||J[61]!==j)c=q(U,{title:d,subtitle:j,onCancel:f,color:L,inputGuide:C,children:x}),J[55]=U,J[56]=f,J[57]=L,J[58]=C,J[59]=x,J[60]=d,J[61]=j,J[62]=c;else c=J[62];let v;if(J[63]!==w||J[64]!==E||J[65]!==A||J[66]!==h||J[67]!==D||J[68]!==c)v=q(w,{flexDirection:E,tabIndex:A,autoFocus:h,onKeyDown:D,children:c}),J[63]=w,J[64]=E,J[65]=A,J[66]=h,J[67]=D,J[68]=c,J[69]=v;else v=J[69];return v}function aQ(Q,J){return N(y,{flexDirection:"column",children:[q(W,{wrap:"wrap",children:Q.text}),Q.toolUseCount>0&&N(W,{dimColor:!0,children:[" ","(",Q.toolUseCount," ",Q0(Q.toolUseCount,"tool"),")"]})]},J)}function sQ(Q){return Q.text!==""}var IZ,nQ=6;var hZ=a(()=>{i0();q0();S0();IJ();B0();I0();A0();$();IZ=J0(F0(),1)});function SZ(Q){let J=vZ.c(63),{teammate:Z,onDone:X,onKill:z,onBack:Y,onForeground:V}=Q,[G]=l0(),F;if(J[0]===Symbol.for("react.memo_cache_sentinel"))F=$0(r0()),J[0]=F;else F=J[0];let R=F,O=R0(Z.startTime,Z.status==="running",1000,Z.totalPausedMs??0),P;if(J[1]!==X)P={"confirm:yes":X},J[1]=X,J[2]=P;else P=J[2];let U;if(J[3]===Symbol.for("react.memo_cache_sentinel"))U={context:"Confirmation"},J[3]=U;else U=J[3];G0(P,U);let w;if(J[4]!==Y||J[5]!==X||J[6]!==V||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"&&V)M.preventDefault(),V()},J[4]=Y,J[5]=X,J[6]=V,J[7]=z,J[8]=Z.status,J[9]=w;else w=J[9];let f=w,L;if(J[10]!==Z)L=s0(Z),J[10]=Z,J[11]=L;else L=J[11];let C=L,E=Z.result?.totalTokens??Z.progress?.tokenCount,A=Z.result?.totalToolUseCount??Z.progress?.toolUseCount,h;if(J[12]!==Z.prompt)h=K0(Z.prompt,300),J[12]=Z.prompt,J[13]=h;else h=J[13];let D=h,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 K;if(J[16]!==I||J[17]!==Z.identity.agentName)K=N(W,{color:I,children:["@",Z.identity.agentName]}),J[16]=I,J[17]=Z.identity.agentName,J[18]=K;else K=J[18];let B;if(J[19]!==C)B=C&&N(W,{dimColor:!0,children:[" (",C,")"]}),J[19]=C,J[20]=B;else B=J[20];let p;if(J[21]!==K||J[22]!==B)p=N(W,{children:[K,B]}),J[21]=K,J[22]=B,J[23]=p;else p=J[23];let d=p,j;if(J[24]!==Z.status)j=Z.status!=="running"&&N(W,{color:Z.status==="completed"?"success":Z.status==="killed"?"warning":"error",children:[Z.status==="completed"?"Completed":Z.status==="failed"?"Failed":"Stopped"," · "]}),J[24]=Z.status,J[25]=j;else j=J[25];let x;if(J[26]!==E)x=E!==void 0&&E>0&&N(o,{children:[" · ",x0(E)," tokens"]}),J[26]=E,J[27]=x;else x=J[27];let c;if(J[28]!==A)c=A!==void 0&&A>0&&N(o,{children:[" ","· ",A," ",A===1?"tool":"tools"]}),J[28]=A,J[29]=c;else c=J[29];let v;if(J[30]!==O||J[31]!==x||J[32]!==c)v=N(W,{dimColor:!0,children:[O,x,c]}),J[30]=O,J[31]=x,J[32]=c,J[33]=v;else v=J[33];let b;if(J[34]!==j||J[35]!==v)b=N(W,{children:[j,v]}),J[34]=j,J[35]=v,J[36]=b;else b=J[36];let m=b,T;if(J[37]!==Y||J[38]!==V||J[39]!==z||J[40]!==Z.status)T=(M)=>M.pending?N(W,{children:["Press ",M.keyName," again to exit"]}):N(Z0,{children:[Y&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&q(l,{shortcut:"x",action:"stop"}),Z.status==="running"&&V&&q(l,{shortcut:"f",action:"foreground"})]}),J[37]=Y,J[38]=V,J[39]=z,J[40]=Z.status,J[41]=T;else T=J[41];let _;if(J[42]!==Z.progress||J[43]!==Z.status||J[44]!==G)_=Z.status==="running"&&Z.progress?.recentActivities&&Z.progress.recentActivities.length>0&&N(y,{flexDirection:"column",children:[q(W,{bold:!0,dimColor:!0,children:"Progress"}),Z.progress.recentActivities.map((M,r)=>N(W,{dimColor:r<Z.progress.recentActivities.length-1,wrap:"truncate-end",children:[r===Z.progress.recentActivities.length-1?"› ":" ",k0(M,R,G)]},r))]}),J[42]=Z.progress,J[43]=Z.status,J[44]=G,J[45]=_;else _=J[45];let g;if(J[46]===Symbol.for("react.memo_cache_sentinel"))g=q(W,{bold:!0,dimColor:!0,children:"Prompt"}),J[46]=g;else g=J[46];let u;if(J[47]!==D)u=N(y,{flexDirection:"column",marginTop:1,children:[g,q(W,{wrap:"wrap",children:D})]}),J[47]=D,J[48]=u;else u=J[48];let S;if(J[49]!==Z.error||J[50]!==Z.status)S=Z.status==="failed"&&Z.error&&N(y,{flexDirection:"column",marginTop:1,children:[q(W,{bold:!0,color:"error",children:"Error"}),q(W,{color:"error",wrap:"wrap",children:Z.error})]}),J[49]=Z.error,J[50]=Z.status,J[51]=S;else S=J[51];let k;if(J[52]!==X||J[53]!==m||J[54]!==T||J[55]!==_||J[56]!==u||J[57]!==S||J[58]!==d)k=N(n,{title:d,subtitle:m,onCancel:X,color:"background",inputGuide:T,children:[_,u,S]}),J[52]=X,J[53]=m,J[54]=T,J[55]=_,J[56]=u,J[57]=S,J[58]=d,J[59]=k;else k=J[59];let H;if(J[60]!==f||J[61]!==k)H=q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:f,children:k}),J[60]=f,J[61]=k,J[62]=H;else H=J[62];return H}var vZ;var jZ=a(()=>{i0();q0();S0();LJ();RZ();v0();yZ();B0();I0();A0();wJ();MJ();$();vZ=J0(F0(),1)});function YX(Q,J){if(Q===d0)return"Review the plan in Claude Code on the web";if(!J||typeof J!=="object")return Q;if(Q===cZ&&"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: ${K0(z,50)}`}}}for(let Z of Object.values(J))if(typeof Z==="string"&&Z.trim()){let X=Z.replace(/\s+/g," ").trim();return`${Q} ${K0(X,60)}`}return Q}function GX(Q){let J=ZJ.c(70),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,V=Z.status==="running"||Z.status==="pending",G=Z.ultraplanPhase,F=V?G?zX[G]:"running":Z.status,R=R0(Z.startTime,V,1000,0,Z.endTime),O=0,P=0,U=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(P++,U=e,e.name===uZ||e.name===dZ)O++}}let w=1+O,f;if(J[0]!==U)f=U?YX(U.name,U.input):null,J[0]=U,J[1]=f;else f=J[1];let L;if(J[2]!==P||J[3]!==w||J[4]!==f)L={agentsWorking:w,toolCalls:P,lastToolCall:f},J[2]=P,J[3]=w,J[4]=f,J[5]=L;else L=J[5];let{agentsWorking:C,toolCalls:E,lastToolCall:A}=L,h;if(J[6]!==Z.sessionId)h=_0(Z.sessionId),J[6]=Z.sessionId,J[7]=h;else h=J[7];let D=h,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 K=I,[B,p]=O0.useState(!1);if(B){let X0;if(J[11]===Symbol.for("react.memo_cache_sentinel"))X0=()=>p(!1),J[11]=X0;else X0=J[11];let e;if(J[12]===Symbol.for("react.memo_cache_sentinel"))e=q(W,{dimColor:!0,children:"This will terminate the Claude Code on the web session."}),J[12]=e;else e=J[12];let y0;if(J[13]===Symbol.for("react.memo_cache_sentinel"))y0={label:"Terminate session",value:"stop"},J[13]=y0;else y0=J[13];let i;if(J[14]===Symbol.for("react.memo_cache_sentinel"))i=[y0,{label:"Back",value:"back"}],J[14]=i;else i=J[14];let f0;if(J[15]!==K||J[16]!==Y)f0=q(n,{title:"Stop ultraplan?",onCancel:X0,color:"background",children:N(y,{flexDirection:"column",gap:1,children:[e,q(g0,{options:i,onChange:(T0)=>{if(T0==="stop")Y?.(),K();else p(!1)}})]})}),J[15]=K,J[16]=Y,J[17]=f0;else f0=J[17];return f0}let d=G==="plan_ready"?w0:z0,j;if(J[18]!==d)j=N(W,{color:"background",children:[d," "]}),J[18]=d,J[19]=j;else j=J[19];let x;if(J[20]===Symbol.for("react.memo_cache_sentinel"))x=q(W,{bold:!0,children:"ultraplan"}),J[20]=x;else x=J[20];let c;if(J[21]!==R||J[22]!==F)c=N(W,{dimColor:!0,children:[" · ",R," · ",F]}),J[21]=R,J[22]=F,J[23]=c;else c=J[23];let v;if(J[24]!==j||J[25]!==c)v=N(W,{children:[j,x,c]}),J[24]=j,J[25]=c,J[26]=v;else v=J[26];let b;if(J[27]!==G)b=G==="plan_ready"&&N(W,{color:"success",children:[t0.tick," "]}),J[27]=G,J[28]=b;else b=J[28];let m;if(J[29]!==C)m=Q0(C,"agent"),J[29]=C,J[30]=m;else m=J[30];let T=G?qX[G]:"working",_;if(J[31]!==E)_=Q0(E,"call"),J[31]=E,J[32]=_;else _=J[32];let g;if(J[33]!==C||J[34]!==b||J[35]!==m||J[36]!==T||J[37]!==_||J[38]!==E)g=N(W,{children:[b,C," ",m," ",T," · ",E," tool"," ",_]}),J[33]=C,J[34]=b,J[35]=m,J[36]=T,J[37]=_,J[38]=E,J[39]=g;else g=J[39];let u;if(J[40]!==A)u=A&&q(W,{dimColor:!0,children:A}),J[40]=A,J[41]=u;else u=J[41];let S;if(J[42]!==D)S=q(W,{dimColor:!0,children:D}),J[42]=D,J[43]=S;else S=J[43];let k;if(J[44]!==D||J[45]!==S)k=q(JJ,{url:D,children:S}),J[44]=D,J[45]=S,J[46]=k;else k=J[46];let H;if(J[47]===Symbol.for("react.memo_cache_sentinel"))H={label:"Review in Claude Code on the web",value:"open"},J[47]=H;else H=J[47];let M;if(J[48]!==Y||J[49]!==V)M=Y&&V?[{label:"Stop ultraplan",value:"stop"}]:[],J[48]=Y,J[49]=V,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=[H,...M,r],J[52]=M,J[53]=s;else s=J[53];let Y0;if(J[54]!==K||J[55]!==X||J[56]!==D)Y0=(X0)=>{switch(X0){case"open":{DJ(D),X();return}case"stop":{p(!0);return}case"back":{K();return}}},J[54]=K,J[55]=X,J[56]=D,J[57]=Y0;else Y0=J[57];let W0;if(J[58]!==s||J[59]!==Y0)W0=q(g0,{options:s,onChange:Y0}),J[58]=s,J[59]=Y0,J[60]=W0;else W0=J[60];let H0;if(J[61]!==g||J[62]!==u||J[63]!==k||J[64]!==W0)H0=N(y,{flexDirection:"column",gap:1,children:[g,u,k,W0]}),J[61]=g,J[62]=u,J[63]=k,J[64]=W0,J[65]=H0;else H0=J[65];let C0;if(J[66]!==K||J[67]!==v||J[68]!==H0)C0=q(n,{title:v,onCancel:K,color:"background",children:H0}),J[66]=K,J[67]=v,J[68]=H0,J[69]=C0;else C0=J[69];return C0}function VX(Q){let J=ZJ.c(15),{stage:Z,completed:X,hasProgress:z}=Q,Y;if(J[0]!==Z)Y=Z?gZ.indexOf(Z):-1,J[0]=Z,J[1]=Y;else Y=J[1];let V=Y,G=!X&&!z,F;if(J[2]!==G)F=G?q(W,{color:"background",children:"Setup"}):q(W,{dimColor:!0,children:"Setup"}),J[2]=G,J[3]=F;else F=J[3];let R;if(J[4]===Symbol.for("react.memo_cache_sentinel"))R=q(W,{dimColor:!0,children:" → "}),J[4]=R;else R=J[4];let O;if(J[5]!==X||J[6]!==V||J[7]!==G)O=gZ.map((w,f)=>{let L=!X&&!G&&f===V;return N(O0.default.Fragment,{children:[f>0&&q(W,{dimColor:!0,children:" → "}),L?q(W,{color:"background",children:_Z[w]}):q(W,{dimColor:!0,children:_Z[w]})]},w)}),J[5]=X,J[6]=V,J[7]=G,J[8]=O;else O=J[8];let P;if(J[9]!==X)P=X&&q(W,{color:"success",children:" ✓"}),J[9]=X,J[10]=P;else P=J[10];let U;if(J[11]!==F||J[12]!==O||J[13]!==P)U=N(W,{children:[F,R,O,P]}),J[11]=F,J[12]=O,J[13]=P,J[14]=U;else U=J[14];return U}function WX(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 HX(Q){let J=ZJ.c(56),{session:Z,onDone:X,onBack:z,onKill:Y}=Q,V=Z.status==="completed",G=Z.status==="running"||Z.status==="pending",[F,R]=O0.useState(!1),O=R0(Z.startTime,G,1000,0,Z.endTime),P;if(J[0]!==X)P=()=>X("Remote session details dismissed",{display:"system"}),J[0]=X,J[1]=P;else P=J[1];let U=P,w=z??U,f;if(J[2]!==Z.sessionId)f=_0(Z.sessionId),J[2]=Z.sessionId,J[3]=f;else f=J[3];let L=f,C=V?"ready":G?"running":Z.status;if(F){let k;if(J[4]===Symbol.for("react.memo_cache_sentinel"))k=()=>R(!1),J[4]=k;else k=J[4];let H;if(J[5]===Symbol.for("react.memo_cache_sentinel"))H=q(W,{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]=H;else H=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=q(n,{title:"Stop ultrareview?",onCancel:k,color:"background",children:N(y,{flexDirection:"column",gap:1,children:[H,q(g0,{options:r,onChange:(Y0)=>{if(Y0==="stop")Y?.(),w();else R(!1)}})]})}),J[8]=w,J[9]=Y,J[10]=s;else s=J[10];return s}let E;if(J[11]!==V||J[12]!==Y||J[13]!==G)E=V?[{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&&G?[{label:"Stop ultrareview",value:"stop"}]:[],{label:"Back",value:"back"}],J[11]=V,J[12]=Y,J[13]=G,J[14]=E;else E=J[14];let A=E,h;if(J[15]!==w||J[16]!==U||J[17]!==X||J[18]!==L)h=(k)=>{J:switch(k){case"open":{DJ(L),X();break J}case"stop":{R(!0);break J}case"back":{w();break J}case"dismiss":U()}},J[15]=w,J[16]=U,J[17]=X,J[18]=L,J[19]=h;else h=J[19];let D=h,I=V?w0:z0,K;if(J[20]!==I)K=N(W,{color:"background",children:[I," "]}),J[20]=I,J[21]=K;else K=J[21];let B;if(J[22]===Symbol.for("react.memo_cache_sentinel"))B=q(W,{bold:!0,children:"ultrareview"}),J[22]=B;else B=J[22];let p;if(J[23]!==O||J[24]!==C)p=N(W,{dimColor:!0,children:[" · ",O," · ",C]}),J[23]=O,J[24]=C,J[25]=p;else p=J[25];let d;if(J[26]!==K||J[27]!==p)d=N(W,{children:[K,B,p]}),J[26]=K,J[27]=p,J[28]=d;else d=J[28];let j=Z.reviewProgress?.stage,x=!!Z.reviewProgress,c;if(J[29]!==V||J[30]!==j||J[31]!==x)c=q(VX,{stage:j,completed:V,hasProgress:x}),J[29]=V,J[30]=j,J[31]=x,J[32]=c;else c=J[32];let v;if(J[33]!==Z)v=WX(Z),J[33]=Z,J[34]=v;else v=J[34];let b;if(J[35]!==v)b=q(W,{children:v}),J[35]=v,J[36]=b;else b=J[36];let m;if(J[37]!==L)m=q(W,{dimColor:!0,children:L}),J[37]=L,J[38]=m;else m=J[38];let T;if(J[39]!==L||J[40]!==m)T=q(JJ,{url:L,children:m}),J[39]=L,J[40]=m,J[41]=T;else T=J[41];let _;if(J[42]!==b||J[43]!==T)_=N(y,{flexDirection:"column",children:[b,T]}),J[42]=b,J[43]=T,J[44]=_;else _=J[44];let g;if(J[45]!==D||J[46]!==A)g=q(g0,{options:A,onChange:D}),J[45]=D,J[46]=A,J[47]=g;else g=J[47];let u;if(J[48]!==c||J[49]!==_||J[50]!==g)u=N(y,{flexDirection:"column",gap:1,children:[c,_,g]}),J[48]=c,J[49]=_,J[50]=g,J[51]=u;else u=J[51];let S;if(J[52]!==w||J[53]!==u||J[54]!==d)S=q(n,{title:d,onCancel:w,color:"background",inputGuide:NX,children:u}),J[52]=w,J[53]=u,J[54]=d,J[55]=S;else S=J[55];return S}function NX(Q){return Q.pending?N(W,{children:["Press ",Q.keyName," again to exit"]}):N(Z0,{children:[q(l,{shortcut:"Enter",action:"select"}),q(l,{shortcut:"Esc",action:"go back"})]})}function xZ({session:Q,toolUseContext:J,onDone:Z,onBack:X,onKill:z}){let[Y,V]=O0.useState(!1),[G,F]=O0.useState(null),R=O0.useMemo(()=>{if(Q.isUltraplan||Q.isRemoteReview)return[];return lZ(kZ(Q.log)).filter((L)=>L.type!=="progress").slice(-3)},[Q]);if(Q.isUltraplan)return q(GX,{session:Q,onDone:Z,onBack:X,onKill:z});if(Q.isRemoteReview)return q(HX,{session:Q,onDone:Z,onBack:X,onKill:z});let O=()=>Z("Remote session details dismissed",{display:"system"}),P=(L)=>{if(L.key===" ")L.preventDefault(),Z("Remote session details dismissed",{display:"system"});else if(L.key==="left"&&X)L.preventDefault(),X();else if(L.key==="t"&&!Y)L.preventDefault(),U();else if(L.key==="return")L.preventDefault(),O()};async function U(){V(!0),F(null);try{await mZ(Q.sessionId)}catch(L){F(h0(L))}finally{V(!1)}}let w=K0(Q.title,50),f=Q.status==="pending"?"starting":Q.status;return q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:P,children:N(n,{title:"Remote session details",onCancel:O,color:"background",inputGuide:(L)=>L.pending?N(W,{children:["Press ",L.keyName," again to exit"]}):N(Z0,{children:[X&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),!Y&&q(l,{shortcut:"t",action:"teleport"})]}),children:[N(y,{flexDirection:"column",children:[N(W,{children:[q(W,{bold:!0,children:"Status"}),":"," ",f==="running"||f==="starting"?q(W,{color:"background",children:f}):f==="completed"?q(W,{color:"success",children:f}):q(W,{color:"error",children:f})]}),N(W,{children:[q(W,{bold:!0,children:"Runtime"}),":"," ",e0((Q.endTime??Date.now())-Q.startTime)]}),N(W,{wrap:"truncate-end",children:[q(W,{bold:!0,children:"Title"}),": ",w]}),N(W,{children:[q(W,{bold:!0,children:"Progress"}),":"," ",q(j0,{session:Q})]}),N(W,{children:[q(W,{bold:!0,children:"Session URL"}),":"," ",q(JJ,{url:_0(Q.sessionId),children:q(W,{dimColor:!0,children:_0(Q.sessionId)})})]})]}),Q.log.length>0&&N(y,{flexDirection:"column",marginTop:1,children:[N(W,{children:[q(W,{bold:!0,children:"Recent messages"}),":"]}),q(y,{flexDirection:"column",height:10,overflowY:"hidden",children:R.map((L,C)=>q(pZ,{message:L,lookups:iZ,addMargin:C>0,tools:J.options.tools,commands:J.options.commands,verbose:J.options.verbose,inProgressToolUseIDs:new Set,progressMessagesForMessage:[],shouldAnimate:!1,shouldShowDot:!1,style:"condensed",isTranscriptMode:!1,isStatic:!0},C))}),q(y,{marginTop:1,children:N(W,{dimColor:!0,italic:!0,children:["Showing last ",R.length," of ",Q.log.length," ","messages"]})})]}),G&&q(y,{marginTop:1,children:N(W,{color:"error",children:["Teleport failed: ",G]})}),Y&&q(W,{color:"background",children:"Teleporting to session…"})]})})}var ZJ,O0,zX,qX,gZ,_Z;var rZ=a(()=>{TZ();p0();i0();q0();UJ();eQ();tQ();mJ();JX();aJ();v0();XX();fZ();IJ();NJ();QX();B0();I0();A0();ZX();AJ();$();ZJ=J0(F0(),1),O0=J0(o0(),1);zX={needs_input:"input required",plan_ready:"ready"},qX={needs_input:"waiting",plan_ready:"done"};gZ=["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,PX);return{content:Z.content,bytesTotal:Z.bytesTotal}}catch{return{content:"",bytesTotal:0}}}function eZ(Q){let J=hJ.c(57),{shell:Z,onDone:X,onKillShell:z,onBack:Y}=Q,{columns:V}=QJ(),G;if(J[0]!==Z)G=()=>sZ(Z),J[0]=Z,J[1]=G;else G=J[1];let[F,R]=V0.useState(G),O=V0.useDeferredValue(F),P;if(J[2]!==Z)P=()=>{if(Z.status!=="running")return;let r=setInterval(OX,1000,R,Z);return()=>clearInterval(r)},J[2]=Z,J[3]=P;else P=J[3];let U;if(J[4]!==Z.id||J[5]!==Z.status)U=[Z.id,Z.status],J[4]=Z.id,J[5]=Z.status,J[6]=U;else U=J[6];V0.useEffect(P,U);let w;if(J[7]!==X)w=()=>X("Shell details dismissed",{display:"system"}),J[7]=X,J[8]=w;else w=J[8];let f=w,L;if(J[9]!==f)L={"confirm:yes":f},J[9]=f,J[10]=L;else L=J[10];let C;if(J[11]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},J[11]=C;else C=J[11];G0(L,C);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,h=Z.kind==="monitor",D;if(J[17]!==Z.command)D=K0(Z.command,280),J[17]=Z.command,J[18]=D;else D=J[18];let I=D,K=h?"Monitor details":"Shell details",B;if(J[19]!==Y||J[20]!==z||J[21]!==Z.status)B=(r)=>r.pending?N(W,{children:["Press ",r.keyName," again to exit"]}):N(Z0,{children:[Y&&q(l,{shortcut:"←",action:"go back"}),q(l,{shortcut:"Esc/Enter/Space",action:"close"}),Z.status==="running"&&z&&q(l,{shortcut:"x",action:"stop"})]}),J[19]=Y,J[20]=z,J[21]=Z.status,J[22]=B;else B=J[22];let p;if(J[23]===Symbol.for("react.memo_cache_sentinel"))p=q(W,{bold:!0,children:"Status:"}),J[23]=p;else p=J[23];let d;if(J[24]!==Z.result||J[25]!==Z.status)d=N(W,{children:[p," ",Z.status==="running"?N(W,{color:"background",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):Z.status==="completed"?N(W,{color:"success",children:[Z.status,Z.result?.code!==void 0&&` (exit code: ${Z.result.code})`]}):N(W,{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]=d;else d=J[26];let j;if(J[27]===Symbol.for("react.memo_cache_sentinel"))j=q(W,{bold:!0,children:"Runtime:"}),J[27]=j;else j=J[27];let x;if(J[28]!==Z.endTime)x=Z.endTime??Date.now(),J[28]=Z.endTime,J[29]=x;else x=J[29];let c=x-Z.startTime,v;if(J[30]!==c)v=e0(c),J[30]=c,J[31]=v;else v=J[31];let b;if(J[32]!==v)b=N(W,{children:[j," ",v]}),J[32]=v,J[33]=b;else b=J[33];let m=h?"Script:":"Command:",T;if(J[34]!==m)T=q(W,{bold:!0,children:m}),J[34]=m,J[35]=T;else T=J[35];let _;if(J[36]!==I||J[37]!==T)_=N(W,{wrap:"wrap",children:[T," ",I]}),J[36]=I,J[37]=T,J[38]=_;else _=J[38];let g;if(J[39]!==d||J[40]!==b||J[41]!==_)g=N(y,{flexDirection:"column",children:[d,b,_]}),J[39]=d,J[40]=b,J[41]=_,J[42]=g;else g=J[42];let u;if(J[43]===Symbol.for("react.memo_cache_sentinel"))u=q(W,{bold:!0,children:"Output:"}),J[43]=u;else u=J[43];let S;if(J[44]===Symbol.for("react.memo_cache_sentinel"))S=q(W,{dimColor:!0,children:"Loading output…"}),J[44]=S;else S=J[44];let k;if(J[45]!==V||J[46]!==O)k=N(y,{flexDirection:"column",children:[u,q(V0.Suspense,{fallback:S,children:q(UX,{outputPromise:O,columns:V})})]}),J[45]=V,J[46]=O,J[47]=k;else k=J[47];let H;if(J[48]!==f||J[49]!==B||J[50]!==g||J[51]!==k||J[52]!==K)H=N(n,{title:K,onCancel:f,color:"background",inputGuide:B,children:[g,k]}),J[48]=f,J[49]=B,J[50]=g,J[51]=k,J[52]=K,J[53]=H;else H=J[53];let M;if(J[54]!==A||J[55]!==H)M=q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:A,children:H}),J[54]=A,J[55]=H,J[56]=M;else M=J[56];return M}function OX(Q,J){return Q(sZ(J))}function UX(Q){let J=hJ.c(19),{outputPromise:Z,columns:X}=Q,{content:z,bytesTotal:Y}=V0.use(Z);if(!z){let L;if(J[0]===Symbol.for("react.memo_cache_sentinel"))L=q(W,{dimColor:!0,children:"No output available"}),J[0]=L;else L=J[0];return L}let V,G;if(J[1]!==Y||J[2]!==z){let L=[],C=z.length;for(let E=0;E<10&&C>0;E++){let A=z.lastIndexOf(`
|
|
17
|
-
`,C-1);L.push(A+1),C=A}L.reverse(),V=Y>z.length,G=[];for(let E=0;E<L.length;E++){let A=L[E],h=E<L.length-1?L[E+1]-1:z.length,D=z.slice(A,h);if(D)G.push(D)}J[1]=Y,J[2]=z,J[3]=V,J[4]=G}else V=J[3],G=J[4];let F=X-6,R;if(J[5]!==G)R=G.map(fX),J[5]=G,J[6]=R;else R=J[6];let O;if(J[7]!==F||J[8]!==R)O=q(y,{borderStyle:"round",paddingX:1,flexDirection:"column",height:12,maxWidth:F,children:R}),J[7]=F,J[8]=R,J[9]=O;else O=J[9];let P=`Showing ${G.length} lines`,U;if(J[10]!==Y||J[11]!==V)U=V?` of ${oZ(Y)}`:"",J[10]=Y,J[11]=V,J[12]=U;else U=J[12];let w;if(J[13]!==P||J[14]!==U)w=N(W,{dimColor:!0,italic:!0,children:[P,U]}),J[13]=P,J[14]=U,J[15]=w;else w=J[15];let f;if(J[16]!==O||J[17]!==w)f=N(o,{children:[O,w]}),J[16]=O,J[17]=w,J[18]=f;else f=J[18];return f}function fX(Q,J){return q(W,{wrap:"truncate-end",children:Q},J)}var hJ,V0,PX=8192;var tZ=a(()=>{nZ();q0();S0();v0();FX();RX();B0();I0();A0();$();hJ=J0(F0(),1),V0=J0(o0(),1)});var JQ={};$J(JQ,{default:()=>wX});var LX=()=>null,wX;var ZQ=a(()=>{wX=LX});function gX(Q,J){return Object.values(Q??{}).filter(qJ).filter((X)=>!(X.type==="local_agent"&&X.id===J))}function jq({onDone:Q,toolUseContext:J,initialDetailTaskId:Z}){let X=zJ((H)=>H.tasks),z=zJ((H)=>H.foregroundedTaskId),Y=zJ((H)=>H.expandedView)==="teammates",V=FQ(),G=VQ("chat:killAgents","Chat","ctrl+x ctrl+k"),F=X,R=U0.useRef(!1),[O,P]=U0.useState(()=>{if(Z)return R.current=!0,{mode:"detail",itemId:Z};let H=gX(F,z);if(H.length===1)return R.current=!0,{mode:"detail",itemId:H[0].id};return{mode:"list"}}),[U,w]=U0.useState(0);OQ("background-tasks-dialog");let{bashTasks:f,remoteSessions:L,agentTasks:C,teammateTasks:E,workflowTasks:A,mcpMonitors:h,dreamTasks:D,allSelectableItems:I}=U0.useMemo(()=>{let r=Object.values(F??{}).filter(qJ).map(_X).sort((i,f0)=>{let T0=i.status,gJ=f0.status;if(T0==="running"&&gJ!=="running")return-1;if(T0!=="running"&&gJ==="running")return 1;let UQ="task"in i?i.task.startTime:0;return("task"in f0?f0.task.startTime:0)-UQ}),s=r.filter((i)=>i.type==="local_bash"),Y0=r.filter((i)=>i.type==="remote_agent"),W0=r.filter((i)=>i.type==="local_agent"&&i.id!==z),H0=r.filter((i)=>i.type==="local_workflow"),C0=r.filter((i)=>i.type==="monitor_mcp"),X0=r.filter((i)=>i.type==="dream"),e=Y?[]:r.filter((i)=>i.type==="in_process_teammate"),y0=e.length>0?[{id:"__leader__",type:"leader",label:`@${vJ}`,status:"running"}]:[];return{bashTasks:s,remoteSessions:Y0,agentTasks:W0,workflowTasks:H0,mcpMonitors:C0,dreamTasks:X0,teammateTasks:[...y0,...e],allSelectableItems:[...y0,...e,...s,...C0,...Y0,...W0,...H0,...X0]}},[F,z,Y]),K=I[U]??null;G0({"confirm:previous":()=>w((H)=>Math.max(0,H-1)),"confirm:next":()=>w((H)=>Math.min(I.length-1,H+1)),"confirm:yes":()=>{let H=I[U];if(H)if(H.type==="leader")WJ(V),Q("Viewing leader",{display:"system"});else P({mode:"detail",itemId:H.id})}},{context:"Confirmation",isActive:O.mode==="list"});let B=(H)=>{if(O.mode!=="list")return;if(H.key==="left"){H.preventDefault(),Q("Background tasks dialog dismissed",{display:"system"});return}let M=I[U];if(!M)return;if(H.key==="x"){if(H.preventDefault(),M.type==="local_bash"&&M.status==="running")p(M.id);else if(M.type==="local_agent"&&M.status==="running")d(M.id);else if(M.type==="in_process_teammate"&&M.status==="running")j(M.id);else if(M.type==="local_workflow"&&M.status==="running"&&XJ)XJ(M.id,V);else if(M.type==="monitor_mcp"&&M.status==="running"&&YJ)YJ(M.id,V);else if(M.type==="dream"&&M.status==="running")x(M.id);else if(M.type==="remote_agent"&&M.status==="running")if(M.task.isUltraplan)fJ(M.id,M.task.sessionId,V);else c(M.id)}if(H.key==="f"){if(M.type==="in_process_teammate"&&M.status==="running")H.preventDefault(),VJ(M.id,V),Q("Viewing teammate",{display:"system"});else if(M.type==="leader")H.preventDefault(),WJ(V),Q("Viewing leader",{display:"system"})}};async function p(H){await WQ.kill(H,V)}async function d(H){await PQ.kill(H,V)}async function j(H){await HQ.kill(H,V)}async function x(H){await RQ.kill(H,V)}async function c(H){await m0.kill(H,V)}let v=NQ(Q);U0.useEffect(()=>{if(O.mode!=="list"){let M=(F??{})[O.itemId];if(!M||M.type!=="local_workflow"&&!qJ(M))if(R.current)v("Background tasks dialog dismissed",{display:"system"});else P({mode:"list"})}let H=I.length;if(U>=H&&H>0)w(H-1)},[O,F,U,I,v]);let b=()=>{if(R.current&&I.length<=1)Q("Background tasks dialog dismissed",{display:"system"});else R.current=!1,P({mode:"list"})};if(O.mode!=="list"&&F){let H=F[O.itemId];if(!H)return null;switch(H.type){case"local_bash":return q(eZ,{shell:H,onDone:Q,onKillShell:()=>void p(H.id),onBack:b},`shell-${H.id}`);case"local_agent":return q(OZ,{agent:H,onDone:Q,onKillAgent:()=>void d(H.id),onBack:b},`agent-${H.id}`);case"remote_agent":return q(xZ,{session:H,onDone:Q,toolUseContext:J,onBack:b,onKill:H.status!=="running"?void 0:H.isUltraplan?()=>void fJ(H.id,H.sessionId,V):()=>void c(H.id)},`session-${H.id}`);case"in_process_teammate":return q(SZ,{teammate:H,onDone:Q,onKill:H.status==="running"?()=>void j(H.id):void 0,onBack:b,onForeground:H.status==="running"?()=>{VJ(H.id,V),Q("Viewing teammate",{display:"system"})}:void 0},`teammate-${H.id}`);case"local_workflow":if(!QQ)return null;return q(QQ,{workflow:H,onDone:Q,onKill:H.status==="running"&&XJ?()=>XJ(H.id,V):void 0,onSkipAgent:H.status==="running"&&XQ?(M)=>XQ(H.id,M,V):void 0,onRetryAgent:H.status==="running"&&YQ?(M)=>YQ(H.id,M,V):void 0,onBack:b},`workflow-${H.id}`);case"monitor_mcp":if(!zQ)return null;return q(zQ,{task:H,onKill:H.status==="running"&&YJ?()=>YJ(H.id,V):void 0,onBack:b},`monitor-mcp-${H.id}`);case"dream":return q(DZ,{task:H,onDone:()=>Q("Background tasks dialog dismissed",{display:"system"}),onBack:b,onKill:H.status==="running"?()=>void x(H.id):void 0},`dream-${H.id}`)}}let m=M0(f,(H)=>H.status==="running"),T=M0(L,(H)=>H.status==="running"||H.status==="pending")+M0(C,(H)=>H.status==="running"),_=M0(E,(H)=>H.status==="running"),g=qQ([..._>0?[N(W,{children:[_," ",_!==1?"agents":"agent"]},"teammates")]:[],...m>0?[N(W,{children:[m," ",m!==1?"active shells":"active shell"]},"shells")]:[],...T>0?[N(W,{children:[T," ",T!==1?"active agents":"active agent"]},"agents")]:[]],(H)=>q(W,{children:" · "},`separator-${H}`)),u=[q(l,{shortcut:"↑/↓",action:"select"},"upDown"),q(l,{shortcut:"Enter",action:"view"},"enter"),...K?.type==="in_process_teammate"&&K.status==="running"?[q(l,{shortcut:"f",action:"foreground"},"foreground")]:[],...(K?.type==="local_bash"||K?.type==="local_agent"||K?.type==="in_process_teammate"||K?.type==="local_workflow"||K?.type==="monitor_mcp"||K?.type==="dream"||K?.type==="remote_agent")&&K.status==="running"?[q(l,{shortcut:"x",action:"stop"},"kill")]:[],...C.some((H)=>H.status==="running")?[q(l,{shortcut:G,action:"stop all agents"},"kill-all")]:[],q(l,{shortcut:"←/Esc",action:"close"},"esc")],S=()=>Q("Background tasks dialog dismissed",{display:"system"});function k(H){if(H.pending)return N(W,{children:["Press ",H.keyName," again to exit"]});return q(Z0,{children:u})}return q(y,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:B,children:q(n,{title:"Background tasks",subtitle:q(o,{children:g}),onCancel:S,color:"background",inputGuide:k,children:I.length===0?q(W,{dimColor:!0,children:"No tasks currently running"}):N(y,{flexDirection:"column",children:[E.length>0&&N(y,{flexDirection:"column",children:[(f.length>0||L.length>0||C.length>0)&&N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Agents"]})," (",M0(E,(H)=>H.type!=="leader"),")"]}),q(y,{flexDirection:"column",children:q(TX,{teammateTasks:E,currentSelectionId:K?.id})})]}),f.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0?1:0,children:[(E.length>0||L.length>0||C.length>0)&&N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Shells"]})," (",f.length,")"]}),q(y,{flexDirection:"column",children:f.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),h.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0||f.length>0?1:0,children:[N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Monitors"]})," (",h.length,")"]}),q(y,{flexDirection:"column",children:h.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),L.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0||f.length>0||h.length>0?1:0,children:[N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Remote agents"]})," (",L.length,")"]}),q(y,{flexDirection:"column",children:L.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),C.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0||f.length>0||h.length>0||L.length>0?1:0,children:[N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Local agents"]})," (",C.length,")"]}),q(y,{flexDirection:"column",children:C.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),A.length>0&&N(y,{flexDirection:"column",marginTop:E.length>0||f.length>0||h.length>0||L.length>0||C.length>0?1:0,children:[N(W,{dimColor:!0,children:[N(W,{bold:!0,children:[" ","Workflows"]})," (",A.length,")"]}),q(y,{flexDirection:"column",children:A.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.id))})]}),D.length>0&&q(y,{flexDirection:"column",marginTop:E.length>0||f.length>0||h.length>0||L.length>0||C.length>0||A.length>0?1:0,children:q(y,{flexDirection:"column",children:D.map((H)=>q(E0,{item:H,isSelected:H.id===K?.id},H.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};default:throw Error(`toListItem: unhandled task type ${String(Q.type)}`)}}function E0(Q){let J=SJ.c(14),{item:Z,isSelected:X}=Q,{columns:z}=QJ(),Y=Math.max(30,z-26),V;if(J[0]===Symbol.for("react.memo_cache_sentinel"))V=GQ(),J[0]=V;else V=J[0];let G=V,F=G&&X,R=X?t0.pointer+" ":" ",O;if(J[1]!==F||J[2]!==R)O=q(W,{dimColor:F,children:R}),J[1]=F,J[2]=R,J[3]=O;else O=J[3];let P=X&&!G?"suggestion":void 0,U;if(J[4]!==Z.task||J[5]!==Z.type||J[6]!==Y)U=Z.type==="leader"?N(W,{children:["@",vJ]}):q(AZ,{task:Z.task,maxActivityWidth:Y}),J[4]=Z.task,J[5]=Z.type,J[6]=Y,J[7]=U;else U=J[7];let w;if(J[8]!==P||J[9]!==U)w=q(W,{color:P,children:U}),J[8]=P,J[9]=U,J[10]=w;else w=J[10];let f;if(J[11]!==O||J[12]!==w)f=N(y,{flexDirection:"row",children:[O,w]}),J[11]=O,J[12]=w,J[13]=f;else f=J[13];return f}function TX(Q){let J=SJ.c(3),{teammateTasks:Z,currentSelectionId:X}=Q,z;if(J[0]!==X||J[1]!==Z){let Y=Z.filter(dX),V=Z.filter(uX),G=new Map;for(let R of V){let O=R.task.identity.teamName,P=G.get(O);if(P)P.push(R);else G.set(O,[R])}let F=[...G.entries()];z=q(o,{children:F.map((R)=>{let[O,P]=R,U=P.length+Y.length;return N(y,{flexDirection:"column",children:[N(W,{dimColor:!0,children:[" ","Team: ",O," (",U,")"]}),Y.map((w)=>q(E0,{item:w,isSelected:w.id===X},`${w.id}-${O}`)),P.map((w)=>q(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 uX(Q){return Q.type==="in_process_teammate"}function dX(Q){return Q.type==="leader"}var SJ,U0,QQ=null,jJ=null,XJ,XQ,YQ,jX,YJ,zQ;var cX=a(()=>{TZ();MX();bX();nZ();AX();uJ();hX();yX();vX();CX();UJ();BX();yJ();KX();GZ();SX();q0();S0();EX();yJ();B0();I0();A0();UZ();BZ();hZ();jZ();rZ();tZ();$();SJ=J0(F0(),1),U0=J0(o0(),1),XJ=jJ?.killWorkflowTask??null,XQ=jJ?.skipWorkflowAgent??null,YQ=jJ?.retryWorkflowAgent??null,jX=(DX(),RJ(IX)),YJ=jX?.killMonitorMcp??null,zQ=(ZQ(),RJ(JQ)).MonitorMcpDetailDialog});
|
|
18
|
-
export{VJ as Je,WJ as Ke,xX as Le,uJ as Me,fJ as Ne,mQ as Oe,GZ as Pe,jq as Qe,cX as Re};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{K as F}from"./cli-1.1.20-nr5scd4y.mjs";import{U as k}from"./cli-1.1.20-44e5kpwx.mjs";import{_a as x}from"./cli-1.1.20-wtxwvcad.mjs";import{$a as O}from"./cli-1.1.20-3xt27qam.mjs";import{Vo as G,Wo as U,Zo as L,_o as d,jU as b,kU as p}from"./cli-1.1.20-sx7811qs.mjs";import{$U as u,YU as R}from"./cli-1.1.20-ryb6r2jj.mjs";import{Q8 as m,Z4 as Y,d5 as D,g7 as j,h7 as z,j8 as w,k8 as E}from"./cli-1.1.20-rvn2axad.mjs";import{Hga as $,Kga as M,wea as X,xea as B}from"./cli-1.1.20-hrw31bb0.mjs";import{jja as _,lja as I}from"./cli-1.1.20-nkrcdd4b.mjs";import{ala as K,dla as y}from"./cli-1.1.20-gkc4ptt0.mjs";import{Ala as V,Hla as v}from"./cli-1.1.20-2c9529sa.mjs";import{Nla as J,Pla as N,Vla as C}from"./cli-1.1.20-003ssrqs.mjs";import{Bsa as W,Tsa as A}from"./cli-1.1.20-wx90y3jb.mjs";C();u();p();M();m();d();I();A();y();v();D();B();var T=void 0;function h(q){try{let H=new URL(q);return H.search="",H.toString().replace(/\/$/,"")}catch{return}}async function Z(){if(X())return;if(Y()!=="firstParty")return;try{let q=await W.get("https://api.anthropic.com/mcp-registry/v0/servers?version=latest&visibility=commercial",{timeout:5000}),H=new Set;for(let P of q.data.servers)for(let S of P.server.remotes??[]){let Q=h(S.url);if(Q)H.add(Q)}T=H,K(`[mcp-registry] Loaded ${H.size} official MCP URLs`)}catch(q){K(`Failed to fetch MCP registry: ${V(q)}`,{level:"error"})}}z();U();function Xq(){if(J(process.env.CLAUDIN_EXIT_AFTER_FIRST_RENDER)||N())return;R(),b(),k(),x();let q=$()?.transport;if(q==="bedrock"&&!J(process.env.CLAUDIN_SKIP_BEDROCK_AUTH))E();if(q==="vertex"&&!J(process.env.CLAUDIN_SKIP_VERTEX_AUTH))w();if(L(_(),AbortSignal.timeout(3000),[]),F(),Z(),j(),G.initialize(),!N())O.initialize()}
|
|
2
|
-
export{Xq as I};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{C2 as N,x2 as S,y2 as D}from"./cli-1.1.20-c2g9cejz.mjs";import{Wga as X,_ea as B,bfa as O,cha as E,wea as H,wfa as d,xea as P}from"./cli-1.1.20-hrw31bb0.mjs";import{Hla as f,zla as U}from"./cli-1.1.20-2c9529sa.mjs";import{Kla as W,Vla as b}from"./cli-1.1.20-003ssrqs.mjs";import{opa as T,yra as M}from"./cli-1.1.20-j4a7q58c.mjs";import{Bsa as j,Tsa as y}from"./cli-1.1.20-wx90y3jb.mjs";import{pta as R,tta as p}from"./cli-1.1.20-0sgvc4nn.mjs";import{mkdir as G,readFile as m,writeFile as _}from"fs/promises";import{dirname as F,join as u}from"path";function I(){return u(W(),"cache","changelog.md")}async function Jq(){let J=O();if(!J.cachedChangelog)return;let q=I();try{await G(F(q),{recursive:!0}),await _(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}B(({cachedChangelog:Y,...z})=>z)}async function C(){if(T())return;if(H())return;let J=await j.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=I();await G(F(Y),{recursive:!0}),await _(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();B((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=I();try{let q=await m(J,"utf-8");return $=q,q}catch{return $="",""}}function A(){return $??""}function L(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
|
|
2
|
-
`);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let x=K.slice(1).filter((k)=>k.trim().startsWith("- ")).map((k)=>k.trim().substring(2).trim()).filter(Boolean);if(x.length>0)q[Z]=x}return q}catch(q){return X(U(q)),{}}}function l(J,q,Y=A()){try{let z=L(Y),K=w.coerce(J),Q=q?w.coerce(q):null;if(!Q||K&&D(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||D(Z,Q.version)).sort(([Z],[x])=>D(Z,x)?-1:1).flatMap(([Z,x])=>x).filter(Boolean).slice(0,V)}catch(z){return X(U(z)),[]}return[]}function Kq(J=A()){try{let q=L(J);return Object.keys(q).sort((z,K)=>D(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return X(U(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>X(U(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var w,V=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var c=p(()=>{y();M();d();b();f();E();P();N();w=R(S(),1)});
|
|
3
|
-
export{zq as cf,Jq as df,C as ef,h as ff,Kq as gf,Qq as hf,c as if};
|