@claudiolabs/claudin 0.6.2 → 0.6.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/dist/chunks/AgentTool-0.6.3-w39w1tm9.mjs +1 -0
- package/dist/chunks/App-0.6.3-bf23q7fe.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.6.3-kmctgnz2.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.6.3-0ep3n5s0.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.6.3-vxra859t.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.6.3-sw13k2p8.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.3-60awaqwr.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.6.3-kk7w26bg.mjs +1 -0
- package/dist/chunks/DiffDialog-0.6.3-xvx07sv4.mjs +3 -0
- package/dist/chunks/Doctor-0.6.3-4jwxgrk8.mjs +1 -0
- package/dist/chunks/Grove-0.6.3-g8cwnttq.mjs +1 -0
- package/dist/chunks/ITermBackend-0.6.3-jdkqh9bh.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.6.3-0k9mawc3.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.6.3-j8rff6m8.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.6.3-car6y4n7.mjs +1 -0
- package/dist/chunks/Onboarding-0.6.3-m7danhhz.mjs +1 -0
- package/dist/chunks/ProviderManager-0.6.3-pwe3440b.mjs +1 -0
- package/dist/chunks/REPL-0.6.3-fgapj6pt.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.6.3-8m1y0n85.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.6.3-btb0czta.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.6.3-0cvtw4gc.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.3-3ns6hahg.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.6.3-82jmwxw0.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.6.3-ampabjvv.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.6.3-8nqsgt07.mjs +1 -0
- package/dist/chunks/TrustDialog-0.6.3-vd2hj09s.mjs +1 -0
- package/dist/chunks/activeProvider-0.6.3-b2vqxf8h.mjs +1 -0
- package/dist/chunks/add-dir-0.6.3-g1q6rzd5.mjs +1 -0
- package/dist/chunks/agents-0.6.3-q5xaz38q.mjs +3 -0
- package/dist/chunks/agents-0.6.3-x369fczx.mjs +110 -0
- package/dist/chunks/api-0.6.3-c8cpd5e4.mjs +1 -0
- package/dist/chunks/asciicast-0.6.3-ph0g3j31.mjs +1 -0
- package/dist/chunks/assistant-0.6.3-zzx692bw.mjs +1 -0
- package/dist/chunks/auth-0.6.3-4t0t2nkn.mjs +1 -0
- package/dist/chunks/auth-0.6.3-s9a1xnxb.mjs +1 -0
- package/dist/chunks/autoMode-0.6.3-aha41tt9.mjs +48 -0
- package/dist/chunks/autoUpdater-0.6.3-nknpfabv.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-0.6.3-t18m5mxn.mjs +1 -0
- package/dist/chunks/branch-0.6.3-mm6nsq5m.mjs +4 -0
- package/dist/chunks/bridgePointer-0.6.3-96b73p4h.mjs +1 -0
- package/dist/chunks/btw-0.6.3-3ad5s4cs.mjs +1 -0
- package/dist/chunks/buddy-0.6.3-fv2jmxew.mjs +3 -0
- package/dist/chunks/cacache-0.6.3-8n06prq8.mjs +1 -0
- package/dist/chunks/cache-probe-0.6.3-vwte845g.mjs +21 -0
- package/dist/chunks/cacheStats-0.6.3-3knz38ev.mjs +4 -0
- package/dist/chunks/caches-0.6.3-ab262f7m.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.6.3-sw2jgmfw.mjs +1 -0
- package/dist/chunks/claudemd-0.6.3-ppznmrv5.mjs +1 -0
- package/dist/chunks/clear-0.6.3-q5ygewg2.mjs +1 -0
- package/dist/chunks/clearTerminal-0.6.3-k13xzp29.mjs +1 -0
- package/dist/chunks/cli-0.6.3-0cpgmzyt.mjs +2 -0
- package/dist/chunks/cli-0.6.3-0d5cxdkq.mjs +2 -0
- package/dist/chunks/cli-0.6.3-0f2ybbnq.mjs +2 -0
- package/dist/chunks/cli-0.6.3-0xzsm005.mjs +2 -0
- package/dist/chunks/cli-0.6.3-1hr1gfgx.mjs +2 -0
- package/dist/chunks/cli-0.6.3-20mtfrec.mjs +2 -0
- package/dist/chunks/cli-0.6.3-2seqm104.mjs +4 -0
- package/dist/chunks/cli-0.6.3-2znr1dn6.mjs +2 -0
- package/dist/chunks/cli-0.6.3-307m09be.mjs +3 -0
- package/dist/chunks/cli-0.6.3-32ma4ryx.mjs +58 -0
- package/dist/chunks/cli-0.6.3-3k3fr10v.mjs +2 -0
- package/dist/chunks/cli-0.6.3-3sga01kt.mjs +2 -0
- package/dist/chunks/cli-0.6.3-40mx2zxs.mjs +2 -0
- package/dist/chunks/cli-0.6.3-4jyjt985.mjs +2 -0
- package/dist/chunks/cli-0.6.3-4n393st8.mjs +2 -0
- package/dist/chunks/cli-0.6.3-4tqk3dby.mjs +12 -0
- package/dist/chunks/cli-0.6.3-4y6pfyfp.mjs +2 -0
- package/dist/chunks/cli-0.6.3-4z9781g7.mjs +2 -0
- package/dist/chunks/cli-0.6.3-4zj0d42m.mjs +18 -0
- package/dist/chunks/cli-0.6.3-5nfphar2.mjs +3 -0
- package/dist/chunks/cli-0.6.3-5pxyd9b0.mjs +4 -0
- package/dist/chunks/cli-0.6.3-5rwq19xb.mjs +2 -0
- package/dist/chunks/cli-0.6.3-5t2m3g99.mjs +2 -0
- package/dist/chunks/cli-0.6.3-6a21y020.mjs +2 -0
- package/dist/chunks/cli-0.6.3-6ax8m5hv.mjs +6 -0
- package/dist/chunks/cli-0.6.3-6cgyr2zy.mjs +4 -0
- package/dist/chunks/cli-0.6.3-6cvpnccg.mjs +4 -0
- package/dist/chunks/cli-0.6.3-6ee9dyyg.mjs +3 -0
- package/dist/chunks/cli-0.6.3-6h30fzt5.mjs +17 -0
- package/dist/chunks/cli-0.6.3-6n6gtkcy.mjs +2 -0
- package/dist/chunks/cli-0.6.3-6njpepxe.mjs +2 -0
- package/dist/chunks/cli-0.6.3-6yfw5hn3.mjs +2 -0
- package/dist/chunks/cli-0.6.3-7adzjn5q.mjs +34 -0
- package/dist/chunks/cli-0.6.3-7g460zkw.mjs +2 -0
- package/dist/chunks/cli-0.6.3-7qg9g8tc.mjs +2 -0
- package/dist/chunks/cli-0.6.3-81rrwwcp.mjs +2 -0
- package/dist/chunks/cli-0.6.3-8cn32ma4.mjs +2 -0
- package/dist/chunks/cli-0.6.3-8dsgn7hp.mjs +2 -0
- package/dist/chunks/cli-0.6.3-8ea1a14z.mjs +2 -0
- package/dist/chunks/cli-0.6.3-8ggghhkx.mjs +2 -0
- package/dist/chunks/cli-0.6.3-8qad2cfe.mjs +3 -0
- package/dist/chunks/cli-0.6.3-8syjpqfr.mjs +4 -0
- package/dist/chunks/cli-0.6.3-92dx7xfh.mjs +2 -0
- package/dist/chunks/cli-0.6.3-92mddczk.mjs +2 -0
- package/dist/chunks/cli-0.6.3-97118c51.mjs +2 -0
- package/dist/chunks/cli-0.6.3-99kq55gd.mjs +2 -0
- package/dist/chunks/cli-0.6.3-99tcx5qw.mjs +2 -0
- package/dist/chunks/cli-0.6.3-9swe2gr2.mjs +45 -0
- package/dist/chunks/cli-0.6.3-a9z41xw7.mjs +2 -0
- package/dist/chunks/cli-0.6.3-aa0b2a2r.mjs +2 -0
- package/dist/chunks/cli-0.6.3-aazxr34f.mjs +2 -0
- package/dist/chunks/cli-0.6.3-aexkp8kj.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ajqkhkc8.mjs +3 -0
- package/dist/chunks/cli-0.6.3-apnw4sqn.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ar7px1cs.mjs +3 -0
- package/dist/chunks/cli-0.6.3-aw337kkj.mjs +3 -0
- package/dist/chunks/cli-0.6.3-b773k4ts.mjs +2 -0
- package/dist/chunks/cli-0.6.3-b8vfg8at.mjs +2 -0
- package/dist/chunks/cli-0.6.3-bcqjyxwt.mjs +2 -0
- package/dist/chunks/cli-0.6.3-be9988sa.mjs +67 -0
- package/dist/chunks/cli-0.6.3-bm4fb040.mjs +2 -0
- package/dist/chunks/cli-0.6.3-bv459f1w.mjs +50 -0
- package/dist/chunks/cli-0.6.3-cbyjhbhd.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ce093xrt.mjs +2 -0
- package/dist/chunks/cli-0.6.3-cfgaczs0.mjs +9 -0
- package/dist/chunks/cli-0.6.3-cn73stdt.mjs +2 -0
- package/dist/chunks/cli-0.6.3-cry1qz3j.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ct7rzynk.mjs +25 -0
- package/dist/chunks/cli-0.6.3-cz70v0dc.mjs +193 -0
- package/dist/chunks/cli-0.6.3-dcddpada.mjs +2 -0
- package/dist/chunks/cli-0.6.3-djx10r48.mjs +2 -0
- package/dist/chunks/cli-0.6.3-dv7ypjqm.mjs +42 -0
- package/dist/chunks/cli-0.6.3-dx1n041e.mjs +4 -0
- package/dist/chunks/cli-0.6.3-e56v1kt5.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ee53b5tf.mjs +2 -0
- package/dist/chunks/cli-0.6.3-efydy6w2.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ejr47y1x.mjs +2 -0
- package/dist/chunks/cli-0.6.3-eqnnyg8r.mjs +10 -0
- package/dist/chunks/cli-0.6.3-es8pf0wd.mjs +5 -0
- package/dist/chunks/cli-0.6.3-eytmae68.mjs +2 -0
- package/dist/chunks/cli-0.6.3-f2hnrcvv.mjs +2 -0
- package/dist/chunks/cli-0.6.3-f6vwjwer.mjs +2 -0
- package/dist/chunks/cli-0.6.3-fdr38m0k.mjs +2 -0
- package/dist/chunks/cli-0.6.3-fdye25f4.mjs +21 -0
- package/dist/chunks/cli-0.6.3-fhets69t.mjs +2 -0
- package/dist/chunks/cli-0.6.3-fws87r5f.mjs +2 -0
- package/dist/chunks/cli-0.6.3-fz79skca.mjs +133 -0
- package/dist/chunks/cli-0.6.3-g48fakzt.mjs +4 -0
- package/dist/chunks/cli-0.6.3-g4gt6qj9.mjs +18 -0
- package/dist/chunks/cli-0.6.3-g4y759q5.mjs +2 -0
- package/dist/chunks/cli-0.6.3-g7nc10fr.mjs +2 -0
- package/dist/chunks/cli-0.6.3-g7yry9cm.mjs +2 -0
- package/dist/chunks/cli-0.6.3-gcncppqh.mjs +2 -0
- package/dist/chunks/cli-0.6.3-gm6gpvcp.mjs +2 -0
- package/dist/chunks/cli-0.6.3-gmb75jnx.mjs +2 -0
- package/dist/chunks/cli-0.6.3-grerfrmn.mjs +2 -0
- package/dist/chunks/cli-0.6.3-gywe2011.mjs +2 -0
- package/dist/chunks/cli-0.6.3-gz3mwtfc.mjs +15 -0
- package/dist/chunks/cli-0.6.3-h1yy6vwa.mjs +3 -0
- package/dist/chunks/cli-0.6.3-h9dw5s07.mjs +2 -0
- package/dist/chunks/cli-0.6.3-h9pgh5g6.mjs +3 -0
- package/dist/chunks/cli-0.6.3-hccmsmnq.mjs +2 -0
- package/dist/chunks/cli-0.6.3-hz8r1b9m.mjs +2 -0
- package/dist/chunks/cli-0.6.3-jc158pav.mjs +3 -0
- package/dist/chunks/cli-0.6.3-jh5sabys.mjs +2 -0
- package/dist/chunks/cli-0.6.3-jwkcjnvk.mjs +2 -0
- package/dist/chunks/cli-0.6.3-k2n0q631.mjs +39 -0
- package/dist/chunks/cli-0.6.3-k5rdtkfr.mjs +3 -0
- package/dist/chunks/cli-0.6.3-kay5e0jz.mjs +2 -0
- package/dist/chunks/cli-0.6.3-kfn8srsd.mjs +2 -0
- package/dist/chunks/cli-0.6.3-kwnp45kq.mjs +2 -0
- package/dist/chunks/cli-0.6.3-kz9egvgw.mjs +5323 -0
- package/dist/chunks/cli-0.6.3-m74nx2m5.mjs +2 -0
- package/dist/chunks/cli-0.6.3-mc6kp3j9.mjs +18 -0
- package/dist/chunks/cli-0.6.3-mcmskrq3.mjs +7 -0
- package/dist/chunks/cli-0.6.3-mwmvdr0y.mjs +2 -0
- package/dist/chunks/cli-0.6.3-mwvq805r.mjs +2 -0
- package/dist/chunks/cli-0.6.3-n0nvqsep.mjs +2 -0
- package/dist/chunks/cli-0.6.3-n2d97bhc.mjs +2 -0
- package/dist/chunks/cli-0.6.3-n3f5zh7x.mjs +2 -0
- package/dist/chunks/cli-0.6.3-n95caxs7.mjs +6 -0
- package/dist/chunks/cli-0.6.3-nawttnnp.mjs +16 -0
- package/dist/chunks/cli-0.6.3-ny9veqgk.mjs +2 -0
- package/dist/chunks/cli-0.6.3-p3cb5wr9.mjs +4 -0
- package/dist/chunks/cli-0.6.3-p6tkk7cq.mjs +2 -0
- package/dist/chunks/cli-0.6.3-pj26ahpb.mjs +15 -0
- package/dist/chunks/cli-0.6.3-pqq8j8h2.mjs +2 -0
- package/dist/chunks/cli-0.6.3-przsjt5w.mjs +2 -0
- package/dist/chunks/cli-0.6.3-pt8n31ph.mjs +2 -0
- package/dist/chunks/cli-0.6.3-q35m6zsh.mjs +2 -0
- package/dist/chunks/cli-0.6.3-qh59pqrb.mjs +2 -0
- package/dist/chunks/cli-0.6.3-qj1bfrer.mjs +15 -0
- package/dist/chunks/cli-0.6.3-qse47680.mjs +5 -0
- package/dist/chunks/cli-0.6.3-qt063vx3.mjs +2 -0
- package/dist/chunks/cli-0.6.3-r08n6yst.mjs +2 -0
- package/dist/chunks/cli-0.6.3-r0chaj0m.mjs +2 -0
- package/dist/chunks/cli-0.6.3-r0pavcpp.mjs +2 -0
- package/dist/chunks/cli-0.6.3-r8snnnev.mjs +2 -0
- package/dist/chunks/cli-0.6.3-r9spk5d9.mjs +2 -0
- package/dist/chunks/cli-0.6.3-razq4hma.mjs +2 -0
- package/dist/chunks/cli-0.6.3-rbhgbyc8.mjs +24 -0
- package/dist/chunks/cli-0.6.3-rcd74wx6.mjs +9 -0
- package/dist/chunks/cli-0.6.3-rha5x3b1.mjs +2 -0
- package/dist/chunks/cli-0.6.3-rm69szc5.mjs +2 -0
- package/dist/chunks/cli-0.6.3-rxzhhezk.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ry8ff2h4.mjs +4 -0
- package/dist/chunks/cli-0.6.3-rz3jyy54.mjs +133 -0
- package/dist/chunks/cli-0.6.3-rzva33s6.mjs +2 -0
- package/dist/chunks/cli-0.6.3-s12drscf.mjs +2 -0
- package/dist/chunks/cli-0.6.3-sxj65pz4.mjs +2 -0
- package/dist/chunks/cli-0.6.3-syb9w8h5.mjs +2 -0
- package/dist/chunks/cli-0.6.3-sz0yt1ax.mjs +59 -0
- package/dist/chunks/cli-0.6.3-te71cc6c.mjs +8 -0
- package/dist/chunks/cli-0.6.3-tjykjtxh.mjs +6 -0
- package/dist/chunks/cli-0.6.3-v3fjzj8a.mjs +12 -0
- package/dist/chunks/cli-0.6.3-vcpzn6r6.mjs +2 -0
- package/dist/chunks/cli-0.6.3-vdzjz0qm.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ve8f981m.mjs +3 -0
- package/dist/chunks/cli-0.6.3-vp1zy3b1.mjs +2 -0
- package/dist/chunks/cli-0.6.3-vsvcyfnd.mjs +17 -0
- package/dist/chunks/cli-0.6.3-w038em13.mjs +2 -0
- package/dist/chunks/cli-0.6.3-w3rq9jx1.mjs +2 -0
- package/dist/chunks/cli-0.6.3-wfrn6z2y.mjs +24 -0
- package/dist/chunks/cli-0.6.3-whtn6spz.mjs +2 -0
- package/dist/chunks/cli-0.6.3-wr2sys6k.mjs +2 -0
- package/dist/chunks/cli-0.6.3-wvdzc276.mjs +1 -0
- package/dist/chunks/cli-0.6.3-wwmrkyrs.mjs +20 -0
- package/dist/chunks/cli-0.6.3-wws3zqpm.mjs +2 -0
- package/dist/chunks/cli-0.6.3-x6f1pr27.mjs +2 -0
- package/dist/chunks/cli-0.6.3-x78bwn0g.mjs +5 -0
- package/dist/chunks/cli-0.6.3-xe5mxfxe.mjs +2 -0
- package/dist/chunks/cli-0.6.3-xewp168m.mjs +2 -0
- package/dist/chunks/cli-0.6.3-y1aakb6y.mjs +2 -0
- package/dist/chunks/cli-0.6.3-y1mm0v8x.mjs +2 -0
- package/dist/chunks/cli-0.6.3-y30hptm0.mjs +2 -0
- package/dist/chunks/cli-0.6.3-y61armem.mjs +2 -0
- package/dist/chunks/cli-0.6.3-y8ymw6ed.mjs +2 -0
- package/dist/chunks/cli-0.6.3-yk56wjb7.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ym6dcvjc.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ymhjs7dc.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ysazbe18.mjs +2 -0
- package/dist/chunks/cli-0.6.3-ywk23cbf.mjs +2 -0
- package/dist/chunks/cli-0.6.3-z19b5v43.mjs +2 -0
- package/dist/chunks/cli-0.6.3-z6sz55zd.mjs +2 -0
- package/dist/chunks/cli-0.6.3-z8vc44s1.mjs +2 -0
- package/dist/chunks/cli-0.6.3-zd6bnvyc.mjs +4 -0
- package/dist/chunks/cli-0.6.3-zmn1fgaa.mjs +2 -0
- package/dist/chunks/cli-0.6.3-zqvgfprs.mjs +2 -0
- package/dist/chunks/cli-0.6.3-zy0jc7vm.mjs +12 -0
- package/dist/chunks/cli-0.6.3-zyrsvq59.mjs +2 -0
- package/dist/chunks/client-0.6.3-6pn9sb4n.mjs +1 -0
- package/dist/chunks/color-0.6.3-2hpfj774.mjs +1 -0
- package/dist/chunks/compact-0.6.3-dnwdmmz1.mjs +3 -0
- package/dist/chunks/config-0.6.3-tjhtvb07.mjs +1 -0
- package/dist/chunks/config-0.6.3-z2wgyz10.mjs +1 -0
- package/dist/chunks/constants-0.6.3-qha9fz15.mjs +1 -0
- package/dist/chunks/context-0.6.3-vka61j1y.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.6.3-eztt7zsf.mjs +1 -0
- package/dist/chunks/conversation-0.6.3-2ek3hdrq.mjs +1 -0
- package/dist/chunks/copilotHeaders-0.6.3-62c0y07g.mjs +1 -0
- package/dist/chunks/copy-0.6.3-gekdww8z.mjs +9 -0
- package/dist/chunks/cost-0.6.3-a2yhjbn3.mjs +1 -0
- package/dist/chunks/createSSHSession-0.6.3-5tn04mse.mjs +1 -0
- package/dist/chunks/createSession-0.6.3-kyn5dc4w.mjs +1 -0
- package/dist/chunks/debug-0.6.3-66czfwwr.mjs +1 -0
- package/dist/chunks/defaultActionDeps-0.6.3-x9wk9j9m.mjs +1365 -0
- package/dist/chunks/desktop-0.6.3-p8kgbeab.mjs +1 -0
- package/dist/chunks/detectRepository-0.6.3-8698wvb5.mjs +1 -0
- package/dist/chunks/detection-0.6.3-1y7661gd.mjs +1 -0
- package/dist/chunks/diff-0.6.3-mk0y1bzd.mjs +1 -0
- package/dist/chunks/doctor-0.6.3-xvwcr7dp.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-0.6.3-th9mec17.mjs +1 -0
- package/dist/chunks/earlyInput-0.6.3-642zt7fp.mjs +1 -0
- package/dist/chunks/effort-0.6.3-zvkntxpn.mjs +10 -0
- package/dist/chunks/envUtils-0.6.3-yazqghf2.mjs +1 -0
- package/dist/chunks/environmentSelection-0.6.3-0bcr6rhg.mjs +1 -0
- package/dist/chunks/environments-0.6.3-2tyy264w.mjs +1 -0
- package/dist/chunks/errors-0.6.3-65brz247.mjs +1 -0
- package/dist/chunks/exampleCommands-0.6.3-ktqksq57.mjs +1 -0
- package/dist/chunks/exit-0.6.3-0ce6gh5m.mjs +1 -0
- package/dist/chunks/export-0.6.3-e2mjekav.mjs +2 -0
- package/dist/chunks/extra-usage-0.6.3-hqp8h6yy.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.6.3-rfyx9kw2.mjs +1 -0
- package/dist/chunks/fast-0.6.3-1jg7ysjx.mjs +1 -0
- package/dist/chunks/feedback-0.6.3-1tb6qds2.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.6.3-c9kfz0k1.mjs +1 -0
- package/dist/chunks/git-0.6.3-vzgvhd0s.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.6.3-9qcrf80c.mjs +1 -0
- package/dist/chunks/goal-0.6.3-mf91z3fg.mjs +4 -0
- package/dist/chunks/grove-0.6.3-mmn276sp.mjs +1 -0
- package/dist/chunks/growthbook-0.6.3-4p9xew93.mjs +1 -0
- package/dist/chunks/headless-0.6.3-qgmxgj70.mjs +2 -0
- package/dist/chunks/heapdump-0.6.3-2w4fe2zs.mjs +6 -0
- package/dist/chunks/help-0.6.3-wf4xf793.mjs +1 -0
- package/dist/chunks/hookChains-0.6.3-q342m95f.mjs +3 -0
- package/dist/chunks/hooks-0.6.3-0r48akk8.mjs +79 -0
- package/dist/chunks/hooks-0.6.3-r14ya7wn.mjs +1 -0
- package/dist/chunks/ide-0.6.3-ad8afpp9.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.6.3-tva04ya1.mjs +1 -0
- package/dist/chunks/index-0.6.3-0hyrtrrm.mjs +9 -0
- package/dist/chunks/index-0.6.3-0vhzk5yx.mjs +5 -0
- package/dist/chunks/index-0.6.3-1ykp8wv0.mjs +2 -0
- package/dist/chunks/index-0.6.3-2bzz31fe.mjs +1 -0
- package/dist/chunks/index-0.6.3-55v75g6w.mjs +1 -0
- package/dist/chunks/index-0.6.3-6rpbscw7.mjs +17 -0
- package/dist/chunks/index-0.6.3-7mch7z3a.mjs +1 -0
- package/dist/chunks/index-0.6.3-858y11er.mjs +1 -0
- package/dist/chunks/index-0.6.3-a40sh9ap.mjs +1 -0
- package/dist/chunks/index-0.6.3-aj0c98mr.mjs +1 -0
- package/dist/chunks/index-0.6.3-b9fkqrrw.mjs +1 -0
- package/dist/chunks/index-0.6.3-f5732qxw.mjs +1 -0
- package/dist/chunks/index-0.6.3-f5w18za6.mjs +1 -0
- package/dist/chunks/index-0.6.3-f6h116cn.mjs +2 -0
- package/dist/chunks/index-0.6.3-htq5dpvs.mjs +30 -0
- package/dist/chunks/index-0.6.3-hv4mfh2n.mjs +1 -0
- package/dist/chunks/index-0.6.3-kadhv0zg.mjs +9 -0
- package/dist/chunks/index-0.6.3-tsd8ykv3.mjs +1 -0
- package/dist/chunks/index-0.6.3-w2hywyvr.mjs +1 -0
- package/dist/chunks/index-0.6.3-wk9kzbcz.mjs +1 -0
- package/dist/chunks/index-0.6.3-ygqhtfnf.mjs +1 -0
- package/dist/chunks/index-0.6.3-yvah3e6g.mjs +1 -0
- package/dist/chunks/init-0.6.3-xaeb8hxb.mjs +1 -0
- package/dist/chunks/initReplBridge-0.6.3-nmmr7v8v.mjs +1 -0
- package/dist/chunks/ink-0.6.3-6m2sw7dq.mjs +1 -0
- package/dist/chunks/insights-0.6.3-6b93b8nm.mjs +870 -0
- package/dist/chunks/install-0.6.3-y9zek66z.mjs +1 -0
- package/dist/chunks/install-github-app-0.6.3-899pnvtd.mjs +149 -0
- package/dist/chunks/install-slack-app-0.6.3-f8saspck.mjs +1 -0
- package/dist/chunks/instrumentation-0.6.3-defghs68.mjs +1 -0
- package/dist/chunks/interactiveHelpers-0.6.3-7ec0qnvv.mjs +1 -0
- package/dist/chunks/keybindings-0.6.3-eh7rjbha.mjs +2 -0
- package/dist/chunks/knowledge-0.6.3-a7pn2e1w.mjs +2 -0
- package/dist/chunks/latestVersionCache-0.6.3-vf3mkz2d.mjs +1 -0
- package/dist/chunks/loadAgentsDir-0.6.3-ykqa9b2g.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.3-jxaehczd.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.6.3-mfka3vhj.mjs +1 -0
- package/dist/chunks/log-0.6.3-g789gq0t.mjs +1 -0
- package/dist/chunks/main-0.6.3-50ac806r.mjs +1 -0
- package/dist/chunks/managedEnv-0.6.3-q5zxn368.mjs +1 -0
- package/dist/chunks/mcp-0.6.3-4x3akzq5.mjs +4 -0
- package/dist/chunks/mcp-0.6.3-e3me04x4.mjs +17 -0
- package/dist/chunks/mcp-0.6.3-z1ebxf4w.mjs +1 -0
- package/dist/chunks/mcpb-0.6.3-sh1jp60e.mjs +1 -0
- package/dist/chunks/memory-0.6.3-03636fpt.mjs +3 -0
- package/dist/chunks/mobile-0.6.3-xz0z3r1b.mjs +2 -0
- package/dist/chunks/model-0.6.3-s0ftwaqt.mjs +1 -0
- package/dist/chunks/model-0.6.3-yzwee2pm.mjs +2 -0
- package/dist/chunks/node-0.6.3-ne7h3hdm.mjs +12 -0
- package/dist/chunks/oauth-0.6.3-vxgkeqfx.mjs +1 -0
- package/dist/chunks/openaiShim-0.6.3-4y4sanm3.mjs +14 -0
- package/dist/chunks/output-style-0.6.3-y1p13wj7.mjs +1 -0
- package/dist/chunks/package-D6422PQU-0.6.3-x4wa2xz2.mjs +1 -0
- package/dist/chunks/parseConnectUrl-0.6.3-her0fmnw.mjs +1 -0
- package/dist/chunks/parser-0.6.3-c46sjdq2.mjs +1 -0
- package/dist/chunks/passes-0.6.3-egz6jv5r.mjs +1 -0
- package/dist/chunks/permissions-0.6.3-8bgzzv8a.mjs +3 -0
- package/dist/chunks/plan-0.6.3-2fftma7h.mjs +1 -0
- package/dist/chunks/plist-0.6.3-h310zzhq.mjs +1 -0
- package/dist/chunks/plugin-0.6.3-5vjh0ct6.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.6.3-jqsmye9d.mjs +1 -0
- package/dist/chunks/plugins-0.6.3-feg1sfss.mjs +9 -0
- package/dist/chunks/preActionHook-0.6.3-7zkaatsy.mjs +2 -0
- package/dist/chunks/print-0.6.3-q8j3mpqd.mjs +57 -0
- package/dist/chunks/privacy-settings-0.6.3-7td307c8.mjs +1 -0
- package/dist/chunks/process-0.6.3-xfesfn5r.mjs +1 -0
- package/dist/chunks/processBashCommand-0.6.3-jh7fc2p4.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.6.3-bf00222w.mjs +9 -0
- package/dist/chunks/prompt-0.6.3-2n702z0c.mjs +1 -0
- package/dist/chunks/prompt-0.6.3-61gvwdqd.mjs +1 -0
- package/dist/chunks/prompts-0.6.3-gctcm2tt.mjs +1 -0
- package/dist/chunks/protocolHandler-0.6.3-nkgq5zh2.mjs +13 -0
- package/dist/chunks/provider-0.6.3-dz35mvz8.mjs +2 -0
- package/dist/chunks/providerProfiles-0.6.3-sc68wn0p.mjs +1 -0
- package/dist/chunks/providerValidation-0.6.3-tz2xs2w2.mjs +6 -0
- package/dist/chunks/rate-limit-options-0.6.3-q18p5fyf.mjs +1 -0
- package/dist/chunks/registerSubcommands-0.6.3-68qc2fq7.mjs +34 -0
- package/dist/chunks/registry-0.6.3-ftde6jbj.mjs +1 -0
- package/dist/chunks/release-notes-0.6.3-sape6p4t.mjs +5 -0
- package/dist/chunks/reload-plugins-0.6.3-1ww9raz4.mjs +2 -0
- package/dist/chunks/remote-env-0.6.3-3ck8cv8d.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.6.3-5s27069y.mjs +1 -0
- package/dist/chunks/remoteSession-0.6.3-h9rgyr6h.mjs +1 -0
- package/dist/chunks/rename-0.6.3-f6d3tb9q.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.6.3-03kbs579.mjs +1 -0
- package/dist/chunks/replLauncher-0.6.3-m72mhx4g.mjs +1 -0
- package/dist/chunks/resume-0.6.3-ddb3xb3e.mjs +2 -0
- package/dist/chunks/rewind-0.6.3-rr4jn9nq.mjs +1 -0
- package/dist/chunks/rootOptions-0.6.3-z0z2w1ta.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.6.3-h9z3rn4v.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.6.3-1z9yck8k.mjs +1 -0
- package/dist/chunks/session-0.6.3-697bvb39.mjs +2 -0
- package/dist/chunks/sessionDiscovery-0.6.3-k3n13gqg.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-0.6.3-kgecz2s9.mjs +1 -0
- package/dist/chunks/sessionStorage-0.6.3-04ceqntr.mjs +1 -0
- package/dist/chunks/settings-0.6.3-1wnc9skg.mjs +1 -0
- package/dist/chunks/setup-0.6.3-7eq77dy4.mjs +5 -0
- package/dist/chunks/sinks-0.6.3-ph10xa21.mjs +1 -0
- package/dist/chunks/skills-0.6.3-sk53kf9f.mjs +1 -0
- package/dist/chunks/startupProfiler-0.6.3-mmnjxrje.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-0.6.3-0hwcpdc7.mjs +1 -0
- package/dist/chunks/state-0.6.3-e3zvped3.mjs +1 -0
- package/dist/chunks/stats-0.6.3-8wqbhpqy.mjs +6 -0
- package/dist/chunks/status-0.6.3-xjt0xtzy.mjs +1 -0
- package/dist/chunks/stickers-0.6.3-vs74c03z.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.6.3-5dg03vx3.mjs +1 -0
- package/dist/chunks/tasks-0.6.3-dxy60zkj.mjs +1 -0
- package/dist/chunks/teamHelpers-0.6.3-jqpd5tn3.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.6.3-fpdghs7t.mjs +1 -0
- package/dist/chunks/teleport-0.6.3-46bbcspy.mjs +1 -0
- package/dist/chunks/terminalSetup-0.6.3-ww94vcqs.mjs +1 -0
- package/dist/chunks/theme-0.6.3-kjdtgstr.mjs +1 -0
- package/dist/chunks/thinkback-0.6.3-1txnapj2.mjs +1 -0
- package/dist/chunks/thinkback-play-0.6.3-96tda7vb.mjs +1 -0
- package/dist/chunks/toolPool-0.6.3-0e12cvy1.mjs +1 -0
- package/dist/chunks/toolSearch-0.6.3-d1pppx0c.mjs +1 -0
- package/dist/chunks/tools-0.6.3-w0rtmt3t.mjs +1 -0
- package/dist/chunks/trustedDevice-0.6.3-qap15xhb.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.6.3-9pgbeyf6.mjs +69 -0
- package/dist/chunks/ultrareviewCommand-0.6.3-v4wvkr58.mjs +4 -0
- package/dist/chunks/update-0.6.3-6tah7v14.mjs +86 -0
- package/dist/chunks/upgrade-0.6.3-mtpg4ynr.mjs +1 -0
- package/dist/chunks/upstreamproxy-0.6.3-fg6qwves.mjs +14 -0
- package/dist/chunks/url-handler-napi-0.6.3-4zzkq08v.mjs +1 -0
- package/dist/chunks/usage-0.6.3-1b3cmsnk.mjs +1 -0
- package/dist/chunks/util-0.6.3-e72k34ck.mjs +1 -0
- package/dist/chunks/utils-0.6.3-ahkqyjmy.mjs +1 -0
- package/dist/chunks/vim-0.6.3-r0f9g732.mjs +1 -0
- package/dist/chunks/watcher-0.6.3-5xzd92av.mjs +1 -0
- package/dist/chunks/wiki-0.6.3-ytee2j21.mjs +132 -0
- package/dist/chunks/worktree-0.6.3-cmybg2s4.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.6.3-8k06dfjq.mjs +1 -0
- package/dist/chunks/wrapper-0.6.3-hct87zwr.mjs +7 -0
- package/dist/claudin-vscode.vsix +0 -0
- package/dist/cli.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunks/AgentTool-0.6.2-he5a0dam.mjs +0 -1
- package/dist/chunks/App-0.6.2-81hq55t1.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.6.2-08hjmc7a.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.6.2-0r37ejyw.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.6.2-k5q2wq69.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.6.2-q2vnf20c.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.6.2-nsje6vp4.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.6.2-0td2rsrs.mjs +0 -1
- package/dist/chunks/DiffDialog-0.6.2-6yg14gsy.mjs +0 -3
- package/dist/chunks/Doctor-0.6.2-3wbjtm02.mjs +0 -1
- package/dist/chunks/Grove-0.6.2-baqbhjjj.mjs +0 -1
- package/dist/chunks/ITermBackend-0.6.2-zmtwee85.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.6.2-yxzmem78.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.6.2-fp9sq2qx.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.6.2-yvf4s2y6.mjs +0 -1
- package/dist/chunks/Onboarding-0.6.2-y1rgs60d.mjs +0 -1
- package/dist/chunks/ProviderManager-0.6.2-cp0pxj1c.mjs +0 -1
- package/dist/chunks/REPL-0.6.2-ab1c9240.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.6.2-sc3b5r7q.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.6.2-8sv3ddk7.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.6.2-wa2hgv37.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.6.2-a3a7fv1a.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.6.2-2n1ktp6n.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.6.2-qbc4yk54.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.6.2-384g3ky4.mjs +0 -1
- package/dist/chunks/TrustDialog-0.6.2-egpnc3w1.mjs +0 -1
- package/dist/chunks/activeProvider-0.6.2-w0ja3pnw.mjs +0 -1
- package/dist/chunks/add-dir-0.6.2-srcrq97m.mjs +0 -1
- package/dist/chunks/agents-0.6.2-pwkawpda.mjs +0 -110
- package/dist/chunks/agents-0.6.2-v40vzjvy.mjs +0 -3
- package/dist/chunks/api-0.6.2-r9z30232.mjs +0 -1
- package/dist/chunks/asciicast-0.6.2-dtanhyb8.mjs +0 -1
- package/dist/chunks/assistant-0.6.2-29e26n3s.mjs +0 -1
- package/dist/chunks/auth-0.6.2-azq9yv0m.mjs +0 -1
- package/dist/chunks/auth-0.6.2-ndpcgcx5.mjs +0 -1
- package/dist/chunks/autoMode-0.6.2-w921k0xq.mjs +0 -48
- package/dist/chunks/autoUpdater-0.6.2-gwvkqpt8.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.6.2-7p2jxjem.mjs +0 -1
- package/dist/chunks/branch-0.6.2-tx9vvnkh.mjs +0 -4
- package/dist/chunks/bridgePointer-0.6.2-vm11xngr.mjs +0 -1
- package/dist/chunks/btw-0.6.2-s76cg2fz.mjs +0 -1
- package/dist/chunks/buddy-0.6.2-0ck2kabw.mjs +0 -3
- package/dist/chunks/cacache-0.6.2-c87f0fw9.mjs +0 -1
- package/dist/chunks/cache-probe-0.6.2-nhq6d99v.mjs +0 -21
- package/dist/chunks/cacheStats-0.6.2-wjqpder6.mjs +0 -4
- package/dist/chunks/caches-0.6.2-ckpe4m10.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.6.2-9xry3zxj.mjs +0 -1
- package/dist/chunks/claudemd-0.6.2-eevm7pz1.mjs +0 -1
- package/dist/chunks/clear-0.6.2-301n503a.mjs +0 -1
- package/dist/chunks/clearTerminal-0.6.2-qgg50hxe.mjs +0 -1
- package/dist/chunks/cli-0.6.2-0cpmb5wg.mjs +0 -42
- package/dist/chunks/cli-0.6.2-0f9sh5z8.mjs +0 -4
- package/dist/chunks/cli-0.6.2-0p39svq8.mjs +0 -2
- package/dist/chunks/cli-0.6.2-1acc8mpr.mjs +0 -2
- package/dist/chunks/cli-0.6.2-1ahapm20.mjs +0 -2
- package/dist/chunks/cli-0.6.2-1b9hx344.mjs +0 -2
- package/dist/chunks/cli-0.6.2-1g0gmdck.mjs +0 -2
- package/dist/chunks/cli-0.6.2-1hrabb68.mjs +0 -3
- package/dist/chunks/cli-0.6.2-1wj8sm5y.mjs +0 -9
- package/dist/chunks/cli-0.6.2-1y907j57.mjs +0 -2
- package/dist/chunks/cli-0.6.2-22zkw0rp.mjs +0 -2
- package/dist/chunks/cli-0.6.2-26qywcgz.mjs +0 -2
- package/dist/chunks/cli-0.6.2-2aj7wfhk.mjs +0 -2
- package/dist/chunks/cli-0.6.2-2ewwghbe.mjs +0 -3
- package/dist/chunks/cli-0.6.2-2jg2f49s.mjs +0 -2
- package/dist/chunks/cli-0.6.2-2z19ppek.mjs +0 -15
- package/dist/chunks/cli-0.6.2-334vw6ys.mjs +0 -2
- package/dist/chunks/cli-0.6.2-3mpd0wjn.mjs +0 -2
- package/dist/chunks/cli-0.6.2-3r8vgmhb.mjs +0 -2
- package/dist/chunks/cli-0.6.2-3rgtxc9f.mjs +0 -2
- package/dist/chunks/cli-0.6.2-40pc2aj2.mjs +0 -2
- package/dist/chunks/cli-0.6.2-42d88f3r.mjs +0 -2
- package/dist/chunks/cli-0.6.2-43f0sknv.mjs +0 -2
- package/dist/chunks/cli-0.6.2-43qjtqa5.mjs +0 -2
- package/dist/chunks/cli-0.6.2-4a5t390f.mjs +0 -2
- package/dist/chunks/cli-0.6.2-4drhcx9k.mjs +0 -15
- package/dist/chunks/cli-0.6.2-4kcvb5en.mjs +0 -2
- package/dist/chunks/cli-0.6.2-4ke2trrq.mjs +0 -39
- package/dist/chunks/cli-0.6.2-4p9wa0p6.mjs +0 -5323
- package/dist/chunks/cli-0.6.2-4py7r63v.mjs +0 -2
- package/dist/chunks/cli-0.6.2-4r69ge5f.mjs +0 -59
- package/dist/chunks/cli-0.6.2-5d05m4xc.mjs +0 -2
- package/dist/chunks/cli-0.6.2-5jempndm.mjs +0 -133
- package/dist/chunks/cli-0.6.2-657fbmws.mjs +0 -2
- package/dist/chunks/cli-0.6.2-6bacgc39.mjs +0 -3
- package/dist/chunks/cli-0.6.2-6g0t3j91.mjs +0 -5
- package/dist/chunks/cli-0.6.2-6g8yfn0m.mjs +0 -2
- package/dist/chunks/cli-0.6.2-6kn7z0zj.mjs +0 -3
- package/dist/chunks/cli-0.6.2-6wk99hh1.mjs +0 -3
- package/dist/chunks/cli-0.6.2-73vnf2t2.mjs +0 -4
- package/dist/chunks/cli-0.6.2-74x1d5s0.mjs +0 -2
- package/dist/chunks/cli-0.6.2-7egesyh9.mjs +0 -4
- package/dist/chunks/cli-0.6.2-7rmm482v.mjs +0 -12
- package/dist/chunks/cli-0.6.2-7rmymgpp.mjs +0 -2
- package/dist/chunks/cli-0.6.2-7z82z1hp.mjs +0 -25
- package/dist/chunks/cli-0.6.2-83ennmm8.mjs +0 -21
- package/dist/chunks/cli-0.6.2-8ka8msyf.mjs +0 -2
- package/dist/chunks/cli-0.6.2-8ksqzwe8.mjs +0 -5
- package/dist/chunks/cli-0.6.2-8v8sktjd.mjs +0 -10
- package/dist/chunks/cli-0.6.2-8y3j75c7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-974c5e67.mjs +0 -9
- package/dist/chunks/cli-0.6.2-9j01vvqt.mjs +0 -2
- package/dist/chunks/cli-0.6.2-9mwrq250.mjs +0 -3
- package/dist/chunks/cli-0.6.2-9n2g6k9w.mjs +0 -2
- package/dist/chunks/cli-0.6.2-9n9cpja7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-9qtj477e.mjs +0 -2
- package/dist/chunks/cli-0.6.2-9w9nmx9s.mjs +0 -2
- package/dist/chunks/cli-0.6.2-9ybnhjj8.mjs +0 -4
- package/dist/chunks/cli-0.6.2-a8atyp18.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ahaj5z3h.mjs +0 -2
- package/dist/chunks/cli-0.6.2-aq30pg47.mjs +0 -2
- package/dist/chunks/cli-0.6.2-aqxemf9h.mjs +0 -6
- package/dist/chunks/cli-0.6.2-b34y2qb7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-b88e6p6d.mjs +0 -2
- package/dist/chunks/cli-0.6.2-b8r77v7s.mjs +0 -2
- package/dist/chunks/cli-0.6.2-bkff60ff.mjs +0 -2
- package/dist/chunks/cli-0.6.2-br678d1b.mjs +0 -8
- package/dist/chunks/cli-0.6.2-bvyhf16r.mjs +0 -2
- package/dist/chunks/cli-0.6.2-c05pfwbs.mjs +0 -2
- package/dist/chunks/cli-0.6.2-c3h0j3ad.mjs +0 -2
- package/dist/chunks/cli-0.6.2-c8bf5gfw.mjs +0 -4
- package/dist/chunks/cli-0.6.2-c9adbzc9.mjs +0 -2
- package/dist/chunks/cli-0.6.2-cvr4dbfz.mjs +0 -2
- package/dist/chunks/cli-0.6.2-d3evezft.mjs +0 -1
- package/dist/chunks/cli-0.6.2-d3y2w089.mjs +0 -2
- package/dist/chunks/cli-0.6.2-d3ykxc81.mjs +0 -2
- package/dist/chunks/cli-0.6.2-dbw96fj0.mjs +0 -12
- package/dist/chunks/cli-0.6.2-dr4gmq77.mjs +0 -2
- package/dist/chunks/cli-0.6.2-drm9vdbc.mjs +0 -2
- package/dist/chunks/cli-0.6.2-dv8abe56.mjs +0 -7
- package/dist/chunks/cli-0.6.2-dx6qfese.mjs +0 -2
- package/dist/chunks/cli-0.6.2-dy4zwces.mjs +0 -2
- package/dist/chunks/cli-0.6.2-e0x7vgkh.mjs +0 -2
- package/dist/chunks/cli-0.6.2-e26khw0m.mjs +0 -6
- package/dist/chunks/cli-0.6.2-e66qz53g.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ea8z1e2e.mjs +0 -16
- package/dist/chunks/cli-0.6.2-erkq6kmj.mjs +0 -45
- package/dist/chunks/cli-0.6.2-ezn7w7ae.mjs +0 -5
- package/dist/chunks/cli-0.6.2-f8wbscq8.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ffwsaj8h.mjs +0 -2
- package/dist/chunks/cli-0.6.2-fm1d3kkg.mjs +0 -2
- package/dist/chunks/cli-0.6.2-g1m1mc2w.mjs +0 -2
- package/dist/chunks/cli-0.6.2-g5akhdzk.mjs +0 -2
- package/dist/chunks/cli-0.6.2-g6c6hjc6.mjs +0 -6
- package/dist/chunks/cli-0.6.2-gjc0cfpe.mjs +0 -2
- package/dist/chunks/cli-0.6.2-gjcarfd4.mjs +0 -2
- package/dist/chunks/cli-0.6.2-gqbd9ax6.mjs +0 -2
- package/dist/chunks/cli-0.6.2-grf75vb7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-h18w4nmy.mjs +0 -2
- package/dist/chunks/cli-0.6.2-h72p44ws.mjs +0 -24
- package/dist/chunks/cli-0.6.2-ha8qy3b0.mjs +0 -2
- package/dist/chunks/cli-0.6.2-hhjx89cr.mjs +0 -193
- package/dist/chunks/cli-0.6.2-hhyenxhe.mjs +0 -2
- package/dist/chunks/cli-0.6.2-hp1pwe62.mjs +0 -2
- package/dist/chunks/cli-0.6.2-hqmcear6.mjs +0 -2
- package/dist/chunks/cli-0.6.2-hs0y8na1.mjs +0 -34
- package/dist/chunks/cli-0.6.2-j05kmd43.mjs +0 -2
- package/dist/chunks/cli-0.6.2-j1nazgzc.mjs +0 -2
- package/dist/chunks/cli-0.6.2-jgh80hr1.mjs +0 -2
- package/dist/chunks/cli-0.6.2-jrb4f391.mjs +0 -15
- package/dist/chunks/cli-0.6.2-jrpted0b.mjs +0 -2
- package/dist/chunks/cli-0.6.2-jv7awz9n.mjs +0 -2
- package/dist/chunks/cli-0.6.2-k56bbmdp.mjs +0 -2
- package/dist/chunks/cli-0.6.2-k9v931hm.mjs +0 -2
- package/dist/chunks/cli-0.6.2-kbz4gdv0.mjs +0 -2
- package/dist/chunks/cli-0.6.2-kcf9h23h.mjs +0 -2
- package/dist/chunks/cli-0.6.2-kk5rmpf2.mjs +0 -4
- package/dist/chunks/cli-0.6.2-ky1drj50.mjs +0 -2
- package/dist/chunks/cli-0.6.2-mabejxsw.mjs +0 -4
- package/dist/chunks/cli-0.6.2-majp93c4.mjs +0 -2
- package/dist/chunks/cli-0.6.2-mqcsy5k1.mjs +0 -2
- package/dist/chunks/cli-0.6.2-n4v3wxhj.mjs +0 -3
- package/dist/chunks/cli-0.6.2-n9610c8k.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ntj0k6z8.mjs +0 -2
- package/dist/chunks/cli-0.6.2-nw08h6z2.mjs +0 -2
- package/dist/chunks/cli-0.6.2-nwzye174.mjs +0 -2
- package/dist/chunks/cli-0.6.2-p0jszyht.mjs +0 -3
- package/dist/chunks/cli-0.6.2-p6w7n0bx.mjs +0 -58
- package/dist/chunks/cli-0.6.2-ptm65j7w.mjs +0 -2
- package/dist/chunks/cli-0.6.2-q45wdma3.mjs +0 -3
- package/dist/chunks/cli-0.6.2-q4pmjk86.mjs +0 -2
- package/dist/chunks/cli-0.6.2-qa6qbf36.mjs +0 -2
- package/dist/chunks/cli-0.6.2-qec7nrgw.mjs +0 -2
- package/dist/chunks/cli-0.6.2-qezxrvkk.mjs +0 -2
- package/dist/chunks/cli-0.6.2-qkzrj9jv.mjs +0 -2
- package/dist/chunks/cli-0.6.2-qpnzszt1.mjs +0 -2
- package/dist/chunks/cli-0.6.2-r4p904h3.mjs +0 -67
- package/dist/chunks/cli-0.6.2-r7j7h4hj.mjs +0 -2
- package/dist/chunks/cli-0.6.2-rde30n8x.mjs +0 -2
- package/dist/chunks/cli-0.6.2-rdfwysaf.mjs +0 -2
- package/dist/chunks/cli-0.6.2-red287ya.mjs +0 -2
- package/dist/chunks/cli-0.6.2-rjqa4vcn.mjs +0 -2
- package/dist/chunks/cli-0.6.2-rkp36r0y.mjs +0 -2
- package/dist/chunks/cli-0.6.2-rpxhzchp.mjs +0 -17
- package/dist/chunks/cli-0.6.2-rsw5s54e.mjs +0 -24
- package/dist/chunks/cli-0.6.2-s3xefpk2.mjs +0 -2
- package/dist/chunks/cli-0.6.2-s73x3nqc.mjs +0 -2
- package/dist/chunks/cli-0.6.2-sb3gjggk.mjs +0 -2
- package/dist/chunks/cli-0.6.2-sbjpxvg6.mjs +0 -2
- package/dist/chunks/cli-0.6.2-sbvnj6xm.mjs +0 -2
- package/dist/chunks/cli-0.6.2-sr4xyjmx.mjs +0 -133
- package/dist/chunks/cli-0.6.2-st7jwd3e.mjs +0 -2
- package/dist/chunks/cli-0.6.2-t038jmme.mjs +0 -3
- package/dist/chunks/cli-0.6.2-t3e59m32.mjs +0 -2
- package/dist/chunks/cli-0.6.2-t74yr8e7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-t8yezjtz.mjs +0 -2
- package/dist/chunks/cli-0.6.2-tbbfz84c.mjs +0 -2
- package/dist/chunks/cli-0.6.2-tqq6q5x7.mjs +0 -2
- package/dist/chunks/cli-0.6.2-tqt8xgww.mjs +0 -50
- package/dist/chunks/cli-0.6.2-v1hjbt4b.mjs +0 -20
- package/dist/chunks/cli-0.6.2-v9brbf1x.mjs +0 -2
- package/dist/chunks/cli-0.6.2-vfdaj8xa.mjs +0 -2
- package/dist/chunks/cli-0.6.2-vg43sy4j.mjs +0 -2
- package/dist/chunks/cli-0.6.2-vqas2mhg.mjs +0 -2
- package/dist/chunks/cli-0.6.2-vqt5hqzr.mjs +0 -2
- package/dist/chunks/cli-0.6.2-vrv3r8v9.mjs +0 -18
- package/dist/chunks/cli-0.6.2-vys7e4x0.mjs +0 -2
- package/dist/chunks/cli-0.6.2-w0nwtgnn.mjs +0 -3
- package/dist/chunks/cli-0.6.2-w9trxbjc.mjs +0 -2
- package/dist/chunks/cli-0.6.2-wbg54yyk.mjs +0 -2
- package/dist/chunks/cli-0.6.2-wdtqrg29.mjs +0 -12
- package/dist/chunks/cli-0.6.2-wryj4wnr.mjs +0 -2
- package/dist/chunks/cli-0.6.2-x7zpbnzj.mjs +0 -2
- package/dist/chunks/cli-0.6.2-xnn1c5kd.mjs +0 -18
- package/dist/chunks/cli-0.6.2-y8g2xkqa.mjs +0 -2
- package/dist/chunks/cli-0.6.2-yep449sd.mjs +0 -17
- package/dist/chunks/cli-0.6.2-yjbsdf10.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ymnp9sv9.mjs +0 -2
- package/dist/chunks/cli-0.6.2-ynamhrtk.mjs +0 -4
- package/dist/chunks/cli-0.6.2-yysvdabq.mjs +0 -2
- package/dist/chunks/cli-0.6.2-z00mtdgp.mjs +0 -4
- package/dist/chunks/cli-0.6.2-z1njvrn7.mjs +0 -3
- package/dist/chunks/cli-0.6.2-z2ftrcke.mjs +0 -4
- package/dist/chunks/cli-0.6.2-z3vr6hxb.mjs +0 -2
- package/dist/chunks/cli-0.6.2-z9kadqm6.mjs +0 -18
- package/dist/chunks/cli-0.6.2-zaahyems.mjs +0 -2
- package/dist/chunks/cli-0.6.2-zftyh47j.mjs +0 -2
- package/dist/chunks/cli-0.6.2-zqj8dk7m.mjs +0 -2
- package/dist/chunks/cli-0.6.2-zs4qp487.mjs +0 -2
- package/dist/chunks/client-0.6.2-8b0s065m.mjs +0 -1
- package/dist/chunks/color-0.6.2-jza3jez4.mjs +0 -1
- package/dist/chunks/compact-0.6.2-2jy7t4f4.mjs +0 -3
- package/dist/chunks/config-0.6.2-qjwjrd75.mjs +0 -1
- package/dist/chunks/config-0.6.2-xac3sjb7.mjs +0 -1
- package/dist/chunks/constants-0.6.2-gwzfwz81.mjs +0 -1
- package/dist/chunks/context-0.6.2-w965073f.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.6.2-fcjaexgs.mjs +0 -1
- package/dist/chunks/conversation-0.6.2-19c4vdvz.mjs +0 -1
- package/dist/chunks/copilotHeaders-0.6.2-pad0tejv.mjs +0 -1
- package/dist/chunks/copy-0.6.2-p4jw9gbt.mjs +0 -9
- package/dist/chunks/cost-0.6.2-vhwgeqym.mjs +0 -1
- package/dist/chunks/createSSHSession-0.6.2-j2yf2qm6.mjs +0 -1
- package/dist/chunks/createSession-0.6.2-axgp009k.mjs +0 -1
- package/dist/chunks/debug-0.6.2-g2n0fqva.mjs +0 -1
- package/dist/chunks/defaultActionDeps-0.6.2-28650cn6.mjs +0 -1365
- package/dist/chunks/desktop-0.6.2-g4c5xzgr.mjs +0 -1
- package/dist/chunks/detectRepository-0.6.2-d1chqsq7.mjs +0 -1
- package/dist/chunks/detection-0.6.2-rtsr38x3.mjs +0 -1
- package/dist/chunks/diff-0.6.2-md180qh9.mjs +0 -1
- package/dist/chunks/doctor-0.6.2-g7yz0erc.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-0.6.2-a82fkq4t.mjs +0 -1
- package/dist/chunks/earlyInput-0.6.2-7j71psy0.mjs +0 -1
- package/dist/chunks/effort-0.6.2-n6mb1qca.mjs +0 -10
- package/dist/chunks/envUtils-0.6.2-cgk2t66d.mjs +0 -1
- package/dist/chunks/environmentSelection-0.6.2-jxz6pef4.mjs +0 -1
- package/dist/chunks/environments-0.6.2-fe197syt.mjs +0 -1
- package/dist/chunks/errors-0.6.2-qwc8na5z.mjs +0 -1
- package/dist/chunks/exampleCommands-0.6.2-ts5qp1zd.mjs +0 -1
- package/dist/chunks/exit-0.6.2-ejt9v4r5.mjs +0 -1
- package/dist/chunks/export-0.6.2-7xzrp9f7.mjs +0 -2
- package/dist/chunks/extra-usage-0.6.2-4xbsq144.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.6.2-dbw7cdb9.mjs +0 -1
- package/dist/chunks/fast-0.6.2-trs3hdhf.mjs +0 -1
- package/dist/chunks/feedback-0.6.2-ssmy63tw.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.6.2-8h0fye4z.mjs +0 -1
- package/dist/chunks/git-0.6.2-nt9s7t3d.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.6.2-24hacezm.mjs +0 -1
- package/dist/chunks/goal-0.6.2-y7sqebpb.mjs +0 -4
- package/dist/chunks/grove-0.6.2-a2wgccag.mjs +0 -1
- package/dist/chunks/growthbook-0.6.2-0rhkaa7d.mjs +0 -1
- package/dist/chunks/headless-0.6.2-mqs7zsvy.mjs +0 -2
- package/dist/chunks/heapdump-0.6.2-4n8atcks.mjs +0 -6
- package/dist/chunks/help-0.6.2-c49svpae.mjs +0 -1
- package/dist/chunks/hookChains-0.6.2-44ps20xa.mjs +0 -3
- package/dist/chunks/hooks-0.6.2-27hpvpxf.mjs +0 -1
- package/dist/chunks/hooks-0.6.2-7ze1m2wq.mjs +0 -79
- package/dist/chunks/ide-0.6.2-4v9fdhr6.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.6.2-a92myehv.mjs +0 -1
- package/dist/chunks/index-0.6.2-1kk3erm5.mjs +0 -9
- package/dist/chunks/index-0.6.2-21nak3ad.mjs +0 -1
- package/dist/chunks/index-0.6.2-2vns8v9p.mjs +0 -1
- package/dist/chunks/index-0.6.2-2wg5fkyq.mjs +0 -1
- package/dist/chunks/index-0.6.2-3g92ew8z.mjs +0 -1
- package/dist/chunks/index-0.6.2-4wsxzfzg.mjs +0 -1
- package/dist/chunks/index-0.6.2-88m8k4cp.mjs +0 -1
- package/dist/chunks/index-0.6.2-93bh3w93.mjs +0 -1
- package/dist/chunks/index-0.6.2-9e0qz384.mjs +0 -1
- package/dist/chunks/index-0.6.2-emm65q8h.mjs +0 -17
- package/dist/chunks/index-0.6.2-ff57yvh3.mjs +0 -1
- package/dist/chunks/index-0.6.2-g6xy97jv.mjs +0 -1
- package/dist/chunks/index-0.6.2-h37g7n0s.mjs +0 -9
- package/dist/chunks/index-0.6.2-h8jkf613.mjs +0 -5
- package/dist/chunks/index-0.6.2-jcsv5kp3.mjs +0 -1
- package/dist/chunks/index-0.6.2-jw83xhc8.mjs +0 -2
- package/dist/chunks/index-0.6.2-mehn31e3.mjs +0 -30
- package/dist/chunks/index-0.6.2-naw1d8mg.mjs +0 -2
- package/dist/chunks/index-0.6.2-qjs3rrrc.mjs +0 -1
- package/dist/chunks/index-0.6.2-qn0re7sj.mjs +0 -1
- package/dist/chunks/index-0.6.2-tftj6wdh.mjs +0 -1
- package/dist/chunks/index-0.6.2-ww1qy3cg.mjs +0 -1
- package/dist/chunks/init-0.6.2-47k2caay.mjs +0 -1
- package/dist/chunks/initReplBridge-0.6.2-sn29sxg9.mjs +0 -1
- package/dist/chunks/ink-0.6.2-dhg7s7qq.mjs +0 -1
- package/dist/chunks/insights-0.6.2-st861yg4.mjs +0 -870
- package/dist/chunks/install-0.6.2-webkhwz9.mjs +0 -1
- package/dist/chunks/install-github-app-0.6.2-dyf38saf.mjs +0 -149
- package/dist/chunks/install-slack-app-0.6.2-mkhq39jq.mjs +0 -1
- package/dist/chunks/instrumentation-0.6.2-8enws6w1.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.6.2-h3c63932.mjs +0 -1
- package/dist/chunks/keybindings-0.6.2-b4h5gr36.mjs +0 -2
- package/dist/chunks/knowledge-0.6.2-r7wzchg7.mjs +0 -2
- package/dist/chunks/latestVersionCache-0.6.2-29wtfvgy.mjs +0 -1
- package/dist/chunks/loadAgentsDir-0.6.2-6tmzy9fs.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.2-1qx97351.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.6.2-c4wpqz2j.mjs +0 -1
- package/dist/chunks/log-0.6.2-h02k5q0p.mjs +0 -1
- package/dist/chunks/main-0.6.2-51xvrsbq.mjs +0 -1
- package/dist/chunks/managedEnv-0.6.2-ma1dx63x.mjs +0 -1
- package/dist/chunks/mcp-0.6.2-j3m0e0bk.mjs +0 -17
- package/dist/chunks/mcp-0.6.2-n8yv335k.mjs +0 -4
- package/dist/chunks/mcp-0.6.2-zebf4vwt.mjs +0 -1
- package/dist/chunks/mcpb-0.6.2-egn2wk5t.mjs +0 -1
- package/dist/chunks/memory-0.6.2-vy2ka09s.mjs +0 -3
- package/dist/chunks/mobile-0.6.2-s8f6z7dq.mjs +0 -2
- package/dist/chunks/model-0.6.2-49f9g2vz.mjs +0 -2
- package/dist/chunks/model-0.6.2-pcd5ta0c.mjs +0 -1
- package/dist/chunks/node-0.6.2-40bknjza.mjs +0 -12
- package/dist/chunks/oauth-0.6.2-newhjxdv.mjs +0 -1
- package/dist/chunks/openaiShim-0.6.2-rjs9w27t.mjs +0 -14
- package/dist/chunks/output-style-0.6.2-n76v4e26.mjs +0 -1
- package/dist/chunks/package-D6422PQU-0.6.2-cymw10eg.mjs +0 -1
- package/dist/chunks/parseConnectUrl-0.6.2-qy2dp99f.mjs +0 -1
- package/dist/chunks/parser-0.6.2-xgg5gh3g.mjs +0 -1
- package/dist/chunks/passes-0.6.2-kadygcw6.mjs +0 -1
- package/dist/chunks/permissions-0.6.2-hv22h5gm.mjs +0 -3
- package/dist/chunks/plan-0.6.2-hzbsezab.mjs +0 -1
- package/dist/chunks/plist-0.6.2-hkq2x0x5.mjs +0 -1
- package/dist/chunks/plugin-0.6.2-pr48413e.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.6.2-zfb8qack.mjs +0 -1
- package/dist/chunks/plugins-0.6.2-hx8jrngg.mjs +0 -9
- package/dist/chunks/preActionHook-0.6.2-pac7p55h.mjs +0 -2
- package/dist/chunks/print-0.6.2-ng7p0m66.mjs +0 -57
- package/dist/chunks/privacy-settings-0.6.2-awj1k33j.mjs +0 -1
- package/dist/chunks/process-0.6.2-7k26fk4b.mjs +0 -1
- package/dist/chunks/processBashCommand-0.6.2-379q2wr4.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.6.2-7zk4c0n0.mjs +0 -9
- package/dist/chunks/prompt-0.6.2-c2vevj59.mjs +0 -1
- package/dist/chunks/prompt-0.6.2-szkc5jgm.mjs +0 -1
- package/dist/chunks/prompts-0.6.2-s8z9fmgq.mjs +0 -1
- package/dist/chunks/protocolHandler-0.6.2-wc5pcv21.mjs +0 -13
- package/dist/chunks/provider-0.6.2-nbcrfwt5.mjs +0 -2
- package/dist/chunks/providerProfiles-0.6.2-r9j184kz.mjs +0 -1
- package/dist/chunks/providerValidation-0.6.2-4h7yr0x2.mjs +0 -6
- package/dist/chunks/rate-limit-options-0.6.2-dbvvmtas.mjs +0 -1
- package/dist/chunks/registerSubcommands-0.6.2-w8y8efwa.mjs +0 -34
- package/dist/chunks/registry-0.6.2-8xcdw66w.mjs +0 -1
- package/dist/chunks/release-notes-0.6.2-xtnhsjps.mjs +0 -5
- package/dist/chunks/reload-plugins-0.6.2-hhgdgy2j.mjs +0 -2
- package/dist/chunks/remote-env-0.6.2-9tdvzj0q.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.6.2-y9spfxbw.mjs +0 -1
- package/dist/chunks/remoteSession-0.6.2-pb3185rt.mjs +0 -1
- package/dist/chunks/rename-0.6.2-z5pwd75p.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.6.2-epcyvrf1.mjs +0 -1
- package/dist/chunks/replLauncher-0.6.2-yk4q9w0s.mjs +0 -1
- package/dist/chunks/resume-0.6.2-wwmdq5gh.mjs +0 -2
- package/dist/chunks/rewind-0.6.2-keb5hdgr.mjs +0 -1
- package/dist/chunks/rootOptions-0.6.2-hprbxscd.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.6.2-4ntc8ewv.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.6.2-5zdhe1qf.mjs +0 -1
- package/dist/chunks/session-0.6.2-k41jbqwf.mjs +0 -2
- package/dist/chunks/sessionDiscovery-0.6.2-x9rwtkey.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-0.6.2-0ska7d2r.mjs +0 -1
- package/dist/chunks/sessionStorage-0.6.2-0brgsadt.mjs +0 -1
- package/dist/chunks/settings-0.6.2-cgwa4c0s.mjs +0 -1
- package/dist/chunks/setup-0.6.2-vqm3xhrr.mjs +0 -5
- package/dist/chunks/sinks-0.6.2-p6ftcdrs.mjs +0 -1
- package/dist/chunks/skills-0.6.2-87j1kdxj.mjs +0 -1
- package/dist/chunks/startupProfiler-0.6.2-173hw815.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-0.6.2-4364mejf.mjs +0 -1
- package/dist/chunks/state-0.6.2-nymhw7ey.mjs +0 -1
- package/dist/chunks/stats-0.6.2-skm9nakv.mjs +0 -6
- package/dist/chunks/status-0.6.2-wfm0ahb8.mjs +0 -1
- package/dist/chunks/stickers-0.6.2-nze85ck5.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.6.2-vktss3j3.mjs +0 -1
- package/dist/chunks/tasks-0.6.2-hfy99qn9.mjs +0 -1
- package/dist/chunks/teamHelpers-0.6.2-ep254ybc.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.6.2-ecyswt3z.mjs +0 -1
- package/dist/chunks/teleport-0.6.2-ve5pmdye.mjs +0 -1
- package/dist/chunks/terminalSetup-0.6.2-wxnysmg4.mjs +0 -1
- package/dist/chunks/theme-0.6.2-r6cak2qv.mjs +0 -1
- package/dist/chunks/thinkback-0.6.2-9svbgrtq.mjs +0 -1
- package/dist/chunks/thinkback-play-0.6.2-22rfv6x5.mjs +0 -1
- package/dist/chunks/toolPool-0.6.2-znz9vm50.mjs +0 -1
- package/dist/chunks/toolSearch-0.6.2-nsf80s0q.mjs +0 -1
- package/dist/chunks/tools-0.6.2-wcxfbgtv.mjs +0 -1
- package/dist/chunks/trustedDevice-0.6.2-ab0ftpnm.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.6.2-g0zf33kq.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.6.2-8c0jzztb.mjs +0 -4
- package/dist/chunks/update-0.6.2-p8edrwg4.mjs +0 -86
- package/dist/chunks/upgrade-0.6.2-wkscvr1z.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.6.2-0bdt5gtr.mjs +0 -14
- package/dist/chunks/url-handler-napi-0.6.2-rgywhzs5.mjs +0 -1
- package/dist/chunks/usage-0.6.2-mkckbqy2.mjs +0 -1
- package/dist/chunks/util-0.6.2-yet75ms4.mjs +0 -1
- package/dist/chunks/utils-0.6.2-pedaa5s8.mjs +0 -1
- package/dist/chunks/vim-0.6.2-m8vm39s8.mjs +0 -1
- package/dist/chunks/watcher-0.6.2-apxj1t3y.mjs +0 -1
- package/dist/chunks/wiki-0.6.2-wztzwvgx.mjs +0 -132
- package/dist/chunks/worktree-0.6.2-jvbqmswq.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.6.2-bq8z3zp7.mjs +0 -1
- package/dist/chunks/wrapper-0.6.2-wwg8e756.mjs +0 -7
- /package/dist/chunks/{cli-0.6.2-qk6j042k.mjs → cli-0.6.3-1h3a97cb.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-hb4fz4pd.mjs → cli-0.6.3-29t031py.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-hkgnx8g7.mjs → cli-0.6.3-4k4zf43b.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-7p1ykg1m.mjs → cli-0.6.3-94pqfzn3.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-3eaaj6e5.mjs → cli-0.6.3-dvsz6151.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-adegz2m3.mjs → cli-0.6.3-ecnnpsad.mjs} +0 -0
- /package/dist/chunks/{cli-0.6.2-1e5p6hw6.mjs → cli-0.6.3-v522ej7z.mjs} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{C5 as E2,E5 as G8}from"./cli-0.6.3-cfgaczs0.mjs";import{G5 as h,H5 as pZ}from"./cli-0.6.3-6ax8m5hv.mjs";import{K6 as c5,M6 as H8}from"./cli-0.6.3-aexkp8kj.mjs";import{A_ as M1,Ada as K,B_ as C8,Dda as $0,E7 as v4,F7 as s,G7 as L2,H7 as O0,I7 as I4,J7 as l2,Nca as q4,O_ as s1,P7 as H0,Pba as d,Pca as Z4,Pda as D,Q7 as z1,Sca as b2,Taa as E,Tca as nZ,Uba as u5,Vaa as B2,Vba as C,Xda as s0,Yaa as Q0,Yba as L,Zaa as y,_7 as K5,b8 as mZ,c$ as qZ,cca as o1,gba as j0,naa as a1,o8 as D5,pba as d4,pda as p5,q8 as cZ,rba as dZ,rca as i,rda as V4,sba as S1,tba as A8,tca as r1,uca as WZ,waa as VZ,xda as m5,zca as e1}from"./cli-0.6.3-cz70v0dc.mjs";import{Afa as k1,ofa as C0,qfa as P4}from"./cli-0.6.3-pqq8j8h2.mjs";import{iga as S5,jga as c4,kga as B0,mga as W8,nga as z8,pga as O,qga as I0}from"./cli-0.6.3-mwvq805r.mjs";import{rga as x,tga as j2}from"./cli-0.6.3-ywk23cbf.mjs";import{Zga as L5,bha as uZ,fha as t2,jha as M8,tha as z,vha as d0,wha as Z0}from"./cli-0.6.3-tjykjtxh.mjs";import{Nha as p,Pha as Y1,Uha as q1}from"./cli-0.6.3-2seqm104.mjs";import{Xha as F5,_ha as F,aia as g,cia as P2,fia as m4,iia as u}from"./cli-0.6.3-vp1zy3b1.mjs";import{$la as Q1,Bla as f,Ila as _1,Kja as Y0,Lja as H1,Lka as u1,Nna as J0,Zka as l1,Zla as $1,_la as J1,ama as X1,bla as U4,gla as S0,hla as J2,mma as x2}from"./cli-0.6.3-g7nc10fr.mjs";import{koa as v,loa as l0}from"./cli-0.6.3-z6sz55zd.mjs";import{Hoa as P,Zoa as q2}from"./cli-0.6.3-4zj0d42m.mjs";import{tpa as M0,vpa as m2,wpa as H,xpa as e}from"./cli-0.6.3-qh59pqrb.mjs";function v5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:X,resolve:Y,reject:q,context:W}=$.shift();try{let G=await Z.apply(W,X);Y(G)}catch(G){q(G)}}if(J=!1,$.length>0)Q()}return function(...X){return new Promise((Y,q)=>{$.push({args:X,resolve:Y,reject:q,context:this}),Q()})}}var I5=()=>{};function T5(Z,$){return Z.find((J)=>J.includes($))??null}async function C5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=P2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await E2(),...J&&{requestHandler:new(await import("./index-0.6.3-w2hywyvr.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.6.3-aj0c98mr.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await z0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}async function g$(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=P2(),J=F(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await E2(),...J&&{requestHandler:new(await import("./index-0.6.3-w2hywyvr.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.6.3-aj0c98mr.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await z0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}function x8(Z){return Z.startsWith("anthropic.")}function B8(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function R8(Z){let $=B8(Z);for(let J of j8)if($.startsWith(`${J}.anthropic.`))return J;return}function p$(Z,$){let J=R8(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(x8(Z))return`${$}.${Z}`;return Z}var y5,u$,j8;var A5=H(()=>{l0();n();u();s0();G8();y5=v(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([C5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let X=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),Y=await Z.send(X);if(Y.inferenceProfileSummaries)J.push(...Y.inferenceProfileSummaries);Q=Y.nextToken}while(Q);return J.filter((X)=>X.inferenceProfileId?.includes("anthropic")).map((X)=>X.inferenceProfileId).filter(Boolean)}catch(X){throw D(X),X}});u$=v(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([C5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),X=await $.send(Q);if(!X.models||X.models.length===0)return null;let Y=X.models[0];if(!Y?.modelArn)return null;let q=Y.modelArn.lastIndexOf("/");return q>=0?Y.modelArn.substring(q+1):Y.modelArn}catch($){return D($),null}});j8=["us","eu","apac","global"]});var _2,k2,M2,S2,v2,I2,y2,T2,C2,a0,o0,r0,A2,h2,G0,c$,h5;var f2=H(()=>{_2={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},k2={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},M2={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},S2={firstParty:"claude-haiku-4-5-20251001",bedrock:"us.anthropic.claude-haiku-4-5-20251001-v1:0",vertex:"claude-haiku-4-5@20251001",foundry:"claude-haiku-4-5",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},v2={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},I2={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},y2={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},T2={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},C2={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},a0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},o0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},r0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},A2={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},h2={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},G0={haiku35:M2,haiku45:S2,sonnet35:k2,sonnet37:_2,sonnet40:v2,sonnet45:I2,sonnet46:h2,opus40:y2,opus41:T2,opus45:C2,opus46:a0,opus47:o0,opus48:r0,fable5:A2},c$=Object.values(G0).map((Z)=>Z.firstParty),h5=Object.fromEntries(Object.entries(G0).map(([Z,$])=>[$.firstParty,Z]))});function f5(){return Object.values(e0)}var e0,g2;var u2=H(()=>{e0={"gpt-5.5":{id:"gpt-5.5",name:"GPT-5.5",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.4":{id:"gpt-5.4",name:"GPT-5.4",family:"gpt",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5.2-codex":{id:"gpt-5.2-codex",name:"GPT-5.2-Codex",family:"gpt-codex",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:400000,output:128000}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 mini",family:"gpt-mini",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:264000,output:64000}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",family:"gpt",attachment:!0,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2023-10",release_date:"2024-05-01",last_updated:"2024-08-06",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",family:"gpt",attachment:!1,reasoning:!1,tool_call:!0,temperature:!0,knowledge:"2024-06",release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128000,output:16384}},"claude-opus-4.7":{id:"claude-opus-4.7",name:"Claude Opus 4.7",family:"claude-opus",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2026-01",release_date:"2026-04-01",last_updated:"2026-04-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-sonnet-4.6":{id:"claude-sonnet-4.6",name:"Claude Sonnet 4.6",family:"claude-sonnet",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:32000}},"claude-haiku-4.5":{id:"claude-haiku-4.5",name:"Claude Haiku 4.5",family:"claude-haiku",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:144000,output:32768}},"gemini-3.1-pro-preview":{id:"gemini-3.1-pro-preview",name:"Gemini 3.1 Pro Preview",family:"gemini-pro",attachment:!0,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:200000,output:64000}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",family:"grok",attachment:!1,reasoning:!0,tool_call:!0,temperature:!0,knowledge:"2025-05",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256000,output:64000}}},g2=Object.fromEntries(Object.values(e0).map((Z)=>[Z.id,Z.name]))});var _0={};m2(_0,{prefetchCopilotModelCatalog:()=>d2,normalizeBareCopilotModelId:()=>c2,getEffectiveCopilotModels:()=>N8,getCopilotDisplayName:()=>O8,getCatalogCopilotMaxOutputTokens:()=>P8,getCatalogCopilotContextWindow:()=>U8,getCachedCopilotCatalog:()=>D8,fetchCopilotModelCatalog:()=>n5,copilotModelSupportsAnthropicMessages:()=>b8,_setCopilotCatalogForTesting:()=>E8});function E0(){let Z=K();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function d5(){if(!t)return!1;let Z=E0();return Z!==null&&x0===Z}function F8(){if(g5)return;g5=!0,u5(()=>{let Z=E0();if(Z&&x0!==Z)d2()})}function c2(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),X=Q.indexOf("/");return X===-1?Q:Q.slice(X+1)}function L8(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function K8(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},X=Z.capabilities?.supports??{},Y=X.vision===!0||Boolean(Q.vision),q=X.adaptive_thinking===!0||Array.isArray(X.reasoning_effort)||typeof X.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:Y,reasoning:q,tool_call:X.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:Y?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:L8(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function n5(){let Z=K();if(Z?.transport!=="github_copilot")return null;if(p5(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,X=setTimeout(()=>Q.abort(),w8);try{let Y=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...c5},signal:Q.signal});if(!Y.ok)return null;let q=await Y.json();if(!Array.isArray(q?.data))return null;let W=new Set,G=[];for(let B of q.data){let R=K8(B);if(!R||W.has(R.model.id))continue;W.add(R.model.id),G.push(R)}return G.length>0?G:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(X)}}function d2(){F8();let Z=E0();if(!Z)return;if(t&&x0!==Z)t=null,x0=null;if(Z2){if(p2===Z)return;Z2.finally(()=>d2());return}p2=Z,Z2=n5().then(($)=>{if($&&E0()===Z)t=$,x0=Z}).finally(()=>{Z2=null,p2=null})}function D8(){return t}function N8(){if(d5()){let Z=t?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return f5()}function $2(Z){if(!d5())return;let $=c2(Z);return t.find((J)=>J.model.id===$)}function O8(Z){let $=c2(Z);return $2($)?.model.name??e0[$]?.name}function b8(Z){let $=$2(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function U8(Z){return $2(Z)?.model.limit.context}function P8(Z){return $2(Z)?.model.limit.output}function E8(Z){t=Z,x0=Z?E0():null}var w8=5000,t=null,x0=null,Z2=null,p2=null,g5=!1;var k0=H(()=>{$0();H8();m5();i();Z0();u2()});function V(){let Z=K();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function e$(){return V()==="firstParty"}function ZJ(Z){let $=K();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(k0(),M0(_0)),X=Q(J);if(X!==null)return X}catch{}return!0}function $J(){return V()}function JJ(){let Z=K();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var l=H(()=>{$0()});function Q2(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of i5)J[Q]=G0[Q][$];return J}async function _8(){let Z=Q2("bedrock"),$;try{$=await y5()}catch(Q){return D(Q),Z}if(!$?.length)return Z;let J={};for(let Q of i5){let X=G0[Q].firstParty;J[Q]=T5($,X)||Z[Q]}return J}function t5(Z){let $=Q0().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,X]of Object.entries($)){let Y=h5[Q];if(Y&&X)J[Y]=X}return J}function X2(Z){let $;try{$=Q0().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function k8(){if(S0()!==null)return;if(V()!=="bedrock"){J2(Q2(V()));return}l5()}function j(){let Z=S0();if(Z===null)return k8(),t5(Q2(V()));return t5(Z)}async function xJ(){if(S0()!==null)return;if(V()!=="bedrock"){J2(Q2(V()));return}await l5()}var i5,l5;var Y2=H(()=>{J0();s0();I5();j0();A5();f2();l();i5=Object.keys(G0);l5=v5(async()=>{if(S0()!==null)return;try{let Z=await _8();J2(Z)}catch(Z){D(Z)}})});function wJ(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(U())return!1;let $=v0(),J=X0()!==null;if(!$.hasToken&&!J)return!1;let Q=L(),X=Q.oauthAccount?.organizationRole,Y=Q.oauthAccount?.workspaceRole;if(!X||!Y)return!1;return["admin","billing"].includes(X)||["workspace_admin","workspace_billing"].includes(Y)}function FJ(){if(s5!==null)return s5;if(!U())return!1;let Z=M();if(Z==="max"||Z==="pro")return!0;let J=L().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var s5=null;var a5=H(()=>{n();i();u()});function NJ(Z){return Z}function OJ(){return!1}function o5(){return null}function r5(){return!1}var e5=H(()=>{a5()});async function MJ(){let $=L().oauthAccount?.accountUuid,J=X0();if(!$||!J)return;let Q=`${O().BASE_API_URL}/api/claude_cli_profile`;try{return(await P.get(Q,{headers:{"x-api-key":J,"anthropic-beta":B0},params:{account_uuid:$},timeout:1e4})).data}catch(X){D(X)}}async function R0(Z){let $=`${O().BASE_API_URL}/api/oauth/profile`;try{return(await P.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){D(J)}}var n2=H(()=>{q2();I0();n();i();s0()});import{mkdirSync as S8,writeFileSync as v8}from"fs";function T8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{S8(V2,{recursive:!0,mode:448}),v8(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${p(Q)}`,{level:"error"})}}function Z1(Z,$){try{let Q=t2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!Y1(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function V1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:X}){let Y=Q();if(Y!==void 0)return Y;let q=process.env[Z];if(!q){let G=Z1($,J);return X(G),G}let W=parseInt(q,10);if(Number.isNaN(W))return z(`${Z} must be a valid file descriptor number, got: ${q}`,{level:"error"}),X(null),null;try{let G=t2(),B=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${W}`:`/proc/self/fd/${W}`,R=G.readFileSync(B,{encoding:"utf8"}).trim();if(!R)return z(`File descriptor contained empty ${J}`,{level:"error"}),X(null),null;return z(`Successfully read ${J} from file descriptor ${W}`),X(R),T8($,R,J),R}catch(G){z(`Failed to read ${J} from file descriptor ${W}: ${p(G)}`,{level:"error"});let B=Z1($,J);return X(B),B}}function W2(){return V1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:I8,label:"OAuth token",getCached:$1,setCached:J1})}function i2(){return V1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:y8,label:"API key",getCached:Q1,setCached:X1})}var V2="/home/claude/.claude/remote",I8,y8,hJ;var W1=H(()=>{J0();Z0();u();q1();M8();I8=`${V2}/.oauth_token`,y8=`${V2}/.api_key`,hJ=`${V2}/.session_ingress_token`});async function G1(){if(process.platform==="darwin"){let Z=s();if((await H0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function z2(Z){return Z.slice(-20)}var x1=H(()=>{z1();l2()});function cJ(Z){return Z?.name==="CredentialsProviderError"}function j1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function s2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function B1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var R1=H(()=>{Z0()});class T{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!T.instance)T.instance=new T;return T.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(T.instance)T.instance.changed.clear(),T.instance=null}}var w1=H(()=>{H1()});var G2="claude-code-20250219",F1="interleaved-thinking-2025-05-14",y0="context-1m-2025-08-07",L1="context-management-2025-06-27",K1="structured-outputs-2025-12-15",a2="web-search-2025-03-05",D1="advanced-tool-use-2025-11-20",N1="tool-search-tool-2025-10-19",iJ="effort-2025-11-24",lJ="task-budgets-2026-03-13",O1="prompt-caching-scope-2026-01-05",sJ="extended-cache-ttl-2025-04-11",aJ="fast-mode-2026-02-01",b1="redact-thinking-2026-02-12",U1="thinking-token-count-2026-05-13",P1="token-efficient-tools-2026-03-28",oJ="afk-mode-2026-01-31",rJ="advisor-tool-2026-03-01",o2,eJ;var r2=H(()=>{o2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),eJ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(V()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function v1(){if(!A())return!1;return f8()===null}function h8(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function f8(){if(V()!=="firstParty")return"Fast mode is not available on third-party providers";if(!A())return"Fast mode is not available";let Z=C0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!M1()&&C0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&x2()&&!_1()){if(!E("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(k.status==="disabled"){if(k.reason==="network_error"||k.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=h8(k.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function F3(){return"opus"+(h0()?"[1m]":"")}function L3(Z){if(!A())return!1;if(!v1())return!1;if(!I1(Z))return!1;let $=Q0();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function I1(Z){if(!A())return!1;let $=Z??A0(),J=I($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function g8(){if(w0.status==="cooldown"&&Date.now()>=w0.resetAt){if(A()&&!e2)z("Fast mode cooldown expired, re-enabling fast mode"),e2=!0,T1.emit();w0={status:"active"}}return w0}function N3(Z,$){if(!A())return;w0={status:"cooldown",resetAt:Z,reason:$},e2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),y1.emit(Z,$)}function O3(){w0={status:"active"}}function b3(){if(k.status==="disabled")return;k={status:"disabled",reason:"preference"},B2("userSettings",{fastMode:void 0}),C((Z)=>({...Z,penguinModeOrgEnabled:!1})),Z5.emit(!1)}function u8(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function p8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function P3(Z){let $=u8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!p8(Z))B2("userSettings",{fastMode:void 0}),C((J)=>({...J,penguinModeOrgEnabled:!1}));C1.emit($)}function m8(){return g8().status==="cooldown"}function E3(Z,$){let J=A()&&v1()&&!!$&&I1(Z);if(J&&m8())return"cooldown";if(J)return"on";return"off"}async function c8(Z){let $=`${O().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":B0}:{"x-api-key":Z.apiKey};return(await P.get($,{headers:J})).data}function k3(){if(!A())return;if(k.status!=="pending")return;k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function M3(){if(S1())return;if(!A())return;if(T0)return z("Fast mode prefetch in progress, returning in-flight promise"),T0;let Z=X0();if(!(w()?.accessToken&&q0())&&!Z){k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-E1<d8){z("Skipping fast mode prefetch, fetched recently");return}E1=J;let Q=async()=>{let Y=w(),q=Y?.accessToken&&q0()?{accessToken:Y.accessToken}:Z?{apiKey:Z}:null;if(!q)throw Error("No auth available");return c8(q)};async function X(){try{let Y;try{Y=await Q()}catch(W){if(P.isAxiosError(W)&&(W.response?.status===401||W.response?.status===403&&typeof W.response?.data==="string"&&W.response.data.includes("OAuth token has been revoked"))){let B=w()?.accessToken;if(B)await $5(B),Y=await Q();else throw W}else throw W}let q=k.status!=="pending"?k.status==="enabled":L().penguinModeOrgEnabled;if(k=Y.enabled?{status:"enabled"}:{status:"disabled",reason:Y.disabled_reason??"preference"},q!==Y.enabled){if(!Y.enabled)B2("userSettings",{fastMode:void 0});C((W)=>({...W,penguinModeOrgEnabled:Y.enabled})),Z5.emit(Y.enabled)}z(`Org fast mode: ${Y.enabled?"enabled":`disabled (${Y.disabled_reason??"preference"})`}`)}catch(Y){k=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${k.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${Y}`,{level:"error"}),x("tengu_org_penguin_mode_fetch_failed",{})}finally{T0=null}}return T0=X(),T0}var w3="Opus 4.7",w0,e2=!1,y1,T1,K3,D3,C1,U3,k,Z5,_3,d8=30000,E1=0,T0=null;var A1=H(()=>{q2();I0();k1();J0();j2();n();C8();i();Z0();u();F0();l();A8();j0();H1();w0={status:"active"},y1=Y0(),T1=Y0(),K3=y1.subscribe,D3=T1.subscribe;C1=Y0(),U3=C1.subscribe;k={status:"pending"},Z5=Y0(),_3=Z5.subscribe});function o8(Z){for(let $ of a8)if($.pattern.test(Z))return $.cost;return}function J5(Z){if(A()&&Z)return t8;return L0}function r8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,X=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+X+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function e8(Z,$){let J=b(Z);if(J===N(a0.firstParty)||J===N(o0.firstParty)||J===N(r0.firstParty)){let X=$.speed==="fast";return J5(X)}let Q=f1[J];if(!Q){let X=o8(Z);if(X)return X;return ZZ(Z,J),f1[b(A0())]??s8}return Q}function ZZ(Z,$){x("tengu_unknown_model_cost",{model:Z,shortName:$}),u1()}function $Z(Z,$){let J=e8(Z,$);return r8(J,$)}function A3(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return $Z(Z,J)}function g1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function p1(Z){return`${g1(Z.inputTokens)}/${g1(Z.outputTokens)} per Mtok`}var f0,h1,L0,n8,t8,i8,l8,s8,a8,f1;var m1=H(()=>{j2();J0();A1();f2();F0();f0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},h1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},L0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},n8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},t8={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},i8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},l8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},s8=L0,a8=[{pattern:/gpt-5-nano/i,label:"gpt-5-nano",cost:{inputTokens:0.05,outputTokens:0.4,promptCacheWriteTokens:0.05,promptCacheReadTokens:0.005,webSearchRequests:0}},{pattern:/gpt-5-mini/i,label:"gpt-5-mini",cost:{inputTokens:0.25,outputTokens:2,promptCacheWriteTokens:0.25,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gpt-5/i,label:"gpt-5",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gpt-4o-mini/i,label:"gpt-4o-mini",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/gpt-4o/i,label:"gpt-4o",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:1.25,webSearchRequests:0}},{pattern:/gpt-4\.1/i,label:"gpt-4.1",cost:{inputTokens:2,outputTokens:8,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/o4-mini/i,label:"o4-mini",cost:{inputTokens:0.55,outputTokens:2.2,promptCacheWriteTokens:0.55,promptCacheReadTokens:0.275,webSearchRequests:0}},{pattern:/\bo3\b/i,label:"o3",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/\bo1\b/i,label:"o1",cost:{inputTokens:15,outputTokens:60,promptCacheWriteTokens:15,promptCacheReadTokens:7.5,webSearchRequests:0}},{pattern:/gemini.*2\.5.*pro/i,label:"gemini-2.5-pro",cost:{inputTokens:1.25,outputTokens:10,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini.*2\.5.*flash/i,label:"gemini-2.5-flash",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/gemini.*flash/i,label:"gemini-flash",cost:{inputTokens:0.1,outputTokens:0.4,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.025,webSearchRequests:0}},{pattern:/gemini.*pro/i,label:"gemini-pro",cost:{inputTokens:1.25,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.125,webSearchRequests:0}},{pattern:/gemini/i,label:"gemini",cost:{inputTokens:0.3,outputTokens:2.5,promptCacheWriteTokens:0.3,promptCacheReadTokens:0.03,webSearchRequests:0}},{pattern:/deepseek/i,label:"deepseek",cost:{inputTokens:0.14,outputTokens:0.28,promptCacheWriteTokens:0.14,promptCacheReadTokens:0.0028,webSearchRequests:0}},{pattern:/kimi-for-coding/i,label:"kimi-for-coding",cost:{inputTokens:1,outputTokens:2,promptCacheWriteTokens:1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/kimi/i,label:"kimi",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/moonshot/i,label:"moonshot",cost:{inputTokens:0.6,outputTokens:2.5,promptCacheWriteTokens:0.6,promptCacheReadTokens:0.06,webSearchRequests:0}},{pattern:/devstral/i,label:"devstral",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/mistral.*large.*3/i,label:"mistral-large-3",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/mistral.*large/i,label:"mistral-large",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:2,webSearchRequests:0}},{pattern:/mistral.*medium/i,label:"mistral-medium",cost:{inputTokens:0.4,outputTokens:2,promptCacheWriteTokens:0.4,promptCacheReadTokens:0.4,webSearchRequests:0}},{pattern:/mistral.*small/i,label:"mistral-small",cost:{inputTokens:0.1,outputTokens:0.3,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*8b/i,label:"ministral-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/ministral.*3b/i,label:"ministral-3b",cost:{inputTokens:0.04,outputTokens:0.04,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/llama.*405/i,label:"llama-405b",cost:{inputTokens:3.5,outputTokens:3.5,promptCacheWriteTokens:3.5,promptCacheReadTokens:3.5,webSearchRequests:0}},{pattern:/llama.*70/i,label:"llama-70b",cost:{inputTokens:0.59,outputTokens:0.79,promptCacheWriteTokens:0.59,promptCacheReadTokens:0.59,webSearchRequests:0}},{pattern:/llama.*8b/i,label:"llama-8b",cost:{inputTokens:0.1,outputTokens:0.1,promptCacheWriteTokens:0.1,promptCacheReadTokens:0.1,webSearchRequests:0}},{pattern:/qwen/i,label:"qwen",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/minimax/i,label:"minimax",cost:{inputTokens:0.2,outputTokens:1.1,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.2,webSearchRequests:0}},{pattern:/\bglm/i,label:"glm",cost:{inputTokens:0.5,outputTokens:1.5,promptCacheWriteTokens:0.5,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4.*fast/i,label:"grok-4-fast",cost:{inputTokens:0.2,outputTokens:0.5,promptCacheWriteTokens:0.2,promptCacheReadTokens:0.05,webSearchRequests:0}},{pattern:/grok.*4\.20/i,label:"grok-4.20",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/grok.*4/i,label:"grok-4",cost:{inputTokens:3,outputTokens:15,promptCacheWriteTokens:3,promptCacheReadTokens:0.75,webSearchRequests:0}},{pattern:/grok/i,label:"grok",cost:{inputTokens:2,outputTokens:6,promptCacheWriteTokens:2,promptCacheReadTokens:0.5,webSearchRequests:0}},{pattern:/command-?r-?plus|command-r\+/i,label:"command-r-plus",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?a\b/i,label:"command-a",cost:{inputTokens:2.5,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheReadTokens:2.5,webSearchRequests:0}},{pattern:/command-?r7b/i,label:"command-r7b",cost:{inputTokens:0.0375,outputTokens:0.15,promptCacheWriteTokens:0.0375,promptCacheReadTokens:0.0375,webSearchRequests:0}},{pattern:/command-?r/i,label:"command-r",cost:{inputTokens:0.15,outputTokens:0.6,promptCacheWriteTokens:0.15,promptCacheReadTokens:0.15,webSearchRequests:0}},{pattern:/gemma.*27b/i,label:"gemma-27b",cost:{inputTokens:0.08,outputTokens:0.16,promptCacheWriteTokens:0.08,promptCacheReadTokens:0.08,webSearchRequests:0}},{pattern:/gemma.*12b/i,label:"gemma-12b",cost:{inputTokens:0.04,outputTokens:0.13,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/gemma/i,label:"gemma",cost:{inputTokens:0.04,outputTokens:0.08,promptCacheWriteTokens:0.04,promptCacheReadTokens:0.04,webSearchRequests:0}},{pattern:/phi-?4-?mini/i,label:"phi-4-mini",cost:{inputTokens:0.075,outputTokens:0.3,promptCacheWriteTokens:0.075,promptCacheReadTokens:0.075,webSearchRequests:0}},{pattern:/phi-?4/i,label:"phi-4",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}},{pattern:/\bphi\b/i,label:"phi",cost:{inputTokens:0.13,outputTokens:0.5,promptCacheWriteTokens:0.13,promptCacheReadTokens:0.13,webSearchRequests:0}}];f1={[N(M2.firstParty)]:i8,[N(S2.firstParty)]:l8,[N(k2.firstParty)]:f0,[N(_2.firstParty)]:f0,[N(v2.firstParty)]:f0,[N(I2.firstParty)]:f0,[N(h2.firstParty)]:f0,[N(y2.firstParty)]:h1,[N(T2.firstParty)]:h1,[N(C2.firstParty)]:L0,[N(a0.firstParty)]:L0,[N(o0.firstParty)]:L0,[N(r0.firstParty)]:L0,[N(A2.firstParty)]:n8}});function m(Z){return JZ.includes(Z)}function K0(Z){return QZ.includes(Z)}var JZ,QZ;var Q5=H(()=>{JZ=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];QZ=["sonnet","opus","haiku"]});function XZ(Z,$){if(Z.includes($))return!0;if(m(Z))return I(Z).toLowerCase().includes($);return!1}function c1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function YZ(Z,$){let J=m(Z)?I(Z).toLowerCase():Z;if(c1(J,$))return!0;if(!$.startsWith("claude-")&&c1(J,`claude-${$}`))return!0;return!1}function d1(Z,$){for(let J of $){if(K0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let X=Q+Z.length;if(X===J.length||J[X]==="-")return!0}return!1}function n1(Z){let $=y()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let X=X2(Z).trim().toLowerCase(),Y=J.map((q)=>q.trim().toLowerCase());if(Y.includes(X)){if(!K0(X)||!d1(X,Y))return!0}for(let q of Y)if(K0(q)&&!d1(q,Y)&&XZ(X,q))return!0;if(m(X)){let q=I(X).toLowerCase();if(Y.includes(q))return!0}for(let q of Y)if(!K0(q)&&m(q)){if(I(q).toLowerCase()===X)return!0}for(let q of Y)if(!K0(q)&&!m(q)){if(YZ(X,q))return!0}return!1}var t1=H(()=>{j0();Q5();F0();Y2()});function R2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function N0(){let Z=K();if(!Z?.model)return;return r1(Z.model)}function V7(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=N0();if(V()==="gemini")return Z||"gemini-2.0-flash-lite";if(V()==="mistral")return Z||"ministral-3b-latest";if(V()==="openai")return Z||"gpt-4o-mini";if(V()==="codex")return Z||"codexspark";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5-highspeed";return $4()}function W7(Z){return Z===j().opus40||Z===j().opus41||Z===j().opus45||Z===j().opus46||Z===j().opus47||Z===j().opus48}function X5(){let Z,$=l1();if($!==void 0)Z=$;else{let J=y()||{},Q=R2(J.model),X=N0();if(e1()!==void 0)Z=R2(o1().activeModelForProject)||void 0;else Z=X||Q||void 0}if(Z&&!n1(Z))return;return Z}function z7(){let Z=X5();if(Z!==void 0&&Z!==null)return I(Z);return J4()}function zZ(){return D0()}function D0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=N0();if(V()==="gemini")return Z||"gemini-2.5-pro";if(V()==="mistral")return Z||"devstral-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.7";if(V()!=="firstParty")return j().opus46;return j().opus48}function g0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=N0();if(V()==="gemini")return Z||"gemini-2.0-flash";if(V()==="mistral")return Z||"mistral-medium-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5";if(V()!=="firstParty")return j().sonnet45;return j().sonnet46}function $4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=N0();if(V()==="mistral")return Z||"ministral-3b-latest";if(V()==="openai")return Z||"gpt-4o-mini";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="gemini")return Z||"gemini-2.0-flash-lite";if(V()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5-highspeed";return j().haiku45}function G7(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(X5()==="opusplan"&&$==="plan"&&!Q)return D0();if(X5()==="haiku"&&$==="plan")return g0();return J}function A0(){let Z=N0();if(V()==="github"){let $=y()||{};return R2($.model)||Z||"github:copilot"}if(V()==="gemini")return Z||"gemini-2.0-flash";if(V()==="mistral")return Z||"devstral-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(H2())return D0()+(h0()?"[1m]":"");if(w2())return D0()+(h0()?"[1m]":"");return g0()}function J4(){return I(A0())}function N(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function b(Z){return N(X2(Z))}function GZ(Z=!1){if(H2()||w2()){if(h0())return`Opus 4.8 with 1M context · Most capable for complex work${Z?i1(!0):""}`;return`Opus 4.8 · Most capable for complex work${Z?i1(!0):""}`}return"Sonnet 4.6 · Best for everyday tasks"}function x7(Z){if(Z==="opusplan")return"Opus 4.8 in plan mode, else Sonnet 4.6";return X4(I(Z))}function i1(Z){if(V()!=="firstParty")return"";let $=p1(J5(Z));return` ·${Z?` (${s1})`:""} ${$}`}function h0(){if(V0()||V5()||V()!=="firstParty")return!1;if(U()&&M()===null)return!1;return!0}function j7(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(m(Z))return a1(Z);return X4(Z)}function Q4(Z){if(V()==="openai"||V()==="gemini"||V()==="codex"||V()==="github"){if(g2[Z])return g2[Z];if(V()==="github"){let{getCopilotDisplayName:$}=(k0(),M0(_0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case j().fable5:return"Fable 5";case j().opus48:return"Opus 4.8";case j().opus48+"[1m]":return"Opus 4.8 (1M context)";case j().opus47:return"Opus 4.7";case j().opus47+"[1m]":return"Opus 4.7 (1M context)";case j().opus46:return"Opus 4.6";case j().opus46+"[1m]":return"Opus 4.6 (1M context)";case j().opus45:return"Opus 4.5";case j().opus41:return"Opus 4.1";case j().opus40:return"Opus 4";case j().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case j().sonnet46:return"Sonnet 4.6";case j().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case j().sonnet45:return"Sonnet 4.5";case j().sonnet40:return"Sonnet 4";case j().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case j().sonnet37:return"Sonnet 3.7";case j().sonnet35:return"Sonnet 3.5";case j().haiku45:return"Haiku 4.5";case j().haiku35:return"Haiku 3.5";default:return null}}function X4(Z){let $=Q4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function B7(Z){let $=Q4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function I(Z){let $=R2(Z);if(!$)return g0();let J=$.toLowerCase(),Q=a(J),X=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(X))switch(X){case"opusplan":return g0()+(Q?"[1m]":"");case"sonnet":return g0()+(Q?"[1m]":"");case"haiku":return $4()+(Q?"[1m]":"");case"opus":return D0()+(Q?"[1m]":"");case"best":return zZ();default:}if(X==="codexplan")return"gpt-5.5";if(X==="codexspark")return"gpt-5.3-codex-spark";if(X==="fable"||X==="fable5")return j().fable5;if(V()==="firstParty"&&jZ(X)&&BZ())return D0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function R7(Z,$){if(a(Z)||!a($))return Z;if(Y5(I(Z)))return Z+"[1m]";return Z}function jZ(Z){return xZ.includes(Z)}function BZ(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function H7(Z){if(Z===null){if(U())return`Default (${GZ()})`;return`Default (${J4()})`}let $=I(Z);return Z===$?$:`${Z} (${$})`}function w7(Z){if(V()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=b(Z);if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function F7(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function L7(Z){let $=b(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")}var xZ;var F0=H(()=>{J0();$0();i();Z4();n();q5();u();WZ();Y2();m1();j0();l();qZ();t1();Q5();VZ();u2();xZ=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function W5(Z){return}async function D7(){}var Y4=()=>{};var j4={};m2(j4,{prefetchOpenAICompatibleModels:()=>bZ,getDiscoveredContextWindow:()=>RZ,discoverOpenAICompatibleModelOptions:()=>x4});function RZ(Z){return z4.get(Z)}function HZ(){return(K()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function G4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function wZ(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function FZ(Z){let $=K()?.apiKey?.trim();if(!$)return{};if(wZ(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(G4(Z))J["api-key"]=$;return J}function LZ(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),X=Q&&G4(Z)?(Y)=>{try{let q=new URL(Y);return q.searchParams.set("api-version",Q),q.toString()}catch{return Y}}:(Y)=>Y;if($===J)return[X($)];return[X($),X(J)]}function KZ(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),X=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${X}`}catch{return null}}function DZ(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function NZ(Z,$){let J=new Set;for(let Q of Z)try{let X=await P.get(Q,{headers:$,timeout:W4}),Y=[];for(let q of X.data?.data??[]){let W=q.id?.trim();if(!W||J.has(W))continue;J.add(W);let G=q.name?.trim()||W,B=q.context_length??null;if(B&&B>0)z4.set(W,B);let R=B?` · ${DZ(B)}`:"";Y.push({value:W,label:G,description:`${W}${R}`})}if(Y.length>0)return Y.sort((q,W)=>{let G=String(q.value).split("/")[0]??"",B=String(W.value).split("/")[0]??"",R=G.localeCompare(B);return R!==0?R:String(q.value).localeCompare(String(W.value))}),Y}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function OZ(Z,$){try{let J=await P.get(Z,{headers:$,timeout:W4}),Q=new Set;return(J.data?.models??[]).map((X)=>X.name?.trim()??"").filter((X)=>{if(!X||Q.has(X))return!1;return Q.add(X),!0}).map((X)=>({value:X,label:X,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function x4(){if(V()!=="openai")return[];let Z=HZ(),$=FZ(Z),J=await NZ(LZ(Z),$);if(J.length>0)return J;let Q=KZ(Z);if(Q)return OZ(Q,$);return[]}function bZ(){if(u0)return u0;return u0=(async()=>{if(!V4()?.startsWith("openai:"))return;try{let $=await x4();if($.length>0)q4($)}catch{}finally{u0=null}})(),u0}var W4=5000,z4,u0=null;var B4=H(()=>{q2();$0();m5();Z0();l();Z4();z4=new Map});function H4(Z,$,J){let Q=K()?.model?.trim();if(Q&&Q!==J){let Y=`${Q}:${J}`;if($[Y]!==void 0)return $[Y];if(Z[Y]!==void 0)return Z[Y]}let X=R4($,J);if(X!==void 0)return X;return R4(Z,J)}function R4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,X)=>X.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function w4(Z){let $=H4(UZ,EZ,Z);if($!==void 0)return $;try{let{getDiscoveredContextWindow:J}=(B4(),M0(j4)),Q=J(Z);if(Q!==void 0)return Q}catch{}try{let{getCatalogCopilotContextWindow:J}=(k0(),M0(_0));return J(Z)}catch{return}}function F4(Z){let $=H4(PZ,_Z,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(k0(),M0(_0));return J(Z)}catch{return}}var UZ,PZ,EZ,_Z;var L4=H(()=>{$0();UZ={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,"gpt-5.5":1050000,"gpt-5.5-mini":400000,"gpt-5.5-nano":400000,"gpt-5.4":1050000,"gpt-5.4-mini":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,"kimi-for-coding":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},PZ={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,"gpt-5.5":128000,"gpt-5.5-mini":128000,"gpt-5.5-nano":128000,"gpt-5.4":128000,"gpt-5.4-mini":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,"kimi-for-coding":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},EZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),_Z=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function K4(){let Z=K()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return F(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function a(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function Y5(Z){if(V0())return!1;let $=b(Z);return $.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")}function u7(Z,$){if(a(Z))return 1e6;if(K4()){let Q=w4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/utils/model/openaiContextWindows.ts for accurate compaction."),kZ}let J=W5(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>z5&&V0())return z5;return J.max_input_tokens}if(!V0()&&b(Z).includes("fable-5"))return 1e6;if($?.includes(y0)&&Y5(Z))return 1e6;if(vZ(Z))return 1e6;return z5}function vZ(Z){if(V0())return!1;if(a(Z))return!1;if(!b(Z).includes("sonnet-4-6"))return!1;return L().clientDataCache?.coral_reef_sonnet==="true"}function p7(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),X=Math.min(100,Math.max(0,Q));return{used:X,remaining:100-X}}function m7(Z){let $,J;if(K4()){let Y=F4(Z);if(Y!==void 0)return{default:Y,upperLimit:Y}}let Q=b(Z);if(Q.includes("fable-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=MZ,J=SZ;let X=W5(Z);if(X?.max_tokens&&X.max_tokens>=4096)J=X.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var z5=200000,kZ,h7=20000,MZ=32000,SZ=64000,f7=8000,g7=64000;var q5=H(()=>{r2();$0();i();u();F0();Y4();L4();kZ=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var IZ,D4;var N4=H(()=>{l0();l();IZ=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],D4=v((Z,$)=>{if(V()==="firstParty")return;let J=Z.toLowerCase();for(let Q of IZ){let X=process.env[Q.modelEnvVar],Y=process.env[Q.capabilitiesEnvVar];if(!X||Y===void 0)continue;if(J!==X.toLowerCase())continue;return Y.toLowerCase().split(",").map((q)=>q.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function yZ(Z){let $=[],J=[];for(let Q of Z)if(E4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function q9(Z){if(!Z||Z.length===0)return;if(U()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=yZ(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${E4.join(", ")}`);return $.length>0?$:void 0}function O4(Z){let $=D4(Z,"interleaved_thinking");if($!==void 0)return $;let J=b(Z),Q=V();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-sonnet-4")}function TZ(Z){let $=b(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function CZ(Z){let $=b(Z),J=V();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function AZ(Z){let $=b(Z),J=V();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function V9(Z){let $=b(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function W9(){let Z=V();if(Z==="vertex"||Z==="bedrock")return N1;return D1}function b4(){return(V()==="firstParty"||V()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function z9(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return V()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function G9(Z,$){let J=[..._4(Z)];if($?.isAgenticQuery){if(!J.includes(G2))J.push(G2)}let Q=U4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((X)=>!J.includes(X))]}function k4(){G5.cache?.clear?.(),_4.cache?.clear?.(),hZ.cache?.clear?.()}var E4,G5,_4,hZ;var M4=H(()=>{l0();k1();J0();r2();I0();n();q5();u();F0();N4();l();j0();E4=[y0];G5=v((Z)=>{let $=[],J=b(Z).includes("haiku"),Q=V(),X=b4();if(!J)$.push(G2);if(U())$.push(B0);if(a(Z))$.push(y0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&O4(Z))$.push(F1);if(X&&O4(Z)&&!f()&&Q0().showThinkingSummaries!==!0)$.push(b1),$.push(U1);let Y=CZ(Z);if(b4()&&Y)$.push(L1);let q=P4("tengu_tool_pear"),W=!q&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||C0("tengu_amber_json_tools",!1));if(X&&AZ(Z)&&q)$.push(K1);if(X&&W)$.push(P1);if(Q==="vertex"&&TZ(Z))$.push(a2);if(Q==="foundry")$.push(a2);if(X)$.push(O1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),_4=v((Z)=>{let $=G5(Z);if(V()==="bedrock")return $.filter((J)=>!o2.has(J));return $}),hZ=v((Z)=>{return G5(Z).filter((J)=>o2.has(J))})});import{execFile as fZ}from"child_process";function S4(Z){return new Promise(($)=>{fZ("security",["find-generic-password","-a",L2(),"-w","-s",Z],{encoding:"utf-8",timeout:gZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function H9(){if(process.platform!=="darwin"||F2||g())return;let Z=S4(s(v4)),$=S4(s());F2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)I4(J.stdout);if(!Q.timedOut)x5={stdout:Q.stdout}})}async function w9(){if(F2)await F2}function y4(){return x5}function j5(){x5=null}var gZ=1e4,x5=null,F2=null;var T4=H(()=>{u();l2()});function B5(Z,$,J){return new Promise((Q,X)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q();return}let Y=setTimeout((W,G,B)=>{W?.removeEventListener("abort",G),B()},Z,$,q,Q);function q(){if(clearTimeout(Y),J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",q,{once:!0}),J?.unref)Y.unref()})}var C4=()=>{};function K9(){return A4}function h4(){A4.clear()}var A4;var f4=H(()=>{A4=new Map});var M$={};m2(M$,{validateForceLoginOrg:()=>k$,saveOAuthTokensIfNeeded:()=>$8,saveApiKey:()=>k5,removeApiKey:()=>H$,refreshGcpCredentialsIfNeeded:()=>_5,refreshGcpAuth:()=>e4,refreshAwsAuth:()=>o4,refreshAndGetAwsCredentials:()=>z0,prefetchGcpCredentialsIfSafe:()=>x$,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>j$,prefetchApiKeyFromApiKeyHelperIfSafe:()=>Z$,isUsing3PServices:()=>O2,isTeamSubscriber:()=>N$,isTeamPremiumSubscriber:()=>w2,isProSubscriber:()=>V5,isOverageProvisioningAllowed:()=>K$,isOtelHeadersHelperFromProjectOrLocalSettings:()=>Y8,isMaxSubscriber:()=>H2,isGcpAuthRefreshFromProjectSettings:()=>E5,isEnterpriseSubscriber:()=>O$,isCustomApiKeyApproved:()=>R$,isConsumerSubscriber:()=>E$,isClaudeAISubscriber:()=>U,isAwsCredentialExportFromProjectSettings:()=>U5,isAwsAuthRefreshFromProjectSettings:()=>O5,isAnthropicAuthEnabled:()=>P0,is1PApiCustomer:()=>L$,hasProfileScope:()=>q0,hasOpusAccess:()=>D$,hasAnthropicApiKeyAuth:()=>aZ,handleOAuth401Error:()=>$5,getSubscriptionType:()=>M,getSubscriptionName:()=>Q8,getRateLimitTier:()=>J8,getOtelHeadersFromHelper:()=>U$,getOauthAccountInfo:()=>N2,getConfiguredApiKeyHelper:()=>o,getClaudeAIOAuthTokensAsync:()=>c0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>v0,getApiKeyHelperElapsedMs:()=>oZ,getApiKeyFromConfigOrMacOSKeychain:()=>U2,getApiKeyFromApiKeyHelperCached:()=>H5,getApiKeyFromApiKeyHelper:()=>a4,getAnthropicApiKeyWithSource:()=>n0,getAnthropicApiKey:()=>X0,getAccountInformation:()=>_$,clearOAuthTokenCache:()=>M5,clearGcpCredentialsCache:()=>G$,clearAwsCredentialsCache:()=>Y$,clearApiKeyHelperCache:()=>eZ,checkGcpCredentialsValid:()=>r4,checkAndRefreshOAuthTokenIfNeeded:()=>t0,calculateApiKeyHelperTTL:()=>s4});import{exec as i4}from"child_process";import{mkdir as tZ,stat as iZ}from"fs/promises";import{join as lZ}from"path";function D2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function P0(){if(g())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=O2(),J=(y()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,X;try{({source:X}=n0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{X="none"}let Y=X==="ANTHROPIC_API_KEY"||X==="apiKeyHelper";return!(Z||Q&&!D2()||Y&&!D2())}function v0(){if(g()){if(o())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(W2()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(o()&&!D2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(U0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function X0(){let{key:Z}=n0();return Z}function aZ(){try{let{key:Z,source:$}=n0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function n0(Z={}){let $=(()=>{let q=K();if(q?.transport!=="anthropic")return;let W=q.apiKey?.trim();return W&&W.length>0?W:void 0})();if(g()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(o())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:H5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=m4()?void 0:$;if(x2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let q=i2();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!O2()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!O2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&L().customApiKeyResponses?.approved?.includes(z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=i2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(o()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:H5(),source:"apiKeyHelper"}}let Y=U2();if(Y)return Y;return{key:null,source:"none"}}function o(){if(g())return E("flagSettings")?.apiKeyHelper;return(y()||{}).apiKeyHelper}function l4(){let Z=o();if(!Z)return!1;let $=E("projectSettings"),J=E("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function N5(){return(y()||{}).awsAuthRefresh}function O5(){let Z=N5();if(!Z)return!1;let $=E("projectSettings"),J=E("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function b5(){return(y()||{}).awsCredentialExport}function U5(){let Z=b5();if(!Z)return!1;let $=E("projectSettings"),J=E("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function s4(){let Z=process.env.CLAUDE_CODE_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return sZ}function oZ(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function a4(Z){if(!o())return null;let $=s4();if(S){if(Date.now()-S.timestamp<$)return S.value;if(!c)c={promise:g4(Z,!1,b0),startedAt:null};return S.value}if(c)return c.promise;return c={promise:g4(Z,!0,b0),startedAt:Date.now()},c.promise}async function g4(Z,$,J){try{let Q=await rZ(Z);if(J!==b0)return Q;if(Q!==null)S={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==b0)return" ";let X=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${X}`)),z(`Error getting API key from apiKeyHelper: ${X}`,{level:"error"}),!$&&S&&S.value!==" ")return S={...S,timestamp:Date.now()},S.value;return S={value:" ",timestamp:Date.now()}," "}finally{if(J===b0)c=null}}async function rZ(Z){let $=o();if(!$)return null;if(l4()){if(!d()&&!Z){let Y=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("apiKeyHelper invoked before trust check",Y),x("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await H0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let X=J.timedOut?"timed out":`exited ${J.exitCode}`,Y=J.stderr?.trim();throw Error(Y?`${X}: ${Y}`:X)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function H5(){return S?.value??null}function eZ(){b0++,S=null,c=null}function Z$(Z){if(l4()&&!d())return;a4(Z)}async function J$(){let Z=N5();if(!Z)return!1;if(O5()){if(!d()&&!f()){let J=Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsAuthRefresh invoked before trust check",J),x("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await s2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return o4(Z)}}function o4(Z){z("Running AWS auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=i4(Z,{timeout:Q$});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}async function X$(){let Z=b5();if(!Z)return null;if(U5()){if(!d()&&!f()){let J=Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("awsCredentialExport invoked before trust check",J),x("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await s2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await H0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=L5($.stdout.trim());if(!j1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=h.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function Y$(){z0.cache.clear()}function P5(){return(y()||{}).gcpAuthRefresh}function E5(){let Z=P5();if(!Z)return!1;let $=E("projectSettings"),J=E("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function r4(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=B5(q$).then(()=>{throw new q8("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function W$(){let Z=P5();if(!Z)return!1;if(E5()){if(!d()&&!f()){let J=Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("gcpAuthRefresh invoked before trust check",J),x("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await r4())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return e4(Z)}function e4(Z){z("Running GCP auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=i4(Z,{timeout:z$});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}function G$(){_5.cache.clear()}function x$(){if(!P5())return;if(E5()){if(!d()&&!f())return}_5()}function j$(){let Z=N5(),$=b5();if(!Z&&!$)return;if(O5()||U5()){if(!d()&&!f())return}z0(),j()}function B$(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function k5(Z){if(!B$(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await Z8();let $=!1;if(process.platform==="darwin")try{let Q=s(),X=L2(),Y=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${X}" -s "${Q}" -X "${Y}"
|
|
2
|
+
`;await H0("security",["-i"],{input:q,reject:!1}),x("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){D(Q),x("tengu_api_key_keychain_error",{error:p(Q)}),x("tengu_api_key_saved_to_config",{})}else x("tengu_api_key_saved_to_config",{});let J=z2(Z);C((Q)=>{let X=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:X.includes(J)?X:[...X,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),U2.cache.clear?.(),j5()}function R$(Z){let $=L(),J=z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function H$(){await Z8(),C((Z)=>({...Z,primaryApiKey:void 0})),U2.cache.clear?.(),j5()}async function Z8(){try{await G1()}catch(Z){D(Z)}}function $8(Z){if(!U0(Z.scopes))return x("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=b2(),J=$.name;try{let Q=$.read()||{},X=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??X?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??X?.rateLimitTier??null};let Y=$.update(Q);if(Y.success)x("tengu_oauth_tokens_saved",{storageBackend:J});else x("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),k4(),h4(),Y}catch(Q){return D(Q),x("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function M5(){w.cache?.clear?.(),O0()}async function w$(){try{let{mtimeMs:Z}=await iZ(lZ(F5(),".credentials.json"));if(Z!==u4)u4=Z,M5()}catch{w.cache?.clear?.()}}function $5(Z){let $=R5.get(Z);if($)return $;let J=F$(Z).finally(()=>{R5.delete(Z)});return R5.set(Z,J),J}async function F$(Z){M5();let $=await c0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("tengu_oauth_401_recovered_from_keychain",{}),!0;return t0(0,!0)}async function c0(){if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||W2())return w();try{let J=(await b2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return D(Z),null}}function t0(Z=0,$=!1){if(Z===0&&!$){if(p0)return p0;return p0=w5(Z,$).finally(()=>{p0=null}),p0}return w5(Z,$)}async function w5(Z,$){await w$();let Q=w();if(!$){if(!Q?.refreshToken||!m0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!U0(Q.scopes))return!1;w.cache?.clear?.(),O0();let X=await c0();if(!X?.refreshToken||!m0(X.expiresAt))return!1;let Y=F5();await tZ(Y,{recursive:!0});let q;try{x("tengu_oauth_token_refresh_lock_acquiring",{}),q=await d4(Y),x("tengu_oauth_token_refresh_lock_acquired",{})}catch(W){if(W.code==="ELOCKED"){if(Z<5)return x("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await B5(1000+Math.random()*1000),w5(Z+1,$);return x("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return D(W),x("tengu_oauth_token_refresh_lock_error",{error:p(W)}),!1}try{w.cache?.clear?.(),O0();let W=await c0();if(!W?.refreshToken||!m0(W.expiresAt))return x("tengu_oauth_token_refresh_race_resolved",{}),!1;x("tengu_oauth_token_refresh_starting",{});let G=await n4(W.refreshToken,{scopes:U0(W.scopes)?void 0:W.scopes});return $8(G),w.cache?.clear?.(),O0(),!0}catch(W){D(W),w.cache?.clear?.(),O0();let G=await c0();if(G&&!m0(G.expiresAt))return x("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{x("tengu_oauth_token_refresh_lock_releasing",{}),await q(),x("tengu_oauth_token_refresh_lock_released",{})}}function U(){if(!P0())return!1;return U0(w()?.scopes)}function q0(){return w()?.scopes?.includes(c4)??!1}function L$(){{let Z=K()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(U())return!1;return!0}function N2(){return P0()?L().oauthAccount:void 0}function K$(){let $=N2()?.billingType;if(!U()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function D$(){let Z=M();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function M(){if(r5())return o5();if(!P0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function H2(){return M()==="max"}function N$(){return M()==="team"}function w2(){return M()==="team"&&J8()==="default_claude_max_5x"}function O$(){return M()==="enterprise"}function V5(){return M()==="pro"}function J8(){if(!P0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function Q8(){switch(M()){case"enterprise":return"Claude Enterprise";case"team":return"Claude Team";case"max":return"Claude Max";case"pro":return"Claude Pro";default:return"Claude API"}}function O2(){let Z=K()?.transport;if(!Z)return!1;return Z!=="anthropic"}function X8(){return(y()||{}).otelHeadersHelper}function Y8(){let Z=X8();if(!Z)return!1;let $=E("projectSettings"),J=E("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function U$(){let Z=X8();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||b$.toString());if(K2&&Date.now()-p4<$)return K2;if(Y8()){if(!d())return{}}try{let J=K5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=L5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[X,Y]of Object.entries(Q))if(typeof Y!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${X}": ${typeof Y}`);return K2=Q,p4=Date.now(),K2}catch(J){throw D(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function P$(Z){return Z==="max"||Z==="pro"}function E$(){let Z=M();return U()&&Z!==null&&P$(Z)}function _$(){if(V()!=="firstParty")return;let{source:$}=v0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(U())J.subscription=Q8();else J.tokenSource=$;let{key:Q,source:X}=n0();if(Q)J.apiKeySource=X;if($==="claude.ai"||X==="/login managed key"){let q=N2()?.organizationName;if(q)J.organization=q}let Y=N2()?.emailAddress;if(($==="claude.ai"||X==="/login managed key")&&Y)J.email=Y;return J}async function k$(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!P0())return{valid:!0};let Z=E("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await t0();let $=w();if(!$)return{valid:!0};let{source:J}=v0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",X=await R0($.accessToken);if(!X)return{valid:!1,message:`Unable to verify organization for the current authentication token.
|
|
3
|
+
This machine requires organization ${Z} but the profile could not be fetched.
|
|
4
|
+
This may be a network error, or the token may lack the user:profile scope required for
|
|
5
|
+
verification (tokens from 'claude setup-token' do not include this scope).
|
|
6
|
+
Try again, or obtain a full-scope token via 'claude auth login'.`};let Y=X.organization.uuid;if(Y===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
|
|
7
|
+
different organization than required by this machine's managed settings.
|
|
8
|
+
|
|
9
|
+
Required organization: ${Z}
|
|
10
|
+
Token organization: ${Y}
|
|
11
|
+
|
|
12
|
+
Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${Y},
|
|
13
|
+
but this machine requires organization ${Z}.
|
|
14
|
+
|
|
15
|
+
Please log in with the correct organization: claude auth login`}}var sZ=300000,S=null,c=null,b0=0,$$=3600000,Q$=180000,z0,q$=5000,V$=3600000,z$=180000,_5,U2,w,u4=0,R5,p0=null,K2=null,p4=0,b$=1740000,q8;var n=H(()=>{pZ();z1();l0();I0();j2();Y2();l();J0();$0();e5();t4();n2();W1();x1();R1();w1();M4();i();Z0();u();q1();mZ();dZ();s0();cZ();nZ();T4();l2();j0();C4();uZ();f4();z0=D5(async()=>{let Z=await J$(),$=await X$();if(Z||$)await B1();return $},$$);_5=D5(async()=>{return await W$()},V$);U2=v(()=>{if(g())return null;if(process.platform==="darwin"){let $=y4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=s();try{let Q=K5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){D(Q)}}}let Z=L();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=v(()=>{if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=W2();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=b2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return D($),null}});R5=new Map;q8=class q8 extends Error{}});function U0(Z){return Boolean(Z?.includes(S5))}function S$(Z){return Z?.split(" ").filter(Boolean)??[]}function zQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:X,inferenceOnly:Y,orgUUID:q,loginHint:W,loginMethod:G}){let B=X?O().CLAUDE_AI_AUTHORIZE_URL:O().CONSOLE_AUTHORIZE_URL,R=new URL(B);R.searchParams.append("code","true"),R.searchParams.append("client_id",O().CLIENT_ID),R.searchParams.append("response_type","code"),R.searchParams.append("redirect_uri",Q?O().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=Y?[S5]:z8;if(R.searchParams.append("scope",W0.join(" ")),R.searchParams.append("code_challenge",Z),R.searchParams.append("code_challenge_method","S256"),R.searchParams.append("state",$),q)R.searchParams.append("orgUUID",q);if(W)R.searchParams.append("login_hint",W);if(G)R.searchParams.append("login_method",G);return R.toString()}async function GQ(Z,$,J,Q,X=!1,Y){let q={grant_type:"authorization_code",code:Z,redirect_uri:X?O().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:O().CLIENT_ID,code_verifier:J,state:$};if(Y!==void 0)q.expires_in=Y;let W=await P.post(O().TOKEN_URL,q,{headers:{"Content-Type":"application/json"},timeout:15000});if(W.status!==200)throw Error(W.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${W.status}): ${W.statusText}`);return x("tengu_oauth_token_exchange_success",{}),W.data}async function n4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:O().CLIENT_ID,scope:(($?.length)?$:W8).join(" ")};try{let Q=await P.post(O().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let X=Q.data,{access_token:Y,refresh_token:q=Z,expires_in:W}=X,G=Date.now()+W*1000,B=S$(X.scope);x("tengu_oauth_token_refresh_success",{});let R=L(),W0=w(),_=R.oauthAccount?.billingType!==void 0&&R.oauthAccount?.accountCreatedAt!==void 0&&R.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await v$(Y);if(_&&R.oauthAccount){let r={};if(_.displayName!==void 0)r.displayName=_.displayName;if(typeof _.hasExtraUsageEnabled==="boolean")r.hasExtraUsageEnabled=_.hasExtraUsageEnabled;if(_.billingType!==null)r.billingType=_.billingType;if(_.accountCreatedAt!==void 0)r.accountCreatedAt=_.accountCreatedAt;if(_.subscriptionCreatedAt!==void 0)r.subscriptionCreatedAt=_.subscriptionCreatedAt;if(Object.keys(r).length>0)C((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...r}:i0.oauthAccount}))}return{accessToken:Y,refreshToken:q,expiresAt:G,scopes:B,subscriptionType:_?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:_?.rateLimitTier??W0?.rateLimitTier??null,profile:_?.rawProfile,tokenAccount:X.account?{uuid:X.account.uuid,emailAddress:X.account.email_address,organizationUuid:X.organization?.uuid}:void 0}}catch(Q){let X=P.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("tengu_oauth_token_refresh_failure",{error:Q.message,...X&&{responseBody:X}}),Q}}async function xQ(Z){let $=await P.get(O().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!L().oauthAccount)throw Error("OAuth account information not found in config");C((X)=>({...X,oauthAccount:X.oauthAccount?{...X.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:X.oauthAccount})),x("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function jQ(Z){try{let $=await P.post(O().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await k5(J),x("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function m0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function v$(Z){let $=await R0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let X={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)X.displayName=$.account.display_name;if($?.account?.created_at)X.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)X.subscriptionCreatedAt=$.organization.subscription_created_at;return x("tengu_oauth_profile_fetch_success",{}),{...X,rawProfile:$}}async function BQ(){let $=L().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let X=(await R0(J))?.organization?.uuid;if(!X)return null;return X}async function RQ(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!L().oauthAccount)V8({accountUuid:Z,emailAddress:$,organizationUuid:J})}await t0();let X=L();if(X.oauthAccount&&X.oauthAccount.billingType!==void 0&&X.oauthAccount.accountCreatedAt!==void 0&&X.oauthAccount.subscriptionCreatedAt!==void 0||!U()||!q0())return!1;let Y=w();if(Y?.accessToken){let q=await R0(Y.accessToken);if(q){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return V8({accountUuid:q.account.uuid,emailAddress:q.account.email,organizationUuid:q.organization.uuid,displayName:q.account.display_name||void 0,hasExtraUsageEnabled:q.organization.has_extra_usage_enabled??!1,billingType:q.organization.billing_type??void 0,accountCreatedAt:q.account.created_at,subscriptionCreatedAt:q.organization.subscription_created_at??void 0}),!0}}return!1}function V8({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:q,subscriptionCreatedAt:W}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:q,subscriptionCreatedAt:W};if(Q)G.displayName=Q;C((B)=>{if(B.oauthAccount?.accountUuid===G.accountUuid&&B.oauthAccount?.emailAddress===G.emailAddress&&B.oauthAccount?.organizationUuid===G.organizationUuid&&B.oauthAccount?.displayName===G.displayName&&B.oauthAccount?.hasExtraUsageEnabled===G.hasExtraUsageEnabled&&B.oauthAccount?.billingType===G.billingType&&B.oauthAccount?.accountCreatedAt===G.accountCreatedAt&&B.oauthAccount?.subscriptionCreatedAt===G.subscriptionCreatedAt)return B;return{...B,oauthAccount:G}})}var t4=H(()=>{q2();j2();I0();n();i();Z0();n2()});
|
|
16
|
+
export{H9 as d1,w9 as e1,T4 as f1,v5 as g1,I5 as h1,g$ as i1,u$ as j1,x8 as k1,R8 as l1,p$ as m1,A5 as n1,a0 as o1,o0 as p1,G0 as q1,f2 as r1,d2 as s1,N8 as t1,k0 as u1,V as v1,e$ as w1,ZJ as x1,$J as y1,JJ as z1,l as A1,j as B1,xJ as C1,Y2 as D1,wJ as E1,FJ as F1,a5 as G1,NJ as H1,OJ as I1,e5 as J1,MJ as K1,R0 as L1,n2 as M1,U0 as N1,S$ as O1,zQ as P1,GQ as Q1,n4 as R1,xQ as S1,jQ as T1,m0 as U1,v$ as V1,BQ as W1,RQ as X1,V8 as Y1,t4 as Z1,hJ as _1,T8 as $1,Z1 as a2,W1 as b2,z2 as c2,x1 as d2,cJ as e2,R1 as f2,T as g2,w1 as h2,y0 as i2,L1 as j2,K1 as k2,iJ as l2,lJ as m2,O1 as n2,sJ as o2,aJ as p2,b1 as q2,oJ as r2,rJ as s2,eJ as t2,r2 as u2,A as v2,v1 as w2,f8 as x2,w3 as y2,F3 as z2,L3 as A2,I1 as B2,K3 as C2,D3 as D2,g8 as E2,N3 as F2,O3 as G2,b3 as H2,U3 as I2,P3 as J2,m8 as K2,E3 as L2,_3 as M2,k3 as N2,M3 as O2,A1 as P2,f0 as Q2,n8 as R2,i8 as S2,l8 as T2,J5 as U2,$Z as V2,A3 as W2,p1 as X2,m1 as Y2,JZ as Z2,Q5 as _2,n1 as $2,t1 as a3,V7 as b3,W7 as c3,X5 as d3,z7 as e3,zZ as f3,D0 as g3,g0 as h3,$4 as i3,G7 as j3,A0 as k3,J4 as l3,N as m3,b as n3,GZ as o3,x7 as p3,i1 as q3,h0 as r3,j7 as s3,Q4 as t3,X4 as u3,B7 as v3,I as w3,R7 as x3,BZ as y3,H7 as z3,w7 as A3,F7 as B3,L7 as C3,F0 as D3,D7 as E3,Y4 as F3,x4 as G3,bZ as H3,B4 as I3,h7 as J3,f7 as K3,g7 as L3,V0 as M3,a as N3,u7 as O3,vZ as P3,p7 as Q3,m7 as R3,q5 as S3,D4 as T3,N4 as U3,q9 as V3,AZ as W3,V9 as X3,W9 as Y3,b4 as Z3,z9 as _3,_4 as $3,hZ as a4,G9 as b4,k4 as c4,M4 as d4,B5 as e4,C4 as f4,K9 as g4,h4,f4 as i4,P0 as j4,v0 as k4,X0 as l4,aZ as m4,n0 as n4,o as o4,O5 as p4,U5 as q4,s4 as r4,oZ as s4,a4 as t4,H5 as u4,eZ as v4,Z$ as w4,o4 as x4,z0 as y4,Y$ as z4,E5 as A4,r4 as B4,e4 as C4,_5 as D4,G$ as E4,x$ as F4,j$ as G4,U2 as H4,k5 as I4,R$ as J4,H$ as K4,$8 as L4,w as M4,M5 as N4,$5 as O4,c0 as P4,t0 as Q4,U as R4,q0 as S4,L$ as T4,N2 as U4,K$ as V4,D$ as W4,M as X4,H2 as Y4,N$ as Z4,w2 as _4,O$ as $4,V5 as a5,J8 as b5,Q8 as c5,O2 as d5,Y8 as e5,U$ as f5,E$ as g5,_$ as h5,k$ as i5,M$ as j5,n as k5};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{En as Z,Jn as G}from"./cli-0.6.3-kz9egvgw.mjs";import{Pda as X,Xda as R}from"./cli-0.6.3-cz70v0dc.mjs";import{Yga as v,Zga as B,bha as A,fha as C,jha as M,tha as U,wha as O}from"./cli-0.6.3-tjykjtxh.mjs";import{wpa as b}from"./cli-0.6.3-qh59pqrb.mjs";import{randomBytes as L}from"crypto";import{readFile as N,rename as S,unlink as T,writeFile as _}from"fs/promises";import{join as E}from"path";function Y(){return E(Z(),j)}function k(q){let x=B(q);if(typeof x!=="object"||x===null||!("plugins"in x)||typeof x.plugins!=="object"||x.plugins===null)return{};let z=x.plugins,J={};for(let[Q,K]of Object.entries(z))if(K&&typeof K==="object"&&"flaggedAt"in K&&typeof K.flaggedAt==="string"){let $={flaggedAt:K.flaggedAt};if("seenAt"in K&&typeof K.seenAt==="string")$.seenAt=K.seenAt;J[Q]=$}return J}async function V(){try{let q=await N(Y(),{encoding:"utf-8"});return k(q)}catch{return{}}}async function W(q){let x=Y(),z=`${x}.${L(8).toString("hex")}.tmp`;try{await C().mkdir(Z());let J=v({plugins:q},null,2);await _(z,J,{encoding:"utf-8",mode:384}),await S(z,x),H=q}catch(J){X(J);try{await T(z)}catch{}}}async function o(){let q=await V(),x=Date.now(),z=!1;for(let[J,Q]of Object.entries(q))if(Q.seenAt&&x-new Date(Q.seenAt).getTime()>=f)delete q[J],z=!0;if(H=q,z)await W(q)}function c(){return H??{}}async function p(q){if(H===null)H=await V();let x={...H,[q]:{flaggedAt:new Date().toISOString()}};await W(x),U(`Flagged plugin: ${q}`)}async function d(q){if(H===null)H=await V();let x=new Date().toISOString(),z=!1,J={...H};for(let Q of q){let K=J[Q];if(K&&!K.seenAt)J[Q]={...K,seenAt:x},z=!0}if(z)await W(J)}async function g(q){if(H===null)H=await V();if(!(q in H))return;let{[q]:x,...z}=H;H=z,await W(z)}var j="flagged-plugins.json",f=172800000,H=null;var w=b(()=>{O();M();R();A();G()});
|
|
2
|
+
export{o as Tc,c as Uc,p as Vc,d as Wc,g as Xc,w as Yc};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{Dea as X,Hea as w,Iea as L,Jea as _}from"./cli-0.6.3-ymhjs7dc.mjs";import{rga as MD,tga as cD}from"./cli-0.6.3-ywk23cbf.mjs";import{$ga as jD,bha as rD,fha as ND,jha as aD,tha as x,wha as dD}from"./cli-0.6.3-tjykjtxh.mjs";import{Xha as zD,_ha as HD,iia as mD}from"./cli-0.6.3-vp1zy3b1.mjs";import{Nna as PD,Oja as UD}from"./cli-0.6.3-g7nc10fr.mjs";import{spa as LD,upa as bD,wpa as V,xpa as hD}from"./cli-0.6.3-qh59pqrb.mjs";var T=bD((Cu,S)=>{S.exports=()=>{return/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g}});var W=161,f=1114109,p,l=12288,g=65510,h,P=4352,c=262141,N;var m=V(()=>{p=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],h=[12288,12288,65281,65376,65504,65510],N=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141]});var K=(D,F)=>{let u=0,C=Math.floor(D.length/2)-1;while(u<=C){let E=Math.floor((u+C)/2),B=E*2;if(F<D[B])C=E-1;else if(F>D[B+1])u=E+1;else return!0}return!1};var r=()=>{};function kD(D){let F=D[0],u=D[1];for(let C=0;C<D.length;C+=2){let E=D[C],B=D[C+1];if(a>=E&&a<=B)return[E,B];if(B-E>u-F)F=E,u=B}return[F,u]}var a=19968,_D,yD,d=(D)=>{if(D<W||D>f)return!1;return K(p,D)},s=(D)=>{if(D<l||D>g)return!1;return K(h,D)},n=(D)=>{if(D>=_D&&D<=yD)return!0;if(D<P||D>c)return!1;return K(N,D)};var i=V(()=>{m();r();[_D,yD]=kD(N)});function RD(D){if(!Number.isSafeInteger(D))throw TypeError(`Expected a code point, got \`${typeof D}\`.`)}function v(D,{ambiguousAsWide:F=!1}={}){if(RD(D),s(D)||n(D)||F&&d(D))return 2;return 1}var o=V(()=>{i()});function G({onlyFirst:D=!1}={}){return new RegExp("(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]",D?void 0:"g")}var e=()=>{};function O(D){if(typeof D!=="string")throw TypeError(`Expected a \`string\`, got \`${typeof D}\``);if(!D.includes("\x1B")&&!D.includes(""))return D;return D.replace(wD,"")}var wD;var t=V(()=>{e();wD=G()});function BD(D){let F=0,u=D.replace(ID,()=>{return F++,""});return{count:F,stripped:u}}function AD(D){if(typeof D!=="string"||D.length===0)return 0;if(D.includes(ED)){let{count:C,stripped:E}=BD(D);return C+AD(E)}let F=!0;for(let C=0;C<D.length;C++){let E=D.charCodeAt(C);if(E>=127||E===27){F=!1;break}}if(F){let C=0;for(let E=0;E<D.length;E++)if(D.charCodeAt(E)>31)C++;return C}if(D.includes("\x1B")){if(D=O(D),D.length===0)return 0}if(!xD(D)){let C=0;for(let E of D){let B=E.codePointAt(0);if(!uD(B))C+=v(B,{ambiguousAsWide:!1})}return C}let u=0;for(let{segment:C}of X().segment(D)){if(DD.lastIndex=0,DD.test(C)){u+=SD(C);continue}for(let E of C){let B=E.codePointAt(0);if(!uD(B)){u+=v(B,{ambiguousAsWide:!1});break}}}return u}function xD(D){for(let F of D){let u=F.codePointAt(0);if(u>=127744&&u<=129791)return!0;if(u>=9728&&u<=10175)return!0;if(u>=127462&&u<=127487)return!0;if(u>=65024&&u<=65039)return!0;if(u===8205)return!0}return!1}function SD(D){let F=D.codePointAt(0);if(F>=127462&&F<=127487){let u=0;for(let C of D)u++;return u===1?1:2}if(D.length===2){if(D.codePointAt(1)===65039&&(F>=48&&F<=57||F===35||F===42))return 1}return 2}function uD(D){if(D>=32&&D<127)return!1;if(D>=160&&D<768)return D===173;if(D<=31||D>=127&&D<=159)return!0;if(D>=8203&&D<=8205||D===65279||D>=8288&&D<=8292)return!0;if(D>=65024&&D<=65039||D>=917760&&D<=917999)return!0;if(D>=768&&D<=879||D>=6832&&D<=6911||D>=7616&&D<=7679||D>=8400&&D<=8447||D>=65056&&D<=65071)return!0;if(D>=2304&&D<=3407){let F=D&127;if(F<=3)return!0;if(F>=58&&F<=79)return!0;if(F>=81&&F<=87)return!0;if(F>=98&&F<=99)return!0}if(D===3633||D>=3636&&D<=3642||D>=3655&&D<=3662||D===3761||D>=3764&&D<=3772||D>=3784&&D<=3789)return!0;if(D>=1536&&D<=1541||D===1757||D===1807||D===2274)return!0;if(D>=55296&&D<=57343)return!0;if(D>=917504&&D<=917631)return!0;return!1}var CD,DD,ED="\uDBFB\uDEEE",ID,b,FD,$;var QD=V(()=>{o();t();_();CD=LD(T(),1),DD=CD.default(),ID=/\u{10EEEE}\p{M}{0,3}/gu;b=typeof Bun<"u"&&typeof Bun.stringWidth==="function"?Bun.stringWidth:null,FD={ambiguousIsNarrow:!0},$=b?(D)=>{if(D.includes(ED)){let{count:F,stripped:u}=BD(D);return F+(u.length>0?b(u,FD):0)}return b(D,FD)}:AD});function TD(D,F){let u=D??"";if($(u)<=F)return u;if(F<=0)return"…";if(F<5)return U(u,F);let C=u.lastIndexOf("/"),E=C>=0?u.slice(C):u,B=C>=0?u.slice(0,C):"",A=$(E);if(A>=F-1)return y(D,F);let Q=F-1-A;if(Q<=0)return y(E,F);return VD(B,Q)+"…"+E}function U(D,F){let u=D??"";if($(u)<=F)return u;if(F<=1)return"…";let C=0,E="";for(let{segment:B}of X().segment(u)){let A=$(B);if(C+A>F-1)break;E+=B,C+=A}return E+"…"}function y(D,F){let u=D??"";if($(u)<=F)return u;if(F<=1)return"…";let C=[...X().segment(u)],E=0,B=C.length;for(let A=C.length-1;A>=0;A--){let Q=$(C[A].segment);if(E+Q>F-1)break;E+=Q,B=A}return"…"+C.slice(B).map((A)=>A.segment).join("")}function VD(D,F){let u=D??"";if($(u)<=F)return u;if(F<=0)return"";let C=0,E="";for(let{segment:B}of X().segment(u)){let A=$(B);if(C+A>F)break;E+=B,C+=A}return E}function WD(D,F,u=!1){let C=D??"";if(C==="")return"";let E=C;if(u){let B=C.indexOf(`
|
|
2
|
+
`);if(B!==-1){if(E=C.substring(0,B),$(E)+1>F)return U(E,F);return`${E}…`}}if($(E)<=F)return E;return U(E,F)}var $D=V(()=>{QD();_()});function M(D){let F=D/1024;if(F<1)return`${D} bytes`;if(F<1024)return`${F.toFixed(1).replace(/\.0$/,"")}KB`;let u=F/1024;if(u<1024)return`${u.toFixed(1).replace(/\.0$/,"")}MB`;return`${(u/1024).toFixed(1).replace(/\.0$/,"")}GB`}function wu(D){return`${(D/1000).toFixed(1)}s`}function Lu(D,F){if(D<60000){if(D===0)return"0s";if(D<1)return`${(D/1000).toFixed(1)}s`;return`${Math.floor(D/1000).toString()}s`}let u=Math.floor(D/86400000),C=Math.floor(D%86400000/3600000),E=Math.floor(D%3600000/60000),B=Math.round(D%60000/1000);if(B===60)B=0,E++;if(E===60)E=0,C++;if(C===24)C=0,u++;let A=F?.hideTrailingZeros;if(F?.mostSignificantOnly){if(u>0)return`${u}d`;if(C>0)return`${C}h`;if(E>0)return`${E}m`;return`${B}s`}if(u>0){if(A&&C===0&&E===0)return`${u}d`;if(A&&E===0)return`${u}d ${C}h`;return`${u}d ${C}h ${E}m`}if(C>0){if(A&&E===0&&B===0)return`${C}h`;if(A&&B===0)return`${C}h ${E}m`;return`${C}h ${E}m ${B}s`}if(E>0){if(A&&B===0)return`${E}m`;return`${E}m ${B}s`}return`${B}s`}function pD(D){let F=D>=1000;return fD(F).format(D).toLowerCase()}function Iu(D){return pD(D).replace(".0","")}function qD(D,F={}){let{style:u="narrow",numeric:C="always",now:E=new Date}=F,B=D.getTime()-E.getTime(),A=Math.trunc(B/1000),Q=[{unit:"year",seconds:31536000,shortUnit:"y"},{unit:"month",seconds:2592000,shortUnit:"mo"},{unit:"week",seconds:604800,shortUnit:"w"},{unit:"day",seconds:86400,shortUnit:"d"},{unit:"hour",seconds:3600,shortUnit:"h"},{unit:"minute",seconds:60,shortUnit:"m"},{unit:"second",seconds:1,shortUnit:"s"}];for(let{unit:q,seconds:Y,shortUnit:j}of Q)if(Math.abs(A)>=Y){let J=Math.trunc(A/Y);if(u==="narrow")return A<0?`${Math.abs(J)}${j} ago`:`in ${J}${j}`;return w("long",C).format(J,q)}if(u==="narrow")return A<=0?"0s ago":"in 0s";return w(u,C).format(0,"second")}function lD(D,F={}){let{now:u=new Date,...C}=F;if(D>u)return qD(D,{...C,now:u});return qD(D,{...C,numeric:"always",now:u})}function xu(D){let F=D.fileSize!==void 0?M(D.fileSize):`${D.messageCount} messages`,u=[lD(D.modified,{style:"short"}),...D.gitBranch?[D.gitBranch]:[],F];if(D.tag)u.push(`#${D.tag}`);if(D.agentSetting)u.push(`@${D.agentSetting}`);if(D.prNumber)u.push(D.prRepository?`${D.prRepository}#${D.prNumber}`:`#${D.prNumber}`);return u.join(" · ")}function gD(D,F=!1,u=!0){if(!D)return;let C=new Date(D*1000),E=new Date,B=C.getMinutes();if((C.getTime()-E.getTime())/3600000>24){let q={month:"short",day:"numeric",hour:u?"numeric":void 0,minute:!u||B===0?void 0:"2-digit",hour12:u?!0:void 0};if(C.getFullYear()!==E.getFullYear())q.year="numeric";return C.toLocaleString("en-US",q).replace(/ ([AP]M)/i,(j,J)=>J.toLowerCase())+(F?` (${L()})`:"")}return C.toLocaleTimeString("en-US",{hour:"numeric",minute:B===0?void 0:"2-digit",hour12:!0}).replace(/ ([AP]M)/i,(q,Y)=>Y.toLowerCase())+(F?` (${L()})`:"")}function Su(D,F=!1,u=!0){let C=new Date(D);return`${gD(Math.floor(C.getTime()/1000),F,u)}`}var k=null,R=null,fD=(D)=>{if(D){if(!k)k=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:1});return k}else{if(!R)R=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1,minimumFractionDigits:0});return R}};var XD=V(()=>{_();$D()});function H(){if(!I)I=hD("perf_hooks").performance;return I}function z(D){return D.toFixed(3)}function YD(D,F,u,C,E,B,A=""){let Q=C?` | RSS: ${M(C.rss)}, Heap: ${M(C.heapUsed)}`:"";return`[+${z(D).padStart(E)}ms] (+${z(F).padStart(B)}ms) ${u}${A}${Q}`}var I=null;var JD=V(()=>{XD()});import{dirname as sD,join as nD}from"path";function eD(D){if(!GD)return;if(H().mark(D),Z)OD.push(process.memoryUsage())}function ZD(){if(!Z)return"Startup profiling not enabled";let F=H().getEntriesByType("mark");if(F.length===0)return"No profiling checkpoints recorded";let u=[];u.push("=".repeat(80)),u.push("STARTUP PROFILING REPORT"),u.push("=".repeat(80)),u.push("");let C=0;for(let[B,A]of F.entries())u.push(YD(A.startTime,A.startTime-C,A.name,OD[B],8,7)),C=A.startTime;let E=F[F.length-1];return u.push(""),u.push(`Total startup time: ${z(E?.startTime??0)}ms`),u.push("=".repeat(80)),u.join(`
|
|
3
|
+
`)}function tD(){if(KD)return;if(KD=!0,uu(),Z){let D=Du(),F=sD(D);ND().mkdirSync(F),jD(D,ZD(),{encoding:"utf8",flush:!0}),x("Startup profiling report:"),x(ZD())}}function du(){return Z}function Du(){return nD(zD(),"startup-perf",`${UD()}.txt`)}function uu(){if(!vD)return;let F=H().getEntriesByType("mark");if(F.length===0)return;let u=new Map;for(let E of F)u.set(E.name,E.startTime);let C={};for(let[E,[B,A]]of Object.entries(oD)){let Q=u.get(B),q=u.get(A);if(Q!==void 0&&q!==void 0)C[`${E}_ms`]=Math.round(q-Q)}C.checkpoint_count=F.length,MD("tengu_startup_perf",C)}var Z,iD=0.005,vD,GD,OD,oD,KD=!1;var Fu=V(()=>{PD();cD();dD();mD();aD();JD();rD();Z=HD(process.env.CLAUDE_CODE_PROFILE_STARTUP),vD=Math.random()<iD,GD=Z||vD,OD=[],oD={import_time:["cli_entry","main_tsx_imports_loaded"],init_time:["init_function_start","init_function_end"],settings_time:["eagerLoadSettings_start","eagerLoadSettings_end"],total_time:["cli_entry","main_after_run"]};if(GD)eD("profiler_initialized"),process.on("exit",()=>{try{tD()}catch{}})});
|
|
4
|
+
export{v as Yda,o as Zda,O as _da,t as $da,$ as aea,QD as bea,TD as cea,U as dea,y as eea,VD as fea,WD as gea,$D as hea,M as iea,wu as jea,Lu as kea,pD as lea,Iu as mea,qD as nea,lD as oea,xu as pea,gD as qea,Su as rea,XD as sea,H as tea,z as uea,YD as vea,JD as wea,eD as xea,tD as yea,du as zea,Du as Aea,uu as Bea,Fu as Cea};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{wpa as cH}from"./cli-0.6.3-qh59pqrb.mjs";import{createRequire as lH}from"module";function NC(H,C){if(typeof H=="function")C=H,H={};return this.ondata=C,H}function HJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[IC],function(K){return YC(cC(K.data[0],K.data[1]))},0,J)}function cC(H,C){return RC(H,C||{},0,0)}function rH(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC],function(K){return YC(vC(K.data[0],YH(K.data[1])))},1,J)}function vC(H,C){return zC(H,{i:2},C&&C.out,C&&C.dictionary)}function EJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[IC,vH,function(){return[LH]}],function(K){return YC(LH(K.data[0],K.data[1]))},2,J)}function LH(H,C){if(!C)C={};var J=TC(),K=H.length;J.p(H);var Q=RC(H,C,NH(C),8),V=Q.length;return $H(Q,C),g(Q,V-8,J.d()),g(Q,V-4,K),Q}function KJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC,kH,function(){return[JH]}],function(K){return YC(JH(K.data[0],K.data[1]))},3,J)}function JH(H,C){var J=RH(H);if(J+8>H.length)B(6,"invalid gzip data");return zC(H.subarray(J,-8),{i:2},C&&C.out||new Z(mH(H)),C&&C.dictionary)}function BJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[IC,hH,function(){return[PH]}],function(K){return YC(PH(K.data[0],K.data[1]))},4,J)}function PH(H,C){if(!C)C={};var J=aC();J.p(H);var K=RC(H,C,C.dictionary?6:2,4);return EH(K,C),g(K,K.length-4,J.d()),K}function VJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC,_H,function(){return[QH]}],function(K){return YC(QH(K.data[0],YH(K.data[1])))},5,J)}function QH(H,C){return zC(H.subarray(WH(H,C&&C.dictionary),-4),{i:2},C&&C.out,C&&C.dictionary)}function qJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return H[0]==31&&H[1]==139&&H[2]==8?KJ(H,C,J):(H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31?rH(H,C,J):VJ(H,C,J)}function OJ(H,C){return H[0]==31&&H[1]==139&&H[2]==8?JH(H,C):(H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31?vC(H,C):QH(H,C)}function $C(H,C){if(C){var J=new Z(H.length);for(var K=0;K<H.length;++K)J[K]=H.charCodeAt(K);return J}if(GH)return GH.encode(H);var Q=H.length,V=new Z(H.length+(H.length>>1)),X=0,Y=function(R){V[X++]=R};for(var K=0;K<Q;++K){if(X+5>V.length){var E=new Z(X+8+(Q-K<<1));E.set(V),V=E}var $=H.charCodeAt(K);if($<128||C)Y($);else if($<2048)Y(192|$>>6),Y(128|$&63);else if($>55295&&$<57344)$=65536+($&1047552)|H.charCodeAt(++K)&1023,Y(240|$>>18),Y(128|$>>12&63),Y(128|$>>6&63),Y(128|$&63);else Y(224|$>>12),Y(128|$>>6&63),Y(128|$&63)}return d(V,0,X)}function nH(H,C){if(C){var J="";for(var K=0;K<H.length;K+=16384)J+=String.fromCharCode.apply(null,H.subarray(K,K+16384));return J}else if(VH)return VH.decode(H);else{var Q=oH(H),V=Q.s,J=Q.r;if(J.length)B(8);return V}}function TJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);var K={};BH(H,"",K,C);var Q=Object.keys(K),V=Q.length,X=0,Y=0,E=V,$=Array(V),R=[],N=function(){for(var F=0;F<R.length;++F)R[F]()},W=function(F,P){eC(function(){J(F,P)})};eC(function(){W=J});var T=function(){var F=new Z(Y+22),P=X,U=Y-X;Y=0;for(var j=0;j<E;++j){var O=$[j];try{var x=O.c.length;MC(F,Y,O,O.f,O.u,x);var z=30+O.f.length+XC(O.extra),A=Y+z;F.set(O.c,A),MC(F,X,O,O.f,O.u,x,Y,O.m),X+=16+z+(O.m?O.m.length:0),Y=A+x}catch(L){return W(L,null)}}FH(F,X,$.length,U,P),W(null,F)};if(!V)T();var M=function(F){var P=Q[F],U=K[P],j=U[0],O=U[1],x=TC(),z=j.length;x.p(j);var A=$C(P),L=A.length,q=O.comment,y=q&&$C(q),S=y&&y.length,v=XC(O.extra),r=O.level==0?0:8,h=function(m,w){if(m)N(),W(m,null);else{var D=w.length;if($[F]=yC(O,{size:z,crc:x.d(),c:w,f:A,m:y,u:L!=P.length||y&&q.length!=S,compression:r}),X+=30+L+v+D,Y+=76+2*(L+v)+(S||0)+D,!--V)T()}};if(L>65535)h(B(11,0,1),null);if(!r)h(null,j);else if(z<160000)try{h(null,cC(j,O))}catch(m){h(m,null)}else R.push(HJ(j,O,h))};for(var G=0;G<E;++G)M(G);return N}function ZJ(H,C){if(!C)C={};var J={},K=[];BH(H,"",J,C);var Q=0,V=0;for(var X in J){var Y=J[X],E=Y[0],$=Y[1],R=$.level==0?0:8,N=$C(X),W=N.length,T=$.comment,M=T&&$C(T),G=M&&M.length,F=XC($.extra);if(W>65535)B(11);var P=R?cC(E,$):E,U=P.length,j=TC();j.p(E),K.push(yC($,{size:E.length,crc:j.d(),c:P,f:N,m:M,u:W!=X.length||M&&T.length!=G,o:Q,compression:R})),Q+=30+W+F+U,V+=76+2*(W+F)+(G||0)+U}var O=new Z(V+22),x=Q,z=V-Q;for(var A=0;A<K.length;++A){var N=K[A];MC(O,N.o,N,N.f,N.u,N.c.length);var L=30+N.f.length+XC(N.extra);O.set(N.c,N.o+L),MC(O,Q,N,N.f,N.u,N.c.length,N.o,N.m),Q+=16+L+(N.m?N.m.length:0)}return FH(O,Q,K.length,z,x),O}function DJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);var K=[],Q=function(){for(var F=0;F<K.length;++F)K[F]()},V={},X=function(F,P){eC(function(){J(F,P)})};eC(function(){X=J});var Y=H.length-22;for(;k(H,Y)!=101010256;--Y)if(!Y||H.length-Y>65558)return X(B(13,0,1),null),Q;var E=b(H,Y+8);if(E){var $=E,R=k(H,Y+16),N=k(H,Y-20)==117853008;if(N){var W=k(H,Y-12);if(N=k(H,W)==101075792,N)$=E=k(H,W+32),R=k(H,W+48)}var T=C&&C.filter,M=function(F){var P=fH(H,R,N),U=P[0],j=P[1],O=P[2],x=P[3],z=P[4],A=P[5],L=eH(H,A);R=z;var q=function(S,v){if(S)Q(),X(S,null);else{if(v)V[x]=v;if(!--E)X(null,V)}};if(!T||T({name:x,size:j,originalSize:O,compression:U}))if(!U)q(null,d(H,L,L+j));else if(U==8){var y=H.subarray(L,L+j);if(O<524288||j>0.8*O)try{q(null,vC(y,{out:new Z(O)}))}catch(S){q(S,null)}else K.push(rH(y,{size:O},q))}else q(B(14,"unknown compression type "+U,1),null);else q(null,null)};for(var G=0;G<$;++G)M(G)}else X(null,{});return Q}function SJ(H,C){var J={},K=H.length-22;for(;k(H,K)!=101010256;--K)if(!K||H.length-K>65558)B(13);var Q=b(H,K+8);if(!Q)return{};var V=k(H,K+16),X=k(H,K-20)==117853008;if(X){var Y=k(H,K-12);if(X=k(H,Y)==101075792,X)Q=k(H,Y+32),V=k(H,Y+48)}var E=C&&C.filter;for(var $=0;$<Q;++$){var R=fH(H,V,X),N=R[0],W=R[1],T=R[2],M=R[3],G=R[4],F=R[5],P=eH(H,F);if(V=G,!E||E({name:M,size:W,originalSize:T,compression:N}))if(!N)J[M]=d(H,P,P+W);else if(N==8)J[M]=vC(H.subarray(P,P+W),{out:new Z(T)});else B(14,"unknown compression type "+N)}return J}var dH,OC,mC,iC,iH=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global",sH,Z,e,wC,PC,jC,gC,TH=function(H,C){var J=new e(31);for(var K=0;K<31;++K)J[K]=C+=1<<H[K-1];var Q=new wC(J[30]);for(var K=1;K<30;++K)for(var V=J[K];V<J[K+1];++V)Q[V]=V-J[K]<<5|K;return{b:J,r:Q}},OC,XH,oC,ZH,IH,sC,xC,HC,I,l=function(H,C,J){var K=H.length,Q=0,V=new e(C);for(;Q<K;++Q)if(H[Q])++V[H[Q]-1];var X=new e(C);for(Q=1;Q<C;++Q)X[Q]=X[Q-1]+V[Q-1]<<1;var Y;if(J){Y=new e(1<<C);var E=15-C;for(Q=0;Q<K;++Q)if(H[Q]){var $=Q<<4|H[Q],R=C-H[Q],N=X[H[Q]-1]++<<R;for(var W=N|(1<<R)-1;N<=W;++N)Y[xC[N]>>E]=$}}else{Y=new e(K);for(Q=0;Q<K;++Q)if(H[Q])Y[Q]=xC[X[H[Q]-1]++]>>15-H[Q]}return Y},QC,I,I,I,I,LC,I,UH,AH,DH,SH,uC=function(H){var C=H[0];for(var J=1;J<H.length;++J)if(H[J]>C)C=H[J];return C},c=function(H,C,J){var K=C/8|0;return(H[K]|H[K+1]<<8)>>(C&7)&J},rC=function(H,C){var J=C/8|0;return(H[J]|H[J+1]<<8|H[J+2]<<16)>>(C&7)},GC=function(H){return(H+7)/8|0},d=function(H,C,J){if(C==null||C<0)C=0;if(J==null||J>H.length)J=H.length;return new Z(H.subarray(C,J))},RJ,gH,B=function(H,C,J){var K=Error(C||gH[H]);if(K.code=H,Error.captureStackTrace)Error.captureStackTrace(K,B);if(!J)throw K;return K},zC=function(H,C,J,K){var Q=H.length,V=K?K.length:0;if(!Q||C.f&&!C.l)return J||new Z(0);var X=!J,Y=X||C.i!=2,E=C.i;if(X)J=new Z(Q*3);var $=function(DC){var SC=J.length;if(DC>SC){var BC=new Z(Math.max(SC*2,DC));BC.set(J),J=BC}},R=C.f||0,N=C.p||0,W=C.b||0,T=C.l,M=C.d,G=C.m,F=C.n,P=Q*8;do{if(!T){R=c(H,N,1);var U=c(H,N+1,3);if(N+=3,!U){var j=GC(N)+4,O=H[j-4]|H[j-3]<<8,x=j+O;if(x>Q){if(E)B(0);break}if(Y)$(W+O);J.set(H.subarray(j,x),W),C.b=W+=O,C.p=N=x*8,C.f=R;continue}else if(U==1)T=AH,M=SH,G=9,F=5;else if(U==2){var z=c(H,N,31)+257,A=c(H,N+10,15)+4,L=z+c(H,N+5,31)+1;N+=14;var q=new Z(L),y=new Z(19);for(var S=0;S<A;++S)y[gC[S]]=c(H,N+S*3,7);N+=A*3;var v=uC(y),r=(1<<v)-1,h=l(y,v,1);for(var S=0;S<L;){var m=h[c(H,N,r)];N+=m&15;var j=m>>4;if(j<16)q[S++]=j;else{var w=0,D=0;if(j==16)D=3+c(H,N,3),N+=2,w=q[S-1];else if(j==17)D=3+c(H,N,7),N+=3;else if(j==18)D=11+c(H,N,127),N+=7;while(D--)q[S++]=w}}var p=q.subarray(0,z),u=q.subarray(z);G=uC(p),F=uC(u),T=l(p,G,1),M=l(u,F,1)}else B(1);if(N>P){if(E)B(0);break}}if(Y)$(W+131072);var VC=(1<<G)-1,f=(1<<F)-1,s=N;for(;;s=N){var w=T[rC(H,N)&VC],o=w>>4;if(N+=w&15,N>P){if(E)B(0);break}if(!w)B(2);if(o<256)J[W++]=o;else if(o==256){s=N,T=null;break}else{var n=o-254;if(o>264){var S=o-257,_=PC[S];n=c(H,N,(1<<_)-1)+XH[S],N+=_}var CC=M[rC(H,N)&f],EC=CC>>4;if(!CC)B(3);N+=CC&15;var u=IH[EC];if(EC>3){var _=jC[EC];u+=rC(H,N)&(1<<_)-1,N+=_}if(N>P){if(E)B(0);break}if(Y)$(W+131072);var WC=W+n;if(W<u){var kC=V-u,hC=Math.min(u,WC);if(kC+W<0)B(3);for(;W<hC;++W)J[W]=K[kC+W]}for(;W<WC;++W)J[W]=J[W-u]}}if(C.l=T,C.p=s,C.b=W,C.f=R,T)R=1,C.m=G,C.d=M,C.n=F}while(!R);return W!=J.length&&X?d(J,0,W):J.subarray(0,W)},JC=function(H,C,J){J<<=C&7;var K=C/8|0;H[K]|=J,H[K+1]|=J>>8},FC=function(H,C,J){J<<=C&7;var K=C/8|0;H[K]|=J,H[K+1]|=J>>8,H[K+2]|=J>>16},pC=function(H,C){var J=[];for(var K=0;K<H.length;++K)if(H[K])J.push({s:K,f:H[K]});var Q=J.length,V=J.slice();if(!Q)return{t:KC,l:0};if(Q==1){var X=new Z(J[0].s+1);return X[J[0].s]=1,{t:X,l:1}}J.sort(function(x,z){return x.f-z.f}),J.push({s:-1,f:25001});var Y=J[0],E=J[1],$=0,R=1,N=2;J[0]={s:-1,f:Y.f+E.f,l:Y,r:E};while(R!=Q-1)Y=J[J[$].f<J[N].f?$++:N++],E=J[$!=R&&J[$].f<J[N].f?$++:N++],J[R++]={s:-1,f:Y.f+E.f,l:Y,r:E};var W=V[0].s;for(var K=1;K<Q;++K)if(V[K].s>W)W=V[K].s;var T=new e(W+1),M=nC(J[R-1],T,0);if(M>C){var K=0,G=0,F=M-C,P=1<<F;V.sort(function(z,A){return T[A.s]-T[z.s]||z.f-A.f});for(;K<Q;++K){var U=V[K].s;if(T[U]>C)G+=P-(1<<M-T[U]),T[U]=C;else break}G>>=F;while(G>0){var j=V[K].s;if(T[j]<C)G-=1<<C-T[j]++-1;else++K}for(;K>=0&&G;--K){var O=V[K].s;if(T[O]==C)--T[O],++G}M=C}return{t:new Z(T),l:M}},nC=function(H,C,J){return H.s==-1?Math.max(nC(H.l,C,J+1),nC(H.r,C,J+1)):C[H.s]=J},tC=function(H){var C=H.length;while(C&&!H[--C]);var J=new e(++C),K=0,Q=H[0],V=1,X=function(E){J[K++]=E};for(var Y=1;Y<=C;++Y)if(H[Y]==Q&&Y!=C)++V;else{if(!Q&&V>2){for(;V>138;V-=138)X(32754);if(V>2)X(V>10?V-11<<5|28690:V-3<<5|12305),V=0}else if(V>3){X(Q),--V;for(;V>6;V-=6)X(8304);if(V>2)X(V-3<<5|8208),V=0}while(V--)X(Q);V=1,Q=H[Y]}return{c:J.subarray(0,K),n:C}},qC=function(H,C){var J=0;for(var K=0;K<C.length;++K)J+=H[K]*C[K];return J},fC=function(H,C,J){var K=J.length,Q=GC(C+2);H[Q]=K&255,H[Q+1]=K>>8,H[Q+2]=H[Q]^255,H[Q+3]=H[Q+1]^255;for(var V=0;V<K;++V)H[Q+V+4]=J[V];return(Q+4+K)*8},CH=function(H,C,J,K,Q,V,X,Y,E,$,R){JC(C,R++,J),++Q[256];var N=pC(Q,15),W=N.t,T=N.l,M=pC(V,15),G=M.t,F=M.l,P=tC(W),U=P.c,j=P.n,O=tC(G),x=O.c,z=O.n,A=new e(19);for(var L=0;L<U.length;++L)++A[U[L]&31];for(var L=0;L<x.length;++L)++A[x[L]&31];var q=pC(A,7),y=q.t,S=q.l,v=19;for(;v>4&&!y[gC[v-1]];--v);var r=$+5<<3,h=qC(Q,QC)+qC(V,LC)+X,m=qC(Q,W)+qC(V,G)+X+14+3*v+qC(A,y)+2*A[16]+3*A[17]+7*A[18];if(E>=0&&r<=h&&r<=m)return fC(C,R,H.subarray(E,E+$));var w,D,p,u;if(JC(C,R,1+(m<h)),R+=2,m<h){w=l(W,T,0),D=W,p=l(G,F,0),u=G;var VC=l(y,S,0);JC(C,R,j-257),JC(C,R+5,z-1),JC(C,R+10,v-4),R+=14;for(var L=0;L<v;++L)JC(C,R+3*L,y[gC[L]]);R+=3*v;var f=[U,x];for(var s=0;s<2;++s){var o=f[s];for(var L=0;L<o.length;++L){var n=o[L]&31;if(JC(C,R,VC[n]),R+=y[n],n>15)JC(C,R,o[L]>>5&127),R+=o[L]>>12}}}else w=UH,D=QC,p=DH,u=LC;for(var L=0;L<Y;++L){var _=K[L];if(_>255){var n=_>>18&31;if(FC(C,R,w[n+257]),R+=D[n+257],n>7)JC(C,R,_>>23&31),R+=PC[n];var CC=_&31;if(FC(C,R,p[CC]),R+=u[CC],CC>3)FC(C,R,_>>5&8191),R+=jC[CC]}else FC(C,R,w[_]),R+=D[_]}return FC(C,R,w[256]),R+D[256]},xH,KC,wH=function(H,C,J,K,Q,V){var X=V.z||H.length,Y=new Z(K+X+5*(1+Math.ceil(X/7000))+Q),E=Y.subarray(K,Y.length-Q),$=V.l,R=(V.r||0)&7;if(C){if(R)E[0]=V.r>>3;var N=xH[C-1],W=N>>13,T=N&8191,M=(1<<J)-1,G=V.p||new e(32768),F=V.h||new e(M+1),P=Math.ceil(J/3),U=2*P,j=function(lC){return(H[lC]^H[lC+1]<<P^H[lC+2]<<U)&M},O=new wC(25000),x=new e(288),z=new e(32),A=0,L=0,q=V.i||0,y=0,S=V.w||0,v=0;for(;q+2<X;++q){var r=j(q),h=q&32767,m=F[r];if(G[h]=m,F[r]=h,S<=q){var w=X-q;if((A>7000||y>24576)&&(w>423||!$)){R=CH(H,E,0,O,x,z,L,y,v,q-v,R),y=A=L=0,v=q;for(var D=0;D<286;++D)x[D]=0;for(var D=0;D<30;++D)z[D]=0}var p=2,u=0,VC=T,f=h-m&32767;if(w>2&&r==j(q-f)){var s=Math.min(W,w)-1,o=Math.min(32767,q),n=Math.min(258,w);while(f<=o&&--VC&&h!=m){if(H[q+p]==H[q+p-f]){var _=0;for(;_<n&&H[q+_]==H[q+_-f];++_);if(_>p){if(p=_,u=f,_>s)break;var CC=Math.min(f,_-2),EC=0;for(var D=0;D<CC;++D){var WC=q-f+D&32767,kC=G[WC],hC=WC-kC&32767;if(hC>EC)EC=hC,m=WC}}}h=m,m=G[h],f+=h-m&32767}}if(u){O[y++]=268435456|oC[p]<<18|sC[u];var DC=oC[p]&31,SC=sC[u]&31;L+=PC[DC]+jC[SC],++x[257+DC],++z[SC],S=q+p,++A}else O[y++]=H[q],++x[H[q]]}}for(q=Math.max(q,S);q<X;++q)O[y++]=H[q],++x[H[q]];if(R=CH(H,E,$,O,x,z,L,y,v,q-v,R),!$)V.r=R&7|E[R/8|0]<<3,R-=7,V.h=F,V.p=G,V.i=q,V.w=S}else{for(var q=V.w||0;q<X+$;q+=65535){var BC=q+65535;if(BC>=X)E[R/8|0]=$,BC=X;R=fC(E,R+1,H.subarray(q,BC))}V.i=X}return d(Y,0,K+GC(R)+Q)},zH,TC=function(){var H=-1;return{p:function(C){var J=H;for(var K=0;K<C.length;++K)J=zH[J&255^C[K]]^J>>>8;H=J},d:function(){return~H}}},aC=function(){var H=1,C=0;return{p:function(J){var K=H,Q=C,V=J.length|0;for(var X=0;X!=V;){var Y=Math.min(X+2655,V);for(;X<Y;++X)Q+=K+=J[X];K=(K&65535)+15*(K>>16),Q=(Q&65535)+15*(Q>>16)}H=K,C=Q},d:function(){return H%=65521,C%=65521,(H&255)<<24|(H&65280)<<8|(C&255)<<8|C>>8}}},RC=function(H,C,J,K,Q){if(!Q){if(Q={l:1},C.dictionary){var V=C.dictionary.subarray(-32768),X=new Z(V.length+H.length);X.set(V),X.set(H,V.length),H=X,Q.w=V.length}}return wH(H,C.level==null?6:C.level,C.mem==null?Q.l?Math.ceil(Math.max(8,Math.min(13,Math.log(H.length)))*1.5):20:12+C.mem,J,K,Q)},yC=function(H,C){var J={};for(var K in H)J[K]=H[K];for(var K in C)J[K]=C[K];return J},qH=function(H,C,J){var K=H(),Q=H.toString(),V=Q.slice(Q.indexOf("[")+1,Q.lastIndexOf("]")).replace(/\s+/g,"").split(",");for(var X=0;X<K.length;++X){var Y=K[X],E=V[X];if(typeof Y=="function"){C+=";"+E+"=";var $=Y.toString();if(Y.prototype)if($.indexOf("[native code]")!=-1){var R=$.indexOf(" ",8)+1;C+=$.slice(R,$.indexOf("(",R))}else{C+=$;for(var N in Y.prototype)C+=";"+E+".prototype."+N+"="+Y.prototype[N].toString()}else C+=$}else J[E]=Y}return C},_C,tH=function(H){var C=[];for(var J in H)if(H[J].buffer)C.push((H[J]=new H[J].constructor(H[J])).buffer);return C},yH=function(H,C,J,K){if(!_C[J]){var Q="",V={},X=H.length-1;for(var Y=0;Y<X;++Y)Q=qH(H[Y],Q,V);_C[J]={c:qH(H[X],Q,V),e:V}}var E=yC({},_C[J].e);return sH(_C[J].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+C.toString()+"}",J,E,tH(E),K)},ZC=function(){return[Z,e,wC,PC,jC,gC,XH,IH,AH,SH,xC,gH,l,uC,c,rC,GC,d,B,zC,vC,YC,YH]},IC=function(){return[Z,e,wC,PC,jC,gC,oC,sC,UH,QC,DH,LC,xC,xH,KC,l,JC,FC,pC,nC,tC,qC,fC,CH,GC,d,wH,RC,cC,YC]},vH=function(){return[$H,NH,g,TC,zH]},kH=function(){return[RH,mH]},hH=function(){return[EH,g,aC]},_H=function(){return[WH]},YC=function(H){return postMessage(H,[H.buffer])},YH=function(H){return H&&{out:H.size&&new Z(H.size),dictionary:H.dictionary}},UC=function(H,C,J,K,Q,V){var X=yH(J,K,Q,function(Y,E){X.terminate(),V(Y,E)});return X.postMessage([H,C],C.consume?[H.buffer]:[]),function(){X.terminate()}},i=function(H){return H.ondata=function(C,J){return postMessage([C,J],[C.buffer])},function(C){if(C.data[0])H.push(C.data[0],C.data[1]),postMessage([C.data[0].length]);else H.flush(C.data[1])}},AC=function(H,C,J,K,Q,V,X){var Y,E=yH(H,K,Q,function($,R){if($)E.terminate(),C.ondata.call(C,$);else if(!Array.isArray(R))X(R);else if(R.length==1){if(C.queuedSize-=R[0],C.ondrain)C.ondrain(R[0])}else{if(R[1])E.terminate();C.ondata.call(C,$,R[0],R[1])}});if(E.postMessage(J),C.queuedSize=0,C.push=function($,R){if(!C.ondata)B(5);if(Y)C.ondata(B(4,0,1),null,!!R);C.queuedSize+=$.length,E.postMessage([$,Y=R],$.buffer instanceof ArrayBuffer?[$.buffer]:[])},C.terminate=function(){E.terminate()},V)C.flush=function($){E.postMessage([0,$])}},b=function(H,C){return H[C]|H[C+1]<<8},k=function(H,C){return(H[C]|H[C+1]<<8|H[C+2]<<16|H[C+3]<<24)>>>0},dC=function(H,C){return k(H,C)+k(H,C+4)*4294967296},g=function(H,C,J){for(;J;++C)H[C]=J,J>>>=8},$H=function(H,C){var J=C.filename;if(H[0]=31,H[1]=139,H[2]=8,H[8]=C.level<2?4:C.level==9?2:0,H[9]=3,C.mtime!=0)g(H,4,Math.floor(new Date(C.mtime||Date.now())/1000));if(J){H[3]=8;for(var K=0;K<=J.length;++K)H[K+10]=J.charCodeAt(K)}},RH=function(H){if(H[0]!=31||H[1]!=139||H[2]!=8)B(6,"invalid gzip data");var C=H[3],J=10;if(C&4)J+=(H[10]|H[11]<<8)+2;for(var K=(C>>3&1)+(C>>4&1);K>0;K-=!H[J++]);return J+(C&2)},mH=function(H){var C=H.length;return(H[C-4]|H[C-3]<<8|H[C-2]<<16|H[C-1]<<24)>>>0},NH=function(H){return 10+(H.filename?H.filename.length+1:0)},EH=function(H,C){var J=C.level,K=J==0?0:J<6?1:J==9?3:2;if(H[0]=120,H[1]=K<<6|(C.dictionary&&32),H[1]|=31-(H[0]<<8|H[1])%31,C.dictionary){var Q=aC();Q.p(C.dictionary),g(H,2,Q.d())}},WH=function(H,C){if((H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31)B(6,"invalid zlib data");if((H[1]>>5&1)==+!C)B(6,"invalid zlib data: "+(H[1]&32?"need":"unexpected")+" dictionary");return(H[1]>>3&4)+2},t,CJ,a,uH,OH,NJ,HH,JJ,MH,WJ,KH,QJ,jH,FJ,BH=function(H,C,J,K){for(var Q in H){var V=H[Q],X=C+Q,Y=K;if(Array.isArray(V))Y=yC(K,V[1]),V=V[0];if(ArrayBuffer.isView(V))J[X]=[V,Y];else J[X+="/"]=[new Z(0),Y],BH(V,X,J,K)}},GH,VH,pH=0,oH=function(H){for(var C="",J=0;;){var K=H[J++],Q=(K>127)+(K>223)+(K>239);if(J+Q>H.length)return{s:C,r:d(H,J-1)};if(!Q)C+=String.fromCharCode(K);else if(Q==3)K=((K&15)<<18|(H[J++]&63)<<12|(H[J++]&63)<<6|H[J++]&63)-65536,C+=String.fromCharCode(55296|K>>10,56320|K&1023);else if(Q&1)C+=String.fromCharCode((K&31)<<6|H[J++]&63);else C+=String.fromCharCode((K&15)<<12|(H[J++]&63)<<6|H[J++]&63)}},LJ,MJ,bH=function(H){return H==1?3:H<6?2:H==9?1:0},eH=function(H,C){return C+30+b(H,C+26)+b(H,C+28)},fH=function(H,C,J){var K=b(H,C+28),Q=b(H,C+30),V=nH(H.subarray(C+46,C+46+K),!(b(H,C+8)&2048)),X=C+46+K,Y=aH(H,X,Q,J,k(H,C+20),k(H,C+24),k(H,C+42)),E=Y[0],$=Y[1],R=Y[2];return[b(H,C+10),E,$,V,X+Q+b(H,C+32),R]},aH=function(H,C,J,K,Q,V,X){var Y=Q==4294967295,E=V==4294967295,$=X==4294967295,R=C+J,N=Y+E+$;if(K&&N){for(;C+4<R;C+=4+b(H,C+2))if(b(H,C)==1)return[Y?dC(H,C+4+8*E):Q,E?dC(H,C+4):V,$?dC(H,C+4+8*(E+Y)):X,1];if(K<2)B(13)}return[Q,V,X,0]},XC=function(H){var C=0;if(H)for(var J in H){var K=H[J].length;if(K>65535)B(9);C+=K+4}return C},MC=function(H,C,J,K,Q,V,X,Y){var E=K.length,$=J.extra,R=Y&&Y.length,N=XC($);if(g(H,C,X!=null?33639248:67324752),C+=4,X!=null)H[C++]=20,H[C++]=J.os;H[C]=20,C+=2,H[C++]=J.flag<<1|(V<0&&8),H[C++]=Q&&8,H[C++]=J.compression&255,H[C++]=J.compression>>8;var W=new Date(J.mtime==null?Date.now():J.mtime),T=W.getFullYear()-1980;if(T<0||T>119)B(10);if(g(H,C,T<<25|W.getMonth()+1<<21|W.getDate()<<16|W.getHours()<<11|W.getMinutes()<<5|W.getSeconds()>>1),C+=4,V!=-1)g(H,C,J.crc),g(H,C+4,V<0?-V-2:V),g(H,C+8,J.size);if(g(H,C+12,E),g(H,C+14,N),C+=16,X!=null)g(H,C,R),g(H,C+6,J.attrs),g(H,C+10,X),C+=14;if(H.set(K,C),C+=E,N)for(var M in $){var G=$[M],F=G.length;g(H,C,+M),g(H,C+2,F),H.set(G,C+4),C+=4+F}if(R)H.set(Y,C),C+=R;return C},FH=function(H,C,J,K,Q){g(H,C,101010256),g(H,C+8,J),g(H,C+10,J),g(H,C+12,K),g(H,C+16,Q)},bC,PJ,jJ,GJ,XJ,IJ,UJ,AJ,eC;var YJ=cH(()=>{dH=lH("/");try{OC=dH("worker_threads"),mC=OC.Worker,iC=OC.isMarkedAsUntransferable}catch(H){}sH=mC?function(H,C,J,K,Q){var V=!1,X=new mC(H+iH,{eval:!0}).on("error",function(Y){return Q(Y,null)}).on("message",function(Y){return Q(null,Y)}).on("exit",function(Y){if(Y&&!V)Q(Error("exited with code "+Y),null)});if(iC)K=K.filter(function(Y){return!iC(Y)});return X.postMessage(J,K),X.terminate=function(){return V=!0,mC.prototype.terminate.call(X)},X}:function(H,C,J,K,Q){setImmediate(function(){return Q(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var V=function(){};return{terminate:V,postMessage:V}},Z=Uint8Array,e=Uint16Array,wC=Int32Array,PC=new Z([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),jC=new Z([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),gC=new Z([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),OC=TH(PC,2),XH=OC.b,oC=OC.r;XH[28]=258,oC[258]=28;ZH=TH(jC,0),IH=ZH.b,sC=ZH.r,xC=new e(32768);for(I=0;I<32768;++I)HC=(I&43690)>>1|(I&21845)<<1,HC=(HC&52428)>>2|(HC&13107)<<2,HC=(HC&61680)>>4|(HC&3855)<<4,xC[I]=((HC&65280)>>8|(HC&255)<<8)>>1;QC=new Z(288);for(I=0;I<144;++I)QC[I]=8;for(I=144;I<256;++I)QC[I]=9;for(I=256;I<280;++I)QC[I]=7;for(I=280;I<288;++I)QC[I]=8;LC=new Z(32);for(I=0;I<32;++I)LC[I]=5;UH=l(QC,9,0),AH=l(QC,9,1),DH=l(LC,5,0),SH=l(LC,5,1),RJ={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},gH=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],xH=new wC([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),KC=new Z(0),zH=function(){var H=new Int32Array(256);for(var C=0;C<256;++C){var J=C,K=9;while(--K)J=(J&1&&-306674912)^J>>>1;H[C]=J}return H}(),_C=[];t=function(){function H(C,J){if(typeof C=="function")J=C,C={};if(this.ondata=J,this.o=C||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new Z(98304),this.o.dictionary){var K=this.o.dictionary.subarray(-32768);this.b.set(K,32768-K.length),this.s.i=32768-K.length}}return H.prototype.p=function(C,J){this.ondata(RC(C,this.o,0,0,this.s),J)},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.s.l)B(4);var K=C.length+this.s.z;if(K>this.b.length){if(K>2*this.b.length-32768){var Q=new Z(K&-32768);Q.set(this.b.subarray(0,this.s.z)),this.b=Q}var V=this.b.length-this.s.z;this.b.set(C.subarray(0,V),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(C.subarray(V),32768),this.s.z=C.length-V+32768,this.s.i=32766,this.s.w=32768}else this.b.set(C,this.s.z),this.s.z+=C.length;if(this.s.l=J&1,this.s.z>this.s.w+8191||J)this.p(this.b,J||!1),this.s.w=this.s.i,this.s.i-=2;if(J)this.s=this.o={},this.b=KC},H.prototype.flush=function(C){if(!this.ondata)B(5);if(this.s.l)B(4);if(this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2,C){var J=new Z(6);J[0]=this.s.r>>3;var K=fC(J,this.s.r,KC);this.s.r=0,this.ondata(J.subarray(0,K>>3),!1)}},H}(),CJ=function(){function H(C,J){AC([IC,function(){return[i,t]}],this,NC.call(this,C,J),function(K){var Q=new t(K.data);onmessage=i(Q)},6,1)}return H}();a=function(){function H(C,J){if(typeof C=="function")J=C,C={};this.ondata=J;var K=C&&C.dictionary&&C.dictionary.subarray(-32768);if(this.s={i:0,b:K?K.length:0},this.o=new Z(32768),this.p=new Z(0),K)this.o.set(K)}return H.prototype.e=function(C){if(!this.ondata)B(5);if(this.d)B(4);if(!this.p.length)this.p=C;else if(C.length){var J=new Z(this.p.length+C.length);J.set(this.p),J.set(C,this.p.length),this.p=J}},H.prototype.c=function(C){this.s.i=+(this.d=C||!1);var J=this.s.b,K=zC(this.p,this.s,this.o);this.ondata(d(K,J,this.s.b),this.d),this.o=d(K,this.s.b-32768),this.s.b=this.o.length,this.p=d(this.p,this.s.p/8|0),this.s.p&=7},H.prototype.push=function(C,J){this.e(C),this.c(J)},H}(),uH=function(){function H(C,J){AC([ZC,function(){return[i,a]}],this,NC.call(this,C,J),function(K){var Q=new a(K.data);onmessage=i(Q)},7,0)}return H}();OH=function(){function H(C,J){this.c=TC(),this.l=0,this.v=1,t.call(this,C,J)}return H.prototype.push=function(C,J){this.c.p(C),this.l+=C.length,t.prototype.push.call(this,C,J)},H.prototype.p=function(C,J){var K=RC(C,this.o,this.v&&NH(this.o),J&&8,this.s);if(this.v)$H(K,this.o),this.v=0;if(J)g(K,K.length-8,this.c.d()),g(K,K.length-4,this.l);this.ondata(K,J)},H.prototype.flush=function(C){t.prototype.flush.call(this,C)},H}(),NJ=function(){function H(C,J){AC([IC,vH,function(){return[i,t,OH]}],this,NC.call(this,C,J),function(K){var Q=new OH(K.data);onmessage=i(Q)},8,1)}return H}();HH=function(){function H(C,J){this.v=1,this.r=0,a.call(this,C,J)}return H.prototype.push=function(C,J){if(a.prototype.e.call(this,C),this.r+=C.length,this.v){var K=this.p.subarray(this.v-1),Q=K.length>3?RH(K):4;if(Q>K.length){if(!J)return}else if(this.v>1&&this.onmember)this.onmember(this.r-K.length);this.p=K.subarray(Q),this.v=0}if(a.prototype.c.call(this,0),this.s.f&&!this.s.l)this.v=GC(this.s.p)+9,this.s={i:0},this.o=new Z(0),this.push(new Z(0),J);else if(J)a.prototype.c.call(this,J)},H}(),JJ=function(){function H(C,J){var K=this;AC([ZC,kH,function(){return[i,a,HH]}],this,NC.call(this,C,J),function(Q){var V=new HH(Q.data);V.onmember=function(X){return postMessage(X)},onmessage=i(V)},9,0,function(Q){return K.onmember&&K.onmember(Q)})}return H}();MH=function(){function H(C,J){this.c=aC(),this.v=1,t.call(this,C,J)}return H.prototype.push=function(C,J){this.c.p(C),t.prototype.push.call(this,C,J)},H.prototype.p=function(C,J){var K=RC(C,this.o,this.v&&(this.o.dictionary?6:2),J&&4,this.s);if(this.v)EH(K,this.o),this.v=0;if(J)g(K,K.length-4,this.c.d());this.ondata(K,J)},H.prototype.flush=function(C){t.prototype.flush.call(this,C)},H}(),WJ=function(){function H(C,J){AC([IC,hH,function(){return[i,t,MH]}],this,NC.call(this,C,J),function(K){var Q=new MH(K.data);onmessage=i(Q)},10,1)}return H}();KH=function(){function H(C,J){a.call(this,C,J),this.v=C&&C.dictionary?2:1}return H.prototype.push=function(C,J){if(a.prototype.e.call(this,C),this.v){if(this.p.length<6&&!J)return;this.p=this.p.subarray(WH(this.p,this.v-1)),this.v=0}if(J){if(this.p.length<4)B(6,"invalid zlib data");this.p=this.p.subarray(0,-4)}a.prototype.c.call(this,J)},H}(),QJ=function(){function H(C,J){AC([ZC,_H,function(){return[i,a,KH]}],this,NC.call(this,C,J),function(K){var Q=new KH(K.data);onmessage=i(Q)},11,0)}return H}();jH=function(){function H(C,J){this.o=NC.call(this,C,J)||{},this.G=HH,this.I=a,this.Z=KH}return H.prototype.i=function(){var C=this;this.s.ondata=function(J,K){C.ondata(J,K)}},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(!this.s){if(this.p&&this.p.length){var K=new Z(this.p.length+C.length);K.set(this.p),K.set(C,this.p.length)}else this.p=C;if(this.p.length>2)this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,J),this.p=null}else this.s.push(C,J)},H}(),FJ=function(){function H(C,J){jH.call(this,C,J),this.queuedSize=0,this.G=JJ,this.I=uH,this.Z=QJ}return H.prototype.i=function(){var C=this;this.s.ondata=function(J,K,Q){C.ondata(J,K,Q)},this.s.ondrain=function(J){if(C.queuedSize-=J,C.ondrain)C.ondrain(J)}},H.prototype.push=function(C,J){this.queuedSize+=C.length,jH.prototype.push.call(this,C,J)},H}();GH=typeof TextEncoder<"u"&&new TextEncoder,VH=typeof TextDecoder<"u"&&new TextDecoder;try{VH.decode(KC,{stream:!0}),pH=1}catch(H){}LJ=function(){function H(C){if(this.ondata=C,pH)this.t=new TextDecoder;else this.p=KC}return H.prototype.push=function(C,J){if(!this.ondata)B(5);if(J=!!J,this.t){if(this.ondata(this.t.decode(C,{stream:!0}),J),J){if(this.t.decode().length)B(8);this.t=null}return}if(!this.p)B(4);var K=new Z(this.p.length+C.length);K.set(this.p),K.set(C,this.p.length);var Q=oH(K),V=Q.s,X=Q.r;if(J){if(X.length)B(8);this.p=null}else this.p=X;this.ondata(V,J)},H}(),MJ=function(){function H(C){this.ondata=C}return H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.d)B(4);this.ondata($C(C),this.d=J||!1)},H}();bC=function(){function H(C){this.filename=C,this.c=TC(),this.size=0,this.compression=0}return H.prototype.process=function(C,J){this.ondata(null,C,J)},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.c.p(C),this.size+=C.length,J)this.crc=this.c.d();this.process(C,J||!1)},H}(),PJ=function(){function H(C,J){var K=this;if(!J)J={};bC.call(this,C),this.d=new t(J,function(Q,V){K.ondata(null,Q,V)}),this.compression=8,this.flag=bH(J.level)}return H.prototype.process=function(C,J){try{this.d.push(C,J)}catch(K){this.ondata(K,null,J)}},H.prototype.push=function(C,J){bC.prototype.push.call(this,C,J)},H}(),jJ=function(){function H(C,J){var K=this;if(!J)J={};bC.call(this,C),this.d=new CJ(J,function(Q,V,X){K.ondata(Q,V,X)}),this.compression=8,this.flag=bH(J.level),this.terminate=this.d.terminate}return H.prototype.process=function(C,J){this.d.push(C,J)},H.prototype.push=function(C,J){bC.prototype.push.call(this,C,J)},H}(),GJ=function(){function H(C){this.ondata=C,this.u=[],this.d=1}return H.prototype.add=function(C){var J=this;if(!this.ondata)B(5);if(this.d&2)this.ondata(B(4+(this.d&1)*8,0,1),null,!1);else{var K=$C(C.filename),Q=K.length,V=C.comment,X=V&&$C(V),Y=Q!=C.filename.length||X&&V.length!=X.length,E=Q+XC(C.extra)+30;if(Q>65535)this.ondata(B(11,0,1),null,!1);var $=new Z(E);MC($,0,C,K,Y,-1);var R=[$],N=function(){for(var F=0,P=R;F<P.length;F++){var U=P[F];J.ondata(null,U,!1)}R=[]},W=this.d;this.d=0;var T=this.u.length,M=yC(C,{f:K,u:Y,o:X,t:function(){if(C.terminate)C.terminate()},r:function(){if(N(),W){var F=J.u[T+1];if(F)F.r();else J.d=1}W=1}}),G=0;C.ondata=function(F,P,U){if(F)J.ondata(F,P,U),J.terminate();else if(G+=P.length,R.push(P),U){var j=new Z(16);if(g(j,0,134695760),g(j,4,C.crc),g(j,8,G),g(j,12,C.size),R.push(j),M.c=G,M.b=E+G+16,M.crc=C.crc,M.size=C.size,W)M.r();W=1}else if(W)N()},this.u.push(M)}},H.prototype.end=function(){var C=this;if(this.d&2){this.ondata(B(4+(this.d&1)*8,0,1),null,!0);return}if(this.d)this.e();else this.u.push({r:function(){if(!(C.d&1))return;C.u.splice(-1,1),C.e()},t:function(){}});this.d=3},H.prototype.e=function(){var C=0,J=0,K=0;for(var Q=0,V=this.u;Q<V.length;Q++){var X=V[Q];K+=46+X.f.length+XC(X.extra)+(X.o?X.o.length:0)}var Y=new Z(K+22);for(var E=0,$=this.u;E<$.length;E++){var X=$[E];MC(Y,C,X,X.f,X.u,-X.c-2,J,X.o),C+=46+X.f.length+XC(X.extra)+(X.o?X.o.length:0),J+=X.b}FH(Y,C,this.u.length,K,J),this.ondata(null,Y,!0),this.d=2},H.prototype.terminate=function(){for(var C=0,J=this.u;C<J.length;C++){var K=J[C];K.t()}this.d=2},H}();XJ=function(){function H(){}return H.prototype.push=function(C,J){this.ondata(null,C,J)},H.compression=0,H}(),IJ=function(){function H(){var C=this;this.i=new a(function(J,K){C.ondata(null,J,K)})}return H.prototype.push=function(C,J){try{this.i.push(C,J)}catch(K){this.ondata(K,null,J)}},H.compression=8,H}(),UJ=function(){function H(C,J){var K=this;if(J<320000)this.i=new a(function(Q,V){K.ondata(null,Q,V)});else this.i=new uH(function(Q,V,X){K.ondata(Q,V,X)}),this.terminate=this.i.terminate}return H.prototype.push=function(C,J){if(this.i.terminate)C=d(C,0);this.i.push(C,J)},H.compression=8,H}(),AJ=function(){function H(C){this.onfile=C,this.k=[],this.o={0:XJ},this.p=KC}return H.prototype.push=function(C,J){var K=this;if(!this.onfile)B(5);if(!this.p)B(4);if(this.c>0){var Q=Math.min(this.c,C.length),V=C.subarray(0,Q);if(this.c-=Q,this.d)this.d.push(V,!this.c);else this.k[0].push(V);if(C=C.subarray(Q),C.length)return this.push(C,J)}else{var X=0,Y=0,E=void 0,$=void 0;if(!this.p.length)$=C;else if(!C.length)$=this.p;else $=new Z(this.p.length+C.length),$.set(this.p),$.set(C,this.p.length);var R=$.length,N=this.c,W=N&&this.d,T=function(){var P=k($,Y);if(P==67324752){X=1,E=Y,M.d=null,M.c=0;var U=b($,Y+6),j=b($,Y+8),O=U&2048,x=U&8,z=b($,Y+26),A=b($,Y+28);if(R>Y+30+z+A){var L=[];M.k.unshift(L),X=2;var q=k($,Y+18),y=k($,Y+22),S=nH($.subarray(Y+30,Y+=30+z),!O),v=aH($,Y,A,2,q,y,0),r=v[0],h=v[1],m=v[3];if(x)r=-1-m;Y+=A,M.c=r;var w,D={name:S,compression:j,start:function(){if(!D.ondata)B(5);if(!r)D.ondata(null,KC,!0);else{var p=K.o[j];if(!p)D.ondata(B(14,"unknown compression type "+j,1),null,!1);w=r<0?new p(S):new p(S,r,h),w.ondata=function(s,o,n){D.ondata(s,o,n)};for(var u=0,VC=L;u<VC.length;u++){var f=VC[u];w.push(f,!1)}if(K.k[0]==L&&K.c)K.d=w;else w.push(KC,!0)}},terminate:function(){if(w&&w.terminate)w.terminate()}};if(r>=0)D.size=r,D.originalSize=h;M.onfile(D)}return"break"}else if(N){if(P==134695760)return E=Y+=12+(N==-2&&8),X=3,M.c=0,"break";else if(P==33639248)return E=Y-=4,X=3,M.c=0,"break"}},M=this;for(;Y<R-4;++Y){var G=T();if(G==="break")break}if(this.p=KC,N<0){var F=X?$.subarray(0,E-12-(N==-2&&8)-(k($,E-16)==134695760&&4)):$.subarray(0,Y);if(W)W.push(F,!!X);else this.k[+(X==2)].push(F)}if(X&2)return this.push($.subarray(Y),J);this.p=$.subarray(Y)}if(J){if(this.c)B(13);this.p=null}},H.prototype.register=function(C){this.o[C.compression]=C},H}(),eC=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(H){H()}});
|
|
2
|
+
export{RJ as J5,t as K5,CJ as L5,HJ as M5,cC as N5,a as O5,uH as P5,rH as Q5,vC as R5,OH as S5,NJ as T5,EJ as U5,LH as V5,HH as W5,JJ as X5,KJ as Y5,JH as Z5,MH as _5,WJ as $5,BJ as a6,PH as b6,KH as c6,QJ as d6,VJ as e6,QH as f6,jH as g6,FJ as h6,qJ as i6,OJ as j6,LJ as k6,MJ as l6,$C as m6,nH as n6,bC as o6,PJ as p6,jJ as q6,GJ as r6,TJ as s6,ZJ as t6,XJ as u6,IJ as v6,UJ as w6,AJ as x6,DJ as y6,SJ as z6,YJ as A6};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{$Z as OJ,YZ as o}from"./cli-0.6.3-z8vc44s1.mjs";import{G_ as G,I_ as BJ,Pda as q,Vba as v,Xda as E,Yaa as i,a8 as K,b8 as I,gba as HJ,rca as D}from"./cli-0.6.3-cz70v0dc.mjs";import{rga as A,tga as XJ}from"./cli-0.6.3-ywk23cbf.mjs";import{Yga as k,Zga as j,bha as C,fha as y,jha as F,tha as W,wha as zJ}from"./cli-0.6.3-tjykjtxh.mjs";import{Dha as l,Oha as O,Pha as w,Sha as p,Uha as R}from"./cli-0.6.3-2seqm104.mjs";import{Xha as H,iia as b}from"./cli-0.6.3-vp1zy3b1.mjs";import{wpa as M}from"./cli-0.6.3-qh59pqrb.mjs";import{access as P,chmod as JJ,writeFile as QJ}from"fs/promises";import{homedir as f}from"os";import{join as B}from"path";function S(){return B(H(),"local")}function YJ(J=f()){return B(J,".claude","local")}function m(J){let Q=J?.homeDir??f(),Y=J?.configHomeDir??H();return Array.from(new Set([B(Y,"local"),YJ(Q)]))}function d(J){return[B(J,"node_modules",".bin","claudin"),B(J,"node_modules",".bin","claude")]}function ZJ(J){let Q=J.replace(/\\+/g,"/");return Q.includes("/.claudin/local/node_modules/")||Q.includes("/.claude/local/node_modules/")}function T(){return B(S(),"claudin")}function DJ(){return ZJ(process.argv[1]||"")}async function L(J,Q,Y){try{return await QJ(J,Q,{encoding:"utf8",flag:"wx",mode:Y}),!0}catch(Z){if(O(Z)==="EEXIST")return!1;throw Z}}async function $J(){try{let J=S();await y().mkdir(J),await L(B(J,"package.json"),k({name:"claudin-local",version:"0.0.1",private:!0},null,2));let Q=T();if(await L(Q,`#!/bin/sh
|
|
2
|
+
exec "${J}/node_modules/.bin/claudin" "$@"`,493))await JJ(Q,493);return!0}catch(J){return q(J),!1}}async function EJ(J,Q){try{if(!await $J())return"install_failed";let Z=await K("npm",["install",`@claudiolabs/claudin@${Q?Q:J==="stable"?"stable":"latest"}`],{cwd:S(),maxBuffer:1e6});if(Z.code!==0){let $=Error(`Failed to install Claude CLI package: ${Z.stderr}`);return q($),Z.code===190?"in_progress":"install_failed"}return v(($)=>({...$,installMethod:"local"})),"success"}catch(Y){return q(Y),"install_failed"}}async function PJ(){for(let J of m())for(let Q of d(J))try{return await P(Q),!0}catch{}return!1}async function fJ(){for(let J of m())for(let Q of d(J))try{return await P(Q),J}catch{}return null}function mJ(){let J=process.env.SHELL||"";if(J.includes("zsh"))return"zsh";if(J.includes("bash"))return"bash";if(J.includes("fish"))return"fish";return"unknown"}var u=M(()=>{D();b();R();I();F();E();C()});import{open as qJ,readFile as WJ,stat as KJ}from"fs/promises";import{homedir as h}from"os";import{join as U}from"path";function V(J){let Q=J?.homedir??h(),Z=(J?.env??process.env).ZDOTDIR||Q;return{zsh:U(Z,".zshrc"),bash:U(Q,".bashrc"),fish:U(Q,".config/fish/config.fish")}}function g(J){let Q=!1;return{filtered:J.filter((Z)=>{if(c.test(Z)){let $=Z.match(/alias\s+claude\s*=\s*["']([^"']+)["']/);if(!$)$=Z.match(/alias\s+claude\s*=\s*([^#\n]+)/);if($&&$[1]){if($[1].trim()===T())return Q=!0,!1}}return!0}),hadAlias:Q}}async function x(J){try{return(await WJ(J,{encoding:"utf8"})).split(`
|
|
3
|
+
`)}catch(Q){if(p(Q))return null;throw Q}}async function n(J,Q){let Y=await qJ(J,"w");try{await Y.writeFile(Q.join(`
|
|
4
|
+
`),{encoding:"utf8"}),await Y.datasync()}finally{await Y.close()}}async function NJ(J){let Q=V(J);for(let Y of Object.values(Q)){let Z=await x(Y);if(!Z)continue;for(let $ of Z)if(c.test($)){let N=$.match(/alias\s+claude=["']?([^"'\s]+)/);if(N&&N[1])return N[1]}}return null}async function nJ(J){let Q=await NJ(J);if(!Q)return null;let Y=J?.homedir??h(),Z=Q.startsWith("~")?Q.replace("~",Y):Q;try{let $=await KJ(Z);if($.isFile()||$.isSymbolicLink())return Q}catch{}return null}var c;var s=M(()=>{R();u();c=/^\s*alias\s+claude\s*=/});import{constants as yJ}from"fs";import{access as GJ,writeFile as a}from"fs/promises";import{homedir as X}from"os";import{join as _J}from"path";function r(){let J=process.argv[1]||"";if(J.includes("/.bun/install/global/"))return!0;let Q=process.env.BUN_INSTALL;if(Q&&J.startsWith(Q))return!0;return!1}async function vJ(){let J=await K("bun",["pm","ls","-g"],{cwd:X()});if(J.code!==0)return!1;return J.stdout.includes("@claudiolabs/claudin")}async function zQ(){}async function BQ(){return}async function HQ(){return}function OQ(J){let Y=i()?.minimumVersion;if(!Y)return!1;let Z=!o(J,Y);if(Z)W(`Skipping update to ${J} - below minimumVersion ${Y}`);return Z}function e(){return _J(H(),".update.lock")}async function wJ(){let J=y(),Q=e();try{let Y=await J.stat(Q);if(Date.now()-Y.mtimeMs<t)return!1;try{let $=await J.stat(Q);if(Date.now()-$.mtimeMs<t)return!1;await J.unlink(Q)}catch($){if(!w($))return q($),!1}}catch(Y){if(!w(Y))return q(Y),!1}try{return await a(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch(Y){let Z=O(Y);if(Z==="EEXIST")return!1;if(Z==="ENOENT")try{return await J.mkdir(H()),await a(Q,`${process.pid}`,{encoding:"utf8",flag:"wx"}),!0}catch($){if(O($)==="EEXIST")return!1;return q($),!1}return q(Y),!1}}async function MJ(){let J=y(),Q=e();try{if(await J.readFile(Q,{encoding:"utf8"})===`${process.pid}`)await J.unlink(Q)}catch(Y){if(w(Y))return;q(Y)}}async function RJ(){let J=G.isRunningWithBun()||r(),Q=null;if(J)Q=await K("bun",["pm","bin","-g"],{cwd:X()});else Q=await K("npm",["-g","config","get","prefix"],{cwd:X()});if(Q.code!==0)return q(Error(`Failed to check ${J?"bun":"npm"} permissions`)),null;return Q.stdout.trim()}async function SJ(){try{let J=await RJ();if(!J)return{hasPermissions:!1,npmPrefix:null};try{return await GJ(J,yJ.W_OK),{hasPermissions:!0,npmPrefix:J}}catch{return q(new _("Insufficient permissions for global npm install.")),{hasPermissions:!1,npmPrefix:J}}}catch(J){return q(J),{hasPermissions:!1,npmPrefix:null}}}async function yQ(J,Q={}){let Y=J==="stable"?"stable":"latest",Z=Q.timeoutMs??5000,$=await K("npm",["view",`@claudiolabs/claudin@${Y}`,"version","--prefer-online"],{abortSignal:AbortSignal.timeout(Z),cwd:X()});if($.code!==0){if(W(`npm view failed with code ${$.code}`),$.stderr)W(`npm stderr: ${$.stderr.trim()}`);else W("npm stderr: (empty)");if($.stdout)W(`npm stdout: ${$.stdout.trim()}`);return null}return $.stdout.trim()}async function GQ(){let J=await K("npm",["view","@claudiolabs/claudin","dist-tags","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(5000),cwd:X()});if(J.code!==0)return W(`npm view dist-tags failed with code ${J.code}`),{latest:null,stable:null};try{let Q=j(J.stdout.trim());return{latest:typeof Q.latest==="string"?Q.latest:null,stable:typeof Q.stable==="string"?Q.stable:null}}catch(Q){return W(`Failed to parse dist-tags: ${Q}`),{latest:null,stable:null}}}async function _Q(J){return null}async function vQ(){return{latest:null,stable:null}}async function wQ(J){let Y=await K("npm",["view","@claudiolabs/claudin","versions","--json","--prefer-online"],{abortSignal:AbortSignal.timeout(30000),cwd:X()});if(Y.code!==0){if(W(`npm view versions failed with code ${Y.code}`),Y.stderr)W(`npm stderr: ${Y.stderr.trim()}`);return[]}try{return j(Y.stdout.trim()).slice(-J).reverse()}catch(Z){return W(`Failed to parse version history: ${Z}`),[]}}async function MQ(J){if(!await wJ())return q(new _("Another process is currently installing an update")),A("tengu_auto_updater_lock_contention",{pid:process.pid,currentVersion:"99.0.0"}),"in_progress";try{if(await TJ(),!G.isRunningWithBun()&&G.isNpmFromWindowsPath())return q(Error("Windows NPM detected in WSL environment")),A("tengu_auto_updater_windows_npm_in_wsl",{currentVersion:"99.0.0"}),console.error(`
|
|
5
|
+
Error: Windows NPM detected in WSL
|
|
6
|
+
|
|
7
|
+
You're running Claude Code in WSL but using the Windows NPM installation from /mnt/c/.
|
|
8
|
+
This configuration is not supported for updates.
|
|
9
|
+
|
|
10
|
+
To fix this issue:
|
|
11
|
+
1. Install Node.js within your Linux distribution: e.g. sudo apt install nodejs npm
|
|
12
|
+
2. Make sure Linux NPM is in your PATH before the Windows version
|
|
13
|
+
3. Try updating again with 'claude update'
|
|
14
|
+
`),"install_failed";let{hasPermissions:Q}=await SJ();if(!Q)return"no_permissions";let Y=J?`@claudiolabs/claudin@${J}`:"@claudiolabs/claudin",Z=G.isRunningWithBun()||r()?"bun":"npm",N=await K(Z,Z==="npm"?["install","-g","--force",Y]:["install","-g",Y],{cwd:X()});if(N.code!==0){let z=new _(`Failed to install new version of claude: ${N.stdout} ${N.stderr}`);return q(z),"install_failed"}if(Z==="npm"&&await vJ()){let z=await K("bun",["install","-g",Y],{cwd:X()});if(z.code!==0)q(new _(`Failed to update bun global install: ${z.stdout} ${z.stderr}`))}return v((z)=>({...z,installMethod:"global"})),"success"}finally{await MJ()}}async function TJ(){let J=V();for(let[,Q]of Object.entries(J))try{let Y=await x(Q);if(!Y)continue;let{filtered:Z,hadAlias:$}=g(Y);if($)await n(Q,Z),W(`Removed claude alias from ${Q}`)}catch(Y){W(`Failed to remove alias from ${Q}: ${Y}`,{level:"error"})}}var _,t=300000;var UJ=M(()=>{XJ();D();zJ();BJ();b();R();I();F();E();OJ();HJ();s();C();_=class _ extends l{}});
|
|
15
|
+
export{DJ as wR,EJ as xR,PJ as yR,fJ as zR,mJ as AR,u as BR,V as CR,g as DR,x as ER,n as FR,NJ as GR,nJ as HR,s as IR,zQ as JR,BQ as KR,HQ as LR,OQ as MR,e as NR,SJ as OR,yQ as PR,GQ as QR,_Q as RR,vQ as SR,wQ as TR,MQ as UR,UJ as VR};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{wpa as C}from"./cli-0.6.3-qh59pqrb.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 ffa,Q as gfa,R as hfa,S as ifa,T as jfa,U as kfa,W as lfa,X as mfa,Y as nfa,Z as ofa,$ as pfa,v as qfa,w as rfa,P as sfa,B as tfa,D as ufa,h as vfa,N as wfa,m as xfa,c as yfa,F as zfa,J as Afa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{_ha as w,iia as F}from"./cli-0.6.3-vp1zy3b1.mjs";import{wpa as D}from"./cli-0.6.3-qh59pqrb.mjs";function Q(b){z=b}function V(){let b=z?.()??{};if(!w(process.env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB))return Object.keys(b).length>0?{...process.env,...b}:process.env;let d={...process.env,...b};for(let q of J)delete d[q],delete d[`INPUT_${q}`];return d}var J,z;var L=D(()=>{F();J=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_FOUNDRY_API_KEY","ANTHROPIC_CUSTOM_HEADERS","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_TRACES_HEADERS","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","GOOGLE_APPLICATION_CREDENTIALS","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_RUNTIME_URL","ALL_INPUTS","OVERRIDE_GITHUB_TOKEN","DEFAULT_WORKFLOW_TOKEN","SSH_SIGNING_KEY"]});
|
|
2
|
+
export{Q as TT,V as UT,L as VT};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Yb as l,Zb as m,ac as u,bc as y}from"./cli-0.6.3-y1mm0v8x.mjs";import{uE as p,wE as b}from"./cli-0.6.3-kz9egvgw.mjs";import{AY as e,dZ as C,yY as s}from"./cli-0.6.3-sz0yt1ax.mjs";import{D0 as i,E0 as r,F0 as g}from"./cli-0.6.3-r0pavcpp.mjs";import{G0 as M}from"./cli-0.6.3-ysazbe18.mjs";import{spa as h,wpa as f}from"./cli-0.6.3-qh59pqrb.mjs";function T({enabled:c,onDismiss:a}){let[n,t]=k.useState(()=>c?{kind:"prompt"}:{kind:"hidden"});if(!c||n.kind==="hidden")return null;if(n.kind==="running")return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Migrating ~/.claude/ to ~/.claudin/..."}),i(e,{dimColor:!0,children:"Copying tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings."})]});if(n.kind==="success"||n.kind==="error"){let d=n.kind==="success"?"success":"warning",o=n.kind==="success"?"Migration complete":"Migration finished with warnings";return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:d,bold:!0,children:o}),i(e,{children:m(n.report)})]})}return r(s,{flexDirection:"column",marginBottom:1,children:[i(e,{color:"warning",bold:!0,children:"Found Claude Code config at ~/.claude/"}),i(e,{children:"Import API tokens, settings, theme, MCP servers, skills, agents, slash commands, plugins, and keybindings into ~/.claudin/?"}),i(p,{options:[{value:"migrate",label:"Migrate now",description:"Copy tokens, settings, CLAUDE.md, skills, agents, commands, plugins, keybindings."},{value:"skip",label:"Skip — start fresh",description:"Don't ask again this profile."}],onChange:(d)=>{if(d==="skip"){u(),t({kind:"hidden"}),a?.("skipped");return}t({kind:"running"}),(async()=>{let o=await l();t({kind:o.errors.length===0?"success":"error",report:o}),a?.("migrated")})()},onCancel:()=>{t({kind:"hidden"}),a?.("skipped")},visibleOptionCount:2})]})}var k;var w=f(()=>{C();y();b();g();k=h(M(),1)});
|
|
2
|
+
export{T as Wb,w as Xb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Rp as _,oR as z}from"./cli-0.6.3-kz9egvgw.mjs";import{P0 as f}from"./cli-0.6.3-fws87r5f.mjs";import{A1 as K,f4 as k,k5 as A}from"./cli-0.6.3-nawttnnp.mjs";import{W8 as T,Z7 as L,gba as v,rca as x,v_ as W}from"./cli-0.6.3-cz70v0dc.mjs";import{afa as b,cfa as Q,dfa as q,efa as V}from"./cli-0.6.3-be9988sa.mjs";import{Afa as H}from"./cli-0.6.3-pqq8j8h2.mjs";import{qga as w}from"./cli-0.6.3-mwvq805r.mjs";import{tga as O}from"./cli-0.6.3-ywk23cbf.mjs";import{Uha as U}from"./cli-0.6.3-2seqm104.mjs";import{Jja as X,Nna as B}from"./cli-0.6.3-g7nc10fr.mjs";import{wpa as G}from"./cli-0.6.3-qh59pqrb.mjs";var Z,$;var J=G(()=>{Q();V();Z=q(()=>b.object({entries:b.record(b.string(),b.string())})),$=q(()=>b.object({userId:b.string(),version:b.number(),lastModified:b.string(),checksum:b.string(),content:Z()}))});var Y=G(()=>{B();w();A();z();x();L();U();T();K();W();v();X();k();f();H();O();_();J()});
|
|
2
|
+
export{Y as Zc};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{createRequire as w}from"node:module";var p=Object.create;var{getPrototypeOf:q,defineProperty:k,getOwnPropertyNames:m,getOwnPropertyDescriptor:r}=Object,n=Object.prototype.hasOwnProperty;function o(a){return this[a]}var s,t,z=(a,b,c)=>{var d=a!=null&&typeof a==="object";if(d){var h=b?s??=new WeakMap:t??=new WeakMap,g=h.get(a);if(g)return g}c=a!=null?p(q(a)):{};let e=b||!a||!a.__esModule?k(c,"default",{value:a,enumerable:!0}):c;for(let f of m(a))if(!n.call(e,f))k(e,f,{get:o.bind(a,f),enumerable:!0});if(d)h.set(a,e);return e},A=(a)=>{var b=(l??=new WeakMap).get(a),c;if(b)return b;if(b=k({},"__esModule",{value:!0}),a&&typeof a==="object"||typeof a==="function"){for(var d of m(a))if(!n.call(b,d))k(b,d,{get:o.bind(a,d),enumerable:!(c=r(a,d))||c.enumerable})}return l.set(a,b),b},l,B=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports);var u=(a)=>a;function v(a,b){this[a]=u.bind(null,b)}var C=(a,b)=>{for(var c in b)k(a,c,{get:b[c],enumerable:!0,configurable:!0,set:v.bind(b,c)})};var D=(a,b)=>()=>(a&&(b=a(a=0)),b);var F=w(import.meta.url),x=Symbol.dispose||Symbol.for("Symbol.dispose"),y=Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose"),G=(a,b,c)=>{if(b!=null){if(typeof b!=="object"&&typeof b!=="function")throw TypeError('Object expected to be assigned to "using" declaration');var d;if(c)d=b[y];if(d===void 0)d=b[x];if(typeof d!=="function")throw TypeError("Object not disposable");a.push([c,d,b])}else if(c)a.push([c]);return b},H=(a,b,c)=>{var d=typeof SuppressedError==="function"?SuppressedError:function(e,f,i,j){return j=Error(i),j.name="SuppressedError",j.error=e,j.suppressed=f,j},h=(e)=>b=c?new d(e,b,"An error was suppressed during disposal"):(c=!0,e),g=(e)=>{while(e=a.pop())try{var f=e[1]&&e[1].call(e[2]);if(e[0])return Promise.resolve(f).then(g,(i)=>(h(i),g()))}catch(i){h(i)}if(c)throw b};return g()};
|
|
2
|
+
export{z as spa,A as tpa,B as upa,C as vpa,D as wpa,F as xpa,G as ypa,H as zpa};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{AL as f,Ax as L,Bx as k,CL as z,HO as _,Yi as J}from"./cli-0.6.3-kz9egvgw.mjs";import{d_ as F,i_ as A}from"./cli-0.6.3-cz70v0dc.mjs";import{afa as Y,cfa as h,dfa as H,efa as X}from"./cli-0.6.3-be9988sa.mjs";import{rga as W,tga as M}from"./cli-0.6.3-ywk23cbf.mjs";import{tha as D,wha as R}from"./cli-0.6.3-tjykjtxh.mjs";import{Bla as q,Nna as C}from"./cli-0.6.3-g7nc10fr.mjs";import{wpa as V}from"./cli-0.6.3-qh59pqrb.mjs";function S(U){let Q=[];for(let w of U){if(w.type!=="user"&&w.type!=="assistant")continue;if("isMeta"in w&&w.isMeta)continue;if("origin"in w&&w.origin&&w.origin.kind!=="human")continue;let K=w.message.content;if(typeof K==="string")Q.push(K);else if(Array.isArray(K)){for(let B of K)if("type"in B&&B.type==="text"&&"text"in B)Q.push(B.text)}}let G=Q.join(`
|
|
2
|
+
`);return G.length>$?G.slice(-$):G}async function T(U,Q){let G=U.trim();if(!G)return null;try{let w=await f({systemPrompt:L([P]),userPrompt:G,outputFormat:{type:"json_schema",schema:{type:"object",properties:{title:{type:"string"}},required:["title"],additionalProperties:!1}},signal:Q,options:{querySource:"generate_session_title",agents:[],isNonInteractiveSession:q(),hasAppendSystemPrompt:!1,mcpTools:[]}}),K=J(w.message.content),B=v().safeParse(F(K)),Z=B.success?B.data.title.trim()||null:null;return W("tengu_session_title_generated",{success:Z!==null}),Z}catch(w){return D(`generateSessionTitle failed: ${w}`,{level:"error"}),W("tengu_session_title_generated",{success:!1}),"Claudin"}}var $=1000,P=`Generate a concise, sentence-case title (3-7 words) that captures the main topic or goal of this coding session. The title should be clear enough that the user recognizes the session in a list. Use sentence case: capitalize only the first word and proper nouns.
|
|
3
|
+
|
|
4
|
+
Return JSON with a single "title" field.
|
|
5
|
+
|
|
6
|
+
Good examples:
|
|
7
|
+
{"title": "Fix login button on mobile"}
|
|
8
|
+
{"title": "Add OAuth authentication"}
|
|
9
|
+
{"title": "Debug failing CI tests"}
|
|
10
|
+
{"title": "Refactor API client error handling"}
|
|
11
|
+
|
|
12
|
+
Bad (too vague): {"title": "Code changes"}
|
|
13
|
+
Bad (too long): {"title": "Investigate and fix the issue where the login button does not respond on mobile devices"}
|
|
14
|
+
Bad (wrong case): {"title": "Fix Login Button On Mobile"}`,v;var I=V(()=>{h();C();M();z();R();A();X();_();k();v=H(()=>Y.object({title:Y.string()}))});
|
|
15
|
+
export{S as ye,T as ze,I as Ae};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{o as f}from"./cli-0.6.3-mcmskrq3.mjs";import{Pr as F,Qr as i}from"./cli-0.6.3-kz9egvgw.mjs";import{$R as z,WR as T,ZR as e,_R as k,eS as d}from"./cli-0.6.3-zmn1fgaa.mjs";import{E5 as c,o5 as W,r5 as m,y5 as y,z5 as U}from"./cli-0.6.3-cfgaczs0.mjs";import{X7 as Z,Z7 as R}from"./cli-0.6.3-cz70v0dc.mjs";import{afa as V,cfa as I,dfa as N,efa as v}from"./cli-0.6.3-be9988sa.mjs";import{Afa as b,pfa as E}from"./cli-0.6.3-pqq8j8h2.mjs";import{rga as q,tga as h}from"./cli-0.6.3-ywk23cbf.mjs";import{Yga as O,bha as p,tha as Y,wha as _}from"./cli-0.6.3-tjykjtxh.mjs";import{_ha as H,iia as w}from"./cli-0.6.3-vp1zy3b1.mjs";import{Hoa as S,Zoa as s}from"./cli-0.6.3-4zj0d42m.mjs";import{xpa as u}from"./cli-0.6.3-qh59pqrb.mjs";I();b();v();var j={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var x={message:"must be 0 (disabled) or ≥100ms"},C=N(()=>V.object({poll_interval_ms_not_at_capacity:V.number().int().min(100),poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x),non_exclusive_heartbeat_interval_ms:V.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:V.number().int().min(100).default(j.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:V.number().int().refine((J)=>J===0||J>=100,x).default(j.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:V.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:V.number().int().min(0).default(120000)}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((J)=>J.non_exclusive_heartbeat_interval_ms>0||J.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function BJ(){let J=E("tengu_bridge_poll_interval_config",j,300000),K=C().safeParse(J);return K.success?K.data:j}s();_();R();e();h();i();_();R();w();m();c();d();p();var g=`{"type":"keep_alive"}
|
|
2
|
+
`,t=1000,l=1000,D=30000,n=600000,r=1e4,o=300000,A=D*2,a=new Set([1002,4001,4003]);class L{ws=null;lastSentId=null;url;state="idle";onData;onCloseCallback;onConnectCallback;headers;sessionId;autoReconnect;isBridge;reconnectAttempts=0;reconnectStartTime=null;reconnectTimer=null;lastReconnectAttemptTime=null;lastActivityTime=0;pingInterval=null;pongReceived=!0;keepAliveInterval=null;messageBuffer;isBunWs=!1;connectStartTime=0;refreshHeaders;constructor(J,K={},Q,X,$){this.url=J,this.headers=K,this.sessionId=Q,this.refreshHeaders=X,this.autoReconnect=$?.autoReconnect??!0,this.isBridge=$?.isBridge??!1,this.messageBuffer=new F(t)}async connect(){if(this.state!=="idle"&&this.state!=="reconnecting"){Y(`WebSocketTransport: Cannot connect, current state is ${this.state}`,{level:"error"}),Z("error","cli_websocket_connect_failed");return}this.state="reconnecting",this.connectStartTime=Date.now(),Y(`WebSocketTransport: Opening ${this.url.href}`),Z("info","cli_websocket_connect_opening");let J={...this.headers};if(this.lastSentId)J["X-Last-Request-Id"]=this.lastSentId,Y(`WebSocketTransport: Adding X-Last-Request-Id header: ${this.lastSentId}`);if(typeof Bun<"u"){let K=new globalThis.WebSocket(this.url.href,{headers:J,proxy:U(this.url.href),tls:W()||void 0});this.ws=K,this.isBunWs=!0,K.addEventListener("open",this.onBunOpen),K.addEventListener("message",this.onBunMessage),K.addEventListener("error",this.onBunError),K.addEventListener("close",this.onBunClose),K.addEventListener("pong",this.onPong)}else{let{default:K}=await import("./wrapper-0.6.3-hct87zwr.mjs"),Q=new K(this.url.href,{headers:J,agent:y(this.url.href),...W()});this.ws=Q,this.isBunWs=!1,Q.on("open",this.onNodeOpen),Q.on("message",this.onNodeMessage),Q.on("error",this.onNodeError),Q.on("close",this.onNodeClose),Q.on("pong",this.onPong)}}onBunOpen=()=>{if(this.handleOpenEvent(),this.lastSentId)this.replayBufferedMessages("")};onBunMessage=(J)=>{let K=typeof J.data==="string"?J.data:String(J.data);if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onBunError=()=>{Y("WebSocketTransport: Error",{level:"error"}),Z("error","cli_websocket_connect_error")};onBunClose=(J)=>{let K=J.code===1000||J.code===1001;Y(`WebSocketTransport: Closed: ${J.code}`,K?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J.code)};onNodeOpen=()=>{let J=this.ws;if(this.handleOpenEvent(),!J)return;let Q=J.upgradeReq;if(Q?.headers?.["x-last-request-id"]){let X=Q.headers["x-last-request-id"];this.replayBufferedMessages(X)}};onNodeMessage=(J)=>{let K=J.toString();if(this.lastActivityTime=Date.now(),Z("info","cli_websocket_message_received",{length:K.length}),this.onData)this.onData(K)};onNodeError=(J)=>{Y(`WebSocketTransport: Error: ${J.message}`,{level:"error"}),Z("error","cli_websocket_connect_error")};onNodeClose=(J,K)=>{let Q=J===1000||J===1001;Y(`WebSocketTransport: Closed: ${J}`,Q?void 0:{level:"error"}),Z("error","cli_websocket_connect_closed"),this.handleConnectionError(J)};onPong=()=>{this.pongReceived=!0};handleOpenEvent(){let J=Date.now()-this.connectStartTime;if(Y("WebSocketTransport: Connected"),Z("info","cli_websocket_connect_connected",{duration_ms:J}),this.isBridge&&this.reconnectStartTime!==null)q("tengu_ws_transport_reconnected",{attempts:this.reconnectAttempts,downtimeMs:Date.now()-this.reconnectStartTime});this.reconnectAttempts=0,this.reconnectStartTime=null,this.lastReconnectAttemptTime=null,this.lastActivityTime=Date.now(),this.state="connected",this.onConnectCallback?.(),this.startPingInterval(),this.startKeepaliveInterval(),k(()=>{this.write({type:"keep_alive"})})}sendLine(J){if(!this.ws||this.state!=="connected")return Y("WebSocketTransport: Not connected"),Z("info","cli_websocket_send_not_connected"),!1;try{return this.ws.send(J),this.lastActivityTime=Date.now(),!0}catch(K){return Y(`WebSocketTransport: Failed to send: ${K}`,{level:"error"}),Z("error","cli_websocket_send_error"),this.handleConnectionError(),!1}}removeWsListeners(J){if(this.isBunWs){let K=J;K.removeEventListener("open",this.onBunOpen),K.removeEventListener("message",this.onBunMessage),K.removeEventListener("error",this.onBunError),K.removeEventListener("close",this.onBunClose),K.removeEventListener("pong",this.onPong)}else{let K=J;K.off("open",this.onNodeOpen),K.off("message",this.onNodeMessage),K.off("error",this.onNodeError),K.off("close",this.onNodeClose),K.off("pong",this.onPong)}}doDisconnect(){if(this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.ws)this.removeWsListeners(this.ws),this.ws.close(),this.ws=null}handleConnectionError(J){if(Y(`WebSocketTransport: Disconnected from ${this.url.href}`+(J!=null?` (code ${J})`:"")),Z("info","cli_websocket_disconnected"),this.isBridge)q("tengu_ws_transport_closed",{closeCode:J,msSinceLastActivity:this.lastActivityTime>0?Date.now()-this.lastActivityTime:-1,wasConnected:this.state==="connected",reconnectAttempts:this.reconnectAttempts});if(this.doDisconnect(),this.state==="closing"||this.state==="closed")return;let K=!1;if(J===4003&&this.refreshHeaders){let $=this.refreshHeaders();if($.Authorization!==this.headers.Authorization)Object.assign(this.headers,$),K=!0,Y("WebSocketTransport: 4003 received but headers refreshed, scheduling reconnect"),Z("info","cli_websocket_4003_token_refreshed")}if(J!=null&&a.has(J)&&!K){Y(`WebSocketTransport: Permanent close code ${J}, not reconnecting`,{level:"error"}),Z("error","cli_websocket_permanent_close",{closeCode:J}),this.state="closed",this.onCloseCallback?.(J);return}if(!this.autoReconnect){this.state="closed",this.onCloseCallback?.(J);return}let Q=Date.now();if(!this.reconnectStartTime)this.reconnectStartTime=Q;if(this.lastReconnectAttemptTime!==null&&Q-this.lastReconnectAttemptTime>A)Y(`WebSocketTransport: Detected system sleep (${Math.round((Q-this.lastReconnectAttemptTime)/1000)}s gap), resetting reconnection budget`),Z("info","cli_websocket_sleep_detected",{gapMs:Q-this.lastReconnectAttemptTime}),this.reconnectStartTime=Q,this.reconnectAttempts=0;this.lastReconnectAttemptTime=Q;let X=Q-this.reconnectStartTime;if(X<n){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(!K&&this.refreshHeaders){let B=this.refreshHeaders();Object.assign(this.headers,B),Y("WebSocketTransport: Refreshed headers for reconnect")}this.state="reconnecting",this.reconnectAttempts++;let $=Math.min(l*Math.pow(2,this.reconnectAttempts-1),D),G=Math.max(0,$+$*0.25*(2*Math.random()-1));if(Y(`WebSocketTransport: Reconnecting in ${Math.round(G)}ms (attempt ${this.reconnectAttempts}, ${Math.round(X/1000)}s elapsed)`),Z("error","cli_websocket_reconnect_attempt",{reconnectAttempts:this.reconnectAttempts}),this.isBridge)q("tengu_ws_transport_reconnecting",{attempt:this.reconnectAttempts,elapsedMs:X,delayMs:Math.round(G)});this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},G)}else if(Y(`WebSocketTransport: Reconnection time budget exhausted after ${Math.round(X/1000)}s for ${this.url.href}`,{level:"error"}),Z("error","cli_websocket_reconnect_exhausted",{reconnectAttempts:this.reconnectAttempts,elapsedMs:X}),this.state="closed",this.onCloseCallback)this.onCloseCallback(J)}close(){if(this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;this.stopPingInterval(),this.stopKeepaliveInterval(),z(),this.state="closing",this.doDisconnect()}replayBufferedMessages(J){let K=this.messageBuffer.toArray();if(K.length===0)return;let Q=0;if(J){let $=K.findIndex((G)=>("uuid"in G)&&G.uuid===J);if($>=0){Q=$+1;let G=K.slice(Q);if(this.messageBuffer.clear(),this.messageBuffer.addAll(G),G.length===0)this.lastSentId=null;Y(`WebSocketTransport: Evicted ${Q} confirmed messages, ${G.length} remaining`),Z("info","cli_websocket_evicted_confirmed_messages",{evicted:Q,remaining:G.length})}}let X=K.slice(Q);if(X.length===0){Y("WebSocketTransport: No new messages to replay"),Z("info","cli_websocket_no_messages_to_replay");return}Y(`WebSocketTransport: Replaying ${X.length} buffered messages`),Z("info","cli_websocket_messages_to_replay",{count:X.length});for(let $ of X){let G=O($)+`
|
|
3
|
+
`;if(!this.sendLine(G)){this.handleConnectionError();break}}}isConnectedStatus(){return this.state==="connected"}isClosedStatus(){return this.state==="closed"}setOnData(J){this.onData=J}setOnConnect(J){this.onConnectCallback=J}setOnClose(J){this.onCloseCallback=J}getStateLabel(){return this.state}async write(J){if("uuid"in J&&typeof J.uuid==="string")this.messageBuffer.add(J),this.lastSentId=J.uuid;let K=O(J)+`
|
|
4
|
+
`;if(this.state!=="connected")return;let Q=this.sessionId?` session=${this.sessionId}`:"",X=this.getControlMessageDetailLabel(J);Y(`WebSocketTransport: Sending message type=${J.type}${Q}${X}`),this.sendLine(K)}getControlMessageDetailLabel(J){if(J.type==="control_request"){let{request_id:K,request:Q}=J,X=Q.subtype==="can_use_tool"?Q.tool_name:"";return` subtype=${Q.subtype} request_id=${K}${X?` tool=${X}`:""}`}if(J.type==="control_response"){let{subtype:K,request_id:Q}=J.response;return` subtype=${K} request_id=${Q}`}return""}startPingInterval(){this.stopPingInterval(),this.pongReceived=!0;let J=Date.now();this.pingInterval=setInterval(()=>{if(this.state==="connected"&&this.ws){let K=Date.now(),Q=K-J;if(J=K,Q>A){Y(`WebSocketTransport: ${Math.round(Q/1000)}s tick gap detected — process was suspended, forcing reconnect`),Z("info","cli_websocket_sleep_detected_on_ping",{gapMs:Q}),this.handleConnectionError();return}if(!this.pongReceived){Y("WebSocketTransport: No pong received, connection appears dead",{level:"error"}),Z("error","cli_websocket_pong_timeout"),this.handleConnectionError();return}this.pongReceived=!1;try{this.ws.ping?.()}catch(X){Y(`WebSocketTransport: Ping failed: ${X}`,{level:"error"}),Z("error","cli_websocket_ping_failed")}}},r)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}startKeepaliveInterval(){if(this.stopKeepaliveInterval(),H(process.env.CLAUDE_CODE_REMOTE))return;this.keepAliveInterval=setInterval(()=>{if(this.state==="connected"&&this.ws)try{this.ws.send(g),this.lastActivityTime=Date.now(),Y("WebSocketTransport: Sent periodic keep_alive data frame")}catch(J){Y(`WebSocketTransport: Periodic keep_alive failed: ${J}`,{level:"error"}),Z("error","cli_websocket_keepalive_failed")}},o)}stopKeepaliveInterval(){if(this.keepAliveInterval)clearInterval(this.keepAliveInterval),this.keepAliveInterval=null}}var JJ=100,KJ=15000,QJ=3000;class XJ extends L{postUrl;uploader;streamEventBuffer=[];streamEventTimer=null;constructor(J,K={},Q,X,$){super(J,K,Q,X,$);let{maxConsecutiveFailures:G,onBatchDropped:B}=$??{};this.postUrl=YJ(J),this.uploader=new f({maxBatchSize:500,maxQueueSize:1e5,baseDelayMs:500,maxDelayMs:8000,jitterMs:1000,maxConsecutiveFailures:G,onBatchDropped:(M,P)=>{Z("error","cli_hybrid_batch_dropped_max_failures",{batchSize:M,failures:P}),B?.(M,P)},send:(M)=>this.postOnce(M)}),Y(`HybridTransport: POST URL = ${this.postUrl}`),Z("info","cli_hybrid_transport_initialized")}async write(J){if(J.type==="stream_event"){if(this.streamEventBuffer.push(J),!this.streamEventTimer)this.streamEventTimer=setTimeout(()=>this.flushStreamEvents(),JJ);return}return await this.uploader.enqueue([...this.takeStreamEvents(),J]),this.uploader.flush()}async writeBatch(J){return await this.uploader.enqueue([...this.takeStreamEvents(),...J]),this.uploader.flush()}get droppedBatchCount(){return this.uploader.droppedBatchCount}flush(){return this.uploader.enqueue(this.takeStreamEvents()),this.uploader.flush()}takeStreamEvents(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;let J=this.streamEventBuffer;return this.streamEventBuffer=[],J}flushStreamEvents(){this.streamEventTimer=null,this.uploader.enqueue(this.takeStreamEvents())}close(){if(this.streamEventTimer)clearTimeout(this.streamEventTimer),this.streamEventTimer=null;this.streamEventBuffer=[];let J=this.uploader,K;Promise.race([J.flush(),new Promise((Q)=>{K=setTimeout(Q,QJ)})]).finally(()=>{clearTimeout(K),J.close()}),super.close()}async postOnce(J){let K=T();if(!K){Y("HybridTransport: No session token available for POST"),Z("warn","cli_hybrid_post_no_token");return}let Q={Authorization:`Bearer ${K}`,"Content-Type":"application/json"},X;try{X=await S.post(this.postUrl,{events:J},{headers:Q,validateStatus:()=>!0,timeout:KJ})}catch($){throw Y(`HybridTransport: POST error: ${$.message}`),Z("warn","cli_hybrid_post_network_error"),$}if(X.status>=200&&X.status<300){Y(`HybridTransport: POST success count=${J.length}`);return}if(X.status>=400&&X.status<500&&X.status!==429){Y(`HybridTransport: POST returned ${X.status} (permanent), dropping`),Z("warn","cli_hybrid_post_client_error",{status:X.status});return}throw Y(`HybridTransport: POST returned ${X.status} (retryable)`),Z("warn","cli_hybrid_post_retryable_error",{status:X.status}),Error(`POST failed with ${X.status}`)}}function YJ(J){let K=J.protocol==="wss:"?"https:":"http:",Q=J.pathname;if(Q=Q.replace("/ws/","/session/"),!Q.endsWith("/events"))Q=Q.endsWith("/")?Q+"events":Q+"/events";return`${K}//${J.host}${Q}${J.search}`}
|
|
5
|
+
export{j,BJ as k,L as l,XJ as m};
|