@claudiolabs/claudio 0.1.12 → 0.1.14
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 +7 -0
- package/dist/chunks/AgentTool-0.1.14-cdr5h1g4.mjs +1 -0
- package/dist/chunks/App-0.1.14-pg2tqqjz.mjs +1 -0
- package/dist/chunks/ApproveApiKey-0.1.14-e86h3nff.mjs +1 -0
- package/dist/chunks/{AssistantSessionChooser-0.1.12-x3zt5579.mjs → AssistantSessionChooser-0.1.14-tf848k8v.mjs} +1 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.14-ftdkaf8h.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-0.1.14-d45z21x5.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.14-dzhpgrhm.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-0.1.14-y2v8vg76.mjs +1 -0
- package/dist/chunks/{DiffDialog-0.1.12-tzjdg5ys.mjs → DiffDialog-0.1.14-wtx2wmbs.mjs} +1 -1
- package/dist/chunks/Doctor-0.1.14-rhryp3qj.mjs +1 -0
- package/dist/chunks/Grove-0.1.14-4pt83x25.mjs +1 -0
- package/dist/chunks/ITermBackend-0.1.14-xtdr5bmp.mjs +1 -0
- package/dist/chunks/{InProcessTransport-0.1.12-xnrc78z1.mjs → InProcessTransport-0.1.14-wdqgcpb4.mjs} +1 -1
- package/dist/chunks/InvalidConfigDialog-0.1.14-rx2djmka.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-0.1.14-nhkj2max.mjs +1 -0
- package/dist/chunks/MigrationDialog-0.1.14-f6hf3ymp.mjs +1 -0
- package/dist/chunks/Onboarding-0.1.14-1rddgg2b.mjs +1 -0
- package/dist/chunks/ProviderManager-0.1.14-2d77t0cr.mjs +1 -0
- package/dist/chunks/REPL-0.1.14-rz1jsayd.mjs +1 -0
- package/dist/chunks/ResumeConversation-0.1.14-79hg5s2w.mjs +1 -0
- package/dist/chunks/{SnapshotUpdateDialog-0.1.12-f1byjres.mjs → SnapshotUpdateDialog-0.1.14-sbjnsz3c.mjs} +1 -1
- package/dist/chunks/TeleportProgress-0.1.14-411m3y24.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.14-v6ytg24w.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-0.1.14-8wfa8twy.mjs +1 -0
- package/dist/chunks/TmuxBackend-0.1.14-175xkeyy.mjs +9 -0
- package/dist/chunks/ToolSearchTool-0.1.14-rpbvvb5j.mjs +1 -0
- package/dist/chunks/TrustDialog-0.1.14-zvmfmtg5.mjs +1 -0
- package/dist/chunks/activeProvider-0.1.14-5cpywex1.mjs +1 -0
- package/dist/chunks/add-dir-0.1.14-q700x1tp.mjs +1 -0
- package/dist/chunks/agents-0.1.14-nm4k11re.mjs +3 -0
- package/dist/chunks/{agents-0.1.12-vfwpnn0d.mjs → agents-0.1.14-pjr42t23.mjs} +2 -2
- package/dist/chunks/api-0.1.14-v09922m9.mjs +1 -0
- package/dist/chunks/{asciicast-0.1.12-nwzfr5gz.mjs → asciicast-0.1.14-kgp9j4z6.mjs} +1 -1
- package/dist/chunks/assistant-0.1.14-yt6v1sjy.mjs +1 -0
- package/dist/chunks/auth-0.1.14-vg6ez70v.mjs +1 -0
- package/dist/chunks/{auth-0.1.12-vhdwtwhb.mjs → auth-0.1.14-vj6095mm.mjs} +1 -1
- package/dist/chunks/{autoMode-0.1.12-xjr5qd6q.mjs → autoMode-0.1.14-jxse6h16.mjs} +1 -1
- package/dist/chunks/backgroundHousekeeping-0.1.14-bh13ez8a.mjs +1 -0
- package/dist/chunks/branch-0.1.14-r5tt7cec.mjs +4 -0
- package/dist/chunks/{bridgePointer-0.1.12-vdj4j4ke.mjs → bridgePointer-0.1.14-2w1wvxgt.mjs} +1 -1
- package/dist/chunks/btw-0.1.14-j1cexrtn.mjs +1 -0
- package/dist/chunks/{buddy-0.1.12-4q50s2x4.mjs → buddy-0.1.14-r4nmfbke.mjs} +1 -1
- package/dist/chunks/cacache-0.1.14-3vw5qkqs.mjs +1 -0
- package/dist/chunks/{cache-probe-0.1.12-4s8cc2km.mjs → cache-probe-0.1.14-zfb6aw4f.mjs} +1 -1
- package/dist/chunks/{cacheStats-0.1.12-qqcw6b5n.mjs → cacheStats-0.1.14-15eahew3.mjs} +1 -1
- package/dist/chunks/caches-0.1.14-et2zg3m5.mjs +1 -0
- package/dist/chunks/{claudeDesktop-0.1.12-1yrkynq4.mjs → claudeDesktop-0.1.14-0df0z4v6.mjs} +1 -1
- package/dist/chunks/claudemd-0.1.14-exzt8psa.mjs +1 -0
- package/dist/chunks/clear-0.1.14-62gnxkg3.mjs +1 -0
- package/dist/chunks/clearTerminal-0.1.14-5p1j5sbv.mjs +1 -0
- package/dist/chunks/cli-0.1.14-08ambmnj.mjs +2 -0
- package/dist/chunks/cli-0.1.14-0a8ckx07.mjs +2 -0
- package/dist/chunks/cli-0.1.14-0ctjta81.mjs +5 -0
- package/dist/chunks/{cli-0.1.12-faa9mx3m.mjs → cli-0.1.14-0kzzfe41.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-0nhaxy76.mjs +4 -0
- package/dist/chunks/{cli-0.1.12-q63qrz06.mjs → cli-0.1.14-0x3m90bk.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-v000x470.mjs → cli-0.1.14-16jrehc2.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-352pjhkh.mjs → cli-0.1.14-1g5jq0j8.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-1shkmy81.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-trdq9d6x.mjs → cli-0.1.14-1xkst5wv.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-rwhrpb6w.mjs → cli-0.1.14-244fknyr.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-1x06khjr.mjs → cli-0.1.14-25ta9abj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-0vf5f6qn.mjs → cli-0.1.14-28exj8zm.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-2e2jfccr.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-vzga2are.mjs → cli-0.1.14-2f7s5xbd.mjs} +6 -6
- package/dist/chunks/{cli-0.1.12-rzpc0tr9.mjs → cli-0.1.14-2mzb5ath.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-373staaj.mjs +2 -0
- package/dist/chunks/cli-0.1.14-39y8qfj7.mjs +2 -0
- package/dist/chunks/cli-0.1.14-3m63hy2a.mjs +3 -0
- package/dist/chunks/cli-0.1.14-3scecgzx.mjs +6 -0
- package/dist/chunks/{cli-0.1.12-g2s9mjr6.mjs → cli-0.1.14-3w7fbjhy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-9pq0gse0.mjs → cli-0.1.14-3xj419mp.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-yk12dgnx.mjs → cli-0.1.14-3yj4dkmn.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-3zj4s594.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-ae3e3ffp.mjs → cli-0.1.14-42sm5vzr.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-442a367x.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-jqrk975g.mjs → cli-0.1.14-473sgexj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-6238zg7k.mjs → cli-0.1.14-4mde8z7h.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-9v01t95v.mjs → cli-0.1.14-4tmbgg29.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-4wdh3k7y.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-vxej5jdm.mjs → cli-0.1.14-59axynr8.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-qsh4sj4y.mjs → cli-0.1.14-5brvxst8.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-5e5kkjam.mjs +2 -0
- package/dist/chunks/cli-0.1.14-5rp4y3q2.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-0eznapyf.mjs → cli-0.1.14-5te1nbdc.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-68wbwy40.mjs +4 -0
- package/dist/chunks/cli-0.1.14-6cjjzttb.mjs +3 -0
- package/dist/chunks/{cli-0.1.12-v8j9zstg.mjs → cli-0.1.14-71m91842.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-0kqx19vz.mjs → cli-0.1.14-71sp86jb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-d0es0fxd.mjs → cli-0.1.14-77ha4n58.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-a2qh6gjr.mjs → cli-0.1.14-7zjhrz42.mjs} +3 -3
- package/dist/chunks/{cli-0.1.12-r6f9sy54.mjs → cli-0.1.14-7zz7abpc.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-86gckvrm.mjs +2 -0
- package/dist/chunks/cli-0.1.14-893g12wf.mjs +2 -0
- package/dist/chunks/cli-0.1.14-8fr10t94.mjs +17 -0
- package/dist/chunks/{cli-0.1.12-3ywnr2v1.mjs → cli-0.1.14-90zkq8jm.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-9b8kspnd.mjs +2 -0
- package/dist/chunks/cli-0.1.14-9evp0ewn.mjs +2 -0
- package/dist/chunks/cli-0.1.14-9gem156t.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-hsw67esw.mjs → cli-0.1.14-9kxzs20h.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-4wwhk7dc.mjs → cli-0.1.14-9vc52dnj.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-a15xdexp.mjs +12 -0
- package/dist/chunks/cli-0.1.14-a6kwmqhz.mjs +16 -0
- package/dist/chunks/{cli-0.1.12-37ga9zc2.mjs → cli-0.1.14-a9ytrehs.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-7ehqw1dk.mjs → cli-0.1.14-ab0rxxvk.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-mr41yjpw.mjs → cli-0.1.14-adz0gnzy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-ktpqrbjc.mjs → cli-0.1.14-aky5tegx.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-vgbc3g9x.mjs → cli-0.1.14-akz49g5v.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-sgtpyf6y.mjs → cli-0.1.14-as1s0b0t.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-as9nq99n.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-5exp787z.mjs → cli-0.1.14-ba919tmj.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-bat0c779.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-v0510w04.mjs → cli-0.1.14-bgqm4vsk.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-756ngehz.mjs → cli-0.1.14-c0bv9eha.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-f0x1y6nn.mjs → cli-0.1.14-c4v2kfdn.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-xekep4qg.mjs → cli-0.1.14-canpypsb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-g3ycbjxk.mjs → cli-0.1.14-cdby401e.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-ch9c9c38.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-nv2m8kgk.mjs → cli-0.1.14-ckjcet41.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-c23pyffx.mjs → cli-0.1.14-cp2pada5.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-d1edbjh4.mjs +25 -0
- package/dist/chunks/{cli-0.1.12-z8eybrhz.mjs → cli-0.1.14-d483gd53.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-d8m01qtm.mjs → cli-0.1.14-d4zkffre.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-ps94e9y5.mjs → cli-0.1.14-dcgxqsyp.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-dntkrp1j.mjs +134 -0
- package/dist/chunks/cli-0.1.14-dq7jkw1n.mjs +2 -0
- package/dist/chunks/cli-0.1.14-dqads3y3.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-8znn9f50.mjs → cli-0.1.14-dt11hwkv.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-kys514qx.mjs → cli-0.1.14-dw74ppax.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-dz2jvye2.mjs +2 -0
- package/dist/chunks/cli-0.1.14-e40hm9sd.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-2zqgfhrb.mjs → cli-0.1.14-edjtfw4q.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-efhhkgkx.mjs +2 -0
- package/dist/chunks/cli-0.1.14-eq0gbnpg.mjs +2 -0
- package/dist/chunks/cli-0.1.14-et8yewbf.mjs +2 -0
- package/dist/chunks/cli-0.1.14-fdpfr31f.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-mwp84gtr.mjs → cli-0.1.14-fhfj87ej.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-zs5rpqmb.mjs → cli-0.1.14-fmgz6tx2.mjs} +3 -3
- package/dist/chunks/{cli-0.1.12-ds2mn8zn.mjs → cli-0.1.14-fmmxw3gj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-5ye0t0xd.mjs → cli-0.1.14-fspxpmh7.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-h0d833vg.mjs → cli-0.1.14-ftjxb57b.mjs} +4 -4
- package/dist/chunks/{cli-0.1.12-wdmxm11z.mjs → cli-0.1.14-g5q2xqp3.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-gdm27acz.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-ytxphavm.mjs → cli-0.1.14-harz1d9d.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-qn20n18h.mjs → cli-0.1.14-heevc19y.mjs} +5 -5
- package/dist/chunks/{cli-0.1.12-04jw23rj.mjs → cli-0.1.14-hjktwgtk.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-hkaqyhx1.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-4syxz3pe.mjs → cli-0.1.14-hvfg45y0.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-04v3yab2.mjs → cli-0.1.14-hxvzvfr2.mjs} +3 -3
- package/dist/chunks/cli-0.1.14-j5sbzwhy.mjs +5045 -0
- package/dist/chunks/cli-0.1.14-ja2ctrem.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-m6jeef2z.mjs → cli-0.1.14-jbn4ywda.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-7xsa2bcp.mjs → cli-0.1.14-jf8019sb.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-jnfs73kb.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-4qedbzt3.mjs → cli-0.1.14-jpe9sxch.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-7mjpbm22.mjs → cli-0.1.14-k8nwm06m.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-j6hwb68p.mjs → cli-0.1.14-k9jcmxtd.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-ka0xhrv6.mjs +2 -0
- package/dist/chunks/cli-0.1.14-kcrsww4s.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-bh7jp3zk.mjs → cli-0.1.14-khtq9cgy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-j6gjfwh5.mjs → cli-0.1.14-kmsvd61a.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-zk49aaxv.mjs → cli-0.1.14-kn1f2x94.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-kpsh76mj.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-34gqc6yf.mjs → cli-0.1.14-kt6sq4nr.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-w0qbr98a.mjs → cli-0.1.14-ktz3cgwa.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-y04asmqh.mjs → cli-0.1.14-kv650aha.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-024a8zz7.mjs → cli-0.1.14-m75ce5ve.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-m7khgn2k.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-fqpxr3qb.mjs → cli-0.1.14-m7xchegb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-bhxgr018.mjs → cli-0.1.14-mgcmwvcn.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-238c85zt.mjs → cli-0.1.14-mngn74ga.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-mx9yse7m.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-ng34ay3g.mjs → cli-0.1.14-nbvvdkk2.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-830kqdpq.mjs → cli-0.1.14-nkza93de.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-nmmtd1d6.mjs +2 -0
- package/dist/chunks/cli-0.1.14-nnr43nyg.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-xj3mv67x.mjs → cli-0.1.14-nprcbhwn.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-86nmrm6g.mjs → cli-0.1.14-ntq8w1ss.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-73k5qd97.mjs → cli-0.1.14-nxphqjb4.mjs} +7 -10
- package/dist/chunks/{cli-0.1.12-8qvgy8xr.mjs → cli-0.1.14-nzsj259d.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-qe5zyvfh.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-1hv04bp7.mjs → cli-0.1.14-qn4ftczz.mjs} +1 -1
- package/dist/chunks/{cli-0.1.12-4sh0f4y1.mjs → cli-0.1.14-qyx55m6c.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-qzcceap6.mjs +20 -0
- package/dist/chunks/{cli-0.1.12-s0cwq66w.mjs → cli-0.1.14-r00mjm41.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-r46jh9af.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-c28bme4j.mjs → cli-0.1.14-r5qyt63x.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-erggrdth.mjs → cli-0.1.14-rc5yd94n.mjs} +3 -3
- package/dist/chunks/{cli-0.1.12-cxn1ke77.mjs → cli-0.1.14-rtstk94r.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-ra3sby5b.mjs → cli-0.1.14-s9m1y93w.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-sb7dm65b.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-bddm1g1s.mjs → cli-0.1.14-seq2fm2d.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-sn1rf71y.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-rwzav5h1.mjs → cli-0.1.14-stv1d0q3.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-svqkx41a.mjs +2 -0
- package/dist/chunks/cli-0.1.14-t3fga5je.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-a5h71tt8.mjs → cli-0.1.14-ta3w93yb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-t8712dbc.mjs → cli-0.1.14-tkb5t0xv.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-7da43cy1.mjs → cli-0.1.14-tqexnkmz.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-41zq3gv6.mjs → cli-0.1.14-tsth8deg.mjs} +1 -1
- package/dist/chunks/cli-0.1.14-tyv29sz9.mjs +2 -0
- package/dist/chunks/cli-0.1.14-v2acyy7r.mjs +4 -0
- package/dist/chunks/{cli-0.1.12-9gs0g8yb.mjs → cli-0.1.14-v9q1cxjy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-c47ape20.mjs → cli-0.1.14-vp1kn532.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-w3rwfr1d.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-tyt09z73.mjs → cli-0.1.14-w6nzk5dc.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-w8efvbh6.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-awb2yac7.mjs → cli-0.1.14-we6s7jfg.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-bjzb0sjt.mjs → cli-0.1.14-wgatq2fj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-k2164g7e.mjs → cli-0.1.14-whe4bxfr.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-wwehdfwx.mjs +9 -0
- package/dist/chunks/{cli-0.1.12-0xzdygm2.mjs → cli-0.1.14-wymtdw5f.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-actnmgw5.mjs → cli-0.1.14-wz5yr49j.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-a2frnpdd.mjs → cli-0.1.14-x88ypr2r.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-xp6rc33g.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-6ddq5n4e.mjs → cli-0.1.14-y2wxptpk.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-y55hrwdp.mjs +3 -0
- package/dist/chunks/{cli-0.1.12-wcdh3m4s.mjs → cli-0.1.14-y56629hj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-g728hcdr.mjs → cli-0.1.14-yagh75p5.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-ydm3fwx1.mjs +2 -0
- package/dist/chunks/cli-0.1.14-yfc7weqn.mjs +821 -0
- package/dist/chunks/{cli-0.1.12-qrx9nssg.mjs → cli-0.1.14-yphht6rx.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-kzd4y6yq.mjs → cli-0.1.14-yxce1bdc.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-yxq1tr3a.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-5pw10pf8.mjs → cli-0.1.14-z0ckw2hb.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-z8j2n955.mjs +2 -0
- package/dist/chunks/{cli-0.1.12-2fajd44n.mjs → cli-0.1.14-zjqt3r89.mjs} +2 -2
- package/dist/chunks/{cli-0.1.12-af1r644n.mjs → cli-0.1.14-zq66y0mv.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-zrmretjp.mjs +4 -0
- package/dist/chunks/cli-0.1.14-zs4vmj7z.mjs +4 -0
- package/dist/chunks/client-0.1.14-3t6sfwha.mjs +1 -0
- package/dist/chunks/color-0.1.14-65rf0ap9.mjs +1 -0
- package/dist/chunks/compact-0.1.14-mx9ng433.mjs +3 -0
- package/dist/chunks/config-0.1.14-1v5v86ax.mjs +1 -0
- package/dist/chunks/config-0.1.14-76vavy7t.mjs +1 -0
- package/dist/chunks/context-0.1.14-hyykwj83.mjs +1 -0
- package/dist/chunks/context-noninteractive-0.1.14-24qfm7b9.mjs +1 -0
- package/dist/chunks/conversation-0.1.14-mkc1cd5a.mjs +1 -0
- package/dist/chunks/{copy-0.1.12-w6tabpy0.mjs → copy-0.1.14-kp76nh7r.mjs} +1 -1
- package/dist/chunks/cost-0.1.14-3d4g5gqm.mjs +1 -0
- package/dist/chunks/createSession-0.1.14-8599rbgg.mjs +1 -0
- package/dist/chunks/desktop-0.1.14-bx4eky6b.mjs +1 -0
- package/dist/chunks/detectRepository-0.1.14-8yam7kv4.mjs +1 -0
- package/dist/chunks/detection-0.1.14-vz5bqsc0.mjs +1 -0
- package/dist/chunks/diff-0.1.14-e4pm39ee.mjs +1 -0
- package/dist/chunks/doctor-0.1.14-22fc2q8y.mjs +1 -0
- package/dist/chunks/earlyInput-0.1.14-997vtdw4.mjs +1 -0
- package/dist/chunks/effort-0.1.14-d9xmff2t.mjs +8 -0
- package/dist/chunks/environmentSelection-0.1.14-fn5p85z5.mjs +1 -0
- package/dist/chunks/environments-0.1.14-7napbg6g.mjs +1 -0
- package/dist/chunks/exit-0.1.14-v8j7rsfw.mjs +1 -0
- package/dist/chunks/export-0.1.14-qpt72paa.mjs +2 -0
- package/dist/chunks/extra-usage-0.1.14-tmwgn4dh.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-0.1.14-b2pdph8q.mjs +1 -0
- package/dist/chunks/fast-0.1.14-q1tyk3k8.mjs +1 -0
- package/dist/chunks/feedback-0.1.14-qhk5ek0b.mjs +14 -0
- package/dist/chunks/{firstPartyEventLogger-0.1.12-95kzm3md.mjs → firstPartyEventLogger-0.1.14-78y09nr6.mjs} +1 -1
- package/dist/chunks/git-0.1.14-zvsa13gk.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-0.1.14-r30t00rx.mjs +1 -0
- package/dist/chunks/{growthbook-0.1.12-4phnr6b3.mjs → growthbook-0.1.14-dcdeqgyq.mjs} +1 -1
- package/dist/chunks/{heapdump-0.1.12-m49qs4r7.mjs → heapdump-0.1.14-tj7w79dt.mjs} +1 -1
- package/dist/chunks/help-0.1.14-gk9s0stg.mjs +1 -0
- package/dist/chunks/{hookChains-0.1.12-brq8x7f7.mjs → hookChains-0.1.14-wng6tzfd.mjs} +2 -2
- package/dist/chunks/hooks-0.1.14-jy9bt7s6.mjs +79 -0
- package/dist/chunks/hooks-0.1.14-ybdbkdfh.mjs +1 -0
- package/dist/chunks/{ide-0.1.12-553mazfs.mjs → ide-0.1.14-0ar60k4r.mjs} +1 -1
- package/dist/chunks/image-processor-napi-0.1.14-p1r3vkb0.mjs +1 -0
- package/dist/chunks/index-0.1.14-071xy8v4.mjs +1 -0
- package/dist/chunks/index-0.1.14-1mttyja2.mjs +2 -0
- package/dist/chunks/index-0.1.14-272zxs9n.mjs +1 -0
- package/dist/chunks/index-0.1.14-2v6wa4p4.mjs +1 -0
- package/dist/chunks/{index-0.1.12-3nbh75ta.mjs → index-0.1.14-2x59va64.mjs} +1 -1
- package/dist/chunks/index-0.1.14-3m7vrt91.mjs +1 -0
- package/dist/chunks/index-0.1.14-4hv4f8g9.mjs +1 -0
- package/dist/chunks/index-0.1.14-8v5xwttx.mjs +10 -0
- package/dist/chunks/index-0.1.14-ac13h1t1.mjs +1 -0
- package/dist/chunks/index-0.1.14-dmbjzapt.mjs +2 -0
- package/dist/chunks/index-0.1.14-g5kkm9ng.mjs +1 -0
- package/dist/chunks/index-0.1.14-h8gc6ph5.mjs +1 -0
- package/dist/chunks/index-0.1.14-hqphn8m5.mjs +5 -0
- package/dist/chunks/index-0.1.14-ksa4vdak.mjs +9 -0
- package/dist/chunks/index-0.1.14-mzhk0gvs.mjs +1 -0
- package/dist/chunks/index-0.1.14-qrykb444.mjs +9 -0
- package/dist/chunks/index-0.1.14-qvap58wt.mjs +1 -0
- package/dist/chunks/index-0.1.14-vygpnv88.mjs +1 -0
- package/dist/chunks/index-0.1.14-wjc5jkvz.mjs +1 -0
- package/dist/chunks/{index-0.1.12-rhj8dsvk.mjs → index-0.1.14-y3aj57xa.mjs} +1 -1
- package/dist/chunks/index-0.1.14-yjw9017n.mjs +1 -0
- package/dist/chunks/index-0.1.14-zgwbnfqh.mjs +1 -0
- package/dist/chunks/initReplBridge-0.1.14-qe820gff.mjs +1 -0
- package/dist/chunks/ink-0.1.14-kxs7ygns.mjs +1 -0
- package/dist/chunks/{insights-0.1.12-93mz1f1d.mjs → insights-0.1.14-9n58d9t8.mjs} +3 -3
- package/dist/chunks/install-0.1.14-1zyjez10.mjs +1 -0
- package/dist/chunks/{install-github-app-0.1.12-qd8g81v4.mjs → install-github-app-0.1.14-kmetkgdq.mjs} +1 -1
- package/dist/chunks/install-slack-app-0.1.14-64534gsm.mjs +1 -0
- package/dist/chunks/instrumentation-0.1.14-fsgk97cp.mjs +12 -0
- package/dist/chunks/interactiveHelpers-0.1.14-ca4bp7gy.mjs +1 -0
- package/dist/chunks/keybindings-0.1.14-zk3nyh0h.mjs +2 -0
- package/dist/chunks/knowledge-0.1.14-f7w4damb.mjs +2 -0
- package/dist/chunks/loadAgentsDir-0.1.14-md40mt17.mjs +1 -0
- package/dist/chunks/loadPluginHooks-0.1.14-d998c7wf.mjs +1 -0
- package/dist/chunks/lsp-0.1.14-cks4jevz.mjs +1 -0
- package/dist/chunks/main-0.1.14-94wst05h.mjs +1 -0
- package/dist/chunks/managedEnv-0.1.14-tvr9zhbp.mjs +1 -0
- package/dist/chunks/mcp-0.1.14-3tzc0agq.mjs +1 -0
- package/dist/chunks/{mcp-0.1.12-vm3tpth6.mjs → mcp-0.1.14-dmtc9tjr.mjs} +3 -3
- package/dist/chunks/mcp-0.1.14-tepbr987.mjs +4 -0
- package/dist/chunks/mcpServer-0.1.14-0mvs3bcw.mjs +1 -0
- package/dist/chunks/mcpb-0.1.14-ffa57420.mjs +1 -0
- package/dist/chunks/memory-0.1.14-cgx518q9.mjs +3 -0
- package/dist/chunks/{mobile-0.1.12-qdtxwz76.mjs → mobile-0.1.14-bwjnmpy0.mjs} +1 -1
- package/dist/chunks/model-0.1.14-rq2dkze7.mjs +2 -0
- package/dist/chunks/model-0.1.14-zg566cz0.mjs +1 -0
- package/dist/chunks/{oauth-0.1.12-3aky0v8n.mjs → oauth-0.1.14-gftadks2.mjs} +1 -1
- package/dist/chunks/{openaiShim-0.1.12-p458t1q6.mjs → openaiShim-0.1.14-jv6416m8.mjs} +2 -2
- package/dist/chunks/{output-style-0.1.12-cahkbh9x.mjs → output-style-0.1.14-v41ce6t5.mjs} +1 -1
- package/dist/chunks/package-WSP46L7M-0.1.14-xy3ej2c4.mjs +1 -0
- package/dist/chunks/parser-0.1.14-jr4b3as9.mjs +1 -0
- package/dist/chunks/passes-0.1.14-0jjh5wg5.mjs +1 -0
- package/dist/chunks/permissions-0.1.14-hh0d709r.mjs +3 -0
- package/dist/chunks/plan-0.1.14-kxb7xax2.mjs +1 -0
- package/dist/chunks/plist-0.1.14-ssqtjjq9.mjs +1 -0
- package/dist/chunks/plugin-0.1.14-01jhhdd3.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-0.1.14-zjwy126p.mjs +1 -0
- package/dist/chunks/{plugins-0.1.12-sm87b8fm.mjs → plugins-0.1.14-4tggkexv.mjs} +2 -2
- package/dist/chunks/{print-0.1.12-8mgqmx4k.mjs → print-0.1.14-m719w2yp.mjs} +10 -10
- package/dist/chunks/privacy-settings-0.1.14-2gv7gdy1.mjs +1 -0
- package/dist/chunks/{process-0.1.12-t401v84c.mjs → process-0.1.14-vgdgd7sq.mjs} +1 -1
- package/dist/chunks/processBashCommand-0.1.14-d3xsyk5f.mjs +1 -0
- package/dist/chunks/processSlashCommand-0.1.14-7w1v93bg.mjs +9 -0
- package/dist/chunks/prompt-0.1.14-30e7kfkx.mjs +1 -0
- package/dist/chunks/prompt-0.1.14-brtd9j19.mjs +1 -0
- package/dist/chunks/prompts-0.1.14-bv9qxc0a.mjs +1 -0
- package/dist/chunks/provider-0.1.14-xs34vy3w.mjs +2 -0
- package/dist/chunks/providerProfiles-0.1.14-068kvwwx.mjs +1 -0
- package/dist/chunks/rate-limit-options-0.1.14-2ftxh15k.mjs +1 -0
- package/dist/chunks/registry-0.1.14-ad3na7g6.mjs +1 -0
- package/dist/chunks/release-notes-0.1.14-b7e554an.mjs +5 -0
- package/dist/chunks/reload-plugins-0.1.14-3w9v6nw6.mjs +2 -0
- package/dist/chunks/remote-env-0.1.14-jyc0gkhb.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-0.1.14-8kt4ffzy.mjs +1 -0
- package/dist/chunks/remoteSession-0.1.14-ppejxt7n.mjs +1 -0
- package/dist/chunks/rename-0.1.14-tx9dpgk1.mjs +1 -0
- package/dist/chunks/replBridgeHandle-0.1.14-gsqgzdev.mjs +1 -0
- package/dist/chunks/resume-0.1.14-7sda36n0.mjs +2 -0
- package/dist/chunks/{rewind-0.1.12-707se5pz.mjs → rewind-0.1.14-zba66at0.mjs} +1 -1
- package/dist/chunks/sandbox-adapter-0.1.14-k97fyzcg.mjs +1 -0
- package/dist/chunks/sandbox-toggle-0.1.14-jz6x02qp.mjs +1 -0
- package/dist/chunks/session-0.1.14-5qsfxmey.mjs +2 -0
- package/dist/chunks/sessionFileAccessHooks-0.1.14-mgx78eqm.mjs +1 -0
- package/dist/chunks/sessionStorage-0.1.14-sz2medpp.mjs +1 -0
- package/dist/chunks/setup-0.1.14-f13rnmdg.mjs +5 -0
- package/dist/chunks/sinks-0.1.14-bkyqa9eq.mjs +1 -0
- package/dist/chunks/skills-0.1.14-1vvr60ph.mjs +1 -0
- package/dist/chunks/startupProfiler-0.1.14-sabjns03.mjs +1 -0
- package/dist/chunks/state-0.1.14-rj00ry6n.mjs +1 -0
- package/dist/chunks/{stats-0.1.12-5pj1c6sr.mjs → stats-0.1.14-rr3tpwqw.mjs} +1 -1
- package/dist/chunks/status-0.1.14-d4fcn5sn.mjs +1 -0
- package/dist/chunks/stickers-0.1.14-s9x2bdhp.mjs +1 -0
- package/dist/chunks/subprocessEnv-0.1.14-spqyrvd7.mjs +1 -0
- package/dist/chunks/tasks-0.1.14-yje1cmy8.mjs +1 -0
- package/dist/chunks/teamHelpers-0.1.14-zv908fgk.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-0.1.14-natmxyx5.mjs +1 -0
- package/dist/chunks/teleport-0.1.14-np0wrxrm.mjs +1 -0
- package/dist/chunks/terminalSetup-0.1.14-dzsstmk7.mjs +1 -0
- package/dist/chunks/theme-0.1.14-202es8wd.mjs +1 -0
- package/dist/chunks/thinkback-0.1.14-k4krnzrn.mjs +1 -0
- package/dist/chunks/thinkback-play-0.1.14-nn1v84ja.mjs +1 -0
- package/dist/chunks/toolPool-0.1.14-4etecef4.mjs +1 -0
- package/dist/chunks/toolSearch-0.1.14-q506jg4k.mjs +1 -0
- package/dist/chunks/trustedDevice-0.1.14-qq8dmccd.mjs +1 -0
- package/dist/chunks/{turndown.cjs-0.1.12-9525v010.mjs → turndown.cjs-0.1.14-nw2rtcyd.mjs} +1 -1
- package/dist/chunks/{ultrareviewCommand-0.1.12-d5c4096k.mjs → ultrareviewCommand-0.1.14-9twnt5bp.mjs} +1 -1
- package/dist/chunks/{update-0.1.12-hwx0e6fq.mjs → update-0.1.14-9dhep94r.mjs} +11 -11
- package/dist/chunks/upgrade-0.1.14-4nr1rdba.mjs +1 -0
- package/dist/chunks/{upstreamproxy-0.1.12-yhnqfcyb.mjs → upstreamproxy-0.1.14-sc0x4n7b.mjs} +1 -1
- package/dist/chunks/usage-0.1.14-sbaqxx8h.mjs +1 -0
- package/dist/chunks/util-0.1.14-vfg50acy.mjs +1 -0
- package/dist/chunks/utils-0.1.14-heqqycdx.mjs +1 -0
- package/dist/chunks/vim-0.1.14-z71303w7.mjs +1 -0
- package/dist/chunks/watcher-0.1.14-h1wk07kt.mjs +1 -0
- package/dist/chunks/{wiki-0.1.12-vecp82xq.mjs → wiki-0.1.14-s3exyf45.mjs} +1 -1
- package/dist/chunks/worktree-0.1.14-5486fw5t.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-0.1.14-xn1mf8hc.mjs +1 -0
- package/dist/chunks/{wrapper-0.1.12-bpewypaz.mjs → wrapper-0.1.14-a4mesaeh.mjs} +1 -1
- package/dist/claudio-vscode.vsix +0 -0
- package/dist/cli.mjs +5 -5
- package/package.json +2 -19
- package/dist/chunks/AgentTool-0.1.12-kgypyeny.mjs +0 -1
- package/dist/chunks/App-0.1.12-t1g68ag4.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.1.12-zpw36mzg.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.12-fgvj28kh.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.1.12-y1vnt631.mjs +0 -1
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.12-n4az8bcp.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.12-j7w4pe1r.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.1.12-57crf0yg.mjs +0 -1
- package/dist/chunks/Doctor-0.1.12-52dk0t0z.mjs +0 -1
- package/dist/chunks/Grove-0.1.12-m9r696vw.mjs +0 -1
- package/dist/chunks/ITermBackend-0.1.12-85zqw000.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.1.12-9w4z4d73.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.1.12-j1jmd6jg.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.1.12-n5zwn0kh.mjs +0 -1
- package/dist/chunks/Onboarding-0.1.12-tc4trc3y.mjs +0 -1
- package/dist/chunks/ProviderManager-0.1.12-01epdnc3.mjs +0 -1
- package/dist/chunks/REPL-0.1.12-4750qvss.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.1.12-sn3hxnfq.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.1.12-p5spc4b6.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.12-562cbm4h.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.1.12-w2rds1kj.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.1.12-02kj3wef.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.1.12-qesye0kj.mjs +0 -1
- package/dist/chunks/TrustDialog-0.1.12-gr62n6f8.mjs +0 -1
- package/dist/chunks/activeProvider-0.1.12-dnn18th9.mjs +0 -1
- package/dist/chunks/add-dir-0.1.12-he4qjfr7.mjs +0 -1
- package/dist/chunks/agents-0.1.12-1dz073e3.mjs +0 -3
- package/dist/chunks/api-0.1.12-e314x4g9.mjs +0 -1
- package/dist/chunks/assistant-0.1.12-x4e2qcyw.mjs +0 -1
- package/dist/chunks/auth-0.1.12-9xrz11cs.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.1.12-z7jhyx9z.mjs +0 -1
- package/dist/chunks/branch-0.1.12-e2jz4k8j.mjs +0 -4
- package/dist/chunks/btw-0.1.12-k5gxnrq8.mjs +0 -1
- package/dist/chunks/cacache-0.1.12-mtaw8981.mjs +0 -1
- package/dist/chunks/caches-0.1.12-jvzzcs09.mjs +0 -1
- package/dist/chunks/chrome-0.1.12-6qypq8nj.mjs +0 -1
- package/dist/chunks/chromeNativeHost-0.1.12-7e2jv2nr.mjs +0 -2
- package/dist/chunks/claude-for-chrome-mcp-0.1.12-2q97mema.mjs +0 -1
- package/dist/chunks/claudemd-0.1.12-dnz21tgs.mjs +0 -1
- package/dist/chunks/clear-0.1.12-cq6vnm92.mjs +0 -1
- package/dist/chunks/clearTerminal-0.1.12-pzt74jz3.mjs +0 -1
- package/dist/chunks/cli-0.1.12-0x3cd401.mjs +0 -2
- package/dist/chunks/cli-0.1.12-19as1myk.mjs +0 -2
- package/dist/chunks/cli-0.1.12-1cn8b1tj.mjs +0 -2
- package/dist/chunks/cli-0.1.12-242der7s.mjs +0 -5036
- package/dist/chunks/cli-0.1.12-2f2v27e3.mjs +0 -2
- package/dist/chunks/cli-0.1.12-2sqxe53a.mjs +0 -2
- package/dist/chunks/cli-0.1.12-2v18rdhk.mjs +0 -2
- package/dist/chunks/cli-0.1.12-2yy1nw3s.mjs +0 -2
- package/dist/chunks/cli-0.1.12-37ezy1qg.mjs +0 -2
- package/dist/chunks/cli-0.1.12-3d2xpvk2.mjs +0 -2
- package/dist/chunks/cli-0.1.12-4gj8p030.mjs +0 -22
- package/dist/chunks/cli-0.1.12-4tanq0qc.mjs +0 -2
- package/dist/chunks/cli-0.1.12-4ys47rex.mjs +0 -2
- package/dist/chunks/cli-0.1.12-52dbx2x6.mjs +0 -4
- package/dist/chunks/cli-0.1.12-5b3j1c9c.mjs +0 -2
- package/dist/chunks/cli-0.1.12-5k9mfnz0.mjs +0 -2
- package/dist/chunks/cli-0.1.12-5p9g1vcm.mjs +0 -2
- package/dist/chunks/cli-0.1.12-5qhkbp8w.mjs +0 -2
- package/dist/chunks/cli-0.1.12-6e4e36bv.mjs +0 -16
- package/dist/chunks/cli-0.1.12-6rjh20wh.mjs +0 -2
- package/dist/chunks/cli-0.1.12-6x2mnahn.mjs +0 -2
- package/dist/chunks/cli-0.1.12-6zryzryc.mjs +0 -2
- package/dist/chunks/cli-0.1.12-74tt2500.mjs +0 -2
- package/dist/chunks/cli-0.1.12-7v8dtyx8.mjs +0 -2
- package/dist/chunks/cli-0.1.12-817sd5bc.mjs +0 -6
- package/dist/chunks/cli-0.1.12-8qm558mj.mjs +0 -2
- package/dist/chunks/cli-0.1.12-8tdckdxp.mjs +0 -2
- package/dist/chunks/cli-0.1.12-9dvxchv3.mjs +0 -2
- package/dist/chunks/cli-0.1.12-b01yrner.mjs +0 -2
- package/dist/chunks/cli-0.1.12-baxk5jyy.mjs +0 -4
- package/dist/chunks/cli-0.1.12-bmtahtv7.mjs +0 -2
- package/dist/chunks/cli-0.1.12-bnn1nrwd.mjs +0 -2
- package/dist/chunks/cli-0.1.12-bnss4rxn.mjs +0 -833
- package/dist/chunks/cli-0.1.12-c8d9vr4b.mjs +0 -2
- package/dist/chunks/cli-0.1.12-dc4e6688.mjs +0 -2
- package/dist/chunks/cli-0.1.12-dqynn0at.mjs +0 -2
- package/dist/chunks/cli-0.1.12-dtba3gm9.mjs +0 -8
- package/dist/chunks/cli-0.1.12-e262snmb.mjs +0 -3
- package/dist/chunks/cli-0.1.12-e4zeaahk.mjs +0 -2
- package/dist/chunks/cli-0.1.12-fx0zg3d9.mjs +0 -2
- package/dist/chunks/cli-0.1.12-g1yp7kdf.mjs +0 -2
- package/dist/chunks/cli-0.1.12-g4sdgt8h.mjs +0 -2
- package/dist/chunks/cli-0.1.12-g604mknq.mjs +0 -2
- package/dist/chunks/cli-0.1.12-g8mny195.mjs +0 -2
- package/dist/chunks/cli-0.1.12-h248m986.mjs +0 -2
- package/dist/chunks/cli-0.1.12-hfmv72b6.mjs +0 -2
- package/dist/chunks/cli-0.1.12-jjza3gz9.mjs +0 -2
- package/dist/chunks/cli-0.1.12-kea0zcje.mjs +0 -2
- package/dist/chunks/cli-0.1.12-kg8gb6e3.mjs +0 -2
- package/dist/chunks/cli-0.1.12-kwc7ew38.mjs +0 -2
- package/dist/chunks/cli-0.1.12-m3q5r7wd.mjs +0 -2
- package/dist/chunks/cli-0.1.12-mevh0dza.mjs +0 -2
- package/dist/chunks/cli-0.1.12-nfvtmt75.mjs +0 -2
- package/dist/chunks/cli-0.1.12-nnyca8nb.mjs +0 -2
- package/dist/chunks/cli-0.1.12-p5w2kms9.mjs +0 -4
- package/dist/chunks/cli-0.1.12-pm5cwtxh.mjs +0 -2
- package/dist/chunks/cli-0.1.12-pnh4t8c3.mjs +0 -2
- package/dist/chunks/cli-0.1.12-q1nn9teh.mjs +0 -3
- package/dist/chunks/cli-0.1.12-q8k1zvhb.mjs +0 -2
- package/dist/chunks/cli-0.1.12-qf1kw5cr.mjs +0 -2
- package/dist/chunks/cli-0.1.12-rqedb88a.mjs +0 -10
- package/dist/chunks/cli-0.1.12-rtft4mrx.mjs +0 -4
- package/dist/chunks/cli-0.1.12-ryycx3v6.mjs +0 -2
- package/dist/chunks/cli-0.1.12-sd72y750.mjs +0 -12
- package/dist/chunks/cli-0.1.12-strz382t.mjs +0 -2
- package/dist/chunks/cli-0.1.12-sxxpysy8.mjs +0 -2
- package/dist/chunks/cli-0.1.12-tadj1p4y.mjs +0 -2
- package/dist/chunks/cli-0.1.12-tae7cd7e.mjs +0 -2
- package/dist/chunks/cli-0.1.12-taqfqnag.mjs +0 -4
- package/dist/chunks/cli-0.1.12-v79j5ced.mjs +0 -2
- package/dist/chunks/cli-0.1.12-vpnp7x5c.mjs +0 -100
- package/dist/chunks/cli-0.1.12-vwcas8f6.mjs +0 -2
- package/dist/chunks/cli-0.1.12-wfbfq2mm.mjs +0 -3
- package/dist/chunks/cli-0.1.12-wwnkrzck.mjs +0 -134
- package/dist/chunks/cli-0.1.12-xanhpra7.mjs +0 -2
- package/dist/chunks/cli-0.1.12-xcxjv6qd.mjs +0 -2
- package/dist/chunks/cli-0.1.12-xfqkrd5x.mjs +0 -2
- package/dist/chunks/cli-0.1.12-y0fb5j7x.mjs +0 -2
- package/dist/chunks/cli-0.1.12-y9598sy3.mjs +0 -16
- package/dist/chunks/cli-0.1.12-ybm1kvwy.mjs +0 -4
- package/dist/chunks/cli-0.1.12-zwyec6tj.mjs +0 -2
- package/dist/chunks/client-0.1.12-f54egbjx.mjs +0 -1
- package/dist/chunks/color-0.1.12-jss6svg8.mjs +0 -1
- package/dist/chunks/compact-0.1.12-9b9fsqs5.mjs +0 -3
- package/dist/chunks/config-0.1.12-1pyte6wv.mjs +0 -1
- package/dist/chunks/config-0.1.12-ryxz4stj.mjs +0 -1
- package/dist/chunks/context-0.1.12-mnwn2xss.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.1.12-qhe1aprp.mjs +0 -1
- package/dist/chunks/conversation-0.1.12-7pvwtwdn.mjs +0 -1
- package/dist/chunks/cost-0.1.12-3ca0tbv9.mjs +0 -1
- package/dist/chunks/createSession-0.1.12-117q0efg.mjs +0 -1
- package/dist/chunks/desktop-0.1.12-3t2jc3mt.mjs +0 -1
- package/dist/chunks/detectRepository-0.1.12-sd9276rx.mjs +0 -1
- package/dist/chunks/detection-0.1.12-c0tecfvg.mjs +0 -1
- package/dist/chunks/diff-0.1.12-2ck0qzp6.mjs +0 -1
- package/dist/chunks/doctor-0.1.12-rb6t847g.mjs +0 -1
- package/dist/chunks/earlyInput-0.1.12-b94g75cb.mjs +0 -1
- package/dist/chunks/effort-0.1.12-jxkp3wwf.mjs +0 -8
- package/dist/chunks/environmentSelection-0.1.12-z9knjbv1.mjs +0 -1
- package/dist/chunks/environments-0.1.12-m9v7hag6.mjs +0 -1
- package/dist/chunks/exit-0.1.12-0fzdjpbr.mjs +0 -1
- package/dist/chunks/export-0.1.12-s6ag6jke.mjs +0 -2
- package/dist/chunks/extra-usage-0.1.12-x8gd0q32.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.1.12-pfgq5r6b.mjs +0 -1
- package/dist/chunks/fast-0.1.12-9x69m50c.mjs +0 -1
- package/dist/chunks/feedback-0.1.12-d1j49tb4.mjs +0 -14
- package/dist/chunks/git-0.1.12-7fyh5fhk.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.1.12-6em81h7g.mjs +0 -1
- package/dist/chunks/help-0.1.12-f02ce11x.mjs +0 -1
- package/dist/chunks/hooks-0.1.12-n1f9dp3r.mjs +0 -1
- package/dist/chunks/hooks-0.1.12-swtq74gm.mjs +0 -79
- package/dist/chunks/image-processor-napi-0.1.12-3mrm0vts.mjs +0 -1
- package/dist/chunks/index-0.1.12-218arkqe.mjs +0 -9
- package/dist/chunks/index-0.1.12-2ykt90tn.mjs +0 -1
- package/dist/chunks/index-0.1.12-34ew4zjx.mjs +0 -1
- package/dist/chunks/index-0.1.12-41g5mvtk.mjs +0 -7
- package/dist/chunks/index-0.1.12-77szwkm6.mjs +0 -1
- package/dist/chunks/index-0.1.12-aeeh5zvp.mjs +0 -1
- package/dist/chunks/index-0.1.12-cpv0hf3f.mjs +0 -1
- package/dist/chunks/index-0.1.12-d5w1w05d.mjs +0 -1
- package/dist/chunks/index-0.1.12-d7j83tkh.mjs +0 -1
- package/dist/chunks/index-0.1.12-hvf65cbr.mjs +0 -1
- package/dist/chunks/index-0.1.12-m0e193t8.mjs +0 -1
- package/dist/chunks/index-0.1.12-nc3z95ph.mjs +0 -5
- package/dist/chunks/index-0.1.12-r92p75vh.mjs +0 -1
- package/dist/chunks/index-0.1.12-sxh3dwcy.mjs +0 -1
- package/dist/chunks/index-0.1.12-sy5zw7vk.mjs +0 -1
- package/dist/chunks/index-0.1.12-v53nbtdb.mjs +0 -2
- package/dist/chunks/index-0.1.12-vbv1ac2q.mjs +0 -1
- package/dist/chunks/index-0.1.12-z0brwe1k.mjs +0 -2
- package/dist/chunks/index-0.1.12-zc2ayczg.mjs +0 -1
- package/dist/chunks/index-0.1.12-zqrp5tve.mjs +0 -9
- package/dist/chunks/initReplBridge-0.1.12-yyn8mbyh.mjs +0 -1
- package/dist/chunks/ink-0.1.12-qdefs6hn.mjs +0 -1
- package/dist/chunks/install-0.1.12-11xkk6vf.mjs +0 -1
- package/dist/chunks/install-slack-app-0.1.12-a44xy1pr.mjs +0 -1
- package/dist/chunks/instrumentation-0.1.12-nqv5x6q8.mjs +0 -12
- package/dist/chunks/interactiveHelpers-0.1.12-c4xec7dn.mjs +0 -1
- package/dist/chunks/keybindings-0.1.12-21jbfvfp.mjs +0 -2
- package/dist/chunks/knowledge-0.1.12-1zq0qj6h.mjs +0 -2
- package/dist/chunks/loadAgentsDir-0.1.12-1ckjzc8p.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.1.12-85daax4j.mjs +0 -1
- package/dist/chunks/logout-0.1.12-n2tbfcz8.mjs +0 -1
- package/dist/chunks/lsp-0.1.12-ks84es3y.mjs +0 -1
- package/dist/chunks/main-0.1.12-47ck3kj2.mjs +0 -1
- package/dist/chunks/managedEnv-0.1.12-vt155n3n.mjs +0 -1
- package/dist/chunks/mcp-0.1.12-93a71b1q.mjs +0 -1
- package/dist/chunks/mcp-0.1.12-rwfrrttw.mjs +0 -4
- package/dist/chunks/mcpServer-0.1.12-zwsas6ss.mjs +0 -1
- package/dist/chunks/mcpb-0.1.12-mcbd7ywh.mjs +0 -1
- package/dist/chunks/memory-0.1.12-7x2msczw.mjs +0 -3
- package/dist/chunks/model-0.1.12-15e9c8j0.mjs +0 -2
- package/dist/chunks/model-0.1.12-z2qjscwh.mjs +0 -1
- package/dist/chunks/package-HMBVQOZ4-0.1.12-3njzvqd2.mjs +0 -1
- package/dist/chunks/parser-0.1.12-jz2xz2kd.mjs +0 -1
- package/dist/chunks/passes-0.1.12-7vmawmvq.mjs +0 -1
- package/dist/chunks/permissions-0.1.12-dmp58kwy.mjs +0 -3
- package/dist/chunks/plan-0.1.12-waed49m8.mjs +0 -1
- package/dist/chunks/plist-0.1.12-65r770yt.mjs +0 -1
- package/dist/chunks/plugin-0.1.12-j30rqvv5.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.1.12-5bp08b06.mjs +0 -1
- package/dist/chunks/privacy-settings-0.1.12-9drzsgkz.mjs +0 -1
- package/dist/chunks/processBashCommand-0.1.12-3s8a2x65.mjs +0 -1
- package/dist/chunks/processSlashCommand-0.1.12-m9sh3sjt.mjs +0 -9
- package/dist/chunks/prompt-0.1.12-786vk11a.mjs +0 -1
- package/dist/chunks/prompt-0.1.12-fg4npvax.mjs +0 -1
- package/dist/chunks/prompts-0.1.12-h3xd9wvy.mjs +0 -1
- package/dist/chunks/provider-0.1.12-wrfpbx8a.mjs +0 -2
- package/dist/chunks/providerProfiles-0.1.12-3fp9n85w.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.1.12-dx2886b6.mjs +0 -1
- package/dist/chunks/registry-0.1.12-btwd6z61.mjs +0 -1
- package/dist/chunks/release-notes-0.1.12-dwzs8z2c.mjs +0 -5
- package/dist/chunks/reload-plugins-0.1.12-ec88j31s.mjs +0 -2
- package/dist/chunks/remote-env-0.1.12-w15618dm.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.1.12-c0y46zw8.mjs +0 -1
- package/dist/chunks/remoteSession-0.1.12-npxn0mje.mjs +0 -1
- package/dist/chunks/rename-0.1.12-sbes9wm3.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.1.12-2jqj7bby.mjs +0 -1
- package/dist/chunks/resume-0.1.12-9vpmw2hg.mjs +0 -2
- package/dist/chunks/sandbox-adapter-0.1.12-htfmfp9m.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.1.12-qq2yf1ta.mjs +0 -1
- package/dist/chunks/session-0.1.12-2xgt0x74.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-0.1.12-xpxt6bqs.mjs +0 -1
- package/dist/chunks/sessionStorage-0.1.12-7s6eezdt.mjs +0 -1
- package/dist/chunks/setup-0.1.12-2kjx6mnf.mjs +0 -5
- package/dist/chunks/sinks-0.1.12-qvx26vtt.mjs +0 -1
- package/dist/chunks/skills-0.1.12-sh637gsv.mjs +0 -1
- package/dist/chunks/startupProfiler-0.1.12-n3fce9wg.mjs +0 -1
- package/dist/chunks/state-0.1.12-e374v6h8.mjs +0 -1
- package/dist/chunks/status-0.1.12-qphx08h4.mjs +0 -1
- package/dist/chunks/stickers-0.1.12-dksexsqf.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.1.12-sbpfvs29.mjs +0 -1
- package/dist/chunks/tasks-0.1.12-268nn2c6.mjs +0 -1
- package/dist/chunks/teamHelpers-0.1.12-3trvxmmz.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.1.12-28s4rsx4.mjs +0 -1
- package/dist/chunks/teleport-0.1.12-zz9z0w99.mjs +0 -1
- package/dist/chunks/terminalSetup-0.1.12-xf61sxh6.mjs +0 -1
- package/dist/chunks/theme-0.1.12-3rgm5yr1.mjs +0 -1
- package/dist/chunks/thinkback-0.1.12-sf0y9d2d.mjs +0 -1
- package/dist/chunks/thinkback-play-0.1.12-vyyv42tm.mjs +0 -1
- package/dist/chunks/toolPool-0.1.12-tyqns5jv.mjs +0 -1
- package/dist/chunks/toolSearch-0.1.12-k91edc7b.mjs +0 -1
- package/dist/chunks/trustedDevice-0.1.12-w1scr51x.mjs +0 -1
- package/dist/chunks/upgrade-0.1.12-zhqgygsd.mjs +0 -1
- package/dist/chunks/usage-0.1.12-g40wd0mq.mjs +0 -1
- package/dist/chunks/util-0.1.12-qdejkkj5.mjs +0 -1
- package/dist/chunks/utils-0.1.12-3f08ztd2.mjs +0 -1
- package/dist/chunks/vim-0.1.12-z78k9k65.mjs +0 -1
- package/dist/chunks/watcher-0.1.12-pkwq5a2d.mjs +0 -1
- package/dist/chunks/worktree-0.1.12-a1mh6hjt.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.1.12-amrewbka.mjs +0 -1
- /package/dist/chunks/{cli-0.1.12-tvawkeks.mjs → cli-0.1.14-cahvg3jq.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{_5 as I,d6 as D,j8 as v,n8 as F}from"./cli-0.1.14-2f7s5xbd.mjs";import"./cli-0.1.14-kmsvd61a.mjs";import"./cli-0.1.14-cdby401e.mjs";import"./cli-0.1.14-9vc52dnj.mjs";import"./cli-0.1.14-442a367x.mjs";import"./cli-0.1.14-z8j2n955.mjs";import"./cli-0.1.14-mgcmwvcn.mjs";import"./cli-0.1.14-16jrehc2.mjs";import{yea as M,zea as N}from"./cli-0.1.14-t3fga5je.mjs";import{Xea as w,cfa as H,efa as E,ifa as P,mfa as G,qfa as f,wfa as _,zfa as j}from"./cli-0.1.14-2mzb5ath.mjs";import"./cli-0.1.14-s9m1y93w.mjs";import"./cli-0.1.14-whe4bxfr.mjs";import{mla as k,vha as O}from"./cli-0.1.14-r46jh9af.mjs";import"./cli-0.1.14-akz49g5v.mjs";import{bma as U}from"./cli-0.1.14-qn4ftczz.mjs";import{createWriteStream as b,writeFileSync as h}from"fs";import{readdir as S,readFile as l,writeFile as c}from"fs/promises";import{join as R}from"path";import{pipeline as d}from"stream/promises";import{getHeapSnapshot as m,getHeapSpaceStatistics as u,getHeapStatistics as n}from"v8";async function g(z,A=0){let $=process.memoryUsage(),x=n(),Q=process.resourceUsage(),T=process.uptime(),X;try{X=u()}catch{}let Y=process._getActiveHandles().length,q=process._getActiveRequests().length,J;try{J=(await S("/proc/self/fd")).length}catch{}let V;try{V=await l("/proc/self/smaps_rollup","utf8")}catch{}let C=$.rss-$.heapUsed,B=T>0?$.rss/T:0,W=B*3600/1048576,K=[];if(x.number_of_detached_contexts>0)K.push(`${x.number_of_detached_contexts} detached context(s) - possible iframe/context leak`);if(Y>100)K.push(`${Y} active handles - possible timer/socket leak`);if(C>$.heapUsed)K.push("Native memory > heap - leak may be in native addons (node-pty, sharp, etc.)");if(W>100)K.push(`High memory growth rate: ${W.toFixed(1)} MB/hour`);if(J&&J>500)K.push(`${J} open file descriptors - possible file/socket leak`);return{timestamp:new Date().toISOString(),sessionId:O(),trigger:z,dumpNumber:A,uptimeSeconds:T,memoryUsage:{heapUsed:$.heapUsed,heapTotal:$.heapTotal,external:$.external,arrayBuffers:$.arrayBuffers,rss:$.rss},memoryGrowthRate:{bytesPerSecond:B,mbPerHour:W},v8HeapStats:{heapSizeLimit:x.heap_size_limit,mallocedMemory:x.malloced_memory,peakMallocedMemory:x.peak_malloced_memory,detachedContexts:x.number_of_detached_contexts,nativeContexts:x.number_of_native_contexts},v8HeapSpaces:X?.map((Z)=>({name:Z.space_name,size:Z.space_size,used:Z.space_used_size,available:Z.space_available_size})),resourceUsage:{maxRSS:Q.maxRSS*1024,userCPUTime:Q.userCPUTime,systemCPUTime:Q.systemCPUTime},activeHandles:Y,activeRequests:q,openFileDescriptors:J,analysis:{potentialLeaks:K,recommendation:K.length>0?`WARNING: ${K.length} potential leak indicator(s) found. See potentialLeaks array.`:"No obvious leak indicators. Check heap snapshot for retained objects."},smapsRollup:V,platform:process.platform,nodeVersion:process.version,ccVersion:"99.0.0"}}async function y(z="manual",A=0){try{let $=O(),x=await g(z,A),Q=(C)=>(C/1024/1024/1024).toFixed(3);_(`[HeapDump] Memory state:
|
|
2
2
|
heapUsed: ${Q(x.memoryUsage.heapUsed)} GB (in snapshot)
|
|
3
3
|
external: ${Q(x.memoryUsage.external)} GB (NOT in snapshot)
|
|
4
4
|
rss: ${Q(x.memoryUsage.rss)} GB (total process)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ye as j,Ze as Ar}from"./cli-0.1.14-kcrsww4s.mjs";import{Lf as Fr,Mf as T,Of as C,Pf as i}from"./cli-0.1.14-71sp86jb.mjs";import"./cli-0.1.14-zq66y0mv.mjs";import{cL as Wr,iv as c,jv as qr,oL as d,pL as n,uj as rr,vj as Qr}from"./cli-0.1.14-j5sbzwhy.mjs";import"./cli-0.1.14-k8nwm06m.mjs";import"./cli-0.1.14-3yj4dkmn.mjs";import"./cli-0.1.14-nmmtd1d6.mjs";import"./cli-0.1.14-ntq8w1ss.mjs";import"./cli-0.1.14-7zz7abpc.mjs";import"./cli-0.1.14-c4v2kfdn.mjs";import"./cli-0.1.14-ch9c9c38.mjs";import"./cli-0.1.14-25ta9abj.mjs";import"./cli-0.1.14-86gckvrm.mjs";import"./cli-0.1.14-w3rwfr1d.mjs";import"./cli-0.1.14-edjtfw4q.mjs";import"./cli-0.1.14-4mde8z7h.mjs";import{ER as pr,FR as Zr}from"./cli-0.1.14-dqads3y3.mjs";import"./cli-0.1.14-ta3w93yb.mjs";import"./cli-0.1.14-zjqt3r89.mjs";import"./cli-0.1.14-aky5tegx.mjs";import{ES as fr,GS as Xr,IS as vr,LS as hr,OS as er,PS as zr,qS as s,rS as Jr}from"./cli-0.1.14-w6nzk5dc.mjs";import{AU as U,CU as A,GU as $,QS as H,fV as _}from"./cli-0.1.14-seq2fm2d.mjs";import"./cli-0.1.14-qyx55m6c.mjs";import"./cli-0.1.14-fspxpmh7.mjs";import"./cli-0.1.14-as1s0b0t.mjs";import"./cli-0.1.14-3scecgzx.mjs";import{DV as g,EV as f,FV as J,GV as D}from"./cli-0.1.14-hjktwgtk.mjs";import"./cli-0.1.14-harz1d9d.mjs";import"./cli-0.1.14-jf8019sb.mjs";import"./cli-0.1.14-d4zkffre.mjs";import"./cli-0.1.14-1xkst5wv.mjs";import"./cli-0.1.14-cp2pada5.mjs";import"./cli-0.1.14-0x3m90bk.mjs";import"./cli-0.1.14-jpe9sxch.mjs";import"./cli-0.1.14-59axynr8.mjs";import"./cli-0.1.14-71m91842.mjs";import"./cli-0.1.14-1g5jq0j8.mjs";import"./cli-0.1.14-0ctjta81.mjs";import"./cli-0.1.14-77ha4n58.mjs";import"./cli-0.1.14-wz5yr49j.mjs";import"./cli-0.1.14-kpsh76mj.mjs";import"./cli-0.1.14-5brvxst8.mjs";import"./cli-0.1.14-a6kwmqhz.mjs";import"./cli-0.1.14-rc5yd94n.mjs";import"./cli-0.1.14-jbn4ywda.mjs";import"./cli-0.1.14-wgatq2fj.mjs";import"./cli-0.1.14-adz0gnzy.mjs";import"./cli-0.1.14-stv1d0q3.mjs";import"./cli-0.1.14-heevc19y.mjs";import"./cli-0.1.14-kv650aha.mjs";import"./cli-0.1.14-2f7s5xbd.mjs";import"./cli-0.1.14-kmsvd61a.mjs";import"./cli-0.1.14-cdby401e.mjs";import"./cli-0.1.14-9vc52dnj.mjs";import"./cli-0.1.14-442a367x.mjs";import"./cli-0.1.14-z8j2n955.mjs";import{Wda as u,gea as Yr}from"./cli-0.1.14-mgcmwvcn.mjs";import"./cli-0.1.14-16jrehc2.mjs";import"./cli-0.1.14-t3fga5je.mjs";import"./cli-0.1.14-2mzb5ath.mjs";import"./cli-0.1.14-s9m1y93w.mjs";import"./cli-0.1.14-whe4bxfr.mjs";import"./cli-0.1.14-r46jh9af.mjs";import"./cli-0.1.14-akz49g5v.mjs";import{Zla as o,bma as O}from"./cli-0.1.14-qn4ftczz.mjs";function l(v){let r=b.c(14),{commands:p,maxHeight:k,columns:y,title:R,onCancel:F,emptyMessage:G}=v,{headerFocused:Z,focusHeader:e}=C(),Y=Math.max(1,y-10),q=Math.max(1,Math.floor((k-10)/2)),h;if(r[0]!==p||r[1]!==Y){let E=new Set,w;if(r[3]!==Y)w=(W)=>({label:`/${W.name}`,value:W.name,description:u(d(W),Y,!0)}),r[3]=Y,r[4]=w;else w=r[4];h=p.filter((W)=>{if(E.has(W.name))return!1;return E.add(W.name),!0}).sort(wr).map(w),r[0]=p,r[1]=Y,r[2]=h}else h=r[2];let Q=h,M;if(r[5]!==p.length||r[6]!==G||r[7]!==e||r[8]!==Z||r[9]!==F||r[10]!==Q||r[11]!==R||r[12]!==q)M=f(U,{flexDirection:"column",paddingY:1,children:p.length===0&&G?f(A,{dimColor:!0,children:G}):J(g,{children:[f(A,{children:R}),f(U,{marginTop:1,children:f(c,{options:Q,visibleOptionCount:q,onCancel:F,disableSelection:!0,hideIndexes:!0,layout:"compact-vertical",onUpFromFirstItem:e,isDisabled:Z})})]})}),r[5]=p.length,r[6]=G,r[7]=e,r[8]=Z,r[9]=F,r[10]=Q,r[11]=R,r[12]=q,r[13]=M;else M=r[13];return M}function wr(v,r){return v.name.localeCompare(r.name)}var b;var a=O(()=>{n();_();Yr();qr();i();D();b=o(H(),1)});function m(){let v=x.c(2),r;if(v[0]===Symbol.for("react.memo_cache_sentinel"))r=f(U,{children:f(A,{children:"Claude understands your codebase, makes edits with your permission, and executes commands — right from your terminal."})}),v[0]=r;else r=v[0];let p;if(v[1]===Symbol.for("react.memo_cache_sentinel"))p=J(U,{flexDirection:"column",paddingY:1,gap:1,children:[r,J(U,{flexDirection:"column",children:[f(U,{children:f(A,{bold:!0,children:"Shortcuts"})}),f(j,{gap:2,fixedWidth:!0})]})]}),v[1]=p;else p=v[1];return p}var x;var t=O(()=>{_();Ar();D();x=o(H(),1)});function Rr(v){let r=Mr.c(44),{onClose:p,commands:k}=v,{rows:y,columns:R}=s(),F=Math.floor(y/2),G=vr(),Z;if(r[0]!==p)Z=()=>p("Help dialog dismissed",{display:"system"}),r[0]=p,r[1]=Z;else Z=r[1];let e=Z,Y;if(r[2]===Symbol.for("react.memo_cache_sentinel"))Y={context:"Help"},r[2]=Y;else Y=r[2];fr("help:dismiss",e,Y);let q=pr(e),h=rr("help:dismiss","Help","esc"),Q,M,E;if(r[3]!==k){let L=Wr();M=k.filter((B)=>L.has(B.name)&&!B.isHidden);let X;if(r[7]===Symbol.for("react.memo_cache_sentinel"))X=[],r[7]=X;else X=r[7];Q=X,E=k.filter((B)=>!L.has(B.name)&&!B.isHidden),r[3]=k,r[4]=Q,r[5]=M,r[6]=E}else Q=r[4],M=r[5],E=r[6];let w=E,W;if(r[8]===Symbol.for("react.memo_cache_sentinel"))W=f(T,{title:"general",children:f(m,{})},"general"),r[8]=W;else W=r[8];let z;if(r[9]!==Q||r[10]!==M||r[11]!==e||r[12]!==R||r[13]!==w||r[14]!==F){z=[W];let L;if(r[16]!==M||r[17]!==e||r[18]!==R||r[19]!==F)L=f(T,{title:"commands",children:f(l,{commands:M,maxHeight:F,columns:R,title:"Browse default commands:",onCancel:e})},"commands"),r[16]=M,r[17]=e,r[18]=R,r[19]=F,r[20]=L;else L=r[20];z.push(L);let X;if(r[21]!==e||r[22]!==R||r[23]!==w||r[24]!==F)X=f(T,{title:"custom-commands",children:f(l,{commands:w,maxHeight:F,columns:R,title:"Browse custom commands:",emptyMessage:"No custom commands found",onCancel:e})},"custom"),r[21]=e,r[22]=R,r[23]=w,r[24]=F,r[25]=X;else X=r[25];z.push(X),r[9]=Q,r[10]=M,r[11]=e,r[12]=R,r[13]=w,r[14]=F,r[15]=z}else z=r[15];let S=G?void 0:F,K;if(r[31]!==z)K=f(Fr,{title:"Claude Code v99.0.0",color:"professionalBlue",defaultTab:"general",children:z}),r[31]=z,r[32]=K;else K=r[32];let I;if(r[33]===Symbol.for("react.memo_cache_sentinel"))I=f(U,{marginTop:1,children:J(A,{children:["For more help:"," ",f($,{url:"https://code.claude.com/docs/en/overview"})]})}),r[33]=I;else I=r[33];let N;if(r[34]!==h||r[35]!==q.keyName||r[36]!==q.pending)N=f(U,{marginTop:1,children:f(A,{dimColor:!0,children:q.pending?J(g,{children:["Press ",q.keyName," again to exit"]}):J(A,{italic:!0,children:[h," to cancel"]})})}),r[34]=h,r[35]=q.keyName,r[36]=q.pending,r[37]=N;else N=r[37];let V;if(r[38]!==K||r[39]!==N)V=J(er,{color:"professionalBlue",children:[K,I,N]}),r[38]=K,r[39]=N,r[40]=V;else V=r[40];let P;if(r[41]!==S||r[42]!==V)P=f(U,{flexDirection:"column",height:S,children:V}),r[41]=S,r[42]=V,r[43]=P;else P=r[43];return P}var Mr;var Ur=O(()=>{Zr();Qr();n();hr();Jr();_();Xr();zr();i();a();t();D();Mr=o(H(),1)});var dr=async(v,{options:{commands:r}})=>{return f(Rr,{commands:r,onClose:v})};var Dr=O(()=>{Ur();D()});Dr();export{dr as call};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Gu as a,Ju as Ej,Ss as t,gt as Cj}from"./cli-0.1.14-j5sbzwhy.mjs";import"./cli-0.1.14-k8nwm06m.mjs";import"./cli-0.1.14-3yj4dkmn.mjs";import"./cli-0.1.14-nmmtd1d6.mjs";import"./cli-0.1.14-ntq8w1ss.mjs";import"./cli-0.1.14-7zz7abpc.mjs";import"./cli-0.1.14-c4v2kfdn.mjs";import{jQ as jj,yQ as Kj}from"./cli-0.1.14-ch9c9c38.mjs";import"./cli-0.1.14-25ta9abj.mjs";import"./cli-0.1.14-86gckvrm.mjs";import"./cli-0.1.14-w3rwfr1d.mjs";import"./cli-0.1.14-edjtfw4q.mjs";import{BR as Wj,rR as d,sR as n,uR as e}from"./cli-0.1.14-4mde8z7h.mjs";import"./cli-0.1.14-dqads3y3.mjs";import"./cli-0.1.14-ta3w93yb.mjs";import"./cli-0.1.14-zjqt3r89.mjs";import"./cli-0.1.14-aky5tegx.mjs";import"./cli-0.1.14-w6nzk5dc.mjs";import"./cli-0.1.14-seq2fm2d.mjs";import"./cli-0.1.14-qyx55m6c.mjs";import"./cli-0.1.14-fspxpmh7.mjs";import"./cli-0.1.14-as1s0b0t.mjs";import"./cli-0.1.14-3scecgzx.mjs";import"./cli-0.1.14-hjktwgtk.mjs";import"./cli-0.1.14-harz1d9d.mjs";import"./cli-0.1.14-jf8019sb.mjs";import"./cli-0.1.14-d4zkffre.mjs";import"./cli-0.1.14-1xkst5wv.mjs";import"./cli-0.1.14-cp2pada5.mjs";import{tW as M,uW as kj}from"./cli-0.1.14-0x3m90bk.mjs";import"./cli-0.1.14-jpe9sxch.mjs";import"./cli-0.1.14-59axynr8.mjs";import"./cli-0.1.14-71m91842.mjs";import"./cli-0.1.14-1g5jq0j8.mjs";import"./cli-0.1.14-0ctjta81.mjs";import"./cli-0.1.14-77ha4n58.mjs";import"./cli-0.1.14-wz5yr49j.mjs";import"./cli-0.1.14-kpsh76mj.mjs";import"./cli-0.1.14-5brvxst8.mjs";import"./cli-0.1.14-a6kwmqhz.mjs";import"./cli-0.1.14-rc5yd94n.mjs";import"./cli-0.1.14-jbn4ywda.mjs";import"./cli-0.1.14-wgatq2fj.mjs";import"./cli-0.1.14-adz0gnzy.mjs";import"./cli-0.1.14-stv1d0q3.mjs";import"./cli-0.1.14-heevc19y.mjs";import"./cli-0.1.14-kv650aha.mjs";import{A9 as Bj,F7 as i,G7 as _j,J5 as c,L5 as Yj,q8 as r,v8 as bj,y9 as o}from"./cli-0.1.14-2f7s5xbd.mjs";import{oca as H,qca as Zj}from"./cli-0.1.14-kmsvd61a.mjs";import"./cli-0.1.14-cdby401e.mjs";import"./cli-0.1.14-9vc52dnj.mjs";import"./cli-0.1.14-442a367x.mjs";import"./cli-0.1.14-z8j2n955.mjs";import"./cli-0.1.14-mgcmwvcn.mjs";import"./cli-0.1.14-16jrehc2.mjs";import{yea as K,zea as $j}from"./cli-0.1.14-t3fga5je.mjs";import{Zea as l,cfa as Vj,wfa as w,zfa as Xj}from"./cli-0.1.14-2mzb5ath.mjs";import{Dfa as s,Nfa as Tj}from"./cli-0.1.14-s9m1y93w.mjs";import"./cli-0.1.14-whe4bxfr.mjs";import{Bha as u,mla as Qj}from"./cli-0.1.14-r46jh9af.mjs";import"./cli-0.1.14-akz49g5v.mjs";import{bma as Pj,cma as I}from"./cli-0.1.14-qn4ftczz.mjs";import{createHash as qj}from"crypto";import{statSync as Mj}from"fs";import{join as Aj,resolve as Sj}from"path";function V(j){return j}function m(j){return structuredClone(j)}function k(){return{version:1,enabled:!1,maxChainDepth:Fj,defaultCooldownMs:Gj,defaultDedupWindowMs:Hj,rules:[]}}function gj(){let j=process.env[yj];if(j===void 0)return!1;return s(j)}function uj(j){let q=j||process.env[Dj];if(q)return Sj(v(),q);return Aj(v(),Ij)}function v(){try{return u()}catch{return process.cwd()}}function sj(j){if(j.trigger.outcomes)return j.trigger.outcomes;if(j.trigger.outcome)return[j.trigger.outcome];return}function _(j){return j??{}}function Y(j,q){for(let G of q){let A=j[G];if(typeof A==="string"&&A.length>0)return A}return}function lj(j,q){let G=q.split(".").filter(Boolean),A=j;for(let F of G){if(typeof A!=="object"||A===null)return;A=A[F]}return A}function cj(j,q){if(!j)return!0;let G=_(q.payload);if(j.toolNames&&j.toolNames.length>0){let A=Y(G,["tool_name","toolName"]);if(!A||!j.toolNames.includes(A))return!1}if(j.taskStatuses&&j.taskStatuses.length>0){let A=Y(G,["task_status","taskStatus","status"]);if(!A||!j.taskStatuses.includes(A))return!1}if(j.errorIncludes&&j.errorIncludes.length>0){let A=Y(G,["error","reason","message"])??"";if(!j.errorIncludes.some((J)=>A.toLowerCase().includes(J.toLowerCase())))return!1}if(j.eventFieldEquals){for(let[A,F]of Object.entries(j.eventFieldEquals))if(lj(G,A)!==F)return!1}return!0}function ij(j,q){let G=[];for(let A of j){if(A.enabled===!1)continue;if(A.trigger.event!==q.eventName)continue;let F=sj(A);if(F&&F.length>0&&!F.includes(q.outcome))continue;if(!cj(A.condition,q))continue;G.push({rule:A})}return G}function rj(j){let q=uj(j?.pathOverride);if(!gj())return{config:k(),path:q,exists:!1,fromCache:!1};let G;try{let P=Mj(q);G={mtimeMs:P.mtimeMs,size:P.size}}catch(P){if(l(P)!=="ENOENT")w(`[hook-chains] Failed to stat config at ${q}: ${String(P)}`);else if(Z?.path===q)Z=null;return{config:k(),path:q,exists:!1,fromCache:!1}}if(!j?.forceReload&&Z&&Z.path===q&&Z.mtimeMs===G.mtimeMs&&Z.size===G.size&&Date.now()-Z.loadedAtMs<=Uj)return{config:m(Z.config),path:q,exists:!0,fromCache:!0};let A;try{A=i(q)}catch(P){return{config:k(),path:q,exists:!0,fromCache:!1,error:`Failed to read hook chain config file: ${String(P)}`}}let F=r(A,!1);if(!F)return{config:k(),path:q,exists:!0,fromCache:!1,error:"Invalid JSON in hook chain config file."};let J=vj.safeParse(F);if(!J.success){let P=J.error.issues.map((Q)=>Q.message).join("; ");return{config:k(),path:q,exists:!0,fromCache:!1,error:P}}let O="hookChains"in J.data?J.data.hookChains:J.data;return Z={path:q,mtimeMs:G.mtimeMs,size:G.size,loadedAtMs:Date.now(),config:O},{config:m(O),path:q,exists:!0,fromCache:!1}}function f(j,q){if(j===null||j===void 0)return j;if(typeof j==="string"||typeof j==="number"||typeof j==="boolean")return j;if(Array.isArray(j))return j.map((G)=>f(G,q));if(typeof j==="object"){if(q.has(j))return"[Circular]";q.add(j);let G=j,A={};for(let F of Object.keys(G).sort())A[F]=f(G[F],q);return A}return String(j)}function U(j){try{return JSON.stringify(f(j,new WeakSet))}catch{return"[unserializable]"}}function oj(j){let q=_(j.payload),G={eventName:j.eventName,outcome:j.outcome,taskId:Y(q,["task_id","taskId"]),toolUseId:Y(q,["tool_use_id","toolUseId"]),sessionId:Y(q,["session_id","sessionId"]),error:Y(q,["error","reason"])};return qj("sha1").update(U({coreIdentity:G,payload:q})).digest("hex")}function dj(j){for(let[q,G]of B.entries())if(G<=j)B.delete(q);for(let[q,G]of b.entries())if(G<=j)b.delete(q);g(B,fj),g(b,zj)}function g(j,q){if(j.size<=q)return;let G=[...j.entries()].sort((F,J)=>F[1]-J[1]),A=j.size-q;for(let F=0;F<A;F++){let J=G[F];if(!J)break;j.delete(J[0])}}function p(j,q){return j.replace(/\$\{([A-Z0-9_]+)\}|\$([A-Z0-9_]+)/g,(G,A,F)=>{return q[A||F]??""})}function nj(j,q,G){let A=_(G.payload),F=U(A),J=Y(A,["task_subject","taskSubject"]),O=Y(A,["task_description","taskDescription"]),P=Y(A,["error","reason"]),Q={EVENT_NAME:G.eventName,OUTCOME:G.outcome,RULE_ID:q.id,TASK_SUBJECT:J??"",TASK_DESCRIPTION:O??"",ERROR:P??"",PAYLOAD_JSON:F};if(j.promptTemplate)return p(j.promptTemplate,Q);let X=["You are a fallback recovery agent triggered by a Self-Healing Hook Chain rule.",`Event: ${G.eventName}`,`Outcome: ${G.outcome}`,`Rule ID: ${q.id}`];if(J)X.push(`Task subject: ${J}`);if(O)X.push(`Task description: ${O}`);if(P)X.push(`Failure details: ${P}`);return X.push("Goal: perform a minimal, safe recovery attempt and report what changed, what failed, and recommended next steps."),X.push(`Failure payload JSON: ${F}`),X.join(`
|
|
2
2
|
`)}function ej(j,q,G){let A=_(G.payload),F=U(A),J={EVENT_NAME:G.eventName,OUTCOME:G.outcome,RULE_ID:q.id,PAYLOAD_JSON:F,ERROR:Y(A,["error","reason"])??"",TASK_SUBJECT:Y(A,["task_subject","taskSubject"])??"",TASK_ID:Y(A,["task_id","taskId"])??""},O=j.summary?p(j.summary,J):`Hook chain ${q.id} triggered (${G.eventName}/${G.outcome})`,P=j.messageTemplate?p(j.messageTemplate,J):["Self-healing hook chain triggered.",`Rule: ${q.id}`,`Event: ${G.eventName}`,`Outcome: ${G.outcome}`,`Error: ${J.ERROR||"n/a"}`,`Task: ${J.TASK_SUBJECT||J.TASK_ID||"n/a"}`,`Payload: ${F}`].join(`
|
|
3
|
-
`);return{summary:O,body:P}}async function tj(j){let{action:q,rule:G,event:A,runtime:F}=j;if(F.signal?.aborted)return{status:"skipped",reason:"aborted"};if(!F.onSpawnFallbackAgent)return{status:"failed",reason:"No fallback agent launcher is registered in runtime context"};let J=_(A.payload),O=q.description??`Fallback recovery: ${A.eventName} (${A.outcome})`,P={ruleId:G.id,eventName:A.eventName,outcome:A.outcome,description:O,prompt:nj(q,G,A),agentType:q.agentType,model:q.model,runInBackground:!0,payload:J,signal:F.signal};try{let Q=await F.onSpawnFallbackAgent(P);if(!Q.launched)return{status:"failed",reason:Q.reason??"Fallback launcher declined to start an agent"};return{status:"executed",detail:Q.agentId?`Fallback agent launched: ${Q.agentId}`:"Fallback agent launched"}}catch(Q){return{status:"failed",reason:`Fallback agent launch failed: ${String(Q)}`}}}function aj(j,q,G){if(j.teamName)return j.teamName;if(q.teamName)return q.teamName;let A=_(G.payload),F=Y(A,["team_name","teamName"]);if(F)return F;return n()}function jq(j,q,G){if(j&&j.length>0){if(j.includes("*"))return q.filter((F)=>F!==G);let A=new Set(q);return j.filter((F)=>A.has(F))}return q.filter((A)=>A!==G)}async function qq(j){let{action:q,rule:G,event:A,runtime:F}=j;if(F.signal?.aborted)return{status:"skipped",reason:"aborted"};let J=_(A.payload),O=aj(q,F,A);if(!O)return{status:"skipped",reason:"No team context is available for notify_team action"};let P=F.senderName??d()??"self-healing-mesh",Q=F.senderColor??e(),{summary:X,body:N}=ej(q,G,A),S=await jj(O);if(!S)return{status:"skipped",reason:`Team file not found for team ${O}`};let W=S.members.map((L)=>L.name),T=jq(q.recipients,W,P);if(T.length===0)return{status:"skipped",reason:"No eligible recipients for notify_team action"};if(F.onNotifyTeam)try{let L=await F.onNotifyTeam({ruleId:G.id,eventName:A.eventName,outcome:A.outcome,teamName:O,recipients:T,summary:X,message:N,payload:J,signal:F.signal});if(!L.sent)return{status:"skipped",reason:L.reason??"notify_team callback declined to send"};return{status:"executed",detail:`Team notification sent to ${L.recipientCount??T.length} recipient(s)`}}catch(L){return{status:"failed",reason:`notify_team callback failed: ${String(L)}`}}for(let L of T)await t(L,{from:P,text:N,summary:X,color:Q,timestamp:new Date().toISOString()},O);return{status:"executed",detail:`Team notification sent to ${T.length} recipient(s)`}}async function Aq(j){let{action:q,rule:G,event:A,runtime:F}=j;if(F.signal?.aborted)return{status:"skipped",reason:"aborted"};if(!a("allow_remote_sessions"))return{status:"skipped",reason:"Remote sessions are blocked by policy"};if(F.onWarmRemoteCapacity)try{let J=await F.onWarmRemoteCapacity({ruleId:G.id,eventName:A.eventName,outcome:A.outcome,payload:_(A.payload),signal:F.signal,createDefaultEnvironmentIfMissing:q.createDefaultEnvironmentIfMissing});if(!J.warmed)return{status:"skipped",reason:J.reason??"Warm remote callback declined"};return{status:"executed",detail:J.environmentId?`Remote capacity warmed for environment ${J.environmentId}`:"Remote capacity warm-up completed"}}catch(J){return{status:"failed",reason:`warm_remote_capacity callback failed: ${String(J)}`}}try{let{getReplBridgeHandle:J}=await import("./replBridgeHandle-0.1.12-2jqj7bby.mjs");if(!J())return{status:"skipped",reason:"Bridge is not active; warm_remote_capacity is a safe no-op"}}catch{return{status:"skipped",reason:"Bridge status unavailable; warm_remote_capacity skipped"}}try{let[{checkBackgroundRemoteSessionEligibility:J},{getEnvironmentSelectionInfo:O},P]=await Promise.all([import("./remoteSession-0.1.12-npxn0mje.mjs"),import("./environmentSelection-0.1.12-z9knjbv1.mjs"),import("./environments-0.1.12-m9v7hag6.mjs")]),Q=await J({skipBundle:!0});if(Q.length>0)return{status:"skipped",reason:`Remote warm-up preconditions failed: ${Q.map((N)=>N.type).join(", ")}`};let X=await O();if(!X.selectedEnvironment&&q.createDefaultEnvironmentIfMissing===!0){let N=await P.createDefaultCloudEnvironment("Claudio Self-Healing Warmup");X={availableEnvironments:[N],selectedEnvironment:N,selectedEnvironmentSource:null}}if(!X.selectedEnvironment)return{status:"skipped",reason:"No eligible remote environment available for warm-up"};return await P.fetchEnvironments(),{status:"executed",detail:`Remote warm-up checked environment ${X.selectedEnvironment.environment_id}`}}catch(J){return{status:"failed",reason:`Remote warm-up failed: ${String(J)}`}}}function Fq(j){K("chain_rule_matched",{rule_id:V(j.ruleId),hook_event_name:V(j.eventName),outcome:V(j.outcome),chain_depth:j.chainDepth}),M("chain_rule_matched",{rule_id:j.ruleId,hook_event_name:j.eventName,outcome:j.outcome,chain_depth:String(j.chainDepth)})}function Gq(j){K("chain_action_executed",{rule_id:V(j.ruleId),action_type:V(j.actionType),action_id:j.actionId?V(j.actionId):void 0,hook_event_name:V(j.eventName),outcome:V(j.outcome)}),M("chain_action_executed",{rule_id:j.ruleId,action_type:j.actionType,action_id:j.actionId,hook_event_name:j.eventName,outcome:j.outcome,detail:j.detail})}function C(j){let q=Jj(j.reason);K("chain_action_skipped",{rule_id:V(j.ruleId),action_type:V(j.actionType),action_id:j.actionId?V(j.actionId):void 0,hook_event_name:V(j.eventName),outcome:V(j.outcome),reason_category:V(q)}),M("chain_action_skipped",{rule_id:j.ruleId,action_type:j.actionType,action_id:j.actionId,hook_event_name:j.eventName,outcome:j.outcome,reason:j.reason})}function Hq(j){let q=Jj(j.reason);K("chain_action_failed",{rule_id:V(j.ruleId),action_type:V(j.actionType),action_id:j.actionId?V(j.actionId):void 0,hook_event_name:V(j.eventName),outcome:V(j.outcome),reason_category:V(q)}),M("chain_action_failed",{rule_id:j.ruleId,action_type:j.actionType,action_id:j.actionId,hook_event_name:j.eventName,outcome:j.outcome,reason:j.reason})}async function Jq(j){let{action:q}=j;if(q.enabled===!1)return{status:"skipped",reason:"action disabled"};switch(q.type){case"spawn_fallback_agent":return tj({action:q,rule:j.rule,event:j.event,runtime:j.runtime});case"notify_team":return qq({action:q,rule:j.rule,event:j.event,runtime:j.runtime});case"warm_remote_capacity":return Aq({action:q,rule:j.rule,event:j.event,runtime:j.runtime})}}function Lq(j,q){return j.cooldownMs??q.defaultCooldownMs}function Nq(j,q,G){return j.dedupWindowMs??q.dedupWindowMs??G.defaultDedupWindowMs}function Oq(j){let{rule:q,action:G,actionIndex:A,event:F,runtime:J}=j,O={ruleId:q.id,actionId:G.id??`${G.type}:${A}`,eventIdentity:oj(F),scope:J.dedupScope??""};return qj("sha1").update(U(O)).digest("hex")}async function yq(j){let q=j.runtime??{},G=rj({pathOverride:j.configPathOverride,forceReload:j.forceReloadConfig}),A=G.config,F={...j.event,payload:_(j.event.payload),occurredAt:j.event.occurredAt??Date.now()};if(!A.enabled||A.rules.length===0)return{enabled:!1,configPath:G.path,fromCache:G.fromCache,evaluatedRuleCount:0,matchedRuleIds:[],actionResults:[]};let J=q.chainDepth??0;if(J>=A.maxChainDepth)return{enabled:!0,configPath:G.path,fromCache:G.fromCache,evaluatedRuleCount:0,matchedRuleIds:[],actionResults:[]};let O=Date.now();dj(O);let P=ij(A.rules,F),Q=[];for(let X of P){let{rule:N}=X;if(q.signal?.aborted)break;if(N.maxDepth!==void 0&&J>=N.maxDepth){for(let T of N.actions){let L={ruleId:N.id,actionType:T.type,actionId:T.id,status:"skipped",reason:`rule maxDepth reached (${J}/${N.maxDepth})`};Q.push(L),C({ruleId:N.id,actionType:T.type,actionId:T.id,eventName:F.eventName,outcome:F.outcome,reason:L.reason??"rule depth guard"})}continue}let S=Lq(N,A),W=b.get(N.id);if(W&&W>O){for(let T of N.actions){let L=`rule cooldown active for ${W-O}ms`,D={ruleId:N.id,actionType:T.type,actionId:T.id,status:"skipped",reason:L};Q.push(D),C({ruleId:N.id,actionType:T.type,actionId:T.id,eventName:F.eventName,outcome:F.outcome,reason:L})}continue}b.set(N.id,O+S),Fq({ruleId:N.id,eventName:F.eventName,outcome:F.outcome,chainDepth:J});for(let T=0;T<N.actions.length;T++){let L=N.actions[T];if(!L)continue;if(q.signal?.aborted){let y={ruleId:N.id,actionType:L.type,actionId:L.id,status:"skipped",reason:"aborted"};Q.push(y),C({ruleId:N.id,actionType:L.type,actionId:L.id,eventName:F.eventName,outcome:F.outcome,reason:"aborted"});continue}let D=Oq({rule:N,action:L,actionIndex:T,event:F,runtime:q}),Lj=Nq(L,N,A),z=B.get(D);if(z&&z>O){let y=`dedup window active for ${z-O}ms`,Oj={ruleId:N.id,actionType:L.type,actionId:L.id,status:"skipped",reason:y};Q.push(Oj),C({ruleId:N.id,actionType:L.type,actionId:L.id,eventName:F.eventName,outcome:F.outcome,reason:y});continue}B.set(D,O+Lj);let $=await Jq({action:L,rule:N,event:F,runtime:q}),Nj={ruleId:N.id,actionType:L.type,actionId:L.id,status:$.status,reason:$.reason,detail:$.detail};if(Q.push(Nj),$.status==="executed")Gq({ruleId:N.id,actionType:L.type,actionId:L.id,eventName:F.eventName,outcome:F.outcome,detail:$.detail});else if($.status==="skipped")C({ruleId:N.id,actionType:L.type,actionId:L.id,eventName:F.eventName,outcome:F.outcome,reason:$.reason??"skipped"});else Hq({ruleId:N.id,actionType:L.type,actionId:L.id,eventName:F.eventName,outcome:F.outcome,reason:$.reason??"failed"})}}if(c("info","hook_chains_dispatch",{event_name:F.eventName,outcome:F.outcome,matched_rules:P.length,action_results:Q.length}),G.error)w(`[hook-chains] Config validation error at ${G.path}: ${G.error}`);return{enabled:!0,configPath:G.path,fromCache:G.fromCache,evaluatedRuleCount:A.rules.length,matchedRuleIds:P.map((X)=>X.rule.id),actionResults:Q}}function Iq(){Z=null,b.clear(),B.clear()}function Jj(j){let q=j.toLowerCase();if(q.includes("aborted"))return"aborted";if(q.includes("cooldown"))return"cooldown";if(q.includes("dedup"))return"dedup";if(q.includes("policy"))return"policy";if(q.includes("context"))return"context_missing";if(q.includes("precondition"))return"precondition";if(q.includes("disabled"))return"disabled";return"other"}var Dj="CLAUDE_CODE_HOOK_CHAINS_CONFIG_PATH",yj="CLAUDE_CODE_ENABLE_HOOK_CHAINS",Ij,Fj=2,Gj=30000,Hj=30000,E=86400000,Uj=300000,zj=5000,fj=20000,h,pj,x,wj,xj,hj,Rj,mj,R,vj,Z=null,b,B;var Pq=Pj(()=>{Bj();Qj();$j();Ej();Xj();Yj();Tj();Vj();_j();bj();Kj();Wj();Cj();kj();Zj();Ij=Aj(".claudio","hook-chains.json"),h=H.enum(["success","failed","timeout","unknown"]),pj=H.object({toolNames:H.array(H.string().min(1)).optional(),taskStatuses:H.array(H.string().min(1)).optional(),errorIncludes:H.array(H.string().min(1)).optional(),eventFieldEquals:H.record(H.string(),H.union([H.string(),H.number(),H.boolean()])).optional()}).optional(),x=H.object({id:H.string().min(1).optional(),enabled:H.boolean().default(!0).optional(),dedupWindowMs:H.number().int().min(0).max(E).optional()}),wj=x.extend({type:H.literal("spawn_fallback_agent"),description:H.string().min(1).optional(),promptTemplate:H.string().min(1).optional(),agentType:H.string().min(1).optional(),model:H.string().min(1).optional()}),xj=x.extend({type:H.literal("notify_team"),teamName:H.string().min(1).optional(),recipients:H.array(H.string().min(1)).optional(),summary:H.string().min(1).optional(),messageTemplate:H.string().min(1).optional()}),hj=x.extend({type:H.literal("warm_remote_capacity"),createDefaultEnvironmentIfMissing:H.boolean().optional()}),Rj=H.discriminatedUnion("type",[wj,xj,hj]),mj=H.object({id:H.string().min(1),enabled:H.boolean().default(!0).optional(),trigger:H.object({event:H.enum(o),outcome:h.optional(),outcomes:H.array(h).nonempty().optional()}).superRefine((j,q)=>{if(j.outcome&&j.outcomes)q.addIssue({code:"custom",message:"Use either trigger.outcome or trigger.outcomes, not both.",path:["outcomes"]})}),condition:pj,cooldownMs:H.number().int().min(0).max(E).optional(),dedupWindowMs:H.number().int().min(0).max(E).optional(),maxDepth:H.number().int().min(0).max(10).optional(),actions:H.array(Rj).min(1)}),R=H.object({version:H.literal(1).default(1),enabled:H.boolean().default(!0),maxChainDepth:H.number().int().min(1).max(10).default(Fj),defaultCooldownMs:H.number().int().min(0).max(E).default(Gj),defaultDedupWindowMs:H.number().int().min(0).max(E).default(Hj),rules:H.array(mj).default([])}),vj=H.union([H.object({hookChains:R}),R]),b=new Map,B=new Map});Pq();export{Iq as resetHookChainsRuntimeStateForTests,rj as loadHookChainsConfig,Aq as executeWarmRemoteCapacityAction,tj as executeSpawnFallbackAgentAction,qq as executeNotifyTeamAction,ij as evaluateHookChainRules,Fq as emitHookChainRuleMatched,C as emitHookChainActionSkipped,Hq as emitHookChainActionFailed,Gq as emitHookChainActionExecuted,yq as dispatchHookChainsForEvent};
|
|
3
|
+
`);return{summary:O,body:P}}async function tj(j){let{action:q,rule:G,event:A,runtime:F}=j;if(F.signal?.aborted)return{status:"skipped",reason:"aborted"};if(!F.onSpawnFallbackAgent)return{status:"failed",reason:"No fallback agent launcher is registered in runtime context"};let J=_(A.payload),O=q.description??`Fallback recovery: ${A.eventName} (${A.outcome})`,P={ruleId:G.id,eventName:A.eventName,outcome:A.outcome,description:O,prompt:nj(q,G,A),agentType:q.agentType,model:q.model,runInBackground:!0,payload:J,signal:F.signal};try{let Q=await F.onSpawnFallbackAgent(P);if(!Q.launched)return{status:"failed",reason:Q.reason??"Fallback launcher declined to start an agent"};return{status:"executed",detail:Q.agentId?`Fallback agent launched: ${Q.agentId}`:"Fallback agent launched"}}catch(Q){return{status:"failed",reason:`Fallback agent launch failed: ${String(Q)}`}}}function aj(j,q,G){if(j.teamName)return j.teamName;if(q.teamName)return q.teamName;let A=_(G.payload),F=Y(A,["team_name","teamName"]);if(F)return F;return n()}function jq(j,q,G){if(j&&j.length>0){if(j.includes("*"))return q.filter((F)=>F!==G);let A=new Set(q);return j.filter((F)=>A.has(F))}return q.filter((A)=>A!==G)}async function qq(j){let{action:q,rule:G,event:A,runtime:F}=j;if(F.signal?.aborted)return{status:"skipped",reason:"aborted"};let J=_(A.payload),O=aj(q,F,A);if(!O)return{status:"skipped",reason:"No team context is available for notify_team action"};let P=F.senderName??d()??"self-healing-mesh",Q=F.senderColor??e(),{summary:X,body:N}=ej(q,G,A),S=await jj(O);if(!S)return{status:"skipped",reason:`Team file not found for team ${O}`};let W=S.members.map((L)=>L.name),T=jq(q.recipients,W,P);if(T.length===0)return{status:"skipped",reason:"No eligible recipients for notify_team action"};if(F.onNotifyTeam)try{let L=await F.onNotifyTeam({ruleId:G.id,eventName:A.eventName,outcome:A.outcome,teamName:O,recipients:T,summary:X,message:N,payload:J,signal:F.signal});if(!L.sent)return{status:"skipped",reason:L.reason??"notify_team callback declined to send"};return{status:"executed",detail:`Team notification sent to ${L.recipientCount??T.length} recipient(s)`}}catch(L){return{status:"failed",reason:`notify_team callback failed: ${String(L)}`}}for(let L of T)await t(L,{from:P,text:N,summary:X,color:Q,timestamp:new Date().toISOString()},O);return{status:"executed",detail:`Team notification sent to ${T.length} recipient(s)`}}async function Aq(j){let{action:q,rule:G,event:A,runtime:F}=j;if(F.signal?.aborted)return{status:"skipped",reason:"aborted"};if(!a("allow_remote_sessions"))return{status:"skipped",reason:"Remote sessions are blocked by policy"};if(F.onWarmRemoteCapacity)try{let J=await F.onWarmRemoteCapacity({ruleId:G.id,eventName:A.eventName,outcome:A.outcome,payload:_(A.payload),signal:F.signal,createDefaultEnvironmentIfMissing:q.createDefaultEnvironmentIfMissing});if(!J.warmed)return{status:"skipped",reason:J.reason??"Warm remote callback declined"};return{status:"executed",detail:J.environmentId?`Remote capacity warmed for environment ${J.environmentId}`:"Remote capacity warm-up completed"}}catch(J){return{status:"failed",reason:`warm_remote_capacity callback failed: ${String(J)}`}}try{let{getReplBridgeHandle:J}=await import("./replBridgeHandle-0.1.14-gsqgzdev.mjs");if(!J())return{status:"skipped",reason:"Bridge is not active; warm_remote_capacity is a safe no-op"}}catch{return{status:"skipped",reason:"Bridge status unavailable; warm_remote_capacity skipped"}}try{let[{checkBackgroundRemoteSessionEligibility:J},{getEnvironmentSelectionInfo:O},P]=await Promise.all([import("./remoteSession-0.1.14-ppejxt7n.mjs"),import("./environmentSelection-0.1.14-fn5p85z5.mjs"),import("./environments-0.1.14-7napbg6g.mjs")]),Q=await J({skipBundle:!0});if(Q.length>0)return{status:"skipped",reason:`Remote warm-up preconditions failed: ${Q.map((N)=>N.type).join(", ")}`};let X=await O();if(!X.selectedEnvironment&&q.createDefaultEnvironmentIfMissing===!0){let N=await P.createDefaultCloudEnvironment("Claudio Self-Healing Warmup");X={availableEnvironments:[N],selectedEnvironment:N,selectedEnvironmentSource:null}}if(!X.selectedEnvironment)return{status:"skipped",reason:"No eligible remote environment available for warm-up"};return await P.fetchEnvironments(),{status:"executed",detail:`Remote warm-up checked environment ${X.selectedEnvironment.environment_id}`}}catch(J){return{status:"failed",reason:`Remote warm-up failed: ${String(J)}`}}}function Fq(j){K("chain_rule_matched",{rule_id:V(j.ruleId),hook_event_name:V(j.eventName),outcome:V(j.outcome),chain_depth:j.chainDepth}),M("chain_rule_matched",{rule_id:j.ruleId,hook_event_name:j.eventName,outcome:j.outcome,chain_depth:String(j.chainDepth)})}function Gq(j){K("chain_action_executed",{rule_id:V(j.ruleId),action_type:V(j.actionType),action_id:j.actionId?V(j.actionId):void 0,hook_event_name:V(j.eventName),outcome:V(j.outcome)}),M("chain_action_executed",{rule_id:j.ruleId,action_type:j.actionType,action_id:j.actionId,hook_event_name:j.eventName,outcome:j.outcome,detail:j.detail})}function C(j){let q=Jj(j.reason);K("chain_action_skipped",{rule_id:V(j.ruleId),action_type:V(j.actionType),action_id:j.actionId?V(j.actionId):void 0,hook_event_name:V(j.eventName),outcome:V(j.outcome),reason_category:V(q)}),M("chain_action_skipped",{rule_id:j.ruleId,action_type:j.actionType,action_id:j.actionId,hook_event_name:j.eventName,outcome:j.outcome,reason:j.reason})}function Hq(j){let q=Jj(j.reason);K("chain_action_failed",{rule_id:V(j.ruleId),action_type:V(j.actionType),action_id:j.actionId?V(j.actionId):void 0,hook_event_name:V(j.eventName),outcome:V(j.outcome),reason_category:V(q)}),M("chain_action_failed",{rule_id:j.ruleId,action_type:j.actionType,action_id:j.actionId,hook_event_name:j.eventName,outcome:j.outcome,reason:j.reason})}async function Jq(j){let{action:q}=j;if(q.enabled===!1)return{status:"skipped",reason:"action disabled"};switch(q.type){case"spawn_fallback_agent":return tj({action:q,rule:j.rule,event:j.event,runtime:j.runtime});case"notify_team":return qq({action:q,rule:j.rule,event:j.event,runtime:j.runtime});case"warm_remote_capacity":return Aq({action:q,rule:j.rule,event:j.event,runtime:j.runtime})}}function Lq(j,q){return j.cooldownMs??q.defaultCooldownMs}function Nq(j,q,G){return j.dedupWindowMs??q.dedupWindowMs??G.defaultDedupWindowMs}function Oq(j){let{rule:q,action:G,actionIndex:A,event:F,runtime:J}=j,O={ruleId:q.id,actionId:G.id??`${G.type}:${A}`,eventIdentity:oj(F),scope:J.dedupScope??""};return qj("sha1").update(U(O)).digest("hex")}async function yq(j){let q=j.runtime??{},G=rj({pathOverride:j.configPathOverride,forceReload:j.forceReloadConfig}),A=G.config,F={...j.event,payload:_(j.event.payload),occurredAt:j.event.occurredAt??Date.now()};if(!A.enabled||A.rules.length===0)return{enabled:!1,configPath:G.path,fromCache:G.fromCache,evaluatedRuleCount:0,matchedRuleIds:[],actionResults:[]};let J=q.chainDepth??0;if(J>=A.maxChainDepth)return{enabled:!0,configPath:G.path,fromCache:G.fromCache,evaluatedRuleCount:0,matchedRuleIds:[],actionResults:[]};let O=Date.now();dj(O);let P=ij(A.rules,F),Q=[];for(let X of P){let{rule:N}=X;if(q.signal?.aborted)break;if(N.maxDepth!==void 0&&J>=N.maxDepth){for(let T of N.actions){let L={ruleId:N.id,actionType:T.type,actionId:T.id,status:"skipped",reason:`rule maxDepth reached (${J}/${N.maxDepth})`};Q.push(L),C({ruleId:N.id,actionType:T.type,actionId:T.id,eventName:F.eventName,outcome:F.outcome,reason:L.reason??"rule depth guard"})}continue}let S=Lq(N,A),W=b.get(N.id);if(W&&W>O){for(let T of N.actions){let L=`rule cooldown active for ${W-O}ms`,D={ruleId:N.id,actionType:T.type,actionId:T.id,status:"skipped",reason:L};Q.push(D),C({ruleId:N.id,actionType:T.type,actionId:T.id,eventName:F.eventName,outcome:F.outcome,reason:L})}continue}b.set(N.id,O+S),Fq({ruleId:N.id,eventName:F.eventName,outcome:F.outcome,chainDepth:J});for(let T=0;T<N.actions.length;T++){let L=N.actions[T];if(!L)continue;if(q.signal?.aborted){let y={ruleId:N.id,actionType:L.type,actionId:L.id,status:"skipped",reason:"aborted"};Q.push(y),C({ruleId:N.id,actionType:L.type,actionId:L.id,eventName:F.eventName,outcome:F.outcome,reason:"aborted"});continue}let D=Oq({rule:N,action:L,actionIndex:T,event:F,runtime:q}),Lj=Nq(L,N,A),z=B.get(D);if(z&&z>O){let y=`dedup window active for ${z-O}ms`,Oj={ruleId:N.id,actionType:L.type,actionId:L.id,status:"skipped",reason:y};Q.push(Oj),C({ruleId:N.id,actionType:L.type,actionId:L.id,eventName:F.eventName,outcome:F.outcome,reason:y});continue}B.set(D,O+Lj);let $=await Jq({action:L,rule:N,event:F,runtime:q}),Nj={ruleId:N.id,actionType:L.type,actionId:L.id,status:$.status,reason:$.reason,detail:$.detail};if(Q.push(Nj),$.status==="executed")Gq({ruleId:N.id,actionType:L.type,actionId:L.id,eventName:F.eventName,outcome:F.outcome,detail:$.detail});else if($.status==="skipped")C({ruleId:N.id,actionType:L.type,actionId:L.id,eventName:F.eventName,outcome:F.outcome,reason:$.reason??"skipped"});else Hq({ruleId:N.id,actionType:L.type,actionId:L.id,eventName:F.eventName,outcome:F.outcome,reason:$.reason??"failed"})}}if(c("info","hook_chains_dispatch",{event_name:F.eventName,outcome:F.outcome,matched_rules:P.length,action_results:Q.length}),G.error)w(`[hook-chains] Config validation error at ${G.path}: ${G.error}`);return{enabled:!0,configPath:G.path,fromCache:G.fromCache,evaluatedRuleCount:A.rules.length,matchedRuleIds:P.map((X)=>X.rule.id),actionResults:Q}}function Iq(){Z=null,b.clear(),B.clear()}function Jj(j){let q=j.toLowerCase();if(q.includes("aborted"))return"aborted";if(q.includes("cooldown"))return"cooldown";if(q.includes("dedup"))return"dedup";if(q.includes("policy"))return"policy";if(q.includes("context"))return"context_missing";if(q.includes("precondition"))return"precondition";if(q.includes("disabled"))return"disabled";return"other"}var Dj="CLAUDE_CODE_HOOK_CHAINS_CONFIG_PATH",yj="CLAUDE_CODE_ENABLE_HOOK_CHAINS",Ij,Fj=2,Gj=30000,Hj=30000,E=86400000,Uj=300000,zj=5000,fj=20000,h,pj,x,wj,xj,hj,Rj,mj,R,vj,Z=null,b,B;var Pq=Pj(()=>{Bj();Qj();$j();Ej();Xj();Yj();Tj();Vj();_j();bj();Kj();Wj();Cj();kj();Zj();Ij=Aj(".claudio","hook-chains.json"),h=H.enum(["success","failed","timeout","unknown"]),pj=H.object({toolNames:H.array(H.string().min(1)).optional(),taskStatuses:H.array(H.string().min(1)).optional(),errorIncludes:H.array(H.string().min(1)).optional(),eventFieldEquals:H.record(H.string(),H.union([H.string(),H.number(),H.boolean()])).optional()}).optional(),x=H.object({id:H.string().min(1).optional(),enabled:H.boolean().default(!0).optional(),dedupWindowMs:H.number().int().min(0).max(E).optional()}),wj=x.extend({type:H.literal("spawn_fallback_agent"),description:H.string().min(1).optional(),promptTemplate:H.string().min(1).optional(),agentType:H.string().min(1).optional(),model:H.string().min(1).optional()}),xj=x.extend({type:H.literal("notify_team"),teamName:H.string().min(1).optional(),recipients:H.array(H.string().min(1)).optional(),summary:H.string().min(1).optional(),messageTemplate:H.string().min(1).optional()}),hj=x.extend({type:H.literal("warm_remote_capacity"),createDefaultEnvironmentIfMissing:H.boolean().optional()}),Rj=H.discriminatedUnion("type",[wj,xj,hj]),mj=H.object({id:H.string().min(1),enabled:H.boolean().default(!0).optional(),trigger:H.object({event:H.enum(o),outcome:h.optional(),outcomes:H.array(h).nonempty().optional()}).superRefine((j,q)=>{if(j.outcome&&j.outcomes)q.addIssue({code:"custom",message:"Use either trigger.outcome or trigger.outcomes, not both.",path:["outcomes"]})}),condition:pj,cooldownMs:H.number().int().min(0).max(E).optional(),dedupWindowMs:H.number().int().min(0).max(E).optional(),maxDepth:H.number().int().min(0).max(10).optional(),actions:H.array(Rj).min(1)}),R=H.object({version:H.literal(1).default(1),enabled:H.boolean().default(!0),maxChainDepth:H.number().int().min(1).max(10).default(Fj),defaultCooldownMs:H.number().int().min(0).max(E).default(Gj),defaultDedupWindowMs:H.number().int().min(0).max(E).default(Hj),rules:H.array(mj).default([])}),vj=H.union([H.object({hookChains:R}),R]),b=new Map,B=new Map});Pq();export{Iq as resetHookChainsRuntimeStateForTests,rj as loadHookChainsConfig,Aq as executeWarmRemoteCapacityAction,tj as executeSpawnFallbackAgentAction,qq as executeNotifyTeamAction,ij as evaluateHookChainRules,Fq as emitHookChainRuleMatched,C as emitHookChainActionSkipped,Hq as emitHookChainActionFailed,Gq as emitHookChainActionExecuted,yq as dispatchHookChainsForEvent};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import{IC as XJ,KC as pJ,XJ as eq,ZJ as tq,_J as DJ,er as kq,fr as pq,gr as nq,hr as _q,ir as rq,iv as r,jr as yq,jv as Cq,kr as Wq,rt as j,st as a,uh as oq,vh as FJ}from"./cli-0.1.14-j5sbzwhy.mjs";import"./cli-0.1.14-k8nwm06m.mjs";import"./cli-0.1.14-3yj4dkmn.mjs";import"./cli-0.1.14-nmmtd1d6.mjs";import"./cli-0.1.14-ntq8w1ss.mjs";import"./cli-0.1.14-7zz7abpc.mjs";import"./cli-0.1.14-c4v2kfdn.mjs";import"./cli-0.1.14-ch9c9c38.mjs";import"./cli-0.1.14-25ta9abj.mjs";import"./cli-0.1.14-86gckvrm.mjs";import"./cli-0.1.14-w3rwfr1d.mjs";import"./cli-0.1.14-edjtfw4q.mjs";import"./cli-0.1.14-4mde8z7h.mjs";import"./cli-0.1.14-dqads3y3.mjs";import"./cli-0.1.14-ta3w93yb.mjs";import"./cli-0.1.14-zjqt3r89.mjs";import"./cli-0.1.14-aky5tegx.mjs";import{ES as $,GS as AJ}from"./cli-0.1.14-w6nzk5dc.mjs";import{AU as _,CU as Z,GU as uq,QS as c,fV as n}from"./cli-0.1.14-seq2fm2d.mjs";import"./cli-0.1.14-qyx55m6c.mjs";import"./cli-0.1.14-fspxpmh7.mjs";import"./cli-0.1.14-as1s0b0t.mjs";import"./cli-0.1.14-3scecgzx.mjs";import{EV as X,FV as N,GV as g}from"./cli-0.1.14-hjktwgtk.mjs";import{HV as fJ}from"./cli-0.1.14-harz1d9d.mjs";import"./cli-0.1.14-jf8019sb.mjs";import"./cli-0.1.14-d4zkffre.mjs";import"./cli-0.1.14-1xkst5wv.mjs";import"./cli-0.1.14-cp2pada5.mjs";import"./cli-0.1.14-0x3m90bk.mjs";import"./cli-0.1.14-jpe9sxch.mjs";import"./cli-0.1.14-59axynr8.mjs";import"./cli-0.1.14-71m91842.mjs";import"./cli-0.1.14-1g5jq0j8.mjs";import"./cli-0.1.14-0ctjta81.mjs";import"./cli-0.1.14-77ha4n58.mjs";import"./cli-0.1.14-wz5yr49j.mjs";import"./cli-0.1.14-kpsh76mj.mjs";import"./cli-0.1.14-5brvxst8.mjs";import"./cli-0.1.14-a6kwmqhz.mjs";import"./cli-0.1.14-rc5yd94n.mjs";import"./cli-0.1.14-jbn4ywda.mjs";import"./cli-0.1.14-wgatq2fj.mjs";import"./cli-0.1.14-adz0gnzy.mjs";import"./cli-0.1.14-stv1d0q3.mjs";import"./cli-0.1.14-heevc19y.mjs";import"./cli-0.1.14-kv650aha.mjs";import{X_ as s,a$ as Gq,e6 as bq,f6 as zJ,j$ as PJ,r_ as v,z_ as Tq}from"./cli-0.1.14-2f7s5xbd.mjs";import"./cli-0.1.14-kmsvd61a.mjs";import"./cli-0.1.14-cdby401e.mjs";import"./cli-0.1.14-9vc52dnj.mjs";import"./cli-0.1.14-442a367x.mjs";import"./cli-0.1.14-z8j2n955.mjs";import"./cli-0.1.14-mgcmwvcn.mjs";import"./cli-0.1.14-16jrehc2.mjs";import{yea as QJ,zea as HJ}from"./cli-0.1.14-t3fga5je.mjs";import"./cli-0.1.14-2mzb5ath.mjs";import"./cli-0.1.14-s9m1y93w.mjs";import"./cli-0.1.14-whe4bxfr.mjs";import{mla as IJ,wka as Hq}from"./cli-0.1.14-r46jh9af.mjs";import{Lla as Bq,Mla as ZJ}from"./cli-0.1.14-akz49g5v.mjs";import{Zla as h,bma as x}from"./cli-0.1.14-qn4ftczz.mjs";function gq(O,q){let Q={PreToolUse:{},PostToolUse:{},PostToolUseFailure:{},PermissionDenied:{},Notification:{},UserPromptSubmit:{},SessionStart:{},SessionEnd:{},Stop:{},StopFailure:{},SubagentStart:{},SubagentStop:{},PreCompact:{},PostCompact:{},PermissionRequest:{},Setup:{},TeammateIdle:{},TaskCreated:{},TaskCompleted:{},Elicitation:{},ElicitationResult:{},ConfigChange:{},WorktreeCreate:{},WorktreeRemove:{},InstructionsLoaded:{},CwdChanged:{},FileChanged:{}},T=wq(q);pq(O).forEach((J)=>{let I=Q[J.event];if(I){let Y=T[J.event].matcherMetadata!==void 0?J.matcher||"":"";if(!I[Y])I[Y]=[];I[Y].push(J)}});let U=Hq();if(U)for(let[J,I]of Object.entries(U)){let Y=J,G=Q[Y];if(!G)continue;for(let D of I){let K=D.matcher||"";if("pluginRoot"in D){G[K]??=[];for(let V of D.hooks)G[K].push({event:Y,config:V,matcher:D.matcher,source:"pluginHook",pluginName:D.pluginId})}}}return Q}function jq(O,q){let Q=Object.keys(O[q]||{});return yq(Q,O,q)}function Mq(O,q,Q){let T=Q??"";return O[q]?.[T]??[]}function l(O,q){return wq(q)[O].matcherMetadata}var wq;var Eq=x(()=>{ZJ();IJ();Wq();wq=Bq(function(O){return{PreToolUse:{summary:"Before tool execution",description:`Input to command is JSON of tool call arguments.
|
|
2
|
+
Exit code 0 - stdout/stderr not shown
|
|
3
|
+
Exit code 2 - show stderr to model and block tool call
|
|
4
|
+
Other exit codes - show stderr to user only but continue with tool call`,matcherMetadata:{fieldToMatch:"tool_name",values:O}},PostToolUse:{summary:"After tool execution",description:`Input to command is JSON with fields "inputs" (tool call arguments) and "response" (tool call response).
|
|
5
|
+
Exit code 0 - stdout shown in transcript mode (ctrl+o)
|
|
6
|
+
Exit code 2 - show stderr to model immediately
|
|
7
|
+
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"tool_name",values:O}},PostToolUseFailure:{summary:"After tool execution fails",description:`Input to command is JSON with tool_name, tool_input, tool_use_id, error, error_type, is_interrupt, and is_timeout.
|
|
8
|
+
Exit code 0 - stdout shown in transcript mode (ctrl+o)
|
|
9
|
+
Exit code 2 - show stderr to model immediately
|
|
10
|
+
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"tool_name",values:O}},PermissionDenied:{summary:"After auto mode classifier denies a tool call",description:`Input to command is JSON with tool_name, tool_input, tool_use_id, and reason.
|
|
11
|
+
Return {"hookSpecificOutput":{"hookEventName":"PermissionDenied","retry":true}} to tell the model it may retry.
|
|
12
|
+
Exit code 0 - stdout shown in transcript mode (ctrl+o)
|
|
13
|
+
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"tool_name",values:O}},Notification:{summary:"When notifications are sent",description:`Input to command is JSON with notification message and type.
|
|
14
|
+
Exit code 0 - stdout/stderr not shown
|
|
15
|
+
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"notification_type",values:["permission_prompt","idle_prompt","auth_success","elicitation_dialog","elicitation_complete","elicitation_response"]}},UserPromptSubmit:{summary:"When the user submits a prompt",description:`Input to command is JSON with original user prompt text.
|
|
16
|
+
Exit code 0 - stdout shown to Claude
|
|
17
|
+
Exit code 2 - block processing, erase original prompt, and show stderr to user only
|
|
18
|
+
Other exit codes - show stderr to user only`},SessionStart:{summary:"When a new session is started",description:`Input to command is JSON with session start source.
|
|
19
|
+
Exit code 0 - stdout shown to Claude
|
|
20
|
+
Blocking errors are ignored
|
|
21
|
+
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"source",values:["startup","resume","clear","compact"]}},Stop:{summary:"Right before Claude concludes its response",description:`Exit code 0 - stdout/stderr not shown
|
|
22
|
+
Exit code 2 - show stderr to model and continue conversation
|
|
23
|
+
Other exit codes - show stderr to user only`},StopFailure:{summary:"When the turn ends due to an API error",description:"Fires instead of Stop when an API error (rate limit, auth failure, etc.) ended the turn. Fire-and-forget — hook output and exit codes are ignored.",matcherMetadata:{fieldToMatch:"error",values:["rate_limit","authentication_failed","billing_error","invalid_request","server_error","max_output_tokens","unknown"]}},SubagentStart:{summary:"When a subagent (Agent tool call) is started",description:`Input to command is JSON with agent_id and agent_type.
|
|
24
|
+
Exit code 0 - stdout shown to subagent
|
|
25
|
+
Blocking errors are ignored
|
|
26
|
+
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"agent_type",values:[]}},SubagentStop:{summary:"Right before a subagent (Agent tool call) concludes its response",description:`Input to command is JSON with agent_id, agent_type, and agent_transcript_path.
|
|
27
|
+
Exit code 0 - stdout/stderr not shown
|
|
28
|
+
Exit code 2 - show stderr to subagent and continue having it run
|
|
29
|
+
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"agent_type",values:[]}},PreCompact:{summary:"Before conversation compaction",description:`Input to command is JSON with compaction details.
|
|
30
|
+
Exit code 0 - stdout appended as custom compact instructions
|
|
31
|
+
Exit code 2 - block compaction
|
|
32
|
+
Other exit codes - show stderr to user only but continue with compaction`,matcherMetadata:{fieldToMatch:"trigger",values:["manual","auto"]}},PostCompact:{summary:"After conversation compaction",description:`Input to command is JSON with compaction details and the summary.
|
|
33
|
+
Exit code 0 - stdout shown to user
|
|
34
|
+
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"trigger",values:["manual","auto"]}},SessionEnd:{summary:"When a session is ending",description:`Input to command is JSON with session end reason.
|
|
35
|
+
Exit code 0 - command completes successfully
|
|
36
|
+
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"reason",values:["clear","logout","prompt_input_exit","other"]}},PermissionRequest:{summary:"When a permission dialog is displayed",description:`Input to command is JSON with tool_name, tool_input, and tool_use_id.
|
|
37
|
+
Output JSON with hookSpecificOutput containing decision to allow or deny.
|
|
38
|
+
Exit code 0 - use hook decision if provided
|
|
39
|
+
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"tool_name",values:O}},Setup:{summary:"Repo setup hooks for init and maintenance",description:`Input to command is JSON with trigger (init or maintenance).
|
|
40
|
+
Exit code 0 - stdout shown to Claude
|
|
41
|
+
Blocking errors are ignored
|
|
42
|
+
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"trigger",values:["init","maintenance"]}},TeammateIdle:{summary:"When a teammate is about to go idle",description:`Input to command is JSON with teammate_name and team_name.
|
|
43
|
+
Exit code 0 - stdout/stderr not shown
|
|
44
|
+
Exit code 2 - show stderr to teammate and prevent idle (teammate continues working)
|
|
45
|
+
Other exit codes - show stderr to user only`},TaskCreated:{summary:"When a task is being created",description:`Input to command is JSON with task_id, task_subject, task_description, teammate_name, and team_name.
|
|
46
|
+
Exit code 0 - stdout/stderr not shown
|
|
47
|
+
Exit code 2 - show stderr to model and prevent task creation
|
|
48
|
+
Other exit codes - show stderr to user only`},TaskCompleted:{summary:"When a task is being marked as completed",description:`Input to command is JSON with task_id, task_subject, task_description, teammate_name, and team_name.
|
|
49
|
+
Exit code 0 - stdout/stderr not shown
|
|
50
|
+
Exit code 2 - show stderr to model and prevent task completion
|
|
51
|
+
Other exit codes - show stderr to user only`},Elicitation:{summary:"When an MCP server requests user input (elicitation)",description:`Input to command is JSON with mcp_server_name, message, and requested_schema.
|
|
52
|
+
Output JSON with hookSpecificOutput containing action (accept/decline/cancel) and optional content.
|
|
53
|
+
Exit code 0 - use hook response if provided
|
|
54
|
+
Exit code 2 - deny the elicitation
|
|
55
|
+
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"mcp_server_name",values:[]}},ElicitationResult:{summary:"After a user responds to an MCP elicitation",description:`Input to command is JSON with mcp_server_name, action, content, mode, and elicitation_id.
|
|
56
|
+
Output JSON with hookSpecificOutput containing optional action and content to override the response.
|
|
57
|
+
Exit code 0 - use hook response if provided
|
|
58
|
+
Exit code 2 - block the response (action becomes decline)
|
|
59
|
+
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"mcp_server_name",values:[]}},ConfigChange:{summary:"When configuration files change during a session",description:`Input to command is JSON with source (user_settings, project_settings, local_settings, policy_settings, skills) and file_path.
|
|
60
|
+
Exit code 0 - allow the change
|
|
61
|
+
Exit code 2 - block the change from being applied to the session
|
|
62
|
+
Other exit codes - show stderr to user only`,matcherMetadata:{fieldToMatch:"source",values:["user_settings","project_settings","local_settings","policy_settings","skills"]}},InstructionsLoaded:{summary:"When an instruction file (CLAUDE.md or rule) is loaded",description:`Input to command is JSON with file_path, memory_type (User, Project, Local, Managed), load_reason (session_start, nested_traversal, path_glob_match, include, compact), globs (optional — the paths: frontmatter patterns that matched), trigger_file_path (optional — the file Claude touched that caused the load), and parent_file_path (optional — the file that @-included this one).
|
|
63
|
+
Exit code 0 - command completes successfully
|
|
64
|
+
Other exit codes - show stderr to user only
|
|
65
|
+
This hook is observability-only and does not support blocking.`,matcherMetadata:{fieldToMatch:"load_reason",values:["session_start","nested_traversal","path_glob_match","include","compact"]}},WorktreeCreate:{summary:"Create an isolated worktree for VCS-agnostic isolation",description:`Input to command is JSON with name (suggested worktree slug).
|
|
66
|
+
Stdout should contain the absolute path to the created worktree directory.
|
|
67
|
+
Exit code 0 - worktree created successfully
|
|
68
|
+
Other exit codes - worktree creation failed`},WorktreeRemove:{summary:"Remove a previously created worktree",description:`Input to command is JSON with worktree_path (absolute path to worktree).
|
|
69
|
+
Exit code 0 - worktree removed successfully
|
|
70
|
+
Other exit codes - show stderr to user only`},CwdChanged:{summary:"After the working directory changes",description:`Input to command is JSON with old_cwd and new_cwd.
|
|
71
|
+
CLAUDE_ENV_FILE is set — write bash exports there to apply env to subsequent BashTool commands.
|
|
72
|
+
Hook output can include hookSpecificOutput.watchPaths (array of absolute paths) to register with the FileChanged watcher.
|
|
73
|
+
Exit code 0 - command completes successfully
|
|
74
|
+
Other exit codes - show stderr to user only`},FileChanged:{summary:"When a watched file changes",description:`Input to command is JSON with file_path and event (change, add, unlink).
|
|
75
|
+
CLAUDE_ENV_FILE is set — write bash exports there to apply env to subsequent BashTool commands.
|
|
76
|
+
The matcher field specifies filenames to watch in the current directory (e.g. ".envrc|.env").
|
|
77
|
+
Hook output can include hookSpecificOutput.watchPaths (array of absolute paths) to dynamically update the watch list.
|
|
78
|
+
Exit code 0 - command completes successfully
|
|
79
|
+
Other exit codes - show stderr to user only`}}},(O)=>O.slice().sort().join(","))});function vq(O){let q=xq.c(23),{hookEventMetadata:Q,hooksByEvent:T,totalHooksCount:U,restrictedByPolicy:J,onSelectEvent:I,onCancel:Y}=O,G;if(q[0]!==U)G=v(U,"hook"),q[0]=U,q[1]=G;else G=q[1];let D=`${U} ${G} configured`,K;if(q[2]!==J)K=J&&N(_,{flexDirection:"column",children:[N(Z,{color:"suggestion",children:[bq.info," Hooks Restricted by Policy"]}),X(Z,{dimColor:!0,children:"Only hooks from managed settings can run. User-defined hooks from ~/.claudio/settings.json, .claudio/settings.json, and .claudio/settings.local.json are blocked."})]}),q[2]=J,q[3]=K;else K=q[3];let V;if(q[4]===Symbol.for("react.memo_cache_sentinel"))V=X(_,{flexDirection:"column",children:N(Z,{dimColor:!0,children:[bq.info," This menu is read-only. To add or modify hooks, edit settings.json directly or ask Claude."," ",X(uq,{url:"https://code.claude.com/docs/en/hooks",children:"Learn more"})]})}),q[4]=V;else V=q[4];let W;if(q[5]!==I)W=(f)=>{I(f)},q[5]=I,q[6]=W;else W=q[6];let w;if(q[7]!==Q)w=Object.entries(Q),q[7]=Q,q[8]=w;else w=q[8];let P;if(q[9]!==T||q[10]!==w)P=w.map((f)=>{let[p,B]=f,E=T[p]||0;return{label:E>0?N(Z,{children:[p," ",N(Z,{color:"suggestion",children:["(",E,")"]})]}):p,value:p,description:B.summary}}),q[9]=T,q[10]=w,q[11]=P;else P=q[11];let z;if(q[12]!==Y||q[13]!==W||q[14]!==P)z=X(_,{flexDirection:"column",children:X(r,{onChange:W,onCancel:Y,options:P})}),q[12]=Y,q[13]=W,q[14]=P,q[15]=z;else z=q[15];let F;if(q[16]!==K||q[17]!==z)F=N(_,{flexDirection:"column",gap:1,children:[K,V,z]}),q[16]=K,q[17]=z,q[18]=F;else F=q[18];let C;if(q[19]!==Y||q[20]!==D||q[21]!==F)C=X(j,{title:"Hooks",subtitle:D,onCancel:Y,children:F}),q[19]=Y,q[20]=D,q[21]=F,q[22]=C;else C=q[22];return C}var xq;var Sq=x(()=>{zJ();n();Tq();Cq();a();g();xq=h(c(),1)});function iq(O){let q=mq.c(19),{selectedEvent:Q,selectedMatcher:T,hooksForSelectedMatcher:U,hookEventMetadata:J,onSelect:I,onCancel:Y}=O,G=J.matcherMetadata!==void 0?`${Q} - Matcher: ${T||"(all)"}`:Q;if(U.length===0){let P;if(q[0]===Symbol.for("react.memo_cache_sentinel"))P=N(_,{flexDirection:"column",gap:1,children:[X(Z,{dimColor:!0,children:"No hooks configured for this event."}),X(Z,{dimColor:!0,children:"To add hooks, edit settings.json directly or ask Claude."})]}),q[0]=P;else P=q[0];let z;if(q[1]!==J.description||q[2]!==Y||q[3]!==G)z=X(j,{title:G,subtitle:J.description,onCancel:Y,inputGuide:UJ,children:P}),q[1]=J.description,q[2]=Y,q[3]=G,q[4]=z;else z=q[4];return z}let D=J.description,K;if(q[5]!==U)K=U.map(LJ),q[5]=U,q[6]=K;else K=q[6];let V;if(q[7]!==U||q[8]!==I)V=(P)=>{let z=parseInt(P,10),F=U[z];if(F)I(F)},q[7]=U,q[8]=I,q[9]=V;else V=q[9];let W;if(q[10]!==Y||q[11]!==K||q[12]!==V)W=X(_,{flexDirection:"column",children:X(r,{options:K,onChange:V,onCancel:Y})}),q[10]=Y,q[11]=K,q[12]=V,q[13]=W;else W=q[13];let w;if(q[14]!==J.description||q[15]!==Y||q[16]!==W||q[17]!==G)w=X(j,{title:G,subtitle:D,onCancel:Y,children:W}),q[14]=J.description,q[15]=Y,q[16]=W,q[17]=G,q[18]=w;else w=q[18];return w}function LJ(O,q){return{label:`[${O.config.type}] ${kq(O.config)}`,value:q.toString(),description:O.source==="pluginHook"&&O.pluginName?`${_q(O.source)} (${O.pluginName})`:_q(O.source)}}function UJ(){return X(Z,{children:"Esc to go back"})}var mq;var hq=x(()=>{n();Wq();Cq();a();g();mq=h(c(),1)});function lq(O){let q=dq.c(25),{selectedEvent:Q,matchersForSelectedEvent:T,hooksByEventAndMatcher:U,eventDescription:J,onSelect:I,onCancel:Y}=O,G;if(q[0]!==U||q[1]!==T||q[2]!==Q){let z;if(q[4]!==U||q[5]!==Q)z=(F)=>{let C=U[Q]?.[F]||[],f=Array.from(new Set(C.map(wJ)));return{matcher:F,sources:f,hookCount:C.length}},q[4]=U,q[5]=Q,q[6]=z;else z=q[6];G=T.map(z),q[0]=U,q[1]=T,q[2]=Q,q[3]=G}else G=q[3];let D=G;if(T.length===0){let z=`${Q} - Matchers`,F;if(q[7]===Symbol.for("react.memo_cache_sentinel"))F=N(_,{flexDirection:"column",gap:1,children:[X(Z,{dimColor:!0,children:"No hooks configured for this event."}),X(Z,{dimColor:!0,children:"To add hooks, edit settings.json directly or ask Claude."})]}),q[7]=F;else F=q[7];let C;if(q[8]!==J||q[9]!==Y||q[10]!==z)C=X(j,{title:z,subtitle:J,onCancel:Y,inputGuide:WJ,children:F}),q[8]=J,q[9]=Y,q[10]=z,q[11]=C;else C=q[11];return C}let K=`${Q} - Matchers`,V;if(q[12]!==D)V=D.map(VJ),q[12]=D,q[13]=V;else V=q[13];let W;if(q[14]!==I)W=(z)=>{I(z)},q[14]=I,q[15]=W;else W=q[15];let w;if(q[16]!==Y||q[17]!==V||q[18]!==W)w=X(_,{flexDirection:"column",children:X(r,{options:V,onChange:W,onCancel:Y})}),q[16]=Y,q[17]=V,q[18]=W,q[19]=w;else w=q[19];let P;if(q[20]!==J||q[21]!==Y||q[22]!==K||q[23]!==w)P=X(j,{title:K,subtitle:J,onCancel:Y,children:w}),q[20]=J,q[21]=Y,q[22]=K,q[23]=w,q[24]=P;else P=q[24];return P}function VJ(O){let q=O.sources.map(rq).join(", "),Q=O.matcher||"(all)";return{label:`[${q}] ${Q}`,value:O.matcher,description:`${O.hookCount} ${v(O.hookCount,"hook")}`}}function WJ(){return X(Z,{children:"Esc to go back"})}function wJ(O){return O.source}var dq;var cq=x(()=>{n();Wq();Tq();Cq();a();g();dq=h(c(),1)});function $q(O){let q=aq.c(40),{selectedHook:Q,eventSupportsMatcher:T,onCancel:U}=O,J;if(q[0]!==Q.event)J=N(Z,{children:["Event: ",X(Z,{bold:!0,children:Q.event})]}),q[0]=Q.event,q[1]=J;else J=q[1];let I;if(q[2]!==T||q[3]!==Q.matcher)I=T&&N(Z,{children:["Matcher: ",X(Z,{bold:!0,children:Q.matcher||"(all)"})]}),q[2]=T,q[3]=Q.matcher,q[4]=I;else I=q[4];let Y;if(q[5]!==Q.config.type)Y=N(Z,{children:["Type: ",X(Z,{bold:!0,children:Q.config.type})]}),q[5]=Q.config.type,q[6]=Y;else Y=q[6];let G;if(q[7]!==Q.source)G=nq(Q.source),q[7]=Q.source,q[8]=G;else G=q[8];let D;if(q[9]!==G)D=N(Z,{children:["Source:"," ",X(Z,{dimColor:!0,children:G})]}),q[9]=G,q[10]=D;else D=q[10];let K;if(q[11]!==Q.pluginName)K=Q.pluginName&&N(Z,{children:["Plugin: ",X(Z,{dimColor:!0,children:Q.pluginName})]}),q[11]=Q.pluginName,q[12]=K;else K=q[12];let V;if(q[13]!==J||q[14]!==I||q[15]!==Y||q[16]!==D||q[17]!==K)V=N(_,{flexDirection:"column",children:[J,I,Y,D,K]}),q[13]=J,q[14]=I,q[15]=Y,q[16]=D,q[17]=K,q[18]=V;else V=q[18];let W;if(q[19]!==Q.config)W=GJ(Q.config),q[19]=Q.config,q[20]=W;else W=q[20];let w;if(q[21]!==W)w=N(Z,{dimColor:!0,children:[W,":"]}),q[21]=W,q[22]=w;else w=q[22];let P;if(q[23]!==Q.config)P=KJ(Q.config),q[23]=Q.config,q[24]=P;else P=q[24];let z;if(q[25]!==P)z=X(_,{borderStyle:"round",borderDimColor:!0,paddingLeft:1,paddingRight:1,children:X(Z,{children:P})}),q[25]=P,q[26]=z;else z=q[26];let F;if(q[27]!==z||q[28]!==w)F=N(_,{flexDirection:"column",children:[w,z]}),q[27]=z,q[28]=w,q[29]=F;else F=q[29];let C;if(q[30]!==Q.config)C="statusMessage"in Q.config&&Q.config.statusMessage&&N(Z,{children:["Status message:"," ",X(Z,{dimColor:!0,children:Q.config.statusMessage})]}),q[30]=Q.config,q[31]=C;else C=q[31];let f;if(q[32]===Symbol.for("react.memo_cache_sentinel"))f=X(Z,{dimColor:!0,children:"To modify or remove this hook, edit settings.json directly or ask Claude to help."}),q[32]=f;else f=q[32];let p;if(q[33]!==F||q[34]!==C||q[35]!==V)p=N(_,{flexDirection:"column",gap:1,children:[V,F,C,f]}),q[33]=F,q[34]=C,q[35]=V,q[36]=p;else p=q[36];let B;if(q[37]!==U||q[38]!==p)B=X(j,{title:"Hook details",onCancel:U,inputGuide:RJ,children:p}),q[37]=U,q[38]=p,q[39]=B;else B=q[39];return B}function RJ(){return X(Z,{children:"Esc to go back"})}function GJ(O){switch(O.type){case"command":return"Command";case"prompt":return"Prompt";case"agent":return"Prompt";case"http":return"URL"}}function KJ(O){switch(O.type){case"command":return O.command;case"prompt":return O.prompt;case"agent":return O.prompt;case"http":return O.url}}var aq;var sq=x(()=>{n();Wq();a();g();aq=h(c(),1)});function JJ(O){let q=qJ.c(100),{toolNames:Q,onExit:T}=O,U;if(q[0]===Symbol.for("react.memo_cache_sentinel"))U={mode:"select-event"},q[0]=U;else U=q[0];let[J,I]=Rq.useState(U),[Y,G]=Rq.useState(BJ),[D,K]=Rq.useState(_J),V;if(q[1]===Symbol.for("react.memo_cache_sentinel"))V=(A)=>{if(A==="policySettings"){let R=Gq()?.disableAllHooks===!0;G(R&&s("policySettings")?.disableAllHooks===!0),K(s("policySettings")?.allowManagedHooksOnly===!0)}},q[1]=V;else V=q[1];oq(V);let W=J.mode,w="event"in J?J.event:"PreToolUse",P="matcher"in J?J.matcher:null,z=eq(CJ),F=tq(),C;if(q[2]!==z.tools||q[3]!==Q)C=[...Q,...z.tools.map(TJ)],q[2]=z.tools,q[3]=Q,q[4]=C;else C=q[4];let f=C,p;if(q[5]!==F||q[6]!==f)p=gq(F.getState(),f),q[5]=F,q[6]=f,q[7]=p;else p=q[7];let B=p,E;if(q[8]!==B||q[9]!==w)E=jq(B,w),q[8]=B,q[9]=w,q[10]=E;else E=q[10];let Kq=E,o;if(q[11]!==B||q[12]!==w||q[13]!==P)o=Mq(B,w,P),q[11]=B,q[12]=w,q[13]=P,q[14]=o;else o=q[14];let Pq=o,e;if(q[15]!==T)e=()=>{T("Hooks dialog dismissed",{display:"system"})},q[15]=T,q[16]=e;else e=q[16];let u=e,fq=W==="select-event",t;if(q[17]!==fq)t={context:"Confirmation",isActive:fq},q[17]=fq,q[18]=t;else t=q[18];$("confirm:no",u,t);let qq;if(q[19]===Symbol.for("react.memo_cache_sentinel"))qq=()=>{I({mode:"select-event"})},q[19]=qq;else qq=q[19];let Fq=W==="select-matcher",Jq;if(q[20]!==Fq)Jq={context:"Confirmation",isActive:Fq},q[20]=Fq,q[21]=Jq;else Jq=q[21];$("confirm:no",qq,Jq);let Oq;if(q[22]!==f||q[23]!==J)Oq=()=>{if("event"in J)if(l(J.event,f)!==void 0)I({mode:"select-matcher",event:J.event});else I({mode:"select-event"})},q[22]=f,q[23]=J,q[24]=Oq;else Oq=q[24];let Aq=W==="select-hook",Qq;if(q[25]!==Aq)Qq={context:"Confirmation",isActive:Aq},q[25]=Aq,q[26]=Qq;else Qq=q[26];$("confirm:no",Oq,Qq);let Xq;if(q[27]!==J)Xq=()=>{if(J.mode==="view-hook"){let{event:A,hook:L}=J;I({mode:"select-hook",event:A,matcher:L.matcher||""})}},q[27]=J,q[28]=Xq;else Xq=q[28];let Dq=W==="view-hook",Yq;if(q[29]!==Dq)Yq={context:"Confirmation",isActive:Dq},q[29]=Dq,q[30]=Yq;else Yq=q[30];$("confirm:no",Xq,Yq);let Zq;if(q[31]!==f)Zq=wq(f),q[31]=f,q[32]=Zq;else Zq=q[32];let d=Zq,YJ=Gq()?.disableAllHooks===!0,Iq;if(q[33]!==B){let A={},L=0;for(let[R,b]of Object.entries(B)){let H=Object.values(b).reduce(bJ,0);A[R]=H,L=L+H}Iq={hooksByEvent:A,totalHooksCount:L},q[33]=B,q[34]=Iq}else Iq=q[34];let{hooksByEvent:Nq,totalHooksCount:y}=Iq;if(YJ){let A;if(q[35]===Symbol.for("react.memo_cache_sentinel"))A=X(Z,{bold:!0,children:"disabled"}),q[35]=A;else A=q[35];let L=Y&&" by a managed settings file",R;if(q[36]!==y)R=X(Z,{bold:!0,children:y}),q[36]=y,q[37]=R;else R=q[37];let b;if(q[38]!==y)b=v(y,"hook"),q[38]=y,q[39]=b;else b=q[39];let H;if(q[40]!==y)H=v(y,"is","are"),q[40]=y,q[41]=H;else H=q[41];let M;if(q[42]!==L||q[43]!==R||q[44]!==b||q[45]!==H)M=N(Z,{children:["All hooks are currently ",A,L,". You have"," ",R," configured"," ",b," that"," ",H," not running."]}),q[42]=L,q[43]=R,q[44]=b,q[45]=H,q[46]=M;else M=q[46];let S,zq,Lq,Uq;if(q[47]===Symbol.for("react.memo_cache_sentinel"))S=X(_,{marginTop:1,children:X(Z,{dimColor:!0,children:"When hooks are disabled:"})}),zq=X(Z,{dimColor:!0,children:"· No hook commands will execute"}),Lq=X(Z,{dimColor:!0,children:"· StatusLine will not be displayed"}),Uq=X(Z,{dimColor:!0,children:"· Tool operations will proceed without hook validation"}),q[47]=S,q[48]=zq,q[49]=Lq,q[50]=Uq;else S=q[47],zq=q[48],Lq=q[49],Uq=q[50];let k;if(q[51]!==M)k=N(_,{flexDirection:"column",children:[M,S,zq,Lq,Uq]}),q[51]=M,q[52]=k;else k=q[52];let m;if(q[53]!==Y)m=!Y&&X(Z,{dimColor:!0,children:'To re-enable hooks, remove "disableAllHooks" from settings.json or ask Claude.'}),q[53]=Y,q[54]=m;else m=q[54];let i;if(q[55]!==k||q[56]!==m)i=N(_,{flexDirection:"column",gap:1,children:[k,m]}),q[55]=k,q[56]=m,q[57]=i;else i=q[57];let Vq;if(q[58]!==u||q[59]!==i)Vq=X(j,{title:"Hook Configuration - Disabled",onCancel:u,inputGuide:NJ,children:i}),q[58]=u,q[59]=i,q[60]=Vq;else Vq=q[60];return Vq}switch(J.mode){case"select-event":{let A;if(q[61]!==f)A=(R)=>{if(l(R,f)!==void 0)I({mode:"select-matcher",event:R});else I({mode:"select-hook",event:R,matcher:""})},q[61]=f,q[62]=A;else A=q[62];let L;if(q[63]!==u||q[64]!==d||q[65]!==Nq||q[66]!==D||q[67]!==A||q[68]!==y)L=X(vq,{hookEventMetadata:d,hooksByEvent:Nq,totalHooksCount:y,restrictedByPolicy:D,onSelectEvent:A,onCancel:u}),q[63]=u,q[64]=d,q[65]=Nq,q[66]=D,q[67]=A,q[68]=y,q[69]=L;else L=q[69];return L}case"select-matcher":{let A=d[J.event],L;if(q[70]!==J.event)L=(H)=>{I({mode:"select-hook",event:J.event,matcher:H})},q[70]=J.event,q[71]=L;else L=q[71];let R;if(q[72]===Symbol.for("react.memo_cache_sentinel"))R=()=>{I({mode:"select-event"})},q[72]=R;else R=q[72];let b;if(q[73]!==B||q[74]!==J.event||q[75]!==Kq||q[76]!==A.description||q[77]!==L)b=X(lq,{selectedEvent:J.event,matchersForSelectedEvent:Kq,hooksByEventAndMatcher:B,eventDescription:A.description,onSelect:L,onCancel:R}),q[73]=B,q[74]=J.event,q[75]=Kq,q[76]=A.description,q[77]=L,q[78]=b;else b=q[78];return b}case"select-hook":{let A=d[J.event],L;if(q[79]!==J.event)L=(H)=>{I({mode:"view-hook",event:J.event,hook:H})},q[79]=J.event,q[80]=L;else L=q[80];let R;if(q[81]!==f||q[82]!==J.event)R=()=>{if(l(J.event,f)!==void 0)I({mode:"select-matcher",event:J.event});else I({mode:"select-event"})},q[81]=f,q[82]=J.event,q[83]=R;else R=q[83];let b;if(q[84]!==Pq||q[85]!==J.event||q[86]!==J.matcher||q[87]!==A||q[88]!==L||q[89]!==R)b=X(iq,{selectedEvent:J.event,selectedMatcher:J.matcher,hooksForSelectedMatcher:Pq,hookEventMetadata:A,onSelect:L,onCancel:R}),q[84]=Pq,q[85]=J.event,q[86]=J.matcher,q[87]=A,q[88]=L,q[89]=R,q[90]=b;else b=q[90];return b}case"view-hook":{let A=J.hook,L;if(q[91]!==f||q[92]!==J.event)L=l(J.event,f),q[91]=f,q[92]=J.event,q[93]=L;else L=q[93];let R=L!==void 0,b;if(q[94]!==J)b=()=>{let{event:M,hook:S}=J;I({mode:"select-hook",event:M,matcher:S.matcher||""})},q[94]=J,q[95]=b;else b=q[95];let H;if(q[96]!==J.hook||q[97]!==R||q[98]!==b)H=X($q,{selectedHook:A,eventSupportsMatcher:R,onCancel:b}),q[96]=J.hook,q[97]=R,q[98]=b,q[99]=H;else H=q[99];return H}}}function NJ(){return X(Z,{children:"Esc to close"})}function bJ(O,q){return O+q.length}function TJ(O){return O.name}function CJ(O){return O.mcp}function _J(){return s("policySettings")?.allowManagedHooksOnly===!0}function BJ(){return Gq()?.disableAllHooks===!0&&s("policySettings")?.disableAllHooks===!0}var qJ,Rq;var OJ=x(()=>{DJ();FJ();n();AJ();Eq();PJ();Tq();a();Sq();hq();cq();sq();g();qJ=h(c(),1),Rq=h(fJ(),1)});var _O=async(O,q)=>{QJ("tengu_hooks_command",{});let T=q.getAppState().toolPermissionContext,U=XJ(T).map((J)=>J.name);return X(JJ,{toolNames:U,onExit:O})};var yJ=x(()=>{OJ();HJ();pJ();g()});yJ();export{_O as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$N as A,BN as a,CN as b,DN as c,EN as d,FN as e,GN as f,HN as g,IN as h,JN as i,KN as j,LN as k,MN as l,NN as m,ON as n,PN as o,QN as p,RN as q,SN as r,TN as s,UN as t,VN as u,WN as v,XN as w,YN as x,ZN as y,_N as z,aO as B,bO as C,cO as D,dO as E,eO as F,fO as G,gO as H,hO as I,iO as J,jO as K,kO as L,lO as M,mO as N,nO as O,oO as P}from"./cli-0.1.14-j5sbzwhy.mjs";import"./cli-0.1.14-k8nwm06m.mjs";import"./cli-0.1.14-3yj4dkmn.mjs";import"./cli-0.1.14-nmmtd1d6.mjs";import"./cli-0.1.14-ntq8w1ss.mjs";import"./cli-0.1.14-7zz7abpc.mjs";import"./cli-0.1.14-c4v2kfdn.mjs";import"./cli-0.1.14-ch9c9c38.mjs";import"./cli-0.1.14-25ta9abj.mjs";import"./cli-0.1.14-86gckvrm.mjs";import"./cli-0.1.14-w3rwfr1d.mjs";import"./cli-0.1.14-edjtfw4q.mjs";import"./cli-0.1.14-4mde8z7h.mjs";import"./cli-0.1.14-dqads3y3.mjs";import"./cli-0.1.14-ta3w93yb.mjs";import"./cli-0.1.14-zjqt3r89.mjs";import"./cli-0.1.14-aky5tegx.mjs";import"./cli-0.1.14-w6nzk5dc.mjs";import"./cli-0.1.14-seq2fm2d.mjs";import"./cli-0.1.14-qyx55m6c.mjs";import"./cli-0.1.14-fspxpmh7.mjs";import"./cli-0.1.14-as1s0b0t.mjs";import"./cli-0.1.14-3scecgzx.mjs";import"./cli-0.1.14-hjktwgtk.mjs";import"./cli-0.1.14-harz1d9d.mjs";import"./cli-0.1.14-jf8019sb.mjs";import"./cli-0.1.14-d4zkffre.mjs";import"./cli-0.1.14-1xkst5wv.mjs";import"./cli-0.1.14-cp2pada5.mjs";import"./cli-0.1.14-0x3m90bk.mjs";import"./cli-0.1.14-jpe9sxch.mjs";import"./cli-0.1.14-59axynr8.mjs";import"./cli-0.1.14-71m91842.mjs";import"./cli-0.1.14-1g5jq0j8.mjs";import"./cli-0.1.14-0ctjta81.mjs";import"./cli-0.1.14-77ha4n58.mjs";import"./cli-0.1.14-wz5yr49j.mjs";import"./cli-0.1.14-kpsh76mj.mjs";import"./cli-0.1.14-5brvxst8.mjs";import"./cli-0.1.14-a6kwmqhz.mjs";import"./cli-0.1.14-rc5yd94n.mjs";import"./cli-0.1.14-jbn4ywda.mjs";import"./cli-0.1.14-wgatq2fj.mjs";import"./cli-0.1.14-adz0gnzy.mjs";import"./cli-0.1.14-stv1d0q3.mjs";import"./cli-0.1.14-heevc19y.mjs";import"./cli-0.1.14-kv650aha.mjs";import"./cli-0.1.14-2f7s5xbd.mjs";import"./cli-0.1.14-kmsvd61a.mjs";import"./cli-0.1.14-cdby401e.mjs";import"./cli-0.1.14-9vc52dnj.mjs";import"./cli-0.1.14-442a367x.mjs";import"./cli-0.1.14-z8j2n955.mjs";import"./cli-0.1.14-mgcmwvcn.mjs";import"./cli-0.1.14-16jrehc2.mjs";import"./cli-0.1.14-t3fga5je.mjs";import"./cli-0.1.14-2mzb5ath.mjs";import"./cli-0.1.14-s9m1y93w.mjs";import"./cli-0.1.14-whe4bxfr.mjs";import"./cli-0.1.14-r46jh9af.mjs";import"./cli-0.1.14-akz49g5v.mjs";import"./cli-0.1.14-qn4ftczz.mjs";P();export{b as shouldSkipHookDueToTrust,M as hasWorktreeCreateHook,G as hasInstructionsLoadedHook,k as hasBlockingResult,j as getUserPromptSubmitHookBlockingMessage,g as getTeammateIdleHookMessage,h as getTaskCreatedHookMessage,i as getTaskCompletedHookMessage,f as getStopHookMessage,a as getSessionEndHookTimeoutMs,e as getPreToolHookBlockingMessage,d as getMatchingHooks,O as executeWorktreeRemoveHook,N as executeWorktreeCreateHook,v as executeUserPromptSubmitHooks,s as executeTeammateIdleHooks,t as executeTaskCreatedHooks,u as executeTaskCompletedHooks,y as executeSubagentStartHooks,r as executeStopHooks,q as executeStopFailureHooks,K as executeStatusLineCommand,x as executeSetupHooks,w as executeSessionStartHooks,B as executeSessionEndHooks,l as executePreToolHooks,z as executePreCompactHooks,n as executePostToolUseFailureHooks,m as executePostToolHooks,A as executePostCompactHooks,C as executePermissionRequestHooks,o as executePermissionDeniedHooks,p as executeNotificationHooks,H as executeInstructionsLoadedHooks,L as executeFileSuggestionCommand,F as executeFileChangedHooks,J as executeElicitationResultHooks,I as executeElicitationHooks,E as executeCwdChangedHooks,D as executeConfigChangeHooks,c as createBaseHookInput};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{$I as k0,Bt as i,Gt as J0,Jt as o,KO as r0,Nt as n,RI as K0,XJ as Q0,YJ as U0,_J as f0,iv as w,kv as e,qO as W0,rt as f,st as t,vt as H0,xt as s,yt as _}from"./cli-0.1.14-j5sbzwhy.mjs";import"./cli-0.1.14-k8nwm06m.mjs";import"./cli-0.1.14-3yj4dkmn.mjs";import"./cli-0.1.14-nmmtd1d6.mjs";import"./cli-0.1.14-ntq8w1ss.mjs";import"./cli-0.1.14-7zz7abpc.mjs";import"./cli-0.1.14-c4v2kfdn.mjs";import"./cli-0.1.14-ch9c9c38.mjs";import"./cli-0.1.14-25ta9abj.mjs";import"./cli-0.1.14-86gckvrm.mjs";import"./cli-0.1.14-w3rwfr1d.mjs";import"./cli-0.1.14-edjtfw4q.mjs";import"./cli-0.1.14-4mde8z7h.mjs";import"./cli-0.1.14-dqads3y3.mjs";import"./cli-0.1.14-ta3w93yb.mjs";import"./cli-0.1.14-zjqt3r89.mjs";import"./cli-0.1.14-aky5tegx.mjs";import"./cli-0.1.14-w6nzk5dc.mjs";import{AU as M,CU as P,QS as l,fV as a}from"./cli-0.1.14-seq2fm2d.mjs";import"./cli-0.1.14-qyx55m6c.mjs";import"./cli-0.1.14-fspxpmh7.mjs";import"./cli-0.1.14-as1s0b0t.mjs";import"./cli-0.1.14-3scecgzx.mjs";import{EV as Z,FV as F,GV as v}from"./cli-0.1.14-hjktwgtk.mjs";import{HV as F0}from"./cli-0.1.14-harz1d9d.mjs";import"./cli-0.1.14-jf8019sb.mjs";import"./cli-0.1.14-d4zkffre.mjs";import"./cli-0.1.14-1xkst5wv.mjs";import"./cli-0.1.14-cp2pada5.mjs";import"./cli-0.1.14-0x3m90bk.mjs";import"./cli-0.1.14-jpe9sxch.mjs";import"./cli-0.1.14-59axynr8.mjs";import"./cli-0.1.14-71m91842.mjs";import"./cli-0.1.14-1g5jq0j8.mjs";import"./cli-0.1.14-0ctjta81.mjs";import"./cli-0.1.14-77ha4n58.mjs";import"./cli-0.1.14-wz5yr49j.mjs";import"./cli-0.1.14-kpsh76mj.mjs";import"./cli-0.1.14-5brvxst8.mjs";import"./cli-0.1.14-a6kwmqhz.mjs";import"./cli-0.1.14-rc5yd94n.mjs";import{U3 as V,V3 as P0}from"./cli-0.1.14-jbn4ywda.mjs";import"./cli-0.1.14-wgatq2fj.mjs";import"./cli-0.1.14-adz0gnzy.mjs";import"./cli-0.1.14-stv1d0q3.mjs";import"./cli-0.1.14-heevc19y.mjs";import"./cli-0.1.14-kv650aha.mjs";import{U$ as I,X$ as E,l6 as q0,n6 as y0,oaa as R0}from"./cli-0.1.14-2f7s5xbd.mjs";import"./cli-0.1.14-kmsvd61a.mjs";import{vca as d,wca as O0}from"./cli-0.1.14-cdby401e.mjs";import"./cli-0.1.14-9vc52dnj.mjs";import"./cli-0.1.14-442a367x.mjs";import"./cli-0.1.14-z8j2n955.mjs";import"./cli-0.1.14-mgcmwvcn.mjs";import"./cli-0.1.14-16jrehc2.mjs";import{yea as z0,zea as L0}from"./cli-0.1.14-t3fga5je.mjs";import"./cli-0.1.14-2mzb5ath.mjs";import"./cli-0.1.14-s9m1y93w.mjs";import"./cli-0.1.14-whe4bxfr.mjs";import"./cli-0.1.14-r46jh9af.mjs";import"./cli-0.1.14-akz49g5v.mjs";import{Zla as c,bma as D}from"./cli-0.1.14-qn4ftczz.mjs";function m0(A){let m=$.c(9),{onComplete:Y}=A,q;if(m[0]!==Y)q=async(U)=>{let W=U==="yes";I((H)=>({...H,autoConnectIde:W,hasIdeAutoConnectDialogBeenShown:!0})),Y()},m[0]=Y,m[1]=q;else q=m[1];let J=q,B;if(m[2]===Symbol.for("react.memo_cache_sentinel"))B=[{label:"Yes",value:"yes"},{label:"No",value:"no"}],m[2]=B;else B=m[2];let K=B,X;if(m[3]!==J)X=Z(w,{options:K,onChange:J,defaultValue:"yes"}),m[3]=J,m[4]=X;else X=m[4];let z;if(m[5]===Symbol.for("react.memo_cache_sentinel"))z=Z(P,{dimColor:!0,children:"You can also configure this in /config or with the --ide flag"}),m[5]=z;else z=m[5];let G;if(m[6]!==Y||m[7]!==X)G=F(f,{title:"Do you wish to enable auto-connect to IDE?",color:"ide",onCancel:Y,children:[X,z]}),m[6]=Y,m[7]=X,m[8]=G;else G=m[8];return G}function Y0(){let A=E();return!_()&&A.autoConnectIde!==!0&&A.hasIdeAutoConnectDialogBeenShown!==!0}function A0(A){let m=$.c(10),{onComplete:Y}=A,q;if(m[0]!==Y)q=(W)=>{let H=W==="yes";if(H)I(T0);Y(H)},m[0]=Y,m[1]=q;else q=m[1];let J=q,B;if(m[2]!==Y)B=()=>{Y(!1)},m[2]=Y,m[3]=B;else B=m[3];let K=B,X;if(m[4]===Symbol.for("react.memo_cache_sentinel"))X=[{label:"No",value:"no"},{label:"Yes",value:"yes"}],m[4]=X;else X=m[4];let z=X,G;if(m[5]!==J)G=Z(w,{options:z,onChange:J,defaultValue:"no"}),m[5]=J,m[6]=G;else G=m[6];let U;if(m[7]!==K||m[8]!==G)U=Z(f,{title:"Do you wish to disable auto-connect to IDE?",subtitle:"You can also configure this in /config",onCancel:K,color:"ide",children:G}),m[7]=K,m[8]=G,m[9]=U;else U=m[9];return U}function T0(A){return{...A,autoConnectIde:!1}}function B0(){let A=E();return!_()&&A.autoConnectIde===!0}var $;var G0=D(()=>{a();R0();n();e();t();v();$=c(l(),1)});import*as X0 from"path";function w0(A){let m=g.c(39),{availableIDEs:Y,unavailableIDEs:q,selectedIDE:J,onClose:B,onSelect:K}=A,X;if(m[0]!==J?.port)X=J?.port?.toString()??"None",m[0]=J?.port,m[1]=X;else X=m[1];let[z,G]=y.useState(X),[U,W]=y.useState(!1),[H,Q]=y.useState(!1),R;if(m[2]!==Y||m[3]!==K)R=(O)=>{if(O!=="None"&&Y0())W(!0);else if(O==="None"&&B0())Q(!0);else K(Y.find((k)=>k.port===parseInt(O)))},m[2]=Y,m[3]=K,m[4]=R;else R=m[4];let N=R,T;if(m[5]!==Y)T=Y.reduce(p0,{}),m[5]=Y,m[6]=T;else T=m[6];let L=T,p;if(m[7]!==Y||m[8]!==L){let O;if(m[10]!==L)O=(k)=>{let N0=(L[k.name]||0)>1&&k.workspaceFolders.length>0;return{label:k.name,value:k.port.toString(),description:N0?Z0(k.workspaceFolders):void 0}},m[10]=L,m[11]=O;else O=m[11];p=Y.map(O).concat([{label:"None",value:"None",description:void 0}]),m[7]=Y,m[8]=L,m[9]=p}else p=m[9];let C=p;if(U){let O;if(m[12]!==N||m[13]!==z)O=Z(m0,{onComplete:()=>N(z)}),m[12]=N,m[13]=z,m[14]=O;else O=m[14];return O}if(H){let O;if(m[15]!==K)O=Z(A0,{onComplete:()=>{K(void 0)}}),m[15]=K,m[16]=O;else O=m[16];return O}let b;if(m[17]!==Y.length)b=Y.length===0&&Z(P,{dimColor:!0,children:s()?`No available IDEs detected. Please install the plugin and restart your IDE:
|
|
2
2
|
https://docs.claude.com/s/claude-code-jetbrains`:"No available IDEs detected. Make sure your IDE has the Claude Code extension or plugin installed and is running."}),m[17]=Y.length,m[18]=b;else b=m[18];let j;if(m[19]!==Y.length||m[20]!==N||m[21]!==C||m[22]!==z)j=Y.length!==0&&Z(w,{defaultValue:z,defaultFocusValue:z,options:C,onChange:(O)=>{G(O),N(O)}}),m[19]=Y.length,m[20]=N,m[21]=C,m[22]=z,m[23]=j;else j=m[23];let S;if(m[24]!==Y)S=Y.length!==0&&Y.some(M0)&&Z(M,{marginTop:1,children:Z(P,{color:"warning",children:"Note: Only one Claude Code instance can be connected to VS Code at a time."})}),m[24]=Y,m[25]=S;else S=m[25];let h;if(m[26]!==Y.length)h=Y.length!==0&&!_()&&Z(M,{marginTop:1,children:Z(P,{dimColor:!0,children:"Tip: You can enable auto-connect to IDE in /config or with the --ide flag"})}),m[26]=Y.length,m[27]=h;else h=m[27];let x;if(m[28]!==q)x=q.length>0&&F(M,{marginTop:1,flexDirection:"column",children:[F(P,{dimColor:!0,children:["Found ",q.length," other running IDE(s). However, their workspace/project directories do not match the current cwd."]}),Z(M,{marginTop:1,flexDirection:"column",children:q.map(V0)})]}),m[28]=q,m[29]=x;else x=m[29];let u;if(m[30]!==b||m[31]!==j||m[32]!==S||m[33]!==h||m[34]!==x)u=F(M,{flexDirection:"column",children:[b,j,S,h,x]}),m[30]=b,m[31]=j,m[32]=S,m[33]=h,m[34]=x,m[35]=u;else u=m[35];let r;if(m[36]!==B||m[37]!==u)r=Z(f,{title:"Select IDE",subtitle:"Connect to an IDE for integrated development features.",onCancel:B,color:"ide",children:u}),m[36]=B,m[37]=u,m[38]=r;else r=m[38];return r}function V0(A,m){return Z(M,{paddingLeft:3,children:F(P,{dimColor:!0,children:["• ",A.name,": ",Z0(A.workspaceFolders)]})},m)}function M0(A){return A.name==="VS Code"||A.name==="Visual Studio Code"}function p0(A,m){return A[m.name]=(A[m.name]||0)+1,A}async function b0(A,m){let Y=m?.ide;if(!Y||Y.type!=="sse-ide"&&Y.type!=="ws-ide")return null;for(let q of A)if(q.url===Y.url)return q;return null}function j0(A){let m=g.c(18),{availableIDEs:Y,onSelectIDE:q,onDone:J}=A,B;if(m[0]!==Y[0]?.port)B=Y[0]?.port?.toString()??"",m[0]=Y[0]?.port,m[1]=B;else B=m[1];let[K,X]=y.useState(B),z;if(m[2]!==Y||m[3]!==q)z=(L)=>{let p=Y.find((C)=>C.port===parseInt(L));q(p)},m[2]=Y,m[3]=q,m[4]=z;else z=m[4];let G=z,U;if(m[5]!==Y)U=Y.map(S0),m[5]=Y,m[6]=U;else U=m[6];let W=U,H;if(m[7]!==J)H=function(){J("IDE selection cancelled",{display:"system"})},m[7]=J,m[8]=H;else H=m[8];let Q=H,R;if(m[9]!==G)R=(L)=>{X(L),G(L)},m[9]=G,m[10]=R;else R=m[10];let N;if(m[11]!==W||m[12]!==K||m[13]!==R)N=Z(w,{defaultValue:K,defaultFocusValue:K,options:W,onChange:R}),m[11]=W,m[12]=K,m[13]=R,m[14]=N;else N=m[14];let T;if(m[15]!==Q||m[16]!==N)T=Z(f,{title:"Select an IDE to open the project",onCancel:Q,color:"ide",children:N}),m[15]=Q,m[16]=N,m[17]=T;else T=m[17];return T}function S0(A){return{label:A.name,value:A.port.toString()}}function h0(A){let m=g.c(15),{runningIDEs:Y,onSelectIDE:q,onDone:J}=A,[B,K]=y.useState(Y[0]??""),X;if(m[0]!==q)X=(T)=>{q(T)},m[0]=q,m[1]=X;else X=m[1];let z=X,G;if(m[2]!==Y)G=Y.map(x0),m[2]=Y,m[3]=G;else G=m[3];let U=G,W;if(m[4]!==J)W=function(){J("IDE selection cancelled",{display:"system"})},m[4]=J,m[5]=W;else W=m[5];let H=W,Q;if(m[6]!==z)Q=(T)=>{K(T),z(T)},m[6]=z,m[7]=Q;else Q=m[7];let R;if(m[8]!==U||m[9]!==B||m[10]!==Q)R=Z(w,{defaultFocusValue:B,options:U,onChange:Q}),m[8]=U,m[9]=B,m[10]=Q,m[11]=R;else R=m[11];let N;if(m[12]!==H||m[13]!==R)N=Z(f,{title:"Select IDE to install extension",onCancel:H,color:"ide",children:R}),m[12]=H,m[13]=R,m[14]=N;else N=m[14];return N}function x0(A){return{label:o(A),value:A}}function u0(A){let m=g.c(4),{ide:Y,onInstall:q}=A,J,B;if(m[0]!==Y||m[1]!==q)J=()=>{q(Y)},B=[Y,q],m[0]=Y,m[1]=q,m[2]=J,m[3]=B;else J=m[2],B=m[3];return y.useEffect(J,B),null}async function zm(A,m,Y){z0("tengu_ext_ide_command",{});let{options:{dynamicMcpConfig:q},onChangeDynamicMcpConfig:J}=m;if(Y?.trim()==="open"){let G=W0(),U=G?G.worktreePath:d(),H=(await i(!0)).filter((Q)=>Q.isValid);if(H.length===0)return A("No IDEs with Claude Code extension detected."),null;return Z(j0,{availableIDEs:H,onSelectIDE:async(Q)=>{if(!Q){A("No IDE selected.");return}if(Q.name.toLowerCase().includes("vscode")||Q.name.toLowerCase().includes("cursor")||Q.name.toLowerCase().includes("windsurf")){let{code:R}=await q0("code",[U]);if(R===0)A(`Opened ${G?"worktree":"project"} in ${V.bold(Q.name)}`);else A(`Failed to open in ${Q.name}. Try opening manually: ${U}`)}else if(s())A(`Please open the ${G?"worktree":"project"} manually in ${V.bold(Q.name)}: ${U}`);else A(`Please open the ${G?"worktree":"project"} manually in ${V.bold(Q.name)}: ${U}`)},onDone:()=>{A("Exited without opening IDE",{display:"system"})}})}let B=await i(!0);if(B.length===0&&m.onInstallIDEExtension&&!_()){let G=await J0(),U=(W)=>{if(m.onInstallIDEExtension)if(m.onInstallIDEExtension(W),H0(W))A(`Installed plugin to ${V.bold(o(W))}
|
|
3
3
|
Please ${V.bold("restart your IDE")} completely for it to take effect`);else A(`Installed extension to ${V.bold(o(W))}`)};if(G.length>1)return Z(h0,{runningIDEs:G,onSelectIDE:U,onDone:()=>{A("No IDE selected.",{display:"system"})}});else if(G.length===1)return Z(u0,{ide:G[0],onInstall:U})}let K=B.filter((G)=>G.isValid),X=B.filter((G)=>!G.isValid),z=await b0(K,q);return Z(C0,{availableIDEs:K,unavailableIDEs:X,currentIDE:z,dynamicMcpConfig:q,onChangeDynamicMcpConfig:J,onDone:A})}function C0({availableIDEs:A,unavailableIDEs:m,currentIDE:Y,dynamicMcpConfig:q,onChangeDynamicMcpConfig:J,onDone:B}){let[K,X]=y.useState(null),z=Q0((H)=>H.mcp.clients.find((Q)=>Q.name==="ide")),G=U0(),U=y.useRef(!0);y.useEffect(()=>{if(!K)return;if(U.current){U.current=!1;return}if(!z||z.type==="pending")return;if(z.type==="connected")B(`Connected to ${K.name}.`);else if(z.type==="failed")B(`Failed to connect to ${K.name}.`)},[z,K,B]),y.useEffect(()=>{if(!K)return;let H=setTimeout(B,_0,`Connection to ${K.name} timed out.`);return()=>clearTimeout(H)},[K,B]);let W=y.useCallback((H)=>{if(!J){B("Error connecting to IDE.");return}let Q={...q||{}};if(Y)delete Q.ide;if(!H){if(z&&z.type==="connected"&&Y)z.client.onclose=()=>{},K0("ide",z.config),G((N)=>({...N,mcp:{...N.mcp,clients:N.mcp.clients.filter((T)=>T.name!=="ide"),tools:N.mcp.tools.filter((T)=>!T.name?.startsWith("mcp__ide__")),commands:N.mcp.commands.filter((T)=>!T.name?.startsWith("mcp__ide__"))}}));J(Q),B(Y?`Disconnected from ${Y.name}.`:"No IDE selected.");return}let R=H.url;Q.ide={type:R.startsWith("ws:")?"ws-ide":"sse-ide",url:R,ideName:H.name,authToken:H.authToken,ideRunningInWindows:H.ideRunningInWindows,scope:"dynamic"},U.current=!0,X(H),J(Q)},[q,Y,z,G,J,B]);if(K)return F(P,{dimColor:!0,children:["Connecting to ",K.name,"…"]});return Z(w0,{availableIDEs:A,unavailableIDEs:m,selectedIDE:Y,onClose:()=>B("IDE selection cancelled",{display:"system"}),onSelect:W})}function Z0(A,m=100){if(A.length===0)return"";let Y=d(),q=A.slice(0,2),J=A.length>2,B=J?3:0,K=(q.length-1)*2,X=m-K-B,z=Math.floor(X/q.length),G=Y.normalize("NFC"),W=q.map((H)=>{let Q=H.normalize("NFC");if(Q.startsWith(G+X0.sep))H=Q.slice(G.length+1);if(H.length<=z)return H;return"…"+H.slice(-(z-1))}).join(", ");if(J)W+=", …";return W}var g,y,_0=35000;var g0=D(()=>{P0();L0();e();t();G0();a();k0();f0();O0();y0();n();r0();v();g=c(l(),1),y=c(F0(),1)});g0();export{Z0 as formatWorkspaceFolders,zm as call};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{bma as z}from"./cli-0.1.14-qn4ftczz.mjs";var g=()=>null,c=class{},q,A,a,D=!0,E=null,F,G,H,I,J=null,K=null,L,M,P,Q,R,S,U,V,W,X,Y,Z,_,$,b,i,k,u,w,y,N,O="service.name",T="service.version",h="service.name",x="service.version",d,f,m,t,e;var B=z(()=>{q={get(v,j){if(j==="__esModule")return!0;if(j==="default")return new Proxy({},q);if(j==="ExportResultCode")return{SUCCESS:0,FAILED:1};if(j==="resourceFromAttributes")return()=>({});if(j==="SandboxRuntimeConfigSchema")return{parse:()=>({})};return g}},A=new Proxy(g,q),a=A,F=new Proxy({},{get:()=>g}),G={parse:()=>({})},H=[],I=g,L=g,M=g,P={SUCCESS:0,FAILED:1},Q=g,R=c,S=c,U=c,V=c,W=c,X=c,Y=c,Z=c,_=c,$=c,b=c,i=c,k=c,u=c,w={getTracer:()=>({startSpan:()=>({end:g,setAttribute:g,setStatus:g,recordException:g})})},y={active:g,with:(v,j)=>j()},N={OK:0,ERROR:1,UNSET:2},d={CUMULATIVE:0,DELTA:1},f={HISTOGRAM:0,SUM:1,GAUGE:2},m={COUNTER:0,HISTOGRAM:1,UP_DOWN_COUNTER:2},t=c,e={}});B();export{w as trace,Q as resourceFromAttributes,M as plot,L as getSyntaxTheme,I as getMcpConfigForManifest,a as default,y as context,D as __stub,N as SpanStatusCode,S as SimpleSpanProcessor,b as SimpleLogRecordProcessor,e as SeverityNumber,E as SandboxViolationStore,G as SandboxRuntimeConfigSchema,F as SandboxManager,x as SEMRESATTRS_SERVICE_VERSION,h as SEMRESATTRS_SERVICE_NAME,R as Resource,t as PushMetricExporter,_ as PrometheusExporter,u as PeriodicExportingMetricReader,X as OTLPTraceExporter,Z as OTLPMetricExporter,Y as OTLPLogExporter,V as NodeTracerProvider,k as MeterProvider,$ as LoggerProvider,m as InstrumentType,P as ExportResultCode,f as DataPointType,K as ColorFile,J as ColorDiff,U as BatchSpanProcessor,i as BatchLogRecordProcessor,W as BasicTracerProvider,H as BROWSER_TOOLS,d as AggregationTemporality,T as ATTR_SERVICE_VERSION,O as ATTR_SERVICE_NAME};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z4 as G}from"./cli-0.1.14-jnfs73kb.mjs";import{Pla as _,Qla as U}from"./cli-0.1.14-wwehdfwx.mjs";import{Yla as X}from"./cli-0.1.14-8fr10t94.mjs";import{$la as B,Zla as K,bma as l,cma as E}from"./cli-0.1.14-qn4ftczz.mjs";var v=B((k)=>{Object.defineProperty(k,"__esModule",{value:!0});k.resolveHttpHandlerRuntimeConfig=k.getHttpHandlerExtensionConfiguration=k.isValidHostname=k.HttpResponse=k.HttpRequest=k.Fields=k.Field=void 0;var H=X();Object.defineProperty(k,"Field",{enumerable:!0,get:function(){return H.Field}});Object.defineProperty(k,"Fields",{enumerable:!0,get:function(){return H.Fields}});Object.defineProperty(k,"HttpRequest",{enumerable:!0,get:function(){return H.HttpRequest}});Object.defineProperty(k,"HttpResponse",{enumerable:!0,get:function(){return H.HttpResponse}});Object.defineProperty(k,"isValidHostname",{enumerable:!0,get:function(){return H.isValidHostname}});Object.defineProperty(k,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return H.getHttpHandlerExtensionConfiguration}});Object.defineProperty(k,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return H.resolveHttpHandlerRuntimeConfig}})});var J=B((C)=>{var Q=_(),T=U(),P=G(),W=v(),F=E("node:crypto"),q=E("node:fs"),Z=E("node:os"),A=E("node:path");class ${profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300000;constructor(e,n,t){this.profileData=e,this.init=n,this.callerClientConfig=t}async loadCredentials(){let e=await this.loadToken();if(!e)throw new T.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let n=e.accessToken,t=Date.now();if(new Date(n.expiresAt).getTime()-t<=$.REFRESH_THRESHOLD)return this.refresh(e);return{accessKeyId:n.accessKeyId,secretAccessKey:n.secretAccessKey,sessionToken:n.sessionToken,accountId:n.accountId,expiration:new Date(n.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(e){let{SigninClient:n,CreateOAuth2TokenCommand:t}=await import("./index-0.1.14-ac13h1t1.mjs").then((m)=>K(m.default)),{logger:s,userAgentAppId:c}=this.callerClientConfig??{},r=((h)=>{return h?.metadata?.handlerProtocol==="h2"})(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,a=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,i=new n({credentials:{accessKeyId:"",secretAccessKey:""},region:a,requestHandler:r,logger:s,userAgentAppId:c,...this.init?.clientConfig});this.createDPoPInterceptor(i.middlewareStack);let x={tokenInput:{clientId:e.clientId,refreshToken:e.refreshToken,grantType:"refresh_token"}};try{let h=await i.send(new t(x)),{accessKeyId:y,secretAccessKey:d,sessionToken:I}=h.tokenOutput?.accessToken??{},{refreshToken:S,expiresIn:m}=h.tokenOutput??{};if(!y||!d||!I||!S)throw new T.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let R=(m??900)*1000,b=new Date(Date.now()+R),j={...e,accessToken:{...e.accessToken,accessKeyId:y,secretAccessKey:d,sessionToken:I,expiresAt:b.toISOString()},refreshToken:S};await this.saveToken(j);let o=j.accessToken;return{accessKeyId:o.accessKeyId,secretAccessKey:o.secretAccessKey,sessionToken:o.sessionToken,accountId:o.accountId,expiration:b}}catch(h){if(h.name==="AccessDeniedException"){let y=h.error,d;switch(y){case"TOKEN_EXPIRED":d="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":d="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":d="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:d=`Failed to refresh token: ${String(h)}. Please re-authenticate using \`aws login\``}throw new T.CredentialsProviderError(d,{logger:this.logger,tryNextLink:!1})}throw new T.CredentialsProviderError(`Failed to refresh token: ${String(h)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let e=this.getTokenFilePath();try{let n;try{n=await P.readFile(e,{ignoreCache:this.init?.ignoreCache})}catch{n=await q.promises.readFile(e,"utf8")}let t=JSON.parse(n),s=["accessToken","clientId","refreshToken","dpopKey"].filter((c)=>!t[c]);if(!t.accessToken?.accountId)s.push("accountId");if(s.length>0)throw new T.CredentialsProviderError(`Token validation failed, missing fields: ${s.join(", ")}`,{logger:this.logger,tryNextLink:!1});return t}catch(n){throw new T.CredentialsProviderError(`Failed to load token from ${e}: ${String(n)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(e){let n=this.getTokenFilePath(),t=A.dirname(n);try{await q.promises.mkdir(t,{recursive:!0})}catch(s){}await q.promises.writeFile(n,JSON.stringify(e,null,2),"utf8")}getTokenFilePath(){let e=process.env.AWS_LOGIN_CACHE_DIRECTORY??A.join(Z.homedir(),".aws","login","cache"),n=Buffer.from(this.loginSession,"utf8"),t=F.createHash("sha256").update(n).digest("hex");return A.join(e,`${t}.json`)}derToRawSignature(e){let n=2;if(e[n]!==2)throw Error("Invalid DER signature");n++;let t=e[n++],s=e.subarray(n,n+t);if(n+=t,e[n]!==2)throw Error("Invalid DER signature");n++;let c=e[n++],u=e.subarray(n,n+c);s=s[0]===0?s.subarray(1):s,u=u[0]===0?u.subarray(1):u;let r=Buffer.concat([Buffer.alloc(32-s.length),s]),a=Buffer.concat([Buffer.alloc(32-u.length),u]);return Buffer.concat([r,a])}createDPoPInterceptor(e){e.add((n)=>async(t)=>{if(W.HttpRequest.isInstance(t.request)){let s=t.request,c=`${s.protocol}//${s.hostname}${s.port?`:${s.port}`:""}${s.path}`,u=await this.generateDpop(s.method,c);s.headers={...s.headers,DPoP:u}}return n(t)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(e="POST",n){let t=await this.loadToken();try{let s=F.createPrivateKey({key:t.dpopKey,format:"pem",type:"sec1"}),u=F.createPublicKey(s).export({format:"der",type:"spki"}),r=-1;for(let b=0;b<u.length;b++)if(u[b]===4){r=b;break}let a=u.slice(r+1,r+33),i=u.slice(r+33,r+65),x={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:a.toString("base64url"),y:i.toString("base64url")}},h={jti:crypto.randomUUID(),htm:e,htu:n,iat:Math.floor(Date.now()/1000)},y=Buffer.from(JSON.stringify(x)).toString("base64url"),d=Buffer.from(JSON.stringify(h)).toString("base64url"),I=`${y}.${d}`,S=F.sign("sha256",Buffer.from(I),s),R=this.derToRawSignature(S).toString("base64url");return`${I}.${R}`}catch(s){throw new T.CredentialsProviderError(`Failed to generate Dpop proof: ${s instanceof Error?s.message:String(s)}`,{logger:this.logger,tryNextLink:!1})}}}var N=(e)=>async({callerClientConfig:n}={})=>{e?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let t=await P.parseKnownFiles(e||{}),s=P.getProfileName({profile:e?.profile??n?.profile}),c=t[s];if(!c?.login_session)throw new T.CredentialsProviderError(`Profile ${s} does not contain login_session.`,{tryNextLink:!0,logger:e?.logger});let r=await new $(c,e,n).loadCredentials();return Q.setCredentialFeature(r,"CREDENTIALS_LOGIN","AD")};C.fromLoginCredentials=N});var L,O,w,p,ee=(e,n,t)=>{let s={EcsContainer:async(c)=>{let{fromHttp:u}=await import("./index-0.1.14-hqphn8m5.mjs").then((m)=>K(m.default,1)),{fromContainerMetadata:r}=await import("./index-0.1.14-dmbjzapt.mjs");return t?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>O.chain(u(c??{}),r(c))().then(D)},Ec2InstanceMetadata:async(c)=>{t?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:u}=await import("./index-0.1.14-dmbjzapt.mjs");return async()=>u(c)().then(D)},Environment:async(c)=>{t?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:u}=await import("./index-0.1.14-h8gc6ph5.mjs");return async()=>u(c)().then(D)}};if(e in s)return s[e];else throw new O.CredentialsProviderError(`Unsupported credential source in profile ${n}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:t})},D=(e)=>w.setCredentialFeature(e,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),te=(e,{profile:n="default",logger:t}={})=>{return Boolean(e)&&typeof e==="object"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(ne(e,{profile:n,logger:t})||se(e,{profile:n,logger:t}))},ne=(e,{profile:n,logger:t})=>{let s=typeof e.source_profile==="string"&&typeof e.credential_source>"u";if(s)t?.debug?.(` ${n} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`);return s},se=(e,{profile:n,logger:t})=>{let s=typeof e.credential_source==="string"&&typeof e.source_profile>"u";if(s)t?.debug?.(` ${n} isCredentialSourceProfile credential_source=${e.credential_source}`);return s},re=async(e,n,t,s,c={},u)=>{t.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let r=n[e],{source_profile:a,region:i}=r;if(!t.roleAssumer){let{getDefaultRoleAssumer:h}=await import("./index-0.1.14-3m7vrt91.mjs").then((m)=>K(m.default,1));t.roleAssumer=h({...t.clientConfig,credentialProviderLogger:t.logger,parentClientConfig:{...s,...t?.parentClientConfig,region:i??t?.parentClientConfig?.region??s?.region}},t.clientPlugins)}if(a&&a in c)throw new O.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${L.getProfileName(t)}. Profiles visited: `+Object.keys(c).join(", "),{logger:t.logger});t.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${a?`source_profile=[${a}]`:`profile=[${e}]`}`);let x=a?u(a,n,t,s,{...c,[a]:!0},V(n[a]??{})):(await ee(r.credential_source,e,t.logger)(t))();if(V(r))return x.then((h)=>w.setCredentialFeature(h,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));else{let h={RoleArn:r.role_arn,RoleSessionName:r.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:r.external_id,DurationSeconds:parseInt(r.duration_seconds||"3600",10)},{mfa_serial:y}=r;if(y){if(!t.mfaCodeProvider)throw new O.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:t.logger,tryNextLink:!1});h.SerialNumber=y,h.TokenCode=await t.mfaCodeProvider(y)}let d=await x;return t.roleAssumer(d,h).then((I)=>w.setCredentialFeature(I,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},V=(e)=>{return!e.role_arn&&!!e.credential_source},ce=(e)=>{return Boolean(e&&e.login_session)},ue=async(e,n,t)=>{let s=await p.fromLoginCredentials({...n,profile:e})({callerClientConfig:t});return w.setCredentialFeature(s,"CREDENTIALS_PROFILE_LOGIN","AC")},he=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.credential_process==="string",ae=async(e,n)=>import("./index-0.1.14-g5kkm9ng.mjs").then(({fromProcess:t})=>t({...e,profile:n})().then((s)=>w.setCredentialFeature(s,"CREDENTIALS_PROFILE_PROCESS","v"))),de=async(e,n,t={},s)=>{let{fromSSO:c}=await import("./index-0.1.14-1mttyja2.mjs");return c({profile:e,logger:t.logger,parentClientConfig:t.parentClientConfig,clientConfig:t.clientConfig})({callerClientConfig:s}).then((u)=>{if(n.sso_session)return w.setCredentialFeature(u,"CREDENTIALS_PROFILE_SSO","r");else return w.setCredentialFeature(u,"CREDENTIALS_PROFILE_SSO_LEGACY","t")})},ye=(e)=>e&&(typeof e.sso_start_url==="string"||typeof e.sso_account_id==="string"||typeof e.sso_session==="string"||typeof e.sso_region==="string"||typeof e.sso_role_name==="string"),Y=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.aws_access_key_id==="string"&&typeof e.aws_secret_access_key==="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1,g=async(e,n)=>{n?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let t={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return w.setCredentialFeature(t,"CREDENTIALS_PROFILE","n")},ke=(e)=>Boolean(e)&&typeof e==="object"&&typeof e.web_identity_token_file==="string"&&typeof e.role_arn==="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,we=async(e,n,t)=>import("./index-0.1.14-272zxs9n.mjs").then((m)=>K(m.default,1)).then(({fromTokenFile:s})=>s({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:n.roleAssumerWithWebIdentity,logger:n.logger,parentClientConfig:n.parentClientConfig})({callerClientConfig:t}).then((c)=>w.setCredentialFeature(c,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q"))),z=async(e,n,t,s,c={},u=!1)=>{let r=n[e];if(Object.keys(c).length>0&&Y(r))return g(r,t);if(u||te(r,{profile:e,logger:t.logger}))return re(e,n,t,s,c,z);if(Y(r))return g(r,t);if(ke(r))return we(r,t,s);if(he(r))return ae(t,e);if(ye(r))return await de(e,r,t,s);if(ce(r))return ue(e,t,s);throw new O.CredentialsProviderError(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:t.logger})},Te=(e={})=>async({callerClientConfig:n}={})=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let t=await L.parseKnownFiles(e);return z(L.getProfileName({profile:e.profile??n?.profile}),t,e,n)},Ee;var Ie=l(()=>{L=G(),O=U(),w=_(),p=J();Ee=Te});Ie();export{Ee as fromIni};export default {get fromIni(){return Ee}};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$3 as Dr,Z3 as F,_3 as Nr,a4 as br,b4 as Ge,c4 as Zt,d4 as Et,e4 as $r,f4 as Is,g4 as Ar,h4 as Fr,i4 as hs,j4 as G,k4 as tt,l4 as pr,m4 as _r,o4 as Er,p4 as Sr,q4 as Rr,r4 as xr,s4 as vr,t4 as Kt,u4 as kt,v4 as er,w4 as Ur,x4 as Mr}from"./cli-0.1.14-qzcceap6.mjs";import{y4 as ps}from"./cli-0.1.14-3m63hy2a.mjs";import{z4 as we}from"./cli-0.1.14-jnfs73kb.mjs";import{Ola as dr,Pla as Z,Qla as Ce}from"./cli-0.1.14-wwehdfwx.mjs";import{Rla as ir}from"./cli-0.1.14-0nhaxy76.mjs";import{Tla as Xe}from"./cli-0.1.14-8fr10t94.mjs";import{$la as S,Zla as ge,bma as no,cma as X}from"./cli-0.1.14-qn4ftczz.mjs";var De=S((Zs)=>{var Ls=Z(),Ts=F(),p=Ce(),w=we(),zs=X("node:fs"),Hs=({logger:e,signingName:s}={})=>async()=>{if(e?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!s)throw new p.TokenProviderError("Please pass 'signingName' to compute environment variable key",{logger:e});let t=Ts.getBearerTokenEnvKey(s);if(!(t in process.env))throw new p.TokenProviderError(`Token not present in '${t}' environment variable`,{logger:e});let o={token:process.env[t]};return Ls.setTokenFeature(o,"BEARER_SERVICE_ENV_VARS","3"),o},Vs=300000,K="To refresh this SSO session run 'aws sso login' with the corresponding profile.",Bs=async(e,s={},t)=>{let{SSOOIDCClient:o}=await import("./index-0.1.14-mzhk0gvs.mjs").then((m)=>ge(m.default)),r=(c)=>s.clientConfig?.[c]??s.parentClientConfig?.[c]??t?.[c];return new o(Object.assign({},s.clientConfig??{},{region:e??s.clientConfig?.region,logger:r("logger"),userAgentAppId:r("userAgentAppId")}))},Ys=async(e,s,t={},o)=>{let{CreateTokenCommand:r}=await import("./index-0.1.14-mzhk0gvs.mjs").then((m)=>ge(m.default));return(await Bs(s,t,o)).send(new r({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))},Pe=(e)=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new p.TokenProviderError(`Token is expired. ${K}`,!1)},h=(e,s,t=!1)=>{if(typeof s>"u")throw new p.TokenProviderError(`Value not present for '${e}' in SSO Token${t?". Cannot refresh":""}. ${K}`,!1)},{writeFile:Qs}=zs.promises,Js=(e,s)=>{let t=w.getSSOTokenFilepath(e),o=JSON.stringify(s,null,2);return Qs(t,o)},ye=new Date(0),Ne=(e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");let t=await w.parseKnownFiles(e),o=w.getProfileName({profile:e.profile??s?.profile}),r=t[o];if(!r)throw new p.TokenProviderError(`Profile '${o}' could not be found in shared credentials file.`,!1);else if(!r.sso_session)throw new p.TokenProviderError(`Profile '${o}' is missing required property 'sso_session'.`);let n=r.sso_session,_=(await w.loadSsoSessionData(e))[n];if(!_)throw new p.TokenProviderError(`Sso session '${n}' could not be found in shared credentials file.`,!1);for(let a of["sso_start_url","sso_region"])if(!_[a])throw new p.TokenProviderError(`Sso session '${n}' is missing required property '${a}'.`,!1);_.sso_start_url;let d=_.sso_region,l;try{l=await w.getSSOTokenFromFile(n)}catch(a){throw new p.TokenProviderError(`The SSO session token associated with profile=${o} was not found or is invalid. ${K}`,!1)}h("accessToken",l.accessToken),h("expiresAt",l.expiresAt);let{accessToken:u,expiresAt:C}=l,x={token:u,expiration:new Date(C)};if(x.expiration.getTime()-Date.now()>Vs)return x;if(Date.now()-ye.getTime()<30000)return Pe(x),x;h("clientId",l.clientId,!0),h("clientSecret",l.clientSecret,!0),h("refreshToken",l.refreshToken,!0);try{ye.setTime(Date.now());let a=await Ys(l,d,e,s);h("accessToken",a.accessToken),h("expiresIn",a.expiresIn);let v=new Date(Date.now()+a.expiresIn*1000);try{await Js(n,{...l,accessToken:a.accessToken,expiresAt:v.toISOString(),refreshToken:a.refreshToken})}catch(J){}return{token:a.accessToken,expiration:v}}catch(a){return Pe(x),x}},Ws=({token:e,logger:s})=>async()=>{if(s?.debug("@aws-sdk/token-providers - fromStatic"),!e||!e.token)throw new p.TokenProviderError("Please pass a valid token to fromStatic",!1);return e},Xs=(e={})=>p.memoize(p.chain(Ne(e),async()=>{throw new p.TokenProviderError("Could not load token from any providers",!1)}),(s)=>s.expiration!==void 0&&s.expiration.getTime()-Date.now()<300000,(s)=>s.expiration!==void 0);Zs.fromEnvSigningName=Hs;Zs.fromSso=Ne;Zs.fromStatic=Ws;Zs.nodeProvider=Xs});var ee=S((be)=>{Object.defineProperty(be,"__esModule",{value:!0});be.resolveHttpAuthSchemeConfig=be.defaultSSOHttpAuthSchemeProvider=be.defaultSSOHttpAuthSchemeParametersProvider=void 0;var rt=F(),k=tt(),ot=async(e,s,t)=>{return{operation:(0,k.getSmithyContext)(s).operation,region:await(0,k.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};be.defaultSSOHttpAuthSchemeParametersProvider=ot;function nt(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:(s,t)=>({signingProperties:{config:s,context:t}})}}function at(e){return{schemeId:"smithy.api#noAuth"}}var ct=(e)=>{let s=[];switch(e.operation){case"GetRoleCredentials":{s.push(at(e));break}default:s.push(nt(e))}return s};be.defaultSSOHttpAuthSchemeProvider=ct;var lt=(e)=>{let s=(0,rt.resolveAwsSdkSigV4Config)(e);return Object.assign(s,{authSchemePreference:(0,k.normalizeProvider)(e.authSchemePreference??[])})};be.resolveHttpAuthSchemeConfig=lt});var Te=S((je)=>{Object.defineProperty(je,"__esModule",{value:!0});je.bdd=void 0;var dt=Ge(),N="ref",f=-1,U=!0,Ae="isSet",me="PartitionResult",M="booleanEquals",se="getAttr",Fe={[N]:"Endpoint"},te={[N]:me},g={},Ue=[{[N]:"Region"}],Me={conditions:[[Ae,[Fe]],[Ae,Ue],["aws.partition",Ue,me],[M,[{[N]:"UseFIPS"},U]],[M,[{[N]:"UseDualStack"},U]],[M,[{fn:se,argv:[te,"supportsDualStack"]},U]],[M,[{fn:se,argv:[te,"supportsFIPS"]},U]],["stringEquals",[{fn:se,argv:[te,"name"]},"aws-us-gov"]]],results:[[f],[f,"Invalid Configuration: FIPS and custom endpoint are not supported"],[f,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[Fe,g],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[f,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",g],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",g],[f,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",g],[f,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",g],[f,"Invalid Configuration: Missing Region"]]},pt=2,i=1e8,_t=new Int32Array([-1,1,-1,0,13,3,1,4,i+12,2,5,i+12,3,8,6,4,7,i+11,5,i+9,i+10,4,11,9,6,10,i+8,7,i+6,i+7,5,12,i+5,6,i+4,i+5,3,i+1,14,4,i+2,i+3]);je.bdd=dt.BinaryDecisionDiagram.from(_t,pt,Me.conditions,Me.results)});var Ve=S((ze)=>{Object.defineProperty(ze,"__esModule",{value:!0});ze.defaultEndpointResolver=void 0;var St=Et(),re=Ge(),Rt=Te(),xt=new re.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),vt=(e,s={})=>{return xt.get(e,()=>(0,re.decideEndpoint)(Rt.bdd,{endpointParams:e,logger:s.logger}))};ze.defaultEndpointResolver=vt;re.customEndpointFunctions.aws=St.awsEndpointFunctions});var m=S((ne)=>{Object.defineProperty(ne,"__esModule",{value:!0});ne.SSOServiceException=ne.__ServiceException=void 0;var Be=G();Object.defineProperty(ne,"__ServiceException",{enumerable:!0,get:function(){return Be.ServiceException}});class oe extends Be.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,oe.prototype)}}ne.SSOServiceException=oe});var ie=S((Qe)=>{Object.defineProperty(Qe,"__esModule",{value:!0});Qe.UnauthorizedException=Qe.TooManyRequestsException=Qe.ResourceNotFoundException=Qe.InvalidRequestException=void 0;var j=m();class ae extends j.SSOServiceException{name="InvalidRequestException";$fault="client";constructor(e){super({name:"InvalidRequestException",$fault:"client",...e});Object.setPrototypeOf(this,ae.prototype)}}Qe.InvalidRequestException=ae;class ce extends j.SSOServiceException{name="ResourceNotFoundException";$fault="client";constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ce.prototype)}}Qe.ResourceNotFoundException=ce;class le extends j.SSOServiceException{name="TooManyRequestsException";$fault="client";constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e});Object.setPrototypeOf(this,le.prototype)}}Qe.TooManyRequestsException=le;class ue extends j.SSOServiceException{name="UnauthorizedException";$fault="client";constructor(e){super({name:"UnauthorizedException",$fault:"client",...e});Object.setPrototypeOf(this,ue.prototype)}}Qe.UnauthorizedException=ue});var de=S((es)=>{Object.defineProperty(es,"__esModule",{value:!0});es.GetRoleCredentials$=es.RoleCredentials$=es.GetRoleCredentialsResponse$=es.GetRoleCredentialsRequest$=es.errorTypeRegistries=es.UnauthorizedException$=es.TooManyRequestsException$=es.ResourceNotFoundException$=es.InvalidRequestException$=es.SSOServiceException$=void 0;var ft="AccessTokenType",qt="GetRoleCredentials",Pt="GetRoleCredentialsRequest",yt="GetRoleCredentialsResponse",gt="InvalidRequestException",Ct="RoleCredentials",wt="ResourceNotFoundException",Nt="SecretAccessKeyType",Dt="SessionTokenType",bt="TooManyRequestsException",$t="UnauthorizedException",At="accountId",Ft="accessKeyId",Ut="accessToken",Mt="account_id",L="client",T="error",Gt="expiration",mt="http",z="httpError",jt="httpHeader",We="httpQuery",H="message",Lt="roleCredentials",Tt="roleName",zt="role_name",Ze="smithy.ts.sdk.synthetic.com.amazonaws.sso",Ht="secretAccessKey",Vt="sessionToken",Bt="x-amz-sso_bearer_token",E="com.amazonaws.sso",Ke=Xe(),V=ie(),Yt=m(),ke=Ke.TypeRegistry.for(Ze);es.SSOServiceException$=[-3,Ze,"SSOServiceException",0,[],[]];ke.registerError(es.SSOServiceException$,Yt.SSOServiceException);var D=Ke.TypeRegistry.for(E);es.InvalidRequestException$=[-3,E,gt,{[T]:L,[z]:400},[H],[0]];D.registerError(es.InvalidRequestException$,V.InvalidRequestException);es.ResourceNotFoundException$=[-3,E,wt,{[T]:L,[z]:404},[H],[0]];D.registerError(es.ResourceNotFoundException$,V.ResourceNotFoundException);es.TooManyRequestsException$=[-3,E,bt,{[T]:L,[z]:429},[H],[0]];D.registerError(es.TooManyRequestsException$,V.TooManyRequestsException);es.UnauthorizedException$=[-3,E,$t,{[T]:L,[z]:401},[H],[0]];D.registerError(es.UnauthorizedException$,V.UnauthorizedException);es.errorTypeRegistries=[ke,D];var Qt=[0,E,ft,8,0],Jt=[0,E,Nt,8,0],Wt=[0,E,Dt,8,0];es.GetRoleCredentialsRequest$=[3,E,Pt,0,[Tt,At,Ut],[[0,{[We]:zt}],[0,{[We]:Mt}],[()=>Qt,{[jt]:Bt}]],3];es.GetRoleCredentialsResponse$=[3,E,yt,0,[Lt],[[()=>es.RoleCredentials$,0]]];es.RoleCredentials$=[3,E,Ct,0,[Ft,Ht,Vt,Gt],[0,[()=>Jt,0],[()=>Wt,0],1]];es.GetRoleCredentials$=[9,E,qt,{[mt]:["GET","/federation/credentials",200]},()=>es.GetRoleCredentialsRequest$,()=>es.GetRoleCredentialsResponse$]});var Ss=S((_s)=>{Object.defineProperty(_s,"__esModule",{value:!0});_s.getRuntimeConfig=void 0;var sr=F(),tr=kt(),rr=ps(),or=G(),nr=Zt(),is=er(),ds=Kt(),ar=ee(),cr=Ve(),lr=de(),ur=(e)=>{return{apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??is.fromBase64,base64Encoder:e?.base64Encoder??is.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??cr.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??ar.defaultSSOHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(s)=>s.getIdentityProvider("aws.auth#sigv4"),signer:new sr.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:(s)=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new rr.NoAuthSigner}],logger:e?.logger??new or.NoOpLogger,protocol:e?.protocol??tr.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:lr.errorTypeRegistries,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??nr.parseUrl,utf8Decoder:e?.utf8Decoder??ds.fromUtf8,utf8Encoder:e?.utf8Encoder??ds.toUtf8}};_s.getRuntimeConfig=ur});var Ps=S((fs)=>{Object.defineProperty(fs,"__esModule",{value:!0});fs.getRuntimeConfig=void 0;var Or=pr(),Ir=Or.__importDefault(_r()),hr=Z(),fr=F(),Rs=Er(),B=Is(),qr=Sr(),xs=hs(),q=Rr(),vs=ir(),Os=G(),Pr=xr(),yr=vr(),gr=dr(),Cr=Ss(),wr=(e)=>{(0,Os.emitWarningIfUnsupportedVersion)(process.version);let s=(0,yr.resolveDefaultsModeConfig)(e),t=()=>s().then(Os.loadConfigsForDefaultMode),o=(0,Cr.getRuntimeConfig)(e);(0,hr.emitWarningIfUnsupportedVersion)(process.version);let r={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:s,authSchemePreference:e?.authSchemePreference??(0,q.loadConfig)(fr.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,r),bodyLengthChecker:e?.bodyLengthChecker??Pr.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,Rs.createDefaultUserAgentProvider)({serviceId:o.serviceId,clientVersion:Ir.default.version}),maxAttempts:e?.maxAttempts??(0,q.loadConfig)(xs.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,q.loadConfig)(B.NODE_REGION_CONFIG_OPTIONS,{...B.NODE_REGION_CONFIG_FILE_OPTIONS,...r}),requestHandler:vs.NodeHttpHandler.create(e?.requestHandler??t),retryMode:e?.retryMode??(0,q.loadConfig)({...xs.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await t()).retryMode||gr.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??qr.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??vs.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,q.loadConfig)(B.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,r),useFipsEndpoint:e?.useFipsEndpoint??(0,q.loadConfig)(B.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,r),userAgentAppId:e?.userAgentAppId??(0,q.loadConfig)(Rs.NODE_APP_ID_CONFIG_OPTIONS,r)}};fs.getRuntimeConfig=wr});var $s=S((O)=>{var ys=Nr(),Gr=Dr(),mr=br(),gs=$r(),jr=Is(),pe=ps(),Lr=Xe(),Tr=Ar(),bs=Fr(),Cs=hs(),P=G(),ws=ee(),zr=Ps(),Ns=Ur(),Ds=Mr(),b=de(),Y=ie(),Hr=m(),Vr=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"})},Br={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},Yr=(e)=>{let{httpAuthSchemes:s,httpAuthSchemeProvider:t,credentials:o}=e;return{setHttpAuthScheme(r){let n=s.findIndex((c)=>c.schemeId===r.schemeId);if(n===-1)s.push(r);else s.splice(n,1,r)},httpAuthSchemes(){return s},setHttpAuthSchemeProvider(r){t=r},httpAuthSchemeProvider(){return t},setCredentials(r){o=r},credentials(){return o}}},Qr=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}},Jr=(e,s)=>{let t=Object.assign(Ns.getAwsRegionExtensionConfiguration(e),P.getDefaultExtensionConfiguration(e),Ds.getHttpHandlerExtensionConfiguration(e),Yr(e));return s.forEach((o)=>o.configure(t)),Object.assign(e,Ns.resolveAwsRegionExtensionConfiguration(t),P.resolveDefaultRuntimeConfig(t),Ds.resolveHttpHandlerRuntimeConfig(t),Qr(t))};class _e extends P.Client{config;constructor(...[e]){let s=zr.getRuntimeConfig(e||{});super(s);this.initConfig=s;let t=Vr(s),o=gs.resolveUserAgentConfig(t),r=Cs.resolveRetryConfig(o),n=jr.resolveRegionConfig(r),c=ys.resolveHostHeaderConfig(n),_=bs.resolveEndpointConfig(c),d=ws.resolveHttpAuthSchemeConfig(_),l=Jr(d,e?.extensions||[]);this.config=l,this.middlewareStack.use(Lr.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(gs.getUserAgentPlugin(this.config)),this.middlewareStack.use(Cs.getRetryPlugin(this.config)),this.middlewareStack.use(Tr.getContentLengthPlugin(this.config)),this.middlewareStack.use(ys.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Gr.getLoggerPlugin(this.config)),this.middlewareStack.use(mr.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(pe.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:ws.defaultSSOHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(u)=>new pe.DefaultIdentityProviderConfig({"aws.auth#sigv4":u.credentials})})),this.middlewareStack.use(pe.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class Ee extends P.Command.classBuilder().ep(Br).m(function(e,s,t,o){return[bs.getEndpointPlugin(t,e.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(b.GetRoleCredentials$).build(){}var Wr={GetRoleCredentialsCommand:Ee};class Se extends _e{}P.createAggregatedClient(Wr,Se);O.$Command=P.Command;O.__Client=P.Client;O.SSOServiceException=Hr.SSOServiceException;O.GetRoleCredentialsCommand=Ee;O.SSO=Se;O.SSOClient=_e;Object.prototype.hasOwnProperty.call(b,"__proto__")&&!Object.prototype.hasOwnProperty.call(O,"__proto__")&&Object.defineProperty(O,"__proto__",{enumerable:!0,value:b.__proto__});Object.keys(b).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(O,e))O[e]=b[e]});Object.prototype.hasOwnProperty.call(Y,"__proto__")&&!Object.prototype.hasOwnProperty.call(O,"__proto__")&&Object.defineProperty(O,"__proto__",{enumerable:!0,value:Y.__proto__});Object.keys(Y).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(O,e))O[e]=Y[e]})});var Fs=S((to)=>{var As=$s();to.GetRoleCredentialsCommand=As.GetRoleCredentialsCommand;to.SSOClient=As.SSOClient});var R,Q,Us,ao,Gs=(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"),$=!1,Ms=async({ssoStartUrl:e,ssoSession:s,ssoAccountId:t,ssoRegion:o,ssoRoleName:r,ssoClient:n,clientConfig:c,parentClientConfig:_,callerClientConfig:d,profile:l,filepath:u,configFilepath:C,ignoreCache:x,logger:a})=>{let v,J="To refresh this SSO session run aws sso login with the corresponding profile.";if(s)try{let I=await ao.fromSso({profile:l,filepath:u,configFilepath:C,ignoreCache:x})();v={accessToken:I.token,expiresAt:new Date(I.expiration).toISOString()}}catch(I){throw new R.CredentialsProviderError(I.message,{tryNextLink:$,logger:a})}else try{v=await Q.getSSOTokenFromFile(e)}catch(I){throw new R.CredentialsProviderError("The SSO session associated with this profile is invalid. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:$,logger:a})}if(new Date(v.expiresAt).getTime()-Date.now()<=0)throw new R.CredentialsProviderError("The SSO session associated with this profile has expired. To refresh this SSO session run aws sso login with the corresponding profile.",{tryNextLink:$,logger:a});let{accessToken:Re}=v,{SSOClient:y,GetRoleCredentialsCommand:A}=await Promise.resolve().then(function(){return Fs()}),js=n||new y(Object.assign({},c??{},{logger:c?.logger??d?.logger??_?.logger,region:c?.region??o,userAgentAppId:c?.userAgentAppId??d?.userAgentAppId??_?.userAgentAppId})),xe;try{xe=await js.send(new A({accountId:t,roleName:r,accessToken:Re}))}catch(I){throw new R.CredentialsProviderError(I,{tryNextLink:$,logger:a})}let{roleCredentials:{accessKeyId:ve,secretAccessKey:Oe,sessionToken:Ie,expiration:he,credentialScope:fe,accountId:qe}={}}=xe;if(!ve||!Oe||!Ie||!he)throw new R.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:$,logger:a});let W={accessKeyId:ve,secretAccessKey:Oe,sessionToken:Ie,expiration:new Date(he),...fe&&{credentialScope:fe},...qe&&{accountId:qe}};if(s)Us.setCredentialFeature(W,"CREDENTIALS_SSO","s");else Us.setCredentialFeature(W,"CREDENTIALS_SSO_LEGACY","u");return W},ms=(e,s)=>{let{sso_start_url:t,sso_account_id:o,sso_region:r,sso_role_name:n}=e;if(!t||!o||!r||!n)throw new R.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:s});return e},co=(e={})=>async({callerClientConfig:s}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:t,ssoAccountId:o,ssoRegion:r,ssoRoleName:n,ssoSession:c}=e,{ssoClient:_}=e,d=Q.getProfileName({profile:e.profile??s?.profile});if(!t&&!o&&!r&&!n&&!c){let u=(await Q.parseKnownFiles(e))[d];if(!u)throw new R.CredentialsProviderError(`Profile ${d} was not found.`,{logger:e.logger});if(!Gs(u))throw new R.CredentialsProviderError(`Profile ${d} is not configured with SSO credentials.`,{logger:e.logger});if(u?.sso_session){let y=(await Q.loadSsoSessionData(e))[u.sso_session],A=` configurations in profile ${d} and sso-session ${u.sso_session}`;if(r&&r!==y.sso_region)throw new R.CredentialsProviderError("Conflicting SSO region"+A,{tryNextLink:!1,logger:e.logger});if(t&&t!==y.sso_start_url)throw new R.CredentialsProviderError("Conflicting SSO start_url"+A,{tryNextLink:!1,logger:e.logger});u.sso_region=y.sso_region,u.sso_start_url=y.sso_start_url}let{sso_start_url:C,sso_account_id:x,sso_region:a,sso_role_name:v,sso_session:J}=ms(u,e.logger);return Ms({ssoStartUrl:C,ssoSession:J,ssoAccountId:x,ssoRegion:a,ssoRoleName:v,ssoClient:_,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:d,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}else if(!t||!o||!r||!n)throw new R.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});else return Ms({ssoStartUrl:t,ssoSession:c,ssoAccountId:o,ssoRegion:r,ssoRoleName:n,ssoClient:_,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:d,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})},lo,uo,io;var po=no(()=>{R=Ce(),Q=we(),Us=Z(),ao=De();lo=co,uo=Gs,io=ms});po();export{io as validateSsoProfile,uo as isSsoProfile,lo as fromSSO};export default {get validateSsoProfile(){return io},get isSsoProfile(){return uo},get fromSSO(){return lo}};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Y3 as S}from"./cli-0.1.14-d1edbjh4.mjs";import"./cli-0.1.14-qzcceap6.mjs";import"./cli-0.1.14-3m63hy2a.mjs";import{z4 as A}from"./cli-0.1.14-jnfs73kb.mjs";import{Pla as I,Qla as h}from"./cli-0.1.14-wwehdfwx.mjs";import"./cli-0.1.14-0nhaxy76.mjs";import"./cli-0.1.14-8fr10t94.mjs";import{$la as p,cma as F}from"./cli-0.1.14-qn4ftczz.mjs";var d=p((n)=>{var w=n&&n.__createBinding||(Object.create?function(e,r,o,t){if(t===void 0)t=o;var _=Object.getOwnPropertyDescriptor(r,o);if(!_||("get"in _?!r.__esModule:_.writable||_.configurable))_={enumerable:!0,get:function(){return r[o]}};Object.defineProperty(e,t,_)}:function(e,r,o,t){if(t===void 0)t=o;e[t]=r[o]}),v=n&&n.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),j=n&&n.__importStar||function(){var e=function(r){return e=Object.getOwnPropertyNames||function(o){var t=[];for(var _ in o)if(Object.prototype.hasOwnProperty.call(o,_))t[t.length]=_;return t},e(r)};return function(r){if(r&&r.__esModule)return r;var o={};if(r!=null){for(var t=e(r),_=0;_<t.length;_++)if(t[_]!=="default")w(o,r,t[_])}return v(o,r),o}}();Object.defineProperty(n,"__esModule",{value:!0});n.fromWebToken=void 0;var m=(e)=>async(r)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:o,roleSessionName:t,webIdentityToken:_,providerId:s,policyArns:y,policy:b,durationSeconds:T}=e,{roleAssumerWithWebIdentity:l}=e;if(!l){let{getDefaultRoleAssumerWithWebIdentity:N}=await Promise.resolve().then(()=>j(S()));l=N({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...r?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return l({RoleArn:o,RoleSessionName:t??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:_,ProviderId:s,PolicyArns:y,Policy:b,DurationSeconds:T})};n.fromWebToken=m});var u=p((E)=>{Object.defineProperty(E,"__esModule",{value:!0});E.fromTokenFile=void 0;var P=I(),g=h(),k=A(),R=F("node:fs"),q=d(),O="AWS_WEB_IDENTITY_TOKEN_FILE",L="AWS_ROLE_ARN",W="AWS_ROLE_SESSION_NAME",V=(e={})=>async(r)=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let o=e?.webIdentityTokenFile??process.env[O],t=e?.roleArn??process.env[L],_=e?.roleSessionName??process.env[W];if(!o||!t)throw new g.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});let s=await(0,q.fromWebToken)({...e,webIdentityToken:k.externalDataInterceptor?.getTokenRecord?.()[o]??(0,R.readFileSync)(o,{encoding:"ascii"}),roleArn:t,roleSessionName:_})(r);if(o===process.env[O])(0,P.setCredentialFeature)(s,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h");return s};E.fromTokenFile=V});var x=p((c)=>{var i=u(),a=d();Object.prototype.hasOwnProperty.call(i,"__proto__")&&!Object.prototype.hasOwnProperty.call(c,"__proto__")&&Object.defineProperty(c,"__proto__",{enumerable:!0,value:i.__proto__});Object.keys(i).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(c,e))c[e]=i[e]});Object.prototype.hasOwnProperty.call(a,"__proto__")&&!Object.prototype.hasOwnProperty.call(c,"__proto__")&&Object.defineProperty(c,"__proto__",{enumerable:!0,value:a.__proto__});Object.keys(a).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(c,e))c[e]=a[e]})});export default x();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Xla as ls}from"./cli-0.1.14-8fr10t94.mjs";import{$la as z,bma as hs,cma as Xn}from"./cli-0.1.14-qn4ftczz.mjs";var V=z((js,Z)=>{var _,nn,en,sn,tn,hn,ln,cn,yn,wn,Sn,an,fn,Q,F,bn,un,gn,T,Mn,Un,Bn,$n,In,On,zn,Nn,Gn,X,rn,Cn,Tn;(function(n){var s=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd)define("tslib",["exports"],function(a){n(c(s,c(a)))});else if(typeof Z==="object"&&typeof js==="object")n(c(s,c(js)));else n(c(s));function c(a,w){if(a!==s)if(typeof Object.create==="function")Object.defineProperty(a,"__esModule",{value:!0});else a.__esModule=!0;return function(e,t){return a[e]=w?w(e,t):t}}})(function(n){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var h in t)if(Object.prototype.hasOwnProperty.call(t,h))e[h]=t[h]};_=function(e,t){if(typeof t!=="function"&&t!==null)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");s(e,t);function h(){this.constructor=e}e.prototype=t===null?Object.create(t):(h.prototype=t.prototype,new h)},nn=Object.assign||function(e){for(var t,h=1,l=arguments.length;h<l;h++){t=arguments[h];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e},en=function(e,t){var h={};for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)&&t.indexOf(l)<0)h[l]=e[l];if(e!=null&&typeof Object.getOwnPropertySymbols==="function"){for(var i=0,l=Object.getOwnPropertySymbols(e);i<l.length;i++)if(t.indexOf(l[i])<0&&Object.prototype.propertyIsEnumerable.call(e,l[i]))h[l[i]]=e[l[i]]}return h},sn=function(e,t,h,l){var i=arguments.length,y=i<3?t:l===null?l=Object.getOwnPropertyDescriptor(t,h):l,S;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")y=Reflect.decorate(e,t,h,l);else for(var b=e.length-1;b>=0;b--)if(S=e[b])y=(i<3?S(y):i>3?S(t,h,y):S(t,h))||y;return i>3&&y&&Object.defineProperty(t,h,y),y},tn=function(e,t){return function(h,l){t(h,l,e)}},hn=function(e,t,h,l,i,y){function S(r){if(r!==void 0&&typeof r!=="function")throw TypeError("Function expected");return r}var b=l.kind,g=b==="getter"?"get":b==="setter"?"set":"value",f=!t&&e?l.static?e:e.prototype:null,u=t||(f?Object.getOwnPropertyDescriptor(f,l.name):{}),U,B=!1;for(var M=h.length-1;M>=0;M--){var I={};for(var O in l)I[O]=O==="access"?{}:l[O];for(var O in l.access)I.access[O]=l.access[O];I.addInitializer=function(r){if(B)throw TypeError("Cannot add initializers after decoration has completed");y.push(S(r||null))};var $=(0,h[M])(b==="accessor"?{get:u.get,set:u.set}:u[g],I);if(b==="accessor"){if($===void 0)continue;if($===null||typeof $!=="object")throw TypeError("Object expected");if(U=S($.get))u.get=U;if(U=S($.set))u.set=U;if(U=S($.init))i.unshift(U)}else if(U=S($))if(b==="field")i.unshift(U);else u[g]=U}if(f)Object.defineProperty(f,l.name,u);B=!0},ln=function(e,t,h){var l=arguments.length>2;for(var i=0;i<t.length;i++)h=l?t[i].call(e,h):t[i].call(e);return l?h:void 0},cn=function(e){return typeof e==="symbol"?e:"".concat(e)},yn=function(e,t,h){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:!0,value:h?"".concat(h," ",t):t})},wn=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)},Sn=function(e,t,h,l){function i(y){return y instanceof h?y:new h(function(S){S(y)})}return new(h||(h=Promise))(function(y,S){function b(u){try{f(l.next(u))}catch(U){S(U)}}function g(u){try{f(l.throw(u))}catch(U){S(U)}}function f(u){u.done?y(u.value):i(u.value).then(b,g)}f((l=l.apply(e,t||[])).next())})},an=function(e,t){var h={label:0,sent:function(){if(y[0]&1)throw y[1];return y[1]},trys:[],ops:[]},l,i,y,S=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return S.next=b(0),S.throw=b(1),S.return=b(2),typeof Symbol==="function"&&(S[Symbol.iterator]=function(){return this}),S;function b(f){return function(u){return g([f,u])}}function g(f){if(l)throw TypeError("Generator is already executing.");while(S&&(S=0,f[0]&&(h=0)),h)try{if(l=1,i&&(y=f[0]&2?i.return:f[0]?i.throw||((y=i.return)&&y.call(i),0):i.next)&&!(y=y.call(i,f[1])).done)return y;if(i=0,y)f=[f[0]&2,y.value];switch(f[0]){case 0:case 1:y=f;break;case 4:return h.label++,{value:f[1],done:!1};case 5:h.label++,i=f[1],f=[0];continue;case 7:f=h.ops.pop(),h.trys.pop();continue;default:if((y=h.trys,!(y=y.length>0&&y[y.length-1]))&&(f[0]===6||f[0]===2)){h=0;continue}if(f[0]===3&&(!y||f[1]>y[0]&&f[1]<y[3])){h.label=f[1];break}if(f[0]===6&&h.label<y[1]){h.label=y[1],y=f;break}if(y&&h.label<y[2]){h.label=y[2],h.ops.push(f);break}if(y[2])h.ops.pop();h.trys.pop();continue}f=t.call(e,h)}catch(u){f=[6,u],i=0}finally{l=y=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},fn=function(e,t){for(var h in e)if(h!=="default"&&!Object.prototype.hasOwnProperty.call(t,h))X(t,e,h)},X=Object.create?function(e,t,h,l){if(l===void 0)l=h;var i=Object.getOwnPropertyDescriptor(t,h);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable))i={enumerable:!0,get:function(){return t[h]}};Object.defineProperty(e,l,i)}:function(e,t,h,l){if(l===void 0)l=h;e[l]=t[h]},Q=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,h=t&&e[t],l=0;if(h)return h.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&l>=e.length)e=void 0;return{value:e&&e[l++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},F=function(e,t){var h=typeof Symbol==="function"&&e[Symbol.iterator];if(!h)return e;var l=h.call(e),i,y=[],S;try{while((t===void 0||t-- >0)&&!(i=l.next()).done)y.push(i.value)}catch(b){S={error:b}}finally{try{if(i&&!i.done&&(h=l.return))h.call(l)}finally{if(S)throw S.error}}return y},bn=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(F(arguments[t]));return e},un=function(){for(var e=0,t=0,h=arguments.length;t<h;t++)e+=arguments[t].length;for(var l=Array(e),i=0,t=0;t<h;t++)for(var y=arguments[t],S=0,b=y.length;S<b;S++,i++)l[i]=y[S];return l},gn=function(e,t,h){if(h||arguments.length===2){for(var l=0,i=t.length,y;l<i;l++)if(y||!(l in t)){if(!y)y=Array.prototype.slice.call(t,0,l);y[l]=t[l]}}return e.concat(y||Array.prototype.slice.call(t))},T=function(e){return this instanceof T?(this.v=e,this):new T(e)},Mn=function(e,t,h){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var l=h.apply(e,t||[]),i,y=[];return i=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),b("next"),b("throw"),b("return",S),i[Symbol.asyncIterator]=function(){return this},i;function S(M){return function(I){return Promise.resolve(I).then(M,U)}}function b(M,I){if(l[M]){if(i[M]=function(O){return new Promise(function($,r){y.push([M,O,$,r])>1||g(M,O)})},I)i[M]=I(i[M])}}function g(M,I){try{f(l[M](I))}catch(O){B(y[0][3],O)}}function f(M){M.value instanceof T?Promise.resolve(M.value.v).then(u,U):B(y[0][2],M)}function u(M){g("next",M)}function U(M){g("throw",M)}function B(M,I){if(M(I),y.shift(),y.length)g(y[0][0],y[0][1])}},Un=function(e){var t,h;return t={},l("next"),l("throw",function(i){throw i}),l("return"),t[Symbol.iterator]=function(){return this},t;function l(i,y){t[i]=e[i]?function(S){return(h=!h)?{value:T(e[i](S)),done:!1}:y?y(S):S}:y}},Bn=function(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],h;return t?t.call(e):(e=typeof Q==="function"?Q(e):e[Symbol.iterator](),h={},l("next"),l("throw"),l("return"),h[Symbol.asyncIterator]=function(){return this},h);function l(y){h[y]=e[y]&&function(S){return new Promise(function(b,g){S=e[y](S),i(b,g,S.done,S.value)})}}function i(y,S,b,g){Promise.resolve(g).then(function(f){y({value:f,done:b})},S)}},$n=function(e,t){if(Object.defineProperty)Object.defineProperty(e,"raw",{value:t});else e.raw=t;return e};var c=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},a=function(e){return a=Object.getOwnPropertyNames||function(t){var h=[];for(var l in t)if(Object.prototype.hasOwnProperty.call(t,l))h[h.length]=l;return h},a(e)};In=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null){for(var h=a(e),l=0;l<h.length;l++)if(h[l]!=="default")X(t,e,h[l])}return c(t,e),t},On=function(e){return e&&e.__esModule?e:{default:e}},zn=function(e,t,h,l){if(h==="a"&&!l)throw TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!l:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return h==="m"?l:h==="a"?l.call(e):l?l.value:t.get(e)},Nn=function(e,t,h,l,i){if(l==="m")throw TypeError("Private method is not writable");if(l==="a"&&!i)throw TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?i.call(e,h):i?i.value=h:t.set(e,h),h},Gn=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)},rn=function(e,t,h){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw TypeError("Object expected.");var l,i;if(h){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");l=t[Symbol.asyncDispose]}if(l===void 0){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");if(l=t[Symbol.dispose],h)i=l}if(typeof l!=="function")throw TypeError("Object not disposable.");if(i)l=function(){try{i.call(this)}catch(y){return Promise.reject(y)}};e.stack.push({value:t,dispose:l,async:h})}else if(h)e.stack.push({async:!0});return t};var w=typeof SuppressedError==="function"?SuppressedError:function(e,t,h){var l=Error(h);return l.name="SuppressedError",l.error=e,l.suppressed=t,l};Cn=function(e){function t(y){e.error=e.hasError?new w(y,e.error,"An error was suppressed during disposal."):y,e.hasError=!0}var h,l=0;function i(){while(h=e.stack.pop())try{if(!h.async&&l===1)return l=0,e.stack.push(h),Promise.resolve().then(i);if(h.dispose){var y=h.dispose.call(h.value);if(h.async)return l|=2,Promise.resolve(y).then(i,function(S){return t(S),i()})}else l|=1}catch(S){t(S)}if(l===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()},Tn=function(e,t){if(typeof e==="string"&&/^\.\.?\//.test(e))return e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(h,l,i,y,S){return l?t?".jsx":".js":i&&(!y||!S)?h:i+y+"."+S.toLowerCase()+"js"});return e},n("__extends",_),n("__assign",nn),n("__rest",en),n("__decorate",sn),n("__param",tn),n("__esDecorate",hn),n("__runInitializers",ln),n("__propKey",cn),n("__setFunctionName",yn),n("__metadata",wn),n("__awaiter",Sn),n("__generator",an),n("__exportStar",fn),n("__createBinding",X),n("__values",Q),n("__read",F),n("__spread",bn),n("__spreadArrays",un),n("__spreadArray",gn),n("__await",T),n("__asyncGenerator",Mn),n("__asyncDelegator",Un),n("__asyncValues",Bn),n("__makeTemplateObject",$n),n("__importStar",In),n("__importDefault",On),n("__classPrivateFieldGet",zn),n("__classPrivateFieldSet",Nn),n("__classPrivateFieldIn",Gn),n("__addDisposableResource",rn),n("__disposeResources",Cn),n("__rewriteRelativeImportExtension",Tn)})});var Qn=z((Es,Wn)=>{var{defineProperty:H,getOwnPropertyDescriptor:fe,getOwnPropertyNames:be}=Object,ue=Object.prototype.hasOwnProperty,ge=(n,s)=>H(n,"name",{value:s,configurable:!0}),Me=(n,s)=>{for(var c in s)H(n,c,{get:s[c],enumerable:!0})},Ue=(n,s,c,a)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of be(s))if(!ue.call(n,w)&&w!==c)H(n,w,{get:()=>s[w],enumerable:!(a=fe(s,w))||a.enumerable})}return n},Be=(n)=>Ue(H({},"__esModule",{value:!0}),n),Ln={};Me(Ln,{isArrayBuffer:()=>$e});Wn.exports=Be(Ln);var $e=ge((n)=>typeof ArrayBuffer==="function"&&n instanceof ArrayBuffer||Object.prototype.toString.call(n)==="[object ArrayBuffer]","isArrayBuffer")});var Kn=z((Ps,qn)=>{var{defineProperty:q,getOwnPropertyDescriptor:Ie,getOwnPropertyNames:Oe}=Object,ze=Object.prototype.hasOwnProperty,Zn=(n,s)=>q(n,"name",{value:s,configurable:!0}),Ne=(n,s)=>{for(var c in s)q(n,c,{get:s[c],enumerable:!0})},Ge=(n,s,c,a)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of Oe(s))if(!ze.call(n,w)&&w!==c)q(n,w,{get:()=>s[w],enumerable:!(a=Ie(s,w))||a.enumerable})}return n},re=(n)=>Ge(q({},"__esModule",{value:!0}),n),Hn={};Ne(Hn,{fromArrayBuffer:()=>Te,fromString:()=>Le});qn.exports=re(Hn);var Ce=Qn(),J=Xn("buffer"),Te=Zn((n,s=0,c=n.byteLength-s)=>{if(!(0,Ce.isArrayBuffer)(n))throw TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof n} (${n})`);return J.Buffer.from(n,s,c)},"fromArrayBuffer"),Le=Zn((n,s)=>{if(typeof n!=="string")throw TypeError(`The "input" argument must be of type string. Received type ${typeof n} (${n})`);return s?J.Buffer.from(n,s):J.Buffer.from(n)},"fromString")});var An=z((ks,mn)=>{var{defineProperty:K,getOwnPropertyDescriptor:We,getOwnPropertyNames:Qe}=Object,Xe=Object.prototype.hasOwnProperty,m=(n,s)=>K(n,"name",{value:s,configurable:!0}),Ze=(n,s)=>{for(var c in s)K(n,c,{get:s[c],enumerable:!0})},He=(n,s,c,a)=>{if(s&&typeof s==="object"||typeof s==="function"){for(let w of Qe(s))if(!Xe.call(n,w)&&w!==c)K(n,w,{get:()=>s[w],enumerable:!(a=We(s,w))||a.enumerable})}return n},qe=(n)=>He(K({},"__esModule",{value:!0}),n),Fn={};Ze(Fn,{fromUtf8:()=>Jn,toUint8Array:()=>Ke,toUtf8:()=>Fe});mn.exports=qe(Fn);var Vn=Kn(),Jn=m((n)=>{let s=(0,Vn.fromString)(n,"utf8");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),Ke=m((n)=>{if(typeof n==="string")return Jn(n);if(ArrayBuffer.isView(n))return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(n)},"toUint8Array"),Fe=m((n)=>{if(typeof n==="string")return n;if(typeof n!=="object"||typeof n.byteOffset!=="number"||typeof n.byteLength!=="number")throw Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return(0,Vn.fromArrayBuffer)(n.buffer,n.byteOffset,n.byteLength).toString("utf8")},"toUtf8")});var Dn=z((Rn)=>{Object.defineProperty(Rn,"__esModule",{value:!0});Rn.convertToBuffer=void 0;var Ve=An(),Je=typeof Buffer<"u"&&Buffer.from?function(n){return Buffer.from(n,"utf8")}:Ve.fromUtf8;function me(n){if(n instanceof Uint8Array)return n;if(typeof n==="string")return Je(n);if(ArrayBuffer.isView(n))return new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT);return new Uint8Array(n)}Rn.convertToBuffer=me});var Pn=z((jn)=>{Object.defineProperty(jn,"__esModule",{value:!0});jn.isEmptyData=void 0;function Ae(n){if(typeof n==="string")return n.length===0;return n.byteLength===0}jn.isEmptyData=Ae});var dn=z((kn)=>{Object.defineProperty(kn,"__esModule",{value:!0});kn.numToUint8=void 0;function Re(n){return new Uint8Array([(n&4278190080)>>24,(n&16711680)>>16,(n&65280)>>8,n&255])}kn.numToUint8=Re});var pn=z((on)=>{Object.defineProperty(on,"__esModule",{value:!0});on.uint32ArrayFrom=void 0;function Ye(n){if(!Uint32Array.from){var s=new Uint32Array(n.length),c=0;while(c<n.length)s[c]=n[c],c+=1;return s}return Uint32Array.from(n)}on.uint32ArrayFrom=Ye});var A=z((L)=>{Object.defineProperty(L,"__esModule",{value:!0});L.uint32ArrayFrom=L.numToUint8=L.isEmptyData=L.convertToBuffer=void 0;var De=Dn();Object.defineProperty(L,"convertToBuffer",{enumerable:!0,get:function(){return De.convertToBuffer}});var je=Pn();Object.defineProperty(L,"isEmptyData",{enumerable:!0,get:function(){return je.isEmptyData}});var Ee=dn();Object.defineProperty(L,"numToUint8",{enumerable:!0,get:function(){return Ee.numToUint8}});var Pe=pn();Object.defineProperty(L,"uint32ArrayFrom",{enumerable:!0,get:function(){return Pe.uint32ArrayFrom}})});var te=z((ee)=>{Object.defineProperty(ee,"__esModule",{value:!0});ee.AwsCrc32=void 0;var _n=V(),R=A(),ne=Y(),ve=function(){function n(){this.crc32=new ne.Crc32}return n.prototype.update=function(s){if((0,R.isEmptyData)(s))return;this.crc32.update((0,R.convertToBuffer)(s))},n.prototype.digest=function(){return _n.__awaiter(this,void 0,void 0,function(){return _n.__generator(this,function(s){return[2,(0,R.numToUint8)(this.crc32.digest())]})})},n.prototype.reset=function(){this.crc32=new ne.Crc32},n}();ee.AwsCrc32=ve});var Y=z((D)=>{Object.defineProperty(D,"__esModule",{value:!0});D.AwsCrc32=D.Crc32=D.crc32=void 0;var de=V(),oe=A();function xe(n){return new he().update(n).digest()}D.crc32=xe;var he=function(){function n(){this.checksum=4294967295}return n.prototype.update=function(s){var c,a;try{for(var w=de.__values(s),e=w.next();!e.done;e=w.next()){var t=e.value;this.checksum=this.checksum>>>8^_e[(this.checksum^t)&255]}}catch(h){c={error:h}}finally{try{if(e&&!e.done&&(a=w.return))a.call(w)}finally{if(c)throw c.error}}return this},n.prototype.digest=function(){return(this.checksum^4294967295)>>>0},n}();D.Crc32=he;var pe=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918000,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],_e=(0,oe.uint32ArrayFrom)(pe),ns=te();Object.defineProperty(D,"AwsCrc32",{enumerable:!0,get:function(){return ns.AwsCrc32}})});class W{bytes;constructor(n){if(this.bytes=n,n.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(n){if(n>9223372036854776000||n<-9223372036854776000)throw Error(`${n} is too large (or, if negative, too small) to represent as an Int64`);let s=new Uint8Array(8);for(let c=7,a=Math.abs(Math.round(n));c>-1&&a>0;c--,a/=256)s[c]=a;if(n<0)le(s);return new W(s)}valueOf(){let n=this.bytes.slice(0),s=n[0]&128;if(s)le(n);return parseInt(N.toHex(n),16)*(s?-1:1)}toString(){return String(this.valueOf())}}function le(n){for(let s=0;s<8;s++)n[s]^=255;for(let s=7;s>-1;s--)if(n[s]++,n[s]!==0)break}class j{toUtf8;fromUtf8;constructor(n,s){this.toUtf8=n,this.fromUtf8=s}format(n){let s=[];for(let w of Object.keys(n)){let e=this.fromUtf8(w);s.push(Uint8Array.from([e.byteLength]),e,this.formatHeaderValue(n[w]))}let c=new Uint8Array(s.reduce((w,e)=>w+e.byteLength,0)),a=0;for(let w of s)c.set(w,a),a+=w.byteLength;return c}formatHeaderValue(n){switch(n.type){case"boolean":return Uint8Array.from([n.value?0:1]);case"byte":return Uint8Array.from([2,n.value]);case"short":let s=new DataView(new ArrayBuffer(3));return s.setUint8(0,3),s.setInt16(1,n.value,!1),new Uint8Array(s.buffer);case"integer":let c=new DataView(new ArrayBuffer(5));return c.setUint8(0,4),c.setInt32(1,n.value,!1),new Uint8Array(c.buffer);case"long":let a=new Uint8Array(9);return a[0]=5,a.set(n.value.bytes,1),a;case"binary":let w=new DataView(new ArrayBuffer(3+n.value.byteLength));w.setUint8(0,6),w.setUint16(1,n.value.byteLength,!1);let e=new Uint8Array(w.buffer);return e.set(n.value,3),e;case"string":let t=this.fromUtf8(n.value),h=new DataView(new ArrayBuffer(3+t.byteLength));h.setUint8(0,7),h.setUint16(1,t.byteLength,!1);let l=new Uint8Array(h.buffer);return l.set(t,3),l;case"timestamp":let i=new Uint8Array(9);return i[0]=8,i.set(W.fromNumber(n.value.valueOf()).bytes,1),i;case"uuid":if(!gs.test(n.value))throw Error(`Invalid UUID received: ${n.value}`);let y=new Uint8Array(17);return y[0]=9,y.set(N.fromHex(n.value.replace(/\-/g,"")),1),y}}parse(n){let s={},c=0;while(c<n.byteLength){let a=n.getUint8(c++),w=this.toUtf8(new Uint8Array(n.buffer,n.byteOffset+c,a));switch(c+=a,n.getUint8(c++)){case 0:s[w]={type:ye,value:!0};break;case 1:s[w]={type:ye,value:!1};break;case 2:s[w]={type:ys,value:n.getInt8(c++)};break;case 3:s[w]={type:is,value:n.getInt16(c,!1)},c+=2;break;case 4:s[w]={type:ws,value:n.getInt32(c,!1)},c+=4;break;case 5:s[w]={type:Ss,value:new W(new Uint8Array(n.buffer,n.byteOffset+c,8))},c+=8;break;case 6:let e=n.getUint16(c,!1);c+=2,s[w]={type:as,value:new Uint8Array(n.buffer,n.byteOffset+c,e)},c+=e;break;case 7:let t=n.getUint16(c,!1);c+=2,s[w]={type:fs,value:this.toUtf8(new Uint8Array(n.buffer,n.byteOffset+c,t))},c+=t;break;case 8:s[w]={type:bs,value:new Date(new W(new Uint8Array(n.buffer,n.byteOffset+c,8)).valueOf())},c+=8;break;case 9:let h=new Uint8Array(n.buffer,n.byteOffset+c,16);c+=16,s[w]={type:us,value:`${N.toHex(h.subarray(0,4))}-${N.toHex(h.subarray(4,6))}-${N.toHex(h.subarray(6,8))}-${N.toHex(h.subarray(8,10))}-${N.toHex(h.subarray(10))}`};break;default:throw Error("Unrecognized header type tag")}}return s}}function Us({byteLength:n,byteOffset:s,buffer:c}){if(n<Ms)throw Error("Provided message too short to accommodate event stream message overhead");let a=new DataView(c,s,n),w=a.getUint32(0,!1);if(n!==w)throw Error("Reported message length does not match received message length");let e=a.getUint32(we,!1),t=a.getUint32(G,!1),h=a.getUint32(n-C,!1),l=new ie.Crc32().update(new Uint8Array(c,s,G));if(t!==l.digest())throw Error(`The prelude checksum specified in the message (${t}) does not match the calculated CRC32 checksum (${l.digest()})`);if(l.update(new Uint8Array(c,s+G,n-(G+C))),h!==l.digest())throw Error(`The message checksum (${l.digest()}) did not match the expected value of ${h}`);return{headers:new DataView(c,s+G+C,e),body:new Uint8Array(c,s+G+C+e,w-e-(G+C+C))}}class E{headerMarshaller;messageBuffer;isEndOfStream;constructor(n,s){this.headerMarshaller=new j(n,s),this.messageBuffer=[],this.isEndOfStream=!1}feed(n){this.messageBuffer.push(this.decode(n))}endOfStream(){this.isEndOfStream=!0}getMessage(){let n=this.messageBuffer.pop(),s=this.isEndOfStream;return{getMessage(){return n},isEndOfStream(){return s}}}getAvailableMessages(){let n=this.messageBuffer;this.messageBuffer=[];let s=this.isEndOfStream;return{getMessages(){return n},isEndOfStream(){return s}}}encode({headers:n,body:s}){let c=this.headerMarshaller.format(n),a=c.byteLength+s.byteLength+16,w=new Uint8Array(a),e=new DataView(w.buffer,w.byteOffset,w.byteLength),t=new ie.Crc32;return e.setUint32(0,a,!1),e.setUint32(4,c.byteLength,!1),e.setUint32(8,t.update(w.subarray(0,8)).digest(),!1),w.set(c,12),w.set(s,c.byteLength+12),e.setUint32(a-4,t.update(w.subarray(8,a-4)).digest(),!1),w}decode(n){let{headers:s,body:c}=Us(n);return{headers:this.headerMarshaller.parse(s),body:c}}formatHeaders(n){return this.headerMarshaller.format(n)}}function Se(n){let s=0,c=0,a=null,w=null,e=(h)=>{if(typeof h!=="number")throw Error("Attempted to allocate an event message where size was not a number: "+h);s=h,c=4,a=new Uint8Array(h),new DataView(a.buffer).setUint32(0,h,!1)},t=async function*(){let h=n[Symbol.asyncIterator]();while(!0){let{value:l,done:i}=await h.next();if(i){if(!s)return;else if(s===c)yield a;else throw Error("Truncated event message received.");return}let y=l.length,S=0;while(S<y){if(!a){let g=y-S;if(!w)w=new Uint8Array(4);let f=Math.min(4-c,g);if(w.set(l.slice(S,S+f),c),c+=f,S+=f,c<4)break;e(new DataView(w.buffer).getUint32(0,!1)),w=null}let b=Math.min(s-c,y-S);if(a.set(l.slice(S,S+b),c),c+=b,S+=b,s&&s===c)yield a,a=null,s=0,c=0}}};return{[Symbol.asyncIterator]:t}}function Bs(n,s){let c=o(s.deserializer,s.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let a of n){let w=s.eventStreamCodec.decode(a),e=await c(w);if(e===void 0)continue;yield e}}}}function o(n,s){return async function(c){let{value:a}=c.headers[":message-type"];if(a==="error"){let w=Error(c.headers[":error-message"].value||"UnknownError");throw w.name=c.headers[":error-code"].value,w}else if(a==="exception"){let w=c.headers[":exception-type"].value,e={[w]:c},t=await n(e);if(t.$unknown){let h=Error(s(c.body));throw h.name=w,h}throw t[w]}else if(a==="event"){let w={[c.headers[":event-type"].value]:c},e=await n(w);if(e.$unknown)return;return e}else throw Error(`Unrecognizable event type: ${c.headers[":event-type"].value}`)}}class p{universalMarshaller;constructor({utf8Encoder:n,utf8Decoder:s}){this.universalMarshaller=new x({utf8Decoder:s,utf8Encoder:n})}deserialize(n,s){let c=typeof n[Symbol.asyncIterator]==="function"?n:Os(n);return this.universalMarshaller.deserialize(c,s)}serialize(n,s){return cs.Readable.from(this.universalMarshaller.serialize(n,s))}}async function*Os(n){let s=!1,c=!1,a=[];n.on("error",(w)=>{if(!s)s=!0;if(w)throw w}),n.on("data",(w)=>{a.push(w)}),n.on("end",()=>{s=!0});while(!c){let w=await new Promise((e)=>setTimeout(()=>e(a.shift()),0));if(w)yield w;c=s&&a.length===0}}class ae{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:n,serializer:s,deserializer:c,serdeContext:a,defaultContentType:w}){this.marshaller=n,this.serializer=s,this.deserializer=c,this.serdeContext=a,this.defaultContentType=w}async serializeEventStream({eventStream:n,requestSchema:s,initialRequest:c}){let a=this.marshaller,w=s.getEventStreamMember(),e=s.getMemberSchema(w),t=this.serializer,h=this.defaultContentType,l=Symbol("initialRequestMarker"),i={async*[Symbol.asyncIterator](){if(c){let y={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:h}};t.write(s,c);let S=t.flush();yield{[l]:!0,headers:y,body:S}}for await(let y of n)yield y}};return a.serialize(i,(y)=>{if(y[l])return{headers:y.headers,body:y.body};let S="";for(let B in y)if(B!=="__type"){S=B;break}let{additionalHeaders:b,body:g,eventType:f,explicitPayloadContentType:u}=this.writeEventBody(S,e,y);return{headers:{":event-type":{type:"string",value:f},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u??h},...b},body:g}})}async deserializeEventStream({response:n,responseSchema:s,initialResponseContainer:c}){let a=this.marshaller,w=s.getEventStreamMember(),t=s.getMemberSchema(w).getMemberSchemas(),h=Symbol("initialResponseMarker"),l=a.deserialize(n.body,async(S)=>{let b="";for(let f in S)if(f!=="__type"){b=f;break}let g=S[b].body;if(b==="initial-response"){let f=await this.deserializer.read(s,g);return delete f[w],{[h]:!0,...f}}else if(b in t){let f=t[b];if(f.isStructSchema()){let u={},U=!1;for(let[B,M]of f.structIterator()){let{eventHeader:I,eventPayload:O}=M.getMergedTraits();if(U=U||Boolean(I||O),O){if(M.isBlobSchema())u[B]=g;else if(M.isStringSchema())u[B]=(this.serdeContext?.utf8Encoder??N.toUtf8)(g);else if(M.isStructSchema())u[B]=await this.deserializer.read(M,g)}else if(I){let $=S[b].headers[B]?.value;if($!=null)if(M.isNumericSchema())if($&&typeof $==="object"&&"bytes"in $)u[B]=BigInt($.toString());else u[B]=Number($);else u[B]=$}}if(U)return{[b]:u};if(g.byteLength===0)return{[b]:{}}}return{[b]:await this.deserializer.read(f,g)}}else return{$unknown:S}}),i=l[Symbol.asyncIterator](),y=await i.next();if(y.done)return l;if(y.value?.[h]){if(!s)throw Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let S in y.value)c[S]=y.value[S]}return{async*[Symbol.asyncIterator](){if(!y?.value?.[h])yield y.value;while(!0){let{done:S,value:b}=await i.next();if(S)break;yield b}}}}writeEventBody(n,s,c){let a=this.serializer,w=n,e=null,t,h=(()=>{return s.getSchema()[4].includes(n)})(),l={};if(!h){let[S,b]=c[n];w=S,a.write(15,b)}else{let S=s.getMemberSchema(n);if(S.isStructSchema()){for(let[b,g]of S.structIterator()){let{eventHeader:f,eventPayload:u}=g.getMergedTraits();if(u)e=b;else if(f){let U=c[n][b],B="binary";if(g.isNumericSchema())if(-2147483648<=U&&U<=2147483647)B="integer";else B="long";else if(g.isTimestampSchema())B="timestamp";else if(g.isStringSchema())B="string";else if(g.isBooleanSchema())B="boolean";if(U!=null)l[b]={type:B,value:U},delete c[n][b]}}if(e!==null){let b=S.getMemberSchema(e);if(b.isBlobSchema())t="application/octet-stream";else if(b.isStringSchema())t="text/plain";a.write(b,c[n][e])}else a.write(S,c[n])}else if(S.isUnitSchema())a.write(S,{});else throw Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}let i=a.flush()??new Uint8Array;return{body:typeof i==="string"?(this.serdeContext?.utf8Decoder??N.fromUtf8)(i):i,eventType:w,explicitPayloadContentType:t,additionalHeaders:l}}}var ie,N,cs,ce,ye="boolean",ys="byte",is="short",ws="integer",Ss="long",as="binary",fs="string",bs="timestamp",us="uuid",gs,we=4,G,C=4,Ms,P,k,v,d,x=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:s,utf8Decoder:c}){this.eventStreamCodec=new E(s,c),this.utfEncoder=s}deserialize(s,c){let a=Se(s);return new v({messageStream:new P({inputStream:a,decoder:this.eventStreamCodec}),deserializer:o(c,this.utfEncoder)})}serialize(s,c){return new k({messageStream:new d({inputStream:s,serializer:c}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},$s=(n)=>new x(n),Is=(n)=>new p(n),zs=(n)=>({[Symbol.asyncIterator]:async function*(){let s=n.getReader();try{while(!0){let{done:c,value:a}=await s.read();if(c)return;yield a}}finally{s.releaseLock()}}}),Ns=(n)=>{let s=n[Symbol.asyncIterator]();return new ReadableStream({async pull(c){let{done:a,value:w}=await s.next();if(a)return c.close();c.enqueue(w)}})},Gs=(n)=>Object.assign(n,{eventStreamMarshaller:n.eventStreamSerdeProvider(n)}),rs,Cs,Ts,Ls,Ws,Qs,Xs,Zs,Hs,qs,Ks,Fs,Vs,Js,ms,As,Rs,Ys;var Ds=hs(()=>{ie=Y(),N=ls(),cs=Xn("node:stream");(function(n){n[n.boolTrue=0]="boolTrue",n[n.boolFalse=1]="boolFalse",n[n.byte=2]="byte",n[n.short=3]="short",n[n.integer=4]="integer",n[n.long=5]="long",n[n.byteArray=6]="byteArray",n[n.string=7]="string",n[n.timestamp=8]="timestamp",n[n.uuid=9]="uuid"})(ce||(ce={}));gs=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,G=we*2,Ms=G+C*2;P=class P{options;constructor(n){this.options=n}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let n of this.options.inputStream)yield this.options.decoder.decode(n)}};k=class k{options;constructor(n){this.options=n}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let n of this.options.messageStream)yield this.options.encoder.encode(n);if(this.options.includeEndFrame)yield new Uint8Array(0)}};v=class v{options;constructor(n){this.options=n}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let n of this.options.messageStream){let s=await this.options.deserializer(n);if(s===void 0)continue;yield s}}};d=class d{options;constructor(n){this.options=n}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let n of this.options.inputStream)yield this.options.serializer(n)}};rs=E,Cs=p,Ts=ae,Ls=j,Ws=W,Qs=P,Xs=k,Zs=v,Hs=d,qs=x,Ks=Is,Fs=Se,Vs=o,Js=Bs,ms=Ns,As=zs,Rs=Gs,Ys=$s});Ds();export{Ys as universalEventStreamSerdeProvider,Rs as resolveEventStreamSerdeConfig,As as readableStreamToIterable,ms as iterableToReadableStream,Js as getUnmarshalledStream,Vs as getMessageUnmarshaller,Fs as getChunkedStream,Ks as eventStreamSerdeProvider,qs as UniversalEventStreamMarshaller,Hs as SmithyMessageEncoderStream,Zs as SmithyMessageDecoderStream,Xs as MessageEncoderStream,Qs as MessageDecoderStream,Ws as Int64,Ls as HeaderMarshaller,Ts as EventStreamSerde,Cs as EventStreamMarshaller,rs as EventStreamCodec};export default {get universalEventStreamSerdeProvider(){return Ys},get resolveEventStreamSerdeConfig(){return Rs},get readableStreamToIterable(){return As},get iterableToReadableStream(){return ms},get getUnmarshalledStream(){return Js},get getMessageUnmarshaller(){return Vs},get getChunkedStream(){return Fs},get eventStreamSerdeProvider(){return Ks},get UniversalEventStreamMarshaller(){return qs},get SmithyMessageEncoderStream(){return Hs},get SmithyMessageDecoderStream(){return Zs},get MessageEncoderStream(){return Xs},get MessageDecoderStream(){return Qs},get Int64(){return Ws},get HeaderMarshaller(){return Ls},get EventStreamSerde(){return Ts},get EventStreamMarshaller(){return Cs},get EventStreamCodec(){return rs}};
|