@claudiolabs/claudio 0.1.10 → 0.1.12
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/bin/claudio +50 -1
- package/dist/chunks/AgentTool-0.1.12-kgypyeny.mjs +1 -0
- package/dist/chunks/App-0.1.12-t1g68ag4.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.1.12-zpw36mzg.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-0.1.12-x3zt5579.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-0.1.12-fgvj28kh.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.1.12-y1vnt631.mjs +1 -0
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.12-n4az8bcp.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.12-j7w4pe1r.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.1.12-57crf0yg.mjs +1 -0
- package/dist/chunks/DiffDialog-0.1.12-tzjdg5ys.mjs +3 -0
- package/dist/chunks/Doctor-0.1.12-52dk0t0z.mjs +1 -0
- package/dist/chunks/Grove-0.1.12-m9r696vw.mjs +1 -0
- package/dist/chunks/ITermBackend-0.1.12-85zqw000.mjs +1 -0
- package/dist/chunks/InProcessTransport-0.1.12-xnrc78z1.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-0.1.12-9w4z4d73.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.1.12-j1jmd6jg.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.1.12-n5zwn0kh.mjs +1 -0
- package/dist/chunks/Onboarding-0.1.12-tc4trc3y.mjs +1 -0
- package/dist/chunks/ProviderManager-0.1.12-01epdnc3.mjs +1 -0
- package/dist/chunks/REPL-0.1.12-4750qvss.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.1.12-sn3hxnfq.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-0.1.12-f1byjres.mjs +1 -0
- package/dist/chunks/TeleportProgress-0.1.12-p5spc4b6.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.12-562cbm4h.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.1.12-w2rds1kj.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.1.12-02kj3wef.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.1.12-qesye0kj.mjs +1 -0
- package/dist/chunks/TrustDialog-0.1.12-gr62n6f8.mjs +1 -0
- package/dist/chunks/activeProvider-0.1.12-dnn18th9.mjs +1 -0
- package/dist/chunks/add-dir-0.1.12-he4qjfr7.mjs +1 -0
- package/dist/chunks/agents-0.1.12-1dz073e3.mjs +3 -0
- package/dist/chunks/agents-0.1.12-vfwpnn0d.mjs +111 -0
- package/dist/chunks/api-0.1.12-e314x4g9.mjs +1 -0
- package/dist/chunks/asciicast-0.1.12-nwzfr5gz.mjs +1 -0
- package/dist/chunks/assistant-0.1.12-x4e2qcyw.mjs +1 -0
- package/dist/chunks/auth-0.1.12-9xrz11cs.mjs +1 -0
- package/dist/chunks/auth-0.1.12-vhdwtwhb.mjs +1 -0
- package/dist/chunks/autoMode-0.1.12-xjr5qd6q.mjs +48 -0
- package/dist/chunks/backgroundHousekeeping-0.1.12-z7jhyx9z.mjs +1 -0
- package/dist/chunks/branch-0.1.12-e2jz4k8j.mjs +4 -0
- package/dist/chunks/bridgePointer-0.1.12-vdj4j4ke.mjs +1 -0
- package/dist/chunks/btw-0.1.12-k5gxnrq8.mjs +1 -0
- package/dist/chunks/buddy-0.1.12-4q50s2x4.mjs +3 -0
- package/dist/chunks/cacache-0.1.12-mtaw8981.mjs +1 -0
- package/dist/chunks/cache-probe-0.1.12-4s8cc2km.mjs +21 -0
- package/dist/chunks/cacheStats-0.1.12-qqcw6b5n.mjs +4 -0
- package/dist/chunks/caches-0.1.12-jvzzcs09.mjs +1 -0
- package/dist/chunks/chrome-0.1.12-6qypq8nj.mjs +1 -0
- package/dist/chunks/chromeNativeHost-0.1.12-7e2jv2nr.mjs +2 -0
- package/dist/chunks/claude-for-chrome-mcp-0.1.12-2q97mema.mjs +1 -0
- package/dist/chunks/claudeDesktop-0.1.12-1yrkynq4.mjs +1 -0
- package/dist/chunks/claudemd-0.1.12-dnz21tgs.mjs +1 -0
- package/dist/chunks/clear-0.1.12-cq6vnm92.mjs +1 -0
- package/dist/chunks/clearTerminal-0.1.12-pzt74jz3.mjs +1 -0
- package/dist/chunks/cli-0.1.12-024a8zz7.mjs +2 -0
- package/dist/chunks/cli-0.1.12-04jw23rj.mjs +2 -0
- package/dist/chunks/cli-0.1.12-04v3yab2.mjs +3 -0
- package/dist/chunks/cli-0.1.12-0eznapyf.mjs +2 -0
- package/dist/chunks/cli-0.1.12-0kqx19vz.mjs +2 -0
- package/dist/chunks/cli-0.1.12-0vf5f6qn.mjs +2 -0
- package/dist/chunks/cli-0.1.12-0x3cd401.mjs +2 -0
- package/dist/chunks/cli-0.1.12-0xzdygm2.mjs +50 -0
- package/dist/chunks/cli-0.1.12-19as1myk.mjs +2 -0
- package/dist/chunks/cli-0.1.12-1cn8b1tj.mjs +2 -0
- package/dist/chunks/cli-0.1.12-1hv04bp7.mjs +2 -0
- package/dist/chunks/cli-0.1.12-1x06khjr.mjs +2 -0
- package/dist/chunks/cli-0.1.12-238c85zt.mjs +2 -0
- package/dist/chunks/cli-0.1.12-242der7s.mjs +5036 -0
- package/dist/chunks/cli-0.1.12-2f2v27e3.mjs +2 -0
- package/dist/chunks/cli-0.1.12-2fajd44n.mjs +2 -0
- package/dist/chunks/cli-0.1.12-2sqxe53a.mjs +2 -0
- package/dist/chunks/cli-0.1.12-2v18rdhk.mjs +2 -0
- package/dist/chunks/cli-0.1.12-2yy1nw3s.mjs +2 -0
- package/dist/chunks/cli-0.1.12-2zqgfhrb.mjs +2 -0
- package/dist/chunks/cli-0.1.12-34gqc6yf.mjs +2 -0
- package/dist/chunks/cli-0.1.12-352pjhkh.mjs +2 -0
- package/dist/chunks/cli-0.1.12-37ezy1qg.mjs +2 -0
- package/dist/chunks/cli-0.1.12-37ga9zc2.mjs +2 -0
- package/dist/chunks/cli-0.1.12-3d2xpvk2.mjs +2 -0
- package/dist/chunks/cli-0.1.12-3ywnr2v1.mjs +2 -0
- package/dist/chunks/cli-0.1.12-4gj8p030.mjs +22 -0
- package/dist/chunks/cli-0.1.12-4qedbzt3.mjs +24 -0
- package/dist/chunks/cli-0.1.12-4sh0f4y1.mjs +3 -0
- package/dist/chunks/cli-0.1.12-4syxz3pe.mjs +12 -0
- package/dist/chunks/cli-0.1.12-4tanq0qc.mjs +2 -0
- package/dist/chunks/cli-0.1.12-4wwhk7dc.mjs +2 -0
- package/dist/chunks/cli-0.1.12-4ys47rex.mjs +2 -0
- package/dist/chunks/cli-0.1.12-52dbx2x6.mjs +4 -0
- package/dist/chunks/cli-0.1.12-5b3j1c9c.mjs +2 -0
- package/dist/chunks/cli-0.1.12-5exp787z.mjs +18 -0
- package/dist/chunks/cli-0.1.12-5k9mfnz0.mjs +2 -0
- package/dist/chunks/cli-0.1.12-5p9g1vcm.mjs +2 -0
- package/dist/chunks/cli-0.1.12-5pw10pf8.mjs +2 -0
- package/dist/chunks/cli-0.1.12-5qhkbp8w.mjs +2 -0
- package/dist/chunks/cli-0.1.12-5ye0t0xd.mjs +2 -0
- package/dist/chunks/cli-0.1.12-6238zg7k.mjs +2 -0
- package/dist/chunks/cli-0.1.12-6ddq5n4e.mjs +2 -0
- package/dist/chunks/cli-0.1.12-6e4e36bv.mjs +16 -0
- package/dist/chunks/cli-0.1.12-6rjh20wh.mjs +2 -0
- package/dist/chunks/cli-0.1.12-6x2mnahn.mjs +2 -0
- package/dist/chunks/cli-0.1.12-6zryzryc.mjs +2 -0
- package/dist/chunks/cli-0.1.12-73k5qd97.mjs +13 -0
- package/dist/chunks/cli-0.1.12-74tt2500.mjs +2 -0
- package/dist/chunks/cli-0.1.12-756ngehz.mjs +4 -0
- package/dist/chunks/cli-0.1.12-7da43cy1.mjs +2 -0
- package/dist/chunks/cli-0.1.12-7ehqw1dk.mjs +2 -0
- package/dist/chunks/cli-0.1.12-7mjpbm22.mjs +2 -0
- package/dist/chunks/cli-0.1.12-7v8dtyx8.mjs +2 -0
- package/dist/chunks/cli-0.1.12-7xsa2bcp.mjs +2 -0
- package/dist/chunks/cli-0.1.12-817sd5bc.mjs +6 -0
- package/dist/chunks/cli-0.1.12-830kqdpq.mjs +3 -0
- package/dist/chunks/cli-0.1.12-86nmrm6g.mjs +2 -0
- package/dist/chunks/cli-0.1.12-8qm558mj.mjs +2 -0
- package/dist/chunks/cli-0.1.12-8qvgy8xr.mjs +2 -0
- package/dist/chunks/cli-0.1.12-8tdckdxp.mjs +2 -0
- package/dist/chunks/cli-0.1.12-8znn9f50.mjs +2 -0
- package/dist/chunks/cli-0.1.12-9dvxchv3.mjs +2 -0
- package/dist/chunks/cli-0.1.12-9gs0g8yb.mjs +2 -0
- package/dist/chunks/cli-0.1.12-9pq0gse0.mjs +3 -0
- package/dist/chunks/cli-0.1.12-9v01t95v.mjs +2 -0
- package/dist/chunks/cli-0.1.12-a2frnpdd.mjs +2 -0
- package/dist/chunks/cli-0.1.12-a2qh6gjr.mjs +5 -0
- package/dist/chunks/cli-0.1.12-a5h71tt8.mjs +34 -0
- package/dist/chunks/cli-0.1.12-actnmgw5.mjs +2 -0
- package/dist/chunks/cli-0.1.12-ae3e3ffp.mjs +2 -0
- package/dist/chunks/cli-0.1.12-af1r644n.mjs +2 -0
- package/dist/chunks/cli-0.1.12-awb2yac7.mjs +3 -0
- package/dist/chunks/cli-0.1.12-b01yrner.mjs +2 -0
- package/dist/chunks/cli-0.1.12-baxk5jyy.mjs +4 -0
- package/dist/chunks/cli-0.1.12-bddm1g1s.mjs +59 -0
- package/dist/chunks/cli-0.1.12-bh7jp3zk.mjs +2 -0
- package/dist/chunks/cli-0.1.12-bhxgr018.mjs +4 -0
- package/dist/chunks/cli-0.1.12-bjzb0sjt.mjs +132 -0
- package/dist/chunks/cli-0.1.12-bmtahtv7.mjs +2 -0
- package/dist/chunks/cli-0.1.12-bnn1nrwd.mjs +2 -0
- package/dist/chunks/cli-0.1.12-bnss4rxn.mjs +833 -0
- package/dist/chunks/cli-0.1.12-c23pyffx.mjs +2 -0
- package/dist/chunks/cli-0.1.12-c28bme4j.mjs +2 -0
- package/dist/chunks/cli-0.1.12-c47ape20.mjs +7 -0
- package/dist/chunks/cli-0.1.12-c8d9vr4b.mjs +2 -0
- package/dist/chunks/cli-0.1.12-cxn1ke77.mjs +2 -0
- package/dist/chunks/cli-0.1.12-d0es0fxd.mjs +2 -0
- package/dist/chunks/cli-0.1.12-d8m01qtm.mjs +2 -0
- package/dist/chunks/cli-0.1.12-dc4e6688.mjs +2 -0
- package/dist/chunks/cli-0.1.12-dqynn0at.mjs +2 -0
- package/dist/chunks/cli-0.1.12-ds2mn8zn.mjs +2 -0
- package/dist/chunks/cli-0.1.12-dtba3gm9.mjs +8 -0
- package/dist/chunks/cli-0.1.12-e262snmb.mjs +3 -0
- package/dist/chunks/cli-0.1.12-e4zeaahk.mjs +2 -0
- package/dist/chunks/cli-0.1.12-erggrdth.mjs +9 -0
- package/dist/chunks/cli-0.1.12-f0x1y6nn.mjs +2 -0
- package/dist/chunks/cli-0.1.12-faa9mx3m.mjs +15 -0
- package/dist/chunks/cli-0.1.12-fqpxr3qb.mjs +2 -0
- package/dist/chunks/cli-0.1.12-fx0zg3d9.mjs +2 -0
- package/dist/chunks/cli-0.1.12-g1yp7kdf.mjs +2 -0
- package/dist/chunks/cli-0.1.12-g2s9mjr6.mjs +2 -0
- package/dist/chunks/cli-0.1.12-g3ycbjxk.mjs +2 -0
- package/dist/chunks/cli-0.1.12-g4sdgt8h.mjs +2 -0
- package/dist/chunks/cli-0.1.12-g604mknq.mjs +2 -0
- package/dist/chunks/cli-0.1.12-g728hcdr.mjs +2 -0
- package/dist/chunks/cli-0.1.12-g8mny195.mjs +2 -0
- package/dist/chunks/cli-0.1.12-h0d833vg.mjs +24 -0
- package/dist/chunks/cli-0.1.12-h248m986.mjs +2 -0
- package/dist/chunks/cli-0.1.12-hfmv72b6.mjs +2 -0
- package/dist/chunks/cli-0.1.12-hsw67esw.mjs +2 -0
- package/dist/chunks/cli-0.1.12-j6gjfwh5.mjs +31 -0
- package/dist/chunks/cli-0.1.12-j6hwb68p.mjs +45 -0
- package/dist/chunks/cli-0.1.12-jjza3gz9.mjs +2 -0
- package/dist/chunks/cli-0.1.12-jqrk975g.mjs +15 -0
- package/dist/chunks/cli-0.1.12-k2164g7e.mjs +2 -0
- package/dist/chunks/cli-0.1.12-kea0zcje.mjs +2 -0
- package/dist/chunks/cli-0.1.12-kg8gb6e3.mjs +2 -0
- package/dist/chunks/cli-0.1.12-ktpqrbjc.mjs +2 -0
- package/dist/chunks/cli-0.1.12-kwc7ew38.mjs +2 -0
- package/dist/chunks/cli-0.1.12-kys514qx.mjs +2 -0
- package/dist/chunks/cli-0.1.12-kzd4y6yq.mjs +3 -0
- package/dist/chunks/cli-0.1.12-m3q5r7wd.mjs +2 -0
- package/dist/chunks/cli-0.1.12-m6jeef2z.mjs +6 -0
- package/dist/chunks/cli-0.1.12-mevh0dza.mjs +2 -0
- package/dist/chunks/cli-0.1.12-mr41yjpw.mjs +2 -0
- package/dist/chunks/cli-0.1.12-mwp84gtr.mjs +2 -0
- package/dist/chunks/cli-0.1.12-nfvtmt75.mjs +2 -0
- package/dist/chunks/cli-0.1.12-nnyca8nb.mjs +2 -0
- package/dist/chunks/cli-0.1.12-nv2m8kgk.mjs +2 -0
- package/dist/chunks/cli-0.1.12-p5w2kms9.mjs +4 -0
- package/dist/chunks/cli-0.1.12-pm5cwtxh.mjs +2 -0
- package/dist/chunks/cli-0.1.12-pnh4t8c3.mjs +2 -0
- package/dist/chunks/cli-0.1.12-ps94e9y5.mjs +2 -0
- package/dist/chunks/cli-0.1.12-q1nn9teh.mjs +3 -0
- package/dist/chunks/cli-0.1.12-q63qrz06.mjs +2 -0
- package/dist/chunks/cli-0.1.12-q8k1zvhb.mjs +2 -0
- package/dist/chunks/cli-0.1.12-qf1kw5cr.mjs +2 -0
- package/dist/chunks/cli-0.1.12-qn20n18h.mjs +12 -0
- package/dist/chunks/cli-0.1.12-qrx9nssg.mjs +21 -0
- package/dist/chunks/cli-0.1.12-qsh4sj4y.mjs +2 -0
- package/dist/chunks/cli-0.1.12-r6f9sy54.mjs +2 -0
- package/dist/chunks/cli-0.1.12-ra3sby5b.mjs +2 -0
- package/dist/chunks/cli-0.1.12-rqedb88a.mjs +10 -0
- package/dist/chunks/cli-0.1.12-rtft4mrx.mjs +4 -0
- package/dist/chunks/cli-0.1.12-rwhrpb6w.mjs +2 -0
- package/dist/chunks/cli-0.1.12-rwzav5h1.mjs +11 -0
- package/dist/chunks/cli-0.1.12-ryycx3v6.mjs +2 -0
- package/dist/chunks/cli-0.1.12-rzpc0tr9.mjs +44 -0
- package/dist/chunks/cli-0.1.12-s0cwq66w.mjs +2 -0
- package/dist/chunks/cli-0.1.12-sd72y750.mjs +12 -0
- package/dist/chunks/cli-0.1.12-sgtpyf6y.mjs +11 -0
- package/dist/chunks/cli-0.1.12-strz382t.mjs +2 -0
- package/dist/chunks/cli-0.1.12-sxxpysy8.mjs +2 -0
- package/dist/chunks/cli-0.1.12-t8712dbc.mjs +2 -0
- package/dist/chunks/cli-0.1.12-tadj1p4y.mjs +2 -0
- package/dist/chunks/cli-0.1.12-tae7cd7e.mjs +2 -0
- package/dist/chunks/cli-0.1.12-taqfqnag.mjs +4 -0
- package/dist/chunks/cli-0.1.12-trdq9d6x.mjs +2 -0
- package/dist/chunks/cli-0.1.12-tyt09z73.mjs +2 -0
- package/dist/chunks/cli-0.1.12-v000x470.mjs +2 -0
- package/dist/chunks/cli-0.1.12-v0510w04.mjs +2 -0
- package/dist/chunks/cli-0.1.12-v79j5ced.mjs +2 -0
- package/dist/chunks/cli-0.1.12-v8j9zstg.mjs +2 -0
- package/dist/chunks/cli-0.1.12-vgbc3g9x.mjs +2 -0
- package/dist/chunks/cli-0.1.12-vpnp7x5c.mjs +100 -0
- package/dist/chunks/cli-0.1.12-vwcas8f6.mjs +2 -0
- package/dist/chunks/cli-0.1.12-vxej5jdm.mjs +2 -0
- package/dist/chunks/cli-0.1.12-vzga2are.mjs +192 -0
- package/dist/chunks/cli-0.1.12-w0qbr98a.mjs +2 -0
- package/dist/chunks/cli-0.1.12-wcdh3m4s.mjs +5 -0
- package/dist/chunks/cli-0.1.12-wdmxm11z.mjs +2 -0
- package/dist/chunks/cli-0.1.12-wfbfq2mm.mjs +3 -0
- package/dist/chunks/cli-0.1.12-wwnkrzck.mjs +134 -0
- package/dist/chunks/cli-0.1.12-xanhpra7.mjs +2 -0
- package/dist/chunks/cli-0.1.12-xcxjv6qd.mjs +2 -0
- package/dist/chunks/cli-0.1.12-xekep4qg.mjs +58 -0
- package/dist/chunks/cli-0.1.12-xfqkrd5x.mjs +2 -0
- package/dist/chunks/cli-0.1.12-xj3mv67x.mjs +39 -0
- package/dist/chunks/cli-0.1.12-y04asmqh.mjs +2 -0
- package/dist/chunks/cli-0.1.12-y0fb5j7x.mjs +2 -0
- package/dist/chunks/cli-0.1.12-y9598sy3.mjs +16 -0
- package/dist/chunks/cli-0.1.12-ybm1kvwy.mjs +4 -0
- package/dist/chunks/cli-0.1.12-yk12dgnx.mjs +2 -0
- package/dist/chunks/cli-0.1.12-ytxphavm.mjs +2 -0
- package/dist/chunks/cli-0.1.12-z8eybrhz.mjs +2 -0
- package/dist/chunks/cli-0.1.12-zk49aaxv.mjs +2 -0
- package/dist/chunks/cli-0.1.12-zs5rpqmb.mjs +5 -0
- package/dist/chunks/cli-0.1.12-zwyec6tj.mjs +2 -0
- package/dist/chunks/client-0.1.12-f54egbjx.mjs +1 -0
- package/dist/chunks/color-0.1.12-jss6svg8.mjs +1 -0
- package/dist/chunks/compact-0.1.12-9b9fsqs5.mjs +3 -0
- package/dist/chunks/config-0.1.12-1pyte6wv.mjs +1 -0
- package/dist/chunks/config-0.1.12-ryxz4stj.mjs +1 -0
- package/dist/chunks/context-0.1.12-mnwn2xss.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.1.12-qhe1aprp.mjs +1 -0
- package/dist/chunks/conversation-0.1.12-7pvwtwdn.mjs +1 -0
- package/dist/chunks/copy-0.1.12-w6tabpy0.mjs +9 -0
- package/dist/chunks/cost-0.1.12-3ca0tbv9.mjs +1 -0
- package/dist/chunks/createSession-0.1.12-117q0efg.mjs +1 -0
- package/dist/chunks/desktop-0.1.12-3t2jc3mt.mjs +1 -0
- package/dist/chunks/detectRepository-0.1.12-sd9276rx.mjs +1 -0
- package/dist/chunks/detection-0.1.12-c0tecfvg.mjs +1 -0
- package/dist/chunks/diff-0.1.12-2ck0qzp6.mjs +1 -0
- package/dist/chunks/doctor-0.1.12-rb6t847g.mjs +1 -0
- package/dist/chunks/earlyInput-0.1.12-b94g75cb.mjs +1 -0
- package/dist/chunks/effort-0.1.12-jxkp3wwf.mjs +8 -0
- package/dist/chunks/environmentSelection-0.1.12-z9knjbv1.mjs +1 -0
- package/dist/chunks/environments-0.1.12-m9v7hag6.mjs +1 -0
- package/dist/chunks/exit-0.1.12-0fzdjpbr.mjs +1 -0
- package/dist/chunks/export-0.1.12-s6ag6jke.mjs +2 -0
- package/dist/chunks/extra-usage-0.1.12-x8gd0q32.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.1.12-pfgq5r6b.mjs +1 -0
- package/dist/chunks/fast-0.1.12-9x69m50c.mjs +1 -0
- package/dist/chunks/feedback-0.1.12-d1j49tb4.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-0.1.12-95kzm3md.mjs +1 -0
- package/dist/chunks/git-0.1.12-7fyh5fhk.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.1.12-6em81h7g.mjs +1 -0
- package/dist/chunks/growthbook-0.1.12-4phnr6b3.mjs +1 -0
- package/dist/chunks/heapdump-0.1.12-m49qs4r7.mjs +6 -0
- package/dist/chunks/help-0.1.12-f02ce11x.mjs +1 -0
- package/dist/chunks/hookChains-0.1.12-brq8x7f7.mjs +3 -0
- package/dist/chunks/hooks-0.1.12-n1f9dp3r.mjs +1 -0
- package/dist/chunks/hooks-0.1.12-swtq74gm.mjs +79 -0
- package/dist/chunks/ide-0.1.12-553mazfs.mjs +3 -0
- package/dist/chunks/image-processor-napi-0.1.12-3mrm0vts.mjs +1 -0
- package/dist/chunks/index-0.1.12-218arkqe.mjs +9 -0
- package/dist/chunks/index-0.1.12-2ykt90tn.mjs +1 -0
- package/dist/chunks/index-0.1.12-34ew4zjx.mjs +1 -0
- package/dist/chunks/index-0.1.12-3nbh75ta.mjs +1 -0
- package/dist/chunks/index-0.1.12-41g5mvtk.mjs +7 -0
- package/dist/chunks/index-0.1.12-77szwkm6.mjs +1 -0
- package/dist/chunks/index-0.1.12-aeeh5zvp.mjs +1 -0
- package/dist/chunks/index-0.1.12-cpv0hf3f.mjs +1 -0
- package/dist/chunks/index-0.1.12-d5w1w05d.mjs +1 -0
- package/dist/chunks/index-0.1.12-d7j83tkh.mjs +1 -0
- package/dist/chunks/index-0.1.12-hvf65cbr.mjs +1 -0
- package/dist/chunks/index-0.1.12-m0e193t8.mjs +1 -0
- package/dist/chunks/index-0.1.12-nc3z95ph.mjs +5 -0
- package/dist/chunks/index-0.1.12-r92p75vh.mjs +1 -0
- package/dist/chunks/index-0.1.12-rhj8dsvk.mjs +30 -0
- package/dist/chunks/index-0.1.12-sxh3dwcy.mjs +1 -0
- package/dist/chunks/index-0.1.12-sy5zw7vk.mjs +1 -0
- package/dist/chunks/index-0.1.12-v53nbtdb.mjs +2 -0
- package/dist/chunks/index-0.1.12-vbv1ac2q.mjs +1 -0
- package/dist/chunks/index-0.1.12-z0brwe1k.mjs +2 -0
- package/dist/chunks/index-0.1.12-zc2ayczg.mjs +1 -0
- package/dist/chunks/index-0.1.12-zqrp5tve.mjs +9 -0
- package/dist/chunks/initReplBridge-0.1.12-yyn8mbyh.mjs +1 -0
- package/dist/chunks/ink-0.1.12-qdefs6hn.mjs +1 -0
- package/dist/chunks/insights-0.1.12-93mz1f1d.mjs +870 -0
- package/dist/chunks/install-0.1.12-11xkk6vf.mjs +1 -0
- package/dist/chunks/install-github-app-0.1.12-qd8g81v4.mjs +149 -0
- package/dist/chunks/install-slack-app-0.1.12-a44xy1pr.mjs +1 -0
- package/dist/chunks/instrumentation-0.1.12-nqv5x6q8.mjs +12 -0
- package/dist/chunks/interactiveHelpers-0.1.12-c4xec7dn.mjs +1 -0
- package/dist/chunks/keybindings-0.1.12-21jbfvfp.mjs +2 -0
- package/dist/chunks/knowledge-0.1.12-1zq0qj6h.mjs +2 -0
- package/dist/chunks/loadAgentsDir-0.1.12-1ckjzc8p.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.1.12-85daax4j.mjs +1 -0
- package/dist/chunks/logout-0.1.12-n2tbfcz8.mjs +1 -0
- package/dist/chunks/lsp-0.1.12-ks84es3y.mjs +1 -0
- package/dist/chunks/main-0.1.12-47ck3kj2.mjs +1 -0
- package/dist/chunks/managedEnv-0.1.12-vt155n3n.mjs +1 -0
- package/dist/chunks/mcp-0.1.12-93a71b1q.mjs +1 -0
- package/dist/chunks/mcp-0.1.12-rwfrrttw.mjs +4 -0
- package/dist/chunks/mcp-0.1.12-vm3tpth6.mjs +17 -0
- package/dist/chunks/mcpServer-0.1.12-zwsas6ss.mjs +1 -0
- package/dist/chunks/mcpb-0.1.12-mcbd7ywh.mjs +1 -0
- package/dist/chunks/memory-0.1.12-7x2msczw.mjs +3 -0
- package/dist/chunks/mobile-0.1.12-qdtxwz76.mjs +2 -0
- package/dist/chunks/model-0.1.12-15e9c8j0.mjs +2 -0
- package/dist/chunks/model-0.1.12-z2qjscwh.mjs +1 -0
- package/dist/chunks/oauth-0.1.12-3aky0v8n.mjs +1 -0
- package/dist/chunks/openaiShim-0.1.12-p458t1q6.mjs +14 -0
- package/dist/chunks/output-style-0.1.12-cahkbh9x.mjs +1 -0
- package/dist/chunks/package-HMBVQOZ4-0.1.12-3njzvqd2.mjs +1 -0
- package/dist/chunks/parser-0.1.12-jz2xz2kd.mjs +1 -0
- package/dist/chunks/passes-0.1.12-7vmawmvq.mjs +1 -0
- package/dist/chunks/permissions-0.1.12-dmp58kwy.mjs +3 -0
- package/dist/chunks/plan-0.1.12-waed49m8.mjs +1 -0
- package/dist/chunks/plist-0.1.12-65r770yt.mjs +1 -0
- package/dist/chunks/plugin-0.1.12-j30rqvv5.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.1.12-5bp08b06.mjs +1 -0
- package/dist/chunks/plugins-0.1.12-sm87b8fm.mjs +9 -0
- package/dist/chunks/print-0.1.12-8mgqmx4k.mjs +57 -0
- package/dist/chunks/privacy-settings-0.1.12-9drzsgkz.mjs +1 -0
- package/dist/chunks/process-0.1.12-t401v84c.mjs +1 -0
- package/dist/chunks/processBashCommand-0.1.12-3s8a2x65.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.1.12-m9sh3sjt.mjs +9 -0
- package/dist/chunks/prompt-0.1.12-786vk11a.mjs +1 -0
- package/dist/chunks/prompt-0.1.12-fg4npvax.mjs +1 -0
- package/dist/chunks/prompts-0.1.12-h3xd9wvy.mjs +1 -0
- package/dist/chunks/provider-0.1.12-wrfpbx8a.mjs +2 -0
- package/dist/chunks/providerProfiles-0.1.12-3fp9n85w.mjs +1 -0
- package/dist/chunks/rate-limit-options-0.1.12-dx2886b6.mjs +1 -0
- package/dist/chunks/registry-0.1.12-btwd6z61.mjs +1 -0
- package/dist/chunks/release-notes-0.1.12-dwzs8z2c.mjs +5 -0
- package/dist/chunks/reload-plugins-0.1.12-ec88j31s.mjs +2 -0
- package/dist/chunks/remote-env-0.1.12-w15618dm.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.1.12-c0y46zw8.mjs +1 -0
- package/dist/chunks/remoteSession-0.1.12-npxn0mje.mjs +1 -0
- package/dist/chunks/rename-0.1.12-sbes9wm3.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.1.12-2jqj7bby.mjs +1 -0
- package/dist/chunks/resume-0.1.12-9vpmw2hg.mjs +2 -0
- package/dist/chunks/rewind-0.1.12-707se5pz.mjs +1 -0
- package/dist/chunks/sandbox-adapter-0.1.12-htfmfp9m.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.1.12-qq2yf1ta.mjs +1 -0
- package/dist/chunks/session-0.1.12-2xgt0x74.mjs +2 -0
- package/dist/chunks/sessionFileAccessHooks-0.1.12-xpxt6bqs.mjs +1 -0
- package/dist/chunks/sessionStorage-0.1.12-7s6eezdt.mjs +1 -0
- package/dist/chunks/setup-0.1.12-2kjx6mnf.mjs +5 -0
- package/dist/chunks/sinks-0.1.12-qvx26vtt.mjs +1 -0
- package/dist/chunks/skills-0.1.12-sh637gsv.mjs +1 -0
- package/dist/chunks/startupProfiler-0.1.12-n3fce9wg.mjs +1 -0
- package/dist/chunks/state-0.1.12-e374v6h8.mjs +1 -0
- package/dist/chunks/stats-0.1.12-5pj1c6sr.mjs +6 -0
- package/dist/chunks/status-0.1.12-qphx08h4.mjs +1 -0
- package/dist/chunks/stickers-0.1.12-dksexsqf.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.1.12-sbpfvs29.mjs +1 -0
- package/dist/chunks/tasks-0.1.12-268nn2c6.mjs +1 -0
- package/dist/chunks/teamHelpers-0.1.12-3trvxmmz.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.1.12-28s4rsx4.mjs +1 -0
- package/dist/chunks/teleport-0.1.12-zz9z0w99.mjs +1 -0
- package/dist/chunks/terminalSetup-0.1.12-xf61sxh6.mjs +1 -0
- package/dist/chunks/theme-0.1.12-3rgm5yr1.mjs +1 -0
- package/dist/chunks/thinkback-0.1.12-sf0y9d2d.mjs +1 -0
- package/dist/chunks/thinkback-play-0.1.12-vyyv42tm.mjs +1 -0
- package/dist/chunks/toolPool-0.1.12-tyqns5jv.mjs +1 -0
- package/dist/chunks/toolSearch-0.1.12-k91edc7b.mjs +1 -0
- package/dist/chunks/trustedDevice-0.1.12-w1scr51x.mjs +1 -0
- package/dist/chunks/turndown.cjs-0.1.12-9525v010.mjs +69 -0
- package/dist/chunks/ultrareviewCommand-0.1.12-d5c4096k.mjs +4 -0
- package/dist/chunks/update-0.1.12-hwx0e6fq.mjs +94 -0
- package/dist/chunks/upgrade-0.1.12-zhqgygsd.mjs +1 -0
- package/dist/chunks/upstreamproxy-0.1.12-yhnqfcyb.mjs +14 -0
- package/dist/chunks/usage-0.1.12-g40wd0mq.mjs +1 -0
- package/dist/chunks/util-0.1.12-qdejkkj5.mjs +1 -0
- package/dist/chunks/utils-0.1.12-3f08ztd2.mjs +1 -0
- package/dist/chunks/vim-0.1.12-z78k9k65.mjs +1 -0
- package/dist/chunks/watcher-0.1.12-pkwq5a2d.mjs +1 -0
- package/dist/chunks/wiki-0.1.12-vecp82xq.mjs +132 -0
- package/dist/chunks/worktree-0.1.12-a1mh6hjt.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.1.12-amrewbka.mjs +1 -0
- package/dist/chunks/wrapper-0.1.12-bpewypaz.mjs +7 -0
- package/dist/claudio-vscode.vsix +0 -0
- package/dist/cli.mjs +3 -3
- package/package.json +4 -1
- package/dist/chunks/AgentTool-0.1.10-6d1adwh4.mjs +0 -1
- package/dist/chunks/App-0.1.10-kcqgpy9v.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.1.10-276swzgm.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-0.1.10-zy1wpm5p.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.10-wm40g3s8.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.1.10-s6979mex.mjs +0 -1
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.10-r7fr5krr.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.10-r34sxess.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.1.10-fkrt161g.mjs +0 -1
- package/dist/chunks/DiffDialog-0.1.10-z3c417rj.mjs +0 -3
- package/dist/chunks/Doctor-0.1.10-hzxpkma0.mjs +0 -1
- package/dist/chunks/Grove-0.1.10-k7t0bk1q.mjs +0 -1
- package/dist/chunks/ITermBackend-0.1.10-9nmcsqzc.mjs +0 -1
- package/dist/chunks/InProcessTransport-0.1.10-wpgrvt4k.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.1.10-1yxptsrm.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.1.10-2dx3wzpc.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.1.10-52vcfe6j.mjs +0 -1
- package/dist/chunks/Onboarding-0.1.10-sshvgxhv.mjs +0 -1
- package/dist/chunks/ProviderManager-0.1.10-gk479qf3.mjs +0 -1
- package/dist/chunks/REPL-0.1.10-pzwdjhkc.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.1.10-h4qtmeht.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-0.1.10-7pnzpe15.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.1.10-pna8cvtz.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.10-qgt41j05.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.1.10-yhws2rqe.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.1.10-235npnf1.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.1.10-9dwz8tfs.mjs +0 -1
- package/dist/chunks/TrustDialog-0.1.10-j46d8gme.mjs +0 -1
- package/dist/chunks/activeProvider-0.1.10-mc05hsn1.mjs +0 -1
- package/dist/chunks/add-dir-0.1.10-67yt41qd.mjs +0 -1
- package/dist/chunks/agents-0.1.10-c6k1gjp7.mjs +0 -3
- package/dist/chunks/agents-0.1.10-ezzxfn1m.mjs +0 -111
- package/dist/chunks/api-0.1.10-712k136n.mjs +0 -1
- package/dist/chunks/asciicast-0.1.10-p5232pbe.mjs +0 -1
- package/dist/chunks/assistant-0.1.10-ghtz2fm5.mjs +0 -1
- package/dist/chunks/auth-0.1.10-ec2e3mg3.mjs +0 -1
- package/dist/chunks/auth-0.1.10-pnnxbpmz.mjs +0 -1
- package/dist/chunks/autoMode-0.1.10-en4g4zp3.mjs +0 -48
- package/dist/chunks/backgroundHousekeeping-0.1.10-w42bm2y9.mjs +0 -1
- package/dist/chunks/branch-0.1.10-z00acm0q.mjs +0 -4
- package/dist/chunks/bridgePointer-0.1.10-0fpe1aqp.mjs +0 -1
- package/dist/chunks/btw-0.1.10-zz9v05r2.mjs +0 -1
- package/dist/chunks/buddy-0.1.10-g62mmn7n.mjs +0 -3
- package/dist/chunks/cacache-0.1.10-jdqat7je.mjs +0 -1
- package/dist/chunks/cache-probe-0.1.10-m5je5wda.mjs +0 -21
- package/dist/chunks/cacheStats-0.1.10-h3wmx4ck.mjs +0 -4
- package/dist/chunks/caches-0.1.10-gfv0fw3r.mjs +0 -1
- package/dist/chunks/chrome-0.1.10-vn58ms2z.mjs +0 -1
- package/dist/chunks/chromeNativeHost-0.1.10-1546eayv.mjs +0 -2
- package/dist/chunks/claude-for-chrome-mcp-0.1.10-4pjczkdy.mjs +0 -1
- package/dist/chunks/claudeDesktop-0.1.10-gxr4sfek.mjs +0 -1
- package/dist/chunks/claudemd-0.1.10-fxjaqw0j.mjs +0 -1
- package/dist/chunks/clear-0.1.10-7a42j19v.mjs +0 -1
- package/dist/chunks/clearTerminal-0.1.10-vb1ec5bk.mjs +0 -1
- package/dist/chunks/cli-0.1.10-0n4bjm9z.mjs +0 -3
- package/dist/chunks/cli-0.1.10-0zwk2w6t.mjs +0 -3
- package/dist/chunks/cli-0.1.10-17f08ra3.mjs +0 -2
- package/dist/chunks/cli-0.1.10-19jdke0x.mjs +0 -2
- package/dist/chunks/cli-0.1.10-1faf50d6.mjs +0 -2
- package/dist/chunks/cli-0.1.10-1remt68x.mjs +0 -2
- package/dist/chunks/cli-0.1.10-1zgq248j.mjs +0 -2
- package/dist/chunks/cli-0.1.10-227xyew7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-283zk2ee.mjs +0 -2
- package/dist/chunks/cli-0.1.10-28zx3btb.mjs +0 -14
- package/dist/chunks/cli-0.1.10-2a49sq4g.mjs +0 -2
- package/dist/chunks/cli-0.1.10-2ahvbvra.mjs +0 -2
- package/dist/chunks/cli-0.1.10-2gmmnep8.mjs +0 -2
- package/dist/chunks/cli-0.1.10-2k83cndj.mjs +0 -2
- package/dist/chunks/cli-0.1.10-2mqddc7q.mjs +0 -31
- package/dist/chunks/cli-0.1.10-2tygs780.mjs +0 -2
- package/dist/chunks/cli-0.1.10-3chjvgrj.mjs +0 -2
- package/dist/chunks/cli-0.1.10-3d0w3dmn.mjs +0 -12
- package/dist/chunks/cli-0.1.10-3q43p3wr.mjs +0 -11
- package/dist/chunks/cli-0.1.10-3s7cftaq.mjs +0 -39
- package/dist/chunks/cli-0.1.10-3zkqq9sp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4a42q38j.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4c5p0gjr.mjs +0 -3
- package/dist/chunks/cli-0.1.10-4jsc4zm5.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4md6sg2a.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4n8p34vn.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4n8rvtk0.mjs +0 -2
- package/dist/chunks/cli-0.1.10-4nrdrp9t.mjs +0 -21
- package/dist/chunks/cli-0.1.10-4q7m47pn.mjs +0 -3
- package/dist/chunks/cli-0.1.10-4vnky3f9.mjs +0 -3
- package/dist/chunks/cli-0.1.10-594z8zdp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-5jnkne9q.mjs +0 -2
- package/dist/chunks/cli-0.1.10-5kg4wpz2.mjs +0 -2
- package/dist/chunks/cli-0.1.10-5tyyhz34.mjs +0 -833
- package/dist/chunks/cli-0.1.10-63qeecn7.mjs +0 -24
- package/dist/chunks/cli-0.1.10-6bn5q3gp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-6f66h3s0.mjs +0 -2
- package/dist/chunks/cli-0.1.10-6g6ga1zd.mjs +0 -2
- package/dist/chunks/cli-0.1.10-6p8tttyp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-6wf59qza.mjs +0 -58
- package/dist/chunks/cli-0.1.10-72ece2yk.mjs +0 -2
- package/dist/chunks/cli-0.1.10-73y7xdxy.mjs +0 -2
- package/dist/chunks/cli-0.1.10-7691mckr.mjs +0 -2
- package/dist/chunks/cli-0.1.10-77zcax57.mjs +0 -2
- package/dist/chunks/cli-0.1.10-7d7j1qyf.mjs +0 -2
- package/dist/chunks/cli-0.1.10-7ngfsh9h.mjs +0 -4
- package/dist/chunks/cli-0.1.10-7v1vvde4.mjs +0 -8
- package/dist/chunks/cli-0.1.10-7ydarbm4.mjs +0 -2
- package/dist/chunks/cli-0.1.10-8dyffagh.mjs +0 -2
- package/dist/chunks/cli-0.1.10-91tna7ay.mjs +0 -2
- package/dist/chunks/cli-0.1.10-977j0ey2.mjs +0 -2
- package/dist/chunks/cli-0.1.10-97rwbawt.mjs +0 -2
- package/dist/chunks/cli-0.1.10-9dfywk37.mjs +0 -2
- package/dist/chunks/cli-0.1.10-9rh1hjrr.mjs +0 -16
- package/dist/chunks/cli-0.1.10-9ybfn3a4.mjs +0 -50
- package/dist/chunks/cli-0.1.10-9zjhrr6j.mjs +0 -2
- package/dist/chunks/cli-0.1.10-a4p945wp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-a53q2hat.mjs +0 -2
- package/dist/chunks/cli-0.1.10-a6j6www8.mjs +0 -10
- package/dist/chunks/cli-0.1.10-acy8ec7t.mjs +0 -2
- package/dist/chunks/cli-0.1.10-akaq0zte.mjs +0 -2
- package/dist/chunks/cli-0.1.10-aw4xkrf7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-b59j6twr.mjs +0 -2
- package/dist/chunks/cli-0.1.10-be8dvtg8.mjs +0 -2
- package/dist/chunks/cli-0.1.10-bfw7yx17.mjs +0 -2
- package/dist/chunks/cli-0.1.10-bgxwxmv1.mjs +0 -2
- package/dist/chunks/cli-0.1.10-bqsa7eam.mjs +0 -2
- package/dist/chunks/cli-0.1.10-brfs5rdm.mjs +0 -4
- package/dist/chunks/cli-0.1.10-bw6411be.mjs +0 -3
- package/dist/chunks/cli-0.1.10-bxbkeycj.mjs +0 -4
- package/dist/chunks/cli-0.1.10-c7bkm855.mjs +0 -4
- package/dist/chunks/cli-0.1.10-cd9k16mb.mjs +0 -2
- package/dist/chunks/cli-0.1.10-ckb6d1wg.mjs +0 -5
- package/dist/chunks/cli-0.1.10-cp1bprrv.mjs +0 -2
- package/dist/chunks/cli-0.1.10-crwvcrfq.mjs +0 -2
- package/dist/chunks/cli-0.1.10-d48qgcag.mjs +0 -2
- package/dist/chunks/cli-0.1.10-d70y9y7x.mjs +0 -2
- package/dist/chunks/cli-0.1.10-dh7by4rw.mjs +0 -2
- package/dist/chunks/cli-0.1.10-dx1a4dz7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-dx92txwb.mjs +0 -13
- package/dist/chunks/cli-0.1.10-e0ftjytk.mjs +0 -2
- package/dist/chunks/cli-0.1.10-e4qewc1p.mjs +0 -44
- package/dist/chunks/cli-0.1.10-e64kvn2p.mjs +0 -2
- package/dist/chunks/cli-0.1.10-eh248dzz.mjs +0 -15
- package/dist/chunks/cli-0.1.10-ejtn8grm.mjs +0 -2
- package/dist/chunks/cli-0.1.10-er8zk2kj.mjs +0 -2
- package/dist/chunks/cli-0.1.10-f1nw74m1.mjs +0 -2
- package/dist/chunks/cli-0.1.10-f2jh6yv0.mjs +0 -2
- package/dist/chunks/cli-0.1.10-f38gq0e0.mjs +0 -2
- package/dist/chunks/cli-0.1.10-f7wg8ttz.mjs +0 -2
- package/dist/chunks/cli-0.1.10-fay16q4v.mjs +0 -2
- package/dist/chunks/cli-0.1.10-fcarec7s.mjs +0 -2
- package/dist/chunks/cli-0.1.10-fh4zzwzq.mjs +0 -5
- package/dist/chunks/cli-0.1.10-fhvyzg2m.mjs +0 -2
- package/dist/chunks/cli-0.1.10-frs4kmth.mjs +0 -2
- package/dist/chunks/cli-0.1.10-g6rx9rdb.mjs +0 -132
- package/dist/chunks/cli-0.1.10-gccb3gw8.mjs +0 -4
- package/dist/chunks/cli-0.1.10-gdqbhzyr.mjs +0 -100
- package/dist/chunks/cli-0.1.10-gms4557v.mjs +0 -252
- package/dist/chunks/cli-0.1.10-gnds07ck.mjs +0 -2
- package/dist/chunks/cli-0.1.10-h7dsgrnw.mjs +0 -2
- package/dist/chunks/cli-0.1.10-h7egg5xp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-hbk3dhq8.mjs +0 -24
- package/dist/chunks/cli-0.1.10-hpa8eyg4.mjs +0 -2
- package/dist/chunks/cli-0.1.10-hpg8gdm2.mjs +0 -2
- package/dist/chunks/cli-0.1.10-hrjh10v7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-hwk5cfdc.mjs +0 -2
- package/dist/chunks/cli-0.1.10-hyxg32sc.mjs +0 -2
- package/dist/chunks/cli-0.1.10-jb7jbbms.mjs +0 -2
- package/dist/chunks/cli-0.1.10-jjdvb4je.mjs +0 -2
- package/dist/chunks/cli-0.1.10-js33z9dt.mjs +0 -2
- package/dist/chunks/cli-0.1.10-jy0nmcmp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-jy7ds572.mjs +0 -2
- package/dist/chunks/cli-0.1.10-kdqsv63d.mjs +0 -3
- package/dist/chunks/cli-0.1.10-knbxee8j.mjs +0 -2
- package/dist/chunks/cli-0.1.10-kp2t4r8z.mjs +0 -2
- package/dist/chunks/cli-0.1.10-me1f9fvm.mjs +0 -2
- package/dist/chunks/cli-0.1.10-mjy2g3ce.mjs +0 -7
- package/dist/chunks/cli-0.1.10-mqgz2v10.mjs +0 -2
- package/dist/chunks/cli-0.1.10-mt4jf92z.mjs +0 -2
- package/dist/chunks/cli-0.1.10-mt6tj76h.mjs +0 -192
- package/dist/chunks/cli-0.1.10-mv1psn5z.mjs +0 -15
- package/dist/chunks/cli-0.1.10-n0kq1anb.mjs +0 -22
- package/dist/chunks/cli-0.1.10-nfnje7ew.mjs +0 -34
- package/dist/chunks/cli-0.1.10-nh3yfpyp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-npkfteg7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-nzvv74kz.mjs +0 -2
- package/dist/chunks/cli-0.1.10-nzxw7p2m.mjs +0 -4
- package/dist/chunks/cli-0.1.10-p42gvsdg.mjs +0 -2
- package/dist/chunks/cli-0.1.10-p4a151rw.mjs +0 -2
- package/dist/chunks/cli-0.1.10-p5wpvhbv.mjs +0 -2
- package/dist/chunks/cli-0.1.10-pagxn9ep.mjs +0 -2
- package/dist/chunks/cli-0.1.10-pw67rrjr.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qez6cjt8.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qf6ps98q.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qhh8pa5t.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qkv7g58s.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qtq4gx83.mjs +0 -3
- package/dist/chunks/cli-0.1.10-qw2c8g14.mjs +0 -2
- package/dist/chunks/cli-0.1.10-qw7kdg27.mjs +0 -2
- package/dist/chunks/cli-0.1.10-rgtrj3k8.mjs +0 -2
- package/dist/chunks/cli-0.1.10-rjz4ymc4.mjs +0 -2
- package/dist/chunks/cli-0.1.10-rnwbgj0h.mjs +0 -134
- package/dist/chunks/cli-0.1.10-rpyv9ekb.mjs +0 -45
- package/dist/chunks/cli-0.1.10-rr3xpxx1.mjs +0 -2
- package/dist/chunks/cli-0.1.10-rvb440sp.mjs +0 -2
- package/dist/chunks/cli-0.1.10-s3x3vzah.mjs +0 -2
- package/dist/chunks/cli-0.1.10-s4x77tm0.mjs +0 -2
- package/dist/chunks/cli-0.1.10-s6jxst02.mjs +0 -2
- package/dist/chunks/cli-0.1.10-s7s5bgrq.mjs +0 -11
- package/dist/chunks/cli-0.1.10-s7zk0vc8.mjs +0 -18
- package/dist/chunks/cli-0.1.10-sab6x266.mjs +0 -2
- package/dist/chunks/cli-0.1.10-seekz53q.mjs +0 -2
- package/dist/chunks/cli-0.1.10-sre7cbsg.mjs +0 -2
- package/dist/chunks/cli-0.1.10-szz5tkt1.mjs +0 -4
- package/dist/chunks/cli-0.1.10-t0v9d184.mjs +0 -2
- package/dist/chunks/cli-0.1.10-t1zd86kd.mjs +0 -2
- package/dist/chunks/cli-0.1.10-t8rnwwhq.mjs +0 -2
- package/dist/chunks/cli-0.1.10-ta048zme.mjs +0 -3
- package/dist/chunks/cli-0.1.10-v0vhyf3h.mjs +0 -4
- package/dist/chunks/cli-0.1.10-v385rk98.mjs +0 -2
- package/dist/chunks/cli-0.1.10-v582vfad.mjs +0 -2
- package/dist/chunks/cli-0.1.10-v6gq9bxc.mjs +0 -7
- package/dist/chunks/cli-0.1.10-vrd90nhd.mjs +0 -16
- package/dist/chunks/cli-0.1.10-w1hqcxj1.mjs +0 -2
- package/dist/chunks/cli-0.1.10-w8np72sh.mjs +0 -2
- package/dist/chunks/cli-0.1.10-wajz23ff.mjs +0 -2
- package/dist/chunks/cli-0.1.10-wjmtd9vm.mjs +0 -6
- package/dist/chunks/cli-0.1.10-wm8pd1jq.mjs +0 -2
- package/dist/chunks/cli-0.1.10-wvhzawgv.mjs +0 -12
- package/dist/chunks/cli-0.1.10-x1qs5ctr.mjs +0 -2
- package/dist/chunks/cli-0.1.10-x2eaxa4s.mjs +0 -2
- package/dist/chunks/cli-0.1.10-xjpjs3y5.mjs +0 -2
- package/dist/chunks/cli-0.1.10-xzz1tdne.mjs +0 -2
- package/dist/chunks/cli-0.1.10-y17z0pes.mjs +0 -2
- package/dist/chunks/cli-0.1.10-y1bkenem.mjs +0 -2
- package/dist/chunks/cli-0.1.10-y2byece1.mjs +0 -12
- package/dist/chunks/cli-0.1.10-y3q22zvb.mjs +0 -2
- package/dist/chunks/cli-0.1.10-y6a8q1t3.mjs +0 -9
- package/dist/chunks/cli-0.1.10-y9mkzh11.mjs +0 -5036
- package/dist/chunks/cli-0.1.10-yq3dy7w2.mjs +0 -2
- package/dist/chunks/cli-0.1.10-yset0578.mjs +0 -2
- package/dist/chunks/cli-0.1.10-z20mk55m.mjs +0 -5
- package/dist/chunks/cli-0.1.10-z3f97n2d.mjs +0 -6
- package/dist/chunks/cli-0.1.10-z4a84y0c.mjs +0 -2
- package/dist/chunks/cli-0.1.10-z7ghb8z7.mjs +0 -2
- package/dist/chunks/cli-0.1.10-zeqsd250.mjs +0 -2
- package/dist/chunks/cli-0.1.10-zxcxqxwv.mjs +0 -2
- package/dist/chunks/cli-0.1.10-zxgw1kqq.mjs +0 -2
- package/dist/chunks/client-0.1.10-btm7zd17.mjs +0 -1
- package/dist/chunks/color-0.1.10-h3wdkq18.mjs +0 -1
- package/dist/chunks/compact-0.1.10-3vz0z7cj.mjs +0 -3
- package/dist/chunks/config-0.1.10-37452dtw.mjs +0 -1
- package/dist/chunks/config-0.1.10-apkj5t0e.mjs +0 -1
- package/dist/chunks/context-0.1.10-z4vfp64w.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.1.10-xmmn39z5.mjs +0 -1
- package/dist/chunks/conversation-0.1.10-p82mc6k7.mjs +0 -1
- package/dist/chunks/copy-0.1.10-y1c1gb1w.mjs +0 -9
- package/dist/chunks/cost-0.1.10-d5wpnm54.mjs +0 -1
- package/dist/chunks/createSession-0.1.10-7bq5e7c3.mjs +0 -1
- package/dist/chunks/desktop-0.1.10-3f54fc1k.mjs +0 -1
- package/dist/chunks/detectRepository-0.1.10-1kyc0kvc.mjs +0 -1
- package/dist/chunks/detection-0.1.10-0h6d9cqt.mjs +0 -1
- package/dist/chunks/devtools-0.1.10-93f39njd.mjs +0 -1
- package/dist/chunks/diff-0.1.10-j17ke0k6.mjs +0 -1
- package/dist/chunks/doctor-0.1.10-wcq13152.mjs +0 -1
- package/dist/chunks/earlyInput-0.1.10-k1phbjt5.mjs +0 -1
- package/dist/chunks/effort-0.1.10-kanyae0a.mjs +0 -8
- package/dist/chunks/environmentSelection-0.1.10-ydckkyqx.mjs +0 -1
- package/dist/chunks/environments-0.1.10-7dht1svt.mjs +0 -1
- package/dist/chunks/exit-0.1.10-q7af8rb6.mjs +0 -1
- package/dist/chunks/export-0.1.10-tgsj9sg2.mjs +0 -2
- package/dist/chunks/extra-usage-0.1.10-qccdgzpk.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.1.10-5rpbnmgs.mjs +0 -1
- package/dist/chunks/fast-0.1.10-eq1jgfqk.mjs +0 -1
- package/dist/chunks/feedback-0.1.10-yvpgv2wy.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-0.1.10-1q5vbtwp.mjs +0 -1
- package/dist/chunks/git-0.1.10-ngvcytb0.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.1.10-w5g5cqhg.mjs +0 -1
- package/dist/chunks/growthbook-0.1.10-zkm4sham.mjs +0 -1
- package/dist/chunks/heapdump-0.1.10-29gq2jvb.mjs +0 -6
- package/dist/chunks/help-0.1.10-yj8ra443.mjs +0 -1
- package/dist/chunks/hookChains-0.1.10-32qn4nw8.mjs +0 -3
- package/dist/chunks/hooks-0.1.10-epp78p44.mjs +0 -79
- package/dist/chunks/hooks-0.1.10-fjrmscrk.mjs +0 -1
- package/dist/chunks/ide-0.1.10-361fyyet.mjs +0 -3
- package/dist/chunks/image-processor-napi-0.1.10-18yjap6z.mjs +0 -1
- package/dist/chunks/index-0.1.10-1cxj797w.mjs +0 -2
- package/dist/chunks/index-0.1.10-30c6wwdm.mjs +0 -30
- package/dist/chunks/index-0.1.10-80bh88yr.mjs +0 -1
- package/dist/chunks/index-0.1.10-8apwt1gk.mjs +0 -1
- package/dist/chunks/index-0.1.10-8c4f5nq6.mjs +0 -2
- package/dist/chunks/index-0.1.10-9mqxzarc.mjs +0 -5
- package/dist/chunks/index-0.1.10-c29w46aj.mjs +0 -1
- package/dist/chunks/index-0.1.10-c450y86m.mjs +0 -1
- package/dist/chunks/index-0.1.10-d1r31eyx.mjs +0 -9
- package/dist/chunks/index-0.1.10-drj30y1c.mjs +0 -1
- package/dist/chunks/index-0.1.10-g667a23q.mjs +0 -1
- package/dist/chunks/index-0.1.10-gz2mwwnj.mjs +0 -1
- package/dist/chunks/index-0.1.10-m1gd7g5v.mjs +0 -1
- package/dist/chunks/index-0.1.10-n4bkm7fr.mjs +0 -9
- package/dist/chunks/index-0.1.10-r42rb77w.mjs +0 -7
- package/dist/chunks/index-0.1.10-ra4k3x9k.mjs +0 -1
- package/dist/chunks/index-0.1.10-s32szzwg.mjs +0 -1
- package/dist/chunks/index-0.1.10-std21r3g.mjs +0 -1
- package/dist/chunks/index-0.1.10-t71jm4x7.mjs +0 -1
- package/dist/chunks/index-0.1.10-vpcq7nfa.mjs +0 -1
- package/dist/chunks/index-0.1.10-x6dkpkw7.mjs +0 -1
- package/dist/chunks/index-0.1.10-xqy1yh0c.mjs +0 -1
- package/dist/chunks/initReplBridge-0.1.10-4af5e275.mjs +0 -1
- package/dist/chunks/ink-0.1.10-57r8vscr.mjs +0 -1
- package/dist/chunks/insights-0.1.10-rptwhmpm.mjs +0 -870
- package/dist/chunks/install-0.1.10-9w2w5vre.mjs +0 -1
- package/dist/chunks/install-github-app-0.1.10-xhj1zyqh.mjs +0 -149
- package/dist/chunks/install-slack-app-0.1.10-tq51qy4s.mjs +0 -1
- package/dist/chunks/instrumentation-0.1.10-kyzfec48.mjs +0 -12
- package/dist/chunks/interactiveHelpers-0.1.10-1491802m.mjs +0 -1
- package/dist/chunks/keybindings-0.1.10-fpyw69y7.mjs +0 -2
- package/dist/chunks/knowledge-0.1.10-2aa0bb5w.mjs +0 -2
- package/dist/chunks/loadAgentsDir-0.1.10-h8t0ppav.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.1.10-ne71stmt.mjs +0 -1
- package/dist/chunks/logout-0.1.10-xxm4ydq9.mjs +0 -1
- package/dist/chunks/lsp-0.1.10-k53wta4y.mjs +0 -1
- package/dist/chunks/main-0.1.10-q3qenxfq.mjs +0 -1
- package/dist/chunks/managedEnv-0.1.10-s37qwcz1.mjs +0 -1
- package/dist/chunks/mcp-0.1.10-af795ewj.mjs +0 -1
- package/dist/chunks/mcp-0.1.10-b5z770fs.mjs +0 -17
- package/dist/chunks/mcp-0.1.10-nd17220r.mjs +0 -4
- package/dist/chunks/mcpServer-0.1.10-vrpfykem.mjs +0 -1
- package/dist/chunks/mcpb-0.1.10-jzxbat3k.mjs +0 -1
- package/dist/chunks/memory-0.1.10-zwzw20d5.mjs +0 -3
- package/dist/chunks/mobile-0.1.10-02fzsby3.mjs +0 -2
- package/dist/chunks/model-0.1.10-9g2nyrq7.mjs +0 -1
- package/dist/chunks/model-0.1.10-rygn5rc7.mjs +0 -2
- package/dist/chunks/oauth-0.1.10-t6fn448z.mjs +0 -1
- package/dist/chunks/openaiShim-0.1.10-gnhp89j2.mjs +0 -14
- package/dist/chunks/output-style-0.1.10-tnvcw858.mjs +0 -1
- package/dist/chunks/package-HMBVQOZ4-0.1.10-zd9nnmft.mjs +0 -1
- package/dist/chunks/parser-0.1.10-yemkwzb2.mjs +0 -1
- package/dist/chunks/passes-0.1.10-3zg7g2tp.mjs +0 -1
- package/dist/chunks/permissions-0.1.10-3tmntee5.mjs +0 -3
- package/dist/chunks/plan-0.1.10-sj11cbeb.mjs +0 -1
- package/dist/chunks/plist-0.1.10-mfhsxrkb.mjs +0 -1
- package/dist/chunks/plugin-0.1.10-c2rxcqb7.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.1.10-n5esk5p9.mjs +0 -1
- package/dist/chunks/plugins-0.1.10-cyb1q58v.mjs +0 -9
- package/dist/chunks/print-0.1.10-s2t5nd3y.mjs +0 -57
- package/dist/chunks/privacy-settings-0.1.10-kxx4szxa.mjs +0 -1
- package/dist/chunks/process-0.1.10-kp51xxsy.mjs +0 -1
- package/dist/chunks/processBashCommand-0.1.10-t1cdkkjx.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.1.10-pvndkc40.mjs +0 -9
- package/dist/chunks/prompt-0.1.10-2kjnmw4z.mjs +0 -1
- package/dist/chunks/prompt-0.1.10-v546t6x4.mjs +0 -1
- package/dist/chunks/prompts-0.1.10-8k80tabm.mjs +0 -1
- package/dist/chunks/provider-0.1.10-5p16y1p3.mjs +0 -2
- package/dist/chunks/providerProfiles-0.1.10-0r6j5m52.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.1.10-0sgjcqvt.mjs +0 -1
- package/dist/chunks/registry-0.1.10-nyx80cwb.mjs +0 -1
- package/dist/chunks/release-notes-0.1.10-8bpsjmax.mjs +0 -5
- package/dist/chunks/reload-plugins-0.1.10-f8cj2ymj.mjs +0 -2
- package/dist/chunks/remote-env-0.1.10-x65rh1n3.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.1.10-tk9vhzgk.mjs +0 -1
- package/dist/chunks/remoteSession-0.1.10-xx5eng27.mjs +0 -1
- package/dist/chunks/rename-0.1.10-zjwr9vqm.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.1.10-34e8jwrt.mjs +0 -1
- package/dist/chunks/resume-0.1.10-dc75n2zf.mjs +0 -2
- package/dist/chunks/rewind-0.1.10-kt2968kt.mjs +0 -1
- package/dist/chunks/sandbox-adapter-0.1.10-whhwsy1v.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.1.10-19w6767r.mjs +0 -1
- package/dist/chunks/session-0.1.10-pzsbjyqm.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-0.1.10-jaadayzy.mjs +0 -1
- package/dist/chunks/sessionStorage-0.1.10-b72srv50.mjs +0 -1
- package/dist/chunks/setup-0.1.10-fbs90hdh.mjs +0 -5
- package/dist/chunks/sinks-0.1.10-02w5f1q9.mjs +0 -1
- package/dist/chunks/skills-0.1.10-pexnbjqd.mjs +0 -1
- package/dist/chunks/startupProfiler-0.1.10-gcv6ckp5.mjs +0 -1
- package/dist/chunks/state-0.1.10-embrgn1a.mjs +0 -1
- package/dist/chunks/stats-0.1.10-s0rzmsxx.mjs +0 -6
- package/dist/chunks/status-0.1.10-8r0jrc8n.mjs +0 -1
- package/dist/chunks/stickers-0.1.10-dj7ganhx.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.1.10-hpv416jp.mjs +0 -1
- package/dist/chunks/tasks-0.1.10-cnvnk57k.mjs +0 -1
- package/dist/chunks/teamHelpers-0.1.10-j6sfy2zc.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.1.10-ddhe13pc.mjs +0 -1
- package/dist/chunks/teleport-0.1.10-saft8sby.mjs +0 -1
- package/dist/chunks/terminalSetup-0.1.10-4p5xvtyy.mjs +0 -1
- package/dist/chunks/theme-0.1.10-5xss74sp.mjs +0 -1
- package/dist/chunks/thinkback-0.1.10-e4bz61r1.mjs +0 -1
- package/dist/chunks/thinkback-play-0.1.10-0vjf0r8c.mjs +0 -1
- package/dist/chunks/toolPool-0.1.10-57jq29ct.mjs +0 -1
- package/dist/chunks/toolSearch-0.1.10-ysjw302j.mjs +0 -1
- package/dist/chunks/trustedDevice-0.1.10-zy988esg.mjs +0 -1
- package/dist/chunks/turndown.cjs-0.1.10-vhmcr6t6.mjs +0 -69
- package/dist/chunks/ultrareviewCommand-0.1.10-sqjsmw0x.mjs +0 -4
- package/dist/chunks/update-0.1.10-p7ctpbkr.mjs +0 -94
- package/dist/chunks/upgrade-0.1.10-8585sfbv.mjs +0 -1
- package/dist/chunks/upstreamproxy-0.1.10-ddbrjzqt.mjs +0 -14
- package/dist/chunks/usage-0.1.10-r8vznre6.mjs +0 -1
- package/dist/chunks/util-0.1.10-51fk6c0k.mjs +0 -1
- package/dist/chunks/utils-0.1.10-43r4vneb.mjs +0 -1
- package/dist/chunks/vim-0.1.10-3yzrqjw5.mjs +0 -1
- package/dist/chunks/watcher-0.1.10-xq2qsexd.mjs +0 -1
- package/dist/chunks/wiki-0.1.10-v3w4719f.mjs +0 -132
- package/dist/chunks/worktree-0.1.10-b5r0y9mr.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.1.10-ckcv927j.mjs +0 -1
- package/dist/chunks/wrapper-0.1.10-10976h3e.mjs +0 -7
- /package/dist/chunks/{cli-0.1.10-tf9dk84p.mjs → cli-0.1.12-41zq3gv6.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.10-xfdakzcb.mjs → cli-0.1.12-ng34ay3g.mjs} +0 -0
- /package/dist/chunks/{cli-0.1.10-9xpgjxhj.mjs → cli-0.1.12-tvawkeks.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$5 as Mr,M5 as L,N5 as Wr,O5 as Yr,P5 as jr,Q5 as $t,R5 as Ht,S5 as Rr,T5 as Br,U5 as dt,V5 as Jr,W5 as Xr,X5 as at,Y5 as M,Z5 as Fr,_5 as Nr,a6 as Ur,b6 as wr,c6 as hr,d6 as ar,e6 as lr,f6 as Qr,g6 as Zr}from"./cli-0.1.12-4gj8p030.mjs";import{h6 as et}from"./cli-0.1.12-wfbfq2mm.mjs";import{xna as br}from"./cli-0.1.12-9dvxchv3.mjs";import"./cli-0.1.12-xanhpra7.mjs";import"./cli-0.1.12-74tt2500.mjs";import{Dna as Ft,Fna as He}from"./cli-0.1.12-6e4e36bv.mjs";import{Kna as Dr}from"./cli-0.1.12-dtba3gm9.mjs";import{Mna as qr}from"./cli-0.1.12-taqfqnag.mjs";import{Nna as ur}from"./cli-0.1.12-dqynn0at.mjs";import"./cli-0.1.12-qf1kw5cr.mjs";import{Pna as dr}from"./cli-0.1.12-2f2v27e3.mjs";import{Sna as p}from"./cli-0.1.12-1hv04bp7.mjs";var V=p((se)=>{Object.defineProperty(se,"__esModule",{value:!0});se.resolveHttpAuthSchemeConfig=se.defaultSigninHttpAuthSchemeProvider=se.defaultSigninHttpAuthSchemeParametersProvider=void 0;var Nt=L(),H=Ft(),Mt=async(e,t,r)=>{return{operation:(0,H.getSmithyContext)(t).operation,region:await(0,H.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};se.defaultSigninHttpAuthSchemeParametersProvider=Mt;function Ut(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function wt(e){return{schemeId:"smithy.api#noAuth"}}var ht=(e)=>{let t=[];switch(e.operation){case"CreateOAuth2Token":{t.push(wt(e));break}default:t.push(Ut(e))}return t};se.defaultSigninHttpAuthSchemeProvider=ht;var xt=(e)=>{let t=(0,Nt.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,H.normalizeProvider)(e.authSchemePreference??[])})};se.resolveHttpAuthSchemeConfig=xt});var ye=p((Ee)=>{Object.defineProperty(Ee,"__esModule",{value:!0});Ee.ruleSet=void 0;var ve="required",o="fn",n="argv",c="ref",ne=!0,ie="isSet",y="booleanEquals",I="error",E="endpoint",l="tree",N="PartitionResult",z="stringEquals",ue={[ve]:!0,default:!1,type:"boolean"},de={[ve]:!1,type:"string"},ae={[c]:"Endpoint"},A={[o]:y,[n]:[{[c]:"UseFIPS"},!0]},W={[o]:y,[n]:[{[c]:"UseDualStack"},!0]},s={},Y={[o]:"getAttr",[n]:[{[c]:N},"name"]},R={[o]:y,[n]:[{[c]:"UseFIPS"},!1]},F={[o]:y,[n]:[{[c]:"UseDualStack"},!1]},le={[o]:"getAttr",[n]:[{[c]:N},"supportsFIPS"]},pe={[o]:y,[n]:[!0,{[o]:"getAttr",[n]:[{[c]:N},"supportsDualStack"]}]},ce=[{[c]:"Region"}],Gt={version:"1.0",parameters:{UseDualStack:ue,UseFIPS:ue,Endpoint:de,Region:de},rules:[{conditions:[{[o]:ie,[n]:[ae]}],rules:[{conditions:[A],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:I},{rules:[{conditions:[W],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:I},{endpoint:{url:ae,properties:s,headers:s},type:E}],type:l}],type:l},{rules:[{conditions:[{[o]:ie,[n]:ce}],rules:[{conditions:[{[o]:"aws.partition",[n]:ce,assign:N}],rules:[{conditions:[{[o]:z,[n]:[Y,"aws"]},R,F],endpoint:{url:"https://{Region}.signin.aws.amazon.com",properties:s,headers:s},type:E},{conditions:[{[o]:z,[n]:[Y,"aws-cn"]},R,F],endpoint:{url:"https://{Region}.signin.amazonaws.cn",properties:s,headers:s},type:E},{conditions:[{[o]:z,[n]:[Y,"aws-us-gov"]},R,F],endpoint:{url:"https://{Region}.signin.amazonaws-us-gov.com",properties:s,headers:s},type:E},{conditions:[A,W],rules:[{conditions:[{[o]:y,[n]:[ne,le]},pe],rules:[{endpoint:{url:"https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:s,headers:s},type:E}],type:l},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:I}],type:l},{conditions:[A,F],rules:[{conditions:[{[o]:y,[n]:[le,ne]}],rules:[{endpoint:{url:"https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",properties:s,headers:s},type:E}],type:l},{error:"FIPS is enabled but this partition does not support FIPS",type:I}],type:l},{conditions:[R,W],rules:[{conditions:[pe],rules:[{endpoint:{url:"https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:s,headers:s},type:E}],type:l},{error:"DualStack is enabled but this partition does not support DualStack",type:I}],type:l},{endpoint:{url:"https://signin.{Region}.{PartitionResult#dnsSuffix}",properties:s,headers:s},type:E}],type:l}],type:l},{error:"Invalid Configuration: Missing Region",type:I}],type:l}]};Ee.ruleSet=Gt});var Ie=p((Pe)=>{Object.defineProperty(Pe,"__esModule",{value:!0});Pe.defaultEndpointResolver=void 0;var Lt=Ht(),j=$t(),Vt=ye(),zt=new j.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),At=(e,t={})=>{return zt.get(e,()=>(0,j.resolveEndpoint)(Vt.ruleSet,{endpointParams:e,logger:t.logger}))};Pe.defaultEndpointResolver=At;j.customEndpointFunctions.aws=Lt.awsEndpointFunctions});var U=p((J)=>{Object.defineProperty(J,"__esModule",{value:!0});J.SigninServiceException=J.__ServiceException=void 0;var qe=M();Object.defineProperty(J,"__ServiceException",{enumerable:!0,get:function(){return qe.ServiceException}});class B extends qe.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,B.prototype)}}J.SigninServiceException=B});var k=p((be)=>{Object.defineProperty(be,"__esModule",{value:!0});be.ValidationException=be.TooManyRequestsError=be.InternalServerException=be.AccessDeniedException=void 0;var w=U();class X extends w.SigninServiceException{name="AccessDeniedException";$fault="client";error;constructor(e){super({name:"AccessDeniedException",$fault:"client",...e});Object.setPrototypeOf(this,X.prototype),this.error=e.error}}be.AccessDeniedException=X;class Q extends w.SigninServiceException{name="InternalServerException";$fault="server";error;constructor(e){super({name:"InternalServerException",$fault:"server",...e});Object.setPrototypeOf(this,Q.prototype),this.error=e.error}}be.InternalServerException=Q;class Z extends w.SigninServiceException{name="TooManyRequestsError";$fault="client";error;constructor(e){super({name:"TooManyRequestsError",$fault:"client",...e});Object.setPrototypeOf(this,Z.prototype),this.error=e.error}}be.TooManyRequestsError=Z;class K extends w.SigninServiceException{name="ValidationException";$fault="client";error;constructor(e){super({name:"ValidationException",$fault:"client",...e});Object.setPrototypeOf(this,K.prototype),this.error=e.error}}be.ValidationException=K});var C=p((We)=>{Object.defineProperty(We,"__esModule",{value:!0});We.CreateOAuth2Token$=We.CreateOAuth2TokenResponseBody$=We.CreateOAuth2TokenResponse$=We.CreateOAuth2TokenRequestBody$=We.CreateOAuth2TokenRequest$=We.AccessToken$=We.errorTypeRegistries=We.ValidationException$=We.TooManyRequestsError$=We.InternalServerException$=We.AccessDeniedException$=We.SigninServiceException$=void 0;var Bt="AccessDeniedException",Jt="AccessToken",Xt="CreateOAuth2Token",Qt="CreateOAuth2TokenRequest",Zt="CreateOAuth2TokenRequestBody",Kt="CreateOAuth2TokenResponseBody",kt="CreateOAuth2TokenResponse",Tt="InternalServerException",mt="RefreshToken",Ct="TooManyRequestsError",_t="ValidationException",Fe="accessKeyId",Ne="accessToken",T="client",Me="clientId",Ue="codeVerifier",er="code",S="error",we="expiresIn",he="grantType",tr="http",m="httpError",xe="idToken",u="jsonName",x="message",h="refreshToken",ge="redirectUri",Le="smithy.ts.sdk.synthetic.com.amazonaws.signin",fe="secretAccessKey",Ge="sessionToken",rr="server",sr="tokenInput",or="tokenOutput",$e="tokenType",d="com.amazonaws.signin",Ve=He(),g=k(),nr=U(),ze=Ve.TypeRegistry.for(Le);We.SigninServiceException$=[-3,Le,"SigninServiceException",0,[],[]];ze.registerError(We.SigninServiceException$,nr.SigninServiceException);var q=Ve.TypeRegistry.for(d);We.AccessDeniedException$=[-3,d,Bt,{[S]:T},[S,x],[0,0],2];q.registerError(We.AccessDeniedException$,g.AccessDeniedException);We.InternalServerException$=[-3,d,Tt,{[S]:rr,[m]:500},[S,x],[0,0],2];q.registerError(We.InternalServerException$,g.InternalServerException);We.TooManyRequestsError$=[-3,d,Ct,{[S]:T,[m]:429},[S,x],[0,0],2];q.registerError(We.TooManyRequestsError$,g.TooManyRequestsError);We.ValidationException$=[-3,d,_t,{[S]:T,[m]:400},[S,x],[0,0],2];q.registerError(We.ValidationException$,g.ValidationException);We.errorTypeRegistries=[ze,q];var Ae=[0,d,mt,8,0];We.AccessToken$=[3,d,Jt,8,[Fe,fe,Ge],[[0,{[u]:Fe}],[0,{[u]:fe}],[0,{[u]:Ge}]],3];We.CreateOAuth2TokenRequest$=[3,d,Qt,0,[sr],[[()=>We.CreateOAuth2TokenRequestBody$,16]],1];We.CreateOAuth2TokenRequestBody$=[3,d,Zt,0,[Me,he,er,ge,Ue,h],[[0,{[u]:Me}],[0,{[u]:he}],0,[0,{[u]:ge}],[0,{[u]:Ue}],[()=>Ae,{[u]:h}]],2];We.CreateOAuth2TokenResponse$=[3,d,kt,0,[or],[[()=>We.CreateOAuth2TokenResponseBody$,16]],1];We.CreateOAuth2TokenResponseBody$=[3,d,Kt,0,[Ne,$e,we,h,xe],[[()=>We.AccessToken$,{[u]:Ne}],[0,{[u]:$e}],[1,{[u]:we}],[()=>Ae,{[u]:h}],[0,{[u]:xe}]],4];We.CreateOAuth2Token$=[9,d,Xt,{[tr]:["POST","/v1/token",200]},()=>We.CreateOAuth2TokenRequest$,()=>We.CreateOAuth2TokenResponse$]});var st=p((tt)=>{Object.defineProperty(tt,"__esModule",{value:!0});tt.getRuntimeConfig=void 0;var pr=L(),cr=ar(),vr=et(),Er=M(),Sr=ur(),Ce=lr(),_e=dr(),yr=V(),Pr=Ie(),Or=C(),Ir=(e)=>{return{apiVersion:"2023-01-01",base64Decoder:e?.base64Decoder??Ce.fromBase64,base64Encoder:e?.base64Encoder??Ce.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Pr.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??yr.defaultSigninHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new pr.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new vr.NoAuthSigner}],logger:e?.logger??new Er.NoOpLogger,protocol:e?.protocol??cr.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:Or.errorTypeRegistries,version:"2023-01-01",serviceTarget:"Signin"},serviceId:e?.serviceId??"Signin",urlParser:e?.urlParser??Sr.parseUrl,utf8Decoder:e?.utf8Decoder??_e.fromUtf8,utf8Encoder:e?.utf8Encoder??_e.toUtf8}};tt.getRuntimeConfig=Ir});var ct=p((lt)=>{Object.defineProperty(lt,"__esModule",{value:!0});lt.getRuntimeConfig=void 0;var xr=Fr(),gr=xr.__importDefault(Nr()),fr=Dr(),Gr=L(),ot=Mr(),f=dt(),$r=Ur(),nt=at(),P=br(),it=qr(),ut=M(),Hr=wr(),Lr=hr(),Vr=Rr(),zr=st(),Ar=(e)=>{(0,ut.emitWarningIfUnsupportedVersion)(process.version);let t=(0,Lr.resolveDefaultsModeConfig)(e),r=()=>t().then(ut.loadConfigsForDefaultMode),a=(0,zr.getRuntimeConfig)(e);(0,fr.emitWarningIfUnsupportedVersion)(process.version);let i={profile:e?.profile,logger:a.logger};return{...a,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,P.loadConfig)(Gr.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,i),bodyLengthChecker:e?.bodyLengthChecker??Hr.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,ot.createDefaultUserAgentProvider)({serviceId:a.serviceId,clientVersion:gr.default.version}),maxAttempts:e?.maxAttempts??(0,P.loadConfig)(nt.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,P.loadConfig)(f.NODE_REGION_CONFIG_OPTIONS,{...f.NODE_REGION_CONFIG_FILE_OPTIONS,...i}),requestHandler:it.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,P.loadConfig)({...nt.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||Vr.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??$r.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??it.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,P.loadConfig)(f.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,i),useFipsEndpoint:e?.useFipsEndpoint??(0,P.loadConfig)(f.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,i),userAgentAppId:e?.userAgentAppId??(0,P.loadConfig)(ot.NODE_APP_ID_CONFIG_OPTIONS,i)}};lt.getRuntimeConfig=Ar});var Ss=p((v)=>{var vt=Wr(),Kr=Yr(),kr=jr(),Et=Br(),Tr=dt(),_=et(),mr=He(),Cr=Jr(),It=Xr(),St=at(),O=M(),yt=V(),_r=ct(),Pt=Qr(),Ot=Zr(),D=C(),G=k(),es=U(),ts=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"signin"})},rs={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},ss=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:a}=e;return{setHttpAuthScheme(i){let b=t.findIndex(($)=>$.schemeId===i.schemeId);if(b===-1)t.push(i);else t.splice(b,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){r=i},httpAuthSchemeProvider(){return r},setCredentials(i){a=i},credentials(){return a}}},os=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},ns=(e,t)=>{let r=Object.assign(Pt.getAwsRegionExtensionConfiguration(e),O.getDefaultExtensionConfiguration(e),Ot.getHttpHandlerExtensionConfiguration(e),ss(e));return t.forEach((a)=>a.configure(r)),Object.assign(e,Pt.resolveAwsRegionExtensionConfiguration(r),O.resolveDefaultRuntimeConfig(r),Ot.resolveHttpHandlerRuntimeConfig(r),os(r))};class ee extends O.Client{config;constructor(...[e]){let t=_r.getRuntimeConfig(e||{});super(t);this.initConfig=t;let r=ts(t),a=Et.resolveUserAgentConfig(r),i=St.resolveRetryConfig(a),b=Tr.resolveRegionConfig(i),$=vt.resolveHostHeaderConfig(b),qt=It.resolveEndpointConfig($),Dt=yt.resolveHttpAuthSchemeConfig(qt),bt=ns(Dt,e?.extensions||[]);this.config=bt,this.middlewareStack.use(mr.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(Et.getUserAgentPlugin(this.config)),this.middlewareStack.use(St.getRetryPlugin(this.config)),this.middlewareStack.use(Cr.getContentLengthPlugin(this.config)),this.middlewareStack.use(vt.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Kr.getLoggerPlugin(this.config)),this.middlewareStack.use(kr.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(_.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:yt.defaultSigninHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(Rt)=>new _.DefaultIdentityProviderConfig({"aws.auth#sigv4":Rt.credentials})})),this.middlewareStack.use(_.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class te extends O.Command.classBuilder().ep(rs).m(function(e,t,r,a){return[It.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("Signin","CreateOAuth2Token",{}).n("SigninClient","CreateOAuth2TokenCommand").sc(D.CreateOAuth2Token$).build(){}var is={CreateOAuth2TokenCommand:te};class re extends ee{}O.createAggregatedClient(is,re);var us={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",SERVER_ERROR:"server_error",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"};v.$Command=O.Command;v.__Client=O.Client;v.SigninServiceException=es.SigninServiceException;v.CreateOAuth2TokenCommand=te;v.OAuth2ErrorCode=us;v.Signin=re;v.SigninClient=ee;Object.prototype.hasOwnProperty.call(D,"__proto__")&&!Object.prototype.hasOwnProperty.call(v,"__proto__")&&Object.defineProperty(v,"__proto__",{enumerable:!0,value:D.__proto__});Object.keys(D).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(v,e))v[e]=D[e]});Object.prototype.hasOwnProperty.call(G,"__proto__")&&!Object.prototype.hasOwnProperty.call(v,"__proto__")&&Object.defineProperty(v,"__proto__",{enumerable:!0,value:G.__proto__});Object.keys(G).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(v,e))v[e]=G[e]})});export default Ss();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A6 as i,B6 as j,C6 as k,D6 as l,E6 as m,F6 as n,G6 as o,H6 as p,I6 as q,J6 as r,s6 as a,t6 as b,u6 as c,v6 as d,w6 as e,x6 as f,y6 as g,z6 as h}from"./cli-0.1.12-rwzav5h1.mjs";import"./cli-0.1.12-qn20n18h.mjs";import"./cli-0.1.12-y04asmqh.mjs";import"./cli-0.1.12-1hv04bp7.mjs";r();export{l as toFormData,k as spread,q as mergeConfig,e as isCancel,j as isAxiosError,p as getAdapter,o as formToJSON,a as default,h as all,g as VERSION,n as HttpStatusCode,d as CanceledError,f as CancelToken,i as Cancel,m as AxiosHeaders,c as AxiosError,b as Axios};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$5 as fs,M5 as m,N5 as ms,O5 as js,P5 as Ls,Q5 as Ir,R5 as qr,S5 as hs,T5 as Ts,U5 as Dt,V5 as zs,W5 as Hs,X5 as $t,Y5 as j,Z5 as Is,_5 as qs,a6 as Ps,b6 as gs,c6 as Cs,d6 as ls,e6 as us,f6 as Vs,g6 as Bs}from"./cli-0.1.12-4gj8p030.mjs";import{h6 as It}from"./cli-0.1.12-wfbfq2mm.mjs";import{xna as Os}from"./cli-0.1.12-9dvxchv3.mjs";import{yna as De}from"./cli-0.1.12-xanhpra7.mjs";import"./cli-0.1.12-74tt2500.mjs";import{Dna as pr,Fna as at}from"./cli-0.1.12-6e4e36bv.mjs";import{Kna as k}from"./cli-0.1.12-dtba3gm9.mjs";import{Mna as ys}from"./cli-0.1.12-taqfqnag.mjs";import{Nna as as}from"./cli-0.1.12-dqynn0at.mjs";import{Ona as Ne}from"./cli-0.1.12-qf1kw5cr.mjs";import{Pna as cs}from"./cli-0.1.12-2f2v27e3.mjs";import{Qna as we,Sna as x,Una as So,Vna as K}from"./cli-0.1.12-1hv04bp7.mjs";var be=x((cr)=>{var Xt=k(),Zt=m(),d=Ne(),b=De(),Kt=K("node:fs"),kt=({logger:e,signingName:t}={})=>async()=>{if(e?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!t)throw new d.TokenProviderError("Please pass 'signingName' to compute environment variable key",{logger:e});let r=Zt.getBearerTokenEnvKey(t);if(!(r in process.env))throw new d.TokenProviderError(`Token not present in '${r}' environment variable`,{logger:e});let o={token:process.env[r]};return Xt.setTokenFeature(o,"BEARER_SERVICE_ENV_VARS","3"),o},er=300000,ee="To refresh this SSO session run 'aws sso login' with the corresponding profile.",tr=async(e,t={},r)=>{let{SSOOIDCClient:o}=await import("./index-0.1.12-d7j83tkh.mjs").then((m)=>we(m.default)),s=(c)=>t.clientConfig?.[c]??t.parentClientConfig?.[c]??r?.[c];return new o(Object.assign({},t.clientConfig??{},{region:e??t.clientConfig?.region,logger:s("logger"),userAgentAppId:s("userAgentAppId")}))},rr=async(e,t,r={},o)=>{let{CreateTokenCommand:s}=await import("./index-0.1.12-d7j83tkh.mjs").then((m)=>we(m.default));return(await tr(t,r,o)).send(new s({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))},ge=(e)=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new d.TokenProviderError(`Token is expired. ${ee}`,!1)},f=(e,t,r=!1)=>{if(typeof t>"u")throw new d.TokenProviderError(`Value not present for '${e}' in SSO Token${r?". Cannot refresh":""}. ${ee}`,!1)},{writeFile:sr}=Kt.promises,or=(e,t)=>{let r=b.getSSOTokenFilepath(e),o=JSON.stringify(t,null,2);return sr(r,o)},Ce=new Date(0),$e=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await b.parseKnownFiles(e),o=b.getProfileName({profile:e.profile??t?.profile}),s=r[o];if(!s)throw new d.TokenProviderError(`Profile '${o}' could not be found in shared credentials file.`,!1);else if(!s.sso_session)throw new d.TokenProviderError(`Profile '${o}' is missing required property 'sso_session'.`);let n=s.sso_session,p=(await b.loadSsoSessionData(e))[n];if(!p)throw new d.TokenProviderError(`Sso session '${n}' could not be found in shared credentials file.`,!1);for(let a of["sso_start_url","sso_region"])if(!p[a])throw new d.TokenProviderError(`Sso session '${n}' is missing required property '${a}'.`,!1);p.sso_start_url;let i=p.sso_region,l;try{l=await b.getSSOTokenFromFile(n)}catch(a){throw new d.TokenProviderError(`The SSO session token associated with profile=${o} was not found or is invalid. ${ee}`,!1)}f("accessToken",l.accessToken),f("expiresAt",l.expiresAt);let{accessToken:u,expiresAt:$}=l,y={token:u,expiration:new Date($)};if(y.expiration.getTime()-Date.now()>er)return y;if(Date.now()-Ce.getTime()<30000)return ge(y),y;f("clientId",l.clientId,!0),f("clientSecret",l.clientSecret,!0),f("refreshToken",l.refreshToken,!0);try{Ce.setTime(Date.now());let a=await rr(l,i,e,t);f("accessToken",a.accessToken),f("expiresIn",a.expiresIn);let O=new Date(Date.now()+a.expiresIn*1000);try{await or(n,{...l,accessToken:a.accessToken,expiresAt:O.toISOString(),refreshToken:a.refreshToken})}catch(X){}return{token:a.accessToken,expiration:O}}catch(a){return ge(y),y}},nr=({token:e,logger:t})=>async()=>{if(t?.debug("@aws-sdk/token-providers - fromStatic"),!e||!e.token)throw new d.TokenProviderError("Please pass a valid token to fromStatic",!1);return e},ar=(e={})=>d.memoize(d.chain($e(e),async()=>{throw new d.TokenProviderError("Could not load token from any providers",!1)}),(t)=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<300000,(t)=>t.expiration!==void 0);cr.fromEnvSigningName=kt;cr.fromSso=$e;cr.fromStatic=nr;cr.nodeProvider=ar});var re=x((Ae)=>{Object.defineProperty(Ae,"__esModule",{value:!0});Ae.resolveHttpAuthSchemeConfig=Ae.defaultSSOHttpAuthSchemeProvider=Ae.defaultSSOHttpAuthSchemeParametersProvider=void 0;var _r=m(),te=pr(),Er=async(e,t,r)=>{return{operation:(0,te.getSmithyContext)(t).operation,region:await(0,te.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};Ae.defaultSSOHttpAuthSchemeParametersProvider=Er;function Sr(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function Rr(e){return{schemeId:"smithy.api#noAuth"}}var xr=(e)=>{let t=[];switch(e.operation){case"GetRoleCredentials":{t.push(Rr(e));break}default:t.push(Sr(e))}return t};Ae.defaultSSOHttpAuthSchemeProvider=xr;var vr=(e)=>{let t=(0,_r.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,te.normalizeProvider)(e.authSchemePreference??[])})};Ae.resolveHttpAuthSchemeConfig=vr});var Ze=x((We)=>{Object.defineProperty(We,"__esModule",{value:!0});We.ruleSet=void 0;var Be="required",E="fn",S="argv",D="ref",Ue=!0,Me="isSet",A="booleanEquals",w="error",N="endpoint",h="tree",se="PartitionResult",oe="getAttr",Ge={[Be]:!1,type:"string"},me={[Be]:!0,default:!1,type:"boolean"},je={[D]:"Endpoint"},Ye={[E]:A,[S]:[{[D]:"UseFIPS"},!0]},Qe={[E]:A,[S]:[{[D]:"UseDualStack"},!0]},_={},Le={[E]:oe,[S]:[{[D]:se},"supportsFIPS"]},Je={[D]:se},Te={[E]:A,[S]:[!0,{[E]:oe,[S]:[Je,"supportsDualStack"]}]},ze=[Ye],He=[Qe],Ve=[{[D]:"Region"}],hr={version:"1.0",parameters:{Region:Ge,UseDualStack:me,UseFIPS:me,Endpoint:Ge},rules:[{conditions:[{[E]:Me,[S]:[je]}],rules:[{conditions:ze,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:w},{conditions:He,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:w},{endpoint:{url:je,properties:_,headers:_},type:N}],type:h},{conditions:[{[E]:Me,[S]:Ve}],rules:[{conditions:[{[E]:"aws.partition",[S]:Ve,assign:se}],rules:[{conditions:[Ye,Qe],rules:[{conditions:[{[E]:A,[S]:[Ue,Le]},Te],rules:[{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:_,headers:_},type:N}],type:h},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:w}],type:h},{conditions:ze,rules:[{conditions:[{[E]:A,[S]:[Le,Ue]}],rules:[{conditions:[{[E]:"stringEquals",[S]:[{[E]:oe,[S]:[Je,"name"]},"aws-us-gov"]}],endpoint:{url:"https://portal.sso.{Region}.amazonaws.com",properties:_,headers:_},type:N},{endpoint:{url:"https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",properties:_,headers:_},type:N}],type:h},{error:"FIPS is enabled but this partition does not support FIPS",type:w}],type:h},{conditions:He,rules:[{conditions:[Te],rules:[{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:_,headers:_},type:N}],type:h},{error:"DualStack is enabled but this partition does not support DualStack",type:w}],type:h},{endpoint:{url:"https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",properties:_,headers:_},type:N}],type:h}],type:h},{error:"Invalid Configuration: Missing Region",type:w}]};We.ruleSet=hr});var et=x((Ke)=>{Object.defineProperty(Ke,"__esModule",{value:!0});Ke.defaultEndpointResolver=void 0;var fr=qr(),ne=Ir(),Pr=Ze(),gr=new ne.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),Cr=(e,t={})=>{return gr.get(e,()=>(0,ne.resolveEndpoint)(Pr.ruleSet,{endpointParams:e,logger:t.logger}))};Ke.defaultEndpointResolver=Cr;ne.customEndpointFunctions.aws=fr.awsEndpointFunctions});var L=x((ce)=>{Object.defineProperty(ce,"__esModule",{value:!0});ce.SSOServiceException=ce.__ServiceException=void 0;var tt=j();Object.defineProperty(ce,"__ServiceException",{enumerable:!0,get:function(){return tt.ServiceException}});class ae extends tt.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ae.prototype)}}ce.SSOServiceException=ae});var pe=x((st)=>{Object.defineProperty(st,"__esModule",{value:!0});st.UnauthorizedException=st.TooManyRequestsException=st.ResourceNotFoundException=st.InvalidRequestException=void 0;var T=L();class le extends T.SSOServiceException{name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,le.prototype)}}st.InvalidRequestException=le;class ue extends T.SSOServiceException{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ue.prototype)}}st.ResourceNotFoundException=ue;class ie extends T.SSOServiceException{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});Object.setPrototypeOf(this,ie.prototype)}}st.TooManyRequestsException=ie;class de extends T.SSOServiceException{name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});Object.setPrototypeOf(this,de.prototype)}}st.UnauthorizedException=de});var _e=x((it)=>{Object.defineProperty(it,"__esModule",{value:!0});it.GetRoleCredentials$=it.RoleCredentials$=it.GetRoleCredentialsResponse$=it.GetRoleCredentialsRequest$=it.errorTypeRegistries=it.UnauthorizedException$=it.TooManyRequestsException$=it.ResourceNotFoundException$=it.InvalidRequestException$=it.SSOServiceException$=void 0;var $r="AccessTokenType",br="GetRoleCredentials",Ar="GetRoleCredentialsRequest",Fr="GetRoleCredentialsResponse",Ur="InvalidRequestException",Mr="RoleCredentials",Gr="ResourceNotFoundException",mr="SecretAccessKeyType",jr="SessionTokenType",Lr="TooManyRequestsException",Tr="UnauthorizedException",zr="accountId",Hr="accessKeyId",Vr="accessToken",Br="account_id",z="client",H="error",Yr="expiration",Qr="http",V="httpError",Jr="httpHeader",nt="httpQuery",B="message",Wr="roleCredentials",Xr="roleName",Zr="role_name",ct="smithy.ts.sdk.synthetic.com.amazonaws.sso",Kr="secretAccessKey",kr="sessionToken",es="x-amz-sso_bearer_token",R="com.amazonaws.sso",lt=at(),Y=pe(),ts=L(),ut=lt.TypeRegistry.for(ct);it.SSOServiceException$=[-3,ct,"SSOServiceException",0,[],[]];ut.registerError(it.SSOServiceException$,ts.SSOServiceException);var F=lt.TypeRegistry.for(R);it.InvalidRequestException$=[-3,R,Ur,{[H]:z,[V]:400},[B],[0]];F.registerError(it.InvalidRequestException$,Y.InvalidRequestException);it.ResourceNotFoundException$=[-3,R,Gr,{[H]:z,[V]:404},[B],[0]];F.registerError(it.ResourceNotFoundException$,Y.ResourceNotFoundException);it.TooManyRequestsException$=[-3,R,Lr,{[H]:z,[V]:429},[B],[0]];F.registerError(it.TooManyRequestsException$,Y.TooManyRequestsException);it.UnauthorizedException$=[-3,R,Tr,{[H]:z,[V]:401},[B],[0]];F.registerError(it.UnauthorizedException$,Y.UnauthorizedException);it.errorTypeRegistries=[ut,F];var rs=[0,R,$r,8,0],ss=[0,R,mr,8,0],os=[0,R,jr,8,0];it.GetRoleCredentialsRequest$=[3,R,Ar,0,[Xr,zr,Vr],[[0,{[nt]:Zr}],[0,{[nt]:Br}],[()=>rs,{[Jr]:es}]],3];it.GetRoleCredentialsResponse$=[3,R,Fr,0,[Wr],[[()=>it.RoleCredentials$,0]]];it.RoleCredentials$=[3,R,Mr,0,[Hr,Kr,kr,Yr],[0,[()=>ss,0],[()=>os,0],1]];it.GetRoleCredentials$=[9,R,br,{[Qr]:["GET","/federation/credentials",200]},()=>it.GetRoleCredentialsRequest$,()=>it.GetRoleCredentialsResponse$]});var Pt=x((qt)=>{Object.defineProperty(qt,"__esModule",{value:!0});qt.getRuntimeConfig=void 0;var is=m(),ds=ls(),ps=It(),_s=j(),Es=as(),Ot=us(),ht=cs(),Ss=re(),Rs=et(),xs=_e(),vs=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??Ot.fromBase64,base64Encoder:e?.base64Encoder??Ot.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Rs.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Ss.defaultSSOHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new is.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ps.NoAuthSigner}],logger:e?.logger??new _s.NoOpLogger,protocol:e?.protocol??ds.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:xs.errorTypeRegistries,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??Es.parseUrl,utf8Decoder:e?.utf8Decoder??ht.fromUtf8,utf8Encoder:e?.utf8Encoder??ht.toUtf8}};qt.getRuntimeConfig=vs});var Ft=x((bt)=>{Object.defineProperty(bt,"__esModule",{value:!0});bt.getRuntimeConfig=void 0;var ws=Is(),Ns=ws.__importDefault(qs()),Ds=k(),$s=m(),gt=fs(),Q=Dt(),bs=Ps(),Ct=$t(),P=Os(),wt=ys(),Nt=j(),As=gs(),Fs=Cs(),Us=hs(),Ms=Pt(),Gs=(e)=>{(0,Nt.emitWarningIfUnsupportedVersion)(process.version);let t=(0,Fs.resolveDefaultsModeConfig)(e),r=()=>t().then(Nt.loadConfigsForDefaultMode),o=(0,Ms.getRuntimeConfig)(e);(0,Ds.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,P.loadConfig)($s.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??As.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,gt.createDefaultUserAgentProvider)({serviceId:o.serviceId,clientVersion:Ns.default.version}),maxAttempts:e?.maxAttempts??(0,P.loadConfig)(Ct.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,P.loadConfig)(Q.NODE_REGION_CONFIG_OPTIONS,{...Q.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:wt.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,P.loadConfig)({...Ct.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||Us.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??bs.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??wt.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,P.loadConfig)(Q.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,P.loadConfig)(Q.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,P.loadConfig)(gt.NODE_APP_ID_CONFIG_OPTIONS,s)}};bt.getRuntimeConfig=Gs});var zt=x((I)=>{var Ut=ms(),Ys=js(),Qs=Ls(),Mt=Ts(),Js=Dt(),Ee=It(),Ws=at(),Xs=zs(),Tt=Hs(),Gt=$t(),g=j(),mt=re(),Zs=Ft(),jt=Vs(),Lt=Bs(),U=_e(),J=pe(),Ks=L(),ks=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},eo={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},to=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:o}=e;return{setHttpAuthScheme(s){let n=t.findIndex((c)=>c.schemeId===s.schemeId);if(n===-1)t.push(s);else t.splice(n,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){o=s},credentials(){return o}}},ro=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},so=(e,t)=>{let r=Object.assign(jt.getAwsRegionExtensionConfiguration(e),g.getDefaultExtensionConfiguration(e),Lt.getHttpHandlerExtensionConfiguration(e),to(e));return t.forEach((o)=>o.configure(r)),Object.assign(e,jt.resolveAwsRegionExtensionConfiguration(r),g.resolveDefaultRuntimeConfig(r),Lt.resolveHttpHandlerRuntimeConfig(r),ro(r))};class Se extends g.Client{config;constructor(...[e]){let t=Zs.getRuntimeConfig(e||{});super(t);this.initConfig=t;let r=ks(t),o=Mt.resolveUserAgentConfig(r),s=Gt.resolveRetryConfig(o),n=Js.resolveRegionConfig(s),c=Ut.resolveHostHeaderConfig(n),p=Tt.resolveEndpointConfig(c),i=mt.resolveHttpAuthSchemeConfig(p),l=so(i,e?.extensions||[]);this.config=l,this.middlewareStack.use(Ws.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(Mt.getUserAgentPlugin(this.config)),this.middlewareStack.use(Gt.getRetryPlugin(this.config)),this.middlewareStack.use(Xs.getContentLengthPlugin(this.config)),this.middlewareStack.use(Ut.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Ys.getLoggerPlugin(this.config)),this.middlewareStack.use(Qs.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(Ee.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:mt.defaultSSOHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(u)=>new Ee.DefaultIdentityProviderConfig({"aws.auth#sigv4":u.credentials})})),this.middlewareStack.use(Ee.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class Re extends g.Command.classBuilder().ep(eo).m(function(e,t,r,o){return[Tt.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(U.GetRoleCredentials$).build(){}var oo={GetRoleCredentialsCommand:Re};class xe extends Se{}g.createAggregatedClient(oo,xe);I.$Command=g.Command;I.__Client=g.Client;I.SSOServiceException=Ks.SSOServiceException;I.GetRoleCredentialsCommand=Re;I.SSO=xe;I.SSOClient=Se;Object.prototype.hasOwnProperty.call(U,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:U.__proto__});Object.keys(U).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=U[e]});Object.prototype.hasOwnProperty.call(J,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:J.__proto__});Object.keys(J).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=J[e]})});var Vt=x((po)=>{var Ht=zt();po.GetRoleCredentialsCommand=Ht.GetRoleCredentialsCommand;po.SSOClient=Ht.SSOClient});var v,W,Bt,Ro,Qt=(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"),M=!1,Yt=async({ssoStartUrl:e,ssoSession:t,ssoAccountId:r,ssoRegion:o,ssoRoleName:s,ssoClient:n,clientConfig:c,parentClientConfig:p,callerClientConfig:i,profile:l,filepath:u,configFilepath:$,ignoreCache:y,logger:a})=>{let O,X="To refresh this SSO session run aws sso login with the corresponding profile.";if(t)try{let q=await Ro.fromSso({profile:l,filepath:u,configFilepath:$,ignoreCache:y})();O={accessToken:q.token,expiresAt:new Date(q.expiration).toISOString()}}catch(q){throw new v.CredentialsProviderError(q.message,{tryNextLink:M,logger:a})}else try{O=await W.getSSOTokenFromFile(e)}catch(q){throw new v.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:M,logger:a})}if(new Date(O.expiresAt).getTime()-Date.now()<=0)throw new v.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:M,logger:a});let{accessToken:ve}=O,{SSOClient:C,GetRoleCredentialsCommand:G}=await Promise.resolve().then(function(){return Vt()}),Wt=n||new C(Object.assign({},c??{},{logger:c?.logger??i?.logger??p?.logger,region:c?.region??o,userAgentAppId:c?.userAgentAppId??i?.userAgentAppId??p?.userAgentAppId})),ye;try{ye=await Wt.send(new G({accountId:r,roleName:s,accessToken:ve}))}catch(q){throw new v.CredentialsProviderError(q,{tryNextLink:M,logger:a})}let{roleCredentials:{accessKeyId:Oe,secretAccessKey:he,sessionToken:Ie,expiration:qe,credentialScope:fe,accountId:Pe}={}}=ye;if(!Oe||!he||!Ie||!qe)throw new v.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:M,logger:a});let Z={accessKeyId:Oe,secretAccessKey:he,sessionToken:Ie,expiration:new Date(qe),...fe&&{credentialScope:fe},...Pe&&{accountId:Pe}};if(t)Bt.setCredentialFeature(Z,"CREDENTIALS_SSO","s");else Bt.setCredentialFeature(Z,"CREDENTIALS_SSO_LEGACY","u");return Z},Jt=(e,t)=>{let{sso_start_url:r,sso_account_id:o,sso_region:s,sso_role_name:n}=e;if(!r||!o||!s||!n)throw new v.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
|
|
2
|
+
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:t});return e},xo=(e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:o,ssoRegion:s,ssoRoleName:n,ssoSession:c}=e,{ssoClient:p}=e,i=W.getProfileName({profile:e.profile??t?.profile});if(!r&&!o&&!s&&!n&&!c){let u=(await W.parseKnownFiles(e))[i];if(!u)throw new v.CredentialsProviderError(`Profile ${i} was not found.`,{logger:e.logger});if(!Qt(u))throw new v.CredentialsProviderError(`Profile ${i} is not configured with SSO credentials.`,{logger:e.logger});if(u?.sso_session){let C=(await W.loadSsoSessionData(e))[u.sso_session],G=` configurations in profile ${i} and sso-session ${u.sso_session}`;if(s&&s!==C.sso_region)throw new v.CredentialsProviderError("Conflicting SSO region"+G,{tryNextLink:!1,logger:e.logger});if(r&&r!==C.sso_start_url)throw new v.CredentialsProviderError("Conflicting SSO start_url"+G,{tryNextLink:!1,logger:e.logger});u.sso_region=C.sso_region,u.sso_start_url=C.sso_start_url}let{sso_start_url:$,sso_account_id:y,sso_region:a,sso_role_name:O,sso_session:X}=Jt(u,e.logger);return Yt({ssoStartUrl:$,ssoSession:X,ssoAccountId:y,ssoRegion:a,ssoRoleName:O,ssoClient:p,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:i,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}else if(!r||!o||!s||!n)throw new v.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});else return Yt({ssoStartUrl:r,ssoSession:c,ssoAccountId:o,ssoRegion:s,ssoRoleName:n,ssoClient:p,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:i,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})},vo,yo,Oo;var ho=So(()=>{v=Ne(),W=De(),Bt=k(),Ro=be();vo=xo,yo=Qt,Oo=Jt});ho();export{Oo as validateSsoProfile,yo as isSsoProfile,vo as fromSSO};export default {get validateSsoProfile(){return Oo},get isSsoProfile(){return yo},get fromSSO(){return vo}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{L5 as a}from"./cli-0.1.12-hfmv72b6.mjs";import"./cli-0.1.12-4gj8p030.mjs";import"./cli-0.1.12-wfbfq2mm.mjs";import"./cli-0.1.12-9dvxchv3.mjs";import"./cli-0.1.12-xanhpra7.mjs";import"./cli-0.1.12-74tt2500.mjs";import"./cli-0.1.12-6e4e36bv.mjs";import"./cli-0.1.12-dtba3gm9.mjs";import"./cli-0.1.12-taqfqnag.mjs";import"./cli-0.1.12-dqynn0at.mjs";import"./cli-0.1.12-qf1kw5cr.mjs";import"./cli-0.1.12-2f2v27e3.mjs";import"./cli-0.1.12-1hv04bp7.mjs";export default a();
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{xna as m}from"./cli-0.1.12-9dvxchv3.mjs";import"./cli-0.1.12-xanhpra7.mjs";import{Nna as g}from"./cli-0.1.12-dqynn0at.mjs";import{Ona as k}from"./cli-0.1.12-qf1kw5cr.mjs";import{Una as u,Vna as M}from"./cli-0.1.12-1hv04bp7.mjs";function j(z){return new Promise((G,U)=>{let K=d.request({method:"GET",...z,hostname:z.hostname?.replace(/^\[(.+)\]$/,"$1")});K.on("error",(Q)=>{U(Object.assign(new Z.ProviderError("Unable to connect to instance metadata service"),Q)),K.destroy()}),K.on("timeout",()=>{U(new Z.ProviderError("TimeoutError from instance metadata service")),K.destroy()}),K.on("response",(Q)=>{let{statusCode:X=400}=Q;if(X<200||300<=X)U(Object.assign(new Z.ProviderError("Error response received from instance metadata service"),{statusCode:X})),K.destroy();let w=[];Q.on("data",($)=>{w.push($)}),Q.on("end",()=>{G(p.Buffer.concat(w)),K.destroy()})}),K.end()})}var Z,c,p,d,V,l,T=(z)=>Boolean(z)&&typeof z==="object"&&typeof z.AccessKeyId==="string"&&typeof z.SecretAccessKey==="string"&&typeof z.Token==="string"&&typeof z.Expiration==="string",b=(z)=>({accessKeyId:z.AccessKeyId,secretAccessKey:z.SecretAccessKey,sessionToken:z.Token,expiration:new Date(z.Expiration),...z.AccountId&&{accountId:z.AccountId}}),F=1000,v=0,h=({maxRetries:z=v,timeout:G=F})=>({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",a=(z={})=>{let{timeout:G,maxRetries:U}=h(z);return()=>N(async()=>{let K=await i({logger:z.logger}),Q=JSON.parse(await s(G,K));if(!T(Q))throw new Z.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:z.logger});return b(Q)},U)},s=async(z,G)=>{if(process.env[P])G.headers={...G.headers,Authorization:process.env[P]};return(await j({...G,timeout:z})).toString()},n="169.254.170.2",o,t,i=async({logger:z})=>{if(process.env[_])return{hostname:n,path:process.env[_]};if(process.env[L]){let G=c.parse(process.env[L]);if(!G.hostname||!(G.hostname in o))throw new Z.CredentialsProviderError(`${G.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:z});if(!G.protocol||!(G.protocol in t))throw new Z.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 Z.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${_} or ${L} environment variable is set`,{tryNextLink:!1,logger:z})},q,S=void 0,r="AWS_EC2_METADATA_SERVICE_ENDPOINT",e="ec2_metadata_service_endpoint",zz,A,Gz="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",Kz="ec2_metadata_service_endpoint_mode",Qz,x=async()=>l.parseUrl(await Uz()||await Xz()),Uz=async()=>V.loadConfig(zz)(),Xz=async()=>{let z=await V.loadConfig(Qz)();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)}`)}},Zz=300,$z=300,Hz="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",I=(z,G)=>{let U=Zz+Math.floor(Math.random()*$z),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: `+Hz);let Q=z.originalExpiration??z.expiration;return{...z,...Q?{originalExpiration:Q}:{},expiration:K}},Jz=(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=I(Q,U)}catch(X){if(K)U.warn("Credential renew failed: ",X),Q=I(K,U);else throw X}return K=Q,Q}},E="/latest/meta-data/iam/security-credentials/",Yz="/latest/api/token",B="AWS_EC2_METADATA_V1_DISABLED",y="ec2_metadata_v1_disabled",C="x-aws-ec2-metadata-token",wz=(z={})=>Jz(Dz(z),{logger:z.logger}),Dz=(z={})=>{let G=!1,{logger:U,profile:K}=z,{timeout:Q,maxRetries:X}=h(z),w=async($,D)=>{if(G||D.headers?.[C]==null){let H=!1,J=!1,f=await V.loadConfig({environmentVariableSelector:(Y)=>{let W=Y[B];if(J=!!W&&W!=="false",W===void 0)throw new Z.CredentialsProviderError(`${B} not set in env, checking config file next.`,{logger:z.logger});return J},configFileSelector:(Y)=>{let W=Y[y];return H=!!W&&W!=="false",H},default:!1},{profile:K})();if(z.ec2MetadataV1Disabled||f){let Y=[];if(z.ec2MetadataV1Disabled)Y.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");if(H)Y.push(`config file profile (${y})`);if(J)Y.push(`process environment variable (${B})`);throw new q(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${Y.join(", ")}].`)}}let R=(await N(async()=>{let H;try{H=await Az(D)}catch(J){if(J.statusCode===401)G=!1;throw J}return H},$)).trim();return N(async()=>{let H;try{H=await Oz(R,D,z)}catch(J){if(J.statusCode===401)G=!1;throw J}return H},$)};return async()=>{let $=await x();if(G)return U?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),w(X,{...$,timeout:Q});else{let D;try{D=(await Wz({...$,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(X,{...$,timeout:Q})}return w(X,{...$,headers:{[C]:D},timeout:Q})}}},Wz=async(z)=>j({...z,path:Yz,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),Az=async(z)=>(await j({...z,path:E})).toString(),Oz=async(z,G,U)=>{let K=JSON.parse((await j({...G,path:E+z})).toString());if(!T(K))throw new Z.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:U.logger});return b(K)},Sz,jz,Lz,_z,Bz,Nz,Pz,Mz,Vz,hz;var qz=u(()=>{Z=k(),c=M("url"),p=M("buffer"),d=M("http"),V=m(),l=g();o={localhost:!0,"127.0.0.1":!0},t={"http:":!0,"https:":!0};q=class q extends Z.CredentialsProviderError{tryNextLink;name="InstanceMetadataV1FallbackError";constructor(z,G=!0){super(z,G);this.tryNextLink=G,Object.setPrototypeOf(this,q.prototype)}};(function(z){z.IPv4="http://169.254.169.254",z.IPv6="http://[fd00:ec2::254]"})(S||(S={}));zz={environmentVariableSelector:(z)=>z[r],configFileSelector:(z)=>z[e],default:void 0};(function(z){z.IPv4="IPv4",z.IPv6="IPv6"})(A||(A={}));Qz={environmentVariableSelector:(z)=>z[Gz],configFileSelector:(z)=>z[Kz],default:A.IPv4};Sz=v,jz=F,Lz=P,_z=L,Bz=_,Nz=a,Pz=wz,Mz=x,Vz=j,hz=h});qz();export{hz as providerConfigFromInit,Vz as httpRequest,Mz as getInstanceMetadataEndpoint,Pz as fromInstanceMetadata,Nz as fromContainerMetadata,S as Endpoint,Bz as ENV_CMDS_RELATIVE_URI,_z as ENV_CMDS_FULL_URI,Lz as ENV_CMDS_AUTH_TOKEN,jz as DEFAULT_TIMEOUT,Sz as DEFAULT_MAX_RETRIES};export default {get providerConfigFromInit(){return hz},get httpRequest(){return Vz},get getInstanceMetadataEndpoint(){return Mz},get fromInstanceMetadata(){return Pz},get fromContainerMetadata(){return Nz},get Endpoint(){return S},get ENV_CMDS_RELATIVE_URI(){return Bz},get ENV_CMDS_FULL_URI(){return _z},get ENV_CMDS_AUTH_TOKEN(){return Lz},get DEFAULT_TIMEOUT(){return jz},get DEFAULT_MAX_RETRIES(){return Sz}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{yna as P}from"./cli-0.1.12-xanhpra7.mjs";import{Kna as p}from"./cli-0.1.12-dtba3gm9.mjs";import{Ona as w}from"./cli-0.1.12-qf1kw5cr.mjs";import{Una as u,Vna as a}from"./cli-0.1.12-1hv04bp7.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,9 @@
|
|
|
1
|
+
import{K5 as V}from"./cli-0.1.12-g604mknq.mjs";import{yna as W}from"./cli-0.1.12-xanhpra7.mjs";import"./cli-0.1.12-dtba3gm9.mjs";import{Ona as g}from"./cli-0.1.12-qf1kw5cr.mjs";import{Qna as H,Una as F,Vna as O}from"./cli-0.1.12-1hv04bp7.mjs";function M(b,q){let j=N(b),B,G,z,Q=async(J)=>{if(J?.forceRefresh)return await j(J);if(z?.expiration){if(z?.expiration?.getTime()<Date.now())z=void 0}if(B)await B;else if(!z||q?.(z))if(z){if(!G)G=j(J).then((X)=>{z=X}).finally(()=>{G=void 0})}else return B=j(J).then((X)=>{z=X}).finally(()=>{B=void 0}),Q(J);return z};return Q}var Y,K,h,Z="AWS_EC2_METADATA_DISABLED",x=async(b)=>{let{ENV_CMDS_FULL_URI:q,ENV_CMDS_RELATIVE_URI:j,fromContainerMetadata:B,fromInstanceMetadata:G}=await import("./index-0.1.12-z0brwe1k.mjs");if(process.env[j]||process.env[q]){b.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:z}=await import("./index-0.1.12-nc3z95ph.mjs").then((m)=>H(m.default,1));return K.chain(z(b),B(b))}if(process.env[Z]&&process.env[Z]!=="false")return async()=>{throw new K.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:b.logger})};return b.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),G(b)},N=(b)=>async(q)=>{let j;for(let B of b)try{return await B(q)}catch(G){if(j=G,G?.tryNextLink)continue;throw G}throw j},$=!1,T=(b={})=>M([async()=>{if(b.profile??process.env[h.ENV_PROFILE]){if(process.env[Y.ENV_KEY]&&process.env[Y.ENV_SECRET]){if(!$)(b.logger?.warn&&b.logger?.constructor?.name!=="NoOpLogger"?b.logger.warn.bind(b.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
|
|
2
|
+
Multiple credential sources detected:
|
|
3
|
+
Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
|
|
4
|
+
This SDK will proceed with the AWS_PROFILE value.
|
|
5
|
+
|
|
6
|
+
However, a future version may change this behavior to prefer the ENV static credentials.
|
|
7
|
+
Please ensure that your environment only sets either the AWS_PROFILE or the
|
|
8
|
+
AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
|
|
9
|
+
`),$=!0}throw new K.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:b.logger,tryNextLink:!0})}return b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),Y.fromEnv(b)()},async(q)=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:j,ssoAccountId:B,ssoRegion:G,ssoRoleName:z,ssoSession:Q}=b;if(!j&&!B&&!G&&!z&&!Q)throw new K.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:b.logger});let{fromSSO:J}=await import("./index-0.1.12-v53nbtdb.mjs");return J(b)(q)},async(q)=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:j}=await import("./index-0.1.12-77szwkm6.mjs");return j(b)(q)},async(q)=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:j}=await import("./index-0.1.12-zc2ayczg.mjs");return j(b)(q)},async(q)=>{b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:j}=await import("./index-0.1.12-aeeh5zvp.mjs").then((m)=>H(m.default,1));return j(b)(q)},async()=>{return b.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await x(b))()},async()=>{throw new K.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:b.logger})}],D),U=(b)=>b?.expiration!==void 0,D=(b)=>b?.expiration!==void 0&&b.expiration.getTime()-Date.now()<300000,C,u,A;var R=F(()=>{Y=V(),K=g(),h=W();C=D,u=U,A=T});R();export{A as defaultProvider,u as credentialsWillNeedRefresh,C as credentialsTreatedAsExpired};export default {get defaultProvider(){return A},get credentialsWillNeedRefresh(){return u},get credentialsTreatedAsExpired(){return C}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as VZ,c as FQ,d as fQ,e as lJ,f as wQ,g as DQ,h as EQ,i as CQ}from"./cli-0.1.12-9pq0gse0.mjs";import{j as dJ,k as jZ,m as MQ}from"./cli-0.1.12-zs5rpqmb.mjs";import"./cli-0.1.12-c47ape20.mjs";import{T as cJ,U as yQ,V as PQ,W as UQ,X as pJ,Y as uJ}from"./cli-0.1.12-0vf5f6qn.mjs";import"./cli-0.1.12-41zq3gv6.mjs";import{nd as vJ,pd as _Z}from"./cli-0.1.12-nv2m8kgk.mjs";import{td as iJ,wd as aZ}from"./cli-0.1.12-37ga9zc2.mjs";import{Ad as XZ,Bd as gZ,xd as KZ,zd as YZ}from"./cli-0.1.12-8qvgy8xr.mjs";import{Cd as OJ,Dd as BQ,Ed as RQ,Fd as ZQ,Gd as ZJ,Hd as mJ}from"./cli-0.1.12-bh7jp3zk.mjs";import{Id as QZ,Kd as HJ,Ld as ZZ,Md as lZ}from"./cli-0.1.12-strz382t.mjs";import{Pd as $Z,Qd as zZ,Rd as dZ}from"./cli-0.1.12-faa9mx3m.mjs";import{of as sQ,pf as rQ,qf as eQ,rf as JZ,sf as uZ}from"./cli-0.1.12-8tdckdxp.mjs";import{Lu as aQ,Mu as iQ,Pu as cZ,Rp as gQ,Sp as IZ,VH as oQ,dI as nQ,gI as pZ,gN as iZ,pH as tQ,wM as yJ}from"./cli-0.1.12-242der7s.mjs";import{eP as IJ,fP as fZ}from"./cli-0.1.12-7mjpbm22.mjs";import{pP as xQ,tP as FZ}from"./cli-0.1.12-yk12dgnx.mjs";import"./cli-0.1.12-q8k1zvhb.mjs";import"./cli-0.1.12-vpnp7x5c.mjs";import"./cli-0.1.12-kea0zcje.mjs";import"./cli-0.1.12-86nmrm6g.mjs";import"./cli-0.1.12-xcxjv6qd.mjs";import"./cli-0.1.12-f0x1y6nn.mjs";import{TQ as AQ,VQ as wZ}from"./cli-0.1.12-2zqgfhrb.mjs";import"./cli-0.1.12-6238zg7k.mjs";import"./cli-0.1.12-1x06khjr.mjs";import"./cli-0.1.12-37ezy1qg.mjs";import"./cli-0.1.12-19as1myk.mjs";import"./cli-0.1.12-2v18rdhk.mjs";import"./cli-0.1.12-a5h71tt8.mjs";import{oS as dQ,pS as LQ,qS as OQ,sS as _Q}from"./cli-0.1.12-2fajd44n.mjs";import"./cli-0.1.12-ktpqrbjc.mjs";import"./cli-0.1.12-tyt09z73.mjs";import"./cli-0.1.12-bddm1g1s.mjs";import"./cli-0.1.12-4sh0f4y1.mjs";import"./cli-0.1.12-5ye0t0xd.mjs";import"./cli-0.1.12-sgtpyf6y.mjs";import"./cli-0.1.12-52dbx2x6.mjs";import"./cli-0.1.12-r6f9sy54.mjs";import"./cli-0.1.12-sxxpysy8.mjs";import"./cli-0.1.12-817sd5bc.mjs";import"./cli-0.1.12-h248m986.mjs";import"./cli-0.1.12-04jw23rj.mjs";import"./cli-0.1.12-ytxphavm.mjs";import"./cli-0.1.12-7xsa2bcp.mjs";import"./cli-0.1.12-d8m01qtm.mjs";import"./cli-0.1.12-trdq9d6x.mjs";import"./cli-0.1.12-c23pyffx.mjs";import"./cli-0.1.12-q63qrz06.mjs";import"./cli-0.1.12-4qedbzt3.mjs";import"./cli-0.1.12-vxej5jdm.mjs";import"./cli-0.1.12-v8j9zstg.mjs";import"./cli-0.1.12-352pjhkh.mjs";import"./cli-0.1.12-73k5qd97.mjs";import"./cli-0.1.12-d0es0fxd.mjs";import"./cli-0.1.12-actnmgw5.mjs";import"./cli-0.1.12-qsh4sj4y.mjs";import{N4 as gJ,P4 as aJ,R4 as lQ,U1 as uQ,X1 as vZ,f4 as BJ,g4 as MZ,l5 as SZ}from"./cli-0.1.12-y9598sy3.mjs";import"./cli-0.1.12-erggrdth.mjs";import"./cli-0.1.12-m6jeef2z.mjs";import"./cli-0.1.12-bjzb0sjt.mjs";import"./cli-0.1.12-mr41yjpw.mjs";import{J6 as OZ,s6 as QJ}from"./cli-0.1.12-rwzav5h1.mjs";import"./cli-0.1.12-qn20n18h.mjs";import"./cli-0.1.12-y04asmqh.mjs";import{A7 as vQ,A8 as IQ,C7 as kZ,Cba as cQ,Fba as pQ,Q8 as bZ,Yba as mZ,r7 as _J,t7 as PZ,y8 as SQ}from"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import{ffa as mQ,qfa as TZ}from"./cli-0.1.12-g8mny195.mjs";import"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import{gga as w,hga as UZ}from"./cli-0.1.12-6x2mnahn.mjs";import{Gga as u,Mga as qQ,eha as J,hha as NQ,kga as GQ,mga as yZ}from"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import{Bha as RZ,rha as HQ,zha as WQ}from"./cli-0.1.12-ra3sby5b.mjs";import{Yma as hZ,dja as RJ,jja as bQ}from"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import{Vna as VQ}from"./cli-0.1.12-1hv04bp7.mjs";hZ();TZ();vZ();cZ();SZ();mZ();NQ();kZ();qQ();bZ();aZ();pZ();iZ();dZ();IZ();lZ();uZ();gZ();mJ();import{hostname as tZ}from"os";import{randomUUID as YQ}from"crypto";OZ();mJ();_Z();var xZ="environments-2025-11-01",AZ=/^[a-zA-Z0-9_-]+$/;function g(K,$){if(!K||!AZ.test(K))throw Error(`Invalid ${$}: contains unsafe characters`);return K}class zJ extends Error{status;errorType;constructor(K,$,L){super(K);this.name="BridgeFatalError",this.status=$,this.errorType=L}}function $Q(K){function $(Q){K.onDebug?.(Q)}let L=0,N=100;function x(Q){let z={Authorization:`Bearer ${Q}`,"Content-Type":"application/json","anthropic-version":"2023-06-01","anthropic-beta":xZ,"x-environment-runner-version":K.runnerVersion},H=K.getTrustedDeviceToken?.();if(H)z["X-Trusted-Device-Token"]=H;return z}function m(){let Q=K.getAccessToken();if(!Q)throw Error(vJ);return Q}async function h(Q,z){let H=m(),X=await Q(H);if(X.status!==401)return X;if(!K.onAuth401)return $(`[bridge:api] ${z}: 401 received, no refresh handler`),X;if($(`[bridge:api] ${z}: 401 received, attempting token refresh`),await K.onAuth401(H)){$(`[bridge:api] ${z}: Token refreshed, retrying request`);let y=m(),o=await Q(y);if(o.status!==401)return o;$(`[bridge:api] ${z}: Retry after refresh also got 401`)}else $(`[bridge:api] ${z}: Token refresh failed`);return X}return{async registerBridgeEnvironment(Q){$(`[bridge:api] POST /v1/environments/bridge bridgeId=${Q.bridgeId}`);let z=await h((H)=>QJ.post(`${K.baseUrl}/v1/environments/bridge`,{machine_name:Q.machineName,directory:Q.dir,branch:Q.branch,git_repo_url:Q.gitRepoUrl,max_sessions:Q.maxSessions,metadata:{worker_type:Q.workerType},...Q.reuseEnvironmentId&&{environment_id:Q.reuseEnvironmentId}},{headers:x(H),timeout:15000,validateStatus:(X)=>X<500}),"Registration");return $J(z.status,z.data,"Registration"),$(`[bridge:api] POST /v1/environments/bridge -> ${z.status} environment_id=${z.data.environment_id}`),$(`[bridge:api] >>> ${OJ({machine_name:Q.machineName,directory:Q.dir,branch:Q.branch,git_repo_url:Q.gitRepoUrl,max_sessions:Q.maxSessions,metadata:{worker_type:Q.workerType}})}`),$(`[bridge:api] <<< ${OJ(z.data)}`),z.data},async pollForWork(Q,z,H,X){g(Q,"environmentId");let R=L;L=0;let y=await QJ.get(`${K.baseUrl}/v1/environments/${Q}/work/poll`,{headers:x(z),params:X!==void 0?{reclaim_older_than_ms:X}:void 0,timeout:1e4,signal:H,validateStatus:(o)=>o<500});if($J(y.status,y.data,"Poll"),!y.data){if(L=R+1,L===1||L%N===0)$(`[bridge:api] GET .../work/poll -> ${y.status} (no work, ${L} consecutive empty polls)`);return null}return $(`[bridge:api] GET .../work/poll -> ${y.status} workId=${y.data.id} type=${y.data.data?.type}${y.data.data?.id?` sessionId=${y.data.data.id}`:""}`),$(`[bridge:api] <<< ${OJ(y.data)}`),y.data},async acknowledgeWork(Q,z,H){g(Q,"environmentId"),g(z,"workId"),$(`[bridge:api] POST .../work/${z}/ack`);let X=await QJ.post(`${K.baseUrl}/v1/environments/${Q}/work/${z}/ack`,{},{headers:x(H),timeout:1e4,validateStatus:(R)=>R<500});$J(X.status,X.data,"Acknowledge"),$(`[bridge:api] POST .../work/${z}/ack -> ${X.status}`)},async stopWork(Q,z,H){g(Q,"environmentId"),g(z,"workId"),$(`[bridge:api] POST .../work/${z}/stop force=${H}`);let X=await h((R)=>QJ.post(`${K.baseUrl}/v1/environments/${Q}/work/${z}/stop`,{force:H},{headers:x(R),timeout:1e4,validateStatus:(y)=>y<500}),"StopWork");$J(X.status,X.data,"StopWork"),$(`[bridge:api] POST .../work/${z}/stop -> ${X.status}`)},async deregisterEnvironment(Q){g(Q,"environmentId"),$(`[bridge:api] DELETE /v1/environments/bridge/${Q}`);let z=await h((H)=>QJ.delete(`${K.baseUrl}/v1/environments/bridge/${Q}`,{headers:x(H),timeout:1e4,validateStatus:(X)=>X<500}),"Deregister");$J(z.status,z.data,"Deregister"),$(`[bridge:api] DELETE /v1/environments/bridge/${Q} -> ${z.status}`)},async archiveSession(Q){g(Q,"sessionId"),$(`[bridge:api] POST /v1/sessions/${Q}/archive`);let z=await h((H)=>QJ.post(`${K.baseUrl}/v1/sessions/${Q}/archive`,{},{headers:x(H),timeout:1e4,validateStatus:(X)=>X<500}),"ArchiveSession");if(z.status===409){$(`[bridge:api] POST /v1/sessions/${Q}/archive -> 409 (already archived)`);return}$J(z.status,z.data,"ArchiveSession"),$(`[bridge:api] POST /v1/sessions/${Q}/archive -> ${z.status}`)},async reconnectSession(Q,z){g(Q,"environmentId"),g(z,"sessionId"),$(`[bridge:api] POST /v1/environments/${Q}/bridge/reconnect session_id=${z}`);let H=await h((X)=>QJ.post(`${K.baseUrl}/v1/environments/${Q}/bridge/reconnect`,{session_id:z},{headers:x(X),timeout:1e4,validateStatus:(R)=>R<500}),"ReconnectSession");$J(H.status,H.data,"ReconnectSession"),$(`[bridge:api] POST .../bridge/reconnect -> ${H.status}`)},async heartbeatWork(Q,z,H){g(Q,"environmentId"),g(z,"workId"),$(`[bridge:api] POST .../work/${z}/heartbeat`);let X=await QJ.post(`${K.baseUrl}/v1/environments/${Q}/work/${z}/heartbeat`,{},{headers:x(H),timeout:1e4,validateStatus:(R)=>R<500});return $J(X.status,X.data,"Heartbeat"),$(`[bridge:api] POST .../work/${z}/heartbeat -> ${X.status} lease_extended=${X.data.lease_extended} state=${X.data.state}`),X.data},async sendPermissionResponseEvent(Q,z,H){g(Q,"sessionId"),$(`[bridge:api] POST /v1/sessions/${Q}/events type=${z.type}`);let X=await QJ.post(`${K.baseUrl}/v1/sessions/${Q}/events`,{events:[z]},{headers:x(H),timeout:1e4,validateStatus:(R)=>R<500});$J(X.status,X.data,"SendPermissionResponseEvent"),$(`[bridge:api] POST /v1/sessions/${Q}/events -> ${X.status}`),$(`[bridge:api] >>> ${OJ({events:[z]})}`),$(`[bridge:api] <<< ${OJ(X.data)}`)}}}function $J(K,$,L){if(K===200||K===204)return;let N=ZQ($),x=BZ($);switch(K){case 401:throw new zJ(`${L}: Authentication failed (401)${N?`: ${N}`:""}. ${vJ}`,401,x);case 403:throw new zJ(SJ(x)?"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.":`${L}: Access denied (403)${N?`: ${N}`:""}. Check your organization permissions.`,403,x);case 404:throw new zJ(N??`${L}: Not found (404). Remote Control may not be available for this organization.`,404,x);case 410:throw new zJ(N??"Remote Control session has expired. Please restart with `claude remote-control` or /remote-control.",410,x??"environment_expired");case 429:throw Error(`${L}: Rate limited (429). Polling too frequently.`);default:throw Error(`${L}: Failed with status ${K}${N?`: ${N}`:""}`)}}function SJ(K){if(!K)return!1;return K.includes("expired")||K.includes("lifetime")}function zQ(K){if(K.status!==403)return!1;return K.message.includes("external_poll_sessions")||K.message.includes("environments:manage")}function BZ(K){if(K&&typeof K==="object"){if("error"in K&&K.error&&typeof K.error==="object"&&"type"in K.error&&typeof K.error.type==="string")return K.error.type}return}NQ();PZ();UZ();yZ();_Q();wZ();FZ();fZ();RZ();mJ();function KQ(K){let $=new AbortController;function L(){$.abort(),$=new AbortController}function N(){let x=new AbortController,m=()=>x.abort();if(K.aborted||$.signal.aborted)return x.abort(),{signal:x.signal,cleanup:()=>{}};K.addEventListener("abort",m,{once:!0});let h=$.signal;return h.addEventListener("abort",m,{once:!0}),{signal:x.signal,cleanup:()=>{K.removeEventListener("abort",m),h.removeEventListener("abort",m)}}}return{signal:N,wake:L}}qQ();MZ();var DZ=2000,XQ=60000,jQ=900000,EZ=0;async function hQ(K){let{dir:$,machineName:L,branch:N,gitRepoUrl:x,title:m,baseUrl:h,sessionIngressUrl:Q,workerType:z,getAccessToken:H,createSession:X,archiveSession:R,getCurrentTitle:y=()=>m,toSDKMessages:o=()=>{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:T,getPollIntervalConfig:k=()=>dJ,initialHistoryCap:v=200,initialMessages:B,previouslyFlushedUUIDs:d,onInboundMessage:l,onPermissionResponse:KJ,onInterrupt:n,onSetModel:_,onSetMaxThinkingTokens:S,onSetPermissionMode:D,onStateChange:P,onUserMessage:a,perpetual:I,initialSSESequenceNum:s=0}=K,F=++EZ,{writeBridgePointer:c,clearBridgePointer:YJ,readBridgePointer:O}=await import("./bridgePointer-0.1.12-vdj4j4ke.mjs"),A=I?await O($):null,W=A?.source==="repl"?A:null;J(`[bridge:repl] initBridgeCore #${F} starting (initialMessages=${B?.length??0}${W?` perpetual prior=env:${W.environmentId}`:""})`);let C=$Q({baseUrl:h,getAccessToken:H,runnerVersion:"99.0.0",onDebug:J,onAuth401:T,getTrustedDeviceToken:xQ}),XJ={dir:$,machineName:L,branch:N,gitRepoUrl:x,maxSessions:1,spawnMode:"single-session",verbose:!1,sandbox:!1,bridgeId:YQ(),workerType:z,environmentId:YQ(),reuseEnvironmentId:W?.environmentId,apiBaseUrl:h,sessionIngressUrl:Q},q,PJ;try{let Z=await C.registerBridgeEnvironment(XJ);q=Z.environment_id,PJ=Z.environment_secret}catch(Z){if(ZJ("registration_failed",`[bridge:repl] Environment registration failed: ${u(Z)}`),W)await YJ($);return P?.("failed",u(Z)),null}J(`[bridge:repl] Environment registered: ${q}`),_J("info","bridge_repl_env_registered"),w("tengu_bridge_repl_env_registered",{});async function tJ(Z,j){if(q!==Z)return J(`[bridge:repl] Env mismatch (requested ${Z}, got ${q}) — cannot reconnect in place`),!1;let U=OQ(j),G=U===j?[j]:[j,U];for(let E of G)try{return await C.reconnectSession(q,E),J(`[bridge:repl] Reconnected session ${E} in place on env ${q}`),!0}catch(r){J(`[bridge:repl] reconnectSession(${E}) failed: ${u(r)}`)}return J("[bridge:repl] reconnectSession exhausted — falling through to fresh session"),!1}let FJ=W?await tJ(W.environmentId,W.sessionId):!1;if(W&&!FJ)await YJ($);let V;if(FJ&&W){if(V=W.sessionId,J(`[bridge:repl] Perpetual session reused: ${V}`),B&&d)for(let Z of B)d.add(Z.uuid)}else{let Z=await X({environmentId:q,title:m,gitRepoUrl:x,branch:N,signal:AbortSignal.timeout(15000)});if(!Z)return J("[bridge:repl] Session creation failed, deregistering environment"),w("tengu_bridge_repl_session_failed",{}),await C.deregisterEnvironment(q).catch(()=>{}),P?.("failed","Session creation failed"),null;V=Z,J(`[bridge:repl] Session created: ${V}`)}await c($,{sessionId:V,environmentId:q,source:"repl"}),_J("info","bridge_repl_session_created"),w("tengu_bridge_repl_started",{has_initial_messages:!!(B&&B.length>0),inProtectedNamespace:WQ()});let fJ=new Set;if(B)for(let Z of B)fJ.add(Z.uuid);let jJ=new uJ(2000);for(let Z of fJ)jJ.add(Z);let oJ=new uJ(2000),e=new AbortController,Y=null,WJ=0,i=FJ?s:0,p=null,GJ=null,nJ=KQ(e.signal),xJ=nJ.wake,HZ=nJ.signal,JJ=new CQ,wJ=!a,DJ=3,VJ=0,qJ=null;async function sJ(){if(qJ)return qJ;qJ=WZ();try{return await qJ}finally{qJ=null}}async function WZ(){if(VJ++,WJ++,J(`[bridge:repl] Reconnecting after env lost (attempt ${VJ}/${DJ})`),VJ>DJ)return J(`[bridge:repl] Environment reconnect limit reached (${DJ}), giving up`),!1;if(Y){let G=Y.getLastSequenceNum();if(G>i)i=G;Y.close(),Y=null}if(xJ(),JJ.drop(),p){let G=p;if(await C.stopWork(q,G,!1).catch(()=>{}),p!==G)return J("[bridge:repl] Poll loop recovered during stopWork await — deferring to it"),VJ=0,!0;p=null,GJ=null}if(e.signal.aborted)return J("[bridge:repl] Reconnect aborted by teardown"),!1;let Z=q;XJ.reuseEnvironmentId=Z;try{let G=await C.registerBridgeEnvironment(XJ);q=G.environment_id,PJ=G.environment_secret}catch(G){return XJ.reuseEnvironmentId=void 0,J(`[bridge:repl] Environment re-registration failed: ${u(G)}`),!1}if(XJ.reuseEnvironmentId=void 0,J(`[bridge:repl] Re-registered: requested=${Z} got=${q}`),e.signal.aborted)return J("[bridge:repl] Reconnect aborted after env registration, cleaning up"),await C.deregisterEnvironment(q).catch(()=>{}),!1;if(Y!==null)return J("[bridge:repl] Poll loop recovered during registerBridgeEnvironment await — deferring to it"),VJ=0,!0;if(await tJ(Z,V))return w("tengu_bridge_repl_reconnected_in_place",{}),VJ=0,!0;if(q!==Z)w("tengu_bridge_repl_env_expired_fresh_session",{});if(await R(V),e.signal.aborted)return J("[bridge:repl] Reconnect aborted after archive, cleaning up"),await C.deregisterEnvironment(q).catch(()=>{}),!1;let j=y(),U=await X({environmentId:q,title:j,gitRepoUrl:x,branch:N,signal:AbortSignal.timeout(15000)});if(!U)return J("[bridge:repl] Session creation failed during reconnection"),!1;if(e.signal.aborted)return J("[bridge:repl] Reconnect aborted after session creation, cleaning up"),await R(U),!1;return V=U,AQ(LQ(U)).catch(()=>{}),i=0,oJ.clear(),wJ=!a,J(`[bridge:repl] Re-created session: ${V}`),await c($,{sessionId:V,environmentId:q,source:"repl"}),d?.clear(),VJ=0,!0}function EJ(){return H()}function rJ(){let Z=JJ.end();if(Z.length===0)return;if(!Y){J(`[bridge:repl] Cannot drain ${Z.length} pending message(s): no transport`);return}for(let G of Z)jJ.add(G.uuid);let U=o(Z).map((G)=>({...G,session_id:V}));J(`[bridge:repl] Drained ${Z.length} pending message(s) after flush`),Y.writeBatch(U)}let UJ=null;function CJ(){UJ?.()}function GZ(Z){if(J(`[bridge:repl] Transport permanently closed: code=${Z}`),w("tengu_bridge_repl_ws_closed",{code:Z}),Y){let U=Y.getLastSequenceNum();if(U>i)i=U;Y=null}xJ();let j=JJ.drop();if(j>0)J(`[bridge:repl] Dropping ${j} pending message(s) on transport close (code=${Z})`,{level:"warn"});if(Z===1000){P?.("failed","session ended"),e.abort(),CJ();return}P?.("reconnecting",`Remote Control connection lost (code ${Z})`),J(`[bridge:repl] Transport reconnect budget exhausted (code=${Z}), attempting env reconnect`),sJ().then((U)=>{if(U)return;if(e.signal.aborted)return;J("[bridge:repl] reconnectEnvironmentWithSession resolved false — tearing down"),w("tengu_bridge_repl_reconnect_failed",{close_code:Z}),P?.("failed","reconnection failed"),CJ()})}let qZ={api:C,getCredentials:()=>({environmentId:q,environmentSecret:PJ}),signal:e.signal,getPollIntervalConfig:k,onStateChange:P,getWsState:()=>Y?.getStateLabel()??"null",isAtCapacity:()=>Y!==null,capacitySignal:HZ,onFatalError:CJ,getHeartbeatInfo:()=>{if(!p||!GJ)return null;return{environmentId:q,workId:p,sessionToken:GJ}},onHeartbeatFatal:(Z)=>{if(J(`[bridge:repl] heartbeatWork fatal (status=${Z.status}) — tearing down work item for fast re-dispatch`),Y){let j=Y.getLastSequenceNum();if(j>i)i=j;Y.close(),Y=null}if(JJ.drop(),p)C.stopWork(q,p,!1).catch((j)=>{J(`[bridge:repl] stopWork after heartbeat fatal: ${u(j)}`)});p=null,GJ=null,xJ(),P?.("reconnecting","Work item lease expired, fetching fresh token")},async onEnvironmentLost(){if(!await sJ())return null;return{environmentId:q,environmentSecret:PJ}},onWorkReceived:(Z,j,U,G)=>{if(Y?.isConnectedStatus())J(`[bridge:repl] Work received while transport connected, replacing with fresh token (workId=${U})`);if(J(`[bridge:repl] Work received: workId=${U} workSessionId=${Z} currentSessionId=${V} match=${lJ(Z,V)}`),c($,{sessionId:V,environmentId:q,source:"repl"}),!lJ(Z,V)){J(`[bridge:repl] Rejecting foreign session: expected=${V} got=${Z}`);return}p=U,GJ=j;let E=G||HQ(process.env.CLAUDE_BRIDGE_USE_CCR_V2),r;if(!E){if(r=EJ(),!r){J("[bridge:repl] No OAuth token available for session ingress, skipping work");return}IJ(r)}if(w("tengu_bridge_repl_work_received",{}),Y){let M=Y;Y=null;let f=M.getLastSequenceNum();if(f>i)i=f;M.close()}JJ.deactivate();let LZ=(M)=>UQ(M,{transport:Y,sessionId:V,onInterrupt:n,onSetModel:_,onSetMaxThinkingTokens:S,onSetPermissionMode:D}),bJ=!1,JQ=(M)=>{if(Y=M,M.setOnConnect(()=>{if(Y!==M)return;if(J("[bridge:repl] Ingress transport connected"),w("tengu_bridge_repl_ws_connected",{}),!E){let f=EJ();if(f)IJ(f)}if(kJ=!1,!bJ&&B&&B.length>0){bJ=!0;let f=v,t=B.filter((MJ)=>cJ(MJ)&&!d?.has(MJ.uuid)),NJ=f>0&&t.length>f?t.slice(-f):t;if(NJ.length<t.length)J(`[bridge:repl] Capped initial flush: ${t.length} -> ${NJ.length} (cap=${f})`),w("tengu_bridge_repl_history_capped",{eligible_count:t.length,capped_count:NJ.length});let AJ=o(NJ);if(AJ.length>0){J(`[bridge:repl] Flushing ${AJ.length} initial message(s) via transport`);let MJ=AJ.map((LJ)=>({...LJ,session_id:V})),QQ=M.droppedBatchCount;M.writeBatch(MJ).then(()=>{if(M.droppedBatchCount>QQ){J(`[bridge:repl] Initial flush dropped ${M.droppedBatchCount-QQ} batch(es) — not marking ${AJ.length} UUID(s) as flushed`);return}if(d){for(let LJ of AJ)if(LJ.uuid)d.add(LJ.uuid)}}).catch((LJ)=>J(`[bridge:repl] Initial flush failed: ${LJ}`)).finally(()=>{if(Y!==M)return;rJ(),P?.("connected")})}else rJ(),P?.("connected")}else if(!JJ.active)P?.("connected")}),M.setOnData((f)=>{PQ(f,jJ,oJ,l,KJ,LZ)}),M.setOnClose((f)=>{if(Y!==M)return;GZ(f)}),!bJ&&B&&B.length>0)JJ.start();M.connect()};if(WJ++,E){let M=wQ(h,Z),f=WJ;J(`[bridge:repl] CCR v2: sessionUrl=${M} session=${Z} gen=${f}`),EQ({sessionUrl:M,ingressToken:j,sessionId:Z,initialSequenceNum:i}).then((t)=>{if(e.signal.aborted){t.close();return}if(f!==WJ){J(`[bridge:repl] CCR v2: discarding stale handshake gen=${f} current=${WJ}`),t.close();return}JQ(t)},(t)=>{if(J(`[bridge:repl] CCR v2: createV2ReplTransport failed: ${u(t)}`,{level:"error"}),w("tengu_bridge_repl_ccr_v2_init_failed",{}),f!==WJ)return;if(p)C.stopWork(q,p,!1).catch((NJ)=>{J(`[bridge:repl] stopWork after v2 init failure: ${u(NJ)}`)}),p=null,GJ=null;xJ()})}else{let M=fQ(Q,Z);J(`[bridge:repl] Ingress URL: ${M}`),J(`[bridge:repl] Creating HybridTransport: session=${Z}`);let f=r??"";JQ(DQ(new MQ(new URL(M),{Authorization:`Bearer ${f}`,"anthropic-version":"2023-06-01"},Z,()=>({Authorization:`Bearer ${EJ()??f}`,"anthropic-version":"2023-06-01"}),{maxConsecutiveFailures:50,isBridge:!0,onBatchDropped:()=>{P?.("reconnecting","Lost sync with Remote Control — events could not be delivered"),xJ()}})))}}};CZ(qZ);let hJ=I?setInterval(()=>{if(qJ)return;c($,{sessionId:V,environmentId:q,source:"repl"})},3600000):null;hJ?.unref?.();let eJ=k().session_keepalive_interval_v2_ms,TJ=eJ>0?setInterval(()=>{if(!Y)return;J("[bridge:repl] keep_alive sent"),Y.write({type:"keep_alive"}).catch((Z)=>{J(`[bridge:repl] keep_alive write failed: ${u(Z)}`)})},eJ):null;TJ?.unref?.();let kJ=!1;UJ=async()=>{if(kJ){J(`[bridge:repl] Teardown already in progress, skipping duplicate call env=${q} session=${V}`);return}kJ=!0;let Z=Date.now();if(J(`[bridge:repl] Teardown starting: env=${q} session=${V} workId=${p??"none"} transportState=${Y?.getStateLabel()??"null"}`),hJ!==null)clearInterval(hJ);if(TJ!==null)clearInterval(TJ);if(e.abort(),J("[bridge:repl] Teardown: poll loop aborted"),Y){let G=Y.getLastSequenceNum();if(G>i)i=G}if(I){Y=null,JJ.drop(),await c($,{sessionId:V,environmentId:q,source:"repl"}),J(`[bridge:repl] Teardown (perpetual): leaving env=${q} session=${V} alive on server, duration=${Date.now()-Z}ms`);return}let j=Y;if(Y=null,JJ.drop(),j)j.write(pJ(V));let U=p?C.stopWork(q,p,!0).then(()=>{J("[bridge:repl] Teardown: stopWork completed")}).catch((G)=>{J(`[bridge:repl] Teardown stopWork failed: ${u(G)}`)}):Promise.resolve();await Promise.all([U,R(V)]),j?.close(),J("[bridge:repl] Teardown: transport closed"),await C.deregisterEnvironment(q).catch((G)=>{J(`[bridge:repl] Teardown deregister failed: ${u(G)}`)}),await YJ($),J(`[bridge:repl] Teardown complete: env=${q} duration=${Date.now()-Z}ms`)};let NZ=GQ(()=>UJ?.());return J(`[bridge:repl] Ready: env=${q} session=${V}`),P?.("ready"),{get bridgeSessionId(){return V},get environmentId(){return q},getSSESequenceNum(){let Z=Y?.getLastSequenceNum()??0;return Math.max(i,Z)},sessionIngressUrl:Q,writeMessages(Z){let j=Z.filter((E)=>cJ(E)&&!fJ.has(E.uuid)&&!jJ.has(E.uuid));if(j.length===0)return;if(!wJ)for(let E of j){let r=yQ(E);if(r!==void 0&&a?.(r,V)){wJ=!0;break}}if(JJ.enqueue(...j)){J(`[bridge:repl] Queued ${j.length} message(s) during initial flush`);return}if(!Y){let E=j.map((r)=>r.type).join(",");J(`[bridge:repl] Transport not configured, dropping ${j.length} message(s) [${E}] for session=${V}`,{level:"warn"});return}for(let E of j)jJ.add(E.uuid);J(`[bridge:repl] Sending ${j.length} message(s) via transport`);let G=o(j).map((E)=>({...E,session_id:V}));Y.writeBatch(G)},writeSdkMessages(Z){let j=Z.filter((G)=>!G.uuid||!jJ.has(G.uuid));if(j.length===0)return;if(!Y){J(`[bridge:repl] Transport not configured, dropping ${j.length} SDK message(s) for session=${V}`,{level:"warn"});return}for(let G of j)if(G.uuid)jJ.add(G.uuid);let U=j.map((G)=>({...G,session_id:V}));Y.writeBatch(U)},sendControlRequest(Z){if(!Y){J("[bridge:repl] Transport not configured, skipping control_request");return}let j={...Z,session_id:V};Y.write(j),J(`[bridge:repl] Sent control_request request_id=${Z.request_id}`)},sendControlResponse(Z){if(!Y){J("[bridge:repl] Transport not configured, skipping control_response");return}let j={...Z,session_id:V};Y.write(j),J("[bridge:repl] Sent control_response")},sendControlCancelRequest(Z){if(!Y){J("[bridge:repl] Transport not configured, skipping control_cancel_request");return}let j={type:"control_cancel_request",request_id:Z,session_id:V};Y.write(j),J(`[bridge:repl] Sent control_cancel_request request_id=${Z}`)},sendResult(){if(!Y){J(`[bridge:repl] sendResult: skipping, transport not configured session=${V}`);return}Y.write(pJ(V)),J(`[bridge:repl] Sent result for session=${V}`)},async teardown(){NZ(),await UJ?.(),J("[bridge:repl] Torn down"),w("tengu_bridge_repl_teardown",{})}}}async function CZ({api:K,getCredentials:$,signal:L,onStateChange:N,onWorkReceived:x,onEnvironmentLost:m,getWsState:h,isAtCapacity:Q,capacitySignal:z,onFatalError:H,getPollIntervalConfig:X=()=>dJ,getHeartbeatInfo:R,onHeartbeatFatal:y}){J(`[bridge:repl] Starting work poll loop for env=${$().environmentId}`);let T=0,k=null,v=null,B=0,d=!1;while(!L.aborted){let{environmentId:l,environmentSecret:KJ}=$(),n=X();try{let _=await K.pollForWork(l,KJ,L,n.reclaim_older_than_ms);if(B=0,T>0)J(`[bridge:repl] Poll recovered after ${T} consecutive error(s)`),T=0,k=null,v=null,N?.("ready");if(!_){let D=d;if(d=!1,Q?.()&&z&&!D){let P=n.poll_interval_ms_at_capacity;if(n.non_exclusive_heartbeat_interval_ms>0&&R){w("tengu_bridge_heartbeat_mode_entered",{heartbeat_interval_ms:n.non_exclusive_heartbeat_interval_ms});let I=P>0?Date.now()+P:null,s=!1,F=0;while(!L.aborted&&Q()&&(I===null||Date.now()<I)){let YJ=X();if(YJ.non_exclusive_heartbeat_interval_ms<=0)break;let O=R();if(!O)break;let A=z();try{await K.heartbeatWork(O.environmentId,O.workId,O.sessionToken)}catch(W){if(J(`[bridge:repl:heartbeat] Failed: ${u(W)}`),W instanceof zJ){if(A.cleanup(),w("tengu_bridge_heartbeat_error",{status:W.status,error_type:W.status===401||W.status===403?"auth_failed":"fatal"}),y)y(W),J(`[bridge:repl:heartbeat] Fatal (status=${W.status}), work state cleared — fast-polling for re-dispatch`);else s=!0;break}}F++,await BJ(YJ.non_exclusive_heartbeat_interval_ms,A.signal),A.cleanup()}let c=s?"error":L.aborted?"shutdown":!Q()?"capacity_changed":I!==null&&Date.now()>=I?"poll_due":"config_disabled";if(w("tengu_bridge_heartbeat_mode_exited",{reason:c,heartbeat_cycles:F}),!s){if(c==="poll_due")J(`[bridge:repl] Heartbeat poll_due after ${F} cycles — falling through to pollForWork`);continue}}let a=P>0?P:n.non_exclusive_heartbeat_interval_ms;if(a>0){let I=z(),s=Date.now();await BJ(a,I.signal),I.cleanup();let F=Date.now()-s-a;if(F>60000)J(`[bridge:repl] At-capacity sleep overran by ${Math.round(F/1000)}s — process suspension detected, forcing one fast-poll cycle`),w("tengu_bridge_repl_suspension_detected",{overrun_ms:F}),d=!0}}else await BJ(n.poll_interval_ms_not_at_capacity,L);continue}let S;try{S=FQ(_.secret)}catch(D){J(`[bridge:repl] Failed to decode work secret: ${u(D)}`),w("tengu_bridge_repl_work_secret_failed",{}),await K.stopWork(l,_.id,!1).catch(()=>{});continue}J(`[bridge:repl] Acknowledging workId=${_.id}`);try{await K.acknowledgeWork(l,_.id,S.session_ingress_token)}catch(D){J(`[bridge:repl] Acknowledge failed workId=${_.id}: ${u(D)}`)}if(_.data.type==="healthcheck"){J("[bridge:repl] Healthcheck received");continue}if(_.data.type==="session"){let D=_.data.id;try{g(D,"session_id")}catch{J(`[bridge:repl] Invalid session_id in work: ${D}`);continue}x(D,S.session_ingress_token,_.id,S.use_code_sessions===!0),J("[bridge:repl] Work accepted, continuing poll loop")}}catch(_){if(L.aborted)break;if(_ instanceof zJ&&_.status===404&&m){let F=$().environmentId;if(l!==F){J(`[bridge:repl] Stale poll error for old env=${l}, current env=${F} — skipping onEnvironmentLost`),T=0,k=null;continue}if(B++,J(`[bridge:repl] Environment deleted, attempting re-registration (attempt ${B}/3)`),w("tengu_bridge_repl_env_lost",{attempt:B}),B>3){J("[bridge:repl] Environment re-registration limit reached (3), giving up"),N?.("failed","Environment deleted and re-registration limit reached"),H?.();break}N?.("reconnecting","environment lost, recreating session");let c=await m();if(L.aborted)break;if(c){T=0,k=null,N?.("ready"),J(`[bridge:repl] Re-registered environment: ${c.environmentId}`);continue}N?.("failed","Environment deleted and re-registration failed"),H?.();break}if(_ instanceof zJ){let F=SJ(_.errorType),c=zQ(_);if(J(`[bridge:repl] Fatal poll error: ${_.message} (status=${_.status}, type=${_.errorType??"unknown"})${c?" (suppressed)":""}`),w("tengu_bridge_repl_fatal_error",{status:_.status,error_type:_.errorType}),_J(F?"info":"error","bridge_repl_fatal_error",{status:_.status,error_type:_.errorType}),!c)N?.("failed",F?"session expired · /remote-control to reconnect":_.message);H?.();break}let S=Date.now();if(v!==null&&S-v>XQ*2)J(`[bridge:repl] Detected system sleep (${Math.round((S-v)/1000)}s gap), resetting poll error budget`),_J("info","bridge_repl_poll_sleep_detected",{gapMs:S-v}),T=0,k=null;if(v=S,T++,k===null)k=S;let D=S-k,P=RQ(_),a=BQ(_),I=h?.()??"unknown";if(J(`[bridge:repl] Poll error (attempt ${T}, elapsed ${Math.round(D/1000)}s, ws=${I}): ${a}`),w("tengu_bridge_repl_poll_error",{status:P,consecutiveErrors:T,elapsedMs:D}),T===1)N?.("reconnecting",a);if(D>=jQ){J(`[bridge:repl] Poll failures exceeded ${jQ/1000}s (${T} errors), giving up`),_J("info","bridge_repl_poll_give_up"),w("tengu_bridge_repl_poll_give_up",{consecutiveErrors:T,elapsedMs:D,lastStatus:P}),N?.("failed","connection to server lost");break}let s=Math.min(DZ*2**(T-1),XQ);if(X().non_exclusive_heartbeat_interval_ms>0){let F=R?.();if(F)try{await K.heartbeatWork(F.environmentId,F.workId,F.sessionToken)}catch{}}await BJ(s,L)}}J(`[bridge:repl] Work poll loop ended (aborted=${L.aborted}) env=${$().environmentId}`)}_Q();async function i6(K){let{onInboundMessage:$,onPermissionResponse:L,onInterrupt:N,onSetModel:x,onSetMaxThinkingTokens:m,onSetPermissionMode:h,onStateChange:Q,initialMessages:z,getMessages:H,previouslyFlushedUUIDs:X,initialName:R,perpetual:y,outboundOnly:o,tags:T}=K??{};if(dQ(eQ),!await sQ())return ZJ("not_enabled","[bridge:repl] Skipping: bridge not enabled"),null;if(!HJ())return ZJ("no_oauth","[bridge:repl] Skipping: no OAuth tokens"),Q?.("failed","/login"),null;if(await aQ(),!iQ("allow_remote_control"))return ZJ("policy_denied","[bridge:repl] Skipping: allow_remote_control policy not allowed"),Q?.("failed","disabled by your organization's policy"),null;if(!QZ()){let O=pQ();if(O.bridgeOauthDeadExpiresAt!=null&&(O.bridgeOauthDeadFailCount??0)>=3&&gJ()?.expiresAt===O.bridgeOauthDeadExpiresAt)return J(`[bridge:repl] Skipping: cross-process backoff (dead token seen ${O.bridgeOauthDeadFailCount} times)`),null;await lQ();let A=gJ();if(A&&A.expiresAt!==null&&A.expiresAt<=Date.now()){ZJ("oauth_expired_unrefreshable","[bridge:repl] Skipping: OAuth token expired and refresh failed (re-login required)"),Q?.("failed","/login");let W=A.expiresAt;return cQ((b)=>({...b,bridgeOauthDeadExpiresAt:W,bridgeOauthDeadFailCount:b.bridgeOauthDeadExpiresAt===W?(b.bridgeOauthDeadFailCount??0)+1:1})),null}}let k=ZZ(),v=`remote-control-${gQ()}`,B=!1,d=!1;if(R)v=R,B=!0,d=!0;else{let O=RJ(),A=O?yJ(O):void 0;if(A)v=A,B=!0,d=!0;else if(z&&z.length>0)for(let W=z.length-1;W>=0;W--){let b=z[W];if(b.type!=="user"||b.isMeta||b.toolUseResult||b.isCompactSummary||b.origin&&b.origin.kind!=="human"||tQ(b))continue;let C=oQ(b.message.content);if(!C)continue;let XJ=kQ(C);if(!XJ)continue;v=XJ,B=!0;break}}let l=0,KJ,n=0,_=(O,A,W)=>{B=!0,v=O,J(`[bridge:repl] derived title from message ${W}: ${O}`),XZ(A,O,{baseUrl:k,getAccessToken:HJ}).catch(()=>{})},S=(O,A)=>{let W=++n,b=l;zZ(O,AbortSignal.timeout(15000)).then((C)=>{if(C&&W===n&&KJ===A&&!yJ(RJ()))_(C,A,b)})},D=(O,A)=>{if(d||yJ(RJ()))return!0;if(KJ!==void 0&&KJ!==A)l=0;if(KJ=A,l++,l===1&&!B){let W=kQ(O);if(W)_(W,A,l);S(O,A)}else if(l===3){let W=H?.(),b=W?$Z(nQ(W)):O;S(b,A)}return l>=3},P=mQ("tengu_bridge_initial_history_cap",200,300000),a=await uQ();if(!a)return ZJ("no_org_uuid","[bridge:repl] Skipping: no org UUID"),Q?.("failed","/login"),null;if(rQ()&&!y){let O=await VZ();if(O)return ZJ("version_too_old",`[bridge:repl] Skipping: ${O}`,!0),Q?.("failed","run `claude update` to upgrade"),null;J("[bridge:repl] Using env-less bridge path (tengu_bridge_repl_v2)");let{initEnvLessBridgeCore:A}=await import("./remoteBridgeCore-0.1.12-c0y46zw8.mjs");return A({baseUrl:k,orgUUID:a,title:v,getAccessToken:HJ,onAuth401:aJ,toSDKMessages:iJ,initialHistoryCap:P,initialMessages:z,onInboundMessage:$,onUserMessage:D,onPermissionResponse:L,onInterrupt:N,onSetModel:x,onSetMaxThinkingTokens:m,onSetPermissionMode:h,onStateChange:Q,outboundOnly:o,tags:T})}let I=JZ();if(I)return ZJ("version_too_old",`[bridge:repl] Skipping: ${I}`),Q?.("failed","run `claude update` to upgrade"),null;let s=await SQ(),F=await IQ(),c=process.env.CLAUDE_BRIDGE_SESSION_INGRESS_URL||k,YJ="claude_code";return hQ({dir:bQ(),machineName:tZ(),branch:s,gitRepoUrl:F,title:v,baseUrl:k,sessionIngressUrl:c,workerType:YJ,getAccessToken:HJ,createSession:(O)=>KZ({...O,events:[],baseUrl:k,getAccessToken:HJ}),archiveSession:(O)=>YZ(O,{baseUrl:k,getAccessToken:HJ,timeoutMs:1500}).catch((A)=>{J(`[bridge:repl] archiveBridgeSession threw: ${u(A)}`,{level:"error"})}),getCurrentTitle:()=>yJ(RJ())??v,onUserMessage:D,toSDKMessages:iJ,onAuth401:aJ,getPollIntervalConfig:jZ,initialHistoryCap:P,initialMessages:z,previouslyFlushedUUIDs:X,onInboundMessage:$,onPermissionResponse:L,onInterrupt:N,onSetModel:x,onSetMaxThinkingTokens:m,onSetPermissionMode:h,onStateChange:Q,perpetual:y})}var TQ=50;function kQ(K){let $=vQ(K),N=(/^(.*?[.!?])\s/.exec($)?.[1]??$).replace(/\s+/g," ").trim();if(!N)return;return N.length>TQ?N.slice(0,TQ-1)+"…":N}export{i6 as initReplBridge};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$U as x,AT as h,BT as i,FU as p,LT as j,OU as q,PT as k,QU as r,SU as s,WU as t,YU as u,ZU as v,_U as w,aV as y,bV as z,cV as A,eV as B,fT as a,fV as C,gT as b,iU as l,jT as c,kV as D,lV as E,mT as d,mV as F,nT as e,nV as G,oT as f,pT as g,qV as H,rV as I,sU as m,sV as J,tV as K,uV as L,vV as M,xU as n,zU as o}from"./cli-0.1.12-bddm1g1s.mjs";import"./cli-0.1.12-4sh0f4y1.mjs";import"./cli-0.1.12-5ye0t0xd.mjs";import"./cli-0.1.12-04jw23rj.mjs";import"./cli-0.1.12-ytxphavm.mjs";import"./cli-0.1.12-qsh4sj4y.mjs";import"./cli-0.1.12-m6jeef2z.mjs";import"./cli-0.1.12-y04asmqh.mjs";import"./cli-0.1.12-vzga2are.mjs";import"./cli-0.1.12-j6gjfwh5.mjs";import"./cli-0.1.12-g3ycbjxk.mjs";import"./cli-0.1.12-4wwhk7dc.mjs";import"./cli-0.1.12-tae7cd7e.mjs";import"./cli-0.1.12-g8mny195.mjs";import"./cli-0.1.12-bhxgr018.mjs";import"./cli-0.1.12-v000x470.mjs";import"./cli-0.1.12-6x2mnahn.mjs";import"./cli-0.1.12-rzpc0tr9.mjs";import"./cli-0.1.12-k2164g7e.mjs";import"./cli-0.1.12-ra3sby5b.mjs";import"./cli-0.1.12-pm5cwtxh.mjs";import"./cli-0.1.12-vgbc3g9x.mjs";import"./cli-0.1.12-1hv04bp7.mjs";M();export{j as wrapText,f as useThemeSetting,e as useTheme,A as useTerminalViewport,I as useTerminalTitle,m as useTerminalFocus,H as useTabStatus,c as useStdin,G as useSelection,g as usePreviewTheme,F as useInterval,D as useInput,C as useApp,E as useAnimationTimer,B as useAnimationFrame,l as supportsTabStatus,K as render,J as measureElement,L as createRoot,q as color,d as ThemeProvider,s as Text,i as TerminalFocusEvent,z as Spacer,y as RawAnsi,x as NoSelect,w as Newline,t as Link,h as InputEvent,k as FocusManager,b as EventEmitter,a as Event,p as ClickEvent,v as Button,r as Box,o as BaseText,n as BaseBox,u as Ansi};
|