@claudiolabs/claudin 1.1.32 → 1.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/App-1.1.33-y76d67dw.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.33-fz6kxvwx.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.33-99ykhjpz.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.33-tzr7atf1.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.33-3ehzc9bn.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.33-mptzgfxf.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.33-anvv0w3b.mjs +6 -0
- package/dist/chunks/Doctor-1.1.33-8m3ek5ex.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.33-70aphca6.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.33-0syshawj.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.33-40sq04vm.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.33-tgp186pw.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.33-9tcy3d33.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.33-zjx8xhqz.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.33-zm2tkf0s.mjs +1 -0
- package/dist/chunks/REPL-1.1.33-gh2kz8dk.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.33-v284310j.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.33-5dqj1qp9.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.33-q3p5maex.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.33-dhrpj9a6.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.33-gph2cfsr.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.33-qv8tchk3.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.33-bq45cvv6.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.33-v055y8f3.mjs +1 -0
- package/dist/chunks/add-dir-1.1.33-e811cqdx.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.33-t5nvprgp.mjs +1 -0
- package/dist/chunks/agents-1.1.33-mbve4trn.mjs +3 -0
- package/dist/chunks/agents-1.1.33-nhfb2axy.mjs +110 -0
- package/dist/chunks/api-1.1.33-2sg5ga0j.mjs +1 -0
- package/dist/chunks/asciicast-1.1.33-xr41erq2.mjs +1 -0
- package/dist/chunks/auth-1.1.33-k778a810.mjs +1 -0
- package/dist/chunks/auth-1.1.33-xappxyn1.mjs +1 -0
- package/dist/chunks/autoMode-1.1.33-wb6nwcf3.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.33-43tmanjr.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.33-py6amejh.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.33-zn01axaz.mjs +1 -0
- package/dist/chunks/branch-1.1.33-gthrar82.mjs +4 -0
- package/dist/chunks/bridge-1.1.33-9s3v1h77.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.33-183x874k.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.33-42yktg6p.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.33-62ytf81q.mjs +88 -0
- package/dist/chunks/bridgePointer-1.1.33-weh8egz5.mjs +1 -0
- package/dist/chunks/btw-1.1.33-xhjhwhex.mjs +1 -0
- package/dist/chunks/buddy-1.1.33-6e4bcghj.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.33-65t8nv3y.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.33-anfjhga9.mjs +4 -0
- package/dist/chunks/caches-1.1.33-ehvfr1c6.mjs +1 -0
- package/dist/chunks/cd-1.1.33-xbpsa40s.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.33-en5r91rv.mjs +1 -0
- package/dist/chunks/clear-1.1.33-90jr5w5d.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.33-4ts9jf6w.mjs +1 -0
- package/dist/chunks/cli-1.1.33-05291q1a.mjs +2 -0
- package/dist/chunks/cli-1.1.33-0bk8mrfh.mjs +15 -0
- package/dist/chunks/cli-1.1.33-0ktq50cd.mjs +133 -0
- package/dist/chunks/cli-1.1.33-0kvxjey5.mjs +24 -0
- package/dist/chunks/cli-1.1.33-0sckqj39.mjs +2 -0
- package/dist/chunks/cli-1.1.33-1fpzq80d.mjs +2 -0
- package/dist/chunks/cli-1.1.33-1mfasbf1.mjs +2 -0
- package/dist/chunks/cli-1.1.33-20v60hvd.mjs +203 -0
- package/dist/chunks/cli-1.1.33-20zqrzzq.mjs +2 -0
- package/dist/chunks/cli-1.1.33-22addsh7.mjs +4 -0
- package/dist/chunks/cli-1.1.33-231zj4yg.mjs +2 -0
- package/dist/chunks/cli-1.1.33-241y9eee.mjs +5 -0
- package/dist/chunks/cli-1.1.33-283f43sy.mjs +2 -0
- package/dist/chunks/cli-1.1.33-2chamq3v.mjs +2 -0
- package/dist/chunks/cli-1.1.33-2xqjkz7r.mjs +2 -0
- package/dist/chunks/cli-1.1.33-303jm377.mjs +2 -0
- package/dist/chunks/cli-1.1.33-30vd7w1w.mjs +10 -0
- package/dist/chunks/cli-1.1.33-39q98nwa.mjs +2 -0
- package/dist/chunks/cli-1.1.33-3by7vn1v.mjs +2 -0
- package/dist/chunks/cli-1.1.33-3de2dtv6.mjs +2 -0
- package/dist/chunks/cli-1.1.33-3kk4en4s.mjs +2 -0
- package/dist/chunks/cli-1.1.33-3yjvh7fr.mjs +2 -0
- package/dist/chunks/cli-1.1.33-46bkj0rz.mjs +5 -0
- package/dist/chunks/cli-1.1.33-4ghpq4rw.mjs +24 -0
- package/dist/chunks/cli-1.1.33-4t7b2799.mjs +2 -0
- package/dist/chunks/cli-1.1.33-525zf497.mjs +16 -0
- package/dist/chunks/cli-1.1.33-56fen5jd.mjs +4 -0
- package/dist/chunks/cli-1.1.33-5c19q87v.mjs +2 -0
- package/dist/chunks/cli-1.1.33-5ehc9tkd.mjs +2 -0
- package/dist/chunks/cli-1.1.33-5fc0dkzm.mjs +2 -0
- package/dist/chunks/cli-1.1.33-5ff9vmz9.mjs +3 -0
- package/dist/chunks/cli-1.1.33-5pa215hx.mjs +2 -0
- package/dist/chunks/cli-1.1.33-6fq5cn5g.mjs +17 -0
- package/dist/chunks/cli-1.1.33-726gr74y.mjs +2 -0
- package/dist/chunks/cli-1.1.33-7b2yeb1x.mjs +2 -0
- package/dist/chunks/cli-1.1.33-7qjhgket.mjs +2 -0
- package/dist/chunks/cli-1.1.33-7qr8n3qn.mjs +2 -0
- package/dist/chunks/cli-1.1.33-7rd596wq.mjs +2 -0
- package/dist/chunks/cli-1.1.33-7shybbdj.mjs +2 -0
- package/dist/chunks/cli-1.1.33-7sm3r61g.mjs +50 -0
- package/dist/chunks/cli-1.1.33-87p06j57.mjs +2 -0
- package/dist/chunks/cli-1.1.33-8dxvf995.mjs +2 -0
- package/dist/chunks/cli-1.1.33-8esj8tkg.mjs +18 -0
- package/dist/chunks/cli-1.1.33-8p3h818h.mjs +2 -0
- package/dist/chunks/cli-1.1.33-8q8sfbe6.mjs +2 -0
- package/dist/chunks/cli-1.1.33-8xyzgp13.mjs +2 -0
- package/dist/chunks/cli-1.1.33-90w26xxw.mjs +4 -0
- package/dist/chunks/cli-1.1.33-94s66kd2.mjs +2 -0
- package/dist/chunks/cli-1.1.33-9dt8xzkt.mjs +2 -0
- package/dist/chunks/cli-1.1.33-9fetbt6a.mjs +2 -0
- package/dist/chunks/cli-1.1.33-9z2gy96d.mjs +2 -0
- package/dist/chunks/cli-1.1.33-9zba2a1d.mjs +60 -0
- package/dist/chunks/cli-1.1.33-a49fwy5a.mjs +3 -0
- package/dist/chunks/cli-1.1.33-a6dvne78.mjs +2 -0
- package/dist/chunks/cli-1.1.33-ad43mr1x.mjs +2 -0
- package/dist/chunks/cli-1.1.33-ad75ezdj.mjs +2 -0
- package/dist/chunks/cli-1.1.33-afsw641c.mjs +2 -0
- package/dist/chunks/cli-1.1.33-aj5dy49h.mjs +3 -0
- package/dist/chunks/cli-1.1.33-apx2xgzn.mjs +11 -0
- package/dist/chunks/cli-1.1.33-bczwyjaq.mjs +2 -0
- package/dist/chunks/cli-1.1.33-bfx6z02g.mjs +2 -0
- package/dist/chunks/cli-1.1.33-bh8452tq.mjs +2 -0
- package/dist/chunks/cli-1.1.33-btd9w5q2.mjs +2 -0
- package/dist/chunks/cli-1.1.33-bxw3sz3d.mjs +2 -0
- package/dist/chunks/cli-1.1.33-c14msjsc.mjs +2 -0
- package/dist/chunks/cli-1.1.33-c37dxjja.mjs +2 -0
- package/dist/chunks/cli-1.1.33-c45mt1yq.mjs +2 -0
- package/dist/chunks/cli-1.1.33-c5j1t4gd.mjs +2 -0
- package/dist/chunks/cli-1.1.33-cdzhbn5g.mjs +15 -0
- package/dist/chunks/cli-1.1.33-cfj1bzen.mjs +2 -0
- package/dist/chunks/cli-1.1.33-cj2t55an.mjs +2 -0
- package/dist/chunks/cli-1.1.33-cjfrq2jz.mjs +4 -0
- package/dist/chunks/cli-1.1.33-czpahv90.mjs +25 -0
- package/dist/chunks/cli-1.1.33-czrp8ff2.mjs +2 -0
- package/dist/chunks/cli-1.1.33-d2jds1x5.mjs +4 -0
- package/dist/chunks/cli-1.1.33-d9fea5m8.mjs +2 -0
- package/dist/chunks/cli-1.1.33-das1k5jq.mjs +3 -0
- package/dist/chunks/cli-1.1.33-dd7gk6d2.mjs +5 -0
- package/dist/chunks/cli-1.1.33-df8tggjt.mjs +2 -0
- package/dist/chunks/cli-1.1.33-dfb8xrtp.mjs +2 -0
- package/dist/chunks/cli-1.1.33-dfbvd02g.mjs +3 -0
- package/dist/chunks/cli-1.1.33-dm8nxxnv.mjs +2 -0
- package/dist/chunks/cli-1.1.33-dp41gds0.mjs +2 -0
- package/dist/chunks/cli-1.1.33-dv29f6yk.mjs +2 -0
- package/dist/chunks/cli-1.1.33-e2jx0b65.mjs +2 -0
- package/dist/chunks/cli-1.1.33-e4gbaaq5.mjs +3 -0
- package/dist/chunks/cli-1.1.33-e87tvy6n.mjs +2 -0
- package/dist/chunks/cli-1.1.33-edgxaxbt.mjs +10 -0
- package/dist/chunks/cli-1.1.33-effqmrgb.mjs +2 -0
- package/dist/chunks/cli-1.1.33-evp1q65w.mjs +2 -0
- package/dist/chunks/cli-1.1.33-ezzc0e6x.mjs +2 -0
- package/dist/chunks/cli-1.1.33-f0vf76a6.mjs +26 -0
- package/dist/chunks/cli-1.1.33-f4vhy9zk.mjs +2 -0
- package/dist/chunks/cli-1.1.33-f83qf2zv.mjs +63 -0
- package/dist/chunks/cli-1.1.33-fcfv2vn6.mjs +2 -0
- package/dist/chunks/cli-1.1.33-g3wvn6f8.mjs +2 -0
- package/dist/chunks/cli-1.1.33-gbjym0yt.mjs +6 -0
- package/dist/chunks/cli-1.1.33-gfehnxj8.mjs +2 -0
- package/dist/chunks/cli-1.1.33-ggk9m978.mjs +7 -0
- package/dist/chunks/cli-1.1.33-ghcxb1ce.mjs +34 -0
- package/dist/chunks/cli-1.1.33-gnejtk17.mjs +7 -0
- package/dist/chunks/cli-1.1.33-gpp6mbxj.mjs +17 -0
- package/dist/chunks/cli-1.1.33-h0mx2ccc.mjs +2 -0
- package/dist/chunks/cli-1.1.33-h27b2an0.mjs +2 -0
- package/dist/chunks/cli-1.1.33-h75frpfe.mjs +2 -0
- package/dist/chunks/cli-1.1.33-heys42qe.mjs +9 -0
- package/dist/chunks/cli-1.1.33-hfkfz9g9.mjs +2 -0
- package/dist/chunks/cli-1.1.33-hwmqqtqr.mjs +45 -0
- package/dist/chunks/cli-1.1.33-j5q2mpwf.mjs +2 -0
- package/dist/chunks/cli-1.1.33-j6ep4mfm.mjs +6 -0
- package/dist/chunks/cli-1.1.33-j75f13gr.mjs +2 -0
- package/dist/chunks/cli-1.1.33-j8ajj3nv.mjs +2 -0
- package/dist/chunks/cli-1.1.33-jdtfdqvz.mjs +2 -0
- package/dist/chunks/cli-1.1.33-jp2qs3mr.mjs +2 -0
- package/dist/chunks/cli-1.1.33-jsyd53zn.mjs +2 -0
- package/dist/chunks/cli-1.1.33-jww2z5yy.mjs +2 -0
- package/dist/chunks/cli-1.1.33-k1vhqgx4.mjs +2 -0
- package/dist/chunks/cli-1.1.33-k466m68a.mjs +2 -0
- package/dist/chunks/cli-1.1.33-k51bffb8.mjs +2 -0
- package/dist/chunks/cli-1.1.33-kdbb1eq4.mjs +2 -0
- package/dist/chunks/cli-1.1.33-kg221c89.mjs +2 -0
- package/dist/chunks/cli-1.1.33-kqsskxv0.mjs +133 -0
- package/dist/chunks/cli-1.1.33-kth7ttsa.mjs +4 -0
- package/dist/chunks/cli-1.1.33-kty1kjfd.mjs +2 -0
- package/dist/chunks/cli-1.1.33-kx980gfw.mjs +2 -0
- package/dist/chunks/cli-1.1.33-kxjb58yw.mjs +2 -0
- package/dist/chunks/cli-1.1.33-m06xge1a.mjs +2 -0
- package/dist/chunks/cli-1.1.33-m08stm17.mjs +2 -0
- package/dist/chunks/cli-1.1.33-m402nk5n.mjs +2 -0
- package/dist/chunks/cli-1.1.33-mg60nkfe.mjs +2 -0
- package/dist/chunks/cli-1.1.33-mgmqjt4t.mjs +2 -0
- package/dist/chunks/cli-1.1.33-mhph00kg.mjs +24 -0
- package/dist/chunks/cli-1.1.33-mkzxq2c9.mjs +2 -0
- package/dist/chunks/cli-1.1.33-mm3hdty7.mjs +2 -0
- package/dist/chunks/cli-1.1.33-n2d1txyn.mjs +4 -0
- package/dist/chunks/cli-1.1.33-n55k105y.mjs +2 -0
- package/dist/chunks/cli-1.1.33-n7rpkhs4.mjs +2 -0
- package/dist/chunks/cli-1.1.33-nd6tv1an.mjs +15 -0
- package/dist/chunks/cli-1.1.33-ndste4rf.mjs +39 -0
- package/dist/chunks/cli-1.1.33-nq2hxcp4.mjs +9 -0
- package/dist/chunks/cli-1.1.33-nvfshp5c.mjs +6 -0
- package/dist/chunks/cli-1.1.33-p0fb1k1s.mjs +7 -0
- package/dist/chunks/cli-1.1.33-pcsrkgrn.mjs +8 -0
- package/dist/chunks/cli-1.1.33-pw7bmns5.mjs +42 -0
- package/dist/chunks/cli-1.1.33-q8hq263y.mjs +2 -0
- package/dist/chunks/cli-1.1.33-qr675sx2.mjs +2 -0
- package/dist/chunks/cli-1.1.33-qss1gs3e.mjs +2 -0
- package/dist/chunks/cli-1.1.33-ra054vbq.mjs +2 -0
- package/dist/chunks/cli-1.1.33-raynjbkq.mjs +2 -0
- package/dist/chunks/cli-1.1.33-rr2q4wq6.mjs +2 -0
- package/dist/chunks/cli-1.1.33-rr5sxpa0.mjs +2 -0
- package/dist/chunks/cli-1.1.33-rrhe6g9q.mjs +2 -0
- package/dist/chunks/cli-1.1.33-rrvgm0jd.mjs +2 -0
- package/dist/chunks/cli-1.1.33-rtme70ck.mjs +2 -0
- package/dist/chunks/cli-1.1.33-rv2bkx6b.mjs +2 -0
- package/dist/chunks/cli-1.1.33-rxe1dmbg.mjs +2 -0
- package/dist/chunks/cli-1.1.33-s5kw6064.mjs +3 -0
- package/dist/chunks/cli-1.1.33-sbgh2rsy.mjs +2 -0
- package/dist/chunks/cli-1.1.33-sf95jk5d.mjs +2 -0
- package/dist/chunks/cli-1.1.33-sv5dwqh6.mjs +3 -0
- package/dist/chunks/cli-1.1.33-t0fg1hsr.mjs +2 -0
- package/dist/chunks/cli-1.1.33-t10xrxez.mjs +2 -0
- package/dist/chunks/cli-1.1.33-t26pazs8.mjs +2 -0
- package/dist/chunks/cli-1.1.33-t591k29k.mjs +21 -0
- package/dist/chunks/cli-1.1.33-t63yat1z.mjs +2 -0
- package/dist/chunks/cli-1.1.33-t78313g4.mjs +3 -0
- package/dist/chunks/cli-1.1.33-t8cxmf0c.mjs +12 -0
- package/dist/chunks/cli-1.1.33-tp6bhara.mjs +4 -0
- package/dist/chunks/cli-1.1.33-ts50d9at.mjs +2 -0
- package/dist/chunks/cli-1.1.33-ttc7emph.mjs +25 -0
- package/dist/chunks/cli-1.1.33-ty6y9kn2.mjs +2 -0
- package/dist/chunks/cli-1.1.33-v08vb0sv.mjs +6 -0
- package/dist/chunks/cli-1.1.33-v615gn7w.mjs +3 -0
- package/dist/chunks/cli-1.1.33-vgynvhys.mjs +5491 -0
- package/dist/chunks/cli-1.1.33-vr8cqqar.mjs +2 -0
- package/dist/chunks/cli-1.1.33-wfjtjsvq.mjs +6 -0
- package/dist/chunks/cli-1.1.33-wrdskpzf.mjs +2 -0
- package/dist/chunks/cli-1.1.33-wx8rtpc5.mjs +2 -0
- package/dist/chunks/cli-1.1.33-x6zgk4kb.mjs +2 -0
- package/dist/chunks/cli-1.1.33-xdqetcyr.mjs +2 -0
- package/dist/chunks/cli-1.1.33-xfawy00r.mjs +2 -0
- package/dist/chunks/cli-1.1.33-xt2ehzej.mjs +2 -0
- package/dist/chunks/cli-1.1.33-xyh0vcv7.mjs +2 -0
- package/dist/chunks/cli-1.1.33-yd2b6czv.mjs +2 -0
- package/dist/chunks/cli-1.1.33-yd4xhx6x.mjs +20 -0
- package/dist/chunks/cli-1.1.33-ypfa1t3b.mjs +2 -0
- package/dist/chunks/cli-1.1.33-yqqr1e67.mjs +2 -0
- package/dist/chunks/cli-1.1.33-yqxphe1x.mjs +2 -0
- package/dist/chunks/cli-1.1.33-yy53bmhe.mjs +2 -0
- package/dist/chunks/cli-1.1.33-yygdy86h.mjs +2 -0
- package/dist/chunks/cli-1.1.33-z5rv4tr3.mjs +3 -0
- package/dist/chunks/cli-1.1.33-z7fa1fgt.mjs +2 -0
- package/dist/chunks/cli-1.1.33-zqqj4d1f.mjs +2 -0
- package/dist/chunks/cli-1.1.33-zsk851wd.mjs +2 -0
- package/dist/chunks/client-1.1.33-qhf9zz8n.mjs +1 -0
- package/dist/chunks/color-1.1.33-q69y353w.mjs +1 -0
- package/dist/chunks/compact-1.1.33-5vxewt1w.mjs +2 -0
- package/dist/chunks/config-1.1.33-h6tzt18x.mjs +1 -0
- package/dist/chunks/config-1.1.33-m6rgj5rq.mjs +1 -0
- package/dist/chunks/constants-1.1.33-myvdtn6q.mjs +1 -0
- package/dist/chunks/context-1.1.33-pm79kmgf.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.33-6pd4by4q.mjs +1 -0
- package/dist/chunks/conversation-1.1.33-acjggjj2.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.33-s1k9b90v.mjs +1 -0
- package/dist/chunks/copy-1.1.33-yynkyja4.mjs +9 -0
- package/dist/chunks/cost-1.1.33-sjebbq22.mjs +1 -0
- package/dist/chunks/createSession-1.1.33-cw4pppsw.mjs +1 -0
- package/dist/chunks/debug-1.1.33-h1ep6bea.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.33-t1wa4x2g.mjs +1480 -0
- package/dist/chunks/desktop-1.1.33-cgj2ar5t.mjs +2 -0
- package/dist/chunks/detectRepository-1.1.33-5yfd53ae.mjs +1 -0
- package/dist/chunks/detection-1.1.33-dnyn9hs6.mjs +1 -0
- package/dist/chunks/diff-1.1.33-nf6wy43p.mjs +1 -0
- package/dist/chunks/doctor-1.1.33-58atgaxs.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.33-v3ht88pf.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.33-qff3qk4b.mjs +1 -0
- package/dist/chunks/effort-1.1.33-nf63b81y.mjs +13 -0
- package/dist/chunks/engine-1.1.33-bqcqevb5.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.1.33-1bfctzjp.mjs +1 -0
- package/dist/chunks/envUtils-1.1.33-1jg5pqx5.mjs +1 -0
- package/dist/chunks/errors-1.1.33-xdf8frps.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.33-br81c33d.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.33-mmyfbtpt.mjs +1 -0
- package/dist/chunks/exit-1.1.33-s8c549bt.mjs +1 -0
- package/dist/chunks/explorer-1.1.33-q2kc2yjm.mjs +1 -0
- package/dist/chunks/export-1.1.33-wzsrmyr9.mjs +2 -0
- package/dist/chunks/fast-1.1.33-hh2t95cz.mjs +1 -0
- package/dist/chunks/feedback-1.1.33-fhamzkxx.mjs +16 -0
- package/dist/chunks/git-1.1.33-nb9mf6gs.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.33-zzecd9we.mjs +1 -0
- package/dist/chunks/goal-1.1.33-6ptfsbeb.mjs +4 -0
- package/dist/chunks/headless-1.1.33-2ks3qpn2.mjs +2 -0
- package/dist/chunks/heapdump-1.1.33-48a71a5d.mjs +6 -0
- package/dist/chunks/help-1.1.33-65k2zqsp.mjs +1 -0
- package/dist/chunks/hooks-1.1.33-7zb4rp07.mjs +1 -0
- package/dist/chunks/hooks-1.1.33-87w55gzt.mjs +79 -0
- package/dist/chunks/ide-1.1.33-jpbj91cb.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.33-cb605b4s.mjs +1 -0
- package/dist/chunks/import-1.1.33-9vq41kwx.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.33-pshb9f55.mjs +1 -0
- package/dist/chunks/index-1.1.33-0szd959f.mjs +9 -0
- package/dist/chunks/index-1.1.33-1cyg72cg.mjs +5 -0
- package/dist/chunks/index-1.1.33-20n0wyay.mjs +2 -0
- package/dist/chunks/index-1.1.33-37m0wr5f.mjs +1 -0
- package/dist/chunks/index-1.1.33-4e6weswv.mjs +2 -0
- package/dist/chunks/index-1.1.33-5at6jw86.mjs +9 -0
- package/dist/chunks/index-1.1.33-5bb2bqbt.mjs +1 -0
- package/dist/chunks/index-1.1.33-6r4xb4kw.mjs +1 -0
- package/dist/chunks/index-1.1.33-809kmg0e.mjs +1 -0
- package/dist/chunks/index-1.1.33-av56945n.mjs +1 -0
- package/dist/chunks/index-1.1.33-ayj1khn3.mjs +1 -0
- package/dist/chunks/index-1.1.33-d4h14a2g.mjs +1 -0
- package/dist/chunks/index-1.1.33-j01a41jn.mjs +1 -0
- package/dist/chunks/index-1.1.33-j3pffnmd.mjs +30 -0
- package/dist/chunks/index-1.1.33-nbb1jr6q.mjs +23 -0
- package/dist/chunks/index-1.1.33-pdret8nd.mjs +1 -0
- package/dist/chunks/index-1.1.33-px65xz19.mjs +1 -0
- package/dist/chunks/index-1.1.33-q02fr1yn.mjs +1 -0
- package/dist/chunks/index-1.1.33-qckmwfjb.mjs +1 -0
- package/dist/chunks/index-1.1.33-sj1fgs0b.mjs +1 -0
- package/dist/chunks/index-1.1.33-thfe8yxq.mjs +1 -0
- package/dist/chunks/index-1.1.33-vpdejaqk.mjs +1 -0
- package/dist/chunks/index-1.1.33-x6vn8g63.mjs +1 -0
- package/dist/chunks/init-1.1.33-8jzeqmrh.mjs +2 -0
- package/dist/chunks/initReplBridge-1.1.33-xhzad71d.mjs +1 -0
- package/dist/chunks/ink-1.1.33-8xkyvv5c.mjs +1 -0
- package/dist/chunks/insights-1.1.33-p2xfqqpr.mjs +870 -0
- package/dist/chunks/install-1.1.33-yddevjtj.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.33-3wksmje2.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.33-mgb365bd.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.33-ac7wkzh0.mjs +1 -0
- package/dist/chunks/keybindings-1.1.33-pwx8bd0q.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.1.33-fqw2q9w0.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.33-y4yydpcn.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.33-3rxrvf8b.mjs +1 -0
- package/dist/chunks/log-1.1.33-pqjf8wsv.mjs +1 -0
- package/dist/chunks/main-1.1.33-qvas86jh.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.33-67fc5dj7.mjs +1 -0
- package/dist/chunks/mcp-1.1.33-88w7d35a.mjs +1 -0
- package/dist/chunks/mcp-1.1.33-ewqaq0ms.mjs +4 -0
- package/dist/chunks/mcp-1.1.33-v74knj3c.mjs +17 -0
- package/dist/chunks/mcpb-1.1.33-dnjbpy7e.mjs +1 -0
- package/dist/chunks/memory-1.1.33-9qffk96q.mjs +128 -0
- package/dist/chunks/model-1.1.33-h0mjh5z8.mjs +1 -0
- package/dist/chunks/model-1.1.33-v4vqzg9w.mjs +2 -0
- package/dist/chunks/node-1.1.33-jm7rqpq8.mjs +1 -0
- package/dist/chunks/node-1.1.33-qg258pyx.mjs +15 -0
- package/dist/chunks/oauth-1.1.33-423q5vp6.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.33-dsp1wwgs.mjs +14 -0
- package/dist/chunks/output-style-1.1.33-ayj4863v.mjs +1 -0
- package/dist/chunks/package-F6O7J2XI-1.1.33-cwk2kcw8.mjs +1 -0
- package/dist/chunks/permissions-1.1.33-mtca1vka.mjs +1 -0
- package/dist/chunks/permissions-1.1.33-qk86j364.mjs +3 -0
- package/dist/chunks/plan-1.1.33-brttkasm.mjs +1 -0
- package/dist/chunks/plist-1.1.33-j08fwnf5.mjs +1 -0
- package/dist/chunks/plugin-1.1.33-ed5352d9.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.33-w1dcdv7e.mjs +1 -0
- package/dist/chunks/plugins-1.1.33-dz0szv60.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.33-cyss3q48.mjs +2 -0
- package/dist/chunks/print-1.1.33-0an9v6wm.mjs +57 -0
- package/dist/chunks/process-1.1.33-34nr1vvf.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.33-c3baefbs.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.33-7z1q5tgw.mjs +9 -0
- package/dist/chunks/prompt-1.1.33-a9nfj0nx.mjs +1 -0
- package/dist/chunks/prompt-1.1.33-t1x27qfd.mjs +1 -0
- package/dist/chunks/prompts-1.1.33-n8cpfrn6.mjs +1 -0
- package/dist/chunks/provider-1.1.33-s17k8dew.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.33-nabanrxj.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.33-45rfx8mk.mjs +6 -0
- package/dist/chunks/registerSubcommands-1.1.33-drbt7d0n.mjs +26 -0
- package/dist/chunks/registry-1.1.33-2rc0g3js.mjs +1 -0
- package/dist/chunks/release-notes-1.1.33-azfdj96s.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.33-22m52m4k.mjs +2 -0
- package/dist/chunks/remote-env-1.1.33-2zxh4gns.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.1.33-tvhbeebf.mjs +1 -0
- package/dist/chunks/rename-1.1.33-hh0a7vzm.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.33-17gj37pg.mjs +1 -0
- package/dist/chunks/resume-1.1.33-cxjpjtfg.mjs +2 -0
- package/dist/chunks/rewind-1.1.33-gwyc73ty.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.33-t9mmhhea.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.33-9e4hd973.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.33-ydzap1ky.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.33-vch1t63t.mjs +1 -0
- package/dist/chunks/session-1.1.33-aepc1jdx.mjs +2 -0
- package/dist/chunks/sessionStorage-1.1.33-170gteyg.mjs +1 -0
- package/dist/chunks/settings-1.1.33-16470dd7.mjs +1 -0
- package/dist/chunks/setup-1.1.33-nbfqv6x2.mjs +12 -0
- package/dist/chunks/sinks-1.1.33-8qav4btz.mjs +1 -0
- package/dist/chunks/skills-1.1.33-srydghps.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.33-a97fyetk.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.33-n5x93kr9.mjs +1 -0
- package/dist/chunks/state-1.1.33-yr57kw5b.mjs +1 -0
- package/dist/chunks/stats-1.1.33-py9web9f.mjs +1 -0
- package/dist/chunks/status-1.1.33-rstx4c0p.mjs +1 -0
- package/dist/chunks/stickers-1.1.33-bag4g2g6.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.33-k219nhcm.mjs +1 -0
- package/dist/chunks/tasks-1.1.33-170ayzks.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.33-d0etezah.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.33-wwj36vt2.mjs +1 -0
- package/dist/chunks/teleport-1.1.33-zvzb36mc.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.33-6btb4bdr.mjs +1 -0
- package/dist/chunks/theme-1.1.33-ht9yrvwn.mjs +1 -0
- package/dist/chunks/thinkback-1.1.33-kvaqf5ep.mjs +1 -0
- package/dist/chunks/thinkback-play-1.1.33-dfqez4t9.mjs +1 -0
- package/dist/chunks/toolPool-1.1.33-fsqgv07g.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.33-g3ha7h5f.mjs +1 -0
- package/dist/chunks/tools-1.1.33-6qn3rfzr.mjs +1 -0
- package/dist/chunks/trustedDevice-1.1.33-f5feh965.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.33-km66apwr.mjs +69 -0
- package/dist/chunks/types-1.1.33-bc49bs3y.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.1.33-byqccwrh.mjs +4 -0
- package/dist/chunks/update-1.1.33-hz986n0w.mjs +72 -0
- package/dist/chunks/upload-1.1.33-cc27f6xm.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.33-k5haaaqa.mjs +14 -0
- package/dist/chunks/usage-1.1.33-jspq6593.mjs +1 -0
- package/dist/chunks/util-1.1.33-8w7wsk2x.mjs +1 -0
- package/dist/chunks/utils-1.1.33-613tmzqb.mjs +1 -0
- package/dist/chunks/vim-1.1.33-gamhf412.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.33-w4q3ncxj.mjs +13 -0
- package/dist/chunks/wiki-1.1.33-qgzy0eh8.mjs +132 -0
- package/dist/chunks/workflows-1.1.33-82kzthpb.mjs +1 -0
- package/dist/chunks/worktree-1.1.33-7n8nkfht.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.33-qq22bj1e.mjs +1 -0
- package/dist/chunks/wrapper-1.1.33-qgpy796k.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/App-1.1.32-x0g3m6v6.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.32-8x1yxm2f.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.32-scm9btv0.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.32-wtcy84rn.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.32-y88y88zt.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.32-kzv0tbna.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.32-4cm0cwer.mjs +0 -6
- package/dist/chunks/Doctor-1.1.32-289yb4jj.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.32-5gjqvpvs.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.32-a8pwddd1.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.32-6qdrtdpr.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.32-hwzxtdsd.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.32-yytrpays.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.32-c5yyxz32.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.32-7q71086g.mjs +0 -1
- package/dist/chunks/REPL-1.1.32-yzppvfrk.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.32-rv15raev.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.32-n3bsegx5.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.32-68xgndte.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.32-zb4vkx03.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.32-q3c5nqks.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.32-3whrqawk.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.32-33mkg42t.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.32-9brew90d.mjs +0 -1
- package/dist/chunks/add-dir-1.1.32-8hkh1hcx.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.32-ph49ernt.mjs +0 -1
- package/dist/chunks/agents-1.1.32-6ajrxrdr.mjs +0 -110
- package/dist/chunks/agents-1.1.32-6gc09pk2.mjs +0 -3
- package/dist/chunks/api-1.1.32-8qx9q5eh.mjs +0 -1
- package/dist/chunks/asciicast-1.1.32-4knajfec.mjs +0 -1
- package/dist/chunks/auth-1.1.32-9xrd6x89.mjs +0 -1
- package/dist/chunks/auth-1.1.32-s83fshpf.mjs +0 -1
- package/dist/chunks/autoMode-1.1.32-e680w683.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.32-7m1d4dy7.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.32-hhg3dezv.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.32-8ddhae4q.mjs +0 -1
- package/dist/chunks/branch-1.1.32-xaq3pb3p.mjs +0 -4
- package/dist/chunks/bridge-1.1.32-ec6fc8kh.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.32-bse7ynz2.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.32-84ntyqxd.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.32-d20ebbde.mjs +0 -88
- package/dist/chunks/bridgePointer-1.1.32-40jwkts4.mjs +0 -1
- package/dist/chunks/btw-1.1.32-kg0w3tw2.mjs +0 -1
- package/dist/chunks/buddy-1.1.32-c53wp8x4.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.32-a9jc0rn9.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.32-bh9jpngp.mjs +0 -4
- package/dist/chunks/caches-1.1.32-va3h1efn.mjs +0 -1
- package/dist/chunks/cd-1.1.32-yar6t6sg.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.32-xjcschxc.mjs +0 -1
- package/dist/chunks/claudemd-1.1.32-kb9tec8y.mjs +0 -1
- package/dist/chunks/clear-1.1.32-ywfd1kha.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.32-x7tbxm3w.mjs +0 -1
- package/dist/chunks/cli-1.1.32-06xv4rmw.mjs +0 -2
- package/dist/chunks/cli-1.1.32-0pmhmsew.mjs +0 -42
- package/dist/chunks/cli-1.1.32-1913x5jp.mjs +0 -15
- package/dist/chunks/cli-1.1.32-1c9z2mtv.mjs +0 -2
- package/dist/chunks/cli-1.1.32-1cp8vbtp.mjs +0 -9
- package/dist/chunks/cli-1.1.32-1rackf2c.mjs +0 -4
- package/dist/chunks/cli-1.1.32-1rprka6j.mjs +0 -2
- package/dist/chunks/cli-1.1.32-1t75hwdn.mjs +0 -2
- package/dist/chunks/cli-1.1.32-1yrmnphh.mjs +0 -2
- package/dist/chunks/cli-1.1.32-260jjrwt.mjs +0 -6
- package/dist/chunks/cli-1.1.32-26474ywa.mjs +0 -2
- package/dist/chunks/cli-1.1.32-28vx0a5m.mjs +0 -2
- package/dist/chunks/cli-1.1.32-28x0bz68.mjs +0 -2
- package/dist/chunks/cli-1.1.32-2k074m5f.mjs +0 -2
- package/dist/chunks/cli-1.1.32-2kd689v0.mjs +0 -2
- package/dist/chunks/cli-1.1.32-2m68a9w2.mjs +0 -2
- package/dist/chunks/cli-1.1.32-2tyhwqjh.mjs +0 -10
- package/dist/chunks/cli-1.1.32-2wcdy0zp.mjs +0 -17
- package/dist/chunks/cli-1.1.32-2x7x44mg.mjs +0 -2
- package/dist/chunks/cli-1.1.32-336t9pmv.mjs +0 -2
- package/dist/chunks/cli-1.1.32-33jnyekk.mjs +0 -2
- package/dist/chunks/cli-1.1.32-36t0985q.mjs +0 -21
- package/dist/chunks/cli-1.1.32-3gbh5q5w.mjs +0 -2
- package/dist/chunks/cli-1.1.32-3z4a0eqz.mjs +0 -3
- package/dist/chunks/cli-1.1.32-41xx49ta.mjs +0 -2
- package/dist/chunks/cli-1.1.32-46wadmxk.mjs +0 -2
- package/dist/chunks/cli-1.1.32-49sdmvtj.mjs +0 -25
- package/dist/chunks/cli-1.1.32-4ekmdczr.mjs +0 -25
- package/dist/chunks/cli-1.1.32-4ft4m446.mjs +0 -2
- package/dist/chunks/cli-1.1.32-4rsr6phf.mjs +0 -2
- package/dist/chunks/cli-1.1.32-4vdyqkkd.mjs +0 -2
- package/dist/chunks/cli-1.1.32-4yat84kg.mjs +0 -2
- package/dist/chunks/cli-1.1.32-5a158c45.mjs +0 -2
- package/dist/chunks/cli-1.1.32-5c5dcwk6.mjs +0 -2
- package/dist/chunks/cli-1.1.32-5cngr1kn.mjs +0 -2
- package/dist/chunks/cli-1.1.32-5dq711bj.mjs +0 -2
- package/dist/chunks/cli-1.1.32-5j5n166h.mjs +0 -2
- package/dist/chunks/cli-1.1.32-5qjjtpkh.mjs +0 -133
- package/dist/chunks/cli-1.1.32-5qwps3ts.mjs +0 -2
- package/dist/chunks/cli-1.1.32-5v0afeqw.mjs +0 -2
- package/dist/chunks/cli-1.1.32-5xmh2b7j.mjs +0 -2
- package/dist/chunks/cli-1.1.32-60pc6r2s.mjs +0 -2
- package/dist/chunks/cli-1.1.32-6317frxz.mjs +0 -2
- package/dist/chunks/cli-1.1.32-65c5zdmx.mjs +0 -2
- package/dist/chunks/cli-1.1.32-6f9r9qcb.mjs +0 -2
- package/dist/chunks/cli-1.1.32-6jbgafh2.mjs +0 -2
- package/dist/chunks/cli-1.1.32-6jhkp60n.mjs +0 -2
- package/dist/chunks/cli-1.1.32-6jxftegx.mjs +0 -6
- package/dist/chunks/cli-1.1.32-7566j53x.mjs +0 -2
- package/dist/chunks/cli-1.1.32-76wfpwbd.mjs +0 -2
- package/dist/chunks/cli-1.1.32-7zp3b6gq.mjs +0 -2
- package/dist/chunks/cli-1.1.32-8b5ej63w.mjs +0 -2
- package/dist/chunks/cli-1.1.32-8hsb6vgz.mjs +0 -2
- package/dist/chunks/cli-1.1.32-8jkgzjh4.mjs +0 -5
- package/dist/chunks/cli-1.1.32-8t8t42xx.mjs +0 -2
- package/dist/chunks/cli-1.1.32-8yc37yqa.mjs +0 -34
- package/dist/chunks/cli-1.1.32-97e0qadj.mjs +0 -2
- package/dist/chunks/cli-1.1.32-9c0an85r.mjs +0 -2
- package/dist/chunks/cli-1.1.32-9fe7efg9.mjs +0 -2
- package/dist/chunks/cli-1.1.32-9jxkev29.mjs +0 -2
- package/dist/chunks/cli-1.1.32-9wsnkggz.mjs +0 -11
- package/dist/chunks/cli-1.1.32-9yka8m9x.mjs +0 -5490
- package/dist/chunks/cli-1.1.32-a3dfp7ps.mjs +0 -12
- package/dist/chunks/cli-1.1.32-acgh1gj8.mjs +0 -2
- package/dist/chunks/cli-1.1.32-ajhvj43e.mjs +0 -2
- package/dist/chunks/cli-1.1.32-aqfcrtfz.mjs +0 -5
- package/dist/chunks/cli-1.1.32-aysp26sz.mjs +0 -45
- package/dist/chunks/cli-1.1.32-b1bbb8eb.mjs +0 -7
- package/dist/chunks/cli-1.1.32-b3hsysf6.mjs +0 -2
- package/dist/chunks/cli-1.1.32-b4dgaz0a.mjs +0 -2
- package/dist/chunks/cli-1.1.32-bce46tmm.mjs +0 -2
- package/dist/chunks/cli-1.1.32-bnam9df8.mjs +0 -2
- package/dist/chunks/cli-1.1.32-bt4yfsm7.mjs +0 -2
- package/dist/chunks/cli-1.1.32-c4v8081j.mjs +0 -2
- package/dist/chunks/cli-1.1.32-c6n1kre3.mjs +0 -2
- package/dist/chunks/cli-1.1.32-c7ypbb63.mjs +0 -2
- package/dist/chunks/cli-1.1.32-cpzgn83z.mjs +0 -2
- package/dist/chunks/cli-1.1.32-cx7ygksc.mjs +0 -2
- package/dist/chunks/cli-1.1.32-czrfbd3q.mjs +0 -2
- package/dist/chunks/cli-1.1.32-d47cvy98.mjs +0 -2
- package/dist/chunks/cli-1.1.32-dkyyv5mx.mjs +0 -2
- package/dist/chunks/cli-1.1.32-dp2kpscr.mjs +0 -2
- package/dist/chunks/cli-1.1.32-dtd3vpkv.mjs +0 -2
- package/dist/chunks/cli-1.1.32-e1btgk5y.mjs +0 -4
- package/dist/chunks/cli-1.1.32-e96q5k17.mjs +0 -2
- package/dist/chunks/cli-1.1.32-ebg7m8yz.mjs +0 -2
- package/dist/chunks/cli-1.1.32-ehg64cg0.mjs +0 -2
- package/dist/chunks/cli-1.1.32-erw03mnm.mjs +0 -2
- package/dist/chunks/cli-1.1.32-f3895pf8.mjs +0 -2
- package/dist/chunks/cli-1.1.32-fhzs65yw.mjs +0 -2
- package/dist/chunks/cli-1.1.32-fjz81t0j.mjs +0 -2
- package/dist/chunks/cli-1.1.32-fr30sgy9.mjs +0 -2
- package/dist/chunks/cli-1.1.32-fzepmkcj.mjs +0 -2
- package/dist/chunks/cli-1.1.32-g5dzf2w1.mjs +0 -24
- package/dist/chunks/cli-1.1.32-gg7yn5bt.mjs +0 -8
- package/dist/chunks/cli-1.1.32-gpq33yz0.mjs +0 -2
- package/dist/chunks/cli-1.1.32-gqbeasga.mjs +0 -2
- package/dist/chunks/cli-1.1.32-gvv8h6dg.mjs +0 -18
- package/dist/chunks/cli-1.1.32-gwf0a8ej.mjs +0 -2
- package/dist/chunks/cli-1.1.32-h23ch6fy.mjs +0 -2
- package/dist/chunks/cli-1.1.32-h4tpddgz.mjs +0 -4
- package/dist/chunks/cli-1.1.32-h7cb9f8y.mjs +0 -2
- package/dist/chunks/cli-1.1.32-hbwke9cs.mjs +0 -2
- package/dist/chunks/cli-1.1.32-hgjgfp8p.mjs +0 -60
- package/dist/chunks/cli-1.1.32-hhd65der.mjs +0 -2
- package/dist/chunks/cli-1.1.32-hzn2mba8.mjs +0 -3
- package/dist/chunks/cli-1.1.32-j31v1t7y.mjs +0 -15
- package/dist/chunks/cli-1.1.32-jatnsd1n.mjs +0 -2
- package/dist/chunks/cli-1.1.32-jjanec91.mjs +0 -2
- package/dist/chunks/cli-1.1.32-jnrsn4v0.mjs +0 -2
- package/dist/chunks/cli-1.1.32-jqhfcb0t.mjs +0 -2
- package/dist/chunks/cli-1.1.32-jt6w5mqv.mjs +0 -2
- package/dist/chunks/cli-1.1.32-k5d30qej.mjs +0 -3
- package/dist/chunks/cli-1.1.32-k9zkw4st.mjs +0 -2
- package/dist/chunks/cli-1.1.32-kn0zs89y.mjs +0 -63
- package/dist/chunks/cli-1.1.32-kqkbjp3x.mjs +0 -4
- package/dist/chunks/cli-1.1.32-m7dxkbpn.mjs +0 -2
- package/dist/chunks/cli-1.1.32-m9c0pceb.mjs +0 -3
- package/dist/chunks/cli-1.1.32-m9p4pd60.mjs +0 -2
- package/dist/chunks/cli-1.1.32-merqy9t2.mjs +0 -2
- package/dist/chunks/cli-1.1.32-mrftpsrs.mjs +0 -15
- package/dist/chunks/cli-1.1.32-n3smn7a4.mjs +0 -2
- package/dist/chunks/cli-1.1.32-n6rpvpf2.mjs +0 -2
- package/dist/chunks/cli-1.1.32-n7cyeje8.mjs +0 -2
- package/dist/chunks/cli-1.1.32-n9vdkdfk.mjs +0 -2
- package/dist/chunks/cli-1.1.32-nmcy47z7.mjs +0 -4
- package/dist/chunks/cli-1.1.32-nt9eqa35.mjs +0 -2
- package/dist/chunks/cli-1.1.32-p70gsyp3.mjs +0 -2
- package/dist/chunks/cli-1.1.32-pe6kmf9g.mjs +0 -3
- package/dist/chunks/cli-1.1.32-pfhbrjhs.mjs +0 -20
- package/dist/chunks/cli-1.1.32-pfwbgg79.mjs +0 -2
- package/dist/chunks/cli-1.1.32-pm7ctgdf.mjs +0 -7
- package/dist/chunks/cli-1.1.32-pve0ffcp.mjs +0 -203
- package/dist/chunks/cli-1.1.32-pwvfjtva.mjs +0 -2
- package/dist/chunks/cli-1.1.32-px6268dx.mjs +0 -2
- package/dist/chunks/cli-1.1.32-px93hhj4.mjs +0 -3
- package/dist/chunks/cli-1.1.32-qmgvm9rq.mjs +0 -2
- package/dist/chunks/cli-1.1.32-qvx7w9wm.mjs +0 -2
- package/dist/chunks/cli-1.1.32-qzjfn21e.mjs +0 -3
- package/dist/chunks/cli-1.1.32-r5ww85n4.mjs +0 -6
- package/dist/chunks/cli-1.1.32-r6g8b118.mjs +0 -5
- package/dist/chunks/cli-1.1.32-r7020tw8.mjs +0 -4
- package/dist/chunks/cli-1.1.32-rbvnjjkt.mjs +0 -2
- package/dist/chunks/cli-1.1.32-rmz4ezae.mjs +0 -3
- package/dist/chunks/cli-1.1.32-rswqkymv.mjs +0 -133
- package/dist/chunks/cli-1.1.32-s2kkv51h.mjs +0 -2
- package/dist/chunks/cli-1.1.32-s4betse1.mjs +0 -2
- package/dist/chunks/cli-1.1.32-sqsxnqqb.mjs +0 -2
- package/dist/chunks/cli-1.1.32-t1n0b84g.mjs +0 -2
- package/dist/chunks/cli-1.1.32-tgr1e1hd.mjs +0 -2
- package/dist/chunks/cli-1.1.32-th2r4378.mjs +0 -9
- package/dist/chunks/cli-1.1.32-thsw9p6n.mjs +0 -2
- package/dist/chunks/cli-1.1.32-tp4tyjy3.mjs +0 -2
- package/dist/chunks/cli-1.1.32-tq108hv4.mjs +0 -2
- package/dist/chunks/cli-1.1.32-tzn98f6r.mjs +0 -24
- package/dist/chunks/cli-1.1.32-v3cks7qj.mjs +0 -6
- package/dist/chunks/cli-1.1.32-v4chz2b0.mjs +0 -2
- package/dist/chunks/cli-1.1.32-vdezbpdh.mjs +0 -2
- package/dist/chunks/cli-1.1.32-vf3r8a91.mjs +0 -16
- package/dist/chunks/cli-1.1.32-vmr6f229.mjs +0 -2
- package/dist/chunks/cli-1.1.32-vnhzy4jx.mjs +0 -2
- package/dist/chunks/cli-1.1.32-vtzwmjs8.mjs +0 -3
- package/dist/chunks/cli-1.1.32-vy2ngm3p.mjs +0 -2
- package/dist/chunks/cli-1.1.32-w2b0neg3.mjs +0 -4
- package/dist/chunks/cli-1.1.32-wnhqapmf.mjs +0 -24
- package/dist/chunks/cli-1.1.32-wsqyehdw.mjs +0 -2
- package/dist/chunks/cli-1.1.32-wyv15h7a.mjs +0 -6
- package/dist/chunks/cli-1.1.32-x0crp5g9.mjs +0 -2
- package/dist/chunks/cli-1.1.32-x23z7923.mjs +0 -2
- package/dist/chunks/cli-1.1.32-x8j1spnv.mjs +0 -2
- package/dist/chunks/cli-1.1.32-xfhe1m2y.mjs +0 -2
- package/dist/chunks/cli-1.1.32-xj2e8mzf.mjs +0 -2
- package/dist/chunks/cli-1.1.32-xy1pvy12.mjs +0 -2
- package/dist/chunks/cli-1.1.32-y4agg2c2.mjs +0 -17
- package/dist/chunks/cli-1.1.32-ycyg88ky.mjs +0 -2
- package/dist/chunks/cli-1.1.32-ydbtpc9v.mjs +0 -12
- package/dist/chunks/cli-1.1.32-yfs9ppge.mjs +0 -2
- package/dist/chunks/cli-1.1.32-yhftam6y.mjs +0 -50
- package/dist/chunks/cli-1.1.32-yhzhm57s.mjs +0 -2
- package/dist/chunks/cli-1.1.32-yq68bsa5.mjs +0 -2
- package/dist/chunks/cli-1.1.32-yv0wyp2m.mjs +0 -2
- package/dist/chunks/cli-1.1.32-yv9hzzq7.mjs +0 -2
- package/dist/chunks/cli-1.1.32-yw64r19c.mjs +0 -2
- package/dist/chunks/cli-1.1.32-z7x4jfeb.mjs +0 -4
- package/dist/chunks/cli-1.1.32-zegecv6e.mjs +0 -2
- package/dist/chunks/cli-1.1.32-zeyasrw5.mjs +0 -2
- package/dist/chunks/cli-1.1.32-zfyd4kyq.mjs +0 -2
- package/dist/chunks/cli-1.1.32-zfzqc12y.mjs +0 -26
- package/dist/chunks/cli-1.1.32-zkq2v1fz.mjs +0 -2
- package/dist/chunks/cli-1.1.32-zqtqvc9y.mjs +0 -3
- package/dist/chunks/cli-1.1.32-zr4x17ne.mjs +0 -3
- package/dist/chunks/cli-1.1.32-zraeg1n2.mjs +0 -2
- package/dist/chunks/cli-1.1.32-zrxqe296.mjs +0 -7
- package/dist/chunks/cli-1.1.32-zv1p3q66.mjs +0 -2
- package/dist/chunks/cli-1.1.32-zwetcrr2.mjs +0 -39
- package/dist/chunks/client-1.1.32-y4ehgz03.mjs +0 -1
- package/dist/chunks/color-1.1.32-an3gq6pv.mjs +0 -1
- package/dist/chunks/compact-1.1.32-kp67c5pn.mjs +0 -2
- package/dist/chunks/config-1.1.32-9kqd30ca.mjs +0 -1
- package/dist/chunks/config-1.1.32-chryg3ab.mjs +0 -1
- package/dist/chunks/constants-1.1.32-azab2vra.mjs +0 -1
- package/dist/chunks/context-1.1.32-t6yf3tch.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.32-tbes3yx4.mjs +0 -1
- package/dist/chunks/conversation-1.1.32-edtsb1fp.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.32-cxjr3qqd.mjs +0 -1
- package/dist/chunks/copy-1.1.32-2yk1zben.mjs +0 -9
- package/dist/chunks/cost-1.1.32-ykkmca1s.mjs +0 -1
- package/dist/chunks/createSession-1.1.32-pky6wawr.mjs +0 -1
- package/dist/chunks/debug-1.1.32-f8fanjpw.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.32-nf0mf9nq.mjs +0 -1480
- package/dist/chunks/desktop-1.1.32-h4q834kk.mjs +0 -2
- package/dist/chunks/detectRepository-1.1.32-y3wjkn3b.mjs +0 -1
- package/dist/chunks/detection-1.1.32-13rzk2y0.mjs +0 -1
- package/dist/chunks/diff-1.1.32-tsgcxd5v.mjs +0 -1
- package/dist/chunks/doctor-1.1.32-dg4q70ty.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.32-xpjhp8fe.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.32-rzjwc8xb.mjs +0 -1
- package/dist/chunks/effort-1.1.32-76tc9ft4.mjs +0 -13
- package/dist/chunks/engine-1.1.32-qp8px0cr.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.1.32-mamfyksw.mjs +0 -1
- package/dist/chunks/envUtils-1.1.32-x5ddw5jb.mjs +0 -1
- package/dist/chunks/errors-1.1.32-pw0ngznd.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.32-j9bvstfq.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.32-ah9wga16.mjs +0 -1
- package/dist/chunks/exit-1.1.32-4j8q9ztw.mjs +0 -1
- package/dist/chunks/explorer-1.1.32-dabb8sse.mjs +0 -1
- package/dist/chunks/export-1.1.32-zt3yhqen.mjs +0 -2
- package/dist/chunks/fast-1.1.32-cms216af.mjs +0 -1
- package/dist/chunks/feedback-1.1.32-r94c0y57.mjs +0 -16
- package/dist/chunks/git-1.1.32-9xc0s3ry.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.32-r5xq7s7y.mjs +0 -1
- package/dist/chunks/goal-1.1.32-bkjq4858.mjs +0 -4
- package/dist/chunks/headless-1.1.32-ae4d3qgy.mjs +0 -2
- package/dist/chunks/heapdump-1.1.32-jdrsrqfx.mjs +0 -6
- package/dist/chunks/help-1.1.32-5z54ce4t.mjs +0 -1
- package/dist/chunks/hooks-1.1.32-2mse496x.mjs +0 -1
- package/dist/chunks/hooks-1.1.32-jv66gnpt.mjs +0 -79
- package/dist/chunks/ide-1.1.32-tx45prsy.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.32-bwdr4dza.mjs +0 -1
- package/dist/chunks/import-1.1.32-7w75n01b.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.32-1vfz9rkn.mjs +0 -1
- package/dist/chunks/index-1.1.32-3wzxvtbf.mjs +0 -1
- package/dist/chunks/index-1.1.32-49p9ghn6.mjs +0 -1
- package/dist/chunks/index-1.1.32-7ttnyjb3.mjs +0 -2
- package/dist/chunks/index-1.1.32-aqkr7bx2.mjs +0 -9
- package/dist/chunks/index-1.1.32-az0sxjjn.mjs +0 -5
- package/dist/chunks/index-1.1.32-b4rwnxe8.mjs +0 -1
- package/dist/chunks/index-1.1.32-bpzdp87c.mjs +0 -23
- package/dist/chunks/index-1.1.32-c3gnrfg0.mjs +0 -1
- package/dist/chunks/index-1.1.32-cjq261cn.mjs +0 -9
- package/dist/chunks/index-1.1.32-crx2adff.mjs +0 -1
- package/dist/chunks/index-1.1.32-dn9thxs1.mjs +0 -30
- package/dist/chunks/index-1.1.32-fwm6yqt6.mjs +0 -1
- package/dist/chunks/index-1.1.32-g58gm84f.mjs +0 -1
- package/dist/chunks/index-1.1.32-g9e9ne9q.mjs +0 -1
- package/dist/chunks/index-1.1.32-m694vs1n.mjs +0 -1
- package/dist/chunks/index-1.1.32-rbv0wt7t.mjs +0 -1
- package/dist/chunks/index-1.1.32-revsqy4q.mjs +0 -1
- package/dist/chunks/index-1.1.32-t011v5cn.mjs +0 -1
- package/dist/chunks/index-1.1.32-tv85kbw0.mjs +0 -1
- package/dist/chunks/index-1.1.32-v09n34s4.mjs +0 -1
- package/dist/chunks/index-1.1.32-vaknvmtk.mjs +0 -2
- package/dist/chunks/index-1.1.32-vxn4pvkx.mjs +0 -1
- package/dist/chunks/index-1.1.32-zep1vry1.mjs +0 -1
- package/dist/chunks/init-1.1.32-xac664gq.mjs +0 -2
- package/dist/chunks/initReplBridge-1.1.32-d1g5bqts.mjs +0 -1
- package/dist/chunks/ink-1.1.32-brepbf1s.mjs +0 -1
- package/dist/chunks/insights-1.1.32-ccteb3zt.mjs +0 -870
- package/dist/chunks/install-1.1.32-xhcj1s97.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.32-2rb2b8y2.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.32-7e22rmh8.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.32-tw81dggb.mjs +0 -1
- package/dist/chunks/keybindings-1.1.32-bsjftmx2.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.1.32-ecgj54va.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.32-9c4e13wb.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.32-qb96n0p6.mjs +0 -1
- package/dist/chunks/log-1.1.32-0wdbtf8k.mjs +0 -1
- package/dist/chunks/main-1.1.32-9s7gbk2b.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.32-8aapabn1.mjs +0 -1
- package/dist/chunks/mcp-1.1.32-2ct5ytwv.mjs +0 -1
- package/dist/chunks/mcp-1.1.32-42npdfwc.mjs +0 -17
- package/dist/chunks/mcp-1.1.32-8c3f7gfy.mjs +0 -4
- package/dist/chunks/mcpb-1.1.32-482tejv1.mjs +0 -1
- package/dist/chunks/memory-1.1.32-jrnzabfj.mjs +0 -77
- package/dist/chunks/model-1.1.32-wjtssjq7.mjs +0 -1
- package/dist/chunks/model-1.1.32-z7v5ah7s.mjs +0 -2
- package/dist/chunks/node-1.1.32-bgrnv9d0.mjs +0 -15
- package/dist/chunks/node-1.1.32-pek9xbcv.mjs +0 -1
- package/dist/chunks/oauth-1.1.32-b01rfrnw.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.32-68nafznt.mjs +0 -14
- package/dist/chunks/output-style-1.1.32-se3pq9dn.mjs +0 -1
- package/dist/chunks/package-D2QZMRW7-1.1.32-jykb9rfa.mjs +0 -1
- package/dist/chunks/permissions-1.1.32-r62vjas0.mjs +0 -3
- package/dist/chunks/permissions-1.1.32-v83ds1fq.mjs +0 -1
- package/dist/chunks/plan-1.1.32-remxpgv3.mjs +0 -1
- package/dist/chunks/plist-1.1.32-y2bh274p.mjs +0 -1
- package/dist/chunks/plugin-1.1.32-h9pgs6zn.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.32-vyn1sara.mjs +0 -1
- package/dist/chunks/plugins-1.1.32-wxz7p0xc.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.32-259wvsmh.mjs +0 -2
- package/dist/chunks/print-1.1.32-k37wv4h9.mjs +0 -57
- package/dist/chunks/process-1.1.32-tya6ctch.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.32-hfk6nzmr.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.32-ga3g4qev.mjs +0 -9
- package/dist/chunks/prompt-1.1.32-crsv325t.mjs +0 -1
- package/dist/chunks/prompt-1.1.32-jyfkevpw.mjs +0 -1
- package/dist/chunks/prompts-1.1.32-mythhsq2.mjs +0 -1
- package/dist/chunks/provider-1.1.32-c16c25q6.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.32-gv05d26p.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.32-srfcyanm.mjs +0 -6
- package/dist/chunks/registerSubcommands-1.1.32-af1r42j6.mjs +0 -26
- package/dist/chunks/registry-1.1.32-nvr3xen5.mjs +0 -1
- package/dist/chunks/release-notes-1.1.32-gtntbc84.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.32-qmx4b0zf.mjs +0 -2
- package/dist/chunks/remote-env-1.1.32-srz0skx2.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.1.32-17erfh69.mjs +0 -1
- package/dist/chunks/rename-1.1.32-yww8w15q.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.32-carhn5x3.mjs +0 -1
- package/dist/chunks/resume-1.1.32-y7g779fj.mjs +0 -2
- package/dist/chunks/rewind-1.1.32-xktcmbbk.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.32-q7914mqe.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.32-yr1peyj2.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.32-kct2shfd.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.32-wa7kgd6b.mjs +0 -1
- package/dist/chunks/session-1.1.32-07pqmcyz.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-1.1.32-1ekf9af3.mjs +0 -1
- package/dist/chunks/sessionStorage-1.1.32-vcm53ywe.mjs +0 -1
- package/dist/chunks/settings-1.1.32-kwtz4r22.mjs +0 -1
- package/dist/chunks/setup-1.1.32-695k1eyn.mjs +0 -12
- package/dist/chunks/sinks-1.1.32-3eh8hb97.mjs +0 -1
- package/dist/chunks/skills-1.1.32-ymdek4dt.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.32-sxxmxavv.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.32-25e14c0p.mjs +0 -1
- package/dist/chunks/state-1.1.32-q2y7dv84.mjs +0 -1
- package/dist/chunks/stats-1.1.32-p79st2jy.mjs +0 -1
- package/dist/chunks/status-1.1.32-wsaad3gy.mjs +0 -1
- package/dist/chunks/stickers-1.1.32-erbhpqdc.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.32-29m5mf2s.mjs +0 -1
- package/dist/chunks/tasks-1.1.32-fv2ze8ev.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.32-b2x5nsht.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.32-w65af42z.mjs +0 -1
- package/dist/chunks/teleport-1.1.32-6d4336gw.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.32-t82mfgh5.mjs +0 -1
- package/dist/chunks/theme-1.1.32-7qn5nf2j.mjs +0 -1
- package/dist/chunks/thinkback-1.1.32-awsxj77a.mjs +0 -1
- package/dist/chunks/thinkback-play-1.1.32-jz9fjb47.mjs +0 -1
- package/dist/chunks/toolPool-1.1.32-fjydq0km.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.32-y8vfsj9n.mjs +0 -1
- package/dist/chunks/tools-1.1.32-pd8bskwj.mjs +0 -1
- package/dist/chunks/trustedDevice-1.1.32-891wyppj.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.32-nsrwegv6.mjs +0 -69
- package/dist/chunks/types-1.1.32-v6b8jgxx.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.1.32-wkj4mpew.mjs +0 -4
- package/dist/chunks/update-1.1.32-zz1tgpba.mjs +0 -72
- package/dist/chunks/upload-1.1.32-43gcqyx2.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.32-nqwkbma5.mjs +0 -14
- package/dist/chunks/usage-1.1.32-80bkg4qd.mjs +0 -1
- package/dist/chunks/util-1.1.32-c7zmr7sf.mjs +0 -1
- package/dist/chunks/utils-1.1.32-x2mf8n7e.mjs +0 -1
- package/dist/chunks/vim-1.1.32-mz41whem.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.32-yftqp4h6.mjs +0 -13
- package/dist/chunks/watcher-1.1.32-jy13qnvt.mjs +0 -1
- package/dist/chunks/wiki-1.1.32-z6ngme51.mjs +0 -132
- package/dist/chunks/workflows-1.1.32-mpyvb578.mjs +0 -1
- package/dist/chunks/worktree-1.1.32-qxw9fxfk.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.32-w3d8pgmt.mjs +0 -1
- package/dist/chunks/wrapper-1.1.32-5xty3sv5.mjs +0 -7
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import{H6 as D}from"./cli-1.1.32-rswqkymv.mjs";import{b9 as H,t9 as RG}from"./cli-1.1.32-g5dzf2w1.mjs";import{A9 as XG}from"./cli-1.1.32-260jjrwt.mjs";import{Dja as W,Gja as a,pja as L,tja as JG}from"./cli-1.1.32-8jkgzjh4.mjs";import{nka as c,oka as jG,wka as GG}from"./cli-1.1.32-7zp3b6gq.mjs";import{eqa as q,fqa as g}from"./cli-1.1.32-hbwke9cs.mjs";import{Sqa as WG,Wqa as j,Xqa as e}from"./cli-1.1.32-yw64r19c.mjs";function yG(){U.cache.clear?.(),W("Cleared CA certificates cache")}var U;var i=j(()=>{g();a();GG();JG();U=q(()=>{let G=c("--use-system-ca")||c("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(W(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let Q=e("tls"),K=[];if(G){let Y=Q.getCACertificates,Z=Y?.("system");if(Z&&Z.length>0)K.push(...Z),W(`CA certs: Loaded ${K.length} system CA certificates (--use-system-ca)`);else if(!Y&&!J){W("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base (--use-system-ca fallback)`)}else K.push(...Q.rootCertificates),W(`CA certs: Loaded ${K.length} bundled root certificates as base`);if(J)try{let Y=L().readFileSync(J,{encoding:"utf8"});K.push(Y),W(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(Y){W(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${Y}`,{level:"error"})}return K.length>0?K:void 0})});import{Agent as IG}from"https";function gG(){let G=N(),J=U();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function P(){let G=N(),J=U();if(!G&&!J)return{};let Q={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:Q};return W("TLS: Created undici agent with custom certificates"),{dispatcher:new(D()).Agent({connect:{cert:Q.cert,key:Q.key,passphrase:Q.passphrase,...Q.ca&&{ca:Q.ca}},pipelining:1})}}function aG(){N.cache.clear?.(),C.cache.clear?.(),W("Cleared mTLS configuration cache")}function iG(){if(!N())return;if(process.env.NODE_EXTRA_CA_CERTS)W("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var N,C;var KG=j(()=>{g();i();a();JG();N=q(()=>{let G={};if(process.env.CLAUDIN_CLIENT_CERT)try{G.cert=L().readFileSync(process.env.CLAUDIN_CLIENT_CERT,{encoding:"utf8"}),W("mTLS: Loaded client certificate from CLAUDIN_CLIENT_CERT")}catch(J){W(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDIN_CLIENT_KEY)try{G.key=L().readFileSync(process.env.CLAUDIN_CLIENT_KEY,{encoding:"utf8"}),W("mTLS: Loaded client key from CLAUDIN_CLIENT_KEY")}catch(J){W(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDIN_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDIN_CLIENT_KEY_PASSPHRASE,W("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),C=q(()=>{let G=N(),J=U();if(!G&&!J)return;let Q={...G,...J&&{ca:J},keepAlive:!0};return W("mTLS: Creating HTTPS agent with custom certificates"),new IG(Q)})});var QG=()=>{};import*as YG from"net";import*as ZG from"http";import{Agent as SG}from"https";var B,p;var $G=j(()=>{QG();B=Symbol("AgentBaseInternalState");p=class p extends ZG.Agent{constructor(G){super(G);this[B]={}}isSecureEndpoint(G){if(G){if(typeof G.secureEndpoint==="boolean")return G.secureEndpoint;if(typeof G.protocol==="string")return G.protocol==="https:"}let{stack:J}=Error();if(typeof J!=="string")return!1;return J.split(`
|
|
2
|
-
`).some((Q)=>Q.indexOf("(https.js:")!==-1||Q.indexOf("node:https:")!==-1)}incrementSockets(G){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;if(!this.sockets[G])this.sockets[G]=[];let J=new YG.Socket({writable:!1});return this.sockets[G].push(J),this.totalSocketCount++,J}decrementSockets(G,J){if(!this.sockets[G]||J===null)return;let Q=this.sockets[G],K=Q.indexOf(J);if(K!==-1){if(Q.splice(K,1),this.totalSocketCount--,Q.length===0)delete this.sockets[G]}}getName(G){if(this.isSecureEndpoint(G))return SG.prototype.getName.call(this,G);return super.getName(G)}createSocket(G,J,Q){let K={...J,secureEndpoint:this.isSecureEndpoint(J)},Y=this.getName(K),Z=this.incrementSockets(Y);Promise.resolve().then(()=>this.connect(G,K)).then((X)=>{if(this.decrementSockets(Y,Z),typeof X.addRequest==="function")try{return X.addRequest(G,K)}catch($){return Q($)}this[B].currentSocket=X,super.createSocket(G,J,Q)},(X)=>{this.decrementSockets(Y,Z),Q(X)})}createConnection(){let G=this[B].currentSocket;if(this[B].currentSocket=void 0,!G)throw Error("No socket was returned in the `connect()` function");return G}get defaultPort(){return this[B].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(G){if(this[B])this[B].defaultPort=G}get protocol(){return this[B].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(G){if(this[B])this[B].protocol=G}}});function n(G){return new Promise((J,Q)=>{let K=0,Y=[];function Z(){let w=G.read();if(w)_(w);else G.once("readable",Z)}function X(){G.removeListener("end",$),G.removeListener("error",V),G.removeListener("readable",Z)}function $(){X(),v("onend"),Q(Error("Proxy connection ended before receiving CONNECT response"))}function V(w){X(),v("onerror %o",w),Q(w)}function _(w){Y.push(w),K+=w.length;let z=Buffer.concat(Y,K),O=z.indexOf(`\r
|
|
3
|
-
\r
|
|
4
|
-
`);if(O===-1){v("have not received end of HTTP headers yet..."),Z();return}let b=z.slice(0,O).toString("ascii").split(`\r
|
|
5
|
-
`),f=b.shift();if(!f)return G.destroy(),Q(Error("No header received from proxy CONNECT response"));let t=f.split(" "),FG=+t[1],EG=t.slice(2).join(" "),I={};for(let S of b){if(!S)continue;let u=S.indexOf(":");if(u===-1)return G.destroy(),Q(Error(`Invalid header from proxy CONNECT response: "${S}"`));let d=S.slice(0,u).toLowerCase(),l=S.slice(u+1).trimStart(),A=I[d];if(typeof A==="string")I[d]=[A,l];else if(Array.isArray(A))A.push(l);else I[d]=l}v("got proxy server response: %o %o",f,I),X(),J({connect:{statusCode:FG,statusText:EG,headers:I},buffered:z})}G.on("error",V),G.on("end",$),Z()})}var wG,v;var zG=j(()=>{wG=WG(XG(),1),v=wG.default("https-proxy-agent:parse-proxy-response")});function VG(){return async({response:G,scheme:J})=>{if(J.toLowerCase()!=="negotiate")throw Error(`Expected Negotiate scheme but got "${J}"`);let Q;try{Q=await import("kerberos")}catch{throw Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let K=G.headers["proxy-authenticate"]||"",Y=Array.isArray(K)?K[0]:K,Z=typeof Y==="string"&&Y.includes(" ")?Y.split(" ").slice(1).join(" "):void 0,$=await(await Q.initializeClient("HTTP@proxy",{mechOID:Q.GSS_MECH_OID_SPNEGO})).step(Z||"");if(!$)throw Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${$}`}}}}var BG=()=>{};import*as M from"net";import*as R from"tls";import LG from"assert";import{URL as DG}from"url";function MG(G){setImmediate(()=>{G.resume()})}function s(G,...J){let Q={},K;for(K in G)if(!J.includes(K))Q[K]=G[K];return Q}var HG,F,k=(G)=>{if(G.servername===void 0&&G.host&&!M.isIP(G.host))return{...G,servername:G.host};return G},m;var _G=j(()=>{$G();zG();BG();HG=WG(XG(),1),F=HG.default("https-proxy-agent");m=class m extends p{constructor(G,J){super(J);if(this.options={path:void 0},this.proxy=typeof G==="string"?new DG(G):G,this.proxyHeaders=J?.headers??{},F("Creating new HttpsProxyAgent instance: %o",this.proxy.href),J?.negotiate)this.onProxyAuth=VG();else if(J?.onProxyAuth)this.onProxyAuth=J.onProxyAuth;let Q=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),K=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...J?s(J,"headers","onProxyAuth","negotiate"):null,host:Q,port:K}}async connect(G,J){let{proxy:Q}=this;if(!J.host)throw TypeError('No "host" provided');let K;if(Q.protocol==="https:")F("Creating `tls.Socket`: %o",this.connectOpts),K=R.connect(k(this.connectOpts));else F("Creating `net.Socket`: %o",this.connectOpts),K=M.connect(this.connectOpts);let Y=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},Z=M.isIPv6(J.host)?`[${J.host}]`:J.host,X=`CONNECT ${Z}:${J.port} HTTP/1.1\r
|
|
6
|
-
`;if(Q.username||Q.password){let z=`${decodeURIComponent(Q.username)}:${decodeURIComponent(Q.password)}`;Y["Proxy-Authorization"]=`Basic ${Buffer.from(z).toString("base64")}`}if(Y.Host=`${Z}:${J.port}`,!Y["Proxy-Connection"])Y["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let z of Object.keys(Y))X+=`${z}: ${Y[z]}\r
|
|
7
|
-
`;let $=n(K);K.write(`${X}\r
|
|
8
|
-
`);let{connect:V,buffered:_}=await $;if(G.emit("proxyConnect",V),this.emit("proxyConnect",V,G),G.emit("proxy",{proxy:this.proxy.href,socket:K}),V.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return F("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:K});return K}if(V.statusCode===407&&this.onProxyAuth){F("Got 407 response, invoking onProxyAuth callback"),K.destroy();let z=V.headers["proxy-authenticate"]||"",O=Array.isArray(z)?z[0].split(/\s/)[0]:z.split(/\s/)[0],b=await this.onProxyAuth({response:V,scheme:O});return this._connectWithAuth(G,J,b.headers)}K.destroy();let w=new M.Socket({writable:!1});return w.readable=!0,G.once("socket",(z)=>{F("Replaying proxy buffer for failed request"),LG(z.listenerCount("data")>0),z.push(_),z.push(null)}),w}async _connectWithAuth(G,J,Q){let{proxy:K}=this,Y;if(K.protocol==="https:")Y=R.connect(k(this.connectOpts));else Y=M.connect(this.connectOpts);let Z=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders},X=M.isIPv6(J.host)?`[${J.host}]`:J.host,$=`CONNECT ${X}:${J.port} HTTP/1.1\r
|
|
9
|
-
`;if(K.username||K.password){let w=`${decodeURIComponent(K.username)}:${decodeURIComponent(K.password)}`;Z["Proxy-Authorization"]=`Basic ${Buffer.from(w).toString("base64")}`}if(Object.assign(Z,Q),Z.Host=`${X}:${J.port}`,!Z["Proxy-Connection"])Z["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close";for(let w of Object.keys(Z))$+=`${w}: ${Z[w]}\r
|
|
10
|
-
`;let V=n(Y);Y.write(`${$}\r
|
|
11
|
-
`);let{connect:_}=await V;if(G.emit("proxyConnect",_),this.emit("proxyConnect",_,G),_.statusCode===200){if(G.once("socket",MG),J.secureEndpoint)return F("Upgrading socket connection to TLS"),R.connect({...s(k(J),"host","path","port"),socket:Y});return Y}throw Y.destroy(),Error(`Proxy authentication failed with status ${_.statusCode} after retry`)}};m.protocols=["http","https"]});function MJ(G){r.set(G,!0),qG(G)}function qG(G){TG.cache.delete?.(G)}function HJ(G){UG.set(G,!0),qG(G)}function OG(G){return UG.get(G)===!0}function bG(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function E(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function AG(G=process.env){return G.no_proxy||G.NO_PROXY}function y(G,J=AG()){if(!J)return!1;if(J==="*")return!0;try{let Q=new URL(G),K=Q.hostname.toLowerCase(),Y=Q.port||(Q.protocol==="https:"||Q.protocol==="wss:"?"443":"80"),Z=`${K}:${Y}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let V=$;return K===$.substring(1)||K.endsWith(V)}return K===$||K.endsWith("."+$)})}catch{return!1}}function h(G,J={}){let Q=N(),K=U(),Y={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};if(jG(process.env.CLAUDIN_PROXY_RESOLVES_HOSTS))Y.lookup=(Z,X,$)=>{$(null,Z,bG(X))};return new m(G,{...Y,...J})}function _J(G={}){let J=E(),Q=C(),K=H.create({proxy:!1});if(!J){if(Q)K.defaults.httpsAgent=Q;return K}let Y=h(J,G);return K.interceptors.request.use((Z)=>{if(Z.url&&y(Z.url))Z.httpsAgent=Q,Z.httpAgent=Q;else Z.httpsAgent=Y,Z.httpAgent=Y;return Z}),K}function jJ(G){let J=E();if(!J)return;if(y(G))return;return h(J)}function qJ(G){let J=E();if(!J)return;if(y(G))return;return J}function UJ(G){let J=G?.provider&&r.get(G.provider)?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Y=process.env.ANTHROPIC_UNIX_SOCKET;if(Y&&typeof Bun<"u")return{...J,unix:Y}}let Q=E();if(Q){if(typeof Bun<"u")return{...J,proxy:Q,...P()};return{...J,dispatcher:o(Q)}}let K=P();if(G?.provider&&!K.dispatcher)return{...J,...K,dispatcher:TG(G.provider)};return{...J,...K}}function NJ(){let G=E(),J=C();if(x!==void 0)H.interceptors.request.eject(x),x=void 0;if(H.defaults.proxy=void 0,H.defaults.httpAgent=void 0,H.defaults.httpsAgent=void 0,G){H.defaults.proxy=!1;let Q=h(G);x=H.interceptors.request.use((K)=>{if(K.url&&y(K.url))if(J)K.httpsAgent=J,K.httpAgent=J;else delete K.httpsAgent,delete K.httpAgent;else K.httpsAgent=Q,K.httpAgent=Q;return K}),D().setGlobalDispatcher(o(G))}else if(J){H.defaults.httpsAgent=J;let Q=P();if(Q.dispatcher)D().setGlobalDispatcher(Q.dispatcher)}}async function TJ(){let G=E();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:Q}]=await Promise.all([import("./index-1.1.32-b4rwnxe8.mjs"),import("./index-1.1.32-aqkr7bx2.mjs")]),K=h(G),Y=new J({httpAgent:K,httpsAgent:K});return{requestHandler:Y,credentials:Q({clientConfig:{requestHandler:Y}})}}function FJ(){o.cache.clear?.(),W("Cleared proxy agent cache")}var r,UG,o,T,NG,CG,TG,x;var PG=j(()=>{RG();_G();g();i();a();GG();KG();r=new Map;UG=new Map;o=q((G)=>{let J=D(),Q=N(),K=U(),Y={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(Q||K){let Z={...Q&&{cert:Q.cert,key:Q.key,passphrase:Q.passphrase},...K&&{ca:K}};Y.connect=Z,Y.requestTls=Z}return new J.EnvHttpProxyAgent(Y)}),T={connections:12,keepAliveTimeout:30000,pipelining:1},NG={firstParty:{...T,allowH2:!0},openai:{...T,allowH2:!0},gemini:{...T,allowH2:!0},mistral:{...T,allowH2:!0},github:{...T,allowH2:!0},codex:{...T,allowH2:!0},"nvidia-nim":{...T,allowH2:!0},minimax:{...T,allowH2:!0}},CG=NG.openai,TG=q((G)=>{let J=D(),Q=NG[G]??CG,K={...Q,allowH2:Q.allowH2&&!OG(G),keepAliveTimeout:r.get(G)?100:Q.keepAliveTimeout};return new J.Agent(K)})});
|
|
12
|
-
export{yG as k6,i as l6,N as m6,gG as n6,aG as o6,iG as p6,KG as q6,MJ as r6,HJ as s6,OG as t6,E as u6,y as v6,_J as w6,jJ as x6,qJ as y6,UJ as z6,NJ as A6,TJ as B6,FJ as C6,PG as D6};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{VT as m,WT as b,XT as H,ZT as N,_T as K}from"./cli-1.1.32-p70gsyp3.mjs";import{A6 as L,C6 as O,D6 as _,k6 as x,l6 as M,o6 as D,q6 as R}from"./cli-1.1.32-a3dfp7ps.mjs";import{Cba as j,Eba as P,P_ as Y,bea as X,cfa as G,gea as Z,tea as A}from"./cli-1.1.32-pve0ffcp.mjs";import{oka as $,wka as I}from"./cli-1.1.32-7zp3b6gq.mjs";import{Wqa as F}from"./cli-1.1.32-yw64r19c.mjs";function V(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:w,CLAUDE_CODE_OAUTH_TOKEN:C,...U}=q;return U}function k(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!H(B))z[B]=Q;return z}function p(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return p(k(V(q)))}function S(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Y().env));for(let z of h){if(z==="policySettings")continue;if(!j(z))continue;Object.assign(process.env,J(X(z)?.env))}m(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Z()?.env);for(let[z,B]of Object.entries(q))if(N.has(z.toUpperCase()))process.env[z]=B}function a(){Object.assign(process.env,J(Y().env)),Object.assign(process.env,J(Z()?.env)),x(),D(),O(),L()}var W,h;var T=F(()=>{b();M();G();I();K();R();_();P();A();h=["userSettings","flagSettings","policySettings"]});
|
|
2
|
-
export{S as Xd,a as Yd,T as Zd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Wqa as M}from"./cli-1.1.32-yw64r19c.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
|
|
2
|
-
export{W as uia,Q as via,K as wia,X as xia,Y as yia,Z as zia,y as Aia,G as Bia,h as Cia,w as Dia};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{$N as a,RN as F,SN as S,VN as C,oy as y,sy as r}from"./cli-1.1.32-9yka8m9x.mjs";import{QW as z,RW as b}from"./cli-1.1.32-hgjgfp8p.mjs";import{M0 as D,N0 as o}from"./cli-1.1.32-5j5n166h.mjs";import{A_ as l,C_ as T,D_ as u,z_ as R}from"./cli-1.1.32-pve0ffcp.mjs";import{Dja as N,Gja as g,jja as O,lja as c,pja as L,tja as d}from"./cli-1.1.32-8jkgzjh4.mjs";import{eqa as _,fqa as I}from"./cli-1.1.32-hbwke9cs.mjs";import{Wqa as j}from"./cli-1.1.32-yw64r19c.mjs";import{spawn as G,spawnSync as w}from"child_process";import{basename as k}from"path";function P(q){return!!T(q)}function V(q){let H=k(q.split(" ")[0]??"");return h.find((B)=>H.includes(B))}function p(q,H,B){if(!B)return[H];if(m.has(q))return["-g",`${H}:${B}`];if(q==="subl")return[`${H}:${B}`];return[H]}function Qq(q,H){let B=v();if(!B)return!1;let J=B.split(" "),X=J[0]??B,K=J.slice(1),Q=V(B);if(Q){let W=p(Q,q,H),Z={detached:!0,stdio:"ignore"},M;if(process.platform==="win32"){let U=W.map((E)=>`"${E}"`).join(" ");M=G(`${B} ${U}`,{...Z,shell:!0})}else M=G(X,[...K,...W],Z);return M.on("error",(U)=>N(`editor spawn failed: ${U}`,{level:"error"})),M.unref(),!0}let $=z.get(process.stdout);if(!$)return!1;let Y=H&&f.test(k(X));$.enterAlternateScreen();try{let W={stdio:"inherit"},Z;if(process.platform==="win32"){let M=Y?`+${H} `:"";Z=w(`${B} ${M}"${q}"`,{...W,shell:!0})}else{let M=[...K,...Y?[`+${H}`,q]:[q]];Z=w(X,M,W)}if(Z.error)return N(`editor spawn failed: ${Z.error}`,{level:"error"}),!1;return!0}finally{$.exitAlternateScreen()}}var h,f,m,v;var x=j(()=>{I();b();g();u();h=["code","cursor","windsurf","codium","subl","atom","gedit","notepad++","notepad"],f=/\b(vi|vim|nvim|nano|emacs|pico|micro|helix|hx)\b/,m=new Set(["code","cursor","windsurf","codium"]);v=_(()=>{if(process.env.VISUAL?.trim())return process.env.VISUAL.trim();if(process.env.EDITOR?.trim())return process.env.EDITOR.trim();if(process.platform==="win32")return"start /wait notepad";return["code","vi","nano"].find((H)=>P(H))})});function s(q){return V(q)!==void 0}function i(q){let H=L(),B=z.get(process.stdout);if(!B)throw Error("Ink instance not found - cannot pause rendering");let J=v();if(!J)return{content:null};try{H.statSync(q)}catch{return{content:null}}let X=!s(J);if(X)B.enterAlternateScreen();else B.pause(),B.suspendStdin();try{let K=Object.hasOwn(A,J)?A[J]:J;return R(`${K} "${q}"`,{stdio:"inherit"}),{content:H.readFileSync(q,{encoding:"utf-8"})}}catch(K){if(typeof K==="object"&&K!==null&&"status"in K&&typeof K.status==="number"){let Q=K.status;if(Q!==0)return{content:null,error:`${y(J)} exited with code ${Q}`}}return{content:null}}finally{if(X)B.exitAlternateScreen();else B.resumeStdin(),B.resume()}}function n(q,H,B){let J=q;for(let[X,K]of Object.entries(B))if(K.type==="text"){let Q=parseInt(X),$=K.content,Y=J.indexOf($);if(Y!==-1){let W=F($),Z=S(Q,W);J=J.slice(0,Y)+Z+J.slice(Y+$.length)}}return J}function Vq(q,H){let B=L(),J=D();try{let X=H?C(q,H):q;O(J,X,{encoding:"utf-8",flush:!0});let K=i(J);if(K.content===null)return K;let Q=K.content;if(Q.endsWith(`
|
|
2
|
-
`)&&!Q.endsWith(`
|
|
3
|
-
|
|
4
|
-
`))Q=Q.slice(0,-1);if(H)Q=n(Q,q,H);return{content:Q}}finally{try{B.unlinkSync(J)}catch{}}}var A;var t=j(()=>{a();b();x();l();d();r();c();o();A={code:"code -w",subl:"subl --wait"}});
|
|
5
|
-
export{Qq as vg,v as wg,x as xg,i as yg,Vq as zg,t as Ag};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import{Ae as kz,ze as HY}from"./cli-1.1.32-ydbtpc9v.mjs";import{Tg as BY,Ug as Oz}from"./cli-1.1.32-8b5ej63w.mjs";import{$O as XJ,Am as yz,Ax as UY,Dx as pY,Ex as mz,FO as rY,Hx as UJ,Ix as XY,Jx as EJ,Kx as VY,Lr as Xz,Lx as kJ,Mr as HK,Mx as GY,Qx as uY,Rx as hY,SR as eY,Tx as Lz,Ux as $Y,Vx as Iz,YO as nY,aP as VZ,bP as X0,fN as Kz,gN as VK,gO as lY,hH as iY,hO as _z,iH as xz,nF as B0,oF as MY,oP as dY,pK as qY,pP as Sz,tS as V0,uF as cY,uK as Dz,vF as bz,wF as gY,xF as fz,yx as uJ,zm as SY}from"./cli-1.1.32-9yka8m9x.mjs";import{$X as Tz,GX as fY,LY as U0,SW as x0,WW as IY,ZX as xY,bX as bY,cX as Fz,cY as m,eY as N,zY as _Y}from"./cli-1.1.32-hgjgfp8p.mjs";import{n2 as X,o2 as y,p2 as LJ}from"./cli-1.1.32-jjanec91.mjs";import{q2 as f0}from"./cli-1.1.32-6f9r9qcb.mjs";import{L4 as XK,j4 as zz}from"./cli-1.1.32-vf3r8a91.mjs";import{F6 as c0,G6 as wz}from"./cli-1.1.32-6jxftegx.mjs";import{Dga as LY,Gaa as mY,Uaa as Az,pba as r0,rba as UK,vga as IJ,yga as n0}from"./cli-1.1.32-pve0ffcp.mjs";import{Iga as p0,Jga as vz,Lga as G0,Wga as KY,Xga as g0,aha as b0}from"./cli-1.1.32-1rackf2c.mjs";import{Dja as vJ,Gja as KK,hja as Yz,lja as zK}from"./cli-1.1.32-8jkgzjh4.mjs";import{Hpa as yY,cla as TY,ila as H0}from"./cli-1.1.32-60pc6r2s.mjs";import{Sqa as zZ,Wqa as KZ}from"./cli-1.1.32-yw64r19c.mjs";function PY(Z){let J=QY.c(33),{log:K,onExit:Q,onSelect:q}=Z,[P,W]=I0.default.useState(null),j,T;if(J[0]!==K)j=()=>{if(W(null),VZ(K))X0(K).then(W)},T=[K],J[0]=K,J[1]=j,J[2]=T;else j=J[1],T=J[2];I0.default.useEffect(j,T);let u=VZ(K)&&P===null,V=P??K,k;if(J[3]!==V)k=XJ(V)||"",J[3]=V,J[4]=k;else k=J[4];let D=k,b;if(J[5]===Symbol.for("react.memo_cache_sentinel"))b=qY(),J[5]=b;else b=J[5];let C=b,ZJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))ZJ={context:"Confirmation"},J[6]=ZJ;else ZJ=J[6];uJ("confirm:no",Q,ZJ);let _;if(J[7]!==P||J[8]!==K||J[9]!==q)_=()=>{q(P??K)},J[7]=P,J[8]=K,J[9]=q,J[10]=_;else _=J[10];let h=_,v;if(J[11]===Symbol.for("react.memo_cache_sentinel"))v={context:"Confirmation"},J[11]=v;else v=J[11];if(uJ("confirm:yes",h,v),u){let I;if(J[12]===Symbol.for("react.memo_cache_sentinel"))I=X(BY,{message:"Loading session…"}),J[12]=I;else I=J[12];let qJ;if(J[13]===Symbol.for("react.memo_cache_sentinel"))qJ=y(m,{flexDirection:"column",padding:1,children:[I,X(N,{dimColor:!0,children:X(kJ,{children:X(EJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})})})]}),J[13]=qJ;else qJ=J[13];return qJ}let R;if(J[14]===Symbol.for("react.memo_cache_sentinel"))R=[],J[14]=R;else R=J[14];let S,f;if(J[15]===Symbol.for("react.memo_cache_sentinel"))f=[],S=new Set,J[15]=S,J[16]=f;else S=J[15],f=J[16];let w;if(J[17]===Symbol.for("react.memo_cache_sentinel"))w=[],J[17]=w;else w=J[17];let VJ;if(J[18]!==D||J[19]!==V.messages)VJ=X(HY,{messages:V.messages,tools:C,commands:R,verbose:!0,toolJSX:null,toolUseConfirmQueue:f,inProgressToolUseIDs:S,isMessageSelectorVisible:!1,conversationId:D,screen:"transcript",streamingToolUses:w,showAllInTranscript:!0,isLoading:!1}),J[18]=D,J[19]=V.messages,J[20]=VJ;else VJ=J[20];let o;if(J[21]!==V.modified)o=KY(V.modified),J[21]=V.modified,J[22]=o;else o=J[22];let s=V.gitBranch?` · ${V.gitBranch}`:"",c;if(J[23]!==V.messageCount||J[24]!==o||J[25]!==s)c=y(N,{children:[o," ·"," ",V.messageCount," messages",s]}),J[23]=V.messageCount,J[24]=o,J[25]=s,J[26]=c;else c=J[26];let $;if(J[27]===Symbol.for("react.memo_cache_sentinel"))$=X(N,{dimColor:!0,children:y(kJ,{children:[X(UJ,{shortcut:"Enter",action:"resume"}),X(EJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}),J[27]=$;else $=J[27];let A;if(J[28]!==c)A=y(m,{flexShrink:0,flexDirection:"column",borderTopDimColor:!0,borderBottom:!1,borderLeft:!1,borderRight:!1,borderStyle:"single",paddingLeft:2,children:[c,$]}),J[28]=c,J[29]=A;else A=J[29];let bJ;if(J[30]!==VJ||J[31]!==A)bJ=y(m,{flexDirection:"column",children:[VJ,A]}),J[30]=VJ,J[31]=A,J[32]=bJ;else bJ=J[32];return bJ}var QY,I0;var DY=KZ(()=>{U0();UY();Dz();b0();V0();VY();GY();XY();Oz();kz();LJ();QY=zZ(x0(),1),I0=zZ(f0(),1)});function Cz(Z,J){if(Z===_0)return _0.length+GZ;let K=p0(Z),Q=J?Math.min(K,J-GZ-S0):K;return Math.max(0,Q)+GZ+S0}function Mz(Z,J){let K=J-GZ-S0;if(p0(Z)<=K)return Z;if(K<=1)return Z.charAt(0);return G0(Z,K)}function EY({tabs:Z,selectedIndex:J,availableWidth:K,showAllProjects:Q=!1}){let q=Q?"Resume (All Projects)":"Resume",P=q.length+1,W=Math.max(Nz,Ez),j=K-P-W-2,T=Math.max(0,Math.min(J,Z.length-1)),u=Math.max(20,Math.floor(j/2)),V=Z.map((v)=>Cz(v,u)),k=0,D=Z.length;if(V.reduce((v,R,S)=>v+R+(S<V.length-1?1:0),0)>j){let v=j-Wz,R=V[T]??0;k=T,D=T+1;while(k>0||D<Z.length){let S=k>0,f=D<Z.length;if(S){let w=(V[k-1]??0)+1;if(R+w<=v){k--,R+=w;continue}}if(f){let w=(V[D]??0)+1;if(R+w<=v){D++,R+=w;continue}}break}}let C=k,ZJ=Z.length-D,_=Z.slice(k,D),h=_.map((v,R)=>k+R);return y(m,{flexDirection:"row",gap:1,children:[X(N,{color:"suggestion",children:q}),C>0&&y(N,{dimColor:!0,children:[OY,C]}),_.map((v,R)=>{let f=h[R]===T,w=v===_0?v:`#${Mz(v,u-GZ)}`;return y(N,{backgroundColor:f?"suggestion":void 0,color:f?"inverseText":void 0,bold:f,children:[" ",w," "]},v)}),ZJ>0?y(N,{dimColor:!0,children:[kY,ZJ,vY]}):X(N,{dimColor:!0,children:WY})]})}var _0="All",GZ=2,S0=1,OY="← ",kY="→",vY=" (tab to cycle)",WY="(tab to cycle)",NY=2,Wz,Nz,Ez;var CY=KZ(()=>{vz();U0();b0();LJ();Wz=OY.length+NY+1,Nz=kY.length+NY+vY.length,Ez=WY.length});function RY(Z){let J=jY.c(48),{nodes:K,onSelect:Q,onCancel:q,onFocus:P,focusNodeId:W,visibleOptionCount:j,layout:T,isDisabled:u,hideIndexes:V,isNodeExpanded:k,onExpand:D,onCollapse:b,getParentPrefix:C,getChildPrefix:ZJ,onUpFromFirstItem:_}=Z,h=T===void 0?"expanded":T,v=u===void 0?!1:u,R=V===void 0?!1:V,S;if(J[0]===Symbol.for("react.memo_cache_sentinel"))S=new Set,J[0]=S;else S=J[0];let[f,w]=q0.default.useState(S),VJ=q0.default.useRef(!1),o=q0.default.useRef(null),s;if(J[1]!==f||J[2]!==k)s=(U)=>{if(k)return k(U);return f.has(U)},J[1]=f,J[2]=k,J[3]=s;else s=J[3];let c=s,$;if(J[4]!==c||J[5]!==K){let U=function(B,t,RJ){let wJ=!!B.children&&B.children.length>0,UZ=c(B.id);if($.push({node:B,depth:t,isExpanded:UZ,hasChildren:wJ,parentId:RJ}),wJ&&UZ&&B.children)for(let Q0 of B.children)U(Q0,t+1,B.id)};$=[];for(let B of K)U(B,0);J[4]=c,J[5]=K,J[6]=$}else $=J[6];let A=$,bJ=Rz,I=jz,qJ=C??bJ,g=ZJ??I,hJ;if(J[7]!==g||J[8]!==qJ)hJ=(U)=>{let B="";if(U.hasChildren)B=qJ(U.isExpanded);else if(U.depth>0)B=g(U.depth);return B+U.node.label},J[7]=g,J[8]=qJ,J[9]=hJ;else hJ=J[9];let i=hJ,$J;if(J[10]!==i||J[11]!==A)$J=A.map((U)=>({label:i(U),description:U.node.description,dimDescription:U.node.dimDescription??!0,value:U.node.id})),J[10]=i,J[11]=A,J[12]=$J;else $J=J[12];let l=$J,fJ;if(J[13]!==A)fJ=new Map,A.forEach((U)=>fJ.set(U.node.id,U.node)),J[13]=A,J[14]=fJ;else fJ=J[14];let r=fJ,CJ;if(J[15]!==A)CJ=(U)=>A.find((B)=>B.node.id===U),J[15]=A,J[16]=CJ;else CJ=J[16];let n=CJ,BJ;if(J[17]!==n||J[18]!==b||J[19]!==D)BJ=(U,B)=>{let t=n(U);if(!t||!t.hasChildren)return;if(B)if(D)D(U);else w((RJ)=>new Set(RJ).add(U));else if(b)b(U);else w((RJ)=>{let wJ=new Set(RJ);return wJ.delete(U),wJ})},J[17]=n,J[18]=b,J[19]=D,J[20]=BJ;else BJ=J[20];let WJ=BJ,cJ;if(J[21]!==n||J[22]!==W||J[23]!==v||J[24]!==r||J[25]!==P||J[26]!==WJ)cJ=(U)=>{if(!W||v)return;let B=n(W);if(!B)return;if(U.key==="right"&&B.hasChildren)U.preventDefault(),WJ(W,!0);else if(U.key==="left"){if(B.hasChildren&&B.isExpanded)U.preventDefault(),WJ(W,!1);else if(B.parentId!==void 0){if(U.preventDefault(),VJ.current=!0,WJ(B.parentId,!1),P){let t=r.get(B.parentId);if(t)P(t)}}}},J[21]=n,J[22]=W,J[23]=v,J[24]=r,J[25]=P,J[26]=WJ,J[27]=cJ;else cJ=J[27];let MJ=cJ,GJ;if(J[28]!==r||J[29]!==Q)GJ=(U)=>{let B=r.get(U);if(!B)return;Q(B)},J[28]=r,J[29]=Q,J[30]=GJ;else GJ=J[30];let gJ=GJ,HJ;if(J[31]!==r||J[32]!==P)HJ=(U)=>{if(VJ.current){VJ.current=!1;return}if(o.current===U)return;if(o.current=U,P){let B=r.get(U);if(B)P(B)}},J[31]=r,J[32]=P,J[33]=HJ;else HJ=J[33];let jJ=HJ,d;if(J[34]!==W||J[35]!==gJ||J[36]!==jJ||J[37]!==R||J[38]!==v||J[39]!==h||J[40]!==q||J[41]!==_||J[42]!==l||J[43]!==j)d=X(B0,{options:l,onChange:gJ,onFocus:jJ,onCancel:q,defaultFocusValue:W,visibleOptionCount:j,layout:h,isDisabled:v,hideIndexes:R,onUpFromFirstItem:_}),J[34]=W,J[35]=gJ,J[36]=jJ,J[37]=R,J[38]=v,J[39]=h,J[40]=q,J[41]=_,J[42]=l,J[43]=j,J[44]=d;else d=J[44];let xJ;if(J[45]!==MJ||J[46]!==d)xJ=X(m,{tabIndex:0,autoFocus:!0,onKeyDown:MJ,children:d}),J[45]=MJ,J[46]=d,J[47]=xJ;else xJ=J[47];return xJ}function jz(Z){return" ▸ "}function Rz(Z){return Z?"▼ ":"▶ "}var jY,q0;var wY=KZ(()=>{U0();MY();LJ();jY=zZ(x0(),1),q0=zZ(f0(),1)});function oY(Z,J){let K=Z.replace(/\s+/g," ").trim();return G0(K,J)}function GU(Z){return sY+Z*tY+2}function u0({before:Z,match:J,after:K},Q){return c0.dim(Z)+Q(J)+c0.dim(K)}function iz(Z,J,K){let Q=Z.toLowerCase().indexOf(J.toLowerCase());if(Q===-1)return null;let q=Q+J.length,P=Math.max(0,Q-K),W=Math.min(Z.length,q+K),j=Z.slice(P,Q),T=Z.slice(Q,q),u=Z.slice(q,W);return{before:(P>0?"…":"")+j.replace(/\s+/g," ").trimStart(),match:T.trim(),after:u.replace(/\s+/g," ").trimEnd()+(W<Z.length?"…":"")}}function h0(Z,J,K){let{isGroupHeader:Q=!1,isChild:q=!1,forkCount:P=0}=K||{},W=Q&&P>0?pz:q?uz:0,j=Q&&P>0?` (+${P} other ${P===1?"session":"sessions"})`:"",T=Z.isSidechain?" (sidechain)":"",u=J-W-T.length-j.length;return`${oY(IJ(Z),u)}${T}${j}`}function $0(Z,J){let{isChild:K=!1,showProjectPath:Q=!1}=J||{},q=K?" ":"",P=g0(Z),W=Q&&Z.projectPath?` · ${Z.projectPath}`:"";return q+P+W}function qU(Z){let J=aY.c(247),{logs:K,maxHeight:Q,forceWidth:q,onCancel:P,onSelect:W,onLogsChanged:j,onLoadMore:T,initialSearchQuery:u,showAllProjects:V,onToggleAllProjects:k,onAgenticSearch:D}=Z,b=Q===void 0?1/0:Q,C=V===void 0?!1:V,ZJ=SY(),_=uY(),h=hY(ZJ),v=q===void 0?h.columns:q,R=pY(P),S=fY(),f;if(J[0]===Symbol.for("react.memo_cache_sentinel"))f=nY(),J[0]=f;else f=J[0];let w=f,VJ=!1,[o]=IY(),s;if(J[1]!==o)s=xY(o),J[1]=o,J[2]=s;else s=J[2];let c=s,$;if(J[3]!==c.warning)$=(Y)=>bY(Y,c.warning),J[3]=c.warning,J[4]=$;else $=J[4];let A=$,bJ=!1,[I,qJ]=E.default.useState(null),[g,hJ]=E.default.useState(!1),[i,$J]=E.default.useState(!1),[l,fJ]=E.default.useState(!1),r;if(J[5]===Symbol.for("react.memo_cache_sentinel"))r=H0(),J[5]=r;else r=J[5];let CJ=r,[n,BJ]=E.default.useState(""),[WJ,cJ]=E.default.useState(0),MJ;if(J[6]===Symbol.for("react.memo_cache_sentinel"))MJ=new Set,J[6]=MJ;else MJ=J[6];let[GJ,gJ]=E.default.useState(MJ),[HJ,jJ]=E.default.useState(null),[d,xJ]=E.default.useState(1),[U,B]=E.default.useState("list"),[t,RJ]=E.default.useState(null),wJ=E.default.useRef(null),[UZ,Q0]=E.default.useState(0),qZ;if(J[7]===Symbol.for("react.memo_cache_sentinel"))qZ={status:"idle"},J[7]=qZ;else qZ=J[7];let[G,XZ]=E.default.useState(qZ),[e,BZ]=E.default.useState(!1),HZ=E.default.useRef(null),P0=U==="search"&&G.status!=="searching",QZ,PZ,DZ;if(J[8]===Symbol.for("react.memo_cache_sentinel"))QZ=()=>{B("list")},PZ=()=>{B("list")},DZ=["n"],J[8]=QZ,J[9]=PZ,J[10]=DZ;else QZ=J[8],PZ=J[9],DZ=J[10];let D0=u||"",OZ;if(J[11]!==D0||J[12]!==P0)OZ={isActive:P0,onExit:QZ,onExitUp:PZ,passthroughCtrlKeys:DZ,initialQuery:D0},J[11]=D0,J[12]=P0,J[13]=OZ;else OZ=J[13];let{query:F,setQuery:iJ,cursorOffset:O0}=cY(OZ),AJ=E.default.useDeferredValue(F),[YJ,d0]=E.default.useState(""),kZ,vZ;if(J[14]!==AJ)kZ=()=>{if(!AJ){d0("");return}let Y=setTimeout(d0,300,AJ);return()=>clearTimeout(Y)},vZ=[AJ],J[14]=AJ,J[15]=kZ,J[16]=vZ;else kZ=J[15],vZ=J[16];E.default.useEffect(kZ,vZ);let[FJ,a0]=E.default.useState(null),[k0,o0]=E.default.useState(!1),WZ,NZ;if(J[17]===Symbol.for("react.memo_cache_sentinel"))WZ=()=>{mY().then((Y)=>qJ(Y)),dY(CJ).then((Y)=>{fJ(Y.length>1)})},NZ=[CJ],J[17]=WZ,J[18]=NZ;else WZ=J[17],NZ=J[18];E.default.useEffect(WZ,NZ);let PK=new Map(K.map(sz)),Vz;Vz=null;let EZ;if(J[19]!==K)EZ=ZK(K),J[19]=K,J[20]=EZ;else EZ=J[20];let lJ=EZ,QJ=lJ.length>0,CZ;if(J[21]!==QJ||J[22]!==lJ)CZ=QJ?["All",...lJ]:[],J[21]=QJ,J[22]=lJ,J[23]=CZ;else CZ=J[23];let zJ=CZ,MZ=zJ.length>0&&UZ<zJ.length?UZ:0,s0=zJ[MZ],rJ=s0==="All"?void 0:s0,Gz=QJ?1:0,a=K;if(w){let Y;if(J[24]!==K)Y=K.filter(oz),J[24]=K,J[25]=Y;else Y=J[25];a=Y}if(rJ!==void 0){let Y;if(J[26]!==a||J[27]!==rJ){let z;if(J[29]!==rJ)z=(H)=>H.tag===rJ,J[29]=rJ,J[30]=z;else z=J[30];Y=a.filter(z),J[26]=a,J[27]=rJ,J[28]=Y}else Y=J[28];a=Y}if(g&&I){let Y;if(J[31]!==I||J[32]!==a){let z;if(J[34]!==I)z=(H)=>H.gitBranch===I,J[34]=I,J[35]=z;else z=J[35];Y=a.filter(z),J[31]=I,J[32]=a,J[33]=Y}else Y=J[33];a=Y}if(l&&!i){let Y;if(J[36]!==a){let z;if(J[38]===Symbol.for("react.memo_cache_sentinel"))z=(H)=>H.projectPath===CJ,J[38]=z;else z=J[38];Y=a.filter(z),J[36]=a,J[37]=Y}else Y=J[37];a=Y}let jZ=a,v0;J:{if(!F){v0=jZ;break J}let Y;if(J[39]!==jZ||J[40]!==F){let z=F.toLowerCase();Y=jZ.filter((H)=>{let M=IJ(H).toLowerCase(),p=(H.gitBranch||"").toLowerCase(),x=(H.tag||"").toLowerCase(),pJ=H.prNumber?`pr #${H.prNumber} ${H.prRepository||""}`.toLowerCase():"";return M.includes(z)||p.includes(z)||x.includes(z)||pJ.includes(z)}),J[39]=jZ,J[40]=F,J[41]=Y}else Y=J[41];v0=Y}let W0=v0,RZ,wZ;if(J[42]!==YJ||J[43]!==AJ)RZ=()=>{},wZ=[AJ,YJ,!1],J[42]=YJ,J[43]=AJ,J[44]=RZ,J[45]=wZ;else RZ=J[44],wZ=J[45];E.default.useEffect(RZ,wZ);let AZ,FZ;if(J[46]!==YJ)AZ=()=>{a0(null),o0(!1);return},FZ=[YJ,null,!1],J[46]=YJ,J[47]=AZ,J[48]=FZ;else AZ=J[47],FZ=J[48];E.default.useEffect(AZ,FZ);let JJ,_J;if(J[49]!==YJ||J[50]!==FJ||J[51]!==W0){if(_J=new Map,JJ=W0,FJ&&YJ&&FJ.query===YJ){for(let M of FJ.results)if(M.searchableText){let p=iz(M.searchableText,YJ,gz);if(p)_J.set(M.log,p)}let Y;if(J[54]!==JJ)Y=new Set(JJ.map(rz)),J[54]=JJ,J[55]=Y;else Y=J[55];let z=Y,H;if(J[56]!==FJ.results||J[57]!==JJ||J[58]!==z){let M;if(J[60]!==z)M=(x)=>!z.has(x.messages[0]?.uuid),J[60]=z,J[61]=M;else M=J[61];let p=FJ.results.map(lz).filter(M);H=[...JJ,...p],J[56]=FJ.results,J[57]=JJ,J[58]=z,J[59]=H}else H=J[59];JJ=H}J[49]=YJ,J[50]=FJ,J[51]=W0,J[52]=JJ,J[53]=_J}else JJ=J[52],_J=J[53];let TZ;if(J[62]!==JJ||J[63]!==_J)TZ={filteredLogs:JJ,snippets:_J},J[62]=JJ,J[63]=_J,J[64]=TZ;else TZ=J[64];let{filteredLogs:SJ,snippets:NJ}=TZ,N0;J:{if(G.status==="results"&&G.results.length>0){N0=G.results;break J}N0=SJ}let O=N0,PJ=Math.max(30,v-4),E0;J:{if(!w){let z;if(J[65]===Symbol.for("react.memo_cache_sentinel"))z=[],J[65]=z;else z=J[65];E0=z;break J}let Y;if(J[66]!==O||J[67]!==A||J[68]!==PJ||J[69]!==C||J[70]!==NJ){let z=JK(O);Y=Array.from(z.entries()).map((H)=>{let[M,p]=H,x=p[0],pJ=O.indexOf(x),TJ=NJ.get(x),yJ=TJ?u0(TJ,A):null;if(p.length===1){let mJ=$0(x,{showProjectPath:C});return{id:`log:${M}:0`,value:{log:x,indexInFiltered:pJ},label:h0(x,PJ),description:yJ?`${mJ}
|
|
2
|
-
${yJ}`:mJ,dimDescription:!0}}let z0=p.length-1,K0=p.slice(1).map((mJ,Qz)=>{let Pz=O.indexOf(mJ),ZY=NJ.get(mJ),YY=ZY?u0(ZY,A):null,zY=$0(mJ,{isChild:!0,showProjectPath:C});return{id:`log:${M}:${Qz+1}`,value:{log:mJ,indexInFiltered:Pz},label:h0(mJ,PJ,{isChild:!0}),description:YY?`${zY}
|
|
3
|
-
${YY}`:zY,dimDescription:!0}}),JY=$0(x,{showProjectPath:C});return{id:`group:${M}`,value:{log:x,indexInFiltered:pJ},label:h0(x,PJ,{isGroupHeader:!0,forkCount:z0}),description:yJ?`${JY}
|
|
4
|
-
${yJ}`:JY,dimDescription:!0,children:K0}}),J[66]=O,J[67]=A,J[68]=PJ,J[69]=C,J[70]=NJ,J[71]=Y}else Y=J[71];E0=Y}let DJ=E0,C0;J:{if(w){let z;if(J[72]===Symbol.for("react.memo_cache_sentinel"))z=[],J[72]=z;else z=J[72];C0=z;break J}let Y;if(J[73]!==O||J[74]!==A||J[75]!==PJ||J[76]!==C||J[77]!==NJ){let z;if(J[79]!==A||J[80]!==PJ||J[81]!==C||J[82]!==NJ)z=(H,M)=>{let x=IJ(H)+(H.isSidechain?" (sidechain)":""),pJ=oY(x,PJ),TJ=g0(H),yJ=C&&H.projectPath?` · ${H.projectPath}`:"",z0=NJ.get(H),K0=z0?u0(z0,A):null;return{label:pJ,description:K0?`${TJ}${yJ}
|
|
5
|
-
${K0}`:TJ+yJ,dimDescription:!0,value:M.toString()}},J[79]=A,J[80]=PJ,J[81]=C,J[82]=NJ,J[83]=z;else z=J[83];Y=O.map(z),J[73]=O,J[74]=A,J[75]=PJ,J[76]=C,J[77]=NJ,J[78]=Y}else Y=J[78];C0=Y}let M0=C0,L=HJ?.value.log??null,yZ;if(J[84]!==O||J[85]!==GJ||J[86]!==L)yZ=()=>{if(!w||!L)return"";let Y=XJ(L);if(!Y)return"";let z=O.filter((x)=>XJ(x)===Y);if(!(z.length>1))return"";let M=GJ.has(Y);if(z.indexOf(L)>0)return"← to collapse";return M?"← to collapse":"→ to expand"},J[84]=O,J[85]=GJ,J[86]=L,J[87]=yZ;else yZ=J[87];let mZ=yZ,LZ;if(J[88]!==L||J[89]!==j||J[90]!==n)LZ=async()=>{let Y=L?XJ(L):void 0;if(!L||!Y){B("list"),BJ("");return}if(n.trim()){if(await eY(Y,n.trim(),L.fullPath),w&&j)j()}B("list"),BJ("")},J[88]=L,J[89]=j,J[90]=n,J[91]=LZ;else LZ=J[91];let j0=LZ,IZ;if(J[92]===Symbol.for("react.memo_cache_sentinel"))IZ=()=>{B("list")},J[92]=IZ;else IZ=J[92];let qz=IZ,bZ;if(J[93]===Symbol.for("react.memo_cache_sentinel"))bZ=()=>{B("search")},J[93]=bZ;else bZ=J[93];let t0=bZ,fZ;if(J[94]!==K||J[95]!==D||J[96]!==F)fZ=async()=>{F.trim();return},J[94]=K,J[95]=D,J[96]=F,J[97]=fZ;else fZ=J[97];let R0=fZ,xZ;if(J[98]!==G.query||J[99]!==G.status||J[100]!==F)xZ=()=>{if(G.status!=="idle"&&G.status!=="searching"){if(G.status==="results"&&G.query!==F||G.status==="error")XZ({status:"idle"})}},J[98]=G.query,J[99]=G.status,J[100]=F,J[101]=xZ;else xZ=J[101];let _Z;if(J[102]!==G||J[103]!==F)_Z=[F,G],J[102]=G,J[103]=F,J[104]=_Z;else _Z=J[104];E.default.useEffect(xZ,_Z);let SZ,pZ;if(J[105]===Symbol.for("react.memo_cache_sentinel"))SZ=()=>()=>{HZ.current?.abort()},pZ=[],J[105]=SZ,J[106]=pZ;else SZ=J[105],pZ=J[106];E.default.useEffect(SZ,pZ);let e0=E.default.useRef(G.status),uZ;if(J[107]!==G.status||J[108]!==O[0]||J[109]!==O.length||J[110]!==DJ)uZ=()=>{let Y=e0.current;if(e0.current=G.status,Y==="searching"&&G.status==="results"){if(w&&DJ.length>0)jJ(DJ[0]);else if(!w&&O.length>0){let z=O[0];jJ({id:"0",value:{log:z,indexInFiltered:0},label:""})}}},J[107]=G.status,J[108]=O[0],J[109]=O.length,J[110]=DJ,J[111]=uZ;else uZ=J[111];let hZ;if(J[112]!==G.status||J[113]!==O||J[114]!==DJ)hZ=[G.status,w,DJ,O],J[112]=G.status,J[113]=O,J[114]=DJ,J[115]=hZ;else hZ=J[115];E.default.useEffect(uZ,hZ);let $Z;if(J[116]!==O)$Z=(Y)=>{let z=parseInt(Y,10),H=O[z];if(!H||wJ.current===z.toString())return;wJ.current=z.toString(),jJ({id:z.toString(),value:{log:H,indexInFiltered:z},label:""}),xJ(z+1)},J[116]=O,J[117]=$Z;else $Z=J[117];let w0=$Z,cZ;if(J[118]!==O)cZ=(Y)=>{jJ(Y);let z=O.findIndex((H)=>XJ(H)===XJ(Y.value.log));if(z>=0)xJ(z+1)},J[118]=O,J[119]=cZ;else cZ=J[119];let A0=cZ,gZ;if(J[120]===Symbol.for("react.memo_cache_sentinel"))gZ=()=>{HZ.current?.abort(),XZ({status:"idle"})},J[120]=gZ;else gZ=J[120];let F0=U!=="preview"&&G.status==="searching",iZ;if(J[121]!==F0)iZ={context:"Confirmation",isActive:F0},J[121]=F0,J[122]=iZ;else iZ=J[122];uJ("confirm:no",gZ,iZ);let lZ;if(J[123]===Symbol.for("react.memo_cache_sentinel"))lZ=()=>{B("list"),BJ("")},J[123]=lZ;else lZ=J[123];let T0=U==="rename"&&G.status!=="searching",rZ;if(J[124]!==T0)rZ={context:"Settings",isActive:T0},J[124]=T0,J[125]=rZ;else rZ=J[125];uJ("confirm:no",lZ,rZ);let nZ;if(J[126]!==P||J[127]!==iJ)nZ=()=>{iJ(""),BZ(!1),P?.()},J[126]=P,J[127]=iJ,J[128]=nZ;else nZ=J[128];let y0=U!=="preview"&&U!=="rename"&&U!=="search"&&e&&G.status!=="searching",dZ;if(J[129]!==y0)dZ={context:"Confirmation",isActive:y0},J[129]=y0,J[130]=dZ;else dZ=J[130];uJ("confirm:no",nZ,dZ);let aZ;if(J[131]!==G.status||J[132]!==g||J[133]!==L||J[134]!==R0||J[135]!==l||J[136]!==QJ||J[137]!==e||J[138]!==D||J[139]!==k||J[140]!==F||J[141]!==iJ||J[142]!==C||J[143]!==i||J[144]!==zJ||J[145]!==lJ||J[146]!==U)aZ=(Y,z)=>{if(U==="preview")return;if(G.status==="searching")return;if(U==="rename");else if(U==="search"){if(Y.toLowerCase()==="n"&&z.ctrl)qz();else if(z.return||z.downArrow)F.trim()}else{if(e){if(z.return){R0(),BZ(!1);return}else if(z.downArrow){BZ(!1);return}else if(z.upArrow){B("search"),BZ(!1);return}}if(QJ&&z.tab){let p=z.shift?-1:1;Q0((x)=>{let TJ=((x<zJ.length?x:0)+zJ.length+p)%zJ.length,yJ=zJ[TJ];return TJ});return}let H=!z.ctrl&&!z.meta,M=Y.toLowerCase();if(M==="a"&&z.ctrl&&k)k();else if(M==="b"&&z.ctrl)hJ(!g);else if(M==="w"&&z.ctrl&&l)$J(!i);else if(M==="/"&&H)B("search");else if(M==="r"&&z.ctrl&&L)B("rename"),BJ("");else if(M==="v"&&z.ctrl&&L)RJ(L),B("preview");else if(L&&H&&Y.length>0&&!/^\s+$/.test(Y))B("search"),iJ(Y)}},J[131]=G.status,J[132]=g,J[133]=L,J[134]=R0,J[135]=l,J[136]=QJ,J[137]=e,J[138]=D,J[139]=k,J[140]=F,J[141]=iJ,J[142]=C,J[143]=i,J[144]=zJ,J[145]=lJ,J[146]=U,J[147]=aZ;else aZ=J[147];let oZ;if(J[148]===Symbol.for("react.memo_cache_sentinel"))oZ={isActive:!0},J[148]=oZ;else oZ=J[148];_Y(aZ,oZ);let OJ;if(J[149]!==g||J[150]!==I||J[151]!==l||J[152]!==i){if(OJ=[],g&&I)OJ.push(I);if(l&&!i)OJ.push("current worktree");J[149]=g,J[150]=I,J[151]=l,J[152]=i,J[153]=OJ}else OJ=J[153];let Bz=OJ.length>0&&U!=="search",Hz=(_?sY:hz)+(Bz?1:0)+Gz,KJ=Math.max(1,Math.floor((b-Hz-2)/tY)),sZ,tZ;if(J[154]!==O.length||J[155]!==d||J[156]!==T||J[157]!==KJ)sZ=()=>{if(!T)return;let Y=KJ*2;if(d+Y>=O.length)T(KJ*3)},tZ=[d,KJ,O.length,T],J[154]=O.length,J[155]=d,J[156]=T,J[157]=KJ,J[158]=sZ,J[159]=tZ;else sZ=J[158],tZ=J[159];if(E.default.useEffect(sZ,tZ),K.length===0)return null;if(U==="preview"&&t&&w){let Y;if(J[160]===Symbol.for("react.memo_cache_sentinel"))Y=()=>{B("list"),RJ(null)},J[160]=Y;else Y=J[160];let z;if(J[161]!==W||J[162]!==t)z=X(PY,{log:t,onExit:Y,onSelect:W}),J[161]=W,J[162]=t,J[163]=z;else z=J[163];return z}let m0=b-1,eZ;if(J[164]===Symbol.for("react.memo_cache_sentinel"))eZ=_?null:X(m,{flexShrink:0,children:X($Y,{color:"suggestion"})}),J[164]=eZ;else eZ=J[164];let J0;if(J[165]===Symbol.for("react.memo_cache_sentinel"))J0=_?null:X(m,{flexShrink:0,children:X(N,{children:" "})}),J[165]=J0;else J0=J[165];let nJ;if(J[166]!==v||J[167]!==O.length||J[168]!==MZ||J[169]!==d||J[170]!==QJ||J[171]!==C||J[172]!==zJ||J[173]!==U||J[174]!==KJ)nJ=QJ?X(EY,{tabs:zJ,selectedIndex:MZ,availableWidth:v,showAllProjects:C}):X(m,{flexShrink:0,children:y(N,{bold:!0,color:"suggestion",children:["Resume Session",U==="list"&&O.length>KJ&&y(N,{dimColor:!0,children:[" ","(",d," of ",O.length,")"]})]})}),J[166]=v,J[167]=O.length,J[168]=MZ,J[169]=d,J[170]=QJ,J[171]=C,J[172]=zJ,J[173]=U,J[174]=KJ,J[175]=nJ;else nJ=J[175];let L0=U==="search",dJ;if(J[176]!==S||J[177]!==O0||J[178]!==F||J[179]!==L0)dJ=X(gY,{query:F,isFocused:L0,isTerminalFocused:S,cursorOffset:O0}),J[176]=S,J[177]=O0,J[178]=F,J[179]=L0,J[180]=dJ;else dJ=J[180];let aJ;if(J[181]!==OJ||J[182]!==U)aJ=OJ.length>0&&U!=="search"&&X(m,{flexShrink:0,paddingLeft:2,children:X(N,{dimColor:!0,children:X(kJ,{children:OJ})})}),J[181]=OJ,J[182]=U,J[183]=aJ;else aJ=J[183];let Z0;if(J[184]===Symbol.for("react.memo_cache_sentinel"))Z0=X(m,{flexShrink:0,children:X(N,{children:" "})}),J[184]=Z0;else Z0=J[184];let oJ;if(J[185]!==G.status)oJ=G.status==="searching"&&y(m,{paddingLeft:1,flexShrink:0,children:[X(iY,{}),X(N,{children:" Searching…"})]}),J[185]=G.status,J[186]=oJ;else oJ=J[186];let sJ;if(J[187]!==G.results||J[188]!==G.status)sJ=G.status==="results"&&G.results.length>0&&X(m,{paddingLeft:1,marginBottom:1,flexShrink:0,children:X(N,{dimColor:!0,italic:!0,children:"Claude found these results:"})}),J[187]=G.results,J[188]=G.status,J[189]=sJ;else sJ=J[189];let tJ;if(J[190]!==G.results||J[191]!==G.status||J[192]!==SJ)tJ=G.status==="results"&&G.results.length===0&&SJ.length===0&&X(m,{paddingLeft:1,marginBottom:1,flexShrink:0,children:X(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[190]=G.results,J[191]=G.status,J[192]=SJ,J[193]=tJ;else tJ=J[193];let eJ;if(J[194]!==G.status||J[195]!==SJ)eJ=G.status==="error"&&SJ.length===0&&X(m,{paddingLeft:1,marginBottom:1,flexShrink:0,children:X(N,{dimColor:!0,italic:!0,children:"No matching sessions found."})}),J[194]=G.status,J[195]=SJ,J[196]=eJ;else eJ=J[196];let JZ;if(J[197]!==G.status||J[198]!==e||J[199]!==D||J[200]!==F)JZ=Boolean(F.trim())&&D&&!1,J[197]=G.status,J[198]=e,J[199]=D,J[200]=F,J[201]=JZ;else JZ=J[201];let ZZ;if(J[202]!==G.status||J[203]!==g||J[204]!==v||J[205]!==O||J[206]!==GJ||J[207]!==M0||J[208]!==L||J[209]!==HJ?.id||J[210]!==w0||J[211]!==j0||J[212]!==A0||J[213]!==e||J[214]!==P||J[215]!==W||J[216]!==WJ||J[217]!==n||J[218]!==DJ||J[219]!==U||J[220]!==KJ)ZZ=G.status==="searching"?null:U==="rename"&&L?y(m,{paddingLeft:2,flexDirection:"column",children:[X(N,{bold:!0,children:"Rename session:"}),X(m,{paddingTop:1,children:X(lY,{value:n,onChange:BJ,onSubmit:j0,placeholder:IJ(L,"Enter new session name"),columns:v,cursorOffset:WJ,onChangeCursorOffset:cJ,showCursor:!0})})]}):w?X(RY,{nodes:DJ,onSelect:(Y)=>{W(Y.value.log)},onFocus:A0,onCancel:P,focusNodeId:HJ?.id,visibleOptionCount:KJ,layout:"expanded",isDisabled:U==="search"||e,hideIndexes:!1,isNodeExpanded:(Y)=>{if(U==="search"||g)return!0;let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;return z?GJ.has(z):!1},onExpand:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)gJ((H)=>new Set(H).add(z))},onCollapse:(Y)=>{let z=typeof Y==="string"&&Y.startsWith("group:")?Y.substring(6):null;if(z)gJ((H)=>{let M=new Set(H);return M.delete(z),M})},onUpFromFirstItem:t0}):X(B0,{options:M0,onChange:(Y)=>{let z=parseInt(Y,10),H=O[z];if(H)W(H)},visibleOptionCount:KJ,onCancel:P,onFocus:w0,defaultFocusValue:HJ?.id.toString(),layout:"expanded",isDisabled:U==="search"||e,onUpFromFirstItem:t0}),J[202]=G.status,J[203]=g,J[204]=v,J[205]=O,J[206]=GJ,J[207]=M0,J[208]=L,J[209]=HJ?.id,J[210]=w0,J[211]=j0,J[212]=A0,J[213]=e,J[214]=P,J[215]=W,J[216]=WJ,J[217]=n,J[218]=DJ,J[219]=U,J[220]=KJ,J[221]=ZZ;else ZZ=J[221];let YZ;if(J[222]!==G.status||J[223]!==I||J[224]!==R.keyName||J[225]!==R.pending||J[226]!==mZ||J[227]!==l||J[228]!==e||J[229]!==k0||J[230]!==k||J[231]!==C||J[232]!==i||J[233]!==U)YZ=X(m,{paddingLeft:2,children:R.pending?y(N,{dimColor:!0,children:["Press ",R.keyName," again to exit"]}):U==="rename"?X(N,{dimColor:!0,children:y(kJ,{children:[X(UJ,{shortcut:"Enter",action:"save"}),X(EJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):G.status==="searching"?X(N,{dimColor:!0,children:y(kJ,{children:[X(N,{children:"Searching with Claude…"}),X(EJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):e?X(N,{dimColor:!0,children:y(kJ,{children:[X(UJ,{shortcut:"Enter",action:"search"}),X(UJ,{shortcut:"↓",action:"skip"}),X(EJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"})]})}):U==="search"?X(N,{dimColor:!0,children:y(kJ,{children:[X(N,{children:"Type to Search"}),X(UJ,{shortcut:"Enter",action:"select"}),X(EJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"clear"})]})}):X(N,{dimColor:!0,children:y(kJ,{children:[k&&X(UJ,{shortcut:"Ctrl+A",action:`show ${C?"current dir":"all projects"}`}),I&&X(UJ,{shortcut:"Ctrl+B",action:"toggle branch"}),l&&X(UJ,{shortcut:"Ctrl+W",action:`show ${i?"current worktree":"all worktrees"}`}),X(UJ,{shortcut:"Ctrl+V",action:"preview"}),X(UJ,{shortcut:"Ctrl+R",action:"rename"}),X(N,{children:"Type to search"}),X(EJ,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"}),mZ()&&X(N,{children:mZ()})]})})}),J[222]=G.status,J[223]=I,J[224]=R.keyName,J[225]=R.pending,J[226]=mZ,J[227]=l,J[228]=e,J[229]=k0,J[230]=k,J[231]=C,J[232]=i,J[233]=U,J[234]=YZ;else YZ=J[234];let Y0;if(J[235]!==m0||J[236]!==nJ||J[237]!==dJ||J[238]!==aJ||J[239]!==oJ||J[240]!==sJ||J[241]!==tJ||J[242]!==eJ||J[243]!==JZ||J[244]!==ZZ||J[245]!==YZ)Y0=y(m,{flexDirection:"column",height:m0,children:[eZ,J0,nJ,dJ,aJ,Z0,oJ,sJ,tJ,eJ,JZ,ZZ,YZ]}),J[235]=m0,J[236]=nJ,J[237]=dJ,J[238]=aJ,J[239]=oJ,J[240]=sJ,J[241]=tJ,J[242]=eJ,J[243]=JZ,J[244]=ZZ,J[245]=YZ,J[246]=Y0;else Y0=J[246];return Y0}function lz(Z){return Z.log}function rz(Z){return Z.messages[0]?.uuid}function nz(Z,J,K,Q){if(!Z)return;let q=Z.search(J);q.sort(az),K({results:q.map(dz),query:J}),Q(!1)}function dz(Z){return{log:Z.item.log,score:Z.score,searchableText:Z.item.searchableText}}function az(Z,J){let K=new Date(Z.item.log.modified).getTime(),q=new Date(J.item.log.modified).getTime()-K;if(Math.abs(q)>cz)return q;return(Z.score??1)-(J.score??1)}function oz(Z){let J=TY(),K=XJ(Z);if(J&&K===J)return!0;if(Z.customTitle)return!0;if(rY(Z.messages))return!0;if(Z.firstPrompt||Z.customTitle)return!0;return!1}function sz(Z){return[Z,ez(Z)]}function tz(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function ez(Z){let K=(Z.messages.length<=$z?Z.messages:[...Z.messages.slice(0,AY),...Z.messages.slice(-AY)]).map(tz).filter(Boolean).join(" "),q=`${[Z.customTitle,Z.summary,Z.firstPrompt,Z.gitBranch,Z.tag,Z.prNumber?`PR #${Z.prNumber}`:void 0,Z.prRepository].filter(Boolean).join(" ")} ${K}`.trim();return q.length>FY?q.slice(0,FY):q}function JK(Z){let J=new Map;for(let K of Z){let Q=XJ(K);if(Q){let q=J.get(Q);if(q)q.push(K);else J.set(Q,[K])}}return J.forEach((K)=>K.sort((Q,q)=>new Date(q.modified).getTime()-new Date(Q.modified).getTime())),J}function ZK(Z){let J=new Set;for(let K of Z)if(K.tag)J.add(K.tag);return Array.from(J).sort((K,Q)=>K.localeCompare(Q))}var aY,E,pz=2,uz=4,hz=8,sY=6,tY=3,$z=2000,AY=1000,FY=50000,cz=60000,gz=50;var YK=KZ(()=>{wz();yY();mz();bz();yz();Fz();U0();UY();b0();Sz();Az();LY();V0();Tz();VY();Lz();MY();GY();Iz();XY();fz();DY();xz();CY();_z();wY();LJ();aY=zZ(x0(),1),E=zZ(f0(),1)});function qK(Z){if(Z.type!=="user"&&Z.type!=="assistant")return"";let J="message"in Z?Z.message?.content:void 0;if(!J)return"";if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if("text"in K&&typeof K.text==="string")return K.text;return""}).filter(Boolean).join(" ");return""}function Uz(Z){if(Z.length===0)return"";let K=(Z.length<=i0?Z:[...Z.slice(0,i0/2),...Z.slice(-i0/2)]).map(qK).filter(Boolean).join(" ").replace(/\s+/g," ").trim();return K.length>Jz?K.slice(0,Jz)+"…":K}function Zz(Z,J){if(IJ(Z).toLowerCase().includes(J))return!0;if(Z.customTitle?.toLowerCase().includes(J))return!0;if(Z.tag?.toLowerCase().includes(J))return!0;if(Z.gitBranch?.toLowerCase().includes(J))return!0;if(Z.summary?.toLowerCase().includes(J))return!0;if(Z.firstPrompt?.toLowerCase().includes(J))return!0;if(Z.messages&&Z.messages.length>0){if(Uz(Z.messages).toLowerCase().includes(J))return!0}return!1}async function NU(Z,J,K){if(!Z.trim()||J.length===0)return[];let Q=Z.toLowerCase(),q=J.filter((V)=>Zz(V,Q)),P;if(q.length>=l0)P=q.slice(0,l0);else{let V=J.filter((D)=>!Zz(D,Q)),k=l0-q.length;P=[...q,...V.slice(0,k)]}vJ(`Agentic search: ${P.length}/${J.length} logs, query="${Z}", matching: ${q.length}, with messages: ${r0(P,(V)=>V.messages?.length>0)}`);let W=P.map(async(V)=>{if(VZ(V))try{return await X0(V)}catch(k){return n0(k),V}return V}),j=await Promise.all(W);vJ(`Agentic search: loaded ${r0(j,(V)=>V.messages?.length>0)}/${P.length} logs with transcripts`);let u=`Sessions:
|
|
6
|
-
${j.map((V,k)=>{let D=[`${k}:`],b=IJ(V);if(D.push(b),V.customTitle&&V.customTitle!==b)D.push(`[custom title: ${V.customTitle}]`);if(V.tag)D.push(`[tag: ${V.tag}]`);if(V.gitBranch)D.push(`[branch: ${V.gitBranch}]`);if(V.summary)D.push(`- Summary: ${V.summary}`);if(V.firstPrompt&&V.firstPrompt!=="No prompt")D.push(`- First message: ${V.firstPrompt.slice(0,300)}`);if(V.messages&&V.messages.length>0){let C=Uz(V.messages);if(C)D.push(`- Transcript: ${C}`)}return D.join(" ")}).join(`
|
|
7
|
-
`)}
|
|
8
|
-
|
|
9
|
-
Search query: "${Z}"
|
|
10
|
-
|
|
11
|
-
Find the sessions that are most relevant to this query.`;vJ(`Agentic search prompt (first 500 chars): ${u.slice(0,500)}...`);try{let V=zz();vJ(`Agentic search using model: ${V}`);let D=(await Kz({model:V,system:GK,messages:[{role:"user",content:u}],signal:K,querySource:"session_search"})).content.find((h)=>h.type==="text");if(!D||D.type!=="text")return vJ("No text content in agentic search response"),[];vJ(`Agentic search response: ${D.text}`);let b=D.text.match(/\{[\s\S]*\}/);if(!b)return vJ("Could not find JSON in agentic search response"),[];let _=(Yz(b[0]).relevant_indices||[]).filter((h)=>h>=0&&h<j.length).map((h)=>j[h]);return vJ(`Agentic search found ${_.length} relevant sessions`),_}catch(V){return n0(V),vJ(`Agentic search error: ${V}`),[]}}var Jz=2000,i0=100,l0=100,GK=`Your goal is to find relevant sessions based on a user's search query.
|
|
12
|
-
|
|
13
|
-
You will be given a list of sessions with their metadata and a search query. Identify which sessions are most relevant to the query.
|
|
14
|
-
|
|
15
|
-
Each session may include:
|
|
16
|
-
- Title (display name or custom title)
|
|
17
|
-
- Tag (user-assigned category, shown as [tag: name] - users tag sessions with /tag command to categorize them)
|
|
18
|
-
- Branch (git branch name, shown as [branch: name])
|
|
19
|
-
- Summary (AI-generated summary)
|
|
20
|
-
- First message (beginning of the conversation)
|
|
21
|
-
- Transcript (excerpt of conversation content)
|
|
22
|
-
|
|
23
|
-
IMPORTANT: Tags are user-assigned labels that indicate the session's topic or category. If the query matches a tag exactly or partially, those sessions should be highly prioritized.
|
|
24
|
-
|
|
25
|
-
For each session, consider (in order of priority):
|
|
26
|
-
1. Exact tag matches (highest priority - user explicitly categorized this session)
|
|
27
|
-
2. Partial tag matches or tag-related terms
|
|
28
|
-
3. Title matches (custom titles or first message content)
|
|
29
|
-
4. Branch name matches
|
|
30
|
-
5. Summary and transcript content matches
|
|
31
|
-
6. Semantic similarity and related concepts
|
|
32
|
-
|
|
33
|
-
CRITICAL: Be VERY inclusive in your matching. Include sessions that:
|
|
34
|
-
- Contain the query term anywhere in any field
|
|
35
|
-
- Are semantically related to the query (e.g., "testing" matches sessions about "tests", "unit tests", "QA", etc.)
|
|
36
|
-
- Discuss topics that could be related to the query
|
|
37
|
-
- Have transcripts that mention the concept even in passing
|
|
38
|
-
|
|
39
|
-
When in doubt, INCLUDE the session. It's better to return too many results than too few. The user can easily scan through results, but missing relevant sessions is frustrating.
|
|
40
|
-
|
|
41
|
-
Return sessions ordered by relevance (most relevant first). If truly no sessions have ANY connection to the query, return an empty array - but this should be rare.
|
|
42
|
-
|
|
43
|
-
Respond with ONLY the JSON object, no markdown formatting:
|
|
44
|
-
{"relevant_indices": [2, 5, 0]}`;var BK=KZ(()=>{UK();KK();LY();XK();V0();VK();zK()});function RU(Z,J,K){let Q=H0();if(!J||!Z.projectPath||Z.projectPath===Q)return{isCrossProject:!1};let q=XJ(Z);return{isCrossProject:!0,isSameRepoWorktree:!1,command:`cd ${Xz([Z.projectPath])} && claude --resume ${q}`,projectPath:Z.projectPath}}var QK=KZ(()=>{yY();HK();V0()});
|
|
45
|
-
export{GU as ge,qU as he,YK as ie,NU as je,BK as ke,RU as le,QK as me};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{Lb as d}from"./cli-1.1.32-h23ch6fy.mjs";import{GV as v,HV as U,JV as f,KV as O,MV as b,NV as h,OV as c,TV as i}from"./cli-1.1.32-1c9z2mtv.mjs";import{D6 as u,w6 as y}from"./cli-1.1.32-a3dfp7ps.mjs";import{I6 as B,J6 as A}from"./cli-1.1.32-czrfbd3q.mjs";import{b9 as p,t9 as s}from"./cli-1.1.32-g5dzf2w1.mjs";import{W_ as Y,Y_ as I}from"./cli-1.1.32-pve0ffcp.mjs";import{Dja as G,Gja as D,gja as H,hja as m,lja as T}from"./cli-1.1.32-8jkgzjh4.mjs";import{bka as q,cka as S,ika as F}from"./cli-1.1.32-z7x4jfeb.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 Cb,k as Db,a as Eb,YJ as Fb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{uha as W,xha as M}from"./cli-1.1.32-kn0zs89y.mjs";import{pja as k,tja as L}from"./cli-1.1.32-8jkgzjh4.mjs";import J from"node:path";import y from"node:os";import R from"node:process";var S=Object.freeze([""," ",".",".."," .",". "," ..",".. ","../","../foo","foo/../bar","foo/bar","foo\\bar","foo\x00bar"]);function x(u){if(typeof u!=="string")return!1;let O=u.trim();return O!==""&&O!=="."&&O!==".."&&!u.includes("/")&&!u.includes("\\")&&!u.includes("\x00")}function Q(u){if(typeof u!=="string")throw TypeError("Expected a string");if(!x(u))throw Error(`Unsafe filename: ${JSON.stringify(u)}`)}var U=y.homedir(),V=y.tmpdir(),{env:$}=R,w=(u)=>{let O=J.join(U,"Library");return{data:J.join(O,"Application Support",u),config:J.join(O,"Preferences",u),cache:J.join(O,"Caches",u),log:J.join(O,"Logs",u),temp:J.join(V,u)}},F=(u)=>{let O=$.APPDATA||J.join(U,"AppData","Roaming"),K=$.LOCALAPPDATA||J.join(U,"AppData","Local");return{data:J.join(K,u,"Data"),config:J.join(O,u,"Config"),cache:J.join(K,u,"Cache"),log:J.join(K,u,"Log"),temp:J.join(V,u)}},G=(u)=>{let O=J.basename(U);return{data:J.join($.XDG_DATA_HOME||J.join(U,".local","share"),u),config:J.join($.XDG_CONFIG_HOME||J.join(U,".config"),u),cache:J.join($.XDG_CACHE_HOME||J.join(U,".cache"),u),log:J.join($.XDG_STATE_HOME||J.join(U,".local","state"),u),temp:J.join(V,O,u)}};function Y(u,{suffix:O="nodejs"}={}){if(Q(u),O)u+=`-${O}`;if(Q(u),R.platform==="darwin")return w(u);if(R.platform==="win32")return F(u);return G(u)}L();M();import{join as q}from"path";var B=Y("claude-cli"),E=200;function b(u){let O=u.replace(/[^a-zA-Z0-9]/g,"-");if(O.length<=E)return O;return`${O.slice(0,E)}-${Math.abs(W(u)).toString(36)}`}function C(u){return b(u)}var A={baseLogs:()=>q(B.cache,C(k().cwd())),errors:()=>q(B.cache,C(k().cwd()),"errors"),messages:()=>q(B.cache,C(k().cwd()),"messages"),mcpLogs:(u)=>q(B.cache,C(k().cwd()),`mcp-logs-${b(u)}`)};
|
|
2
|
-
export{A as nb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ix as I,jx as i,pL as E,qL as n}from"./cli-1.1.32-9yka8m9x.mjs";import{cba as G,dba as s,eba as f,fba as WH,gba as _,hba as XH}from"./cli-1.1.32-pve0ffcp.mjs";import{Pia as y,Qia as qH,Zia as j,_ia as BH,dja as b,eja as YH}from"./cli-1.1.32-8jkgzjh4.mjs";import{Ala as F,Ama as z,Bla as QH,Bma as u,Cla as C,Dla as e,Ola as P,Pla as HH,sma as m,tma as $H,wma as q,xma as U,yma as B,zma as p}from"./cli-1.1.32-60pc6r2s.mjs";import{Qpa as Y,Rpa as t}from"./cli-1.1.32-hbwke9cs.mjs";import{Wqa as Z}from"./cli-1.1.32-yw64r19c.mjs";function c(H,J){return J.length<2?H:z(H,I(J,0,-1))}var M;var N=Z(()=>{u();i();M=c});function r(H,J){J=q(J,H);var Q=-1,W=J.length;if(!W)return!0;while(++Q<W){var V=B(J[Q]);if(V==="__proto__"&&!l.call(H,"__proto__"))return!1;if((V==="constructor"||V==="prototype")&&Q<W-1)return!1}var X=M(H,J);return X==null||delete X[B(E(J))]}var o,l,K;var D=Z(()=>{U();n();N();p();o=Object.prototype,l=o.hasOwnProperty;K=r});function a(H){return G(H)?void 0:H}var w;var x=Z(()=>{s();w=a});function JH(H){return C(H)||P(H)||!!(L&&H&&H[L])}var L,k;var R=Z(()=>{t();HH();e();L=Y?Y.isConcatSpreadable:void 0;k=JH});function T(H,J,Q,W,V){var X=-1,h=H.length;Q||(Q=k),V||(V=[]);while(++X<h){var $=H[X];if(J>0&&Q($))if(J>1)T($,J-1,Q,W,V);else F(V,$);else if(!W)V[V.length]=$}return V}var A;var S=Z(()=>{QH();R();A=T});function VH(H){var J=H==null?0:H.length;return J?A(H,1):[]}var O;var g=Z(()=>{S();O=VH});function ZH(H){return _(f(H,void 0,O),H+"")}var d;var v=Z(()=>{g();WH();XH();d=ZH});var zH=1,IH=2,MH=4,NH,lH;var UH=Z(()=>{$H();YH();D();U();qH();x();v();BH();NH=d(function(H,J){var Q={};if(H==null)return Q;var W=!1;if(J=m(J,function(X){return X=q(X,H),W||(W=X.length>1),X}),y(H,j(H),Q),W)Q=b(Q,zH|IH|MH,w);var V=J.length;while(V--)K(Q,J[V]);return Q}),lH=NH});
|
|
2
|
-
export{lH as Jf,UH as Kf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Y5 as Z,Z5 as T,d6 as f,j6 as WB}from"./cli-1.1.32-vf3r8a91.mjs";import{J_ as w,K_ as JB,P_ as _,Xea as v,Y9 as O,Z9 as BB,cfa as QB}from"./cli-1.1.32-pve0ffcp.mjs";import{Rha as A,Tha as KB}from"./cli-1.1.32-m7dxkbpn.mjs";import{oka as F,wka as e}from"./cli-1.1.32-7zp3b6gq.mjs";import{Cla as S,Dla as s,Hpa as a,cla as R,gma as U,hma as i,sma as M,tma as m}from"./cli-1.1.32-60pc6r2s.mjs";import{eqa as q,fqa as t}from"./cli-1.1.32-hbwke9cs.mjs";import{Wqa as K}from"./cli-1.1.32-yw64r19c.mjs";function u(B,J){return B+b(h()*(J-B+1))}var b,h,x;var G=K(()=>{b=Math.floor,h=Math.random;x=u});function p(B){var J=B.length;return J?B[x(0,J-1)]:void 0}var Y;var H=K(()=>{G();Y=p});function l(B,J){return M(J,function(X){return B[X]})}var z;var P=K(()=>{m();z=l});function c(B){return B==null?[]:z(B,U(B))}var C;var I=K(()=>{P();i();C=c});function n(B){return Y(C(B))}var k;var E=K(()=>{H();I();k=n});function o(B){var J=S(B)?Y:k;return J(B)}var kB;var r=K(()=>{H();E();s();kB=o});async function vB(){if(W===null&&!Q)Q=YB(),W=await Q,Q=null,g.cache.clear?.()}function TB(){W=null,Q=null,g.cache.clear?.(),j.cache.clear?.()}function XB(){if(W!==null)return W;let B=Z();if(B?.emailAddress)return B.emailAddress;return}async function YB(){let B=Z();if(B?.emailAddress)return B.emailAddress;return j()}var W=null,Q=null,g,j;var ZB=K(()=>{BB();t();a();WB();QB();KB();JB();e();g=q((B)=>{let J=v(),X=_(),$,N,D;if(B){if($=T()??void 0,N=f()??void 0,$&&X.claudeCodeFirstTokenDate){let V=new Date(X.claudeCodeFirstTokenDate).getTime();if(!isNaN(V))D=V}}let L=Z(),d=L?.organizationUuid,y=L?.accountUuid;return{deviceId:J,sessionId:R(),email:XB(),appVersion:"99.0.0",platform:w(),organizationUuid:d,accountUuid:y,userType:void 0,subscriptionType:$,rateLimitTier:N,firstTokenTime:D,...F(process.env.GITHUB_ACTIONS)&&{githubActionsMetadata:{actor:process.env.GITHUB_ACTOR,actorId:process.env.GITHUB_ACTOR_ID,repository:process.env.GITHUB_REPOSITORY,repositoryId:process.env.GITHUB_REPOSITORY_ID,repositoryOwner:process.env.GITHUB_REPOSITORY_OWNER,repositoryOwnerId:process.env.GITHUB_REPOSITORY_OWNER_ID}}}});j=q(async()=>{let B=await O("git config --get user.email",{shell:!0,reject:!1,cwd:A()});return B.exitCode===0&&B.stdout?B.stdout.trim():void 0})});
|
|
2
|
-
export{kB as $T,r as aU,vB as bU,TB as cU,j as dU,ZB as eU};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{CF as V,DF as E,nF as U,oF as A}from"./cli-1.1.32-9yka8m9x.mjs";import{$V as W,fW as G}from"./cli-1.1.32-qzjfn21e.mjs";import{LY as O,cY as F,eY as H}from"./cli-1.1.32-hgjgfp8p.mjs";import{n2 as q,o2 as K,p2 as L}from"./cli-1.1.32-jjanec91.mjs";import{q2 as I}from"./cli-1.1.32-6f9r9qcb.mjs";import{Q5 as Q,j6 as p}from"./cli-1.1.32-vf3r8a91.mjs";import{N_ as M,P_ as N,cfa as $}from"./cli-1.1.32-pve0ffcp.mjs";import{Sqa as Z,Wqa as _}from"./cli-1.1.32-yw64r19c.mjs";function b({onDone:J}){let z=w.useRef(J);z.current=J;let X=w.useCallback(()=>{z.current("dismiss")},[]);w.useEffect(()=>{M((y)=>{if(y.remoteDialogSeen)return y;return{...y,remoteDialogSeen:!0}})},[]);let Y=w.useCallback((y)=>{z.current(y)},[]);return q(V,{title:"Remote Control",children:K(F,{flexDirection:"column",paddingX:2,paddingY:1,children:[K(F,{marginBottom:1,flexDirection:"column",children:[q(H,{children:"Remote Control lets you access this CLI session from the web (claude.ai/code) or the Claude app, so you can pick up where you left off on any device."}),q(H,{children:" "}),q(H,{children:"You can disconnect remote access anytime by running /remote-control again."})]}),q(F,{children:q(U,{options:[{label:"Enable Remote Control for this session",description:"Opens a secure connection to claude.ai.",value:"enable"},{label:"Never mind",description:"You can always enable it later with /remote-control.",value:"dismiss"}],onChange:Y,onCancel:X})})]})})}function d(){if(N().remoteDialogSeen)return!1;if(!W())return!1;if(!Q()?.accessToken)return!1;return!0}var w;var P=_(()=>{G();O();p();$();A();E();L();w=Z(I(),1)});
|
|
2
|
-
export{b as Zb,d as _b,P as $b};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Iaa as T,Uaa as $}from"./cli-1.1.32-pve0ffcp.mjs";import{Rha as J,Tha as Y}from"./cli-1.1.32-m7dxkbpn.mjs";import{Dja as E,Gja as X}from"./cli-1.1.32-8jkgzjh4.mjs";import{Wqa as V}from"./cli-1.1.32-yw64r19c.mjs";function j(){B.clear()}async function P(){let q=await Z();if(!q)return null;if(q.host!=="github.com")return null;return`${q.owner}/${q.name}`}async function Z(){let q=J();if(B.has(q))return B.get(q)??null;try{let x=await T();if(E(`Git remote URL: ${x}`),!x)return E("No git remote URL found"),B.set(q,null),null;let z=Q(x);return E(`Parsed repository: ${z?`${z.host}/${z.owner}/${z.name}`:null} from URL: ${x}`),B.set(q,z),z}catch(x){return E(`Error detecting repository: ${x}`),B.set(q,null),null}}function S(){let q=B.get(J());if(!q||q.host!=="github.com")return null;return`${q.owner}/${q.name}`}function Q(q){let x=q.trim(),z=x.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]){if(!O(z[1]))return null;return{host:z[1],owner:z[2],name:z[3]}}let A=x.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(A?.[1]&&A[2]&&A[3]&&A[4]){let I=A[1],K=A[2],N=K.split(":")[0]??"";if(!O(N))return null;return{host:I==="https"||I==="http"?K:N,owner:A[3],name:A[4]}}return null}function D(q){let x=q.trim(),z=Q(x);if(z){if(z.host!=="github.com")return null;return`${z.owner}/${z.name}`}if(!x.includes("://")&&!x.includes("@")&&x.includes("/")){let A=x.split("/");if(A.length===2&&A[0]&&A[1]){let I=A[1].replace(/\.git$/,"");return`${A[0]}/${I}`}}return E(`Could not parse repository from: ${x}`),null}function O(q){if(!q.includes("."))return!1;let x=q.split(".").pop();if(!x)return!1;return/^[a-zA-Z]+$/.test(x)}var B;var _=V(()=>{Y();X();$();B=new Map});
|
|
2
|
-
export{j as F9,P as G9,Z as H9,S as I9,Q as J9,D as K9,_ as L9};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function t(s){if(s===null||typeof s!=="object")return s;let e=s;if("requestId"in e&&!("request_id"in e))e.request_id=e.requestId,delete e.requestId;if("response"in e&&e.response!==null&&typeof e.response==="object"){let n=e.response;if("requestId"in n&&!("request_id"in n))n.request_id=n.requestId,delete n.requestId}return s}
|
|
2
|
-
export{t as Tb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ib as S}from"./cli-1.1.32-1t75hwdn.mjs";import{Tc as P,Xc as Tq}from"./cli-1.1.32-n6rpvpf2.mjs";import{$c as v,_c as I,ad as $,bd as Vq}from"./cli-1.1.32-n9vdkdfk.mjs";import{HN as M,IN as E,Ip as D,KN as Jq,LN as f,Lp as a,Lq as F,MN as Qq,Mq as s,Qv as N,Rv as e,Vv as L,Xv as qq,iM as A,jM as Gq,rv as C,sz as h,uz as Bq,xv as r}from"./cli-1.1.32-9yka8m9x.mjs";import{q2 as t}from"./cli-1.1.32-6f9r9qcb.mjs";import{Dga as n,W_ as y,Y_ as l,pba as w,rba as o,yga as _}from"./cli-1.1.32-pve0ffcp.mjs";import{Dja as j,Gja as d}from"./cli-1.1.32-8jkgzjh4.mjs";import{aka as x,ika as p}from"./cli-1.1.32-z7x4jfeb.mjs";import{Sqa as i}from"./cli-1.1.32-yw64r19c.mjs";Qq();qq();Jq();Vq();o();d();l();p();n();s();Gq();r();e();Bq();var T=i(t(),1);Tq();a();function Fq({enabled:V=!0}={}){let c=T.useSyncExternalStore(v,I,I),H=E(),O=M((J)=>J.plugins.needsRefresh),{addNotification:z}=f(),R=T.useCallback(async()=>{try{let{enabled:J,disabled:W,errors:Q}=await D();await S();let Z=P();if(Object.keys(Z).length>0)z({key:"plugin-delisted-flagged",text:"Plugins flagged. Check /plugins",color:"warning",priority:"high"});let X=[],Y=[];try{X=await A(),$(X)}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-commands",error:`Failed to load plugin commands: ${B}`}),$([])}try{Y=await F()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-agents",error:`Failed to load plugin agents: ${B}`})}try{await C()}catch(q){let B=q instanceof Error?q.message:String(q);Q.push({type:"generic-error",source:"plugin-hooks",error:`Failed to load plugin hooks: ${B}`})}let b=(await Promise.all(J.map(async(q)=>{if(q.mcpServers)return Object.keys(q.mcpServers).length;let B=await h(q,Q);if(B)q.mcpServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0),m=(await Promise.all(J.map(async(q)=>{if(q.lspServers)return Object.keys(q.lspServers).length;let B=await N(q,Q);if(B)q.lspServers=B;return B?Object.keys(B).length:0}))).reduce((q,B)=>q+B,0);L(),H((q)=>{let B=q.plugins.errors.filter((G)=>G.source==="lsp-manager"||G.source.startsWith("plugin:")),K=new Set(Q.map((G)=>G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`)),U=[...B.filter((G)=>{let g=G.type==="generic-error"?`generic-error:${G.source}:${G.error}`:`${G.type}:${G.source}`;return!K.has(g)}),...Q];return{...q,plugins:{...q.plugins,enabled:J,disabled:W,commands:[],errors:U}}}),j(`Loaded plugins - Enabled: ${J.length}, Disabled: ${W.length}, Commands: ${X.length}, Agents: ${Y.length}, Errors: ${Q.length}`);let u=J.reduce((q,B)=>{if(!B.hooksConfig)return q;return q+Object.values(B.hooksConfig).reduce((K,k)=>K+(k?.reduce((U,G)=>U+G.hooks.length,0)??0),0)},0);return{enabled_count:J.length,disabled_count:W.length,inline_count:w(J,(q)=>q.source.endsWith("@inline")),marketplace_count:w(J,(q)=>!q.source.endsWith("@inline")),error_count:Q.length,skill_count:X.length,agent_count:Y.length,hook_count:u,mcp_count:b,lsp_count:m}}catch(J){let W=x(J);return _(W),j(`Error loading plugins: ${J}`),$([]),H((Q)=>{let Z=Q.plugins.errors.filter((Y)=>Y.source==="lsp-manager"||Y.source.startsWith("plugin:")),X={type:"generic-error",source:"plugin-system",error:W.message};return{...Q,plugins:{...Q.plugins,enabled:[],disabled:[],commands:[],errors:[...Z,X]}}}),{enabled_count:0,disabled_count:0,inline_count:0,marketplace_count:0,error_count:1,skill_count:0,agent_count:0,hook_count:0,mcp_count:0,lsp_count:0,load_failed:!0,ant_enabled_names:void 0}}},[H,z]);return T.useEffect(()=>{if(!V)return;R().then((J)=>{let{ant_enabled_names:W,...Q}=J,Z={...Q,has_custom_plugin_cache_dir:!!process.env.CLAUDIN_PLUGIN_CACHE_DIR};y("info","plugins_loaded",Z)})},[R,V]),T.useEffect(()=>{if(V)return;$([])},[V]),T.useEffect(()=>{if(!V||!O)return;z({key:"plugin-reload-pending",text:"Plugins changed. Run /reload-plugins to activate.",color:"suggestion",priority:"low"})},[V,O,z]),V?c:[]}
|
|
2
|
-
export{Fq as hb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{HN as C,KN as X}from"./cli-1.1.32-9yka8m9x.mjs";import{q2 as W}from"./cli-1.1.32-6f9r9qcb.mjs";import{E4 as J,L4 as V,t4 as I}from"./cli-1.1.32-vf3r8a91.mjs";import{i$ as H,j$ as T}from"./cli-1.1.32-pve0ffcp.mjs";import{Sqa as P,Wqa as Q}from"./cli-1.1.32-yw64r19c.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
|
|
2
|
-
export{v as Bc,Y as Cc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Wqa as K}from"./cli-1.1.32-yw64r19c.mjs";function M(F,q,k){return new Promise((w,z)=>{if(q?.aborted){if(k?.throwOnAbort||k?.abortError)z(k.abortError?.()??Error("aborted"));else w();return}let B=setTimeout((G,H,I)=>{G?.removeEventListener("abort",H),I()},F,q,D,w);function D(){if(clearTimeout(B),k?.throwOnAbort||k?.abortError)z(k.abortError?.()??Error("aborted"));else w()}if(q?.addEventListener("abort",D,{once:!0}),k?.unref)B.unref()})}var L=()=>{};
|
|
2
|
-
export{M as I6,L as J6};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Dfa as X,Dga as p,Efa as K,Xfa as G2,Yfa as V2,kga as K2,yga as j}from"./cli-1.1.32-pve0ffcp.mjs";import{Dja as N,Gja as b}from"./cli-1.1.32-8jkgzjh4.mjs";import{dka as W,ika as S}from"./cli-1.1.32-z7x4jfeb.mjs";import{qka as Z,wka as T}from"./cli-1.1.32-7zp3b6gq.mjs";import{Wqa as V}from"./cli-1.1.32-yw64r19c.mjs";function U(J){if(typeof J!=="string")return;let P=J.trim();return P?P:void 0}function d(J=process.env){return U(J.KIMI_OAUTH_CLIENT_ID)??"17e5f671-d194-4dfb-9706-5516cb48c098"}function I(J=process.env){return U(J.KIMI_CLI_VERSION)??"0.27.0"}function t(J){let P=J.split(".");if(P.length<2)return;try{let L=P[1].replace(/-/g,"+").replace(/_/g,"/"),H=L+"=".repeat((4-L.length%4)%4),q=Buffer.from(H,"base64").toString("utf8"),Q=JSON.parse(q);return Q&&typeof Q==="object"?Q:void 0}catch{return}}var b2="https://auth.kimi.com/api/oauth/device_authorization",m="https://auth.kimi.com/api/oauth/token",g2="urn:ietf:params:oauth:grant-type:device_code",n="kimi_code_cli",l="node",u2="k3, kimi-for-coding, kimi-for-coding-highspeed";var A=()=>{};import{arch as N2,hostname as Y2,release as o,type as X2}from"os";import{randomUUID as s}from"crypto";function D2(){return X({allowPlainTextFallback:!0})}async function O2(){if(Y)return Y;if(Z())return Y=s(),Y;let J=D2();try{let L=U((await J.readAsync())?.[a]);if(L)return Y=L,L}catch(L){if(!W(L))j(L)}let P=s();try{let L=J.read()||{};J.update({...L,[a]:P})}catch(L){j(L)}return Y=P,P}function k2(J){return{"X-Msh-Platform":n,"X-Msh-Version":I(),"X-Msh-Device-Name":Y2(),"X-Msh-Device-Model":`${X2()} ${o()} ${N2()}`,"X-Msh-Os-Version":o(),"X-Msh-Device-Id":J}}async function E(){return k2(await O2())}var a="kimiDeviceId",Y;var v=V(()=>{T();S();p();K();A()});function i(){B=null}function M(){return X({allowPlainTextFallback:!0})}function F2(J){if(!J)return;let P=t(J)?.exp;return typeof P==="number"&&Number.isFinite(P)?P*1000:void 0}function z(J){if(!J||typeof J!=="object")return;let P=J,L=U(P.accessToken);if(!L)return;let H=(q)=>typeof q==="number"&&Number.isFinite(q)?q:void 0;return{accessToken:L,refreshToken:U(P.refreshToken),profileId:U(P.profileId),expiresAt:H(P.expiresAt),lastRefreshAt:H(P.lastRefreshAt),lastRefreshFailureAt:H(P.lastRefreshFailureAt)}}function C2(J){let P=J.expiresAt??F2(J.accessToken);if(P===void 0)return!1;return P<=Date.now()+B2}function I2(J,P=Date.now()){let L=Math.max(J.lastRefreshFailureAt??0,x??0);if(!L)return!1;return P-L<z2}function A2(J,P){if(!P.trim())return`Kimi token refresh failed with status ${J}.`;try{let L=JSON.parse(P),H=U(L.error_description)??U(L.error)??P.trim();return`Kimi token refresh failed with status ${J}: ${H}`}catch{return`Kimi token refresh failed with status ${J}: ${P.trim()}`}}function q4(){if(Z())return;try{let J=M().read();return z(J?.[D])}catch(J){if(!W(J))j(J);return}}async function g(){if(Z())return;let J=Date.now();if(B&&B.expiresAt>J)return B.blob;try{let P=await M().readAsync(),L=z(P?.[D]);return B={blob:L,expiresAt:J+f2},L}catch(P){if(!W(P))j(P);return}}function r(J){if(Z())return{success:!1,warning:"Bare mode: secure storage is disabled."};let P=z(J);if(!P)return{success:!1,warning:"Kimi credentials are incomplete."};let L=M(),H=L.read()||{},q=z(H[D]),Q={...H,[D]:{...P,profileId:P.profileId??q?.profileId,expiresAt:P.expiresAt??q?.expiresAt,lastRefreshAt:P.lastRefreshAt??Date.now()}},$=L.update(Q);if(i(),$.success)x=z(Q[D])?.lastRefreshFailureAt??null;return $}function E2(J,P){if(!r({...J,lastRefreshFailureAt:P}).success)x=P}function Q4(){if(Z())return{success:!0};let J=M(),L={...J.read()||{}};delete L[D];let H=J.update(L);if(i(),H.success)x=null;else{let q=H.warning??"secure storage update failed";return j(`clearKimiCredentials: failed to remove Kimi entry (${q})`),{success:!1,warning:q}}return H}async function e(J){if(Z())return{refreshed:!1};let P=await g();if(!P)return{refreshed:!1};if(!P.refreshToken)return{refreshed:!1,credentials:P};if(!J?.force&&!C2(P))return{refreshed:!1,credentials:P};if(!J?.force&&I2(P))return{refreshed:!1,credentials:P};if(k)return k;return k=(async()=>{let L=Date.now();try{let H=await fetch(m,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":l,...await E()},body:new URLSearchParams({client_id:d(),grant_type:"refresh_token",refresh_token:P.refreshToken}),signal:AbortSignal.timeout(15000)});if(!H.ok){let C=await H.text().catch(()=>"");throw Error(A2(H.status,C))}let q=await H.json(),Q=U(q.access_token);if(!Q)throw Error("Kimi token refresh succeeded without a new access token.");let $=typeof q.expires_in==="number"&&Number.isFinite(q.expires_in)&&q.expires_in>0?q.expires_in:900,G={accessToken:Q,refreshToken:U(q.refresh_token)??P.refreshToken,profileId:P.profileId,expiresAt:Date.now()+$*1000,lastRefreshAt:Date.now()},_=r(G);if(!_.success)N(`[kimi] token refresh succeeded but credentials could not be saved: ${_.warning??"unknown error"}`,{level:"warn"});return{refreshed:!0,credentials:G}}catch(H){throw E2(P,L),H}finally{k=null}})(),k}var D="kimiCode",B2=60000,z2=60000,k=null,x=null,f2=30000,B=null;var P2=V(()=>{b();T();S();v();p();K();A()});function x2(){try{if(typeof MACRO<"u")return"1.1.32"}catch{return}return}function R(){return`claudin/${x2()??"dev"}`}var u=()=>{};function w(J){if(typeof J!=="string")return;let P=J.trim();return P?P:void 0}function L2(J=process.env){return w(J.XAI_OAUTH_CLIENT_ID)??"b1a00492-073a-47ea-816f-4c329264a828"}function H2(J){let P=J.split(".");if(P.length<2)return;try{let L=P[1].replace(/-/g,"+").replace(/_/g,"/"),H=L+"=".repeat((4-L.length%4)%4),q=Buffer.from(H,"base64").toString("utf8"),Q=JSON.parse(q);return Q&&typeof Q==="object"?Q:void 0}catch{return}}var J2="https://auth.x.ai/oauth2/token",U4="https://auth.x.ai/oauth2/device/code",j4="urn:ietf:params:oauth:grant-type:device_code",w4="openid profile email offline_access grok-cli:access api:access";var q2=()=>{};function y(){return X({allowPlainTextFallback:!0})}function Q2(J){if(!J)return;let L=H2(J)?.exp;if(typeof L==="number"&&Number.isFinite(L))return L*1000;return}function F(J){if(!J||typeof J!=="object")return;let P=J,L=w(P.accessToken);if(!L)return;let H=w(P.refreshToken),q=w(P.idToken),Q=w(P.profileId),$=typeof P.lastRefreshAt==="number"&&Number.isFinite(P.lastRefreshAt)?P.lastRefreshAt:void 0,G=typeof P.lastRefreshFailureAt==="number"&&Number.isFinite(P.lastRefreshFailureAt)?P.lastRefreshFailureAt:void 0,_=typeof P.expiresAt==="number"&&Number.isFinite(P.expiresAt)?P.expiresAt:void 0;return{accessToken:L,refreshToken:H,idToken:q,profileId:Q,expiresAt:_,lastRefreshAt:$,lastRefreshFailureAt:G}}function h2(J){let P=J.expiresAt??Q2(J.accessToken)??Q2(J.idToken);if(P===void 0)return!1;return P<=Date.now()+M2}function y2(J,P=Date.now()){let L=Math.max(J.lastRefreshFailureAt??0,h??0);if(!L)return!1;return P-L<R2}function T2(J,P){if(!P.trim())return`xAI token refresh failed with status ${J}.`;try{let L=JSON.parse(P),H=L.error&&typeof L.error==="object"?L.error:void 0,q=w(H?.code??L.code),Q=w(H?.message??L.error_description)??P.trim();return q?`xAI token refresh failed (${q}): ${Q}`:`xAI token refresh failed with status ${J}: ${Q}`}catch{return`xAI token refresh failed with status ${J}: ${P.trim()}`}}function O4(){if(Z())return;try{let J=y().read();return F(J?.[O])}catch(J){if(!W(J))j(J);return}}async function c(){if(Z())return;try{let J=await y().readAsync();return F(J?.[O])}catch(J){if(!W(J))j(J);return}}function Z2(J){if(Z())return{success:!1,warning:"Bare mode: secure storage is disabled."};let P=F(J);if(!P)return{success:!1,warning:"xAI credentials are incomplete."};let L=y(),H=L.read()||{},q=F(H[O]),Q={...H,[O]:{...P,profileId:P.profileId??q?.profileId,expiresAt:P.expiresAt??q?.expiresAt,lastRefreshAt:P.lastRefreshAt??Date.now()}},$=L.update(Q);if($.success)h=F(Q[O])?.lastRefreshFailureAt??null;return $}function S2(J,P){if(!Z2({...J,lastRefreshFailureAt:P}).success)h=P}function k4(){if(Z())return{success:!0};let J=y(),L={...J.read()||{}};delete L[O];let H=J.update(L);if(H.success)h=null;else{let q=H.warning??"secure storage update failed";return j(`clearXaiCredentials: failed to remove xAI entry (${q})`),{success:!1,warning:q}}return H}async function $2(J){if(Z())return{refreshed:!1};let P=await c();if(!P)return{refreshed:!1};if(!P.refreshToken)return{refreshed:!1,credentials:P};if(!J?.force&&!h2(P))return{refreshed:!1,credentials:P};if(!J?.force&&y2(P))return{refreshed:!1,credentials:P};if(f)return f;return f=(async()=>{let L=Date.now();try{let H=new URLSearchParams({client_id:L2(),grant_type:"refresh_token",refresh_token:P.refreshToken}),q=await fetch(J2,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json","User-Agent":R()},body:H,signal:AbortSignal.timeout(15000)});if(!q.ok){let _2=await q.text().catch(()=>"");throw Error(T2(q.status,_2))}let Q=await q.json(),$=w(Q.access_token);if(!$)throw Error("xAI token refresh succeeded without a new access token.");let G=typeof Q.expires_in==="number"&&Number.isFinite(Q.expires_in)&&Q.expires_in>0?Q.expires_in:3600,_={accessToken:$,refreshToken:w(Q.refresh_token)??P.refreshToken,idToken:w(Q.id_token)??P.idToken,profileId:P.profileId,expiresAt:Date.now()+G*1000,lastRefreshAt:Date.now()},C=Z2(_);if(!C.success)N(`[xai] token refresh succeeded but credentials could not be saved: ${C.warning??"unknown error"}`,{level:"warn"});return{refreshed:!0,credentials:_}}catch(H){throw S2(P,L),H}finally{f=null}})(),f}var O="xai",M2=120000,R2=60000,f=null,h=null;var U2=V(()=>{b();T();S();p();K();u();q2()});function j2(){return`kimi-code-cli/${I()}`}var w2=V(()=>{A()});function W2(J){return p2.find((P)=>P.matches(J))}async function R4(J){let P=W2(J?.baseUrl);if(!P)return{};let L;if(!J?.apiKey)L=(await P.refresh().catch(async(q)=>{return N(`[${P.id}] access token refresh failed before request: ${q instanceof Error?q.message:String(q)}`,{level:"warn"}),{credentials:await P.readCredentials()}})).credentials?.accessToken??void 0;if(L||P.attachHeadersWithoutToken)return{accessToken:L,userAgent:P.userAgent(),deviceHeaders:P.deviceHeaders?await P.deviceHeaders():void 0};return{}}async function h4(J){let P=W2(J);if(!P)return"no-match";return await P.refresh({force:!0}).then(()=>!0,(H)=>{return N(`[${P.id}] force-refresh on 401 failed: ${H instanceof Error?H.message:String(H)}`,{level:"warn"}),!1})?"refreshed":"failed"}var p2;var v2=V(()=>{b();P2();v();w2();U2();u();K2();p2=[{id:"xai",matches:G2,refresh:$2,readCredentials:c,userAgent:R,attachHeadersWithoutToken:!1},{id:"kimi",matches:V2,refresh:e,readCredentials:g,userAgent:j2,deviceHeaders:E,attachHeadersWithoutToken:!0}]});
|
|
2
|
-
export{b2 as fZ,m as gZ,g2 as hZ,l as iZ,u2 as jZ,U as kZ,d as lZ,A as mZ,E as nZ,v as oZ,q4 as pZ,g as qZ,r as rZ,Q4 as sZ,e as tZ,P2 as uZ,j2 as vZ,w2 as wZ,R as xZ,u as yZ,J2 as zZ,U4 as AZ,j4 as BZ,w4 as CZ,w as DZ,L2 as EZ,q2 as FZ,O4 as GZ,c as HZ,Z2 as IZ,k4 as JZ,$2 as KZ,U2 as LZ,R4 as MZ,h4 as NZ,v2 as OZ};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Dja as Q,Gja as $}from"./cli-1.1.32-8jkgzjh4.mjs";import{dka as K,ika as Z}from"./cli-1.1.32-z7x4jfeb.mjs";import{lka as J,wka as Y}from"./cli-1.1.32-7zp3b6gq.mjs";Y();Z();$();import{readFileSync as k}from"node:fs";import{mkdir as I,writeFile as W}from"node:fs/promises";import{join as M}from"node:path";var S="latest-version.json";function X(){return M(J(),S)}function U(q){if(!q||typeof q!=="object")return!1;let x=q;return typeof x.latest==="string"&&x.latest.length>0&&typeof x.current==="string"&&x.current.length>0&&typeof x.checkedAt==="number"&&Number.isFinite(x.checkedAt)}function T(){try{let q=k(X(),"utf8"),x=JSON.parse(q);return U(x)?x:null}catch(q){if(K(q))return null;return Q(`latestVersionCache: read failed: ${q instanceof Error?q.stack??q.message:String(q)}`),null}}var G=new Set;function w(q){return G.add(q),()=>{G.delete(q)}}async function y(q){let x=X(),R=JSON.stringify(q);try{await W(x,R,"utf8")}catch(z){if(K(z))await I(J(),{recursive:!0}),await W(x,R,"utf8");else throw z}for(let z of[...G])try{z(q)}catch(B){Q(`latestVersionCache: listener threw: ${B instanceof Error?B.stack??B.message:String(B)}`)}}
|
|
2
|
-
export{T as ma,w as na,y as oa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ak as I,Lm as W,Om as P,YJ as Y,sR as R,zk as Q}from"./cli-1.1.32-9yka8m9x.mjs";import{Gga as B,Hga as f}from"./cli-1.1.32-1rackf2c.mjs";import{$ha as J,_ha as H,tia as F}from"./cli-1.1.32-m7dxkbpn.mjs";import{Hpa as $,cla as x}from"./cli-1.1.32-60pc6r2s.mjs";import{Wqa as Z}from"./cli-1.1.32-yw64r19c.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:{...z(h),stop_details:null},session_id:x(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:x(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:x(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let v=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:{...Y({content:v}).message,stop_details:null},parent_tool_use_id:null,session_id:x(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let v=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:v}}var G=Z(()=>{$();F();I();f();R();P()});
|
|
2
|
-
export{S as Ze,V as _e,X as $e,r as af,w as bf,T as cf,G as df};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ac as Y,zc as Q}from"./cli-1.1.32-1yrmnphh.mjs";import{Cz as K,Ft as J,Gt as W,Kz as X,Sl as H,Tl as B,Xl as U,Yl as V}from"./cli-1.1.32-9yka8m9x.mjs";import{Tqa as q,Wqa as v}from"./cli-1.1.32-yw64r19c.mjs";function P(k){return x.some((h)=>k.endsWith(h))}function C(k){return k.filter((h)=>H.has(h.name)||P(h.name))}function A(k,h,E){let[Z,$]=Q(J([...k,...h],"name"),K),w=(g,j)=>g.name.localeCompare(j.name),z=[...$.sort(w),...Z.sort(w)];if(G){if(G.isCoordinatorMode())return C(z)}return z}var x,G;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];G=(V(),q(U))});
|
|
2
|
-
export{P as vc,C as wc,A as xc,D as yc};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Aq as kr,GA as Ir,Hy as j,IM as Kr,Iy as zr,Kl as L,OM as o,Ol as Sr,QR as n,RM as Qr,RR as Xr,YO as l,ZR as s,bq as V,by as M,dy as f,fy as u,iy as C,jy as T,kq as Y,ky as d,my as A,pM as W,qM as Jr,rq as D,sj as F,sy as qr,tS as Zr,wj as Gr,yA as O,yM as E}from"./cli-1.1.32-9yka8m9x.mjs";import{JW as i,PW as Wr}from"./cli-1.1.32-8yc37yqa.mjs";import{aY as I,bY as jr}from"./cli-1.1.32-hgjgfp8p.mjs";import{L4 as yr,X5 as $,j6 as wr,m4 as H,n4 as B}from"./cli-1.1.32-vf3r8a91.mjs";import{F6 as b,G6 as g}from"./cli-1.1.32-6jxftegx.mjs";import{Caa as z,I_ as k,K_ as t,N_ as R,Oaa as m,P_ as G,Uaa as e,Z_ as q,bea as p,cfa as v,gea as Q,j$ as _,r$ as Z,s$ as c,tea as rr}from"./cli-1.1.32-pve0ffcp.mjs";import{Dja as U,Gja as a}from"./cli-1.1.32-8jkgzjh4.mjs";v();function Pr(r){let y=G().numStartups;R((w)=>{let S=w.tipsHistory??{};if(S[r]===y)return w;return{...w,tipsHistory:{...S,[r]:y}}})}function N(r){let y=G(),w=y.tipsHistory?.[r];if(!w)return 1/0;return y.numStartups-w}g();a();Ir();rr();Wr();jr();zr();Sr();wr();Xr();v();kr();t();Gr();e();qr();yr();c();Qr();Kr();Jr();Zr();_();var X;async function $r(){if(X!==void 0)return X;let r=await E();return X=W in r,X}async function P(r,y,w){if(!await $r())return!1;if(o(`${r}@${W}`))return!1;let{bashTools:S}=y??{};if(w.cli&&S?.size){if(w.cli.some((J)=>S.has(J)))return!0}if(w.filePath&&y?.readFileState){if(F(y.readFileState).some((h)=>w.filePath.test(h)))return!0}return!1}var hr=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claudin to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return G().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${j("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{let r=G();return(r.lastPlanModeUse?(Date.now()-r.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let r=G(),y=Q(),w=Boolean(r.lastPlanModeUse),S=Boolean(y?.permissions?.defaultMode);return w&&!S}catch(r){return U(`Failed to check default-permission-mode-config tip relevance: ${r}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claudin sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let r=G();return await m()<=1&&r.numStartups>50}catch(r){return!1}}},{id:"diff-reviewer",content:async()=>`Review local changes, stashes and the git log side by side — run /diff or hit ${j("chat:openDiff","Chat","ctrl+g")}.`,cooldownSessions:10,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"diff-git-log",content:async()=>`Scroll back through your git log and open any commit's diff in /diff (or hit ${j("chat:openDiff","Chat","ctrl+g")}).`,cooldownSessions:15,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"diff-source-cycle",content:async()=>`In /diff, ${j("diff:previousSource","DiffDialog","[")} and ${j("diff:nextSource","DiffDialog","]")} cycle what you are reviewing: the working tree, one diff per agent turn, then every stash.`,cooldownSessions:15,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"diff-line-selection",content:async()=>`Press ${j("diff:select","DiffDialog","v")} in the /diff pane to select lines, then Enter to drop them into your prompt as @file#L12-L30 — dragging the mouse over them does the same.`,cooldownSessions:15,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"diff-expand-context",content:async()=>`Need more context in /diff? Hit Enter on a "··· N lines" gap to reveal more around it, or ${j("diff:expandAll","DiffDialog","a")} to expand the whole file.`,cooldownSessions:20,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"file-explorer",content:async()=>`Browse and edit files without leaving the REPL — run /explorer or hit ${j("chat:openExplorer","Chat","ctrl+e")} for a file tree with a built-in nvim-style editor.`,cooldownSessions:10,isRelevant:async()=>!0},{id:"explorer-fuzzy-find",content:async()=>"Inside /explorer, press / to fuzzy-find any file by name, or @ to drop it into your prompt.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-create-delete",content:async()=>"Inside /explorer, press a to create, r to rename, or d to delete the selected file.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-changed-files",content:async()=>"The /explorer tree opens with a Changed group — every file git sees as modified, in one flat list at the top.",cooldownSessions:15,isRelevant:async()=>{try{return await z()}catch(r){return!1}}},{id:"explorer-editor-ex-commands",content:async()=>"In the /explorer editor, :w saves, :q quits, :wq does both, and :42 jumps to line 42.",cooldownSessions:15,isRelevant:async()=>!0},{id:"explorer-editor-motions",content:async()=>"The /explorer editor speaks vim: dd cuts a line, yy copies, p pastes, u undoes and ctrl+r redoes.",cooldownSessions:20,isRelevant:async()=>!0},{id:"bash-output-filter-token-saving",content:async()=>"Bash output filter is active — redundant command output is trimmed before reaching the model, reducing token usage. Disable in /config.",cooldownSessions:20,async isRelevant(){let r=G();return r.numStartups>5&&r.bashOutputFilterEnabled!==!1}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claudin sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(s())return!1;return await n()>=2}},{id:"terminal-setup",content:async()=>k.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let r=G();if(k.terminal==="Apple_Terminal")return!r.optionAsMetaKeyInstalled;return!r.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>k.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let r=G();return Boolean((k.terminal==="Apple_Terminal"?r.optionAsMetaKeyInstalled:r.shiftEnterKeyBindingInstalled)&&r.numStartups>3)}},{id:"shift-enter-setup",content:async()=>k.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!i())return!1;let r=G();return!(k.terminal==="Apple_Terminal"?r.optionAsMetaKeyInstalled:r.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claudin memory",cooldownSessions:15,async isRelevant(){return G().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&b.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDIN_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>Z()==="windows"&&process.env.CLAUDIN_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>Q().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claudin is working.",cooldownSessions:5,async isRelevant(){return G().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claudin while it works to steer Claudin in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claudin to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${k.terminal==="vscode"?"code":k.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!M())return!1;if(Z()!=="macos")return!1;switch(k.terminal){case"vscode":return!await d();case"cursor":return!await C();case"windsurf":return!await T();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claudin to your IDE · /ide",cooldownSessions:4,async isRelevant(){if(f())return!1;if((await u()).length!==0)return!1;return(await A()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!G().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!G().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return G().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!k.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claudin using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>Z()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!O()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>O()},{id:"continue",content:async()=>"Run claudin --continue or claudin --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>l()&&G().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claudin/skills/ in your project or ~/.claudin/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return G().numStartups>10}},{id:"shift-tab",content:async()=>`Hit ${j("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${j("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return G().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return G().numStartups>5}},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${j("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){let r=G(),w=H()==="opusplan",S=r.lastPlanModeUse?(Date.now()-r.lastPlanModeUse)/86400000:1/0;return w&&S>3}},{id:"frontend-design-plugin",content:async(r)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
|
|
2
|
-
${I("suggestion",r.theme)(`/plugin install frontend-design@${W}`)}`},cooldownSessions:3,isRelevant:async(r)=>P("frontend-design",r,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(r)=>{return`Working with Vercel? Install the vercel plugin:
|
|
3
|
-
${I("suggestion",r.theme)(`/plugin install vercel@${W}`)}`},cooldownSessions:3,isRelevant:async(r)=>P("vercel",r,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(r)=>{let w=I("suggestion",r.theme)("/effort high");return q("tengu_tide_elm","off")==="copy_b"?`Use ${w} for better one-shot answers. Claudin thinks it through first.`:`Working on something tricky? ${w} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!$())return!1;if(!V(B()))return!1;if(p("policySettings")?.effortLevel!==void 0)return!1;if(D()!==void 0)return!1;let r=Y();if(r==="high"||r==="max")return!1;return q("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(r)=>{let y=I("suggestion",r.theme);return q("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claudin to ${y("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${y('"fan out subagents"')} and Claudin sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!$())return!1;return q("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(r)=>{let y=I("suggestion",r.theme);return q("tengu_timber_lark","off")==="copy_b"?`Use ${y("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${y("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!$())return!1;if(!L())return!1;return q("tengu_timber_lark","off")!=="off"}},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){return G().numStartups>5}}],Or=[];function Rr(){let y=Q().spinnerTipsOverride;if(!y?.tips?.length)return[];return y.tips.map((w,S)=>({id:`custom-tip-${S}`,content:async()=>w,cooldownSessions:0,isRelevant:async()=>!0}))}async function ar(r){let w=Q().spinnerTipsOverride,S=Rr();if(w?.excludeDefault&&S.length>0)return S;let J=[...hr,...Or],h=await Promise.all(J.map((K)=>K.isRelevant(r)));return[...J.filter((K,x)=>h[x]).filter((K)=>N(K.id)>=K.cooldownSessions),...S]}
|
|
4
|
-
export{Pr as jb,N as kb,ar as lb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ad as x,bd as o}from"./cli-1.1.32-n9vdkdfk.mjs";import{Ip as Y,Lp as g,Qv as y,Rv as u,Vv as K,Xv as m,gr as Z,iM as R,jM as i,kM as W,mr as v,nM as t,rv as $,sz as M,uz as l,xB as O,xv as d,zB as a}from"./cli-1.1.32-9yka8m9x.mjs";import{Dga as h,yga as X}from"./cli-1.1.32-pve0ffcp.mjs";import{Dja as I,Gja as c}from"./cli-1.1.32-8jkgzjh4.mjs";import{bka as V,ika as f}from"./cli-1.1.32-z7x4jfeb.mjs";import{Hpa as _,ila as U}from"./cli-1.1.32-60pc6r2s.mjs";import{Wqa as C}from"./cli-1.1.32-yw64r19c.mjs";async function Lj(w){I("refreshActivePlugins: clearing all plugin caches"),W(),O();let G=await Y(),[E,F]=await Promise.all([R(),Z(U())]),{enabled:z,disabled:B,errors:H}=G;x(E);let[P,S]=await Promise.all([Promise.all(z.map(async(j)=>{if(j.mcpServers)return Object.keys(j.mcpServers).length;let q=await M(j,H);if(q)j.mcpServers=q;return q?Object.keys(q).length:0})),Promise.all(z.map(async(j)=>{if(j.lspServers)return Object.keys(j.lspServers).length;let q=await y(j,H);if(q)j.lspServers=q;return q?Object.keys(q).length:0}))]),J=P.reduce((j,q)=>j+q,0),L=S.reduce((j,q)=>j+q,0);w((j)=>({...j,plugins:{...j.plugins,enabled:z,disabled:B,commands:[],errors:n(j.plugins.errors,H),needsRefresh:!1},agentDefinitions:F,mcp:{...j.mcp,pluginReconnectKey:j.mcp.pluginReconnectKey+1}})),K();let N=!1;try{await $()}catch(j){N=!0,X(j),I(`refreshActivePlugins: loadPluginHooks failed: ${V(j)}`)}let Q=z.reduce((j,q)=>{if(!q.hooksConfig)return j;return j+Object.values(q.hooksConfig).reduce((k,A)=>k+(A?.reduce((D,b)=>D+b.hooks.length,0)??0),0)},0);return I(`refreshActivePlugins: ${z.length} enabled, ${E.length} commands, ${F.allAgents.length} agents, ${Q} hooks, ${J} MCP, ${L} LSP`),{enabled_count:z.length,disabled_count:B.length,command_count:E.length,agent_count:F.allAgents.length,hook_count:Q,mcp_count:J,lsp_count:L,error_count:H.length+(N?1:0),agentDefinitions:F,pluginCommands:E}}function n(w,G){let E=w.filter((B)=>B.source==="lsp-manager"||B.source.startsWith("plugin:")),F=new Set(G.map(T));return[...E.filter((B)=>!F.has(T(B))),...G]}function T(w){return w.type==="generic-error"?`generic-error:${w.source}:${w.error}`:`${w.type}:${w.source}`}var p=C(()=>{_();m();o();v();c();f();h();t();i();d();u();l();a();g()});
|
|
2
|
-
export{Lj as Yc,p as Zc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{KX as I,LX as V,MX as p,rX as N,sX as U,tX as H}from"./cli-1.1.32-hgjgfp8p.mjs";import{n2 as L,p2 as P}from"./cli-1.1.32-jjanec91.mjs";import{q2 as F}from"./cli-1.1.32-6f9r9qcb.mjs";import{Ana as T,Hpa as A}from"./cli-1.1.32-60pc6r2s.mjs";import{Sqa as _,Wqa as $}from"./cli-1.1.32-yw64r19c.mjs";function v({children:W,ref:X,stickyScroll:Y,...E}){let w=C.useRef(null),[,Z]=C.useState(0),G=C.useRef(new Set),J=C.useRef(!1),O=()=>{for(let g of G.current)g()};function K(g){if(T(),N(g),O(),J.current)return;J.current=!0,queueMicrotask(()=>{J.current=!1,U(g)})}return C.useImperativeHandle(X,()=>({scrollTo(g){let q=w.current;if(!q)return;q.stickyScroll=!1,q.pendingScrollDelta=void 0,q.scrollAnchor=void 0,q.scrollTop=Math.max(0,Math.floor(g)),K(q)},scrollToElement(g,q=0){let z=w.current;if(!z)return;z.stickyScroll=!1,z.pendingScrollDelta=void 0,z.scrollAnchor={el:g,offset:q},K(z)},scrollBy(g){let q=w.current;if(!q)return;q.stickyScroll=!1,q.scrollAnchor=void 0,q.pendingScrollDelta=(q.pendingScrollDelta??0)+Math.floor(g),K(q)},scrollToBottom(){let g=w.current;if(!g)return;g.pendingScrollDelta=void 0,g.stickyScroll=!0,N(g),O(),Z((q)=>q+1)},getScrollTop(){return w.current?.scrollTop??0},getPendingDelta(){return w.current?.pendingScrollDelta??0},getScrollHeight(){return w.current?.scrollHeight??0},getFreshScrollHeight(){return w.current?.childNodes[0]?.yogaNode?.getComputedHeight()??w.current?.scrollHeight??0},getViewportHeight(){return w.current?.scrollViewportHeight??0},getViewportTop(){return w.current?.scrollViewportTop??0},isSticky(){let g=w.current;if(!g)return!1;return g.stickyScroll??Boolean(g.attributes.stickyScroll)},subscribe(g){return G.current.add(g),()=>G.current.delete(g)},setClampBounds(g,q){let z=w.current;if(!z)return;z.scrollClampMin=g,z.scrollClampMax=q}}),[]),L("ink-box",{ref:(g)=>{if(w.current=g,g)g.scrollTop??=0},style:{flexWrap:"nowrap",flexDirection:E.flexDirection??"row",flexGrow:E.flexGrow??0,flexShrink:E.flexShrink??1,...E,overflowX:"scroll",overflowY:"scroll"},...Y?{stickyScroll:!0}:{},children:L(V,{flexDirection:"column",flexGrow:1,flexShrink:0,width:"100%",children:W})})}var C,S;var D=$(()=>{A();H();I();p();P();C=_(F(),1);S=v});
|
|
2
|
-
export{S as _i,D as $i};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Yx as R,Zx as C,nF as U,zF as A}from"./cli-1.1.32-9yka8m9x.mjs";import{LY as v,SW as d,cY as M,eY as N,iY as P}from"./cli-1.1.32-hgjgfp8p.mjs";import{n2 as X,o2 as y,p2 as L}from"./cli-1.1.32-jjanec91.mjs";import{dea as k,tea as T}from"./cli-1.1.32-pve0ffcp.mjs";import{Sqa as E,Wqa as O}from"./cli-1.1.32-yw64r19c.mjs";function u(I){let f=F.c(18),{onAccept:H,onDecline:q,declineExits:h}=I,J;if(f[1]!==H||f[2]!==q)J=function(m){f:switch(m){case"accept":{k("userSettings",{skipAutoPermissionPrompt:!0}),H();break f}case"accept-default":{k("userSettings",{skipAutoPermissionPrompt:!0,permissions:{defaultMode:"auto"}}),H();break f}case"decline":q()}},f[1]=H,f[2]=q,f[3]=J;else J=f[3];let Y=J,K;if(f[4]===Symbol.for("react.memo_cache_sentinel"))K=y(M,{flexDirection:"column",gap:1,children:[X(N,{children:b}),X(P,{url:"https://code.claude.com/docs/en/security"})]}),f[4]=K;else K=f[4];let Q;if(f[5]===Symbol.for("react.memo_cache_sentinel"))Q=[{label:"Yes, and make it my default mode",value:"accept-default"}],f[5]=Q;else Q=f[5];let V;if(f[6]===Symbol.for("react.memo_cache_sentinel"))V={label:"Yes, enable auto mode",value:"accept"},f[6]=V;else V=f[6];let Z=h?"No, exit":"No, go back",w;if(f[7]!==Z)w=[...Q,V,{label:Z,value:"decline"}],f[7]=Z,f[8]=w;else w=f[8];let z;if(f[9]!==Y)z=(B)=>Y(B),f[9]=Y,f[10]=z;else z=f[10];let G;if(f[11]!==q||f[12]!==w||f[13]!==z)G=X(U,{options:w,onChange:z,onCancel:q}),f[11]=q,f[12]=w,f[13]=z,f[14]=G;else G=f[14];let W;if(f[15]!==q||f[16]!==G)W=y(R,{title:"Enable auto mode?",color:"warning",onCancel:q,children:[K,G]}),f[15]=q,f[16]=G,f[17]=W;else W=f[17];return W}var F,b="Auto mode lets Claudin handle permission prompts automatically — Claudin checks each tool call for risky actions and prompt injection before executing. Actions Claudin identifies as safe are executed, while actions Claudin identifies as risky are blocked and Claudin may try a different approach. Ideal for long-running tasks. Sessions are slightly more expensive. Claudin can make mistakes that allow harmful commands to run, it's recommended to only use in isolated environments. Shift+Tab to change mode.";var p=O(()=>{v();T();A();C();L();F=E(d(),1)});
|
|
2
|
-
export{b as Dc,u as Ec,p as Fc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Wqa as K}from"./cli-1.1.32-yw64r19c.mjs";import z from"node:path";function Z(j){if(j.endsWith(z.sep)||j.endsWith("/"))return P;let q=z.basename(j).toLowerCase();if(q.startsWith("readme"))return H[".md"];if(q.startsWith(".env"))return V;let B=W[q];if(B)return B;let J=z.extname(q);return H[J]??Q}function U(j){return Y[Z(j)]}var P="",D="",Q="",V="",W,H,Y;var $=K(()=>{W={"package.json":"",dockerfile:"",".dockerignore":"",".gitignore":"",".gitattributes":"",license:"","bun.lock":""},H={".ts":"",".tsx":"",".js":"",".jsx":"",".mjs":"",".cjs":"",".json":"",".md":"",".markdown":"",".toml":"",".yaml":"",".yml":"",".py":"",".rs":"",".go":"",".sh":"",".bash":"",".zsh":"",".css":"",".scss":"",".html":"",".htm":"",".png":"",".jpg":"",".jpeg":"",".gif":"",".svg":"",".webp":"",".lock":""},Y={"":"#519aba","":"#61dafb","":"#cbcb41","":"#cbcb41","":"#519aba","":"#6d8086","":"#ffbc03","":"#dea584","":"#519aba","":"#89e051","":"#563d7c","":"#f55385","":"#e34c26","":"#a074c4","":"#bbbbbb","":"#8bc34a","":"#458ee6","":"#f14c28","":"#d0bf41"}});
|
|
2
|
-
export{P as Qi,D as Ri,Z as Si,U as Ti,$ as Ui};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Dga as J,jaa as z,laa as H,yga as C}from"./cli-1.1.32-pve0ffcp.mjs";H();J();var K=/https:\/\/[^\s]+\/pull\/\d+/;function M(q){try{let k=JSON.parse(q);if(!Array.isArray(k))return[];return k.filter((v)=>typeof v==="object"&&v!==null&&typeof v.number==="number")}catch(k){return C(`failed to parse gh issue list output: ${k instanceof Error?k.message:String(k)}`),[]}}function O(q){let k=q.trim(),v=k.lastIndexOf("/");return v===-1?k||"main":k.slice(v+1)||"main"}function Q(q){let k=q.match(K);if(k)return k[0];let v=q.trim();return/^https?:\/\/\S+$/.test(v)?v:null}async function W(q){let{stdout:k,code:v,error:A}=await z("gh",["issue","list","--label",q,"--state","open","--json","number,title,body,updatedAt"]);if(v!==0){if(A)C(`gh issue list failed: ${A}`);return[]}return M(k)}async function X(){let{stdout:q,code:k}=await z("git",["rev-parse","--abbrev-ref","origin/HEAD"]);if(k!==0)return"main";return O(q)}async function Y(){let{stdout:q,code:k}=await z("git",["status","--porcelain"]);if(k!==0)return!1;return q.trim().length>0}async function Z(q){let k=await z("git",["add","-A"]);if(k.code!==0)return C(`git add failed: ${k.error??k.stderr}`),!1;let v=await z("git",["commit","-m",q]);if(v.code!==0)return C(`git commit failed: ${v.error??v.stderr}`),!1;return!0}async function $(q){let{code:k,stderr:v,error:A}=await z("git",["push","-u","origin",q]);if(k!==0)return C(`git push failed: ${A??v}`),!1;return!0}async function B(q){let{stdout:k,code:v,stderr:A,error:G}=await z("gh",["pr","create","--base",q.base,"--head",q.head,"--title",q.title,"--body-file",q.bodyFile]);if(v!==0)return C(`gh pr create failed: ${G??A}`),null;return Q(k)}async function D(q,k){let{code:v,stderr:A,error:G}=await z("gh",["issue","comment",String(q),"--body",k]);if(v!==0)return C(`gh issue comment failed: ${G??A}`),!1;return!0}
|
|
2
|
-
export{W as a,X as b,Y as c,Z as d,$ as e,B as f,D as g};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{of as k,qf as a}from"./cli-1.1.32-1rprka6j.mjs";import{bZ as D,eZ as g}from"./cli-1.1.32-gpq33yz0.mjs";import{Dja as K,Gja as u}from"./cli-1.1.32-8jkgzjh4.mjs";import{bka as G,ika as l}from"./cli-1.1.32-z7x4jfeb.mjs";import{Wqa as c,Xqa as J}from"./cli-1.1.32-yw64r19c.mjs";function b(P){return P===200||P===201}function n(P,Q){return Q&&P===400}async function e({environmentId:P,title:Q,events:z,gitRepoUrl:q,branch:L,signal:H,baseUrl:y,getAccessToken:B,permissionMode:$,onFailure:Z}){let{getClaudeAIOAuthTokens:W}=await import("./auth-1.1.32-s83fshpf.mjs"),{getOrganizationUUID:_}=await import("./client-1.1.32-y4ehgz03.mjs"),{getOauthConfig:V}=await import("./oauth-1.1.32-b01rfrnw.mjs"),{getOAuthHeaders:N}=await import("./api-1.1.32-8qx9q5eh.mjs"),{parseGitHubRepository:E}=await import("./detectRepository-1.1.32-y3wjkn3b.mjs"),{getDefaultBranch:T}=await import("./git-1.1.32-9xc0s3ry.mjs"),{getMainLoopModel:j}=await import("./model-1.1.32-wjtssjq7.mjs"),{default:x}=await import("./index-1.1.32-3wzxvtbf.mjs"),R=B?.()??W()?.accessToken;if(!R)return K("[bridge] No access token for session creation"),Z?.({retryable:!1,detail:"not signed in"}),null;let v=await _();if(!v)return K("[bridge] No org UUID for session creation"),Z?.({retryable:!1,detail:"no organization for this account"}),null;let A=null,O=null;if(q){let{parseGitRemote:Y}=await import("./detectRepository-1.1.32-y3wjkn3b.mjs"),w=Y(q);if(w){let{host:C,owner:S,name:f}=w,m=L||await T()||void 0;A={type:"git_repository",url:`https://${C}/${S}/${f}`,revision:m},O={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${L||"task"}`]}}}else{let C=E(q);if(C){let[S,f]=C.split("/");if(S&&f){let m=L||await T()||void 0;A={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:m},O={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${L||"task"}`]}}}}}}let h=(Y)=>({...Q!==void 0&&{title:Q},events:z,session_context:{sources:Y&&A?[A]:[],outcomes:Y&&O?[O]:[],model:j()},environment_id:P,source:"remote-control",...$&&{permission_mode:$}}),d={...N(R),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":v},p=`${y??V().BASE_API_URL}/v1/sessions`,F=async(Y)=>{try{return await x.post(p,h(Y),{headers:d,signal:H,validateStatus:(w)=>w<500})}catch(w){return K(`[bridge] Session creation request failed: ${G(w)}`),Z?.({retryable:!0,detail:G(w)}),null}},U=A!==null&&!I,X=await F(U);if(!X)return null;if(!b(X.status)&&n(X.status,U)){let Y=k(X.data);if(K(`[bridge] Session creation rejected with status ${X.status}${Y?`: ${Y}`:""} — retrying without the git context`),I=!0,X=await F(!1),!X)return null}if(!b(X.status)){let Y=k(X.data);return K(`[bridge] Session creation failed with status ${X.status}${Y?`: ${Y}`:""}`),Z?.({status:X.status,detail:Y,retryable:X.status===429}),null}let M=X.data;if(!M||typeof M!=="object"||!("id"in M)||typeof M.id!=="string")return K("[bridge] No session ID in response"),Z?.({status:X.status,detail:"malformed session response",retryable:!1}),null;return M.id}async function JJ(P,Q){let{getClaudeAIOAuthTokens:z}=await import("./auth-1.1.32-s83fshpf.mjs"),{getOrganizationUUID:q}=await import("./client-1.1.32-y4ehgz03.mjs"),{getOauthConfig:L}=await import("./oauth-1.1.32-b01rfrnw.mjs"),{getOAuthHeaders:H}=await import("./api-1.1.32-8qx9q5eh.mjs"),{default:y}=await import("./index-1.1.32-3wzxvtbf.mjs"),B=Q?.getAccessToken?.()??z()?.accessToken;if(!B)return K("[bridge] No access token for session fetch"),null;let $=await q();if(!$)return K("[bridge] No org UUID for session fetch"),null;let Z={...H(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":$},W=`${Q?.baseUrl??L().BASE_API_URL}/v1/sessions/${P}`,_=1e4;K(`[bridge] Fetching session ${P}`);let V;try{V=await y.get(W,{headers:Z,timeout:_,validateStatus:(N)=>N<500})}catch(N){if(y.isAxiosError(N)){let E=N.response?.status??"no-response",T=N.code??"unknown-code",j=N.config?.url??W,x=N.config?.method?.toUpperCase()??"GET",R=N.message??G(N),v=N.config?.timeout??_;K(`[bridge] Session fetch request failed: status=${E} code=${T} method=${x} url=${j} timeout=${v} message=${R}`)}else K(`[bridge] Session fetch request failed: url=${W} timeout=${_} message=${G(N)}`);return null}if(V.status!==200){let N=k(V.data);return K(`[bridge] Session fetch failed with status ${V.status} url=${W}${N?`: ${N}`:""}`),null}return V.data}async function KJ(P,Q){let{getClaudeAIOAuthTokens:z}=await import("./auth-1.1.32-s83fshpf.mjs"),{getOrganizationUUID:q}=await import("./client-1.1.32-y4ehgz03.mjs"),{getOauthConfig:L}=await import("./oauth-1.1.32-b01rfrnw.mjs"),{getOAuthHeaders:H}=await import("./api-1.1.32-8qx9q5eh.mjs"),{default:y}=await import("./index-1.1.32-3wzxvtbf.mjs"),B=Q?.getAccessToken?.()??z()?.accessToken;if(!B){K("[bridge] No access token for session archive");return}let $=await q();if(!$){K("[bridge] No org UUID for session archive");return}let Z={...H(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":$},W=`${Q?.baseUrl??L().BASE_API_URL}/v1/sessions/${P}/archive`;K(`[bridge] Archiving session ${P}`);let _=await y.post(W,{},{headers:Z,timeout:Q?.timeoutMs??1e4,validateStatus:(V)=>V<500});if(_.status===200)K(`[bridge] Session ${P} archived successfully`);else{let V=k(_.data);K(`[bridge] Session archive failed with status ${_.status}${V?`: ${V}`:""}`)}}async function NJ(P,Q,z){let{getClaudeAIOAuthTokens:q}=await import("./auth-1.1.32-s83fshpf.mjs"),{getOrganizationUUID:L}=await import("./client-1.1.32-y4ehgz03.mjs"),{getOauthConfig:H}=await import("./oauth-1.1.32-b01rfrnw.mjs"),{getOAuthHeaders:y}=await import("./api-1.1.32-8qx9q5eh.mjs"),{default:B}=await import("./index-1.1.32-3wzxvtbf.mjs"),$=z?.getAccessToken?.()??q()?.accessToken;if(!$){K("[bridge] No access token for session title update");return}let Z=await L();if(!Z){K("[bridge] No org UUID for session title update");return}let W={...y($),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Z},_=D(P),V=`${z?.baseUrl??H().BASE_API_URL}/v1/sessions/${_}`;K(`[bridge] Updating session title: ${_} → ${Q}`);try{let N=await B.patch(V,{title:Q},{headers:W,timeout:1e4,validateStatus:(E)=>E<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let E=k(N.data);K(`[bridge] Session title update failed with status ${N.status}${E?`: ${E}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${G(N)}`)}}var I=!1;var i=c(()=>{u();l();a();g()});
|
|
2
|
-
export{n as ef,e as ff,JJ as gf,KJ as hf,NJ as if,i as jf};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Wqa as b}from"./cli-1.1.32-yw64r19c.mjs";var j=86400000,k="Remote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",q="Error: You must be logged in to use Remote Control.\n\nRemote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",w="Remote Control disconnected.";var g=()=>{};
|
|
2
|
-
export{j as Ub,k as Vb,q as Wb,w as Xb,g as Yb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Vb as F,Yb as A}from"./cli-1.1.32-fjz81t0j.mjs";import{lf as D,of as H,qf as _}from"./cli-1.1.32-1rprka6j.mjs";import{b9 as U,t9 as P}from"./cli-1.1.32-g5dzf2w1.mjs";P();_();A();var R="environments-2025-11-01",O=/^[a-zA-Z0-9_-]+$/;function j(J,K){if(!J||!O.test(J))throw Error(`Invalid ${K}: contains unsafe characters`);return J}class L extends Error{status;errorType;constructor(J,K,Z){super(J);this.name="BridgeFatalError",this.status=K,this.errorType=Z}}function y(J){function K(q){J.onDebug?.(q)}let Z=0,V=100;function X(q){let z={Authorization:`Bearer ${q}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":R,"x-environment-runner-version":J.runnerVersion},W=J.getTrustedDeviceToken?.();if(W)z["X-Trusted-Device-Token"]=W;return z}function C(){let q=J.getAccessToken();if(!q)throw Error(F);return q}async function M(q,z){let W=C(),Q=await q(W);if(Q.status!==401)return Q;if(!J.onAuth401)return K(`[bridge:api] ${z}: 401 received, no refresh handler`),Q;if(K(`[bridge:api] ${z}: 401 received, attempting token refresh`),await J.onAuth401(W)){K(`[bridge:api] ${z}: Token refreshed, retrying request`);let $=C(),N=await q($);if(N.status!==401)return N;K(`[bridge:api] ${z}: Retry after refresh also got 401`)}else K(`[bridge:api] ${z}: Token refresh failed`);return Q}return{async registerBridgeEnvironment(q){K(`[bridge:api] POST /v1/environments/bridge bridgeId=${q.bridgeId}`);let z=await M((W)=>U.post(`${J.baseUrl}/v1/environments/bridge`,{machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType},...q.reuseEnvironmentId&&{environment_id:q.reuseEnvironmentId}},{headers:X(W),timeout:15000,validateStatus:(Q)=>Q<500}),"Registration");return G(z.status,z.data,"Registration"),K(`[bridge:api] POST /v1/environments/bridge -> ${z.status} environment_id=${z.data.environment_id}`),K(`[bridge:api] >>> ${D({machine_name:q.machineName,directory:q.dir,branch:q.branch,git_repo_url:q.gitRepoUrl,max_sessions:q.maxSessions,metadata:{worker_type:q.workerType}})}`),K(`[bridge:api] <<< ${D(z.data)}`),z.data},async pollForWork(q,z,W,Q){j(q,"environmentId");let Y=Z;Z=0;let $=await U.get(`${J.baseUrl}/v1/environments/${q}/work/poll`,{headers:X(z),params:Q!==void 0?{reclaim_older_than_ms:Q}:void 0,timeout:1e4,signal:W,validateStatus:(N)=>N<500});if(G($.status,$.data,"Poll"),!$.data){if(Z=Y+1,Z===1||Z%V===0)K(`[bridge:api] GET .../work/poll -> ${$.status} (no work, ${Z} consecutive empty polls)`);return null}return K(`[bridge:api] GET .../work/poll -> ${$.status} workId=${$.data.id} type=${$.data.data?.type}${$.data.data?.id?` sessionId=${$.data.data.id}`:""}`),K(`[bridge:api] <<< ${D($.data)}`),$.data},async acknowledgeWork(q,z,W){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/ack`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/ack`,{},{headers:X(W),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"Acknowledge"),K(`[bridge:api] POST .../work/${z}/ack -> ${Q.status}`)},async stopWork(q,z,W){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/stop force=${W}`);let Q=await M((Y)=>U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/stop`,{force:W},{headers:X(Y),timeout:1e4,validateStatus:($)=>$<500}),"StopWork");G(Q.status,Q.data,"StopWork"),K(`[bridge:api] POST .../work/${z}/stop -> ${Q.status}`)},async deregisterEnvironment(q){j(q,"environmentId"),K(`[bridge:api] DELETE /v1/environments/bridge/${q}`);let z=await M((W)=>U.delete(`${J.baseUrl}/v1/environments/bridge/${q}`,{headers:X(W),timeout:1e4,validateStatus:(Q)=>Q<500}),"Deregister");G(z.status,z.data,"Deregister"),K(`[bridge:api] DELETE /v1/environments/bridge/${q} -> ${z.status}`)},async archiveSession(q){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/archive`);let z=await M((W)=>U.post(`${J.baseUrl}/v1/sessions/${q}/archive`,{},{headers:X(W),timeout:1e4,validateStatus:(Q)=>Q<500}),"ArchiveSession");if(z.status===409){K(`[bridge:api] POST /v1/sessions/${q}/archive -> 409 (already archived)`);return}G(z.status,z.data,"ArchiveSession"),K(`[bridge:api] POST /v1/sessions/${q}/archive -> ${z.status}`)},async reconnectSession(q,z){j(q,"environmentId"),j(z,"sessionId"),K(`[bridge:api] POST /v1/environments/${q}/bridge/reconnect session_id=${z}`);let W=await M((Q)=>U.post(`${J.baseUrl}/v1/environments/${q}/bridge/reconnect`,{session_id:z},{headers:X(Q),timeout:1e4,validateStatus:(Y)=>Y<500}),"ReconnectSession");G(W.status,W.data,"ReconnectSession"),K(`[bridge:api] POST .../bridge/reconnect -> ${W.status}`)},async heartbeatWork(q,z,W){j(q,"environmentId"),j(z,"workId"),K(`[bridge:api] POST .../work/${z}/heartbeat`);let Q=await U.post(`${J.baseUrl}/v1/environments/${q}/work/${z}/heartbeat`,{},{headers:X(W),timeout:1e4,validateStatus:(Y)=>Y<500});return G(Q.status,Q.data,"Heartbeat"),K(`[bridge:api] POST .../work/${z}/heartbeat -> ${Q.status} lease_extended=${Q.data.lease_extended} state=${Q.data.state}`),Q.data},async sendPermissionResponseEvent(q,z,W){j(q,"sessionId"),K(`[bridge:api] POST /v1/sessions/${q}/events type=${z.type}`);let Q=await U.post(`${J.baseUrl}/v1/sessions/${q}/events`,{events:[z]},{headers:X(W),timeout:1e4,validateStatus:(Y)=>Y<500});G(Q.status,Q.data,"SendPermissionResponseEvent"),K(`[bridge:api] POST /v1/sessions/${q}/events -> ${Q.status}`),K(`[bridge:api] >>> ${D({events:[z]})}`),K(`[bridge:api] <<< ${D(Q.data)}`)}}}function G(J,K,Z){if(J===200||J===204)return;let V=H(K),X=B(K);switch(J){case 401:throw new L(`${Z}: Authentication failed (401)${V?`: ${V}`:""}. ${F}`,401,X);case 403:throw new L(S(X)?"Remote Control session has expired. Please restart with `claudin remote-control` or /remote-control.":`${Z}: Access denied (403)${V?`: ${V}`:""}. Check your organization permissions.`,403,X);case 404:throw new L(V??`${Z}: Not found (404). Remote Control may not be available for this organization.`,404,X);case 410:throw new L(V??"Remote Control session has expired. Please restart with `claudin remote-control` or /remote-control.",410,X??"environment_expired");case 429:throw Error(`${Z}: Rate limited (429). Polling too frequently.`);default:throw Error(`${Z}: Failed with status ${J}${V?`: ${V}`:""}`)}}function S(J){if(!J)return!1;return J.includes("expired")||J.includes("lifetime")}function E(J){if(J.status!==403)return!1;return J.message.includes("external_poll_sessions")||J.message.includes("environments:manage")}function B(J){if(J&&typeof J==="object"){if("error"in J&&J.error&&typeof J.error==="object"&&"type"in J.error&&typeof J.error.type==="string")return J.error.type}return}function T(J){let K=new AbortController;function Z(){K.abort(),K=new AbortController}function V(){let X=new AbortController,C=()=>X.abort();if(J.aborted||K.signal.aborted)return X.abort(),{signal:X.signal,cleanup:()=>{}};J.addEventListener("abort",C,{once:!0});let M=K.signal;return M.addEventListener("abort",C,{once:!0}),{signal:X.signal,cleanup:()=>{J.removeEventListener("abort",C),M.removeEventListener("abort",C)}}}return{signal:V,wake:Z}}
|
|
2
|
-
export{j as $,L as aa,y as ba,S as ca,E as da,T as ea};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Wqa as B}from"./cli-1.1.32-yw64r19c.mjs";function D(g,q){switch(q.type){case"set_local_jsx":{if(q.generation<g.generation)return g;return{state:{...q.payload,isLocalJSXCommand:!0},generation:g.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:g.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(g.hasLocalJSXActive)return g;return{...g,state:q.payload}}case"set_null":{if(g.hasLocalJSXActive)return g;if(g.state===null)return g;return{...g,state:null}}}}var C;var F=B(()=>{C={state:null,generation:0,hasLocalJSXActive:!1}});function K(g){return z=g,()=>{if(z===g)z=null}}function L(g){let q=D(w,g);if(q===w)return;w=q,z?.(q.state)}function M(){return w.generation}var w,z=null;var G=B(()=>{F();w=C});
|
|
2
|
-
export{K as aj,L as bj,M as cj,G as dj};
|