@claudiolabs/claudin 1.1.39 → 1.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/App-1.1.40-eb4xn79h.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.1.40-s12f36rk.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.1.40-08yczhe8.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.1.40-xw7040fw.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.40-ejq4fmn7.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.1.40-n8xq1ghm.mjs +1 -0
- package/dist/chunks/DiffDialog-1.1.40-2ykfyp2y.mjs +6 -0
- package/dist/chunks/Doctor-1.1.40-5q8gn92n.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.1.40-qbvaevt6.mjs +6 -0
- package/dist/chunks/ITermBackend-1.1.40-tbt91h1c.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.1.40-bx3xnmmr.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.1.40-kg7st12w.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.1.40-d7hcx55h.mjs +1 -0
- package/dist/chunks/Onboarding-1.1.40-mwq5eg90.mjs +1 -0
- package/dist/chunks/ProviderManager-1.1.40-z85fnyyw.mjs +1 -0
- package/dist/chunks/REPL-1.1.40-h9ccg2t4.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.1.40-0ghfz7ak.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.1.40-39n922s2.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.40-shkd3dr0.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.1.40-5e4necay.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.1.40-kfzg6nqe.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.1.40-x1k41dnq.mjs +1 -0
- package/dist/chunks/TrustDialog-1.1.40-3r59c8nw.mjs +1 -0
- package/dist/chunks/activeProvider-1.1.40-8ywrwcaw.mjs +1 -0
- package/dist/chunks/add-dir-1.1.40-4etvgznk.mjs +1 -0
- package/dist/chunks/agentTypes-1.1.40-0jgkahp3.mjs +1 -0
- package/dist/chunks/agents-1.1.40-aa2gqrkq.mjs +110 -0
- package/dist/chunks/agents-1.1.40-v0vqxazw.mjs +3 -0
- package/dist/chunks/api-1.1.40-dwsbnjc3.mjs +1 -0
- package/dist/chunks/asciicast-1.1.40-y0e6w0q6.mjs +1 -0
- package/dist/chunks/auth-1.1.40-43w4cqf5.mjs +1 -0
- package/dist/chunks/auth-1.1.40-jhdwprg7.mjs +1 -0
- package/dist/chunks/autoMode-1.1.40-gy1w9r7y.mjs +52 -0
- package/dist/chunks/autoModeSetup-1.1.40-8jjzstby.mjs +44 -0
- package/dist/chunks/autoUpdater-1.1.40-q7a2hm0c.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.1.40-pnakm6fp.mjs +1 -0
- package/dist/chunks/branch-1.1.40-1aq0shtd.mjs +4 -0
- package/dist/chunks/bridge-1.1.40-jngt6dkf.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.1.40-6zjr3dgb.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.1.40-5ra4n5cw.mjs +1 -0
- package/dist/chunks/bridgeMain-1.1.40-q22hv9eb.mjs +64 -0
- package/dist/chunks/bridgePointer-1.1.40-8nvycyyd.mjs +1 -0
- package/dist/chunks/btw-1.1.40-vqdnk39f.mjs +1 -0
- package/dist/chunks/buddy-1.1.40-wkym7yqv.mjs +3 -0
- package/dist/chunks/cache-probe-1.1.40-5ac1ane9.mjs +21 -0
- package/dist/chunks/cacheStats-1.1.40-dc4nspga.mjs +4 -0
- package/dist/chunks/caches-1.1.40-9ej2vasg.mjs +1 -0
- package/dist/chunks/cd-1.1.40-d5jhbgzp.mjs +3 -0
- package/dist/chunks/claudeDesktop-1.1.40-2wmbzv9t.mjs +1 -0
- package/dist/chunks/claudemd-1.1.40-5bw0jeka.mjs +1 -0
- package/dist/chunks/clear-1.1.40-3gpjnsv0.mjs +1 -0
- package/dist/chunks/clearTerminal-1.1.40-ny8kqt7d.mjs +1 -0
- package/dist/chunks/cli-1.1.40-0507kdps.mjs +2 -0
- package/dist/chunks/cli-1.1.40-05q41dcq.mjs +63 -0
- package/dist/chunks/cli-1.1.40-0a9nnbar.mjs +2 -0
- package/dist/chunks/cli-1.1.40-0hb84ejd.mjs +2 -0
- package/dist/chunks/cli-1.1.40-0p3na6a1.mjs +2 -0
- package/dist/chunks/cli-1.1.40-0vdhw7mm.mjs +3 -0
- package/dist/chunks/cli-1.1.40-0z5szwzt.mjs +2 -0
- package/dist/chunks/cli-1.1.40-13ccwz6g.mjs +2 -0
- package/dist/chunks/cli-1.1.40-13e9gynq.mjs +16 -0
- package/dist/chunks/cli-1.1.40-14x4xtjy.mjs +2 -0
- package/dist/chunks/cli-1.1.40-1a4pn4ww.mjs +2 -0
- package/dist/chunks/cli-1.1.40-1pe6rcmh.mjs +2 -0
- package/dist/chunks/cli-1.1.40-1r9pwsgr.mjs +2 -0
- package/dist/chunks/cli-1.1.40-1z293953.mjs +2 -0
- package/dist/chunks/cli-1.1.40-202jxgqx.mjs +2 -0
- package/dist/chunks/cli-1.1.40-25wt0y2a.mjs +2 -0
- package/dist/chunks/cli-1.1.40-2e8t1hzy.mjs +2 -0
- package/dist/chunks/cli-1.1.40-2j20ecjm.mjs +11 -0
- package/dist/chunks/cli-1.1.40-2ndseghs.mjs +2 -0
- package/dist/chunks/cli-1.1.40-2ted9r2b.mjs +2 -0
- package/dist/chunks/cli-1.1.40-2z1ppytd.mjs +2 -0
- package/dist/chunks/cli-1.1.40-390v6b8q.mjs +2 -0
- package/dist/chunks/cli-1.1.40-3e58725b.mjs +3 -0
- package/dist/chunks/cli-1.1.40-3hqepe0h.mjs +34 -0
- package/dist/chunks/cli-1.1.40-3m4n20em.mjs +2 -0
- package/dist/chunks/cli-1.1.40-4a1p6q3b.mjs +2 -0
- package/dist/chunks/cli-1.1.40-4d4b7cw2.mjs +2 -0
- package/dist/chunks/cli-1.1.40-4d6gye21.mjs +2 -0
- package/dist/chunks/cli-1.1.40-586jg9as.mjs +4 -0
- package/dist/chunks/cli-1.1.40-5m7tntdx.mjs +2 -0
- package/dist/chunks/cli-1.1.40-5szxfmd7.mjs +2 -0
- package/dist/chunks/cli-1.1.40-5x38x6mx.mjs +2 -0
- package/dist/chunks/cli-1.1.40-66c2dzxw.mjs +8 -0
- package/dist/chunks/cli-1.1.40-6bv738vq.mjs +2 -0
- package/dist/chunks/cli-1.1.40-6evbnv5e.mjs +4 -0
- package/dist/chunks/cli-1.1.40-6gc7p5by.mjs +2 -0
- package/dist/chunks/cli-1.1.40-6v8d2hq7.mjs +18 -0
- package/dist/chunks/cli-1.1.40-718chdj8.mjs +2 -0
- package/dist/chunks/cli-1.1.40-75jka1rb.mjs +2 -0
- package/dist/chunks/cli-1.1.40-77d85srw.mjs +2 -0
- package/dist/chunks/cli-1.1.40-7mtszf6q.mjs +2 -0
- package/dist/chunks/cli-1.1.40-7p7pbsj7.mjs +3 -0
- package/dist/chunks/cli-1.1.40-7sp5dtqz.mjs +2 -0
- package/dist/chunks/cli-1.1.40-7xegymwp.mjs +3 -0
- package/dist/chunks/cli-1.1.40-88vceqkj.mjs +6 -0
- package/dist/chunks/cli-1.1.40-8dzrhmwv.mjs +2 -0
- package/dist/chunks/cli-1.1.40-8j3wdrn6.mjs +2 -0
- package/dist/chunks/cli-1.1.40-8jkb2pk8.mjs +3 -0
- package/dist/chunks/cli-1.1.40-8tkx8d1m.mjs +50 -0
- package/dist/chunks/cli-1.1.40-8x5yey3y.mjs +20 -0
- package/dist/chunks/cli-1.1.40-8xvdt1py.mjs +2 -0
- package/dist/chunks/cli-1.1.40-8zhx2a4q.mjs +2 -0
- package/dist/chunks/cli-1.1.40-904bkcqe.mjs +2 -0
- package/dist/chunks/cli-1.1.40-9bqkn2xd.mjs +2 -0
- package/dist/chunks/cli-1.1.40-9ktcep8b.mjs +2 -0
- package/dist/chunks/cli-1.1.40-a8ztxtkt.mjs +2 -0
- package/dist/chunks/cli-1.1.40-a94m02ck.mjs +2 -0
- package/dist/chunks/cli-1.1.40-a9t3gajj.mjs +2 -0
- package/dist/chunks/cli-1.1.40-aaec6y8n.mjs +2 -0
- package/dist/chunks/cli-1.1.40-aknkj6rt.mjs +2 -0
- package/dist/chunks/cli-1.1.40-asmc6tcr.mjs +2 -0
- package/dist/chunks/cli-1.1.40-b37e0jb8.mjs +6 -0
- package/dist/chunks/cli-1.1.40-bdt7jzc8.mjs +12 -0
- package/dist/chunks/cli-1.1.40-beywxqng.mjs +2 -0
- package/dist/chunks/cli-1.1.40-bh7z7ek2.mjs +2 -0
- package/dist/chunks/cli-1.1.40-bkxrf16s.mjs +2 -0
- package/dist/chunks/cli-1.1.40-cacr2bwg.mjs +135 -0
- package/dist/chunks/cli-1.1.40-cjmpr9fj.mjs +6 -0
- package/dist/chunks/cli-1.1.40-cjtb9y6z.mjs +2 -0
- package/dist/chunks/cli-1.1.40-ckjrbh6b.mjs +60 -0
- package/dist/chunks/cli-1.1.40-cr76k9c5.mjs +2 -0
- package/dist/chunks/cli-1.1.40-cy642er2.mjs +5 -0
- package/dist/chunks/cli-1.1.40-czkgycwy.mjs +2 -0
- package/dist/chunks/cli-1.1.40-d94fysd2.mjs +2 -0
- package/dist/chunks/cli-1.1.40-dbt9wvcg.mjs +133 -0
- package/dist/chunks/cli-1.1.40-dcgb31te.mjs +2 -0
- package/dist/chunks/cli-1.1.40-dsncefwy.mjs +2 -0
- package/dist/chunks/cli-1.1.40-e6xs2c7n.mjs +2 -0
- package/dist/chunks/cli-1.1.40-evm7c2fk.mjs +2 -0
- package/dist/chunks/cli-1.1.40-f4906zck.mjs +3 -0
- package/dist/chunks/cli-1.1.40-fewramj2.mjs +2 -0
- package/dist/chunks/cli-1.1.40-fjbq162e.mjs +24 -0
- package/dist/chunks/cli-1.1.40-fn6qzvk2.mjs +17 -0
- package/dist/chunks/cli-1.1.40-fqcnge4w.mjs +4 -0
- package/dist/chunks/cli-1.1.40-fwxd22jm.mjs +2 -0
- package/dist/chunks/cli-1.1.40-g1vnzwpn.mjs +2 -0
- package/dist/chunks/cli-1.1.40-gk34ey8n.mjs +24 -0
- package/dist/chunks/cli-1.1.40-gv0xj4g0.mjs +2 -0
- package/dist/chunks/cli-1.1.40-gym1gqwr.mjs +2 -0
- package/dist/chunks/cli-1.1.40-h2t9z1xa.mjs +2 -0
- package/dist/chunks/cli-1.1.40-h5r5wmqv.mjs +3 -0
- package/dist/chunks/cli-1.1.40-h6v9p00b.mjs +2 -0
- package/dist/chunks/cli-1.1.40-h87wvfsr.mjs +24 -0
- package/dist/chunks/cli-1.1.40-h9vf8tb3.mjs +2 -0
- package/dist/chunks/cli-1.1.40-hdf9qdf0.mjs +2 -0
- package/dist/chunks/cli-1.1.40-hf5jtfgb.mjs +2 -0
- package/dist/chunks/cli-1.1.40-hfe06y9j.mjs +250 -0
- package/dist/chunks/cli-1.1.40-hn5j9ca8.mjs +3 -0
- package/dist/chunks/cli-1.1.40-j3mmbyn6.mjs +2 -0
- package/dist/chunks/cli-1.1.40-j822dmk0.mjs +2 -0
- package/dist/chunks/cli-1.1.40-jc0pv06v.mjs +2 -0
- package/dist/chunks/cli-1.1.40-jdhz6qrn.mjs +4 -0
- package/dist/chunks/cli-1.1.40-jdyqkhjm.mjs +15 -0
- package/dist/chunks/cli-1.1.40-jxt31ej7.mjs +2 -0
- package/dist/chunks/cli-1.1.40-k3z93zzh.mjs +2 -0
- package/dist/chunks/cli-1.1.40-k9ms1jzt.mjs +2 -0
- package/dist/chunks/cli-1.1.40-kafpmwa6.mjs +2 -0
- package/dist/chunks/cli-1.1.40-kcs8jb1x.mjs +2 -0
- package/dist/chunks/cli-1.1.40-kn1916j7.mjs +2 -0
- package/dist/chunks/cli-1.1.40-knp59dzj.mjs +25 -0
- package/dist/chunks/cli-1.1.40-ksaxg9vb.mjs +2 -0
- package/dist/chunks/cli-1.1.40-kvhhhzww.mjs +2 -0
- package/dist/chunks/cli-1.1.40-m0j9t9he.mjs +2 -0
- package/dist/chunks/cli-1.1.40-m0km8bx0.mjs +2 -0
- package/dist/chunks/cli-1.1.40-m3m3zyes.mjs +2 -0
- package/dist/chunks/cli-1.1.40-m4hyy4k1.mjs +2 -0
- package/dist/chunks/cli-1.1.40-mtj9edbn.mjs +2 -0
- package/dist/chunks/cli-1.1.40-mtqb5txt.mjs +2 -0
- package/dist/chunks/cli-1.1.40-n9wve56a.mjs +2 -0
- package/dist/chunks/cli-1.1.40-ncvv73yk.mjs +2 -0
- package/dist/chunks/cli-1.1.40-nj4dbcsq.mjs +5 -0
- package/dist/chunks/cli-1.1.40-nvwa39p8.mjs +2 -0
- package/dist/chunks/cli-1.1.40-p0d9ms1q.mjs +2 -0
- package/dist/chunks/cli-1.1.40-p1ezfj24.mjs +2 -0
- package/dist/chunks/cli-1.1.40-p3jhg1v9.mjs +2 -0
- package/dist/chunks/cli-1.1.40-p6sasq8k.mjs +2 -0
- package/dist/chunks/cli-1.1.40-pmw99nnn.mjs +2 -0
- package/dist/chunks/cli-1.1.40-ptbes5dy.mjs +2 -0
- package/dist/chunks/cli-1.1.40-qbqaea7j.mjs +2 -0
- package/dist/chunks/cli-1.1.40-qj79t43w.mjs +2 -0
- package/dist/chunks/cli-1.1.40-qrryep7k.mjs +2 -0
- package/dist/chunks/cli-1.1.40-r0e1tymb.mjs +4 -0
- package/dist/chunks/cli-1.1.40-rcfj1etg.mjs +2 -0
- package/dist/chunks/cli-1.1.40-rq9y2zd8.mjs +4 -0
- package/dist/chunks/cli-1.1.40-rwbr7d1h.mjs +2 -0
- package/dist/chunks/cli-1.1.40-s5zzvtq2.mjs +2 -0
- package/dist/chunks/cli-1.1.40-sa2ca2mh.mjs +2 -0
- package/dist/chunks/cli-1.1.40-sh39fzfc.mjs +2 -0
- package/dist/chunks/cli-1.1.40-sjmpb8kv.mjs +2 -0
- package/dist/chunks/cli-1.1.40-sw6avn9f.mjs +15 -0
- package/dist/chunks/cli-1.1.40-swnje8x1.mjs +2 -0
- package/dist/chunks/cli-1.1.40-t3fwj4bx.mjs +2 -0
- package/dist/chunks/cli-1.1.40-t6s30nmj.mjs +10 -0
- package/dist/chunks/cli-1.1.40-tb7zgp10.mjs +2 -0
- package/dist/chunks/cli-1.1.40-tbjmztnt.mjs +7 -0
- package/dist/chunks/cli-1.1.40-test5hfq.mjs +9 -0
- package/dist/chunks/cli-1.1.40-tjxcmknk.mjs +10 -0
- package/dist/chunks/cli-1.1.40-tpcjtjay.mjs +2 -0
- package/dist/chunks/cli-1.1.40-vemj3v7n.mjs +2 -0
- package/dist/chunks/cli-1.1.40-vjrn2xbp.mjs +39 -0
- package/dist/chunks/cli-1.1.40-vnckyxj2.mjs +6 -0
- package/dist/chunks/cli-1.1.40-vzsswgmp.mjs +2 -0
- package/dist/chunks/cli-1.1.40-wgmkydqq.mjs +2 -0
- package/dist/chunks/cli-1.1.40-wh51ya47.mjs +5524 -0
- package/dist/chunks/cli-1.1.40-wwtg9jyr.mjs +2 -0
- package/dist/chunks/cli-1.1.40-x07axsvg.mjs +3 -0
- package/dist/chunks/cli-1.1.40-x0em3hsa.mjs +42 -0
- package/dist/chunks/cli-1.1.40-x155sz4a.mjs +2 -0
- package/dist/chunks/cli-1.1.40-x8fyash9.mjs +2 -0
- package/dist/chunks/cli-1.1.40-xjt6qe30.mjs +2 -0
- package/dist/chunks/cli-1.1.40-xrdf30ff.mjs +4 -0
- package/dist/chunks/cli-1.1.40-xsx6q1wa.mjs +2 -0
- package/dist/chunks/cli-1.1.40-xty2k2d8.mjs +2 -0
- package/dist/chunks/cli-1.1.40-xvw930pn.mjs +4 -0
- package/dist/chunks/cli-1.1.40-xxr2978q.mjs +2 -0
- package/dist/chunks/cli-1.1.40-xz65jcaq.mjs +2 -0
- package/dist/chunks/cli-1.1.40-yb9c5882.mjs +6 -0
- package/dist/chunks/cli-1.1.40-ycdfy6nf.mjs +15 -0
- package/dist/chunks/cli-1.1.40-yggza6ab.mjs +2 -0
- package/dist/chunks/cli-1.1.40-ypd0pmm1.mjs +9 -0
- package/dist/chunks/cli-1.1.40-yxch4yjw.mjs +2 -0
- package/dist/chunks/cli-1.1.40-yyx9dq0t.mjs +2 -0
- package/dist/chunks/cli-1.1.40-z2y2xwz9.mjs +21 -0
- package/dist/chunks/cli-1.1.40-z3hcyy04.mjs +25 -0
- package/dist/chunks/cli-1.1.40-z4zyefya.mjs +10 -0
- package/dist/chunks/cli-1.1.40-zc4hs061.mjs +2 -0
- package/dist/chunks/cli-1.1.40-zjd4syvr.mjs +2 -0
- package/dist/chunks/cli-1.1.40-zn2yvg4w.mjs +7 -0
- package/dist/chunks/cli-1.1.40-zwpz8d3c.mjs +2 -0
- package/dist/chunks/cli-1.1.40-zx6c6dj7.mjs +2 -0
- package/dist/chunks/cli-1.1.40-zxgbpq09.mjs +2 -0
- package/dist/chunks/cli-1.1.40-zz1e7ypt.mjs +2 -0
- package/dist/chunks/client-1.1.40-7wf4ewe0.mjs +1 -0
- package/dist/chunks/color-1.1.40-v7cj369z.mjs +1 -0
- package/dist/chunks/compact-1.1.40-9frgndw1.mjs +2 -0
- package/dist/chunks/config-1.1.40-hpmvve33.mjs +1 -0
- package/dist/chunks/config-1.1.40-vyqe5y0b.mjs +1 -0
- package/dist/chunks/constants-1.1.40-ddn3fezq.mjs +1 -0
- package/dist/chunks/context-1.1.40-v3bm6v6h.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.1.40-grk3112n.mjs +1 -0
- package/dist/chunks/conversation-1.1.40-18fff5dm.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.1.40-8mws1sed.mjs +1 -0
- package/dist/chunks/copy-1.1.40-0j7zfq2m.mjs +9 -0
- package/dist/chunks/cost-1.1.40-haa10e3n.mjs +1 -0
- package/dist/chunks/createSession-1.1.40-m1yre1z2.mjs +1 -0
- package/dist/chunks/debug-1.1.40-jb16xf0z.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.1.40-6jxq6wj1.mjs +1458 -0
- package/dist/chunks/desktop-1.1.40-78kvtn3w.mjs +2 -0
- package/dist/chunks/detectRepository-1.1.40-bfsfnrg0.mjs +1 -0
- package/dist/chunks/detection-1.1.40-ynqhwygh.mjs +1 -0
- package/dist/chunks/diff-1.1.40-ry5r3hxm.mjs +1 -0
- package/dist/chunks/doctor-1.1.40-3jq6vt4j.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.1.40-xkn6p433.mjs +1 -0
- package/dist/chunks/earlyInput-1.1.40-cgnyfxrr.mjs +1 -0
- package/dist/chunks/effort-1.1.40-x92e5y73.mjs +13 -0
- package/dist/chunks/engine-1.1.40-xfhy56h0.mjs +1 -0
- package/dist/chunks/envUtils-1.1.40-x04vk5d2.mjs +1 -0
- package/dist/chunks/errors-1.1.40-5rmm9jgq.mjs +1 -0
- package/dist/chunks/exampleCommands-1.1.40-0bqsxh7q.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.1.40-ckxrp2ds.mjs +1 -0
- package/dist/chunks/exit-1.1.40-3z02mbj5.mjs +1 -0
- package/dist/chunks/explorer-1.1.40-wd802dbj.mjs +1 -0
- package/dist/chunks/export-1.1.40-jfwshttx.mjs +2 -0
- package/dist/chunks/fast-1.1.40-60ervp24.mjs +1 -0
- package/dist/chunks/feedback-1.1.40-prjs4btg.mjs +16 -0
- package/dist/chunks/git-1.1.40-j53g8ee0.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.1.40-mcem604d.mjs +1 -0
- package/dist/chunks/goal-1.1.40-g8esr771.mjs +4 -0
- package/dist/chunks/headless-1.1.40-vr772edq.mjs +2 -0
- package/dist/chunks/heapdump-1.1.40-8rmhv3eq.mjs +6 -0
- package/dist/chunks/help-1.1.40-x9vde04q.mjs +1 -0
- package/dist/chunks/hooks-1.1.40-gm4rps4s.mjs +79 -0
- package/dist/chunks/hooks-1.1.40-wb0fy1tx.mjs +1 -0
- package/dist/chunks/ide-1.1.40-ymf3dffe.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.1.40-kk0nhrm1.mjs +1 -0
- package/dist/chunks/import-1.1.40-8q1yygwm.mjs +260 -0
- package/dist/chunks/inboundAttachments-1.1.40-gdzw0a60.mjs +1 -0
- package/dist/chunks/index-1.1.40-1036v870.mjs +1 -0
- package/dist/chunks/index-1.1.40-2pnxjnrq.mjs +9 -0
- package/dist/chunks/index-1.1.40-3dg7neyn.mjs +1 -0
- package/dist/chunks/index-1.1.40-3wmvffnj.mjs +1 -0
- package/dist/chunks/index-1.1.40-6h7p7965.mjs +5 -0
- package/dist/chunks/index-1.1.40-7m7py5an.mjs +1 -0
- package/dist/chunks/index-1.1.40-7thhkf50.mjs +1 -0
- package/dist/chunks/index-1.1.40-7zb9nwfm.mjs +1 -0
- package/dist/chunks/index-1.1.40-a4nq3a6p.mjs +23 -0
- package/dist/chunks/index-1.1.40-agp7ccgc.mjs +2 -0
- package/dist/chunks/index-1.1.40-ce1vrpmy.mjs +1 -0
- package/dist/chunks/index-1.1.40-d7gm1zpq.mjs +1 -0
- package/dist/chunks/index-1.1.40-e5mrxhrw.mjs +9 -0
- package/dist/chunks/index-1.1.40-hqxrsc3k.mjs +30 -0
- package/dist/chunks/index-1.1.40-hyjbaxfp.mjs +1 -0
- package/dist/chunks/index-1.1.40-kxj8bd6n.mjs +1 -0
- package/dist/chunks/index-1.1.40-m8hvmnp3.mjs +2 -0
- package/dist/chunks/index-1.1.40-re5y6sqg.mjs +1 -0
- package/dist/chunks/index-1.1.40-rxqg2zmw.mjs +1 -0
- package/dist/chunks/index-1.1.40-scsfdxb9.mjs +1 -0
- package/dist/chunks/index-1.1.40-sebq5zf0.mjs +1 -0
- package/dist/chunks/index-1.1.40-sw11xm4f.mjs +1 -0
- package/dist/chunks/index-1.1.40-wm4s6wvy.mjs +1 -0
- package/dist/chunks/init-1.1.40-t57rwm04.mjs +2 -0
- package/dist/chunks/initReplBridge-1.1.40-mjwfh9qk.mjs +1 -0
- package/dist/chunks/ink-1.1.40-9d6z3zms.mjs +1 -0
- package/dist/chunks/insights-1.1.40-a9638asy.mjs +870 -0
- package/dist/chunks/install-1.1.40-zxccztd6.mjs +1 -0
- package/dist/chunks/install-github-app-1.1.40-zf5bv85a.mjs +149 -0
- package/dist/chunks/install-slack-app-1.1.40-5zhc4ky1.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.1.40-8b699chw.mjs +1 -0
- package/dist/chunks/latestVersionCache-1.1.40-pf10bcf1.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.1.40-2phb1zja.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.1.40-nyy8edra.mjs +1 -0
- package/dist/chunks/log-1.1.40-bd06efpx.mjs +1 -0
- package/dist/chunks/main-1.1.40-jsd88fnb.mjs +1 -0
- package/dist/chunks/managedEnv-1.1.40-5bct44v9.mjs +1 -0
- package/dist/chunks/mcp-1.1.40-gwsy9z99.mjs +17 -0
- package/dist/chunks/mcp-1.1.40-ne4zhaas.mjs +4 -0
- package/dist/chunks/mcp-1.1.40-w28yghrq.mjs +1 -0
- package/dist/chunks/mcpb-1.1.40-rmczagzm.mjs +1 -0
- package/dist/chunks/memory-1.1.40-bw1f5kas.mjs +128 -0
- package/dist/chunks/model-1.1.40-abq8e5vn.mjs +1 -0
- package/dist/chunks/model-1.1.40-mchqmvyj.mjs +2 -0
- package/dist/chunks/new-1.1.40-52px2j2q.mjs +1 -0
- package/dist/chunks/node-1.1.40-9cewz2cq.mjs +1 -0
- package/dist/chunks/node-1.1.40-feq5eqhb.mjs +15 -0
- package/dist/chunks/oauth-1.1.40-g2ddff91.mjs +1 -0
- package/dist/chunks/openaiShim-1.1.40-1f1x96vz.mjs +14 -0
- package/dist/chunks/output-style-1.1.40-57gexey1.mjs +1 -0
- package/dist/chunks/package-V72LKFNW-1.1.40-fsxygmx4.mjs +1 -0
- package/dist/chunks/permissions-1.1.40-a3gt3a6r.mjs +1 -0
- package/dist/chunks/permissions-1.1.40-tk64h5pw.mjs +3 -0
- package/dist/chunks/plan-1.1.40-qktxc0xv.mjs +1 -0
- package/dist/chunks/plist-1.1.40-syaedef6.mjs +1 -0
- package/dist/chunks/plugin-1.1.40-40707xv2.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.1.40-0s8z5pda.mjs +1 -0
- package/dist/chunks/plugins-1.1.40-36g7cedj.mjs +9 -0
- package/dist/chunks/preActionHook-1.1.40-xs0mts7r.mjs +2 -0
- package/dist/chunks/print-1.1.40-n8tbgpmb.mjs +57 -0
- package/dist/chunks/process-1.1.40-2d6jw6ja.mjs +1 -0
- package/dist/chunks/processBashCommand-1.1.40-9wg7776s.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.1.40-xt635hzb.mjs +9 -0
- package/dist/chunks/prompt-1.1.40-384zryvv.mjs +1 -0
- package/dist/chunks/prompt-1.1.40-fafe7d93.mjs +1 -0
- package/dist/chunks/prompts-1.1.40-dkjt46vt.mjs +1 -0
- package/dist/chunks/provider-1.1.40-jdhrf16x.mjs +2 -0
- package/dist/chunks/providerProfiles-1.1.40-bw1gvrwa.mjs +1 -0
- package/dist/chunks/providerValidation-1.1.40-grkw6t7j.mjs +6 -0
- package/dist/chunks/registerSubcommands-1.1.40-829pxw1w.mjs +26 -0
- package/dist/chunks/registry-1.1.40-gcsbpq05.mjs +1 -0
- package/dist/chunks/release-notes-1.1.40-7k7w7byk.mjs +5 -0
- package/dist/chunks/reload-plugins-1.1.40-0hnncx1c.mjs +2 -0
- package/dist/chunks/remote-env-1.1.40-8yjn1yy1.mjs +1 -0
- package/dist/chunks/rename-1.1.40-k97agc44.mjs +1 -0
- package/dist/chunks/replLauncher-1.1.40-t07rfxt3.mjs +1 -0
- package/dist/chunks/resume-1.1.40-aztvxhw1.mjs +2 -0
- package/dist/chunks/rewind-1.1.40-qqcys5j3.mjs +1 -0
- package/dist/chunks/rootOptions-1.1.40-1phbx46q.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.1.40-4zdbvgxr.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.1.40-w8261442.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.1.40-3jcyaq2m.mjs +1 -0
- package/dist/chunks/session-1.1.40-t3q2q12k.mjs +2 -0
- package/dist/chunks/sessionStorage-1.1.40-k9kv0fc5.mjs +1 -0
- package/dist/chunks/settings-1.1.40-xk0psj3p.mjs +1 -0
- package/dist/chunks/setup-1.1.40-k28y0vhd.mjs +12 -0
- package/dist/chunks/sinks-1.1.40-jmrhph0p.mjs +1 -0
- package/dist/chunks/skills-1.1.40-p548yntr.mjs +1 -0
- package/dist/chunks/startupProfiler-1.1.40-r0r0td60.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.1.40-9k4m0y14.mjs +1 -0
- package/dist/chunks/state-1.1.40-48n6bztp.mjs +1 -0
- package/dist/chunks/stats-1.1.40-7b8de2xc.mjs +1 -0
- package/dist/chunks/status-1.1.40-y6f9m60d.mjs +1 -0
- package/dist/chunks/stickers-1.1.40-6861rtwc.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.1.40-j8teh9py.mjs +1 -0
- package/dist/chunks/tasks-1.1.40-z0pdc2v6.mjs +1 -0
- package/dist/chunks/teamHelpers-1.1.40-dg7kse00.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.1.40-h0ps5f8m.mjs +1 -0
- package/dist/chunks/teleport-1.1.40-968xt0kq.mjs +1 -0
- package/dist/chunks/terminalSetup-1.1.40-tyj663fm.mjs +1 -0
- package/dist/chunks/theme-1.1.40-pt3gmfb7.mjs +1 -0
- package/dist/chunks/toolPool-1.1.40-7evty87j.mjs +1 -0
- package/dist/chunks/toolSearch-1.1.40-js92r1j0.mjs +1 -0
- package/dist/chunks/tools-1.1.40-3xs7vby7.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.1.40-r64pb7jc.mjs +69 -0
- package/dist/chunks/types-1.1.40-106z8mxc.mjs +1 -0
- package/dist/chunks/update-1.1.40-t843j2px.mjs +72 -0
- package/dist/chunks/upload-1.1.40-mq50976a.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.1.40-8sq5v7b7.mjs +14 -0
- package/dist/chunks/usage-1.1.40-m5z82r48.mjs +1 -0
- package/dist/chunks/util-1.1.40-wt30k81w.mjs +1 -0
- package/dist/chunks/utils-1.1.40-59bpagj3.mjs +1 -0
- package/dist/chunks/vim-1.1.40-4kra5190.mjs +1 -0
- package/dist/chunks/watchLoop-1.1.40-2vzyqrvn.mjs +13 -0
- package/dist/chunks/wiki-1.1.40-c29899s1.mjs +132 -0
- package/dist/chunks/workflows-1.1.40-heqcwgty.mjs +1 -0
- package/dist/chunks/worktree-1.1.40-mw6zf174.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.1.40-2wrpxrjt.mjs +1 -0
- package/dist/chunks/wrapper-1.1.40-07rbayqn.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/App-1.1.39-k3pzg19w.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.1.39-bycvt1g5.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.1.39-4j00w97q.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.1.39-38wypq07.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.39-edm7rsre.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.1.39-my209qf5.mjs +0 -1
- package/dist/chunks/DiffDialog-1.1.39-dt5qmt50.mjs +0 -6
- package/dist/chunks/Doctor-1.1.39-kv2tpcs1.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.1.39-d5t22ss6.mjs +0 -6
- package/dist/chunks/ITermBackend-1.1.39-z3zx6y4m.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.1.39-nwstppyf.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.1.39-pfjzxc4p.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.1.39-3mpd0tbf.mjs +0 -1
- package/dist/chunks/Onboarding-1.1.39-r5976zwt.mjs +0 -1
- package/dist/chunks/ProviderManager-1.1.39-dzacd3pt.mjs +0 -1
- package/dist/chunks/REPL-1.1.39-ww7zvk7k.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.1.39-mdn16ej3.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.1.39-tnhzkmtn.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.1.39-vz4td3jg.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.1.39-rfjygmym.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.1.39-vbqywsj7.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.1.39-bb46mna1.mjs +0 -1
- package/dist/chunks/TrustDialog-1.1.39-b57dgsm7.mjs +0 -1
- package/dist/chunks/activeProvider-1.1.39-jgfyp0cs.mjs +0 -1
- package/dist/chunks/add-dir-1.1.39-1wp8d118.mjs +0 -1
- package/dist/chunks/agentTypes-1.1.39-0x20gy8e.mjs +0 -1
- package/dist/chunks/agents-1.1.39-b3k5kxn7.mjs +0 -110
- package/dist/chunks/agents-1.1.39-nt8wcmtp.mjs +0 -3
- package/dist/chunks/api-1.1.39-tn9g67g0.mjs +0 -1
- package/dist/chunks/asciicast-1.1.39-22byg1gm.mjs +0 -1
- package/dist/chunks/auth-1.1.39-1x1eer36.mjs +0 -1
- package/dist/chunks/auth-1.1.39-vz0zkq99.mjs +0 -1
- package/dist/chunks/autoMode-1.1.39-sjezrxh7.mjs +0 -52
- package/dist/chunks/autoModeSetup-1.1.39-e6gvda2k.mjs +0 -44
- package/dist/chunks/autoUpdater-1.1.39-cz95xv2n.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.1.39-vsn9w5k2.mjs +0 -1
- package/dist/chunks/branch-1.1.39-e0ww5bkp.mjs +0 -4
- package/dist/chunks/bridge-1.1.39-k5vb0mmb.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.1.39-6czf6nvj.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.1.39-crv4d7xn.mjs +0 -1
- package/dist/chunks/bridgeMain-1.1.39-488k7mc8.mjs +0 -64
- package/dist/chunks/bridgePointer-1.1.39-xb9s18xx.mjs +0 -1
- package/dist/chunks/btw-1.1.39-n1psbg89.mjs +0 -1
- package/dist/chunks/buddy-1.1.39-ms13d421.mjs +0 -3
- package/dist/chunks/cache-probe-1.1.39-j0aybz93.mjs +0 -21
- package/dist/chunks/cacheStats-1.1.39-dg202ye5.mjs +0 -4
- package/dist/chunks/caches-1.1.39-v3nps0e9.mjs +0 -1
- package/dist/chunks/cd-1.1.39-awhhtq1z.mjs +0 -3
- package/dist/chunks/claudeDesktop-1.1.39-azj9es6w.mjs +0 -1
- package/dist/chunks/claudemd-1.1.39-7a02xhkm.mjs +0 -1
- package/dist/chunks/clear-1.1.39-k197h5f0.mjs +0 -1
- package/dist/chunks/clearTerminal-1.1.39-twgf5kky.mjs +0 -1
- package/dist/chunks/cli-1.1.39-01qgb22d.mjs +0 -4
- package/dist/chunks/cli-1.1.39-07d1v3y9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-0k9p4g5p.mjs +0 -2
- package/dist/chunks/cli-1.1.39-0mtb82ww.mjs +0 -2
- package/dist/chunks/cli-1.1.39-0rsjfyh1.mjs +0 -9
- package/dist/chunks/cli-1.1.39-0s0eqwsn.mjs +0 -2
- package/dist/chunks/cli-1.1.39-10wrcybe.mjs +0 -2
- package/dist/chunks/cli-1.1.39-111vm2e1.mjs +0 -24
- package/dist/chunks/cli-1.1.39-14jxs3k5.mjs +0 -3
- package/dist/chunks/cli-1.1.39-15jr1t97.mjs +0 -2
- package/dist/chunks/cli-1.1.39-17mj2gq0.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1es853x9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1m7bzjpd.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1mpe0mv2.mjs +0 -17
- package/dist/chunks/cli-1.1.39-1q43eavk.mjs +0 -4
- package/dist/chunks/cli-1.1.39-1r1cbvk8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1tcqp8ky.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1wg6zvk6.mjs +0 -2
- package/dist/chunks/cli-1.1.39-1yysfg6y.mjs +0 -2
- package/dist/chunks/cli-1.1.39-212q1ba2.mjs +0 -2
- package/dist/chunks/cli-1.1.39-24z9gjkg.mjs +0 -6
- package/dist/chunks/cli-1.1.39-2gzgjcxr.mjs +0 -6
- package/dist/chunks/cli-1.1.39-2hgsp1ry.mjs +0 -2
- package/dist/chunks/cli-1.1.39-2k0w4c3v.mjs +0 -6
- package/dist/chunks/cli-1.1.39-2vf0yc3g.mjs +0 -2
- package/dist/chunks/cli-1.1.39-2x3kj4gh.mjs +0 -2
- package/dist/chunks/cli-1.1.39-2xmkpvn8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-31e9rw45.mjs +0 -2
- package/dist/chunks/cli-1.1.39-3g0p54p8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-3mghgnn1.mjs +0 -24
- package/dist/chunks/cli-1.1.39-3yy2wxqa.mjs +0 -24
- package/dist/chunks/cli-1.1.39-4bdssx8e.mjs +0 -2
- package/dist/chunks/cli-1.1.39-4he45b53.mjs +0 -2
- package/dist/chunks/cli-1.1.39-4p4c56cn.mjs +0 -2
- package/dist/chunks/cli-1.1.39-4w5sz267.mjs +0 -2
- package/dist/chunks/cli-1.1.39-52k1fj82.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5gdtmek1.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5ge6mqxz.mjs +0 -63
- package/dist/chunks/cli-1.1.39-5h7tfgqc.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5r6zjkfz.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5t4113gt.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5xkhxv1a.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5yxt37n7.mjs +0 -2
- package/dist/chunks/cli-1.1.39-5zc15zgx.mjs +0 -2
- package/dist/chunks/cli-1.1.39-6pkc868v.mjs +0 -2
- package/dist/chunks/cli-1.1.39-6y7dsvjs.mjs +0 -2
- package/dist/chunks/cli-1.1.39-70t1q2pm.mjs +0 -2
- package/dist/chunks/cli-1.1.39-75gxbxsn.mjs +0 -7
- package/dist/chunks/cli-1.1.39-7ck7pqh0.mjs +0 -2
- package/dist/chunks/cli-1.1.39-7d9k8cma.mjs +0 -2
- package/dist/chunks/cli-1.1.39-7hm6zgk1.mjs +0 -15
- package/dist/chunks/cli-1.1.39-7jhstkb2.mjs +0 -2
- package/dist/chunks/cli-1.1.39-7kjnzaa8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-7tchegvs.mjs +0 -5
- package/dist/chunks/cli-1.1.39-7tgaawmj.mjs +0 -2
- package/dist/chunks/cli-1.1.39-7xc1qp70.mjs +0 -2
- package/dist/chunks/cli-1.1.39-89e5xfsc.mjs +0 -2
- package/dist/chunks/cli-1.1.39-8e62hz1p.mjs +0 -3
- package/dist/chunks/cli-1.1.39-8gscnd8w.mjs +0 -2
- package/dist/chunks/cli-1.1.39-8jw8s604.mjs +0 -2
- package/dist/chunks/cli-1.1.39-8k3rh435.mjs +0 -2
- package/dist/chunks/cli-1.1.39-8xf0xfkw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-905jk7a7.mjs +0 -133
- package/dist/chunks/cli-1.1.39-9afxesb0.mjs +0 -3
- package/dist/chunks/cli-1.1.39-9bh2t20k.mjs +0 -3
- package/dist/chunks/cli-1.1.39-9dfw3wt9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-9j9vfcg0.mjs +0 -10
- package/dist/chunks/cli-1.1.39-9qsdqnm7.mjs +0 -6
- package/dist/chunks/cli-1.1.39-9yg363zk.mjs +0 -2
- package/dist/chunks/cli-1.1.39-a1rc9y55.mjs +0 -3
- package/dist/chunks/cli-1.1.39-a40ak4sd.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ay2p31kb.mjs +0 -39
- package/dist/chunks/cli-1.1.39-b1gewbgs.mjs +0 -2
- package/dist/chunks/cli-1.1.39-b314axe0.mjs +0 -2
- package/dist/chunks/cli-1.1.39-b3geta93.mjs +0 -21
- package/dist/chunks/cli-1.1.39-bd66bjj3.mjs +0 -2
- package/dist/chunks/cli-1.1.39-brzpjtja.mjs +0 -2
- package/dist/chunks/cli-1.1.39-c4c832m5.mjs +0 -2
- package/dist/chunks/cli-1.1.39-c6mm3w1n.mjs +0 -135
- package/dist/chunks/cli-1.1.39-c86mbrv2.mjs +0 -2
- package/dist/chunks/cli-1.1.39-chveh83h.mjs +0 -2
- package/dist/chunks/cli-1.1.39-cjc01sak.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ck0k3rxx.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ckty7bt1.mjs +0 -2
- package/dist/chunks/cli-1.1.39-cq5nwqfw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-cvbzp08c.mjs +0 -2
- package/dist/chunks/cli-1.1.39-cyx7zw76.mjs +0 -50
- package/dist/chunks/cli-1.1.39-czh4aj72.mjs +0 -4
- package/dist/chunks/cli-1.1.39-d25xsy5x.mjs +0 -2
- package/dist/chunks/cli-1.1.39-dfrms96j.mjs +0 -2
- package/dist/chunks/cli-1.1.39-djtdv45d.mjs +0 -4
- package/dist/chunks/cli-1.1.39-dm5rqr07.mjs +0 -8
- package/dist/chunks/cli-1.1.39-dvfdgp8r.mjs +0 -2
- package/dist/chunks/cli-1.1.39-dwfknzds.mjs +0 -2
- package/dist/chunks/cli-1.1.39-dwgjp6zp.mjs +0 -2
- package/dist/chunks/cli-1.1.39-e4p7vgrg.mjs +0 -2
- package/dist/chunks/cli-1.1.39-e98w7pr4.mjs +0 -2
- package/dist/chunks/cli-1.1.39-en8a3nq6.mjs +0 -11
- package/dist/chunks/cli-1.1.39-epktaska.mjs +0 -3
- package/dist/chunks/cli-1.1.39-esp4w3m4.mjs +0 -2
- package/dist/chunks/cli-1.1.39-evs7a20p.mjs +0 -9
- package/dist/chunks/cli-1.1.39-eyp8d7vv.mjs +0 -2
- package/dist/chunks/cli-1.1.39-f0wf0m0n.mjs +0 -2
- package/dist/chunks/cli-1.1.39-f1schffw.mjs +0 -25
- package/dist/chunks/cli-1.1.39-f2qc1x1n.mjs +0 -2
- package/dist/chunks/cli-1.1.39-f5azyvet.mjs +0 -2
- package/dist/chunks/cli-1.1.39-fka8qdkr.mjs +0 -2
- package/dist/chunks/cli-1.1.39-fm08hbtj.mjs +0 -2
- package/dist/chunks/cli-1.1.39-fqsaf1st.mjs +0 -2
- package/dist/chunks/cli-1.1.39-g751n1kp.mjs +0 -2
- package/dist/chunks/cli-1.1.39-g7mbr2ky.mjs +0 -2
- package/dist/chunks/cli-1.1.39-g9rcf6cw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ghja51c5.mjs +0 -2
- package/dist/chunks/cli-1.1.39-gnkk8fs7.mjs +0 -2
- package/dist/chunks/cli-1.1.39-gtm67f9z.mjs +0 -2
- package/dist/chunks/cli-1.1.39-h06axtf8.mjs +0 -4
- package/dist/chunks/cli-1.1.39-h8ahn5vw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-h90nz8dv.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ha8fn1m0.mjs +0 -2
- package/dist/chunks/cli-1.1.39-hgm87yas.mjs +0 -10
- package/dist/chunks/cli-1.1.39-j6nvja1z.mjs +0 -2
- package/dist/chunks/cli-1.1.39-jmh4b6db.mjs +0 -2
- package/dist/chunks/cli-1.1.39-jncrq8d3.mjs +0 -2
- package/dist/chunks/cli-1.1.39-jq1a84j4.mjs +0 -2
- package/dist/chunks/cli-1.1.39-k8n2ksgh.mjs +0 -2
- package/dist/chunks/cli-1.1.39-kcq7gw24.mjs +0 -60
- package/dist/chunks/cli-1.1.39-kfztpa2h.mjs +0 -2
- package/dist/chunks/cli-1.1.39-kkgyntg1.mjs +0 -7
- package/dist/chunks/cli-1.1.39-kw258d7x.mjs +0 -4
- package/dist/chunks/cli-1.1.39-mhv15208.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ms0zz1pq.mjs +0 -2
- package/dist/chunks/cli-1.1.39-mtdpf384.mjs +0 -2
- package/dist/chunks/cli-1.1.39-n8j5q839.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nc39g50q.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nde8mxzw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ne2jz4j1.mjs +0 -12
- package/dist/chunks/cli-1.1.39-nhgqks5q.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nk9xnj41.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nkv70wmc.mjs +0 -10
- package/dist/chunks/cli-1.1.39-nmm4w3bh.mjs +0 -16
- package/dist/chunks/cli-1.1.39-nnc7eg6p.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nsgjkze0.mjs +0 -2
- package/dist/chunks/cli-1.1.39-nxv718fh.mjs +0 -3
- package/dist/chunks/cli-1.1.39-p2sg5g92.mjs +0 -250
- package/dist/chunks/cli-1.1.39-pc9dgxhx.mjs +0 -5
- package/dist/chunks/cli-1.1.39-q8q90rxq.mjs +0 -2
- package/dist/chunks/cli-1.1.39-rfkva6dd.mjs +0 -42
- package/dist/chunks/cli-1.1.39-rhqy2d5w.mjs +0 -2
- package/dist/chunks/cli-1.1.39-rjxm15hw.mjs +0 -2
- package/dist/chunks/cli-1.1.39-rp6sehng.mjs +0 -3
- package/dist/chunks/cli-1.1.39-rprv5zq8.mjs +0 -25
- package/dist/chunks/cli-1.1.39-rqs6bqnm.mjs +0 -2
- package/dist/chunks/cli-1.1.39-rxpy9zgc.mjs +0 -2
- package/dist/chunks/cli-1.1.39-s4g9xyv5.mjs +0 -2
- package/dist/chunks/cli-1.1.39-srjkdp3j.mjs +0 -2
- package/dist/chunks/cli-1.1.39-swktejeb.mjs +0 -2
- package/dist/chunks/cli-1.1.39-t2jqv0s9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-t4a22cet.mjs +0 -6
- package/dist/chunks/cli-1.1.39-tc87f2ta.mjs +0 -2
- package/dist/chunks/cli-1.1.39-tjpdjpp5.mjs +0 -15
- package/dist/chunks/cli-1.1.39-tveshzdb.mjs +0 -2
- package/dist/chunks/cli-1.1.39-v92y62n9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-vh86jjp2.mjs +0 -4
- package/dist/chunks/cli-1.1.39-vhqah8m7.mjs +0 -2
- package/dist/chunks/cli-1.1.39-vtt2tmb9.mjs +0 -18
- package/dist/chunks/cli-1.1.39-wdctfdbb.mjs +0 -4
- package/dist/chunks/cli-1.1.39-whzghgxz.mjs +0 -2
- package/dist/chunks/cli-1.1.39-x6jkg8mf.mjs +0 -20
- package/dist/chunks/cli-1.1.39-xg4cr6x8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-xm6k98xf.mjs +0 -2
- package/dist/chunks/cli-1.1.39-xyddt40c.mjs +0 -2
- package/dist/chunks/cli-1.1.39-y341qw3m.mjs +0 -2
- package/dist/chunks/cli-1.1.39-yjwk9mw8.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ypma7nx9.mjs +0 -2
- package/dist/chunks/cli-1.1.39-ytvr80fj.mjs +0 -15
- package/dist/chunks/cli-1.1.39-yyqx9zb5.mjs +0 -5522
- package/dist/chunks/cli-1.1.39-z1akavz2.mjs +0 -2
- package/dist/chunks/cli-1.1.39-z21b507j.mjs +0 -2
- package/dist/chunks/cli-1.1.39-z6fepfnh.mjs +0 -2
- package/dist/chunks/cli-1.1.39-zc1b8zf6.mjs +0 -2
- package/dist/chunks/cli-1.1.39-zdsdsv4h.mjs +0 -3
- package/dist/chunks/cli-1.1.39-zfb5hcs0.mjs +0 -34
- package/dist/chunks/client-1.1.39-zrdzybfj.mjs +0 -1
- package/dist/chunks/color-1.1.39-qsgg6xt0.mjs +0 -1
- package/dist/chunks/compact-1.1.39-ye5nj18m.mjs +0 -2
- package/dist/chunks/config-1.1.39-cfgcj726.mjs +0 -1
- package/dist/chunks/config-1.1.39-nsgxmahr.mjs +0 -1
- package/dist/chunks/constants-1.1.39-s4anaxa3.mjs +0 -1
- package/dist/chunks/context-1.1.39-a93qe83k.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.1.39-2428zhce.mjs +0 -1
- package/dist/chunks/conversation-1.1.39-x581tx1z.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.1.39-bnzefwe6.mjs +0 -1
- package/dist/chunks/copy-1.1.39-tqab4hm1.mjs +0 -9
- package/dist/chunks/cost-1.1.39-ak71khd3.mjs +0 -1
- package/dist/chunks/createSession-1.1.39-yv7a37ye.mjs +0 -1
- package/dist/chunks/debug-1.1.39-50dvjcn3.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.1.39-483fm6xk.mjs +0 -1458
- package/dist/chunks/desktop-1.1.39-hbx627a1.mjs +0 -2
- package/dist/chunks/detectRepository-1.1.39-nq1yyp24.mjs +0 -1
- package/dist/chunks/detection-1.1.39-myz8dcyc.mjs +0 -1
- package/dist/chunks/diff-1.1.39-zwwd0sxq.mjs +0 -1
- package/dist/chunks/doctor-1.1.39-bw8w0sdj.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.1.39-x9azkqjy.mjs +0 -1
- package/dist/chunks/earlyInput-1.1.39-3wtxyym8.mjs +0 -1
- package/dist/chunks/effort-1.1.39-4r28x4kv.mjs +0 -13
- package/dist/chunks/engine-1.1.39-jjwgtndr.mjs +0 -1
- package/dist/chunks/envUtils-1.1.39-azqd5ff8.mjs +0 -1
- package/dist/chunks/errors-1.1.39-z6wpc1z1.mjs +0 -1
- package/dist/chunks/exampleCommands-1.1.39-fhwx5xxp.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.1.39-raa250pr.mjs +0 -1
- package/dist/chunks/exit-1.1.39-vwjekv6v.mjs +0 -1
- package/dist/chunks/explorer-1.1.39-rs5cjdex.mjs +0 -1
- package/dist/chunks/export-1.1.39-eg5q8fpq.mjs +0 -2
- package/dist/chunks/fast-1.1.39-j8zrdcv9.mjs +0 -1
- package/dist/chunks/feedback-1.1.39-tt17q1d1.mjs +0 -16
- package/dist/chunks/git-1.1.39-hf1cm8nf.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.1.39-yb2392an.mjs +0 -1
- package/dist/chunks/goal-1.1.39-6q6twvx9.mjs +0 -4
- package/dist/chunks/headless-1.1.39-e745sf98.mjs +0 -2
- package/dist/chunks/heapdump-1.1.39-1mf2vt2g.mjs +0 -6
- package/dist/chunks/help-1.1.39-szdr1nvx.mjs +0 -1
- package/dist/chunks/hooks-1.1.39-5pws6gsg.mjs +0 -79
- package/dist/chunks/hooks-1.1.39-6tz18s8r.mjs +0 -1
- package/dist/chunks/ide-1.1.39-nk0vmfg1.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.1.39-rx4ypf8k.mjs +0 -1
- package/dist/chunks/import-1.1.39-eyddkf9v.mjs +0 -260
- package/dist/chunks/inboundAttachments-1.1.39-g0fjztwj.mjs +0 -1
- package/dist/chunks/index-1.1.39-1wfhz9pz.mjs +0 -1
- package/dist/chunks/index-1.1.39-27vjd0t1.mjs +0 -1
- package/dist/chunks/index-1.1.39-3mp0kdhv.mjs +0 -1
- package/dist/chunks/index-1.1.39-aj2fb3nf.mjs +0 -30
- package/dist/chunks/index-1.1.39-ajb8kk03.mjs +0 -1
- package/dist/chunks/index-1.1.39-bznxqgpz.mjs +0 -1
- package/dist/chunks/index-1.1.39-cf96agzw.mjs +0 -2
- package/dist/chunks/index-1.1.39-d4j661cs.mjs +0 -1
- package/dist/chunks/index-1.1.39-dapcfrje.mjs +0 -1
- package/dist/chunks/index-1.1.39-e9fjpss8.mjs +0 -1
- package/dist/chunks/index-1.1.39-eg0vw6jg.mjs +0 -1
- package/dist/chunks/index-1.1.39-eqm0e7bk.mjs +0 -1
- package/dist/chunks/index-1.1.39-frzv879p.mjs +0 -23
- package/dist/chunks/index-1.1.39-fthy3yb2.mjs +0 -1
- package/dist/chunks/index-1.1.39-h7tvkmm7.mjs +0 -9
- package/dist/chunks/index-1.1.39-hn7czx81.mjs +0 -5
- package/dist/chunks/index-1.1.39-jeg0xvtv.mjs +0 -1
- package/dist/chunks/index-1.1.39-qh6j97r3.mjs +0 -2
- package/dist/chunks/index-1.1.39-szfdrv3c.mjs +0 -9
- package/dist/chunks/index-1.1.39-t358fdhx.mjs +0 -1
- package/dist/chunks/index-1.1.39-w73ez3fh.mjs +0 -1
- package/dist/chunks/index-1.1.39-xcj56xfg.mjs +0 -1
- package/dist/chunks/index-1.1.39-zy7eyf9r.mjs +0 -1
- package/dist/chunks/init-1.1.39-fm3907f2.mjs +0 -2
- package/dist/chunks/initReplBridge-1.1.39-76qw9tbk.mjs +0 -1
- package/dist/chunks/ink-1.1.39-f9cyw022.mjs +0 -1
- package/dist/chunks/insights-1.1.39-ee2ra979.mjs +0 -870
- package/dist/chunks/install-1.1.39-1hv4f4fk.mjs +0 -1
- package/dist/chunks/install-github-app-1.1.39-tg2jfpvx.mjs +0 -149
- package/dist/chunks/install-slack-app-1.1.39-69fgekh2.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.1.39-5caf0pb7.mjs +0 -1
- package/dist/chunks/latestVersionCache-1.1.39-31bygz1b.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.1.39-1jtdv1bq.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.1.39-4xw48447.mjs +0 -1
- package/dist/chunks/log-1.1.39-50bfm8j0.mjs +0 -1
- package/dist/chunks/main-1.1.39-f3n951kv.mjs +0 -1
- package/dist/chunks/managedEnv-1.1.39-bwtexcjv.mjs +0 -1
- package/dist/chunks/mcp-1.1.39-15sz3hsq.mjs +0 -1
- package/dist/chunks/mcp-1.1.39-h4h304ze.mjs +0 -4
- package/dist/chunks/mcp-1.1.39-rdsgsc15.mjs +0 -17
- package/dist/chunks/mcpb-1.1.39-5qywjc26.mjs +0 -1
- package/dist/chunks/memory-1.1.39-8edv180p.mjs +0 -128
- package/dist/chunks/model-1.1.39-95b780x9.mjs +0 -2
- package/dist/chunks/model-1.1.39-a5xmtpbv.mjs +0 -1
- package/dist/chunks/new-1.1.39-9476r8p1.mjs +0 -1
- package/dist/chunks/node-1.1.39-pqhskkn0.mjs +0 -15
- package/dist/chunks/node-1.1.39-xgvdgvgj.mjs +0 -1
- package/dist/chunks/oauth-1.1.39-5h69g0mf.mjs +0 -1
- package/dist/chunks/openaiShim-1.1.39-jnp9fkcv.mjs +0 -14
- package/dist/chunks/output-style-1.1.39-e5qsw51y.mjs +0 -1
- package/dist/chunks/package-V72LKFNW-1.1.39-0gcw2fkh.mjs +0 -1
- package/dist/chunks/permissions-1.1.39-0m2h5ctr.mjs +0 -3
- package/dist/chunks/permissions-1.1.39-djt32qkn.mjs +0 -1
- package/dist/chunks/plan-1.1.39-qcq9a7rg.mjs +0 -1
- package/dist/chunks/plist-1.1.39-esb4db3e.mjs +0 -1
- package/dist/chunks/plugin-1.1.39-xztkvc83.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.1.39-pzynd625.mjs +0 -1
- package/dist/chunks/plugins-1.1.39-2vnnwfwq.mjs +0 -9
- package/dist/chunks/preActionHook-1.1.39-w6ay049g.mjs +0 -2
- package/dist/chunks/print-1.1.39-m20hre3d.mjs +0 -57
- package/dist/chunks/process-1.1.39-7pp4m6p6.mjs +0 -1
- package/dist/chunks/processBashCommand-1.1.39-z8xyxzeb.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.1.39-025rdqc4.mjs +0 -9
- package/dist/chunks/prompt-1.1.39-8cves1th.mjs +0 -1
- package/dist/chunks/prompt-1.1.39-vys3tszv.mjs +0 -1
- package/dist/chunks/prompts-1.1.39-agk5ys12.mjs +0 -1
- package/dist/chunks/provider-1.1.39-ezn3013z.mjs +0 -2
- package/dist/chunks/providerProfiles-1.1.39-c20aqfkp.mjs +0 -1
- package/dist/chunks/providerValidation-1.1.39-5bwc03ac.mjs +0 -6
- package/dist/chunks/registerSubcommands-1.1.39-tg42q4mt.mjs +0 -26
- package/dist/chunks/registry-1.1.39-69kg9048.mjs +0 -1
- package/dist/chunks/release-notes-1.1.39-vm602996.mjs +0 -5
- package/dist/chunks/reload-plugins-1.1.39-hq5jb4fe.mjs +0 -2
- package/dist/chunks/remote-env-1.1.39-b742xwt8.mjs +0 -1
- package/dist/chunks/rename-1.1.39-37583s4r.mjs +0 -1
- package/dist/chunks/replLauncher-1.1.39-x7vm725e.mjs +0 -1
- package/dist/chunks/resume-1.1.39-7x78pwef.mjs +0 -2
- package/dist/chunks/rewind-1.1.39-36y4s8ng.mjs +0 -1
- package/dist/chunks/rootOptions-1.1.39-ns1nx8k9.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.1.39-8p1cbkrx.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.1.39-bt6cm9af.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.1.39-a3p74qsk.mjs +0 -1
- package/dist/chunks/session-1.1.39-qgpx4589.mjs +0 -2
- package/dist/chunks/sessionStorage-1.1.39-fp105vvb.mjs +0 -1
- package/dist/chunks/settings-1.1.39-qe258cgb.mjs +0 -1
- package/dist/chunks/setup-1.1.39-4zjv96k3.mjs +0 -12
- package/dist/chunks/sinks-1.1.39-6xx75cg6.mjs +0 -1
- package/dist/chunks/skills-1.1.39-2d5tfynf.mjs +0 -1
- package/dist/chunks/startupProfiler-1.1.39-jcvdrk17.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.1.39-43maz2ha.mjs +0 -1
- package/dist/chunks/state-1.1.39-4sbpam9q.mjs +0 -1
- package/dist/chunks/stats-1.1.39-8p35mm3v.mjs +0 -1
- package/dist/chunks/status-1.1.39-1qcsfp99.mjs +0 -1
- package/dist/chunks/stickers-1.1.39-hppwbrtb.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.1.39-hp2bbefp.mjs +0 -1
- package/dist/chunks/tasks-1.1.39-qs8xddg1.mjs +0 -1
- package/dist/chunks/teamHelpers-1.1.39-qnvqd2j1.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.1.39-pr2vnqzw.mjs +0 -1
- package/dist/chunks/teleport-1.1.39-zt8tze77.mjs +0 -1
- package/dist/chunks/terminalSetup-1.1.39-715qq4cf.mjs +0 -1
- package/dist/chunks/theme-1.1.39-gnxdfpcb.mjs +0 -1
- package/dist/chunks/toolPool-1.1.39-77884kvy.mjs +0 -1
- package/dist/chunks/toolSearch-1.1.39-b2k8yjaz.mjs +0 -1
- package/dist/chunks/tools-1.1.39-7nbe7hrf.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.1.39-h0gz7em7.mjs +0 -69
- package/dist/chunks/types-1.1.39-jcqnbyss.mjs +0 -1
- package/dist/chunks/update-1.1.39-1w75psfh.mjs +0 -72
- package/dist/chunks/upload-1.1.39-z8ymn737.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.1.39-j1d74feb.mjs +0 -14
- package/dist/chunks/usage-1.1.39-s31k5fep.mjs +0 -1
- package/dist/chunks/util-1.1.39-ad8sk0dp.mjs +0 -1
- package/dist/chunks/utils-1.1.39-ya8kcrhm.mjs +0 -1
- package/dist/chunks/vim-1.1.39-b6pfmpbz.mjs +0 -1
- package/dist/chunks/watchLoop-1.1.39-h3bxe3p9.mjs +0 -13
- package/dist/chunks/wiki-1.1.39-5aj4xh5m.mjs +0 -132
- package/dist/chunks/workflows-1.1.39-f31ham8r.mjs +0 -1
- package/dist/chunks/worktree-1.1.39-sf55cdqj.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.1.39-4ja3es46.mjs +0 -1
- package/dist/chunks/wrapper-1.1.39-r1fj52tb.mjs +0 -7
- /package/dist/chunks/{cli-1.1.39-avfsydnr.mjs → cli-1.1.40-1y2tz88m.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.39-hn5s43sr.mjs → cli-1.1.40-3xg2bc7f.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.39-jsnryd3j.mjs → cli-1.1.40-8vgr1z6h.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.39-z8ts6axr.mjs → cli-1.1.40-jxfk62k7.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.39-erbg35qn.mjs → cli-1.1.40-x18jz9h5.mjs} +0 -0
- /package/dist/chunks/{cli-1.1.39-qnem4654.mjs → cli-1.1.40-ys83fnw1.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Vi as a}from"./cli-1.1.40-test5hfq.mjs";import"./cli-1.1.40-yb9c5882.mjs";import"./cli-1.1.40-jxfk62k7.mjs";export default a();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o8 as P}from"./cli-1.1.40-xty2k2d8.mjs";import{r8 as p,s8 as w}from"./cli-1.1.40-ypd0pmm1.mjs";import"./cli-1.1.40-fn6qzvk2.mjs";import{Nqa as u,Oqa as a}from"./cli-1.1.40-jxfk62k7.mjs";var d,t,f,E,_,v=(r,e,s)=>{if(e.Version!==1)throw Error(`Profile ${r} credential_process did not return Version 1.`);if(e.AccessKeyId===void 0||e.SecretAccessKey===void 0)throw Error(`Profile ${r} credential_process returned invalid credentials.`);if(e.Expiration){let i=new Date;if(new Date(e.Expiration)<i)throw Error(`Profile ${r} credential_process returned expired credentials.`)}let o=e.AccountId;if(!o&&s?.[r]?.aws_account_id)o=s[r].aws_account_id;let n={accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,...e.SessionToken&&{sessionToken:e.SessionToken},...e.Expiration&&{expiration:new Date(e.Expiration)},...e.CredentialScope&&{credentialScope:e.CredentialScope},...o&&{accountId:o}};return _.setCredentialFeature(n,"CREDENTIALS_PROCESS","w"),n},x=async(r,e,s)=>{let o=e[r];if(e[r]){let n=o.credential_process;if(n!==void 0){let i=E.promisify(d.externalDataInterceptor?.getTokenRecord?.().exec??f.exec);try{let{stdout:c}=await i(n),l;try{l=JSON.parse(c.trim())}catch{throw Error(`Profile ${r} credential_process returned invalid JSON.`)}return v(r,l,e)}catch(c){throw new t.CredentialsProviderError(c.message,{logger:s})}}else throw new t.CredentialsProviderError(`Profile ${r} did not contain credential_process.`,{logger:s})}else throw new t.CredentialsProviderError(`Profile ${r} could not be found in shared credentials file.`,{logger:s})},h=(r={})=>async({callerClientConfig:e}={})=>{r.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let s=await d.parseKnownFiles(r);return x(d.getProfileName({profile:r.profile??e?.profile}),s,r.logger)},y;var S=u(()=>{d=P(),t=w(),f=a("node:child_process"),E=a("node:util"),_=p();y=h});S();export{y as fromProcess};export default {get fromProcess(){return y}};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Fqa as u,Iqa as k}from"./cli-1.1.40-fn6qzvk2.mjs";import{Nqa as f,Oqa as y}from"./cli-1.1.40-jxfk62k7.mjs";function j(z){return new Promise((G,U)=>{let K=g.request({method:"GET",...z,hostname:z.hostname?.replace(/^\[(.+)\]$/,"$1")});K.on("error",(Q)=>{U(Object.assign(new X.ProviderError("Unable to connect to instance metadata service"),Q)),K.destroy()}),K.on("timeout",()=>{U(new X.ProviderError("TimeoutError from instance metadata service")),K.destroy()}),K.on("response",(Q)=>{let{statusCode:Z=400}=Q;if(Z<200||300<=Z)U(Object.assign(new X.ProviderError("Error response received from instance metadata service"),{statusCode:Z})),K.destroy();let w=[];Q.on("data",($)=>{w.push($)}),Q.on("end",()=>{G(Buffer.concat(w)),K.destroy()})}),K.end()})}var m,X,g,c,C=(z)=>Boolean(z)&&typeof z==="object"&&typeof z.AccessKeyId==="string"&&typeof z.SecretAccessKey==="string"&&typeof z.Token==="string"&&typeof z.Expiration==="string",T=(z)=>({accessKeyId:z.AccessKeyId,secretAccessKey:z.SecretAccessKey,sessionToken:z.Token,expiration:new Date(z.Expiration),...z.AccountId&&{accountId:z.AccountId}}),b=1000,F=0,M=({maxRetries:z=F,timeout:G=b})=>({maxRetries:z,timeout:G}),N=(z,G)=>{let U=z();for(let K=0;K<G;K++)U=U.catch(z);return U},L="AWS_CONTAINER_CREDENTIALS_FULL_URI",_="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",P="AWS_CONTAINER_AUTHORIZATION_TOKEN",p=(z={})=>{let{timeout:G,maxRetries:U}=M(z);return()=>N(async()=>{let K=await n({logger:z.logger}),Q=JSON.parse(await d(G,K));if(!C(Q))throw new X.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:z.logger});return T(Q)},U)},d=async(z,G)=>{if(process.env[P])G.headers={...G.headers,Authorization:process.env[P]};return(await j({...G,timeout:z})).toString()},l="169.254.170.2",a,s,n=async({logger:z})=>{if(process.env[_])return{hostname:l,path:process.env[_]};if(process.env[L]){let G=m.parse(process.env[L]);if(!G.hostname||!(G.hostname in a))throw new X.CredentialsProviderError(`${G.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:z});if(!G.protocol||!(G.protocol in s))throw new X.CredentialsProviderError(`${G.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:z});return{...G,port:G.port?parseInt(G.port,10):void 0}}throw new X.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${_} or ${L} environment variable is set`,{tryNextLink:!1,logger:z})},V,S=void 0,o="AWS_EC2_METADATA_SERVICE_ENDPOINT",t="ec2_metadata_service_endpoint",i,A,r="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",e="ec2_metadata_service_endpoint_mode",zz,v=async()=>c.parseUrl(await Gz()||await Kz()),Gz=async()=>X.loadConfig(i)(),Kz=async()=>{let z=await X.loadConfig(zz)();switch(z){case A.IPv4:return S.IPv4;case A.IPv6:return S.IPv6;default:throw Error(`Unsupported endpoint mode: ${z}. Select from ${Object.values(A)}`)}},Qz=300,Uz=300,Xz="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",h=(z,G)=>{let U=Qz+Math.floor(Math.random()*Uz),K=new Date(Date.now()+U*1000);G.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(K)}.
|
|
2
|
+
For more information, please visit: `+Xz);let Q=z.originalExpiration??z.expiration;return{...z,...Q?{originalExpiration:Q}:{},expiration:K}},Zz=(z,G={})=>{let U=G?.logger||console,K;return async()=>{let Q;try{if(Q=await z(),Q.expiration&&Q.expiration.getTime()<Date.now())Q=h(Q,U)}catch(Z){if(K)U.warn("Credential renew failed: ",Z),Q=h(K,U);else throw Z}return K=Q,Q}},x="/latest/meta-data/iam/security-credentials/",$z="/latest/api/token",B="AWS_EC2_METADATA_V1_DISABLED",q="ec2_metadata_v1_disabled",I="x-aws-ec2-metadata-token",Hz=(z={})=>Zz(Jz(z),{logger:z.logger}),Jz=(z={})=>{let G=!1,{logger:U,profile:K}=z,{timeout:Q,maxRetries:Z}=M(z),w=async($,D)=>{if(G||D.headers?.[I]==null){let H=!1,J=!1,R=await X.loadConfig({environmentVariableSelector:(Y)=>{let W=Y[B];if(J=!!W&&W!=="false",W===void 0)throw new X.CredentialsProviderError(`${B} not set in env, checking config file next.`,{logger:z.logger});return J},configFileSelector:(Y)=>{let W=Y[q];return H=!!W&&W!=="false",H},default:!1},{profile:K})();if(z.ec2MetadataV1Disabled||R){let Y=[];if(z.ec2MetadataV1Disabled)Y.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(H)Y.push(`config file profile (${q})`);if(J)Y.push(`process environment variable (${B})`);throw new V(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${Y.join(", ")}].`)}}let E=(await N(async()=>{let H;try{H=await wz(D)}catch(J){if(J.statusCode===401)G=!1;throw J}return H},$)).trim();return N(async()=>{let H;try{H=await Dz(E,D,z)}catch(J){if(J.statusCode===401)G=!1;throw J}return H},$)};return async()=>{let $=await v();if(G)return U?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),w(Z,{...$,timeout:Q});else{let D;try{D=(await Yz({...$,timeout:Q})).toString()}catch(O){if(O?.statusCode===400)throw Object.assign(O,{message:"EC2 Metadata token request returned error"});else if(O.message==="TimeoutError"||[403,404,405].includes(O.statusCode))G=!0;return U?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),w(Z,{...$,timeout:Q})}return w(Z,{...$,headers:{[I]:D},timeout:Q})}}},Yz=async(z)=>j({...z,path:$z,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),wz=async(z)=>(await j({...z,path:x})).toString(),Dz=async(z,G,U)=>{let K=JSON.parse((await j({...G,path:x+z})).toString());if(!C(K))throw new X.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:U.logger});return T(K)},Wz,Az,Oz,Sz,jz,Lz,_z,Bz,Nz,Pz;var Mz=f(()=>{m=y("node:url"),X=u(),g=y("node:http"),c=k();a={localhost:!0,"127.0.0.1":!0},s={"http:":!0,"https:":!0};V=class V extends X.CredentialsProviderError{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(z,G=!0){super(z,G);this.tryNextLink=G,Object.setPrototypeOf(this,V.prototype)}};(function(z){z.IPv4="http://169.254.169.254",z.IPv6="http://[fd00:ec2::254]"})(S||(S={}));i={environmentVariableSelector:(z)=>z[o],configFileSelector:(z)=>z[t],default:void 0};(function(z){z.IPv4="IPv4",z.IPv6="IPv6"})(A||(A={}));zz={environmentVariableSelector:(z)=>z[r],configFileSelector:(z)=>z[e],default:A.IPv4};Wz=F,Az=b,Oz=P,Sz=L,jz=_,Lz=p,_z=Hz,Bz=v,Nz=j,Pz=M});Mz();export{Pz as providerConfigFromInit,Nz as httpRequest,Bz as getInstanceMetadataEndpoint,_z as fromInstanceMetadata,Lz as fromContainerMetadata,S as Endpoint,jz as ENV_CMDS_RELATIVE_URI,Sz as ENV_CMDS_FULL_URI,Oz as ENV_CMDS_AUTH_TOKEN,Az as DEFAULT_TIMEOUT,Wz as DEFAULT_MAX_RETRIES};export default {get providerConfigFromInit(){return Pz},get httpRequest(){return Nz},get getInstanceMetadataEndpoint(){return Bz},get fromInstanceMetadata(){return _z},get fromContainerMetadata(){return Lz},get Endpoint(){return S},get ENV_CMDS_RELATIVE_URI(){return jz},get ENV_CMDS_FULL_URI(){return Sz},get ENV_CMDS_AUTH_TOKEN(){return Oz},get DEFAULT_TIMEOUT(){return Az},get DEFAULT_MAX_RETRIES(){return Wz}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bqa as a}from"./cli-1.1.40-xrdf30ff.mjs";import"./cli-1.1.40-fn6qzvk2.mjs";import"./cli-1.1.40-jxfk62k7.mjs";export default a();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o8 as G}from"./cli-1.1.40-xty2k2d8.mjs";import{r8 as _,s8 as U}from"./cli-1.1.40-ypd0pmm1.mjs";import{Iqa as X}from"./cli-1.1.40-fn6qzvk2.mjs";import{Jqa as K,Lqa as B,Nqa as l,Oqa as E}from"./cli-1.1.40-jxfk62k7.mjs";var v=B((k)=>{Object.defineProperty(k,"__esModule",{value:!0});k.resolveHttpHandlerRuntimeConfig=k.getHttpHandlerExtensionConfiguration=k.isValidHostname=k.HttpResponse=k.HttpRequest=k.Fields=k.Field=void 0;var H=X();Object.defineProperty(k,"Field",{enumerable:!0,get:function(){return H.Field}});Object.defineProperty(k,"Fields",{enumerable:!0,get:function(){return H.Fields}});Object.defineProperty(k,"HttpRequest",{enumerable:!0,get:function(){return H.HttpRequest}});Object.defineProperty(k,"HttpResponse",{enumerable:!0,get:function(){return H.HttpResponse}});Object.defineProperty(k,"isValidHostname",{enumerable:!0,get:function(){return H.isValidHostname}});Object.defineProperty(k,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return H.getHttpHandlerExtensionConfiguration}});Object.defineProperty(k,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return H.resolveHttpHandlerRuntimeConfig}})});var J=B((C)=>{var Q=_(),T=U(),P=G(),W=v(),F=E("node:crypto"),q=E("node:fs"),Z=E("node:os"),A=E("node:path");class ${profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300000;constructor(e,n,t){this.profileData=e,this.init=n,this.callerClientConfig=t}async loadCredentials(){let e=await this.loadToken();if(!e)throw new T.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let n=e.accessToken,t=Date.now();if(new Date(n.expiresAt).getTime()-t<=$.REFRESH_THRESHOLD)return this.refresh(e);return{accessKeyId:n.accessKeyId,secretAccessKey:n.secretAccessKey,sessionToken:n.sessionToken,accountId:n.accountId,expiration:new Date(n.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(e){let{SigninClient:n,CreateOAuth2TokenCommand:t}=await import("./index-1.1.40-7thhkf50.mjs").then((m)=>K(m.default)),{logger:s,userAgentAppId:c}=this.callerClientConfig??{},r=((h)=>{return h?.metadata?.handlerProtocol==="h2"})(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,a=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,i=new n({credentials:{accessKeyId:"",secretAccessKey:""},region:a,requestHandler:r,logger:s,userAgentAppId:c,...this.init?.clientConfig});this.createDPoPInterceptor(i.middlewareStack);let x={tokenInput:{clientId:e.clientId,refreshToken:e.refreshToken,grantType:"refresh_token"}};try{let h=await i.send(new t(x)),{accessKeyId:y,secretAccessKey:d,sessionToken:I}=h.tokenOutput?.accessToken??{},{refreshToken:S,expiresIn:m}=h.tokenOutput??{};if(!y||!d||!I||!S)throw new T.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let R=(m??900)*1000,b=new Date(Date.now()+R),j={...e,accessToken:{...e.accessToken,accessKeyId:y,secretAccessKey:d,sessionToken:I,expiresAt:b.toISOString()},refreshToken:S};await this.saveToken(j);let o=j.accessToken;return{accessKeyId:o.accessKeyId,secretAccessKey:o.secretAccessKey,sessionToken:o.sessionToken,accountId:o.accountId,expiration:b}}catch(h){if(h.name==="AccessDeniedException"){let y=h.error,d;switch(y){case"TOKEN_EXPIRED":d="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":d="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":d="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:d=`Failed to refresh token: ${String(h)}. Please re-authenticate using \`aws login\``}throw new T.CredentialsProviderError(d,{logger:this.logger,tryNextLink:!1})}throw new T.CredentialsProviderError(`Failed to refresh token: ${String(h)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let n;try{n=await P.readFile(e,{ignoreCache:this.init?.ignoreCache})}catch{n=await q.promises.readFile(e,"utf8")}let t=JSON.parse(n),s=["accessToken","clientId","refreshToken","dpopKey"].filter((c)=>!t[c]);if(!t.accessToken?.accountId)s.push("accountId");if(s.length>0)throw new T.CredentialsProviderError(`Token validation failed, missing fields: ${s.join(", ")}`,{logger:this.logger,tryNextLink:!1});return t}catch(n){throw new T.CredentialsProviderError(`Failed to load token from ${e}: ${String(n)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let n=this.getTokenFilePath(),t=A.dirname(n);try{await q.promises.mkdir(t,{recursive:!0})}catch(s){}await q.promises.writeFile(n,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??A.join(Z.homedir(),".aws","login","cache"),n=Buffer.from(this.loginSession,"utf8"),t=F.createHash("sha256").update(n).digest("hex");return A.join(e,`${t}.json`)}derToRawSignature(e){let n=2;if(e[n]!==2)throw Error("Invalid DER signature");n++;let t=e[n++],s=e.subarray(n,n+t);if(n+=t,e[n]!==2)throw Error("Invalid DER signature");n++;let c=e[n++],u=e.subarray(n,n+c);s=s[0]===0?s.subarray(1):s,u=u[0]===0?u.subarray(1):u;let r=Buffer.concat([Buffer.alloc(32-s.length),s]),a=Buffer.concat([Buffer.alloc(32-u.length),u]);return Buffer.concat([r,a])}createDPoPInterceptor(e){e.add((n)=>async(t)=>{if(W.HttpRequest.isInstance(t.request)){let s=t.request,c=`${s.protocol}//${s.hostname}${s.port?`:${s.port}`:""}${s.path}`,u=await this.generateDpop(s.method,c);s.headers={...s.headers,DPoP:u}}return n(t)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",n){let t=await this.loadToken();try{let s=F.createPrivateKey({key:t.dpopKey,format:"pem",type:"sec1"}),u=F.createPublicKey(s).export({format:"der",type:"spki"}),r=-1;for(let b=0;b<u.length;b++)if(u[b]===4){r=b;break}let a=u.slice(r+1,r+33),i=u.slice(r+33,r+65),x={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:a.toString("base64url"),y:i.toString("base64url")}},h={jti:crypto.randomUUID(),htm:e,htu:n,iat:Math.floor(Date.now()/1000)},y=Buffer.from(JSON.stringify(x)).toString("base64url"),d=Buffer.from(JSON.stringify(h)).toString("base64url"),I=`${y}.${d}`,S=F.sign("sha256",Buffer.from(I),s),R=this.derToRawSignature(S).toString("base64url");return`${I}.${R}`}catch(s){throw new T.CredentialsProviderError(`Failed to generate Dpop proof: ${s instanceof Error?s.message:String(s)}`,{logger:this.logger,tryNextLink:!1})}}}var N=(e)=>async({callerClientConfig:n}={})=>{e?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let t=await P.parseKnownFiles(e||{}),s=P.getProfileName({profile:e?.profile??n?.profile}),c=t[s];if(!c?.login_session)throw new T.CredentialsProviderError(`Profile ${s} does not contain login_session.`,{tryNextLink:!0,logger:e?.logger});let r=await new $(c,e,n).loadCredentials();return Q.setCredentialFeature(r,"CREDENTIALS_LOGIN","AD")};C.fromLoginCredentials=N});var L,O,w,p,ee=(e,n,t)=>{let s={EcsContainer:async(c)=>{let{fromHttp:u}=await import("./index-1.1.40-6h7p7965.mjs").then((m)=>K(m.default,1)),{fromContainerMetadata:r}=await import("./index-1.1.40-m8hvmnp3.mjs");return t?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>O.chain(u(c??{}),r(c))().then(D)},Ec2InstanceMetadata:async(c)=>{t?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:u}=await import("./index-1.1.40-m8hvmnp3.mjs");return async()=>u(c)().then(D)},Environment:async(c)=>{t?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:u}=await import("./index-1.1.40-3dg7neyn.mjs");return async()=>u(c)().then(D)}};if(e in s)return s[e];else throw new O.CredentialsProviderError(`Unsupported credential source in profile ${n}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:t})},D=(e)=>w.setCredentialFeature(e,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),te=(e,{profile:n="default",logger:t}={})=>{return Boolean(e)&&typeof e==="object"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(ne(e,{profile:n,logger:t})||se(e,{profile:n,logger:t}))},ne=(e,{profile:n,logger:t})=>{let s=typeof e.source_profile==="string"&&typeof e.credential_source>"u";if(s)t?.debug?.(` ${n} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`);return s},se=(e,{profile:n,logger:t})=>{let s=typeof e.credential_source==="string"&&typeof e.source_profile>"u";if(s)t?.debug?.(` ${n} isCredentialSourceProfile credential_source=${e.credential_source}`);return s},re=async(e,n,t,s,c={},u)=>{t.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let r=n[e],{source_profile:a,region:i}=r;if(!t.roleAssumer){let{getDefaultRoleAssumer:h}=await import("./index-1.1.40-d7gm1zpq.mjs").then((m)=>K(m.default,1));t.roleAssumer=h({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...s,...t?.parentClientConfig,region:i??t?.parentClientConfig?.region??s?.region}},t.clientPlugins)}if(a&&a in c)throw new O.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${L.getProfileName(t)}. Profiles visited: `+Object.keys(c).join(", "),{logger:t.logger});t.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${a?`source_profile=[${a}]`:`profile=[${e}]`}`);let x=a?u(a,n,t,s,{...c,[a]:!0},V(n[a]??{})):(await ee(r.credential_source,e,t.logger)(t))();if(V(r))return x.then((h)=>w.setCredentialFeature(h,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let h={RoleArn:r.role_arn,RoleSessionName:r.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:r.external_id,DurationSeconds:parseInt(r.duration_seconds||"3600",10)},{mfa_serial:y}=r;if(y){if(!t.mfaCodeProvider)throw new O.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:t.logger,tryNextLink:!1});h.SerialNumber=y,h.TokenCode=await t.mfaCodeProvider(y)}let d=await x;return t.roleAssumer(d,h).then((I)=>w.setCredentialFeature(I,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},V=(e)=>{return!e.role_arn&&!!e.credential_source},ce=(e)=>{return Boolean(e&&e.login_session)},ue=async(e,n,t)=>{let s=await p.fromLoginCredentials({...n,profile:e})({callerClientConfig:t});return w.setCredentialFeature(s,"CREDENTIALS_PROFILE_LOGIN","AC")},he=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.credential_process==="string",ae=async(e,n)=>import("./index-1.1.40-kxj8bd6n.mjs").then(({fromProcess:t})=>t({...e,profile:n})().then((s)=>w.setCredentialFeature(s,"CREDENTIALS_PROFILE_PROCESS","v"))),de=async(e,n,t={},s)=>{let{fromSSO:c}=await import("./index-1.1.40-agp7ccgc.mjs");return c({profile:e,logger:t.logger,parentClientConfig:t.parentClientConfig,clientConfig:t.clientConfig})({callerClientConfig:s}).then((u)=>{if(n.sso_session)return w.setCredentialFeature(u,"CREDENTIALS_PROFILE_SSO","r");else return w.setCredentialFeature(u,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},ye=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string"),Y=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.aws_access_key_id==="string"&&typeof e.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1,g=async(e,n)=>{n?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let t={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return w.setCredentialFeature(t,"CREDENTIALS_PROFILE","n")},ke=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.web_identity_token_file==="string"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,we=async(e,n,t)=>import("./index-1.1.40-ce1vrpmy.mjs").then((m)=>K(m.default,1)).then(({fromTokenFile:s})=>s({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:n.roleAssumerWithWebIdentity,logger:n.logger,parentClientConfig:n.parentClientConfig})({callerClientConfig:t}).then((c)=>w.setCredentialFeature(c,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q"))),z=async(e,n,t,s,c={},u=!1)=>{let r=n[e];if(Object.keys(c).length>0&&Y(r))return g(r,t);if(u||te(r,{profile:e,logger:t.logger}))return re(e,n,t,s,c,z);if(Y(r))return g(r,t);if(ke(r))return we(r,t,s);if(he(r))return ae(t,e);if(ye(r))return await de(e,r,t,s);if(ce(r))return ue(e,t,s);throw new O.CredentialsProviderError(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:t.logger})},Te=(e={})=>async({callerClientConfig:n}={})=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let t=await L.parseKnownFiles(e);return z(L.getProfileName({profile:e.profile??n?.profile}),t,e,n)},Ee;var Ie=l(()=>{L=G(),O=U(),w=_(),p=J();Ee=Te});Ie();export{Ee as fromIni};export default {get fromIni(){return Ee}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f6 as a}from"./cli-1.1.40-dbt9wvcg.mjs";import"./cli-1.1.40-jxfk62k7.mjs";export default a();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n8 as a}from"./cli-1.1.40-x07axsvg.mjs";import"./cli-1.1.40-fn6qzvk2.mjs";import"./cli-1.1.40-jxfk62k7.mjs";export default a();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Hqa as ls}from"./cli-1.1.40-fn6qzvk2.mjs";import{Lqa as z,Nqa as hs,Oqa as Xn}from"./cli-1.1.40-jxfk62k7.mjs";var V=z((js,Z)=>{var _,nn,en,sn,tn,hn,ln,cn,yn,wn,Sn,an,fn,Q,F,bn,un,gn,T,Mn,Un,Bn,$n,In,On,zn,Nn,Gn,X,rn,Cn,Tn;(function(n){var s=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(a){n(c(s,c(a)))});else if(typeof Z==="object"&&typeof js==="object")n(c(s,c(js)));else n(c(s));function c(a,w){if(a!==s)if(typeof Object.create==="function")Object.defineProperty(a,"__esModule",{value:!0});else a.__esModule=!0;return function(e,t){return a[e]=w?w(e,t):t}}})(function(n){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var h in t)if(Object.prototype.hasOwnProperty.call(t,h))e[h]=t[h]};_=function(e,t){if(typeof t!=="function"&&t!==null)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");s(e,t);function h(){this.constructor=e}e.prototype=t===null?Object.create(t):(h.prototype=t.prototype,new h)},nn=Object.assign||function(e){for(var t,h=1,l=arguments.length;h<l;h++){t=arguments[h];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e},en=function(e,t){var h={};for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0)h[l]=e[l];if(e!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var i=0,l=Object.getOwnPropertySymbols(e);i<l.length;i++)if(t.indexOf(l[i])<0&&Object.prototype.propertyIsEnumerable.call(e,l[i]))h[l[i]]=e[l[i]]}return h},sn=function(e,t,h,l){var i=arguments.length,y=i<3?t:l===null?l=Object.getOwnPropertyDescriptor(t,h):l,S;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")y=Reflect.decorate(e,t,h,l);else for(var b=e.length-1;b>=0;b--)if(S=e[b])y=(i<3?S(y):i>3?S(t,h,y):S(t,h))||y;return i>3&&y&&Object.defineProperty(t,h,y),y},tn=function(e,t){return function(h,l){t(h,l,e)}},hn=function(e,t,h,l,i,y){function S(r){if(r!==void 0&&typeof r!=="function")throw TypeError("Function expected");return r}var b=l.kind,g=b==="getter"?"get":b==="setter"?"set":"value",f=!t&&e?l.static?e:e.prototype:null,u=t||(f?Object.getOwnPropertyDescriptor(f,l.name):{}),U,B=!1;for(var M=h.length-1;M>=0;M--){var I={};for(var O in l)I[O]=O==="access"?{}:l[O];for(var O in l.access)I.access[O]=l.access[O];I.addInitializer=function(r){if(B)throw TypeError("Cannot add initializers after decoration has completed");y.push(S(r||null))};var $=(0,h[M])(b==="accessor"?{get:u.get,set:u.set}:u[g],I);if(b==="accessor"){if($===void 0)continue;if($===null||typeof $!=="object")throw TypeError("Object expected");if(U=S($.get))u.get=U;if(U=S($.set))u.set=U;if(U=S($.init))i.unshift(U)}else if(U=S($))if(b==="field")i.unshift(U);else u[g]=U}if(f)Object.defineProperty(f,l.name,u);B=!0},ln=function(e,t,h){var l=arguments.length>2;for(var i=0;i<t.length;i++)h=l?t[i].call(e,h):t[i].call(e);return l?h:void 0},cn=function(e){return typeof e==="symbol"?e:"".concat(e)},yn=function(e,t,h){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:!0,value:h?"".concat(h," ",t):t})},wn=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)},Sn=function(e,t,h,l){function i(y){return y instanceof h?y:new h(function(S){S(y)})}return new(h||(h=Promise))(function(y,S){function b(u){try{f(l.next(u))}catch(U){S(U)}}function g(u){try{f(l.throw(u))}catch(U){S(U)}}function f(u){u.done?y(u.value):i(u.value).then(b,g)}f((l=l.apply(e,t||[])).next())})},an=function(e,t){var h={label:0,sent:function(){if(y[0]&1)throw y[1];return y[1]},trys:[],ops:[]},l,i,y,S=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return S.next=b(0),S.throw=b(1),S.return=b(2),typeof Symbol==="function"&&(S[Symbol.iterator]=function(){return this}),S;function b(f){return function(u){return g([f,u])}}function g(f){if(l)throw TypeError("Generator is already executing.");while(S&&(S=0,f[0]&&(h=0)),h)try{if(l=1,i&&(y=f[0]&2?i.return:f[0]?i.throw||((y=i.return)&&y.call(i),0):i.next)&&!(y=y.call(i,f[1])).done)return y;if(i=0,y)f=[f[0]&2,y.value];switch(f[0]){case 0:case 1:y=f;break;case 4:return h.label++,{value:f[1],done:!1};case 5:h.label++,i=f[1],f=[0];continue;case 7:f=h.ops.pop(),h.trys.pop();continue;default:if((y=h.trys,!(y=y.length>0&&y[y.length-1]))&&(f[0]===6||f[0]===2)){h=0;continue}if(f[0]===3&&(!y||f[1]>y[0]&&f[1]<y[3])){h.label=f[1];break}if(f[0]===6&&h.label<y[1]){h.label=y[1],y=f;break}if(y&&h.label<y[2]){h.label=y[2],h.ops.push(f);break}if(y[2])h.ops.pop();h.trys.pop();continue}f=t.call(e,h)}catch(u){f=[6,u],i=0}finally{l=y=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},fn=function(e,t){for(var h in e)if(h!=="default"&&!Object.prototype.hasOwnProperty.call(t,h))X(t,e,h)},X=Object.create?function(e,t,h,l){if(l===void 0)l=h;var i=Object.getOwnPropertyDescriptor(t,h);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable))i={enumerable:!0,get:function(){return t[h]}};Object.defineProperty(e,l,i)}:function(e,t,h,l){if(l===void 0)l=h;e[l]=t[h]},Q=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,h=t&&e[t],l=0;if(h)return h.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&l>=e.length)e=void 0;return{value:e&&e[l++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},F=function(e,t){var h=typeof Symbol==="function"&&e[Symbol.iterator];if(!h)return e;var l=h.call(e),i,y=[],S;try{while((t===void 0||t-- >0)&&!(i=l.next()).done)y.push(i.value)}catch(b){S={error:b}}finally{try{if(i&&!i.done&&(h=l.return))h.call(l)}finally{if(S)throw S.error}}return y},bn=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(F(arguments[t]));return e},un=function(){for(var e=0,t=0,h=arguments.length;t<h;t++)e+=arguments[t].length;for(var l=Array(e),i=0,t=0;t<h;t++)for(var y=arguments[t],S=0,b=y.length;S<b;S++,i++)l[i]=y[S];return l},gn=function(e,t,h){if(h||arguments.length===2){for(var l=0,i=t.length,y;l<i;l++)if(y||!(l in t)){if(!y)y=Array.prototype.slice.call(t,0,l);y[l]=t[l]}}return e.concat(y||Array.prototype.slice.call(t))},T=function(e){return this instanceof T?(this.v=e,this):new T(e)},Mn=function(e,t,h){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var l=h.apply(e,t||[]),i,y=[];return i=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),b("next"),b("throw"),b("return",S),i[Symbol.asyncIterator]=function(){return this},i;function S(M){return function(I){return Promise.resolve(I).then(M,U)}}function b(M,I){if(l[M]){if(i[M]=function(O){return new Promise(function($,r){y.push([M,O,$,r])>1||g(M,O)})},I)i[M]=I(i[M])}}function g(M,I){try{f(l[M](I))}catch(O){B(y[0][3],O)}}function f(M){M.value instanceof T?Promise.resolve(M.value.v).then(u,U):B(y[0][2],M)}function u(M){g("next",M)}function U(M){g("throw",M)}function B(M,I){if(M(I),y.shift(),y.length)g(y[0][0],y[0][1])}},Un=function(e){var t,h;return t={},l("next"),l("throw",function(i){throw i}),l("return"),t[Symbol.iterator]=function(){return this},t;function l(i,y){t[i]=e[i]?function(S){return(h=!h)?{value:T(e[i](S)),done:!1}:y?y(S):S}:y}},Bn=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],h;return t?t.call(e):(e=typeof Q==="function"?Q(e):e[Symbol.iterator](),h={},l("next"),l("throw"),l("return"),h[Symbol.asyncIterator]=function(){return this},h);function l(y){h[y]=e[y]&&function(S){return new Promise(function(b,g){S=e[y](S),i(b,g,S.done,S.value)})}}function i(y,S,b,g){Promise.resolve(g).then(function(f){y({value:f,done:b})},S)}},$n=function(e,t){if(Object.defineProperty)Object.defineProperty(e,"raw",{value:t});else e.raw=t;return e};var c=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},a=function(e){return a=Object.getOwnPropertyNames||function(t){var h=[];for(var l in t)if(Object.prototype.hasOwnProperty.call(t,l))h[h.length]=l;return h},a(e)};In=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var h=a(e),l=0;l<h.length;l++)if(h[l]!=="default")X(t,e,h[l])}return c(t,e),t},On=function(e){return e&&e.__esModule?e:{default:e}},zn=function(e,t,h,l){if(h==="a"&&!l)throw TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!l:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return h==="m"?l:h==="a"?l.call(e):l?l.value:t.get(e)},Nn=function(e,t,h,l,i){if(l==="m")throw TypeError("Private method is not writable");if(l==="a"&&!i)throw TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?i.call(e,h):i?i.value=h:t.set(e,h),h},Gn=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)},rn=function(e,t,h){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw TypeError("Object expected.");var l,i;if(h){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");l=t[Symbol.asyncDispose]}if(l===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(l=t[Symbol.dispose],h)i=l}if(typeof l!=="function")throw TypeError("Object not disposable.");if(i)l=function(){try{i.call(this)}catch(y){return Promise.reject(y)}};e.stack.push({value:t,dispose:l,async:h})}else if(h)e.stack.push({async:!0});return t};var w=typeof SuppressedError==="function"?SuppressedError:function(e,t,h){var l=Error(h);return l.name="SuppressedError",l.error=e,l.suppressed=t,l};Cn=function(e){function t(y){e.error=e.hasError?new w(y,e.error,"An error was suppressed during disposal."):y,e.hasError=!0}var h,l=0;function i(){while(h=e.stack.pop())try{if(!h.async&&l===1)return l=0,e.stack.push(h),Promise.resolve().then(i);if(h.dispose){var y=h.dispose.call(h.value);if(h.async)return l|=2,Promise.resolve(y).then(i,function(S){return t(S),i()})}else l|=1}catch(S){t(S)}if(l===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()},Tn=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e))return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(h,l,i,y,S){return l?t?".jsx":".js":i&&(!y||!S)?h:i+y+"."+S.toLowerCase()+"js"});return e},n("__extends",_),n("__assign",nn),n("__rest",en),n("__decorate",sn),n("__param",tn),n("__esDecorate",hn),n("__runInitializers",ln),n("__propKey",cn),n("__setFunctionName",yn),n("__metadata",wn),n("__awaiter",Sn),n("__generator",an),n("__exportStar",fn),n("__createBinding",X),n("__values",Q),n("__read",F),n("__spread",bn),n("__spreadArrays",un),n("__spreadArray",gn),n("__await",T),n("__asyncGenerator",Mn),n("__asyncDelegator",Un),n("__asyncValues",Bn),n("__makeTemplateObject",$n),n("__importStar",In),n("__importDefault",On),n("__classPrivateFieldGet",zn),n("__classPrivateFieldSet",Nn),n("__classPrivateFieldIn",Gn),n("__addDisposableResource",rn),n("__disposeResources",Cn),n("__rewriteRelativeImportExtension",Tn)})});var Qn=z((Es,Wn)=>{var{defineProperty:H,getOwnPropertyDescriptor:fe,getOwnPropertyNames:be}=Object,ue=Object.prototype.hasOwnProperty,ge=(n,s)=>H(n,"name",{value:s,configurable:!0}),Me=(n,s)=>{for(var c in s)H(n,c,{get:s[c],enumerable:!0})},Ue=(n,s,c,a)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of be(s))if(!ue.call(n,w)&&w!==c)H(n,w,{get:()=>s[w],enumerable:!(a=fe(s,w))||a.enumerable})}return n},Be=(n)=>Ue(H({},"__esModule",{value:!0}),n),Ln={};Me(Ln,{isArrayBuffer:()=>$e});Wn.exports=Be(Ln);var $e=ge((n)=>typeof ArrayBuffer==="function"&&n instanceof ArrayBuffer||Object.prototype.toString.call(n)==="[object ArrayBuffer]","isArrayBuffer")});var Kn=z((Ps,qn)=>{var{defineProperty:q,getOwnPropertyDescriptor:Ie,getOwnPropertyNames:Oe}=Object,ze=Object.prototype.hasOwnProperty,Zn=(n,s)=>q(n,"name",{value:s,configurable:!0}),Ne=(n,s)=>{for(var c in s)q(n,c,{get:s[c],enumerable:!0})},Ge=(n,s,c,a)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of Oe(s))if(!ze.call(n,w)&&w!==c)q(n,w,{get:()=>s[w],enumerable:!(a=Ie(s,w))||a.enumerable})}return n},re=(n)=>Ge(q({},"__esModule",{value:!0}),n),Hn={};Ne(Hn,{fromArrayBuffer:()=>Te,fromString:()=>Le});qn.exports=re(Hn);var Ce=Qn(),J=Xn("buffer"),Te=Zn((n,s=0,c=n.byteLength-s)=>{if(!(0,Ce.isArrayBuffer)(n))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof n} (${n})`);return J.Buffer.from(n,s,c)},"fromArrayBuffer"),Le=Zn((n,s)=>{if(typeof n!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof n} (${n})`);return s?J.Buffer.from(n,s):J.Buffer.from(n)},"fromString")});var An=z((ks,mn)=>{var{defineProperty:K,getOwnPropertyDescriptor:We,getOwnPropertyNames:Qe}=Object,Xe=Object.prototype.hasOwnProperty,m=(n,s)=>K(n,"name",{value:s,configurable:!0}),Ze=(n,s)=>{for(var c in s)K(n,c,{get:s[c],enumerable:!0})},He=(n,s,c,a)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of Qe(s))if(!Xe.call(n,w)&&w!==c)K(n,w,{get:()=>s[w],enumerable:!(a=We(s,w))||a.enumerable})}return n},qe=(n)=>He(K({},"__esModule",{value:!0}),n),Fn={};Ze(Fn,{fromUtf8:()=>Jn,toUint8Array:()=>Ke,toUtf8:()=>Fe});mn.exports=qe(Fn);var Vn=Kn(),Jn=m((n)=>{let s=(0,Vn.fromString)(n,"utf8");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),Ke=m((n)=>{if(typeof n==="string")return Jn(n);if(ArrayBuffer.isView(n))return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(n)},"toUint8Array"),Fe=m((n)=>{if(typeof n==="string")return n;if(typeof n!=="object"||typeof n.byteOffset!=="number"||typeof n.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return(0,Vn.fromArrayBuffer)(n.buffer,n.byteOffset,n.byteLength).toString("utf8")},"toUtf8")});var Dn=z((Rn)=>{Object.defineProperty(Rn,"__esModule",{value:!0});Rn.convertToBuffer=void 0;var Ve=An(),Je=typeof Buffer<"u"&&Buffer.from?function(n){return Buffer.from(n,"utf8")}:Ve.fromUtf8;function me(n){if(n instanceof Uint8Array)return n;if(typeof n==="string")return Je(n);if(ArrayBuffer.isView(n))return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(n)}Rn.convertToBuffer=me});var Pn=z((jn)=>{Object.defineProperty(jn,"__esModule",{value:!0});jn.isEmptyData=void 0;function Ae(n){if(typeof n==="string")return n.length===0;return n.byteLength===0}jn.isEmptyData=Ae});var dn=z((kn)=>{Object.defineProperty(kn,"__esModule",{value:!0});kn.numToUint8=void 0;function Re(n){return new Uint8Array([(n&4278190080)>>24,(n&16711680)>>16,(n&65280)>>8,n&255])}kn.numToUint8=Re});var pn=z((on)=>{Object.defineProperty(on,"__esModule",{value:!0});on.uint32ArrayFrom=void 0;function Ye(n){if(!Uint32Array.from){var s=new Uint32Array(n.length),c=0;while(c<n.length)s[c]=n[c],c+=1;return s}return Uint32Array.from(n)}on.uint32ArrayFrom=Ye});var A=z((L)=>{Object.defineProperty(L,"__esModule",{value:!0});L.uint32ArrayFrom=L.numToUint8=L.isEmptyData=L.convertToBuffer=void 0;var De=Dn();Object.defineProperty(L,"convertToBuffer",{enumerable:!0,get:function(){return De.convertToBuffer}});var je=Pn();Object.defineProperty(L,"isEmptyData",{enumerable:!0,get:function(){return je.isEmptyData}});var Ee=dn();Object.defineProperty(L,"numToUint8",{enumerable:!0,get:function(){return Ee.numToUint8}});var Pe=pn();Object.defineProperty(L,"uint32ArrayFrom",{enumerable:!0,get:function(){return Pe.uint32ArrayFrom}})});var te=z((ee)=>{Object.defineProperty(ee,"__esModule",{value:!0});ee.AwsCrc32=void 0;var _n=V(),R=A(),ne=Y(),ve=function(){function n(){this.crc32=new ne.Crc32}return n.prototype.update=function(s){if((0,R.isEmptyData)(s))return;this.crc32.update((0,R.convertToBuffer)(s))},n.prototype.digest=function(){return _n.__awaiter(this,void 0,void 0,function(){return _n.__generator(this,function(s){return[2,(0,R.numToUint8)(this.crc32.digest())]})})},n.prototype.reset=function(){this.crc32=new ne.Crc32},n}();ee.AwsCrc32=ve});var Y=z((D)=>{Object.defineProperty(D,"__esModule",{value:!0});D.AwsCrc32=D.Crc32=D.crc32=void 0;var de=V(),oe=A();function xe(n){return new he().update(n).digest()}D.crc32=xe;var he=function(){function n(){this.checksum=4294967295}return n.prototype.update=function(s){var c,a;try{for(var w=de.__values(s),e=w.next();!e.done;e=w.next()){var t=e.value;this.checksum=this.checksum>>>8^_e[(this.checksum^t)&255]}}catch(h){c={error:h}}finally{try{if(e&&!e.done&&(a=w.return))a.call(w)}finally{if(c)throw c.error}}return this},n.prototype.digest=function(){return(this.checksum^4294967295)>>>0},n}();D.Crc32=he;var pe=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],_e=(0,oe.uint32ArrayFrom)(pe),ns=te();Object.defineProperty(D,"AwsCrc32",{enumerable:!0,get:function(){return ns.AwsCrc32}})});class W{bytes;constructor(n){if(this.bytes=n,n.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(n){if(n>9223372036854776000||n<-9223372036854776000)throw Error(`${n} is too large (or, if negative, too small) to represent as an Int64`);let s=new Uint8Array(8);for(let c=7,a=Math.abs(Math.round(n));c>-1&&a>0;c--,a/=256)s[c]=a;if(n<0)le(s);return new W(s)}valueOf(){let n=this.bytes.slice(0),s=n[0]&128;if(s)le(n);return parseInt(N.toHex(n),16)*(s?-1:1)}toString(){return String(this.valueOf())}}function le(n){for(let s=0;s<8;s++)n[s]^=255;for(let s=7;s>-1;s--)if(n[s]++,n[s]!==0)break}class j{toUtf8;fromUtf8;constructor(n,s){this.toUtf8=n,this.fromUtf8=s}format(n){let s=[];for(let w of Object.keys(n)){let e=this.fromUtf8(w);s.push(Uint8Array.from([e.byteLength]),e,this.formatHeaderValue(n[w]))}let c=new Uint8Array(s.reduce((w,e)=>w+e.byteLength,0)),a=0;for(let w of s)c.set(w,a),a+=w.byteLength;return c}formatHeaderValue(n){switch(n.type){case"boolean":return Uint8Array.from([n.value?0:1]);case"byte":return Uint8Array.from([2,n.value]);case"short":let s=new DataView(new ArrayBuffer(3));return s.setUint8(0,3),s.setInt16(1,n.value,!1),new Uint8Array(s.buffer);case"integer":let c=new DataView(new ArrayBuffer(5));return c.setUint8(0,4),c.setInt32(1,n.value,!1),new Uint8Array(c.buffer);case"long":let a=new Uint8Array(9);return a[0]=5,a.set(n.value.bytes,1),a;case"binary":let w=new DataView(new ArrayBuffer(3+n.value.byteLength));w.setUint8(0,6),w.setUint16(1,n.value.byteLength,!1);let e=new Uint8Array(w.buffer);return e.set(n.value,3),e;case"string":let t=this.fromUtf8(n.value),h=new DataView(new ArrayBuffer(3+t.byteLength));h.setUint8(0,7),h.setUint16(1,t.byteLength,!1);let l=new Uint8Array(h.buffer);return l.set(t,3),l;case"timestamp":let i=new Uint8Array(9);return i[0]=8,i.set(W.fromNumber(n.value.valueOf()).bytes,1),i;case"uuid":if(!gs.test(n.value))throw Error(`Invalid UUID received: ${n.value}`);let y=new Uint8Array(17);return y[0]=9,y.set(N.fromHex(n.value.replace(/\-/g,"")),1),y}}parse(n){let s={},c=0;while(c<n.byteLength){let a=n.getUint8(c++),w=this.toUtf8(new Uint8Array(n.buffer,n.byteOffset+c,a));switch(c+=a,n.getUint8(c++)){case 0:s[w]={type:ye,value:!0};break;case 1:s[w]={type:ye,value:!1};break;case 2:s[w]={type:ys,value:n.getInt8(c++)};break;case 3:s[w]={type:is,value:n.getInt16(c,!1)},c+=2;break;case 4:s[w]={type:ws,value:n.getInt32(c,!1)},c+=4;break;case 5:s[w]={type:Ss,value:new W(new Uint8Array(n.buffer,n.byteOffset+c,8))},c+=8;break;case 6:let e=n.getUint16(c,!1);c+=2,s[w]={type:as,value:new Uint8Array(n.buffer,n.byteOffset+c,e)},c+=e;break;case 7:let t=n.getUint16(c,!1);c+=2,s[w]={type:fs,value:this.toUtf8(new Uint8Array(n.buffer,n.byteOffset+c,t))},c+=t;break;case 8:s[w]={type:bs,value:new Date(new W(new Uint8Array(n.buffer,n.byteOffset+c,8)).valueOf())},c+=8;break;case 9:let h=new Uint8Array(n.buffer,n.byteOffset+c,16);c+=16,s[w]={type:us,value:`${N.toHex(h.subarray(0,4))}-${N.toHex(h.subarray(4,6))}-${N.toHex(h.subarray(6,8))}-${N.toHex(h.subarray(8,10))}-${N.toHex(h.subarray(10))}`};break;default:throw Error("Unrecognized header type tag")}}return s}}function Us({byteLength:n,byteOffset:s,buffer:c}){if(n<Ms)throw Error("Provided message too short to accommodate event stream message overhead");let a=new DataView(c,s,n),w=a.getUint32(0,!1);if(n!==w)throw Error("Reported message length does not match received message length");let e=a.getUint32(we,!1),t=a.getUint32(G,!1),h=a.getUint32(n-C,!1),l=new ie.Crc32().update(new Uint8Array(c,s,G));if(t!==l.digest())throw Error(`The prelude checksum specified in the message (${t}) does not match the calculated CRC32 checksum (${l.digest()})`);if(l.update(new Uint8Array(c,s+G,n-(G+C))),h!==l.digest())throw Error(`The message checksum (${l.digest()}) did not match the expected value of ${h}`);return{headers:new DataView(c,s+G+C,e),body:new Uint8Array(c,s+G+C+e,w-e-(G+C+C))}}class E{headerMarshaller;messageBuffer;isEndOfStream;constructor(n,s){this.headerMarshaller=new j(n,s),this.messageBuffer=[],this.isEndOfStream=!1}feed(n){this.messageBuffer.push(this.decode(n))}endOfStream(){this.isEndOfStream=!0}getMessage(){let n=this.messageBuffer.pop(),s=this.isEndOfStream;return{getMessage(){return n},isEndOfStream(){return s}}}getAvailableMessages(){let n=this.messageBuffer;this.messageBuffer=[];let s=this.isEndOfStream;return{getMessages(){return n},isEndOfStream(){return s}}}encode({headers:n,body:s}){let c=this.headerMarshaller.format(n),a=c.byteLength+s.byteLength+16,w=new Uint8Array(a),e=new DataView(w.buffer,w.byteOffset,w.byteLength),t=new ie.Crc32;return e.setUint32(0,a,!1),e.setUint32(4,c.byteLength,!1),e.setUint32(8,t.update(w.subarray(0,8)).digest(),!1),w.set(c,12),w.set(s,c.byteLength+12),e.setUint32(a-4,t.update(w.subarray(8,a-4)).digest(),!1),w}decode(n){let{headers:s,body:c}=Us(n);return{headers:this.headerMarshaller.parse(s),body:c}}formatHeaders(n){return this.headerMarshaller.format(n)}}function Se(n){let s=0,c=0,a=null,w=null,e=(h)=>{if(typeof h!=="number")throw Error("Attempted to allocate an event message where size was not a number: "+h);s=h,c=4,a=new Uint8Array(h),new DataView(a.buffer).setUint32(0,h,!1)},t=async function*(){let h=n[Symbol.asyncIterator]();while(!0){let{value:l,done:i}=await h.next();if(i){if(!s)return;else if(s===c)yield a;else throw Error("Truncated event message received.");return}let y=l.length,S=0;while(S<y){if(!a){let g=y-S;if(!w)w=new Uint8Array(4);let f=Math.min(4-c,g);if(w.set(l.slice(S,S+f),c),c+=f,S+=f,c<4)break;e(new DataView(w.buffer).getUint32(0,!1)),w=null}let b=Math.min(s-c,y-S);if(a.set(l.slice(S,S+b),c),c+=b,S+=b,s&&s===c)yield a,a=null,s=0,c=0}}};return{[Symbol.asyncIterator]:t}}function Bs(n,s){let c=o(s.deserializer,s.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let a of n){let w=s.eventStreamCodec.decode(a),e=await c(w);if(e===void 0)continue;yield e}}}}function o(n,s){return async function(c){let{value:a}=c.headers[":message-type"];if(a==="error"){let w=Error(c.headers[":error-message"].value||"UnknownError");throw w.name=c.headers[":error-code"].value,w}else if(a==="exception"){let w=c.headers[":exception-type"].value,e={[w]:c},t=await n(e);if(t.$unknown){let h=Error(s(c.body));throw h.name=w,h}throw t[w]}else if(a==="event"){let w={[c.headers[":event-type"].value]:c},e=await n(w);if(e.$unknown)return;return e}else throw Error(`Unrecognizable event type: ${c.headers[":event-type"].value}`)}}class p{universalMarshaller;constructor({utf8Encoder:n,utf8Decoder:s}){this.universalMarshaller=new x({utf8Decoder:s,utf8Encoder:n})}deserialize(n,s){let c=typeof n[Symbol.asyncIterator]==="function"?n:Os(n);return this.universalMarshaller.deserialize(c,s)}serialize(n,s){return cs.Readable.from(this.universalMarshaller.serialize(n,s))}}async function*Os(n){let s=!1,c=!1,a=[];n.on("error",(w)=>{if(!s)s=!0;if(w)throw w}),n.on("data",(w)=>{a.push(w)}),n.on("end",()=>{s=!0});while(!c){let w=await new Promise((e)=>setTimeout(()=>e(a.shift()),0));if(w)yield w;c=s&&a.length===0}}class ae{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:n,serializer:s,deserializer:c,serdeContext:a,defaultContentType:w}){this.marshaller=n,this.serializer=s,this.deserializer=c,this.serdeContext=a,this.defaultContentType=w}async serializeEventStream({eventStream:n,requestSchema:s,initialRequest:c}){let a=this.marshaller,w=s.getEventStreamMember(),e=s.getMemberSchema(w),t=this.serializer,h=this.defaultContentType,l=Symbol("initialRequestMarker"),i={async*[Symbol.asyncIterator](){if(c){let y={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:h}};t.write(s,c);let S=t.flush();yield{[l]:!0,headers:y,body:S}}for await(let y of n)yield y}};return a.serialize(i,(y)=>{if(y[l])return{headers:y.headers,body:y.body};let S="";for(let B in y)if(B!=="__type"){S=B;break}let{additionalHeaders:b,body:g,eventType:f,explicitPayloadContentType:u}=this.writeEventBody(S,e,y);return{headers:{":event-type":{type:"string",value:f},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u??h},...b},body:g}})}async deserializeEventStream({response:n,responseSchema:s,initialResponseContainer:c}){let a=this.marshaller,w=s.getEventStreamMember(),t=s.getMemberSchema(w).getMemberSchemas(),h=Symbol("initialResponseMarker"),l=a.deserialize(n.body,async(S)=>{let b="";for(let f in S)if(f!=="__type"){b=f;break}let g=S[b].body;if(b==="initial-response"){let f=await this.deserializer.read(s,g);return delete f[w],{[h]:!0,...f}}else if(b in t){let f=t[b];if(f.isStructSchema()){let u={},U=!1;for(let[B,M]of f.structIterator()){let{eventHeader:I,eventPayload:O}=M.getMergedTraits();if(U=U||Boolean(I||O),O){if(M.isBlobSchema())u[B]=g;else if(M.isStringSchema())u[B]=(this.serdeContext?.utf8Encoder??N.toUtf8)(g);else if(M.isStructSchema())u[B]=await this.deserializer.read(M,g)}else if(I){let $=S[b].headers[B]?.value;if($!=null)if(M.isNumericSchema())if($&&typeof $==="object"&&"bytes"in $)u[B]=BigInt($.toString());else u[B]=Number($);else u[B]=$}}if(U)return{[b]:u};if(g.byteLength===0)return{[b]:{}}}return{[b]:await this.deserializer.read(f,g)}}else return{$unknown:S}}),i=l[Symbol.asyncIterator](),y=await i.next();if(y.done)return l;if(y.value?.[h]){if(!s)throw Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let S in y.value)c[S]=y.value[S]}return{async*[Symbol.asyncIterator](){if(!y?.value?.[h])yield y.value;while(!0){let{done:S,value:b}=await i.next();if(S)break;yield b}}}}writeEventBody(n,s,c){let a=this.serializer,w=n,e=null,t,h=(()=>{return s.getSchema()[4].includes(n)})(),l={};if(!h){let[S,b]=c[n];w=S,a.write(15,b)}else{let S=s.getMemberSchema(n);if(S.isStructSchema()){for(let[b,g]of S.structIterator()){let{eventHeader:f,eventPayload:u}=g.getMergedTraits();if(u)e=b;else if(f){let U=c[n][b],B="binary";if(g.isNumericSchema())if(-2147483648<=U&&U<=2147483647)B="integer";else B="long";else if(g.isTimestampSchema())B="timestamp";else if(g.isStringSchema())B="string";else if(g.isBooleanSchema())B="boolean";if(U!=null)l[b]={type:B,value:U},delete c[n][b]}}if(e!==null){let b=S.getMemberSchema(e);if(b.isBlobSchema())t="application/octet-stream";else if(b.isStringSchema())t="text/plain";a.write(b,c[n][e])}else a.write(S,c[n])}else if(S.isUnitSchema())a.write(S,{});else throw Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}let i=a.flush()??new Uint8Array;return{body:typeof i==="string"?(this.serdeContext?.utf8Decoder??N.fromUtf8)(i):i,eventType:w,explicitPayloadContentType:t,additionalHeaders:l}}}var ie,N,cs,ce,ye="boolean",ys="byte",is="short",ws="integer",Ss="long",as="binary",fs="string",bs="timestamp",us="uuid",gs,we=4,G,C=4,Ms,P,k,v,d,x=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:s,utf8Decoder:c}){this.eventStreamCodec=new E(s,c),this.utfEncoder=s}deserialize(s,c){let a=Se(s);return new v({messageStream:new P({inputStream:a,decoder:this.eventStreamCodec}),deserializer:o(c,this.utfEncoder)})}serialize(s,c){return new k({messageStream:new d({inputStream:s,serializer:c}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},$s=(n)=>new x(n),Is=(n)=>new p(n),zs=(n)=>({[Symbol.asyncIterator]:async function*(){let s=n.getReader();try{while(!0){let{done:c,value:a}=await s.read();if(c)return;yield a}}finally{s.releaseLock()}}}),Ns=(n)=>{let s=n[Symbol.asyncIterator]();return new ReadableStream({async pull(c){let{done:a,value:w}=await s.next();if(a)return c.close();c.enqueue(w)}})},Gs=(n)=>Object.assign(n,{eventStreamMarshaller:n.eventStreamSerdeProvider(n)}),rs,Cs,Ts,Ls,Ws,Qs,Xs,Zs,Hs,qs,Ks,Fs,Vs,Js,ms,As,Rs,Ys;var Ds=hs(()=>{ie=Y(),N=ls(),cs=Xn("node:stream");(function(n){n[n.boolTrue=0]="boolTrue",n[n.boolFalse=1]="boolFalse",n[n.byte=2]="byte",n[n.short=3]="short",n[n.integer=4]="integer",n[n.long=5]="long",n[n.byteArray=6]="byteArray",n[n.string=7]="string",n[n.timestamp=8]="timestamp",n[n.uuid=9]="uuid"})(ce||(ce={}));gs=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,G=we*2,Ms=G+C*2;P=class P{options;constructor(n){this.options=n}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let n of this.options.inputStream)yield this.options.decoder.decode(n)}};k=class k{options;constructor(n){this.options=n}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let n of this.options.messageStream)yield this.options.encoder.encode(n);if(this.options.includeEndFrame)yield new Uint8Array(0)}};v=class v{options;constructor(n){this.options=n}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let n of this.options.messageStream){let s=await this.options.deserializer(n);if(s===void 0)continue;yield s}}};d=class d{options;constructor(n){this.options=n}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let n of this.options.inputStream)yield this.options.serializer(n)}};rs=E,Cs=p,Ts=ae,Ls=j,Ws=W,Qs=P,Xs=k,Zs=v,Hs=d,qs=x,Ks=Is,Fs=Se,Vs=o,Js=Bs,ms=Ns,As=zs,Rs=Gs,Ys=$s});Ds();export{Ys as universalEventStreamSerdeProvider,Rs as resolveEventStreamSerdeConfig,As as readableStreamToIterable,ms as iterableToReadableStream,Js as getUnmarshalledStream,Vs as getMessageUnmarshaller,Fs as getChunkedStream,Ks as eventStreamSerdeProvider,qs as UniversalEventStreamMarshaller,Hs as SmithyMessageEncoderStream,Zs as SmithyMessageDecoderStream,Xs as MessageEncoderStream,Qs as MessageDecoderStream,Ws as Int64,Ls as HeaderMarshaller,Ts as EventStreamSerde,Cs as EventStreamMarshaller,rs as EventStreamCodec};export default {get universalEventStreamSerdeProvider(){return Ys},get resolveEventStreamSerdeConfig(){return Rs},get readableStreamToIterable(){return As},get iterableToReadableStream(){return ms},get getUnmarshalledStream(){return Js},get getMessageUnmarshaller(){return Vs},get getChunkedStream(){return Fs},get eventStreamSerdeProvider(){return Ks},get UniversalEventStreamMarshaller(){return qs},get SmithyMessageEncoderStream(){return Hs},get SmithyMessageDecoderStream(){return Zs},get MessageEncoderStream(){return Xs},get MessageDecoderStream(){return Qs},get Int64(){return Ws},get HeaderMarshaller(){return Ls},get EventStreamSerde(){return Ts},get EventStreamMarshaller(){return Cs},get EventStreamCodec(){return rs}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$7 as vr,O7 as w,P7 as so,Q7 as no,R7 as co,S7 as ce,T7 as Rt,U7 as Rr,V7 as ao,W7 as _e,X7 as po,Y7 as lo,Z7 as ge,_7 as h,a8 as Vt,b8 as Wt,d8 as Yt,e8 as Jt,f8 as Kt,g8 as Xt,h8 as Ct,i8 as ft,j8 as Ft,k8 as $t,l8 as uo,m8 as Oo}from"./cli-1.1.40-8x5yey3y.mjs";import{n8 as Ye}from"./cli-1.1.40-x07axsvg.mjs";import{q8 as Tt,r8 as Bt}from"./cli-1.1.40-ypd0pmm1.mjs";import{Bqa as Lt}from"./cli-1.1.40-xrdf30ff.mjs";import{Dqa as xe}from"./cli-1.1.40-fn6qzvk2.mjs";import{Lqa as v}from"./cli-1.1.40-jxfk62k7.mjs";var U=v((re)=>{Object.defineProperty(re,"__esModule",{value:!0});re.resolveHttpAuthSchemeConfig=re.defaultSSOOIDCHttpAuthSchemeProvider=re.defaultSSOOIDCHttpAuthSchemeParametersProvider=void 0;var Er=w(),j=vr(),Sr=async(e,r,i)=>{return{operation:(0,j.getSmithyContext)(r).operation,region:await(0,j.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};re.defaultSSOOIDCHttpAuthSchemeParametersProvider=Sr;function Ir(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:(r,i)=>({signingProperties:{config:r,context:i}})}}function Pr(e){return{schemeId:"smithy.api#noAuth"}}var xr=(e)=>{let r=[];switch(e.operation){case"CreateToken":{r.push(Pr(e));break}default:r.push(Ir(e))}return r};re.defaultSSOOIDCHttpAuthSchemeProvider=xr;var Dr=(e)=>{let r=(0,Er.resolveAwsSdkSigV4Config)(e);return Object.assign(r,{authSchemePreference:(0,j.normalizeProvider)(e.authSchemePreference??[])})};re.resolveHttpAuthSchemeConfig=Dr});var le=v((ae)=>{Object.defineProperty(ae,"__esModule",{value:!0});ae.bdd=void 0;var yr=ce(),D="ref",S=-1,y=!0,oe="isSet",de="PartitionResult",N="booleanEquals",M="getAttr",ie={[D]:"Endpoint"},A={[D]:de},x={},se=[{[D]:"Region"}],ne={conditions:[[oe,[ie]],[oe,se],["aws.partition",se,de],[N,[{[D]:"UseFIPS"},y]],[N,[{[D]:"UseDualStack"},y]],[N,[{fn:M,argv:[A,"supportsDualStack"]},y]],[N,[{fn:M,argv:[A,"supportsFIPS"]},y]],["stringEquals",[{fn:M,argv:[A,"name"]},"aws-us-gov"]]],results:[[S],[S,"Invalid Configuration: FIPS and custom endpoint are not supported"],[S,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ie,x],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",x],[S,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",x],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",x],[S,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",x],[S,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",x],[S,"Invalid Configuration: Missing Region"]]},Nr=2,n=1e8,hr=new Int32Array([-1,1,-1,0,13,3,1,4,n+12,2,5,n+12,3,8,6,4,7,n+11,5,n+9,n+10,4,11,9,6,10,n+8,7,n+6,n+7,5,12,n+5,6,n+4,n+5,3,n+1,14,4,n+2,n+3]);ae.bdd=yr.BinaryDecisionDiagram.from(hr,Nr,ne.conditions,ne.results)});var ve=v((ue)=>{Object.defineProperty(ue,"__esModule",{value:!0});ue.defaultEndpointResolver=void 0;var fr=Rr(),G=ce(),Fr=le(),$r=new G.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),jr=(e,r={})=>{return $r.get(e,()=>(0,G.decideEndpoint)(Fr.bdd,{endpointParams:e,logger:r.logger}))};ue.defaultEndpointResolver=jr;G.customEndpointFunctions.aws=fr.awsEndpointFunctions});var R=v((z)=>{Object.defineProperty(z,"__esModule",{value:!0});z.SSOOIDCServiceException=z.__ServiceException=void 0;var Ee=h();Object.defineProperty(z,"__ServiceException",{enumerable:!0,get:function(){return Ee.ServiceException}});class m extends Ee.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,m.prototype)}}z.SSOOIDCServiceException=m});var Q=v((Ie)=>{Object.defineProperty(Ie,"__esModule",{value:!0});Ie.UnsupportedGrantTypeException=Ie.UnauthorizedClientException=Ie.SlowDownException=Ie.InvalidScopeException=Ie.InvalidRequestException=Ie.InvalidGrantException=Ie.InvalidClientException=Ie.InternalServerException=Ie.ExpiredTokenException=Ie.AuthorizationPendingException=Ie.AccessDeniedException=void 0;var a=R();class H extends a.SSOOIDCServiceException{name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,H.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}Ie.AccessDeniedException=H;class L extends a.SSOOIDCServiceException{name="AuthorizationPendingException";$fault="client";error;error_description;constructor(e){super({name:"AuthorizationPendingException",$fault:"client",...e});Object.setPrototypeOf(this,L.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.AuthorizationPendingException=L;class T extends a.SSOOIDCServiceException{name="ExpiredTokenException";$fault="client";error;error_description;constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,T.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.ExpiredTokenException=T;class B extends a.SSOOIDCServiceException{name="InternalServerException";$fault="server";error;error_description;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,B.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InternalServerException=B;class V extends a.SSOOIDCServiceException{name="InvalidClientException";$fault="client";error;error_description;constructor(e){super({name:"InvalidClientException",$fault:"client",...e});Object.setPrototypeOf(this,V.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InvalidClientException=V;class W extends a.SSOOIDCServiceException{name="InvalidGrantException";$fault="client";error;error_description;constructor(e){super({name:"InvalidGrantException",$fault:"client",...e});Object.setPrototypeOf(this,W.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InvalidGrantException=W;class Y extends a.SSOOIDCServiceException{name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,Y.prototype),this.error=e.error,this.reason=e.reason,this.error_description=e.error_description}}Ie.InvalidRequestException=Y;class J extends a.SSOOIDCServiceException{name="InvalidScopeException";$fault="client";error;error_description;constructor(e){super({name:"InvalidScopeException",$fault:"client",...e});Object.setPrototypeOf(this,J.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.InvalidScopeException=J;class K extends a.SSOOIDCServiceException{name="SlowDownException";$fault="client";error;error_description;constructor(e){super({name:"SlowDownException",$fault:"client",...e});Object.setPrototypeOf(this,K.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.SlowDownException=K;class X extends a.SSOOIDCServiceException{name="UnauthorizedClientException";$fault="client";error;error_description;constructor(e){super({name:"UnauthorizedClientException",$fault:"client",...e});Object.setPrototypeOf(this,X.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.UnauthorizedClientException=X;class C extends a.SSOOIDCServiceException{name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(e){super({name:"UnsupportedGrantTypeException",$fault:"client",...e});Object.setPrototypeOf(this,C.prototype),this.error=e.error,this.error_description=e.error_description}}Ie.UnsupportedGrantTypeException=C});var Z=v((Re)=>{Object.defineProperty(Re,"__esModule",{value:!0});Re.CreateToken$=Re.CreateTokenResponse$=Re.CreateTokenRequest$=Re.errorTypeRegistries=Re.UnsupportedGrantTypeException$=Re.UnauthorizedClientException$=Re.SlowDownException$=Re.InvalidScopeException$=Re.InvalidRequestException$=Re.InvalidGrantException$=Re.InvalidClientException$=Re.InternalServerException$=Re.ExpiredTokenException$=Re.AuthorizationPendingException$=Re.AccessDeniedException$=Re.SSOOIDCServiceException$=void 0;var Br="AccessDeniedException",Vr="AuthorizationPendingException",Wr="AccessToken",Yr="ClientSecret",Jr="CreateToken",Kr="CreateTokenRequest",Xr="CreateTokenResponse",Cr="CodeVerifier",Qr="ExpiredTokenException",Zr="InvalidClientException",kr="InvalidGrantException",_r="InvalidRequestException",gr="InternalServerException",et="InvalidScopeException",rt="IdToken",tt="RefreshToken",ot="SlowDownException",it="UnauthorizedClientException",st="UnsupportedGrantTypeException",nt="accessToken",O="client",ct="clientId",dt="clientSecret",at="codeVerifier",pt="code",lt="deviceCode",t="error",ut="expiresIn",p="error_description",Ot="grantType",vt="http",l="httpError",Et="idToken",De="reason",be="refreshToken",St="redirectUri",qe="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",It="scope",Pt="server",xt="tokenType",o="com.amazonaws.ssooidc",ye=xe(),u=Q(),Dt=R(),Ne=ye.TypeRegistry.for(qe);Re.SSOOIDCServiceException$=[-3,qe,"SSOOIDCServiceException",0,[],[]];Ne.registerError(Re.SSOOIDCServiceException$,Dt.SSOOIDCServiceException);var c=ye.TypeRegistry.for(o);Re.AccessDeniedException$=[-3,o,Br,{[t]:O,[l]:400},[t,De,p],[0,0,0]];c.registerError(Re.AccessDeniedException$,u.AccessDeniedException);Re.AuthorizationPendingException$=[-3,o,Vr,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.AuthorizationPendingException$,u.AuthorizationPendingException);Re.ExpiredTokenException$=[-3,o,Qr,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.ExpiredTokenException$,u.ExpiredTokenException);Re.InternalServerException$=[-3,o,gr,{[t]:Pt,[l]:500},[t,p],[0,0]];c.registerError(Re.InternalServerException$,u.InternalServerException);Re.InvalidClientException$=[-3,o,Zr,{[t]:O,[l]:401},[t,p],[0,0]];c.registerError(Re.InvalidClientException$,u.InvalidClientException);Re.InvalidGrantException$=[-3,o,kr,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.InvalidGrantException$,u.InvalidGrantException);Re.InvalidRequestException$=[-3,o,_r,{[t]:O,[l]:400},[t,De,p],[0,0,0]];c.registerError(Re.InvalidRequestException$,u.InvalidRequestException);Re.InvalidScopeException$=[-3,o,et,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.InvalidScopeException$,u.InvalidScopeException);Re.SlowDownException$=[-3,o,ot,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.SlowDownException$,u.SlowDownException);Re.UnauthorizedClientException$=[-3,o,it,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.UnauthorizedClientException$,u.UnauthorizedClientException);Re.UnsupportedGrantTypeException$=[-3,o,st,{[t]:O,[l]:400},[t,p],[0,0]];c.registerError(Re.UnsupportedGrantTypeException$,u.UnsupportedGrantTypeException);Re.errorTypeRegistries=[Ne,c];var bt=[0,o,Wr,8,0],qt=[0,o,Yr,8,0],yt=[0,o,Cr,8,0],Nt=[0,o,rt,8,0],he=[0,o,tt,8,0];Re.CreateTokenRequest$=[3,o,Kr,0,[ct,dt,Ot,lt,pt,be,It,St,at],[0,[()=>qt,0],0,0,0,[()=>he,0],64,0,[()=>yt,0]],3];Re.CreateTokenResponse$=[3,o,Xr,0,[nt,xt,ut,be,Et],[[()=>bt,0],0,1,[()=>he,0],[()=>Nt,0]]];Re.CreateToken$=[9,o,Jr,{[vt]:["POST","/token",200]},()=>Re.CreateTokenRequest$,()=>Re.CreateTokenResponse$]});var Xe=v((Je)=>{Object.defineProperty(Je,"__esModule",{value:!0});Je.getRuntimeConfig=void 0;var jt=w(),wt=Ft(),Ut=Ye(),Mt=h(),At=Rt(),Ve=$t(),We=ft(),Gt=U(),mt=ve(),zt=Z(),Ht=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Ve.fromBase64,base64Encoder:e?.base64Encoder??Ve.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??mt.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Gt.defaultSSOOIDCHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(r)=>r.getIdentityProvider("aws.auth#sigv4"),signer:new jt.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(r)=>r.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Ut.NoAuthSigner}],logger:e?.logger??new Mt.NoOpLogger,protocol:e?.protocol??wt.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:zt.errorTypeRegistries,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??At.parseUrl,utf8Decoder:e?.utf8Decoder??We.fromUtf8,utf8Encoder:e?.utf8Encoder??We.toUtf8}};Je.getRuntimeConfig=Ht});var tr=v((er)=>{Object.defineProperty(er,"__esModule",{value:!0});er.getRuntimeConfig=void 0;var Qt=Vt(),Zt=Qt.__importDefault(Wt()),kt=Bt(),_t=w(),Ce=Yt(),f=_e(),gt=Jt(),Qe=ge(),I=Kt(),Ze=Lt(),ke=h(),eo=Xt(),ro=Ct(),to=Tt(),oo=Xe(),io=(e)=>{(0,ke.emitWarningIfUnsupportedVersion)(process.version);let r=(0,ro.resolveDefaultsModeConfig)(e),i=()=>r().then(ke.loadConfigsForDefaultMode),d=(0,oo.getRuntimeConfig)(e);(0,kt.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:d.logger};return{...d,...e,runtime:"node",defaultsMode:r,authSchemePreference:e?.authSchemePreference??(0,I.loadConfig)(_t.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??eo.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Ce.createDefaultUserAgentProvider)({serviceId:d.serviceId,clientVersion:Zt.default.version}),maxAttempts:e?.maxAttempts??(0,I.loadConfig)(Qe.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,I.loadConfig)(f.NODE_REGION_CONFIG_OPTIONS,{...f.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:Ze.NodeHttpHandler.create(e?.requestHandler??i),retryMode:e?.retryMode??(0,I.loadConfig)({...Qe.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await i()).retryMode||to.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??gt.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Ze.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,I.loadConfig)(f.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,I.loadConfig)(f.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,I.loadConfig)(Ce.NODE_APP_ID_CONFIG_OPTIONS,s)}};er.getRuntimeConfig=io});var zo=v((E)=>{var or=so(),vo=no(),Eo=co(),ir=ao(),So=_e(),k=Ye(),Io=xe(),Po=po(),ar=lo(),sr=ge(),P=h(),nr=U(),xo=tr(),cr=uo(),dr=Oo(),b=Z(),F=Q(),Do=R(),bo=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"})},qo={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},yo=(e)=>{let{httpAuthSchemes:r,httpAuthSchemeProvider:i,credentials:d}=e;return{setHttpAuthScheme(s){let q=r.findIndex(($)=>$.schemeId===s.schemeId);if(q===-1)r.push(s);else r.splice(q,1,s)},httpAuthSchemes(){return r},setHttpAuthSchemeProvider(s){i=s},httpAuthSchemeProvider(){return i},setCredentials(s){d=s},credentials(){return d}}},No=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},ho=(e,r)=>{let i=Object.assign(cr.getAwsRegionExtensionConfiguration(e),P.getDefaultExtensionConfiguration(e),dr.getHttpHandlerExtensionConfiguration(e),yo(e));return r.forEach((d)=>d.configure(i)),Object.assign(e,cr.resolveAwsRegionExtensionConfiguration(i),P.resolveDefaultRuntimeConfig(i),dr.resolveHttpHandlerRuntimeConfig(i),No(i))};class _ extends P.Client{config;constructor(...[e]){let r=xo.getRuntimeConfig(e||{});super(r);this.initConfig=r;let i=bo(r),d=ir.resolveUserAgentConfig(i),s=sr.resolveRetryConfig(d),q=So.resolveRegionConfig(s),$=or.resolveHostHeaderConfig(q),pr=ar.resolveEndpointConfig($),lr=nr.resolveHttpAuthSchemeConfig(pr),ur=ho(lr,e?.extensions||[]);this.config=ur,this.middlewareStack.use(Io.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(ir.getUserAgentPlugin(this.config)),this.middlewareStack.use(sr.getRetryPlugin(this.config)),this.middlewareStack.use(Po.getContentLengthPlugin(this.config)),this.middlewareStack.use(or.getHostHeaderPlugin(this.config)),this.middlewareStack.use(vo.getLoggerPlugin(this.config)),this.middlewareStack.use(Eo.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(k.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:nr.defaultSSOOIDCHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(Or)=>new k.DefaultIdentityProviderConfig({"aws.auth#sigv4":Or.credentials})})),this.middlewareStack.use(k.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class g extends P.Command.classBuilder().ep(qo).m(function(e,r,i,d){return[ar.getEndpointPlugin(i,e.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").sc(b.CreateToken$).build(){}var Ro={CreateTokenCommand:g};class ee extends _{}P.createAggregatedClient(Ro,ee);var fo={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},Fo={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"};E.$Command=P.Command;E.__Client=P.Client;E.SSOOIDCServiceException=Do.SSOOIDCServiceException;E.AccessDeniedExceptionReason=fo;E.CreateTokenCommand=g;E.InvalidRequestExceptionReason=Fo;E.SSOOIDC=ee;E.SSOOIDCClient=_;Object.prototype.hasOwnProperty.call(b,"__proto__")&&!Object.prototype.hasOwnProperty.call(E,"__proto__")&&Object.defineProperty(E,"__proto__",{enumerable:!0,value:b.__proto__});Object.keys(b).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(E,e))E[e]=b[e]});Object.prototype.hasOwnProperty.call(F,"__proto__")&&!Object.prototype.hasOwnProperty.call(E,"__proto__")&&Object.defineProperty(E,"__proto__",{enumerable:!0,value:F.__proto__});Object.keys(F).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(E,e))E[e]=F[e]})});export default zo();
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Bd as E,Dd as Rk}from"./cli-1.1.40-390v6b8q.mjs";import{BE as _k,Hj as u,Ij as h,Mj as Wk,Sk as d,Uk as S,Vk as Xk,dx as m,ex as Zk,iF as v,jF as p,kv as f,lv as Yk,nF as $k,sE as P,tE as c}from"./cli-1.1.40-wh51ya47.mjs";import"./cli-1.1.40-p6sasq8k.mjs";import"./cli-1.1.40-ycdfy6nf.mjs";import"./cli-1.1.40-d94fysd2.mjs";import"./cli-1.1.40-718chdj8.mjs";import"./cli-1.1.40-13ccwz6g.mjs";import"./cli-1.1.40-a8ztxtkt.mjs";import"./cli-1.1.40-yggza6ab.mjs";import"./cli-1.1.40-zc4hs061.mjs";import"./cli-1.1.40-beywxqng.mjs";import"./cli-1.1.40-p0d9ms1q.mjs";import"./cli-1.1.40-3hqepe0h.mjs";import"./cli-1.1.40-ckjrbh6b.mjs";import"./cli-1.1.40-h5r5wmqv.mjs";import"./cli-1.1.40-mtqb5txt.mjs";import"./cli-1.1.40-e6xs2c7n.mjs";import"./cli-1.1.40-8dzrhmwv.mjs";import"./cli-1.1.40-1z293953.mjs";import"./cli-1.1.40-0vdhw7mm.mjs";import"./cli-1.1.40-p3jhg1v9.mjs";import"./cli-1.1.40-cjtb9y6z.mjs";import"./cli-1.1.40-1a4pn4ww.mjs";import"./cli-1.1.40-x8fyash9.mjs";import"./cli-1.1.40-rwbr7d1h.mjs";import"./cli-1.1.40-202jxgqx.mjs";import"./cli-1.1.40-vnckyxj2.mjs";import{Z1 as z,c2 as g,s2 as b,u2 as Qk}from"./cli-1.1.40-13e9gynq.mjs";import{P5 as F,Q5 as Kk,_5 as y,b6 as Nk}from"./cli-1.1.40-bdt7jzc8.mjs";import"./cli-1.1.40-cjmpr9fj.mjs";import"./cli-1.1.40-dbt9wvcg.mjs";import"./cli-1.1.40-0z5szwzt.mjs";import"./cli-1.1.40-2j20ecjm.mjs";import"./cli-1.1.40-xxr2978q.mjs";import"./cli-1.1.40-6gc7p5by.mjs";import"./cli-1.1.40-jc0pv06v.mjs";import"./cli-1.1.40-75jka1rb.mjs";import"./cli-1.1.40-yb9c5882.mjs";import"./cli-1.1.40-gk34ey8n.mjs";import"./cli-1.1.40-88vceqkj.mjs";import"./cli-1.1.40-m4hyy4k1.mjs";import{e9 as U,i9 as Jk}from"./cli-1.1.40-5x38x6mx.mjs";import{F_ as C,Gfa as X,J_ as Hk,Jfa as n,Lda as i,m_ as O,pea as x,r$ as D,t_ as K,tda as V,v_ as Bk,vea as Y}from"./cli-1.1.40-hfe06y9j.mjs";import{Aga as qk,wga as H}from"./cli-1.1.40-6evbnv5e.mjs";import"./cli-1.1.40-hf5jtfgb.mjs";import"./cli-1.1.40-zz1e7ypt.mjs";import"./cli-1.1.40-05q41dcq.mjs";import"./cli-1.1.40-904bkcqe.mjs";import{uia as $,via as s}from"./cli-1.1.40-2ted9r2b.mjs";import{Aia as t,vja as B,yia as Z,yja as M}from"./cli-1.1.40-cy642er2.mjs";import"./cli-1.1.40-fwxd22jm.mjs";import{Pja as L,aka as kk}from"./cli-1.1.40-rq9y2zd8.mjs";import{gka as G,oka as r}from"./cli-1.1.40-tb7zgp10.mjs";import{Una as T,zpa as A}from"./cli-1.1.40-5m7tntdx.mjs";import{Ypa as w,Zpa as e}from"./cli-1.1.40-m0j9t9he.mjs";import"./cli-1.1.40-x0em3hsa.mjs";import{Oqa as W}from"./cli-1.1.40-jxfk62k7.mjs";qk();A();Y();e();A();Yk();Qk();_k();$k();s();n();g();var _=!1;function I(){if(_)return;if(_=!0,z()!=="firstParty")return;let q=X()?.transport;if(q==="bedrock"||q==="vertex"||q==="foundry")return;if(process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||process.env.ANTHROPIC_UNIX_SOCKET||process.env.CLAUDIN_CLIENT_CERT||process.env.CLAUDIN_CLIENT_KEY)return;let k=X(),N=(k?.transport==="anthropic"?k.baseUrl:void 0)||$().BASE_API_URL;fetch(N,{method:"HEAD",signal:AbortSignal.timeout(1e4)}).catch(()=>{})}Y();M();i();function j(){if(process.env.NODE_EXTRA_CA_CERTS)return;let q=o();if(q)process.env.NODE_EXTRA_CA_CERTS=q,B(`CA certs: Applied NODE_EXTRA_CA_CERTS from config to process.env: ${q}`)}function o(){try{let k=O()?.env,Q=V("userSettings")?.env;B(`CA certs: Config fallback - globalEnv keys: ${k?Object.keys(k).join(","):"none"}, settingsEnv keys: ${Q?Object.keys(Q).join(","):"none"}`);let R=Q?.NODE_EXTRA_CA_CERTS||k?.NODE_EXTRA_CA_CERTS;if(R)B(`CA certs: Found NODE_EXTRA_CA_CERTS in config/settings: ${R}`);return R}catch(q){B(`CA certs: Config fallback failed: ${q}`,{level:"error"});return}}t();Y();M();Jk();Bk();Zk();r();kk();Wk();Rk();Kk();Xk();Nk();Hk();var gk=w(async()=>{let q=Date.now();K("info","init_started"),H("init_function_start");try{let k=Date.now();D(),K("info","init_configs_enabled",{duration_ms:Date.now()-k}),H("init_configs_enabled");let N=Date.now();if(E(),j(),K("info","init_safe_env_vars_applied",{duration_ms:Date.now()-N}),H("init_safe_env_vars_applied"),u(),H("init_after_graceful_shutdown"),b(),H("init_after_oauth_populate"),m(),H("init_after_jetbrains_detection"),U(),p())v();if(c())P();H("init_after_remote_settings_check"),x();let Q=Date.now();B("[init] configureGlobalMTLS starting"),F(),K("info","init_mtls_configured",{duration_ms:Date.now()-Q}),B("[init] configureGlobalMTLS complete");let R=Date.now();if(B("[init] configureGlobalAgents starting"),y(),K("info","init_proxy_configured",{duration_ms:Date.now()-R}),B("[init] configureGlobalAgents complete"),H("init_network_configured"),I(),G(process.env.CLAUDE_CODE_REMOTE))try{let{initUpstreamProxy:J,getUpstreamProxyEnv:l}=await import("./upstreamproxy-1.1.40-8sq5v7b7.mjs"),{registerUpstreamProxyEnvFn:a}=await import("./subprocessEnv-1.1.40-j8teh9py.mjs");a(l),await J()}catch(J){B(`[init] upstreamproxy init failed: ${J instanceof Error?J.message:String(J)}; continuing without proxy`,{level:"warn"})}if(C(),Z(f),Z(async()=>{let{cleanupSessionTeams:J}=await import("./teamHelpers-1.1.40-dg7kse00.mjs");await J()}),d()){let J=Date.now();await S(),K("info","init_scratchpad_created",{duration_ms:Date.now()-J})}K("info","init_completed",{duration_ms:Date.now()-q}),H("init_function_end")}catch(k){if(k instanceof L){if(T()){process.stderr.write(`Configuration error in ${k.filePath}: ${k.message}
|
|
2
|
+
`),h(1);return}return import("./InvalidConfigDialog-1.1.40-bx3xnmmr.mjs").then((N)=>N.showInvalidConfigDialog({error:k}))}else throw k}});export{gk as init};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Xa as PQ,Za as sJ,_a as rJ}from"./cli-1.1.40-t6s30nmj.mjs";import{$a as WQ,ab as AJ,bb as LQ,cb as OQ,db as _Q,eb as AQ,fb as RQ,gb as bJ,hb as yQ,ib as nJ,jb as UQ}from"./cli-1.1.40-kvhhhzww.mjs";import{kb as IJ,lb as rQ}from"./cli-1.1.40-j3mmbyn6.mjs";import{ob as hJ,pb as NQ,qb as BQ,rb as qQ,sb as mJ,tb as SJ}from"./cli-1.1.40-zwpz8d3c.mjs";import"./cli-1.1.40-ys83fnw1.mjs";import"./cli-1.1.40-nvwa39p8.mjs";import{Gd as lQ,Hd as aQ,Id as MZ}from"./cli-1.1.40-sw6avn9f.mjs";import{Ae as oQ,De as fZ}from"./cli-1.1.40-sh39fzfc.mjs";import{Me as gQ,Oe as iQ,Pe as tQ,Qe as wZ}from"./cli-1.1.40-xsx6q1wa.mjs";import{Te as GQ,Ue as xQ,We as xZ}from"./cli-1.1.40-gv0xj4g0.mjs";import{li as cQ,ni as XJ,oi as uQ,pi as UZ}from"./cli-1.1.40-m0km8bx0.mjs";import{Aj as WJ,BE as PZ,Bj as oJ,PR as OJ,SJ as HQ,WQ as nQ,Xj as SQ,YJ as GZ,aR as sQ,kS as TZ,pR as FZ,rm as bQ,sm as yZ,uE as IQ,vE as pQ}from"./cli-1.1.40-wh51ya47.mjs";import"./cli-1.1.40-p6sasq8k.mjs";import"./cli-1.1.40-ycdfy6nf.mjs";import"./cli-1.1.40-d94fysd2.mjs";import"./cli-1.1.40-718chdj8.mjs";import{WT as dQ,YT as EZ}from"./cli-1.1.40-13ccwz6g.mjs";import"./cli-1.1.40-a8ztxtkt.mjs";import"./cli-1.1.40-yggza6ab.mjs";import"./cli-1.1.40-zc4hs061.mjs";import"./cli-1.1.40-beywxqng.mjs";import"./cli-1.1.40-p0d9ms1q.mjs";import"./cli-1.1.40-3hqepe0h.mjs";import"./cli-1.1.40-ckjrbh6b.mjs";import"./cli-1.1.40-h5r5wmqv.mjs";import"./cli-1.1.40-mtqb5txt.mjs";import{pY as XQ,qY as VQ,sY as HZ}from"./cli-1.1.40-e6xs2c7n.mjs";import"./cli-1.1.40-8dzrhmwv.mjs";import"./cli-1.1.40-1z293953.mjs";import"./cli-1.1.40-0vdhw7mm.mjs";import"./cli-1.1.40-p3jhg1v9.mjs";import"./cli-1.1.40-cjtb9y6z.mjs";import"./cli-1.1.40-1a4pn4ww.mjs";import"./cli-1.1.40-x8fyash9.mjs";import"./cli-1.1.40-rwbr7d1h.mjs";import"./cli-1.1.40-202jxgqx.mjs";import"./cli-1.1.40-vnckyxj2.mjs";import{J5 as RZ,p5 as pJ,r2 as CQ,r5 as hQ,t5 as mQ,u2 as AZ}from"./cli-1.1.40-13e9gynq.mjs";import"./cli-1.1.40-bdt7jzc8.mjs";import"./cli-1.1.40-cjmpr9fj.mjs";import"./cli-1.1.40-dbt9wvcg.mjs";import{g6 as JJ,h6 as QQ}from"./cli-1.1.40-0z5szwzt.mjs";import"./cli-1.1.40-2j20ecjm.mjs";import"./cli-1.1.40-xxr2978q.mjs";import"./cli-1.1.40-6gc7p5by.mjs";import"./cli-1.1.40-jc0pv06v.mjs";import"./cli-1.1.40-75jka1rb.mjs";import"./cli-1.1.40-yb9c5882.mjs";import"./cli-1.1.40-gk34ey8n.mjs";import"./cli-1.1.40-88vceqkj.mjs";import"./cli-1.1.40-m4hyy4k1.mjs";import"./cli-1.1.40-5x38x6mx.mjs";import{Lfa as DQ,Nfa as qZ,R$ as kQ,T$ as vQ,daa as NZ,k_ as FQ,m_ as TQ,t_ as KJ,v_ as VZ,vea as BZ}from"./cli-1.1.40-hfe06y9j.mjs";import"./cli-1.1.40-6evbnv5e.mjs";import"./cli-1.1.40-hf5jtfgb.mjs";import"./cli-1.1.40-zz1e7ypt.mjs";import"./cli-1.1.40-05q41dcq.mjs";import"./cli-1.1.40-904bkcqe.mjs";import"./cli-1.1.40-2ted9r2b.mjs";import{Aia as KZ,vja as J,yia as jQ,yja as qJ}from"./cli-1.1.40-cy642er2.mjs";import"./cli-1.1.40-fwxd22jm.mjs";import{Vja as f,aka as kJ}from"./cli-1.1.40-rq9y2zd8.mjs";import{gka as KQ,oka as XZ}from"./cli-1.1.40-tb7zgp10.mjs";import{Wka as LJ,ala as fQ,zpa as _Z}from"./cli-1.1.40-5m7tntdx.mjs";import"./cli-1.1.40-m0j9t9he.mjs";import"./cli-1.1.40-x0em3hsa.mjs";import{Oqa as jZ}from"./cli-1.1.40-jxfk62k7.mjs";_Z();AZ();PZ();RZ();BZ();qJ();qZ();kJ();NZ();fZ();FZ();TZ();MZ();yZ();UZ();EZ();wZ();import{hostname as kZ}from"os";import{randomUUID as ZQ}from"crypto";qJ();VZ();KZ();HZ();GZ();qJ();kJ();oJ();function eJ(j){return{write:(Z)=>j.write(Z),writeBatch:(Z)=>j.writeBatch(Z),close:()=>j.close(),isConnectedStatus:()=>j.isConnectedStatus(),getStateLabel:()=>j.getStateLabel(),setOnData:(Z)=>j.setOnData(Z),setOnClose:(Z)=>j.setOnClose(Z),setOnConnect:(Z)=>j.setOnConnect(Z),connect:()=>void j.connect(),getLastSequenceNum:()=>0,get droppedBatchCount(){return j.droppedBatchCount},reportState:()=>{},reportMetadata:()=>{},reportDelivery:()=>{},flush:()=>Promise.resolve()}}async function JQ(j){let{sessionUrl:Z,ingressToken:q,sessionId:L,initialSequenceNum:S,getAuthToken:b}=j,w;if(b)w=()=>{let z=b();if(!z)return{};return{Authorization:`Bearer ${z}`}};else WJ(q);let U=j.epoch??await nJ(Z,q);J(`[bridge:repl] CCR v2: worker sessionId=${L} epoch=${U}${j.epoch!==void 0?" (from /bridge)":" (via registerWorker)"}`);let F=new URL(Z);F.pathname=F.pathname.replace(/\/$/,"")+"/worker/events/stream";let E=new rJ(F,{},L,void 0,S,w),p,N=new sJ(E,new URL(Z),{getAuthHeaders:w,heartbeatIntervalMs:j.heartbeatIntervalMs,heartbeatJitterFraction:j.heartbeatJitterFraction,onEpochMismatch:()=>{J("[bridge:repl] CCR v2: epoch superseded (409) — closing for poll-loop recovery");try{N.close(),E.close(),p?.(4090)}catch(z){J(`[bridge:repl] CCR v2: error during epoch-mismatch cleanup: ${f(z)}`,{level:"error"})}throw Error("epoch superseded")}});E.setOnEvent((z)=>{N.reportDelivery(z.event_id,"received"),N.reportDelivery(z.event_id,"processed")});let n,h=!1,A=!1;return{write(z){return N.writeEvent(z)},async writeBatch(z){for(let T of z){if(A)break;await N.writeEvent(T)}},close(){A=!0,N.close(),E.close()},isConnectedStatus(){return h},getStateLabel(){if(E.isClosedStatus())return"closed";if(E.isConnectedStatus())return h?"connected":"init";return"connecting"},setOnData(z){E.setOnData(z)},setOnClose(z){p=z,E.setOnClose((T)=>{N.close(),z(T??4092)})},setOnConnect(z){n=z},getLastSequenceNum(){return E.getLastSequenceNum()},droppedBatchCount:0,reportState(z){N.reportState(z)},reportMetadata(z){N.reportMetadata(z)},reportDelivery(z,T){N.reportDelivery(z,T)},flush(){return N.flush()},connect(){if(!j.outboundOnly)E.connect();N.initialize(U).then(()=>{h=!0,J(`[bridge:repl] v2 transport ready for writes (epoch=${U}, sse=${E.isConnectedStatus()?"open":"opening"})`),n?.()},(z)=>{J(`[bridge:repl] CCR v2 initialize failed: ${f(z)}`,{level:"error"}),N.close(),E.close(),p?.(4091)})}}}oJ();XZ();xZ();class vJ{_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}}kJ();QQ();qJ();QQ();var DJ={maxAttempts:5,baseDelayMs:500,jitterFraction:0.25,maxDelayMs:4000};function zZ(j,Z,q=Math.random){let L=Z.baseDelayMs*2**(j-1),S=L*Z.jitterFraction*(2*q()-1);return Math.min(L+S,Z.maxDelayMs)}async function CJ(j,Z){let{label:q,logPrefix:L="[bridge]",signal:S,isRetryable:b}=Z;for(let w=1;w<=Z.maxAttempts;w++){let U=await j();if(U!==null)return U;if(b&&!b())return J(`${L} ${q} failed permanently on attempt ${w}/${Z.maxAttempts}, not retrying`),null;if(S?.aborted)return J(`${L} ${q} aborted after attempt ${w}/${Z.maxAttempts}`),null;if(w<Z.maxAttempts){let F=zZ(w,Z);J(`${L} ${q} failed (attempt ${w}/${Z.maxAttempts}), retrying in ${Math.round(F)}ms`),await JJ(F)}}return null}var WZ=2000,$Q=60000,YQ=900000,LZ=0;function zQ(j){return j?.detail??"Session creation failed"}async function EQ(j){let{dir:Z,machineName:q,branch:L,gitRepoUrl:S,title:b,baseUrl:w,sessionIngressUrl:U,workerType:F,getAccessToken:E,createSession:p,archiveSession:N,getCurrentTitle:n=()=>b,toSDKMessages:h=()=>{throw Error("BridgeCoreParams.toSDKMessages not provided. Pass it if you use writeMessages() or initialMessages — daemon callers that only use writeSdkMessages() never hit this path.")},onAuth401:A,getPollIntervalConfig:z=()=>IJ,initialHistoryCap:T=200,initialMessages:R,previouslyFlushedUUIDs:D,onInboundMessage:i,onPermissionResponse:QJ,onInterrupt:t,onSetModel:_,onSetMaxThinkingTokens:m,onSetPermissionMode:k,onStateChange:M,onUserMessage:c,perpetual:X,initialSSESequenceNum:x=0}=j,V=++LZ,{writeBridgePointer:W,clearBridgePointer:u,readBridgePointer:s}=await import("./bridgePointer-1.1.40-8nvycyyd.mjs"),ZJ=X?await s(Z):null,C=ZJ?.source==="repl"?ZJ:null;J(`[bridge:repl] initBridgeCore #${V} starting (initialMessages=${R?.length??0}${C?` perpetual prior=env:${C.environmentId}`:""})`);let d=LQ({baseUrl:w,getAccessToken:E,runnerVersion:"99.0.0",onDebug:J,onAuth401:A}),VJ={dir:Z,machineName:q,branch:L,gitRepoUrl:S,maxSessions:1,spawnMode:"single-session",verbose:!1,sandbox:!1,bridgeId:ZQ(),workerType:F,environmentId:ZQ(),reuseEnvironmentId:C?.environmentId,apiBaseUrl:w,sessionIngressUrl:U},H,_J;try{let Q=await d.registerBridgeEnvironment(VJ);H=Q.environment_id,_J=Q.environment_secret}catch(Q){if(J(`[bridge:repl] Environment registration failed: ${f(Q)}`),C)await u(Z);return M?.("failed",f(Q)),null}J(`[bridge:repl] Environment registered: ${H}`),KJ("info","bridge_repl_env_registered");async function cJ(Q,Y){if(H!==Q)return J(`[bridge:repl] Env mismatch (requested ${Q}, got ${H}) — cannot reconnect in place`),!1;let B=VQ(Y),O=B===Y?[Y]:[Y,B];for(let G of O)try{return await d.reconnectSession(H,G),J(`[bridge:repl] Reconnected session ${G} in place on env ${H}`),!0}catch(a){J(`[bridge:repl] reconnectSession(${G}) failed: ${f(a)}`)}return J("[bridge:repl] reconnectSession exhausted — falling through to fresh session"),!1}let RJ=C?await cJ(C.environmentId,C.sessionId):!1;if(C&&!RJ)await u(Z);let K;if(RJ&&C){if(K=C.sessionId,J(`[bridge:repl] Perpetual session reused: ${K}`),R&&D)for(let Q of R)D.add(Q.uuid)}else{let Q,Y=await CJ(()=>p({environmentId:H,title:b,gitRepoUrl:S,branch:L,signal:AbortSignal.timeout(15000),onFailure:(B)=>{Q=B}}),{...DJ,label:"createSession",logPrefix:"[bridge:repl]",isRetryable:()=>Q?.retryable!==!1});if(!Y)return J("[bridge:repl] Session creation failed, deregistering environment"),await d.deregisterEnvironment(H).catch(()=>{}),M?.("failed",zQ(Q)),null;K=Y,J(`[bridge:repl] Session created: ${K}`)}await W(Z,{sessionId:K,environmentId:H,source:"repl"}),KJ("info","bridge_repl_session_created");let yJ=new Set;if(R)for(let Q of R)yJ.add(Q.uuid);let r=new SJ(2000);for(let Q of yJ)r.add(Q);let uJ=new SJ(2000),l=new AbortController,$=null,$J=0,I=RJ?x:0,v=null,YJ=null,dJ=UQ(l.signal),HJ=dJ.wake,eQ=dJ.signal,o=new vJ,PJ=!c,UJ=3,e=0,zJ=null;async function lJ(){if(zJ)return zJ;zJ=JZ();try{return await zJ}finally{zJ=null}}async function JZ(){if(e++,$J++,J(`[bridge:repl] Reconnecting after env lost (attempt ${e}/${UJ})`),e>UJ)return J(`[bridge:repl] Environment reconnect limit reached (${UJ}), giving up`),!1;if($){let G=$.getLastSequenceNum();if(G>I)I=G;$.close(),$=null}if(HJ(),o.drop(),v){let G=v;if(await d.stopWork(H,G,!1).catch(()=>{}),v!==G)return J("[bridge:repl] Poll loop recovered during stopWork await — deferring to it"),e=0,!0;v=null,YJ=null}if(l.signal.aborted)return J("[bridge:repl] Reconnect aborted by teardown"),!1;let Q=H;VJ.reuseEnvironmentId=Q;try{let G=await d.registerBridgeEnvironment(VJ);H=G.environment_id,_J=G.environment_secret}catch(G){return VJ.reuseEnvironmentId=void 0,J(`[bridge:repl] Environment re-registration failed: ${f(G)}`),!1}if(VJ.reuseEnvironmentId=void 0,J(`[bridge:repl] Re-registered: requested=${Q} got=${H}`),l.signal.aborted)return J("[bridge:repl] Reconnect aborted after env registration, cleaning up"),await d.deregisterEnvironment(H).catch(()=>{}),!1;if($!==null)return J("[bridge:repl] Poll loop recovered during registerBridgeEnvironment await — deferring to it"),e=0,!0;if(await cJ(Q,K))return e=0,!0;if(await N(K),l.signal.aborted)return J("[bridge:repl] Reconnect aborted after archive, cleaning up"),await d.deregisterEnvironment(H).catch(()=>{}),!1;let Y=n(),B,O=await CJ(()=>p({environmentId:H,title:Y,gitRepoUrl:S,branch:L,signal:AbortSignal.timeout(15000),onFailure:(G)=>{B=G}}),{...DJ,label:"createSession (reconnect)",logPrefix:"[bridge:repl]",signal:l.signal,isRetryable:()=>B?.retryable!==!1});if(!O)return J(`[bridge:repl] Session creation failed during reconnection: ${zQ(B)}`),!1;if(l.signal.aborted)return J("[bridge:repl] Reconnect aborted after session creation, cleaning up"),await N(O),!1;return K=O,HQ(XQ(O)).catch(()=>{}),I=0,uJ.clear(),PJ=!c,J(`[bridge:repl] Re-created session: ${K}`),await W(Z,{sessionId:K,environmentId:H,source:"repl"}),D?.clear(),e=0,!0}function EJ(){return E()}function aJ(){let Q=o.end();if(Q.length===0)return;if(!$){J(`[bridge:repl] Cannot drain ${Q.length} pending message(s): no transport`);return}for(let O of Q)r.add(O.uuid);let B=h(Q).map((O)=>({...O,session_id:K}));J(`[bridge:repl] Drained ${Q.length} pending message(s) after flush`),$.writeBatch(B)}let NJ=null;function MJ(){NJ?.()}function QZ(Q){if(J(`[bridge:repl] Transport permanently closed: code=${Q}`),$){let B=$.getLastSequenceNum();if(B>I)I=B;$=null}HJ();let Y=o.drop();if(Y>0)J(`[bridge:repl] Dropping ${Y} pending message(s) on transport close (code=${Q})`,{level:"warn"});if(Q===1000){M?.("failed","session ended"),l.abort(),MJ();return}M?.("reconnecting",`Remote Control connection lost (code ${Q})`),J(`[bridge:repl] Transport reconnect budget exhausted (code=${Q}), attempting env reconnect`),lJ().then((B)=>{if(B)return;if(l.signal.aborted)return;J("[bridge:repl] reconnectEnvironmentWithSession resolved false — tearing down"),M?.("failed","reconnection failed"),MJ()})}let ZZ={api:d,getCredentials:()=>({environmentId:H,environmentSecret:_J}),signal:l.signal,getPollIntervalConfig:z,onStateChange:M,getWsState:()=>$?.getStateLabel()??"null",isAtCapacity:()=>$!==null,capacitySignal:eQ,onFatalError:MJ,getHeartbeatInfo:()=>{if(!v||!YJ)return null;return{environmentId:H,workId:v,sessionToken:YJ}},onHeartbeatFatal:(Q)=>{if(J(`[bridge:repl] heartbeatWork fatal (status=${Q.status}) — tearing down work item for fast re-dispatch`),$){let Y=$.getLastSequenceNum();if(Y>I)I=Y;$.close(),$=null}if(o.drop(),v)d.stopWork(H,v,!1).catch((Y)=>{J(`[bridge:repl] stopWork after heartbeat fatal: ${f(Y)}`)});v=null,YJ=null,HJ(),M?.("reconnecting","Work item lease expired, fetching fresh token")},async onEnvironmentLost(){if(!await lJ())return null;return{environmentId:H,environmentSecret:_J}},onWorkReceived:(Q,Y,B,O)=>{if($?.isConnectedStatus())J(`[bridge:repl] Work received while transport connected, replacing with fresh token (workId=${B})`);if(J(`[bridge:repl] Work received: workId=${B} workSessionId=${Q} currentSessionId=${K} match=${bJ(Q,K)}`),W(Z,{sessionId:K,environmentId:H,source:"repl"}),!bJ(Q,K)){J(`[bridge:repl] Rejecting foreign session: expected=${K} got=${Q}`);return}v=B,YJ=Y;let G=O||KQ(process.env.CLAUDE_BRIDGE_USE_CCR_V2),a;if(!G){if(a=EJ(),!a){J("[bridge:repl] No OAuth token available for session ingress, skipping work");return}WJ(a)}if($){let y=$;$=null;let P=y.getLastSequenceNum();if(P>I)I=P;y.close()}o.deactivate();let YZ=(y)=>qQ(y,{transport:$,sessionId:K,onInterrupt:t,onSetModel:_,onSetMaxThinkingTokens:m,onSetPermissionMode:k}),TJ=!1,iJ=(y)=>{if($=y,y.setOnConnect(()=>{if($!==y)return;if(J("[bridge:repl] Ingress transport connected"),!G){let P=EJ();if(P)WJ(P)}if(FJ=!1,!TJ&&R&&R.length>0){TJ=!0;let P=T,g=R.filter((BJ)=>hJ(BJ)&&!D?.has(BJ.uuid)),GJ=P>0&&g.length>P?g.slice(-P):g;if(GJ.length<g.length)J(`[bridge:repl] Capped initial flush: ${g.length} -> ${GJ.length} (cap=${P})`);let xJ=h(GJ);if(xJ.length>0){J(`[bridge:repl] Flushing ${xJ.length} initial message(s) via transport`);let BJ=xJ.map((jJ)=>({...jJ,session_id:K})),tJ=y.droppedBatchCount;y.writeBatch(BJ).then(()=>{if(y.droppedBatchCount>tJ){J(`[bridge:repl] Initial flush dropped ${y.droppedBatchCount-tJ} batch(es) — not marking ${xJ.length} UUID(s) as flushed`);return}if(D){for(let jJ of xJ)if(jJ.uuid)D.add(jJ.uuid)}}).catch((jJ)=>J(`[bridge:repl] Initial flush failed: ${jJ}`)).finally(()=>{if($!==y)return;aJ(),M?.("connected")})}else aJ(),M?.("connected")}else if(!o.active)M?.("connected")}),y.setOnData((P)=>{BQ(P,r,uJ,i,QJ,YZ)}),y.setOnClose((P)=>{if($!==y)return;QZ(P)}),!TJ&&R&&R.length>0)o.start();y.connect()};if($J++,G){let y=yQ(w,Q),P=$J;J(`[bridge:repl] CCR v2: sessionUrl=${y} session=${Q} gen=${P}`),JQ({sessionUrl:y,ingressToken:Y,sessionId:Q,initialSequenceNum:I}).then((g)=>{if(l.signal.aborted){g.close();return}if(P!==$J){J(`[bridge:repl] CCR v2: discarding stale handshake gen=${P} current=${$J}`),g.close();return}iJ(g)},(g)=>{if(J(`[bridge:repl] CCR v2: createV2ReplTransport failed: ${f(g)}`,{level:"error"}),P!==$J)return;if(v)d.stopWork(H,v,!1).catch((GJ)=>{J(`[bridge:repl] stopWork after v2 init failure: ${f(GJ)}`)}),v=null,YJ=null;HJ()})}else{let y=RQ(U,Q);J(`[bridge:repl] Ingress URL: ${y}`),J(`[bridge:repl] Creating HybridTransport: session=${Q}`);let P=a??"";iJ(eJ(new PQ(new URL(y),{Authorization:`Bearer ${P}`,"anthropic-version":"2023-06-01"},Q,()=>({Authorization:`Bearer ${EJ()??P}`,"anthropic-version":"2023-06-01"}),{maxConsecutiveFailures:50,onBatchDropped:()=>{M?.("reconnecting","Lost sync with Remote Control — events could not be delivered"),HJ()}})))}}};OZ(ZZ);let wJ=X?setInterval(()=>{if(zJ)return;W(Z,{sessionId:K,environmentId:H,source:"repl"})},3600000):null;wJ?.unref?.();let gJ=z().session_keepalive_interval_v2_ms,fJ=gJ>0?setInterval(()=>{if(!$)return;J("[bridge:repl] keep_alive sent"),$.write({type:"keep_alive"}).catch((Q)=>{J(`[bridge:repl] keep_alive write failed: ${f(Q)}`)})},gJ):null;fJ?.unref?.();let FJ=!1;NJ=async()=>{if(FJ){J(`[bridge:repl] Teardown already in progress, skipping duplicate call env=${H} session=${K}`);return}FJ=!0;let Q=Date.now();if(J(`[bridge:repl] Teardown starting: env=${H} session=${K} workId=${v??"none"} transportState=${$?.getStateLabel()??"null"}`),wJ!==null)clearInterval(wJ);if(fJ!==null)clearInterval(fJ);if(l.abort(),J("[bridge:repl] Teardown: poll loop aborted"),$){let O=$.getLastSequenceNum();if(O>I)I=O}if(X){$=null,o.drop(),await W(Z,{sessionId:K,environmentId:H,source:"repl"}),J(`[bridge:repl] Teardown (perpetual): leaving env=${H} session=${K} alive on server, duration=${Date.now()-Q}ms`);return}let Y=$;if($=null,o.drop(),Y)Y.write(mJ(K));let B=v?d.stopWork(H,v,!0).then(()=>{J("[bridge:repl] Teardown: stopWork completed")}).catch((O)=>{J(`[bridge:repl] Teardown stopWork failed: ${f(O)}`)}):Promise.resolve();await Promise.all([B,N(K)]),Y?.close(),J("[bridge:repl] Teardown: transport closed"),await d.deregisterEnvironment(H).catch((O)=>{J(`[bridge:repl] Teardown deregister failed: ${f(O)}`)}),await u(Z),J(`[bridge:repl] Teardown complete: env=${H} duration=${Date.now()-Q}ms`)};let $Z=jQ(()=>NJ?.());return J(`[bridge:repl] Ready: env=${H} session=${K}`),M?.("ready"),{get bridgeSessionId(){return K},get environmentId(){return H},getSSESequenceNum(){let Q=$?.getLastSequenceNum()??0;return Math.max(I,Q)},sessionIngressUrl:U,writeMessages(Q){let Y=Q.filter((G)=>hJ(G)&&!yJ.has(G.uuid)&&!r.has(G.uuid));if(Y.length===0)return;if(!PJ)for(let G of Y){let a=NQ(G);if(a!==void 0&&c?.(a,K)){PJ=!0;break}}if(o.enqueue(...Y)){J(`[bridge:repl] Queued ${Y.length} message(s) during initial flush`);return}if(!$){let G=Y.map((a)=>a.type).join(",");J(`[bridge:repl] Transport not configured, dropping ${Y.length} message(s) [${G}] for session=${K}`,{level:"warn"});return}for(let G of Y)r.add(G.uuid);J(`[bridge:repl] Sending ${Y.length} message(s) via transport`);let O=h(Y).map((G)=>({...G,session_id:K}));$.writeBatch(O)},writeSdkMessages(Q){let Y=Q.filter((O)=>!O.uuid||!r.has(O.uuid));if(Y.length===0)return;if(!$){J(`[bridge:repl] Transport not configured, dropping ${Y.length} SDK message(s) for session=${K}`,{level:"warn"});return}for(let O of Y)if(O.uuid)r.add(O.uuid);let B=Y.map((O)=>({...O,session_id:K}));$.writeBatch(B)},sendControlRequest(Q){if(!$){J("[bridge:repl] Transport not configured, skipping control_request");return}let Y={...Q,session_id:K};$.write(Y),J(`[bridge:repl] Sent control_request request_id=${Q.request_id}`)},sendControlResponse(Q){if(!$){J("[bridge:repl] Transport not configured, skipping control_response");return}let Y={...Q,session_id:K};$.write(Y),J("[bridge:repl] Sent control_response")},sendControlCancelRequest(Q){if(!$){J("[bridge:repl] Transport not configured, skipping control_cancel_request");return}let Y={type:"control_cancel_request",request_id:Q,session_id:K};$.write(Y),J(`[bridge:repl] Sent control_cancel_request request_id=${Q}`)},sendResult(){if(!$){J(`[bridge:repl] sendResult: skipping, transport not configured session=${K}`);return}$.write(mJ(K)),J(`[bridge:repl] Sent result for session=${K}`)},async teardown(){$Z(),await NJ?.(),J("[bridge:repl] Torn down")}}}async function OZ({api:j,getCredentials:Z,signal:q,onStateChange:L,onWorkReceived:S,onEnvironmentLost:b,getWsState:w,isAtCapacity:U,capacitySignal:F,onFatalError:E,getPollIntervalConfig:p=()=>IJ,getHeartbeatInfo:N,onHeartbeatFatal:n}){J(`[bridge:repl] Starting work poll loop for env=${Z().environmentId}`);let A=0,z=null,T=null,R=0,D=!1;while(!q.aborted){let{environmentId:i,environmentSecret:QJ}=Z(),t=p();try{let _=await j.pollForWork(i,QJ,q,t.reclaim_older_than_ms);if(R=0,A>0)J(`[bridge:repl] Poll recovered after ${A} consecutive error(s)`),A=0,z=null,T=null,L?.("ready");if(!_){let k=D;if(D=!1,U?.()&&F&&!k){let M=t.poll_interval_ms_at_capacity;if(t.non_exclusive_heartbeat_interval_ms>0&&N){let X=M>0?Date.now()+M:null,x=!1,V=0;while(!q.aborted&&U()&&(X===null||Date.now()<X)){let u=p();if(u.non_exclusive_heartbeat_interval_ms<=0)break;let s=N();if(!s)break;let ZJ=F();try{await j.heartbeatWork(s.environmentId,s.workId,s.sessionToken)}catch(C){if(J(`[bridge:repl:heartbeat] Failed: ${f(C)}`),C instanceof AJ){if(ZJ.cleanup(),n)n(C),J(`[bridge:repl:heartbeat] Fatal (status=${C.status}), work state cleared — fast-polling for re-dispatch`);else x=!0;break}}V++,await JJ(u.non_exclusive_heartbeat_interval_ms,ZJ.signal),ZJ.cleanup()}let W=x?"error":q.aborted?"shutdown":!U()?"capacity_changed":X!==null&&Date.now()>=X?"poll_due":"config_disabled";if(!x){if(W==="poll_due")J(`[bridge:repl] Heartbeat poll_due after ${V} cycles — falling through to pollForWork`);continue}}let c=M>0?M:t.non_exclusive_heartbeat_interval_ms;if(c>0){let X=F(),x=Date.now();await JJ(c,X.signal),X.cleanup();let V=Date.now()-x-c;if(V>60000)J(`[bridge:repl] At-capacity sleep overran by ${Math.round(V/1000)}s — process suspension detected, forcing one fast-poll cycle`),D=!0}}else await JJ(t.poll_interval_ms_not_at_capacity,q);continue}let m;try{m=AQ(_.secret)}catch(k){J(`[bridge:repl] Failed to decode work secret: ${f(k)}`),await j.stopWork(i,_.id,!1).catch(()=>{});continue}J(`[bridge:repl] Acknowledging workId=${_.id}`);try{await j.acknowledgeWork(i,_.id,m.session_ingress_token)}catch(k){J(`[bridge:repl] Acknowledge failed workId=${_.id}: ${f(k)}`)}if(_.data.type==="healthcheck"){J("[bridge:repl] Healthcheck received");continue}if(_.data.type==="session"){let k=_.data.id;try{WQ(k,"session_id")}catch{J(`[bridge:repl] Invalid session_id in work: ${k}`);continue}S(k,m.session_ingress_token,_.id,m.use_code_sessions===!0),J("[bridge:repl] Work accepted, continuing poll loop")}}catch(_){if(q.aborted)break;if(_ instanceof AJ&&_.status===404&&b){let V=Z().environmentId;if(i!==V){J(`[bridge:repl] Stale poll error for old env=${i}, current env=${V} — skipping onEnvironmentLost`),A=0,z=null;continue}if(R++,J(`[bridge:repl] Environment deleted, attempting re-registration (attempt ${R}/3)`),R>3){J("[bridge:repl] Environment re-registration limit reached (3), giving up"),L?.("failed","Environment deleted and re-registration limit reached"),E?.();break}L?.("reconnecting","environment lost, recreating session");let W=await b();if(q.aborted)break;if(W){A=0,z=null,L?.("ready"),J(`[bridge:repl] Re-registered environment: ${W.environmentId}`);continue}L?.("failed","Environment deleted and re-registration failed"),E?.();break}if(_ instanceof AJ){let V=OQ(_.errorType),W=_Q(_);if(J(`[bridge:repl] Fatal poll error: ${_.message} (status=${_.status}, type=${_.errorType??"unknown"})${W?" (suppressed)":""}`),KJ(V?"info":"error","bridge_repl_fatal_error",{status:_.status,error_type:_.errorType}),!W)L?.("failed",V?"session expired · /remote-control to reconnect":_.message);E?.();break}let m=Date.now();if(T!==null&&m-T>$Q*2)J(`[bridge:repl] Detected system sleep (${Math.round((m-T)/1000)}s gap), resetting poll error budget`),KJ("info","bridge_repl_poll_sleep_detected",{gapMs:m-T}),A=0,z=null;if(T=m,A++,z===null)z=m;let k=m-z,M=xQ(_),c=GQ(_),X=w?.()??"unknown";if(J(`[bridge:repl] Poll error (attempt ${A}, elapsed ${Math.round(k/1000)}s, ws=${X}): ${c}`),A===1)L?.("reconnecting",c);if(k>=YQ){J(`[bridge:repl] Poll failures exceeded ${YQ/1000}s (${A} errors), giving up`),KJ("info","bridge_repl_poll_give_up"),L?.("failed","connection to server lost");break}let x=Math.min(WZ*2**(A-1),$Q);if(p().non_exclusive_heartbeat_interval_ms>0){let V=N?.();if(V)try{await j.heartbeatWork(V.environmentId,V.workId,V.sessionToken)}catch{}}await JJ(x,q)}}J(`[bridge:repl] Work poll loop ended (aborted=${q.aborted}) env=${Z().environmentId}`)}var vZ=200;async function D0(j){let{onInboundMessage:Z,onPermissionResponse:q,onInterrupt:L,onSetModel:S,onSetMaxThinkingTokens:b,onSetPermissionMode:w,onStateChange:U,initialMessages:F,getMessages:E,previouslyFlushedUUIDs:p,initialName:N,perpetual:n}=j??{};if(!await dQ())return J("[bridge:repl] Skipping: bridge not enabled"),null;if(!XJ())return J("[bridge:repl] Skipping: no OAuth tokens"),U?.("failed","/login"),null;if(await IQ(),!pQ("allow_remote_control"))return J("[bridge:repl] Skipping: allow_remote_control policy not allowed"),U?.("failed","disabled by your organization's policy"),null;if(!cQ()){let X=TQ();if(X.bridgeOauthDeadExpiresAt!=null&&(X.bridgeOauthDeadFailCount??0)>=3&&pJ()?.expiresAt===X.bridgeOauthDeadExpiresAt)return J(`[bridge:repl] Skipping: cross-process backoff (dead token seen ${X.bridgeOauthDeadFailCount} times)`),U?.("failed","sign-in expired — run /login"),null;await mQ();let x=pJ();if(x&&x.expiresAt!==null&&x.expiresAt<=Date.now()){J("[bridge:repl] Skipping: OAuth token expired and refresh failed (re-login required)"),U?.("failed","/login");let V=x.expiresAt;return FQ((W)=>({...W,bridgeOauthDeadExpiresAt:V,bridgeOauthDeadFailCount:W.bridgeOauthDeadExpiresAt===V?(W.bridgeOauthDeadFailCount??0)+1:1})),null}}let h=uQ(),A=`remote-control-${bQ()}`,z=!1,T=!1;if(N)A=N,z=!0,T=!0;else{let X=LJ(),x=X?OJ(X):void 0;if(x)A=x,z=!0,T=!0;else if(F&&F.length>0)for(let V=F.length-1;V>=0;V--){let W=F[V];if(W.type!=="user"||W.isMeta||W.toolUseResult||W.isCompactSummary||W.origin&&W.origin.kind!=="human"||nQ(W))continue;let u=SQ(W.message.content);if(!u)continue;let s=wQ(u);if(!s)continue;A=s,z=!0;break}}let R=0,D,i=0,QJ=(X,x,V)=>{z=!0,A=X,J(`[bridge:repl] derived title from message ${V}: ${X}`),tQ(x,X,{baseUrl:h,getAccessToken:XJ}).catch(()=>{})},t=(X,x)=>{let V=++i,W=R;aQ(X,AbortSignal.timeout(15000)).then((u)=>{if(u&&V===i&&D===x&&!OJ(LJ()))QJ(u,x,W)})},_=(X,x)=>{if(T||OJ(LJ()))return!0;if(D!==void 0&&D!==x)R=0;if(D=x,R++,R===1&&!z){let V=wQ(X);if(V)QJ(V,x,R);t(X,x)}else if(R===3){let V=E?.(),W=V?lQ(sQ(V)):X;t(W,x)}return R>=3};if(!await CQ())return J("[bridge:repl] Skipping: no org UUID"),U?.("failed","/login"),null;let k=await kQ(),M=await vQ(),c=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||h;return EQ({dir:fQ(),machineName:kZ(),branch:k,gitRepoUrl:M,title:A,baseUrl:h,sessionIngressUrl:c,workerType:"claude_code",getAccessToken:XJ,createSession:(X)=>gQ({...X,events:[],baseUrl:h,getAccessToken:XJ}),archiveSession:(X)=>iQ(X,{baseUrl:h,getAccessToken:XJ,timeoutMs:1500}).catch((x)=>{J(`[bridge:repl] archiveBridgeSession threw: ${f(x)}`,{level:"error"})}),getCurrentTitle:()=>OJ(LJ())??A,onUserMessage:_,toSDKMessages:oQ,onAuth401:hQ,getPollIntervalConfig:rQ,initialHistoryCap:vZ,initialMessages:F,previouslyFlushedUUIDs:p,onInboundMessage:Z,onPermissionResponse:q,onInterrupt:L,onSetModel:S,onSetMaxThinkingTokens:b,onSetPermissionMode:w,onStateChange:U,perpetual:n})}var MQ=50;function wQ(j){let Z=DQ(j),L=(/^(.*?[.!?])\s/.exec(Z)?.[1]??Z).replace(/\s+/g," ").trim();if(!L)return;return L.length>MQ?L.slice(0,MQ-1)+"…":L}export{D0 as initReplBridge};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$X as M,BX as t,CX as u,DX as v,EX as w,FX as x,GX as y,HW as j,HX as z,JX as A,KX as B,LW as k,PX as C,QX as D,RX as E,SX as F,TX as G,WX as H,XW as l,XX as I,YX as J,ZX as K,_X as L,aX as m,cX as n,kW as b,kX as o,lW as c,mW as d,nW as e,rX as p,tX as q,uW as f,vW as g,vX as r,wW as h,xW as i,zX as s}from"./cli-1.1.40-ckjrbh6b.mjs";import"./cli-1.1.40-h5r5wmqv.mjs";import{n0 as a}from"./cli-1.1.40-cjtb9y6z.mjs";import"./cli-1.1.40-1a4pn4ww.mjs";import"./cli-1.1.40-x8fyash9.mjs";import"./cli-1.1.40-rwbr7d1h.mjs";import"./cli-1.1.40-202jxgqx.mjs";import"./cli-1.1.40-cjmpr9fj.mjs";import"./cli-1.1.40-m4hyy4k1.mjs";import"./cli-1.1.40-hfe06y9j.mjs";import"./cli-1.1.40-6evbnv5e.mjs";import"./cli-1.1.40-hf5jtfgb.mjs";import"./cli-1.1.40-zz1e7ypt.mjs";import"./cli-1.1.40-05q41dcq.mjs";import"./cli-1.1.40-904bkcqe.mjs";import"./cli-1.1.40-2ted9r2b.mjs";import"./cli-1.1.40-cy642er2.mjs";import"./cli-1.1.40-fwxd22jm.mjs";import"./cli-1.1.40-rq9y2zd8.mjs";import"./cli-1.1.40-tb7zgp10.mjs";import"./cli-1.1.40-5m7tntdx.mjs";import"./cli-1.1.40-m0j9t9he.mjs";import"./cli-1.1.40-x0em3hsa.mjs";import"./cli-1.1.40-jxfk62k7.mjs";M();export{j as wrapText,d as useThemeSetting,c as useTheme,z as useTerminalViewport,H as useTerminalTitle,l as useTerminalFocus,C as useStdin,G as useSelection,e as usePreviewTheme,F as useInterval,D as useInput,B as useApp,E as useAnimationTimer,A as useAnimationFrame,a as supportsTabStatus,K as render,J as measureElement,I as measureAbsoluteRect,L as createRoot,p as color,b as ThemeProvider,r as Text,i as TerminalFocusEvent,y as Spacer,x as RawAnsi,w as NoSelect,v as Newline,s as Link,h as InputEvent,k as FocusManager,g as EventEmitter,f as Event,o as ClickEvent,u as Button,q as Box,n as BaseText,m as BaseBox,t as Ansi};
|