@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,4 @@
|
|
|
1
|
+
import{Ad as Eq,ud as c}from"./cli-0.6.3-e56v1kt5.mjs";import{$n as Aq,BI as v,BJ as vq,CI as m,CJ as y,DJ as Qq,EI as Oq,EJ as Xq,FJ as Yq,GJ as $q,HJ as d,In as s,Jn as Tq,Jr as l,KJ as Dq,Kr as wq,Mn as t,On as Mq,Sn as i,Un as Rq,XI as n,Yn as A,_n as D,ao as h,bJ as e,bo as S,cJ as P,co as Fq,gJ as jq,hJ as O,iJ as qq,kJ as I,lJ as Gq,rJ as Cq,uJ as b,vJ as Lq,yJ as Hq,zJ as Jq}from"./cli-0.6.3-kz9egvgw.mjs";import{Pda as a,Taa as F,Vaa as L,Xda as Bq,gba as _q,oaa as V,waa as Kq}from"./cli-0.6.3-cz70v0dc.mjs";import{fha as p,jha as Wq}from"./cli-0.6.3-tjykjtxh.mjs";import{Mha as o,Pha as N,Uha as Uq}from"./cli-0.6.3-2seqm104.mjs";import{Nna as xq,Uja as f}from"./cli-0.6.3-g7nc10fr.mjs";import{wpa as Zq}from"./cli-0.6.3-qh59pqrb.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(x){a(o(x));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,W=`${Z.name}@${Y}`,Q=await Jq({pluginId:W,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${W} (scope: ${H})${Q.depNote}`,pluginId:W,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),W=F(Z),Q,$;if(z)Q=Object.keys(W?.enabledPlugins??{}).find((U)=>U===q||U===z.name||U.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let U=yq(q);if(!U)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=U.pluginId,$=U.pluginName}let B=zq(H),x=O().plugins[Q],M=x?.find((U)=>U.scope===H&&U.projectPath===B);if(!M){let{scope:U}=kq(Q);if(U!==H&&x&&x.length>0){if(U==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudin/settings.json, shared with your team). To disable just for you: claudin plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${U} scope, not ${H}. Use --scope ${U} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...W?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(t(Q),G)await s(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(i(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),W=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&W===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?W===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:x}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(x)return{success:!1,message:`Failed to ${X} plugin: ${x.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
|
|
2
|
+
${G.join(`
|
|
3
|
+
`)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function xG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),W=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let x=await Yq(G.source,{manifest:{name:G.name}});Q=x.path,B=!0,K=x.gitCommitSha,$=await b(q,G.source,x.manifest,x.path,G.version,x.gitCommitSha)}else{let x;try{x=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=x.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let x=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===x||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:W,alreadyUpToDate:!0,scope:Y};x=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,x,$,K),_&&_!==x){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((U)=>U.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${W||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:W,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{xq();Rq();Uq();Wq();Bq();Oq();Fq();Cq();jq();Tq();Aq();vq();Dq();Mq();wq();Eq();Lq();_q();Kq();k=["user","project","local"],HG=["user","project","local","managed"]});
|
|
4
|
+
export{k as hd,HG as id,JG as jd,QG as kd,kq as ld,XG as md,YG as nd,$G as od,zG as pd,ZG as qd,xG as rd,hq as sd};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Sh as H,Uh as C}from"./cli-0.6.3-6n6gtkcy.mjs";import{Vh as k,Wh as y}from"./cli-0.6.3-f6vwjwer.mjs";import{$0 as R,U0 as X,W0 as Y}from"./cli-0.6.3-syb9w8h5.mjs";import{b1 as G,c1 as m}from"./cli-0.6.3-8qad2cfe.mjs";import{F1 as w,G1 as E,X4 as B,k5 as f}from"./cli-0.6.3-nawttnnp.mjs";import{Pda as Q,Vba as S,Xda as D,Yba as j,rca as x}from"./cli-0.6.3-cz70v0dc.mjs";import{pga as V,qga as b}from"./cli-0.6.3-mwvq805r.mjs";import{Hoa as W,Zoa as I}from"./cli-0.6.3-4zj0d42m.mjs";import{wpa as Z}from"./cli-0.6.3-qh59pqrb.mjs";async function _(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests`;return(await W.post(J,L,{headers:K})).data}async function $(L,N){let{accessToken:P,orgUUID:K}=await X(),J={...Y(P),"x-organization-uuid":K},F=`${V().BASE_API_URL}/api/oauth/organizations/${K}/admin_requests/me?request_type=${L}`;for(let v of N)F+=`&statuses=${v}`;return(await W.get(F,{headers:J})).data}async function z(L){let{accessToken:N,orgUUID:P}=await X(),K={...Y(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests/eligibility?request_type=${L}`;return(await W.get(J,{headers:K})).data}var M=Z(()=>{I();b();R()});async function i(){if(!j().hasVisitedExtraUsage)S((J)=>({...J,hasVisitedExtraUsage:!0}));H();let L=B(),N=L==="team"||L==="enterprise";if(!w()&&N){let J;try{J=(await k())?.extra_usage}catch(F){Q(F)}if(J?.is_enabled&&J.monthly_limit===null)return{type:"message",value:"Your organization already has unlimited extra usage. No request needed."};try{if((await z("limit_increase"))?.is_allowed===!1)return{type:"message",value:"Please contact your admin to manage extra usage settings."}}catch(F){Q(F)}try{let F=await $("limit_increase",["pending","dismissed"]);if(F&&F.length>0)return{type:"message",value:"You have already submitted a request for extra usage to your admin."}}catch(F){Q(F)}try{return await _({request_type:"limit_increase",details:null}),{type:"message",value:J?.is_enabled?"Request sent to your admin to increase extra usage.":"Request sent to your admin to enable extra usage."}}catch(F){Q(F)}return{type:"message",value:"Please contact your admin to manage extra usage settings."}}let K=N?"https://claude.ai/admin-settings/usage":"https://claude.ai/settings/usage";try{let J=await G(K);return{type:"browser-opened",url:K,opened:J}}catch(J){return Q(J),{type:"message",value:`Failed to open browser. Please visit ${K} to manage extra usage.`}}}var A=Z(()=>{M();C();y();f();E();m();x();D()});
|
|
2
|
+
export{i as Ph,A as Qh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{oe as R,qe as d}from"./cli-0.6.3-rxzhhezk.mjs";import{HV as j,KV as c}from"./cli-0.6.3-gm6gpvcp.mjs";import{tha as K,wha as D}from"./cli-0.6.3-tjykjtxh.mjs";import{Nha as C,Uha as h}from"./cli-0.6.3-2seqm104.mjs";import{wpa as I,xpa as J}from"./cli-0.6.3-qh59pqrb.mjs";async function i({environmentId:X,title:Q,events:q,gitRepoUrl:$,branch:Y,signal:z,baseUrl:G,getAccessToken:L,permissionMode:W}){let{getClaudeAIOAuthTokens:B}=await import("./auth-0.6.3-s9a1xnxb.mjs"),{getOrganizationUUID:Z}=await import("./client-0.6.3-6pn9sb4n.mjs"),{getOauthConfig:V}=await import("./oauth-0.6.3-vxgkeqfx.mjs"),{getOAuthHeaders:P}=await import("./api-0.6.3-c8cpd5e4.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-0.6.3-8698wvb5.mjs"),{getDefaultBranch:_}=await import("./git-0.6.3-vzgvhd0s.mjs"),{getMainLoopModel:M}=await import("./model-0.6.3-s0ftwaqt.mjs"),{default:T}=await import("./index-0.6.3-f5732qxw.mjs"),x=L?.()??B()?.accessToken;if(!x)return K("[bridge] No access token for session creation"),null;let k=await Z();if(!k)return K("[bridge] No org UUID for session creation"),null;let E=null,v=null;if($){let{parseGitRemote:y}=await import("./detectRepository-0.6.3-8698wvb5.mjs"),O=y($);if(O){let{host:A,owner:S,name:f}=O,F=Y||await _()||void 0;E={type:"git_repository",url:`https://${A}/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}else{let A=N($);if(A){let[S,f]=A.split("/");if(S&&f){let F=Y||await _()||void 0;E={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}}}}let m={...Q!==void 0&&{title:Q},events:q,session_context:{sources:E?[E]:[],outcomes:v?[v]:[],model:M()},environment_id:X,source:"remote-control",...W&&{permission_mode:W}},U={...P(x),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":k},b=`${G??V().BASE_API_URL}/v1/sessions`,H;try{H=await T.post(b,m,{headers:U,signal:z,validateStatus:(y)=>y<500})}catch(y){return K(`[bridge] Session creation request failed: ${C(y)}`),null}if(!(H.status===200||H.status===201)){let y=R(H.data);return K(`[bridge] Session creation failed with status ${H.status}${y?`: ${y}`:""}`),null}let w=H.data;if(!w||typeof w!=="object"||!("id"in w)||typeof w.id!=="string")return K("[bridge] No session ID in response"),null;return w.id}async function r(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.6.3-s9a1xnxb.mjs"),{getOrganizationUUID:$}=await import("./client-0.6.3-6pn9sb4n.mjs"),{getOauthConfig:Y}=await import("./oauth-0.6.3-vxgkeqfx.mjs"),{getOAuthHeaders:z}=await import("./api-0.6.3-c8cpd5e4.mjs"),{default:G}=await import("./index-0.6.3-f5732qxw.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L)return K("[bridge] No access token for session fetch"),null;let W=await $();if(!W)return K("[bridge] No org UUID for session fetch"),null;let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}`,V=1e4;K(`[bridge] Fetching session ${X}`);let P;try{P=await G.get(Z,{headers:B,timeout:V,validateStatus:(N)=>N<500})}catch(N){if(G.isAxiosError(N)){let _=N.response?.status??"no-response",M=N.code??"unknown-code",T=N.config?.url??Z,x=N.config?.method?.toUpperCase()??"GET",k=N.message??C(N),E=N.config?.timeout??V;K(`[bridge] Session fetch request failed: status=${_} code=${M} method=${x} url=${T} timeout=${E} message=${k}`)}else K(`[bridge] Session fetch request failed: url=${Z} timeout=${V} message=${C(N)}`);return null}if(P.status!==200){let N=R(P.data);return K(`[bridge] Session fetch failed with status ${P.status} url=${Z}${N?`: ${N}`:""}`),null}return P.data}async function t(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.6.3-s9a1xnxb.mjs"),{getOrganizationUUID:$}=await import("./client-0.6.3-6pn9sb4n.mjs"),{getOauthConfig:Y}=await import("./oauth-0.6.3-vxgkeqfx.mjs"),{getOAuthHeaders:z}=await import("./api-0.6.3-c8cpd5e4.mjs"),{default:G}=await import("./index-0.6.3-f5732qxw.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L){K("[bridge] No access token for session archive");return}let W=await $();if(!W){K("[bridge] No org UUID for session archive");return}let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}/archive`;K(`[bridge] Archiving session ${X}`);let V=await G.post(Z,{},{headers:B,timeout:Q?.timeoutMs??1e4,validateStatus:(P)=>P<500});if(V.status===200)K(`[bridge] Session ${X} archived successfully`);else{let P=R(V.data);K(`[bridge] Session archive failed with status ${V.status}${P?`: ${P}`:""}`)}}async function o(X,Q,q){let{getClaudeAIOAuthTokens:$}=await import("./auth-0.6.3-s9a1xnxb.mjs"),{getOrganizationUUID:Y}=await import("./client-0.6.3-6pn9sb4n.mjs"),{getOauthConfig:z}=await import("./oauth-0.6.3-vxgkeqfx.mjs"),{getOAuthHeaders:G}=await import("./api-0.6.3-c8cpd5e4.mjs"),{default:L}=await import("./index-0.6.3-f5732qxw.mjs"),W=q?.getAccessToken?.()??$()?.accessToken;if(!W){K("[bridge] No access token for session title update");return}let B=await Y();if(!B){K("[bridge] No org UUID for session title update");return}let Z={...G(W),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},V=j(X),P=`${q?.baseUrl??z().BASE_API_URL}/v1/sessions/${V}`;K(`[bridge] Updating session title: ${V} → ${Q}`);try{let N=await L.patch(P,{title:Q},{headers:Z,timeout:1e4,validateStatus:(_)=>_<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let _=R(N.data);K(`[bridge] Session title update failed with status ${N.status}${_?`: ${_}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${C(N)}`)}}var p=I(()=>{D();h();d();c()});
|
|
2
|
+
export{i as ge,r as he,t as ie,o as je,p as ke};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{wpa as j}from"./cli-0.6.3-qh59pqrb.mjs";function c(){let q=new Map;for(let[V,z]of Object.entries(J)){for(let[D,H]of Object.entries(z))J[D]={open:`\x1B[${H[0]}m`,close:`\x1B[${H[1]}m`},z[D]=J[D],q.set(H[0],H[1]);Object.defineProperty(J,V,{value:z,enumerable:!1})}return Object.defineProperty(J,"codes",{value:q,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=M(),J.color.ansi256=Y(),J.color.ansi16m=k(),J.bgColor.ansi=M(10),J.bgColor.ansi256=Y(10),J.bgColor.ansi16m=k(10),Object.defineProperties(J,{rgbToAnsi256:{value(V,z,D){if(V===z&&z===D){if(V<8)return 16;if(V>248)return 231;return Math.round((V-8)/247*24)+232}return 16+36*Math.round(V/255*5)+6*Math.round(z/255*5)+Math.round(D/255*5)},enumerable:!1},hexToRgb:{value(V){let z=/[a-f\d]{6}|[a-f\d]{3}/i.exec(V.toString(16));if(!z)return[0,0,0];let[D]=z;if(D.length===3)D=[...D].map((Q)=>Q+Q).join("");let H=Number.parseInt(D,16);return[H>>16&255,H>>8&255,H&255]},enumerable:!1},hexToAnsi256:{value:(V)=>J.rgbToAnsi256(...J.hexToRgb(V)),enumerable:!1},ansi256ToAnsi:{value(V){if(V<8)return 30+V;if(V<16)return 90+(V-8);let z,D,H;if(V>=232)z=((V-232)*10+8)/255,D=z,H=z;else{V-=16;let N=V%36;z=Math.floor(V/36)/5,D=Math.floor(N/6)/5,H=N%6/5}let Q=Math.max(z,D,H)*2;if(Q===0)return 30;let U=30+(Math.round(H)<<2|Math.round(D)<<1|Math.round(z));if(Q===2)U+=60;return U},enumerable:!1},rgbToAnsi:{value:(V,z,D)=>J.ansi256ToAnsi(J.rgbToAnsi256(V,z,D)),enumerable:!1},hexToAnsi:{value:(V)=>J.ansi256ToAnsi(J.hexToAnsi256(V)),enumerable:!1}}),J}var M=(q=0)=>(V)=>`\x1B[${V+q}m`,Y=(q=0)=>(V)=>`\x1B[${38+q};5;${V}m`,k=(q=0)=>(V,z,D)=>`\x1B[${38+q};2;${V};${z};${D}m`,J,V1,u,m,q1,p,X;var R=j(()=>{J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V1=Object.keys(J.modifier),u=Object.keys(J.color),m=Object.keys(J.bgColor),q1=[...u,...m];p=c(),X=p});import I from"node:process";import d from"node:os";import E from"node:tty";function W(q,V=globalThis.Deno?globalThis.Deno.args:I.argv){let z=q.startsWith("-")?"":q.length===1?"-":"--",D=V.indexOf(z+q),H=V.indexOf("--");return D!==-1&&(H===-1||D<H)}function y(){if("FORCE_COLOR"in K){if(K.FORCE_COLOR==="true")return 1;if(K.FORCE_COLOR==="false")return 0;return K.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(K.FORCE_COLOR,10),3)}}function g(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function i(q,{streamIsTTY:V,sniffFlags:z=!0}={}){let D=y();if(D!==void 0)B=D;let H=z?B:D;if(H===0)return 0;if(z){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if("TF_BUILD"in K&&"AGENT_NAME"in K)return 1;if(q&&!V&&H===void 0)return 0;let Q=H||0;if(K.TERM==="dumb")return Q;if(I.platform==="win32"){let U=d.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in K){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((U)=>(U in K)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in K))||K.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if(K.TERM==="xterm-kitty")return 3;if(K.TERM==="xterm-ghostty")return 3;if(K.TERM==="wezterm")return 3;if("TERM_PROGRAM"in K){let U=Number.parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM))return 1;if("COLORTERM"in K)return 1;return Q}function T(q,V={}){let z=i(q,{streamIsTTY:q&&q.isTTY,...V});return g(z)}var K,B,a,A;var C=j(()=>{({env:K}=I);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))B=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))B=1;a={stdout:T({isTTY:E.isatty(1)}),stderr:T({isTTY:E.isatty(2)})},A=a});function F(q,V,z){let D=q.indexOf(V);if(D===-1)return q;let H=V.length,Q=0,U="";do U+=q.slice(Q,D)+V+z,Q=D+H,D=q.indexOf(V,Q);while(D!==-1);return U+=q.slice(Q),U}function _(q,V,z,D){let H=0,Q="";do{let U=q[D-1]==="\r";Q+=q.slice(H,U?D-1:D)+V+(U?`\r
|
|
2
|
+
`:`
|
|
3
|
+
`)+z,H=D+1,D=q.indexOf(`
|
|
4
|
+
`,H)}while(D!==-1);return Q+=q.slice(H),Q}var b=()=>{};class o{constructor(q){return v(q)}}function G(q){return v(q)}var S,h,L,Z,O,f,$,n=(q,V={})=>{if(V.level&&!(Number.isInteger(V.level)&&V.level>=0&&V.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let z=S?S.level:0;q.level=V.level===void 0?z:V.level},v=(q)=>{let V=(...z)=>z.join(" ");return n(V,q),Object.setPrototypeOf(V,G.prototype),V},P=(q,V,z,...D)=>{if(q==="rgb"){if(V==="ansi16m")return X[z].ansi16m(...D);if(V==="ansi256")return X[z].ansi256(X.rgbToAnsi256(...D));return X[z].ansi(X.rgbToAnsi(...D))}if(q==="hex")return P("rgb",V,z,...X.hexToRgb(...D));return X[z][q](...D)},t,r,x=(q,V,z)=>{let D,H;if(z===void 0)D=q,H=V;else D=z.openAll+q,H=V+z.closeAll;return{open:q,close:V,openAll:D,closeAll:H,parent:z}},w=(q,V,z)=>{let D=(...H)=>l(D,H.length===1?""+H[0]:H.join(" "));return Object.setPrototypeOf(D,r),D[L]=q,D[Z]=V,D[O]=z,D},l=(q,V)=>{if(q.level<=0||!V)return q[O]?"":V;let z=q[Z];if(z===void 0)return V;let{openAll:D,closeAll:H}=z;if(V.includes("\x1B"))while(z!==void 0)V=F(V,z.close,z.open),z=z.parent;let Q=V.indexOf(`
|
|
5
|
+
`);if(Q!==-1)V=_(V,H,D,Q);return D+V+H},s,Z1,O1;var e=j(()=>{R();C();b();({stdout:S,stderr:h}=A),L=Symbol("GENERATOR"),Z=Symbol("STYLER"),O=Symbol("IS_EMPTY"),f=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null);Object.setPrototypeOf(G.prototype,Function.prototype);for(let[q,V]of Object.entries(X))$[q]={get(){let z=w(this,x(V.open,V.close,this[Z]),this[O]);return Object.defineProperty(this,q,{value:z}),z}};$.visible={get(){let q=w(this,this[Z],!0);return Object.defineProperty(this,"visible",{value:q}),q}};t=["rgb","hex","ansi256"];for(let q of t){$[q]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"color",...D),X.color.close,this[Z]);return w(this,H,this[O])}}};let V="bg"+q[0].toUpperCase()+q.slice(1);$[V]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"bgColor",...D),X.bgColor.close,this[Z]);return w(this,H,this[O])}}}}r=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[L].level},set(q){this[L].level=q}}});Object.defineProperties(G.prototype,$);s=G(),Z1=G({level:h?h.level:0}),O1=s});
|
|
6
|
+
export{o as F5,O1 as G5,e as H5};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{xS as W,yS as P}from"./cli-0.6.3-razq4hma.mjs";import{G_ as A,I_ as y,Pda as O,W8 as _,Xda as F,a8 as K,b8 as I,cca as B,dca as G,rca as S,y8 as M,z8 as R}from"./cli-0.6.3-cz70v0dc.mjs";import{Dfa as D,Efa as x}from"./cli-0.6.3-0xzsm005.mjs";import{koa as $,loa as z}from"./cli-0.6.3-z6sz55zd.mjs";z();x();S();y();I();_();F();P();var T=[/(?:^|\/)(?:package-lock\.json|yarn\.lock|bun\.lock|bun\.lockb|pnpm-lock\.yaml|Pipfile\.lock|poetry\.lock|Cargo\.lock|Gemfile\.lock|go\.sum|composer\.lock|uv\.lock)$/,/\.generated\./,/(?:^|\/)(?:dist|build|out|target|node_modules|\.next|__pycache__)\//,/\.(?:min\.js|min\.css|map|pyc|pyo)$/,/\.(?:json|ya?ml|toml|xml|ini|cfg|conf|env|lock|txt|md|mdx|rst|csv|log|svg)$/i,/(?:^|\/)\.?(?:eslintrc|prettierrc|babelrc|editorconfig|gitignore|gitattributes|dockerignore|npmrc)/,/(?:^|\/)(?:tsconfig|jsconfig|biome|vitest\.config|jest\.config|webpack\.config|vite\.config|rollup\.config)\.[a-z]+$/,/(?:^|\/)\.(?:github|vscode|idea|claude)\//,/(?:^|\/)(?:CHANGELOG|LICENSE|CONTRIBUTING|CODEOWNERS|README)(?:\.[a-z]+)?$/i];function k(L){return!T.some((U)=>U.test(L))}function d(L,U=20){let H=new Map;for(let V of L)H.set(V,(H.get(V)||0)+1);return Array.from(H.entries()).sort((V,Q)=>Q[1]-V[1]).slice(0,U).map(([V,Q])=>`${Q.toString().padStart(6)} ${V}`).join(`
|
|
2
|
+
`)}function E(L,U){let H=[],V=new Set,Q=new Map;for(let J=1;H.length<U&&J<=U;J++)for(let X of L){if(H.length>=U)break;if(!k(X))continue;let Y=Math.max(X.lastIndexOf("/"),X.lastIndexOf("\\")),Z=Y>=0?X.slice(Y+1):X;if(!Z||V.has(Z))continue;let q=Y>=0?X.slice(0,Y):".";if((Q.get(q)??0)>=J)continue;H.push(Z),V.add(Z),Q.set(q,(Q.get(q)??0)+1)}return H.length>=U?H:[]}async function N(){if(A.platform==="win32")return[];if(!await R())return[];try{let L=await W(),U=["log","-n","1000","--pretty=format:","--name-only","--diff-filter=M"],H=new Map,V=(J)=>{for(let X of J.split(`
|
|
3
|
+
`)){let Y=X.trim();if(Y)H.set(Y,(H.get(Y)??0)+1)}};if(L){let{stdout:J}=await K("git",[...U,`--author=${L}`],{cwd:D()});V(J)}if(H.size<10){let{stdout:J}=await K(M(),U,{cwd:D()});V(J)}let Q=Array.from(H.entries()).sort((J,X)=>X[1]-J[1]).map(([J])=>J);return E(Q,5)}catch(L){return O(L),[]}}var b=604800000;function v(L){let U=B(),H=U.exampleFiles?.length?U.exampleFiles:["<filepath>"],Q=[...["fix lint errors","fix typecheck errors",`how does ${H[0]} work?`,`refactor ${H[Math.floor(H.length/2)]}`,"how do I log an error?",`edit ${H[H.length-1]} to...`,`write a test for ${H[0]}`,"create a util logging.py that..."]];for(let J=Q.length-1;J>0;J--){let X=Math.floor(Math.random()*(J+1));[Q[J],Q[X]]=[Q[X],Q[J]]}return Q.slice(0,L).map((J)=>`Try "${J}"`)}var p=$(()=>{return v(1)[0]??'Try "fix lint errors"'}),c=$((L)=>{return v(L)}),r=$(async()=>{let L=B(),U=Date.now(),H=L.exampleFilesGeneratedAt??0;if(U-H>b)L.exampleFiles=[];if(!L.exampleFiles?.length)N().then((V)=>{if(V.length)G((Q)=>({...Q,exampleFiles:V,exampleFilesGeneratedAt:Date.now()}))})});
|
|
4
|
+
export{d as Ya,E as Za,p as _a,c as $a,r as ab};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{md as j,nd as w,od as _,pd as D,qd as L,rd as A,sd as O}from"./cli-0.6.3-5pxyd9b0.mjs";import{$n as b,Yn as R,lz as W,mP as h,oP as y,oz as V,qz as C,sJ as X,tJ as I}from"./cli-0.6.3-kz9egvgw.mjs";import{K7 as Q,L7 as N,Pda as U,Xda as S}from"./cli-0.6.3-cz70v0dc.mjs";import{rga as K,tga as v}from"./cli-0.6.3-ywk23cbf.mjs";import{Cha as M,yha as x}from"./cli-0.6.3-cbyjhbhd.mjs";import{Nha as B,Uha as F}from"./cli-0.6.3-2seqm104.mjs";N();F();y();S();I();b();M();C();v();O();function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${Q.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=R(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...W(Y,$,X())}})():{};K("tengu_plugin_command_failed",{command:J,error_category:V(z),...H}),process.exit(1)}async function g(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await j(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function a(z,J="user",q=!1){try{let G=await w(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${Q.tick} ${G.message}`);let{name:H,marketplace:Y}=R(G.pluginId||z);K("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...W(H,Y,X())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function i(z,J){try{let q=await _(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function u(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${Q.tick} ${q.message}`);let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...W(G,H,X())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function n(){try{let z=await L();if(!z.success)throw Error(z.message);console.log(`${Q.tick} ${z.message}`),K("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function r(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope…
|
|
2
|
+
`);let q=await A(z,J);if(!q.success)throw Error(q.message);if(x(`${Q.tick} ${q.message}
|
|
3
|
+
`),!q.alreadyUpToDate){let{name:G,marketplace:H}=R(q.pluginId||z);K("tengu_plugin_updated_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...W(G,H,X())})}await h(0)}catch(q){Z(q,"update",z)}}
|
|
4
|
+
export{g as s,a as t,i as u,u as v,n as w,r as x};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{q as j,r as v}from"./cli-0.6.3-mcmskrq3.mjs";import{gg as C}from"./cli-0.6.3-92mddczk.mjs";import{YR as S,ZR as b}from"./cli-0.6.3-zmn1fgaa.mjs";import{$Z as E,ZZ as R}from"./cli-0.6.3-z8vc44s1.mjs";import{afa as Z,cfa as U,dfa as w,efa as z}from"./cli-0.6.3-be9988sa.mjs";import{Afa as I,nfa as L}from"./cli-0.6.3-pqq8j8h2.mjs";import{Yga as D,Zga as T,bha as u,tha as M,wha as l}from"./cli-0.6.3-tjykjtxh.mjs";import{Nha as f,Uha as p}from"./cli-0.6.3-2seqm104.mjs";import{Hoa as k,Zoa as h}from"./cli-0.6.3-4zj0d42m.mjs";U();I();z();E();C();var F={init_retry_max_attempts:3,init_retry_base_delay_ms:500,init_retry_jitter_fraction:0.25,init_retry_max_delay_ms:4000,http_timeout_ms:1e4,uuid_dedup_buffer_size:2000,heartbeat_interval_ms:20000,heartbeat_jitter_fraction:0.1,token_refresh_buffer_ms:300000,teardown_archive_timeout_ms:1500,connect_timeout_ms:15000,min_version:"0.0.0",should_show_app_upgrade_message:!1},m=w(()=>Z.object({init_retry_max_attempts:Z.number().int().min(1).max(10).default(3),init_retry_base_delay_ms:Z.number().int().min(100).default(500),init_retry_jitter_fraction:Z.number().min(0).max(1).default(0.25),init_retry_max_delay_ms:Z.number().int().min(500).default(4000),http_timeout_ms:Z.number().int().min(2000).default(1e4),uuid_dedup_buffer_size:Z.number().int().min(100).max(50000).default(2000),heartbeat_interval_ms:Z.number().int().min(5000).max(30000).default(20000),heartbeat_jitter_fraction:Z.number().min(0).max(0.5).default(0.1),token_refresh_buffer_ms:Z.number().int().min(30000).max(1800000).default(300000),teardown_archive_timeout_ms:Z.number().int().min(500).max(2000).default(1500),connect_timeout_ms:Z.number().int().min(5000).max(60000).default(15000),min_version:Z.string().refine((J)=>{try{return R(J,"0.0.0"),!0}catch{return!1}}).default("0.0.0"),should_show_app_upgrade_message:Z.boolean().default(!1)}));async function y(){let J=await L("tengu_bridge_repl_v2_config",F),K=m().safeParse(J);return K.success?K.data:F}async function o(){let J=await y();if(J.min_version&&R("99.0.0",J.min_version))return`Your version of Claudin (99.0.0) is too old for Remote Control.
|
|
2
|
+
Version ${J.min_version} or higher is required. Run \`claudin update\` to update.`;return null}h();u();function JJ(J){let K=Buffer.from(J,"base64url").toString("utf-8"),X=T(K);if(!X||typeof X!=="object"||!("version"in X)||X.version!==1)throw Error(`Unsupported work secret version: ${X&&typeof X==="object"&&"version"in X?X.version:"unknown"}`);let Y=X;if(typeof Y.session_ingress_token!=="string"||Y.session_ingress_token.length===0)throw Error("Invalid work secret: missing or empty session_ingress_token");if(typeof Y.api_base_url!=="string")throw Error("Invalid work secret: missing api_base_url");return X}function KJ(J,K){let X=new URL(J).hostname,Y=X==="localhost"||X==="127.0.0.1",x=Y?"ws":"wss",H=Y?"v2":"v1",P=J.replace(/^https?:\/\//,"").replace(/\/+$/,"");return`${x}://${P}/${H}/session_ingress/ws/${K}`}function QJ(J,K){if(J===K)return!0;let X=J.slice(J.lastIndexOf("_")+1),Y=K.slice(K.lastIndexOf("_")+1);return X.length>=4&&X===Y}function XJ(J,K){return`${J.replace(/\/+$/,"")}/v1/code/sessions/${K}`}async function B(J,K){let X=await k.post(`${J}/worker/register`,{},{headers:{Authorization:`Bearer ${K}`,"Content-Type":"application/json","anthropic-version":"2023-06-01"},timeout:1e4}),Y=X.data?.worker_epoch,x=typeof Y==="string"?Number(Y):Y;if(typeof x!=="number"||!Number.isFinite(x)||!Number.isSafeInteger(x))throw Error(`registerWorker: invalid worker_epoch in response: ${D(X.data)}`);return x}l();p();b();function WJ(J){return{write:(K)=>J.write(K),writeBatch:(K)=>J.writeBatch(K),close:()=>J.close(),isConnectedStatus:()=>J.isConnectedStatus(),getStateLabel:()=>J.getStateLabel(),setOnData:(K)=>J.setOnData(K),setOnClose:(K)=>J.setOnClose(K),setOnConnect:(K)=>J.setOnConnect(K),connect:()=>void J.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return J.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function HJ(J){let{sessionUrl:K,ingressToken:X,sessionId:Y,initialSequenceNum:x,getAuthToken:H}=J,P;if(H)P=()=>{let Q=H();if(!Q)return{};return{Authorization:`Bearer ${Q}`}};else S(X);let O=J.epoch??await B(K,X);M(`[bridge:repl] CCR v2: worker sessionId=${Y} epoch=${O}${J.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let V=new URL(K);V.pathname=V.pathname.replace(/\/$/,"")+"/worker/events/stream";let q=new v(V,{},Y,void 0,x,P),G,$=new j(q,new URL(K),{getAuthHeaders:P,heartbeatIntervalMs:J.heartbeatIntervalMs,heartbeatJitterFraction:J.heartbeatJitterFraction,onEpochMismatch:()=>{M("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{$.close(),q.close(),G?.(4090)}catch(Q){M(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${f(Q)}`,{level:"error"})}throw Error("epoch superseded")}});q.setOnEvent((Q)=>{$.reportDelivery(Q.event_id,"received"),$.reportDelivery(Q.event_id,"processed")});let _,N=!1,A=!1;return{write(Q){return $.writeEvent(Q)},async writeBatch(Q){for(let W of Q){if(A)break;await $.writeEvent(W)}},close(){A=!0,$.close(),q.close()},isConnectedStatus(){return N},getStateLabel(){if(q.isClosedStatus())return"closed";if(q.isConnectedStatus())return N?"connected":"init";return"connecting"},setOnData(Q){q.setOnData(Q)},setOnClose(Q){G=Q,q.setOnClose((W)=>{$.close(),Q(W??4092)})},setOnConnect(Q){_=Q},getLastSequenceNum(){return q.getLastSequenceNum()},droppedBatchCount:0,reportState(Q){$.reportState(Q)},reportMetadata(Q){$.reportMetadata(Q)},reportDelivery(Q,W){$.reportDelivery(Q,W)},flush(){return $.flush()},connect(){if(!J.outboundOnly)q.connect();$.initialize(O).then(()=>{N=!0,M(`[bridge:repl] v2 transport ready for writes (epoch=${O}, sse=${q.isConnectedStatus()?"open":"opening"})`),_?.()},(Q)=>{M(`[bridge:repl] CCR v2 initialize failed: ${f(Q)}`,{level:"error"}),$.close(),q.close(),G?.(4091)})}}}class g{_active=!1;_pending=[];get active(){return this._active}get pendingCount(){return this._pending.length}start(){this._active=!0}end(){return this._active=!1,this._pending.splice(0)}enqueue(...J){if(!this._active)return!1;return this._pending.push(...J),!0}drop(){this._active=!1;let J=this._pending.length;return this._pending.length=0,J}deactivate(){this._active=!1}}
|
|
3
|
+
export{y as a,o as b,JJ as c,KJ as d,QJ as e,XJ as f,WJ as g,HJ as h,g as i};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import{upa as y,xpa as b}from"./cli-0.6.3-qh59pqrb.mjs";var P0=y(($w)=>{$w.HttpAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})($w.HttpAuthLocation||($w.HttpAuthLocation={}));$w.HttpApiKeyAuthLocation=void 0;(function($){$.HEADER="header",$.QUERY="query"})($w.HttpApiKeyAuthLocation||($w.HttpApiKeyAuthLocation={}));$w.EndpointURLScheme=void 0;(function($){$.HTTP="http",$.HTTPS="https"})($w.EndpointURLScheme||($w.EndpointURLScheme={}));$w.AlgorithmId=void 0;(function($){$.MD5="md5",$.CRC32="crc32",$.CRC32C="crc32c",$.SHA1="sha1",$.SHA256="sha256"})($w.AlgorithmId||($w.AlgorithmId={}));var rT=($)=>{let T=[];if($.sha256!==void 0)T.push({algorithmId:()=>$w.AlgorithmId.SHA256,checksumConstructor:()=>$.sha256});if($.md5!=null)T.push({algorithmId:()=>$w.AlgorithmId.MD5,checksumConstructor:()=>$.md5});return{addChecksumAlgorithm(w){T.push(w)},checksumAlgorithms(){return T}}},lT=($)=>{let T={};return $.checksumAlgorithms().forEach((w)=>{T[w.algorithmId()]=w.checksumConstructor()}),T},oT=($)=>{return rT($)},aT=($)=>{return lT($)};$w.FieldPosition=void 0;(function($){$[$.HEADER=0]="HEADER",$[$.TRAILER=1]="TRAILER"})($w.FieldPosition||($w.FieldPosition={}));var eT="__smithy_context";$w.IniSectionType=void 0;(function($){$.PROFILE="profile",$.SSO_SESSION="sso-session",$.SERVICES="services"})($w.IniSectionType||($w.IniSectionType={}));$w.RequestHandlerProtocol=void 0;(function($){$.HTTP_0_9="http/0.9",$.HTTP_1_0="http/1.0",$.TDS_8_0="tds/8.0"})($w.RequestHandlerProtocol||($w.RequestHandlerProtocol={}));$w.SMITHY_CONTEXT_KEY=eT;$w.getDefaultClientConfiguration=oT;$w.resolveDefaultRuntimeConfig=aT});var D0=y((sw)=>{var m=P0(),Iw=h1(),g=($,T)=>{let w=[];if($)w.push($);if(T)for(let P of T)w.push(P);return w},c=($,T)=>{return`${$||"anonymous"}${T&&T.length>0?` (a.k.a. ${T.join(",")})`:""}`},I0=()=>{let $=[],T=[],w=!1,P=new Set,I=(X)=>X.sort((J,f)=>l1[f.step]-l1[J.step]||o1[f.priority||"normal"]-o1[J.priority||"normal"]),h=(X)=>{let J=!1,f=(G)=>{let Q=g(G.name,G.aliases);if(Q.includes(X)){J=!0;for(let Z of Q)P.delete(Z);return!1}return!0};return $=$.filter(f),T=T.filter(f),J},U=(X)=>{let J=!1,f=(G)=>{if(G.middleware===X){J=!0;for(let Q of g(G.name,G.aliases))P.delete(Q);return!1}return!0};return $=$.filter(f),T=T.filter(f),J},A=(X)=>{return $.forEach((J)=>{X.add(J.middleware,{...J})}),T.forEach((J)=>{X.addRelativeTo(J.middleware,{...J})}),X.identifyOnResolve?.(Y.identifyOnResolve()),X},_=(X)=>{let J=[];return X.before.forEach((f)=>{if(f.before.length===0&&f.after.length===0)J.push(f);else J.push(..._(f))}),J.push(X),X.after.reverse().forEach((f)=>{if(f.before.length===0&&f.after.length===0)J.push(f);else J.push(..._(f))}),J},M=(X=!1)=>{let J=[],f=[],G={};return $.forEach((Z)=>{let R={...Z,before:[],after:[]};for(let V of g(R.name,R.aliases))G[V]=R;J.push(R)}),T.forEach((Z)=>{let R={...Z,before:[],after:[]};for(let V of g(R.name,R.aliases))G[V]=R;f.push(R)}),f.forEach((Z)=>{if(Z.toMiddleware){let R=G[Z.toMiddleware];if(R===void 0){if(X)return;throw Error(`${Z.toMiddleware} is not found when adding ${c(Z.name,Z.aliases)} middleware ${Z.relation} ${Z.toMiddleware}`)}if(Z.relation==="after")R.after.push(Z);if(Z.relation==="before")R.before.push(Z)}}),I(J).map(_).reduce((Z,R)=>{return Z.push(...R),Z},[])},Y={add:(X,J={})=>{let{name:f,override:G,aliases:Q}=J,Z={step:"initialize",priority:"normal",middleware:X,...J},R=g(f,Q);if(R.length>0){if(R.some((V)=>P.has(V))){if(!G)throw Error(`Duplicate middleware name '${c(f,Q)}'`);for(let V of R){let L=$.findIndex((T0)=>T0.name===V||T0.aliases?.some((l0)=>l0===V));if(L===-1)continue;let W=$[L];if(W.step!==Z.step||Z.priority!==W.priority)throw Error(`"${c(W.name,W.aliases)}" middleware with ${W.priority} priority in ${W.step} step cannot be overridden by "${c(f,Q)}" middleware with ${Z.priority} priority in ${Z.step} step.`);$.splice(L,1)}}for(let V of R)P.add(V)}$.push(Z)},addRelativeTo:(X,J)=>{let{name:f,override:G,aliases:Q}=J,Z={middleware:X,...J},R=g(f,Q);if(R.length>0){if(R.some((V)=>P.has(V))){if(!G)throw Error(`Duplicate middleware name '${c(f,Q)}'`);for(let V of R){let L=T.findIndex((T0)=>T0.name===V||T0.aliases?.some((l0)=>l0===V));if(L===-1)continue;let W=T[L];if(W.toMiddleware!==Z.toMiddleware||W.relation!==Z.relation)throw Error(`"${c(W.name,W.aliases)}" middleware ${W.relation} "${W.toMiddleware}" middleware cannot be overridden by "${c(f,Q)}" middleware ${Z.relation} "${Z.toMiddleware}" middleware.`);T.splice(L,1)}}for(let V of R)P.add(V)}T.push(Z)},clone:()=>A(I0()),use:(X)=>{X.applyToStack(Y)},remove:(X)=>{if(typeof X==="string")return h(X);else return U(X)},removeByTag:(X)=>{let J=!1,f=(G)=>{let{tags:Q,name:Z,aliases:R}=G;if(Q&&Q.includes(X)){let V=g(Z,R);for(let L of V)P.delete(L);return J=!0,!1}return!0};return $=$.filter(f),T=T.filter(f),J},concat:(X)=>{let J=A(I0());return J.use(X),J.identifyOnResolve(w||J.identifyOnResolve()||(X.identifyOnResolve?.()??!1)),J},applyToStack:A,identify:()=>{return M(!0).map((X)=>{let J=X.step??X.relation+" "+X.toMiddleware;return c(X.name,X.aliases)+" - "+J})},identifyOnResolve(X){if(typeof X==="boolean")w=X;return w},resolve:(X,J)=>{for(let f of M().map((G)=>G.middleware).reverse())X=f(X,J);if(w)console.log(Y.identify());return X}};return Y},l1={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},o1={high:3,normal:2,low:1},hw=($)=>$[m.SMITHY_CONTEXT_KEY]||($[m.SMITHY_CONTEXT_KEY]={}),Uw=($)=>{if(typeof $==="function")return $;let T=Promise.resolve($);return()=>T},Aw=($)=>()=>{throw Error($)},_w=($)=>()=>Promise.reject($),W0=()=>{let $=new WeakSet;return(T,w)=>{if(typeof w==="object"&&w!==null){if($.has(w))return"[Circular]";$.add(w)}return w}},Mw=($)=>{return new Promise((T)=>setTimeout(T,$*1000))},$$={minDelay:2,maxDelay:120};sw.WaiterState=void 0;(function($){$.ABORTED="ABORTED",$.FAILURE="FAILURE",$.SUCCESS="SUCCESS",$.RETRY="RETRY",$.TIMEOUT="TIMEOUT"})(sw.WaiterState||(sw.WaiterState={}));var Xw=($)=>{if($.state===sw.WaiterState.ABORTED){let T=Error(`${JSON.stringify({...$,reason:"Request was aborted"},W0())}`);throw T.name="AbortError",T}else if($.state===sw.WaiterState.TIMEOUT){let T=Error(`${JSON.stringify({...$,reason:"Waiter has timed out"},W0())}`);throw T.name="TimeoutError",T}else if($.state!==sw.WaiterState.SUCCESS)throw Error(`${JSON.stringify($,W0())}`);return $},Jw=async({minDelay:$,maxDelay:T,maxWaitTime:w,abortController:P,client:I,abortSignal:h},U,A)=>{let _={},[M,Y]=[$*1000,T*1000],X=0,J=Date.now()+w*1000,f=Date.now()+60000,G=!1;while(!0){if(X>0){let R=Gw(M,Y,X,J);if(P?.signal?.aborted||h?.aborted)return _["AbortController signal aborted."]|=0,_["AbortController signal aborted."]+=1,{state:sw.WaiterState.ABORTED,observedResponses:_};if(Date.now()+R>J)return{state:sw.WaiterState.TIMEOUT,observedResponses:_};await Mw(R/1000)}let{state:Q,reason:Z}=await A(I,U);if(Z){let R=fw(Z);_[R]|=0,_[R]+=1}if(Q!==sw.WaiterState.RETRY)return{state:Q,reason:Z,final:Z,observedResponses:_};if(X+=1,!G&&Date.now()>=f)Yw(_,I),G=!0}},Yw=($={},T)=>{let w=Object.keys($),P=0;for(let U of w){let A=$[U]|0;if(U.startsWith("403:"))P+=A}let I=T?.config?.logger,h=typeof I?.warn==="function"&&!I.constructor?.name?.includes?.("NoOpLogger")?I:console;if(P>=3||w[w.length-1]?.startsWith("403:"))h.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},fw=($)=>{let T=$?.$response?.statusCode??$?.$metadata?.httpStatusCode;if($?.$responseBodyText)return`${T?T+": ":""}Deserialization error for body: ${$.$responseBodyText}`;if(T){if($?.$response||$?.message)return`${T??"Unknown"}: ${$?.message}`;return`${T}: OK`}return String($?.message??JSON.stringify($,W0())??"Unknown")},Gw=($,T,w,P)=>{let I=Math.log(T/$)/Math.log(2)+1;if(w>I)return T;let h=$*2**(w-1),U=Math.min(h,T),A=Zw($,U);if(Date.now()+A>P){let _=P-Date.now();return Math.max(0,_-500)}return A},Zw=($,T)=>$+Math.random()*(T-$),Rw=($)=>{if($.maxWaitTime<=0)throw Error("WaiterConfiguration.maxWaitTime must be greater than 0");else if($.minDelay<=0)throw Error("WaiterConfiguration.minDelay must be greater than 0");else if($.maxDelay<=0)throw Error("WaiterConfiguration.maxDelay must be greater than 0");else if($.maxWaitTime<=$.minDelay)throw Error(`WaiterConfiguration.maxWaitTime [${$.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${$.minDelay}] for this waiter`);else if($.maxDelay<$.minDelay)throw Error(`WaiterConfiguration.maxDelay [${$.maxDelay}] must be greater than WaiterConfiguration.minDelay [${$.minDelay}] for this waiter`)},a1=($)=>{let T,w=new Promise((P)=>{if(T=()=>P({state:sw.WaiterState.ABORTED}),typeof $.addEventListener==="function")$.addEventListener("abort",T);else $.onabort=T});return{clearListener(){if(typeof $.removeEventListener==="function")$.removeEventListener("abort",T)},aborted:w}},Qw=async($,T,w)=>{let P={...$$,...$};Rw(P);let I=[Jw(P,T,w)],h=[];if($.abortSignal){let{aborted:U,clearListener:A}=a1($.abortSignal);h.push(A),I.push(U)}if($.abortController?.signal){let{aborted:U,clearListener:A}=a1($.abortController.signal);h.push(A),I.push(U)}return Promise.race(I).then((U)=>{for(let A of h)A();return U})};class T${config;middlewareStack=I0();initConfig;handlers;constructor($){this.config=$;let{protocol:T,protocolSettings:w}=$;if(w){if(typeof T==="function")$.protocol=new T(w)}}send($,T,w){let P=typeof T!=="function"?T:void 0,I=typeof T==="function"?T:w,h=P===void 0&&this.config.cacheMiddleware===!0,U;if(h){if(!this.handlers)this.handlers=new WeakMap;let A=this.handlers;if(A.has($.constructor))U=A.get($.constructor);else U=$.resolveMiddleware(this.middlewareStack,this.config,P),A.set($.constructor,U)}else delete this.handlers,U=$.resolveMiddleware(this.middlewareStack,this.config,P);if(I)U($).then((A)=>I(null,A.output),(A)=>I(A)).catch(()=>{});else return U($).then((A)=>A.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}var P1="***SensitiveInformation***";function H0($,T){if(T==null)return T;let w=Iw.NormalizedSchema.of($);if(w.getMergedTraits().sensitive)return P1;if(w.isListSchema()){if(!!w.getValueSchema().getMergedTraits().sensitive)return P1}else if(w.isMapSchema()){if(!!w.getKeySchema().getMergedTraits().sensitive||!!w.getValueSchema().getMergedTraits().sensitive)return P1}else if(w.isStructSchema()&&typeof T==="object"){let P=T,I={};for(let[h,U]of w.structIterator())if(P[h]!=null)I[h]=H0(U,P[h]);return I}return T}class U1{middlewareStack=I0();schema;static classBuilder(){return new w$}resolveMiddlewareWithContext($,T,w,{middlewareFn:P,clientName:I,commandName:h,inputFilterSensitiveLog:U,outputFilterSensitiveLog:A,smithyContext:_,additionalContext:M,CommandCtor:Y}){for(let Z of P.bind(this)(Y,$,T,w))this.middlewareStack.use(Z);let X=$.concat(this.middlewareStack),{logger:J}=T,f={logger:J,clientName:I,commandName:h,inputFilterSensitiveLog:U,outputFilterSensitiveLog:A,[m.SMITHY_CONTEXT_KEY]:{commandInstance:this,..._},...M},{requestHandler:G}=T,Q=w??{};if(_.eventStream)Q={isEventStream:!0,...Q};return X.resolve((Z)=>G.handle(Z.request,Q),f)}}class w${_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init($){this._init=$}ep($){return this._ep=$,this}m($){return this._middlewareFn=$,this}s($,T,w={}){return this._smithyContext={service:$,operation:T,...w},this}c($={}){return this._additionalContext=$,this}n($,T){return this._clientName=$,this._commandName=T,this}f($=(w)=>w,T=(w)=>w){return this._inputFilterSensitiveLog=$,this._outputFilterSensitiveLog=T,this}ser($){return this._serializer=$,this}de($){return this._deserializer=$,this}sc($){return this._operationSchema=$,this._smithyContext.operationSchema=$,this}build(){let $=this,T;return T=class extends U1{input;static getEndpointParameterInstructions(){return $._ep}constructor(...[w]){super();this.input=w??{},$._init(this),this.schema=$._operationSchema}resolveMiddleware(w,P,I){let h=$._operationSchema,U=h?.[4]??h?.input,A=h?.[5]??h?.output;return this.resolveMiddlewareWithContext(w,P,I,{CommandCtor:T,middlewareFn:$._middlewareFn,clientName:$._clientName,commandName:$._commandName,inputFilterSensitiveLog:$._inputFilterSensitiveLog??(h?H0.bind(null,U):(_)=>_),outputFilterSensitiveLog:$._outputFilterSensitiveLog??(h?H0.bind(null,A):(_)=>_),smithyContext:$._smithyContext,additionalContext:$._additionalContext})}serialize=$._serializer;deserialize=$._deserializer}}}var Vw="***SensitiveInformation***",Ow=($,T,w)=>{for(let[h,U]of Object.entries($)){let A=async function(M,Y,X){let J=new U(M);if(typeof Y==="function")this.send(J,Y);else if(typeof X==="function"){if(typeof Y!=="object")throw Error(`Expected http options but got ${typeof Y}`);this.send(J,Y||{},X)}else return this.send(J,Y)},_=(h[0].toLowerCase()+h.slice(1)).replace(/Command$/,"");T.prototype[_]=A}let{paginators:P={},waiters:I={}}=w??{};for(let[h,U]of Object.entries(P))if(T.prototype[h]===void 0)T.prototype[h]=function(A={},_,...M){return U({..._,client:this},A,...M)};for(let[h,U]of Object.entries(I))if(T.prototype[h]===void 0)T.prototype[h]=async function(A={},_,...M){let Y=_;if(typeof _==="number")Y={maxWaitTime:_};return U({...Y,client:this},A,...M)}};class t extends Error{$fault;$response;$retryable;$metadata;constructor($){super($.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=$.name,this.$fault=$.$fault,this.$metadata=$.$metadata}static isInstance($){if(!$)return!1;let T=$;return t.prototype.isPrototypeOf(T)||Boolean(T.$fault)&&Boolean(T.$metadata)&&(T.$fault==="client"||T.$fault==="server")}static[Symbol.hasInstance]($){if(!$)return!1;let T=$;if(this===t)return t.isInstance($);if(t.isInstance($)){if(T.name&&this.name)return this.prototype.isPrototypeOf($)||T.name===this.name;return this.prototype.isPrototypeOf($)}return!1}}var P$=($,T={})=>{Object.entries(T).filter(([,P])=>P!==void 0).forEach(([P,I])=>{if($[P]==null||$[P]==="")$[P]=I});let w=$.message||$.Message||"UnknownError";return $.message=w,delete $.Message,$},I$=({output:$,parsedBody:T,exceptionCtor:w,errorCode:P})=>{let I=Lw($),h=I.httpStatusCode?I.httpStatusCode+"":void 0,U=new w({name:T?.code||T?.Code||P||h||"UnknownError",$fault:"client",$metadata:I});throw P$(U,T)},Nw=($)=>{return({output:T,parsedBody:w,errorCode:P})=>{I$({output:T,parsedBody:w,exceptionCtor:$,errorCode:P})}},Lw=($)=>({httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}),Ww=($)=>{switch($){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:30000};default:return{}}},e1=!1,Hw=($)=>{if($&&!e1&&parseInt($.substring(1,$.indexOf(".")))<16)e1=!0},h$=Object.values(m.AlgorithmId),U$=($)=>{let T=[];for(let w in m.AlgorithmId){let P=m.AlgorithmId[w];if($[P]===void 0)continue;T.push({algorithmId:()=>P,checksumConstructor:()=>$[P]})}for(let[w,P]of Object.entries($.checksumAlgorithms??{}))T.push({algorithmId:()=>w,checksumConstructor:()=>P});return{addChecksumAlgorithm(w){$.checksumAlgorithms=$.checksumAlgorithms??{};let P=w.algorithmId(),I=w.checksumConstructor();if(h$.includes(P))$.checksumAlgorithms[P.toUpperCase()]=I;else $.checksumAlgorithms[P]=I;T.push(w)},checksumAlgorithms(){return T}}},A$=($)=>{let T={};return $.checksumAlgorithms().forEach((w)=>{let P=w.algorithmId();if(h$.includes(P))T[P]=w.checksumConstructor()}),T},_$=($)=>{return{setRetryStrategy(T){$.retryStrategy=T},retryStrategy(){return $.retryStrategy}}},M$=($)=>{let T={};return T.retryStrategy=$.retryStrategy(),T},X$=($)=>{return Object.assign(U$($),_$($))},Dw=X$,Ew=($)=>{return Object.assign(A$($),M$($))},Kw=($)=>Array.isArray($)?$:[$],J$=($)=>{for(let w in $)if($.hasOwnProperty(w)&&$[w]["#text"]!==void 0)$[w]=$[w]["#text"];else if(typeof $[w]==="object"&&$[w]!==null)$[w]=J$($[w]);return $},Bw=($)=>{return $!=null};class Y${trace(){}debug(){}info(){}warn(){}error(){}}function f$($,T,w){let P,I,h;if(typeof T>"u"&&typeof w>"u")P={},h=$;else if(P=$,typeof T==="function")return I=T,h=w,Fw(P,I,h);else h=T;for(let U of Object.keys(h)){if(!Array.isArray(h[U])){P[U]=h[U];continue}G$(P,null,h,U)}return P}var qw=($)=>{let T={};for(let[w,P]of Object.entries($||{}))T[w]=[,P];return T},xw=($,T)=>{let w={};for(let P in T)G$(w,$,T,P);return w},Fw=($,T,w)=>{return f$($,Object.entries(w).reduce((P,[I,h])=>{if(Array.isArray(h))P[I]=h;else if(typeof h==="function")P[I]=[T,h()];else P[I]=[T,h];return P},{}))},G$=($,T,w,P)=>{if(T!==null){let U=w[P];if(typeof U==="function")U=[,U];let[A=zw,_=Sw,M=P]=U;if(typeof A==="function"&&A(T[M])||typeof A!=="function"&&!!A)$[P]=_(T[M]);return}let[I,h]=w[P];if(typeof h==="function"){let U,A=I===void 0&&(U=h())!=null,_=typeof I==="function"&&!!I(void 0)||typeof I!=="function"&&!!I;if(A)$[P]=U;else if(_)$[P]=h()}else{let U=I===void 0&&h!=null,A=typeof I==="function"&&!!I(h)||typeof I!=="function"&&!!I;if(U||A)$[P]=h}},zw=($)=>$!=null,Sw=($)=>$,jw=($)=>{if($!==$)return"NaN";switch($){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return $}},Cw=($)=>$.toISOString().replace(".000Z","Z"),I1=($)=>{if($==null)return{};if(Array.isArray($))return $.filter((T)=>T!=null).map(I1);if(typeof $==="object"){let T={};for(let w of Object.keys($)){if($[w]==null)continue;T[w]=I1($[w])}return T}return $};sw.AlgorithmId=m.AlgorithmId;sw.Client=T$;sw.Command=U1;sw.NoOpLogger=Y$;sw.SENSITIVE_STRING=Vw;sw.ServiceException=t;sw._json=I1;sw.checkExceptions=Xw;sw.constructStack=I0;sw.convertMap=qw;sw.createAggregatedClient=Ow;sw.createWaiter=Qw;sw.decorateServiceException=P$;sw.emitWarningIfUnsupportedVersion=Hw;sw.getArrayIfSingleItem=Kw;sw.getChecksumConfiguration=U$;sw.getDefaultClientConfiguration=Dw;sw.getDefaultExtensionConfiguration=X$;sw.getRetryConfiguration=_$;sw.getSmithyContext=hw;sw.getValueFromTextNode=J$;sw.invalidFunction=Aw;sw.invalidProvider=_w;sw.isSerializableHeaderValue=Bw;sw.loadConfigsForDefaultMode=Ww;sw.map=f$;sw.normalizeProvider=Uw;sw.resolveChecksumRuntimeConfig=A$;sw.resolveDefaultRuntimeConfig=Ew;sw.resolveRetryRuntimeConfig=M$;sw.schemaLogFilter=H0;sw.serializeDateTime=Cw;sw.serializeFloat=jw;sw.take=xw;sw.throwDefaultError=I$;sw.waiterServiceDefaults=$$;sw.withBaseException=Nw});var C$=y((ZI)=>{var OP=b("node:os"),i=b("node:path"),NP=b("node:crypto"),N$=b("node:fs/promises"),E0=P0(),K0=D0(),LP=F0();class u extends Error{name="ProviderError";tryNextLink;constructor($,T=!0){let w,P=!0;if(typeof T==="boolean")w=void 0,P=T;else if(T!=null&&typeof T==="object")w=T.logger,P=T.tryNextLink??!0;super($);this.tryNextLink=P,Object.setPrototypeOf(this,u.prototype),w?.debug?.(`@smithy/property-provider ${P?"->":"(!)"} ${$}`)}static from($,T=!0){return Object.assign(new this($.message,T),$)}}class h0 extends u{name="CredentialsProviderError";constructor($,T=!0){super($,T);Object.setPrototypeOf(this,h0.prototype)}}class J1 extends u{name="TokenProviderError";constructor($,T=!0){super($,T);Object.setPrototypeOf(this,J1.prototype)}}var L$=(...$)=>async()=>{if($.length===0)throw new u("No providers in chain");let T;for(let w of $)try{return await w()}catch(P){if(T=P,P?.tryNextLink)continue;throw P}throw T},W$=($)=>()=>Promise.resolve($),Y1=($,T,w)=>{let P,I,h,U=!1,A=async()=>{if(!I)I=$();try{P=await I,h=!0,U=!1}finally{I=void 0}return P};if(T===void 0)return async(_)=>{if(!h||_?.forceRefresh)P=await A();return P};return async(_)=>{if(!h||_?.forceRefresh)P=await A();if(U)return P;if(w&&!w(P))return U=!0,P;if(T(P))return await A(),P;return P}},F=($,T,w)=>{if(!(T in $))return;if($[T]==="true")return!0;if($[T]==="false")return!1;throw Error(`Cannot load ${w} "${T}". Expected "true" or "false", got ${$[T]}.`)},WP=($,T,w)=>{if(!(T in $))return;let P=parseInt($[T],10);if(Number.isNaN(P))throw TypeError(`Cannot load ${w} '${T}'. Expected number, got '${$[T]}'.`);return P};ZI.SelectorType=void 0;(function($){$.ENV="env",$.CONFIG="shared config entry"})(ZI.SelectorType||(ZI.SelectorType={}));var A1={},HP=()=>{if(process&&process.geteuid)return`${process.geteuid()}`;return"DEFAULT"},U0=()=>{let{HOME:$,USERPROFILE:T,HOMEPATH:w,HOMEDRIVE:P=`C:${i.sep}`}=process.env;if($)return $;if(T)return T;if(w)return`${P}${w}`;let I=HP();if(!A1[I])A1[I]=OP.homedir();return A1[I]},H$="AWS_PROFILE",D$="default",E$=($)=>$.profile||process.env[H$]||D$,K$=($)=>{let w=NP.createHash("sha1").update($).digest("hex");return i.join(U0(),".aws","sso","cache",`${w}.json`)},B0={},DP=async($)=>{if(B0[$])return B0[$];let T=K$($),w=await N$.readFile(T,"utf8");return JSON.parse(w)},d=".",EP=($)=>Object.entries($).filter(([T])=>{let w=T.indexOf(d);if(w===-1)return!1;return Object.values(E0.IniSectionType).includes(T.substring(0,w))}).reduce((T,[w,P])=>{let I=w.indexOf(d),h=w.substring(0,I)===E0.IniSectionType.PROFILE?w.substring(I+1):w;return T[h]=P,T},{...$.default&&{default:$.default}}),KP="AWS_CONFIG_FILE",B$=()=>process.env[KP]||i.join(U0(),".aws","config"),BP="AWS_SHARED_CREDENTIALS_FILE",qP=()=>process.env[BP]||i.join(U0(),".aws","credentials"),xP=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,FP=["__proto__","profile __proto__"],M1=($)=>{let T={},w,P;for(let I of $.split(/\r?\n/)){let h=I.split(/(^|\s)[;#]/)[0].trim();if(h[0]==="["&&h[h.length-1]==="]"){w=void 0,P=void 0;let A=h.substring(1,h.length-1),_=xP.exec(A);if(_){let[,M,,Y]=_;if(Object.values(E0.IniSectionType).includes(M))w=[M,Y].join(d)}else w=A;if(FP.includes(A))throw Error(`Found invalid profile name "${A}"`)}else if(w){let A=h.indexOf("=");if(![0,-1].includes(A)){let[_,M]=[h.substring(0,A).trim(),h.substring(A+1).trim()];if(M==="")P=_;else{if(P&&I.trimStart()===I)P=void 0;T[w]=T[w]||{};let Y=P?[P,_].join(d):_;T[w][Y]=M}}}}return T},_1={},q0={},x0=($,T)=>{if(q0[$]!==void 0)return q0[$];if(!_1[$]||T?.ignoreCache)_1[$]=N$.readFile($,"utf8");return _1[$]},Z$=()=>({}),f1=async($={})=>{let{filepath:T=qP(),configFilepath:w=B$()}=$,P=U0(),I="~/",h=T;if(T.startsWith("~/"))h=i.join(P,T.slice(2));let U=w;if(w.startsWith("~/"))U=i.join(P,w.slice(2));let A=await Promise.all([x0(U,{ignoreCache:$.ignoreCache}).then(M1).then(EP).catch(Z$),x0(h,{ignoreCache:$.ignoreCache}).then(M1).catch(Z$)]);return{configFile:A[0],credentialsFile:A[1]}},zP=($)=>Object.entries($).filter(([T])=>T.startsWith(E0.IniSectionType.SSO_SESSION+d)).reduce((T,[w,P])=>({...T,[w.substring(w.indexOf(d)+1)]:P}),{}),SP=()=>({}),jP=async($={})=>x0($.configFilepath??B$()).then(M1).then(zP).catch(SP),CP=(...$)=>{let T={};for(let w of $)for(let[P,I]of Object.entries(w))if(T[P]!==void 0)Object.assign(T[P],I);else T[P]=I;return T},sP=async($)=>{let T=await f1($);return CP(T.configFile,T.credentialsFile)},cP={getFileRecord(){return q0},interceptFile($,T){q0[$]=Promise.resolve(T)},getTokenRecord(){return B0},interceptToken($,T){B0[$]=T}};function q$($){try{let T=new Set(Array.from($.match(/([A-Z_]){3,}/g)??[]));return T.delete("CONFIG"),T.delete("CONFIG_PREFIX_SEPARATOR"),T.delete("ENV"),[...T].join(", ")}catch(T){return $}}var bP=($,T)=>async()=>{try{let w=$(process.env,T);if(w===void 0)throw Error();return w}catch(w){throw new h0(w.message||`Not found in ENV: ${q$($.toString())}`,{logger:T?.logger})}},kP=($,{preferredFile:T="config",...w}={})=>async()=>{let P=E$(w),{configFile:I,credentialsFile:h}=await f1(w),U=h[P]||{},A=I[P]||{},_=T==="config"?{...U,...A}:{...A,...U};try{let Y=$(_,T==="config"?I:h);if(Y===void 0)throw Error();return Y}catch(M){throw new h0(M.message||`Not found in config files w/ profile [${P}]: ${q$($.toString())}`,{logger:w.logger})}},pP=($)=>typeof $==="function",x$=($)=>pP($)?async()=>await $():W$($),X1=({environmentVariableSelector:$,configFileSelector:T,default:w},P={})=>{let{signingName:I,logger:h}=P;return Y1(L$(bP($,{signingName:I,logger:h}),kP(T,P),x$(w)))},G1="AWS_USE_DUALSTACK_ENDPOINT",Z1="use_dualstack_endpoint",yP=!1,gP={environmentVariableSelector:($)=>F($,G1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Z1,ZI.SelectorType.CONFIG),default:!1},mP={environmentVariableSelector:($)=>F($,G1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Z1,ZI.SelectorType.CONFIG),default:void 0},R1="AWS_USE_FIPS_ENDPOINT",Q1="use_fips_endpoint",dP=!1,vP={environmentVariableSelector:($)=>F($,R1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Q1,ZI.SelectorType.CONFIG),default:!1},nP={environmentVariableSelector:($)=>F($,R1,ZI.SelectorType.ENV),configFileSelector:($)=>F($,Q1,ZI.SelectorType.CONFIG),default:void 0},tP=($)=>{let{tls:T,endpoint:w,urlParser:P,useDualstackEndpoint:I}=$;return Object.assign($,{tls:T??!0,endpoint:K0.normalizeProvider(typeof w==="string"?P(w):w),isCustomEndpoint:!0,useDualstackEndpoint:K0.normalizeProvider(I??!1)})},iP=async($)=>{let{tls:T=!0}=$,w=await $.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(w))throw Error("Invalid region in client config");let I=await $.useDualstackEndpoint(),h=await $.useFipsEndpoint(),{hostname:U}=await $.regionInfoProvider(w,{useDualstackEndpoint:I,useFipsEndpoint:h})??{};if(!U)throw Error("Cannot resolve hostname from client config");return $.urlParser(`${T?"https:":"http:"}//${U}`)},uP=($)=>{let T=K0.normalizeProvider($.useDualstackEndpoint??!1),{endpoint:w,useFipsEndpoint:P,urlParser:I,tls:h}=$;return Object.assign($,{tls:h??!0,endpoint:w?K0.normalizeProvider(typeof w==="string"?I(w):w):()=>iP({...$,useDualstackEndpoint:T,useFipsEndpoint:P}),isCustomEndpoint:!!w,useDualstackEndpoint:T})},F$="AWS_REGION",z$="region",S$={environmentVariableSelector:($)=>$[F$],configFileSelector:($)=>$[z$],default:()=>{throw Error("Region is missing")}},rP={preferredFile:"credentials"},R$=new Set,lP=($,T=LP.isValidHostLabel)=>{if(!R$.has($)&&!T($))if($==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw Error(`Region not accepted: region="${$}" is not a valid hostname component.`);else R$.add($)},j$=($)=>typeof $==="string"&&($.startsWith("fips-")||$.endsWith("-fips")),oP=($)=>j$($)?["fips-aws-global","aws-fips"].includes($)?"us-east-1":$.replace(/fips-(dkr-|prod-)?|-fips/,""):$,aP=($)=>{let{region:T,useFipsEndpoint:w}=$;if(!T)throw Error("Region is missing");return Object.assign($,{region:async()=>{let P=typeof T==="function"?await T():T,I=oP(P);return lP(I),I},useFipsEndpoint:async()=>{let P=typeof T==="string"?T:await T();if(j$(P))return!0;return typeof w!=="function"?Promise.resolve(!!w):w()}})},Q$=($=[],{useFipsEndpoint:T,useDualstackEndpoint:w})=>$.find(({tags:P})=>T===P.includes("fips")&&w===P.includes("dualstack"))?.hostname,eP=($,{regionHostname:T,partitionHostname:w})=>T?T:w?w.replace("{region}",$):void 0,$I=($,{partitionHash:T})=>Object.keys(T||{}).find((w)=>T[w].regions.includes($))??"aws",TI=($,{signingRegion:T,regionRegex:w,useFipsEndpoint:P})=>{if(T)return T;else if(P){let I=w.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),h=$.match(I);if(h)return h[0].slice(1,-1)}},wI=($,{useFipsEndpoint:T=!1,useDualstackEndpoint:w=!1,signingService:P,regionHash:I,partitionHash:h})=>{let U=$I($,{partitionHash:h}),A=$ in I?$:h[U]?.endpoint??$,_={useFipsEndpoint:T,useDualstackEndpoint:w},M=Q$(I[A]?.variants,_),Y=Q$(h[U]?.variants,_),X=eP(A,{regionHostname:M,partitionHostname:Y});if(X===void 0)throw Error(`Endpoint resolution failed for: ${{resolvedRegion:A,useFipsEndpoint:T,useDualstackEndpoint:w}}`);let J=TI(X,{signingRegion:I[A]?.signingRegion,regionRegex:h[U].regionRegex,useFipsEndpoint:T});return{partition:U,signingService:P,hostname:X,...J&&{signingRegion:J},...I[A]?.signingService&&{signingService:I[A].signingService}}},PI="AWS_EXECUTION_ENV",V$="AWS_REGION",O$="AWS_DEFAULT_REGION",II="AWS_EC2_METADATA_DISABLED",hI=["in-region","cross-region","mobile","standard","legacy"],UI="/latest/meta-data/placement/region",AI="AWS_DEFAULTS_MODE",_I="defaults_mode",MI={environmentVariableSelector:($)=>{return $[AI]},configFileSelector:($)=>{return $[_I]},default:"legacy"},XI=({region:$=X1(S$),defaultsMode:T=X1(MI)}={})=>Y1(async()=>{let w=typeof T==="function"?await T():T;switch(w?.toLowerCase()){case"auto":return JI($);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(w?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw Error(`Invalid parameter for "defaultsMode", expect ${hI.join(", ")}, got ${w}`)}}),JI=async($)=>{if($){let T=typeof $==="function"?await $():$,w=await YI();if(!w)return"standard";if(T===w)return"in-region";else return"cross-region"}return"standard"},YI=async()=>{if(process.env[PI]&&(process.env[V$]||process.env[O$]))return process.env[V$]??process.env[O$];if(!process.env[II])try{let $=await fI();return(await GI({hostname:$.hostname,path:UI})).toString()}catch($){}},fI=async()=>{let $=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if($){let w=new URL($);return{hostname:w.hostname,path:w.pathname}}if(process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6")return{hostname:"fd00:ec2::254",path:"/"};return{hostname:"169.254.169.254",path:"/"}},GI=async({hostname:$,path:T})=>{let{request:w}=await import("node:http");return new Promise((P,I)=>{let h=w({method:"GET",hostname:$.replace(/^\[(.+)]$/,"$1"),path:T,timeout:1000,signal:AbortSignal.timeout(1000)});h.on("error",(U)=>{I(U),h.destroy()}),h.on("timeout",()=>{I(Error("TimeoutError from instance metadata service")),h.destroy()}),h.on("response",(U)=>{let{statusCode:A=400}=U;if(A<200||300<=A){I(Object.assign(Error("Error response received from instance metadata service"),{statusCode:A})),h.destroy();return}let _=[];U.on("data",(M)=>_.push(M)),U.on("end",()=>{P(Buffer.concat(_)),h.destroy()})}),h.end()})};ZI.CONFIG_PREFIX_SEPARATOR=d;ZI.CONFIG_USE_DUALSTACK_ENDPOINT=Z1;ZI.CONFIG_USE_FIPS_ENDPOINT=Q1;ZI.CredentialsProviderError=h0;ZI.DEFAULT_PROFILE=D$;ZI.DEFAULT_USE_DUALSTACK_ENDPOINT=yP;ZI.DEFAULT_USE_FIPS_ENDPOINT=dP;ZI.ENV_PROFILE=H$;ZI.ENV_USE_DUALSTACK_ENDPOINT=G1;ZI.ENV_USE_FIPS_ENDPOINT=R1;ZI.NODE_REGION_CONFIG_FILE_OPTIONS=rP;ZI.NODE_REGION_CONFIG_OPTIONS=S$;ZI.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=gP;ZI.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=vP;ZI.ProviderError=u;ZI.REGION_ENV_NAME=F$;ZI.REGION_INI_NAME=z$;ZI.TokenProviderError=J1;ZI.booleanSelector=F;ZI.chain=L$;ZI.externalDataInterceptor=cP;ZI.fromStatic=x$;ZI.fromValue=W$;ZI.getHomeDir=U0;ZI.getProfileName=E$;ZI.getRegionInfo=wI;ZI.getSSOTokenFilepath=K$;ZI.getSSOTokenFromFile=DP;ZI.loadConfig=X1;ZI.loadSharedConfigFiles=f1;ZI.loadSsoSessionData=jP;ZI.memoize=Y1;ZI.nodeDualstackConfigSelectors=mP;ZI.nodeFipsConfigSelectors=nP;ZI.numberSelector=WP;ZI.parseKnownFiles=sP;ZI.readFile=x0;ZI.resolveCustomEndpointsConfig=tP;ZI.resolveDefaultsModeConfig=XI;ZI.resolveEndpointsConfig=uP;ZI.resolveRegionConfig=aP});var F0=y((yh)=>{var N1=C$(),s$=C0(),z0=D0(),L1=P0(),c$="AWS_ENDPOINT_URL",b$="endpoint_url",Ph=($)=>({environmentVariableSelector:(T)=>{let w=$.split(" ").map((h)=>h.toUpperCase()),P=T[[c$,...w].join("_")];if(P)return P;let I=T[c$];if(I)return I;return},configFileSelector:(T,w)=>{if(w&&T.services){let I=w[["services",T.services].join(N1.CONFIG_PREFIX_SEPARATOR)];if(I){let h=$.split(" ").map((A)=>A.toLowerCase()),U=I[[h.join("_"),b$].join(N1.CONFIG_PREFIX_SEPARATOR)];if(U)return U}}let P=T[b$];if(P)return P;return},default:void 0}),S0=async($)=>N1.loadConfig(Ph($??""))(),Ih=async($)=>{let T=$?.Bucket||"";if(typeof $.Bucket==="string")$.Bucket=T.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"));if(Mh(T)){if($.ForcePathStyle===!0)throw Error("Path-style addressing cannot be used with ARN buckets")}else if(!_h(T)||T.indexOf(".")!==-1&&!String($.Endpoint).startsWith("http:")||T.toLowerCase()!==T||T.length<3)$.ForcePathStyle=!0;if($.DisableMultiRegionAccessPoints)$.disableMultiRegionAccessPoints=!0,$.DisableMRAP=!0;return $},hh=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Uh=/(\d+\.){3}\d+/,Ah=/\.\./,_h=($)=>hh.test($)&&!Uh.test($)&&!Ah.test($),Mh=($)=>{let[T,w,P,,,I]=$.split(":"),h=T==="arn"&&$.split(":").length>=6,U=Boolean(h&&w&&P&&I);if(h&&!U)throw Error(`Invalid ARN: ${$} was an invalid ARN.`);return U},Xh=($,T,w,P=!1)=>{let I=async()=>{let h;if(P)h=w.clientContextParams?.[$]??w[$]??w[T];else h=w[$]??w[T];if(typeof h==="function")return h();return h};if($==="credentialScope"||T==="CredentialScope")return async()=>{let h=typeof w.credentials==="function"?await w.credentials():w.credentials;return h?.credentialScope??h?.CredentialScope};if($==="accountId"||T==="AccountId")return async()=>{let h=typeof w.credentials==="function"?await w.credentials():w.credentials;return h?.accountId??h?.AccountId};if($==="endpoint"||T==="endpoint")return async()=>{if(w.isCustomEndpoint===!1)return;let h=await I();if(h&&typeof h==="object"){if("url"in h)return h.url.href;if("hostname"in h){let{protocol:U,hostname:A,port:_,path:M}=h;return`${U}//${A}${_?":"+_:""}${M}`}}return h};return I},j0=($)=>{if(typeof $==="object"){if("url"in $){let T=s$.parseUrl($.url);if($.headers){T.headers={};for(let w in $.headers)T.headers[w.toLowerCase()]=$.headers[w].join(", ")}return T}return $}return s$.parseUrl($)};function k$($){return async(T,w,P,I)=>{if(!P.isCustomEndpoint){let A;if(P.serviceConfiguredEndpoint)A=await P.serviceConfiguredEndpoint();else A=await $(P.serviceId);if(A)P.endpoint=()=>Promise.resolve(j0(A)),P.isCustomEndpoint=!0}let h=await p$(T,w,P);if(typeof P.endpointProvider!=="function")throw Error("config.endpointProvider is not set.");let U=P.endpointProvider(h,I);if(P.isCustomEndpoint&&P.endpoint){let A=await P.endpoint();if(A?.headers){U.headers??={};for(let[_,M]of Object.entries(A.headers))U.headers[_]=Array.isArray(M)?M:[M]}}return U}}var p$=async($,T,w)=>{let P={},I=T?.getEndpointParameterInstructions?.()||{};for(let[h,U]of Object.entries(I))switch(U.type){case"staticContextParams":P[h]=U.value;break;case"contextParams":P[h]=$[U.name];break;case"clientContextParams":case"builtInParams":P[h]=await Xh(U.name,h,w,U.type!=="builtInParams")();break;case"operationContextParams":P[h]=U.get($);break;default:throw Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(U))}if(Object.keys(I).length===0)Object.assign(P,w);if(String(w.serviceId).toLowerCase()==="s3")await Ih(P);return P};function Jh($,T,w){if(!$.__smithy_context)$.__smithy_context={features:{}};else if(!$.__smithy_context.features)$.__smithy_context.features={};$.__smithy_context.features[T]=w}function y$($){let T=k$($);return({config:w,instructions:P})=>{return(I,h)=>async(U)=>{if(w.isCustomEndpoint)Jh(h,"ENDPOINT_OVERRIDE","N");let A=await T(U.input,{getEndpointParameterInstructions(){return P}},{...w},h);h.endpointV2=A,h.authSchemes=A.properties?.authSchemes;let _=h.authSchemes?.[0];if(_){h.signing_region=_.signingRegion,h.signing_service=_.signingName;let Y=z0.getSmithyContext(h)?.selectedHttpAuthScheme?.httpAuthOption;if(Y)Y.signingProperties=Object.assign(Y.signingProperties||{},{signing_region:_.signingRegion,signingRegion:_.signingRegion,signing_service:_.signingName,signingName:_.signingName,signingRegionSet:_.signingRegionSet},_.properties)}return I({...U})}}}var Yh={name:"serializerMiddleware"},g$={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Yh.name};function fh($){let T=y$($);return(w,P)=>({applyToStack:(I)=>{I.addRelativeTo(T({config:w,instructions:P}),g$)}})}function Gh($){return(T)=>{let w=T.tls??!0,{endpoint:P,useDualstackEndpoint:I,useFipsEndpoint:h}=T,U=P!=null?async()=>j0(await z0.normalizeProvider(P)()):void 0,_=Object.assign(T,{endpoint:U,tls:w,isCustomEndpoint:!!P,useDualstackEndpoint:z0.normalizeProvider(I??!1),useFipsEndpoint:z0.normalizeProvider(h??!1)}),M=void 0;return _.serviceConfiguredEndpoint=async()=>{if(T.serviceId&&!M)M=$(T.serviceId);return M},_}}class W1{nodes;root;conditions;results;constructor($,T,w,P){this.nodes=$,this.root=T,this.conditions=w,this.results=P}static from($,T,w,P){return new W1($,T,w,P)}}class m${capacity;data=new Map;parameters=[];constructor({size:$,params:T}){if(this.capacity=$??50,T)this.parameters=T}get($,T){let w=this.hash($);if(w===!1)return T();if(!this.data.has(w)){if(this.data.size>this.capacity+10){let P=this.data.keys(),I=0;while(!0){let{value:h,done:U}=P.next();if(this.data.delete(h),U||++I>10)break}}this.data.set(w,T())}return this.data.get(w)}size(){return this.data.size}hash($){let T="",{parameters:w}=this;if(w.length===0)return!1;for(let P of w){let I=String($[P]??"");if(I.includes("|;"))return!1;T+=I+"|;"}return T}}class N extends Error{constructor($){super($);this.name="EndpointError"}}var A0="endpoints";function k($){if(typeof $!=="object"||$==null)return $;if("ref"in $)return`$${k($.ref)}`;if("fn"in $)return`${$.fn}(${($.argv||[]).map(k).join(", ")})`;return JSON.stringify($,null,2)}var d$={},Zh=($,T)=>$===T;function Rh(...$){for(let T of $)if(T!=null)return T;return}var Qh=($)=>{let T=$.split("."),w=[];for(let P of T){let I=P.indexOf("[");if(I!==-1){if(P.indexOf("]")!==P.length-1)throw new N(`Path: '${$}' does not end with ']'`);let h=P.slice(I+1,-1);if(Number.isNaN(parseInt(h)))throw new N(`Invalid array index: '${h}' in path: '${$}'`);if(I!==0)w.push(P.slice(0,I));w.push(h)}else w.push(P)}return w},v$=($,T)=>Qh(T).reduce((w,P)=>{if(typeof w!=="object")throw new N(`Index '${P}' in '${T}' not found in '${JSON.stringify($)}'`);else if(Array.isArray(w)){let I=parseInt(P);return w[I<0?w.length+I:I]}return w[P]},$),Vh=($)=>$!=null,Oh=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),H1=($,T=!1)=>{if(!T)return Oh.test($);let w=$.split(".");for(let P of w)if(!H1(P))return!1;return!0};function Nh($,T,w){return $?T:w}var Lh=($)=>!$,Wh=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),n$=($)=>Wh.test($)||$.startsWith("[")&&$.endsWith("]"),V1={[L1.EndpointURLScheme.HTTP]:80,[L1.EndpointURLScheme.HTTPS]:443},Hh=($)=>{let T=(()=>{try{if($ instanceof URL)return $;if(typeof $==="object"&&"hostname"in $){let{hostname:J,port:f,protocol:G="",path:Q="",query:Z={}}=$,R=new URL(`${G}//${J}${f?`:${f}`:""}${Q}`);return R.search=Object.entries(Z).map(([V,L])=>`${V}=${L}`).join("&"),R}return new URL($)}catch(J){return null}})();if(!T)return console.error(`Unable to parse ${JSON.stringify($)} as a whatwg URL.`),null;let w=T.href,{host:P,hostname:I,pathname:h,protocol:U,search:A}=T;if(A)return null;let _=U.slice(0,-1);if(!Object.values(L1.EndpointURLScheme).includes(_))return null;let M=n$(I),Y=w.includes(`${P}:${V1[_]}`)||typeof $==="string"&&$.includes(`${P}:${V1[_]}`),X=`${P}${Y?`:${V1[_]}`:""}`;return{scheme:_,authority:X,path:h,normalizedPath:h.endsWith("/")?h:`${h}/`,isIp:M}};function Dh($,T,w){if(w===1)return[$];if($==="")return[""];let P=$.split(T);if(w===0)return P;return P.slice(0,w-1).concat(P.slice(1).join(T))}var Eh=($,T)=>$===T,Kh=($,T,w,P)=>{if($==null||T>=w||$.length<w||/[^\u0000-\u007f]/.test($))return null;if(!P)return $.substring(T,w);return $.substring($.length-w,$.length-T)},Bh=($)=>encodeURIComponent($).replace(/[!*'()]/g,(T)=>`%${T.charCodeAt(0).toString(16).toUpperCase()}`),qh={booleanEquals:Zh,coalesce:Rh,getAttr:v$,isSet:Vh,isValidHostLabel:H1,ite:Nh,not:Lh,parseURL:Hh,split:Dh,stringEquals:Eh,substring:Kh,uriEncode:Bh},t$=($,T)=>{let w=[],{referenceRecord:P,endpointParams:I}=T,h=0;while(h<$.length){let U=$.indexOf("{",h);if(U===-1){w.push($.slice(h));break}w.push($.slice(h,U));let A=$.indexOf("}",U);if(A===-1){w.push($.slice(U));break}if($[U+1]==="{"&&$[A+1]==="}")w.push($.slice(U+1,A)),h=A+2;let _=$.substring(U+1,A);if(_.includes("#")){let[M,Y]=_.split("#");w.push(v$(P[M]??I[M],Y))}else w.push(P[_]??I[_]);h=A+1}return w.join("")},xh=({ref:$},T)=>{return T.referenceRecord[$]??T.endpointParams[$]},_0=($,T,w)=>{if(typeof $==="string")return t$($,w);else if($.fn)return u$.callFunction($,w);else if($.ref)return xh($,w);throw new N(`'${T}': ${String($)} is not a string, function or reference.`)},i$=({fn:$,argv:T},w)=>{let P=Array(T.length);for(let U=0;U<P.length;++U){let A=T[U];if(typeof A==="boolean"||typeof A==="number")P[U]=A;else P[U]=u$.evaluateExpression(A,"arg",w)}let I=$.indexOf(".");if(I!==-1){let A=d$[$.slice(0,I)]?.[$.slice(I+1)];if(typeof A==="function")return A(...P)}let h=qh[$];if(typeof h==="function")return h(...P);throw Error(`function ${$} not loaded in endpointFunctions.`)},u$={evaluateExpression:_0,callFunction:i$},r$=($,T)=>{let{assign:w}=$;if(w&&w in T.referenceRecord)throw new N(`'${w}' is already defined in Reference Record.`);let P=i$($,T);T.logger?.debug?.(`${A0} evaluateCondition: ${k($)} = ${k(P)}`);let I=P===""?!0:!!P;if(w!=null)return{result:I,toAssign:{name:w,value:P}};return{result:I}},l$=($,T)=>Object.entries($??{}).reduce((w,[P,I])=>{return w[P]=I.map((h)=>{let U=_0(h,"Header value entry",T);if(typeof U!=="string")throw new N(`Header '${P}' value '${U}' is not a string`);return U}),w},{}),D1=($,T)=>Object.entries($).reduce((w,[P,I])=>{return w[P]=a$.getEndpointProperty(I,T),w},{}),o$=($,T)=>{if(Array.isArray($))return $.map((w)=>o$(w,T));switch(typeof $){case"string":return t$($,T);case"object":if($===null)throw new N(`Unexpected endpoint property: ${$}`);return a$.getEndpointProperties($,T);case"boolean":return $;default:throw new N(`Unexpected endpoint property type: ${typeof $}`)}},a$={getEndpointProperty:o$,getEndpointProperties:D1},e$=($,T)=>{let w=_0($,"Endpoint URL",T);if(typeof w==="string")try{return new URL(w)}catch(P){throw console.error(`Failed to construct URL with ${w}`,P),P}throw new N(`Endpoint URL must be a string, got ${typeof w}`)},O1=1e8,Fh=($,T)=>{let{nodes:w,root:P,results:I,conditions:h}=$,U=P,A={},_={referenceRecord:A,endpointParams:T.endpointParams,logger:T.logger};while(U!==1&&U!==-1&&U<O1){let M=3*(Math.abs(U)-1),[Y,X,J]=[w[M],w[M+1],w[M+2]],[f,G,Q]=h[Y],Z=r$({fn:f,assign:Q,argv:G},_);if(Z.toAssign){let{name:R,value:V}=Z.toAssign;A[R]=V}U=U>=0===Z.result?X:J}if(U>=O1){let M=I[U-O1];if(M[0]===-1){let[,f]=M;throw new N(_0(f,"Error",_))}let[Y,X,J]=M;return{url:e$(Y,_),properties:D1(X,_),headers:l$(J??{},_)}}throw new N("No matching endpoint.")},E1=($=[],T)=>{let w={},P={...T,referenceRecord:{...T.referenceRecord}},I=!1;for(let h of $){let{result:U,toAssign:A}=r$(h,P);if(!U)return{result:U};if(A)I=!0,w[A.name]=A.value,P.referenceRecord[A.name]=A.value,T.logger?.debug?.(`${A0} assign: ${A.name} := ${k(A.value)}`)}if(I)return{result:!0,referenceRecord:w};return{result:!0}},zh=($,T)=>{let{conditions:w,endpoint:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T,{url:A,properties:_,headers:M}=P;T.logger?.debug?.(`${A0} Resolving endpoint from template: ${k(P)}`);let Y={url:e$(A,U)};if(M!=null)Y.headers=l$(M,U);if(_!=null)Y.properties=D1(_,U);return Y},Sh=($,T)=>{let{conditions:w,error:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T;throw new N(_0(P,"Error",U))},$T=($,T)=>{for(let w of $)if(w.type==="endpoint"){let P=zh(w,T);if(P)return P}else if(w.type==="error")Sh(w,T);else if(w.type==="tree"){let P=TT.evaluateTreeRule(w,T);if(P)return P}else throw new N(`Unknown endpoint rule: ${w}`);throw new N("Rules evaluation failed")},jh=($,T)=>{let{conditions:w,rules:P}=$,{result:I,referenceRecord:h}=E1(w,T);if(!I)return;let U=h?{...T,referenceRecord:{...T.referenceRecord,...h}}:T;return TT.evaluateRules(P,U)},TT={evaluateRules:$T,evaluateTreeRule:jh},Ch=($,T)=>{let{endpointParams:w,logger:P}=T,{parameters:I,rules:h}=$;T.logger?.debug?.(`${A0} Initial EndpointParams: ${k(w)}`);for(let A in I){let _=I[A],M=w[A];if(M==null&&_.default!=null){w[A]=_.default;continue}if(_.required&&M==null)throw new N(`Missing required parameter: '${A}'`)}let U=$T(h,{endpointParams:w,logger:P,referenceRecord:{}});return T.logger?.debug?.(`${A0} Resolved endpoint: ${k(U)}`),U},sh=($)=>{let{endpoint:T}=$;if(T===void 0)$.endpoint=async()=>{throw Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")};return $},ch=k$(S0),bh=Gh(S0),kh=y$(S0),ph=fh(S0);yh.BinaryDecisionDiagram=W1;yh.EndpointCache=m$;yh.EndpointError=N;yh.customEndpointFunctions=d$;yh.decideEndpoint=Fh;yh.endpointMiddleware=kh;yh.endpointMiddlewareOptions=g$;yh.getEndpointFromInstructions=ch;yh.getEndpointPlugin=ph;yh.isIpAddress=n$;yh.isValidHostLabel=H1;yh.middlewareEndpointToEndpointV1=j0;yh.resolveEndpoint=Ch;yh.resolveEndpointConfig=bh;yh.resolveEndpointRequiredConfig=sh;yh.resolveParams=p$;yh.toEndpointV1=j0});var ST=y((DA)=>{var K1=b("node:fs"),IU=C0(),hU=F0(),wT=b("node:crypto"),q=b("node:stream"),UU=($,T,w=(P)=>P)=>$,AU=($)=>{switch($){case"true":return!0;case"false":return!1;default:throw Error(`Unable to parse boolean value "${$}"`)}},_U=($)=>{if($===null||$===void 0)return;if(typeof $==="number"){if($===0||$===1)f0.warn(c0(`Expected boolean, got ${typeof $}: ${$}`));if($===0)return!1;if($===1)return!0}if(typeof $==="string"){let T=$.toLowerCase();if(T==="false"||T==="true")f0.warn(c0(`Expected boolean, got ${typeof $}: ${$}`));if(T==="false")return!1;if(T==="true")return!0}if(typeof $==="boolean")return $;throw TypeError(`Expected boolean, got ${typeof $}: ${$}`)},J0=($)=>{if($===null||$===void 0)return;if(typeof $==="string"){let T=parseFloat($);if(!Number.isNaN(T)){if(String(T)!==String($))f0.warn(c0(`Expected number but observed string: ${$}`));return T}}if(typeof $==="number")return $;throw TypeError(`Expected number, got ${typeof $}: ${$}`)},MU=Math.ceil(340282346638528860000000000000000000000),s0=($)=>{let T=J0($);if(T!==void 0&&!Number.isNaN(T)&&T!==1/0&&T!==-1/0){if(Math.abs(T)>MU)throw TypeError(`Expected 32-bit float, got ${$}`)}return T},Y0=($)=>{if($===null||$===void 0)return;if(Number.isInteger($)&&!Number.isNaN($))return $;throw TypeError(`Expected integer, got ${typeof $}: ${$}`)},XU=Y0,x1=($)=>j1($,32),F1=($)=>j1($,16),z1=($)=>j1($,8),j1=($,T)=>{let w=Y0($);if(w!==void 0&&JU(w,T)!==w)throw TypeError(`Expected ${T}-bit integer, got ${$}`);return w},JU=($,T)=>{switch(T){case 32:return Int32Array.of($)[0];case 16:return Int16Array.of($)[0];case 8:return Int8Array.of($)[0]}},YU=($,T)=>{if($===null||$===void 0){if(T)throw TypeError(`Expected a non-null value for ${T}`);throw TypeError("Expected a non-null value")}return $},MT=($)=>{if($===null||$===void 0)return;if(typeof $==="object"&&!Array.isArray($))return $;let T=Array.isArray($)?"array":typeof $;throw TypeError(`Expected object, got ${T}: ${$}`)},fU=($)=>{if($===null||$===void 0)return;if(typeof $==="string")return $;if(["boolean","number","bigint"].includes(typeof $))return f0.warn(c0(`Expected string, got ${typeof $}: ${$}`)),String($);throw TypeError(`Expected string, got ${typeof $}: ${$}`)},GU=($)=>{if($===null||$===void 0)return;let T=MT($),w=[];for(let P in T)if(T[P]!=null)w.push(P);if(w.length===0)throw TypeError("Unions must have exactly one non-null member. None were found.");if(w.length>1)throw TypeError(`Unions must have exactly one non-null member. Keys ${w} were not null.`);return T},C1=($)=>{if(typeof $=="string")return J0(e($));return J0($)},ZU=C1,XT=($)=>{if(typeof $=="string")return s0(e($));return s0($)},RU=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,e=($)=>{let T=$.match(RU);if(T===null||T[0].length!==$.length)throw TypeError("Expected real number, got implicit NaN");return parseFloat($)},s1=($)=>{if(typeof $=="string")return JT($);return J0($)},QU=s1,VU=s1,OU=($)=>{if(typeof $=="string")return JT($);return s0($)},JT=($)=>{switch($){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw Error(`Unable to parse float value: ${$}`)}},YT=($)=>{if(typeof $==="string")return Y0(e($));return Y0($)},NU=YT,LU=($)=>{if(typeof $==="string")return x1(e($));return x1($)},l=($)=>{if(typeof $==="string")return F1(e($));return F1($)},fT=($)=>{if(typeof $==="string")return z1(e($));return z1($)},c0=($)=>{return String(TypeError($).stack||$).split(`
|
|
2
|
+
`).slice(0,5).filter((T)=>!T.includes("stackTraceWarning")).join(`
|
|
3
|
+
`)},f0={warn:console.warn},WU=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],c1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function HU($){let T=$.getUTCFullYear(),w=$.getUTCMonth(),P=$.getUTCDay(),I=$.getUTCDate(),h=$.getUTCHours(),U=$.getUTCMinutes(),A=$.getUTCSeconds(),_=I<10?`0${I}`:`${I}`,M=h<10?`0${h}`:`${h}`,Y=U<10?`0${U}`:`${U}`,X=A<10?`0${A}`:`${A}`;return`${WU[P]}, ${_} ${c1[w]} ${T} ${M}:${Y}:${X} GMT`}var DU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),EU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let T=DU.exec($);if(!T)throw TypeError("Invalid RFC-3339 date-time value");let[w,P,I,h,U,A,_,M]=T,Y=l(o(P)),X=x(I,"month",1,12),J=x(h,"day",1,31);return M0(Y,X,J,{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M})},KU=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),BU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-3339 date-times must be expressed as strings");let T=KU.exec($);if(!T)throw TypeError("Invalid RFC-3339 date-time value");let[w,P,I,h,U,A,_,M,Y]=T,X=l(o(P)),J=x(I,"month",1,12),f=x(h,"day",1,31),G=M0(X,J,f,{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M});if(Y.toUpperCase()!="Z")G.setTime(G.getTime()-yU(Y));return G},qU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),xU=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),FU=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),zU=($)=>{if($===null||$===void 0)return;if(typeof $!=="string")throw TypeError("RFC-7231 date-times must be expressed as strings");let T=qU.exec($);if(T){let[w,P,I,h,U,A,_,M]=T;return M0(l(o(h)),B1(I),x(P,"day",1,31),{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M})}if(T=xU.exec($),T){let[w,P,I,h,U,A,_,M]=T;return sU(M0(jU(h),B1(I),x(P,"day",1,31),{hours:U,minutes:A,seconds:_,fractionalMilliseconds:M}))}if(T=FU.exec($),T){let[w,P,I,h,U,A,_,M]=T;return M0(l(o(M)),B1(P),x(I.trimLeft(),"day",1,31),{hours:h,minutes:U,seconds:A,fractionalMilliseconds:_})}throw TypeError("Invalid RFC-7231 date-time value")},SU=($)=>{if($===null||$===void 0)return;let T;if(typeof $==="number")T=$;else if(typeof $==="string")T=C1($);else if(typeof $==="object"&&$.tag===1)T=$.value;else throw TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(T)||T===1/0||T===-1/0)throw TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(T*1000))},M0=($,T,w,P)=>{let I=T-1;return bU($,I,w),new Date(Date.UTC($,I,w,x(P.hours,"hour",0,23),x(P.minutes,"minute",0,59),x(P.seconds,"seconds",0,60),pU(P.fractionalMilliseconds)))},jU=($)=>{let T=new Date().getUTCFullYear(),w=Math.floor(T/100)*100+l(o($));if(w<T)return w+100;return w},CU=1576800000000,sU=($)=>{if($.getTime()-new Date().getTime()>CU)return new Date(Date.UTC($.getUTCFullYear()-100,$.getUTCMonth(),$.getUTCDate(),$.getUTCHours(),$.getUTCMinutes(),$.getUTCSeconds(),$.getUTCMilliseconds()));return $},B1=($)=>{let T=c1.indexOf($);if(T<0)throw TypeError(`Invalid month: ${$}`);return T+1},cU=[31,28,31,30,31,30,31,31,30,31,30,31],bU=($,T,w)=>{let P=cU[T];if(T===1&&kU($))P=29;if(w>P)throw TypeError(`Invalid day for ${c1[T]} in ${$}: ${w}`)},kU=($)=>{return $%4===0&&($%100!==0||$%400===0)},x=($,T,w,P)=>{let I=fT(o($));if(I<w||I>P)throw TypeError(`${T} must be between ${w} and ${P}, inclusive`);return I},pU=($)=>{if($===null||$===void 0)return 0;return XT("0."+$)*1000},yU=($)=>{let T=$[0],w=1;if(T=="+")w=1;else if(T=="-")w=-1;else throw TypeError(`Offset direction, ${T}, must be "+" or "-"`);let P=Number($.substring(1,3)),I=Number($.substring(4,6));return w*(P*60+I)*60*1000},o=($)=>{let T=0;while(T<$.length-1&&$.charAt(T)==="0")T++;if(T===0)return $;return $.slice(T)},PT=typeof crypto<"u"&&typeof crypto.randomUUID==="function"?crypto.randomUUID.bind(crypto):void 0,H=Array.from({length:256},($,T)=>T.toString(16).padStart(2,"0")),GT=()=>{if(PT)return PT();let $=new Uint8Array(16);return crypto.getRandomValues($),$[6]=$[6]&15|64,$[8]=$[8]&63|128,H[$[0]]+H[$[1]]+H[$[2]]+H[$[3]]+"-"+H[$[4]]+H[$[5]]+"-"+H[$[6]]+H[$[7]]+"-"+H[$[8]]+H[$[9]]+"-"+H[$[10]]+H[$[11]]+H[$[12]]+H[$[13]]+H[$[14]]+H[$[15]]},v=function(T){return Object.assign(new String(T),{deserializeJSON(){return JSON.parse(String(T))},toString(){return String(T)},toJSON(){return String(T)}})};v.from=($)=>{if($&&typeof $==="object"&&($ instanceof v||("deserializeJSON"in $)))return $;else if(typeof $==="string"||Object.getPrototypeOf($)===String.prototype)return v(String($));return v(JSON.stringify($))};v.fromObject=v.from;function gU($){if($.includes(",")||$.includes('"'))$=`"${$.replace(/"/g,"\\\"")}"`;return $}var b1="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",k1="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",p1="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",ZT="(\\d?\\d)",RT="(\\d{4})",mU=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),dU=new RegExp(`^${b1}, ${ZT} ${k1} ${RT} ${p1} GMT$`),vU=new RegExp(`^${b1}, ${ZT}-${k1}-(\\d\\d) ${p1} GMT$`),nU=new RegExp(`^${b1} ${k1} ( [1-9]|\\d\\d) ${p1} ${RT}$`),tU=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],iU=($)=>{if($==null)return;let T=NaN;if(typeof $==="number")T=$;else if(typeof $==="string"){if(!/^-?\d*\.?\d+$/.test($))throw TypeError("parseEpochTimestamp - numeric string invalid.");T=Number.parseFloat($)}else if(typeof $==="object"&&$.tag===1)T=$.value;if(isNaN(T)||Math.abs(T)===1/0)throw TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(T*1000))},uU=($)=>{if($==null)return;if(typeof $!=="string")throw TypeError("RFC3339 timestamps must be strings");let T=mU.exec($);if(!T)throw TypeError(`Invalid RFC3339 timestamp format ${$}`);let[,w,P,I,h,U,A,,_,M]=T;z(P,1,12),z(I,1,31),z(h,0,23),z(U,0,59),z(A,0,60);let Y=new Date(Date.UTC(Number(w),Number(P)-1,Number(I),Number(h),Number(U),Number(A),Number(_)?Math.round(parseFloat(`0.${_}`)*1000):0));if(Y.setUTCFullYear(Number(w)),M.toUpperCase()!="Z"){let[,X,J,f]=/([+-])(\d\d):(\d\d)/.exec(M)||[void 0,"+",0,0],G=X==="-"?1:-1;Y.setTime(Y.getTime()+G*(Number(J)*60*60*1000+Number(f)*60*1000))}return Y},rU=($)=>{if($==null)return;if(typeof $!=="string")throw TypeError("RFC7231 timestamps must be strings.");let T,w,P,I,h,U,A,_;if(_=dU.exec($))[,T,w,P,I,h,U,A]=_;else if(_=vU.exec($))[,T,w,P,I,h,U,A]=_,P=(Number(P)+1900).toString();else if(_=nU.exec($))[,w,T,I,h,U,A,P]=_;if(P&&U){let M=Date.UTC(Number(P),tU.indexOf(w),Number(T),Number(I),Number(h),Number(U),A?Math.round(parseFloat(`0.${A}`)*1000):0);z(T,1,31),z(I,0,23),z(h,0,59),z(U,0,60);let Y=new Date(M);return Y.setUTCFullYear(Number(P)),Y}throw TypeError(`Invalid RFC7231 date-time value ${$}.`)};function z($,T,w){let P=Number($);if(P<T||P>w)throw Error(`Value ${P} out of range [${T}, ${w}]`)}function lU($,T,w){if(w<=0||!Number.isInteger(w))throw Error("Invalid number of delimiters ("+w+") for splitEvery.");let P=$.split(T);if(w===1)return P;let I=[],h="";for(let U=0;U<P.length;U++){if(h==="")h=P[U];else h+=T+P[U];if((U+1)%w===0)I.push(h),h=""}if(h!=="")I.push(h);return I}var oU=($)=>{let T=$.length,w=[],P=!1,I=void 0,h=0;for(let U=0;U<T;++U){let A=$[U];switch(A){case'"':if(I!=="\\")P=!P;break;case",":if(!P)w.push($.slice(h,U)),h=U+1;break}I=A}return w.push($.slice(h)),w.map((U)=>{U=U.trim();let A=U.length;if(A<2)return U;if(U[0]==='"'&&U[A-1]==='"')U=U.slice(1,A-1);return U.replace(/\\"/g,'"')})},IT=/^-?\d*(\.\d+)?$/;class k0{string;type;constructor($,T){if(this.string=$,this.type=T,!IT.test($))throw Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance]($){if(!$||typeof $!=="object")return!1;let T=$;return k0.prototype.isPrototypeOf($)||T.type==="bigDecimal"&&IT.test(T.string)}}function aU($){return new k0(String($),"bigDecimal")}var QT={},S1={};for(let $=0;$<256;$++){let T=$.toString(16).toLowerCase();if(T.length===1)T=`0${T}`;QT[$]=T,S1[T]=$}function eU($){if($.length%2!==0)throw Error("Hex encoded strings must have an even number length");let T=new Uint8Array($.length/2);for(let w=0;w<$.length;w+=2){let P=$.slice(w,w+2).toLowerCase();if(P in S1)T[w/2]=S1[P];else throw Error(`Cannot decode unrecognized sequence ${P} as hexadecimal`)}return T}function VT($){let T="";for(let w=0;w<$.byteLength;w++)T+=QT[$[w]];return T}var OT=($)=>typeof ArrayBuffer==="function"&&$ instanceof ArrayBuffer||Object.prototype.toString.call($)==="[object ArrayBuffer]",a=($,T=0,w=$.byteLength-T)=>{if(!OT($))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof $} (${$})`);return Buffer.from($,T,w)},p0=($,T)=>{if(typeof $!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof $} (${$})`);return T?Buffer.from($,T):Buffer.from($)},$A=/^[A-Za-z0-9+/]*={0,2}$/,y1=($)=>{if($.length*3%4!==0)throw TypeError("Incorrect padding on base64 string.");if(!$A.exec($))throw TypeError("Invalid base64 string.");let T=p0($,"base64");return new Uint8Array(T.buffer,T.byteOffset,T.byteLength)},y0=($)=>{let T=p0($,"utf8");return new Uint8Array(T.buffer,T.byteOffset,T.byteLength/Uint8Array.BYTES_PER_ELEMENT)},G0=($)=>{let T;if(typeof $==="string")T=y0($);else T=$;if(typeof T!=="object"||typeof T.byteOffset!=="number"||typeof T.byteLength!=="number")throw Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return a(T.buffer,T.byteOffset,T.byteLength).toString("base64")},TA=($)=>{if(!$)return 0;if(typeof $==="string")return Buffer.byteLength($);else if(typeof $.byteLength==="number")return $.byteLength;else if(typeof $.size==="number")return $.size;else if(typeof $.start==="number"&&typeof $.end==="number")return $.end+1-$.start;else if($ instanceof K1.ReadStream){if($.path!=null)return K1.lstatSync($.path).size;else if(typeof $.fd==="number")return K1.fstatSync($.fd).size}throw Error(`Body Length computation failed for ${$}`)},NT=($)=>{if(typeof $==="string")return y0($);if(ArrayBuffer.isView($))return new Uint8Array($.buffer,$.byteOffset,$.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array($)},g1=($)=>{if(typeof $==="string")return $;if(typeof $!=="object"||typeof $.byteOffset!=="number"||typeof $.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return a($.buffer,$.byteOffset,$.byteLength).toString("utf8")},LT=($,T)=>(w,P)=>async(I)=>{let{response:h}=await w(I);try{let U=await T(h,$);return{response:h,output:U}}catch(U){if(Object.defineProperty(U,"$response",{value:h,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in U)){try{U.message+=`
|
|
4
|
+
Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(_){if(!P.logger||P.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else P.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof U.$responseBodyText<"u"){if(U.$response)U.$response.body=U.$responseBodyText}try{if(IU.HttpResponse.isInstance(h)){let{headers:_={}}=h,M=Object.entries(_);U.$metadata={httpStatusCode:h.statusCode,requestId:q1(/^x-[\w-]+-request-?id$/,M),extendedRequestId:q1(/^x-[\w-]+-id-2$/,M),cfId:q1(/^x-[\w-]+-cf-id$/,M)}}}catch(_){}}throw U}},q1=($,T)=>{return(T.find(([w])=>{return w.match($)})||[void 0,void 0])[1]},WT=($,T)=>(w,P)=>async(I)=>{let h=$,U=P.endpointV2?async()=>hU.toEndpointV1(P.endpointV2):h.endpoint;if(!U)throw Error("No valid endpoint provider available.");let A=await T(I.input,{...$,endpoint:U});return w({...I,request:A})},HT={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},DT={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function wA($,T,w){return{applyToStack:(P)=>{P.add(LT($,w),HT),P.add(WT($,T),DT)}}}class ET{algorithmIdentifier;secret;hash;constructor($,T){this.algorithmIdentifier=$,this.secret=T,this.reset()}update($,T){this.hash.update(NT(hT($,T)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?wT.createHmac(this.algorithmIdentifier,hT(this.secret)):wT.createHash(this.algorithmIdentifier)}}function hT($,T){if(Buffer.isBuffer($))return $;if(typeof $==="string")return p0($,T);if(ArrayBuffer.isView($))return a($.buffer,$.byteOffset,$.byteLength);return a($)}class X0 extends Uint8Array{static fromString($,T="utf-8"){if(typeof $==="string"){if(T==="base64")return X0.mutate(y1($));return X0.mutate(y0($))}throw Error(`Unsupported conversion from ${typeof $} to Uint8ArrayBlobAdapter.`)}static mutate($){return Object.setPrototypeOf($,X0.prototype),$}transformToString($="utf-8"){if($==="base64")return G0(this);return g1(this)}}var KT=class extends q.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:T,checksum:w,source:P,checksumSourceLocation:I,base64Encoder:h}){super();if(typeof P.pipe==="function")this.source=P;else throw Error(`@smithy/util-stream: unsupported source type ${P?.constructor?.name??P} in ChecksumStream.`);this.base64Encoder=h??G0,this.expectedChecksum=T,this.checksum=w,this.checksumSourceLocation=I,this.source.pipe(this)}_read(T){if(this.pendingCallback){let w=this.pendingCallback;this.pendingCallback=null,w()}}_write(T,w,P){try{if(this.checksum.update(T),!this.push(T)){this.pendingCallback=P;return}}catch(I){return P(I)}return P()}async _final(T){try{let w=await this.checksum.digest(),P=this.base64Encoder(w);if(this.expectedChecksum!==P)return T(Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${P}" in response header "${this.checksumSourceLocation}".`))}catch(w){return T(w)}return this.push(null),T()}},S=($)=>typeof ReadableStream==="function"&&($?.constructor?.name===ReadableStream.name||$ instanceof ReadableStream),BT=($)=>{return typeof Blob==="function"&&($?.constructor?.name===Blob.name||$ instanceof Blob)},PA=typeof ReadableStream==="function"?ReadableStream:function(){};class qT extends PA{}var IA=({expectedChecksum:$,checksum:T,source:w,checksumSourceLocation:P,base64Encoder:I})=>{if(!S(w))throw Error(`@smithy/util-stream: unsupported source type ${w?.constructor?.name??w} in ChecksumStream.`);let h=I??G0;if(typeof TransformStream!=="function")throw Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let U=new TransformStream({start(){},async transform(_,M){T.update(_),M.enqueue(_)},async flush(_){let M=await T.digest(),Y=h(M);if($!==Y){let X=Error(`Checksum mismatch: expected "${$}" but received "${Y}" in response header "${P}".`);_.error(X)}else _.terminate()}});w.pipeThrough(U);let A=U.readable;return Object.setPrototypeOf(A,qT.prototype),A};function hA($){if(typeof ReadableStream==="function"&&S($.source))return IA($);return new KT($)}class b0{allocByteArray;byteLength=0;byteArrays=[];constructor($){this.allocByteArray=$}push($){this.byteArrays.push($),this.byteLength+=$.byteLength}flush(){if(this.byteArrays.length===1){let w=this.byteArrays[0];return this.reset(),w}let $=this.allocByteArray(this.byteLength),T=0;for(let w=0;w<this.byteArrays.length;++w){let P=this.byteArrays[w];$.set(P,T),T+=P.byteLength}return this.reset(),$}reset(){this.byteArrays=[],this.byteLength=0}}function UA($,T,w){let P=$.getReader(),I=!1,h=0,U=["",new b0((M)=>new Uint8Array(M))],A=-1,_=async(M)=>{let{value:Y,done:X}=await P.read(),J=Y;if(X){if(A!==-1){let f=r(U,A);if(p(f)>0)M.enqueue(f)}M.close()}else{let f=FT(J,!1);if(A!==f){if(A>=0)M.enqueue(r(U,A));A=f}if(A===-1){M.enqueue(J);return}let G=p(J);h+=G;let Q=p(U[A]);if(G>=T&&Q===0)M.enqueue(J);else{let Z=xT(U,A,J);if(!I&&h>T*2)I=!0,w?.warn(`@smithy/util-stream - stream chunk size ${G} is below threshold of ${T}, automatically buffering.`);if(Z>=T)M.enqueue(r(U,A));else await _(M)}}};return new ReadableStream({pull:_})}function xT($,T,w){switch(T){case 0:return $[0]+=w,p($[0]);case 1:case 2:return $[T].push(w),p($[T])}}function r($,T){switch(T){case 0:let w=$[0];return $[0]="",w;case 1:case 2:return $[T].flush()}throw Error(`@smithy/util-stream - invalid index ${T} given to flush()`)}function p($){return $?.byteLength??$?.length??0}function FT($,T=!0){if(T&&typeof Buffer<"u"&&$ instanceof Buffer)return 2;if($ instanceof Uint8Array)return 1;if(typeof $==="string")return 0;return-1}function AA($,T,w){if(S($))return UA($,T,w);let P=new q.Readable({read(){}}),I=!1,h=0,U=["",new b0((_)=>new Uint8Array(_)),new b0((_)=>Buffer.from(new Uint8Array(_)))],A=-1;return $.on("data",(_)=>{let M=FT(_,!0);if(A!==M){if(A>=0)P.push(r(U,A));A=M}if(A===-1){P.push(_);return}let Y=p(_);h+=Y;let X=p(U[A]);if(Y>=T&&X===0)P.push(_);else{let J=xT(U,A,_);if(!I&&h>T*2)I=!0,w?.warn(`@smithy/util-stream - stream chunk size ${Y} is below threshold of ${T}, automatically buffering.`);if(J>=T)P.push(r(U,A))}}),$.on("end",()=>{if(A!==-1){let _=r(U,A);if(p(_)>0)P.push(_)}P.push(null)}),P}var _A=($,T)=>{let{base64Encoder:w,bodyLengthChecker:P,checksumAlgorithmFn:I,checksumLocationName:h,streamHasher:U}=T,A=w!==void 0&&P!==void 0&&I!==void 0&&h!==void 0&&U!==void 0,_=A?U(I,$):void 0,M=$.getReader();return new ReadableStream({async pull(Y){let{value:X,done:J}=await M.read();if(J){if(Y.enqueue(`0\r
|
|
5
|
+
`),A){let f=w(await _);Y.enqueue(`${h}:${f}\r
|
|
6
|
+
`),Y.enqueue(`\r
|
|
7
|
+
`)}Y.close()}else Y.enqueue(`${(P(X)||0).toString(16)}\r
|
|
8
|
+
${X}\r
|
|
9
|
+
`)}})};function MA($,T){let w=$,P=$;if(S(P))return _A(P,T);let{base64Encoder:I,bodyLengthChecker:h,checksumAlgorithmFn:U,checksumLocationName:A,streamHasher:_}=T,M=I!==void 0&&U!==void 0&&A!==void 0&&_!==void 0,Y=M?_(U,w):void 0,X=new q.Readable({read:()=>{}});return w.on("data",(J)=>{let f=h(J)||0;if(f===0)return;X.push(`${f.toString(16)}\r
|
|
10
|
+
`),X.push(J),X.push(`\r
|
|
11
|
+
`)}),w.on("end",async()=>{if(X.push(`0\r
|
|
12
|
+
`),M){let J=I(await Y);X.push(`${A}:${J}\r
|
|
13
|
+
`),X.push(`\r
|
|
14
|
+
`)}X.push(null)}),X}async function XA($,T){let w=0,P=[],I=$.getReader(),h=!1;while(!h){let{done:_,value:M}=await I.read();if(M)P.push(M),w+=M?.byteLength??0;if(w>=T)break;h=_}I.releaseLock();let U=new Uint8Array(Math.min(T,w)),A=0;for(let _ of P){if(_.byteLength>U.byteLength-A){U.set(_.subarray(0,U.byteLength-A),A);break}else U.set(_,A);A+=_.length}return U}var JA=($,T)=>{if(S($))return XA($,T);return new Promise((w,P)=>{let I=new YA;I.limit=T,$.pipe(I),$.on("error",(h)=>{I.end(),P(h)}),I.on("error",P),I.on("finish",function(){let h=new Uint8Array(Buffer.concat(this.buffers));w(h)})})},YA=class extends q.Writable{buffers=[];limit=1/0;bytesBuffered=0;_write(T,w,P){if(this.buffers.push(T),this.bytesBuffered+=T.byteLength??0,this.bytesBuffered>=this.limit){let I=this.bytesBuffered-this.limit,h=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=h.subarray(0,h.byteLength-I),this.emit("finish")}P()}},fA=async($)=>{if(typeof Blob==="function"&&$ instanceof Blob||$.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==void 0)return new Uint8Array(await $.arrayBuffer());return GA($)}return ZA($)};async function GA($){let T=await RA($),w=y1(T);return new Uint8Array(w)}async function ZA($){let T=[],w=$.getReader(),P=!1,I=0;while(!P){let{done:A,value:_}=await w.read();if(_)T.push(_),I+=_.length;P=A}let h=new Uint8Array(I),U=0;for(let A of T)h.set(A,U),U+=A.length;return h}function RA($){return new Promise((T,w)=>{let P=new FileReader;P.onloadend=()=>{if(P.readyState!==2)return w(Error("Reader aborted too early"));let I=P.result??"",h=I.indexOf(","),U=h>-1?h+1:I.length;T(I.substring(U))},P.onabort=()=>w(Error("Read aborted")),P.onerror=()=>w(P.error),P.readAsDataURL($)})}var UT="The stream has already been transformed.",QA=($)=>{if(!AT($)&&!S($)){let I=$?.__proto__?.constructor?.name||$;throw Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${I}`)}let T=!1,w=async()=>{if(T)throw Error(UT);return T=!0,await fA($)},P=(I)=>{if(typeof I.stream!=="function")throw Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
|
|
15
|
+
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return I.stream()};return Object.assign($,{transformToByteArray:w,transformToString:async(I)=>{let h=await w();if(I==="base64")return G0(h);else if(I==="hex")return VT(h);else if(I===void 0||I==="utf8"||I==="utf-8")return g1(h);else if(typeof TextDecoder==="function")return new TextDecoder(I).decode(h);else throw Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(T)throw Error(UT);if(T=!0,AT($))return P($);else if(S($))return $;else throw Error(`Cannot transform payload to web stream, got ${$}`)}})},AT=($)=>typeof Blob==="function"&&$ instanceof Blob;class zT extends q.Writable{bufferedBytes=[];_write($,T,w){this.bufferedBytes.push($),w()}}var VA=($)=>typeof ReadableStream==="function"&&$ instanceof ReadableStream;async function OA($){let T=[],w=$.getReader(),P=!1,I=0;while(!P){let{done:A,value:_}=await w.read();if(_)T.push(_),I+=_.length;P=A}let h=new Uint8Array(I),U=0;for(let A of T)h.set(A,U),U+=A.length;return h}var NA=($)=>{if(VA($))return OA($);return new Promise((T,w)=>{let P=new zT;$.pipe(P),$.on("error",(I)=>{P.end(),w(I)}),P.on("error",w),P.on("finish",function(){let I=new Uint8Array(Buffer.concat(this.bufferedBytes));T(I)})})},_T="The stream has already been transformed.",LA=($)=>{if(!($ instanceof q.Readable))try{return QA($)}catch(P){let I=$?.__proto__?.constructor?.name||$;throw Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${I}`)}let T=!1,w=async()=>{if(T)throw Error(_T);return T=!0,await NA($)};return Object.assign($,{transformToByteArray:w,transformToString:async(P)=>{let I=await w();if(P===void 0||Buffer.isEncoding(P))return a(I.buffer,I.byteOffset,I.byteLength).toString(P);else return new TextDecoder(P).decode(I)},transformToWebStream:()=>{if(T)throw Error(_T);if($.readableFlowing!==null)throw Error("The stream has been consumed by other callbacks.");if(typeof q.Readable.toWeb!=="function")throw Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return T=!0,q.Readable.toWeb($)}})};async function WA($){if(typeof $.stream==="function")$=$.stream();return $.tee()}async function HA($){if(S($)||BT($))return WA($);let T=new q.PassThrough,w=new q.PassThrough;return $.pipe(T),$.pipe(w),[T,w]}DA.ChecksumStream=KT;DA.Hash=ET;DA.LazyJsonString=v;DA.NumericValue=k0;DA.Uint8ArrayBlobAdapter=X0;DA._parseEpochTimestamp=iU;DA._parseRfc3339DateTimeWithOffset=uU;DA._parseRfc7231DateTime=rU;DA.calculateBodyLength=TA;DA.copyDocumentWithTransform=UU;DA.createBufferedReadable=AA;DA.createChecksumStream=hA;DA.dateToUtcString=HU;DA.deserializerMiddleware=LT;DA.deserializerMiddlewareOption=HT;DA.expectBoolean=_U;DA.expectByte=z1;DA.expectFloat32=s0;DA.expectInt=XU;DA.expectInt32=x1;DA.expectLong=Y0;DA.expectNonNull=YU;DA.expectNumber=J0;DA.expectObject=MT;DA.expectShort=F1;DA.expectString=fU;DA.expectUnion=GU;DA.fromArrayBuffer=a;DA.fromBase64=y1;DA.fromHex=eU;DA.fromString=p0;DA.fromUtf8=y0;DA.generateIdempotencyToken=GT;DA.getAwsChunkedEncodingStream=MA;DA.getSerdePlugin=wA;DA.handleFloat=QU;DA.headStream=JA;DA.isArrayBuffer=OT;DA.isBlob=BT;DA.isReadableStream=S;DA.limitedParseDouble=s1;DA.limitedParseFloat=VU;DA.limitedParseFloat32=OU;DA.logger=f0;DA.nv=aU;DA.parseBoolean=AU;DA.parseEpochTimestamp=SU;DA.parseRfc3339DateTime=EU;DA.parseRfc3339DateTimeWithOffset=BU;DA.parseRfc7231DateTime=zU;DA.quoteHeader=gU;DA.sdkStreamMixin=LA;DA.serializerMiddleware=WT;DA.serializerMiddlewareOption=DT;DA.splitEvery=lU;DA.splitHeader=oU;DA.splitStream=HA;DA.strictParseByte=fT;DA.strictParseDouble=C1;DA.strictParseFloat=ZU;DA.strictParseFloat32=XT;DA.strictParseInt=NU;DA.strictParseInt32=LU;DA.strictParseLong=YT;DA.strictParseShort=l;DA.toBase64=G0;DA.toHex=VT;DA.toUint8Array=NT;DA.toUtf8=g1;DA.v4=GT});var C0=y((o_)=>{var O=ST(),E=h1(),g_=P0(),n=async($=new Uint8Array,T)=>{if($ instanceof Uint8Array)return O.Uint8ArrayBlobAdapter.mutate($);if(!$)return O.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let w=T.streamCollector($);return O.Uint8ArrayBlobAdapter.mutate(await w)};function R0($){return encodeURIComponent($).replace(/[!'()*]/g,function(T){return"%"+T.charCodeAt(0).toString(16).toUpperCase()})}class $0{serdeContext;setSerdeContext($){this.serdeContext=$}}class j{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor($){this.method=$.method||"GET",this.hostname=$.hostname||"localhost",this.port=$.port,this.query=$.query||{},this.headers=$.headers||{},this.body=$.body,this.protocol=$.protocol?$.protocol.slice(-1)!==":"?`${$.protocol}:`:$.protocol:"https:",this.path=$.path?$.path.charAt(0)!=="/"?`/${$.path}`:$.path:"/",this.username=$.username,this.password=$.password,this.fragment=$.fragment}static clone($){let T=new j({...$,headers:{...$.headers}});if(T.query)T.query=m_(T.query);return T}static isInstance($){if(!$)return!1;let T=$;return"method"in T&&"protocol"in T&&"hostname"in T&&"path"in T&&typeof T.query==="object"&&typeof T.headers==="object"}clone(){return j.clone(this)}}function m_($){return Object.keys($).reduce((T,w)=>{let P=$[w];return{...T,[w]:Array.isArray(P)?[...P]:P}},{})}class m1{statusCode;reason;headers;body;constructor($){this.statusCode=$.statusCode,this.reason=$.reason,this.headers=$.headers||{},this.body=$.body}static isInstance($){if(!$)return!1;let T=$;return typeof T.statusCode==="number"&&typeof T.headers==="object"}}class g0 extends $0{options;compositeErrorRegistry;constructor($){super();this.options=$,this.compositeErrorRegistry=E.TypeRegistry.for($.defaultNamespace);for(let T of $.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(T)}getRequestType(){return j}getResponseType(){return m1}setSerdeContext($){if(this.serdeContext=$,this.serializer.setSerdeContext($),this.deserializer.setSerdeContext($),this.getPayloadCodec())this.getPayloadCodec().setSerdeContext($)}updateServiceEndpoint($,T){if("url"in T){if($.protocol=T.url.protocol,$.hostname=T.url.hostname,$.port=T.url.port?Number(T.url.port):void 0,$.path=T.url.pathname,$.fragment=T.url.hash||void 0,$.username=T.url.username||void 0,$.password=T.url.password||void 0,!$.query)$.query={};for(let[w,P]of T.url.searchParams.entries())$.query[w]=P;if(T.headers)for(let w in T.headers)$.headers[w]=T.headers[w].join(", ");return $}else{if($.protocol=T.protocol,$.hostname=T.hostname,$.port=T.port?Number(T.port):void 0,$.path=T.path,$.query={...T.query},T.headers)for(let w in T.headers)$.headers[w]=T.headers[w];return $}}setHostPrefix($,T,w){if(this.serdeContext?.disableHostPrefix)return;let P=E.NormalizedSchema.of(T.input),I=E.translateTraits(T.traits??{});if(I.endpoint){let h=I.endpoint?.[0];if(typeof h==="string"){for(let[U,A]of P.structIterator()){if(!A.getMergedTraits().hostLabel)continue;let _=w[U];if(typeof _!=="string")throw Error(`@smithy/core/schema - ${U} in input must be a string as hostLabel.`);h=h.replace(`{${U}}`,_)}$.hostname=h+$.hostname}}}deserializeMetadata($){return{httpStatusCode:$.statusCode,requestId:$.headers["x-amzn-requestid"]??$.headers["x-amzn-request-id"]??$.headers["x-amz-request-id"],extendedRequestId:$.headers["x-amz-id-2"],cfId:$.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:$,requestSchema:T,initialRequest:w}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:$,requestSchema:T,initialRequest:w})}async deserializeEventStream({response:$,responseSchema:T,initialResponseContainer:w}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:$,responseSchema:T,initialResponseContainer:w})}async loadEventStreamCapability(){let{EventStreamSerde:$}=await import("./index-0.6.3-f5w18za6.mjs");return new $({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage($,T,w,P,I){return[]}getEventStreamMarshaller(){let $=this.serdeContext;if(!$.eventStreamMarshaller)throw Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return $.eventStreamMarshaller}}class CT extends g0{async serializeRequest($,T,w){let P=T&&typeof T==="object"?T:{},I=this.serializer,h={},U={},A=await w.endpoint(),_=E.NormalizedSchema.of($?.input),M=[],Y=[],X=!1,J,f=new j({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:h,headers:U,body:void 0});if(A){this.updateServiceEndpoint(f,A),this.setHostPrefix(f,$,P);let G=E.translateTraits($.traits);if(G.http){f.method=G.http[0];let[Q,Z]=G.http[1].split("?");if(f.path=="/")f.path=Q;else f.path+=Q;let R=new URLSearchParams(Z??"");for(let[V,L]of R)h[V]=L}}for(let[G,Q]of _.structIterator()){let Z=Q.getMergedTraits()??{},R=P[G];if(R==null&&!Q.isIdempotencyToken()){if(Z.httpLabel){if(f.path.includes(`{${G}+}`)||f.path.includes(`{${G}}`))throw Error(`No value provided for input HTTP label: ${G}.`)}continue}if(Z.httpPayload)if(Q.isStreaming())if(Q.isStructSchema()){if(P[G])J=await this.serializeEventStream({eventStream:P[G],requestSchema:_})}else J=R;else I.write(Q,R),J=I.flush();else if(Z.httpLabel){I.write(Q,R);let V=I.flush();if(f.path.includes(`{${G}+}`))f.path=f.path.replace(`{${G}+}`,V.split("/").map(R0).join("/"));else if(f.path.includes(`{${G}}`))f.path=f.path.replace(`{${G}}`,R0(V))}else if(Z.httpHeader)I.write(Q,R),U[Z.httpHeader.toLowerCase()]=String(I.flush());else if(typeof Z.httpPrefixHeaders==="string")for(let V in R){let L=R[V],W=Z.httpPrefixHeaders+V;I.write([Q.getValueSchema(),{httpHeader:W}],L),U[W.toLowerCase()]=I.flush()}else if(Z.httpQuery||Z.httpQueryParams)this.serializeQuery(Q,R,h);else X=!0,M.push(G),Y.push(Q)}if(X&&P){let[G,Q]=(_.getName(!0)??"#Unknown").split("#"),Z=_.getSchema()[6],R=[3,G,Q,_.getMergedTraits(),M,Y,void 0];if(Z)R[6]=Z;else R.pop();I.write(R,P),J=I.flush()}return f.headers=U,f.query=h,f.body=J,f}serializeQuery($,T,w){let P=this.serializer,I=$.getMergedTraits();if(I.httpQueryParams){for(let h in T)if(!(h in w)){let U=T[h],A=$.getValueSchema();Object.assign(A.getMergedTraits(),{...I,httpQuery:h,httpQueryParams:void 0}),this.serializeQuery(A,U,w)}return}if($.isListSchema()){let h=!!$.getMergedTraits().sparse,U=[];for(let A of T){P.write([$.getValueSchema(),I],A);let _=P.flush();if(h||_!==void 0)U.push(_)}w[I.httpQuery]=U}else P.write([$,I],T),w[I.httpQuery]=P.flush()}async deserializeResponse($,T,w){let P=this.deserializer,I=E.NormalizedSchema.of($.output),h={};if(w.statusCode>=300){let A=await n(w.body,T);if(A.byteLength>0)Object.assign(h,await P.read(15,A));throw await this.handleError($,T,w,h,this.deserializeMetadata(w)),Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let A in w.headers){let _=w.headers[A];delete w.headers[A],w.headers[A.toLowerCase()]=_}let U=await this.deserializeHttpMessage(I,T,w,h);if(U.length){let A=await n(w.body,T);if(A.byteLength>0){let _=await P.read(I,A);for(let M of U)if(_[M]!=null)h[M]=_[M]}}else if(U.discardResponseBody)await n(w.body,T);return h.$metadata=this.deserializeMetadata(w),h}async deserializeHttpMessage($,T,w,P,I){let h;if(P instanceof Set)h=I;else h=P;let U=!0,A=this.deserializer,_=E.NormalizedSchema.of($),M=[];for(let[Y,X]of _.structIterator()){let J=X.getMemberTraits();if(J.httpPayload){if(U=!1,X.isStreaming())if(X.isStructSchema())h[Y]=await this.deserializeEventStream({response:w,responseSchema:_});else h[Y]=O.sdkStreamMixin(w.body);else if(w.body){let G=await n(w.body,T);if(G.byteLength>0)h[Y]=await A.read(X,G)}}else if(J.httpHeader){let f=String(J.httpHeader).toLowerCase(),G=w.headers[f];if(G!=null)if(X.isListSchema()){let Q=X.getValueSchema();Q.getMergedTraits().httpHeader=f;let Z;if(Q.isTimestampSchema()&&Q.getSchema()===4)Z=O.splitEvery(G,",",2);else Z=O.splitHeader(G);let R=[];for(let V of Z)R.push(await A.read(Q,V.trim()));h[Y]=R}else h[Y]=await A.read(X,G)}else if(J.httpPrefixHeaders!==void 0){h[Y]={};for(let f in w.headers)if(f.startsWith(J.httpPrefixHeaders)){let G=w.headers[f],Q=X.getValueSchema();Q.getMergedTraits().httpHeader=f,h[Y][f.slice(J.httpPrefixHeaders.length)]=await A.read(Q,G)}}else if(J.httpResponseCode)h[Y]=w.statusCode;else M.push(Y)}return M.discardResponseBody=U,M}}class sT extends g0{async serializeRequest($,T,w){let P=this.serializer,I={},h={},U=await w.endpoint(),A=E.NormalizedSchema.of($?.input),_=A.getSchema(),M,Y=T&&typeof T==="object"?T:{},X=new j({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:I,headers:h,body:void 0});if(U)this.updateServiceEndpoint(X,U),this.setHostPrefix(X,$,Y);if(Y){let J=A.getEventStreamMember();if(J){if(Y[J]){let f={};for(let[G,Q]of A.structIterator())if(G!==J&&Y[G])P.write(Q,Y[G]),f[G]=P.flush();M=await this.serializeEventStream({eventStream:Y[J],requestSchema:A,initialRequest:f})}}else P.write(_,Y),M=P.flush()}return X.headers=Object.assign(X.headers,h),X.query=I,X.body=M,X.method="POST",X}async deserializeResponse($,T,w){let P=this.deserializer,I=E.NormalizedSchema.of($.output),h={};if(w.statusCode>=300){let A=await n(w.body,T);if(A.byteLength>0)Object.assign(h,await P.read(15,A));throw await this.handleError($,T,w,h,this.deserializeMetadata(w)),Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let A in w.headers){let _=w.headers[A];delete w.headers[A],w.headers[A.toLowerCase()]=_}let U=I.getEventStreamMember();if(U)h[U]=await this.deserializeEventStream({response:w,responseSchema:I,initialResponseContainer:h});else{let A=await n(w.body,T);if(A.byteLength>0)Object.assign(h,await P.read(I,A))}return h.$metadata=this.deserializeMetadata(w),h}}var cT=($,T,w,P,I,h)=>{if(T!=null&&T[w]!==void 0){let U=P();if(U==null||U.length<=0)throw Error("Empty value provided for input HTTP label: "+w+".");$=$.replace(I,h?U.split("/").map((A)=>R0(A)).join("/"):R0(U))}else throw Error("No value provided for input HTTP label: "+w+".");return $};function d_($,T){return new d1($,T)}class d1{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor($,T){this.input=$,this.context=T}async build(){let{hostname:$,protocol:T="https",port:w,path:P}=await this.context.endpoint();this.path=P;for(let I of this.resolvePathStack)I(this.path);return new j({protocol:T,hostname:this.hostname||$,port:w,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn($){return this.hostname=$,this}bp($){return this.resolvePathStack.push((T)=>{this.path=`${T?.endsWith("/")?T.slice(0,-1):T||""}`+$}),this}p($,T,w,P){return this.resolvePathStack.push((I)=>{this.path=cT(I,this.input,$,T,w,P)}),this}h($){return this.headers=$,this}q($){return this.query=$,this}b($){return this.body=$,this}m($){return this.method=$,this}}function v1($,T){if(T.timestampFormat.useTrait){if($.isTimestampSchema()&&($.getSchema()===5||$.getSchema()===6||$.getSchema()===7))return $.getSchema()}let{httpLabel:w,httpPrefixHeaders:P,httpHeader:I,httpQuery:h}=$.getMergedTraits();return(T.httpBindings?typeof P==="string"||Boolean(I)?6:Boolean(h)||Boolean(w)?5:void 0:void 0)??T.timestampFormat.default}class n1 extends $0{settings;constructor($){super();this.settings=$}read($,T){let w=E.NormalizedSchema.of($);if(w.isListSchema())return O.splitHeader(T).map((P)=>this.read(w.getValueSchema(),P));if(w.isBlobSchema())return(this.serdeContext?.base64Decoder??O.fromBase64)(T);if(w.isTimestampSchema())switch(v1(w,this.settings)){case 5:return O._parseRfc3339DateTimeWithOffset(T);case 6:return O._parseRfc7231DateTime(T);case 7:return O._parseEpochTimestamp(T);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",T),new Date(T)}if(w.isStringSchema()){let P=w.getMergedTraits().mediaType,I=T;if(P){if(w.getMergedTraits().httpHeader)I=this.base64ToUtf8(I);if(P==="application/json"||P.endsWith("+json"))I=O.LazyJsonString.from(I);return I}}if(w.isNumericSchema())return Number(T);if(w.isBigIntegerSchema())return BigInt(T);if(w.isBigDecimalSchema())return new O.NumericValue(T,"bigDecimal");if(w.isBooleanSchema())return String(T).toLowerCase()==="true";return T}base64ToUtf8($){return(this.serdeContext?.utf8Encoder??O.toUtf8)((this.serdeContext?.base64Decoder??O.fromBase64)($))}}class bT extends $0{codecDeserializer;stringDeserializer;constructor($,T){super();this.codecDeserializer=$,this.stringDeserializer=new n1(T)}setSerdeContext($){this.stringDeserializer.setSerdeContext($),this.codecDeserializer.setSerdeContext($),this.serdeContext=$}read($,T){let w=E.NormalizedSchema.of($),P=w.getMergedTraits(),I=this.serdeContext?.utf8Encoder??O.toUtf8;if(P.httpHeader||P.httpResponseCode)return this.stringDeserializer.read(w,I(T));if(P.httpPayload){if(w.isBlobSchema()){let h=this.serdeContext?.utf8Decoder??O.fromUtf8;if(typeof T==="string")return h(T);return T}else if(w.isStringSchema()){if("byteLength"in T)return I(T);return T}}return this.codecDeserializer.read(w,T)}}class t1 extends $0{settings;stringBuffer="";constructor($){super();this.settings=$}write($,T){let w=E.NormalizedSchema.of($);switch(typeof T){case"object":if(T===null){this.stringBuffer="null";return}if(w.isTimestampSchema()){if(!(T instanceof Date))throw Error(`@smithy/core/protocols - received non-Date value ${T} when schema expected Date in ${w.getName(!0)}`);switch(v1(w,this.settings)){case 5:this.stringBuffer=T.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=O.dateToUtcString(T);break;case 7:this.stringBuffer=String(T.getTime()/1000);break;default:console.warn("Missing timestamp format, using epoch seconds",T),this.stringBuffer=String(T.getTime()/1000)}return}if(w.isBlobSchema()&&"byteLength"in T){this.stringBuffer=(this.serdeContext?.base64Encoder??O.toBase64)(T);return}if(w.isListSchema()&&Array.isArray(T)){let h="";for(let U of T){this.write([w.getValueSchema(),w.getMergedTraits()],U);let A=this.flush(),_=w.getValueSchema().isTimestampSchema()?A:O.quoteHeader(A);if(h!=="")h+=", ";h+=_}this.stringBuffer=h;return}this.stringBuffer=JSON.stringify(T,null,2);break;case"string":let P=w.getMergedTraits().mediaType,I=T;if(P){if(P==="application/json"||P.endsWith("+json"))I=O.LazyJsonString.from(I);if(w.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??O.toBase64)(I.toString());return}}this.stringBuffer=T;break;default:if(w.isIdempotencyToken())this.stringBuffer=O.generateIdempotencyToken();else this.stringBuffer=String(T)}}flush(){let $=this.stringBuffer;return this.stringBuffer="",$}}class kT{codecSerializer;stringSerializer;buffer;constructor($,T,w=new t1(T)){this.codecSerializer=$,this.stringSerializer=w}setSerdeContext($){this.codecSerializer.setSerdeContext($),this.stringSerializer.setSerdeContext($)}write($,T){let w=E.NormalizedSchema.of($),P=w.getMergedTraits();if(P.httpHeader||P.httpLabel||P.httpQuery){this.stringSerializer.write(w,T),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(w,T)}flush(){if(this.buffer!==void 0){let $=this.buffer;return this.buffer=void 0,$}return this.codecSerializer.flush()}}class pT{name;kind;values;constructor({name:$,kind:T=g_.FieldPosition.HEADER,values:w=[]}){this.name=$,this.kind=T,this.values=w}add($){this.values.push($)}set($){this.values=$}remove($){this.values=this.values.filter((T)=>T!==$)}toString(){return this.values.map(($)=>$.includes(",")||$.includes(" ")?`"${$}"`:$).join(", ")}get(){return this.values}}class yT{entries={};encoding;constructor({fields:$=[],encoding:T="utf-8"}){$.forEach(this.setField.bind(this)),this.encoding=T}setField($){this.entries[$.name.toLowerCase()]=$}getField($){return this.entries[$.toLowerCase()]}removeField($){delete this.entries[$.toLowerCase()]}getByType($){return Object.values(this.entries).filter((T)=>T.kind===$)}}function v_($){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test($)}var n_=($)=>{return{setHttpHandler(T){$.httpHandler=T},httpHandler(){return $.httpHandler},updateHttpClientConfig(T,w){$.httpHandler?.updateHttpClientConfig(T,w)},httpHandlerConfigs(){return $.httpHandler.httpHandlerConfigs()}}},t_=($)=>{return{httpHandler:$.httpHandler()}},jT="content-length";function gT($){return(T)=>async(w)=>{let P=w.request;if(j.isInstance(P)){let{body:I,headers:h}=P;if(I&&Object.keys(h).map((U)=>U.toLowerCase()).indexOf(jT)===-1)try{let U=$(I);P.headers={...P.headers,[jT]:String(U)}}catch(U){}}return T({...w,request:P})}}var mT={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},i_=($)=>({applyToStack:(T)=>{T.add(gT($.bodyLengthChecker),mT)}}),Z0=($)=>encodeURIComponent($).replace(/[!'()*]/g,u_),u_=($)=>`%${$.charCodeAt(0).toString(16).toUpperCase()}`,r_=($)=>$.split("/").map(Z0).join("/");function l_($){let T=[];for(let w of Object.keys($).sort()){let P=$[w];if(w=Z0(w),Array.isArray(P))for(let I=0,h=P.length;I<h;I++)T.push(`${w}=${Z0(P[I])}`);else{let I=w;if(P||typeof P==="string")I+=`=${Z0(P)}`;T.push(I)}}return T.join("&")}function dT($){let T={};if($=$.replace(/^\?/,""),$)for(let w of $.split("&")){let[P,I=null]=w.split("=");if(P=decodeURIComponent(P),I)I=decodeURIComponent(I);if(!(P in T))T[P]=I;else if(Array.isArray(T[P]))T[P].push(I);else T[P]=[T[P],I]}return T}var vT=($)=>{if(typeof $==="string")return vT(new URL($));let{hostname:T,pathname:w,port:P,protocol:I,search:h}=$,U;if(h)U=dT(h);return{hostname:T,port:P?parseInt(P):void 0,protocol:I,path:w,query:U}};o_.Field=pT;o_.Fields=yT;o_.FromStringShapeDeserializer=n1;o_.HttpBindingProtocol=CT;o_.HttpInterceptingShapeDeserializer=bT;o_.HttpInterceptingShapeSerializer=kT;o_.HttpProtocol=g0;o_.HttpRequest=j;o_.HttpResponse=m1;o_.RequestBuilder=d1;o_.RpcProtocol=sT;o_.SerdeContext=$0;o_.ToStringShapeSerializer=t1;o_.buildQueryString=l_;o_.collectBody=n;o_.contentLengthMiddleware=gT;o_.contentLengthMiddlewareOptions=mT;o_.determineTimestampFormat=v1;o_.escapeUri=Z0;o_.escapeUriPath=r_;o_.extendedEncodeURIComponent=R0;o_.getContentLengthPlugin=i_;o_.getHttpHandlerExtensionConfiguration=n_;o_.isValidHostname=v_;o_.parseQueryString=dT;o_.parseUrl=vT;o_.requestBuilder=d_;o_.resolveHttpHandlerRuntimeConfig=t_;o_.resolvedPath=cT});var h1=y((y6)=>{var nT=D0(),B6=C0(),q6=F0(),m0=($)=>{if(typeof $==="function")return $();return $},r1=($,T,w,P,I)=>({name:T,namespace:$,traits:w,input:P,output:I}),x6=($)=>(T,w)=>async(P)=>{let{response:I}=await T(P),{operationSchema:h}=nT.getSmithyContext(w),[,U,A,_,M,Y]=h??[];try{let X=await $.protocol.deserializeResponse(r1(U,A,_,M,Y),{...$,...w},I);return{response:I,output:X}}catch(X){if(Object.defineProperty(X,"$response",{value:I,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in X)){try{X.message+=`
|
|
16
|
+
Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`}catch(f){if(!w.logger||w.logger?.constructor?.name==="NoOpLogger")console.warn("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.");else w.logger?.warn?.("Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.")}if(typeof X.$responseBodyText<"u"){if(X.$response)X.$response.body=X.$responseBodyText}try{if(B6.HttpResponse.isInstance(I)){let{headers:f={}}=I,G=Object.entries(f);X.$metadata={httpStatusCode:I.statusCode,requestId:i1(/^x-[\w-]+-request-?id$/,G),extendedRequestId:i1(/^x-[\w-]+-id-2$/,G),cfId:i1(/^x-[\w-]+-cf-id$/,G)}}}catch(f){}}throw X}},i1=($,T)=>{return(T.find(([w])=>{return w.match($)})||[void 0,void 0])[1]},F6=($)=>(T,w)=>async(P)=>{let{operationSchema:I}=nT.getSmithyContext(w),[,h,U,A,_,M]=I??[],Y=w.endpointV2?async()=>q6.toEndpointV1(w.endpointV2):$.endpoint,X=await $.protocol.serializeRequest(r1(h,U,A,_,M),P.input,{...$,...w,endpoint:Y});return T({...P,request:X})},tT={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},iT={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function z6($){return{applyToStack:(T)=>{T.add(F6($),iT),T.add(x6($),tT),$.protocol.setSerdeContext($)}}}class D{name;namespace;traits;static assign($,T){return Object.assign($,T)}static[Symbol.hasInstance]($){let T=this.prototype.isPrototypeOf($);if(!T&&typeof $==="object"&&$!==null)return $.symbol===this.symbol;return T}getName(){return this.namespace+"#"+this.name}}class t0 extends D{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=t0.symbol}var S6=($,T,w,P)=>D.assign(new t0,{name:T,namespace:$,traits:w,valueSchema:P});class i0 extends D{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=i0.symbol}var j6=($,T,w,P,I)=>D.assign(new i0,{name:T,namespace:$,traits:w,keySchema:P,valueSchema:I});class u0 extends D{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=u0.symbol}var C6=($,T,w,P,I)=>D.assign(new u0,{name:T,namespace:$,traits:w,input:P,output:I});class N0 extends D{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=N0.symbol}var s6=($,T,w,P,I)=>D.assign(new N0,{name:T,namespace:$,traits:w,memberNames:P,memberList:I});class r0 extends N0{static symbol=Symbol.for("@smithy/err");ctor;symbol=r0.symbol}var c6=($,T,w,P,I,h)=>D.assign(new r0,{name:T,namespace:$,traits:w,memberNames:P,memberList:I,ctor:null}),d0=[];function O0($){if(typeof $==="object")return $;if($=$|0,d0[$])return d0[$];let T={},w=0;for(let P of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])if(($>>w++&1)===1)T[P]=1;return d0[$]=T}var Q0={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},v0=[],n0={};class s{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=s.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor($,T){this.ref=$,this.memberName=T;let w=[],P=$,I=$;this._isMemberSchema=!1;while(u1(P))w.push(P[1]),P=P[0],I=m0(P),this._isMemberSchema=!0;if(w.length>0){this.memberTraits={};for(let h=w.length-1;h>=0;--h){let U=w[h];Object.assign(this.memberTraits,O0(U))}}else this.memberTraits=0;if(I instanceof s){let h=this.memberTraits;Object.assign(this,I),this.memberTraits=Object.assign({},h,I.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=T??I.memberName;return}if(this.schema=m0(I),uT(this.schema))this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3];else this.name=this.memberName??String(I),this.traits=0;if(this._isMemberSchema&&!T)throw Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance]($){let T=this.prototype.isPrototypeOf($);if(!T&&typeof $==="object"&&$!==null)return $.symbol===this.symbol;return T}static of($){let T=typeof $==="function"||typeof $==="object"&&$!==null;if(typeof $==="number"){if(v0[$])return v0[$]}else if(typeof $==="string"){if(n0[$])return n0[$]}else if(T){if($[Q0.ns])return $[Q0.ns]}let w=m0($);if(w instanceof s)return w;if(u1(w)){let[I,h]=w;if(I instanceof s)return Object.assign(I.getMergedTraits(),O0(h)),I;throw Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify($,null,2)}.`)}let P=new s(w);if(T)return $[Q0.ns]=P;if(typeof w==="string")return n0[w]=P;if(typeof w==="number")return v0[w]=P;return P}getSchema(){let $=this.schema;if(Array.isArray($)&&$[0]===0)return $[4];return $}getName($=!1){let{name:T}=this;return!$&&T&&T.includes("#")?T.split("#")[1]:T||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let $=this.getSchema();return typeof $==="number"?$>=64&&$<128:$[0]===1}isMapSchema(){let $=this.getSchema();return typeof $==="number"?$>=128&&$<=255:$[0]===2}isStructSchema(){let $=this.getSchema();if(typeof $!=="object")return!1;let T=$[0];return T===3||T===-3||T===4}isUnionSchema(){let $=this.getSchema();if(typeof $!=="object")return!1;return $[0]===4}isBlobSchema(){let $=this.getSchema();return $===21||$===42}isTimestampSchema(){let $=this.getSchema();return typeof $==="number"&&$>=4&&$<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:$}=this.getMergedTraits();return!!$||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return O0(this.memberTraits)}getOwnTraits(){return O0(this.traits)}getKeySchema(){let[$,T]=[this.isDocumentSchema(),this.isMapSchema()];if(!$&&!T)throw Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let w=this.getSchema(),P=$?15:w[4]??0;return V0([P,0],"key")}getValueSchema(){let $=this.getSchema(),[T,w,P]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],I=typeof $==="number"?63&$:$&&typeof $==="object"&&(w||P)?$[3+$[0]]:T?15:void 0;if(I!=null)return V0([I,0],w?"value":"member");throw Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema($){let T=this.getSchema();if(this.isStructSchema()&&T[4].includes($)){let w=T[4].indexOf($),P=T[5][w];return V0(u1(P)?P:[P,0],$)}if(this.isDocumentSchema())return V0([15,0],$);throw Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${$}.`)}getMemberSchemas(){let $={};try{for(let[T,w]of this.structIterator())$[T]=w}catch(T){}return $}getEventStreamMember(){if(this.isStructSchema()){for(let[$,T]of this.structIterator())if(T.isStreaming()&&T.isStructSchema())return $}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw Error("@smithy/core/schema - cannot iterate non-struct schema.");let $=this.getSchema(),T=$[4].length,w=$[Q0.it];if(w&&T===w.length){yield*w;return}w=Array(T);for(let P=0;P<T;++P){let I=$[4][P],h=V0([$[5][P],0],I);yield w[P]=[I,h]}$[Q0.it]=w}}function V0($,T){if($ instanceof s)return Object.assign($,{memberName:T,_isMemberSchema:!0});return new s($,T)}var u1=($)=>Array.isArray($)&&$.length===2,uT=($)=>Array.isArray($)&&$.length>=5;class L0 extends D{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=L0.symbol}var b6=($,T,w,P)=>D.assign(new L0,{name:T,namespace:$,traits:P,schemaRef:w}),k6=($,T,w,P)=>D.assign(new L0,{name:T,namespace:$,traits:w,schemaRef:P}),p6={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class C{namespace;schemas;exceptions;static registries=new Map;constructor($,T=new Map,w=new Map){this.namespace=$,this.schemas=T,this.exceptions=w}static for($){if(!C.registries.has($))C.registries.set($,new C($));return C.registries.get($)}copyFrom($){let{schemas:T,exceptions:w}=this;for(let[P,I]of $.schemas)if(!T.has(P))T.set(P,I);for(let[P,I]of $.exceptions)if(!w.has(P))w.set(P,I)}register($,T){let w=this.normalizeShapeId($);for(let P of[this,C.for(w.split("#")[0])])P.schemas.set(w,T)}getSchema($){let T=this.normalizeShapeId($);if(!this.schemas.has(T))throw Error(`@smithy/core/schema - schema not found for ${T}`);return this.schemas.get(T)}registerError($,T){let w=$,P=w[1];for(let I of[this,C.for(P)])I.schemas.set(P+"#"+w[2],w),I.exceptions.set(w,T)}getErrorCtor($){let T=$;if(this.exceptions.has(T))return this.exceptions.get(T);return C.for(T[1]).exceptions.get(T)}getBaseException(){for(let $ of this.exceptions.keys())if(Array.isArray($)){let[,T,w]=$,P=T+"#"+w;if(P.startsWith("smithy.ts.sdk.synthetic.")&&P.endsWith("ServiceException"))return $}return}find($){for(let T of this.schemas.values())if($(T))return T;return}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId($){if($.includes("#"))return $;return this.namespace+"#"+$}}y6.ErrorSchema=r0;y6.ListSchema=t0;y6.MapSchema=i0;y6.NormalizedSchema=s;y6.OperationSchema=u0;y6.SCHEMA=p6;y6.Schema=D;y6.SimpleSchema=L0;y6.StructureSchema=N0;y6.TypeRegistry=C;y6.deref=m0;y6.deserializerMiddlewareOption=tT;y6.error=c6;y6.getSchemaSerdePlugin=z6;y6.isStaticSchema=uT;y6.list=S6;y6.map=j6;y6.op=C6;y6.operation=r1;y6.serializerMiddlewareOption=iT;y6.sim=b6;y6.simAdapter=k6;y6.simpleSchemaCacheN=v0;y6.simpleSchemaCacheS=n0;y6.struct=s6;y6.traitsCache=d0;y6.translateTraits=O0});
|
|
17
|
+
export{P0 as lpa,h1 as mpa,D0 as npa,C$ as opa,F0 as ppa,ST as qpa,C0 as rpa};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$0 as m}from"./cli-0.6.3-syb9w8h5.mjs";import{U4 as K,k5 as $}from"./cli-0.6.3-nawttnnp.mjs";import{Vba as Q,Xda as Z,Yba as J,rca as Y,tba as X}from"./cli-0.6.3-cz70v0dc.mjs";import{qga as W}from"./cli-0.6.3-mwvq805r.mjs";import{wpa as V}from"./cli-0.6.3-qh59pqrb.mjs";function y(){let z=K()?.organizationUuid;if(!z)return null;let B=J().overageCreditGrantCache?.[z];if(!B)return null;if(Date.now()-B.timestamp>q)return null;return B.info}function G(){let z=K()?.organizationUuid;if(!z)return;let B=J().overageCreditGrantCache;if(!B||!(z in B))return;Q((N)=>{let P={...N.overageCreditGrantCache};return delete P[z],{...N,overageCreditGrantCache:P}})}function U(z){if(z.amount_minor_units==null||!z.currency)return null;if(z.currency.toUpperCase()==="USD"){let B=z.amount_minor_units/100;return Number.isInteger(B)?`$${B}`:`$${B.toFixed(2)}`}return null}var q=3600000;var w=V(()=>{W();$();Y();Z();X();m()});
|
|
2
|
+
export{y as Rh,G as Sh,U as Th,w as Uh};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ae as B,ye as V}from"./cli-0.6.3-qj1bfrer.mjs";import{AL as U,Ax as Q,Bx as q,CL as w,HO as F,Yi as L}from"./cli-0.6.3-kz9egvgw.mjs";import{d_ as K,i_ as k}from"./cli-0.6.3-cz70v0dc.mjs";import{tha as I,wha as $}from"./cli-0.6.3-tjykjtxh.mjs";import{Nha as G,Uha as _}from"./cli-0.6.3-2seqm104.mjs";import{wpa as Z}from"./cli-0.6.3-qh59pqrb.mjs";async function h(W,X){let E=V(W);if(!E)return null;try{let A=await U({systemPrompt:Q(['Generate a short kebab-case name (2-4 words) that captures the main topic of this conversation. Use lowercase words separated by hyphens. Examples: "fix-login-bug", "add-auth-feature", "refactor-api-client", "debug-test-failures". Return JSON with a "name" field.']),userPrompt:E,outputFormat:{type:"json_schema",schema:{type:"object",properties:{name:{type:"string"}},required:["name"],additionalProperties:!1}},signal:X,options:{querySource:"rename_generate_name",agents:[],isNonInteractiveSession:!1,hasAppendSystemPrompt:!1,mcpTools:[]}}),Y=L(A.message.content),z=K(Y);if(z&&typeof z==="object"&&"name"in z&&typeof z.name==="string")return z.name;return null}catch(A){return I(`generateSessionName failed: ${G(A)}`,{level:"error"}),null}}var D=Z(()=>{w();$();_();k();F();B();q()});
|
|
2
|
+
export{h as we,D as xe};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Eb as p}from"./cli-0.6.3-29t031py.mjs";import{Aj as O,Bj as o,Gr as W,HO as Jj,Ir as e,Li as T,MA as E,NA as Gj,Ni as u,Nk as n,UQ as Kj,YP as f,ZP as m,_P as S,_k as R,aR as I,dl as r,es as h,fO as x,fs as k,gt as w,jQ as A,jt as V,ks as jj,nl as y,oR as Qj,ol as s,pt as qj,qQ as c,rQ as X,rt as zj,rv as C,sk as $,sv as Bj,tk as P}from"./cli-0.6.3-kz9egvgw.mjs";import{US as v,gT as t}from"./cli-0.6.3-y8ymw6ed.mjs";import{iU as D,lU as Hj}from"./cli-0.6.3-wfrn6z2y.mjs";import{D3 as i,w3 as b}from"./cli-0.6.3-nawttnnp.mjs";import{Dfa as Z,Efa as l}from"./cli-0.6.3-0xzsm005.mjs";import{tha as N,wha as g}from"./cli-0.6.3-tjykjtxh.mjs";import{$ka as M,Nna as a,Oja as L,Rja as U,Wja as Y,Zka as _,hna as K}from"./cli-0.6.3-g7nc10fr.mjs";a();s();jj();qj();o();u();import{dirname as Vj}from"path";Qj();zj();Hj();l();g();e();Jj();i();r();Gj();Kj();t();Bj();n();function Xj(j){for(let q=j.length-1;q>=0;q--){let B=j[q];if(B?.type!=="assistant")continue;let z=B.message.content.find((J)=>J.type==="tool_use"&&J.name===O);if(!z||z.type!=="tool_use")continue;let G=z.input;if(G===null||typeof G!=="object")return[];let H=C().safeParse(G.todos);return H.success?H.data:[]}return[]}function cj(j,q){if(j.fileHistorySnapshots&&j.fileHistorySnapshots.length>0)W(j.fileHistorySnapshots,(B)=>{q((z)=>({...z,fileHistory:B}))});if(!v()&&j.messages&&j.messages.length>0){let B=Xj(j.messages);if(B.length>0){let z=L();q((G)=>({...G,todos:{...G.todos,[z]:B}}))}}}function Yj(j){return}function Zj(j,q){if(!j&&!q)return;return{name:j??"",color:q==="default"?void 0:q}}function $j(j,q,B){if(q)return{agentDefinition:q,agentType:void 0};if(!j)return K(void 0),{agentDefinition:void 0,agentType:void 0};let z=B.activeAgents.find((G)=>G.agentType===j);if(!z)return N(`Resumed session had agent "${j}" but it is no longer available. Using default behavior.`),K(void 0),{agentDefinition:void 0,agentType:void 0};if(K(z.agentType),!_()&&z.model&&z.model!=="inherit")M(b(z.model));return{agentDefinition:z,agentType:z.agentType}}async function Pj(j,q,B,z){if(!j)return z;V.cache.clear?.();let G=await V(q),H=[...G.allAgents,...B];return{...G,allAgents:H,activeAgents:w(H)}}function Rj(j){let q=$();if(q){X(q);return}if(!j)return;try{process.chdir(j.worktreePath)}catch{X(null);return}E(j.worktreePath),Y(Z()),P(j),I(),y(),R.cache.clear?.()}function pj(){let j=$();if(!j)return;P(null),I(),y(),R.cache.clear?.();try{process.chdir(j.originalCwd)}catch{return}E(j.originalCwd),Y(Z())}async function dj(j,q,B){let z;if(z=B.modeApi?.matchSessionMode(j.mode),z)j.messages.push(x(z,"warning"));if(!q.forkSession){let Q=q.sessionIdOverride??j.sessionId;if(Q){if(U(T(Q),q.transcriptPath?Vj(q.transcriptPath):null),await p(),await m(),!h(Q))k(j.messages)}}else if(j.contentReplacements?.length)await f(j.contentReplacements);if(A(q.forkSession?{...j,worktreeSession:void 0}:j),!q.forkSession)Rj(j.worktreeSession),S();let{agentDefinition:G,agentType:H}=$j(j.agentSetting,B.mainThreadAgentDefinition,B.agentDefinitions);c(B.modeApi?.isCoordinatorMode()?"coordinator":"normal");let J=q.includeAttribution?Yj(j):void 0,F=Zj(j.agentName,j.agentColor);D(j.agentName);let d=await Pj(!!z,B.currentCwd,B.cliAgents,B.agentDefinitions);return{messages:j.messages,fileHistorySnapshots:j.fileHistorySnapshots,contentReplacements:j.contentReplacements,agentName:j.agentName,agentColor:j.agentColor==="default"?void 0:j.agentColor,restoredAgentDef:G,initialState:{...B.initialState,...H&&{agent:H},...J&&{attribution:J},...F&&{standaloneAgentContext:F},agentDefinitions:d}}}
|
|
2
|
+
export{cj as Ra,Zj as Sa,$j as Ta,Rj as Ua,pj as Va,dj as Wa};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import{CY as JT,DY as ST,dZ as IT,wY as X}from"./cli-0.6.3-sz0yt1ax.mjs";import{G5 as K,H5 as VT}from"./cli-0.6.3-6ax8m5hv.mjs";import{$7 as Y,G_ as Q,I_ as UT,Pda as H,Vba as z,W9 as s,Xda as n,Y8 as BT,Yba as V,Z8 as _T,a_ as XT,b8 as o,cca as l,dca as d,e_ as FT,h_ as qT,i_ as OT,rca as D,xba as f,zba as YT}from"./cli-0.6.3-cz70v0dc.mjs";import{Dfa as E,Efa as QT}from"./cli-0.6.3-0xzsm005.mjs";import{Yga as GT,Zga as $T,bha as zT,fha as P,jha as KT}from"./cli-0.6.3-tjykjtxh.mjs";import{Sha as u,Uha as LT}from"./cli-0.6.3-2seqm104.mjs";import{koa as r,loa as ZT}from"./cli-0.6.3-z6sz55zd.mjs";import{wpa as I}from"./cli-0.6.3-qh59pqrb.mjs";function m(){let T=f(E(),P().existsSync)!==null,w=s(E());return[{key:"workspace",text:"Ask Claude to create a new app or clone a repository",isComplete:!1,isCompletable:!0,isEnabled:w},{key:"claudemd",text:"Set up repo instructions (/init creates AGENTS.md or updates existing CLAUDE.md; either file counts)",isComplete:T,isCompletable:!0,isEnabled:!w}]}function M(){return m().filter(({isCompletable:T,isEnabled:w})=>T&&w).every(({isComplete:T})=>T)}var k=I(()=>{QT();XT();KT();YT()});function a(){if(l().hasCompletedProjectOnboarding)return;if(M())d((T)=>({...T,hasCompletedProjectOnboarding:!0}))}var fT;var h=I(()=>{ZT();D();k();k();fT=r(()=>{let T=l();if(T.hasCompletedProjectOnboarding||T.projectOnboardingSeenCount>=4||process.env.IS_DEMO)return!1;return!M()})});import{stat as i}from"fs/promises";import{homedir as xT}from"os";import{join as HT}from"path";function RT(T){z((w)=>({...w,appleTerminalSetupInProgress:!0,appleTerminalBackupPath:T}))}function L(){z((T)=>({...T,appleTerminalSetupInProgress:!1}))}function WT(){let T=V();return{inProgress:T.appleTerminalSetupInProgress??!1,backupPath:T.appleTerminalBackupPath||null}}function _(){return HT(xT(),"Library","Preferences","com.apple.Terminal.plist")}async function t(){let T=_(),w=`${T}.bak`;try{let{code:v}=await Y("defaults",["export","com.apple.Terminal",T]);if(v!==0)return null;try{await i(T)}catch{return null}return await Y("defaults",["export","com.apple.Terminal",w]),RT(w),w}catch(v){return H(v),null}}async function e(){let{inProgress:T,backupPath:w}=WT();if(!T)return{status:"no_backup"};if(!w)return L(),{status:"no_backup"};try{await i(w)}catch{return L(),{status:"no_backup"}}try{let{code:v}=await Y("defaults",["import","com.apple.Terminal",w]);if(v!==0)return{status:"failed",backupPath:w};return await Y("killall",["cfprefsd"]),L(),{status:"restored"}}catch(v){return H(Error(`Failed to restore Terminal.app settings with: ${v}`)),L(),{status:"failed",backupPath:w}}}var TT=I(()=>{D();o();n()});import{randomBytes as y}from"crypto";import{copyFile as N,mkdir as c,readFile as p,writeFile as C}from"fs/promises";import{homedir as g,platform as A}from"os";import{dirname as MT,join as R}from"path";import{pathToFileURL as AT}from"url";function jT(){let T=process.env.VSCODE_GIT_ASKPASS_MAIN??"",w=process.env.PATH??"";return T.includes(".vscode-server")||T.includes(".cursor-server")||T.includes(".windsurf-server")||w.includes(".vscode-server")||w.includes(".cursor-server")||w.includes(".windsurf-server")}function Ww(){if(!Q.terminal||!(Q.terminal in j))return null;return j[Q.terminal]??null}function Z(T){if(!JT())return T;return`\x1B]8;;${AT(T).href}\x07${T}\x1B]8;;\x07`}function uT(){return A()==="darwin"&&Q.terminal==="Apple_Terminal"||Q.terminal==="vscode"||Q.terminal==="cursor"||Q.terminal==="windsurf"||Q.terminal==="alacritty"||Q.terminal==="zed"}async function ET(T){let w="";switch(Q.terminal){case"Apple_Terminal":w=await kT(T);break;case"vscode":w=await b("VSCode",T);break;case"cursor":w=await b("Cursor",T);break;case"windsurf":w=await b("Windsurf",T);break;case"alacritty":w=await lT(T);break;case"zed":w=await DT(T);break;case null:break}return z((v)=>{if(["vscode","cursor","windsurf","alacritty","zed"].includes(Q.terminal??"")){if(v.shiftEnterKeyBindingInstalled===!0)return v;return{...v,shiftEnterKeyBindingInstalled:!0}}else if(Q.terminal==="Apple_Terminal"){if(v.optionAsMetaKeyInstalled===!0)return v;return{...v,optionAsMetaKeyInstalled:!0}}return v}),a(),w}function Lw(){return V().shiftEnterKeyBindingInstalled===!0}function zw(){return V().hasUsedBackslashReturn===!0}function Vw(){if(!V().hasUsedBackslashReturn)z((w)=>({...w,hasUsedBackslashReturn:!0}))}async function _w(T,w,v){if(Q.terminal&&Q.terminal in j){let $=`Shift+Enter is natively supported in ${j[Q.terminal]}.
|
|
2
|
+
|
|
3
|
+
No configuration needed. Just use Shift+Enter to add newlines.`;return T($),null}if(!uT()){let $=Q.terminal||"your current terminal",B=BT(),J="";if(B==="macos")J=` • macOS: Apple Terminal
|
|
4
|
+
`;else if(B==="windows")J=` • Windows: Windows Terminal
|
|
5
|
+
`;let F=`Terminal setup cannot be run from ${$}.
|
|
6
|
+
|
|
7
|
+
This command configures a convenient Shift+Enter shortcut for multi-line prompts.
|
|
8
|
+
${K.dim("Note: You can already use backslash (\\\\) + return to add newlines.")}
|
|
9
|
+
|
|
10
|
+
To set up the shortcut (optional):
|
|
11
|
+
1. Exit tmux/screen temporarily
|
|
12
|
+
2. Run /terminal-setup directly in one of these terminals:
|
|
13
|
+
${J} • IDE: VSCode, Cursor, Windsurf, Zed
|
|
14
|
+
• Other: Alacritty
|
|
15
|
+
3. Return to tmux/screen - settings will persist
|
|
16
|
+
|
|
17
|
+
${K.dim("Note: iTerm2, WezTerm, Ghostty, Kitty, and Warp support Shift+Enter natively.")}`;return T(F),null}let q=await ET(w.options.theme);return T(q),null}async function b(T="VSCode",w){if(jT())return`${X("warning",w)(`Cannot install keybindings from a remote ${T} session.`)}${G}${G}${T} keybindings must be installed on your local machine, not the remote server.${G}${G}To install the Shift+Enter keybinding:${G}1. Open ${T} on your local machine (not connected to remote)${G}2. Open the Command Palette (Cmd/Ctrl+Shift+P) → "Preferences: Open Keyboard Shortcuts (JSON)"${G}3. Add this keybinding (the file must be a JSON array):${G}${G}${K.dim(`[
|
|
18
|
+
{
|
|
19
|
+
"key": "shift+enter",
|
|
20
|
+
"command": "workbench.action.terminal.sendSequence",
|
|
21
|
+
"args": { "text": "\\u001b\\r" },
|
|
22
|
+
"when": "terminalFocus"
|
|
23
|
+
}
|
|
24
|
+
]`)}${G}`;let v=T==="VSCode"?"Code":T,q=R(g(),A()==="win32"?R("AppData","Roaming",v,"User"):A()==="darwin"?R("Library","Application Support",v,"User"):R(".config",v,"User")),$=R(q,"keybindings.json");try{await c(q,{recursive:!0});let B="[]",J=[],F=!1;try{B=await p($,{encoding:"utf-8"}),F=!0,J=FT(B)??[]}catch(x){if(!u(x))throw x}if(F){let x=y(4).toString("hex"),S=`${$}.${x}.bak`;try{await N($,S)}catch{return`${X("warning",w)(`Error backing up existing ${T} terminal keybindings. Bailing out.`)}${G}${K.dim(`See ${Z($)}`)}${G}${K.dim(`Backup path: ${Z(S)}`)}${G}`}}if(J.find((x)=>x.key==="shift+enter"&&x.command==="workbench.action.terminal.sendSequence"&&x.when==="terminalFocus"))return`${X("warning",w)(`Found existing ${T} terminal Shift+Enter key binding. Remove it to continue.`)}${G}${K.dim(`See ${Z($)}`)}${G}`;let U=qT(B,{key:"shift+enter",command:"workbench.action.terminal.sendSequence",args:{text:"\x1B\r"},when:"terminalFocus"});return await C($,U,{encoding:"utf-8"}),`${X("success",w)(`Installed ${T} terminal Shift+Enter key binding`)}${G}${K.dim(`See ${Z($)}`)}${G}`}catch(B){throw H(B),Error(`Failed to install ${T} terminal Shift+Enter key binding`)}}async function wT(T){let{code:w}=await Y("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${T}':useOptionAsMetaKey bool true`,_()]);if(w!==0){let{code:v}=await Y("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${T}':useOptionAsMetaKey true`,_()]);if(v!==0)return H(Error(`Failed to enable Option as Meta key for Terminal.app profile: ${T}`)),!1}return!0}async function vT(T){let{code:w}=await Y("/usr/libexec/PlistBuddy",["-c",`Add :'Window Settings':'${T}':Bell bool false`,_()]);if(w!==0){let{code:v}=await Y("/usr/libexec/PlistBuddy",["-c",`Set :'Window Settings':'${T}':Bell false`,_()]);if(v!==0)return H(Error(`Failed to disable audio bell for Terminal.app profile: ${T}`)),!1}return!0}async function kT(T){try{if(!await t())throw Error("Failed to create backup of Terminal.app preferences, bailing out");let{stdout:v,code:q}=await Y("defaults",["read","com.apple.Terminal","Default Window Settings"]);if(q!==0||!v.trim())throw Error("Failed to read default Terminal.app profile");let{stdout:$,code:B}=await Y("defaults",["read","com.apple.Terminal","Startup Window Settings"]);if(B!==0||!$.trim())throw Error("Failed to read startup Terminal.app profile");let J=!1,F=v.trim(),W=await wT(F),O=await vT(F);if(W||O)J=!0;let U=$.trim();if(U!==F){let x=await wT(U),S=await vT(U);if(x||S)J=!0}if(!J)throw Error("Failed to enable Option as Meta key or disable audio bell for any Terminal.app profile");return await Y("killall",["cfprefsd"]),L(),`${X("success",T)("Configured Terminal.app settings:")}${G}${X("success",T)('- Enabled "Use Option as Meta key"')}${G}${X("success",T)("- Switched to visual bell")}${G}${K.dim("Option+Enter will now enter a newline.")}${G}${K.dim("You must restart Terminal.app for changes to take effect.",T)}${G}`}catch(w){H(w);let v=await e(),q="Failed to enable Option as Meta key for Terminal.app.";if(v.status==="restored")throw Error(`${q} Your settings have been restored from backup.`);else if(v.status==="failed")throw Error(`${q} Restoring from backup failed, try manually with: defaults import com.apple.Terminal ${v.backupPath}`);else throw Error(`${q} No backup was available to restore from.`)}}async function lT(T){let v=[],q=process.env.XDG_CONFIG_HOME;if(q)v.push(R(q,"alacritty","alacritty.toml"));else v.push(R(g(),".config","alacritty","alacritty.toml"));if(A()==="win32"){let F=process.env.APPDATA;if(F)v.push(R(F,"alacritty","alacritty.toml"))}let $=null,B="",J=!1;for(let F of v)try{B=await p(F,{encoding:"utf-8"}),$=F,J=!0;break}catch(W){if(!u(W))throw W}if(!$)$=v[0]??null;if(!$)throw Error("No valid config path found for Alacritty");try{if(J){if(B.includes('mods = "Shift"')&&B.includes('key = "Return"'))return`${X("warning",T)("Found existing Alacritty Shift+Enter key binding. Remove it to continue.")}${G}${K.dim(`See ${Z($)}`)}${G}`;let W=y(4).toString("hex"),O=`${$}.${W}.bak`;try{await N($,O)}catch{return`${X("warning",T)("Error backing up existing Alacritty config. Bailing out.")}${G}${K.dim(`See ${Z($)}`)}${G}${K.dim(`Backup path: ${Z(O)}`)}${G}`}}else await c(MT($),{recursive:!0});let F=B;if(B&&!B.endsWith(`
|
|
25
|
+
`))F+=`
|
|
26
|
+
`;return F+=`
|
|
27
|
+
[[keyboard.bindings]]
|
|
28
|
+
key = "Return"
|
|
29
|
+
mods = "Shift"
|
|
30
|
+
chars = "\\u001B\\r"
|
|
31
|
+
`,await C($,F,{encoding:"utf-8"}),`${X("success",T)("Installed Alacritty Shift+Enter key binding")}${G}${X("success",T)("You may need to restart Alacritty for changes to take effect")}${G}${K.dim(`See ${Z($)}`)}${G}`}catch(F){throw H(F),Error("Failed to install Alacritty Shift+Enter key binding")}}async function DT(T){let w=R(g(),".config","zed"),v=R(w,"keymap.json");try{await c(w,{recursive:!0});let q="[]",$=!1;try{q=await p(v,{encoding:"utf-8"}),$=!0}catch(J){if(!u(J))throw J}if($){if(q.includes("shift-enter"))return`${X("warning",T)("Found existing Zed Shift+Enter key binding. Remove it to continue.")}${G}${K.dim(`See ${Z(v)}`)}${G}`;let J=y(4).toString("hex"),F=`${v}.${J}.bak`;try{await N(v,F)}catch{return`${X("warning",T)("Error backing up existing Zed keymap. Bailing out.")}${G}${K.dim(`See ${Z(v)}`)}${G}${K.dim(`Backup path: ${Z(F)}`)}${G}`}}let B;try{if(B=$T(q),!Array.isArray(B))B=[]}catch{B=[]}return B.push({context:"Terminal",bindings:{"shift-enter":["terminal::SendText","\x1B\r"]}}),await C(v,GT(B,null,2)+`
|
|
32
|
+
`,{encoding:"utf-8"}),`${X("success",T)("Installed Zed Shift+Enter key binding")}${G}${K.dim(`See ${Z(v)}`)}${G}`}catch(q){throw H(q),Error("Failed to install Zed Shift+Enter key binding")}}var G=`
|
|
33
|
+
`,j;var bT=I(()=>{VT();ST();IT();h();TT();D();UT();LT();o();OT();n();_T();zT();j={ghostty:"Ghostty",kitty:"Kitty","iTerm.app":"iTerm2",WezTerm:"WezTerm",WarpTerminal:"Warp"}});
|
|
34
|
+
export{a as uV,h as vV,e as wV,TT as xV,Ww as yV,uT as zV,ET as AV,Lw as BV,zw as CV,Vw as DV,_w as EV,bT as FV};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{fG as U,gG as w}from"./cli-0.6.3-kz9egvgw.mjs";import{AY as O,dX as f,dZ as k,yY as N}from"./cli-0.6.3-sz0yt1ax.mjs";import{D0 as M,E0 as H,F0 as R}from"./cli-0.6.3-r0pavcpp.mjs";import{spa as Y,wpa as Z}from"./cli-0.6.3-qh59pqrb.mjs";function _(X){let q=V.c(10),{message:I,bold:P,dimColor:Q,subtitle:D}=X,J=P===void 0?!1:P,K=Q===void 0?!1:Q,E;if(q[0]===Symbol.for("react.memo_cache_sentinel"))E=M(U,{}),q[0]=E;else E=q[0];let v;if(q[1]!==J||q[2]!==K||q[3]!==I)v=H(N,{flexDirection:"row",children:[E,H(O,{bold:J,dimColor:K,children:[" ",I]})]}),q[1]=J,q[2]=K,q[3]=I,q[4]=v;else v=q[4];let z;if(q[5]!==D)z=D&&M(O,{dimColor:!0,children:D}),q[5]=D,q[6]=z;else z=q[6];let G;if(q[7]!==v||q[8]!==z)G=H(N,{flexDirection:"column",children:[v,z]}),q[7]=v,q[8]=z,q[9]=G;else G=q[9];return G}var V;var A=Z(()=>{k();w();R();V=Y(f(),1)});
|
|
2
|
+
export{_ as Xf,A as Yf};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{wpa as f}from"./cli-0.6.3-qh59pqrb.mjs";function j(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function V(q,z){let B=q;for(let K of z){if(B==null||typeof B!=="object")return;B=B[K]}return B}function k(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let W=q.toLowerCase();return W.includes("localhost")||W.includes("127.0.0.1")||W.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let K=B.match(x);if(K){let W=Number(K[1]),$=Number(K[2]);if(W===10)return!0;if(W===172&&$>=16&&$<=31)return!0;if(W===192&&$===168)return!0;if(W===127)return!0;if(W===169&&$===254)return!0;if(W===100&&$>=64&&$<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||L.test(B)||Y.test(B))return!0;return!1}function C(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(k(B))return"self-hosted";let K=B.toLowerCase();if(K.includes(":11434"))return"ollama";if(K.includes("moonshot")||K.includes("kimi"))return"kimi";if(K.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function A(q){if(!q||typeof q!=="object")return 0;let z=q,B=j(z.cache_read_input_tokens);if(B>0)return B;let K=j(V(q,["input_tokens_details","cached_tokens"]))||j(V(q,["prompt_tokens_details","cached_tokens"]));if(K>0)return K;let W=j(z.cached_tokens);if(W>0)return W;let $=j(z.prompt_cache_hit_tokens);if($>0)return $;let Q=j(z.cached_content_token_count);if(Q>0)return Q;return 0}function M(q){let z=A(q),B=q??{},K=j(B.input_tokens)||j(B.prompt_tokens),W=K>=z?K-z:K,$=j(B.output_tokens)||j(B.completion_tokens);return{input_tokens:W,output_tokens:$,cache_creation_input_tokens:0,cache_read_input_tokens:z}}function U(q,z){if(!q||typeof q!=="object")return G;let B=q,K=j(B.cache_read_input_tokens),W=j(B.cache_creation_input_tokens),$=j(B.input_tokens);if(z==="copilot"||z==="ollama")return G;if(z==="self-hosted"&&K===0&&W===0)return G;let Q=K+W+$;return{read:K,created:W,total:Q,hitRate:Q>0?Math.min(1,K/Q):null,supported:!0}}function w(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${H(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${H(q.read)}`,`created=${H(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function H(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(F,"")}k`;return`${(q/1e6).toFixed(1).replace(F,"")}m`}function Z(q,z){if(!q.supported&&!z.supported)return G;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,K=q.created+z.created,W=q.total+z.total;return{read:B,created:K,total:W,hitRate:W>0?B/W:null,supported:!0}}var G,x,L,Y,F;var y=f(()=>{G={read:0,created:0,total:0,hitRate:null,supported:!1};x=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,L=/^fc[0-9a-f]{0,2}:/,Y=/^fd[0-9a-f]{0,2}:/,F=/\.0$/});function O(q){return{currentTurn:X,session:X,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function _(q,z){J.currentTurn=Z(J.currentTurn,q),J.session=Z(J.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(J.history[J.historyWriteIdx]=B,J.historyWriteIdx=(J.historyWriteIdx+1)%J.historyMax,J.historySize<J.historyMax)J.historySize++}function E(){J.currentTurn=X}function g(){J.currentTurn=X,J.session=X,J.history=Array(J.historyMax),J.historyWriteIdx=0,J.historySize=0}function N(){return J.currentTurn}function R(){return J.session}function b(){if(J.historySize<J.historyMax)return J.history.slice(0,J.historySize);let q=J.history.slice(J.historyWriteIdx),z=J.history.slice(0,J.historyWriteIdx);return q.concat(z)}var D=500,X,J;var S=f(()=>{y();X={read:0,created:0,total:0,hitRate:null,supported:!1};J=O(D)});
|
|
2
|
+
export{C as _V,M as $V,U as aW,w as bW,I as cW,y as dW,_ as eW,E as fW,g as gW,N as hW,R as iW,b as jW,S as kW};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Tc as Z,Uc as _,Vc as $,Yc as O}from"./cli-0.6.3-ny9veqgk.mjs";import{nd as Y,sd as x}from"./cli-0.6.3-5pxyd9b0.mjs";import{YI as U,bJ as W,gJ as S,hJ as X,rJ as V}from"./cli-0.6.3-kz9egvgw.mjs";import{tha as R,wha as K}from"./cli-0.6.3-tjykjtxh.mjs";import{Nha as Q,Uha as C}from"./cli-0.6.3-2seqm104.mjs";x();K();C();V();S();O();function b(G,J,L){let H=new Set(J.plugins.map((z)=>z.name)),A=`@${L}`,q=[];for(let z of Object.keys(G.plugins)){if(!z.endsWith(A))continue;let h=z.slice(0,-A.length);if(!H.has(h))q.push(z)}return q}async function F(){await Z();let G=X(),J=_(),L=await U(),H=[];for(let A of Object.keys(L))try{let q=await W(A);if(!q.forceRemoveDeletedPlugins)continue;let z=b(G,q,A);for(let h of z){if(h in J)continue;let T=G.plugins[h]??[];if(!T.some((B)=>B.scope==="user"||B.scope==="project"||B.scope==="local"))continue;for(let B of T){let{scope:E}=B;if(E!=="user"&&E!=="project"&&E!=="local")continue;try{await Y(h,E)}catch(v){R(`Failed to auto-uninstall delisted plugin ${h} from ${E}: ${Q(v)}`,{level:"error"})}}await $(h),H.push(h)}}catch(q){R(`Failed to check for delisted plugins in "${A}": ${Q(q)}`,{level:"warn"})}return H}
|
|
2
|
+
export{F as eb};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{tha as Q,wha as $}from"./cli-0.6.3-tjykjtxh.mjs";import{Pha as K,Uha as Z}from"./cli-0.6.3-2seqm104.mjs";import{Xha as J,iia as Y}from"./cli-0.6.3-vp1zy3b1.mjs";Y();Z();$();import{readFileSync as k}from"node:fs";import{mkdir as I,writeFile as W}from"node:fs/promises";import{join as M}from"node:path";var S="latest-version.json";function X(){return M(J(),S)}function U(q){if(!q||typeof q!=="object")return!1;let x=q;return typeof x.latest==="string"&&x.latest.length>0&&typeof x.current==="string"&&x.current.length>0&&typeof x.checkedAt==="number"&&Number.isFinite(x.checkedAt)}function T(){try{let q=k(X(),"utf8"),x=JSON.parse(q);return U(x)?x:null}catch(q){if(K(q))return null;return Q(`latestVersionCache: read failed: ${q instanceof Error?q.stack??q.message:String(q)}`),null}}var G=new Set;function w(q){return G.add(q),()=>{G.delete(q)}}async function y(q){let x=X(),R=JSON.stringify(q);try{await W(x,R,"utf8")}catch(z){if(K(z))await I(J(),{recursive:!0}),await W(x,R,"utf8");else throw z}for(let z of[...G])try{z(q)}catch(B){Q(`latestVersionCache: listener threw: ${B instanceof Error?B.stack??B.message:String(B)}`)}}
|
|
2
|
+
export{T as ga,w as ha,y as ia};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Au as Zf,Cu as _f,Im as Xf,Jm as Uf,zu as g}from"./cli-0.6.3-kz9egvgw.mjs";import{AW as Wf,BW as Tf}from"./cli-0.6.3-sxj65pz4.mjs";import{AY as q,EY as Vf,dX as n,dZ as a,jX as s,kX as If,wY as F,xY as cf,yY as r}from"./cli-0.6.3-sz0yt1ax.mjs";import{C0 as Qf,D0 as H,E0 as X,F0 as T}from"./cli-0.6.3-r0pavcpp.mjs";import{G0 as Rf}from"./cli-0.6.3-ysazbe18.mjs";import{B2 as j,E2 as qf,G2 as zf,O2 as Jf,P2 as hf,U2 as M,X2 as p,Y2 as Ef,v2 as Nf,x2 as b,y2 as _,z2 as Hf}from"./cli-0.6.3-nawttnnp.mjs";import{G5 as i,H5 as yf}from"./cli-0.6.3-6ax8m5hv.mjs";import{O_ as w,Vaa as Gf,Yba as l,c$ as Bf,gba as Cf,rca as Pf}from"./cli-0.6.3-cz70v0dc.mjs";import{kea as mf,sea as Of}from"./cli-0.6.3-p3cb5wr9.mjs";import{rga as D,tga as Lf}from"./cli-0.6.3-ywk23cbf.mjs";import{spa as x,wpa as o}from"./cli-0.6.3-qh59pqrb.mjs";function e(m){let f=t.c(2),{cooldown:G}=m;if(G){let z;if(f[0]===Symbol.for("react.memo_cache_sentinel"))z=H(q,{color:"promptBorder",dimColor:!0,children:w}),f[0]=z;else z=f[0];return z}let N;if(f[1]===Symbol.for("react.memo_cache_sentinel"))N=H(q,{color:"fastMode",children:w}),f[1]=N;else N=f[1];return N}function U(m=!0,f=!1){if(!m)return w;let G=s(l().theme);if(f)return i.dim(F("promptBorder",G)(w));return F("fastMode",G)(w)}var t;var ff=o(()=>{yf();Bf();a();Pf();If();cf();T();t=x(n(),1)});function S(m,f){if(zf(),Gf("userSettings",{fastMode:m?!0:void 0}),m)f((G)=>{let N=!j(G.mainLoopModel);return{...G,...N?{mainLoopModel:Hf(),mainLoopModelForSession:null}:{},fastMode:!0}});else f((G)=>({...G,fastMode:!1}))}function Df(m){let f=kf.c(30),{onDone:G,unavailableReason:N}=m,z=g(vf),V=g(Af),W=Zf(),[J,wf]=Kf.useState(V??!1),y;if(f[0]===Symbol.for("react.memo_cache_sentinel"))y=qf(),f[0]=y;else y=f[0];let B=y,$=B.status==="cooldown",Q=N!==null,P;if(f[1]===Symbol.for("react.memo_cache_sentinel"))P=p(M(!0)),f[1]=P;else P=f[1];let d=P,I;if(f[2]!==J||f[3]!==Q||f[4]!==z||f[5]!==G||f[6]!==W)I=function(){if(Q)return;if(S(J,W),D("tengu_fast_mode_toggled",{enabled:J,source:"picker"}),J){let v=U(J),rf=!j(z)?` · model set to ${_}`:"";G(`${v} Fast mode ON${rf} · ${d}`)}else W(uf),G("Fast mode OFF")},f[2]=J,f[3]=Q,f[4]=z,f[5]=G,f[6]=W,f[7]=I;else I=f[7];let u=I,c;if(f[8]!==V||f[9]!==Q||f[10]!==G||f[11]!==W)c=function(){if(Q){if(V)S(!1,W);G("Fast mode OFF",{display:"system"});return}let v=V?`${U()} Kept Fast mode ON`:"Kept Fast mode OFF";G(v,{display:"system"})},f[8]=V,f[9]=Q,f[10]=G,f[11]=W,f[12]=c;else c=f[12];let A=c,L;if(f[13]!==Q)L=function(){if(Q)return;wf(jf)},f[13]=Q,f[14]=L;else L=f[14];let Z=L,O;if(f[15]!==u||f[16]!==Z)O={"confirm:yes":u,"confirm:nextField":Z,"confirm:next":Z,"confirm:previous":Z,"confirm:cycleMode":Z,"confirm:toggle":Z},f[15]=u,f[16]=Z,f[17]=O;else O=f[17];let C;if(f[18]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},f[18]=C;else C=f[18];Wf(O,C);let h;if(f[19]===Symbol.for("react.memo_cache_sentinel"))h=X(q,{children:[H(e,{cooldown:$})," Fast mode (research preview)"]}),f[19]=h;else h=f[19];let Yf=h,k;if(f[20]!==Q)k=(Y)=>Y.pending?X(q,{children:["Press ",Y.keyName," again to exit"]}):Q?H(q,{children:"Esc to cancel"}):H(q,{children:"Tab to toggle · Enter to confirm · Esc to cancel"}),f[20]=Q,f[21]=k;else k=f[21];let K;if(f[22]!==J||f[23]!==N)K=N?H(r,{marginLeft:2,children:H(q,{color:"error",children:N})}):X(Qf,{children:[H(r,{flexDirection:"column",gap:0,marginLeft:2,children:X(r,{flexDirection:"row",gap:2,children:[H(q,{bold:!0,children:"Fast mode"}),H(q,{color:J?"fastMode":void 0,bold:J,children:J?"ON ":"OFF"}),H(q,{dimColor:!0,children:d})]})}),$&&B.status==="cooldown"&&H(r,{marginLeft:2,children:X(q,{color:"warning",children:[B.reason==="overloaded"?"Fast mode overloaded and is temporarily unavailable":"You've hit your fast limit"," · resets in ",mf(B.resetAt-Date.now(),{hideTrailingZeros:!0})]})})]}),f[22]=J,f[23]=N,f[24]=K;else K=f[24];let E;if(f[25]===Symbol.for("react.memo_cache_sentinel"))E=X(q,{dimColor:!0,children:["Learn more:"," ",H(Vf,{url:"https://code.claude.com/docs/en/fast-mode",children:"https://code.claude.com/docs/en/fast-mode"})]}),f[25]=E;else E=f[25];let R;if(f[26]!==A||f[27]!==K||f[28]!==k)R=X(Xf,{title:Yf,subtitle:`High-speed mode for ${_}. Billed as extra usage at a premium rate. Separate rate limits apply.`,onCancel:A,color:"fastMode",inputGuide:k,children:[K,E]}),f[26]=A,f[27]=K,f[28]=k,f[29]=R;else R=f[29];return R}function jf(m){return!m}function uf(m){return{...m,fastMode:!1}}function Af(m){return m.fastMode}function vf(m){return m.mainLoopModel}async function Ff(m,f,G){let N=b();if(N)return`Fast mode unavailable: ${N}`;let{mainLoopModel:z}=f();if(S(m,G),D("tengu_fast_mode_toggled",{enabled:m,source:"shortcut"}),m){let V=U(!0),W=!j(z)?` · model set to ${_}`:"",J=p(M(!0));return`${V} Fast mode ON${W} · ${J}`}else return"Fast mode OFF"}async function H0(m,f,G){if(!Nf())return null;await Jf();let N=G?.trim().toLowerCase();if(N==="on"||N==="off"){let V=await Ff(N==="on",f.getAppState,f.setAppState);return m(V),null}let z=b();return D("tengu_fast_mode_picker_shown",{unavailable_reason:z??""}),H(Df,{onDone:m,unavailableReason:z})}var kf,Kf;var xf=o(()=>{Uf();ff();a();Tf();Lf();_f();hf();Of();Ef();Cf();T();kf=x(n(),1),Kf=x(Rf(),1)});
|
|
2
|
+
export{U as Hd,ff as Id,Df as Jd,H0 as Kd,xf as Ld};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{iS as N,jS as p,kS as F,mS as U,nS as A}from"./cli-0.6.3-y61armem.mjs";import{B5 as x,D5 as H,E5 as k,l5 as L,m5 as P,p5 as O,r5 as V}from"./cli-0.6.3-cfgaczs0.mjs";import{Taa as X,Yba as Z,Zaa as Y,gba as K,q_ as I,rca as M,s_ as D}from"./cli-0.6.3-cz70v0dc.mjs";import{_ha as $,iia as b}from"./cli-0.6.3-vp1zy3b1.mjs";import{wpa as G}from"./cli-0.6.3-qh59pqrb.mjs";function R(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:T,CLAUDE_CODE_OAUTH_TOKEN:f,...m}=q;return m}function _(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!F(B))z[B]=Q;return z}function h(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return h(_(R(q)))}function r(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Z().env));for(let z of w){if(z==="policySettings")continue;if(!I(z))continue;Object.assign(process.env,J(X(z)?.env))}N(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Y()?.env);for(let[z,B]of Object.entries(q))if(U.has(z.toUpperCase()))process.env[z]=B}function g(){Object.assign(process.env,J(Z().env)),Object.assign(process.env,J(Y()?.env)),L(),O(),H(),x()}var W,w;var j=G(()=>{p();P();M();b();A();V();k();D();K();w=["userSettings","flagSettings","policySettings"]});
|
|
2
|
+
export{r as gc,g as hc,j as ic};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Nh as W,Oh as B}from"./cli-0.6.3-r0chaj0m.mjs";import{D0 as U,F0 as J}from"./cli-0.6.3-r0pavcpp.mjs";import{b1 as V,c1 as v}from"./cli-0.6.3-8qad2cfe.mjs";import{L1 as N,M1 as _,M4 as Q,R4 as R,k5 as $}from"./cli-0.6.3-nawttnnp.mjs";import{Pda as K,Xda as Z}from"./cli-0.6.3-cz70v0dc.mjs";import{wpa as Y}from"./cli-0.6.3-qh59pqrb.mjs";async function w(y,X){try{if(R()){let q=Q(),z=!1;if(q?.subscriptionType&&q?.rateLimitTier)z=q.subscriptionType==="max"&&q.rateLimitTier==="default_claude_max_20x";else if(q?.accessToken){let H=await N(q.accessToken);z=H?.organization?.organization_type==="claude_max"&&H?.organization?.rate_limit_tier==="default_claude_max_20x"}if(z)return setTimeout(y,0,"You are already on the highest Max subscription plan. For additional usage, run /login to switch to an API usage-billed account."),null}return await V("https://claude.ai/upgrade/max"),U(W,{startingMessage:"Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",onDone:(q)=>{X.onChangeAPIKey(),y(q?"Login successful":"Login interrupted")}})}catch(G){K(G),setTimeout(y,0,"Failed to open browser. Please visit https://claude.ai/upgrade/max to upgrade.")}return null}var E=Y(()=>{_();$();v();Z();B();J()});
|
|
2
|
+
export{w as Hb,E as Ib};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{$7 as Q,Yba as P,b8 as M,rca as R}from"./cli-0.6.3-cz70v0dc.mjs";import{tha as G,wha as C}from"./cli-0.6.3-tjykjtxh.mjs";import{wpa as j}from"./cli-0.6.3-qh59pqrb.mjs";import{promises as I}from"node:fs";import{homedir as y}from"node:os";import K from"node:path";function O(q){let z;try{z=new URL(q)}catch(A){throw Error(`Invalid URL format: ${q}`)}if(z.protocol!=="http:"&&z.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${z.protocol}`)}async function g(q){try{let z=process.platform;if(z==="win32"){let{code:V}=await Q("explorer",[q]);return V===0}let A=z==="darwin"?"open":"xdg-open",{code:J}=await Q(A,[q]);return J===0}catch(z){return!1}}function U(){let q=process.env.XDG_DATA_HOME&&process.env.XDG_DATA_HOME.length>0?process.env.XDG_DATA_HOME:K.join(y(),".local","share");return[K.join(q,"applications"),"/usr/local/share/applications","/usr/share/applications","/var/lib/snapd/desktop/applications","/var/lib/flatpak/exports/share/applications"]}function k(q){let z=q.split(`
|
|
2
|
+
`),A=!1;for(let J of z){let V=J.trim();if(V.startsWith("[")){A=V==="[Desktop Entry]";continue}if(!A)continue;if(!V.startsWith("Exec="))continue;let $=V.slice(5).replace(S,"").replace(/%%/g,"%").trim();if($.length===0)return null;let Y=$.match(/^"([^"]+)"|^(\S+)/);if(!Y)return null;return Y[1]??Y[2]??null}return null}async function L(q){for(let z of U()){let A=K.join(z,q);try{return await I.readFile(A,"utf8")}catch(J){}}return null}async function _(q){let{code:z}=await Q("which",[q],{timeout:X,useCwd:!1});return z===0}async function N(){let{code:q,stdout:z}=await Q("xdg-settings",["get","default-web-browser"],{timeout:X,useCwd:!1});if(q!==0)return null;let A=z.trim();if(A.length===0||!A.endsWith(".desktop"))return null;let J=await L(A);if(J==null)return null;return k(J)}async function B(){for(let q of v)if(await _(q))return q;return null}async function m(){if(Z!==void 0)return Z;try{let q=await N();if(q)return Z=q,q}catch(q){G(`browser: xdg-settings detection failed: ${String(q)}`)}try{let q=await B();return Z=q,q}catch(q){return G(`browser: probe list failed: ${String(q)}`),Z=null,null}}async function W(q,z){let{code:A}=await Q(q,[z]);return A===0}async function w(q){try{O(q);let z=process.env.BROWSER,A=process.platform;if(A==="win32"){if(z){let{code:H}=await Q(z,[`"${q}"`]);return H===0}let{code:Y}=await Q("rundll32",["url,OpenURL",q],{});return Y===0}if(A==="darwin"){let Y=z||"open",{code:H}=await Q(Y,[q]);return H===0}if(z){if(await W(z,q))return!0}let J;try{J=P().oauthBrowser}catch(Y){G(`browser: failed to read oauthBrowser setting: ${String(Y)}`)}if(J&&J.length>0){if(await W(J,q))return!0}let V=await m();if(V){if(await W(V,q))return!0}let{code:$}=await Q("xdg-open",[q]);return $===0}catch(z){return!1}}var S,v,X=2000,Z=void 0;var f=j(()=>{M();C();R();S=/%[fFuUdDnNickvm]/g,v=["brave-browser","brave","firefox","chromium","google-chrome","microsoft-edge"]});
|
|
3
|
+
export{g as a1,w as b1,f as c1};
|