@claudiolabs/claudin 1.1.36 → 1.1.37
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.37-gvacrdsk.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.37-rnnbn40a.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.37-g6ta4m2v.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.37-pk4aghdz.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.37-hymvtk1w.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.37-p8fwd4tm.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.37-hb26z7b7.mjs +6 -0
- package/dist/chunks/Doctor-1.1.37-g60gf1vr.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.37-w0ek8efz.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.37-tp4qnkf7.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.37-5ds363er.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.37-qaz2nf35.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.37-cxe5gn9z.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.37-jsrbvfaa.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.37-kmfet3bc.mjs +1 -0
- package/dist/chunks/REPL-1.1.37-mx8g4asq.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.37-1j1egpzv.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.37-s6gpj3tk.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.37-06r6s8k3.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.37-vk5478hq.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.37-08ypek7f.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.37-j3j1tnac.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.37-dy4r3sef.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.37-r4p9gt6p.mjs +1 -0
- package/dist/chunks/add-dir-1.1.37-hsgnnqm5.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.37-e0zrjgxd.mjs +1 -0
- package/dist/chunks/agents-1.1.37-770krh9a.mjs +110 -0
- package/dist/chunks/agents-1.1.37-n5gk09na.mjs +3 -0
- package/dist/chunks/api-1.1.37-bwy6n0v8.mjs +1 -0
- package/dist/chunks/asciicast-1.1.37-t7zpdmt1.mjs +1 -0
- package/dist/chunks/auth-1.1.37-apskerg1.mjs +1 -0
- package/dist/chunks/auth-1.1.37-t0yjn0qg.mjs +1 -0
- package/dist/chunks/autoMode-1.1.37-a94rgbvb.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.37-8g5tdnzc.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.37-pe8hzmys.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.37-r98mdthk.mjs +1 -0
- package/dist/chunks/branch-1.1.37-1a761dqp.mjs +4 -0
- package/dist/chunks/bridge-1.1.37-djx2nh0s.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.37-wsz2v4gw.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.37-pht9tpgd.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.37-btaaq723.mjs +64 -0
- package/dist/chunks/bridgePointer-1.1.37-97bjx2gt.mjs +1 -0
- package/dist/chunks/btw-1.1.37-kzbnzfwv.mjs +1 -0
- package/dist/chunks/buddy-1.1.37-r155thdv.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.37-szdjedc6.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.37-zcq6bfv7.mjs +4 -0
- package/dist/chunks/caches-1.1.37-m3bsp8q4.mjs +1 -0
- package/dist/chunks/cd-1.1.37-bgh3jr0j.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.37-d5rmp7j9.mjs +1 -0
- package/dist/chunks/claudemd-1.1.37-zqxz2brp.mjs +1 -0
- package/dist/chunks/clear-1.1.37-a28jd9f5.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.37-1vwtn9rv.mjs +1 -0
- package/dist/chunks/cli-1.1.37-07v28734.mjs +24 -0
- package/dist/chunks/cli-1.1.37-0g18ppvn.mjs +2 -0
- package/dist/chunks/cli-1.1.37-0t8trtcs.mjs +135 -0
- package/dist/chunks/cli-1.1.37-160hvn22.mjs +2 -0
- package/dist/chunks/cli-1.1.37-16r2w6eh.mjs +2 -0
- package/dist/chunks/cli-1.1.37-16ycb15m.mjs +2 -0
- package/dist/chunks/cli-1.1.37-1esm8vyn.mjs +2 -0
- package/dist/chunks/cli-1.1.37-1nx0h24b.mjs +34 -0
- package/dist/chunks/cli-1.1.37-1sn4ganc.mjs +6 -0
- package/dist/chunks/cli-1.1.37-22erav9m.mjs +2 -0
- package/dist/chunks/cli-1.1.37-240c02km.mjs +4 -0
- package/dist/chunks/cli-1.1.37-26cht952.mjs +4 -0
- package/dist/chunks/cli-1.1.37-2gsgt0yq.mjs +2 -0
- package/dist/chunks/cli-1.1.37-2xne39h9.mjs +6 -0
- package/dist/chunks/cli-1.1.37-37swmf5n.mjs +2 -0
- package/dist/chunks/cli-1.1.37-39bw2pz6.mjs +2 -0
- package/dist/chunks/cli-1.1.37-3j7g0j34.mjs +2 -0
- package/dist/chunks/cli-1.1.37-3k4d07av.mjs +2 -0
- package/dist/chunks/cli-1.1.37-3pyzesy7.mjs +2 -0
- package/dist/chunks/cli-1.1.37-41q5f236.mjs +63 -0
- package/dist/chunks/cli-1.1.37-422098yx.mjs +26 -0
- package/dist/chunks/cli-1.1.37-45phxq6t.mjs +2 -0
- package/dist/chunks/cli-1.1.37-46pcgpjk.mjs +5 -0
- package/dist/chunks/cli-1.1.37-4829k99z.mjs +8 -0
- package/dist/chunks/cli-1.1.37-4cwzzzkp.mjs +2 -0
- package/dist/chunks/cli-1.1.37-4cyg3kha.mjs +15 -0
- package/dist/chunks/cli-1.1.37-4s29t03n.mjs +2 -0
- package/dist/chunks/cli-1.1.37-519yanf4.mjs +2 -0
- package/dist/chunks/cli-1.1.37-51efrsrh.mjs +2 -0
- package/dist/chunks/cli-1.1.37-58pbecmv.mjs +2 -0
- package/dist/chunks/cli-1.1.37-5gj77q8j.mjs +2 -0
- package/dist/chunks/cli-1.1.37-5k40cazp.mjs +2 -0
- package/dist/chunks/cli-1.1.37-5ppknhpq.mjs +50 -0
- package/dist/chunks/cli-1.1.37-67ncf860.mjs +2 -0
- package/dist/chunks/cli-1.1.37-6defhmsy.mjs +2 -0
- package/dist/chunks/cli-1.1.37-6k9f1kb2.mjs +6 -0
- package/dist/chunks/cli-1.1.37-6pcx2j1q.mjs +2 -0
- package/dist/chunks/cli-1.1.37-72ezs6b8.mjs +2 -0
- package/dist/chunks/cli-1.1.37-7483gf56.mjs +3 -0
- package/dist/chunks/cli-1.1.37-7614bfhm.mjs +25 -0
- package/dist/chunks/cli-1.1.37-7f3hdq3p.mjs +2 -0
- package/dist/chunks/cli-1.1.37-7h3edez5.mjs +2 -0
- package/dist/chunks/cli-1.1.37-7prgb5qb.mjs +2 -0
- package/dist/chunks/cli-1.1.37-7qda9cmg.mjs +2 -0
- package/dist/chunks/cli-1.1.37-8n5vy3kh.mjs +2 -0
- package/dist/chunks/cli-1.1.37-8v3e4pnr.mjs +2 -0
- package/dist/chunks/cli-1.1.37-8wfxbqcm.mjs +20 -0
- package/dist/chunks/cli-1.1.37-944j3qt1.mjs +2 -0
- package/dist/chunks/cli-1.1.37-94bfnv5a.mjs +2 -0
- package/dist/chunks/cli-1.1.37-96sf5t1p.mjs +2 -0
- package/dist/chunks/cli-1.1.37-9x24mgyx.mjs +2 -0
- package/dist/chunks/cli-1.1.37-a3xp4gqs.mjs +3 -0
- package/dist/chunks/cli-1.1.37-a489vqjv.mjs +2 -0
- package/dist/chunks/cli-1.1.37-a5ddx2f0.mjs +2 -0
- package/dist/chunks/cli-1.1.37-a6pppj4k.mjs +2 -0
- package/dist/chunks/cli-1.1.37-a7jrq85d.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ayhzfa69.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ayqpwfm4.mjs +2 -0
- package/dist/chunks/cli-1.1.37-b26at90a.mjs +4 -0
- package/dist/chunks/cli-1.1.37-be0x6tdq.mjs +18 -0
- package/dist/chunks/cli-1.1.37-bkp0a6f1.mjs +2 -0
- package/dist/chunks/cli-1.1.37-cmbtcpwy.mjs +2 -0
- package/dist/chunks/cli-1.1.37-crpgw5qe.mjs +133 -0
- package/dist/chunks/cli-1.1.37-cw718qh8.mjs +42 -0
- package/dist/chunks/cli-1.1.37-d1fcgxg0.mjs +2 -0
- package/dist/chunks/cli-1.1.37-d23vxnm9.mjs +2 -0
- package/dist/chunks/cli-1.1.37-d6n91ex7.mjs +15 -0
- package/dist/chunks/cli-1.1.37-dj2tqhmt.mjs +2 -0
- package/dist/chunks/cli-1.1.37-dt1m5cht.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ecm5tm4s.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ekft3ygw.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ev14s3y6.mjs +4 -0
- package/dist/chunks/cli-1.1.37-ex5tn3t8.mjs +6 -0
- package/dist/chunks/cli-1.1.37-f4cc288j.mjs +2 -0
- package/dist/chunks/cli-1.1.37-f7e57y66.mjs +2 -0
- package/dist/chunks/cli-1.1.37-f9mv7jky.mjs +2 -0
- package/dist/chunks/cli-1.1.37-fdkc3sf9.mjs +2 -0
- package/dist/chunks/cli-1.1.37-fksjv0et.mjs +2 -0
- package/dist/chunks/cli-1.1.37-fsjyvbbb.mjs +2 -0
- package/dist/chunks/cli-1.1.37-g7m905sy.mjs +3 -0
- package/dist/chunks/cli-1.1.37-g7xfccj8.mjs +2 -0
- package/dist/chunks/cli-1.1.37-g9d8qc79.mjs +2 -0
- package/dist/chunks/cli-1.1.37-gfbpxehy.mjs +2 -0
- package/dist/chunks/cli-1.1.37-gpk56nss.mjs +2 -0
- package/dist/chunks/cli-1.1.37-grsmntjy.mjs +5557 -0
- package/dist/chunks/cli-1.1.37-gswxz7xc.mjs +25 -0
- package/dist/chunks/cli-1.1.37-h0jx10pf.mjs +11 -0
- package/dist/chunks/cli-1.1.37-h4spe8tn.mjs +16 -0
- package/dist/chunks/cli-1.1.37-h7r11vsm.mjs +15 -0
- package/dist/chunks/cli-1.1.37-he99jbx1.mjs +2 -0
- package/dist/chunks/cli-1.1.37-hef24tpw.mjs +3 -0
- package/dist/chunks/cli-1.1.37-hgz1n58h.mjs +2 -0
- package/dist/chunks/cli-1.1.37-htprtn3s.mjs +2 -0
- package/dist/chunks/cli-1.1.37-hwan9xgw.mjs +2 -0
- package/dist/chunks/cli-1.1.37-j1vf4g9d.mjs +4 -0
- package/dist/chunks/cli-1.1.37-j6kremq2.mjs +2 -0
- package/dist/chunks/cli-1.1.37-jb5tx7mz.mjs +2 -0
- package/dist/chunks/cli-1.1.37-jbqk7r70.mjs +2 -0
- package/dist/chunks/cli-1.1.37-jfqs1fqm.mjs +2 -0
- package/dist/chunks/cli-1.1.37-jr1vseya.mjs +4 -0
- package/dist/chunks/cli-1.1.37-jr69vbpp.mjs +3 -0
- package/dist/chunks/cli-1.1.37-jv2bhmv9.mjs +2 -0
- package/dist/chunks/cli-1.1.37-jz75ctqt.mjs +4 -0
- package/dist/chunks/cli-1.1.37-kahw2epk.mjs +39 -0
- package/dist/chunks/cli-1.1.37-kb946f3c.mjs +2 -0
- package/dist/chunks/cli-1.1.37-kemsps6y.mjs +60 -0
- package/dist/chunks/cli-1.1.37-khfxdt5q.mjs +2 -0
- package/dist/chunks/cli-1.1.37-kn42c81a.mjs +3 -0
- package/dist/chunks/cli-1.1.37-kwaccfak.mjs +2 -0
- package/dist/chunks/cli-1.1.37-m1fep5be.mjs +2 -0
- package/dist/chunks/cli-1.1.37-m456xrwv.mjs +2 -0
- package/dist/chunks/cli-1.1.37-m5yt8y0j.mjs +2 -0
- package/dist/chunks/cli-1.1.37-m6gntr6v.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ma9krcyk.mjs +2 -0
- package/dist/chunks/cli-1.1.37-mexv9k9t.mjs +2 -0
- package/dist/chunks/cli-1.1.37-mf2q6gmp.mjs +2 -0
- package/dist/chunks/cli-1.1.37-mqc9bwxe.mjs +2 -0
- package/dist/chunks/cli-1.1.37-mrvnfwyz.mjs +2 -0
- package/dist/chunks/cli-1.1.37-mw2jz1zw.mjs +7 -0
- package/dist/chunks/cli-1.1.37-n183zk9b.mjs +24 -0
- package/dist/chunks/cli-1.1.37-n5rtec8d.mjs +2 -0
- package/dist/chunks/cli-1.1.37-n96tca8q.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ncfrm58b.mjs +2 -0
- package/dist/chunks/cli-1.1.37-nhcj6483.mjs +2 -0
- package/dist/chunks/cli-1.1.37-nmaxyg7j.mjs +2 -0
- package/dist/chunks/cli-1.1.37-nzbxb3mg.mjs +2 -0
- package/dist/chunks/cli-1.1.37-p6s3mz30.mjs +9 -0
- package/dist/chunks/cli-1.1.37-pek0pwba.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ptf1j7na.mjs +2 -0
- package/dist/chunks/cli-1.1.37-pvh445g5.mjs +3 -0
- package/dist/chunks/cli-1.1.37-pw36zafa.mjs +2 -0
- package/dist/chunks/cli-1.1.37-q1053cc2.mjs +17 -0
- package/dist/chunks/cli-1.1.37-qcn1j79h.mjs +2 -0
- package/dist/chunks/cli-1.1.37-qq29akkh.mjs +2 -0
- package/dist/chunks/cli-1.1.37-qx20qhv7.mjs +2 -0
- package/dist/chunks/cli-1.1.37-rdmqbzqh.mjs +2 -0
- package/dist/chunks/cli-1.1.37-rwsh9ddm.mjs +3 -0
- package/dist/chunks/cli-1.1.37-ryrmx9mz.mjs +10 -0
- package/dist/chunks/cli-1.1.37-s09fpmwg.mjs +2 -0
- package/dist/chunks/cli-1.1.37-s66bx6wx.mjs +24 -0
- package/dist/chunks/cli-1.1.37-sf9mv58v.mjs +10 -0
- package/dist/chunks/cli-1.1.37-sm7wj6sf.mjs +4 -0
- package/dist/chunks/cli-1.1.37-sqyyjrzq.mjs +5 -0
- package/dist/chunks/cli-1.1.37-ss1k0v1c.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ssstmvw3.mjs +3 -0
- package/dist/chunks/cli-1.1.37-sxzqtyda.mjs +2 -0
- package/dist/chunks/cli-1.1.37-syfanvjj.mjs +2 -0
- package/dist/chunks/cli-1.1.37-sygz2s62.mjs +2 -0
- package/dist/chunks/cli-1.1.37-tkdarzaz.mjs +2 -0
- package/dist/chunks/cli-1.1.37-tntw41wr.mjs +2 -0
- package/dist/chunks/cli-1.1.37-tqgcfdy1.mjs +2 -0
- package/dist/chunks/cli-1.1.37-v43zxjn1.mjs +2 -0
- package/dist/chunks/cli-1.1.37-v7ra9bdg.mjs +10 -0
- package/dist/chunks/cli-1.1.37-v901k2xy.mjs +2 -0
- package/dist/chunks/cli-1.1.37-v90enr9t.mjs +2 -0
- package/dist/chunks/cli-1.1.37-vfcg5s15.mjs +2 -0
- package/dist/chunks/cli-1.1.37-vg7rr3sv.mjs +2 -0
- package/dist/chunks/cli-1.1.37-vhmf8afh.mjs +2 -0
- package/dist/chunks/cli-1.1.37-vhmsvame.mjs +2 -0
- package/dist/chunks/cli-1.1.37-vrdgh1e0.mjs +2 -0
- package/dist/chunks/cli-1.1.37-w0tvj01c.mjs +2 -0
- package/dist/chunks/cli-1.1.37-wm28b2wb.mjs +2 -0
- package/dist/chunks/cli-1.1.37-wv9phckk.mjs +9 -0
- package/dist/chunks/cli-1.1.37-x03y4qkg.mjs +2 -0
- package/dist/chunks/cli-1.1.37-x0nz472y.mjs +2 -0
- package/dist/chunks/cli-1.1.37-x27pf2df.mjs +2 -0
- package/dist/chunks/cli-1.1.37-x363x6yv.mjs +12 -0
- package/dist/chunks/cli-1.1.37-xqs4w5xj.mjs +2 -0
- package/dist/chunks/cli-1.1.37-xxa2yvvm.mjs +2 -0
- package/dist/chunks/cli-1.1.37-y101rdsg.mjs +2 -0
- package/dist/chunks/cli-1.1.37-y2c4zsfh.mjs +6 -0
- package/dist/chunks/cli-1.1.37-y3knvtaz.mjs +2 -0
- package/dist/chunks/cli-1.1.37-ye5hkqff.mjs +2 -0
- package/dist/chunks/cli-1.1.37-yx7j10g7.mjs +2 -0
- package/dist/chunks/cli-1.1.37-z0tedaby.mjs +2 -0
- package/dist/chunks/cli-1.1.37-z414tkgs.mjs +2 -0
- package/dist/chunks/cli-1.1.37-z4wav0zf.mjs +251 -0
- package/dist/chunks/cli-1.1.37-z6pkdynf.mjs +2 -0
- package/dist/chunks/cli-1.1.37-z9fbkmx6.mjs +2 -0
- package/dist/chunks/cli-1.1.37-zb319x4t.mjs +21 -0
- package/dist/chunks/cli-1.1.37-zdpyj00a.mjs +2 -0
- package/dist/chunks/cli-1.1.37-zmvkkbkz.mjs +2 -0
- package/dist/chunks/cli-1.1.37-zp02yw3a.mjs +7 -0
- package/dist/chunks/cli-1.1.37-zv5qmddr.mjs +2 -0
- package/dist/chunks/cli-1.1.37-zyh3q51q.mjs +2 -0
- package/dist/chunks/client-1.1.37-xgmkbazy.mjs +1 -0
- package/dist/chunks/color-1.1.37-y730edtg.mjs +1 -0
- package/dist/chunks/compact-1.1.37-w4h4spv3.mjs +2 -0
- package/dist/chunks/config-1.1.37-kw2by168.mjs +1 -0
- package/dist/chunks/config-1.1.37-nxkma2y7.mjs +1 -0
- package/dist/chunks/constants-1.1.37-ctp81rsa.mjs +1 -0
- package/dist/chunks/context-1.1.37-ayxgyhvf.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.37-9fnpakkn.mjs +1 -0
- package/dist/chunks/conversation-1.1.37-c5qptech.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.37-2jh9xkzj.mjs +1 -0
- package/dist/chunks/copy-1.1.37-3x6yh3re.mjs +9 -0
- package/dist/chunks/cost-1.1.37-k4egf2cb.mjs +1 -0
- package/dist/chunks/createSession-1.1.37-ps0330f5.mjs +1 -0
- package/dist/chunks/debug-1.1.37-rg6428fc.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.37-0p69kpbf.mjs +1458 -0
- package/dist/chunks/desktop-1.1.37-vw4rzhtp.mjs +2 -0
- package/dist/chunks/detectRepository-1.1.37-de5st3z1.mjs +1 -0
- package/dist/chunks/detection-1.1.37-2ah57ykf.mjs +1 -0
- package/dist/chunks/diff-1.1.37-h35ry5bf.mjs +1 -0
- package/dist/chunks/doctor-1.1.37-4sdv75rj.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.37-aj2q1yxr.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.37-f1bz41ba.mjs +1 -0
- package/dist/chunks/effort-1.1.37-qme7s71h.mjs +13 -0
- package/dist/chunks/engine-1.1.37-vhnerrj8.mjs +1 -0
- package/dist/chunks/envUtils-1.1.37-jmnztajb.mjs +1 -0
- package/dist/chunks/errors-1.1.37-gx18q68s.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.37-jeewe5zp.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.37-9znv87jk.mjs +1 -0
- package/dist/chunks/exit-1.1.37-g21nsxb0.mjs +1 -0
- package/dist/chunks/explorer-1.1.37-x26rvwxm.mjs +1 -0
- package/dist/chunks/export-1.1.37-f9367qzp.mjs +2 -0
- package/dist/chunks/fast-1.1.37-66kcejyq.mjs +1 -0
- package/dist/chunks/feedback-1.1.37-cmzfc89p.mjs +16 -0
- package/dist/chunks/git-1.1.37-2v8rmfsp.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.37-qa9ahy75.mjs +1 -0
- package/dist/chunks/goal-1.1.37-qxqx92gp.mjs +4 -0
- package/dist/chunks/headless-1.1.37-dkg8aqth.mjs +2 -0
- package/dist/chunks/heapdump-1.1.37-4hzv26jg.mjs +6 -0
- package/dist/chunks/help-1.1.37-94a27s9t.mjs +1 -0
- package/dist/chunks/hooks-1.1.37-ekx4v46c.mjs +79 -0
- package/dist/chunks/hooks-1.1.37-yeewd50h.mjs +1 -0
- package/dist/chunks/ide-1.1.37-knedgvva.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.37-cdpery4t.mjs +1 -0
- package/dist/chunks/import-1.1.37-e6j4yen6.mjs +261 -0
- package/dist/chunks/inboundAttachments-1.1.37-jjm28zc3.mjs +1 -0
- package/dist/chunks/index-1.1.37-21b053j0.mjs +1 -0
- package/dist/chunks/index-1.1.37-3v1qr5g5.mjs +9 -0
- package/dist/chunks/index-1.1.37-5jd6yv91.mjs +1 -0
- package/dist/chunks/index-1.1.37-5m0x7mgr.mjs +2 -0
- package/dist/chunks/index-1.1.37-7p4s9e93.mjs +5 -0
- package/dist/chunks/index-1.1.37-8d8wz2jd.mjs +1 -0
- package/dist/chunks/index-1.1.37-8nj0y31t.mjs +1 -0
- package/dist/chunks/index-1.1.37-9mdrpppp.mjs +1 -0
- package/dist/chunks/index-1.1.37-fsrw22yr.mjs +1 -0
- package/dist/chunks/index-1.1.37-gbkrjwx2.mjs +1 -0
- package/dist/chunks/index-1.1.37-j22mymj3.mjs +1 -0
- package/dist/chunks/index-1.1.37-j7mg2v2z.mjs +1 -0
- package/dist/chunks/index-1.1.37-jt0qvhqx.mjs +9 -0
- package/dist/chunks/index-1.1.37-kqbx8bd4.mjs +1 -0
- package/dist/chunks/index-1.1.37-md3nqn7b.mjs +1 -0
- package/dist/chunks/index-1.1.37-nvrt1jkm.mjs +1 -0
- package/dist/chunks/index-1.1.37-qs532q75.mjs +2 -0
- package/dist/chunks/index-1.1.37-vrf2sks4.mjs +1 -0
- package/dist/chunks/index-1.1.37-w2vtqz1f.mjs +30 -0
- package/dist/chunks/index-1.1.37-wtf428dj.mjs +1 -0
- package/dist/chunks/index-1.1.37-x3qnjdnj.mjs +23 -0
- package/dist/chunks/index-1.1.37-xvds1tk7.mjs +1 -0
- package/dist/chunks/index-1.1.37-ycghwm8a.mjs +1 -0
- package/dist/chunks/init-1.1.37-rej95xjh.mjs +2 -0
- package/dist/chunks/initReplBridge-1.1.37-fg8xhcbg.mjs +1 -0
- package/dist/chunks/ink-1.1.37-9hasxe0p.mjs +1 -0
- package/dist/chunks/insights-1.1.37-t8pdcny6.mjs +870 -0
- package/dist/chunks/install-1.1.37-3qw7jywz.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.37-xxm8pfc7.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.37-k2gvh481.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.37-65a5va0g.mjs +1 -0
- package/dist/chunks/latestVersionCache-1.1.37-3a47ekt3.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.37-tacjzkxh.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.37-xp0k0sev.mjs +1 -0
- package/dist/chunks/log-1.1.37-zxjr2p0h.mjs +1 -0
- package/dist/chunks/main-1.1.37-z5knsc2c.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.37-v6d9x7gc.mjs +1 -0
- package/dist/chunks/mcp-1.1.37-2f8vksgy.mjs +1 -0
- package/dist/chunks/mcp-1.1.37-t42e1h6v.mjs +17 -0
- package/dist/chunks/mcp-1.1.37-z5yx7ce8.mjs +4 -0
- package/dist/chunks/mcpb-1.1.37-nxn1ew24.mjs +1 -0
- package/dist/chunks/memory-1.1.37-e17frzj2.mjs +128 -0
- package/dist/chunks/model-1.1.37-415ebhh8.mjs +2 -0
- package/dist/chunks/model-1.1.37-51zfsc21.mjs +1 -0
- package/dist/chunks/new-1.1.37-qmpxmvhh.mjs +1 -0
- package/dist/chunks/node-1.1.37-60r1zc7a.mjs +1 -0
- package/dist/chunks/node-1.1.37-bzzjhz9b.mjs +15 -0
- package/dist/chunks/oauth-1.1.37-an1mr5z0.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.37-d7tbje1m.mjs +14 -0
- package/dist/chunks/output-style-1.1.37-ky7bh1p8.mjs +1 -0
- package/dist/chunks/package-F6O7J2XI-1.1.37-cpdvge3d.mjs +1 -0
- package/dist/chunks/permissions-1.1.37-jfdwfjhx.mjs +1 -0
- package/dist/chunks/permissions-1.1.37-xa1rr619.mjs +3 -0
- package/dist/chunks/plan-1.1.37-mkad4kke.mjs +1 -0
- package/dist/chunks/plist-1.1.37-jp82073r.mjs +1 -0
- package/dist/chunks/plugin-1.1.37-4y7stngn.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.37-mb876t1m.mjs +1 -0
- package/dist/chunks/plugins-1.1.37-vgwj76jr.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.37-y5x9wxpb.mjs +2 -0
- package/dist/chunks/print-1.1.37-39471kxm.mjs +57 -0
- package/dist/chunks/process-1.1.37-0sxw7yj7.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.37-3a9hjw0c.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.37-qkdzw4bn.mjs +9 -0
- package/dist/chunks/prompt-1.1.37-7ty4xbzv.mjs +1 -0
- package/dist/chunks/prompt-1.1.37-t1pkc4hm.mjs +1 -0
- package/dist/chunks/prompts-1.1.37-vc8tkqtx.mjs +1 -0
- package/dist/chunks/provider-1.1.37-d5ky3fex.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.37-qds9eqzt.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.37-njz9qc5m.mjs +6 -0
- package/dist/chunks/registerSubcommands-1.1.37-mh25jf7y.mjs +26 -0
- package/dist/chunks/registry-1.1.37-j99mgf8f.mjs +1 -0
- package/dist/chunks/release-notes-1.1.37-9gkg8tfr.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.37-4sptja72.mjs +2 -0
- package/dist/chunks/remote-env-1.1.37-t2zt0dx6.mjs +1 -0
- package/dist/chunks/rename-1.1.37-r3rf1zcp.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.37-q72zpdec.mjs +1 -0
- package/dist/chunks/resume-1.1.37-7y7v8kjq.mjs +2 -0
- package/dist/chunks/rewind-1.1.37-g7g9fq2x.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.37-gab9zhq2.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.37-hfkacx24.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.37-0z182pcd.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.37-qpef07xe.mjs +1 -0
- package/dist/chunks/session-1.1.37-23e3vg40.mjs +2 -0
- package/dist/chunks/sessionStorage-1.1.37-80sj7d1y.mjs +1 -0
- package/dist/chunks/settings-1.1.37-9ydtb00s.mjs +1 -0
- package/dist/chunks/setup-1.1.37-zw16kqhk.mjs +12 -0
- package/dist/chunks/sinks-1.1.37-zfyvj9zb.mjs +1 -0
- package/dist/chunks/skills-1.1.37-k5m03dxr.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.37-c215kgmn.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.37-gkvkp8j3.mjs +1 -0
- package/dist/chunks/state-1.1.37-n5ptmgvs.mjs +1 -0
- package/dist/chunks/stats-1.1.37-aa4vr5s9.mjs +1 -0
- package/dist/chunks/status-1.1.37-ay3wwhz4.mjs +1 -0
- package/dist/chunks/stickers-1.1.37-9s6a0we7.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.37-j60ejzj9.mjs +1 -0
- package/dist/chunks/tasks-1.1.37-0kkyatcs.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.37-bh946f2s.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.37-hvr3p8hm.mjs +1 -0
- package/dist/chunks/teleport-1.1.37-r8pztaf5.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.37-db8a6fsx.mjs +1 -0
- package/dist/chunks/theme-1.1.37-syjd1g1y.mjs +1 -0
- package/dist/chunks/toolPool-1.1.37-99ckwfft.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.37-w702g2e2.mjs +1 -0
- package/dist/chunks/tools-1.1.37-q0g8gdy1.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.37-p3av7xdw.mjs +69 -0
- package/dist/chunks/types-1.1.37-0zw1rq84.mjs +1 -0
- package/dist/chunks/update-1.1.37-njeg6bcd.mjs +72 -0
- package/dist/chunks/upload-1.1.37-gzm0qpn7.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.37-v8bpt97q.mjs +14 -0
- package/dist/chunks/usage-1.1.37-b2a8dppj.mjs +1 -0
- package/dist/chunks/util-1.1.37-psbfj1x5.mjs +1 -0
- package/dist/chunks/utils-1.1.37-efqgjtyn.mjs +1 -0
- package/dist/chunks/vim-1.1.37-3vwhey1j.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.37-hmgj516c.mjs +13 -0
- package/dist/chunks/wiki-1.1.37-y24wnewk.mjs +132 -0
- package/dist/chunks/workflows-1.1.37-eywdbk9a.mjs +1 -0
- package/dist/chunks/worktree-1.1.37-k9y7x7fq.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.37-bq8bmkt7.mjs +1 -0
- package/dist/chunks/wrapper-1.1.37-mam70w68.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/App-1.1.36-4ypa2ky6.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.36-r5r4cwsv.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.36-v3mtkjve.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.36-m4wb4rn1.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.36-7v5ebgve.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.36-xpxzdymv.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.36-f49re5tc.mjs +0 -6
- package/dist/chunks/Doctor-1.1.36-2dspbc9p.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.36-9ajm3kh8.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.36-js7zf4na.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.36-4qp5v3qb.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.36-vesfpg6k.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.36-bg3y18da.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.36-n2rz26c0.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.36-tr7atyyg.mjs +0 -1
- package/dist/chunks/REPL-1.1.36-k3q58fha.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.36-qa0m768f.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.36-sg79pgf7.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.36-2q0d269f.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.36-rngjq7f6.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.36-mrzttk9n.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.36-ycekhs3r.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.36-awrjghme.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.36-r7zqb99r.mjs +0 -1
- package/dist/chunks/add-dir-1.1.36-mrfh3vg4.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.36-50aq6x28.mjs +0 -1
- package/dist/chunks/agents-1.1.36-p154bdnq.mjs +0 -110
- package/dist/chunks/agents-1.1.36-qvdrqv2q.mjs +0 -3
- package/dist/chunks/api-1.1.36-fw1zvw5c.mjs +0 -1
- package/dist/chunks/asciicast-1.1.36-pabx88c3.mjs +0 -1
- package/dist/chunks/auth-1.1.36-nxs2defd.mjs +0 -1
- package/dist/chunks/auth-1.1.36-vxpyyv86.mjs +0 -1
- package/dist/chunks/autoMode-1.1.36-ew03cpb1.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.36-m3aspqak.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.36-dvg6tvq8.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.36-q1ejq881.mjs +0 -1
- package/dist/chunks/branch-1.1.36-ev37nqdg.mjs +0 -4
- package/dist/chunks/bridge-1.1.36-1yp5eghy.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.36-yxs52053.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.36-ghh2yqhm.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.36-6v5c06t6.mjs +0 -64
- package/dist/chunks/bridgePointer-1.1.36-2rgfyyde.mjs +0 -1
- package/dist/chunks/btw-1.1.36-065ma89f.mjs +0 -1
- package/dist/chunks/buddy-1.1.36-a1z9gs49.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.36-bvheegzj.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.36-0bq3fz34.mjs +0 -4
- package/dist/chunks/caches-1.1.36-8swj463y.mjs +0 -1
- package/dist/chunks/cd-1.1.36-wwqk3h8r.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.36-325wbhtb.mjs +0 -1
- package/dist/chunks/claudemd-1.1.36-2vv85v0v.mjs +0 -1
- package/dist/chunks/clear-1.1.36-xnqf2tm7.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.36-g72pkm2k.mjs +0 -1
- package/dist/chunks/cli-1.1.36-02vb8r9t.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0ar5v8he.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0d7qj290.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0qdd3hmz.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0qtyffhw.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0v8c69pm.mjs +0 -2
- package/dist/chunks/cli-1.1.36-0zzq8bfp.mjs +0 -2
- package/dist/chunks/cli-1.1.36-12bsh7j9.mjs +0 -2
- package/dist/chunks/cli-1.1.36-1dhxpexj.mjs +0 -2
- package/dist/chunks/cli-1.1.36-1dr6aakq.mjs +0 -2
- package/dist/chunks/cli-1.1.36-1fmfztzp.mjs +0 -2
- package/dist/chunks/cli-1.1.36-1yk5zdh0.mjs +0 -2
- package/dist/chunks/cli-1.1.36-1z1m015s.mjs +0 -2
- package/dist/chunks/cli-1.1.36-2720p0e9.mjs +0 -2
- package/dist/chunks/cli-1.1.36-2awc366j.mjs +0 -2
- package/dist/chunks/cli-1.1.36-2mqhd52j.mjs +0 -2
- package/dist/chunks/cli-1.1.36-2sbmjg5a.mjs +0 -2
- package/dist/chunks/cli-1.1.36-33pcdm87.mjs +0 -2
- package/dist/chunks/cli-1.1.36-34sqd3h3.mjs +0 -15
- package/dist/chunks/cli-1.1.36-3fe93rwy.mjs +0 -2
- package/dist/chunks/cli-1.1.36-3gx0bht8.mjs +0 -4
- package/dist/chunks/cli-1.1.36-3kd43x1y.mjs +0 -2
- package/dist/chunks/cli-1.1.36-3mmakdzj.mjs +0 -2
- package/dist/chunks/cli-1.1.36-3xkn8kcw.mjs +0 -2
- package/dist/chunks/cli-1.1.36-3z14wtaa.mjs +0 -2
- package/dist/chunks/cli-1.1.36-40x4f5k7.mjs +0 -34
- package/dist/chunks/cli-1.1.36-422dmh6w.mjs +0 -2
- package/dist/chunks/cli-1.1.36-43fkjqy9.mjs +0 -2
- package/dist/chunks/cli-1.1.36-451x9avw.mjs +0 -2
- package/dist/chunks/cli-1.1.36-4ajy0ys9.mjs +0 -2
- package/dist/chunks/cli-1.1.36-4g1wf6an.mjs +0 -2
- package/dist/chunks/cli-1.1.36-4jwgcerx.mjs +0 -2
- package/dist/chunks/cli-1.1.36-4pfza5vq.mjs +0 -2
- package/dist/chunks/cli-1.1.36-4ssz80b2.mjs +0 -60
- package/dist/chunks/cli-1.1.36-5de80y14.mjs +0 -26
- package/dist/chunks/cli-1.1.36-5few49rp.mjs +0 -7
- package/dist/chunks/cli-1.1.36-5kmv74s2.mjs +0 -2
- package/dist/chunks/cli-1.1.36-5nkhhy5f.mjs +0 -7
- package/dist/chunks/cli-1.1.36-5nkv3yj2.mjs +0 -2
- package/dist/chunks/cli-1.1.36-5zzwcyt7.mjs +0 -2
- package/dist/chunks/cli-1.1.36-659qh6fs.mjs +0 -15
- package/dist/chunks/cli-1.1.36-65fkb20j.mjs +0 -12
- package/dist/chunks/cli-1.1.36-69zmc79s.mjs +0 -2
- package/dist/chunks/cli-1.1.36-6g1w2zbr.mjs +0 -4
- package/dist/chunks/cli-1.1.36-6jv1ss2p.mjs +0 -2
- package/dist/chunks/cli-1.1.36-6q7sfj4e.mjs +0 -4
- package/dist/chunks/cli-1.1.36-6yqvdwyp.mjs +0 -2
- package/dist/chunks/cli-1.1.36-703pmf6z.mjs +0 -135
- package/dist/chunks/cli-1.1.36-72hptg9d.mjs +0 -2
- package/dist/chunks/cli-1.1.36-72p8zdsg.mjs +0 -2
- package/dist/chunks/cli-1.1.36-72sph7cp.mjs +0 -3
- package/dist/chunks/cli-1.1.36-775g6c3z.mjs +0 -2
- package/dist/chunks/cli-1.1.36-789jh18m.mjs +0 -2
- package/dist/chunks/cli-1.1.36-79jcadbx.mjs +0 -2
- package/dist/chunks/cli-1.1.36-7byzkddk.mjs +0 -3
- package/dist/chunks/cli-1.1.36-7tprmtpr.mjs +0 -2
- package/dist/chunks/cli-1.1.36-7xx3rm4x.mjs +0 -2
- package/dist/chunks/cli-1.1.36-7ywn6pq1.mjs +0 -2
- package/dist/chunks/cli-1.1.36-7z5n90ex.mjs +0 -3
- package/dist/chunks/cli-1.1.36-80gqbr44.mjs +0 -2
- package/dist/chunks/cli-1.1.36-814rb1qn.mjs +0 -2
- package/dist/chunks/cli-1.1.36-89dhnv3q.mjs +0 -2
- package/dist/chunks/cli-1.1.36-8k2z8yvv.mjs +0 -4
- package/dist/chunks/cli-1.1.36-8mc299mk.mjs +0 -6
- package/dist/chunks/cli-1.1.36-8s4n3bf2.mjs +0 -2
- package/dist/chunks/cli-1.1.36-8vncd2t8.mjs +0 -2
- package/dist/chunks/cli-1.1.36-90xk1ctt.mjs +0 -4
- package/dist/chunks/cli-1.1.36-97zq0wp5.mjs +0 -2
- package/dist/chunks/cli-1.1.36-9k371kgm.mjs +0 -15
- package/dist/chunks/cli-1.1.36-9xnre98h.mjs +0 -2
- package/dist/chunks/cli-1.1.36-a4gh459t.mjs +0 -2
- package/dist/chunks/cli-1.1.36-adsb7266.mjs +0 -2
- package/dist/chunks/cli-1.1.36-ahr5fnjy.mjs +0 -2
- package/dist/chunks/cli-1.1.36-apycha28.mjs +0 -2
- package/dist/chunks/cli-1.1.36-as3jtdj6.mjs +0 -4
- package/dist/chunks/cli-1.1.36-aypab30m.mjs +0 -2
- package/dist/chunks/cli-1.1.36-b0rge62y.mjs +0 -133
- package/dist/chunks/cli-1.1.36-b54n0msa.mjs +0 -2
- package/dist/chunks/cli-1.1.36-b77v7k9g.mjs +0 -3
- package/dist/chunks/cli-1.1.36-bsfazmtt.mjs +0 -2
- package/dist/chunks/cli-1.1.36-bxrew2k8.mjs +0 -2
- package/dist/chunks/cli-1.1.36-bywrsksg.mjs +0 -2
- package/dist/chunks/cli-1.1.36-c3rd4cfc.mjs +0 -10
- package/dist/chunks/cli-1.1.36-c4k9g1dk.mjs +0 -2
- package/dist/chunks/cli-1.1.36-c4pkjm54.mjs +0 -2
- package/dist/chunks/cli-1.1.36-cm2kys6t.mjs +0 -2
- package/dist/chunks/cli-1.1.36-cya5x9g3.mjs +0 -2
- package/dist/chunks/cli-1.1.36-d4bd8qw2.mjs +0 -4
- package/dist/chunks/cli-1.1.36-dpn3xp4e.mjs +0 -2
- package/dist/chunks/cli-1.1.36-dt9kgcr3.mjs +0 -2
- package/dist/chunks/cli-1.1.36-e5xkjjtj.mjs +0 -21
- package/dist/chunks/cli-1.1.36-ef3vjg8b.mjs +0 -9
- package/dist/chunks/cli-1.1.36-f6yxszv5.mjs +0 -2
- package/dist/chunks/cli-1.1.36-fd7xaf6g.mjs +0 -2
- package/dist/chunks/cli-1.1.36-fhnpvzaf.mjs +0 -6
- package/dist/chunks/cli-1.1.36-fj9nx7k4.mjs +0 -10
- package/dist/chunks/cli-1.1.36-fw6d7jyv.mjs +0 -2
- package/dist/chunks/cli-1.1.36-fxpd9jmz.mjs +0 -2
- package/dist/chunks/cli-1.1.36-gfn4xejp.mjs +0 -17
- package/dist/chunks/cli-1.1.36-gfx5kkq4.mjs +0 -2
- package/dist/chunks/cli-1.1.36-ggr2pkp7.mjs +0 -2
- package/dist/chunks/cli-1.1.36-gpks9z9m.mjs +0 -2
- package/dist/chunks/cli-1.1.36-h74yjk66.mjs +0 -2
- package/dist/chunks/cli-1.1.36-haxnmraq.mjs +0 -24
- package/dist/chunks/cli-1.1.36-hqmz0657.mjs +0 -3
- package/dist/chunks/cli-1.1.36-hvnr6rta.mjs +0 -2
- package/dist/chunks/cli-1.1.36-jnftcw4c.mjs +0 -2
- package/dist/chunks/cli-1.1.36-jpcwwd65.mjs +0 -5
- package/dist/chunks/cli-1.1.36-jqn2tez7.mjs +0 -2
- package/dist/chunks/cli-1.1.36-jx3e7dft.mjs +0 -9
- package/dist/chunks/cli-1.1.36-k14jc4fv.mjs +0 -2
- package/dist/chunks/cli-1.1.36-kzxdhaaz.mjs +0 -2
- package/dist/chunks/cli-1.1.36-m11p0exg.mjs +0 -2
- package/dist/chunks/cli-1.1.36-m981mqsb.mjs +0 -39
- package/dist/chunks/cli-1.1.36-mam7e8zn.mjs +0 -11
- package/dist/chunks/cli-1.1.36-mmre9943.mjs +0 -2
- package/dist/chunks/cli-1.1.36-n44emd29.mjs +0 -2
- package/dist/chunks/cli-1.1.36-n5etyd9m.mjs +0 -2
- package/dist/chunks/cli-1.1.36-n9knhbs6.mjs +0 -6
- package/dist/chunks/cli-1.1.36-nnzqwcsc.mjs +0 -2
- package/dist/chunks/cli-1.1.36-nqy7mzrt.mjs +0 -45
- package/dist/chunks/cli-1.1.36-nw3mandv.mjs +0 -50
- package/dist/chunks/cli-1.1.36-p0w1dm9g.mjs +0 -2
- package/dist/chunks/cli-1.1.36-p375v620.mjs +0 -6
- package/dist/chunks/cli-1.1.36-p7w1197h.mjs +0 -2
- package/dist/chunks/cli-1.1.36-psd41gmc.mjs +0 -2
- package/dist/chunks/cli-1.1.36-pwszcwqb.mjs +0 -2
- package/dist/chunks/cli-1.1.36-pxy9g55g.mjs +0 -20
- package/dist/chunks/cli-1.1.36-q2e0arg8.mjs +0 -2
- package/dist/chunks/cli-1.1.36-q4a30pjq.mjs +0 -2
- package/dist/chunks/cli-1.1.36-q9xgs0j5.mjs +0 -3
- package/dist/chunks/cli-1.1.36-qdefh0tg.mjs +0 -2
- package/dist/chunks/cli-1.1.36-qm9492fw.mjs +0 -2
- package/dist/chunks/cli-1.1.36-qn4td7gm.mjs +0 -4
- package/dist/chunks/cli-1.1.36-qxdw7xas.mjs +0 -3
- package/dist/chunks/cli-1.1.36-qyd8fnkc.mjs +0 -2
- package/dist/chunks/cli-1.1.36-r241fh82.mjs +0 -5
- package/dist/chunks/cli-1.1.36-r2svaxxt.mjs +0 -25
- package/dist/chunks/cli-1.1.36-rh00pabh.mjs +0 -2
- package/dist/chunks/cli-1.1.36-rkcfjk5n.mjs +0 -8
- package/dist/chunks/cli-1.1.36-rp1ck3rr.mjs +0 -2
- package/dist/chunks/cli-1.1.36-rqhp2xt1.mjs +0 -24
- package/dist/chunks/cli-1.1.36-rv222he2.mjs +0 -2
- package/dist/chunks/cli-1.1.36-rwa4g74g.mjs +0 -3
- package/dist/chunks/cli-1.1.36-rwqe4psg.mjs +0 -2
- package/dist/chunks/cli-1.1.36-s8jcsdgb.mjs +0 -16
- package/dist/chunks/cli-1.1.36-s9ar9y3g.mjs +0 -42
- package/dist/chunks/cli-1.1.36-sd51t79y.mjs +0 -2
- package/dist/chunks/cli-1.1.36-ss62b517.mjs +0 -63
- package/dist/chunks/cli-1.1.36-t0ncrwb0.mjs +0 -2
- package/dist/chunks/cli-1.1.36-t6sjxpcb.mjs +0 -251
- package/dist/chunks/cli-1.1.36-tda1q99k.mjs +0 -2
- package/dist/chunks/cli-1.1.36-tvr7rnm0.mjs +0 -2
- package/dist/chunks/cli-1.1.36-v0s0vqmm.mjs +0 -5551
- package/dist/chunks/cli-1.1.36-v5nxnkwj.mjs +0 -2
- package/dist/chunks/cli-1.1.36-vdy55pxe.mjs +0 -2
- package/dist/chunks/cli-1.1.36-vz7m93en.mjs +0 -2
- package/dist/chunks/cli-1.1.36-w1nf9wd0.mjs +0 -10
- package/dist/chunks/cli-1.1.36-w23zxn8g.mjs +0 -2
- package/dist/chunks/cli-1.1.36-wdrt641n.mjs +0 -25
- package/dist/chunks/cli-1.1.36-wdvzyaky.mjs +0 -2
- package/dist/chunks/cli-1.1.36-wfgjsqkk.mjs +0 -2
- package/dist/chunks/cli-1.1.36-wwwj09sw.mjs +0 -2
- package/dist/chunks/cli-1.1.36-x0qqxv1t.mjs +0 -2
- package/dist/chunks/cli-1.1.36-x11fzb6n.mjs +0 -2
- package/dist/chunks/cli-1.1.36-x1761kx6.mjs +0 -2
- package/dist/chunks/cli-1.1.36-xf45p3qr.mjs +0 -2
- package/dist/chunks/cli-1.1.36-xj95r55n.mjs +0 -2
- package/dist/chunks/cli-1.1.36-xs4p38vb.mjs +0 -6
- package/dist/chunks/cli-1.1.36-xvwc8bka.mjs +0 -2
- package/dist/chunks/cli-1.1.36-ya2s1rfy.mjs +0 -18
- package/dist/chunks/cli-1.1.36-yew13j62.mjs +0 -2
- package/dist/chunks/cli-1.1.36-ykz9vwbf.mjs +0 -2
- package/dist/chunks/cli-1.1.36-yrgfywq5.mjs +0 -24
- package/dist/chunks/cli-1.1.36-z5djkbwy.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zax3mr51.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zbn66hn9.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zd032ger.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zeahx79z.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zey2drb2.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zv6ffhhy.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zw8q3z61.mjs +0 -2
- package/dist/chunks/cli-1.1.36-zzpdy0k8.mjs +0 -2
- package/dist/chunks/client-1.1.36-ydq31jce.mjs +0 -1
- package/dist/chunks/color-1.1.36-9fjvayey.mjs +0 -1
- package/dist/chunks/compact-1.1.36-p42ft3yq.mjs +0 -2
- package/dist/chunks/config-1.1.36-42ab04bq.mjs +0 -1
- package/dist/chunks/config-1.1.36-x636yezt.mjs +0 -1
- package/dist/chunks/constants-1.1.36-ba1bvty5.mjs +0 -1
- package/dist/chunks/context-1.1.36-zjvkgfrr.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.36-f5rax1ah.mjs +0 -1
- package/dist/chunks/conversation-1.1.36-jd5867c5.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.36-dg9s10xt.mjs +0 -1
- package/dist/chunks/copy-1.1.36-95ds743c.mjs +0 -9
- package/dist/chunks/cost-1.1.36-vhm8f7tp.mjs +0 -1
- package/dist/chunks/createSession-1.1.36-haxa0dvw.mjs +0 -1
- package/dist/chunks/debug-1.1.36-fvyvxmx1.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.36-24ag19wj.mjs +0 -1458
- package/dist/chunks/desktop-1.1.36-n6x2epmn.mjs +0 -2
- package/dist/chunks/detectRepository-1.1.36-ktxtd4ej.mjs +0 -1
- package/dist/chunks/detection-1.1.36-s8z7d4bm.mjs +0 -1
- package/dist/chunks/diff-1.1.36-0mrzd4kw.mjs +0 -1
- package/dist/chunks/doctor-1.1.36-tta8yrqq.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.36-1j38851d.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.36-rv44jymf.mjs +0 -1
- package/dist/chunks/effort-1.1.36-yd22tc48.mjs +0 -13
- package/dist/chunks/engine-1.1.36-cf09xwf2.mjs +0 -1
- package/dist/chunks/envUtils-1.1.36-e9dd4q6g.mjs +0 -1
- package/dist/chunks/errors-1.1.36-86veg19m.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.36-nmf2s84f.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.36-naz9kbtt.mjs +0 -1
- package/dist/chunks/exit-1.1.36-53t418pg.mjs +0 -1
- package/dist/chunks/explorer-1.1.36-pgghex3j.mjs +0 -1
- package/dist/chunks/export-1.1.36-1ynxg1wb.mjs +0 -2
- package/dist/chunks/fast-1.1.36-f64h2t2k.mjs +0 -1
- package/dist/chunks/feedback-1.1.36-vgb10qbs.mjs +0 -16
- package/dist/chunks/git-1.1.36-f934674g.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.36-f2yec5gh.mjs +0 -1
- package/dist/chunks/goal-1.1.36-yyy0jkwz.mjs +0 -4
- package/dist/chunks/headless-1.1.36-47ts4j1h.mjs +0 -2
- package/dist/chunks/heapdump-1.1.36-hhwpz3jf.mjs +0 -6
- package/dist/chunks/help-1.1.36-zr7z9tga.mjs +0 -1
- package/dist/chunks/hooks-1.1.36-and1agcb.mjs +0 -79
- package/dist/chunks/hooks-1.1.36-qgd5x79v.mjs +0 -1
- package/dist/chunks/ide-1.1.36-afc5wn8q.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.36-ycj021z0.mjs +0 -1
- package/dist/chunks/import-1.1.36-jrjb5s4n.mjs +0 -261
- package/dist/chunks/inboundAttachments-1.1.36-h1yrtqms.mjs +0 -1
- package/dist/chunks/index-1.1.36-048ng2px.mjs +0 -1
- package/dist/chunks/index-1.1.36-1mbx6axa.mjs +0 -1
- package/dist/chunks/index-1.1.36-1rzdb7w0.mjs +0 -1
- package/dist/chunks/index-1.1.36-312tvs2v.mjs +0 -2
- package/dist/chunks/index-1.1.36-46vz4hm5.mjs +0 -5
- package/dist/chunks/index-1.1.36-4dth0mx8.mjs +0 -1
- package/dist/chunks/index-1.1.36-5bc8t250.mjs +0 -9
- package/dist/chunks/index-1.1.36-6mpk59p2.mjs +0 -1
- package/dist/chunks/index-1.1.36-83wpkv8f.mjs +0 -30
- package/dist/chunks/index-1.1.36-8s1fe47p.mjs +0 -9
- package/dist/chunks/index-1.1.36-95xjkxf6.mjs +0 -1
- package/dist/chunks/index-1.1.36-c90kzpg9.mjs +0 -1
- package/dist/chunks/index-1.1.36-ectpcy01.mjs +0 -1
- package/dist/chunks/index-1.1.36-f33wa99v.mjs +0 -1
- package/dist/chunks/index-1.1.36-fgj4arq3.mjs +0 -23
- package/dist/chunks/index-1.1.36-fr144w7s.mjs +0 -1
- package/dist/chunks/index-1.1.36-keejgmvt.mjs +0 -1
- package/dist/chunks/index-1.1.36-knytd0n4.mjs +0 -1
- package/dist/chunks/index-1.1.36-m21fh89b.mjs +0 -1
- package/dist/chunks/index-1.1.36-n3tpswv4.mjs +0 -1
- package/dist/chunks/index-1.1.36-q6468dg7.mjs +0 -1
- package/dist/chunks/index-1.1.36-svzjvq7t.mjs +0 -1
- package/dist/chunks/index-1.1.36-vpaaz84z.mjs +0 -2
- package/dist/chunks/init-1.1.36-16rj95sf.mjs +0 -2
- package/dist/chunks/initReplBridge-1.1.36-xganfz86.mjs +0 -1
- package/dist/chunks/ink-1.1.36-ayvk483m.mjs +0 -1
- package/dist/chunks/insights-1.1.36-0kqbkgbz.mjs +0 -870
- package/dist/chunks/install-1.1.36-3v0b55mh.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.36-6ybyxdq5.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.36-040ssrxp.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.36-2fm0smr3.mjs +0 -1
- package/dist/chunks/latestVersionCache-1.1.36-9fa4kpt8.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.36-t9mhqgv5.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.36-vf3yqk6b.mjs +0 -1
- package/dist/chunks/log-1.1.36-zazc6e80.mjs +0 -1
- package/dist/chunks/main-1.1.36-r3b0ysm4.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.36-nksy6dte.mjs +0 -1
- package/dist/chunks/mcp-1.1.36-7fbqeb90.mjs +0 -17
- package/dist/chunks/mcp-1.1.36-d2df02nr.mjs +0 -4
- package/dist/chunks/mcp-1.1.36-dj3ctzg2.mjs +0 -1
- package/dist/chunks/mcpb-1.1.36-7hcc3bm8.mjs +0 -1
- package/dist/chunks/memory-1.1.36-4h4pw21v.mjs +0 -128
- package/dist/chunks/model-1.1.36-3vvdafvs.mjs +0 -1
- package/dist/chunks/model-1.1.36-pvrxzcbd.mjs +0 -2
- package/dist/chunks/node-1.1.36-xhks7s8w.mjs +0 -15
- package/dist/chunks/node-1.1.36-z1nceabc.mjs +0 -1
- package/dist/chunks/oauth-1.1.36-w0jf6x39.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.36-m75hvh8e.mjs +0 -14
- package/dist/chunks/output-style-1.1.36-c0mgemjb.mjs +0 -1
- package/dist/chunks/package-F6O7J2XI-1.1.36-kfm7v15k.mjs +0 -1
- package/dist/chunks/permissions-1.1.36-20jz1yq3.mjs +0 -3
- package/dist/chunks/permissions-1.1.36-mtf6m3pf.mjs +0 -1
- package/dist/chunks/plan-1.1.36-r2k6ysce.mjs +0 -1
- package/dist/chunks/plist-1.1.36-8vg2xrj2.mjs +0 -1
- package/dist/chunks/plugin-1.1.36-xa4j4bj2.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.36-7bczq621.mjs +0 -1
- package/dist/chunks/plugins-1.1.36-ck8ycs01.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.36-yt9dm2yh.mjs +0 -2
- package/dist/chunks/print-1.1.36-gcmgxxx7.mjs +0 -57
- package/dist/chunks/process-1.1.36-4kdmcjeq.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.36-5tbfja2m.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.36-db99hjpc.mjs +0 -9
- package/dist/chunks/prompt-1.1.36-7qyxemw6.mjs +0 -1
- package/dist/chunks/prompt-1.1.36-tx374tzn.mjs +0 -1
- package/dist/chunks/prompts-1.1.36-gj1pggdg.mjs +0 -1
- package/dist/chunks/provider-1.1.36-d73knpnr.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.36-v0p0gdag.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.36-bzznd00d.mjs +0 -6
- package/dist/chunks/registerSubcommands-1.1.36-8s9pb6g7.mjs +0 -26
- package/dist/chunks/registry-1.1.36-4bt4ac4z.mjs +0 -1
- package/dist/chunks/release-notes-1.1.36-zbexvzjp.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.36-n8nwygb8.mjs +0 -2
- package/dist/chunks/remote-env-1.1.36-fr8j8hcc.mjs +0 -1
- package/dist/chunks/rename-1.1.36-x06agpgx.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.36-2hp08v6r.mjs +0 -1
- package/dist/chunks/resume-1.1.36-1srfb0q2.mjs +0 -2
- package/dist/chunks/rewind-1.1.36-zkycjr7d.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.36-4m9s4acv.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.36-jbtcynyc.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.36-xrvrh2qp.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.36-2yw8m1jq.mjs +0 -1
- package/dist/chunks/session-1.1.36-dxen3cg6.mjs +0 -2
- package/dist/chunks/sessionStorage-1.1.36-dbt045aw.mjs +0 -1
- package/dist/chunks/settings-1.1.36-jb6t4nt2.mjs +0 -1
- package/dist/chunks/setup-1.1.36-7ady6j9j.mjs +0 -12
- package/dist/chunks/sinks-1.1.36-j124tdmn.mjs +0 -1
- package/dist/chunks/skills-1.1.36-wad885e2.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.36-0xnygcy5.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.36-6mvjw2sk.mjs +0 -1
- package/dist/chunks/state-1.1.36-mwqgyp6n.mjs +0 -1
- package/dist/chunks/stats-1.1.36-yzk5t8nc.mjs +0 -1
- package/dist/chunks/status-1.1.36-8b177p6e.mjs +0 -1
- package/dist/chunks/stickers-1.1.36-kdxt4s8f.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.36-g1a43154.mjs +0 -1
- package/dist/chunks/tasks-1.1.36-cnmsc211.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.36-1pwk4n3y.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.36-2stc51nw.mjs +0 -1
- package/dist/chunks/teleport-1.1.36-tdvpgdhd.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.36-agbzd4wd.mjs +0 -1
- package/dist/chunks/theme-1.1.36-2w481ds6.mjs +0 -1
- package/dist/chunks/toolPool-1.1.36-hdw9b8ht.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.36-ccs29nek.mjs +0 -1
- package/dist/chunks/tools-1.1.36-zqsjpqnk.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.36-pwcp7479.mjs +0 -69
- package/dist/chunks/types-1.1.36-bwfasf0g.mjs +0 -1
- package/dist/chunks/update-1.1.36-hzk0xj2g.mjs +0 -72
- package/dist/chunks/upload-1.1.36-mb3a5t01.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.36-x1y5p82n.mjs +0 -14
- package/dist/chunks/usage-1.1.36-qzytaj6z.mjs +0 -1
- package/dist/chunks/util-1.1.36-kb0yef79.mjs +0 -1
- package/dist/chunks/utils-1.1.36-fm3eywyj.mjs +0 -1
- package/dist/chunks/vim-1.1.36-x7adhmdd.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.36-4s334wzz.mjs +0 -13
- package/dist/chunks/wiki-1.1.36-dn9csm8a.mjs +0 -132
- package/dist/chunks/workflows-1.1.36-v5b9khnt.mjs +0 -1
- package/dist/chunks/worktree-1.1.36-cesdwabt.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.36-m20cdekt.mjs +0 -1
- package/dist/chunks/wrapper-1.1.36-1m0td68t.mjs +0 -7
- /package/dist/chunks/{cli-1.1.36-7v42aqn9.mjs → cli-1.1.37-tb7ktts9.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.36-6kq395h8.mjs → cli-1.1.37-tfvyj3nx.mjs} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{V4 as m,h5 as D}from"./cli-1.1.36-s8jcsdgb.mjs";import{Rpa as z}from"./cli-1.1.36-c4pkjm54.mjs";function q(){return G()||!!process.env.CLAUDE_BRIDGE_OAUTH_TOKEN}function F(){return q()}async function J(){return F()}async function K(){if(!q())return"Remote Control needs an Anthropic web login (a claude.ai OAuth token with the user:profile scope). Run `/provider` and sign in with your claude.ai account. Note: an inference API key alone is not enough — the bridge token is separate.";return null}function G(){try{return m()}catch{return!1}}var H=z(()=>{D()});
|
|
2
|
-
export{F as yT,J as zT,K as AT,H as BT};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Rpa as b}from"./cli-1.1.36-c4pkjm54.mjs";import*as q from"node:child_process";import*as v from"node:crypto";import*as w from"node:fs";import*as x from"node:os";import*as z from"node:path";import*as A from"node:stream";import*as B from"node:util";var k=()=>{};
|
|
2
|
-
export{q as T7,v as U7,w as V7,x as W7,z as X7,A as Y7,B as Z7,k as _7};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Rpa as z}from"./cli-1.1.36-c4pkjm54.mjs";function B(j){switch(j.type){case"connected":return"connected";case"disabled":return"disabled";case"needs-auth":return"needs authentication";case"failed":return"failed";case"pending":{let{reconnectAttempt:q,maxReconnectAttempts:y}=j;return q&&y?`reconnecting (${q}/${y})…`:"connecting…"}}}function D(j){return j.type==="disabled"?"disconnected":B(j)}function E(j){switch(j.type){case"connected":return"active";case"failed":return"failed";case"pending":case"needs-auth":case"disabled":return"inactive"}}var C=()=>{};
|
|
2
|
-
export{B as tf,D as uf,E as vf,C as wf};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import{eg as dZ,fg as cZ,gg as zX}from"./cli-1.1.36-a4gh459t.mjs";import{Eh as MJ,Fh as yz}from"./cli-1.1.36-n44emd29.mjs";import{oi as DJ,pi as Cz}from"./cli-1.1.36-422dmh6w.mjs";import{$A as ZQ,AD as Qz,AS as CQ,BD as fX,BQ as qz,Dk as rZ,Ej as TZ,Ek as IX,FS as jQ,Fj as iQ,GD as ZZ,GQ as Yz,HD as JQ,Hx as NQ,ID as QQ,IQ as aZ,JD as zQ,JQ as Vz,Jx as pZ,KD as iz,LQ as m0,MQ as Hz,Mv as rQ,Nj as gJ,Nv as TX,OQ as Gz,Oj as mJ,PQ as BQ,QQ as LQ,RQ as Bz,Rw as OQ,SQ as Lz,Sw as JX,TA as sQ,Tx as wQ,UA as $X,UQ as PZ,VA as $Z,Vj as sJ,WA as uZ,XA as xZ,Xx as QX,YA as eJ,ZA as eQ,bm as OZ,cm as PJ,cy as RQ,dy as $Q,eK as zz,ey as oQ,fy as tQ,ix as aQ,jx as hX,jy as xQ,kO as Xz,ky as uQ,nM as _J,nO as pX,rC as Zz,rM as fz,rS as UQ,sC as xX,sS as gZ,sx as kZ,wx as Pz,xC as Jz,xx as MZ,yC as uX,yx as RX}from"./cli-1.1.36-v0s0vqmm.mjs";import{$W as PX,BX as XJ,EX as I0,KV as wJ,LV as Ez,LW as QJ,MV as u0,MW as wz,QV as JJ,RW as lQ,SW as SX,TW as zJ,VW as Az,YW as D,ZW as hQ,_W as p,rW as BZ,sW as Nz,xW as EZ,zW as Fz}from"./cli-1.1.36-4ssz80b2.mjs";import{VY as UJ,WY as jJ,XY as bz}from"./cli-1.1.36-7z5n90ex.mjs";import{f0 as e0,l0 as AJ}from"./cli-1.1.36-p7w1197h.mjs";import{b1 as E0,c1 as Y,d1 as T,e1 as G0}from"./cli-1.1.36-z5djkbwy.mjs";import{f1 as b0}from"./cli-1.1.36-apycha28.mjs";import{L4 as FQ,U4 as KQ,h5 as ZX,p4 as QZ,r4 as zZ}from"./cli-1.1.36-s8jcsdgb.mjs";import{D5 as lZ,E5 as vX}from"./cli-1.1.36-8mc299mk.mjs";import{G5 as TQ,H5 as AX}from"./cli-1.1.36-0qdd3hmz.mjs";import{$aa as kX,Bca as NJ,Faa as nQ,M9 as DZ,R8 as C0,S8 as OJ,_da as DQ,tca as KZ}from"./cli-1.1.36-t6sjxpcb.mjs";import{Cfa as jZ,Dfa as nJ,Nfa as JZ,Wfa as sz}from"./cli-1.1.36-6q7sfj4e.mjs";import{Lga as fZ,Nga as ez,Yga as NZ,bha as wZ,cha as AZ,qha as uz}from"./cli-1.1.36-jqn2tez7.mjs";import{Aia as n0,Dia as wX}from"./cli-1.1.36-jpcwwd65.mjs";import{lja as mQ,tja as _X}from"./cli-1.1.36-0qtyffhw.mjs";import{Boa as gQ,Doa as yX}from"./cli-1.1.36-bsfazmtt.mjs";import{Npa as K0,Rpa as q0}from"./cli-1.1.36-c4pkjm54.mjs";function bZ(){if(x0!==null)clearTimeout(x0),x0=null;yZ=Date.now();for(let J of GZ)J()}function Kz(){if(x0!==null)return;let J=Date.now()-yZ;if(J>=EZ){bZ();return}x0=setTimeout(bZ,EZ-J)}function oZ(){return CZ.useSyncExternalStore(s0.subscribe,s0.getSnapshot)}function iX(){return CZ.useSyncExternalStore(s0.subscribe,s0.getPresenceSnapshot)}var CZ,$0=null,GZ,x0=null,yZ=0,s0;var tZ=q0(()=>{Fz();CZ=K0(b0(),1),GZ=new Set;s0={update(J){let Z=$0;if($0=J(Z),$0===Z)return;if(Z===null!==($0===null))bZ();else Kz()},clear(){s0.update(()=>null)},read(){return $0},subscribe(J){return GZ.add(J),()=>{GZ.delete(J)}},getSnapshot(){return $0},getPresenceSnapshot(){return $0!==null},resetForTesting(){if(x0!==null)clearTimeout(x0),x0=null;$0=null,yZ=0,GZ.clear()}}});function _Z(J){let Z=Math.floor(J/2);return{leftCols:Z,panelCols:J-Z}}function eZ(J,Z,Q){let{leftCols:z}=_Z(J);return[{lo:0,hi:z-1,rowHi:Z},{lo:z+(Q?Oz:0)+sZ,hi:J-1-sZ,rowHi:Z}]}function ZJ(J){return J>=120}var Oz=1,sZ=1;var vZ=()=>{};function WJ({mode:J,left:Z,bottom:Q,modal:z,panel:X,rows:W,columns:q,scrollRef:H}){let V=X!=null&&J==="split",[F]=JJ(),B=zJ(F).sidePanelBackground,N=!B,C=g0.useRef(null),[U,S]=g0.useState(()=>Math.max(1,W-jz));if(g0.useLayoutEffect(()=>{if(!V)return;let w=C.current;if(!w)return;let P=XJ(w).height;if(P>0)S((j)=>j===P?j:P)}),g0.useLayoutEffect(()=>{if(!V){BZ(null);return}return BZ(eZ(q,U-1,N)),()=>BZ(null)},[V,q,U,N]),z==null&&X==null)return T(E0,{children:[Z,Q]});let l=(w,P)=>{let j=P?0:Uz,M=P?0:1;return Y(kZ,{value:{rows:W-j-M,columns:q-4,scrollRef:H},children:T(D,{position:"absolute",bottom:0,left:0,right:0,height:P?W:void 0,maxHeight:W-j,flexDirection:"column",overflow:"hidden",opaque:!0,children:[P?null:Y(D,{flexShrink:0,children:Y(p,{color:"permission",children:"▔".repeat(q)})}),Y(D,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:w})]})})},_=z==null?null:l(z,!1);if(V){let{leftCols:w,panelCols:P}=_Z(q);return T(D,{flexDirection:"column",flexGrow:1,width:"100%",overflow:"hidden",children:[T(D,{ref:C,flexDirection:"row",flexGrow:1,width:"100%",overflow:"hidden",children:[Y(QJ,{value:{columns:w,rows:U},children:Y(D,{flexDirection:"column",width:w,flexShrink:0,overflow:"hidden",children:Z})}),Y(kZ,{value:{rows:U,columns:P-(N?1:0),scrollRef:H},children:Y(D,{flexDirection:"column",width:P,flexShrink:0,overflow:"hidden",borderStyle:N?"single":void 0,borderTop:!1,borderBottom:!1,borderRight:!1,borderColor:"subtle",backgroundColor:B?B:void 0,children:Y(D,{flexDirection:"column",flexShrink:0,overflow:"hidden",children:X})})})]}),Q,_]})}return T(E0,{children:[Z,Q,X==null?null:l(X,J==="takeover"),_]})}var g0,Uz=2,jz=6;var qJ=q0(()=>{Pz();wz();Nz();I0();Az();vZ();G0();g0=K0(b0(),1)});function BJ(J){let Z=LZ.c(6),{children:Q}=J,[z,X]=O0.useState(null),[W,q]=O0.useState(null),H;if(Z[0]!==Q||Z[1]!==W)H=Y(HJ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=H;else H=Z[2];let V;if(Z[3]!==z||Z[4]!==H)V=Y(VJ.Provider,{value:X,children:Y(GJ.Provider,{value:q,children:Y(YJ.Provider,{value:z,children:H})})}),Z[3]=z,Z[4]=H,Z[5]=V;else V=Z[5];return V}function LJ(){return O0.useContext(YJ)}function FJ(){return O0.useContext(HJ)}function W8(J){let Z=LZ.c(8),Q=O0.useContext(VJ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];O0.useEffect(z,X),O0.useEffect(W,q)}function q8(J){let Z=LZ.c(8),Q=O0.useContext(GJ),z,X,W,q;if(Z[0]!==J||Z[1]!==Q)z=()=>{if(!Q)return;Q(J)},X=[Q,J],Z[0]=J,Z[1]=Q,Z[2]=z,Z[3]=X;else z=Z[2],X=Z[3];if(Z[4]!==Q)W=()=>{if(!Q)return;return()=>Q(null)},q=[Q],Z[4]=Q,Z[5]=W,Z[6]=q;else W=Z[5],q=Z[6];O0.useEffect(z,X),O0.useEffect(W,q)}var LZ,O0,YJ,VJ,HJ,GJ;var KJ=q0(()=>{G0();LZ=K0(u0(),1),O0=K0(b0(),1),YJ=O0.createContext(null),VJ=O0.createContext(null),HJ=O0.createContext(null),GJ=O0.createContext(null)});function FZ(J){return J.type==="attachment"&&Mz.has(J.attachment.type)}var Dz,Mz;var IZ=q0(()=>{Dz=["hook_success","hook_additional_context","hook_cancelled","command_permissions","agent_mention","budget_usd","critical_system_reminder","edited_image_file","edited_text_file","opened_file_in_ide","output_style","plan_mode","plan_mode_exit","plan_mode_reentry","structured_output","team_context","todo_reminder","context_efficiency","deferred_tools_delta","mcp_instructions_delta","companion_intro","token_usage","ultrathink_effort","max_turns_reached","task_reminder","auto_mode","auto_mode_exit","output_token_usage","bagel_console","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","todo_reminder_delta","task_reconcile","container_transition"],Mz=new Set(Dz)});import{fileURLToPath as _z}from"url";function C8(J){let[Z,Q]=Y0.useState(null),z=Y0.useRef(J);z.current=J;let X=Y0.useRef(null),W=Y0.useCallback(()=>{Q(null)},[]),q=Y0.useCallback((F)=>{let B=Math.max(0,F.getScrollHeight()-F.getViewportHeight());if(F.getScrollTop()+F.getPendingDelta()>=B)return;if(X.current===null)X.current=F.getScrollHeight(),Q(z.current)},[]),H=Y0.useCallback((F)=>{if(!F)return;F.scrollToBottom()},[]);Y0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let V=Y0.useCallback((F,B)=>{if(Q((N)=>N===null?null:N+F),X.current!==null)X.current+=B},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:H,shiftDivider:V}}function vz(J,Z){let Q=0,z=!1;for(let X=Z;X<J.length;X++){let W=J[X];if(W.type==="progress")continue;if(W.type==="assistant"&&!kz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function kz(J){if(J.type!=="assistant")return!1;for(let Z of J.message.content)if(Z.type==="text"&&Z.text.trim()!=="")return!0;return!1}function y8(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||FZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=vz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function _8(J){let Z=l0.c(48),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:H,panel:V,scrollRef:F,dividerYRef:B,hidePill:N,hideSticky:C,newMessageCount:U,onPillClick:S}=J,l=N===void 0?!1:N,_=C===void 0?!1:C,w=U===void 0?0:U,{rows:P,columns:j}=OZ(),[M,E]=Y0.useState(null),R;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))R={setStickyPrompt:E},Z[0]=R;else R=Z[0];let Z0=R,y;if(Z[1]!==F)y=(n)=>F?.current?.subscribe(n)??Tz,Z[1]=F,Z[2]=y;else y=Z[2];let x=y,Q0;if(Z[3]!==B||Z[4]!==F)Q0=()=>{let n=F?.current,i=B?.current;if(!n||i==null)return!1;return n.getScrollTop()+n.getPendingDelta()+n.getViewportHeight()<i},Z[3]=B,Z[4]=F,Z[5]=Q0;else Q0=Z[5];let B0=Y0.useSyncExternalStore(x,Q0),r;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))r=[],Z[6]=r;else r=Z[6];if(Y0.useLayoutEffect(Iz,r),e0()){let n=_?null:M,i=n!=null&&n!=="clicked"&&X==null?n:null,j0=n!=null&&X==null,g;if(Z[7]!==i)g=i&&Y(Rz,{text:i.text,onClick:i.scrollTo}),Z[7]=i,Z[8]=g;else g=Z[8];let o=j0?0:1,t;if(Z[9]!==Q)t=Y(SZ,{value:Z0,children:Q}),Z[9]=Q,Z[10]=t;else t=Z[10];let W0;if(Z[11]!==X||Z[12]!==F||Z[13]!==t||Z[14]!==o)W0=T(MJ,{ref:F,flexGrow:1,flexDirection:"column",paddingTop:o,stickyScroll:!0,children:[t,X]}),Z[11]=X,Z[12]=F,Z[13]=t,Z[14]=o,Z[15]=W0;else W0=Z[15];let v;if(Z[16]!==l||Z[17]!==w||Z[18]!==S||Z[19]!==X||Z[20]!==B0)v=!l&&B0&&X==null&&Y(hz,{count:w,onClick:S}),Z[16]=l,Z[17]=w,Z[18]=S,Z[19]=X,Z[20]=B0,Z[21]=v;else v=Z[21];let z0;if(Z[22]!==W)z0=W!=null&&Y(D,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=z0;else z0=Z[23];let w0;if(Z[24]!==W0||Z[25]!==v||Z[26]!==z0||Z[27]!==g)w0=T(D,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[g,W0,v,z0]}),Z[24]=W0,Z[25]=v,Z[26]=z0,Z[27]=g,Z[28]=w0;else w0=Z[28];let O,I;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))O=Y($z,{}),I=Y(xz,{}),Z[29]=O,Z[30]=I;else O=Z[29],I=Z[30];let h;if(Z[31]!==z)h=T(D,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[O,I,Y(D,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=h;else h=Z[32];let L0,N0=V==null?"anchored":ZJ(j)?"split":"takeover";return Y(BJ,{children:Y(WJ,{mode:N0,left:w0,bottom:h,modal:q,panel:V,rows:P,columns:j,scrollRef:H??null})})}let a;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)a=T(E0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=a;else a=Z[46];return a}function Iz(){if(!e0())return;let J=wJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Sz,()=>{J.onHyperlinkClick=void 0}}function Sz(J){if(J.startsWith("file:"))try{UJ(_z(J))}catch{}else jJ(J)}function Tz(){}function hz(J){let Z=l0.c(10),{count:Q,onClick:z}=J,[X,W]=Y0.useState(!1),q,H;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),H=()=>W(!1),Z[0]=q,Z[1]=H;else q=Z[0],H=Z[1];let V=X?"userMessageBackgroundHover":"userMessageBackground",F;if(Z[2]!==Q)F=Q>0?`${Q} new ${KZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=F;else F=Z[3];let B;if(Z[4]!==V||Z[5]!==F)B=T(p,{backgroundColor:V,dimColor:!0,children:[" ",F," ",C0.arrowDown," "]}),Z[4]=V,Z[5]=F,Z[6]=B;else B=Z[6];let N;if(Z[7]!==z||Z[8]!==B)N=Y(D,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:Y(D,{onClick:z,onMouseEnter:q,onMouseLeave:H,children:B})}),Z[7]=z,Z[8]=B,Z[9]=N;else N=Z[9];return N}function Rz(J){let Z=l0.c(8),{text:Q,onClick:z}=J,[X,W]=Y0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",H,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))H=()=>W(!0),V=()=>W(!1),Z[0]=H,Z[1]=V;else H=Z[0],V=Z[1];let F;if(Z[2]!==Q)F=T(p,{color:"subtle",wrap:"truncate-end",children:[C0.pointer," ",Q]}),Z[2]=Q,Z[3]=F;else F=Z[3];let B;if(Z[4]!==z||Z[5]!==q||Z[6]!==F)B=Y(D,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:H,onMouseLeave:V,children:F}),Z[4]=z,Z[5]=q,Z[6]=F,Z[7]=B;else B=Z[7];return B}function $z(){let J=l0.c(4),Z=LJ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=Y(D,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:Y(DJ,{suggestions:Z.suggestions,selectedSuggestion:Z.selectedSuggestion,maxColumnWidth:Z.maxColumnWidth,overlay:!0})}),J[0]=Z.maxColumnWidth,J[1]=Z.selectedSuggestion,J[2]=Z.suggestions,J[3]=Q;else Q=J[3];return Q}function xz(){let J=l0.c(2),Z=FJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=Y(D,{position:"absolute",bottom:"100%",left:0,right:0,opaque:!0,children:Z}),J[0]=Z,J[1]=Q;else Q=J[1];return Q}var l0,Y0,SZ;var EJ=q0(()=>{OJ();qJ();vZ();KJ();PJ();yz();Ez();I0();bz();AJ();NJ();IZ();Cz();G0();l0=K0(u0(),1),Y0=K0(b0(),1),SZ=Y0.createContext({setStickyPrompt:()=>{}})});function bJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var CJ=()=>{};function yJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${NZ}`))return!1;if(TZ(Z.text,wZ)!=="completed")return!1;return TZ(Z.text,AZ)?.startsWith(_J)??!1}function vJ(J,Z){if(!e0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(yJ(X)){let W=0;while(z<J.length&&yJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${NZ}><${wZ}>completed</${wZ}><${AZ}>${W} background commands completed</${AZ}></${NZ}>`}]}})}else Q.push(X),z++}return Q}var kJ=q0(()=>{uz();fz();AJ();PZ()});function IJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function SJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(IJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!IJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,H)=>q+H.hookCount,0),hookInfos:W.flatMap((q)=>q.hookInfos),hookErrors:W.flatMap((q)=>q.hookErrors),preventedContinuation:W.some((q)=>q.preventedContinuation),hasOutput:W.some((q)=>q.hasOutput),totalDurationMs:Math.max(...W.map((q)=>q.totalDurationMs??0))})}else Z.push(z),Q++}return Z}var TJ=()=>{};function hJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function RJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(hJ(z)){let X=0;while(Q<J.length&&hJ(J[Q]))X++,Q++;if(X===1)Z.push(z);else Z.push({type:"attachment",uuid:z.uuid,timestamp:z.timestamp,attachment:{type:"teammate_shutdown_batch",count:X}})}else Z.push(z),Q++}return Z}var $J=()=>{};function pz(J){let Z=xJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),xJ.set(J,Z);return Z}function hZ(J){if(J.type==="assistant"&&J.message.content[0]?.type==="tool_use"){let Z=J.message.content[0];return{messageId:J.message.id,toolUseId:Z.id,toolName:Z.name}}return null}function uJ(J,Z,Q=!1){if(Q)return{messages:J};let z=pz(Z),X=new Map;for(let B of J){let N=hZ(B);if(N&&z.has(N.toolName)){let C=`${N.messageId}:${N.toolName}`,U=X.get(C)??[];U.push(B),X.set(C,U)}}let W=new Map,q=new Set;for(let[B,N]of X)if(N.length>=2){W.set(B,N);for(let C of N){let U=hZ(C);if(U)q.add(U.toolUseId)}}let H=new Map;for(let B of J)if(B.type==="user"){for(let N of B.message.content)if(N.type==="tool_result"&&q.has(N.tool_use_id))H.set(N.tool_use_id,B)}let V=[],F=new Set;for(let B of J){let N=hZ(B);if(N){let C=`${N.messageId}:${N.toolName}`,U=W.get(C);if(U){if(!F.has(C)){F.add(C);let S=U[0],l=[];for(let w of U){let P=w.message.content[0].id,j=H.get(P);if(j)l.push(j)}let _={type:"grouped_tool_use",toolName:N.toolName,messages:U,results:l,displayMessage:S,uuid:`grouped-${S.uuid}`,timestamp:S.timestamp,messageId:N.messageId};V.push(_)}continue}}if(B.type==="user"){let C=B.message.content.filter((U)=>U.type==="tool_result");if(C.length>0){if(C.every((S)=>q.has(S.tool_use_id)))continue}}V.push(B)}return{messages:V}}var xJ;var fJ=q0(()=>{xJ=new WeakMap});function UZ(J){let Z=cJ.get(J);if(Z!==void 0)return Z;let Q=dz(J).toLowerCase();return cJ.set(J,Q),Q}function dz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=dJ.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!dJ.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(gz(J.toolUseResult));Z=W.join(`
|
|
2
|
-
`)}break}case"assistant":{let X=J.message.content;if(Array.isArray(X))Z=X.flatMap((W)=>{if(W.type==="text")return[W.text];if(W.type==="tool_use")return[cz(W.input)];return[]}).join(`
|
|
3
|
-
`);break}case"attachment":{if(J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let X=J.attachment.prompt;Z=typeof X==="string"?X:X.flatMap((W)=>W.type==="text"?[W.text]:[]).join(`
|
|
4
|
-
`)}break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(pJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+pJ.length),z=Q.indexOf("<system-reminder>")}return Q}function cz(J){if(!J||typeof J!=="object")return"";let Z=J,Q=[];for(let z of["command","pattern","file_path","path","prompt","description","query","url","skill"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["args","files"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(" "))}return Q.join(`
|
|
5
|
-
`)}function gz(J){if(!J||typeof J!=="object")return typeof J==="string"?J:"";let Z=J;if(typeof Z.stdout==="string"){let z=typeof Z.stderr==="string"?Z.stderr:"";return Z.stdout+(z?`
|
|
6
|
-
`+z:"")}if(Z.file&&typeof Z.file==="object"&&typeof Z.file.content==="string")return Z.file.content;let Q=[];for(let z of["content","output","result","text","message"]){let X=Z[z];if(typeof X==="string")Q.push(X)}for(let z of["filenames","lines","results"]){let X=Z[z];if(Array.isArray(X)&&X.every((W)=>typeof W==="string"))Q.push(X.join(`
|
|
7
|
-
`))}return Q.join(`
|
|
8
|
-
`)}var pJ="</system-reminder>",dJ,cJ;var RZ=q0(()=>{PZ();dJ=new Set([gJ,mJ]),cJ=new WeakMap});function lJ(J){let Z=iJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(mz)))return null;let W=jZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=Y(p,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let H;if(Z[2]!==W||Z[3]!==q)H=Y(D,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=H;else H=Z[4];return H}function mz(J){return J.type==="text"}var iJ;var rJ=q0(()=>{nJ();I0();G0();iJ=K0(u0(),1)});function oJ(J){let Z=aJ.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(nz)))return null;let W,q,H;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=D,H=jZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=H;else W=Z[1],q=Z[2],H=Z[3];let V;if(Z[4]!==q)V=Y(p,{dimColor:!0,children:q}),Z[4]=q,Z[5]=V;else V=Z[5];let F;if(Z[6]!==W||Z[7]!==H||Z[8]!==V)F=Y(W,{minWidth:H,children:V}),Z[6]=W,Z[7]=H,Z[8]=V,Z[9]=F;else F=Z[9];return F}function nz(J){return J.type==="text"}var aJ;var tJ=q0(()=>{nJ();I0();G0();aJ=K0(u0(),1)});function qQ(J,Z,Q,z){for(let X=Z+1;X<J.length;X++){let W=J[X];if(W?.type==="assistant"){let q=W.message.content[0];if(q?.type==="thinking"||q?.type==="redacted_thinking")continue;if(q?.type==="tool_use"){if($Z(q.name,q.input,Q).isCollapsible)continue;if(z.has(q.id))continue}return!0}if(W?.type==="system"||W?.type==="attachment")continue;if(W?.type==="user"){if(W.message.content[0]?.type==="tool_result")continue}if(W?.type==="grouped_tool_use"){let q=W.messages[0]?.message.content[0],H=q?.type==="tool_use"?q.input:void 0;if($Z(W.toolName,H,Q).isCollapsible)continue}return!0}return!1}function lz(J){let Z=XQ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:H,inProgressToolUseIDs:V,streamingToolUseIDs:F,screen:B,canAnimate:N,lastThinkingBlockId:C,latestBashOutputUUID:U,columns:S,isLoading:l,lookups:_}=J,w=B==="transcript",P=Q.type==="grouped_tool_use",j=Q.type==="collapsed_read_search",M;if(Z[0]!==X||Z[1]!==V||Z[2]!==j||Z[3]!==l||Z[4]!==Q)M=j&&(xZ(Q,V)||l&&!X),Z[0]=X,Z[1]=V,Z[2]=j,Z[3]=l,Z[4]=Q,Z[5]=M;else M=Z[5];let E=M,R;if(Z[6]!==j||Z[7]!==P||Z[8]!==Q)R=P?Q.displayMessage:j?eJ(Q):Q,Z[6]=j,Z[7]=P,Z[8]=Q,Z[9]=R;else R=Z[9];let Z0=R,y;if(Z[10]!==j||Z[11]!==P||Z[12]!==_||Z[13]!==Q)y=P||j?[]:LQ(Q,_),Z[10]=j,Z[11]=P,Z[12]=_,Z[13]=Q,Z[14]=y;else y=Z[14];let x=y,Q0;if(Z[15]!==V||Z[16]!==j||Z[17]!==P||Z[18]!==_||Z[19]!==Q||Z[20]!==B||Z[21]!==F){let v=P||j?sJ:BQ(Q,_);Q0=HQ(Q,F,V,v,B,_),Z[15]=V,Z[16]=j,Z[17]=P,Z[18]=_,Z[19]=Q,Z[20]=B,Z[21]=F,Z[22]=Q0}else Q0=Z[22];let B0=Q0,r=!1;if(N)if(P){let v;if(Z[23]!==V||Z[24]!==Q.messages){let z0;if(Z[26]!==V)z0=(w0)=>{let O=w0.message.content[0];return O?.type==="tool_use"&&V.has(O.id)},Z[26]=V,Z[27]=z0;else z0=Z[27];v=Q.messages.some(z0),Z[23]=V,Z[24]=Q.messages,Z[25]=v}else v=Z[25];r=v}else if(j){let v;if(Z[28]!==V||Z[29]!==Q)v=xZ(Q,V),Z[28]=V,Z[29]=Q,Z[30]=v;else v=Z[30];r=v}else{let v;if(Z[31]!==V||Z[32]!==Q){let z0=m0(Q);v=!z0||V.has(z0),Z[31]=V,Z[32]=Q,Z[33]=v}else v=Z[33];r=v}let a;if(Z[34]!==Z0||Z[35]!==w)a=w&&Z0.type==="assistant"&&Z0.message.content.some(rz)&&(Z0.timestamp||Z0.message.model),Z[34]=Z0,Z[35]=w,Z[36]=a;else a=Z[36];let n=a,i=!n,j0=n?void 0:S,g;if(Z[37]!==q||Z[38]!==V||Z[39]!==E||Z[40]!==B0||Z[41]!==w||Z[42]!==z||Z[43]!==C||Z[44]!==U||Z[45]!==_||Z[46]!==Q||Z[48]!==x||Z[49]!==r||Z[50]!==i||Z[51]!==j0||Z[52]!==W||Z[53]!==H)g=Y(zQ,{message:Q,lookups:_,addMargin:i,containerWidth:j0,tools:W,commands:q,verbose:H,inProgressToolUseIDs:V,progressMessagesForMessage:x,shouldAnimate:r,shouldShowDot:!0,isTranscriptMode:w,isStatic:B0,isActiveCollapsedGroup:E,isUserContinuation:z,lastThinkingBlockId:C,latestBashOutputUUID:U}),Z[37]=q,Z[38]=V,Z[39]=E,Z[40]=B0,Z[41]=w,Z[42]=z,Z[43]=C,Z[44]=U,Z[45]=_,Z[46]=Q,Z[48]=x,Z[49]=r,Z[50]=i,Z[51]=j0,Z[52]=W,Z[53]=H,Z[54]=g;else g=Z[54];let o=g;if(!n){let v;if(Z[55]!==o)v=Y(ZZ,{children:o}),Z[55]=o,Z[56]=v;else v=Z[56];return v}let t;if(Z[57]!==Z0||Z[58]!==w)t=T(D,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[Y(oJ,{message:Z0,isTranscriptMode:w}),Y(lJ,{message:Z0,isTranscriptMode:w})]}),Z[57]=Z0,Z[58]=w,Z[59]=t;else t=Z[59];let W0;if(Z[60]!==S||Z[61]!==o||Z[62]!==t)W0=Y(ZZ,{children:T(D,{width:S,flexDirection:"column",children:[t,o]})}),Z[60]=S,Z[61]=o,Z[62]=t,Z[63]=W0;else W0=Z[63];return W0}function rz(J){return J.type==="text"}function az(J,Z){if(J.type==="grouped_tool_use")return J.messages.some((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return uZ(J).some((X)=>Z.has(X));let Q=m0(J);return!!Q&&Z.has(Q)}function oz(J,Z){if(J.type==="grouped_tool_use")return J.messages.every((z)=>{let X=z.message.content[0];return X?.type==="tool_use"&&Z.has(X.id)});if(J.type==="collapsed_read_search")return uZ(J).every((X)=>Z.has(X));if(J.type==="assistant"){let z=J.message.content[0];if(z?.type==="server_tool_use")return Z.has(z.id)}let Q=m0(J);return!Q||Z.has(Q)}function tz(J,Z){if(J.message!==Z.message)return!1;if(J.screen!==Z.screen)return!1;if(J.verbose!==Z.verbose)return!1;if(J.message.type==="collapsed_read_search"&&Z.screen!=="transcript")return!1;if(J.columns!==Z.columns)return!1;let Q=J.latestBashOutputUUID===J.message.uuid,z=Z.latestBashOutputUUID===Z.message.uuid;if(Q!==z)return!1;if(J.lastThinkingBlockId!==Z.lastThinkingBlockId&&QQ(Z.message))return!1;let X=az(J.message,J.streamingToolUseIDs),W=oz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var XQ,WQ,YQ;var VQ=q0(()=>{I0();ZQ();PZ();iz();rJ();GQ();tJ();JQ();G0();XQ=K0(u0(),1),WQ=K0(b0(),1);YQ=WQ.memo(lz,tz)});import{relative as XX}from"path";function AQ(J){return BX.filter((Z)=>Z.isActive(J))}var WX,qX,YX,VX,HX,GX,BX;var PQ=q0(()=>{I0();jQ();OJ();ez();sz();ZX();zX();QX();JX();G0();WX={id:"large-memory-files",type:"warning",isActive:(J)=>gZ(J.memoryFiles).length>0,render:(J)=>{let Z=gZ(J.memoryFiles);return Y(E0,{children:Z.map((Q)=>{let z=Q.path.startsWith(fZ())?XX(fZ(),Q.path):Q.path;return T(D,{flexDirection:"row",children:[Y(p,{color:"warning",children:C0.warning}),T(p,{color:"warning",children:["Large ",Y(p,{bold:!0,children:z})," will impact performance (",JZ(Q.content.length)," chars >"," ",JZ(UQ),")",Y(p,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},qX={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=QZ();return KQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=QZ();return T(D,{flexDirection:"row",marginTop:1,children:[Y(p,{color:"warning",children:C0.warning}),T(p,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},YX={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=zZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!FQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=zZ({skipRetrievingKeyFromApiKeyHelper:!0});return T(D,{flexDirection:"row",marginTop:1,children:[Y(p,{color:"warning",children:C0.warning}),T(p,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},VX={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=zZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=QZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=zZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=QZ();return T(D,{flexDirection:"column",marginTop:1,children:[T(D,{flexDirection:"row",children:[Y(p,{color:"warning",children:C0.warning}),T(p,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),T(D,{flexDirection:"column",marginLeft:3,children:[T(p,{color:"warning",children:["· Trying to use"," ",Z.source==="claude.ai"?"claude.ai":Z.source,"?"," ",J==="ANTHROPIC_API_KEY"?'Unset the ANTHROPIC_API_KEY environment variable, or claude /logout then say "No" to the API key approval before login.':J==="apiKeyHelper"?"Unset the apiKeyHelper setting.":"claude /logout"]}),T(p,{color:"warning",children:["· Trying to use ",J,"?"," ",Z.source==="claude.ai"?"claude /logout to sign out of claude.ai.":`Unset the ${Z.source} environment variable.`]})]})]})}},HX={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return cZ(J.agentDefinitions)>dZ},render:(J)=>{let Z=cZ(J.agentDefinitions);return T(D,{flexDirection:"row",children:[Y(p,{color:"warning",children:C0.warning}),T(p,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",JZ(Z)," tokens >"," ",JZ(dZ),")",Y(p,{dimColor:!0,children:" · /agents to manage"})]})]})}},GX={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!NQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=pZ();return Q!==null&&!OQ(Q)},render:()=>{let J=pZ(),Z=wQ(J);return T(D,{flexDirection:"row",gap:1,marginLeft:1,children:[Y(p,{color:"ide",children:C0.arrowUp}),T(p,{children:["Install the ",Y(p,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",Y(p,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},BX=[WX,HX,qX,YX,VX,GX]});async function LX(){if(XZ)return XZ;return XZ=CQ().then((J)=>{WZ=J}).finally(()=>{XZ=null}),XZ}function EQ(J){let Z=MQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=r0.useState(WZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(WZ.length>0){X(WZ);return}LX().then(()=>{X(WZ)})},Z[0]=W;else W=Z[0];r0.useEffect(W,[W]);let H={config:DZ(),agentDefinitions:Q,memoryFiles:z},V=AQ(H);if(V.length===0)return null;let F=D,B="column",N=1,C=V.map((S)=>Y(r0.Fragment,{children:S.render(H)},S.id)),U;if(Z[1]!==F||Z[2]!==C)U=Y(F,{flexDirection:B,paddingLeft:N,children:C}),Z[1]=F,Z[2]=C,Z[3]=U;else U=Z[3];return U}var MQ,r0,WZ,XZ=null;var bQ=q0(()=>{I0();jQ();DQ();PQ();G0();MQ=K0(u0(),1),r0=K0(b0(),1),WZ=[]});function yQ(J,Z,Q=200,z=50){let X=Z.current,W=X?J.findIndex((V)=>V.uuid===X.uuid):-1,q=W>=0?W:X?Math.min(X.idx,Math.max(0,J.length-Q)):0;if(J.length-q>Q+z)q=J.length-Q;let H=J[q];if(H&&(X?.uuid!==H.uuid||X.idx!==q))Z.current={uuid:H.uuid,idx:q};else if(!H&&X)Z.current=null;return q}var _Q=()=>{};function vQ(J,Z,Q){let z=c.useRef(new Map),X=c.useRef(0),W=c.useRef(0),q=c.useRef({arr:new Float64Array(0),version:-1,n:-1}),H=c.useRef(new Map),V=c.useRef(new Map),F=c.useRef(Q),B=c.useRef(!1),N=c.useRef(null),C=c.useRef(0);if(F.current!==Q){let O=F.current/Q;F.current=Q;for(let[I,h]of z.current)z.current.set(I,Math.max(1,Math.round(h*O)));X.current++,B.current=!0,C.current=2}let U=C.current>0?N.current:null,S=c.useRef(0),l=c.useRef(null),_=c.useCallback((O)=>J.current?.subscribe(O)??NX,[J]);c.useSyncExternalStore(_,()=>{let O=J.current;if(!O)return NaN;let I=O.getScrollTop()+O.getPendingDelta(),h=Math.floor(I/OX);return O.isSticky()?~h:h});let w=J.current?.getScrollTop()??-1,P=J.current?.getPendingDelta()??0,j=J.current?.getViewportHeight()??0,M=J.current?.isSticky()??!0;c.useMemo(()=>{let O=new Set(Z),I=!1;for(let h of z.current.keys())if(!O.has(h))z.current.delete(h),I=!0;for(let h of V.current.keys())if(!O.has(h))V.current.delete(h);if(I)X.current++},[Z]);let E=Z.length;if(q.current.version!==X.current||q.current.n!==E){let O=q.current.arr.length>=E+1?q.current.arr:new Float64Array(E+1);O[0]=0;for(let I=0;I<E;I++)O[I+1]=O[I]+(z.current.get(Z[I])??FX);q.current={arr:O,version:X.current,n:E}}let R=q.current.arr,Z0=R[E],y,x;if(U)[y,x]=U,y=Math.min(y,E),x=Math.min(x,E);else if(j===0||w<0)y=Math.max(0,E-KX),x=E;else{if(M){let J0=j+a0;y=E;while(y>0&&Z0-R[y-1]<J0)y--;x=E}else{let J0=S.current,V0=j*3,f0=Math.min(w,w+P),S0=Math.max(w,w+P),P0=S0-f0,T0=P0>V0?P<0?S0-V0:f0:f0,h0=T0+Math.min(P0,V0),p0=Math.max(0,T0-J0),d0=h0-J0,y0=p0-a0;{let G=0,K=E;while(G<K){let A=G+K>>1;if(R[A+1]<=y0)G=A+1;else K=A}y=G}{let G=N.current;if(G&&G[0]<y)for(let K=G[0];K<Math.min(y,G[1]);K++){let A=Z[K];if(H.current.has(A)&&!z.current.has(A)){y=K;break}}}let i0=j+2*a0,o0=Math.min(E,y+qZ),_0=0;x=y;while(x<o0&&(_0<i0||R[x]<d0+j+a0))_0+=z.current.get(Z[x])??mZ,x++}let O=j+2*a0,I=Math.max(0,x-qZ),h=0;for(let J0=y;J0<x;J0++)h+=z.current.get(Z[J0])??mZ;while(y>I&&h<O)y--,h+=z.current.get(Z[y])??mZ;let L0=N.current,N0=Math.abs(w-W.current)+Math.abs(P);if(L0&&N0>j*2){let[J0,V0]=L0;if(y<J0-YZ)y=J0-YZ;if(x>V0+YZ)x=V0+YZ;if(y>x)x=Math.min(y+YZ,E)}W.current=w}if(C.current>0)C.current--;else N.current=[y,x];let Q0=c.useDeferredValue(y),B0=c.useDeferredValue(x),r=y<Q0?Q0:y,a=x>B0?B0:x;if(r>a||M)r=y,a=x;if(P>0)a=x;if(a-r>qZ){let O=(R[r]+R[a])/2;if(w-S.current<O)a=r+qZ;else r=a-qZ}let n=S.current,i=R[r],j0=r===0?0:i+n,g=a===E?1/0:Math.max(i,R[a]-j)+n;c.useLayoutEffect(()=>{if(M)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(j0,g)}),c.useLayoutEffect(()=>{let O=l.current?.yogaNode;if(O&&O.getComputedWidth()>0)S.current=O.getComputedTop();if(B.current){B.current=!1;return}let I=!1;for(let[h,L0]of H.current){let N0=L0.yogaNode;if(!N0)continue;let J0=N0.getComputedHeight(),V0=z.current.get(h);if(J0>0){if(V0!==J0)z.current.set(h,J0),I=!0}else if(N0.getComputedWidth()>0&&V0!==0)z.current.set(h,0),I=!0}if(I)X.current++});let o=c.useCallback((O)=>{let I=V.current.get(O);if(!I)I=(h)=>{if(h)H.current.set(O,h);else{let L0=H.current.get(O)?.yogaNode;if(L0&&!B.current){let N0=L0.getComputedHeight();if((N0>0||L0.getComputedWidth()>0)&&z.current.get(O)!==N0)z.current.set(O,N0),X.current++}H.current.delete(O)}},V.current.set(O,I);return I},[]),t=c.useCallback((O)=>{let I=H.current.get(Z[O])?.yogaNode;if(!I||I.getComputedWidth()===0)return-1;return I.getComputedTop()},[Z]),W0=c.useCallback((O)=>H.current.get(Z[O])??null,[Z]),v=c.useCallback((O)=>z.current.get(Z[O]),[Z]),z0=c.useCallback((O)=>{let I=q.current;if(O<0||O>=I.n)return;J.current?.scrollTo(I.arr[O]+S.current)},[J]),w0=Z0-R[a];return{range:[r,a],topSpacer:i,bottomSpacer:w0,measureRef:o,spacerRef:l,offsets:R,getItemTop:t,getItemElement:W0,getItemHeight:v,scrollToIndex:z0}}var c,FX=3,a0=80,KX=30,OX,mZ=1,qZ=300,YZ=25,NX=()=>{};var kQ=q0(()=>{c=K0(b0(),1),OX=a0>>1});function UX(J){let Z=IQ.get(J);if(Z!==void 0)return Z;let Q=UZ(J);return IQ.set(J,Q),Q}function DX(J){let Z=SQ.get(J);if(Z!==void 0)return Z;let Q=MX(J);return SQ.set(J,Q),Q}function MX(J){let Z=null;if(J.type==="user"){if(J.isMeta||J.isVisibleInTranscriptOnly)return null;let z=J.message.content[0];if(z?.type!=="text")return null;Z=z.text}else if(J.type==="attachment"&&J.attachment.type==="queued_command"&&J.attachment.commandMode!=="task-notification"&&!J.attachment.isMeta){let z=J.attachment.prompt;Z=typeof z==="string"?z:z.flatMap((X)=>X.type==="text"?[X.text]:[]).join(`
|
|
9
|
-
`)}if(Z===null)return null;let Q=xQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function EX(J){let Z=fQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:H,clickable:V,onClickK:F,onEnterK:B,onLeaveK:N,renderItem:C}=J,U;if(Z[0]!==Q||Z[1]!==W)U=W(Q),Z[0]=Q,Z[1]=W,Z[2]=U;else U=Z[2];let S=q?"userMessageBackgroundHover":void 0,l=q?1:void 0,_;if(Z[3]!==V||Z[4]!==z||Z[5]!==F)_=V?(Z0)=>F(z,Z0.cellIsBlank):void 0,Z[3]=V,Z[4]=z,Z[5]=F,Z[6]=_;else _=Z[6];let w;if(Z[7]!==V||Z[8]!==Q||Z[9]!==B)w=V?()=>B(Q):void 0,Z[7]=V,Z[8]=Q,Z[9]=B,Z[10]=w;else w=Z[10];let P;if(Z[11]!==V||Z[12]!==Q||Z[13]!==N)P=V?()=>N(Q):void 0,Z[11]=V,Z[12]=Q,Z[13]=N,Z[14]=P;else P=Z[14];let j=H&&!q?"text":void 0,M;if(Z[15]!==X||Z[16]!==z||Z[17]!==C)M=C(z,X),Z[15]=X,Z[16]=z,Z[17]=C,Z[18]=M;else M=Z[18];let E;if(Z[19]!==j||Z[20]!==M)E=Y(hQ.Provider,{value:j,children:M}),Z[19]=j,Z[20]=M,Z[21]=E;else E=Z[21];let R;if(Z[22]!==U||Z[23]!==S||Z[24]!==l||Z[25]!==_||Z[26]!==w||Z[27]!==P||Z[28]!==E)R=Y(D,{ref:U,flexDirection:"column",backgroundColor:S,paddingBottom:l,onClick:_,onMouseEnter:w,onMouseLeave:P,children:E}),Z[22]=U,Z[23]=S,Z[24]=l,Z[25]=_,Z[26]=w,Z[27]=P,Z[28]=E,Z[29]=R;else R=Z[29];return R}function pQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:H,extractSearchText:V=UX,trackStickyPrompt:F,selectedIndex:B,cursorNavRef:N,setCursor:C,jumpRef:U,onSearchMatchesChange:S,scanElement:l,setPositions:_}){let w=k.useRef([]),P=k.useRef(J),j=k.useRef(z);if(j.current!==z||J.length<w.current.length||J[0]!==P.current[0])w.current=J.map((G)=>z(G));else for(let G=w.current.length;G<J.length;G++)w.current.push(z(J[G]));P.current=J,j.current=z;let M=w.current,{range:E,topSpacer:R,bottomSpacer:Z0,measureRef:y,spacerRef:x,offsets:Q0,getItemTop:B0,getItemElement:r,getItemHeight:a,scrollToIndex:n}=vQ(Z,M,Q),[i,j0]=E,g=k.useCallback((G)=>{if(a(G)===0)return!1;return RQ(J[G])},[a,J]);k.useImperativeHandle(N,()=>{let G=(u)=>C?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:$Q(u)?.name}),K=B??-1,A=(u,m,s=g)=>{for(let d=u;d>=0&&d<J.length;d+=m)if(s(d))return G(J[d]),!0;return!1},$=(u)=>g(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,$),navigatePrev:()=>A(K-1,-1),navigateNext:()=>{if(A(K+1,1))return;Z.current?.scrollToBottom(),C?.(null)},navigatePrevUser:()=>A(K-1,-1,$),navigateNextUser:()=>A(K+1,1,$),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>K>=0?J[K]??null:null}},[J,B,C,g]);let o=k.useRef({offsets:Q0,start:i,getItemElement:r,getItemTop:B0,messages:J,scrollToIndex:n});o.current={offsets:Q0,start:i,getItemElement:r,getItemTop:B0,messages:J,scrollToIndex:n},k.useEffect(()=>{if(B===void 0)return;let G=o.current,K=G.getItemElement(B);if(K)Z.current?.scrollToElement(K,1);else G.scrollToIndex(B)},[B,Z]);let t=k.useRef(null),W0=k.useRef({msgIdx:-1,positions:[]}),v=k.useRef(-1),z0=k.useRef(0),w0=k.useRef(0),O=k.useRef(()=>{}),I=k.useRef(()=>{}),h=k.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),L0=k.useRef(-1),N0=k.useRef(!1);function J0(G){let K=o.current.getItemTop(G);return Math.max(0,K-nZ)}function V0(G){let K=Z.current,{msgIdx:A,positions:$}=W0.current;if(!K||$.length===0||A<0){_?.(null);return}let u=Math.max(0,Math.min(G,$.length-1)),m=$[u],s=o.current.getItemTop(A),d=K.getViewportTop(),X0=s-K.getScrollTop(),R0=K.getViewportHeight(),A0=d+X0+m.row;if(A0<d||A0>=d+R0)K.scrollTo(Math.max(0,s+m.row-nZ)),X0=s-K.getScrollTop(),A0=d+X0+m.row;_?.({positions:$,rowOffset:d+X0,currentIdx:u});let M0=h.current,U0=M0.prefixSum.at(-1)??0,D0=(M0.prefixSum[M0.ptr]??0)+u+1;S?.(U0,D0),n0(`highlight(i=${A}, ord=${u}/${$.length}): pos={row:${m.row},col:${m.col}} lo=${X0} screenRow=${A0} badge=${D0}/${U0}`)}I.current=V0;let[f0,S0]=k.useState(0),P0=k.useCallback(()=>S0((G)=>G+1),[]);k.useEffect(()=>{let G=t.current;if(!G)return;let{idx:K,wantLast:A,tries:$}=G,u=Z.current;if(!u)return;let{getItemElement:m,getItemTop:s,scrollToIndex:d}=o.current,X0=m(K),R0=X0?.yogaNode?.getComputedHeight()??0;if(!X0||R0===0){if($>1){t.current=null,n0(`seek(i=${K}): no mount after scrollToIndex, skip`),O.current(A?-1:1);return}t.current={idx:K,wantLast:A,tries:$+1},d(K),P0();return}t.current=null,u.scrollTo(Math.max(0,s(K)-nZ));let A0=l?.(X0)??[];if(W0.current={msgIdx:K,positions:A0},n0(`seek(i=${K} t=${$}): ${A0.length} positions`),A0.length===0){if(++z0.current>20){z0.current=0;return}O.current(A?-1:1);return}z0.current=0;let M0=A?A0.length-1:0;h.current.screenOrd=M0,v.current=-1,I.current(M0);let U0=w0.current;if(U0)w0.current=0,O.current(U0)},[f0]);function T0(G,K){let A=Z.current;if(!A)return;let $=o.current,{getItemElement:u,scrollToIndex:m}=$;if(G<0||G>=$.messages.length)return;_?.(null),W0.current={msgIdx:-1,positions:[]},t.current={idx:G,wantLast:K,tries:0};let s=u(G),d=s?.yogaNode?.getComputedHeight()??0;if(s&&d>0)A.scrollTo(J0(G));else m(G);P0()}function h0(G){let K=h.current,{matches:A,prefixSum:$}=K,u=$.at(-1)??0;if(A.length===0)return;if(t.current){w0.current=G;return}if(v.current<0)v.current=K.ptr;let{positions:m}=W0.current,s=K.screenOrd+G;if(s>=0&&s<m.length){K.screenOrd=s,V0(s),v.current=-1;return}let d=(K.ptr+G+A.length)%A.length;if(d===v.current){_?.(null),v.current=-1,n0(`step: wraparound at ptr=${d}, all ${A.length} msgs phantoms`);return}K.ptr=d,K.screenOrd=0,T0(A[d],G<0);let X0=G<0?$[d+1]??u:$[d]+1;S?.(u,X0)}O.current=h0,k.useImperativeHandle(U,()=>({jumpToIndex:(G)=>{let K=Z.current;if(K)K.scrollTo(J0(G))},setSearchQuery:(G)=>{t.current=null,W0.current={msgIdx:-1,positions:[]},v.current=-1,_?.(null);let K=G.toLowerCase(),A=[],$=[0];if(K){let U0=o.current.messages;for(let D0=0;D0<U0.length;D0++){let v0=V(U0[D0]),L=v0.indexOf(K),b=0;while(L>=0)b++,L=v0.indexOf(K,L+K.length);if(b>0)A.push(D0),$.push($.at(-1)+b)}}let u=$.at(-1),m=0,s=Z.current,{offsets:d,start:X0,getItemTop:R0}=o.current,A0=R0(X0),M0=A0>=0?A0-d[X0]:0;if(A.length>0&&s){let U0=L0.current>=0?L0.current:s.getScrollTop(),D0=1/0;for(let v0=0;v0<A.length;v0++){let L=Math.abs(M0+d[A[v0]]-U0);if(L<=D0)D0=L,m=v0}n0(`setSearchQuery('${G}'): ${A.length} msgs · ptr=${m} msgIdx=${A[m]} curTop=${U0} origin=${M0}`)}if(h.current={matches:A,ptr:m,screenOrd:0,prefixSum:$},A.length>0)T0(A[m],!0);else if(L0.current>=0&&s)s.scrollTo(L0.current);S?.(u,A.length>0?$[m+1]??u:0)},nextMatch:()=>h0(1),prevMatch:()=>h0(-1),setAnchor:()=>{let G=Z.current;if(G)L0.current=G.getScrollTop()},disarmSearch:()=>{_?.(null),t.current=null,W0.current={msgIdx:-1,positions:[]},v.current=-1},warmSearchIndex:async()=>{if(N0.current)return 0;let G=o.current.messages,K=500,A=0,$=performance.now();for(let m=0;m<G.length;m+=K){await TQ(0);let s=performance.now(),d=Math.min(m+K,G.length);for(let X0=m;X0<d;X0++)V(G[X0]);A+=performance.now()-s}let u=Math.round(performance.now()-$);return n0(`warmSearchIndex: ${G.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(G.length/K)}`),N0.current=!0,Math.round(A)}}),[Z]);let[p0,d0]=k.useState(null),y0=k.useRef({onItemClick:W,setHoveredKey:d0});y0.current={onItemClick:W,setHoveredKey:d0};let i0=k.useCallback((G,K)=>{let A=y0.current;if(!K&&A.onItemClick)A.onItemClick(G)},[]),o0=k.useCallback((G)=>{y0.current.setHoveredKey(G)},[]),_0=k.useCallback((G)=>{y0.current.setHoveredKey((K)=>K===G?null:K)},[]);return T(E0,{children:[Y(D,{ref:x,height:R,flexShrink:0}),J.slice(i,j0).map((G,K)=>{let A=i+K,$=M[A],u=!!W&&(q?.(G)??!0),m=u&&p0===$,s=H?.(G);return Y(EX,{itemKey:$,msg:G,idx:A,measureRef:y,expanded:s,hovered:m,clickable:u,onClickK:i0,onEnterK:o0,onLeaveK:_0,renderItem:X},$)}),Z0>0&&Y(D,{height:Z0,flexShrink:0}),F&&Y(CX,{messages:J,start:i,end:j0,offsets:Q0,getItemTop:B0,getItemElement:r,scrollRef:Z})]})}function CX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:H}=k.useContext(SZ),V=k.useCallback((M)=>q.current?.subscribe(M)??bX,[q]);k.useSyncExternalStore(V,()=>{let M=q.current;if(!M)return NaN;let E=M.getScrollTop()+M.getPendingDelta();return M.isSticky()?-1-E:E});let F=q.current?.isSticky()??!0,B=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),N=Z,C=-1;for(let M=Q-1;M>=Z;M--){let E=X(M);if(E>=0){if(E<B)break;C=E}N=M}let U=-1,S=null;if(N>0&&!F)for(let M=N-1;M>=0;M--){let E=DX(J[M]);if(E===null)continue;let R=X(M);if(R>=0&&R+1>=B)continue;U=M,S=E;break}let l=C>=0?C-z[N]:0,_=U>=0?Math.max(0,l+z[U]):-1,w=k.useRef({idx:-1,tries:0}),P=k.useRef("none"),j=k.useRef(-1);return k.useEffect(()=>{if(w.current.idx>=0)return;if(P.current==="armed"){P.current="force";return}let M=P.current==="force";if(P.current="none",!M&&j.current===U)return;if(j.current=U,S===null){H(null);return}let E=S.trimStart(),R=E.search(/\n\s*\n/),Z0=(R>=0?E.slice(0,R):E).slice(0,jX).replace(/\s+/g," ").trim();if(Z0===""){H(null);return}let y=U,x=_;H({text:Z0,scrollTo:()=>{H("clicked"),P.current="armed";let Q0=W(y);if(Q0)q.current?.scrollToElement(Q0,1);else q.current?.scrollTo(x),w.current={idx:y,tries:0}}})}),k.useEffect(()=>{if(w.current.idx<0)return;let M=W(w.current.idx);if(M)q.current?.scrollToElement(M,1),w.current={idx:-1,tries:0};else if(++w.current.tries>5)w.current={idx:-1,tries:0}}),null}var fQ,k,nZ=3,IQ,jX=500,SQ,bX=()=>{};var dQ=q0(()=>{kQ();I0();PX();EJ();wX();AX();RZ();uQ();G0();fQ=K0(u0(),1),k=K0(b0(),1),IQ=new WeakMap;SQ=new WeakMap});function cQ(J){return(J.type==="assistant"||J.type==="user"?m0(J):null)??J.uuid}function mX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function HQ(J,Z,Q,z,X,W){if(X==="transcript")return!0;switch(J.type){case"attachment":case"user":case"assistant":{if(J.type==="assistant"){let H=J.message.content[0];if(H?.type==="server_tool_use")return W.resolvedToolUseIDs.has(H.id)}let q=m0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(Bz(q,"PostToolUse",W))return!1;return bJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((H)=>{let V=H.message.content[0];return V?.type==="tool_use"&&W.resolvedToolUseIDs.has(V.id)});case"collapsed_read_search":return!1}return!1}var Wz,VZ,f,dX,iZ=30,cX=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:H,conversationId:V,screen:F,streamingToolUses:B,showAllInTranscript:N=!1,agentDefinitions:C,hideLogo:U=!1,isLoading:S,hidePastThinking:l=!1,streamingThinking:_,hasStreamingText:w=!1,isBriefOnly:P=!1,unseenDivider:j,scrollRef:M,trackStickyPrompt:E,jumpRef:R,onSearchMatchesChange:Z0,scanElement:y,setPositions:x,disableRenderCap:Q0=!1,cursor:B0=null,setCursor:r,cursorNavRef:a,renderRange:n})=>{let{columns:i}=OZ(),j0=aQ("transcript:toggleShowAll","Transcript","Ctrl+E"),g=f.useMemo(()=>aZ(J).filter(qz),[J]),o=f.useMemo(()=>{if(!_)return!1;if(_.isStreaming)return!0;if(_.streamingEndedAt)return Date.now()-_.streamingEndedAt<30000;return!1},[_]),t=f.useMemo(()=>{if(!l)return null;if(o)return"streaming";for(let L=g.length-1;L>=0;L--){let b=g[L];if(b?.type==="assistant"){let H0=b.message.content;for(let e=H0.length-1;e>=0;e--){let F0=H0[e];if(F0?.type==="thinking"&&!sQ(F0))return`${b.uuid}:${e}`}}else if(b?.type==="user"){if(!b.message.content.some((e)=>e.type==="tool_result"))return"no-thinking"}}return null},[g,l,o]),W0=f.useMemo(()=>{for(let L=g.length-1;L>=0;L--){let b=g[L];if(b?.type==="user"){let H0=b.message.content;for(let e of H0)if(e.type==="text"){let F0=e.text;if(F0.startsWith("<bash-stdout")||F0.startsWith("<bash-stderr"))return b.uuid}}}return null},[g]),v=f.useMemo(()=>Lz(g),[g]),z0=f.useMemo(()=>B.filter((L)=>!q.has(L.contentBlock.id)&&!v.has(L.contentBlock.id)),[B,q,v]),w0=f.useMemo(()=>z0.flatMap((L)=>{let b=zz({content:[L.contentBlock]});return b.uuid=iQ(L.contentBlock.id,0),aZ([b])}),[z0]),O=F==="transcript",I=f.useMemo(()=>mQ(process.env.CLAUDIN_DISABLE_VIRTUAL_SCROLL),[]),h=M!=null&&!I,L0=O&&!N&&!h,N0=f.useRef(null),{collapsed:J0,lookups:V0,hasTruncatedMessages:f0,hiddenMessageCount:S0}=f.useMemo(()=>{let b=Vz(g.filter((t0)=>t0.type!=="progress").filter((t0)=>!FZ(t0)).filter((t0)=>Yz(t0,O)),w0),H0=L0?b.slice(-iZ):b,e=L0&&b.length>iZ,{messages:F0}=uJ(H0,Z,z),k0=vJ(SJ(RJ(Qz(eQ(F0,Z)))),z),HZ=Hz(g,H0),c0=b.length-iZ;return{collapsed:k0,lookups:HZ,hasTruncatedMessages:e,hiddenMessageCount:c0}},[z,g,O,w0,L0,Z,P]),P0=f.useMemo(()=>{let b=!h&&!Q0?yQ(J0,N0):0;return n?J0.slice(n[0],n[1]):b>0?J0.slice(b):J0},[J0,n,h,Q0]),T0=f.useMemo(()=>new Set(B.map((L)=>L.contentBlock.id)),[B]),h0=Xz((L)=>L.tasks),p0=V0.asyncLaunchedToolUseIDs,d0=f.useMemo(()=>{if(p0.size===0)return null;let L=new Set;for(let[b,H0]of p0){let e=h0?.[H0]?.status;if(e==="running"||e==="requested"||e==="queued")L.add(b)}return L.size>0?L:null},[h0,p0]),y0=V0.resolvedToolUseIDs,i0=f.useMemo(()=>Gz(q,y0,d0),[q,y0,d0]),o0=f.useMemo(()=>{if(!j)return-1;let L=j.firstUnseenUuid.slice(0,24);return P0.findIndex((b)=>b.uuid.slice(0,24)===L)},[j,P0]),_0=f.useMemo(()=>{if(!B0)return-1;return P0.findIndex((L)=>L.uuid===B0.uuid)},[B0,P0]),[G,K]=f.useState(()=>new Set),A=f.useCallback((L)=>{let b=cQ(L);K((H0)=>{let e=new Set(H0);if(e.has(b))e.delete(b);else e.add(b);return e})},[]),$=f.useCallback((L)=>G.size>0&&G.has(cQ(L)),[G]),u=f.useRef(V0);u.current=V0;let m=f.useCallback((L)=>{if(L.type==="collapsed_read_search")return!0;if(L.type==="assistant"){let F0=L.message.content[0];return F0!=null&&rQ(F0)&&F0.type==="advisor_tool_result"&&F0.content.type==="advisor_result"}if(L.type!=="user")return!1;let b=L.message.content[0];if(b?.type!=="tool_result"||b.is_error||!L.toolUseResult)return!1;let H0=u.current.toolUseByToolUseID.get(b.tool_use_id)?.name;return(H0?rZ(Z,H0):void 0)?.isResultTruncated?.(L.toolUseResult)??!1},[Z]),s=(!X||!!X.shouldContinueAnimation)&&!W.length&&!H,d=i0.size>0,{progress:X0}=lQ(),R0=f.useRef(null),A0=DZ().terminalProgressBarEnabled&&!gQ();f.useEffect(()=>{let L=A0?d?"indeterminate":"completed":null;if(R0.current===L)return;R0.current=L,X0(L)},[X0,A0,d]),f.useEffect(()=>{return()=>X0(null)},[X0]);let M0=f.useCallback((L)=>`${L.uuid}-${V}`,[V]),U0=(L,b)=>{if(L.type==="progress")return null;let H0=b>0?P0[b-1]?.type:void 0,e=L.type==="user"&&H0==="user",F0=L.type==="collapsed_read_search"&&(w||qQ(P0,b,Z,T0)),k0=M0(L),HZ=Y(YQ,{message:L,isUserContinuation:e,hasContentAfter:F0,tools:Z,commands:Q,verbose:z||$(L)||B0?.expanded===!0&&b===_0,inProgressToolUseIDs:i0,streamingToolUseIDs:T0,screen:F,canAnimate:s,lastThinkingBlockId:t,latestBashOutputUUID:W0,columns:i,isLoading:S,lookups:V0},k0),c0=Y(oQ.Provider,{value:b===_0,children:HZ},k0);if(j&&b===o0)return[Y(D,{marginTop:1,children:Y(MZ,{title:`${j.count} new ${KZ(j.count,"message")}`,width:i,color:"inactive"})},"unseen-divider"),c0];return c0},D0=f.useRef(new WeakMap),v0=f.useCallback((L)=>{let b=D0.current.get(L);if(b!==void 0)return b;let H0=UZ(L);if(L.type==="user"&&L.toolUseResult&&Array.isArray(L.message.content)){let F0=L.message.content.find((k0)=>k0.type==="tool_result");if(F0&&"tool_use_id"in F0){let k0=V0.toolUseByToolUseID.get(F0.tool_use_id),c0=(k0&&rZ(Z,k0.name))?.extractSearchText?.(L.toolUseResult);if(c0!==void 0)H0=c0}}let e=H0.toLowerCase();return D0.current.set(L,e),e},[Z,V0]);return T(E0,{children:[!U&&!(n&&n[0]>0)&&Y(dX,{agentDefinitions:C}),f0&&Y(MZ,{title:`${j0} to show ${lZ.bold(S0)} previous messages`,width:i}),O&&N&&S0>0&&!Q0&&Y(MZ,{title:`${j0} to hide ${lZ.bold(S0)} previous messages`,width:i}),h?Y(tQ.Provider,{value:!0,children:Y(pQ,{messages:P0,scrollRef:M,columns:i,itemKey:M0,renderItem:U0,onItemClick:A,isItemClickable:m,isItemExpanded:$,trackStickyPrompt:E,selectedIndex:_0>=0?_0:void 0,cursorNavRef:a,setCursor:r,jumpRef:R,onSearchMatchesChange:Z0,scanElement:y,setPositions:x,extractSearchText:v0})}):P0.flatMap(U0),w&&!P&&Y(gX,{}),o&&_&&!P&&Y(D,{marginTop:1,children:Y(Jz,{param:{type:"thinking",thinking:_.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},gX=()=>{let J=oZ();if(!J)return null;return Y(D,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:T(D,{flexDirection:"row",children:[Y(D,{minWidth:2,children:Y(p,{color:"text",children:nQ})}),Y(D,{flexDirection:"column",children:Y(Zz,{children:J})})]})})},Nq;var GQ=q0(()=>{vX();CJ();yX();kX();PJ();SX();I0();hX();pX();IX();TX();kJ();TJ();fX();ZQ();$J();DQ();_X();fJ();PZ();NJ();RZ();RX();xX();tZ();VQ();uQ();uX();IZ();$X();JQ();bQ();_Q();dQ();G0();Wz=K0(u0(),1),VZ=K0(b0(),1),f=K0(b0(),1),dX=VZ.memo(function(Z){let Q=Wz.c(3),{agentDefinitions:z}=Z,X;if(Q[0]===Symbol.for("react.memo_cache_sentinel"))X=null,Q[0]=X;else X=Q[0];let W;if(Q[1]!==z)W=Y(ZZ,{children:T(D,{flexDirection:"column",gap:1,children:[X,Y(VZ.Suspense,{fallback:null,children:Y(EQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});Nq=VZ.memo(cX,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="scrollRef"||z==="trackStickyPrompt"||z==="setCursor"||z==="cursorNavRef"||z==="jumpRef"||z==="onSearchMatchesChange"||z==="scanElement"||z==="setPositions")continue;if(J[z]!==Z[z]){if(z==="streamingToolUses"){let X=J.streamingToolUses,W=Z.streamingToolUses;if(X.length===W.length&&X.every((q,H)=>q.contentBlock===W[H]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(mX(J.inProgressToolUseIDs,Z.inProgressToolUseIDs))continue}if(z==="unseenDivider"){let X=J.unseenDivider,W=Z.unseenDivider;if(X?.firstUnseenUuid===W?.firstUnseenUuid&&X?.count===W?.count)continue}if(z==="tools"){let X=J.tools,W=Z.tools;if(X.length===W.length&&X.every((q,H)=>q.name===W[H]?.name))continue}return!1}}return!0})});
|
|
10
|
-
export{s0 as Ld,iX as Md,tZ as Nd,ZJ as Od,vZ as Pd,W8 as Qd,q8 as Rd,KJ as Sd,C8 as Td,y8 as Ud,_8 as Vd,EJ as Wd,Nq as Xd,GQ as Yd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{D as D0}from"./cli-1.1.36-72p8zdsg.mjs";import{E as u0}from"./cli-1.1.36-8vncd2t8.mjs";import{Fb as b0}from"./cli-1.1.36-qdefh0tg.mjs";import{Yc as I0,_c as Lf}from"./cli-1.1.36-69zmc79s.mjs";import{bd as x,cd as Ff}from"./cli-1.1.36-rp1ck3rr.mjs";import{ed as W0,fd as r0}from"./cli-1.1.36-4jwgcerx.mjs";import{Ad as t,Bd as d0}from"./cli-1.1.36-wwwj09sw.mjs";import{Dg as P0,Eg as hf}from"./cli-1.1.36-yew13j62.mjs";import{AS as K0,BF as O0,Bj as t0,Bx as D,CF as Tf,Cx as l,ES as y0,FS as Rf,HS as A0,JS as qf,LE as N0,QE as I,RE as F0,SE as B0,TE as ff,bz as T0,dz as g0,jO as E,jz as h0,kx as N,lx as c0,mx as $,nO as L0,nx as x0,ox as s,px as p0,tz as l0,uS as E0,xE as r,xj as m0,yE as i0,zE as o,zj as k0}from"./cli-1.1.36-v0s0vqmm.mjs";import{EX as j,MV as _,YW as v,_W as y,cX as d}from"./cli-1.1.36-4ssz80b2.mjs";import{VZ as H0,e0}from"./cli-1.1.36-p7w1197h.mjs";import{b1 as S,c1 as F,d1 as M,e1 as Y}from"./cli-1.1.36-z5djkbwy.mjs";import{$1 as M0,A1 as Z0,E1 as $0,a2 as s0}from"./cli-1.1.36-s8jcsdgb.mjs";import{J$ as U0,K9 as G0,M9 as J0,O9 as Q0,_ca as W,_da as S0,bda as O,eda as V0,gda as X0,jfa as Y0,mfa as v0,oda as C}from"./cli-1.1.36-t6sjxpcb.mjs";import{$fa as X,dga as n0}from"./cli-1.1.36-6q7sfj4e.mjs";import{lja as z0,tja as a0}from"./cli-1.1.36-0qtyffhw.mjs";import{Doa as o0,_la as q0,doa as w0}from"./cli-1.1.36-bsfazmtt.mjs";import{Npa as u,Spa as m}from"./cli-1.1.36-c4pkjm54.mjs";t0();o0();qf();e0();F0();v0();C();N0();l();var a=u(_(),1);j();Y();var g=u(_(),1);function A(){let T=g.c(1),f;if(T[0]===Symbol.for("react.memo_cache_sentinel"))f=M(y,{children:["MCP servers may execute code or access system resources. All tool calls require approval. Learn more in the"," ",F(d,{url:"https://code.claude.com/docs/en/mcp",children:"MCP documentation"}),"."]}),T[0]=f;else f=T[0];return f}Y();function n(T){let f=a.c(13),{serverName:h,onDone:L}=T,w;if(f[0]!==L||f[1]!==h)w=function(Z){f:switch(Z){case"yes":case"yes_all":{let k=(O()||{}).enabledMcpjsonServers||[];if(!k.includes(h))W("localSettings",{enabledMcpjsonServers:[...k,h]});if(Z==="yes_all")W("localSettings",{enableAllProjectMcpServers:!0});L();break f}case"no":{let k=(O()||{}).disabledMcpjsonServers||[];if(!k.includes(h))W("localSettings",{disabledMcpjsonServers:[...k,h]});L()}}},f[0]=L,f[1]=h,f[2]=w;else w=f[2];let R=w,Q=`New MCP server found in .mcp.json: ${h}`,G;if(f[3]!==R)G=()=>R("no"),f[3]=R,f[4]=G;else G=f[4];let q;if(f[5]===Symbol.for("react.memo_cache_sentinel"))q=F(A,{}),f[5]=q;else q=f[5];let z;if(f[6]===Symbol.for("react.memo_cache_sentinel"))z=[{label:"Use this and all future MCP servers in this project",value:"yes_all"},{label:"Use this MCP server",value:"yes"},{label:"Continue without using this MCP server",value:"no"}],f[6]=z;else z=f[6];let J;if(f[7]!==R)J=F(o,{options:z,onChange:(V)=>R(V),onCancel:()=>R("no")}),f[7]=R,f[8]=J;else J=f[8];let U;if(f[9]!==Q||f[10]!==G||f[11]!==J)U=M(D,{title:Q,color:"warning",onCancel:G,children:[q,J]}),f[9]=Q,f[10]=G,f[11]=J,f[12]=U;else U=f[12];return U}d0();j();C();x0();i0();p0();l();c0();var e=u(_(),1);Y();function f0(T){let f=e.c(21),{serverNames:h,onDone:L}=T,w;if(f[0]!==L||f[1]!==h)w=function(b){let K=O()||{},_0=K.enabledMcpjsonServers||[],C0=K.disabledMcpjsonServers||[],[p,i]=t(h,(P)=>b.includes(P));if(p.length>0){let P=[...new Set([..._0,...p])];W("localSettings",{enabledMcpjsonServers:P})}if(i.length>0){let P=[...new Set([...C0,...i])];W("localSettings",{disabledMcpjsonServers:P})}L()},f[0]=L,f[1]=h,f[2]=w;else w=f[2];let R=w,Q;if(f[3]!==L||f[4]!==h)Q=()=>{let b=(O()||{}).disabledMcpjsonServers||[],K=[...new Set([...b,...h])];W("localSettings",{disabledMcpjsonServers:K}),L()},f[3]=L,f[4]=h,f[5]=Q;else Q=f[5];let G=Q,q=`${h.length} new MCP servers found in .mcp.json`,z;if(f[6]===Symbol.for("react.memo_cache_sentinel"))z=F(A,{}),f[6]=z;else z=f[6];let J;if(f[7]!==h)J=h.map(j0),f[7]=h,f[8]=J;else J=f[8];let U;if(f[9]!==G||f[10]!==R||f[11]!==h||f[12]!==J)U=F(r,{options:J,defaultValue:h,onSubmit:R,onCancel:G,hideIndexes:!0}),f[9]=G,f[10]=R,f[11]=h,f[12]=J,f[13]=U;else U=f[13];let V;if(f[14]!==G||f[15]!==q||f[16]!==U)V=M(D,{title:q,subtitle:"Select any you wish to enable.",color:"warning",onCancel:G,hideInputGuide:!0,children:[z,U]}),f[14]=G,f[15]=q,f[16]=U,f[17]=V;else V=f[17];let Z;if(f[18]===Symbol.for("react.memo_cache_sentinel"))Z=F(v,{paddingX:1,children:F(y,{dimColor:!0,italic:!0,children:M(s,{children:[F(N,{shortcut:"Space",action:"select"}),F(N,{shortcut:"Enter",action:"confirm"}),F($,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"reject all"})]})})}),f[18]=Z;else Z=f[18];let B;if(f[19]!==V)B=M(S,{children:[V,Z]}),f[19]=V,f[20]=B;else B=f[20];return B}function j0(T){return{label:T,value:T}}F0();L0();l0();g0();Y();async function R0(T){let{servers:f}=h0("project"),h=Object.keys(f).filter((L)=>T0(L)==="pending");if(h.length===0)return;await new Promise((L)=>{let w=()=>void L();if(h.length===1&&h[0]!==void 0){let R=h[0];T.render(F(E,{children:F(I,{children:F(n,{serverName:R,onDone:w})})}))}else T.render(F(E,{children:F(I,{children:F(f0,{serverNames:h,onDone:w})})}))})}L0();Ff();s0();Rf();S0();Lf();a0();class c{frameDurations=[];firstRenderTime;lastRenderTime;record(T){let f=performance.now();if(this.firstRenderTime===void 0)this.firstRenderTime=f;this.lastRenderTime=f,this.frameDurations.push(T)}getMetrics(){if(this.frameDurations.length===0||this.firstRenderTime===void 0||this.lastRenderTime===void 0)return;let T=this.lastRenderTime-this.firstRenderTime;if(T<=0)return;let h=this.frameDurations.length/(T/1000),L=this.frameDurations.slice().sort((G,q)=>q-G),w=Math.max(0,Math.ceil(L.length*0.01)-1),R=L[w],Q=R>0?1000/R:0;return{averageFps:Math.round(h*100)/100,low1PctFps:Math.round(Q*100)/100}}}r0();$0();ff();hf();Tf();C();n0();Y();function wf(){G0((T)=>({...T,hasCompletedOnboarding:!0,lastOnboardingVersion:"99.0.0"}))}function zf(T,f){return new Promise((h)=>{let L=(w)=>void h(w);T.render(f(L))})}async function QT(T,f,h){return Gf(T,f,{color:"error",beforeExit:h})}async function Gf(T,f,h){let{Text:L}=await import("./ink-1.1.36-ayvk483m.mjs"),w=h?.color,R=h?.exitCode??1;T.render(w?F(L,{color:w,children:f}):F(L,{children:f})),T.unmount(),await h?.beforeExit?.(),process.exit(R)}function H(T,f,h){return zf(T,(L)=>F(E,{onChangeAppState:h?.onChangeAppState,children:F(I,{children:f(L)})}))}async function UT(T,f){T.render(f),D0(),await T.waitUntilExit(),await k0(0)}async function VT(T,f,h,L,w){if(process.env.IS_DEMO)return!1;X("setupScreens_start");let R=Z0(),Q=!1;if(I0()){let{MigrationDialog:q}=await import("./MigrationDialog-1.1.36-bg3y18da.mjs");await H(T,(z)=>F(q,{onDone:()=>void z()}))}let G=J0();if(R&&(!G.theme||!G.hasCompletedOnboarding)){Q=!0;let{Onboarding:q}=await import("./Onboarding-1.1.36-n2rz26c0.mjs");await H(T,(z)=>F(q,{onDone:()=>{wf(),z()}}),{onChangeAppState:x})}if(!z0(process.env.CLAUBBIT)){if(R&&!U0()){let{TrustDialog:q}=await import("./TrustDialog-1.1.36-awrjghme.mjs");await H(T,(z)=>F(q,{commands:L,onDone:z}))}if(w0(!0),X("setupScreens_after_trust_accepted"),A0(),X("setupScreens_after_system_context_kick"),R){let{errors:q}=O0();if(q.length===0)await R0(T);X("setupScreens_after_mcp_approvals");let z=await y0();if(X("setupScreens_after_claudemd_check"),z){let J=E0(await K0(!0)),{ClaudeMdExternalIncludesDialog:U}=await import("./ClaudeMdExternalIncludesDialog-1.1.36-7v5ebgve.mjs");await H(T,(V)=>F(U,{onDone:V,isStandaloneDialog:!0,externalIncludes:J}))}}}u0(),W0(),X("setupScreens_after_env_applied");{let q=Y0();X("setupScreens_after_tryGetActiveProvider");let z=q?.transport==="anthropic"?q.apiKey?.trim():void 0;if(z){let J=M0(z),U=Q0(J);if(X("setupScreens_after_keyStatus"),U==="new"){let{ApproveApiKey:V}=await import("./ApproveApiKey-1.1.36-r5r4cwsv.mjs");await H(T,(Z)=>F(V,{customApiKeyTruncated:J,onDone:Z}),{onChangeAppState:x})}}}if(X("setupScreens_after_custom_api_key"),(f==="bypassPermissions"||h)&&!V0()){let{BypassPermissionsModeDialog:q}=await import("./BypassPermissionsModeDialog-1.1.36-m4wb4rn1.mjs");await H(T,(z)=>F(q,{onAccept:z}))}if(f==="auto"&&!X0()){let{AutoModeOptInDialog:q}=await import("./AutoModeOptInDialog-1.1.36-v3mtkjve.mjs");await H(T,(z)=>F(q,{onAccept:z,onDecline:()=>m0(1),declineExits:!0}))}return X("setupScreens_end"),Q}function XT(T){P0();let f=0,h=B0(T),L=new c,w=b0();return q0(w),{getFpsMetrics:()=>L.getMetrics(),stats:w,renderOptions:{...h,onFrame:(R)=>{if(L.record(R.durationMs),w.observe("frame_duration_ms",R.durationMs),H0())return;for(let Q of R.flickers){if(Q.reason==="resize")continue;f=Date.now()}}}}}
|
|
2
|
-
export{wf as v,zf as w,QT as x,Gf as y,H as z,UT as A,VT as B,XT as C};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import{AK as Yq,CK as Uq,HJ as S,Hs as a,IJ as R,JJ as hq,MJ as p,NJ as k,Ns as s,OJ as Bq,PJ as Gq,QJ as I,RJ as b,Ts as Kq,XD as zq,Xk as r,YD as Xq,YJ as Jq,Yx as t,ZJ as Qq,Zk as vq,Zx as Wq,_z as e,aA as Hq,bK as Oq,cC as qq,dC as Nq,fK as Vq,lQ as Zq,qQ as yq,tK as Pq}from"./cli-1.1.36-v0s0vqmm.mjs";import{ufa as w,zfa as Fq}from"./cli-1.1.36-t6sjxpcb.mjs";import{Lga as o,Nga as Lq}from"./cli-1.1.36-jqn2tez7.mjs";import{Tia as y,fja as jq}from"./cli-1.1.36-6g1w2zbr.mjs";import{Rpa as M}from"./cli-1.1.36-c4pkjm54.mjs";function x(B,z){let G=m[z]??1,Y=B!==void 0?m[B]:void 0;if(Y===void 0)return z;return Y<=G?B:z}var m;var g=M(()=>{m={plan:0,default:1,acceptEdits:2,bypassPermissions:3}});function C(B,z){if(B.length<=z)return B;return`${B.slice(0,z)}
|
|
2
|
-
…[truncated ${B.length-z} chars]`}function u(B,z,G,Y){let V=[];if(V.push(`You are a worker agent in the "${B.name}" workflow, phase "${Y.name}".`),B.instructions.trim())V.push(`Workflow instructions:
|
|
3
|
-
${B.instructions.trim()}`);if(V.push(`Task:
|
|
4
|
-
${z}`),G.trim())V.push(`Work so far (accumulated artifact from earlier phases):
|
|
5
|
-
${C(G.trim(),$q)}`);return V.push("Do your part of this phase and report your findings/output. Another agent (the orchestrator) will synthesize the phase and decide what happens next — you do not decide the flow."),V.join(`
|
|
6
|
-
|
|
7
|
-
`)}function c(B,z){let G=[];if(G.push(`You are the orchestrator (main) of the "${z.name}" workflow. You control the flow.`),z.instructions.trim())G.push(`Workflow instructions:
|
|
8
|
-
${z.instructions.trim()}`);G.push(`Task:
|
|
9
|
-
${B.task}`);let Y=z.steps.findIndex((Q)=>Q.name===B.currentStep),V=z.steps.map((Q,J)=>{let j=J<Y?"[done]":J===Y?"[current]":"[pending]",W=I(Q)?" (terminal)":"";return` ${J+1}. ${Q.name} ${j}${W}`}).join(`
|
|
10
|
-
`);if(G.push(`Phases:
|
|
11
|
-
${V}`),B.history.length>0){let Q=B.history.map((J)=>{let j=J.agents.map((q)=>{let L=q.failed?" (FAILED)":"";return` • ${q.label}${L}:
|
|
12
|
-
${C(q.output,f).split(`
|
|
13
|
-
`).map((H)=>` ${H}`).join(`
|
|
14
|
-
`)}`}).join(`
|
|
15
|
-
`),W=J.decision?` decision: ${J.decision.decision}${J.decision.target?` → ${J.decision.target}`:""} — ${J.decision.notes}`:" decision: (pending — this is the phase you are deciding now)";return` Phase "${J.step}":
|
|
16
|
-
${j}
|
|
17
|
-
${J.synthesis?` synthesis: ${C(J.synthesis,f)}
|
|
18
|
-
`:""}${W}`}).join(`
|
|
19
|
-
|
|
20
|
-
`);G.push(`History (all phases so far):
|
|
21
|
-
${Q}`)}let $=z.steps[Y]?.handbackTo??[];return G.push($.length>0?`From the current phase you may hand back to: ${$.join(", ")}.`:"The current phase has no handback targets; you may only advance or refine."),G.push("Synthesize the current phase's worker outputs into an updated artifact (your final text), then call the StructuredOutput tool with your decision: advance (next phase), refine (re-run this phase), or handback (return to an allowed earlier phase). Include a short `notes` explaining why."),G.join(`
|
|
22
|
-
|
|
23
|
-
`)}var f=4000,$q=6000;var l=M(()=>{b()});function d(B,z,G){let Y=G.steps,V=Y.findIndex((j)=>j.name===B.currentStep),Z={...B.refineCounts},$=B.transitions+1,Q=B.currentStep,J="running";if(z.decision==="advance"){let j=Y[V+1];if(I(j)){if(J="done",j)Q=j.name}else Q=j.name}else if(z.decision==="refine"){if(Z[Q]=(Z[Q]??0)+1,Z[Q]>k)J="stalled"}else{let j=Y[V]?.handbackTo??[];if(!z.target||!j.includes(z.target))J="stalled";else if(Z[z.target]=(Z[z.target]??0)+1,Z[z.target]>k)J="stalled";else Q=z.target}if(J==="running"&&$>=p)J="stalled";return{...B,currentStep:Q,status:J,refineCounts:Z,transitions:$,updatedAt:Date.now()}}var i=M(()=>{b()});import Dq from"os";function Iq(){return Math.max(1,Math.min(8,Dq.cpus().length-1))}function wq(B){let z="",G=0;for(let V=B.length-1;V>=0;V--){let Z=B[V];if(Z.type!=="assistant"||!Z.message)continue;if(!z){let $=(Z.message.content??[]).filter((Q)=>Q.type==="text"&&Q.text);if($.length>0)z=$.map((Q)=>Q.text??"").join(`
|
|
24
|
-
`)}if(G===0&&Z.message.usage)G=Zq(Z.message.usage);if(z&&G)break}let Y=qq(B);return{text:z,tokens:G,tools:Y}}async function n(B){let{label:z,agentDef:G,promptText:Y,toolUseContext:V,canUseTool:Z,extraTools:$,runId:Q}=B,J=Date.now(),j=V.getAppState(),W=j.toolPermissionContext.mode,q={...j.toolPermissionContext,mode:x(G.permissionMode,W)},L=Yq(q,j.mcp.tools);if($&&$.length>0)L=[...L,...$];let H=G.model??String(V.options.mainLoopModel??""),F=[],N,P=!1;try{let K=zq({agentDefinition:G,promptMessages:[Vq({content:Y})],toolUseContext:V,canUseTool:Z,isAsync:!1,querySource:e(G.agentType,a(G)),availableTools:L,transcriptSubdir:`workflows/${Q}`,description:`${z} (workflow)`,override:{abortController:B.abortController}});for await(let h of K)if(F.push(h),h.type==="attachment"&&h.attachment?.type==="structured_output")N=h.attachment.data}catch(K){if(y(K))throw K;w(K),P=!0}let{text:E,tokens:_,tools:X}=wq(F);return{run:{label:z,model:H,tokens:_,tools:X,ms:Date.now()-J,output:P?"":E,failed:P},structuredOutput:N}}async function tq(B){let{def:z,task:G,toolUseContext:Y,canUseTool:V,onProgress:Z,signal:$}=B,{allAgents:Q}=await s(o()),J=new Map(Q.map((H)=>[H.agentType,H]));J.set(S,R);let j=J.get(z.main??S)??R,W=new AbortController;if($)if($.aborted)W.abort();else $.addEventListener("abort",()=>W.abort(),{once:!0});let q=await Jq({workflow:z.name,description:z.description,task:G,firstStep:z.steps[0].name});Z?.(q);let L=async()=>{await Qq(q),Z?.(q)};while(q.status==="running"){if($?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let H=z.steps.findIndex((v)=>v.name===q.currentStep),F=z.steps[H];if(I(F)){q={...q,status:"done",updatedAt:Date.now()},await L();break}q={...q,agentsInPhase:F.agents.length,agentsDone:0,updatedAt:Date.now()},await L();let N;try{N=(await t(F.agents,async(O)=>{let T={run:{label:`${F.name}:${O}`,model:"",tokens:0,tools:0,ms:0,output:"",failed:!0}},A;try{let D=J.get(O);A=D?await n({label:`${F.name}:${O}`,agentDef:D,promptText:u(z,G,q.artifact,F),toolUseContext:Y,canUseTool:V,runId:q.runId,abortController:W}):T}catch(D){if(y(D))throw D;w(D),A=T}return q={...q,agentsDone:(q.agentsDone??0)+1,updatedAt:Date.now()},await L(),A},{concurrency:Iq()})).map((O)=>O.run)}catch(v){if(y(v)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw v}let P={step:F.name,stepIndex:H,agents:N,synthesis:"",decision:null,at:Date.now()};if(q={...q,history:[...q.history,P],totalTokens:q.totalTokens+N.reduce((v,O)=>v+O.tokens,0),updatedAt:Date.now()},await L(),F.agents.length>0&&N.every((v)=>v.failed)){w(Error(`workflow phase "${F.name}": all ${N.length} worker(s) failed`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}if($?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let E=r(Gq(F));if(!("tool"in E)){w(Error(`workflow decision schema build failed: ${E.error}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let _=[E.tool],X;try{X=await n({label:"main",agentDef:j,promptText:c(q,z),toolUseContext:Y,canUseTool:V,extraTools:_,runId:q.runId,abortController:W})}catch(v){if(y(v)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw v}let K=Bq.safeParse(X.structuredOutput),h=[...q.history];if(h[h.length-1]={...P,synthesis:X.run.output,decision:K.success?K.data:null,agents:[...N,X.run]},q={...q,history:h,artifact:X.run.output.trim()?X.run.output:q.artifact,totalTokens:q.totalTokens+X.run.tokens,updatedAt:Date.now()},!K.success){w(Error(`workflow main produced no valid decision: ${K.error?.message??"no decision"}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let U=d(q,K.data,z);q={...q,currentStep:U.currentStep,status:U.status,refineCounts:U.refineCounts,transitions:U.transitions,updatedAt:U.updatedAt},await L()}return q}var Eq=M(()=>{Wq();Uq();Kq();Nq();Xq();vq();Lq();jq();Fq();Pq();Hq();yq();hq();g();l();Oq();i();b()});
|
|
25
|
-
export{tq as fi,Eq as gi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Br as X,Tm as O,Um as P,Vm as Q,Wj as M,Wm as U,Xj as W}from"./cli-1.1.36-v0s0vqmm.mjs";import{Rpa as V}from"./cli-1.1.36-c4pkjm54.mjs";function Y(f){return f==="projectSettings"||f==="policySettings"||f==="command"}function J(f){return O(f)}function L(f,G,q){let v=J(G.source),z=J(q.source),j=G.ruleValue.toolName;if(f==="deny")return`Remove the "${j}" deny rule from ${v}, or remove the specific allow rule from ${z}`;return`Remove the "${j}" ask rule from ${v}, or remove the specific allow rule from ${z}`}function Z(f,G,q){let{toolName:v,ruleContent:z}=f.ruleValue;if(z===void 0)return{shadowed:!1};let j=G.find((E)=>E.ruleValue.toolName===v&&E.ruleValue.ruleContent===void 0);if(!j)return{shadowed:!1};if(v===M&&q.sandboxAutoAllowEnabled){if(!Y(j.source))return{shadowed:!1}}return{shadowed:!0,shadowedBy:j,shadowType:"ask"}}function _(f,G){let{toolName:q,ruleContent:v}=f.ruleValue;if(v===void 0)return{shadowed:!1};let z=G.find((j)=>j.ruleValue.toolName===q&&j.ruleValue.ruleContent===void 0);if(!z)return{shadowed:!1};return{shadowed:!0,shadowedBy:z,shadowType:"deny"}}function F(f,G){let q=[],v=P(f),z=U(f),j=Q(f);for(let E of v){let H=_(E,j);if(H.shadowed){let K=J(H.shadowedBy.source);q.push({rule:E,reason:`Blocked by "${H.shadowedBy.ruleValue.toolName}" deny rule (from ${K})`,shadowedBy:H.shadowedBy,shadowType:"deny",fix:L("deny",H.shadowedBy,E)});continue}let I=Z(E,z,G);if(I.shadowed){let K=J(I.shadowedBy.source);q.push({rule:E,reason:`Shadowed by "${I.shadowedBy.ruleValue.toolName}" ask rule (from ${K})`,shadowedBy:I.shadowedBy,shadowType:"ask",fix:L("ask",I.shadowedBy,E)})}}return q}var $=V(()=>{W();X()});
|
|
2
|
-
export{F as cg,$ as dg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{P4 as S,T1 as j,W1 as h,h5 as c}from"./cli-1.1.36-s8jcsdgb.mjs";import{G5 as b,H5 as l}from"./cli-1.1.36-0qdd3hmz.mjs";import{$7 as Y,r8 as D}from"./cli-1.1.36-rqhp2xt1.mjs";import{H8 as F,I8 as R}from"./cli-1.1.36-hvnr6rta.mjs";import{ufa as y,zfa as I}from"./cli-1.1.36-t6sjxpcb.mjs";import{Fga as $,Gga as E,Hga as _,Iga as T}from"./cli-1.1.36-ss62b517.mjs";import{Aha as m,zha as v}from"./cli-1.1.36-6yqvdwyp.mjs";import{Aia as W,Dia as z,dia as M,iia as U}from"./cli-1.1.36-jpcwwd65.mjs";import{Zia as k,_ia as q,fja as O}from"./cli-1.1.36-6g1w2zbr.mjs";import{Rpa as A}from"./cli-1.1.36-c4pkjm54.mjs";import{randomUUID as d}from"crypto";function u(J){if(!Y.isAxiosError(J))return!1;if(!J.response)return!0;if(J.response.status>=500)return!0;return!1}async function p(J,B){let N;for(let K=0;K<=x;K++)try{return await Y.get(J,B)}catch(Q){if(N=Q,!u(Q))throw Q;if(K>=x)throw W(`Teleport request failed after ${K+1} attempts: ${q(Q)}`),Q;let V=f[K]??2000;W(`Teleport request failed (attempt ${K+1}/${x+1}), retrying in ${V}ms: ${q(Q)}`),await b(V)}throw N}async function C(){let J=S()?.accessToken;if(J===void 0)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let B=await j();if(!B)throw Error("Unable to get organization UUID");return{accessToken:J,orgUUID:B}}async function BJ(){let{accessToken:J,orgUUID:B}=await C(),N=`${v().BASE_API_URL}/v1/sessions`;try{let K={...L(J),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},Q=await p(N,{headers:K});if(Q.status!==200)throw Error(`Failed to fetch code sessions: ${Q.statusText}`);return Q.data.data.map((Z)=>{let X=Z.session_context.sources.find((G)=>G.type==="git_repository"),H=null;if(X?.url){let G=F(X.url);if(G){let[w,P]=G.split("/");if(w&&P)H={name:P,owner:{login:w},default_branch:X.revision||void 0}}}return{id:Z.id,title:Z.title||"Untitled",description:"",status:Z.session_status,repo:H,turns:[],created_at:Z.created_at,updated_at:Z.updated_at}})}catch(K){let Q=k(K);throw y(Q),K}}function L(J){return{Authorization:`Bearer ${J}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"}}async function NJ(J){let{accessToken:B,orgUUID:N}=await C(),K=`${v().BASE_API_URL}/v1/sessions/${J}`,Q={...L(B),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":N},V=await Y.get(K,{headers:Q,timeout:15000,validateStatus:(Z)=>Z<500});if(V.status!==200){let X=V.data?.error?.message;if(V.status===404)throw Error(`Session not found: ${J}`);if(V.status===401)throw Error("Session expired. Please run /login to sign in again.");throw Error(X||`Failed to fetch session: ${V.status} ${V.statusText}`)}return V.data}function WJ(J){return J.session_context.outcomes?.find((N)=>N.type==="git_repository")?.git_info?.branches[0]}async function GJ(J,B,N){try{let{accessToken:K,orgUUID:Q}=await C(),V=`${v().BASE_API_URL}/v1/sessions/${J}/events`,Z={...L(K),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":Q},H={events:[{uuid:N?.uuid??d(),session_id:J,type:"user",parent_tool_use_id:null,message:{role:"user",content:B}}]};W(`[sendEventToRemoteSession] Sending event to session ${J}`);let G=await Y.post(V,H,{headers:Z,validateStatus:(w)=>w<500,timeout:30000});if(G.status===200||G.status===201)return W(`[sendEventToRemoteSession] Successfully sent event to session ${J}`),!0;return W(`[sendEventToRemoteSession] Failed with status ${G.status}: ${M(G.data)}`),!1}catch(K){return W(`[sendEventToRemoteSession] Error: ${q(K)}`),!1}}async function XJ(J,B){try{let{accessToken:N,orgUUID:K}=await C(),Q=`${v().BASE_API_URL}/v1/sessions/${J}`,V={...L(N),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":K};W(`[updateSessionTitle] Updating title for session ${J}: "${B}"`);let Z=await Y.patch(Q,{title:B},{headers:V,validateStatus:(X)=>X<500});if(Z.status===200)return W(`[updateSessionTitle] Successfully updated title for session ${J}`),!0;return W(`[updateSessionTitle] Failed with status ${Z.status}: ${M(Z.data)}`),!1}catch(N){return W(`[updateSessionTitle] Error: ${q(N)}`),!1}}var f,x,$J;var g=A(()=>{D();m();h();E();c();z();R();O();T();I();l();U();f=[2000,4000,8000,16000],x=f.length;$J=_(()=>$.object({id:$.string(),title:$.string(),description:$.string(),status:$.enum(["idle","working","waiting","completed","archived","cancelled","rejected"]),repo:$.object({name:$.string(),owner:$.object({login:$.string()}),default_branch:$.string().optional()}).nullable(),turns:$.array($.string()),created_at:$.string(),updated_at:$.string()}))});
|
|
2
|
-
export{u as KX,p as LX,$J as MX,BJ as NX,L as OX,NJ as PX,WJ as QX,GJ as RX,XJ as SX,g as TX};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{sy as Q,ty as $}from"./cli-1.1.36-v0s0vqmm.mjs";import{Aka as P,Bla as W,Cla as E,zka as V}from"./cli-1.1.36-bsfazmtt.mjs";import{Rpa as L}from"./cli-1.1.36-c4pkjm54.mjs";function Z(x,q,D,G){var H=-1,J=x==null?0:x.length;while(++H<J){var K=x[H];q(G,K,D(K),x)}return G}var M;var N=L(()=>{M=Z});function B(x,q,D,G){return Q(x,function(H,J,K){q(G,H,D(H),K)}),G}var S;var U=L(()=>{$();S=B});function I(x,q){return function(D,G){var H=V(D)?M:S,J=q?q():{};return H(D,x,W(G,2),J)}}var X;var Y=L(()=>{N();U();E();P();X=I});var R,v;var C=L(()=>{Y();R=X(function(x,q,D){x[D?0:1].push(q)},function(){return[[],[]]}),v=R});
|
|
2
|
-
export{v as Ad,C as Bd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ub as N}from"./cli-1.1.36-7v42aqn9.mjs";import{KL as A,LL as w}from"./cli-1.1.36-v0s0vqmm.mjs";import{ofa as x,qfa as j}from"./cli-1.1.36-t6sjxpcb.mjs";import{Aia as X,Dia as K,eia as L,iia as E}from"./cli-1.1.36-jpcwwd65.mjs";import{_ia as G,fja as k}from"./cli-1.1.36-6g1w2zbr.mjs";w();import{randomUUID as C}from"crypto";K();j();k();E();function O(H){return H!==null&&typeof H==="object"&&"type"in H&&typeof H.type==="string"}function T(H){return H!==null&&typeof H==="object"&&"type"in H&&H.type==="control_response"&&"response"in H}function h(H){return H!==null&&typeof H==="object"&&"type"in H&&H.type==="control_request"&&"request_id"in H&&"request"in H}function D(H){if((H.type==="user"||H.type==="assistant")&&H.isVirtual)return!1;return H.type==="user"||H.type==="assistant"||H.type==="system"&&H.subtype==="local_command"}function c(H){if(H.type!=="user"||H.isMeta||H.toolUseResult||H.isCompactSummary)return;if(H.origin&&H.origin.kind!=="human")return;let Z=H.message.content,V;if(typeof Z==="string")V=Z;else for(let $ of Z)if($.type==="text"){V=$.text;break}if(!V)return;return x(V)||void 0}function m(H,Z,V,f,$,B){try{let J=N(L(H));if(T(J)){X("[bridge:repl] Ingress message type=control_response"),$?.(J);return}if(h(J)){X(`[bridge:repl] Inbound control_request subtype=${J.request.subtype}`),B?.(J);return}if(!O(J))return;let Q="uuid"in J&&typeof J.uuid==="string"?J.uuid:void 0;if(Q&&Z.has(Q)){X(`[bridge:repl] Ignoring echo: type=${J.type} uuid=${Q}`);return}if(Q&&V.has(Q)){X(`[bridge:repl] Ignoring re-delivered inbound: type=${J.type} uuid=${Q}`);return}if(X(`[bridge:repl] Ingress message type=${J.type}${Q?` uuid=${Q}`:""}`),J.type==="user"){if(Q)V.add(Q);f?.(J)}else X(`[bridge:repl] Ignoring non-user inbound message: type=${J.type}`)}catch(J){X(`[bridge:repl] Failed to parse ingress message: ${G(J)}`)}}var P="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function v(H,Z){let{transport:V,sessionId:f,outboundOnly:$,onInterrupt:B,onSetModel:J,onSetMaxThinkingTokens:Q,onSetPermissionMode:Y}=Z;if(!V){X("[bridge:repl] Cannot respond to control_request: transport not configured");return}let W;if($&&H.request.subtype!=="initialize"){W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:P}};let z={...W,session_id:f};V.write(z),X(`[bridge:repl] Rejected ${H.request.subtype} (outbound-only) request_id=${H.request_id}`);return}switch(H.request.subtype){case"initialize":W={type:"control_response",response:{subtype:"success",request_id:H.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":J?.(H.request.model),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;case"set_max_thinking_tokens":Q?.(H.request.max_thinking_tokens),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;case"set_permission_mode":{let z=Y?.(H.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(z.ok)W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};else W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:z.error}};break}case"interrupt":B?.(),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;default:W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:`REPL bridge does not handle control_request subtype: ${H.request.subtype}`}}}let _={...W,session_id:f};V.write(_),X(`[bridge:repl] Sent control_response for ${H.request.subtype} request_id=${H.request_id} result=${W.response.subtype}`)}function q(H){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...A},modelUsage:{},permission_denials:[],session_id:H,uuid:C()}}class S{capacity;ring;set=new Set;writeIdx=0;constructor(H){this.capacity=H,this.ring=Array(H)}add(H){if(this.set.has(H))return;let Z=this.ring[this.writeIdx];if(Z!==void 0)this.set.delete(Z);this.ring[this.writeIdx]=H,this.set.add(H),this.writeIdx=(this.writeIdx+1)%this.capacity}has(H){return this.set.has(H)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
|
|
2
|
-
export{D as ob,c as pb,m as qb,v as rb,q as sb,S as tb};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ci as W,di as v,ei as T}from"./cli-1.1.36-aypab30m.mjs";import{$7 as R,r8 as C}from"./cli-1.1.36-rqhp2xt1.mjs";import{Fga as X,Gga as F,Hga as $,Iga as N}from"./cli-1.1.36-ss62b517.mjs";import{Aia as L,Dia as B}from"./cli-1.1.36-jpcwwd65.mjs";import{ija as H,tja as y}from"./cli-1.1.36-0qtyffhw.mjs";import{$ja as E,Doa as j}from"./cli-1.1.36-bsfazmtt.mjs";C();F();j();B();y();N();T();import{randomUUID as O}from"crypto";import{mkdir as U,writeFile as A}from"fs/promises";import{basename as I,join as M}from"path";var P=30000;function Q(q){L(`[bridge:inbound-attach] ${q}`)}var k=$(()=>X.object({file_uuid:X.string(),file_name:X.string()})),D=$(()=>X.array(k()));function S(q){if(typeof q!=="object"||q===null||!("file_attachments"in q))return[];let G=D().safeParse(q.file_attachments);return G.success?G.data:[]}function z(q){return I(q).replace(/[^a-zA-Z0-9._-]/g,"_")||"attachment"}function l(){return M(H(),"uploads",E())}async function x(q){let G=W();if(!G){Q("skip: no oauth token");return}let J;try{let V=`${v()}/api/oauth/files/${encodeURIComponent(q.file_uuid)}/content`,Z=await R.get(V,{headers:{Authorization:`Bearer ${G}`},responseType:"arraybuffer",timeout:P,validateStatus:()=>!0});if(Z.status!==200){Q(`fetch ${q.file_uuid} failed: status=${Z.status}`);return}J=Buffer.from(Z.data)}catch(V){Q(`fetch ${q.file_uuid} threw: ${V}`);return}let K=z(q.file_name),_=(q.file_uuid.slice(0,8)||O().slice(0,8)).replace(/[^a-zA-Z0-9_-]/g,"_"),w=l(),Y=M(w,`${_}-${K}`);try{await U(w,{recursive:!0}),await A(Y,J)}catch(V){Q(`write ${Y} failed: ${V}`);return}return Q(`resolved ${q.file_uuid} → ${Y} (${J.length} bytes)`),Y}async function f(q){if(q.length===0)return"";Q(`resolving ${q.length} attachment(s)`);let J=(await Promise.all(q.map(x))).filter((K)=>K!==void 0);if(J.length===0)return"";return J.map((K)=>`@"${K}"`).join(" ")+" "}function u(q,G){if(!G)return q;if(typeof q==="string")return G+q;let J=q.findLastIndex((K)=>K.type==="text");if(J!==-1){let K=q[J];if(K.type==="text")return[...q.slice(0,J),{...K,text:G+K.text},...q.slice(J+1)]}return[...q,{type:"text",text:G.trimEnd()}]}async function o(q,G){let J=S(q);if(J.length===0)return G;let K=await f(J);return u(G,K)}
|
|
2
|
-
export{S as la,f as ma,u as na,o as oa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Jpa as n}from"./cli-1.1.36-gfn4xejp.mjs";import{Ppa as r}from"./cli-1.1.36-c4pkjm54.mjs";var i=r((e)=>{Object.defineProperty(e,"__esModule",{value:!0});e.readFile=e.externalDataInterceptor=e.parseKnownFiles=e.loadSsoSessionData=e.loadSharedConfigFiles=e.CONFIG_PREFIX_SEPARATOR=e.getSSOTokenFromFile=e.getSSOTokenFilepath=e.getProfileName=e.DEFAULT_PROFILE=e.ENV_PROFILE=e.getHomeDir=void 0;var t=n();Object.defineProperty(e,"getHomeDir",{enumerable:!0,get:function(){return t.getHomeDir}});Object.defineProperty(e,"ENV_PROFILE",{enumerable:!0,get:function(){return t.ENV_PROFILE}});Object.defineProperty(e,"DEFAULT_PROFILE",{enumerable:!0,get:function(){return t.DEFAULT_PROFILE}});Object.defineProperty(e,"getProfileName",{enumerable:!0,get:function(){return t.getProfileName}});Object.defineProperty(e,"getSSOTokenFilepath",{enumerable:!0,get:function(){return t.getSSOTokenFilepath}});Object.defineProperty(e,"getSSOTokenFromFile",{enumerable:!0,get:function(){return t.getSSOTokenFromFile}});Object.defineProperty(e,"CONFIG_PREFIX_SEPARATOR",{enumerable:!0,get:function(){return t.CONFIG_PREFIX_SEPARATOR}});Object.defineProperty(e,"loadSharedConfigFiles",{enumerable:!0,get:function(){return t.loadSharedConfigFiles}});Object.defineProperty(e,"loadSsoSessionData",{enumerable:!0,get:function(){return t.loadSsoSessionData}});Object.defineProperty(e,"parseKnownFiles",{enumerable:!0,get:function(){return t.parseKnownFiles}});Object.defineProperty(e,"externalDataInterceptor",{enumerable:!0,get:function(){return t.externalDataInterceptor}});Object.defineProperty(e,"readFile",{enumerable:!0,get:function(){return t.readFile}})});
|
|
2
|
-
export{i as O7};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Rpa as B}from"./cli-1.1.36-c4pkjm54.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 xi,L as yi,M as zi,G as Ai};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{B8 as M0,C8 as H0}from"./cli-1.1.36-tda1q99k.mjs";import{Opa as L0,Ppa as J,Rpa as R0,Spa as E}from"./cli-1.1.36-c4pkjm54.mjs";var u_=J((Ch,b_)=>{var T=1000,$=T*60,O=$*60,U=O*24,rS=U*7,sS=U*365.25;b_.exports=function(_,S){S=S||{};var z=typeof _;if(z==="string"&&_.length>0)return aS(_);else if(z==="number"&&isFinite(_))return S.long?_0(_):eS(_);throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(_))};function aS(_){if(_=String(_),_.length>100)return;var S=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(_);if(!S)return;var z=parseFloat(S[1]),h=(S[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return z*sS;case"weeks":case"week":case"w":return z*rS;case"days":case"day":case"d":return z*U;case"hours":case"hour":case"hrs":case"hr":case"h":return z*O;case"minutes":case"minute":case"mins":case"min":case"m":return z*$;case"seconds":case"second":case"secs":case"sec":case"s":return z*T;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return z;default:return}}function eS(_){var S=Math.abs(_);if(S>=U)return Math.round(_/U)+"d";if(S>=O)return Math.round(_/O)+"h";if(S>=$)return Math.round(_/$)+"m";if(S>=T)return Math.round(_/T)+"s";return _+"ms"}function _0(_){var S=Math.abs(_);if(S>=U)return t(_,S,U,"day");if(S>=O)return t(_,S,O,"hour");if(S>=$)return t(_,S,$,"minute");if(S>=T)return t(_,S,T,"second");return _+" ms"}function t(_,S,z,h){var K=S>=z*1.5;return Math.round(_/z)+" "+h+(K?"s":"")}});var J_=J((Ih,m_)=>{function z0(_){z.debug=z,z.default=z,z.coerce=M,z.disable=W,z.enable=K,z.enabled=V,z.humanize=u_(),z.destroy=F,Object.keys(_).forEach((Z)=>{z[Z]=_[Z]}),z.names=[],z.skips=[],z.formatters={};function S(Z){let Y=0;for(let G=0;G<Z.length;G++)Y=(Y<<5)-Y+Z.charCodeAt(G),Y|=0;return z.colors[Math.abs(Y)%z.colors.length]}z.selectColor=S;function z(Z){let Y,G=null,L,x;function H(...N){if(!H.enabled)return;let A=H,n=Number(new Date),lS=n-(Y||n);if(A.diff=lS,A.prev=Y,A.curr=n,Y=n,N[0]=z.coerce(N[0]),typeof N[0]!=="string")N.unshift("%O");let l=0;N[0]=N[0].replace(/%([a-zA-Z%])/g,(Z_,tS)=>{if(Z_==="%%")return"%";l++;let g_=z.formatters[tS];if(typeof g_==="function"){let oS=N[l];Z_=g_.call(A,oS),N.splice(l,1),l--}return Z_}),z.formatArgs.call(A,N),(A.log||z.log).apply(A,N)}if(H.namespace=Z,H.useColors=z.useColors(),H.color=z.selectColor(Z),H.extend=h,H.destroy=z.destroy,Object.defineProperty(H,"enabled",{enumerable:!0,configurable:!1,get:()=>{if(G!==null)return G;if(L!==z.namespaces)L=z.namespaces,x=z.enabled(Z);return x},set:(N)=>{G=N}}),typeof z.init==="function")z.init(H);return H}function h(Z,Y){let G=z(this.namespace+(typeof Y>"u"?":":Y)+Z);return G.log=this.log,G}function K(Z){z.save(Z),z.namespaces=Z,z.names=[],z.skips=[];let Y=(typeof Z==="string"?Z:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let G of Y)if(G[0]==="-")z.skips.push(G.slice(1));else z.names.push(G)}function Q(Z,Y){let G=0,L=0,x=-1,H=0;while(G<Z.length)if(L<Y.length&&(Y[L]===Z[G]||Y[L]==="*"))if(Y[L]==="*")x=L,H=G,L++;else G++,L++;else if(x!==-1)L=x+1,H++,G=H;else return!1;while(L<Y.length&&Y[L]==="*")L++;return L===Y.length}function W(){let Z=[...z.names,...z.skips.map((Y)=>"-"+Y)].join(",");return z.enable(""),Z}function V(Z){for(let Y of z.skips)if(Q(Z,Y))return!1;for(let Y of z.names)if(Q(Z,Y))return!0;return!1}function M(Z){if(Z instanceof Error)return Z.stack||Z.message;return Z}function F(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return z.enable(z.load()),z}m_.exports=z0});var i_=J((p_,o)=>{p_.formatArgs=h0;p_.save=K0;p_.load=Q0;p_.useColors=S0;p_.storage=Z0();p_.destroy=(()=>{let _=!1;return()=>{if(!_)_=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}})();p_.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function S0(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let _;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(_=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(_[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function h0(_){if(_[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+_[0]+(this.useColors?"%c ":" ")+"+"+o.exports.humanize(this.diff),!this.useColors)return;let S="color: "+this.color;_.splice(1,0,S,"color: inherit");let z=0,h=0;_[0].replace(/%[a-zA-Z%]/g,(K)=>{if(K==="%%")return;if(z++,K==="%c")h=z}),_.splice(h,0,S)}p_.log=console.debug||console.log||(()=>{});function K0(_){try{if(_)p_.storage.setItem("debug",_);else p_.storage.removeItem("debug")}catch(S){}}function Q0(){let _;try{_=p_.storage.getItem("debug")||p_.storage.getItem("DEBUG")}catch(S){}if(!_&&typeof process<"u"&&"env"in process)_=process.env.DEBUG;return _}function Z0(){try{return localStorage}catch(_){}}o.exports=J_()(p_);var{formatters:J0}=o.exports;J0.j=function(_){try{return JSON.stringify(_)}catch(S){return"[UnexpectedJSONParseError]: "+S.message}}});var l_=J((c_,s)=>{var q0=E("tty"),r=E("util");c_.init=U0;c_.log=E0;c_.formatArgs=N0;c_.save=D0;c_.load=A0;c_.useColors=w0;c_.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");c_.colors=[6,2,3,4,5,1];try{let _=(H0(),L0(M0));if(_&&(_.stderr||_).level>=2)c_.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}catch(_){}c_.inspectOpts=Object.keys(process.env).filter((_)=>{return/^debug_/i.test(_)}).reduce((_,S)=>{let z=S.substring(6).toLowerCase().replace(/_([a-z])/g,(K,Q)=>{return Q.toUpperCase()}),h=process.env[S];if(/^(yes|on|true|enabled)$/i.test(h))h=!0;else if(/^(no|off|false|disabled)$/i.test(h))h=!1;else if(h==="null")h=null;else h=Number(h);return _[z]=h,_},{});function w0(){return"colors"in c_.inspectOpts?Boolean(c_.inspectOpts.colors):q0.isatty(process.stderr.fd)}function N0(_){let{namespace:S,useColors:z}=this;if(z){let h=this.color,K="\x1B[3"+(h<8?h:"8;5;"+h),Q=` ${K};1m${S} \x1B[0m`;_[0]=Q+_[0].split(`
|
|
2
|
-
`).join(`
|
|
3
|
-
`+Q),_.push(K+"m+"+s.exports.humanize(this.diff)+"\x1B[0m")}else _[0]=x0()+S+" "+_[0]}function x0(){if(c_.inspectOpts.hideDate)return"";return new Date().toISOString()+" "}function E0(..._){return process.stderr.write(r.formatWithOptions(c_.inspectOpts,..._)+`
|
|
4
|
-
`)}function D0(_){if(_)process.env.DEBUG=_;else delete process.env.DEBUG}function A0(){return process.env.DEBUG}function U0(_){_.inspectOpts={};let S=Object.keys(c_.inspectOpts);for(let z=0;z<S.length;z++)_.inspectOpts[S[z]]=c_.inspectOpts[S[z]]}s.exports=J_()(c_);var{formatters:d_}=s.exports;d_.o=function(_){return this.inspectOpts.colors=this.useColors,r.inspect(_,this.inspectOpts).split(`
|
|
5
|
-
`).map((S)=>S.trim()).join(" ")};d_.O=function(_){return this.inspectOpts.colors=this.useColors,r.inspect(_,this.inspectOpts)}});var t_=J((Oh,Y_)=>{if(typeof process>"u"||process.type==="renderer"||!1||process.__nwjs)Y_.exports=i_();else Y_.exports=l_()});function y0(_){try{return new URL(_)}catch{return null}}function Rh(_){var S=(typeof _==="string"?y0(_):_)||{},z=S.protocol,h=S.host,K=S.port;if(typeof h!=="string"||!h||typeof z!=="string")return"";if(z=z.split(":",1)[0],h=h.replace(/:\d*$/,""),K=parseInt(K)||P0[z]||0,!k0(h,K))return"";var Q=W_(z+"_proxy")||W_("all_proxy");if(Q&&Q.indexOf("://")===-1)Q=z+"://"+Q;return Q}function k0(_,S){var z=W_("no_proxy").toLowerCase();if(!z)return!0;if(z==="*")return!1;return z.split(/[,\s]/).every(function(h){if(!h)return!0;var K=h.match(/^(.+):(\d+)$/),Q=K?K[1]:h,W=K?parseInt(K[2]):0;if(W&&W!==S)return!0;if(!/^[.*]/.test(Q))return _!==Q;if(Q.charAt(0)==="*")Q=Q.slice(1);return!_.endsWith(Q)})}function W_(_){return process.env[_.toLowerCase()]||process.env[_.toUpperCase()]||""}var P0;var v0=R0(()=>{P0={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443}});var r_=J((yh,o_)=>{var b;o_.exports=function(){if(!b){try{b=t_()("follow-redirects")}catch(_){}if(typeof b!=="function")b=function(){}}b.apply(null,arguments)}});var a0=J((kh,x_)=>{var m=E("url"),u=m.URL,g0=E("http"),b0=E("https"),X_=E("stream").Writable,L_=E("assert"),s_=r_();(function(){var S=typeof process<"u",z=typeof window<"u"&&typeof document<"u",h=C(Error.captureStackTrace);if(!S&&(z||!h))console.warn("The follow-redirects package should be excluded from browser builds.")})();var M_=!1;try{L_(new u(""))}catch(_){M_=_.code==="ERR_INVALID_URL"}var u0=["Authorization","Proxy-Authorization","Cookie"],m0=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],H_=["abort","aborted","connect","error","socket","timeout"],q_=Object.create(null);H_.forEach(function(_){q_[_]=function(S,z,h){this._redirectable.emit(_,S,z,h)}});var G_=p("ERR_INVALID_URL","Invalid URL",TypeError),V_=p("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),p0=p("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",V_),i0=p("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),d0=p("ERR_STREAM_WRITE_AFTER_END","write after end"),c0=X_.prototype.destroy||e_;function w(_,S){if(X_.call(this),this._sanitizeOptions(_),this._options=_,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],S)this.on("response",S);var z=this;this._onNativeResponse=function(h){try{z._processResponse(h)}catch(K){z.emit("error",K instanceof V_?K:new V_({cause:K}))}},this._headerFilter=new RegExp("^(?:"+u0.concat(_.sensitiveHeaders).map(s0).join("|")+")$","i"),this._performRequest()}w.prototype=Object.create(X_.prototype);w.prototype.abort=function(){N_(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};w.prototype.destroy=function(_){return N_(this._currentRequest,_),c0.call(this,_),this};w.prototype.write=function(_,S,z){if(this._ending)throw new d0;if(!j(_)&&!o0(_))throw TypeError("data should be a string, Buffer or Uint8Array");if(C(S))z=S,S=null;if(_.length===0){if(z)z();return}if(this._requestBodyLength+_.length<=this._options.maxBodyLength)this._requestBodyLength+=_.length,this._requestBodyBuffers.push({data:_,encoding:S}),this._currentRequest.write(_,S,z);else this.emit("error",new i0),this.abort()};w.prototype.end=function(_,S,z){if(C(_))z=_,_=S=null;else if(C(S))z=S,S=null;if(!_)this._ended=this._ending=!0,this._currentRequest.end(null,null,z);else{var h=this,K=this._currentRequest;this.write(_,S,function(){h._ended=!0,K.end(null,null,z)}),this._ending=!0}};w.prototype.setHeader=function(_,S){this._options.headers[_]=S,this._currentRequest.setHeader(_,S)};w.prototype.removeHeader=function(_){delete this._options.headers[_],this._currentRequest.removeHeader(_)};w.prototype.setTimeout=function(_,S){var z=this;function h(W){W.setTimeout(_),W.removeListener("timeout",W.destroy),W.addListener("timeout",W.destroy)}function K(W){if(z._timeout)clearTimeout(z._timeout);z._timeout=setTimeout(function(){z.emit("timeout"),Q()},_),h(W)}function Q(){if(z._timeout)clearTimeout(z._timeout),z._timeout=null;if(z.removeListener("abort",Q),z.removeListener("error",Q),z.removeListener("response",Q),z.removeListener("close",Q),S)z.removeListener("timeout",S);if(!z.socket)z._currentRequest.removeListener("socket",K)}if(S)this.on("timeout",S);if(this.socket)K(this.socket);else this._currentRequest.once("socket",K);return this.on("socket",h),this.on("abort",Q),this.on("error",Q),this.on("response",Q),this.on("close",Q),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(_){w.prototype[_]=function(S,z){return this._currentRequest[_](S,z)}});["aborted","connection","socket"].forEach(function(_){Object.defineProperty(w.prototype,_,{get:function(){return this._currentRequest[_]}})});w.prototype._sanitizeOptions=function(_){if(!_.headers)_.headers={};if(!t0(_.sensitiveHeaders))_.sensitiveHeaders=[];if(_.host){if(!_.hostname)_.hostname=_.host;delete _.host}if(!_.pathname&&_.path){var S=_.path.indexOf("?");if(S<0)_.pathname=_.path;else _.pathname=_.path.substring(0,S),_.search=_.path.substring(S)}};w.prototype._performRequest=function(){var _=this._options.protocol,S=this._options.nativeProtocols[_];if(!S)throw TypeError("Unsupported protocol "+_);if(this._options.agents){var z=_.slice(0,-1);this._options.agent=this._options.agents[z]}var h=this._currentRequest=S.request(this._options,this._onNativeResponse);h._redirectable=this;for(var K of H_)h.on(K,q_[K]);if(this._currentUrl=/^\//.test(this._options.path)?m.format(this._options):this._options.path,this._isRedirect){var Q=0,W=this,V=this._requestBodyBuffers;(function M(F){if(h===W._currentRequest){if(F)W.emit("error",F);else if(Q<V.length){var Z=V[Q++];if(!h.finished)h.write(Z.data,Z.encoding,M)}else if(W._ended)h.end()}})()}};w.prototype._processResponse=function(_){var S=_.statusCode;if(this._options.trackRedirects)this._redirects.push({url:this._currentUrl,headers:_.headers,statusCode:S});var z=_.headers.location;if(!z||this._options.followRedirects===!1||S<300||S>=400){_.responseUrl=this._currentUrl,_.redirects=this._redirects,this.emit("response",_),this._requestBodyBuffers=[];return}if(N_(this._currentRequest),_.destroy(),++this._redirectCount>this._options.maxRedirects)throw new p0;var h,K=this._options.beforeRedirect;if(K)h=Object.assign({Host:_.req.getHeader("host")},this._options.headers);var Q=this._options.method;if((S===301||S===302)&&this._options.method==="POST"||S===303&&!/^(?:GET|HEAD)$/.test(this._options.method))this._options.method="GET",this._requestBodyBuffers=[],B_(/^content-/i,this._options.headers);var W=B_(/^host$/i,this._options.headers),V=w_(this._currentUrl),M=W||V.host,F=/^\w+:/.test(z)?this._currentUrl:m.format(Object.assign(V,{host:M})),Z=n0(z,F);if(s_("redirecting to",Z.href),this._isRedirect=!0,F_(Z,this._options),Z.protocol!==V.protocol&&Z.protocol!=="https:"||Z.host!==M&&!l0(Z.host,M))B_(this._headerFilter,this._options.headers);if(C(K)){var Y={headers:_.headers,statusCode:S},G={url:F,method:Q,headers:h};K(this._options,Y,G),this._sanitizeOptions(this._options)}this._performRequest()};function a_(_){var S={maxRedirects:21,maxBodyLength:10485760},z={};return Object.keys(_).forEach(function(h){var K=h+":",Q=z[K]=_[h],W=S[h]=Object.create(Q);function V(F,Z,Y){if(r0(F))F=F_(F);else if(j(F))F=F_(w_(F));else Y=Z,Z=_z(F),F={protocol:K};if(C(Z))Y=Z,Z=null;if(Z=Object.assign({maxRedirects:S.maxRedirects,maxBodyLength:S.maxBodyLength},F,Z),Z.nativeProtocols=z,!j(Z.host)&&!j(Z.hostname))Z.hostname="::1";return L_.equal(Z.protocol,K,"protocol mismatch"),s_("options",Z),new w(Z,Y)}function M(F,Z,Y){var G=W.request(F,Z,Y);return G.end(),G}Object.defineProperties(W,{request:{value:V,configurable:!0,enumerable:!0,writable:!0},get:{value:M,configurable:!0,enumerable:!0,writable:!0}})}),S}function e_(){}function w_(_){var S;if(M_)S=new u(_);else if(S=_z(m.parse(_)),!j(S.protocol))throw new G_({input:_});return S}function n0(_,S){return M_?new u(_,S):w_(m.resolve(S,_))}function _z(_){if(/^\[/.test(_.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(_.hostname))throw new G_({input:_.href||_});if(/^\[/.test(_.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(_.host))throw new G_({input:_.href||_});return _}function F_(_,S){var z=S||{};for(var h of m0)z[h]=_[h];if(z.hostname.startsWith("["))z.hostname=z.hostname.slice(1,-1);if(z.port!=="")z.port=Number(z.port);return z.path=z.search?z.pathname+z.search:z.pathname,z}function B_(_,S){var z;for(var h in S)if(_.test(h))z=S[h],delete S[h];return z===null||typeof z>"u"?void 0:String(z).trim()}function p(_,S,z){function h(K){if(C(Error.captureStackTrace))Error.captureStackTrace(this,this.constructor);Object.assign(this,K||{}),this.code=_,this.message=this.cause?S+": "+this.cause.message:S}return h.prototype=new(z||Error),Object.defineProperties(h.prototype,{constructor:{value:h,enumerable:!1},name:{value:"Error ["+_+"]",enumerable:!1}}),h}function N_(_,S){for(var z of H_)_.removeListener(z,q_[z]);_.on("error",e_),_.destroy(S)}function l0(_,S){L_(j(_)&&j(S));var z=_.length-S.length-1;return z>0&&_[z]==="."&&_.endsWith(S)}function t0(_){return _ instanceof Array}function j(_){return typeof _==="string"||_ instanceof String}function C(_){return typeof _==="function"}function o0(_){return typeof _==="object"&&"length"in _}function r0(_){return u&&_ instanceof u}function s0(_){return _.replace(/[\]\\/()*+?.$]/g,"\\$&")}x_.exports=a_({http:g0,https:b0});x_.exports.wrap=a_});var hz=J((vh,Sz)=>{var zz=E("stream").Stream,e0=E("util");Sz.exports=D;function D(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e0.inherits(D,zz);D.create=function(_,S){var z=new this;S=S||{};for(var h in S)z[h]=S[h];z.source=_;var K=_.emit;if(_.emit=function(){return z._handleEmit(arguments),K.apply(_,arguments)},_.on("error",function(){}),z.pauseStream)_.pause();return z};Object.defineProperty(D.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}});D.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};D.prototype.resume=function(){if(!this._released)this.release();this.source.resume()};D.prototype.pause=function(){this.source.pause()};D.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(_){this.emit.apply(this,_)}.bind(this)),this._bufferedEvents=[]};D.prototype.pipe=function(){var _=zz.prototype.pipe.apply(this,arguments);return this.resume(),_};D.prototype._handleEmit=function(_){if(this._released){this.emit.apply(this,_);return}if(_[0]==="data")this.dataSize+=_[1].length,this._checkIfMaxDataSizeExceeded();this._bufferedEvents.push(_)};D.prototype._checkIfMaxDataSizeExceeded=function(){if(this._maxDataSizeExceeded)return;if(this.dataSize<=this.maxDataSize)return;this._maxDataSizeExceeded=!0;var _="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",Error(_))}});var z1=J((gh,Zz)=>{var _1=E("util"),Qz=E("stream").Stream,Kz=hz();Zz.exports=X;function X(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}_1.inherits(X,Qz);X.create=function(_){var S=new this;_=_||{};for(var z in _)S[z]=_[z];return S};X.isStreamLike=function(_){return typeof _!=="function"&&typeof _!=="string"&&typeof _!=="boolean"&&typeof _!=="number"&&!Buffer.isBuffer(_)};X.prototype.append=function(_){var S=X.isStreamLike(_);if(S){if(!(_ instanceof Kz)){var z=Kz.create(_,{maxDataSize:1/0,pauseStream:this.pauseStreams});_.on("data",this._checkDataSize.bind(this)),_=z}if(this._handleErrors(_),this.pauseStreams)_.pause()}return this._streams.push(_),this};X.prototype.pipe=function(_,S){return Qz.prototype.pipe.call(this,_,S),this.resume(),_};X.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};X.prototype._realGetNext=function(){var _=this._streams.shift();if(typeof _>"u"){this.end();return}if(typeof _!=="function"){this._pipeNext(_);return}var S=_;S(function(z){var h=X.isStreamLike(z);if(h)z.on("data",this._checkDataSize.bind(this)),this._handleErrors(z);this._pipeNext(z)}.bind(this))};X.prototype._pipeNext=function(_){this._currentStream=_;var S=X.isStreamLike(_);if(S){_.on("end",this._getNext.bind(this)),_.pipe(this,{end:!1});return}var z=_;this.write(z),this._getNext()};X.prototype._handleErrors=function(_){var S=this;_.on("error",function(z){S._emitError(z)})};X.prototype.write=function(_){this.emit("data",_)};X.prototype.pause=function(){if(!this.pauseStreams)return;if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function")this._currentStream.pause();this.emit("pause")};X.prototype.resume=function(){if(!this._released)this._released=!0,this.writable=!0,this._getNext();if(this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function")this._currentStream.resume();this.emit("resume")};X.prototype.end=function(){this._reset(),this.emit("end")};X.prototype.destroy=function(){this._reset(),this.emit("close")};X.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};X.prototype._checkDataSize=function(){if(this._updateDataSize(),this.dataSize<=this.maxDataSize)return;var _="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(Error(_))};X.prototype._updateDataSize=function(){this.dataSize=0;var _=this;if(this._streams.forEach(function(S){if(!S.dataSize)return;_.dataSize+=S.dataSize}),this._currentStream&&this._currentStream.dataSize)this.dataSize+=this._currentStream.dataSize};X.prototype._emitError=function(_){this._reset(),this.emit("error",_)}});var Yz=J((bh,Jz)=>{Jz.exports=S1;function S1(_){var S=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;if(S)S(_);else setTimeout(_,0)}});var E_=J((uh,Bz)=>{var Wz=Yz();Bz.exports=h1;function h1(_){var S=!1;return Wz(function(){S=!0}),function(h,K){if(S)_(h,K);else Wz(function(){_(h,K)})}}});var D_=J((mh,Gz)=>{Gz.exports=K1;function K1(_){Object.keys(_.jobs).forEach(Q1.bind(_)),_.jobs={}}function Q1(_){if(typeof this.jobs[_]=="function")this.jobs[_]()}});var A_=J((ph,Fz)=>{var Vz=E_(),Z1=D_();Fz.exports=J1;function J1(_,S,z,h){var K=z.keyedList?z.keyedList[z.index]:z.index;z.jobs[K]=Y1(S,K,_[K],function(Q,W){if(!(K in z.jobs))return;if(delete z.jobs[K],Q)Z1(z);else z.results[K]=W;h(Q,z.results)})}function Y1(_,S,z,h){var K;if(_.length==2)K=_(z,Vz(h));else K=_(z,S,Vz(h));return K}});var U_=J((ih,Xz)=>{Xz.exports=W1;function W1(_,S){var z=!Array.isArray(_),h={index:0,keyedList:z||S?Object.keys(_):null,jobs:{},results:z?{}:[],size:z?Object.keys(_).length:_.length};if(S)h.keyedList.sort(z?S:function(K,Q){return S(_[K],_[Q])});return h}});var f_=J((dh,Lz)=>{var B1=D_(),G1=E_();Lz.exports=V1;function V1(_){if(!Object.keys(this.jobs).length)return;this.index=this.size,B1(this),G1(_)(null,this.results)}});var Hz=J((ch,Mz)=>{var F1=A_(),X1=U_(),L1=f_();Mz.exports=M1;function M1(_,S,z){var h=X1(_);while(h.index<(h.keyedList||_).length)F1(_,S,h,function(K,Q){if(K){z(K,Q);return}if(Object.keys(h.jobs).length===0){z(null,h.results);return}}),h.index++;return L1.bind(h,z)}});var j_=J((nh,a)=>{var qz=A_(),H1=U_(),q1=f_();a.exports=w1;a.exports.ascending=wz;a.exports.descending=N1;function w1(_,S,z,h){var K=H1(_,z);return qz(_,S,K,function Q(W,V){if(W){h(W,V);return}if(K.index++,K.index<(K.keyedList||_).length){qz(_,S,K,Q);return}h(null,K.results)}),q1.bind(K,h)}function wz(_,S){return _<S?-1:_>S?1:0}function N1(_,S){return-1*wz(_,S)}});var xz=J((lh,Nz)=>{var x1=j_();Nz.exports=E1;function E1(_,S,z){return x1(_,S,null,z)}});var D1=J((th,Ez)=>{Ez.exports={parallel:Hz(),serial:xz(),serialOrdered:j_()}});var C_=J((oh,Dz)=>{Dz.exports=Object});var Uz=J((rh,Az)=>{Az.exports=Error});var jz=J((sh,fz)=>{fz.exports=EvalError});var Iz=J((ah,Cz)=>{Cz.exports=RangeError});var $z=J((eh,Tz)=>{Tz.exports=ReferenceError});var Rz=J((_2,Oz)=>{Oz.exports=SyntaxError});var e=J((z2,Pz)=>{Pz.exports=TypeError});var kz=J((S2,yz)=>{yz.exports=URIError});var gz=J((h2,vz)=>{vz.exports=Math.abs});var uz=J((K2,bz)=>{bz.exports=Math.floor});var pz=J((Q2,mz)=>{mz.exports=Math.max});var dz=J((Z2,iz)=>{iz.exports=Math.min});var nz=J((J2,cz)=>{cz.exports=Math.pow});var tz=J((Y2,lz)=>{lz.exports=Math.round});var rz=J((W2,oz)=>{oz.exports=Number.isNaN||function(S){return S!==S}});var az=J((B2,sz)=>{var A1=rz();sz.exports=function(S){if(A1(S)||S===0)return S;return S<0?-1:1}});var _S=J((G2,ez)=>{ez.exports=Object.getOwnPropertyDescriptor});var I_=J((V2,zS)=>{var __=_S();if(__)try{__([],"length")}catch(_){__=null}zS.exports=__});var hS=J((F2,SS)=>{var z_=Object.defineProperty||!1;if(z_)try{z_({},"a",{value:1})}catch(_){z_=!1}SS.exports=z_});var T_=J((X2,KS)=>{KS.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var S={},z=Symbol("test"),h=Object(z);if(typeof z==="string")return!1;if(Object.prototype.toString.call(z)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(h)!=="[object Symbol]")return!1;var K=42;S[z]=K;for(var Q in S)return!1;if(typeof Object.keys==="function"&&Object.keys(S).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(S).length!==0)return!1;var W=Object.getOwnPropertySymbols(S);if(W.length!==1||W[0]!==z)return!1;if(!Object.prototype.propertyIsEnumerable.call(S,z))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var V=Object.getOwnPropertyDescriptor(S,z);if(V.value!==K||V.enumerable!==!0)return!1}return!0}});var JS=J((L2,ZS)=>{var QS=typeof Symbol<"u"&&Symbol,U1=T_();ZS.exports=function(){if(typeof QS!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof QS("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return U1()}});var $_=J((M2,YS)=>{YS.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var O_=J((H2,WS)=>{var f1=C_();WS.exports=f1.getPrototypeOf||null});var VS=J((q2,GS)=>{var j1="Function.prototype.bind called on incompatible ",C1=Object.prototype.toString,I1=Math.max,T1="[object Function]",BS=function(S,z){var h=[];for(var K=0;K<S.length;K+=1)h[K]=S[K];for(var Q=0;Q<z.length;Q+=1)h[Q+S.length]=z[Q];return h},$1=function(S,z){var h=[];for(var K=z||0,Q=0;K<S.length;K+=1,Q+=1)h[Q]=S[K];return h},O1=function(_,S){var z="";for(var h=0;h<_.length;h+=1)if(z+=_[h],h+1<_.length)z+=S;return z};GS.exports=function(S){var z=this;if(typeof z!=="function"||C1.apply(z)!==T1)throw TypeError(j1+z);var h=$1(arguments,1),K,Q=function(){if(this instanceof K){var Z=z.apply(this,BS(h,arguments));if(Object(Z)===Z)return Z;return this}return z.apply(S,BS(h,arguments))},W=I1(0,z.length-h.length),V=[];for(var M=0;M<W;M++)V[M]="$"+M;if(K=Function("binder","return function ("+O1(V,",")+"){ return binder.apply(this,arguments); }")(Q),z.prototype){var F=function(){};F.prototype=z.prototype,K.prototype=new F,F.prototype=null}return K}});var R=J((w2,FS)=>{var R1=VS();FS.exports=Function.prototype.bind||R1});var S_=J((N2,XS)=>{XS.exports=Function.prototype.call});var R_=J((x2,LS)=>{LS.exports=Function.prototype.apply});var HS=J((E2,MS)=>{MS.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var wS=J((D2,qS)=>{var P1=R(),y1=R_(),k1=S_(),v1=HS();qS.exports=v1||P1.call(k1,y1)});var xS=J((A2,NS)=>{var g1=R(),b1=e(),u1=S_(),m1=wS();NS.exports=function(S){if(S.length<1||typeof S[0]!=="function")throw new b1("a function is required");return m1(g1,u1,S)}});var jS=J((U2,fS)=>{var p1=xS(),ES=I_(),AS;try{AS=[].__proto__===Array.prototype}catch(_){if(!_||typeof _!=="object"||!("code"in _)||_.code!=="ERR_PROTO_ACCESS")throw _}var P_=!!AS&&ES&&ES(Object.prototype,"__proto__"),US=Object,DS=US.getPrototypeOf;fS.exports=P_&&typeof P_.get==="function"?p1([P_.get]):typeof DS==="function"?function(S){return DS(S==null?S:US(S))}:!1});var OS=J((f2,$S)=>{var CS=$_(),IS=O_(),TS=jS();$S.exports=CS?function(S){return CS(S)}:IS?function(S){if(!S||typeof S!=="object"&&typeof S!=="function")throw TypeError("getProto: not an object");return IS(S)}:TS?function(S){return TS(S)}:null});var PS=J((j2,RS)=>{var i1=Function.prototype.call,d1=Object.prototype.hasOwnProperty,c1=R();RS.exports=c1.call(i1,d1)});var uS=J((C2,bS)=>{var B,n1=C_(),l1=Uz(),t1=jz(),o1=Iz(),r1=$z(),v=Rz(),k=e(),s1=kz(),a1=gz(),e1=uz(),_h=pz(),zh=dz(),Sh=nz(),hh=tz(),Kh=az(),vS=Function,y_=function(_){try{return vS('"use strict"; return ('+_+").constructor;")()}catch(S){}},i=I_(),Qh=hS(),k_=function(){throw new k},Zh=i?function(){try{return arguments.callee,k_}catch(_){try{return i(arguments,"callee").get}catch(S){return k_}}}():k_,P=JS()(),q=OS(),Jh=O_(),Yh=$_(),gS=R_(),d=S_(),y={},Wh=typeof Uint8Array>"u"||!q?B:q(Uint8Array),I={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?B:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?B:ArrayBuffer,"%ArrayIteratorPrototype%":P&&q?q([][Symbol.iterator]()):B,"%AsyncFromSyncIteratorPrototype%":B,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":typeof Atomics>"u"?B:Atomics,"%BigInt%":typeof BigInt>"u"?B:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?B:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?B:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?B:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":l1,"%eval%":eval,"%EvalError%":t1,"%Float16Array%":typeof Float16Array>"u"?B:Float16Array,"%Float32Array%":typeof Float32Array>"u"?B:Float32Array,"%Float64Array%":typeof Float64Array>"u"?B:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?B:FinalizationRegistry,"%Function%":vS,"%GeneratorFunction%":y,"%Int8Array%":typeof Int8Array>"u"?B:Int8Array,"%Int16Array%":typeof Int16Array>"u"?B:Int16Array,"%Int32Array%":typeof Int32Array>"u"?B:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":P&&q?q(q([][Symbol.iterator]())):B,"%JSON%":typeof JSON==="object"?JSON:B,"%Map%":typeof Map>"u"?B:Map,"%MapIteratorPrototype%":typeof Map>"u"||!P||!q?B:q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n1,"%Object.getOwnPropertyDescriptor%":i,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?B:Promise,"%Proxy%":typeof Proxy>"u"?B:Proxy,"%RangeError%":o1,"%ReferenceError%":r1,"%Reflect%":typeof Reflect>"u"?B:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?B:Set,"%SetIteratorPrototype%":typeof Set>"u"||!P||!q?B:q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?B:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&q?q(""[Symbol.iterator]()):B,"%Symbol%":P?Symbol:B,"%SyntaxError%":v,"%ThrowTypeError%":Zh,"%TypedArray%":Wh,"%TypeError%":k,"%Uint8Array%":typeof Uint8Array>"u"?B:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?B:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?B:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?B:Uint32Array,"%URIError%":s1,"%WeakMap%":typeof WeakMap>"u"?B:WeakMap,"%WeakRef%":typeof WeakRef>"u"?B:WeakRef,"%WeakSet%":typeof WeakSet>"u"?B:WeakSet,"%Function.prototype.call%":d,"%Function.prototype.apply%":gS,"%Object.defineProperty%":Qh,"%Object.getPrototypeOf%":Jh,"%Math.abs%":a1,"%Math.floor%":e1,"%Math.max%":_h,"%Math.min%":zh,"%Math.pow%":Sh,"%Math.round%":hh,"%Math.sign%":Kh,"%Reflect.getPrototypeOf%":Yh};if(q)try{null.error}catch(_){v_=q(q(_)),I["%Error.prototype%"]=v_}var v_,Bh=function _(S){var z;if(S==="%AsyncFunction%")z=y_("async function () {}");else if(S==="%GeneratorFunction%")z=y_("function* () {}");else if(S==="%AsyncGeneratorFunction%")z=y_("async function* () {}");else if(S==="%AsyncGenerator%"){var h=_("%AsyncGeneratorFunction%");if(h)z=h.prototype}else if(S==="%AsyncIteratorPrototype%"){var K=_("%AsyncGenerator%");if(K&&q)z=q(K.prototype)}return I[S]=z,z},yS={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},c=R(),h_=PS(),Gh=c.call(d,Array.prototype.concat),Vh=c.call(gS,Array.prototype.splice),kS=c.call(d,String.prototype.replace),K_=c.call(d,String.prototype.slice),Fh=c.call(d,RegExp.prototype.exec),Xh=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Lh=/\\(\\)?/g,Mh=function(S){var z=K_(S,0,1),h=K_(S,-1);if(z==="%"&&h!=="%")throw new v("invalid intrinsic syntax, expected closing `%`");else if(h==="%"&&z!=="%")throw new v("invalid intrinsic syntax, expected opening `%`");var K=[];return kS(S,Xh,function(Q,W,V,M){K[K.length]=V?kS(M,Lh,"$1"):W||Q}),K},Hh=function(S,z){var h=S,K;if(h_(yS,h))K=yS[h],h="%"+K[0]+"%";if(h_(I,h)){var Q=I[h];if(Q===y)Q=Bh(h);if(typeof Q>"u"&&!z)throw new k("intrinsic "+S+" exists, but is not available. Please file an issue!");return{alias:K,name:h,value:Q}}throw new v("intrinsic "+S+" does not exist!")};bS.exports=function(S,z){if(typeof S!=="string"||S.length===0)throw new k("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof z!=="boolean")throw new k('"allowMissing" argument must be a boolean');if(Fh(/^%?[^%]*%?$/,S)===null)throw new v("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var h=Mh(S),K=h.length>0?h[0]:"",Q=Hh("%"+K+"%",z),W=Q.name,V=Q.value,M=!1,F=Q.alias;if(F)K=F[0],Vh(h,Gh([0,1],F));for(var Z=1,Y=!0;Z<h.length;Z+=1){var G=h[Z],L=K_(G,0,1),x=K_(G,-1);if((L==='"'||L==="'"||L==="`"||(x==='"'||x==="'"||x==="`"))&&L!==x)throw new v("property names with quotes must have matching quotes");if(G==="constructor"||!Y)M=!0;if(K+="."+G,W="%"+K+"%",h_(I,W))V=I[W];else if(V!=null){if(!(G in V)){if(!z)throw new k("base intrinsic for "+S+" exists, but the property is not available.");return}if(i&&Z+1>=h.length){var H=i(V,G);if(Y=!!H,Y&&"get"in H&&!("originalValue"in H.get))V=H.get;else V=V[G]}else Y=h_(V,G),V=V[G];if(Y&&!M)I[W]=V}}return V}});var pS=J((I2,mS)=>{var qh=T_();mS.exports=function(){return qh()&&!!Symbol.toStringTag}});var dS=J((T2,iS)=>{var wh=Function.prototype.call,Nh=Object.prototype.hasOwnProperty,xh=R();iS.exports=xh.call(wh,Nh)});var fh=J(($2,nS)=>{var Eh=uS(),cS=Eh("%Object.defineProperty%",!0),Dh=pS()(),Ah=dS(),Uh=e(),Q_=Dh?Symbol.toStringTag:null;nS.exports=function(S,z){var h=arguments.length>2&&!!arguments[2]&&arguments[2].force,K=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof h<"u"&&typeof h!=="boolean"||typeof K<"u"&&typeof K!=="boolean")throw new Uh("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");if(Q_&&(h||!Ah(S,Q_)))if(cS)cS(S,Q_,{configurable:!K,enumerable:!1,value:z,writable:!1});else S[Q_]=z}});
|
|
6
|
-
export{z1 as s8,D1 as t8,R as u8,fh as v8,Rh as w8,v0 as x8,t_ as y8,a0 as z8};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{sI as Q,vI as F}from"./cli-1.1.36-v0s0vqmm.mjs";import{Aia as b,Dia as y}from"./cli-1.1.36-jpcwwd65.mjs";import{aja as x,fja as f}from"./cli-1.1.36-6g1w2zbr.mjs";import{ija as w,tja as R}from"./cli-1.1.36-0qtyffhw.mjs";import{Doa as K,dka as $,gka as j}from"./cli-1.1.36-bsfazmtt.mjs";import{Rpa as v}from"./cli-1.1.36-c4pkjm54.mjs";import{statSync as u}from"fs";import{join as Z}from"path";function P(k,q){return`${q} ${k}`}function g(){J.clear()}function C(){return{projectLoopMdPath:Z(j(),".claudin","loop.md"),userLoopMdPath:Z(w(),"loop.md")}}function h(k){for(let q of[k.projectLoopMdPath,k.userLoopMdPath])try{let z=u(q);return`${q}:${z.mtimeMs}:${z.size}`}catch(z){if(!x(z))b(`[loopSentinels] failed to stat ${q}: ${z}`)}return null}function M(k,q,z=m){let B=k.trim();if(B!==Y&&B!==G)return k;let V=h(q??C()),W=P(B,z),H=J.get(W);J.set(W,{firedOnce:!0,loopMdFingerprint:V});let X=H!==void 0&&H.loopMdFingerprint!==V;if(H===void 0||X)return d(B,X);return L(B)}function d(k,q){let z=q?`Note: the loop.md instructions changed since the last tick — re-read them and follow the updated version.
|
|
2
|
-
|
|
3
|
-
`:"",B=k===G?`
|
|
4
|
-
|
|
5
|
-
${c}`:"";return`Scheduled loop tick.
|
|
6
|
-
|
|
7
|
-
${z}${D}${B}`}function L(k){if(k!==G)return"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md).";return`${"Scheduled loop tick — continue the loop per the instructions earlier in this conversation. If they are no longer in context, re-read .claudin/loop.md (or ~/.claudin/loop.md)."} Then, as the LAST action of the turn, call ${Q} again (prompt: ${G}) to continue the loop, or omit it to end the loop.`}var Y="<<autonomous-loop>>",G="<<autonomous-loop-dynamic>>",D=`Scheduled maintenance loop iteration.
|
|
8
|
-
|
|
9
|
-
If .claudin/loop.md exists, read it and follow it.
|
|
10
|
-
Otherwise, if ~/.claudin/loop.md exists, read it and follow it.
|
|
11
|
-
Otherwise:
|
|
12
|
-
- continue any unfinished work from the conversation
|
|
13
|
-
- tend to the current branch's pull request: review comments, failed CI runs, merge conflicts
|
|
14
|
-
- run cleanup passes such as bug hunts or simplification when nothing else is pending
|
|
15
|
-
|
|
16
|
-
Do not start new initiatives outside that scope.
|
|
17
|
-
Irreversible actions such as pushing or deleting only proceed when they continue something the transcript already authorized.`,c,m="lead",J;var U=v(()=>{K();F();y();R();f();c=`This loop is self-paced (/loop dynamic mode): when this iteration's work is done, as the LAST action of the turn either call ${Q} again — prompt set to exactly ${G}, with a delay chosen per the tool description and a one-sentence reason — to continue the loop, or omit the call to end it.`,J=new Map;$(g)});
|
|
18
|
-
export{Y as Kh,G as Lh,D as Mh,g as Nh,M as Oh,U as Ph};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{xW as z,yW as $,zW as D}from"./cli-1.1.36-4ssz80b2.mjs";import{XZ as W,b0 as Z,e0 as x}from"./cli-1.1.36-p7w1197h.mjs";import{M9 as Q,_da as Y}from"./cli-1.1.36-t6sjxpcb.mjs";import{Rpa as C}from"./cli-1.1.36-c4pkjm54.mjs";function L(){let q=process.env.TERM_PROGRAM;if(q&&O.has(q))return!0;let y=process.env.TERM;if(y&&X.has(y))return!0;let J=W()?.toLowerCase();if(J===void 0)return!1;return k.some((B)=>J.startsWith(B))}function H(q){if(q===void 0||q==="")return null;let y=Number(q);if(!Number.isFinite(y)||y<d||y>w)return null;return y}function K(q){return u.get(q)??Math.max(1,Math.round(1000/q))}function I(){return H(process.env.CLAUDIN_FPS)!==null}function j(){let q=H(process.env.CLAUDIN_FPS);if(q!==null)return K(q);if(Z())return z;let y=H(Q().renderFrameRate);if(y!==null)return K(y);if(L()&&!process.env.TMUX)return h;return z}function P(){let q=j();return String(G.get(q)??Math.round(1000/q))}function S(){$(j())}var c,O,X,k,d=10,w=360,h=8,b,u,G;var N=C(()=>{D();x();Y();c=["auto","120","240","360"],O=new Set(["ghostty","kitty","WezTerm","alacritty","contour","foot","rio","WarpTerminal"]),X=new Set(["xterm-kitty","xterm-ghostty","alacritty","contour","foot","foot-extra","rio"]),k=["ghostty","kitty","wezterm","alacritty","contour","foot","rio","warp"],b=[[60,16],[120,h],[240,4],[360,3]],u=new Map(b),G=new Map(b.map(([q,y])=>[y,q]))});
|
|
2
|
-
export{c as Ag,I as Bg,P as Cg,S as Dg,N as Eg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Rpa as M}from"./cli-1.1.36-c4pkjm54.mjs";function P(j){return j.message?.role??j.role}function G(j){return j.message?j.message.content:j.content}function K(j){if(!j||typeof j!=="object")return!1;if(j.type==="image")return!0;if(j.type==="tool_result"&&Array.isArray(j.content))return j.content.some((q)=>K(q));return!1}function Q(j){if(!Array.isArray(j))return!1;return j.some((q)=>K(q))}function U(j){if(!Array.isArray(j)||j.length===0)return!1;return j.every((q)=>{let w=q;return w&&typeof w==="object"&&w.type==="tool_result"})}function V(j){let q=j[j.length-1];if(!q||typeof q!=="object")return"user";if(P(q)!=="user")return"agent";if(U(G(q)))return"agent";return"user"}function W(j){return j.some((q)=>Q(G(q)))}function X(j){let q={"x-initiator":V(j)};if(W(j))q["Copilot-Vision-Request"]="true";return q}function Z(j,q={}){return(w,B)=>{let E=new Headers(B?.headers);for(let[z,F]of Object.entries(q))if(!E.has(z))E.set(z,F);try{if(typeof B?.body==="string"){let z=JSON.parse(B.body);if(Array.isArray(z?.messages))for(let[F,L]of Object.entries(X(z.messages)))E.set(F,L)}}catch{}return j(w,{...B,headers:E})}}var Y=()=>{};
|
|
2
|
-
export{V as Fi,W as Gi,X as Hi,Z as Ii,Y as Ji};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{ub as LY}from"./cli-1.1.36-7v42aqn9.mjs";import{kd as JY,nd as I9}from"./cli-1.1.36-0ar5v8he.mjs";import{Oh as tQ,Ph as KW}from"./cli-1.1.36-ya2s1rfy.mjs";import{Bi as EY,Ci as m9}from"./cli-1.1.36-h74yjk66.mjs";import{$C as n0,$k as WW,AE as I0,Ap as V0,Ar as KY,Bp as vW,Br as b9,CQ as IQ,Dv as l,Ej as WQ,FK as XY,Fv as p9,GK as M9,Gv as wY,Hj as AZ,Iv as u9,KC as hZ,LC as CZ,Lt as X0,MC as SZ,Mj as zY,NC as xZ,Nt as J0,OC as kZ,PC as pZ,Pw as SY,QC as hQ,Qw as t9,RC as CQ,Rt as N0,Rz as UZ,SC as uZ,TC as cZ,UC as mZ,UM as UY,UQ as _Q,Uz as jZ,VC as gZ,VM as g9,Vz as $Q,WC as dZ,XC as lZ,YC as nZ,Yt as zW,ZC as aZ,Zz as M0,_C as iZ,_k as nY,aP as PY,aS as bY,al as aY,bl as iY,bm as qZ,bx as DZ,cN as jY,cl as yQ,cm as P0,cn as zQ,cx as EZ,dN as d9,dl as iQ,do as fZ,dx as $0,el as rY,eo as g0,fK as r,fl as oY,fn as AQ,fo as GY,gl as rQ,gn as IZ,go as $9,gx as OZ,hl as tY,ho as AY,hx as b0,iP as FY,il as sY,jP as $Y,jS as TY,jl as GW,kO as $Z,lK as OY,nO as R0,nP as l9,nS as NY,qS as HY,qr as wZ,sK as yY,sr as F0,tG as FZ,uG as f0,wD as DY,wp as mQ,wv as VY,xp as IY,xv as T9,xx as yZ,yp as EQ,yx as T0,zD as c9,zE as PZ,zQ as MQ,zp as qY}from"./cli-1.1.36-v0s0vqmm.mjs";import{EX as j0,MV as U0,YW as k,_W as $}from"./cli-1.1.36-4ssz80b2.mjs";import{b1 as d,c1 as E,d1 as b,e1 as ZZ}from"./cli-1.1.36-z5djkbwy.mjs";import{f1 as y0}from"./cli-1.1.36-apycha28.mjs";import{D$ as BW,Dba as K0,Kba as _W,L_ as LW,R8 as BQ,S8 as w0,T9 as WY,V9 as F9,aaa as PQ,caa as D0,g$ as G0,m9 as CY,nfa as vZ,p_ as W0,qfa as O0,r9 as o9,ufa as o,zfa as zZ}from"./cli-1.1.36-t6sjxpcb.mjs";import{Ifa as KZ,Qfa as VZ,Wfa as q0}from"./cli-1.1.36-6q7sfj4e.mjs";import{Fga as Q,Gga as vQ,Hga as v,Iga as fQ}from"./cli-1.1.36-ss62b517.mjs";import{Pga as FQ,Sga as XZ,Tga as JZ,Uga as NZ,Vga as HZ,Xga as LZ,Yga as BZ,iha as _Z,qha as E0}from"./cli-1.1.36-jqn2tez7.mjs";import{Aia as T,Dha as hY,Dia as KQ,Fha as r9,dia as s,eia as ZY,iia as wQ}from"./cli-1.1.36-jpcwwd65.mjs";import{Fia as YY,Jia as P9}from"./cli-1.1.36-n5etyd9m.mjs";import{$ia as dQ,Mia as QY,_ia as Y0,fja as kQ}from"./cli-1.1.36-6g1w2zbr.mjs";import{$ja as nQ,$na as dY,Doa as DQ,Hna as mY,Ina as NQ,Wja as BY,Zna as gY,aoa as oQ,coa as lY,fka as sQ,gka as RY}from"./cli-1.1.36-bsfazmtt.mjs";import{Npa as WZ,Qpa as GZ,Rpa as TQ,Spa as cQ}from"./cli-1.1.36-c4pkjm54.mjs";var c0={};GZ(c0,{selectableUserMessagesFilter:()=>MZ,messagesAfterAreOnlySynthetic:()=>u0,MessageSelector:()=>C0});import{randomUUID as h0}from"crypto";import*as QQ from"path";function bZ(Y){return Y.type==="text"}function bQ(Y){return Y==="summarize"||Y==="summarize_up_to"}function C0({messages:Y,onPreRestore:Z,onRestoreMessage:W,onRestoreCode:G,onSummarize:K,onClose:J,preselectedMessage:X}){let V=$Z((D)=>D.fileHistory),[L,_]=f.useState(void 0),H=UZ(),q=f.useMemo(h0,[]),O=f.useMemo(()=>[...Y.filter(MZ),{...r({content:""}),uuid:q}],[Y,q]),[j,z]=f.useState(O.length-1),M=Math.max(0,Math.min(j-Math.floor(jQ/2),O.length-jQ)),h=O.length>1,[B,F]=f.useState(X),[y,C]=f.useState(void 0);f.useEffect(()=>{if(!X||!H)return;let D=!1;return $Q(V,X.uuid).then((R)=>{if(!D)C(R)}),()=>{D=!0}},[X,H,V]);let[U,w]=f.useState(!1),[p,a]=f.useState(null),[i,I]=f.useState("both"),[S,x]=f.useState(""),[A,P]=f.useState("");function N(D){let R=D?[{value:"both",label:"Restore code and conversation"},{value:"conversation",label:"Restore conversation"},{value:"code",label:"Restore code"}]:[{value:"conversation",label:"Restore conversation"}],c={type:"input",placeholder:"add context (optional)",initialValue:"",allowEmptySubmitToCancel:!0,showLabelWithValue:!0,labelValueSeparator:": "};return R.push({value:"summarize",label:"Summarize from here",...c,onChange:x}),R.push({value:"nevermind",label:"Never mind"}),R}async function u(D){Z(),w(!0);try{await W(D),w(!1),J()}catch(R){o(R),w(!1),_(`Failed to restore the conversation:
|
|
2
|
-
${R}`)}}async function g(D){let R=Y.indexOf(D),c=Y.length-1-R;if(!Y.includes(D)){J();return}if(!H){await u(D);return}let m=await $Q(V,D.uuid);F(D),C(m)}async function ZQ(D){if(!B){_("Message not found.");return}if(D==="nevermind"){if(X)J();else F(void 0);return}if(bQ(D)){Z(),w(!0),a(D),_(void 0);try{let m=D==="summarize_up_to"?"up_to":"from",e=(m==="up_to"?A:S).trim()||void 0;await K(B,e,m),w(!1),a(null),F(void 0),J()}catch(m){o(m),w(!1),a(null),F(void 0),_(`Failed to summarize:
|
|
3
|
-
${m}`)}return}Z(),w(!0),_(void 0);let R=null,c=null;if(D==="code"||D==="both")try{await G(B)}catch(m){R=m,o(R)}if(D==="conversation"||D==="both")try{await W(B)}catch(m){c=m,o(c)}if(w(!1),F(void 0),c&&R)_(`Failed to restore the conversation and code:
|
|
4
|
-
${c}
|
|
5
|
-
${R}`);else if(c)_(`Failed to restore the conversation:
|
|
6
|
-
${c}`);else if(R)_(`Failed to restore the code:
|
|
7
|
-
${R}`);else J()}let YQ=OZ(),t=f.useCallback(()=>{if(B&&!X){F(void 0);return}J()},[J,B,X]),L0=f.useCallback(()=>z((D)=>Math.max(0,D-1)),[]),B0=f.useCallback(()=>z((D)=>Math.min(O.length-1,D+1)),[O.length]),_0=f.useCallback(()=>z(0),[]),v0=f.useCallback(()=>z(O.length-1),[O.length]),z0=f.useCallback(()=>{let D=O[j];if(D)g(D)},[O,j,g]);DZ("confirm:no",t,{context:"Confirmation",isActive:!B}),EZ({"messageSelector:up":L0,"messageSelector:down":B0,"messageSelector:top":_0,"messageSelector:bottom":v0,"messageSelector:select":z0},{context:"MessageSelector",isActive:!U&&!L&&!B&&h});let[eQ,QZ]=f.useState({});f.useEffect(()=>{async function D(){if(!H)return;Promise.all(O.map(async(R,c)=>{if(R.uuid!==q){let m=jZ(V,R.uuid),e=O.at(c+1),LQ=m?p0(Y,R.uuid,e?.uuid!==q?e?.uuid:void 0):void 0;if(LQ!==void 0)QZ((n)=>({...n,[c]:LQ}));else QZ((n)=>({...n,[c]:void 0}))}}))}D()},[O,Y,q,V,H]);let HQ=H&&y?.filesChanged&&y.filesChanged.length>0,A0=!L&&!B&&!X&&h;return b(k,{flexDirection:"column",width:"100%",children:[E(yZ,{color:"suggestion"}),b(k,{flexDirection:"column",marginX:1,gap:1,children:[E($,{bold:!0,color:"suggestion",children:"Rewind"}),L&&E(d,{children:b($,{color:"error",children:["Error: ",L]})}),!h&&E(d,{children:E($,{children:"Nothing to rewind to yet."})}),!L&&B&&h&&b(d,{children:[b($,{children:["Confirm you want to restore"," ",!y&&"the conversation ","to the point before you sent this message:"]}),b(k,{flexDirection:"column",paddingLeft:1,borderStyle:"single",borderRight:!1,borderTop:!1,borderBottom:!1,borderLeft:!0,borderLeftDimColor:!0,children:[E(YZ,{userMessage:B,color:"text",isCurrent:!1}),b($,{dimColor:!0,children:["(",VZ(new Date(B.timestamp)),")"]})]}),E(x0,{selectedRestoreOption:i,canRestoreCode:!!HQ,diffStatsForRestore:y}),U&&bQ(p)?b(k,{flexDirection:"row",gap:1,children:[E(FZ,{}),E($,{children:"Summarizing…"})]}):E(PZ,{isDisabled:U,options:N(!!HQ),defaultFocusValue:HQ?"both":"conversation",onFocus:(D)=>I(D),onChange:(D)=>ZQ(D),onCancel:()=>X?J():F(void 0)}),HQ&&E(k,{marginBottom:1,children:b($,{dimColor:!0,children:[BQ.warning," Rewinding does not affect files edited manually or via bash."]})})]}),A0&&b(d,{children:[H?E($,{children:"Restore the code and/or conversation to the point before…"}):E($,{children:"Restore and fork the conversation to the point before…"}),E(k,{width:"100%",flexDirection:"column",children:O.slice(M,M+jQ).map((D,R)=>{let c=M+R,m=c===j,e=D.uuid===q,LQ=c in eQ,n=eQ[c],UQ=n?.filesChanged&&n.filesChanged.length;return b(k,{height:H?3:2,overflow:"hidden",width:"100%",flexDirection:"row",children:[E(k,{width:2,minWidth:2,children:m?b($,{color:"permission",bold:!0,children:[BQ.pointer," "]}):E($,{children:" "})}),b(k,{flexDirection:"column",children:[E(k,{flexShrink:1,height:1,overflow:"hidden",children:E(YZ,{userMessage:D,color:m?"suggestion":void 0,isCurrent:e,paddingRight:10})}),H&&LQ&&E(k,{height:1,flexDirection:"row",children:n?E(d,{children:E($,{dimColor:!m,color:"inactive",children:UQ?b(d,{children:[UQ===1&&n.filesChanged[0]?`${QQ.basename(n.filesChanged[0])} `:`${UQ} files changed `,E(TZ,{diffStats:n})]}):E(d,{children:"No code changes"})})}):b($,{dimColor:!0,color:"warning",children:[BQ.warning," No code restore"]})})]})]},D.uuid)})})]}),!B&&E($,{dimColor:!0,italic:!0,children:YQ.pending?b(d,{children:["Press ",YQ.keyName," again to exit"]}):b(d,{children:[!L&&h&&"Enter to continue · ","Esc to exit"]})})]})]})}function S0(Y){switch(Y){case"summarize":return"Messages after this point will be summarized.";case"summarize_up_to":return"Preceding messages will be summarized. This and subsequent messages will remain unchanged — you will stay at the end of the conversation.";case"both":case"conversation":return"The conversation will be forked.";case"code":case"nevermind":return"The conversation will be unchanged."}}function x0(Y){let Z=GQ.c(11),{selectedRestoreOption:W,canRestoreCode:G,diffStatsForRestore:K}=Y,J=G&&(W==="both"||W==="code"),X;if(Z[0]!==W)X=S0(W),Z[0]=W,Z[1]=X;else X=Z[1];let V;if(Z[2]!==X)V=E($,{dimColor:!0,children:X}),Z[2]=X,Z[3]=V;else V=Z[3];let L;if(Z[4]!==K||Z[5]!==W||Z[6]!==J)L=!bQ(W)&&(J?E(k0,{diffStatsForRestore:K}):E($,{dimColor:!0,children:"The code will be unchanged."})),Z[4]=K,Z[5]=W,Z[6]=J,Z[7]=L;else L=Z[7];let _;if(Z[8]!==V||Z[9]!==L)_=b(k,{flexDirection:"column",children:[V,L]}),Z[8]=V,Z[9]=L,Z[10]=_;else _=Z[10];return _}function k0(Y){let Z=GQ.c(14),{diffStatsForRestore:W}=Y;if(W===void 0)return;if(!W.filesChanged||!W.filesChanged[0]){let V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=E($,{dimColor:!0,children:"The code has not changed (nothing will be restored)."}),Z[0]=V;else V=Z[0];return V}let G=W.filesChanged.length,K;if(G===1){let V;if(Z[1]!==W.filesChanged[0])V=QQ.basename(W.filesChanged[0]||""),Z[1]=W.filesChanged[0],Z[2]=V;else V=Z[2];K=V}else if(G===2){let V;if(Z[3]!==W.filesChanged[0])V=QQ.basename(W.filesChanged[0]||""),Z[3]=W.filesChanged[0],Z[4]=V;else V=Z[4];let L=V,_;if(Z[5]!==W.filesChanged[1])_=QQ.basename(W.filesChanged[1]||""),Z[5]=W.filesChanged[1],Z[6]=_;else _=Z[6];K=`${L} and ${_}`}else{let V;if(Z[7]!==W.filesChanged[0])V=QQ.basename(W.filesChanged[0]||""),Z[7]=W.filesChanged[0],Z[8]=V;else V=Z[8];K=`${V} and ${W.filesChanged.length-1} other files`}let J;if(Z[9]!==W)J=E(TZ,{diffStats:W}),Z[9]=W,Z[10]=J;else J=Z[10];let X;if(Z[11]!==K||Z[12]!==J)X=E(d,{children:b($,{dimColor:!0,children:["The code will be restored"," ",J," in ",K,"."]})}),Z[11]=K,Z[12]=J,Z[13]=X;else X=Z[13];return X}function TZ(Y){let Z=GQ.c(7),{diffStats:W}=Y;if(!W||!W.filesChanged)return;let G;if(Z[0]!==W.insertions)G=b($,{color:"diffAddedWord",children:["+",W.insertions," "]}),Z[0]=W.insertions,Z[1]=G;else G=Z[1];let K;if(Z[2]!==W.deletions)K=b($,{color:"diffRemovedWord",children:["-",W.deletions]}),Z[2]=W.deletions,Z[3]=K;else K=Z[3];let J;if(Z[4]!==G||Z[5]!==K)J=b(d,{children:[G,K]}),Z[4]=G,Z[5]=K,Z[6]=J;else J=Z[6];return J}function YZ(Y){let Z=GQ.c(31),{userMessage:W,color:G,dimColor:K,isCurrent:J,paddingRight:X}=Y,{columns:V}=qZ();if(J){let C;if(Z[0]!==G||Z[1]!==K)C=E(k,{width:"100%",children:E($,{italic:!0,color:G,dimColor:K,children:"(current)"})}),Z[0]=G,Z[1]=K,Z[2]=C;else C=Z[2];return C}let L=W.message.content,_=typeof L==="string"?null:L[L.length-1],H,q,O,j,z,M,h,B;if(Z[3]!==G||Z[4]!==V||Z[5]!==L||Z[6]!==K||Z[7]!==_||Z[8]!==X){B=Symbol.for("react.early_return_sentinel");Q:{let C=typeof L==="string"?L.trim():_&&bZ(_)?_.text.trim():"(no prompt)",U=vZ(C);if(AZ(U)){let w;if(Z[17]!==G||Z[18]!==K)w=E(k,{flexDirection:"row",width:"100%",children:E($,{italic:!0,color:G,dimColor:K,children:"((empty message))"})}),Z[17]=G,Z[18]=K,Z[19]=w;else w=Z[19];B=w;break Q}if(U.includes("<bash-input>")){let w=WQ(U,"bash-input");if(w){let p;if(Z[20]===Symbol.for("react.memo_cache_sentinel"))p=E($,{color:"bashBorder",children:"!"}),Z[20]=p;else p=Z[20];B=b(k,{flexDirection:"row",width:"100%",children:[p,b($,{color:G,dimColor:K,children:[" ",w]})]});break Q}}if(U.includes(`<${FQ}>`)){let w=WQ(U,FQ),p=WQ(U,"command-args"),a=WQ(U,"skill-format")==="true";if(w)if(a){B=E(k,{flexDirection:"row",width:"100%",children:b($,{color:G,dimColor:K,children:["Skill(",w,")"]})});break Q}else{B=E(k,{flexDirection:"row",width:"100%",children:b($,{color:G,dimColor:K,children:["/",w," ",p]})});break Q}}q=k,M="row",h="100%",H=$,O=G,j=K,z=X?KZ(U,V-X,!0):U.slice(0,500).split(`
|
|
8
|
-
`).slice(0,4).join(`
|
|
9
|
-
`)}Z[3]=G,Z[4]=V,Z[5]=L,Z[6]=K,Z[7]=_,Z[8]=X,Z[9]=H,Z[10]=q,Z[11]=O,Z[12]=j,Z[13]=z,Z[14]=M,Z[15]=h,Z[16]=B}else H=Z[9],q=Z[10],O=Z[11],j=Z[12],z=Z[13],M=Z[14],h=Z[15],B=Z[16];if(B!==Symbol.for("react.early_return_sentinel"))return B;let F;if(Z[21]!==H||Z[22]!==O||Z[23]!==j||Z[24]!==z)F=E(H,{color:O,dimColor:j,children:z}),Z[21]=H,Z[22]=O,Z[23]=j,Z[24]=z,Z[25]=F;else F=Z[25];let y;if(Z[26]!==q||Z[27]!==M||Z[28]!==h||Z[29]!==F)y=E(q,{flexDirection:M,width:h,children:F}),Z[26]=q,Z[27]=M,Z[28]=h,Z[29]=F,Z[30]=y;else y=Z[30];return y}function p0(Y,Z,W){let G=Y.findIndex((L)=>L.uuid===Z);if(G===-1)return;let K=W?Y.findIndex((L)=>L.uuid===W):Y.length;if(K===-1)K=Y.length;let J=[],X=0,V=0;for(let L=G+1;L<K;L++){let _=Y[L];if(!_||!IQ(_))continue;let H=_.toolUseResult;if(!H||!H.filePath||!H.structuredPatch)continue;if(!J.includes(H.filePath))J.push(H.filePath);try{if("type"in H&&H.type==="create")X+=H.content.split(/\r?\n/).length;else for(let q of H.structuredPatch){let O=PQ(q.lines,(z)=>z.startsWith("+")),j=PQ(q.lines,(z)=>z.startsWith("-"));X+=O,V+=j}}catch{continue}}return{filesChanged:J,insertions:X,deletions:V}}function MZ(Y){if(Y.type!=="user")return!1;if(Array.isArray(Y.message.content)&&Y.message.content[0]?.type==="tool_result")return!1;if(MQ(Y))return!1;if(Y.isMeta)return!1;if(Y.isCompactSummary||Y.isVisibleInTranscriptOnly)return!1;let Z=Y.message.content,W=typeof Z==="string"?null:Z[Z.length-1],G=typeof Z==="string"?Z.trim():W&&bZ(W)?W.text.trim():"";if(G.indexOf(`<${NZ}>`)!==-1||G.indexOf(`<${HZ}>`)!==-1||G.indexOf(`<${XZ}>`)!==-1||G.indexOf(`<${JZ}>`)!==-1||G.indexOf(`<${BZ}>`)!==-1||G.indexOf(`<${LZ}>`)!==-1||G.indexOf(`<${_Z}`)!==-1||wZ(G))return!1;return!0}function u0(Y,Z){for(let W=Z+1;W<Y.length;W++){let G=Y[W];if(!G)continue;if(MQ(G))continue;if(IQ(G))continue;if(G.type==="progress")continue;if(G.type==="system")continue;if(G.type==="attachment")continue;if(G.type==="user"&&G.isMeta)continue;if(G.type==="assistant"){let K=G.message.content;if(Array.isArray(K)){if(K.some((X)=>X.type==="text"&&X.text.trim()||X.type==="tool_use"))return!1}continue}if(G.type==="user")return!1}return!0}var GQ,f,jQ=7;var m0=TQ(()=>{w0();R0();M0();zZ();b0();j0();$0();O0();_Q();I0();f0();P0();E0();F0();D0();q0();T0();ZZ();GQ=WZ(U0(),1),f=WZ(y0(),1)});import{mkdir as s9,readFile as e9,unlink as xY,writeFile as lQ}from"fs/promises";import{dirname as QW,join as kY}from"path";function XQ(Y){return kY(Y??RY(),ZW)}async function pY(Y){let Z;try{Z=await e9(XQ(Y),"utf8")}catch{return}let W=YW().safeParse(CY(Z,!1));return W.success?W.data:void 0}async function fY(Y,Z){let W=XQ(Z),G=s(Y);try{return await lQ(W,G,{flag:"wx"}),!0}catch(K){let J=dQ(K);if(J==="EEXIST")return!1;if(J==="ENOENT"){await s9(QW(W),{recursive:!0});try{return await lQ(W,G,{flag:"wx"}),!0}catch(X){if(dQ(X)==="EEXIST")return!1;throw X}}throw K}}function gQ(Y){OQ?.(),OQ=hY(async()=>{await JQ(Y)})}async function aQ(Y){let Z=Y?.dir,W=Y?.lockIdentity??nQ(),G={sessionId:W,pid:process.pid,acquiredAt:Date.now()};if(await fY(G,Z))return VQ=void 0,gQ(Y),T(`[ScheduledTasks] acquired scheduler lock (PID ${process.pid})`),!0;let K=await pY(Z);if(K?.sessionId===W){if(K.pid!==process.pid)await lQ(XQ(Z),s(G)),gQ(Y);return!0}if(K&&SY(K.pid)){if(VQ!==K.sessionId)VQ=K.sessionId,T(`[ScheduledTasks] scheduler lock held by session ${K.sessionId} (PID ${K.pid})`);return!1}if(K)T(`[ScheduledTasks] recovering stale scheduler lock from PID ${K.pid}`);if(await xY(XQ(Z)).catch(()=>{}),await fY(G,Z))return VQ=void 0,gQ(Y),!0;return!1}async function JQ(Y){OQ?.(),OQ=void 0,VQ=void 0;let Z=Y?.dir,W=Y?.lockIdentity??nQ(),G=await pY(Z);if(!G||G.sessionId!==W)return;try{await xY(XQ(Z)),T("[ScheduledTasks] released scheduler lock")}catch{}}var ZW,YW,OQ,VQ;var uY=TQ(()=>{vQ();DQ();r9();KQ();kQ();t9();o9();fQ();wQ();ZW=kY(".claudin","scheduled_tasks.lock"),YW=v(()=>Q.object({sessionId:Q.string(),pid:Q.number(),acquiredAt:Q.number()}))});var NW={};GZ(NW,{takeDueSessionWakeup:()=>Q0,isRecurringTaskAged:()=>eY,createCronScheduler:()=>JW,buildMissedTaskNotification:()=>Z0});function eY(Y,Z,W){if(W===0)return!1;return Boolean(Y.recurring&&!Y.permanent&&Z-Y.createdAt>=W)}function Q0(Y){let Z=oQ();if(!Z||Y<Z.fireAtMs)return null;return lY(),{prompt:tQ(Z.prompt),reason:Z.reason}}function JW(Y){let{onFire:Z,isLoading:W,assistantMode:G=!1,onFireTask:K,onMissed:J,onWakeupFire:X,dir:V,lockIdentity:L,getJitterConfig:_,isKilled:H,filter:q}=Y,O=V||L?{dir:V,lockIdentity:L}:void 0,j=[],z=new Map,M=new Set,h=new Set,B=null,F=null,y=null,C=null,U=!1,w=!1;async function p(I){let S=await iY(V);if(U)return;if(j=S,!I)return;let x=Date.now(),A=sY(S,x).filter((P)=>!P.recurring&&!M.has(P.id)&&(!q||q(P)));if(A.length>0){for(let P of A)M.add(P.id),z.set(P.id,1/0);if(J)J(A);else Z(Z0(A));iQ(A.map((P)=>P.id),V).catch((P)=>T(`[ScheduledTasks] failed to remove missed tasks: ${P}`)),T(`[ScheduledTasks] surfaced ${A.length} missed one-shot task(s)`)}}function a(){if(H?.())return;if(W()&&!G)return;let I=Date.now(),S=new Set,x=[],A=_?.()??oY;function P(N,u){if(q&&!q(N))return;if(S.add(N.id),h.has(N.id))return;let g=z.get(N.id);if(g===void 0)g=N.recurring?rQ(N.cron,N.lastFiredAt??N.createdAt,N.id,A)??1/0:tY(N.cron,N.createdAt,N.id,A)??1/0,z.set(N.id,g),T(`[ScheduledTasks] scheduled ${N.id} for ${g===1/0?"never":new Date(g).toISOString()}`);if(I<g)return;T(`[ScheduledTasks] firing ${N.id}${N.recurring?" (recurring)":""}`);let ZQ=V===void 0?tQ(N.prompt,void 0,N.agentId):N.prompt;if(K)K(ZQ===N.prompt?N:{...N,prompt:ZQ});else Z(ZQ);let YQ=eY(N,I,A.recurringMaxAgeMs);if(YQ){let t=Math.floor((I-N.createdAt)/1000/60/60);T(`[ScheduledTasks] recurring task ${N.id} aged out (${t}h since creation), deleting after final fire`)}if(N.recurring&&!YQ){let t=rQ(N.cron,I,N.id,A)??1/0;if(z.set(N.id,t),!u)x.push(N.id)}else if(u)dY([N.id]),z.delete(N.id);else h.add(N.id),iQ([N.id],V).catch((t)=>T(`[ScheduledTasks] failed to remove task ${N.id}: ${t}`)).finally(()=>h.delete(N.id)),z.delete(N.id)}if(w){for(let N of j)P(N,!1);if(x.length>0){for(let N of x)h.add(N);rY(x,I,V).catch((N)=>T(`[ScheduledTasks] failed to persist lastFiredAt: ${N}`)).finally(()=>{for(let N of x)h.delete(N)})}}if(V===void 0){for(let u of gY())P(u,!0);let N=Q0(I);if(N!==null)if(T("[ScheduledTasks] firing pending ScheduleWakeup"),X)X(N.prompt,N.reason);else Z(N.prompt)}if(S.size===0){z.clear();return}for(let N of z.keys())if(!S.has(N))z.delete(N)}async function i(){if(U)return;if(B)clearInterval(B),B=null;let{default:I}=await import("./index-1.1.36-048ng2px.mjs");if(U)return;if(w=await aQ(O).catch(()=>!1),U){if(w)w=!1,JQ(O);return}if(!w)y=setInterval(()=>{aQ(O).then((x)=>{if(U){if(x)JQ(O);return}if(x){if(w=!0,y)clearInterval(y),y=null}}).catch((x)=>T(String(x),{level:"error"}))},XW),y.unref?.();p(!0);let S=aY(V);C=I.watch(S,{persistent:!1,ignoreInitial:!0,awaitWriteFinish:{stabilityThreshold:VW},ignorePermissionErrors:!0}),C.on("add",()=>void p(!1)),C.on("change",()=>void p(!1)),C.on("unlink",()=>{if(!U)j=[],z.clear()}),F=setInterval(a,cY),F.unref?.()}return{start(){if(U=!1,V!==void 0){T(`[ScheduledTasks] scheduler start() — dir=${V}, hasTasks=${yQ(V)}`),i();return}if(T(`[ScheduledTasks] scheduler start() — enabled=${NQ()}, hasTasks=${yQ()}`),!NQ()&&(G||yQ()))mY(!0);if(NQ()){i();return}B=setInterval((I)=>{if(NQ())I()},cY,i),B.unref?.()},stop(){if(U=!0,B)clearInterval(B),B=null;if(F)clearInterval(F),F=null;if(y)clearInterval(y),y=null;if(C?.close(),C=null,w)w=!1,JQ(O)},getNextFireTime(){let I=1/0;for(let S of z.values())if(S<I)I=S;if(V===void 0){let S=oQ();if(S&&S.fireAtMs<I)I=S.fireAtMs}return I===1/0?null:I}}}function Z0(Y){let Z=Y.length>1,W=`The following one-shot scheduled task${Z?"s were":" was"} missed while Claude was not running. ${Z?"They have":"It has"} already been removed from .claudin/scheduled_tasks.json.
|
|
10
|
-
|
|
11
|
-
Do NOT execute ${Z?"these prompts":"this prompt"} yet. First use the AskUserQuestion tool to ask whether to run ${Z?"each one":"it"} now. Only execute if the user confirms.`,G=Y.map((K)=>{let J=`[${nY(K.cron)}, created ${new Date(K.createdAt).toLocaleString()}]`,X=(K.prompt.match(/`+/g)??[]).reduce((L,_)=>Math.max(L,_.length),0),V="`".repeat(Math.max(3,X+1));return`${J}
|
|
12
|
-
${V}
|
|
13
|
-
${K.prompt}
|
|
14
|
-
${V}`});return`${W}
|
|
15
|
-
|
|
16
|
-
${G.join(`
|
|
17
|
-
|
|
18
|
-
`)}`}var cY=1000,VW=300,XW=5000;var HW=TQ(()=>{DQ();WW();GW();uY();KQ();KW()});vQ();KQ();fQ();IZ();g0();var gW=v(()=>Q.object({tool_name:Q.string().describe("The name of the tool requesting permission"),input:Q.record(Q.string(),Q.unknown()).describe("The input for the tool"),tool_use_id:Q.string().optional().describe("The unique tool use request ID")})),RZ=v(()=>Q.enum(["user_temporary","user_permanent","user_reject"]).optional().catch(void 0)),d0=v(()=>Q.object({behavior:Q.literal("allow"),updatedInput:Q.record(Q.string(),Q.unknown()),updatedPermissions:Q.array(fZ()).optional().catch((Y)=>{T(`Malformed updatedPermissions from SDK host ignored: ${Y.error.issues[0]?.message??"unknown"}`,{level:"warn"});return}),toolUseID:Q.string().optional(),decisionClassification:RZ()})),l0=v(()=>Q.object({behavior:Q.literal("deny"),message:Q.string(),interrupt:Q.boolean().optional(),toolUseID:Q.string().optional(),decisionClassification:RZ()})),RQ=v(()=>Q.union([d0(),l0()]));function qQ(Y,Z,W,G){let K={type:"permissionPromptTool",permissionPromptToolName:Z.name,toolResult:Y};if(Y.behavior==="allow"){let J=Y.updatedPermissions;if(J)G.setAppState((V)=>({...V,toolPermissionContext:zQ(V.toolPermissionContext,J)})),AQ(J);let X=Object.keys(Y.updatedInput).length>0?Y.updatedInput:W;return{...Y,updatedInput:X,decisionReason:K}}else if(Y.behavior==="deny"&&Y.interrupt)T(`SDK permission prompt deny+interrupt: tool=${Z.name} message=${Y.message}`),G.abortController.abort();return{...Y,decisionReason:K}}import{randomUUID as xQ}from"crypto";vQ();fQ();n0();var a0=v(()=>Q.unknown()),i0=v(()=>Q.object({matcher:Q.string().optional(),hookCallbackIds:Q.array(Q.string()),timeout:Q.number().optional()}).describe("Configuration for matching and routing hook callbacks.")),r0=v(()=>Q.object({subtype:Q.literal("initialize"),hooks:Q.record(kZ(),Q.array(i0())).optional(),sdkMcpServers:Q.array(Q.string()).optional(),jsonSchema:Q.record(Q.string(),Q.unknown()).optional(),systemPrompt:Q.string().optional(),appendSystemPrompt:Q.string().optional(),agents:Q.record(Q.string(),mZ()).optional(),promptSuggestions:Q.boolean().optional(),agentProgressSummaries:Q.boolean().optional()}).describe("Initializes the SDK session with hooks, MCP servers, and agent configuration.")),iW=v(()=>Q.object({commands:Q.array(hQ()),agents:Q.array(CQ()),output_style:Q.string(),available_output_styles:Q.array(Q.string()),models:Q.array(uZ()),account:cZ(),pid:Q.number().optional().describe("@internal CLI process PID for tmux socket isolation"),fast_mode_state:iZ().optional()}).describe("Response from session initialization with available commands, models, and account info.")),o0=v(()=>Q.object({subtype:Q.literal("interrupt")}).describe("Interrupts the currently running conversation turn.")),t0=v(()=>Q.object({subtype:Q.literal("can_use_tool"),tool_name:Q.string(),input:Q.record(Q.string(),Q.unknown()),permission_suggestions:Q.array(SZ()).optional(),blocked_path:Q.string().optional(),decision_reason:Q.string().optional(),title:Q.string().optional(),display_name:Q.string().optional(),tool_use_id:Q.string(),agent_id:Q.string().optional(),description:Q.string().optional()}).describe("Requests permission to use a tool with the given input.")),s0=v(()=>Q.object({subtype:Q.literal("set_permission_mode"),mode:xZ()}).describe("Sets the permission mode for tool execution handling.")),e0=v(()=>Q.object({subtype:Q.literal("set_model"),model:Q.string().optional()}).describe("Sets the model to use for subsequent conversation turns.")),Q9=v(()=>Q.object({subtype:Q.literal("set_max_thinking_tokens"),max_thinking_tokens:Q.number().nullable()}).describe("Sets the maximum number of thinking tokens for extended thinking.")),Z9=v(()=>Q.object({subtype:Q.literal("mcp_status")}).describe("Requests the current status of all MCP server connections.")),Y9=v(()=>Q.object({subtype:Q.literal("get_context_usage")}).describe("Requests a breakdown of current context window usage by category.")),W9=v(()=>Q.object({name:Q.string(),tokens:Q.number(),color:Q.string(),isDeferred:Q.boolean().optional()})),G9=v(()=>Q.object({color:Q.string(),isFilled:Q.boolean(),categoryName:Q.string(),tokens:Q.number(),percentage:Q.number(),squareFullness:Q.number()})),rW=v(()=>Q.object({categories:Q.array(W9()),totalTokens:Q.number(),maxTokens:Q.number(),rawMaxTokens:Q.number(),percentage:Q.number(),gridRows:Q.array(Q.array(G9())),model:Q.string(),memoryFiles:Q.array(Q.object({path:Q.string(),type:Q.string(),tokens:Q.number()})),mcpTools:Q.array(Q.object({name:Q.string(),serverName:Q.string(),tokens:Q.number(),isLoaded:Q.boolean().optional()})),deferredBuiltinTools:Q.array(Q.object({name:Q.string(),tokens:Q.number(),isLoaded:Q.boolean()})).optional(),systemTools:Q.array(Q.object({name:Q.string(),tokens:Q.number()})).optional(),systemPromptSections:Q.array(Q.object({name:Q.string(),tokens:Q.number()})).optional(),agents:Q.array(Q.object({agentType:Q.string(),source:Q.string(),tokens:Q.number()})),slashCommands:Q.object({totalCommands:Q.number(),includedCommands:Q.number(),tokens:Q.number()}).optional(),skills:Q.object({totalSkills:Q.number(),includedSkills:Q.number(),tokens:Q.number(),skillFrontmatter:Q.array(Q.object({name:Q.string(),source:Q.string(),tokens:Q.number()}))}).optional(),autoCompactThreshold:Q.number().optional(),isAutoCompactEnabled:Q.boolean(),messageBreakdown:Q.object({toolCallTokens:Q.number(),toolResultTokens:Q.number(),attachmentTokens:Q.number(),assistantMessageTokens:Q.number(),userMessageTokens:Q.number(),toolCallsByType:Q.array(Q.object({name:Q.string(),callTokens:Q.number(),resultTokens:Q.number()})),attachmentsByType:Q.array(Q.object({name:Q.string(),tokens:Q.number()}))}).optional(),apiUsage:Q.object({input_tokens:Q.number(),output_tokens:Q.number(),cache_creation_input_tokens:Q.number(),cache_read_input_tokens:Q.number()}).nullable()}).describe("Breakdown of current context window usage by category (system prompt, tools, messages, etc.).")),K9=v(()=>Q.object({subtype:Q.literal("rewind_files"),user_message_id:Q.string(),dry_run:Q.boolean().optional()}).describe("Rewinds file changes made since a specific user message.")),V9=v(()=>Q.object({subtype:Q.literal("cancel_async_message"),message_uuid:Q.string()}).describe("Drops a pending async user message from the command queue by uuid. No-op if already dequeued for execution.")),X9=v(()=>Q.object({subtype:Q.literal("seed_read_state"),path:Q.string(),mtime:Q.number()}).describe("Seeds the readFileState cache with a path+mtime entry. Use when a prior Read was removed from context (e.g. by snip) so Edit validation would fail despite the client having observed the Read. The mtime lets the CLI detect if the file changed since the seeded Read — same staleness check as the normal path.")),J9=v(()=>Q.object({subtype:Q.literal("hook_callback"),callback_id:Q.string(),input:pZ(),tool_use_id:Q.string().optional()}).describe("Delivers a hook callback with its input data.")),N9=v(()=>Q.object({subtype:Q.literal("mcp_message"),server_name:Q.string(),message:a0()}).describe("Sends a JSON-RPC message to a specific MCP server.")),H9=v(()=>Q.object({subtype:Q.literal("mcp_set_servers"),servers:Q.record(Q.string(),hZ())}).describe("Replaces the set of dynamically managed MCP servers.")),oW=v(()=>Q.object({added:Q.array(Q.string()),removed:Q.array(Q.string()),errors:Q.record(Q.string(),Q.string())}).describe("Result of replacing the set of dynamically managed MCP servers.")),L9=v(()=>Q.object({subtype:Q.literal("reload_plugins")}).describe("Reloads plugins from disk and returns the refreshed session components.")),tW=v(()=>Q.object({commands:Q.array(hQ()),agents:Q.array(CQ()),plugins:Q.array(Q.object({name:Q.string(),path:Q.string(),source:Q.string().optional()})),mcpServers:Q.array(CZ()),error_count:Q.number()}).describe("Refreshed commands, agents, plugins, and MCP server status after reload.")),B9=v(()=>Q.object({subtype:Q.literal("mcp_reconnect"),serverName:Q.string()}).describe("Reconnects a disconnected or failed MCP server.")),_9=v(()=>Q.object({subtype:Q.literal("mcp_toggle"),serverName:Q.string(),enabled:Q.boolean()}).describe("Enables or disables an MCP server.")),v9=v(()=>Q.object({subtype:Q.literal("stop_task"),task_id:Q.string()}).describe("Stops a running task.")),z9=v(()=>Q.object({subtype:Q.literal("apply_flag_settings"),settings:Q.record(Q.string(),Q.unknown())}).describe("Merges the provided settings into the flag settings layer, updating the active configuration.")),A9=v(()=>Q.object({subtype:Q.literal("get_settings")}).describe("Returns the effective merged settings and the raw per-source settings.")),sW=v(()=>Q.object({effective:Q.record(Q.string(),Q.unknown()),sources:Q.array(Q.object({source:Q.enum(["userSettings","projectSettings","localSettings","flagSettings","policySettings"]),settings:Q.record(Q.string(),Q.unknown())})).describe("Ordered low-to-high priority — later entries override earlier ones."),applied:Q.object({model:Q.string(),effort:Q.enum(["low","medium","high","max"]).nullable()}).optional().describe("Runtime-resolved values after env overrides, session state, and model-specific defaults are applied. Unlike `effective` (disk merge), these reflect what will actually be sent to the API.")}).describe("Effective merged settings plus raw per-source settings in merge order.")),q9=v(()=>Q.object({subtype:Q.literal("elicitation"),mcp_server_name:Q.string(),message:Q.string(),mode:Q.enum(["form","url"]).optional(),url:Q.string().optional(),elicitation_id:Q.string().optional(),requested_schema:Q.record(Q.string(),Q.unknown()).optional()}).describe("Requests the SDK consumer to handle an MCP elicitation (user input request).")),rZ=v(()=>Q.object({action:Q.enum(["accept","decline","cancel"]),content:Q.record(Q.string(),Q.unknown()).optional()}).describe("Response from the SDK consumer for an elicitation request.")),w9=v(()=>Q.union([o0(),t0(),r0(),s0(),e0(),Q9(),Z9(),Y9(),J9(),N9(),K9(),V9(),X9(),H9(),L9(),B9(),_9(),v9(),z9(),A9(),q9()])),SQ=v(()=>Q.object({type:Q.literal("control_request"),request_id:Q.string(),request:w9()})),D9=v(()=>Q.object({subtype:Q.literal("success"),request_id:Q.string(),response:Q.record(Q.string(),Q.unknown()).optional()})),E9=v(()=>Q.object({subtype:Q.literal("error"),request_id:Q.string(),error:Q.string(),pending_permission_requests:Q.array(Q.lazy(()=>SQ())).optional()})),oZ=v(()=>Q.object({type:Q.literal("control_response"),response:Q.union([D9(),E9()])})),O9=v(()=>Q.object({type:Q.literal("control_cancel_request"),request_id:Q.string()}).describe("Cancels a currently open control request.")),tZ=v(()=>Q.object({type:Q.literal("keep_alive")}).describe("Keep-alive message to maintain WebSocket connection.")),y9=v(()=>Q.object({type:Q.literal("update_environment_variables"),variables:Q.record(Q.string(),Q.string())}).describe("Updates environment variables at runtime.")),eW=v(()=>Q.union([aZ(),dZ(),lZ(),nZ(),oZ(),SQ(),O9(),tZ()])),Q6=v(()=>Q.union([gZ(),SQ(),oZ(),tZ(),y9()]));$9();KQ();F9();kQ();b9();P9();wQ();vQ();T9();HY();IZ();I9();wQ();M9();wQ();var U9=/\u2028|\u2029/g;function j9(Y){return Y.replace(U9,(Z)=>Z==="\u2028"?"\\u2028":"\\u2029")}function sZ(Y){return j9(s(Y))}var f9="SandboxNetworkAccess";function R9(Y){if(!Y)return;if(Y.type==="classifier")return Y.reason;switch(Y.type){case"rule":case"mode":case"subcommandResults":case"permissionPromptTool":return;case"hook":case"asyncAgent":case"sandboxOverride":case"workingDir":case"safetyCheck":case"other":return Y.reason}}function h9(Y,Z,W,G){let K;try{K=Y.getActivityDescription?.(Z)??Y.getToolUseSummary?.(Z)??Y.userFacingName(Z)}catch{K=Y.name}return{tool_name:Y.name,action_description:K,tool_use_id:W,request_id:G,input:Z}}var C9=1000;class S9{input;replayUserMessages;structuredInput;pendingRequests=new Map;restoredWorkerState=Promise.resolve(null);inputClosed=!1;unexpectedResponseCallback;resolvedToolUseIds=new Set;prependedLines=[];onControlRequestSent;onControlRequestResolved;outbound=new XY;constructor(Y,Z){this.input=Y;this.replayUserMessages=Z;this.input=Y,this.structuredInput=this.read()}trackResolvedToolUseId(Y){if(Y.request.subtype==="can_use_tool"){if(this.resolvedToolUseIds.add(Y.request.tool_use_id),this.resolvedToolUseIds.size>C9){let Z=this.resolvedToolUseIds.values().next().value;if(Z!==void 0)this.resolvedToolUseIds.delete(Z)}}}flushInternalEvents(){return Promise.resolve()}get internalEventsPending(){return 0}prependUserMessage(Y){this.prependedLines.push(s({type:"user",session_id:"",message:{role:"user",content:Y},parent_tool_use_id:null})+`
|
|
19
|
-
`)}async*read(){let Y="",Z=async function*(){for(;;){if(this.prependedLines.length>0)Y=this.prependedLines.join("")+Y,this.prependedLines=[];let W=Y.indexOf(`
|
|
20
|
-
`);if(W===-1)break;let G=Y.slice(0,W);Y=Y.slice(W+1);let K=await this.processLine(G);if(K)WY("info","cli_stdin_message_parsed",{type:K.type}),yield K}}.bind(this);yield*Z();for await(let W of this.input)Y+=W,yield*Z();if(Y){let W=await this.processLine(Y);if(W)yield W}this.inputClosed=!0;for(let W of this.pendingRequests.values())W.reject(Error("Tool permission stream closed before response received"))}getPendingPermissionRequests(){return Array.from(this.pendingRequests.values()).map((Y)=>Y.request).filter((Y)=>Y.request.subtype==="can_use_tool")}setUnexpectedResponseCallback(Y){this.unexpectedResponseCallback=Y}injectControlResponse(Y){let Z=Y.response?.request_id;if(!Z)return;let W=this.pendingRequests.get(Z);if(!W)return;if(this.trackResolvedToolUseId(W.request),this.pendingRequests.delete(Z),this.write({type:"control_cancel_request",request_id:Z}),Y.response.subtype==="error")W.reject(Error(Y.response.error));else{let G=Y.response.response;if(W.schema)try{W.resolve(W.schema.parse(G))}catch(K){W.reject(K)}else W.resolve({})}}setOnControlRequestSent(Y){this.onControlRequestSent=Y}setOnControlRequestResolved(Y){this.onControlRequestResolved=Y}async processLine(Y){if(!Y)return;try{let Z=LY(ZY(Y));if(Z.type==="keep_alive")return;if(Z.type==="update_environment_variables"){let G=Object.keys(Z.variables);for(let[K,J]of Object.entries(Z.variables))process.env[K]=J;T(`[structuredIO] applied update_environment_variables: ${G.join(", ")}`);return}if(Z.type==="control_response"){let G="uuid"in Z&&typeof Z.uuid==="string"?Z.uuid:void 0;if(G)VY(G,"completed");let K=this.pendingRequests.get(Z.response.request_id);if(!K){let V=(Z.response.subtype==="success"?Z.response.response:void 0)?.toolUseID;if(typeof V==="string"&&this.resolvedToolUseIds.has(V)){T(`Ignoring duplicate control_response for already-resolved toolUseID=${V} request_id=${Z.response.request_id}`);return}if(this.unexpectedResponseCallback)await this.unexpectedResponseCallback(Z);return}if(this.trackResolvedToolUseId(K.request),this.pendingRequests.delete(Z.response.request_id),K.request.request.subtype==="can_use_tool"&&this.onControlRequestResolved)this.onControlRequestResolved(Z.response.request_id);if(Z.response.subtype==="error"){K.reject(Error(Z.response.error));return}let J=Z.response.response;if(K.schema)try{K.resolve(K.schema.parse(J))}catch(X){K.reject(X)}else K.resolve({});if(this.replayUserMessages)return Z;return}if(Z.type!=="user"&&Z.type!=="control_request"&&Z.type!=="assistant"&&Z.type!=="system"){T(`Ignoring unknown message type: ${Z.type}`,{level:"warn"});return}if(Z.type==="control_request"){if(!Z.request)eZ("Error: Missing request on control_request");return Z}if(Z.type==="assistant"||Z.type==="system")return Z;let W=Z.message;if(W.role!=="user")eZ(`Error: Expected message role 'user', got '${String(W.role)}'`);return Z}catch(Z){console.error(`Error parsing streaming input line: ${Y}: ${Z}`),process.exit(1)}}async write(Y){YY(sZ(Y)+`
|
|
21
|
-
`)}async sendRequest(Y,Z,W,G=xQ()){let K={type:"control_request",request_id:G,request:Y};if(this.inputClosed)throw Error("Stream closed");if(W?.aborted)throw Error("Request aborted");if(this.outbound.enqueue(K),Y.subtype==="can_use_tool"&&this.onControlRequestSent)this.onControlRequestSent(K);let J=()=>{this.outbound.enqueue({type:"control_cancel_request",request_id:G});let X=this.pendingRequests.get(G);if(X)this.trackResolvedToolUseId(X.request),X.reject(new QY)};if(W)W.addEventListener("abort",J,{once:!0});try{return await new Promise((X,V)=>{this.pendingRequests.set(G,{request:{type:"control_request",request_id:G,request:Y},resolve:(L)=>{X(L)},reject:V,schema:Z})})}finally{if(W)W.removeEventListener("abort",J);this.pendingRequests.delete(G)}}createCanUseTool(Y){return async(Z,W,G,K,J,X)=>{let V=X??await KY(Z,W,G,K,J);if(V.behavior==="allow"||V.behavior==="deny")return V;let L=new AbortController,_=G.abortController.signal,H=()=>L.abort();_.addEventListener("abort",H,{once:!0});try{let q=x9(Z.name,J,W,G,V.suggestions).then((M)=>({source:"hook",decision:M})),O=xQ();Y?.(h9(Z,W,J,O));let j=this.sendRequest({subtype:"can_use_tool",tool_name:Z.name,input:W,permission_suggestions:V.suggestions,blocked_path:V.blockedPath,decision_reason:R9(V.decisionReason),tool_use_id:J,agent_id:G.agentId},RQ(),L.signal,O).then((M)=>({source:"sdk",result:M})),z=await Promise.race([q,j]);if(z.source==="hook"){if(z.decision)return j.catch(()=>{}),L.abort(),z.decision;let M=await j;return qQ(M.result,Z,W,G)}return qQ(z.result,Z,W,G)}catch(q){return qQ({behavior:"deny",message:`Tool permission request failed: ${q}`,toolUseID:J},Z,W,G)}finally{if(this.getPendingPermissionRequests().length===0)JY("running");_.removeEventListener("abort",H)}}}createHookCallback(Y,Z){return{type:"callback",timeout:Z,callback:async(W,G,K)=>{try{return await this.sendRequest({subtype:"hook_callback",callback_id:Y,input:W,tool_use_id:G||void 0},GY(),K)}catch(J){return console.error(`Error in hook callback ${Y}:`,J),{}}}}}async handleElicitation(Y,Z,W,G,K,J,X){try{return await this.sendRequest({subtype:"elicitation",mcp_server_name:Y,message:Z,mode:K,url:J,elicitation_id:X,requested_schema:W},rZ(),G)}catch{return{action:"cancel"}}}createSandboxAskCallback(){return async(Y)=>{try{return(await this.sendRequest({subtype:"can_use_tool",tool_name:f9,input:{host:Y.host},tool_use_id:xQ(),description:`Allow network connection to ${Y.host}?`},RQ())).behavior==="allow"}catch{return!1}}}async sendMcpMessage(Y,Z){return(await this.sendRequest({subtype:"mcp_message",server_name:Y,message:Z},Q.object({mcp_response:Q.any()}))).mcp_response}}function eZ(Y){console.error(Y),process.exit(1)}async function x9(Y,Z,W,G,K){let X=G.getAppState().toolPermissionContext.mode,V=NY(Y,Z,W,G,X,K,G.abortController.signal);for await(let L of V)if(L.permissionRequestResult&&(L.permissionRequestResult.behavior==="allow"||L.permissionRequestResult.behavior==="deny")){let _=L.permissionRequestResult;if(_.behavior==="allow"){let H=_.updatedInput||W,q=_.updatedPermissions??[];if(q.length>0){AQ(q);let O=G.getAppState(),j=zQ(O.toolPermissionContext,q);G.setAppState((z)=>{if(z.toolPermissionContext===j)return z;return{...z,toolPermissionContext:j}})}return{behavior:"allow",updatedInput:H,userModified:!1,decisionReason:{type:"hook",hookName:"PermissionRequest"}}}else return{behavior:"deny",message:_.message||"Permission denied by PermissionRequest hook",decisionReason:{type:"hook",hookName:"PermissionRequest"}}}return}_Q();l9();g9();d9();u9();HY();qY();c9();_Q();p9();m9();import{randomUUID as n9}from"crypto";DQ();_Q();import{randomUUID as k9}from"crypto";function _Y(Y,Z,W,G,K,J,X){let V=k9();if(BY(V),Z.length>0){let _=typeof Y==="string"?Y.trim()?[{type:"text",text:Y}]:[]:Y;return{messages:[r({content:[..._,...Z],uuid:K,imagePasteIds:W.length>0?W:void 0,permissionMode:J,isMeta:X||void 0}),...G],shouldQuery:!0}}return{messages:[r({content:Y,uuid:K,permissionMode:J,isMeta:X||void 0}),...G],shouldQuery:!0}}async function c6({input:Y,mode:Z,setToolJSX:W,context:G,pastedContents:K,ideSelection:J,messages:X,setUserInputOnProcessing:V,uuid:L,isAlreadyProcessing:_,querySource:H,canUseTool:q,skipSlashCommands:O,bridgeOrigin:j,isMeta:z,skipAttachments:M,skipInputDirectives:h}){let B=typeof Y==="string"?Y:null;if(Z==="prompt"&&B!==null&&!z)V?.(B);l("query_process_user_input_base_start");let F=G.getAppState(),y=await a9(Y,Z,W,G,K,J,X,L,_,H,q,F.toolPermissionContext.mode,O,j,z,M,h);if(l("query_process_user_input_base_end"),!y.shouldQuery)return y;l("query_hooks_start");let C=zY(Y)||"";for await(let U of TY(C,F.toolPermissionContext.mode,G,G.requestPrompt)){if(U.message?.type==="progress")continue;if(U.blockingError){let p=bY(U.blockingError);return{messages:[OY(`${p}
|
|
22
|
-
|
|
23
|
-
Original prompt: ${Y}`,"warning")],shouldQuery:!1,allowedTools:y.allowedTools}}if(U.preventContinuation){let p=U.stopReason?`Operation stopped by hook: ${U.stopReason}`:"Operation stopped by hook";return y.messages.push(r({content:p})),y.shouldQuery=!1,y}if(U.additionalContexts&&U.additionalContexts.length>0)y.messages.push(AY({type:"hook_additional_context",content:U.additionalContexts.map(vY),hookName:"UserPromptSubmit",toolUseID:`hook-${n9()}`,hookEvent:"UserPromptSubmit"}));let w=U.message;if(w&&w.type==="attachment")switch(w.attachment.type){case"hook_success":if(!w.attachment.content)break;y.messages.push({...w,attachment:{...w.attachment,content:vY(w.attachment.content)}});break;default:y.messages.push(w);break}else if(w)y.messages.push(w)}return l("query_hooks_end"),y}var pQ=1e4;function vY(Y){if(Y.length>pQ)return`${Y.substring(0,pQ)}… [output truncated - exceeded ${pQ} characters]`;return Y}async function a9(Y,Z,W,G,K,J,X,V,L,_,H,q,O,j,z,M,h){let B=null,F=[],y=[],C=Y;if(typeof Y==="string")B=Y;else if(Y.length>0){l("query_image_processing_start");let A=[];for(let N of Y)if(N.type==="image"){let u=await mQ(N);if(u.dimensions){let g=EQ(u.dimensions);if(g)y.push(g)}A.push(u.block)}else A.push(N);C=A,l("query_image_processing_end");let P=A[A.length-1];if(P?.type==="text")B=P.text,F=A.slice(0,-1);else F=A}if(B===null&&Z!=="prompt")throw Error(`Mode: ${Z} requires a string input.`);let U=K?Object.values(K).filter(UY):[],w=U.map((A)=>A.id),p=K?await DY(K):new Map;l("query_pasted_image_processing_start");let a=await Promise.all(U.map(async(A)=>{let P={type:"image",source:{type:"base64",media_type:A.mediaType||"image/png",data:A.content}};return{resized:await mQ(P),originalDimensions:A.dimensions,sourcePath:A.sourcePath??p.get(A.id)}})),i=[];for(let{resized:A,originalDimensions:P,sourcePath:N}of a){if(A.dimensions){let u=EQ(A.dimensions,N);if(u)y.push(u)}else if(P){let u=EQ(P,N);if(u)y.push(u)}else if(N)y.push(`[Image source: ${N}]`);i.push(A.block)}l("query_pasted_image_processing_end");let I=O;if(j&&B!==null&&B.startsWith("/")){let A=EY(B),P=A?$Y(A.commandName,G.options.commands):void 0;if(P)if(FY(P))I=!1;else{let N=`/${PY(P)} isn't available over Remote Control.`;return{messages:[r({content:B,uuid:V}),yY(`<local-command-stdout>${N}</local-command-stdout>`)],shouldQuery:!1,resultText:N}}}let S=!M&&B!==null&&(Z!=="prompt"||I||!B.startsWith("/"));l("query_attachment_loading_start");let x=S?await wY(jY(B,G,J??null,[],X,_,{skipInputDirectives:h})):[];if(l("query_attachment_loading_end"),B!==null&&Z==="bash"){let{processBashCommand:A}=await import("./processBashCommand-1.1.36-5tbfja2m.mjs");return uQ(await A(B,F,x,G,W),y)}if(B!==null&&!I&&B.startsWith("/")){let{processSlashCommand:A}=await import("./processSlashCommand-1.1.36-db99hjpc.mjs"),P=await A(B,F,i,x,G,W,V,L,H);return uQ(P,y)}if(B!==null&&Z==="prompt"){let A=B.trim(),P=x.find((N)=>N.attachment.type==="agent_mention");if(P){let N=`@agent-${P.attachment.agentType}`,u=A===N,g=A.startsWith(N)&&!u}}return uQ(_Y(C,i,w,x,V,q,z),y)}function uQ(Y,Z){if(Z.length>0)Y.messages.push(r({content:Z.map((W)=>({type:"text",text:W})),isMeta:!0}));return Y}qY();function d6(Y){if(Y.type!=="user")return;let Z=Y.message?.content;if(!Z)return;if(Array.isArray(Z)&&Z.length===0)return;let W="uuid"in Y&&typeof Y.uuid==="string"?Y.uuid:void 0;return{content:Array.isArray(Z)?i9(Z):Z,uuid:W}}function i9(Y){if(!Y.some(MY))return Y;return Y.map((Z)=>{if(!MY(Z))return Z;let W=Z.source,G=typeof W.mediaType==="string"&&W.mediaType?W.mediaType:IY(Z.source.data);return{...Z,source:{type:"base64",media_type:G,data:Z.source.data}}})}function MY(Y){if(Y.type!=="image"||Y.source?.type!=="base64")return!1;return!Y.source.media_type}vW();DQ();KQ();kQ();LW();BW();zZ();zW();_W();import{isAbsolute as AW,resolve as qW}from"path";function wW(Y,Z,W){let G=[],K=[],J=[];for(let[X,V]of Object.entries(Y)){let L=Z[X],_=H0(V.source,W?.projectRoot);if(!L)G.push(X);else if(V.sourceIsFallback)J.push(X);else if(!V0(_,L.source))K.push({name:X,declaredSource:_,materializedSource:L.source});else J.push(X)}return{missing:G,sourceChanged:K,upToDate:J}}async function EG(Y){let Z=X0();if(Object.keys(Z).length===0)return{installed:[],updated:[],failed:[],upToDate:[],skipped:[]};let W;try{W=await J0()}catch(H){o(H),W={}}let G=wW(Z,W,{projectRoot:sQ()}),K=[...G.missing.map((H)=>({name:H,source:H0(Z[H].source),action:"install"})),...G.sourceChanged.map(({name:H,declaredSource:q})=>({name:H,source:q,action:"update"}))],J=[],X=[];for(let H of K){if(Y?.skip?.(H.name,H.source)){J.push(H.name);continue}if(H.action==="update"&&K0(H.source)&&!await W0(H.source.path)){T(`[reconcile] '${H.name}' declared path does not exist; keeping materialized entry`),J.push(H.name);continue}X.push(H)}if(X.length===0)return{installed:[],updated:[],failed:[],upToDate:G.upToDate,skipped:J};T(`[reconcile] ${X.length} marketplace(s): ${X.map((H)=>`${H.name}(${H.action})`).join(", ")}`);let V=[],L=[],_=[];for(let H=0;H<X.length;H++){let{name:q,source:O,action:j}=X[H];Y?.onProgress?.({type:"installing",name:q,action:j,index:H+1,total:X.length});try{let z=await N0(O);if(j==="install")V.push(q);else L.push(q);Y?.onProgress?.({type:"installed",name:q,alreadyMaterialized:z.alreadyMaterialized})}catch(z){let M=Y0(z);_.push({name:q,error:M}),Y?.onProgress?.({type:"failed",name:q,error:M}),o(z)}}return{installed:V,updated:L,failed:_,upToDate:G.upToDate,skipped:J}}function H0(Y,Z){if((Y.source==="directory"||Y.source==="file")&&!AW(Y.path)){let W=Z??sQ(),G=G0(W);return{...Y,path:qW(G??W,Y.path)}}return Y}
|
|
24
|
-
export{RQ as ua,qQ as va,sZ as wa,f9 as xa,S9 as ya,C0 as za,MZ as Aa,u0 as Ba,c0 as Ca,m0 as Da,c6 as Ea,d6 as Fa,wW as Ga,EG as Ha,JW as Ia,NW as Ja,HW as Ka};
|