@claudiolabs/claudin 0.7.6 → 1.0.3
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/README.md +15 -1
- package/bin/claudin.exe +12 -0
- package/cli-wrapper.cjs +132 -0
- package/dist/chunks/AgentTool-1.0.3-7mvf1vaw.mjs +1 -0
- package/dist/chunks/App-1.0.3-rd1a3qee.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.0.3-1kr4x8qz.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.0.3-6cmgq2a9.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.0.3-jezz3mfx.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.0.3-y7vw80jm.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.3-rs8yq1c5.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.0.3-55e4vff7.mjs +1 -0
- package/dist/chunks/DiffDialog-1.0.3-2b6eqw5g.mjs +7 -0
- package/dist/chunks/Doctor-1.0.3-6vjhs9b3.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.0.3-me5rpqw8.mjs +6 -0
- package/dist/chunks/Grove-1.0.3-axq3s1g5.mjs +1 -0
- package/dist/chunks/ITermBackend-1.0.3-6w5z9f9y.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.0.3-q3qy4tjv.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.0.3-7bnq71sp.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.0.3-xjk5h2s1.mjs +1 -0
- package/dist/chunks/Onboarding-1.0.3-93mejgdx.mjs +1 -0
- package/dist/chunks/ProviderManager-1.0.3-gstyvce6.mjs +1 -0
- package/dist/chunks/REPL-1.0.3-h7gm3vzm.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.0.3-q1sb18zb.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.0.3-ng8qnwzb.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.0.3-5p8450wg.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.3-emssa846.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.0.3-pdnj8z74.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.0.3-qw12jfae.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.0.3-p2fdhkr4.mjs +1 -0
- package/dist/chunks/TrustDialog-1.0.3-w1yd56gg.mjs +1 -0
- package/dist/chunks/activeProvider-1.0.3-hcr43mtn.mjs +1 -0
- package/dist/chunks/add-dir-1.0.3-cfd5fdz5.mjs +1 -0
- package/dist/chunks/agentTypes-1.0.3-rhr2n817.mjs +1 -0
- package/dist/chunks/agents-1.0.3-00vpd5nr.mjs +110 -0
- package/dist/chunks/agents-1.0.3-0qny02r7.mjs +3 -0
- package/dist/chunks/api-1.0.3-j9q39zt3.mjs +1 -0
- package/dist/chunks/asciicast-1.0.3-4rdpqkbh.mjs +1 -0
- package/dist/chunks/assistant-1.0.3-8swg0237.mjs +1 -0
- package/dist/chunks/auth-1.0.3-4d3vbcf3.mjs +1 -0
- package/dist/chunks/auth-1.0.3-se4vwfcj.mjs +1 -0
- package/dist/chunks/autoMode-1.0.3-32zd86wp.mjs +48 -0
- package/dist/chunks/autoUpdater-1.0.3-nda09wdz.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.0.3-rwrt9v08.mjs +1 -0
- package/dist/chunks/branch-1.0.3-tzbvkn13.mjs +4 -0
- package/dist/chunks/bridge-1.0.3-fsq0q4x5.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.0.3-16bw4j5m.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.0.3-2md5ck83.mjs +1 -0
- package/dist/chunks/bridgeMain-1.0.3-betf2hdx.mjs +88 -0
- package/dist/chunks/bridgePointer-1.0.3-mtfty38e.mjs +1 -0
- package/dist/chunks/btw-1.0.3-7vqng7en.mjs +1 -0
- package/dist/chunks/buddy-1.0.3-k48yw852.mjs +3 -0
- package/dist/chunks/cacache-1.0.3-y014wcx7.mjs +1 -0
- package/dist/chunks/cache-probe-1.0.3-vw577099.mjs +21 -0
- package/dist/chunks/cacheStats-1.0.3-2dj0n9cy.mjs +4 -0
- package/dist/chunks/caches-1.0.3-syrefgh1.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.0.3-1k9dgm8c.mjs +1 -0
- package/dist/chunks/claudemd-1.0.3-902h9g16.mjs +1 -0
- package/dist/chunks/clear-1.0.3-yfnxvynd.mjs +1 -0
- package/dist/chunks/clearTerminal-1.0.3-kxq1nevx.mjs +1 -0
- package/dist/chunks/cli-1.0.3-02ax2rf7.mjs +2 -0
- package/dist/chunks/cli-1.0.3-087x46pf.mjs +2 -0
- package/dist/chunks/cli-1.0.3-0e99ksxk.mjs +2 -0
- package/dist/chunks/cli-1.0.3-0tgbymg8.mjs +2 -0
- package/dist/chunks/cli-1.0.3-0x26wvgj.mjs +1 -0
- package/dist/chunks/cli-1.0.3-0x2am4t7.mjs +2 -0
- package/dist/chunks/cli-1.0.3-10cqqc79.mjs +2 -0
- package/dist/chunks/cli-1.0.3-13m8868e.mjs +2 -0
- package/dist/chunks/cli-1.0.3-13wf4a0v.mjs +2 -0
- package/dist/chunks/cli-1.0.3-1462khnb.mjs +3 -0
- package/dist/chunks/cli-1.0.3-17cer107.mjs +2 -0
- package/dist/chunks/cli-1.0.3-19d1ckqm.mjs +4 -0
- package/dist/chunks/cli-1.0.3-1f00zm8y.mjs +2 -0
- package/dist/chunks/cli-1.0.3-1grrrgvh.mjs +4 -0
- package/dist/chunks/cli-1.0.3-1h08z2rm.mjs +2 -0
- package/dist/chunks/cli-1.0.3-1m413b59.mjs +2 -0
- package/dist/chunks/cli-1.0.3-1psnx21q.mjs +2 -0
- package/dist/chunks/cli-1.0.3-1v65dc93.mjs +2 -0
- package/dist/chunks/cli-1.0.3-1w2x2m43.mjs +2 -0
- package/dist/chunks/cli-1.0.3-24y7s5hp.mjs +2 -0
- package/dist/chunks/cli-1.0.3-2aw6f2z9.mjs +2 -0
- package/dist/chunks/cli-1.0.3-2h7k9bdx.mjs +2 -0
- package/dist/chunks/cli-1.0.3-2wzvc8te.mjs +5471 -0
- package/dist/chunks/cli-1.0.3-2zpv5t2p.mjs +2 -0
- package/dist/chunks/cli-1.0.3-3gkwhy62.mjs +2 -0
- package/dist/chunks/cli-1.0.3-3gtteknj.mjs +2 -0
- package/dist/chunks/cli-1.0.3-3j050hfw.mjs +3 -0
- package/dist/chunks/cli-1.0.3-3qfh5ykd.mjs +2 -0
- package/dist/chunks/cli-1.0.3-3wcccg4j.mjs +2 -0
- package/dist/chunks/cli-1.0.3-3wpp9k2f.mjs +3 -0
- package/dist/chunks/cli-1.0.3-3y945bqk.mjs +2 -0
- package/dist/chunks/cli-1.0.3-4eym93f1.mjs +2 -0
- package/dist/chunks/cli-1.0.3-4m0kzrq4.mjs +199 -0
- package/dist/chunks/cli-1.0.3-4qaa3xp4.mjs +2 -0
- package/dist/chunks/cli-1.0.3-4s8hd1qa.mjs +12 -0
- package/dist/chunks/cli-1.0.3-4x2bjq7b.mjs +2 -0
- package/dist/chunks/cli-1.0.3-5hpdm52h.mjs +4 -0
- package/dist/chunks/cli-1.0.3-5j5mv1qy.mjs +2 -0
- package/dist/chunks/cli-1.0.3-5kneybr4.mjs +2 -0
- package/dist/chunks/cli-1.0.3-5psnr7wf.mjs +16 -0
- package/dist/chunks/cli-1.0.3-5rg4rmk2.mjs +6 -0
- package/dist/chunks/cli-1.0.3-5w74xeth.mjs +3 -0
- package/dist/chunks/cli-1.0.3-607t5t97.mjs +2 -0
- package/dist/chunks/cli-1.0.3-627y4tma.mjs +2 -0
- package/dist/chunks/cli-1.0.3-63tn3q21.mjs +2 -0
- package/dist/chunks/cli-1.0.3-63xjee3t.mjs +3 -0
- package/dist/chunks/cli-1.0.3-6sgbgf1x.mjs +4 -0
- package/dist/chunks/cli-1.0.3-6x84yw4b.mjs +21 -0
- package/dist/chunks/cli-1.0.3-7ecz7qjw.mjs +2 -0
- package/dist/chunks/cli-1.0.3-7m0nfffq.mjs +2 -0
- package/dist/chunks/cli-1.0.3-7m2f8bwk.mjs +2 -0
- package/dist/chunks/cli-1.0.3-7p7gfek3.mjs +3 -0
- package/dist/chunks/cli-1.0.3-82ky54w7.mjs +15 -0
- package/dist/chunks/cli-1.0.3-87me6r9c.mjs +2 -0
- package/dist/chunks/cli-1.0.3-8a694ts0.mjs +6 -0
- package/dist/chunks/cli-1.0.3-8bz64j3f.mjs +2 -0
- package/dist/chunks/cli-1.0.3-8hw15ers.mjs +2 -0
- package/dist/chunks/cli-1.0.3-8rjp7dng.mjs +2 -0
- package/dist/chunks/cli-1.0.3-960aw98y.mjs +2 -0
- package/dist/chunks/cli-1.0.3-9xcgbd0g.mjs +2 -0
- package/dist/chunks/cli-1.0.3-9z1asbvz.mjs +3 -0
- package/dist/chunks/cli-1.0.3-a3rf1bbw.mjs +2 -0
- package/dist/chunks/cli-1.0.3-a630qcdb.mjs +2 -0
- package/dist/chunks/cli-1.0.3-ancybhm3.mjs +2 -0
- package/dist/chunks/cli-1.0.3-apbdyngz.mjs +2 -0
- package/dist/chunks/cli-1.0.3-ar488ss1.mjs +2 -0
- package/dist/chunks/cli-1.0.3-ar8bq7h9.mjs +4 -0
- package/dist/chunks/cli-1.0.3-ax2geagm.mjs +18 -0
- package/dist/chunks/cli-1.0.3-axzmfbvp.mjs +2 -0
- package/dist/chunks/cli-1.0.3-ay89chqh.mjs +2 -0
- package/dist/chunks/cli-1.0.3-b14b158b.mjs +2 -0
- package/dist/chunks/cli-1.0.3-b6f61s9v.mjs +2 -0
- package/dist/chunks/cli-1.0.3-b72086ew.mjs +2 -0
- package/dist/chunks/cli-1.0.3-b7n67qhm.mjs +24 -0
- package/dist/chunks/cli-1.0.3-bct9r8s9.mjs +25 -0
- package/dist/chunks/cli-1.0.3-bg3frggm.mjs +5 -0
- package/dist/chunks/cli-1.0.3-bkdmbm3w.mjs +2 -0
- package/dist/chunks/cli-1.0.3-bnd3wvym.mjs +2 -0
- package/dist/chunks/cli-1.0.3-bqdxh2fe.mjs +2 -0
- package/dist/chunks/cli-1.0.3-bte3v6bp.mjs +3 -0
- package/dist/chunks/cli-1.0.3-c38hr99q.mjs +2 -0
- package/dist/chunks/cli-1.0.3-c4trbm3y.mjs +2 -0
- package/dist/chunks/cli-1.0.3-c570dde7.mjs +24 -0
- package/dist/chunks/cli-1.0.3-ca8qx0d6.mjs +2 -0
- package/dist/chunks/cli-1.0.3-cnb1yved.mjs +2 -0
- package/dist/chunks/cli-1.0.3-cs5pqncv.mjs +2 -0
- package/dist/chunks/cli-1.0.3-cty1pfv3.mjs +2 -0
- package/dist/chunks/cli-1.0.3-d7597p9k.mjs +133 -0
- package/dist/chunks/cli-1.0.3-d8zhnzt9.mjs +2 -0
- package/dist/chunks/cli-1.0.3-djd4asp9.mjs +25 -0
- package/dist/chunks/cli-1.0.3-dyh4d1gw.mjs +2 -0
- package/dist/chunks/cli-1.0.3-e0s97hx3.mjs +20 -0
- package/dist/chunks/cli-1.0.3-e1qcabjm.mjs +2 -0
- package/dist/chunks/cli-1.0.3-e26nnnjx.mjs +2 -0
- package/dist/chunks/cli-1.0.3-e315jy0y.mjs +2 -0
- package/dist/chunks/cli-1.0.3-ejb4xe2y.mjs +2 -0
- package/dist/chunks/cli-1.0.3-em2a0n4h.mjs +2 -0
- package/dist/chunks/cli-1.0.3-emmwm5h6.mjs +2 -0
- package/dist/chunks/cli-1.0.3-epk9wqmc.mjs +2 -0
- package/dist/chunks/cli-1.0.3-eqxge5cb.mjs +45 -0
- package/dist/chunks/cli-1.0.3-eta6q17m.mjs +2 -0
- package/dist/chunks/cli-1.0.3-exj8yag8.mjs +2 -0
- package/dist/chunks/cli-1.0.3-f2qcezq1.mjs +2 -0
- package/dist/chunks/cli-1.0.3-f8ekk6mr.mjs +2 -0
- package/dist/chunks/cli-1.0.3-fdd1g4sk.mjs +2 -0
- package/dist/chunks/cli-1.0.3-fdye5tvt.mjs +2 -0
- package/dist/chunks/cli-1.0.3-g5w729g4.mjs +2 -0
- package/dist/chunks/cli-1.0.3-gbhfrtsf.mjs +2 -0
- package/dist/chunks/cli-1.0.3-gjvc6q8v.mjs +2 -0
- package/dist/chunks/cli-1.0.3-gpjv1akn.mjs +12 -0
- package/dist/chunks/cli-1.0.3-gthgjdv8.mjs +2 -0
- package/dist/chunks/cli-1.0.3-gwdntjh3.mjs +2 -0
- package/dist/chunks/cli-1.0.3-h2pjt4e4.mjs +4 -0
- package/dist/chunks/cli-1.0.3-hg04k516.mjs +3 -0
- package/dist/chunks/cli-1.0.3-hgghr2w8.mjs +2 -0
- package/dist/chunks/cli-1.0.3-htx4273d.mjs +39 -0
- package/dist/chunks/cli-1.0.3-hyc32vmv.mjs +2 -0
- package/dist/chunks/cli-1.0.3-hz5a6e6w.mjs +2 -0
- package/dist/chunks/cli-1.0.3-j62yk6x8.mjs +2 -0
- package/dist/chunks/cli-1.0.3-j72ztden.mjs +2 -0
- package/dist/chunks/cli-1.0.3-j99s8jgs.mjs +2 -0
- package/dist/chunks/cli-1.0.3-jmvq43wb.mjs +6 -0
- package/dist/chunks/cli-1.0.3-jr2ya39g.mjs +2 -0
- package/dist/chunks/cli-1.0.3-k99msp02.mjs +17 -0
- package/dist/chunks/cli-1.0.3-kesrsh8z.mjs +59 -0
- package/dist/chunks/cli-1.0.3-khw95075.mjs +2 -0
- package/dist/chunks/cli-1.0.3-km8m7h3t.mjs +2 -0
- package/dist/chunks/cli-1.0.3-kwe8av2x.mjs +2 -0
- package/dist/chunks/cli-1.0.3-m45p13pd.mjs +2 -0
- package/dist/chunks/cli-1.0.3-mkse8qp1.mjs +3 -0
- package/dist/chunks/cli-1.0.3-mv5a0w14.mjs +12 -0
- package/dist/chunks/cli-1.0.3-n0jxa1cv.mjs +4 -0
- package/dist/chunks/cli-1.0.3-n28tqrv0.mjs +2 -0
- package/dist/chunks/cli-1.0.3-n2h9jvgm.mjs +2 -0
- package/dist/chunks/cli-1.0.3-n99q1npz.mjs +2 -0
- package/dist/chunks/cli-1.0.3-n9tzv3mz.mjs +2 -0
- package/dist/chunks/cli-1.0.3-nama3pwj.mjs +7 -0
- package/dist/chunks/cli-1.0.3-nm63mrtv.mjs +2 -0
- package/dist/chunks/cli-1.0.3-nr5rgce9.mjs +2 -0
- package/dist/chunks/cli-1.0.3-ntywpqre.mjs +2 -0
- package/dist/chunks/cli-1.0.3-nw89kd8a.mjs +2 -0
- package/dist/chunks/cli-1.0.3-p7nbs20a.mjs +24 -0
- package/dist/chunks/cli-1.0.3-pc93arct.mjs +10 -0
- package/dist/chunks/cli-1.0.3-pf8dk52a.mjs +67 -0
- package/dist/chunks/cli-1.0.3-phh30dq0.mjs +4 -0
- package/dist/chunks/cli-1.0.3-pxw9n4f7.mjs +5 -0
- package/dist/chunks/cli-1.0.3-q4vc2dm9.mjs +3 -0
- package/dist/chunks/cli-1.0.3-q6m5azm3.mjs +2 -0
- package/dist/chunks/cli-1.0.3-q9hw6148.mjs +2 -0
- package/dist/chunks/cli-1.0.3-qd5c6ph5.mjs +34 -0
- package/dist/chunks/cli-1.0.3-qkkqjcsh.mjs +2 -0
- package/dist/chunks/cli-1.0.3-r274tqxg.mjs +2 -0
- package/dist/chunks/cli-1.0.3-r2amtv3x.mjs +3 -0
- package/dist/chunks/cli-1.0.3-ra9brq66.mjs +2 -0
- package/dist/chunks/cli-1.0.3-rapppvd0.mjs +2 -0
- package/dist/chunks/cli-1.0.3-rc9yjwv4.mjs +15 -0
- package/dist/chunks/cli-1.0.3-rfvvw9yn.mjs +58 -0
- package/dist/chunks/cli-1.0.3-rhaqdnqw.mjs +2 -0
- package/dist/chunks/cli-1.0.3-rpry44n3.mjs +2 -0
- package/dist/chunks/cli-1.0.3-rxtfhp4n.mjs +2 -0
- package/dist/chunks/cli-1.0.3-ryfy7hya.mjs +2 -0
- package/dist/chunks/cli-1.0.3-s6n9xdgm.mjs +5 -0
- package/dist/chunks/cli-1.0.3-sb9pchh2.mjs +6 -0
- package/dist/chunks/cli-1.0.3-sz2d376e.mjs +2 -0
- package/dist/chunks/cli-1.0.3-t52dqqw2.mjs +2 -0
- package/dist/chunks/cli-1.0.3-t7mfsbh1.mjs +133 -0
- package/dist/chunks/cli-1.0.3-t7p3714v.mjs +2 -0
- package/dist/chunks/cli-1.0.3-tjewxa84.mjs +2 -0
- package/dist/chunks/cli-1.0.3-v0jtfqtw.mjs +9 -0
- package/dist/chunks/cli-1.0.3-v658mswv.mjs +12 -0
- package/dist/chunks/cli-1.0.3-vnwqmpyv.mjs +2 -0
- package/dist/chunks/cli-1.0.3-vqm63ckk.mjs +2 -0
- package/dist/chunks/cli-1.0.3-vr8tazcf.mjs +2 -0
- package/dist/chunks/cli-1.0.3-vw5m6hn3.mjs +3 -0
- package/dist/chunks/cli-1.0.3-w3a4tnk3.mjs +2 -0
- package/dist/chunks/cli-1.0.3-w72bc0zg.mjs +2 -0
- package/dist/chunks/cli-1.0.3-w9dcn8sx.mjs +2 -0
- package/dist/chunks/cli-1.0.3-wf8jkyyp.mjs +15 -0
- package/dist/chunks/cli-1.0.3-wmtj5kj7.mjs +2 -0
- package/dist/chunks/cli-1.0.3-wpb05eg5.mjs +50 -0
- package/dist/chunks/cli-1.0.3-wv4vx65k.mjs +2 -0
- package/dist/chunks/cli-1.0.3-x1ngfkk5.mjs +42 -0
- package/dist/chunks/cli-1.0.3-xarnzm58.mjs +2 -0
- package/dist/chunks/cli-1.0.3-xf2r8496.mjs +2 -0
- package/dist/chunks/cli-1.0.3-xqmjjmss.mjs +4 -0
- package/dist/chunks/cli-1.0.3-xsmba4r1.mjs +17 -0
- package/dist/chunks/cli-1.0.3-xw1fyqpe.mjs +2 -0
- package/dist/chunks/cli-1.0.3-y0fz9qyb.mjs +4 -0
- package/dist/chunks/cli-1.0.3-yb5yjqa8.mjs +2 -0
- package/dist/chunks/cli-1.0.3-ycvmgeh4.mjs +2 -0
- package/dist/chunks/cli-1.0.3-ykkvdac6.mjs +2 -0
- package/dist/chunks/cli-1.0.3-ynf2sj5r.mjs +2 -0
- package/dist/chunks/cli-1.0.3-z3c0nwg5.mjs +2 -0
- package/dist/chunks/cli-1.0.3-z3f4pmp1.mjs +2 -0
- package/dist/chunks/cli-1.0.3-zan6y0m1.mjs +18 -0
- package/dist/chunks/cli-1.0.3-zfe21fjj.mjs +2 -0
- package/dist/chunks/cli-1.0.3-znxwm9ta.mjs +2 -0
- package/dist/chunks/cli-1.0.3-zqp5x3gh.mjs +18 -0
- package/dist/chunks/cli-1.0.3-ztgxqn0g.mjs +8 -0
- package/dist/chunks/cli-1.0.3-zzg0y9xx.mjs +2 -0
- package/dist/chunks/client-1.0.3-qkqk8q23.mjs +1 -0
- package/dist/chunks/color-1.0.3-x0qygswm.mjs +1 -0
- package/dist/chunks/compact-1.0.3-kyfmj07z.mjs +3 -0
- package/dist/chunks/config-1.0.3-0b1mgzs5.mjs +1 -0
- package/dist/chunks/config-1.0.3-nmpdbdfy.mjs +1 -0
- package/dist/chunks/constants-1.0.3-wk9v349h.mjs +1 -0
- package/dist/chunks/context-1.0.3-6sarjqp3.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.0.3-vs9yx061.mjs +1 -0
- package/dist/chunks/conversation-1.0.3-v4s0g3dx.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.0.3-5vdf973f.mjs +1 -0
- package/dist/chunks/copy-1.0.3-575pc6gc.mjs +9 -0
- package/dist/chunks/cost-1.0.3-gkgmq84a.mjs +1 -0
- package/dist/chunks/createSSHSession-1.0.3-bsdf1x69.mjs +1 -0
- package/dist/chunks/createSession-1.0.3-q2t2afxn.mjs +1 -0
- package/dist/chunks/debug-1.0.3-q3y4bbdd.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.0.3-kxgwjas7.mjs +1446 -0
- package/dist/chunks/desktop-1.0.3-v790cfzv.mjs +1 -0
- package/dist/chunks/detectRepository-1.0.3-t6x6ycq0.mjs +1 -0
- package/dist/chunks/detection-1.0.3-3r29qbs1.mjs +1 -0
- package/dist/chunks/diff-1.0.3-43a1txqm.mjs +1 -0
- package/dist/chunks/doctor-1.0.3-ywj8c1z9.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.0.3-c3f3hz3m.mjs +1 -0
- package/dist/chunks/earlyInput-1.0.3-0qxwnkvm.mjs +1 -0
- package/dist/chunks/effort-1.0.3-28cxc122.mjs +10 -0
- package/dist/chunks/engine-1.0.3-y0pybv8z.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.0.3-gv54g11x.mjs +1 -0
- package/dist/chunks/envUtils-1.0.3-cjfgncek.mjs +1 -0
- package/dist/chunks/environmentSelection-1.0.3-c2qe9j1s.mjs +1 -0
- package/dist/chunks/environments-1.0.3-cvrm8nvn.mjs +1 -0
- package/dist/chunks/errors-1.0.3-jzcpdeb5.mjs +1 -0
- package/dist/chunks/exampleCommands-1.0.3-kjfprmrt.mjs +1 -0
- package/dist/chunks/exit-1.0.3-fbms8wkm.mjs +1 -0
- package/dist/chunks/explorer-1.0.3-8k5jhgjf.mjs +1 -0
- package/dist/chunks/export-1.0.3-4r98t7vv.mjs +2 -0
- package/dist/chunks/extra-usage-1.0.3-m17gcwmh.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.0.3-papt6k1h.mjs +1 -0
- package/dist/chunks/fast-1.0.3-4atx5cja.mjs +1 -0
- package/dist/chunks/feedback-1.0.3-n2sjaka5.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.0.3-3ew36pwn.mjs +1 -0
- package/dist/chunks/git-1.0.3-tpyzsser.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.0.3-a3scfsy1.mjs +1 -0
- package/dist/chunks/goal-1.0.3-rd7mxw5e.mjs +4 -0
- package/dist/chunks/grove-1.0.3-bwz91hx8.mjs +1 -0
- package/dist/chunks/growthbook-1.0.3-nr5dtynh.mjs +1 -0
- package/dist/chunks/headless-1.0.3-9kzxdtz3.mjs +2 -0
- package/dist/chunks/heapdump-1.0.3-hj74he6b.mjs +6 -0
- package/dist/chunks/help-1.0.3-e1qcej38.mjs +1 -0
- package/dist/chunks/hookChains-1.0.3-xtvdrx5t.mjs +3 -0
- package/dist/chunks/hooks-1.0.3-gfndfx5p.mjs +79 -0
- package/dist/chunks/hooks-1.0.3-mhatacpg.mjs +1 -0
- package/dist/chunks/ide-1.0.3-f60d1x9s.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.0.3-crxm4gpq.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.0.3-3b75nzd7.mjs +1 -0
- package/dist/chunks/index-1.0.3-15ym353c.mjs +1 -0
- package/dist/chunks/index-1.0.3-1tyen96a.mjs +1 -0
- package/dist/chunks/index-1.0.3-22c46a9g.mjs +1 -0
- package/dist/chunks/index-1.0.3-293khy5y.mjs +1 -0
- package/dist/chunks/index-1.0.3-3zrx6rcy.mjs +1 -0
- package/dist/chunks/index-1.0.3-4g5be32x.mjs +5 -0
- package/dist/chunks/index-1.0.3-5h227bav.mjs +17 -0
- package/dist/chunks/index-1.0.3-83nb50h7.mjs +1 -0
- package/dist/chunks/index-1.0.3-f3xy16k0.mjs +1 -0
- package/dist/chunks/index-1.0.3-fp6xhcab.mjs +2 -0
- package/dist/chunks/index-1.0.3-gecs01pd.mjs +1 -0
- package/dist/chunks/index-1.0.3-gwt3epj3.mjs +30 -0
- package/dist/chunks/index-1.0.3-gyr3x3wv.mjs +9 -0
- package/dist/chunks/index-1.0.3-j1rfqkax.mjs +1 -0
- package/dist/chunks/index-1.0.3-k6ze856z.mjs +1 -0
- package/dist/chunks/index-1.0.3-n8qxa0er.mjs +1 -0
- package/dist/chunks/index-1.0.3-pa0eqyya.mjs +1 -0
- package/dist/chunks/index-1.0.3-qacj9f9z.mjs +1 -0
- package/dist/chunks/index-1.0.3-tvpvnw2t.mjs +1 -0
- package/dist/chunks/index-1.0.3-w0d2skgw.mjs +2 -0
- package/dist/chunks/index-1.0.3-w6sndqyw.mjs +9 -0
- package/dist/chunks/index-1.0.3-z42381sj.mjs +1 -0
- package/dist/chunks/index-1.0.3-zfk75xdr.mjs +1 -0
- package/dist/chunks/init-1.0.3-1756vwh2.mjs +1 -0
- package/dist/chunks/initReplBridge-1.0.3-a00zpxtn.mjs +1 -0
- package/dist/chunks/ink-1.0.3-yq6e6m8b.mjs +1 -0
- package/dist/chunks/insights-1.0.3-4s3xgv9x.mjs +870 -0
- package/dist/chunks/install-1.0.3-zttqn1ez.mjs +1 -0
- package/dist/chunks/install-github-app-1.0.3-f0rmxqcw.mjs +149 -0
- package/dist/chunks/install-slack-app-1.0.3-sbd9833d.mjs +1 -0
- package/dist/chunks/instrumentation-1.0.3-hnskcn2k.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.0.3-t12dtkh1.mjs +1 -0
- package/dist/chunks/keybindings-1.0.3-retrpee2.mjs +2 -0
- package/dist/chunks/knowledge-1.0.3-gdpwz5kr.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.0.3-kas0b0h1.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.0.3-wsevcydg.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.3-18zgr57f.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.3-2t4gydwe.mjs +1 -0
- package/dist/chunks/log-1.0.3-wzytzthn.mjs +1 -0
- package/dist/chunks/main-1.0.3-jzwehebm.mjs +1 -0
- package/dist/chunks/managedEnv-1.0.3-b8asa751.mjs +1 -0
- package/dist/chunks/mcp-1.0.3-aff6b6ct.mjs +1 -0
- package/dist/chunks/mcp-1.0.3-pjr3rvfk.mjs +4 -0
- package/dist/chunks/mcp-1.0.3-wfak1jpw.mjs +17 -0
- package/dist/chunks/mcpb-1.0.3-0s8ak7b1.mjs +1 -0
- package/dist/chunks/memory-1.0.3-esv79kf8.mjs +3 -0
- package/dist/chunks/model-1.0.3-9b4d36sd.mjs +1 -0
- package/dist/chunks/model-1.0.3-bh1t2s45.mjs +2 -0
- package/dist/chunks/node-1.0.3-gj4wsp3b.mjs +12 -0
- package/dist/chunks/oauth-1.0.3-q2zcdghm.mjs +1 -0
- package/dist/chunks/openaiShim-1.0.3-k03vgybb.mjs +14 -0
- package/dist/chunks/output-style-1.0.3-2vknbjw5.mjs +1 -0
- package/dist/chunks/package-ZZWOLTXM-1.0.3-g12q6fnk.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.0.3-7vrzj6hy.mjs +1 -0
- package/dist/chunks/parser-1.0.3-avw926ew.mjs +1 -0
- package/dist/chunks/passes-1.0.3-bgjyqscj.mjs +1 -0
- package/dist/chunks/permissions-1.0.3-8fj46mx3.mjs +3 -0
- package/dist/chunks/permissions-1.0.3-qpmk7fsa.mjs +1 -0
- package/dist/chunks/plan-1.0.3-emxq5t72.mjs +1 -0
- package/dist/chunks/plist-1.0.3-33z3k5gn.mjs +1 -0
- package/dist/chunks/plugin-1.0.3-eqxkeh3r.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.0.3-3hbbay3q.mjs +1 -0
- package/dist/chunks/plugins-1.0.3-x021vefh.mjs +9 -0
- package/dist/chunks/preActionHook-1.0.3-5yyvhhra.mjs +2 -0
- package/dist/chunks/print-1.0.3-w721s1pr.mjs +57 -0
- package/dist/chunks/privacy-settings-1.0.3-v2vqkwdn.mjs +1 -0
- package/dist/chunks/process-1.0.3-xedhq816.mjs +1 -0
- package/dist/chunks/processBashCommand-1.0.3-mtgqq8k6.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.0.3-2qxyq7z2.mjs +9 -0
- package/dist/chunks/prompt-1.0.3-3n87zkg4.mjs +1 -0
- package/dist/chunks/prompt-1.0.3-rt6xvwpb.mjs +1 -0
- package/dist/chunks/prompts-1.0.3-q1yewrxr.mjs +1 -0
- package/dist/chunks/protocolHandler-1.0.3-bsnsh8x6.mjs +13 -0
- package/dist/chunks/provider-1.0.3-gm23bmqy.mjs +2 -0
- package/dist/chunks/providerProfiles-1.0.3-cg05fwn8.mjs +1 -0
- package/dist/chunks/providerValidation-1.0.3-vma7539c.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.0.3-q65cq335.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.0.3-xv60j2ty.mjs +34 -0
- package/dist/chunks/registry-1.0.3-9n67m1rh.mjs +1 -0
- package/dist/chunks/release-notes-1.0.3-ves4zn7s.mjs +5 -0
- package/dist/chunks/reload-plugins-1.0.3-nj3rm6xw.mjs +2 -0
- package/dist/chunks/remote-env-1.0.3-ygbzc1qs.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.0.3-z9c657ax.mjs +1 -0
- package/dist/chunks/remoteSession-1.0.3-7em2b627.mjs +1 -0
- package/dist/chunks/rename-1.0.3-090y3y3t.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.0.3-j72w7cv1.mjs +1 -0
- package/dist/chunks/replLauncher-1.0.3-jae5j1mr.mjs +1 -0
- package/dist/chunks/resume-1.0.3-b3yd0r0t.mjs +2 -0
- package/dist/chunks/rewind-1.0.3-qbxx991g.mjs +1 -0
- package/dist/chunks/rootOptions-1.0.3-5pvysebe.mjs +1 -0
- package/dist/chunks/sandbox-adapter-1.0.3-kzem4pfm.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.0.3-r0qyz4ph.mjs +1 -0
- package/dist/chunks/session-1.0.3-26qz9f9c.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.0.3-98fyhqzq.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.0.3-g99vbb96.mjs +1 -0
- package/dist/chunks/sessionStorage-1.0.3-jbkq2y35.mjs +1 -0
- package/dist/chunks/settings-1.0.3-6hq9y9yg.mjs +1 -0
- package/dist/chunks/setup-1.0.3-8fxs3q79.mjs +5 -0
- package/dist/chunks/sinks-1.0.3-wjm4jwph.mjs +1 -0
- package/dist/chunks/skills-1.0.3-es2gwcs0.mjs +1 -0
- package/dist/chunks/startupProfiler-1.0.3-0zgy31z8.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.0.3-17h3qh51.mjs +1 -0
- package/dist/chunks/state-1.0.3-7hxpebf0.mjs +1 -0
- package/dist/chunks/stats-1.0.3-mpa5ehmt.mjs +6 -0
- package/dist/chunks/status-1.0.3-3z7dn1ax.mjs +1 -0
- package/dist/chunks/stickers-1.0.3-mqdqscgw.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.0.3-3zwx5k40.mjs +1 -0
- package/dist/chunks/tasks-1.0.3-fqyr9vwc.mjs +1 -0
- package/dist/chunks/teamHelpers-1.0.3-5rsk5yqn.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.0.3-v1270wf3.mjs +1 -0
- package/dist/chunks/teleport-1.0.3-4h0ww2kz.mjs +1 -0
- package/dist/chunks/terminalSetup-1.0.3-ern1ss4f.mjs +1 -0
- package/dist/chunks/theme-1.0.3-2zckbr2z.mjs +1 -0
- package/dist/chunks/thinkback-1.0.3-ckd0bxaf.mjs +1 -0
- package/dist/chunks/thinkback-play-1.0.3-6a53gc4n.mjs +1 -0
- package/dist/chunks/toolPool-1.0.3-w2xh8dvp.mjs +1 -0
- package/dist/chunks/toolSearch-1.0.3-w1f68ss0.mjs +1 -0
- package/dist/chunks/tools-1.0.3-7dyfg9gn.mjs +1 -0
- package/dist/chunks/trustedDevice-1.0.3-a34x8ydx.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.0.3-jvqgvj65.mjs +69 -0
- package/dist/chunks/types-1.0.3-hrfpk0vp.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.0.3-731x0mwt.mjs +4 -0
- package/dist/chunks/update-1.0.3-kxwpbp8h.mjs +86 -0
- package/dist/chunks/upgrade-1.0.3-0p7p2zsn.mjs +1 -0
- package/dist/chunks/upload-1.0.3-1fek6fh7.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.0.3-g566qagg.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.0.3-na9t0zcw.mjs +1 -0
- package/dist/chunks/usage-1.0.3-xdj3rkft.mjs +1 -0
- package/dist/chunks/util-1.0.3-5gfrxrz4.mjs +1 -0
- package/dist/chunks/utils-1.0.3-2mzjq8fj.mjs +1 -0
- package/dist/chunks/vim-1.0.3-9ckf66ks.mjs +1 -0
- package/dist/chunks/watcher-1.0.3-8pgwgknj.mjs +1 -0
- package/dist/chunks/wiki-1.0.3-hy2ve502.mjs +132 -0
- package/dist/chunks/workflows-1.0.3-phe0mv82.mjs +1 -0
- package/dist/chunks/worktree-1.0.3-pnma10rk.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.0.3-0hhtbd8p.mjs +1 -0
- package/dist/chunks/wrapper-1.0.3-jrm58k5e.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/install.cjs +208 -0
- package/package.json +29 -132
- package/LICENSE +0 -30
- package/bin/claudin +0 -272
- package/dist/chunks/AgentTool-0.7.6-02vh9vk8.mjs +0 -1
- package/dist/chunks/App-0.7.6-6rm9fw7h.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.7.6-3ds3vmhq.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.7.6-tdwszj02.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.7.6-5axvmtp3.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.7.6-014qynp3.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.6-z3wrhmsy.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.7.6-92nz3x2x.mjs +0 -1
- package/dist/chunks/DiffDialog-0.7.6-4303tcnm.mjs +0 -7
- package/dist/chunks/Doctor-0.7.6-084ce5s2.mjs +0 -1
- package/dist/chunks/ExplorerDialog-0.7.6-vp1m6ffx.mjs +0 -6
- package/dist/chunks/Grove-0.7.6-1d3f84xj.mjs +0 -1
- package/dist/chunks/ITermBackend-0.7.6-wdyeyjcs.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.7.6-j0gs8ee7.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.7.6-5gtntvxr.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.7.6-jqrhx95e.mjs +0 -1
- package/dist/chunks/Onboarding-0.7.6-18f6pde2.mjs +0 -1
- package/dist/chunks/ProviderManager-0.7.6-2q5s7q6j.mjs +0 -1
- package/dist/chunks/REPL-0.7.6-ayp94stx.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.7.6-zgn8p1b4.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.7.6-apn9hx86.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.7.6-1mvkc8e6.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.7.6-74t499kc.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.7.6-aj7acqex.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.7.6-werejha1.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.7.6-n01pcadg.mjs +0 -1
- package/dist/chunks/TrustDialog-0.7.6-bsjh0666.mjs +0 -1
- package/dist/chunks/activeProvider-0.7.6-eqwet2j4.mjs +0 -1
- package/dist/chunks/add-dir-0.7.6-8rvjxj57.mjs +0 -1
- package/dist/chunks/agentTypes-0.7.6-49zjnpvv.mjs +0 -1
- package/dist/chunks/agents-0.7.6-f2wq0zdm.mjs +0 -3
- package/dist/chunks/agents-0.7.6-n608c3qr.mjs +0 -110
- package/dist/chunks/api-0.7.6-f2fsvxyj.mjs +0 -1
- package/dist/chunks/asciicast-0.7.6-fv6ypvrh.mjs +0 -1
- package/dist/chunks/assistant-0.7.6-3d939v1n.mjs +0 -1
- package/dist/chunks/auth-0.7.6-e9ggcrw2.mjs +0 -1
- package/dist/chunks/auth-0.7.6-vprbhg4e.mjs +0 -1
- package/dist/chunks/autoMode-0.7.6-p12j05a6.mjs +0 -48
- package/dist/chunks/autoUpdater-0.7.6-nrc4g1jz.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.7.6-rb8ftxsa.mjs +0 -1
- package/dist/chunks/branch-0.7.6-05rh36he.mjs +0 -4
- package/dist/chunks/bridge-0.7.6-wddny37r.mjs +0 -2
- package/dist/chunks/bridgeConfig-0.7.6-b5h1a634.mjs +0 -1
- package/dist/chunks/bridgeEnabled-0.7.6-0fhtxtzs.mjs +0 -1
- package/dist/chunks/bridgeMain-0.7.6-nj17223b.mjs +0 -88
- package/dist/chunks/bridgePointer-0.7.6-f0qs1e6e.mjs +0 -1
- package/dist/chunks/btw-0.7.6-cjm6v0b9.mjs +0 -1
- package/dist/chunks/buddy-0.7.6-1j68vknm.mjs +0 -3
- package/dist/chunks/cacache-0.7.6-3mr30mas.mjs +0 -1
- package/dist/chunks/cache-probe-0.7.6-e8g8d94t.mjs +0 -21
- package/dist/chunks/cacheStats-0.7.6-4x5zqxyf.mjs +0 -4
- package/dist/chunks/caches-0.7.6-fpr85z6h.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.7.6-hh4vstgr.mjs +0 -1
- package/dist/chunks/claudemd-0.7.6-fqehvs8g.mjs +0 -1
- package/dist/chunks/clear-0.7.6-h2vf452p.mjs +0 -1
- package/dist/chunks/clearTerminal-0.7.6-qscrqy5p.mjs +0 -1
- package/dist/chunks/cli-0.7.6-010st6wr.mjs +0 -2
- package/dist/chunks/cli-0.7.6-07eesex8.mjs +0 -2
- package/dist/chunks/cli-0.7.6-09hcxer2.mjs +0 -2
- package/dist/chunks/cli-0.7.6-0b47jy2g.mjs +0 -2
- package/dist/chunks/cli-0.7.6-0ekx5n2q.mjs +0 -4
- package/dist/chunks/cli-0.7.6-0gzsv22g.mjs +0 -2
- package/dist/chunks/cli-0.7.6-0h46deez.mjs +0 -2
- package/dist/chunks/cli-0.7.6-0mgbtp8x.mjs +0 -6
- package/dist/chunks/cli-0.7.6-0n7tfcxz.mjs +0 -4
- package/dist/chunks/cli-0.7.6-0tt8ccr8.mjs +0 -2
- package/dist/chunks/cli-0.7.6-0wr25ecz.mjs +0 -2
- package/dist/chunks/cli-0.7.6-1bfz5qa5.mjs +0 -2
- package/dist/chunks/cli-0.7.6-1bvzdjfc.mjs +0 -2
- package/dist/chunks/cli-0.7.6-1dqh462b.mjs +0 -2
- package/dist/chunks/cli-0.7.6-1j4p4cz3.mjs +0 -2
- package/dist/chunks/cli-0.7.6-1s1nbm58.mjs +0 -2
- package/dist/chunks/cli-0.7.6-1v73pjt7.mjs +0 -2
- package/dist/chunks/cli-0.7.6-1yn63f2j.mjs +0 -2
- package/dist/chunks/cli-0.7.6-29snre4z.mjs +0 -2
- package/dist/chunks/cli-0.7.6-2ff9pq9s.mjs +0 -3
- package/dist/chunks/cli-0.7.6-2kjdfns9.mjs +0 -6
- package/dist/chunks/cli-0.7.6-2qwpkx4w.mjs +0 -12
- package/dist/chunks/cli-0.7.6-2rwpq77s.mjs +0 -2
- package/dist/chunks/cli-0.7.6-310844c3.mjs +0 -4
- package/dist/chunks/cli-0.7.6-39q0e172.mjs +0 -2
- package/dist/chunks/cli-0.7.6-3vqf88sk.mjs +0 -2
- package/dist/chunks/cli-0.7.6-43kp2p25.mjs +0 -2
- package/dist/chunks/cli-0.7.6-471rvdw2.mjs +0 -2
- package/dist/chunks/cli-0.7.6-4e2e6mkj.mjs +0 -3
- package/dist/chunks/cli-0.7.6-4eaywsgw.mjs +0 -2
- package/dist/chunks/cli-0.7.6-4q91n1nr.mjs +0 -2
- package/dist/chunks/cli-0.7.6-4v3f036y.mjs +0 -2
- package/dist/chunks/cli-0.7.6-4ybzx76m.mjs +0 -2
- package/dist/chunks/cli-0.7.6-4z1q2wge.mjs +0 -2
- package/dist/chunks/cli-0.7.6-517m3gcx.mjs +0 -2
- package/dist/chunks/cli-0.7.6-56h0kfkw.mjs +0 -59
- package/dist/chunks/cli-0.7.6-5dk57g7k.mjs +0 -2
- package/dist/chunks/cli-0.7.6-5ktehyvf.mjs +0 -2
- package/dist/chunks/cli-0.7.6-5qabm4xe.mjs +0 -2
- package/dist/chunks/cli-0.7.6-5vj0s5hg.mjs +0 -5
- package/dist/chunks/cli-0.7.6-5wj27v22.mjs +0 -18
- package/dist/chunks/cli-0.7.6-5ynmp8av.mjs +0 -2
- package/dist/chunks/cli-0.7.6-62ea895q.mjs +0 -2
- package/dist/chunks/cli-0.7.6-67tqckbs.mjs +0 -133
- package/dist/chunks/cli-0.7.6-69b0cq0a.mjs +0 -4
- package/dist/chunks/cli-0.7.6-69hzrwk9.mjs +0 -2
- package/dist/chunks/cli-0.7.6-73gkdy2f.mjs +0 -2
- package/dist/chunks/cli-0.7.6-73h798cq.mjs +0 -2
- package/dist/chunks/cli-0.7.6-7g2b4q32.mjs +0 -2
- package/dist/chunks/cli-0.7.6-7ktebmzc.mjs +0 -2
- package/dist/chunks/cli-0.7.6-7mzraehr.mjs +0 -16
- package/dist/chunks/cli-0.7.6-7szsqp12.mjs +0 -2
- package/dist/chunks/cli-0.7.6-7ybdp9j0.mjs +0 -3
- package/dist/chunks/cli-0.7.6-7yce2cw8.mjs +0 -2
- package/dist/chunks/cli-0.7.6-8g9rtj1f.mjs +0 -2
- package/dist/chunks/cli-0.7.6-8h5rwm21.mjs +0 -2
- package/dist/chunks/cli-0.7.6-8k508w7p.mjs +0 -2
- package/dist/chunks/cli-0.7.6-8srvcg12.mjs +0 -2
- package/dist/chunks/cli-0.7.6-8vdxmbjt.mjs +0 -2
- package/dist/chunks/cli-0.7.6-8vftkjgf.mjs +0 -2
- package/dist/chunks/cli-0.7.6-8wv8rjqd.mjs +0 -2
- package/dist/chunks/cli-0.7.6-9508tj8e.mjs +0 -17
- package/dist/chunks/cli-0.7.6-96qqpq0c.mjs +0 -2
- package/dist/chunks/cli-0.7.6-9a706kh3.mjs +0 -2
- package/dist/chunks/cli-0.7.6-9w6egknj.mjs +0 -8
- package/dist/chunks/cli-0.7.6-ajv6cevv.mjs +0 -4
- package/dist/chunks/cli-0.7.6-am0sf3er.mjs +0 -2
- package/dist/chunks/cli-0.7.6-ama4wyv2.mjs +0 -12
- package/dist/chunks/cli-0.7.6-ayd8297m.mjs +0 -3
- package/dist/chunks/cli-0.7.6-bbmxy27v.mjs +0 -2
- package/dist/chunks/cli-0.7.6-berqrfpz.mjs +0 -2
- package/dist/chunks/cli-0.7.6-bese1aqp.mjs +0 -2
- package/dist/chunks/cli-0.7.6-bfwq4dm5.mjs +0 -2
- package/dist/chunks/cli-0.7.6-c3npkenn.mjs +0 -1
- package/dist/chunks/cli-0.7.6-ccbtfaqn.mjs +0 -2
- package/dist/chunks/cli-0.7.6-ccy8mp4f.mjs +0 -2
- package/dist/chunks/cli-0.7.6-cedrx1f7.mjs +0 -2
- package/dist/chunks/cli-0.7.6-chcjfb2p.mjs +0 -2
- package/dist/chunks/cli-0.7.6-cmxr1gyd.mjs +0 -3
- package/dist/chunks/cli-0.7.6-cq95q0m7.mjs +0 -2
- package/dist/chunks/cli-0.7.6-cxchkx7a.mjs +0 -18
- package/dist/chunks/cli-0.7.6-d4rmetja.mjs +0 -2
- package/dist/chunks/cli-0.7.6-d5nss1kz.mjs +0 -2
- package/dist/chunks/cli-0.7.6-d8hz302t.mjs +0 -2
- package/dist/chunks/cli-0.7.6-dd5tgszn.mjs +0 -4
- package/dist/chunks/cli-0.7.6-dfkaq7z7.mjs +0 -2
- package/dist/chunks/cli-0.7.6-dhp0vn09.mjs +0 -4
- package/dist/chunks/cli-0.7.6-dpfh7ypk.mjs +0 -2
- package/dist/chunks/cli-0.7.6-dq87daze.mjs +0 -2
- package/dist/chunks/cli-0.7.6-dynrpsf9.mjs +0 -10
- package/dist/chunks/cli-0.7.6-e01s0kjn.mjs +0 -2
- package/dist/chunks/cli-0.7.6-e3dwvde8.mjs +0 -58
- package/dist/chunks/cli-0.7.6-edjsszs3.mjs +0 -12
- package/dist/chunks/cli-0.7.6-ehkh8f7m.mjs +0 -2
- package/dist/chunks/cli-0.7.6-ejjekwys.mjs +0 -2
- package/dist/chunks/cli-0.7.6-ejk8n0sg.mjs +0 -2
- package/dist/chunks/cli-0.7.6-ek2a439r.mjs +0 -2
- package/dist/chunks/cli-0.7.6-ex7sezdt.mjs +0 -2
- package/dist/chunks/cli-0.7.6-f4nmb6r2.mjs +0 -3
- package/dist/chunks/cli-0.7.6-f9mzvngv.mjs +0 -2
- package/dist/chunks/cli-0.7.6-ffk5hz3x.mjs +0 -2
- package/dist/chunks/cli-0.7.6-fkshg1fg.mjs +0 -2
- package/dist/chunks/cli-0.7.6-fmmr53nv.mjs +0 -2
- package/dist/chunks/cli-0.7.6-fn56g2cc.mjs +0 -199
- package/dist/chunks/cli-0.7.6-frf6ynaj.mjs +0 -2
- package/dist/chunks/cli-0.7.6-ftdrd7jk.mjs +0 -17
- package/dist/chunks/cli-0.7.6-fvydk0w1.mjs +0 -2
- package/dist/chunks/cli-0.7.6-g1gd1372.mjs +0 -5
- package/dist/chunks/cli-0.7.6-g2437s1w.mjs +0 -2
- package/dist/chunks/cli-0.7.6-g44g34fb.mjs +0 -2
- package/dist/chunks/cli-0.7.6-g5cva69z.mjs +0 -2
- package/dist/chunks/cli-0.7.6-g736y207.mjs +0 -39
- package/dist/chunks/cli-0.7.6-g802sp0p.mjs +0 -2
- package/dist/chunks/cli-0.7.6-gkd2v7ek.mjs +0 -45
- package/dist/chunks/cli-0.7.6-gxbeg3ny.mjs +0 -3
- package/dist/chunks/cli-0.7.6-hrw7nyyq.mjs +0 -2
- package/dist/chunks/cli-0.7.6-hsa9j8sb.mjs +0 -2
- package/dist/chunks/cli-0.7.6-hsm2w1qr.mjs +0 -2
- package/dist/chunks/cli-0.7.6-hw3n6j75.mjs +0 -9
- package/dist/chunks/cli-0.7.6-j59ty8yt.mjs +0 -15
- package/dist/chunks/cli-0.7.6-j63vtmfa.mjs +0 -2
- package/dist/chunks/cli-0.7.6-j9p952mf.mjs +0 -2
- package/dist/chunks/cli-0.7.6-jjmm4f40.mjs +0 -2
- package/dist/chunks/cli-0.7.6-jmpc9xmj.mjs +0 -6
- package/dist/chunks/cli-0.7.6-jtdgswpn.mjs +0 -2
- package/dist/chunks/cli-0.7.6-jwqgj667.mjs +0 -2
- package/dist/chunks/cli-0.7.6-jzk3fxqa.mjs +0 -3
- package/dist/chunks/cli-0.7.6-k1tjb02q.mjs +0 -4
- package/dist/chunks/cli-0.7.6-k5r0yz41.mjs +0 -67
- package/dist/chunks/cli-0.7.6-k7fsgwdr.mjs +0 -2
- package/dist/chunks/cli-0.7.6-m51wgngt.mjs +0 -2
- package/dist/chunks/cli-0.7.6-md1ramb7.mjs +0 -2
- package/dist/chunks/cli-0.7.6-md31wz8f.mjs +0 -2
- package/dist/chunks/cli-0.7.6-md4x57wd.mjs +0 -2
- package/dist/chunks/cli-0.7.6-n6qsqdjv.mjs +0 -2
- package/dist/chunks/cli-0.7.6-ngmxmw82.mjs +0 -2
- package/dist/chunks/cli-0.7.6-ngsbbrk7.mjs +0 -3
- package/dist/chunks/cli-0.7.6-nxxj5qzs.mjs +0 -2
- package/dist/chunks/cli-0.7.6-p2268sge.mjs +0 -2
- package/dist/chunks/cli-0.7.6-pasrzvza.mjs +0 -2
- package/dist/chunks/cli-0.7.6-pbzty9n9.mjs +0 -2
- package/dist/chunks/cli-0.7.6-pwvs4p1w.mjs +0 -3
- package/dist/chunks/cli-0.7.6-pzk668w8.mjs +0 -2
- package/dist/chunks/cli-0.7.6-qan5xxdc.mjs +0 -5471
- package/dist/chunks/cli-0.7.6-qeq5tx23.mjs +0 -6
- package/dist/chunks/cli-0.7.6-qkcrt37c.mjs +0 -2
- package/dist/chunks/cli-0.7.6-qyk1jtmh.mjs +0 -2
- package/dist/chunks/cli-0.7.6-r6nhsg12.mjs +0 -2
- package/dist/chunks/cli-0.7.6-r78s2g03.mjs +0 -18
- package/dist/chunks/cli-0.7.6-r9dxvg8q.mjs +0 -5
- package/dist/chunks/cli-0.7.6-rp0xgr6t.mjs +0 -2
- package/dist/chunks/cli-0.7.6-rs07s8yh.mjs +0 -2
- package/dist/chunks/cli-0.7.6-rzhf46t3.mjs +0 -2
- package/dist/chunks/cli-0.7.6-s0jpd03j.mjs +0 -2
- package/dist/chunks/cli-0.7.6-s3kvpq11.mjs +0 -24
- package/dist/chunks/cli-0.7.6-se7x2a1f.mjs +0 -7
- package/dist/chunks/cli-0.7.6-sjbap7zg.mjs +0 -2
- package/dist/chunks/cli-0.7.6-svqwyxab.mjs +0 -42
- package/dist/chunks/cli-0.7.6-t224fm0b.mjs +0 -2
- package/dist/chunks/cli-0.7.6-t3wkyhpb.mjs +0 -2
- package/dist/chunks/cli-0.7.6-tnxct9wp.mjs +0 -2
- package/dist/chunks/cli-0.7.6-tp1mp7kg.mjs +0 -2
- package/dist/chunks/cli-0.7.6-tp4xkdj6.mjs +0 -2
- package/dist/chunks/cli-0.7.6-v3rjsfcr.mjs +0 -2
- package/dist/chunks/cli-0.7.6-vhan81qg.mjs +0 -2
- package/dist/chunks/cli-0.7.6-vhn7sz5q.mjs +0 -2
- package/dist/chunks/cli-0.7.6-vrcja2t1.mjs +0 -2
- package/dist/chunks/cli-0.7.6-w4bq1f08.mjs +0 -4
- package/dist/chunks/cli-0.7.6-w5smxper.mjs +0 -2
- package/dist/chunks/cli-0.7.6-w65xvz9z.mjs +0 -2
- package/dist/chunks/cli-0.7.6-w66170ej.mjs +0 -2
- package/dist/chunks/cli-0.7.6-w7k9x0kq.mjs +0 -3
- package/dist/chunks/cli-0.7.6-wch5kwc6.mjs +0 -3
- package/dist/chunks/cli-0.7.6-wepz3cym.mjs +0 -4
- package/dist/chunks/cli-0.7.6-wthbw2r0.mjs +0 -2
- package/dist/chunks/cli-0.7.6-wz34s2yk.mjs +0 -2
- package/dist/chunks/cli-0.7.6-wz5w8hmh.mjs +0 -2
- package/dist/chunks/cli-0.7.6-xczzrd9d.mjs +0 -34
- package/dist/chunks/cli-0.7.6-xfap6qa6.mjs +0 -20
- package/dist/chunks/cli-0.7.6-xg6ka3pp.mjs +0 -2
- package/dist/chunks/cli-0.7.6-xjemjs4e.mjs +0 -25
- package/dist/chunks/cli-0.7.6-xkmg4sc9.mjs +0 -2
- package/dist/chunks/cli-0.7.6-xky4ty14.mjs +0 -2
- package/dist/chunks/cli-0.7.6-xtjps7gq.mjs +0 -2
- package/dist/chunks/cli-0.7.6-xyx40s83.mjs +0 -21
- package/dist/chunks/cli-0.7.6-y36b0e0y.mjs +0 -24
- package/dist/chunks/cli-0.7.6-y3a6zp1r.mjs +0 -2
- package/dist/chunks/cli-0.7.6-y7bdxnmf.mjs +0 -133
- package/dist/chunks/cli-0.7.6-y8ga5pny.mjs +0 -15
- package/dist/chunks/cli-0.7.6-ye7kz4cr.mjs +0 -24
- package/dist/chunks/cli-0.7.6-ymhtbnyk.mjs +0 -2
- package/dist/chunks/cli-0.7.6-yv3stfxm.mjs +0 -12
- package/dist/chunks/cli-0.7.6-ywg6e349.mjs +0 -25
- package/dist/chunks/cli-0.7.6-z13va0jc.mjs +0 -2
- package/dist/chunks/cli-0.7.6-z4k83sx6.mjs +0 -2
- package/dist/chunks/cli-0.7.6-z5zw7sdz.mjs +0 -3
- package/dist/chunks/cli-0.7.6-zepjez10.mjs +0 -50
- package/dist/chunks/cli-0.7.6-zmkr521v.mjs +0 -15
- package/dist/chunks/cli-0.7.6-zrjrmccd.mjs +0 -2
- package/dist/chunks/cli-0.7.6-zrwpmp3s.mjs +0 -2
- package/dist/chunks/client-0.7.6-s5r00qzn.mjs +0 -1
- package/dist/chunks/color-0.7.6-c5m7hk8y.mjs +0 -1
- package/dist/chunks/compact-0.7.6-dx4c91sb.mjs +0 -3
- package/dist/chunks/config-0.7.6-0wrs7d25.mjs +0 -1
- package/dist/chunks/config-0.7.6-28k8xgy7.mjs +0 -1
- package/dist/chunks/constants-0.7.6-yxc2ccra.mjs +0 -1
- package/dist/chunks/context-0.7.6-efvp1txb.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.7.6-8bp73hyq.mjs +0 -1
- package/dist/chunks/conversation-0.7.6-cqwzbr0d.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.7.6-qm7k7b4w.mjs +0 -1
- package/dist/chunks/copy-0.7.6-tb3stmba.mjs +0 -9
- package/dist/chunks/cost-0.7.6-t2pss4xp.mjs +0 -1
- package/dist/chunks/createSSHSession-0.7.6-gxjfefp4.mjs +0 -1
- package/dist/chunks/createSession-0.7.6-s5cd1p2c.mjs +0 -1
- package/dist/chunks/debug-0.7.6-29wym0xr.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.7.6-1thsnj41.mjs +0 -1446
- package/dist/chunks/desktop-0.7.6-jb15m9tp.mjs +0 -1
- package/dist/chunks/detectRepository-0.7.6-0cp7fygx.mjs +0 -1
- package/dist/chunks/detection-0.7.6-rg544p2p.mjs +0 -1
- package/dist/chunks/diff-0.7.6-53gzzxnd.mjs +0 -1
- package/dist/chunks/doctor-0.7.6-95kk3h2p.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.7.6-ybe5naeq.mjs +0 -1
- package/dist/chunks/earlyInput-0.7.6-2frqt87k.mjs +0 -1
- package/dist/chunks/effort-0.7.6-3hhjz5rt.mjs +0 -10
- package/dist/chunks/engine-0.7.6-r4hy6gpj.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-0.7.6-6gxkp63s.mjs +0 -1
- package/dist/chunks/envUtils-0.7.6-70jnybbw.mjs +0 -1
- package/dist/chunks/environmentSelection-0.7.6-mtg8g15a.mjs +0 -1
- package/dist/chunks/environments-0.7.6-4vj956d6.mjs +0 -1
- package/dist/chunks/errors-0.7.6-3rfme91e.mjs +0 -1
- package/dist/chunks/exampleCommands-0.7.6-3rwnb01j.mjs +0 -1
- package/dist/chunks/exit-0.7.6-1zq90j34.mjs +0 -1
- package/dist/chunks/explorer-0.7.6-7yxdvz4c.mjs +0 -1
- package/dist/chunks/export-0.7.6-6annregx.mjs +0 -2
- package/dist/chunks/extra-usage-0.7.6-1d8afeer.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.7.6-yv74b9va.mjs +0 -1
- package/dist/chunks/fast-0.7.6-83xw5a4z.mjs +0 -1
- package/dist/chunks/feedback-0.7.6-r3gmhtzb.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.7.6-sxwwnk4h.mjs +0 -1
- package/dist/chunks/git-0.7.6-z2fwspdf.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.7.6-fe39tsv6.mjs +0 -1
- package/dist/chunks/goal-0.7.6-ejhqdg3h.mjs +0 -4
- package/dist/chunks/grove-0.7.6-wq7pmtc4.mjs +0 -1
- package/dist/chunks/growthbook-0.7.6-268c3zv1.mjs +0 -1
- package/dist/chunks/headless-0.7.6-0624t1g9.mjs +0 -2
- package/dist/chunks/heapdump-0.7.6-0h7m92s6.mjs +0 -6
- package/dist/chunks/help-0.7.6-cgg68b97.mjs +0 -1
- package/dist/chunks/hookChains-0.7.6-r667d77r.mjs +0 -3
- package/dist/chunks/hooks-0.7.6-7tnwk63p.mjs +0 -79
- package/dist/chunks/hooks-0.7.6-btfaw4b9.mjs +0 -1
- package/dist/chunks/ide-0.7.6-fq0f5srk.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.7.6-2ks1h23p.mjs +0 -1
- package/dist/chunks/inboundAttachments-0.7.6-femb5yew.mjs +0 -1
- package/dist/chunks/index-0.7.6-2rpgkwj4.mjs +0 -9
- package/dist/chunks/index-0.7.6-2zatk70c.mjs +0 -1
- package/dist/chunks/index-0.7.6-415hw608.mjs +0 -1
- package/dist/chunks/index-0.7.6-7wrzedvg.mjs +0 -1
- package/dist/chunks/index-0.7.6-98ws3n8p.mjs +0 -1
- package/dist/chunks/index-0.7.6-9k6nvjv8.mjs +0 -1
- package/dist/chunks/index-0.7.6-bbdqqv1x.mjs +0 -1
- package/dist/chunks/index-0.7.6-djapsy32.mjs +0 -1
- package/dist/chunks/index-0.7.6-efatyc79.mjs +0 -17
- package/dist/chunks/index-0.7.6-egyaf79a.mjs +0 -5
- package/dist/chunks/index-0.7.6-ew2v6b0x.mjs +0 -1
- package/dist/chunks/index-0.7.6-h2kqerxv.mjs +0 -1
- package/dist/chunks/index-0.7.6-h5xh1kf2.mjs +0 -1
- package/dist/chunks/index-0.7.6-jk32t8wg.mjs +0 -1
- package/dist/chunks/index-0.7.6-k60v4n8g.mjs +0 -9
- package/dist/chunks/index-0.7.6-kb22mqnf.mjs +0 -2
- package/dist/chunks/index-0.7.6-mj4y74z8.mjs +0 -1
- package/dist/chunks/index-0.7.6-pkyqwagx.mjs +0 -1
- package/dist/chunks/index-0.7.6-sdw9kjcj.mjs +0 -1
- package/dist/chunks/index-0.7.6-tc2zr05j.mjs +0 -2
- package/dist/chunks/index-0.7.6-tk8kmvah.mjs +0 -1
- package/dist/chunks/index-0.7.6-vhgb870z.mjs +0 -1
- package/dist/chunks/index-0.7.6-yndsc291.mjs +0 -30
- package/dist/chunks/init-0.7.6-w0mqjmeg.mjs +0 -1
- package/dist/chunks/initReplBridge-0.7.6-rf60qv0p.mjs +0 -1
- package/dist/chunks/ink-0.7.6-3eyfg9zt.mjs +0 -1
- package/dist/chunks/insights-0.7.6-7btcyfzb.mjs +0 -870
- package/dist/chunks/install-0.7.6-mdtm3sg3.mjs +0 -1
- package/dist/chunks/install-github-app-0.7.6-jvncztq4.mjs +0 -149
- package/dist/chunks/install-slack-app-0.7.6-yqkgptfz.mjs +0 -1
- package/dist/chunks/instrumentation-0.7.6-1ctp56r7.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.7.6-hnfccr2a.mjs +0 -1
- package/dist/chunks/keybindings-0.7.6-cm2a4esz.mjs +0 -2
- package/dist/chunks/knowledge-0.7.6-2m4hj4wv.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.7.6-3p0jwsk1.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.7.6-7n8wpd6m.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.7.6-668vved3.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.7.6-fvexrndy.mjs +0 -1
- package/dist/chunks/log-0.7.6-n1gwe75k.mjs +0 -1
- package/dist/chunks/main-0.7.6-787at8bh.mjs +0 -1
- package/dist/chunks/managedEnv-0.7.6-b17rcr8m.mjs +0 -1
- package/dist/chunks/mcp-0.7.6-a2gt46m1.mjs +0 -4
- package/dist/chunks/mcp-0.7.6-ehgr4hy2.mjs +0 -1
- package/dist/chunks/mcp-0.7.6-z5yz782z.mjs +0 -17
- package/dist/chunks/mcpb-0.7.6-x3w00evk.mjs +0 -1
- package/dist/chunks/memory-0.7.6-ce56tv6x.mjs +0 -3
- package/dist/chunks/model-0.7.6-10bxpdy1.mjs +0 -2
- package/dist/chunks/model-0.7.6-463cgk44.mjs +0 -1
- package/dist/chunks/node-0.7.6-yq8nb00v.mjs +0 -12
- package/dist/chunks/oauth-0.7.6-bbgjzwfb.mjs +0 -1
- package/dist/chunks/openaiShim-0.7.6-kwwv7ntf.mjs +0 -14
- package/dist/chunks/output-style-0.7.6-cs808te7.mjs +0 -1
- package/dist/chunks/package-ZZWOLTXM-0.7.6-kjjaeshn.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.7.6-k3n1pn17.mjs +0 -1
- package/dist/chunks/parser-0.7.6-eae6w23n.mjs +0 -1
- package/dist/chunks/passes-0.7.6-k46cf658.mjs +0 -1
- package/dist/chunks/permissions-0.7.6-1nws00wm.mjs +0 -1
- package/dist/chunks/permissions-0.7.6-jq6ebtnw.mjs +0 -3
- package/dist/chunks/plan-0.7.6-ry44stze.mjs +0 -1
- package/dist/chunks/plist-0.7.6-0vee72zr.mjs +0 -1
- package/dist/chunks/plugin-0.7.6-vwa3avby.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.7.6-wvmq9d6r.mjs +0 -1
- package/dist/chunks/plugins-0.7.6-sksmmrbb.mjs +0 -9
- package/dist/chunks/preActionHook-0.7.6-qtz2v7cq.mjs +0 -2
- package/dist/chunks/print-0.7.6-qddcs91f.mjs +0 -57
- package/dist/chunks/privacy-settings-0.7.6-5gzw6mn1.mjs +0 -1
- package/dist/chunks/process-0.7.6-6b1s37w1.mjs +0 -1
- package/dist/chunks/processBashCommand-0.7.6-yb92143k.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.7.6-bc9jxvge.mjs +0 -9
- package/dist/chunks/prompt-0.7.6-sps6z4za.mjs +0 -1
- package/dist/chunks/prompt-0.7.6-t8yabss3.mjs +0 -1
- package/dist/chunks/prompts-0.7.6-x3ndp7gh.mjs +0 -1
- package/dist/chunks/protocolHandler-0.7.6-m1pgssvd.mjs +0 -13
- package/dist/chunks/provider-0.7.6-yxmt6yve.mjs +0 -2
- package/dist/chunks/providerProfiles-0.7.6-3027t9pt.mjs +0 -1
- package/dist/chunks/providerValidation-0.7.6-vpv75gd1.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.7.6-6w5cdwx1.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.7.6-vz4yvks2.mjs +0 -34
- package/dist/chunks/registry-0.7.6-gat54dy3.mjs +0 -1
- package/dist/chunks/release-notes-0.7.6-myz4h7d7.mjs +0 -5
- package/dist/chunks/reload-plugins-0.7.6-64w73d8b.mjs +0 -2
- package/dist/chunks/remote-env-0.7.6-zz9a22zn.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.7.6-9mnzebzz.mjs +0 -1
- package/dist/chunks/remoteSession-0.7.6-0geea7cr.mjs +0 -1
- package/dist/chunks/rename-0.7.6-y40kz5p4.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.7.6-9q86nfkb.mjs +0 -1
- package/dist/chunks/replLauncher-0.7.6-appht20k.mjs +0 -1
- package/dist/chunks/resume-0.7.6-za9pttkz.mjs +0 -2
- package/dist/chunks/rewind-0.7.6-23eb1s5k.mjs +0 -1
- package/dist/chunks/rootOptions-0.7.6-89a7srwx.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.7.6-zxpg8tbn.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.7.6-12ddnvsb.mjs +0 -1
- package/dist/chunks/session-0.7.6-qtvc9q8w.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.7.6-d2h1v026.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.7.6-j8rejm9s.mjs +0 -1
- package/dist/chunks/sessionStorage-0.7.6-whqhsy0v.mjs +0 -1
- package/dist/chunks/settings-0.7.6-d1x6h71y.mjs +0 -1
- package/dist/chunks/setup-0.7.6-f52y5q94.mjs +0 -5
- package/dist/chunks/sinks-0.7.6-p38qk6rn.mjs +0 -1
- package/dist/chunks/skills-0.7.6-4x49mjqs.mjs +0 -1
- package/dist/chunks/startupProfiler-0.7.6-kehr3zds.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.7.6-m95yf5v2.mjs +0 -1
- package/dist/chunks/state-0.7.6-exkbe4vf.mjs +0 -1
- package/dist/chunks/stats-0.7.6-y4qxdfqk.mjs +0 -6
- package/dist/chunks/status-0.7.6-etkntf2w.mjs +0 -1
- package/dist/chunks/stickers-0.7.6-jfaby3j3.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.7.6-2bme852w.mjs +0 -1
- package/dist/chunks/tasks-0.7.6-vc8j66yr.mjs +0 -1
- package/dist/chunks/teamHelpers-0.7.6-ax1nev6h.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.7.6-9tjnw4x3.mjs +0 -1
- package/dist/chunks/teleport-0.7.6-xjeqw992.mjs +0 -1
- package/dist/chunks/terminalSetup-0.7.6-cx56kmpg.mjs +0 -1
- package/dist/chunks/theme-0.7.6-artxd1km.mjs +0 -1
- package/dist/chunks/thinkback-0.7.6-ar7ssxsq.mjs +0 -1
- package/dist/chunks/thinkback-play-0.7.6-7d5g791f.mjs +0 -1
- package/dist/chunks/toolPool-0.7.6-58r85xft.mjs +0 -1
- package/dist/chunks/toolSearch-0.7.6-29hekpkv.mjs +0 -1
- package/dist/chunks/tools-0.7.6-6bhsctcm.mjs +0 -1
- package/dist/chunks/trustedDevice-0.7.6-aay0bw3y.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.7.6-cfbcqt7b.mjs +0 -69
- package/dist/chunks/types-0.7.6-z2j2wxhd.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-0.7.6-7w7yx7mv.mjs +0 -4
- package/dist/chunks/update-0.7.6-6s5hvmvc.mjs +0 -86
- package/dist/chunks/upgrade-0.7.6-nrvaa7qs.mjs +0 -1
- package/dist/chunks/upload-0.7.6-6880h5gd.mjs +0 -7
- package/dist/chunks/upstreamproxy-0.7.6-d4xfvwf7.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.7.6-hcyxzqg6.mjs +0 -1
- package/dist/chunks/usage-0.7.6-vbbt70v9.mjs +0 -1
- package/dist/chunks/util-0.7.6-0cm7xj78.mjs +0 -1
- package/dist/chunks/utils-0.7.6-h3fwyhxw.mjs +0 -1
- package/dist/chunks/vim-0.7.6-k6evwpd5.mjs +0 -1
- package/dist/chunks/watcher-0.7.6-gc6rbcvg.mjs +0 -1
- package/dist/chunks/wiki-0.7.6-3sjbdwmf.mjs +0 -132
- package/dist/chunks/workflows-0.7.6-rg3kvwhe.mjs +0 -1
- package/dist/chunks/worktree-0.7.6-hhewj19d.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.7.6-a27ekdvp.mjs +0 -1
- package/dist/chunks/wrapper-0.7.6-01s6r78y.mjs +0 -7
- package/dist/claudin-vscode.vsix +0 -0
- package/scripts/postinstall-warmup.mjs +0 -70
- package/scripts/v8cache-gc.mjs +0 -84
- /package/dist/chunks/{cli-0.7.6-sznceb3v.mjs → cli-1.0.3-25zd2770.mjs} +0 -0
- /package/dist/chunks/{cli-0.7.6-wmhr2zkd.mjs → cli-1.0.3-43683395.mjs} +0 -0
- /package/dist/chunks/{cli-0.7.6-azjnjp5p.mjs → cli-1.0.3-77dec30x.mjs} +0 -0
- /package/dist/chunks/{cli-0.7.6-2nmq534s.mjs → cli-1.0.3-adgwsvq3.mjs} +0 -0
- /package/dist/chunks/{cli-0.7.6-wmk10em6.mjs → cli-1.0.3-cf280jvq.mjs} +0 -0
- /package/dist/chunks/{cli-0.7.6-b39v6rz1.mjs → cli-1.0.3-hn2qw1pk.mjs} +0 -0
- /package/dist/chunks/{cli-0.7.6-pef1cr89.mjs → cli-1.0.3-qf5pjy0v.mjs} +0 -0
- /package/dist/chunks/{cli-0.7.6-jpjn976y.mjs → cli-1.0.3-vzm5gxzn.mjs} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{I0 as e2,IY as u2,RY as Z,b0 as Y,d0 as u}from"./cli-1.0.3-kesrsh8z.mjs";import{O2 as t,P2 as o,Q2 as U}from"./cli-1.0.3-wv4vx65k.mjs";import{$$ as j,Z$ as X}from"./cli-1.0.3-4m0kzrq4.mjs";import{Tqa as s}from"./cli-1.0.3-vzm5gxzn.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claude Code"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,R,k,p,A,a,I,i,M;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.0.3"," "]})]}),R=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),k=t(u,{children:" "}),p=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),l[2]=c,l[3]=R,l[4]=k,l[5]=p,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=M;else c=l[2],R=l[3],k=l[4],p=l[5],A=l[6],a=l[7],I=l[8],i=l[9],M=l[10];let V;if(l[11]===Symbol.for("react.memo_cache_sentinel"))V=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=V;else V=l[11];let E,N;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),N=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=N;else E=l[12],N=l[13];let W;if(l[14]===Symbol.for("react.memo_cache_sentinel"))W=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=W;else W=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let v;if(l[16]===Symbol.for("react.memo_cache_sentinel"))v=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=v;else v=l[16];let B;if(l[17]===Symbol.for("react.memo_cache_sentinel"))B=t(Y,{width:K,children:o(u,{children:[c,R,k,p,A,a,I,i,M,V,E,N,W,L,v,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=B;else B=l[17];return B}let D,r,P,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))D=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.0.3"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),P=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=D,l[19]=r,l[20]=P,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else D=l[18],r=l[19],P=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let O;if(l[34]===Symbol.for("react.memo_cache_sentinel"))O=t(Y,{width:K,children:o(u,{children:[D,r,P,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=O;else O=l[34];return O}function t2(l){let e=Q.c(44),{theme:D,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(D)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","1.0.3"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let M,V,E,N,W,L,v,B;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),N=t(u,{children:" "}),W=t(u,{children:" "}),L=t(u,{children:" "}),v=t(u,{children:" ░░░░░░ "}),B=t(u,{children:" ░░░ ░░░░░░░░░░ "}),M=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),e[5]=M,e[6]=V,e[7]=E,e[8]=N,e[9]=W,e[10]=L,e[11]=v,e[12]=B;else M=e[5],V=e[6],E=e[7],N=e[8],W=e[9],L=e[10],v=e[11],B=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,N,W,L,v,B,M,V,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","1.0.3"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,O;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),O=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=O;else C=e[33],S=e[34],w=e[35],g=e[36],O=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let R;if(e[39]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=R;else R=e[39];let k;if(e[40]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=k;else k=e[40];let p;if(e[41]===Symbol.for("react.memo_cache_sentinel"))p=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=p;else p=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,O,c,R,k,p]})}),e[42]=m,e[43]=A;else A=e[43];return A}
|
|
2
|
+
export{c2 as W};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Bx as u,Cx as g,Ex as Wq,OF as h,On as S,Pn as Zq,QF as Fq,Qn as V,Rn as $q,Un as p,Vn as zq,mz as c,nR as a,pR as Uq,pz as T,qz as _q,tz as r,uz as Vq}from"./cli-1.0.3-2wzvc8te.mjs";import{EX as j,FX as Qq,GX as m,IX as Xq,LX as d,MX as Yq,sX as w,tX as Nq}from"./cli-1.0.3-hz5a6e6w.mjs";import{I0 as Lq,RY as v,SY as H,TY as y,b0 as J,d0 as N}from"./cli-1.0.3-kesrsh8z.mjs";import{N2 as _,O2 as q,P2 as G,Q2 as B}from"./cli-1.0.3-wv4vx65k.mjs";import{R2 as Jq}from"./cli-1.0.3-n9tzv3mz.mjs";import{lca as b,yca as Gq}from"./cli-1.0.3-4m0kzrq4.mjs";import{Tqa as e,Xqa as qq}from"./cli-1.0.3-vzm5gxzn.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[U]=v(),k=H(),{columns:l}=w(),Y=Q.useMemo(()=>c(),[]),Z=Y===null?T(U):null,{setPreviewTheme:K,savePreview:M,cancelPreview:R}=y(),z=u((L)=>L.settings.syntaxHighlightingDisabled??!1),E=g();j("ThemePicker",!0);let W=S("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),i=Q.useCallback(()=>{if(Y===null){let L=!z;b("userSettings",{syntaxHighlightingDisabled:L}),E((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,E]);m("theme:toggleSyntaxHighlighting",i,{context:"ThemePicker"});let f=d($?()=>{}:void 0),D=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"},{label:"Terminal default (inherit colors)",value:"terminal"},{label:"Dracula",value:"dracula"},{label:"Catppuccin Mocha (dark)",value:"catppuccin-mocha"},{label:"Catppuccin Latte (light)",value:"catppuccin-latte"},{label:"Tokyo Night",value:"tokyo-night"},{label:"Nord",value:"nord"},{label:"Gruvbox Dark",value:"gruvbox-dark"}],[]),o=Q.useCallback((L)=>{K(L)},[K]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else a(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDE_CODE_SYNTAX_HIGHLIGHT=${process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(h,{options:D,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:D.length,defaultValue:k,defaultFocusValue:k})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Iq,{patch:Oq,dim:!1,filePath:"demo.js",firstLine:null,width:l})},U),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:f.pending?G(_,{children:["Press ",f.keyName," again to exit"]}):G(p,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Iq,Oq;var Aq=qq(()=>{Yq();Nq();Lq();Qq();Xq();Zq();Wq();Uq();Gq();Fq();zq();$q();_q();Vq();B();Q=e(Jq(),1),Iq=r,Oq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
|
|
2
|
+
export{mq as fh,Aq as gh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Xqa as C}from"./cli-1.0.3-vzm5gxzn.mjs";import E from"node:fs";import G from"node:path";import H from"node:os";function A(){if(q!==void 0)return;try{let b=process.env.CLAUDE_FEATURE_FLAGS_FILE||G.join(H.homedir(),".claudin","feature-flags.json"),j=JSON.parse(E.readFileSync(b,"utf-8"));q=j&&typeof j==="object"&&!Array.isArray(j)?j:null}catch{q=null}}function x(b,j){if(A(),q!=null&&Object.hasOwn(q,b))return q[b];if(Object.hasOwn(z,b))return z[b];return j}function O(){return I}function Q(){return!1}function R(){return A(),q||{}}function S(){return{}}function T(){}function U(){}function W(){return}async function Y(b,j){return x(b,j)}function Z(b,j){return x(b,j)}function $(b,j){return x(b,j)}function v(b){return Boolean(x(b,!1))}async function w(b){return!1}async function P(b){return Boolean(x(b,!1))}function B(){}function D(){q=void 0}async function h(){q=void 0}function N(){}function m(){}async function c(b,j){return x(b,j)}function F(b,j){return x(b,j)}var q=void 0,z,I=()=>{},X=async()=>null;var J=C(()=>{z={tengu_sedge_lantern:!0,tengu_passport_quail:!0,tengu_coral_fern:!0,tengu_bramble_lintel:15,tengu_glacier_2xr:!0}});
|
|
2
|
+
export{O as fga,Q as gga,R as hga,S as iga,T as jga,U as kga,W as lga,X as mga,Y as nga,Z as oga,$ as pga,v as qga,w as rga,P as sga,B as tga,D as uga,h as vga,N as wga,m as xga,c as yga,F as zga,J as Aga};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Xqa as M}from"./cli-1.0.3-vzm5gxzn.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 wi,W as xi,X as yi,Z as zi,Y as Ai};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Mqa as x,Oqa as y,Sqa as C}from"./cli-1.0.3-k99msp02.mjs";import{Vqa as k}from"./cli-1.0.3-vzm5gxzn.mjs";var MF=k((n)=>{var K=x(),b=C(),w=y(),f=(F)=>F[K.SMITHY_CONTEXT_KEY]||(F[K.SMITHY_CONTEXT_KEY]={}),h=(F,J)=>{if(!J||J.length===0)return F;let G=[];for(let L of J)for(let Q of F)if(Q.schemeId.split("#")[1]===L)G.push(Q);for(let L of F)if(!G.find(({schemeId:Q})=>Q===L.schemeId))G.push(L);return G};function v(F){let J=new Map;for(let G of F)J.set(G.schemeId,G);return J}var j=(F,J)=>(G,L)=>async(Q)=>{let V=F.httpAuthSchemeProvider(await J.httpAuthSchemeParametersProvider(F,L,Q.input)),W=F.authSchemePreference?await F.authSchemePreference():[],Z=h(V,W),Y=v(F.httpAuthSchemes),U=w.getSmithyContext(L),$=[];for(let X of Z){let B=Y.get(X.schemeId);if(!B){$.push(`HttpAuthScheme \`${X.schemeId}\` was not enabled for this service.`);continue}let D=B.identityProvider(await J.identityProviderConfigProvider(F));if(!D){$.push(`HttpAuthScheme \`${X.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:N={},signingProperties:R={}}=X.propertiesExtractor?.(F,L)||{};X.identityProperties=Object.assign(X.identityProperties||{},N),X.signingProperties=Object.assign(X.signingProperties||{},R),U.selectedHttpAuthScheme={httpAuthOption:X,identity:await D(X.identityProperties),signer:B.signer};break}if(!U.selectedHttpAuthScheme)throw Error($.join(`
|
|
2
|
+
`));return G(Q)},H={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},P=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),H)}}),M={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},l=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),M)}}),m=(F)=>(J)=>{throw J},u=(F,J)=>{},O=(F)=>(J,G)=>async(L)=>{if(!b.HttpRequest.isInstance(L.request))return J(L);let V=w.getSmithyContext(G).selectedHttpAuthScheme;if(!V)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:W={}},identity:Z,signer:Y}=V,U=await J({...L,request:await Y.sign(L.request,Z,W)}).catch((Y.errorHandler||m)(W));return(Y.successHandler||u)(U.response,W),U},I={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},c=(F)=>({applyToStack:(J)=>{J.addRelativeTo(O(),I)}}),a=(F)=>{if(typeof F==="function")return F;let J=Promise.resolve(F);return()=>J},d=async(F,J,G,L=(V)=>V,...Q)=>{let V=new F(G);return V=L(V)??V,await J.send(V,...Q)};function g(F,J,G,L,Q){return async function*(W,Z,...Y){let U=Z,$=W.startingToken??U[G],X=!0,B;while(X){if(U[G]=$,Q)U[Q]=U[Q]??W.pageSize;if(W.client instanceof F)B=await d(J,W.client,Z,W.withCommand,...Y);else throw Error(`Invalid client, expected instance of ${F.name}`);yield B;let D=$;$=p(B,L),X=!!($&&(!W.stopOnSameToken||$!==D))}return}}var p=(F,J)=>{let G=F,L=J.split(".");for(let Q of L){if(!G||typeof G!=="object")return;G=G[Q]}return G};function s(F,J,G){if(!F.__smithy_context)F.__smithy_context={features:{}};else if(!F.__smithy_context.features)F.__smithy_context.features={};F.__smithy_context.features[J]=G}class E{authSchemes=new Map;constructor(F){for(let J in F){let G=F[J];if(G!==void 0)this.authSchemes.set(J,G)}}getIdentityProvider(F){return this.authSchemes.get(F)}}class _{async sign(F,J,G){if(!G)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!G.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!G.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!J.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let L=b.HttpRequest.clone(F);if(G.in===K.HttpApiKeyAuthLocation.QUERY)L.query[G.name]=J.apiKey;else if(G.in===K.HttpApiKeyAuthLocation.HEADER)L.headers[G.name]=G.scheme?`${G.scheme} ${J.apiKey}`:J.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+G.in+"`");return L}}class z{async sign(F,J,G){let L=b.HttpRequest.clone(F);if(!J.token)throw Error("request could not be signed with `token` since the `token` is not defined");return L.headers.Authorization=`Bearer ${J.token}`,L}}class A{async sign(F,J,G){return F}}var q=(F)=>function(G){return S(G)&&G.expiration.getTime()-Date.now()<F},T=300000,r=q(T),S=(F)=>F.expiration!==void 0,o=(F,J,G)=>{if(F===void 0)return;let L=typeof F!=="function"?async()=>Promise.resolve(F):F,Q,V,W,Z=!1,Y=async(U)=>{if(!V)V=L(U);try{Q=await V,W=!0,Z=!1}finally{V=void 0}return Q};if(J===void 0)return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);return Q};return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);if(Z)return Q;if(!G(Q))return Z=!0,Q;if(J(Q))return await Y(U),Q;return Q}};n.requestBuilder=b.requestBuilder;n.DefaultIdentityProviderConfig=E;n.EXPIRATION_MS=T;n.HttpApiKeyAuthSigner=_;n.HttpBearerAuthSigner=z;n.NoAuthSigner=A;n.createIsIdentityExpiredFunction=q;n.createPaginator=g;n.doesIdentityRequireRefresh=S;n.getHttpAuthSchemeEndpointRuleSetPlugin=P;n.getHttpAuthSchemePlugin=l;n.getHttpSigningPlugin=c;n.getSmithyContext=f;n.httpAuthSchemeEndpointRuleSetMiddlewareOptions=H;n.httpAuthSchemeMiddleware=j;n.httpAuthSchemeMiddlewareOptions=M;n.httpSigningMiddleware=O;n.httpSigningMiddlewareOptions=I;n.isIdentityExpired=r;n.memoizeIdentityProvider=o;n.normalizeProvider=a;n.setFeature=s});
|
|
3
|
+
export{MF as H8};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{ug as $Z,vg as uZ,wg as fz}from"./cli-1.0.3-vnwqmpyv.mjs";import{Ch as HJ,Dh as Vz}from"./cli-1.0.3-e315jy0y.mjs";import{Nh as GJ,Oh as Bz}from"./cli-1.0.3-t7p3714v.mjs";import{$j as TQ,$x as EQ,$z as cJ,AQ as g0,As as NJ,BQ as rQ,Bx as $Q,DQ as eJ,EQ as ZQ,Es as Uz,Ex as AX,FJ as gQ,FQ as oQ,GQ as tQ,Gn as zQ,Hn as $z,IQ as OZ,Ik as mZ,Jk as FX,On as RQ,Pn as wX,Tx as UQ,Ux as jQ,Vx as uQ,Wx as fQ,Wz as SZ,Xz as hZ,YS as VQ,Yz as TZ,Zz as dJ,_j as _Z,_x as MQ,_z as cQ,aT as KQ,co as XQ,dT as fZ,eo as xZ,fA as e0,gA as gJ,hA as mJ,hk as IJ,iA as nJ,ik as SJ,jA as yz,ly as pQ,my as PX,oo as WQ,pT as BQ,pk as pJ,qQ as nQ,so as uz,ty as dQ,uQ as iQ,uy as DX,vQ as lQ,xQ as nZ,yQ as aQ}from"./cli-1.0.3-2wzvc8te.mjs";import{pU as xQ,yU as OX}from"./cli-1.0.3-xsmba4r1.mjs";import{NX as YJ,RX as qz,SX as UZ,TX as NX,sX as FZ,tX as qJ}from"./cli-1.0.3-hz5a6e6w.mjs";import{FZ as jZ,GZ as Jz,I0 as p0,IY as u0,WZ as hQ,XZ as KX,b0 as b,c0 as DQ,cZ as c0,d0 as g,e0 as JX,gZ as vZ,yY as WJ,zY as Wz}from"./cli-1.0.3-kesrsh8z.mjs";import{N2 as f0,O2 as B,P2 as $,Q2 as F0}from"./cli-1.0.3-wv4vx65k.mjs";import{R2 as S0}from"./cli-1.0.3-n9tzv3mz.mjs";import{l3 as VJ,m3 as BJ,n3 as Yz}from"./cli-1.0.3-r2amtv3x.mjs";import{S6 as JQ,a7 as QQ,p6 as PQ,q6 as ZX,v6 as JZ,v7 as xz,y6 as QZ}from"./cli-1.0.3-5psnr7wf.mjs";import{R7 as gZ,S7 as GX}from"./cli-1.0.3-8a694ts0.mjs";import{Gba as LZ,Kda as HQ,Oba as XJ,Y8 as v0,Z8 as zJ,aaa as SQ,pda as DZ,waa as LX}from"./cli-1.0.3-4m0kzrq4.mjs";import{Efa as ZZ,Lfa as hz,tfa as PZ,ufa as TJ}from"./cli-1.0.3-phh30dq0.mjs";import{$ga as Rz,Cha as Dz,_ga as RZ,kha as KZ,pha as wZ,qha as NZ}from"./cli-1.0.3-n2h9jvgm.mjs";import{Qia as m0,Tia as ez}from"./cli-1.0.3-jmvq43wb.mjs";import{Bja as IQ,Lja as HX}from"./cli-1.0.3-1f00zm8y.mjs";import{Joa as kQ,mpa as BX}from"./cli-1.0.3-5kneybr4.mjs";import{Tqa as N0,Xqa as L0}from"./cli-1.0.3-vzm5gxzn.mjs";function MZ(){if($0!==null)clearTimeout($0),$0=null;bZ=Date.now();for(let J of BZ)J()}function Qz(){if($0!==null)return;let J=Date.now()-bZ;if(J>=jZ){MZ();return}$0=setTimeout(MZ,jZ-J)}function iZ(){return EZ.useSyncExternalStore(s0.subscribe,s0.getSnapshot)}function TX(){return EZ.useSyncExternalStore(s0.subscribe,s0.getPresenceSnapshot)}var EZ,x0=null,BZ,$0=null,bZ=0,s0;var lZ=L0(()=>{Jz();EZ=N0(S0(),1),BZ=new Set;s0={update(J){let Z=x0;if(x0=J(Z),x0===Z)return;if(Z===null!==(x0===null))MZ();else Qz()},clear(){s0.update(()=>null)},read(){return x0},subscribe(J){return BZ.add(J),()=>{BZ.delete(J)}},getSnapshot(){return x0},getPresenceSnapshot(){return x0!==null},resetForTesting(){if($0!==null)clearTimeout($0),$0=null;x0=null,bZ=0,BZ.clear()}}});function sZ(J){let Z=HZ.c(6),{children:Q}=J,[z,X]=K0.useState(null),[W,q]=K0.useState(null),V;if(Z[0]!==Q||Z[1]!==W)V=B(oZ.Provider,{value:W,children:Q}),Z[0]=Q,Z[1]=W,Z[2]=V;else V=Z[2];let Y;if(Z[3]!==z||Z[4]!==V)Y=B(rZ.Provider,{value:X,children:B(tZ.Provider,{value:q,children:B(aZ.Provider,{value:z,children:V})})}),Z[3]=z,Z[4]=V,Z[5]=Y;else Y=Z[5];return Y}function eZ(){return K0.useContext(aZ)}function ZJ(){return K0.useContext(oZ)}function xX(J){let Z=HZ.c(8),Q=K0.useContext(rZ),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];K0.useEffect(z,X),K0.useEffect(W,q)}function $X(J){let Z=HZ.c(8),Q=K0.useContext(tZ),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];K0.useEffect(z,X),K0.useEffect(W,q)}var HZ,K0,aZ,rZ,oZ,tZ;var JJ=L0(()=>{F0();HZ=N0(u0(),1),K0=N0(S0(),1),aZ=K0.createContext(null),rZ=K0.createContext(null),oZ=K0.createContext(null),tZ=K0.createContext(null)});function GZ(J){return J.type==="attachment"&&Xz.has(J.attachment.type)}var zz,Xz;var CZ=L0(()=>{zz=["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","pen_mode_enter","pen_mode_exit","verify_plan_reminder","current_session_memory","compaction_reminder","date_change","bash_git_instructions","claude_md_delta","git_status_delta","memory_delta","todo_reminder_delta"],Xz=new Set(zz)});import{fileURLToPath as Hz}from"url";function QW(J){let[Z,Q]=q0.useState(null),z=q0.useRef(J);z.current=J;let X=q0.useRef(null),W=q0.useCallback(()=>{Q(null)},[]),q=q0.useCallback((K)=>{let F=Math.max(0,K.getScrollHeight()-K.getViewportHeight());if(K.getScrollTop()+K.getPendingDelta()>=F)return;if(X.current===null)X.current=K.getScrollHeight(),Q(z.current)},[]),V=q0.useCallback((K)=>{if(!K)return;K.scrollToBottom()},[]);q0.useEffect(()=>{if(Z===null)X.current=null;else if(J<Z)X.current=null,Q(null)},[J,Z]);let Y=q0.useCallback((K,F)=>{if(Q((P)=>P===null?null:P+K),X.current!==null)X.current+=F},[]);return{dividerIndex:Z,dividerYRef:X,onScrollAway:q,onRepin:W,jumpToNew:V,shiftDivider:Y}}function Gz(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"&&!Lz(W))continue;let q=W.type==="assistant";if(q&&!z)Q++;z=q}return Q}function Lz(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 zW(J,Z){if(Z===null)return;let Q=Z;while(Q<J.length&&(J[Q]?.type==="progress"||GZ(J[Q])))Q++;let z=J[Q]?.uuid;if(!z)return;let X=Gz(J,Z);return{firstUnseenUuid:z,count:Math.max(1,X)}}function XW(J){let Z=a0.c(47),{scrollable:Q,bottom:z,overlay:X,bottomFloat:W,modal:q,modalScrollRef:V,scrollRef:Y,dividerYRef:K,hidePill:F,hideSticky:P,newMessageCount:v,onPillClick:M}=J,S=F===void 0?!1:F,Z0=P===void 0?!1:P,d=v===void 0?0:v,{rows:O,columns:C}=FZ(),[_,w]=q0.useState(null),D;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))D={setStickyPrompt:w},Z[0]=D;else D=Z[0];let p=D,J0;if(Z[1]!==Y)J0=(h)=>Y?.current?.subscribe(h)??wz,Z[1]=Y,Z[2]=J0;else J0=Z[2];let E=J0,k;if(Z[3]!==K||Z[4]!==Y)k=()=>{let h=Y?.current,z0=K?.current;if(!h||z0==null)return!1;return h.getScrollTop()+h.getPendingDelta()+h.getViewportHeight()<z0},Z[3]=K,Z[4]=Y,Z[5]=k;else k=Z[5];let H0=q0.useSyncExternalStore(E,k),Y0;if(Z[6]===Symbol.for("react.memo_cache_sentinel"))Y0=[],Z[6]=Y0;else Y0=Z[6];if(q0.useLayoutEffect(Fz,Y0),c0()){let h=Z0?null:_,z0=h!=null&&h!=="clicked"&&X==null?h:null,Q0=h!=null&&X==null,X0;if(Z[7]!==z0)X0=z0&&B(Oz,{text:z0.text,onClick:z0.scrollTo}),Z[7]=z0,Z[8]=X0;else X0=Z[8];let O0=Q0?0:1,T;if(Z[9]!==Q)T=B(yZ,{value:p,children:Q}),Z[9]=Q,Z[10]=T;else T=Z[10];let i;if(Z[11]!==X||Z[12]!==Y||Z[13]!==T||Z[14]!==O0)i=$(GJ,{ref:Y,flexGrow:1,flexDirection:"column",paddingTop:O0,stickyScroll:!0,children:[T,X]}),Z[11]=X,Z[12]=Y,Z[13]=T,Z[14]=O0,Z[15]=i;else i=Z[15];let o;if(Z[16]!==S||Z[17]!==d||Z[18]!==M||Z[19]!==X||Z[20]!==H0)o=!S&&H0&&X==null&&B(Nz,{count:d,onClick:M}),Z[16]=S,Z[17]=d,Z[18]=M,Z[19]=X,Z[20]=H0,Z[21]=o;else o=Z[21];let t;if(Z[22]!==W)t=W!=null&&B(b,{position:"absolute",bottom:0,right:0,opaque:!0,children:W}),Z[22]=W,Z[23]=t;else t=Z[23];let I;if(Z[24]!==i||Z[25]!==o||Z[26]!==t||Z[27]!==X0)I=$(b,{flexGrow:1,flexDirection:"column",overflow:"hidden",children:[X0,i,o,t]}),Z[24]=i,Z[25]=o,Z[26]=t,Z[27]=X0,Z[28]=I;else I=Z[28];let W0,N;if(Z[29]===Symbol.for("react.memo_cache_sentinel"))W0=B(Az,{}),N=B(Pz,{}),Z[29]=W0,Z[30]=N;else W0=Z[29],N=Z[30];let U;if(Z[31]!==z)U=$(b,{flexDirection:"column",flexShrink:0,width:"100%",maxHeight:"50%",children:[W0,N,B(b,{flexDirection:"column",width:"100%",flexGrow:1,overflowY:"hidden",children:z})]}),Z[31]=z,Z[32]=U;else U=Z[32];let R;if(Z[33]!==C||Z[34]!==q||Z[35]!==V||Z[36]!==O)R=q!=null&&B(YJ,{value:{rows:O-QJ-1,columns:C-4,scrollRef:V??null},children:$(b,{position:"absolute",bottom:0,left:0,right:0,maxHeight:O-QJ,flexDirection:"column",overflow:"hidden",opaque:!0,children:[B(b,{flexShrink:0,children:B(g,{color:"permission",children:"▔".repeat(C)})}),B(b,{flexDirection:"column",paddingX:2,flexShrink:0,overflow:"hidden",children:q})]})}),Z[33]=C,Z[34]=q,Z[35]=V,Z[36]=O,Z[37]=R;else R=Z[37];let s;if(Z[38]!==I||Z[39]!==U||Z[40]!==R)s=$(sZ,{children:[I,U,R]}),Z[38]=I,Z[39]=U,Z[40]=R,Z[41]=s;else s=Z[41];return s}let l;if(Z[42]!==z||Z[43]!==q||Z[44]!==X||Z[45]!==Q)l=$(f0,{children:[Q,z,X,q]}),Z[42]=z,Z[43]=q,Z[44]=X,Z[45]=Q,Z[46]=l;else l=Z[46];return l}function Fz(){if(!c0())return;let J=WJ.get(process.stdout);if(!J)return;return J.onHyperlinkClick=Kz,()=>{J.onHyperlinkClick=void 0}}function Kz(J){if(J.startsWith("file:"))try{VJ(Hz(J))}catch{}else BJ(J)}function wz(){}function Nz(J){let Z=a0.c(10),{count:Q,onClick:z}=J,[X,W]=q0.useState(!1),q,V;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=()=>W(!0),V=()=>W(!1),Z[0]=q,Z[1]=V;else q=Z[0],V=Z[1];let Y=X?"userMessageBackgroundHover":"userMessageBackground",K;if(Z[2]!==Q)K=Q>0?`${Q} new ${LZ(Q,"message")}`:"Jump to bottom",Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==Y||Z[5]!==K)F=$(g,{backgroundColor:Y,dimColor:!0,children:[" ",K," ",v0.arrowDown," "]}),Z[4]=Y,Z[5]=K,Z[6]=F;else F=Z[6];let P;if(Z[7]!==z||Z[8]!==F)P=B(b,{position:"absolute",bottom:0,left:0,right:0,justifyContent:"center",children:B(b,{onClick:z,onMouseEnter:q,onMouseLeave:V,children:F})}),Z[7]=z,Z[8]=F,Z[9]=P;else P=Z[9];return P}function Oz(J){let Z=a0.c(8),{text:Q,onClick:z}=J,[X,W]=q0.useState(!1),q=X?"userMessageBackgroundHover":"userMessageBackground",V,Y;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))V=()=>W(!0),Y=()=>W(!1),Z[0]=V,Z[1]=Y;else V=Z[0],Y=Z[1];let K;if(Z[2]!==Q)K=$(g,{color:"subtle",wrap:"truncate-end",children:[v0.pointer," ",Q]}),Z[2]=Q,Z[3]=K;else K=Z[3];let F;if(Z[4]!==z||Z[5]!==q||Z[6]!==K)F=B(b,{flexShrink:0,width:"100%",height:1,paddingRight:1,backgroundColor:q,onClick:z,onMouseEnter:V,onMouseLeave:Y,children:K}),Z[4]=z,Z[5]=q,Z[6]=K,Z[7]=F;else F=Z[7];return F}function Az(){let J=a0.c(4),Z=eZ();if(!Z||Z.suggestions.length===0)return null;let Q;if(J[0]!==Z.maxColumnWidth||J[1]!==Z.selectedSuggestion||J[2]!==Z.suggestions)Q=B(b,{position:"absolute",bottom:"100%",left:0,right:0,paddingX:2,paddingTop:1,flexDirection:"column",opaque:!0,children:B(HJ,{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 Pz(){let J=a0.c(2),Z=ZJ();if(!Z)return null;let Q;if(J[0]!==Z)Q=B(b,{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 a0,q0,QJ=2,yZ;var LJ=L0(()=>{zJ();qz();JJ();qJ();Bz();Wz();p0();Yz();vZ();XJ();CZ();Vz();F0();a0=N0(u0(),1),q0=N0(S0(),1),yZ=q0.createContext({setStickyPrompt:()=>{}})});function FJ(J,Z){for(let Q of J)if(!Z.has(Q))return!1;return!0}var KJ=()=>{};function wJ(J){if(J.type!=="user")return!1;let Z=J.message.content[0];if(Z?.type!=="text")return!1;if(!Z.text.includes(`<${KZ}`))return!1;if(_Z(Z.text,wZ)!=="completed")return!1;return _Z(Z.text,NZ)?.startsWith(NJ)??!1}function OJ(J,Z){if(!c0())return J;if(Z)return J;let Q=[],z=0;while(z<J.length){let X=J[z];if(wJ(X)){let W=0;while(z<J.length&&wJ(J[z]))W++,z++;if(W===1)Q.push(X);else Q.push({...X,message:{role:"user",content:[{type:"text",text:`<${KZ}><${wZ}>completed</${wZ}><${NZ}>${W} background commands completed</${NZ}></${KZ}>`}]}})}else Q.push(X),z++}return Q}var AJ=L0(()=>{Dz();Uz();vZ();OZ()});function PJ(J){return J.type==="system"&&J.subtype==="stop_hook_summary"&&J.hookLabel!==void 0}function DJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(PJ(z)){let X=z.hookLabel,W=[];while(Q<J.length){let q=J[Q];if(!PJ(q)||q.hookLabel!==X)break;W.push(q),Q++}if(W.length===1)Z.push(z);else Z.push({...z,hookCount:W.reduce((q,V)=>q+V.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 UJ=()=>{};function jJ(J){return J.type==="attachment"&&J.attachment.type==="task_status"&&J.attachment.taskType==="in_process_teammate"&&J.attachment.status==="completed"}function MJ(J){let Z=[],Q=0;while(Q<J.length){let z=J[Q];if(jJ(z)){let X=0;while(Q<J.length&&jJ(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 EJ=()=>{};function jz(J){let Z=bJ.get(J);if(!Z)Z=new Set(J.filter((Q)=>Q.renderGroupedToolUse).map((Q)=>Q.name)),bJ.set(J,Z);return Z}function kZ(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 CJ(J,Z,Q=!1){if(Q)return{messages:J};let z=jz(Z),X=new Map;for(let F of J){let P=kZ(F);if(P&&z.has(P.toolName)){let v=`${P.messageId}:${P.toolName}`,M=X.get(v)??[];M.push(F),X.set(v,M)}}let W=new Map,q=new Set;for(let[F,P]of X)if(P.length>=2){W.set(F,P);for(let v of P){let M=kZ(v);if(M)q.add(M.toolUseId)}}let V=new Map;for(let F of J)if(F.type==="user"){for(let P of F.message.content)if(P.type==="tool_result"&&q.has(P.tool_use_id))V.set(P.tool_use_id,F)}let Y=[],K=new Set;for(let F of J){let P=kZ(F);if(P){let v=`${P.messageId}:${P.toolName}`,M=W.get(v);if(M){if(!K.has(v)){K.add(v);let S=M[0],Z0=[];for(let O of M){let C=O.message.content[0].id,_=V.get(C);if(_)Z0.push(_)}let d={type:"grouped_tool_use",toolName:P.toolName,messages:M,results:Z0,displayMessage:S,uuid:`grouped-${S.uuid}`,timestamp:S.timestamp,messageId:P.messageId};Y.push(d)}continue}}if(F.type==="user"){let v=F.message.content.filter((M)=>M.type==="tool_result");if(v.length>0){if(v.every((S)=>q.has(S.tool_use_id)))continue}}Y.push(F)}return{messages:Y}}var bJ;var vJ=L0(()=>{bJ=new WeakMap});function AZ(J){let Z=kJ.get(J);if(Z!==void 0)return Z;let Q=Mz(J).toLowerCase();return kJ.set(J,Q),Q}function Mz(J){let Z="";switch(J.type){case"user":{let X=J.message.content;if(typeof X==="string")Z=_J.has(X)?"":X;else{let W=[];for(let q of X)if(q.type==="text"){if(!_J.has(q.text))W.push(q.text)}else if(q.type==="tool_result")W.push(bz(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[Ez(W.input)];return[]}).join(`
|
|
3
|
+
`);break}case"attachment":{if(J.attachment.type==="relevant_memories")Z=J.attachment.memories.map((X)=>X.content).join(`
|
|
4
|
+
`);else 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(`
|
|
5
|
+
`)}break}case"collapsed_read_search":{if(J.relevantMemories)Z=J.relevantMemories.map((X)=>X.content).join(`
|
|
6
|
+
`);break}default:break}let Q=Z,z=Q.indexOf("<system-reminder>");while(z>=0){let X=Q.indexOf(yJ,z);if(X<0)break;Q=Q.slice(0,z)+Q.slice(X+yJ.length),z=Q.indexOf("<system-reminder>")}return Q}function Ez(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(`
|
|
7
|
+
`)}function bz(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?`
|
|
8
|
+
`+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(`
|
|
9
|
+
`))}return Q.join(`
|
|
10
|
+
`)}var yJ="</system-reminder>",_J,kJ;var IZ=L0(()=>{OZ();_J=new Set([IJ,SJ]),kJ=new WeakMap});function RJ(J){let Z=hJ.c(5),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.type==="assistant"&&Q.message.model&&Q.message.content.some(Cz)))return null;let W=PZ(Q.message.model)+8,q;if(Z[0]!==Q.message.model)q=B(g,{dimColor:!0,children:Q.message.model}),Z[0]=Q.message.model,Z[1]=q;else q=Z[1];let V;if(Z[2]!==W||Z[3]!==q)V=B(b,{minWidth:W,children:q}),Z[2]=W,Z[3]=q,Z[4]=V;else V=Z[4];return V}function Cz(J){return J.type==="text"}var hJ;var xJ=L0(()=>{TJ();p0();F0();hJ=N0(u0(),1)});function uJ(J){let Z=$J.c(10),{message:Q,isTranscriptMode:z}=J;if(!(z&&Q.timestamp&&Q.type==="assistant"&&Q.message.content.some(vz)))return null;let W,q,V;if(Z[0]!==Q.timestamp)q=new Date(Q.timestamp).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!0}),W=b,V=PZ(q),Z[0]=Q.timestamp,Z[1]=W,Z[2]=q,Z[3]=V;else W=Z[1],q=Z[2],V=Z[3];let Y;if(Z[4]!==q)Y=B(g,{dimColor:!0,children:q}),Z[4]=q,Z[5]=Y;else Y=Z[5];let K;if(Z[6]!==W||Z[7]!==V||Z[8]!==Y)K=B(W,{minWidth:V,children:Y}),Z[6]=W,Z[7]=V,Z[8]=Y,Z[9]=K;else K=Z[9];return K}function vz(J){return J.type==="text"}var $J;var fJ=L0(()=>{TJ();p0();F0();$J=N0(u0(),1)});function aJ(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(SZ(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]?.input;if(SZ(W.toolName,q,Q).isCollapsible)continue}return!0}return!1}function _z(J){let Z=iJ.c(64),{message:Q,isUserContinuation:z,hasContentAfter:X,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,streamingToolUseIDs:K,screen:F,canAnimate:P,onOpenRateLimitOptions:v,lastThinkingBlockId:M,latestBashOutputUUID:S,columns:Z0,isLoading:d,lookups:O}=J,C=F==="transcript",_=Q.type==="grouped_tool_use",w=Q.type==="collapsed_read_search",D;if(Z[0]!==X||Z[1]!==Y||Z[2]!==w||Z[3]!==d||Z[4]!==Q)D=w&&(TZ(Q,Y)||d&&!X),Z[0]=X,Z[1]=Y,Z[2]=w,Z[3]=d,Z[4]=Q,Z[5]=D;else D=Z[5];let p=D,J0;if(Z[6]!==w||Z[7]!==_||Z[8]!==Q)J0=_?Q.displayMessage:w?dJ(Q):Q,Z[6]=w,Z[7]=_,Z[8]=Q,Z[9]=J0;else J0=Z[9];let E=J0,k;if(Z[10]!==w||Z[11]!==_||Z[12]!==O||Z[13]!==Q)k=_||w?[]:ZQ(Q,O),Z[10]=w,Z[11]=_,Z[12]=O,Z[13]=Q,Z[14]=k;else k=Z[14];let H0=k,Y0;if(Z[15]!==Y||Z[16]!==w||Z[17]!==_||Z[18]!==O||Z[19]!==Q||Z[20]!==F||Z[21]!==K){let I=_||w?pJ:eJ(Q,O);Y0=tJ(Q,K,Y,I,F,O),Z[15]=Y,Z[16]=w,Z[17]=_,Z[18]=O,Z[19]=Q,Z[20]=F,Z[21]=K,Z[22]=Y0}else Y0=Z[22];let l=Y0,h=!1;if(P)if(_){let I;if(Z[23]!==Y||Z[24]!==Q.messages){let W0;if(Z[26]!==Y)W0=(N)=>{let U=N.message.content[0];return U?.type==="tool_use"&&Y.has(U.id)},Z[26]=Y,Z[27]=W0;else W0=Z[27];I=Q.messages.some(W0),Z[23]=Y,Z[24]=Q.messages,Z[25]=I}else I=Z[25];h=I}else if(w){let I;if(Z[28]!==Y||Z[29]!==Q)I=TZ(Q,Y),Z[28]=Y,Z[29]=Q,Z[30]=I;else I=Z[30];h=I}else{let I;if(Z[31]!==Y||Z[32]!==Q){let W0=g0(Q);I=!W0||Y.has(W0),Z[31]=Y,Z[32]=Q,Z[33]=I}else I=Z[33];h=I}let z0;if(Z[34]!==E||Z[35]!==C)z0=C&&E.type==="assistant"&&E.message.content.some(kz)&&(E.timestamp||E.message.model),Z[34]=E,Z[35]=C,Z[36]=z0;else z0=Z[36];let Q0=z0,X0=!Q0,O0=Q0?void 0:Z0,T;if(Z[37]!==q||Z[38]!==Y||Z[39]!==p||Z[40]!==l||Z[41]!==C||Z[42]!==z||Z[43]!==M||Z[44]!==S||Z[45]!==O||Z[46]!==Q||Z[47]!==v||Z[48]!==H0||Z[49]!==h||Z[50]!==X0||Z[51]!==O0||Z[52]!==W||Z[53]!==V)T=B(nJ,{message:Q,lookups:O,addMargin:X0,containerWidth:O0,tools:W,commands:q,verbose:V,inProgressToolUseIDs:Y,progressMessagesForMessage:H0,shouldAnimate:h,shouldShowDot:!0,isTranscriptMode:C,isStatic:l,onOpenRateLimitOptions:v,isActiveCollapsedGroup:p,isUserContinuation:z,lastThinkingBlockId:M,latestBashOutputUUID:S}),Z[37]=q,Z[38]=Y,Z[39]=p,Z[40]=l,Z[41]=C,Z[42]=z,Z[43]=M,Z[44]=S,Z[45]=O,Z[46]=Q,Z[47]=v,Z[48]=H0,Z[49]=h,Z[50]=X0,Z[51]=O0,Z[52]=W,Z[53]=V,Z[54]=T;else T=Z[54];let i=T;if(!Q0){let I;if(Z[55]!==i)I=B(e0,{children:i}),Z[55]=i,Z[56]=I;else I=Z[56];return I}let o;if(Z[57]!==E||Z[58]!==C)o=$(b,{flexDirection:"row",justifyContent:"flex-end",gap:1,marginTop:1,children:[B(uJ,{message:E,isTranscriptMode:C}),B(RJ,{message:E,isTranscriptMode:C})]}),Z[57]=E,Z[58]=C,Z[59]=o;else o=Z[59];let t;if(Z[60]!==Z0||Z[61]!==i||Z[62]!==o)t=B(e0,{children:$(b,{width:Z0,flexDirection:"column",children:[o,i]})}),Z[60]=Z0,Z[61]=i,Z[62]=o,Z[63]=t;else t=Z[63];return t}function kz(J){return J.type==="text"}function Iz(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 hZ(J).some((X)=>Z.has(X));let Q=g0(J);return!!Q&&Z.has(Q)}function Sz(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 hZ(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=g0(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&&mJ(Z.message))return!1;let X=Iz(J.message,J.streamingToolUseIDs),W=Sz(J.message,J.lookups.resolvedToolUseIDs);if(X||!W)return!1;return!0}var iJ,lJ,rJ;var oJ=L0(()=>{p0();cJ();OZ();yz();xJ();sJ();fJ();gJ();F0();iJ=N0(u0(),1),lJ=N0(S0(),1);rJ=lJ.memo(_z,Tz)});import{relative as pz}from"path";function qQ(J){return lz.filter((Z)=>Z.isActive(J))}var dz,cz,gz,mz,nz,iz,lz;var YQ=L0(()=>{p0();BQ();zJ();Rz();hz();xz();fz();uz();$z();F0();dz={id:"large-memory-files",type:"warning",isActive:(J)=>fZ(J.memoryFiles).length>0,render:(J)=>{let Z=fZ(J.memoryFiles);return B(f0,{children:Z.map((Q)=>{let z=Q.path.startsWith(RZ())?pz(RZ(),Q.path):Q.path;return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large ",B(g,{bold:!0,children:z})," will impact performance (",ZZ(Q.content.length)," chars >"," ",ZZ(VQ),")",B(g,{dimColor:!0,children:" · /memory to edit"})]})]},Q.path)})})}},cz={id:"claude-ai-external-token",type:"warning",isActive:()=>{let J=JZ();return QQ()&&(J.source==="ANTHROPIC_AUTH_TOKEN"||J.source==="apiKeyHelper")},render:()=>{let J=JZ();return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J.source," instead of Claude account subscription token. Either unset ",J.source,", or run `claude /logout`."]})]})}},gz={id:"api-key-conflict",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return!!JQ()&&(J==="ANTHROPIC_API_KEY"||J==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0});return $(b,{flexDirection:"row",marginTop:1,children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Using ",J," instead of Anthropic Console key. Either unset ",J,", or run `claude /logout`."]})]})}},mz={id:"both-auth-methods",type:"warning",isActive:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return J!=="none"&&Z.source!=="none"&&!(J==="apiKeyHelper"&&Z.source==="apiKeyHelper")},render:()=>{let{source:J}=QZ({skipRetrievingKeyFromApiKeyHelper:!0}),Z=JZ();return $(b,{flexDirection:"column",marginTop:1,children:[$(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Auth conflict: Both a token (",Z.source,") and an API key (",J,") are set. This may lead to unexpected behavior."]})]}),$(b,{flexDirection:"column",marginLeft:3,children:[$(g,{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"]}),$(g,{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.`]})]})]})}},nz={id:"large-agent-descriptions",type:"warning",isActive:(J)=>{return uZ(J.agentDefinitions)>$Z},render:(J)=>{let Z=uZ(J.agentDefinitions);return $(b,{flexDirection:"row",children:[B(g,{color:"warning",children:v0.warning}),$(g,{color:"warning",children:["Large cumulative agent descriptions will impact performance (~",ZZ(Z)," tokens >"," ",ZZ($Z),")",B(g,{dimColor:!0,children:" · /agents to manage"})]})]})}},iz={id:"jetbrains-plugin-install",type:"info",isActive:(J)=>{if(!XQ())return!1;if(!(J.config.autoInstallIdeExtension??!0))return!1;let Q=xZ();return Q!==null&&!zQ(Q)},render:()=>{let J=xZ(),Z=WQ(J);return $(b,{flexDirection:"row",gap:1,marginLeft:1,children:[B(g,{color:"ide",children:v0.arrowUp}),$(g,{children:["Install the ",B(g,{color:"ide",children:Z})," plugin from the JetBrains Marketplace:"," ",B(g,{bold:!0,children:"https://docs.claude.com/s/claude-code-jetbrains"})]})]})}},lz=[dz,nz,cz,gz,mz,iz]});async function az(){if(zZ)return zZ;return zZ=KQ().then((J)=>{XZ=J}).finally(()=>{zZ=null}),zZ}function LQ(J){let Z=GQ.c(8),{agentDefinitions:Q}=J===void 0?{}:J,[z,X]=r0.useState(XZ),W;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))W=()=>{if(XZ.length>0){X(XZ);return}az().then(()=>{X(XZ)})},Z[0]=W;else W=Z[0];r0.useEffect(W,[W]);let V={config:DZ(),agentDefinitions:Q,memoryFiles:z},Y=qQ(V);if(Y.length===0)return null;let K=b,F="column",P=1,v=Y.map((S)=>B(r0.Fragment,{children:S.render(V)},S.id)),M;if(Z[1]!==K||Z[2]!==v)M=B(K,{flexDirection:F,paddingLeft:P,children:v}),Z[1]=K,Z[2]=v,Z[3]=M;else M=Z[3];return M}var GQ,r0,XZ,zZ=null;var FQ=L0(()=>{p0();BQ();HQ();YQ();F0();GQ=N0(u0(),1),r0=N0(S0(),1),XZ=[]});function wQ(J,Z,Q){let z=m.useRef(new Map),X=m.useRef(0),W=m.useRef(0),q=m.useRef({arr:new Float64Array(0),version:-1,n:-1}),V=m.useRef(new Map),Y=m.useRef(new Map),K=m.useRef(Q),F=m.useRef(!1),P=m.useRef(null),v=m.useRef(0);if(K.current!==Q){let N=K.current/Q;K.current=Q;for(let[U,R]of z.current)z.current.set(U,Math.max(1,Math.round(R*N)));X.current++,F.current=!0,v.current=2}let M=v.current>0?P.current:null,S=m.useRef(0),Z0=m.useRef(null),d=m.useCallback((N)=>J.current?.subscribe(N)??sz,[J]);m.useSyncExternalStore(d,()=>{let N=J.current;if(!N)return NaN;let U=N.getScrollTop()+N.getPendingDelta(),R=Math.floor(U/tz);return N.isSticky()?~R:R});let O=J.current?.getScrollTop()??-1,C=J.current?.getPendingDelta()??0,_=J.current?.getViewportHeight()??0,w=J.current?.isSticky()??!0;m.useMemo(()=>{let N=new Set(Z),U=!1;for(let R of z.current.keys())if(!N.has(R))z.current.delete(R),U=!0;for(let R of Y.current.keys())if(!N.has(R))Y.current.delete(R);if(U)X.current++},[Z]);let D=Z.length;if(q.current.version!==X.current||q.current.n!==D){let N=q.current.arr.length>=D+1?q.current.arr:new Float64Array(D+1);N[0]=0;for(let U=0;U<D;U++)N[U+1]=N[U]+(z.current.get(Z[U])??rz);q.current={arr:N,version:X.current,n:D}}let p=q.current.arr,J0=p[D],E,k;if(M)[E,k]=M,E=Math.min(E,D),k=Math.min(k,D);else if(_===0||O<0)E=Math.max(0,D-oz),k=D;else{if(w){let V0=_+o0;E=D;while(E>0&&J0-p[E-1]<V0)E--;k=D}else{let V0=S.current,G0=_*3,M0=Math.min(O,O+C),n0=Math.max(O,O+C),y0=n0-M0,D0=y0>G0?C<0?n0-G0:M0:M0,T0=D0+Math.min(y0,G0),i0=Math.max(0,D0-V0),h0=T0-V0,b0=i0-o0;{let H=0,L=D;while(H<L){let A=H+L>>1;if(p[A+1]<=b0)H=A+1;else L=A}E=H}{let H=P.current;if(H&&H[0]<E)for(let L=H[0];L<Math.min(E,H[1]);L++){let A=Z[L];if(V.current.has(A)&&!z.current.has(A)){E=L;break}}}let l0=_+2*o0,t0=Math.min(D,E+WZ),_0=0;k=E;while(k<t0&&(_0<l0||p[k]<h0+_+o0))_0+=z.current.get(Z[k])??pZ,k++}let N=_+2*o0,U=Math.max(0,k-WZ),R=0;for(let V0=E;V0<k;V0++)R+=z.current.get(Z[V0])??pZ;while(E>U&&R<N)E--,R+=z.current.get(Z[E])??pZ;let s=P.current,A0=Math.abs(O-W.current)+Math.abs(C);if(s&&A0>_*2){let[V0,G0]=s;if(E<V0-qZ)E=V0-qZ;if(k>G0+qZ)k=G0+qZ;if(E>k)k=Math.min(E+qZ,D)}W.current=O}if(v.current>0)v.current--;else P.current=[E,k];let H0=m.useDeferredValue(E),Y0=m.useDeferredValue(k),l=E<H0?H0:E,h=k>Y0?Y0:k;if(l>h||w)l=E,h=k;if(C>0)h=k;if(h-l>WZ){let N=(p[l]+p[h])/2;if(O-S.current<N)h=l+WZ;else l=h-WZ}let z0=S.current,Q0=p[l],X0=l===0?0:Q0+z0,O0=h===D?1/0:Math.max(Q0,p[h]-_)+z0;m.useLayoutEffect(()=>{if(w)J.current?.setClampBounds(void 0,void 0);else J.current?.setClampBounds(X0,O0)}),m.useLayoutEffect(()=>{let N=Z0.current?.yogaNode;if(N&&N.getComputedWidth()>0)S.current=N.getComputedTop();if(F.current){F.current=!1;return}let U=!1;for(let[R,s]of V.current){let A0=s.yogaNode;if(!A0)continue;let V0=A0.getComputedHeight(),G0=z.current.get(R);if(V0>0){if(G0!==V0)z.current.set(R,V0),U=!0}else if(A0.getComputedWidth()>0&&G0!==0)z.current.set(R,0),U=!0}if(U)X.current++});let T=m.useCallback((N)=>{let U=Y.current.get(N);if(!U)U=(R)=>{if(R)V.current.set(N,R);else{let s=V.current.get(N)?.yogaNode;if(s&&!F.current){let A0=s.getComputedHeight();if((A0>0||s.getComputedWidth()>0)&&z.current.get(N)!==A0)z.current.set(N,A0),X.current++}V.current.delete(N)}},Y.current.set(N,U);return U},[]),i=m.useCallback((N)=>{let U=V.current.get(Z[N])?.yogaNode;if(!U||U.getComputedWidth()===0)return-1;return U.getComputedTop()},[Z]),o=m.useCallback((N)=>V.current.get(Z[N])??null,[Z]),t=m.useCallback((N)=>z.current.get(Z[N]),[Z]),I=m.useCallback((N)=>{let U=q.current;if(N<0||N>=U.n)return;J.current?.scrollTo(U.arr[N]+S.current)},[J]),W0=J0-p[h];return{range:[l,h],topSpacer:Q0,bottomSpacer:W0,measureRef:T,spacerRef:Z0,offsets:p,getItemTop:i,getItemElement:o,getItemHeight:t,scrollToIndex:I}}var m,rz=3,o0=80,oz=30,tz,pZ=1,WZ=300,qZ=25,sz=()=>{};var NQ=L0(()=>{m=N0(S0(),1),tz=o0>>1});function QX(J){let Z=OQ.get(J);if(Z!==void 0)return Z;let Q=AZ(J);return OQ.set(J,Q),Q}function XX(J){let Z=AQ.get(J);if(Z!==void 0)return Z;let Q=WX(J);return AQ.set(J,Q),Q}function WX(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(`
|
|
11
|
+
`)}if(Z===null)return null;let Q=MQ(Z);if(Q.startsWith("<")||Q==="")return null;return Q}function qX(J){let Z=bQ.c(30),{itemKey:Q,msg:z,idx:X,measureRef:W,expanded:q,hovered:V,clickable:Y,onClickK:K,onEnterK:F,onLeaveK:P,renderItem:v}=J,M;if(Z[0]!==Q||Z[1]!==W)M=W(Q),Z[0]=Q,Z[1]=W,Z[2]=M;else M=Z[2];let S=q?"userMessageBackgroundHover":void 0,Z0=q?1:void 0,d;if(Z[3]!==Y||Z[4]!==z||Z[5]!==K)d=Y?(J0)=>K(z,J0.cellIsBlank):void 0,Z[3]=Y,Z[4]=z,Z[5]=K,Z[6]=d;else d=Z[6];let O;if(Z[7]!==Y||Z[8]!==Q||Z[9]!==F)O=Y?()=>F(Q):void 0,Z[7]=Y,Z[8]=Q,Z[9]=F,Z[10]=O;else O=Z[10];let C;if(Z[11]!==Y||Z[12]!==Q||Z[13]!==P)C=Y?()=>P(Q):void 0,Z[11]=Y,Z[12]=Q,Z[13]=P,Z[14]=C;else C=Z[14];let _=V&&!q?"text":void 0,w;if(Z[15]!==X||Z[16]!==z||Z[17]!==v)w=v(z,X),Z[15]=X,Z[16]=z,Z[17]=v,Z[18]=w;else w=Z[18];let D;if(Z[19]!==_||Z[20]!==w)D=B(DQ.Provider,{value:_,children:w}),Z[19]=_,Z[20]=w,Z[21]=D;else D=Z[21];let p;if(Z[22]!==M||Z[23]!==S||Z[24]!==Z0||Z[25]!==d||Z[26]!==O||Z[27]!==C||Z[28]!==D)p=B(b,{ref:M,flexDirection:"column",backgroundColor:S,paddingBottom:Z0,onClick:d,onMouseEnter:O,onMouseLeave:C,children:D}),Z[22]=M,Z[23]=S,Z[24]=Z0,Z[25]=d,Z[26]=O,Z[27]=C,Z[28]=D,Z[29]=p;else p=Z[29];return p}function CQ({messages:J,scrollRef:Z,columns:Q,itemKey:z,renderItem:X,onItemClick:W,isItemClickable:q,isItemExpanded:V,extractSearchText:Y=QX,trackStickyPrompt:K,selectedIndex:F,cursorNavRef:P,setCursor:v,jumpRef:M,onSearchMatchesChange:S,scanElement:Z0,setPositions:d}){let O=y.useRef([]),C=y.useRef(J),_=y.useRef(z);if(_.current!==z||J.length<O.current.length||J[0]!==C.current[0])O.current=J.map((H)=>z(H));else for(let H=O.current.length;H<J.length;H++)O.current.push(z(J[H]));C.current=J,_.current=z;let w=O.current,{range:D,topSpacer:p,bottomSpacer:J0,measureRef:E,spacerRef:k,offsets:H0,getItemTop:Y0,getItemElement:l,getItemHeight:h,scrollToIndex:z0}=wQ(Z,w,Q),[Q0,X0]=D,O0=y.useCallback((H)=>{if(h(H)===0)return!1;return UQ(J[H])},[h,J]);y.useImperativeHandle(P,()=>{let H=(u)=>v?.({uuid:u.uuid,msgType:u.type,expanded:!1,toolName:jQ(u)?.name}),L=F??-1,A=(u,n,r=O0)=>{for(let c=u;c>=0&&c<J.length;c+=n)if(r(c))return H(J[c]),!0;return!1},x=(u)=>O0(u)&&J[u].type==="user";return{enterCursor:()=>A(J.length-1,-1,x),navigatePrev:()=>A(L-1,-1),navigateNext:()=>{if(A(L+1,1))return;Z.current?.scrollToBottom(),v?.(null)},navigatePrevUser:()=>A(L-1,-1,x),navigateNextUser:()=>A(L+1,1,x),navigateTop:()=>A(0,1),navigateBottom:()=>A(J.length-1,-1),getSelected:()=>L>=0?J[L]??null:null}},[J,F,v,O0]);let T=y.useRef({offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0});T.current={offsets:H0,start:Q0,getItemElement:l,getItemTop:Y0,messages:J,scrollToIndex:z0},y.useEffect(()=>{if(F===void 0)return;let H=T.current,L=H.getItemElement(F);if(L)Z.current?.scrollToElement(L,1);else H.scrollToIndex(F)},[F,Z]);let i=y.useRef(null),o=y.useRef({msgIdx:-1,positions:[]}),t=y.useRef(-1),I=y.useRef(0),W0=y.useRef(0),N=y.useRef(()=>{}),U=y.useRef(()=>{}),R=y.useRef({matches:[],ptr:0,screenOrd:0,prefixSum:[]}),s=y.useRef(-1),A0=y.useRef(!1);function V0(H){let L=T.current.getItemTop(H);return Math.max(0,L-dZ)}function G0(H){let L=Z.current,{msgIdx:A,positions:x}=o.current;if(!L||x.length===0||A<0){d?.(null);return}let u=Math.max(0,Math.min(H,x.length-1)),n=x[u],r=T.current.getItemTop(A),c=L.getViewportTop(),e=r-L.getScrollTop(),R0=L.getViewportHeight(),P0=c+e+n.row;if(P0<c||P0>=c+R0)L.scrollTo(Math.max(0,r+n.row-dZ)),e=r-L.getScrollTop(),P0=c+e+n.row;d?.({positions:x,rowOffset:c+e,currentIdx:u});let E0=R.current,U0=E0.prefixSum.at(-1)??0,j0=(E0.prefixSum[E0.ptr]??0)+u+1;S?.(U0,j0),m0(`highlight(i=${A}, ord=${u}/${x.length}): pos={row:${n.row},col:${n.col}} lo=${e} screenRow=${P0} badge=${j0}/${U0}`)}U.current=G0;let[M0,n0]=y.useState(0),y0=y.useCallback(()=>n0((H)=>H+1),[]);y.useEffect(()=>{let H=i.current;if(!H)return;let{idx:L,wantLast:A,tries:x}=H,u=Z.current;if(!u)return;let{getItemElement:n,getItemTop:r,scrollToIndex:c}=T.current,e=n(L),R0=e?.yogaNode?.getComputedHeight()??0;if(!e||R0===0){if(x>1){i.current=null,m0(`seek(i=${L}): no mount after scrollToIndex, skip`),N.current(A?-1:1);return}i.current={idx:L,wantLast:A,tries:x+1},c(L),y0();return}i.current=null,u.scrollTo(Math.max(0,r(L)-dZ));let P0=Z0?.(e)??[];if(o.current={msgIdx:L,positions:P0},m0(`seek(i=${L} t=${x}): ${P0.length} positions`),P0.length===0){if(++I.current>20){I.current=0;return}N.current(A?-1:1);return}I.current=0;let E0=A?P0.length-1:0;R.current.screenOrd=E0,t.current=-1,U.current(E0);let U0=W0.current;if(U0)W0.current=0,N.current(U0)},[M0]);function D0(H,L){let A=Z.current;if(!A)return;let x=T.current,{getItemElement:u,scrollToIndex:n}=x;if(H<0||H>=x.messages.length)return;d?.(null),o.current={msgIdx:-1,positions:[]},i.current={idx:H,wantLast:L,tries:0};let r=u(H),c=r?.yogaNode?.getComputedHeight()??0;if(r&&c>0)A.scrollTo(V0(H));else n(H);y0()}function T0(H){let L=R.current,{matches:A,prefixSum:x}=L,u=x.at(-1)??0;if(A.length===0)return;if(i.current){W0.current=H;return}if(t.current<0)t.current=L.ptr;let{positions:n}=o.current,r=L.screenOrd+H;if(r>=0&&r<n.length){L.screenOrd=r,G0(r),t.current=-1;return}let c=(L.ptr+H+A.length)%A.length;if(c===t.current){d?.(null),t.current=-1,m0(`step: wraparound at ptr=${c}, all ${A.length} msgs phantoms`);return}L.ptr=c,L.screenOrd=0,D0(A[c],H<0);let e=H<0?x[c+1]??u:x[c]+1;S?.(u,e)}N.current=T0,y.useImperativeHandle(M,()=>({jumpToIndex:(H)=>{let L=Z.current;if(L)L.scrollTo(V0(H))},setSearchQuery:(H)=>{i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1,d?.(null);let L=H.toLowerCase(),A=[],x=[0];if(L){let U0=T.current.messages;for(let j0=0;j0<U0.length;j0++){let k0=Y(U0[j0]),G=k0.indexOf(L),j=0;while(G>=0)j++,G=k0.indexOf(L,G+L.length);if(j>0)A.push(j0),x.push(x.at(-1)+j)}}let u=x.at(-1),n=0,r=Z.current,{offsets:c,start:e,getItemTop:R0}=T.current,P0=R0(e),E0=P0>=0?P0-c[e]:0;if(A.length>0&&r){let U0=s.current>=0?s.current:r.getScrollTop(),j0=1/0;for(let k0=0;k0<A.length;k0++){let G=Math.abs(E0+c[A[k0]]-U0);if(G<=j0)j0=G,n=k0}m0(`setSearchQuery('${H}'): ${A.length} msgs · ptr=${n} msgIdx=${A[n]} curTop=${U0} origin=${E0}`)}if(R.current={matches:A,ptr:n,screenOrd:0,prefixSum:x},A.length>0)D0(A[n],!0);else if(s.current>=0&&r)r.scrollTo(s.current);S?.(u,A.length>0?x[n+1]??u:0)},nextMatch:()=>T0(1),prevMatch:()=>T0(-1),setAnchor:()=>{let H=Z.current;if(H)s.current=H.getScrollTop()},disarmSearch:()=>{d?.(null),i.current=null,o.current={msgIdx:-1,positions:[]},t.current=-1},warmSearchIndex:async()=>{if(A0.current)return 0;let H=T.current.messages,L=500,A=0,x=performance.now();for(let n=0;n<H.length;n+=L){await PQ(0);let r=performance.now(),c=Math.min(n+L,H.length);for(let e=n;e<c;e++)Y(H[e]);A+=performance.now()-r}let u=Math.round(performance.now()-x);return m0(`warmSearchIndex: ${H.length} msgs · work=${Math.round(A)}ms wall=${u}ms chunks=${Math.ceil(H.length/L)}`),A0.current=!0,Math.round(A)}}),[Z]);let[i0,h0]=y.useState(null),b0=y.useRef({onItemClick:W,setHoveredKey:h0});b0.current={onItemClick:W,setHoveredKey:h0};let l0=y.useCallback((H,L)=>{let A=b0.current;if(!L&&A.onItemClick)A.onItemClick(H)},[]),t0=y.useCallback((H)=>{b0.current.setHoveredKey(H)},[]),_0=y.useCallback((H)=>{b0.current.setHoveredKey((L)=>L===H?null:L)},[]);return $(f0,{children:[B(b,{ref:k,height:p,flexShrink:0}),J.slice(Q0,X0).map((H,L)=>{let A=Q0+L,x=w[A],u=!!W&&(q?.(H)??!0),n=u&&i0===x,r=V?.(H);return B(qX,{itemKey:x,msg:H,idx:A,measureRef:E,expanded:r,hovered:n,clickable:u,onClickK:l0,onEnterK:t0,onLeaveK:_0,renderItem:X},x)}),J0>0&&B(b,{height:J0,flexShrink:0}),K&&B(VX,{messages:J,start:Q0,end:X0,offsets:H0,getItemTop:Y0,getItemElement:l,scrollRef:Z})]})}function VX({messages:J,start:Z,end:Q,offsets:z,getItemTop:X,getItemElement:W,scrollRef:q}){let{setStickyPrompt:V}=y.useContext(yZ),Y=y.useCallback((w)=>q.current?.subscribe(w)??YX,[q]);y.useSyncExternalStore(Y,()=>{let w=q.current;if(!w)return NaN;let D=w.getScrollTop()+w.getPendingDelta();return w.isSticky()?-1-D:D});let K=q.current?.isSticky()??!0,F=Math.max(0,(q.current?.getScrollTop()??0)+(q.current?.getPendingDelta()??0)),P=Z,v=-1;for(let w=Q-1;w>=Z;w--){let D=X(w);if(D>=0){if(D<F)break;v=D}P=w}let M=-1,S=null;if(P>0&&!K)for(let w=P-1;w>=0;w--){let D=XX(J[w]);if(D===null)continue;let p=X(w);if(p>=0&&p+1>=F)continue;M=w,S=D;break}let Z0=v>=0?v-z[P]:0,d=M>=0?Math.max(0,Z0+z[M]):-1,O=y.useRef({idx:-1,tries:0}),C=y.useRef("none"),_=y.useRef(-1);return y.useEffect(()=>{if(O.current.idx>=0)return;if(C.current==="armed"){C.current="force";return}let w=C.current==="force";if(C.current="none",!w&&_.current===M)return;if(_.current=M,S===null){V(null);return}let D=S.trimStart(),p=D.search(/\n\s*\n/),J0=(p>=0?D.slice(0,p):D).slice(0,zX).replace(/\s+/g," ").trim();if(J0===""){V(null);return}let E=M,k=d;V({text:J0,scrollTo:()=>{V("clicked"),C.current="armed";let H0=W(E);if(H0)q.current?.scrollToElement(H0,1);else q.current?.scrollTo(k),O.current={idx:E,tries:0}}})}),y.useEffect(()=>{if(O.current.idx<0)return;let w=W(O.current.idx);if(w)q.current?.scrollToElement(w,1),O.current={idx:-1,tries:0};else if(++O.current.tries>5)O.current={idx:-1,tries:0}}),null}var bQ,y,dZ=3,OQ,zX=500,AQ,YX=()=>{};var vQ=L0(()=>{NQ();p0();JX();LJ();ez();ZX();IZ();EQ();F0();bQ=N0(u0(),1),y=N0(S0(),1),OQ=new WeakMap;AQ=new WeakMap});function EX(J,Z){let Q=new Set(Z),z=new Set;return J.filter((X)=>{if(X.type==="system")return X.subtype!=="api_metrics";let W=X.message?.content[0];if(X.type==="assistant"){if(X.isApiErrorMessage)return!0;if(W?.type==="tool_use"&&W.name&&Q.has(W.name)){if("id"in W)z.add(W.id);return!0}return!1}if(X.type==="user"){if(W?.type==="tool_result")return W.tool_use_id!==void 0&&z.has(W.tool_use_id);return!X.isMeta}if(X.type==="attachment"){let q=X.attachment;return q?.type==="queued_command"&&q.commandMode==="prompt"&&!q.isMeta&&q.origin===void 0}return!1})}function bX(J,Z){let Q=new Set(Z),z=new Set,X=[],W=0;for(let q=0;q<J.length;q++){let V=J[q],Y=V.message?.content[0];if(V.type==="user"&&Y?.type!=="tool_result"&&!V.isMeta){W++;continue}if(V.type==="assistant"){if(Y?.type==="text")X[q]=W;else if(Y?.type==="tool_use"&&Y.name&&Q.has(Y.name))z.add(W)}}if(z.size===0)return J;return J.filter((q,V)=>{let Y=X[V];return Y===void 0||!z.has(Y)})}function yX(J,Z,Q=CX,z=vX){let X=Z.current,W=X?J.findIndex((Y)=>Y.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 V=J[q];if(V&&(X?.uuid!==V.uuid||X.idx!==q))Z.current={uuid:V.uuid,idx:q};else if(!V&&X)Z.current=null;return q}function _Q(J){return(J.type==="assistant"||J.type==="user"?g0(J):null)??J.uuid}function IX(J,Z){if(J.size!==Z.size)return!1;for(let Q of J)if(!Z.has(Q))return!1;return!0}function tJ(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 V=J.message.content[0];if(V?.type==="server_tool_use")return W.resolvedToolUseIDs.has(V.id)}let q=g0(J);if(!q)return!0;if(Z.has(q))return!1;if(Q.has(q))return!1;if(oQ(q,"PostToolUse",W))return!1;return FJ(z,W.resolvedToolUseIDs)}case"system":return J.subtype!=="api_error";case"grouped_tool_use":return J.messages.every((V)=>{let Y=V.message.content[0];return Y?.type==="tool_use"&&W.resolvedToolUseIDs.has(Y.id)});case"collapsed_read_search":return!1}}var mQ,YZ,f,UX,jX=null,yQ=null,MX=null,cZ=30,CX=200,vX=50,_X=({messages:J,tools:Z,commands:Q,verbose:z,toolJSX:X,toolUseConfirmQueue:W,inProgressToolUseIDs:q,isMessageSelectorVisible:V,conversationId:Y,screen:K,streamingToolUses:F,showAllInTranscript:P=!1,agentDefinitions:v,onOpenRateLimitOptions:M,hideLogo:S=!1,isLoading:Z0,hidePastThinking:d=!1,streamingThinking:O,hasStreamingText:C=!1,isBriefOnly:_=!1,unseenDivider:w,scrollRef:D,trackStickyPrompt:p,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,disableRenderCap:Y0=!1,cursor:l=null,setCursor:h,cursorNavRef:z0,renderRange:Q0})=>{let{columns:X0}=FZ(),O0=RQ("transcript:toggleShowAll","Transcript","Ctrl+E"),T=f.useMemo(()=>nZ(J).filter(nQ),[J]),i=f.useMemo(()=>{if(!O)return!1;if(O.isStreaming)return!0;if(O.streamingEndedAt)return Date.now()-O.streamingEndedAt<30000;return!1},[O]),o=f.useMemo(()=>{if(!d)return null;if(i)return"streaming";for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="assistant"){let B0=j.message.content;for(let a=B0.length-1;a>=0;a--)if(B0[a]?.type==="thinking")return`${j.uuid}:${a}`}else if(j?.type==="user"){if(!j.message.content.some((a)=>a.type==="tool_result"))return"no-thinking"}}return null},[T,d,i]),t=f.useMemo(()=>{for(let G=T.length-1;G>=0;G--){let j=T[G];if(j?.type==="user"){let B0=j.message.content;for(let a of B0)if(a.type==="text"){let w0=a.text;if(w0.startsWith("<bash-stdout")||w0.startsWith("<bash-stderr"))return j.uuid}}}return null},[T]),I=f.useMemo(()=>tQ(T),[T]),W0=f.useMemo(()=>F.filter((G)=>!q.has(G.contentBlock.id)&&!I.has(G.contentBlock.id)),[F,q,I]),N=f.useMemo(()=>W0.flatMap((G)=>{let j=gQ({content:[G.contentBlock]});return j.uuid=TQ(G.contentBlock.id,0),nZ([j])}),[W0]),U=K==="transcript",R=f.useMemo(()=>IQ(process.env.CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL),[]),s=D!=null&&!R,A0=U&&!P&&!s,V0=f.useRef(null),{collapsed:G0,lookups:M0,hasTruncatedMessages:n0,hiddenMessageCount:y0}=f.useMemo(()=>{let G=z||c0()?T:iQ(T,{includeSnipped:!0}),j=aQ(G.filter((I0)=>I0.type!=="progress").filter((I0)=>!GZ(I0)).filter((I0)=>lQ(I0,U)),N),B0=[yQ,MX].filter((I0)=>I0!==null),a=[yQ].filter((I0)=>I0!==null),w0=B0.length>0&&!U?_?EX(j,B0):a.length>0?bX(j,a):j:j,C0=A0?w0.slice(-cZ):w0,VZ=A0&&w0.length>cZ,{messages:d0}=CJ(C0,Z,z),sQ=OJ(DJ(MJ(cQ(d0,Z))),z),eQ=rQ(T,C0),Zz=j.length-cZ;return{collapsed:sQ,lookups:eQ,hasTruncatedMessages:VZ,hiddenMessageCount:Zz}},[z,T,U,N,A0,Z,_]),D0=f.useMemo(()=>{let j=!s&&!Y0?yX(G0,V0):0;return Q0?G0.slice(Q0[0],Q0[1]):j>0?G0.slice(j):G0},[G0,Q0,s,Y0]),T0=f.useMemo(()=>new Set(F.map((G)=>G.contentBlock.id)),[F]),i0=$Q((G)=>G.tasks),h0=M0.asyncLaunchedToolUseIDs,b0=f.useMemo(()=>{if(h0.size===0)return null;let G=new Set;for(let[j,B0]of h0){let a=i0?.[B0]?.status;if(a==="running"||a==="requested"||a==="queued")G.add(j)}return G.size>0?G:null},[i0,h0]),l0=f.useMemo(()=>{if(!b0)return q;let G=new Set(q);for(let j of b0)G.add(j);return G},[q,b0]),t0=f.useMemo(()=>{if(!w)return-1;let G=w.firstUnseenUuid.slice(0,24);return D0.findIndex((j)=>j.uuid.slice(0,24)===G)},[w,D0]),_0=f.useMemo(()=>{if(!l)return-1;return D0.findIndex((G)=>G.uuid===l.uuid)},[l,D0]),[H,L]=f.useState(()=>new Set),A=f.useCallback((G)=>{let j=_Q(G);L((B0)=>{let a=new Set(B0);if(a.has(j))a.delete(j);else a.add(j);return a})},[]),x=f.useCallback((G)=>H.size>0&&H.has(_Q(G)),[H]),u=f.useRef(M0);u.current=M0;let n=f.useCallback((G)=>{if(G.type==="collapsed_read_search")return!0;if(G.type==="assistant"){let w0=G.message.content[0];return w0!=null&&xQ(w0)&&w0.type==="advisor_tool_result"&&w0.content.type==="advisor_result"}if(G.type!=="user")return!1;let j=G.message.content[0];if(j?.type!=="tool_result"||j.is_error||!G.toolUseResult)return!1;let B0=u.current.toolUseByToolUseID.get(j.tool_use_id)?.name;return(B0?mZ(Z,B0):void 0)?.isResultTruncated?.(G.toolUseResult)??!1},[Z]),r=(!X||!!X.shouldContinueAnimation)&&!W.length&&!V,c=l0.size>0,{progress:e}=hQ(),R0=f.useRef(null),P0=DZ().terminalProgressBarEnabled&&!kQ()&&!(jX?.isProactiveActive()??!1);f.useEffect(()=>{let G=P0?c?"indeterminate":"completed":null;if(R0.current===G)return;R0.current=G,e(G)},[e,P0,c]),f.useEffect(()=>{return()=>e(null)},[e]);let E0=f.useCallback((G)=>`${G.uuid}-${Y}`,[Y]),U0=(G,j)=>{let B0=j>0?D0[j-1]?.type:void 0,a=G.type==="user"&&B0==="user",w0=G.type==="collapsed_read_search"&&(C||aJ(D0,j,Z,T0)),C0=E0(G),VZ=B(rJ,{message:G,isUserContinuation:a,hasContentAfter:w0,tools:Z,commands:Q,verbose:z||x(G)||l?.expanded===!0&&j===_0,inProgressToolUseIDs:l0,streamingToolUseIDs:T0,screen:K,canAnimate:r,onOpenRateLimitOptions:M,lastThinkingBlockId:o,latestBashOutputUUID:t,columns:X0,isLoading:Z0,lookups:M0},C0),d0=B(uQ.Provider,{value:j===_0,children:VZ},C0);if(w&&j===t0)return[B(b,{marginTop:1,children:B(UZ,{title:`${w.count} new ${LZ(w.count,"message")}`,width:X0,color:"inactive"})},"unseen-divider"),d0];return d0},j0=f.useRef(new WeakMap),k0=f.useCallback((G)=>{let j=j0.current.get(G);if(j!==void 0)return j;let B0=AZ(G);if(G.type==="user"&&G.toolUseResult&&Array.isArray(G.message.content)){let w0=G.message.content.find((C0)=>C0.type==="tool_result");if(w0&&"tool_use_id"in w0){let C0=M0.toolUseByToolUseID.get(w0.tool_use_id),d0=(C0&&mZ(Z,C0.name))?.extractSearchText?.(G.toolUseResult);if(d0!==void 0)B0=d0}}let a=B0.toLowerCase();return j0.current.set(G,a),a},[Z,M0]);return $(f0,{children:[!S&&!(Q0&&Q0[0]>0)&&B(UX,{agentDefinitions:v}),n0&&B(UZ,{title:`${O0} to show ${gZ.bold(y0)} previous messages`,width:X0}),U&&P&&y0>0&&!Y0&&B(UZ,{title:`${O0} to hide ${gZ.bold(y0)} previous messages`,width:X0}),s?B(fQ.Provider,{value:!0,children:B(CQ,{messages:D0,scrollRef:D,columns:X0,itemKey:E0,renderItem:U0,onItemClick:A,isItemClickable:n,isItemExpanded:x,trackStickyPrompt:p,selectedIndex:_0>=0?_0:void 0,cursorNavRef:z0,setCursor:h,jumpRef:J0,onSearchMatchesChange:E,scanElement:k,setPositions:H0,extractSearchText:k0})}):D0.flatMap(U0),C&&!_&&B(kX,{}),i&&O&&!_&&B(b,{marginTop:1,children:B(dQ,{param:{type:"thinking",thinking:O.thinking},addMargin:!1,isTranscriptMode:!0,verbose:z,hideInTranscript:!1})})]})},kX=()=>{let J=iZ();if(!J)return null;return B(b,{alignItems:"flex-start",flexDirection:"row",marginTop:1,width:"100%",children:$(b,{flexDirection:"row",children:[B(b,{minWidth:2,children:B(g,{color:"text",children:SQ})}),B(b,{flexDirection:"column",children:B(pQ,{children:J})})]})})},g8;var sJ=L0(()=>{GX();KJ();BX();LX();qJ();KX();p0();wX();AX();FX();OX();AJ();UJ();cJ();EJ();HQ();HX();vZ();vJ();OZ();XJ();IZ();NX();PX();lZ();oJ();EQ();DX();CZ();gJ();FQ();vQ();F0();mQ=N0(u0(),1),YZ=N0(S0(),1),f=N0(S0(),1),UX=YZ.memo(function(Z){let Q=mQ.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=B(e0,{children:$(b,{flexDirection:"column",gap:1,children:[X,B(YZ.Suspense,{fallback:null,children:B(LQ,{agentDefinitions:z})})]})}),Q[1]=z,Q[2]=W;else W=Q[2];return W});g8=YZ.memo(_X,(J,Z)=>{let Q=Object.keys(J);for(let z of Q){if(z==="onOpenRateLimitOptions"||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,V)=>q.contentBlock===W[V]?.contentBlock))continue}if(z==="inProgressToolUseIDs"){if(IX(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,V)=>q.name===W[V]?.name))continue}return!1}}return!0})});
|
|
12
|
+
export{s0 as Be,TX as Ce,lZ as De,xX as Ee,$X as Fe,JJ as Ge,QW as He,zW as Ie,XW as Je,LJ as Ke,g8 as Le,sJ as Me};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{mg as LJ,ng as WQ}from"./cli-1.0.3-1462khnb.mjs";import{og as hJ,pg as RQ}from"./cli-1.0.3-fdd1g4sk.mjs";import{qg as PJ,rg as hQ}from"./cli-1.0.3-7m2f8bwk.mjs";import{sg as aq,tg as lJ}from"./cli-1.0.3-13m8868e.mjs";import{ug as Fq,vg as iq,wg as $J}from"./cli-1.0.3-vnwqmpyv.mjs";import{xg as WJ,yg as HQ}from"./cli-1.0.3-e26nnnjx.mjs";import{Bx as g,EP as eq,Ex as yQ,GP as iJ,Mx as uq,Nx as mq,PI as HJ,Px as pq,QI as RJ,Qx as fJ,RI as wQ,So as P,To as Tq,UP as Aq,XP as oJ,YS as wq,aT as sq,bt as KJ,ct as VQ,dT as tq,dt as VJ,et as XJ,ft as XQ,pT as nJ,qG as vq,rG as BQ,sG as UJ,tG as FJ,uG as wJ,vG as FQ,vo as GJ,wo as KQ}from"./cli-1.0.3-2wzvc8te.mjs";import{YT as yJ,_T as NJ,bU as NQ}from"./cli-1.0.3-wf8jkyyp.mjs";import{FV as BJ,JV as UQ}from"./cli-1.0.3-c4trbm3y.mjs";import{HX as zJ,IX as zQ,LX as YJ,MX as YQ,UX as Mq,VX as GQ}from"./cli-1.0.3-hz5a6e6w.mjs";import{I0 as Oq,IY as Pq,b0 as y,d0 as Q}from"./cli-1.0.3-kesrsh8z.mjs";import{N2 as h,O2 as Y,P2 as Z,Q2 as c}from"./cli-1.0.3-wv4vx65k.mjs";import{R2 as ZQ}from"./cli-1.0.3-n9tzv3mz.mjs";import{O5 as cJ,a6 as ZJ,b6 as QQ,p5 as rq}from"./cli-1.0.3-5psnr7wf.mjs";import{Cba as gq,Dba as dJ,Gba as xq,Oba as TJ,X_ as Iq,Y8 as $,Z8 as tJ,oca as QJ,s$ as qQ,yca as JQ}from"./cli-1.0.3-4m0kzrq4.mjs";import{Lja as sJ,yja as JJ}from"./cli-1.0.3-1f00zm8y.mjs";import{mpa as eJ,vla as qJ}from"./cli-1.0.3-5kneybr4.mjs";import{Tqa as Bq,Xqa as Uq}from"./cli-1.0.3-vzm5gxzn.mjs";function _q(){let J=jq.c(2);if(!uq())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=pq();if(G.length===0){V=null;break q}let K=G.filter(pJ),X=G.filter(mJ);q=Z(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Y(Q,{bold:!0,color:K.length>0?"error":"warning",children:"Keybinding Configuration Issues"}),Z(y,{children:[Y(Q,{dimColor:!0,children:"Location: "}),Y(Q,{dimColor:!0,children:mq()})]}),Z(y,{marginLeft:1,flexDirection:"column",marginTop:1,children:[K.map(uJ),X.map(EJ)]})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function EJ(J,q){return Z(y,{flexDirection:"column",children:[Z(y,{children:[Y(Q,{dimColor:!0,children:"└ "}),Y(Q,{color:"warning",children:"[Warning]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&Y(y,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`warning-${q}`)}function uJ(J,q){return Z(y,{flexDirection:"column",children:[Z(y,{children:[Y(Q,{dimColor:!0,children:"└ "}),Y(Q,{color:"error",children:"[Error]"}),Z(Q,{dimColor:!0,children:[" ",J.message]})]}),J.suggestion&&Y(y,{marginLeft:3,children:Z(Q,{dimColor:!0,children:["→ ",J.suggestion]})})]},`error-${q}`)}function mJ(J){return J.severity==="warning"}function pJ(J){return J.severity==="error"}var jq;var dq=Uq(()=>{Oq();fJ();c();jq=Bq(Pq(),1)});function lq(){let J=cq.c(2);if(!P.isSupportedPlatform())return null;if(!P.isSandboxEnabledInSettings())return null;let q,V;if(J[0]===Symbol.for("react.memo_cache_sentinel")){V=Symbol.for("react.early_return_sentinel");q:{let G=P.checkDependencies(),K=G.errors.length>0,X=G.warnings.length>0;if(!K&&!X){V=null;break q}q=Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Sandbox"}),Z(Q,{children:["└ Status: ",Y(Q,{color:K?"error":"warning",children:K?"Missing dependencies":"Available (with warnings)"})]}),G.errors.map(_J),G.warnings.map(jJ),K&&Y(Q,{dimColor:!0,children:"└ Run /sandbox for install instructions"})]})}J[0]=q,J[1]=V}else q=J[0],V=J[1];if(V!==Symbol.for("react.early_return_sentinel"))return V;return q}function jJ(J,q){return Z(Q,{color:"warning",children:["└ ",J]},q)}function _J(J,q){return Z(Q,{color:"error",children:["└ ",J]},q)}var cq;var $q=Uq(()=>{Oq();Tq();c();cq=Bq(Pq(),1)});async function gJ(){let J=tq(await sq());if(J.length===0)return null;let q=J.sort((G,K)=>K.content.length-G.content.length).map((G)=>`${G.path}: ${G.content.length.toLocaleString()} chars`);return{type:"claudemd_files",severity:"warning",message:J.length===1?`Large CLAUDE.md file detected (${J[0].content.length.toLocaleString()} chars > ${wq.toLocaleString()})`:`${J.length} large CLAUDE.md files detected (each > ${wq.toLocaleString()} chars)`,details:q,currentValue:J.length,threshold:wq}}async function xJ(J){if(!J)return null;let q=iq(J);if(q<=Fq)return null;let V=J.activeAgents.filter((K)=>K.source!=="built-in").map((K)=>{let X=`${K.agentType}: ${K.whenToUse}`;return{name:K.agentType,tokens:Aq(X)}}).sort((K,X)=>X.tokens-K.tokens),G=V.slice(0,5).map((K)=>`${K.name}: ~${K.tokens.toLocaleString()} tokens`);if(V.length>5)G.push(`(${V.length-5} more custom agents)`);return{type:"agent_descriptions",severity:"warning",message:`Large agent descriptions (~${q.toLocaleString()} tokens > ${Fq.toLocaleString()})`,details:G,currentValue:q,threshold:Fq}}async function rJ(J,q,V){let G=J.filter((K)=>K.isMcp);if(G.length===0)return null;try{let K=rq(),{mcpToolTokens:X,mcpToolDetails:B}=await eq(J,q,V,K);if(X<=l)return null;let U=new Map;for(let R of B){let x=R.name.split("__")[1]||"unknown",N=U.get(x)||{count:0,tokens:0};U.set(x,{count:N.count+1,tokens:N.tokens+R.tokens})}let H=Array.from(U.entries()).sort((R,F)=>F[1].tokens-R[1].tokens),z=H.slice(0,5).map(([R,F])=>`${R}: ${F.count} tools (~${F.tokens.toLocaleString()} tokens)`);if(H.length>5)z.push(`(${H.length-5} more servers)`);return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens > ${l.toLocaleString()})`,details:z,currentValue:X,threshold:l}}catch(K){let X=G.reduce((B,U)=>{let H=(U.name?.length||0)+U.description.length;return B+Aq(H.toString())},0);if(X<=l)return null;return{type:"mcp_tools",severity:"warning",message:`Large MCP tools context (~${X.toLocaleString()} tokens estimated > ${l.toLocaleString()})`,details:[`${G.length} MCP tools detected (token count estimated)`],currentValue:X,threshold:l}}}async function aJ(J){let q=await J(),V=P.isSandboxingEnabled()&&P.isAutoAllowBashIfSandboxedEnabled(),G=aq(q,{sandboxAutoAllowEnabled:V});if(G.length===0)return null;let K=G.flatMap((X)=>[`${gq(X.rule.ruleValue)}: ${X.reason}`,` Fix: ${X.fix}`]);return{type:"unreachable_rules",severity:"warning",message:`${G.length} ${xq(G.length,"unreachable permission rule")} detected`,details:K,currentValue:G.length,threshold:0}}async function oq(J,q,V){let[G,K,X,B]=await Promise.all([gJ(),xJ(q),rJ(J,V,q),aJ(V)]);return{claudeMdWarning:G,agentWarning:K,mcpWarning:X,unreachableRulesWarning:B}}var l=25000;var nq=Uq(()=>{oJ();iJ();nJ();cJ();dJ();lJ();Tq();$J();TJ()});import{join as bq}from"path";function LQ(J){let q=Cq.c(8),{promise:V}=J,G=w.use(V);if(!G.latest){let U;if(q[0]===Symbol.for("react.memo_cache_sentinel"))U=Y(Q,{dimColor:!0,children:"└ Failed to fetch versions"}),q[0]=U;else U=q[0];return U}let K;if(q[1]!==G.stable)K=G.stable&&Z(Q,{children:["└ Stable version: ",G.stable]}),q[1]=G.stable,q[2]=K;else K=q[2];let X;if(q[3]!==G.latest)X=Z(Q,{children:["└ Latest version: ",G.latest]}),q[3]=G.latest,q[4]=X;else X=q[4];let B;if(q[5]!==K||q[6]!==X)B=Z(h,{children:[K,X]}),q[5]=K,q[6]=X,q[7]=B;else B=q[7];return B}function pZ(J){let q=Cq.c(84),{onDone:V}=J,G=g(TQ),K=g(dQ),X=g(_Q),B=g(jQ);YJ();let U;if(q[0]!==K)U=K||[],q[0]=K,q[1]=U;else U=q[1];let H=U,[z,R]=w.useState(null),[F,x]=w.useState(null),[N,OJ]=w.useState(null),[L,kq]=w.useState(null),Hq=PJ(),r;if(q[2]===Symbol.for("react.memo_cache_sentinel"))r=vq().then(mQ),q[2]=r;else r=q[2];let AJ=r,bJ=QJ()?.autoUpdatesChannel??"latest",a;if(q[3]!==Hq)a=Hq.filter(uQ),q[3]=Hq,q[4]=a;else a=q[4];let i=a,o;if(q[5]===Symbol.for("react.memo_cache_sentinel"))o=[{name:"BASH_MAX_OUTPUT_LENGTH",default:XJ,upperLimit:VJ},{name:"TASK_MAX_OUTPUT_LENGTH",default:RJ,upperLimit:HJ},{name:"CLAUDE_CODE_MAX_OUTPUT_TOKENS",...ZJ("claude-opus-4-8")}].map(EQ).filter(fQ),q[5]=o;else o=q[5];let Dq=o,n,e;if(q[6]!==G||q[7]!==X||q[8]!==H)n=()=>{vq().then(R),(async()=>{let W=bq(JJ(),"agents"),Sq=bq(qJ(),".claudin","agents"),{activeAgents:fq,allAgents:IJ,failedFiles:Eq}=G,[MJ,vJ]=await Promise.all([Iq(W),Iq(Sq)]),CJ={activeAgents:fq.map(SQ),userAgentsDir:W,projectAgentsDir:Sq,userDirExists:MJ,projectDirExists:vJ,failedFiles:Eq};x(CJ);let kJ=await oq(H,{activeAgents:fq,allAgents:IJ,failedFiles:Eq},async()=>X);if(OJ(kJ),UJ()){let Lq=bq(BJ(),"claude","locks"),DJ=wJ(Lq),SJ=FJ(Lq);kq({enabled:!0,locks:SJ,locksDir:Lq,staleLocksCleaned:DJ})}else kq({enabled:!1,locks:[],locksDir:"",staleLocksCleaned:0})})()},e=[X,H,G],q[6]=G,q[7]=X,q[8]=H,q[9]=n,q[10]=e;else n=q[9],e=q[10];w.useEffect(n,e);let s;if(q[11]!==V)s=()=>{V("Claude Code diagnostics dismissed",{display:"system"})},q[11]=V,q[12]=s;else s=q[12];let t=s,qq;if(q[13]!==t)qq={"confirm:yes":t,"confirm:no":t},q[13]=t,q[14]=qq;else qq=q[14];let Jq;if(q[15]===Symbol.for("react.memo_cache_sentinel"))Jq={context:"Confirmation"},q[15]=Jq;else Jq=q[15];if(zJ(qq,Jq),!z){let W;if(q[16]===Symbol.for("react.memo_cache_sentinel"))W=Y(Mq,{children:Y(Q,{dimColor:!0,children:"Checking installation status…"})}),q[16]=W;else W=q[16];return W}let Qq;if(q[17]===Symbol.for("react.memo_cache_sentinel"))Qq=Y(Q,{bold:!0,children:"Diagnostics"}),q[17]=Qq;else Qq=q[17];let O;if(q[18]!==z.installationType||q[19]!==z.version)O=Z(Q,{children:["└ Currently running: ",z.installationType," (",z.version,")"]}),q[18]=z.installationType,q[19]=z.version,q[20]=O;else O=q[20];let A;if(q[21]!==z.packageManager)A=z.packageManager&&Z(Q,{children:["└ Package manager: ",z.packageManager]}),q[21]=z.packageManager,q[22]=A;else A=q[22];let b;if(q[23]!==z.installationPath)b=Z(Q,{children:["└ Path: ",z.installationPath]}),q[23]=z.installationPath,q[24]=b;else b=q[24];let I;if(q[25]!==z.invokedBinary)I=Z(Q,{children:["└ Invoked: ",z.invokedBinary]}),q[25]=z.invokedBinary,q[26]=I;else I=q[26];let M;if(q[27]!==z.configInstallMethod)M=Z(Q,{children:["└ Config install method: ",z.configInstallMethod]}),q[27]=z.configInstallMethod,q[28]=M;else M=q[28];let Rq=z.ripgrepStatus.working?"OK":"Not working",Wq=z.ripgrepStatus.mode==="embedded"?"bundled":z.ripgrepStatus.mode==="builtin"?"vendor":z.ripgrepStatus.systemPath||"system",v;if(q[29]!==Rq||q[30]!==Wq)v=Z(Q,{children:["└ Search: ",Rq," (",Wq,")"]}),q[29]=Rq,q[30]=Wq,q[31]=v;else v=q[31];let C;if(q[32]!==z.recommendation)C=z.recommendation&&Z(h,{children:[Y(Q,{}),Z(Q,{color:"warning",children:["Recommendation: ",z.recommendation.split(`
|
|
2
|
+
`)[0]]}),Y(Q,{dimColor:!0,children:z.recommendation.split(`
|
|
3
|
+
`)[1]})]}),q[32]=z.recommendation,q[33]=C;else C=q[33];let k;if(q[34]!==z.multipleInstallations)k=z.multipleInstallations.length>1&&Z(h,{children:[Y(Q,{}),Y(Q,{color:"warning",children:"Warning: Multiple installations found"}),z.multipleInstallations.map(DQ)]}),q[34]=z.multipleInstallations,q[35]=k;else k=q[35];let D;if(q[36]!==z.warnings)D=z.warnings.length>0&&Z(h,{children:[Y(Q,{}),z.warnings.map(kQ)]}),q[36]=z.warnings,q[37]=D;else D=q[37];let S;if(q[38]!==i)S=i.length>0&&Z(y,{flexDirection:"column",marginTop:1,marginBottom:1,children:[Y(Q,{bold:!0,children:"Invalid Settings"}),Y(LJ,{errors:i})]}),q[38]=i,q[39]=S;else S=q[39];let f;if(q[40]!==O||q[41]!==A||q[42]!==b||q[43]!==I||q[44]!==M||q[45]!==v||q[46]!==C||q[47]!==k||q[48]!==D||q[49]!==S)f=Z(y,{flexDirection:"column",children:[Qq,O,A,b,I,M,v,C,k,D,S]}),q[40]=O,q[41]=A,q[42]=b,q[43]=I,q[44]=M,q[45]=v,q[46]=C,q[47]=k,q[48]=D,q[49]=S,q[50]=f;else f=q[50];let Zq;if(q[51]===Symbol.for("react.memo_cache_sentinel"))Zq=Y(Q,{bold:!0,children:"Updates"}),q[51]=Zq;else Zq=q[51];let hq=z.packageManager?"Managed by package manager":z.autoUpdates,E;if(q[52]!==hq)E=Z(Q,{children:["└ Auto-updates:"," ",hq]}),q[52]=hq,q[53]=E;else E=q[53];let u;if(q[54]!==z.hasUpdatePermissions)u=z.hasUpdatePermissions!==null&&Z(Q,{children:["└ Update permissions:"," ",z.hasUpdatePermissions?"Yes":"No (requires sudo)"]}),q[54]=z.hasUpdatePermissions,q[55]=u;else u=q[55];let zq;if(q[56]===Symbol.for("react.memo_cache_sentinel"))zq=Z(Q,{children:["└ Auto-update channel: ",bJ]}),q[56]=zq;else zq=q[56];let Yq;if(q[57]===Symbol.for("react.memo_cache_sentinel"))Yq=Y(w.Suspense,{fallback:null,children:Y(LQ,{promise:AJ})}),q[57]=Yq;else Yq=q[57];let m;if(q[58]!==E||q[59]!==u)m=Z(y,{flexDirection:"column",children:[Zq,E,u,zq,Yq]}),q[58]=E,q[59]=u,q[60]=m;else m=q[60];let Gq,Kq,Vq,Xq;if(q[61]===Symbol.for("react.memo_cache_sentinel"))Gq=Y(lq,{}),Kq=Y(WJ,{}),Vq=Y(_q,{}),Xq=Dq.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Environment Variables"}),Dq.map(CQ)]}),q[61]=Gq,q[62]=Kq,q[63]=Vq,q[64]=Xq;else Gq=q[61],Kq=q[62],Vq=q[63],Xq=q[64];let p;if(q[65]!==L)p=L?.enabled&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Version Locks"}),L.staleLocksCleaned>0&&Z(Q,{dimColor:!0,children:["└ Cleaned ",L.staleLocksCleaned," stale lock(s)"]}),L.locks.length===0?Y(Q,{dimColor:!0,children:"└ No active version locks"}):L.locks.map(vQ)]}),q[65]=L,q[66]=p;else p=q[66];let j;if(q[67]!==F)j=F?.failedFiles&&F.failedFiles.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"error",children:"Agent Parse Errors"}),Z(Q,{color:"error",children:["└ Failed to parse ",F.failedFiles.length," agent file(s):"]}),F.failedFiles.map(MQ)]}),q[67]=F,q[68]=j;else j=q[68];let _;if(q[69]!==B)_=B.length>0&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"error",children:"Plugin Errors"}),Z(Q,{color:"error",children:["└ ",B.length," plugin error(s) detected:"]}),B.map(IQ)]}),q[69]=B,q[70]=_;else _=q[70];let d;if(q[71]!==N)d=N?.unreachableRulesWarning&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,color:"warning",children:"Unreachable Permission Rules"}),Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.unreachableRulesWarning.message]})]}),N.unreachableRulesWarning.details.map(bQ)]}),q[71]=N,q[72]=d;else d=q[72];let T;if(q[73]!==N)T=N&&(N.claudeMdWarning||N.agentWarning||N.mcpWarning)&&Z(y,{flexDirection:"column",children:[Y(Q,{bold:!0,children:"Context Usage Warnings"}),N.claudeMdWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.claudeMdWarning.message]})]}),Z(Q,{children:[" ","└ Files:"]}),N.claudeMdWarning.details.map(AQ)]}),N.agentWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.agentWarning.message]})]}),Z(Q,{children:[" ","└ Top contributors:"]}),N.agentWarning.details.map(OQ)]}),N.mcpWarning&&Z(h,{children:[Z(Q,{children:["└"," ",Z(Q,{color:"warning",children:[$.warning," ",N.mcpWarning.message]})]}),Z(Q,{children:[" ","└ MCP servers:"]}),N.mcpWarning.details.map(PQ)]})]}),q[73]=N,q[74]=T;else T=q[74];let yq;if(q[75]===Symbol.for("react.memo_cache_sentinel"))yq=Y(y,{children:Y(hJ,{})}),q[75]=yq;else yq=q[75];let Nq;if(q[76]!==f||q[77]!==m||q[78]!==p||q[79]!==j||q[80]!==_||q[81]!==d||q[82]!==T)Nq=Z(Mq,{children:[f,m,Gq,Kq,Vq,Xq,p,j,_,d,T,yq]}),q[76]=f,q[77]=m,q[78]=p,q[79]=j,q[80]=_,q[81]=d,q[82]=T,q[83]=Nq;else Nq=q[83];return Nq}function PQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function OQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function AQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function bQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J]},q)}function IQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.source||"unknown","plugin"in J&&J.plugin?` [${J.plugin}]`:"",":"," ",GJ(J)]},q)}function MQ(J,q){return Z(Q,{dimColor:!0,children:[" ","└ ",J.path,": ",J.error]},q)}function vQ(J,q){return Z(Q,{children:["└ ",J.version,": PID ",J.pid," ",J.isProcessRunning?Y(Q,{children:"(running)"}):Y(Q,{color:"warning",children:"(stale)"})]},q)}function CQ(J,q){return Z(Q,{children:["└ ",J.name,":"," ",Y(Q,{color:J.status==="capped"?"warning":"error",children:J.message})]},q)}function kQ(J,q){return Z(y,{flexDirection:"column",children:[Z(Q,{color:"warning",children:["Warning: ",J.issue]}),Z(Q,{children:["Fix: ",J.fix]})]},q)}function DQ(J,q){return Z(Q,{children:["└ ",J.type," at ",J.path]},q)}function SQ(J){return{agentType:J.agentType,source:J.source}}function fQ(J){return J.status!=="valid"}function EQ(J){let q=process.env[J.name],V=KJ(J.name,q,J.default,J.upperLimit);return{name:J.name,...V}}function uQ(J){return J.mcpErrorMetadata===void 0}function mQ(J){return(J.installationType==="native"?NJ:yJ)().catch(pQ)}function pQ(){return{latest:null,stable:null}}function jQ(J){return J.plugins.errors}function _Q(J){return J.toolPermissionContext}function dQ(J){return J.mcp.tools}function TQ(J){return J.agentDefinitions}var Cq,w;var cQ=Uq(()=>{tJ();dq();HQ();QQ();sJ();eJ();GQ();RQ();$q();WQ();hQ();YQ();Oq();zQ();yQ();KQ();NQ();nq();BQ();VQ();qQ();FQ();JQ();XQ();wQ();UQ();c();Cq=Bq(Pq(),1),w=Bq(ZQ(),1)});
|
|
4
|
+
export{pZ as kg,cQ as lg};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{f3 as N,k3 as $}from"./cli-1.0.3-xf2r8496.mjs";import{X6 as M,f4 as L,i4 as Y,v7 as Z}from"./cli-1.0.3-5psnr7wf.mjs";import{gfa as Q,ofa as X}from"./cli-1.0.3-4m0kzrq4.mjs";import{Lha as J,Mha as V}from"./cli-1.0.3-n99q1npz.mjs";import{nja as P,vja as S}from"./cli-1.0.3-5hpdm52h.mjs";import{gqa as K,yqa as W}from"./cli-1.0.3-zan6y0m1.mjs";import{Xqa as R}from"./cli-1.0.3-vzm5gxzn.mjs";async function C(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{W();V();Y();Z();S();X();$()});
|
|
2
|
+
export{C as mW,j as nW,b as oW};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{mpa as H,vla as z,zla as B}from"./cli-1.0.3-5kneybr4.mjs";import{Xqa as x}from"./cli-1.0.3-vzm5gxzn.mjs";import{AsyncLocalStorage as I}from"async_hooks";function Q(E,F){return D.run(E,F)}function J(){return D.getStore()??B()}function R(){try{return J()}catch{return z()}}var D;var K=x(()=>{H();D=new I});var U="command-name",V="command-message",W="command-args",X="bash-input",Y="bash-stdout",Z="bash-stderr",$="local-command-stdout",j="local-command-stderr",q="local-command-caveat",A="tick",G="task-notification",L="task-id",_="tool-use-id",b="task-type",k="output-file",p="status",v="summary",C="worktree",O="worktreePath",y="worktreeBranch",S="remote-review",f="remote-review-progress",m="teammate-message",u="channel",h="fork-boilerplate",l="Your directive: ",w,g;var M=x(()=>{w=["help","-h","--help"],g=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
|
|
2
|
+
export{Q as Yga,J as Zga,R as _ga,K as $ga,U as aha,V as bha,W as cha,X as dha,Y as eha,Z as fha,$ as gha,j as hha,q as iha,A as jha,G as kha,L as lha,_ as mha,b as nha,k as oha,p as pha,v as qha,C as rha,O as sha,y as tha,S as uha,f as vha,m as wha,u as xha,h as yha,l as zha,w as Aha,g as Bha,M as Cha};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Xqa as M}from"./cli-1.0.3-vzm5gxzn.mjs";function J(){return"prod"}function W(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(J()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function $(){let k=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",x=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",q=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${q}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_ORIGIN:x,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${q}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${q}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${q}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let k=(()=>{switch(J()){case"local":return $();case"staging":return z;case"prod":return z}})(),x=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(x){let j=x.replace(/\/$/,"");if(!m.includes(j))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");k={...k,BASE_API_URL:j,CONSOLE_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${j}/oauth/authorize`,CLAUDE_AI_ORIGIN:j,TOKEN_URL:`${j}/v1/oauth/token`,API_KEY_URL:`${j}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${j}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${j}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${j}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let q=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(q)k={...k,CLIENT_ID:q};return k}var Q="user:inference",K="user:profile",V="org:create_api_key",X="oauth-2025-04-20",Y,Z,y,z,G="https://claude.ai/oauth/claude-code-client-metadata",m;var w=M(()=>{Y=[V,K],Z=[K,Q,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],y=Array.from(new Set([...Y,...Z])),z={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"};m=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
|
|
2
|
+
export{W as Dha,Q as Eha,K as Fha,X as Gha,Y as Hha,Z as Iha,y as Jha,G as Kha,h as Lha,w as Mha};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Vqa as j}from"./cli-1.0.3-vzm5gxzn.mjs";var Lt=j((Q)=>{var y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),L=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),m=Symbol.iterator;function q(t){if(t===null||typeof t!=="object")return null;return t=m&&t[m]||t["@@iterator"],typeof t==="function"?t:null}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,w={};function l(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!=="object"&&typeof t!=="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function P(){}P.prototype=l.prototype;function v(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}var T=v.prototype=new P;T.constructor=v;g(T,l.prototype);T.isPureReactComponent=!0;var C=Array.isArray;function E(){}var f={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function R(t,e,n){var r=n.ref;return{$$typeof:y,type:t,key:e,ref:r!==void 0?r:null,props:n}}function z(t,e){return R(t.type,e,t.props)}function x(t){return typeof t==="object"&&t!==null&&t.$$typeof===y}function G(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var d=/\/+/g;function a(t,e){return typeof t==="object"&&t!==null&&t.key!=null?G(""+t.key):e.toString(36)}function K(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status==="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function p(t,e,n,r,o){var u=typeof t;if(u==="undefined"||u==="boolean")t=null;var s=!1;if(t===null)s=!0;else switch(u){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case y:case $:s=!0;break;case h:return s=t._init,p(s(t._payload),e,n,r,o)}}if(s)return o=o(t),s=r===""?"."+a(t,0):r,C(o)?(n="",s!=null&&(n=s.replace(d,"$&/")+"/"),p(o,e,n,"",function(O){return O})):o!=null&&(x(o)&&(o=z(o,n+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(d,"$&/")+"/")+s)),e.push(o)),1;s=0;var c=r===""?".":r+":";if(C(t))for(var i=0;i<t.length;i++)r=t[i],u=c+a(r,i),s+=p(r,e,n,u,o);else if(i=q(t),typeof i==="function")for(t=i.call(t),i=0;!(r=t.next()).done;)r=r.value,u=c+a(r,i++),s+=p(r,e,n,u,o);else if(u==="object"){if(typeof t.then==="function")return p(K(t),e,n,r,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function _(t,e,n){if(t==null)return t;var r=[],o=0;return p(t,r,"","",function(u){return e.call(n,u,o++)}),r}function B(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){if(t._status===0||t._status===-1)t._status=1,t._result=n},function(n){if(t._status===0||t._status===-1)t._status=2,t._result=n}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var A=typeof reportError==="function"?reportError:function(t){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t==="object"&&t!==null&&typeof t.message==="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",t);return}console.error(t)},W={map:_,forEach:function(t,e,n){_(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return _(t,function(){e++}),e},toArray:function(t){return _(t,function(e){return e})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Q.Activity=D;Q.Children=W;Q.Component=l;Q.Fragment=I;Q.Profiler=M;Q.PureComponent=v;Q.StrictMode=N;Q.Suspense=U;Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;Q.__COMPILER_RUNTIME={__proto__:null,c:function(t){return f.H.useMemoCache(t)}};Q.cache=function(t){return function(){return t.apply(null,arguments)}};Q.cacheSignal=function(){return null};Q.cloneElement=function(t,e,n){if(t===null||t===void 0)throw Error("The argument must be a React element, but you passed "+t+".");var r=g({},t.props),o=t.key;if(e!=null)for(u in e.key!==void 0&&(o=""+e.key),e)!H.call(e,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&e.ref===void 0||(r[u]=e[u]);var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return R(t.type,o,r)};Q.createContext=function(t){return t={$$typeof:L,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Y,_context:t},t};Q.createElement=function(t,e,n){var r,o={},u=null;if(e!=null)for(r in e.key!==void 0&&(u=""+e.key),e)H.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=e[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];o.children=c}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return R(t,u,o)};Q.createRef=function(){return{current:null}};Q.forwardRef=function(t){return{$$typeof:k,render:t}};Q.isValidElement=x;Q.lazy=function(t){return{$$typeof:h,_payload:{_status:-1,_result:t},_init:B}};Q.memo=function(t,e){return{$$typeof:b,type:t,compare:e===void 0?null:e}};Q.startTransition=function(t){var e=f.T,n={};f.T=n;try{var r=t(),o=f.S;o!==null&&o(n,r),typeof r==="object"&&r!==null&&typeof r.then==="function"&&r.then(E,A)}catch(u){A(u)}finally{e!==null&&n.types!==null&&(e.types=n.types),f.T=e}};Q.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};Q.use=function(t){return f.H.use(t)};Q.useActionState=function(t,e,n){return f.H.useActionState(t,e,n)};Q.useCallback=function(t,e){return f.H.useCallback(t,e)};Q.useContext=function(t){return f.H.useContext(t)};Q.useDebugValue=function(){};Q.useDeferredValue=function(t,e){return f.H.useDeferredValue(t,e)};Q.useEffect=function(t,e){return f.H.useEffect(t,e)};Q.useEffectEvent=function(t){return f.H.useEffectEvent(t)};Q.useId=function(){return f.H.useId()};Q.useImperativeHandle=function(t,e,n){return f.H.useImperativeHandle(t,e,n)};Q.useInsertionEffect=function(t,e){return f.H.useInsertionEffect(t,e)};Q.useLayoutEffect=function(t,e){return f.H.useLayoutEffect(t,e)};Q.useMemo=function(t,e){return f.H.useMemo(t,e)};Q.useOptimistic=function(t,e){return f.H.useOptimistic(t,e)};Q.useReducer=function(t,e,n){return f.H.useReducer(t,e,n)};Q.useRef=function(t){return f.H.useRef(t)};Q.useState=function(t){return f.H.useState(t)};Q.useSyncExternalStore=function(t,e,n){return f.H.useSyncExternalStore(t,e,n)};Q.useTransition=function(){return f.H.useTransition()};Q.version="19.2.7"});
|
|
2
|
+
export{Lt as R2};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{Rb as d}from"./cli-1.0.3-znxwm9ta.mjs";import{NV as y,OV as U,QV as f,RV as h,SV as c,XV as i}from"./cli-1.0.3-rapppvd0.mjs";import{Y2 as O,_2 as b}from"./cli-1.0.3-1w2x2m43.mjs";import{p6 as B,q6 as M}from"./cli-1.0.3-5psnr7wf.mjs";import{I7 as I,P7 as u}from"./cli-1.0.3-v658mswv.mjs";import{j9 as V,l9 as v}from"./cli-1.0.3-4m0kzrq4.mjs";import{Qia as G,Tia as D,tia as H,uia as m,yia as T}from"./cli-1.0.3-jmvq43wb.mjs";import{oja as q,pja as S,vja as F}from"./cli-1.0.3-5hpdm52h.mjs";import{gqa as p,yqa as s}from"./cli-1.0.3-zan6y0m1.mjs";import{randomUUID as N}from"crypto";D();v();F();u();i();f();M();b();T();class j extends Error{retryAfterMs;constructor(J,K){super(J);this.retryAfterMs=K}}class R{pending=[];pendingAtClose=0;draining=!1;closed=!1;backpressureResolvers=[];sleepResolve=null;flushResolvers=[];droppedBatches=0;config;constructor(J){this.config=J}get droppedBatchCount(){return this.droppedBatches}get pendingCount(){return this.closed?this.pendingAtClose:this.pending.length}async enqueue(J){if(this.closed)return;let K=Array.isArray(J)?J:[J];if(K.length===0)return;while(this.pending.length+K.length>this.config.maxQueueSize&&!this.closed)await new Promise((W)=>{this.backpressureResolvers.push(W)});if(this.closed)return;this.pending.push(...K),this.drain()}flush(){if(this.pending.length===0&&!this.draining)return Promise.resolve();return this.drain(),new Promise((J)=>{this.flushResolvers.push(J)})}close(){if(this.closed)return;this.closed=!0,this.pendingAtClose=this.pending.length,this.pending=[],this.sleepResolve?.(),this.sleepResolve=null;for(let J of this.backpressureResolvers)J();this.backpressureResolvers=[];for(let J of this.flushResolvers)J();this.flushResolvers=[]}async drain(){if(this.draining||this.closed)return;this.draining=!0;let J=0;try{while(this.pending.length>0&&!this.closed){let K=this.takeBatch();if(K.length===0)continue;try{await this.config.send(K),J=0}catch(W){if(J++,this.config.maxConsecutiveFailures!==void 0&&J>=this.config.maxConsecutiveFailures){this.droppedBatches++,this.config.onBatchDropped?.(K.length,J),J=0,this.releaseBackpressure();continue}this.pending=K.concat(this.pending);let Z=W instanceof j?W.retryAfterMs:void 0;await this.sleep(this.retryDelay(J,Z));continue}this.releaseBackpressure()}}finally{if(this.draining=!1,this.pending.length===0){for(let K of this.flushResolvers)K();this.flushResolvers=[]}}}takeBatch(){let{maxBatchSize:J,maxBatchBytes:K}=this.config;if(K===void 0)return this.pending.splice(0,J);let W=0,Z=0;while(Z<this.pending.length&&Z<J){let Q;try{Q=Buffer.byteLength(H(this.pending[Z]))}catch{this.pending.splice(Z,1);continue}if(Z>0&&W+Q>K)break;W+=Q,Z++}return this.pending.splice(0,Z)}retryDelay(J,K){let W=Math.random()*this.config.jitterMs;if(K!==void 0)return Math.max(this.config.baseDelayMs,Math.min(K,this.config.maxDelayMs))+W;return Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs)+W}releaseBackpressure(){let J=this.backpressureResolvers;this.backpressureResolvers=[];for(let K of J)K()}sleep(J){return new Promise((K)=>{this.sleepResolve=K,setTimeout((W,Z)=>{W.sleepResolve=null,Z()},J,this,K)})}}M();class A{inflight=null;pending=null;closed=!1;config;constructor(J){this.config=J}enqueue(J){if(this.closed)return;this.pending=this.pending?P(this.pending,J):J,this.drain()}close(){this.closed=!0,this.pending=null}async drain(){if(this.inflight||this.closed)return;if(!this.pending)return;let J=this.pending;this.pending=null,this.inflight=this.sendWithRetry(J).then(()=>{if(this.inflight=null,this.pending&&!this.closed)this.drain()})}async sendWithRetry(J){let K=J,W=0;while(!this.closed){if(await this.config.send(K))return;if(W++,await B(this.retryDelay(W)),this.pending&&!this.closed)K=P(K,this.pending),this.pending=null}}retryDelay(J){let K=Math.min(this.config.baseDelayMs*2**(J-1),this.config.maxDelayMs),W=Math.random()*this.config.jitterMs;return K+W}}function P(J,K){let W={...J};for(let[Z,Q]of Object.entries(K))if((Z==="external_metadata"||Z==="internal_metadata")&&W[Z]&&typeof W[Z]==="object"&&typeof Q==="object"&&Q!==null)W[Z]={...W[Z],...Q};else W[Z]=Q;return W}var g=20000,n=100;function E(){return!0}class k extends Error{reason;constructor(J){super(`CCRClient init failed: ${J}`);this.reason=J}}var l=10;function o(){return{byMessage:new Map,scopeToMessage:new Map}}function C(J){return`${J.session_id}:${J.parent_tool_use_id??""}`}function r(J,K){let W=[],Z=new Map;for(let Q of J)switch(Q.event.type){case"message_start":{let $=Q.event.message.id,z=K.scopeToMessage.get(C(Q));if(z)K.byMessage.delete(z);K.scopeToMessage.set(C(Q),$),K.byMessage.set($,[]),W.push(Q);break}case"content_block_delta":{if(Q.event.delta.type!=="text_delta"){W.push(Q);break}let $=K.scopeToMessage.get(C(Q)),z=$?K.byMessage.get($):void 0;if(!z){W.push(Q);break}let L=z[Q.event.index]??=[];L.push(Q.event.delta.text);let Y=Z.get(L);if(Y){Y.event.delta.text=L.join("");break}let X={type:"stream_event",uuid:Q.uuid,session_id:Q.session_id,parent_tool_use_id:Q.parent_tool_use_id,event:{type:"content_block_delta",index:Q.event.index,delta:{type:"text_delta",text:L.join("")}}};Z.set(L,X),W.push(X);break}default:W.push(Q)}return W}function t(J,K){J.byMessage.delete(K.message.id);let W=C(K);if(J.scopeToMessage.get(W)===K.message.id)J.scopeToMessage.delete(W)}class a{workerEpoch=0;heartbeatIntervalMs;heartbeatJitterFraction;heartbeatTimer=null;heartbeatInFlight=!1;closed=!1;consecutiveAuthFailures=0;currentState=null;sessionBaseUrl;sessionId;http=I({keepAlive:!0});streamEventBuffer=[];streamEventTimer=null;streamTextAccumulator=o();workerState;eventUploader;internalEventUploader;deliveryUploader;onEpochMismatch;getAuthHeaders;constructor(J,K,W){if(this.onEpochMismatch=W?.onEpochMismatch??(()=>{process.exit(1)}),this.heartbeatIntervalMs=W?.heartbeatIntervalMs??g,this.heartbeatJitterFraction=W?.heartbeatJitterFraction??0,this.getAuthHeaders=W?.getAuthHeaders??U,K.protocol!=="http:"&&K.protocol!=="https:")throw Error(`CCRClient: Expected http(s) URL, got ${K.protocol}`);let Z=K.pathname.replace(/\/$/,"");this.sessionBaseUrl=`${K.protocol}//${K.host}${Z}`,this.sessionId=Z.split("/").pop()||"",this.workerState=new A({send:(Q)=>this.request("put","/worker",{worker_epoch:this.workerEpoch,...Q},"PUT worker").then(($)=>$.ok),baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.eventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:1e5,send:async(Q)=>{let $=await this.request("post","/worker/events",{worker_epoch:this.workerEpoch,events:Q},"client events");if(!$.ok)throw new j("client event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.internalEventUploader=new R({maxBatchSize:100,maxBatchBytes:10485760,maxQueueSize:200,send:async(Q)=>{let $=await this.request("post","/worker/internal-events",{worker_epoch:this.workerEpoch,events:Q},"internal events");if(!$.ok)throw new j("internal event POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),this.deliveryUploader=new R({maxBatchSize:64,maxQueueSize:64,send:async(Q)=>{let $=await this.request("post","/worker/events/delivery",{worker_epoch:this.workerEpoch,updates:Q.map((z)=>({event_id:z.eventId,status:z.status}))},"delivery batch");if(!$.ok)throw new j("delivery POST failed",$.retryAfterMs)},baseDelayMs:500,maxDelayMs:30000,jitterMs:500}),J.setOnEvent((Q)=>{this.reportDelivery(Q.event_id,"received")})}async initialize(J){let K=Date.now();if(Object.keys(this.getAuthHeaders()).length===0)throw new k("no_auth_headers");if(J===void 0){let z=process.env.CLAUDE_CODE_WORKER_EPOCH;J=z?parseInt(z,10):NaN}if(isNaN(J))throw new k("missing_epoch");this.workerEpoch=J;let W=this.getWorkerState();if(!(await this.request("put","/worker",{worker_status:"idle",worker_epoch:this.workerEpoch,external_metadata:{pending_action:null,task_summary:null}},"PUT worker (init)")).ok)throw new k("worker_register_failed");this.currentState="idle",this.startHeartbeat(),h(()=>{this.writeEvent({type:"keep_alive"})}),G(`CCRClient: initialized, epoch=${this.workerEpoch}`),V("info","cli_worker_lifecycle_initialized",{epoch:this.workerEpoch,duration_ms:Date.now()-K});let{metadata:Q,durationMs:$}=await W;if(!this.closed)V("info","cli_worker_state_restored",{duration_ms:$,had_state:Q!==null});return Q}async getWorkerState(){let J=Date.now(),K=this.getAuthHeaders();if(Object.keys(K).length===0)return{metadata:null,durationMs:0};return{metadata:(await this.getWithRetry(`${this.sessionBaseUrl}/worker`,K,"worker_state"))?.worker?.external_metadata??null,durationMs:Date.now()-J}}async request(J,K,W,Z,{timeout:Q=1e4}={}){let $=this.getAuthHeaders();if(Object.keys($).length===0)return{ok:!1};try{let z=await this.http[J](`${this.sessionBaseUrl}${K}`,W,{headers:{...$,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:Q});if(z.status>=200&&z.status<300)return this.consecutiveAuthFailures=0,{ok:!0};if(z.status===409)this.handleEpochMismatch();if(z.status===401||z.status===403){let L=y(),Y=L?d(L):null;if(Y!==null&&Y*1000<Date.now())G(`CCRClient: session_token expired (exp=${new Date(Y*1000).toISOString()}) — no refresh was delivered, exiting`,{level:"error"}),V("error","cli_worker_token_expired_no_refresh"),this.onEpochMismatch();if(this.consecutiveAuthFailures++,this.consecutiveAuthFailures>=l)G(`CCRClient: ${this.consecutiveAuthFailures} consecutive auth failures with a valid-looking token — server-side auth unrecoverable, exiting`,{level:"error"}),V("error","cli_worker_auth_failures_exhausted"),this.onEpochMismatch()}if(G(`CCRClient: ${Z} returned ${z.status}`,{level:"warn"}),V("warn","cli_worker_request_failed",{method:J,path:K,status:z.status}),z.status===429){let L=z.headers?.["retry-after"],Y=typeof L==="string"?parseInt(L,10):NaN;if(!isNaN(Y)&&Y>=0)return{ok:!1,retryAfterMs:Y*1000}}return{ok:!1}}catch(z){return G(`CCRClient: ${Z} failed: ${q(z)}`,{level:"warn"}),V("warn","cli_worker_request_error",{method:J,path:K,error_code:S(z)}),{ok:!1}}}reportState(J,K){if(J===this.currentState&&!K)return;this.currentState=J,this.workerState.enqueue({worker_status:J,requires_action_details:K?{tool_name:K.tool_name,action_description:K.action_description,request_id:K.request_id}:null})}reportMetadata(J){this.workerState.enqueue({external_metadata:J})}handleEpochMismatch(){G("CCRClient: Epoch mismatch (409), shutting down",{level:"error"}),V("error","cli_worker_epoch_mismatch"),this.onEpochMismatch()}startHeartbeat(){this.stopHeartbeat();let J=()=>{let W=this.heartbeatIntervalMs*this.heartbeatJitterFraction*(2*Math.random()-1);this.heartbeatTimer=setTimeout(K,this.heartbeatIntervalMs+W)},K=()=>{if(this.sendHeartbeat(),this.heartbeatTimer===null)return;J()};J()}stopHeartbeat(){if(this.heartbeatTimer)clearTimeout(this.heartbeatTimer),this.heartbeatTimer=null}async sendHeartbeat(){if(this.heartbeatInFlight)return;this.heartbeatInFlight=!0;try{if((await this.request("post","/worker/heartbeat",{session_id:this.sessionId,worker_epoch:this.workerEpoch},"Heartbeat",{timeout:5000})).ok)G("CCRClient: Heartbeat sent")}finally{this.heartbeatInFlight=!1}}async writeEvent(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>void this.flushStreamEventBuffer(),n);return}if(await this.flushStreamEventBuffer(),J.type==="assistant")t(this.streamTextAccumulator,J);await this.eventUploader.enqueue(this.toClientEvent(J))}toClientEvent(J){let K=J;return{payload:{...K,uuid:typeof K.uuid==="string"?K.uuid:N()}}}async flushStreamEventBuffer(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;if(this.streamEventBuffer.length===0)return;let J=this.streamEventBuffer;this.streamEventBuffer=[];let K=r(J,this.streamTextAccumulator);await this.eventUploader.enqueue(K.map((W)=>({payload:W,ephemeral:!0})))}async writeInternalEvent(J,K,{isCompaction:W=!1,agentId:Z}={}){let Q={payload:{type:J,...K,uuid:typeof K.uuid==="string"?K.uuid:N()},...W&&{is_compaction:!0},...Z&&{agent_id:Z}};await this.internalEventUploader.enqueue(Q)}flushInternalEvents(){return this.internalEventUploader.flush()}async flush(){return await this.flushStreamEventBuffer(),this.eventUploader.flush()}async readInternalEvents(){return this.paginatedGet("/worker/internal-events",{},"internal_events")}async readSubagentInternalEvents(){return this.paginatedGet("/worker/internal-events",{subagents:"true"},"subagent_events")}async paginatedGet(J,K,W){let Z=this.getAuthHeaders();if(Object.keys(Z).length===0)return null;let Q=[],$;do{let z=new URL(`${this.sessionBaseUrl}${J}`);for(let[Y,X]of Object.entries(K))z.searchParams.set(Y,X);if($)z.searchParams.set("cursor",$);let L=await this.getWithRetry(z.toString(),Z,W);if(!L)return null;Q.push(...L.data??[]),$=L.next_cursor}while($);return G(`CCRClient: Read ${Q.length} internal events from ${J}${K.subagents?" (subagents)":""}`),Q}async getWithRetry(J,K,W){for(let Z=1;Z<=10;Z++){let Q;try{Q=await this.http.get(J,{headers:{...K,"anthropic-version":"2023-06-01","User-Agent":O()},validateStatus:E,timeout:30000})}catch($){if(G(`CCRClient: GET ${J} failed (attempt ${Z}/10): ${q($)}`,{level:"warn"}),Z<10){let z=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B(z)}continue}if(Q.status>=200&&Q.status<300)return Q.data;if(Q.status===409)this.handleEpochMismatch();if(G(`CCRClient: GET ${J} returned ${Q.status} (attempt ${Z}/10)`,{level:"warn"}),Z<10){let $=Math.min(500*2**(Z-1),30000)+Math.random()*500;await B($)}}return G("CCRClient: GET retries exhausted",{level:"error"}),V("error","cli_worker_get_retries_exhausted",{context:W}),null}reportDelivery(J,K){this.deliveryUploader.enqueue({eventId:J,status:K})}getWorkerEpoch(){return this.workerEpoch}get internalEventsPending(){return this.internalEventUploader.pendingCount}close(){if(this.closed=!0,this.stopHeartbeat(),c(),this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[],this.streamTextAccumulator.byMessage.clear(),this.streamTextAccumulator.scopeToMessage.clear(),this.workerState.close(),this.eventUploader.close(),this.internalEventUploader.close(),this.deliveryUploader.close()}}s();D();v();F();f();M();T();b();var e=1000,JJ=30000,KJ=600000,QJ=45000,WJ=new Set([401,403,404]),x=10,ZJ=500,$J=8000,GJ={stream:!0};function zJ(){return!0}function VJ(J){let K=[],W=0,Z;while((Z=J.indexOf(`
|
|
2
|
+
|
|
3
|
+
`,W))!==-1){let Q=J.slice(W,Z);if(W=Z+2,!Q.trim())continue;let $={},z=!1;for(let L of Q.split(`
|
|
4
|
+
`)){if(L.startsWith(":")){z=!0;continue}let Y=L.indexOf(":");if(Y===-1)continue;let X=L.slice(0,Y),w=L[Y+1]===" "?L.slice(Y+2):L.slice(Y+1);switch(X){case"event":$.event=w;break;case"id":$.id=w;break;case"data":$.data=$.data?$.data+`
|
|
5
|
+
`+w:w;break}}if($.data||z)K.push($)}return{frames:K,remaining:J.slice(W)}}class YJ{url;state="idle";onData;onCloseCallback;onEventCallback;headers;sessionId;refreshHeaders;getAuthHeaders;abortController=null;lastSequenceNum=0;seenSequenceNums=new Set;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;livenessTimer=null;postUrl;constructor(J,K={},W,Z,Q,$){this.url=J;if(this.headers=K,this.sessionId=W,this.refreshHeaders=Z,this.getAuthHeaders=$??U,this.postUrl=LJ(J),Q!==void 0&&Q>0)this.lastSequenceNum=Q;G(`SSETransport: SSE URL = ${J.href}`),G(`SSETransport: POST URL = ${this.postUrl}`),V("info","cli_sse_transport_initialized")}getLastSequenceNum(){return this.lastSequenceNum}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){G(`SSETransport: Cannot connect, current state is ${this.state}`,{level:"error"}),V("error","cli_sse_connect_failed");return}this.state="reconnecting";let J=Date.now(),K=new URL(this.url.href);if(this.lastSequenceNum>0)K.searchParams.set("from_sequence_num",String(this.lastSequenceNum));let W=this.getAuthHeaders(),Z={...this.headers,...W,Accept:"text/event-stream","anthropic-version":"2023-06-01","User-Agent":O()};if(W.Cookie)delete Z.Authorization;if(this.lastSequenceNum>0)Z["Last-Event-ID"]=String(this.lastSequenceNum);G(`SSETransport: Opening ${K.href}`),V("info","cli_sse_connect_opening"),this.abortController=new AbortController;try{let Q=await fetch(K.href,{headers:Z,signal:this.abortController.signal});if(!Q.ok){let z=WJ.has(Q.status);if(G(`SSETransport: HTTP ${Q.status}${z?" (permanent)":""}`,{level:"error"}),V("error","cli_sse_connect_http_error",{status:Q.status}),z){this.state="closed",this.onCloseCallback?.(Q.status);return}this.handleConnectionError();return}if(!Q.body){G("SSETransport: No response body"),this.handleConnectionError();return}let $=Date.now()-J;G("SSETransport: Connected"),V("info","cli_sse_connect_connected",{duration_ms:$}),this.state="connected",this.reconnectAttempts=0,this.reconnectStartTime=null,this.resetLivenessTimer(),await this.readStream(Q.body)}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Connection error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_connect_error"),this.handleConnectionError()}}async readStream(J){let K=J.getReader(),W=new TextDecoder,Z="";try{while(!0){let{done:Q,value:$}=await K.read();if(Q)break;Z+=W.decode($,GJ);let{frames:z,remaining:L}=VJ(Z);Z=L;for(let Y of z){if(this.resetLivenessTimer(),Y.id){let X=parseInt(Y.id,10);if(!isNaN(X)){if(this.seenSequenceNums.has(X))G(`SSETransport: DUPLICATE frame seq=${X} (lastSequenceNum=${this.lastSequenceNum}, seenCount=${this.seenSequenceNums.size})`,{level:"warn"}),V("warn","cli_sse_duplicate_sequence");else if(this.seenSequenceNums.add(X),this.seenSequenceNums.size>1000){let w=this.lastSequenceNum-200;for(let _ of this.seenSequenceNums)if(_<w)this.seenSequenceNums.delete(_)}if(X>this.lastSequenceNum)this.lastSequenceNum=X}}if(Y.event&&Y.data)this.handleSSEFrame(Y.event,Y.data);else if(Y.data)G("SSETransport: Frame has data: but no event: field — dropped",{level:"warn"}),V("warn","cli_sse_frame_missing_event_field")}}}catch(Q){if(this.abortController?.signal.aborted)return;G(`SSETransport: Stream read error: ${q(Q)}`,{level:"error"}),V("error","cli_sse_stream_read_error")}finally{K.releaseLock()}if(this.state!=="closing"&&this.state!=="closed")G("SSETransport: Stream ended, reconnecting"),this.handleConnectionError()}handleSSEFrame(J,K){if(J!=="client_event"){G(`SSETransport: Unexpected SSE event type '${J}' on worker stream`,{level:"warn"}),V("warn","cli_sse_unexpected_event_type",{event_type:J});return}let W;try{W=m(K)}catch(Q){G(`SSETransport: Failed to parse client_event data: ${q(Q)}`,{level:"error"});return}let Z=W.payload;if(Z&&typeof Z==="object"&&"type"in Z){let Q=this.sessionId?` session=${this.sessionId}`:"";G(`SSETransport: Event seq=${W.sequence_num} event_id=${W.event_id} event_type=${W.event_type} payload_type=${String(Z.type)}${Q}`),V("info","cli_sse_message_received"),this.onData?.(H(Z)+`
|
|
6
|
+
`)}else G(`SSETransport: Ignoring client_event with no type in payload: event_id=${W.event_id}`);this.onEventCallback?.(W)}handleConnectionError(){if(this.clearLivenessTimer(),this.state==="closing"||this.state==="closed")return;this.abortController?.abort(),this.abortController=null;let J=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=J;let K=J-this.reconnectStartTime;if(K<KJ){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.refreshHeaders){let Q=this.refreshHeaders();Object.assign(this.headers,Q),G("SSETransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let W=Math.min(e*Math.pow(2,this.reconnectAttempts-1),JJ),Z=Math.max(0,W+W*0.25*(2*Math.random()-1));G(`SSETransport: Reconnecting in ${Math.round(Z)}ms (attempt ${this.reconnectAttempts}, ${Math.round(K/1000)}s elapsed)`),V("error","cli_sse_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Z)}else G(`SSETransport: Reconnection time budget exhausted after ${Math.round(K/1000)}s`,{level:"error"}),V("error","cli_sse_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:K}),this.state="closed",this.onCloseCallback?.()}onLivenessTimeout=()=>{this.livenessTimer=null,G("SSETransport: Liveness timeout, reconnecting",{level:"error"}),V("error","cli_sse_liveness_timeout"),this.abortController?.abort(),this.handleConnectionError()};resetLivenessTimer(){this.clearLivenessTimer(),this.livenessTimer=setTimeout(this.onLivenessTimeout,QJ)}clearLivenessTimer(){if(this.livenessTimer)clearTimeout(this.livenessTimer),this.livenessTimer=null}async write(J){let K=this.getAuthHeaders();if(Object.keys(K).length===0){G("SSETransport: No session token available for POST"),V("warn","cli_sse_post_no_token");return}let W={...K,"Content-Type":"application/json","anthropic-version":"2023-06-01","User-Agent":O()};G(`SSETransport: POST body keys=${Object.keys(J).join(",")}`);for(let Z=1;Z<=x;Z++){try{let $=await p.post(this.postUrl,J,{headers:W,validateStatus:zJ});if($.status===200||$.status===201){G(`SSETransport: POST success type=${J.type}`);return}if(G(`SSETransport: POST ${$.status} body=${H($.data).slice(0,200)}`),$.status>=400&&$.status<500&&$.status!==429){G(`SSETransport: POST returned ${$.status} (client error), not retrying`),V("warn","cli_sse_post_client_error",{status:$.status});return}G(`SSETransport: POST returned ${$.status}, attempt ${Z}/${x}`),V("warn","cli_sse_post_retryable_error",{status:$.status,attempt:Z})}catch($){G(`SSETransport: POST error: ${$.message}, attempt ${Z}/${x}`),V("warn","cli_sse_post_network_error",{attempt:Z})}if(Z===x){G(`SSETransport: POST failed after ${x} attempts, continuing`),V("warn","cli_sse_post_retries_exhausted");return}let Q=Math.min(ZJ*Math.pow(2,Z-1),$J);await B(Q)}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnClose(J){this.onCloseCallback=J}setOnEvent(J){this.onEventCallback=J}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.clearLivenessTimer(),this.state="closing",this.abortController?.abort(),this.abortController=null}}function LJ(J){let K=J.pathname;if(K.endsWith("/stream"))K=K.slice(0,-7);return`${J.protocol}//${J.host}${K}`}
|
|
7
|
+
export{R as Ib,k as Jb,a as Kb,YJ as Lb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ap as Rq,Bp as i,Cp as Aq,Uo as S,Zo as Zq,xo as E,yo as m,yp as l,zo as Xq}from"./cli-1.0.3-2wzvc8te.mjs";import{$aa as h,Waa as u,Yaa as g,aba as n,fba as vq,gfa as D,ofa as Qq}from"./cli-1.0.3-4m0kzrq4.mjs";import{Tga as d,Vga as Uq}from"./cli-1.0.3-pf8dk52a.mjs";import{Cia as M,Gia as y,Qia as V,Tia as e,tia as P,uia as v,yia as f}from"./cli-1.0.3-jmvq43wb.mjs";import{oja as W,pja as O,qja as C,vja as _}from"./cli-1.0.3-5hpdm52h.mjs";import{gqa as p,yqa as qq}from"./cli-1.0.3-zan6y0m1.mjs";import{Xqa as N}from"./cli-1.0.3-vzm5gxzn.mjs";import{homedir as a}from"os";import{resolve as t}from"path";async function Fq(Z){let q=Z.trim(),$=M(),Q=q.match(/^([a-zA-Z0-9._-]+@[^:]+:.+?(?:\.git)?)(#(.+))?$/);if(Q?.[1]){let z=Q[1],G=Q[3];return G?{source:"git",url:z,ref:G}:{source:"git",url:z}}if(q.startsWith("http://")||q.startsWith("https://")){let z=q.match(/^([^#]+)(#(.+))?$/),G=z?.[1]||q,X=z?.[3];if(G.endsWith(".git")||G.includes("/_git/"))return X?{source:"git",url:G,ref:X}:{source:"git",url:G};let Y;try{Y=new URL(G)}catch(J){return{source:"url",url:G}}if(Y.hostname==="github.com"||Y.hostname==="www.github.com"){if(Y.pathname.match(/^\/([^/]+\/[^/]+?)(\/|\.git|$)/)?.[1]){let K=G.endsWith(".git")?G:`${G}.git`;return X?{source:"git",url:K,ref:X}:{source:"git",url:K}}}return{source:"url",url:G}}let x=process.platform==="win32"&&(q.startsWith(".\\")||q.startsWith("..\\")||/^[a-zA-Z]:[/\\]/.test(q));if(q.startsWith("./")||q.startsWith("../")||q.startsWith("/")||q.startsWith("~")||x){let z=t(q.startsWith("~")?q.replace(/^~/,a()):q),G;try{G=await $.stat(z)}catch(X){let Y=O(X);return{error:Y==="ENOENT"?`Path does not exist: ${z}`:`Cannot access path: ${z} (${Y??X})`}}if(G.isFile())if(z.endsWith(".json"))return{source:"file",path:z};else return{error:`File path must point to a .json file (marketplace.json), but got: ${z}`};else if(G.isDirectory())return{source:"directory",path:z};else return{error:`Path is neither a file nor a directory: ${z}`}}if(q.includes("/")&&!q.startsWith("@")){if(q.includes(":"))return null;let z=q.match(/^([^#@]+)(?:[#@](.+))?$/),G=z?.[1]||q,X=z?.[2];return X?{source:"github",repo:G,ref:X}:{source:"github",repo:G}}return null}var r=N(()=>{_();y()});import{randomBytes as $q}from"crypto";import{readFile as Bq,rename as Gq,unlink as Yq,writeFile as Jq}from"fs/promises";import{join as Kq}from"path";function c(){return Kq(S(),xq)}async function Hq(){let Z=c();try{let q=await Bq(Z,{encoding:"utf-8"}),$=v(q);if(typeof $!=="object"||$===null||!("version"in $)||!("fetchedAt"in $)||!("counts"in $))return V("Install counts cache has invalid structure"),null;let Q=$;if(Q.version!==L)return V(`Install counts cache version mismatch (got ${Q.version}, expected ${L})`),null;if(typeof Q.fetchedAt!=="string"||!Array.isArray(Q.counts))return V("Install counts cache has invalid structure"),null;let B=new Date(Q.fetchedAt).getTime();if(Number.isNaN(B))return V("Install counts cache has invalid fetchedAt timestamp"),null;if(!Q.counts.every((G)=>typeof G==="object"&&G!==null&&typeof G.plugin==="string"&&typeof G.unique_installs==="number"))return V("Install counts cache has malformed entries"),null;if(Date.now()-B>zq)return V("Install counts cache is stale (>24h old)"),null;return{version:Q.version,fetchedAt:Q.fetchedAt,counts:Q.counts}}catch(q){if(O(q)!=="ENOENT")V(`Failed to load install counts cache: ${W(q)}`);return null}}async function Vq(Z){let q=c(),$=`${q}.${$q(8).toString("hex")}.tmp`;try{let Q=S();await M().mkdir(Q);let B=P(Z,null,2);await Jq($,B,{encoding:"utf-8",mode:384}),await Gq($,q),V("Install counts cache saved successfully")}catch(Q){D(Q);try{await Yq($)}catch{}}}async function Wq(){V(`Fetching install counts from ${I}`);let Z=performance.now();try{let q=await p.get(I,{timeout:1e4});if(!q.data?.plugins||!Array.isArray(q.data.plugins))throw Error("Invalid response format from install counts API");return E("install_counts",I,"success",performance.now()-Z),q.data.plugins}catch(q){throw E("install_counts",I,"failure",performance.now()-Z,m(q)),q}}async function nq(){let Z=await Hq();if(Z){V("Using cached install counts"),E("install_counts",I,"cache_hit",0);let q=new Map;for(let $ of Z.counts)q.set($.plugin,$.unique_installs);return q}try{let q=await Wq(),$={version:L,fetchedAt:new Date().toISOString(),counts:q};await Vq($);let Q=new Map;for(let B of q)Q.set(B.plugin,B.unique_installs);return Q}catch(q){return D(q),V(`Failed to fetch install counts: ${W(q)}`),null}}function lq(Z){if(Z<1000)return String(Z);if(Z<1e6){let B=(Z/1000).toFixed(1);return B.endsWith(".0")?`${B.slice(0,-2)}K`:`${B}K`}let $=(Z/1e6).toFixed(1);return $.endsWith(".0")?`${$.slice(0,-2)}M`:`${$}M`}var L=1,xq="install-counts-cache.json",I="https://raw.githubusercontent.com/anthropics/claude-plugins-official/refs/heads/stats/stats/plugin-installs.json",zq=86400000;var Oq=N(()=>{qq();e();_();y();Qq();f();Xq();Zq()});import{readdir as Iq,readFile as A,stat as wq}from"fs/promises";import*as H from"path";function Eq(Z){let q=H.basename(Z),$=H.basename(H.dirname(Z));if(q==="plugin.json")return"plugin";if(q==="marketplace.json")return"marketplace";if($===".claude-plugin")return"plugin";return"unknown"}function F(Z){return Z.issues.map((q)=>({path:q.path.join(".")||"root",message:q.message,code:q.code}))}function w(Z,q,$,Q){if(Z.includes(".."))$.push({path:q,message:Q?`Path contains "..": ${Z}. ${Q}`:`Path contains ".." which could be a path traversal attempt: ${Z}`})}function Nq(Z){let q=Z.replace(/^(\.\.\/)+/,"");return`Plugin source paths are resolved relative to the marketplace root (the directory containing .claude-plugin/), not relative to marketplace.json. Use "${q!==Z?`./${q}`:"./plugins/my-plugin"}" instead of "${Z}".`}async function j(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"plugin"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"plugin"}}if(x&&typeof x==="object"){let X=x;if(X.commands)(Array.isArray(X.commands)?X.commands:[X.commands]).forEach((J,K)=>{if(typeof J==="string")w(J,`commands[${K}]`,q)});if(X.agents)(Array.isArray(X.agents)?X.agents:[X.agents]).forEach((J,K)=>{if(typeof J==="string")w(J,`agents[${K}]`,q)});if(X.skills)(Array.isArray(X.skills)?X.skills:[X.skills]).forEach((J,K)=>{if(typeof J==="string")w(J,`skills[${K}]`,q)})}let z=x;if(typeof x==="object"&&x!==null){let X=x,Y=Object.keys(X).filter((J)=>Mq.has(J));if(Y.length>0){let J={...X};for(let K of Y)delete J[K],$.push({path:K,message:`Field '${K}' belongs in the marketplace entry (marketplace.json), `+"not plugin.json. It's harmless here but unused — Claude Code "+"ignores it at load time."});z=J}}let G=g().strict().safeParse(z);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!/^[a-z0-9]+(-[a-z0-9]+)*$/.test(X.name))$.push({path:"name",message:`Plugin name "${X.name}" is not kebab-case. Claude Code accepts it, but the Claude.ai marketplace sync requires kebab-case (lowercase letters, digits, and hyphens only, e.g., "my-plugin").`});if(!X.version)$.push({path:"version",message:'No version specified. Consider adding a version following semver (e.g., "1.0.0")'});if(!X.description)$.push({path:"description",message:"No description provided. Adding a description helps users understand what your plugin does"});if(!X.author)$.push({path:"author",message:"No author information provided. Consider adding author details for plugin attribution"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"plugin"}}async function k(Z){let q=[],$=[],Q=H.resolve(Z),B;try{B=await A(Q,{encoding:"utf-8"})}catch(X){let Y=O(X),J;if(Y==="ENOENT")J=`File not found: ${Q}`;else if(Y==="EISDIR")J=`Path is not a file: ${Q}`;else J=`Failed to read file: ${W(X)}`;return{success:!1,errors:[{path:"file",message:J,code:Y}],warnings:[],filePath:Q,fileType:"marketplace"}}let x;try{x=v(B)}catch(X){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(X)}`}],warnings:[],filePath:Q,fileType:"marketplace"}}if(x&&typeof x==="object"){let X=x;if(Array.isArray(X.plugins))X.plugins.forEach((Y,J)=>{if(Y&&typeof Y==="object"&&"source"in Y){let K=Y.source;if(typeof K==="string")w(K,`plugins[${J}].source`,q,Nq(K));if(K&&typeof K==="object"&&"path"in K&&typeof K.path==="string")w(K.path,`plugins[${J}].source.path`,q)}})}let G=n().extend({plugins:d.array(h().strict())}).strict().safeParse(x);if(!G.success)q.push(...F(G.error));if(G.success){let X=G.data;if(!X.plugins||X.plugins.length===0)$.push({path:"plugins",message:"Marketplace has no plugins defined"});if(X.plugins){X.plugins.forEach((K,U)=>{if(X.plugins.filter((R)=>R.name===K.name).length>1)q.push({path:`plugins[${U}].name`,message:`Duplicate plugin name "${K.name}" found in marketplace`})});let Y=H.dirname(Q),J=H.basename(Y)===".claude-plugin"?H.dirname(Y):Y;for(let[K,U]of X.plugins.entries()){if(!U.version||typeof U.source!=="string"||!U.source.startsWith("./"))continue;let T=H.join(J,U.source,".claude-plugin","plugin.json"),R;try{let s=await A(T,{encoding:"utf-8"}),b=v(s);if(typeof b.version==="string")R=b.version}catch{continue}if(R&&R!==U.version)$.push({path:`plugins[${K}].version`,message:`Entry declares version "${U.version}" but ${U.source}/.claude-plugin/plugin.json says "${R}". `+"At install time, plugin.json wins (calculatePluginVersion precedence) — the entry version is silently ignored. "+`Update this entry to "${R}" to match.`})}}if(!X.metadata?.description)$.push({path:"metadata.description",message:"No marketplace description provided. Adding a description helps users understand what this marketplace offers"})}return{success:q.length===0,errors:q,warnings:$,filePath:Q,fileType:"marketplace"}}function _q(Z,q,$){let Q=[],B=[],x=q.match(i);if(!x)return B.push({path:"frontmatter",message:"No frontmatter block found. Add YAML frontmatter between --- delimiters at the top of the file to set description and other metadata."}),{success:!0,errors:Q,warnings:B,filePath:Z,fileType:$};let z=x[1]||"",G;try{G=l(z)}catch(K){return Q.push({path:"frontmatter",message:`YAML frontmatter failed to parse: ${W(K)}. At runtime this ${$} loads with empty metadata (all frontmatter fields silently dropped).`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$}}if(G===null||typeof G!=="object"||Array.isArray(G))return Q.push({path:"frontmatter",message:`Frontmatter must be a YAML mapping (key: value pairs), got ${Array.isArray(G)?"an array":G===null?"null":typeof G}.`}),{success:!1,errors:Q,warnings:B,filePath:Z,fileType:$};let X=G;if(X.description!==void 0){let K=X.description;if(typeof K!=="string"&&typeof K!=="number"&&typeof K!=="boolean"&&K!==null)Q.push({path:"description",message:`description must be a string, got ${Array.isArray(K)?"array":typeof K}. At runtime this value is dropped.`})}else B.push({path:"description",message:`No description in frontmatter. A description helps users and Claude understand when to use this ${$}.`});if(X.name!==void 0&&X.name!==null&&typeof X.name!=="string")Q.push({path:"name",message:`name must be a string, got ${typeof X.name}.`});let Y=X["allowed-tools"];if(Y!==void 0&&Y!==null){if(typeof Y!=="string"&&!Array.isArray(Y))Q.push({path:"allowed-tools",message:`allowed-tools must be a string or array of strings, got ${typeof Y}.`});else if(Array.isArray(Y)&&Y.some((K)=>typeof K!=="string"))Q.push({path:"allowed-tools",message:"allowed-tools array must contain only strings."})}let J=X.shell;if(J!==void 0&&J!==null)if(typeof J!=="string")Q.push({path:"shell",message:`shell must be a string, got ${typeof J}.`});else{let K=J.trim().toLowerCase();if(K!=="bash"&&K!=="powershell")Q.push({path:"shell",message:`shell must be 'bash' or 'powershell', got '${J}'.`})}return{success:Q.length===0,errors:Q,warnings:B,filePath:Z,fileType:$}}async function Lq(Z){let q;try{q=await A(Z,{encoding:"utf-8"})}catch(B){if(O(B)==="ENOENT")return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"};return{success:!1,errors:[{path:"file",message:`Failed to read file: ${W(B)}`}],warnings:[],filePath:Z,fileType:"hooks"}}let $;try{$=v(q)}catch(B){return{success:!1,errors:[{path:"json",message:`Invalid JSON syntax: ${W(B)}. At runtime this breaks the entire plugin load.`}],warnings:[],filePath:Z,fileType:"hooks"}}let Q=u().safeParse($);if(!Q.success)return{success:!1,errors:F(Q.error),warnings:[],filePath:Z,fileType:"hooks"};return{success:!0,errors:[],warnings:[],filePath:Z,fileType:"hooks"}}async function o(Z,q){let $;try{$=await Iq(Z,{withFileTypes:!0})}catch(B){let x=O(B);if(x==="ENOENT"||x==="ENOTDIR")return[];throw B}if(q)return $.filter((B)=>B.isDirectory()).map((B)=>H.join(Z,B.name,"SKILL.md"));let Q=[];for(let B of $){let x=H.join(Z,B.name);if(B.isDirectory())Q.push(...await o(x,!1));else if(B.isFile()&&B.name.toLowerCase().endsWith(".md"))Q.push(x)}return Q}async function QQ(Z){let q=[],$=[["skill",H.join(Z,"skills")],["agent",H.join(Z,"agents")],["command",H.join(Z,"commands")]];for(let[B,x]of $){let z=await o(x,B==="skill");for(let G of z){let X;try{X=await A(G,{encoding:"utf-8"})}catch(J){if(C(J))continue;q.push({success:!1,errors:[{path:"file",message:`Failed to read: ${W(J)}`}],warnings:[],filePath:G,fileType:B});continue}let Y=_q(G,X,B);if(Y.errors.length>0||Y.warnings.length>0)q.push(Y)}}let Q=await Lq(H.join(Z,"hooks","hooks.json"));if(Q.errors.length>0||Q.warnings.length>0)q.push(Q);return q}async function XQ(Z){let q=H.resolve(Z),$=null;try{$=await wq(q)}catch(B){if(!C(B))throw B}if($?.isDirectory()){let B=H.join(q,".claude-plugin","marketplace.json"),x=await k(B);if(x.errors[0]?.code!=="ENOENT")return x;let z=H.join(q,".claude-plugin","plugin.json"),G=await j(z);if(G.errors[0]?.code!=="ENOENT")return G;return{success:!1,errors:[{path:"directory",message:"No manifest found in directory. Expected .claude-plugin/marketplace.json or .claude-plugin/plugin.json"}],warnings:[],filePath:q,fileType:"plugin"}}switch(Eq(Z)){case"plugin":return j(Z);case"marketplace":return k(Z);case"unknown":{try{let B=await A(q,{encoding:"utf-8"}),x=v(B);if(Array.isArray(x.plugins))return k(Z)}catch(B){if(O(B)==="ENOENT")return{success:!1,errors:[{path:"file",message:`File not found: ${q}`}],warnings:[],filePath:q,fileType:"plugin"}}return j(Z)}}}var Mq;var Dq=N(()=>{Uq();_();Aq();f();Rq();vq();Mq=new Set(["category","source","tags","strict","id"])});
|
|
2
|
+
export{Fq as ld,r as md,nq as nd,lq as od,Oq as pd,QQ as qd,XQ as rd,Dq as sd};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Rh as g,Sh as Uf}from"./cli-1.0.3-b72086ew.mjs";import{Wh as A,Yh as Kf}from"./cli-1.0.3-zqp5x3gh.mjs";import{$B as $f,Cm as Vf,El as y,Gj as W,JQ as l,Ku as m,LB as M,Lu as Zf,MC as c,Or as E,PC as bf,Pr as P,Qr as Xf,Ru as C,Tj as w,US as Hf,Uj as zf,VS as d,Vu as T,XD as u,YD as jf,Zl as Jf,Zu as _f,_B as I,_R as S,jR as Ff,jm as N,lE as v,lS as p,pm as Qf,sE as Df,sS as k,xl as Bf,xm as L,yl as Gf,ys as h,zs as Yf}from"./cli-1.0.3-2wzvc8te.mjs";import{gfa as R,ofa as ff}from"./cli-1.0.3-4m0kzrq4.mjs";import{Nha as O,Qha as e}from"./cli-1.0.3-ynf2sj5r.mjs";import{boa as H,mpa as s,oma as F,pla as U,qla as q,vla as x}from"./cli-1.0.3-5kneybr4.mjs";import{Uqa as K,Xqa as t}from"./cli-1.0.3-vzm5gxzn.mjs";import{randomUUID as qf}from"crypto";async function lf({setMessages:V,readFileState:i,discoveredSkillNames:n,loadedNestedMemoryPaths:r,getAppState:G,setAppState:J,setConversationId:X}){let Y=l();await M("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Y),timeoutMs:Y});let Z=F();if(Z)O("tengu_cache_eviction_hint",{scope:"conversation_clear",last_request_id:Z});let Q=new Set,_=[],$=(f)=>("isBackgrounded"in f)&&f.isBackgrounded===!1;if(G)for(let f of Object.values(G().tasks)){if($(f))continue;if(v(f))Q.add(f.agentId),_.push(f);else if(m(f))Q.add(f.identity.agentId)}if(V(()=>[]),X)X(qf());if(g(Q),I(x()),i.clear(),n?.clear(),r?.clear(),J)J((f)=>{let B={};for(let[D,z]of Object.entries(f.tasks)){if(!$(z)){B[D]=z;continue}try{if(z.status==="running"){if(h(z)){if(z.shellCommand?.kill(),z.shellCommand?.cleanup(),z.cleanupTimeoutId)clearTimeout(z.cleanupTimeoutId)}if("abortController"in z)z.abortController?.abort();if("unregisterCleanup"in z)z.unregisterCleanup?.()}}catch(a){R(a)}E(D)}return{...f,tasks:B,attribution:u(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:f.mcp.pluginReconnectKey}}});N(),p(),H(),A(),T(),C();let o=U();q({setCurrentAsParent:!0}),L(o),await S();for(let f of _){if(f.status!=="running")continue;P(f.id,W(w(f.agentId)))}{let{saveMode:f}=(d(),K(Hf)),{isCoordinatorMode:B}=(Gf(),K(Bf));f(B()?"coordinator":"normal")}let b=y();if(b)k(b);let j=await c("clear");if(j.length>0)V(()=>j)}var xf=t(()=>{s();e();Zf();Df();Yf();zf();_f();jf();Ff();ff();Kf();Qf();$f();bf();d();Xf();Vf();Jf();Uf()});
|
|
2
|
+
export{lf as Ph,xf as Qh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{tia as E,uia as F,yia as M}from"./cli-1.0.3-jmvq43wb.mjs";import{gqa as H,yqa as N}from"./cli-1.0.3-zan6y0m1.mjs";N();M();function V(z){let C=Buffer.from(z,"base64url").toString("utf-8"),q=F(C);if(!q||typeof q!=="object"||!("version"in q)||q.version!==1)throw Error(`Unsupported work secret version: ${q&&typeof q==="object"&&"version"in q?q.version:"unknown"}`);let A=q;if(typeof A.session_ingress_token!=="string"||A.session_ingress_token.length===0)throw Error("Invalid work secret: missing or empty session_ingress_token");if(typeof A.api_base_url!=="string")throw Error("Invalid work secret: missing api_base_url");return q}function W(z,C){let q=new URL(z).hostname,A=q==="localhost"||q==="127.0.0.1",D=A?"ws":"wss",J=A?"v2":"v1",K=z.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`${D}://${K}/${J}/session_ingress/ws/${C}`}function X(z,C){if(z===C)return!0;let q=z.slice(z.lastIndexOf("_")+1),A=C.slice(C.lastIndexOf("_")+1);return q.length>=4&&q===A}function Y(z,C){return`${z.replace(/\/+$/,"")}/v1/code/sessions/${C}`}async function Z(z,C){let q=await H.post(`${z}/worker/register`,{},{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"},timeout:1e4}),A=q.data?.worker_epoch,D=typeof A==="string"?Number(A):A;if(typeof D!=="number"||!Number.isFinite(D)||!Number.isSafeInteger(D))throw Error(`registerWorker: invalid worker_epoch in response: ${E(q.data)}`);return D}
|
|
2
|
+
export{V as Mb,W as Nb,X as Ob,Y as Pb,Z as Qb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{FJ as Y,IQ as R,mm as W,pm as P,rk as Q,sk as I}from"./cli-1.0.3-2wzvc8te.mjs";import{rfa as B,sfa as f}from"./cli-1.0.3-phh30dq0.mjs";import{Cha as F,gha as H,hha as J}from"./cli-1.0.3-n2h9jvgm.mjs";import{mpa as $,pla as v}from"./cli-1.0.3-5kneybr4.mjs";import{Xqa as Z}from"./cli-1.0.3-vzm5gxzn.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:Y({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Z(()=>{$();F();I();f();R();P()});
|
|
2
|
+
export{S as Ye,V as Ze,X as _e,r as $e,w as af,T as bf,G as cf};
|