@claudiolabs/claudio 0.1.13 → 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/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.13-tcg2ckh4.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.13-3a9b1b48.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.13-k5mkjvww.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.13-has41zv0.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.13-a0aj4df9.mjs → agents-0.1.14-pjr42t23.mjs} +1 -1
- package/dist/chunks/api-0.1.14-v09922m9.mjs +1 -0
- package/dist/chunks/{asciicast-0.1.13-d6ce2h4r.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.13-fwdmg15h.mjs → auth-0.1.14-vj6095mm.mjs} +1 -1
- package/dist/chunks/{autoMode-0.1.13-4xh49kt4.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.13-s1qw0857.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.13-2wvpbqx1.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.13-ze8mf958.mjs → cache-probe-0.1.14-zfb6aw4f.mjs} +1 -1
- package/dist/chunks/{cacheStats-0.1.13-jtrw4rdj.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.13-fs8rre9b.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.13-ajsw8n7h.mjs → cli-0.1.14-0ctjta81.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-cjmpc9q5.mjs → cli-0.1.14-0kzzfe41.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-579v6j6d.mjs → cli-0.1.14-0nhaxy76.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-8gd1x101.mjs → cli-0.1.14-0x3m90bk.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-xde08pkt.mjs → cli-0.1.14-16jrehc2.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-myd004mr.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.13-5c4fyghf.mjs → cli-0.1.14-1xkst5wv.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-fwd5b6q8.mjs → cli-0.1.14-244fknyr.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-gvz2qezh.mjs → cli-0.1.14-25ta9abj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-8sszxge2.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.13-dag38tkx.mjs → cli-0.1.14-2f7s5xbd.mjs} +5 -5
- package/dist/chunks/{cli-0.1.13-144gn3fd.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.13-84tbx1nf.mjs → cli-0.1.14-3m63hy2a.mjs} +2 -2
- package/dist/chunks/cli-0.1.14-3scecgzx.mjs +6 -0
- package/dist/chunks/{cli-0.1.13-jeyjdb2m.mjs → cli-0.1.14-3w7fbjhy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-fabrrwqa.mjs → cli-0.1.14-3xj419mp.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-xkdwvsg9.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.13-5j5bg3t2.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.13-h7a36dnk.mjs → cli-0.1.14-473sgexj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-2c7g6rpx.mjs → cli-0.1.14-4mde8z7h.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-y7aqqca1.mjs → cli-0.1.14-4tmbgg29.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-hgkwnhwv.mjs → cli-0.1.14-4wdh3k7y.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-5krmz4nd.mjs → cli-0.1.14-59axynr8.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-0zpmhn2j.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.13-9jajvw4r.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.13-qdtwrf9z.mjs → cli-0.1.14-71m91842.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-9043n2e8.mjs → cli-0.1.14-71sp86jb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-saz6qetz.mjs → cli-0.1.14-77ha4n58.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-s928gjab.mjs → cli-0.1.14-7zjhrz42.mjs} +3 -3
- package/dist/chunks/{cli-0.1.13-v32xwe08.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.13-tknwgkgp.mjs → cli-0.1.14-8fr10t94.mjs} +3 -3
- package/dist/chunks/{cli-0.1.13-b40skdsz.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.13-3k1n20ra.mjs → cli-0.1.14-9kxzs20h.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-pw5dks39.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.13-j7796v8f.mjs → cli-0.1.14-a9ytrehs.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-kzn9sspk.mjs → cli-0.1.14-ab0rxxvk.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-b3xc1r3k.mjs → cli-0.1.14-adz0gnzy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-wz7v1tqx.mjs → cli-0.1.14-aky5tegx.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-xv6wh44y.mjs → cli-0.1.14-akz49g5v.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-fz5dm31h.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.13-mezw1vk8.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.13-p4nz8zmd.mjs → cli-0.1.14-bgqm4vsk.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-1gbn4dgj.mjs → cli-0.1.14-c0bv9eha.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-30j4h365.mjs → cli-0.1.14-c4v2kfdn.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-mahtf0ay.mjs → cli-0.1.14-canpypsb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-wwnez3j0.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.13-5061js0h.mjs → cli-0.1.14-ckjcet41.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-2vrh3n9y.mjs → cli-0.1.14-cp2pada5.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-d8wkcw90.mjs → cli-0.1.14-d1edbjh4.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-87xfe2f3.mjs → cli-0.1.14-d483gd53.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-0xy8k6yv.mjs → cli-0.1.14-d4zkffre.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-0p3b9j40.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.13-apjxy5tn.mjs → cli-0.1.14-dt11hwkv.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-xvvtja1h.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.13-ks4x4cct.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.13-w8h6wdez.mjs → cli-0.1.14-fhfj87ej.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-m61dhxfs.mjs → cli-0.1.14-fmgz6tx2.mjs} +3 -3
- package/dist/chunks/{cli-0.1.13-dmgp48vg.mjs → cli-0.1.14-fmmxw3gj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-wxdmc1dd.mjs → cli-0.1.14-fspxpmh7.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-fzb4yx18.mjs → cli-0.1.14-ftjxb57b.mjs} +4 -4
- package/dist/chunks/{cli-0.1.13-e58n0k16.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.13-79vtnprb.mjs → cli-0.1.14-harz1d9d.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-2cdtdhek.mjs → cli-0.1.14-heevc19y.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-ck28msre.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.13-zgnanj3x.mjs → cli-0.1.14-hvfg45y0.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-p2wyk6z7.mjs → cli-0.1.14-hxvzvfr2.mjs} +3 -3
- package/dist/chunks/{cli-0.1.13-fh5dndvp.mjs → cli-0.1.14-j5sbzwhy.mjs} +917 -915
- package/dist/chunks/cli-0.1.14-ja2ctrem.mjs +2 -0
- package/dist/chunks/{cli-0.1.13-v6z41645.mjs → cli-0.1.14-jbn4ywda.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-d6tr2j76.mjs → cli-0.1.14-jf8019sb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-b24n1wvw.mjs → cli-0.1.14-jnfs73kb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-bkg3sva7.mjs → cli-0.1.14-jpe9sxch.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-pqk4c7m7.mjs → cli-0.1.14-k8nwm06m.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-hyvpn2ht.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.13-rftgy1b8.mjs → cli-0.1.14-khtq9cgy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-jz57znb6.mjs → cli-0.1.14-kmsvd61a.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-s90a26ca.mjs → cli-0.1.14-kn1f2x94.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-d85aba8r.mjs → cli-0.1.14-kpsh76mj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-8pw4n94k.mjs → cli-0.1.14-kt6sq4nr.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-s9fgd2dx.mjs → cli-0.1.14-ktz3cgwa.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-cyj5snev.mjs → cli-0.1.14-kv650aha.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-rkaxch5j.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.13-tq3dqmem.mjs → cli-0.1.14-m7xchegb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-gd3nndc7.mjs → cli-0.1.14-mgcmwvcn.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-asrdd8dh.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.13-m5c2efjx.mjs → cli-0.1.14-nbvvdkk2.mjs} +1 -1
- package/dist/chunks/{cli-0.1.13-00qdyz6f.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.13-t5w452fj.mjs → cli-0.1.14-nprcbhwn.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-ct9m5223.mjs → cli-0.1.14-ntq8w1ss.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-yd536yw4.mjs → cli-0.1.14-nxphqjb4.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-0gfnmq08.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.13-bj67mp7n.mjs → cli-0.1.14-qn4ftczz.mjs} +1 -1
- package/dist/chunks/{cli-0.1.13-nwt2jc8b.mjs → cli-0.1.14-qyx55m6c.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-ky4z1s1h.mjs → cli-0.1.14-qzcceap6.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-nc3ce357.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.13-ctjpk124.mjs → cli-0.1.14-r5qyt63x.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-5ydypzty.mjs → cli-0.1.14-rc5yd94n.mjs} +3 -3
- package/dist/chunks/{cli-0.1.13-dak36ez8.mjs → cli-0.1.14-rtstk94r.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-1g6bgaa6.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.13-hjqn3n5a.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.13-wh68ve92.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.13-13fh0g36.mjs → cli-0.1.14-ta3w93yb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-eh7dqeqt.mjs → cli-0.1.14-tkb5t0xv.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-3pctg5zc.mjs → cli-0.1.14-tqexnkmz.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-fdmvysv0.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.13-p625yxtg.mjs → cli-0.1.14-v9q1cxjy.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-vn7ckv16.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.13-g654740k.mjs → cli-0.1.14-w6nzk5dc.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-6p0jxfnp.mjs → cli-0.1.14-w8efvbh6.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-s6w3ej6f.mjs → cli-0.1.14-we6s7jfg.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-v467fj8c.mjs → cli-0.1.14-wgatq2fj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-8ppsn0an.mjs → cli-0.1.14-whe4bxfr.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-0hyneh5t.mjs → cli-0.1.14-wwehdfwx.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-a4xga299.mjs → cli-0.1.14-wymtdw5f.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-x461rxn2.mjs → cli-0.1.14-wz5yr49j.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-nsbk0w3b.mjs → cli-0.1.14-x88ypr2r.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-6gmqjyv9.mjs → cli-0.1.14-xp6rc33g.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-mkw72mxc.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.13-vj532g9m.mjs → cli-0.1.14-y56629hj.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-8snyqhjj.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.13-ga4mmwbc.mjs → cli-0.1.14-yphht6rx.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-zm2zgw7m.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.13-vwt4hc0t.mjs → cli-0.1.14-z0ckw2hb.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-rjjyq9ej.mjs → cli-0.1.14-z8j2n955.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-njvp7vtc.mjs → cli-0.1.14-zjqt3r89.mjs} +2 -2
- package/dist/chunks/{cli-0.1.13-1pxg82cx.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.13-03jy5tfn.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.13-6m3fvkcj.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.13-sramqmzv.mjs → growthbook-0.1.14-dcdeqgyq.mjs} +1 -1
- package/dist/chunks/{heapdump-0.1.13-3n7hv372.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.13-te9q466p.mjs → hookChains-0.1.14-wng6tzfd.mjs} +2 -2
- package/dist/chunks/{hooks-0.1.13-g6kx1mk3.mjs → hooks-0.1.14-jy9bt7s6.mjs} +1 -1
- package/dist/chunks/hooks-0.1.14-ybdbkdfh.mjs +1 -0
- package/dist/chunks/{ide-0.1.13-ke3v5mb7.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.13-4cjfx282.mjs → index-0.1.14-071xy8v4.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-a06q9ad9.mjs → index-0.1.14-1mttyja2.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-j9c4bjzh.mjs → index-0.1.14-272zxs9n.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-9meb2pab.mjs → index-0.1.14-2v6wa4p4.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-3zjrdjrv.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.13-psynrf7p.mjs → index-0.1.14-8v5xwttx.mjs} +2 -2
- package/dist/chunks/{index-0.1.13-tvt8fxrq.mjs → index-0.1.14-ac13h1t1.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-7c5y7cbf.mjs → index-0.1.14-dmbjzapt.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-bc4sh2m1.mjs → index-0.1.14-g5kkm9ng.mjs} +1 -1
- package/dist/chunks/index-0.1.14-h8gc6ph5.mjs +1 -0
- package/dist/chunks/{index-0.1.13-c29wq5dx.mjs → index-0.1.14-hqphn8m5.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-5g9shrc4.mjs → index-0.1.14-ksa4vdak.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-mc5ag4wj.mjs → index-0.1.14-mzhk0gvs.mjs} +1 -1
- package/dist/chunks/{index-0.1.13-nm8pkj0f.mjs → index-0.1.14-qrykb444.mjs} +2 -2
- 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.13-018yhz6j.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.13-t81417ej.mjs → insights-0.1.14-9n58d9t8.mjs} +1 -1
- package/dist/chunks/install-0.1.14-1zyjez10.mjs +1 -0
- package/dist/chunks/{install-github-app-0.1.13-yvnx16za.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.13-bvt39wrk.mjs → instrumentation-0.1.14-fsgk97cp.mjs} +1 -1
- 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.13-x9twbpqk.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.13-pzekbte3.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.13-bk91rvfd.mjs → oauth-0.1.14-gftadks2.mjs} +1 -1
- package/dist/chunks/{openaiShim-0.1.13-c9z5r4zj.mjs → openaiShim-0.1.14-jv6416m8.mjs} +1 -1
- package/dist/chunks/{output-style-0.1.13-c4ah6hc0.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.13-1nvjxkbc.mjs → plugins-0.1.14-4tggkexv.mjs} +2 -2
- package/dist/chunks/{print-0.1.13-g2dmfpmq.mjs → print-0.1.14-m719w2yp.mjs} +4 -4
- package/dist/chunks/privacy-settings-0.1.14-2gv7gdy1.mjs +1 -0
- package/dist/chunks/{process-0.1.13-ycxbd26n.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.13-16gwwvqz.mjs → processSlashCommand-0.1.14-7w1v93bg.mjs} +1 -1
- 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.13-zxcfrje2.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.13-yrtt99gr.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.13-2wbn8j6y.mjs → turndown.cjs-0.1.14-nw2rtcyd.mjs} +1 -1
- package/dist/chunks/{ultrareviewCommand-0.1.13-sj6asgpk.mjs → ultrareviewCommand-0.1.14-9twnt5bp.mjs} +1 -1
- package/dist/chunks/{update-0.1.13-sx7hc0kj.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.13-pwxv6kww.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.13-regg8ff2.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.13-8nsef109.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 +1 -1
- package/dist/chunks/AgentTool-0.1.13-yacqe6gs.mjs +0 -1
- package/dist/chunks/App-0.1.13-45tpe56w.mjs +0 -1
- package/dist/chunks/ApproveApiKey-0.1.13-rvk3ghpz.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-0.1.13-4qkeekab.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-0.1.13-wpjjxqtw.mjs +0 -1
- package/dist/chunks/ClaudeInChromeOnboarding-0.1.13-k8349mz5.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.13-jg36gq05.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-0.1.13-svk1vdbj.mjs +0 -1
- package/dist/chunks/Doctor-0.1.13-zktnx7ce.mjs +0 -1
- package/dist/chunks/Grove-0.1.13-1hnmb7jn.mjs +0 -1
- package/dist/chunks/ITermBackend-0.1.13-esbr21j4.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-0.1.13-7wr7g7vx.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-0.1.13-j8t2pnak.mjs +0 -1
- package/dist/chunks/MigrationDialog-0.1.13-jd2k6vk6.mjs +0 -1
- package/dist/chunks/Onboarding-0.1.13-j8d7hwbe.mjs +0 -1
- package/dist/chunks/ProviderManager-0.1.13-qcfa4ppx.mjs +0 -1
- package/dist/chunks/REPL-0.1.13-zpcaf2zq.mjs +0 -1
- package/dist/chunks/ResumeConversation-0.1.13-nwwjp69z.mjs +0 -1
- package/dist/chunks/TeleportProgress-0.1.13-ssgexm6r.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-0.1.13-r95sr8bp.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-0.1.13-1qxft9es.mjs +0 -1
- package/dist/chunks/TmuxBackend-0.1.13-jf14wbka.mjs +0 -9
- package/dist/chunks/ToolSearchTool-0.1.13-xzmz0wz4.mjs +0 -1
- package/dist/chunks/TrustDialog-0.1.13-pegd35qh.mjs +0 -1
- package/dist/chunks/activeProvider-0.1.13-n3mrppkb.mjs +0 -1
- package/dist/chunks/add-dir-0.1.13-3zm44vdy.mjs +0 -1
- package/dist/chunks/agents-0.1.13-phdd6357.mjs +0 -3
- package/dist/chunks/api-0.1.13-vmdan95h.mjs +0 -1
- package/dist/chunks/assistant-0.1.13-y9yer51w.mjs +0 -1
- package/dist/chunks/auth-0.1.13-gw7n7j0w.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-0.1.13-tagm38w5.mjs +0 -1
- package/dist/chunks/branch-0.1.13-hjmxvn3n.mjs +0 -4
- package/dist/chunks/btw-0.1.13-ggywf7w1.mjs +0 -1
- package/dist/chunks/cacache-0.1.13-sy5bqn6j.mjs +0 -1
- package/dist/chunks/caches-0.1.13-0swwryxr.mjs +0 -1
- package/dist/chunks/chrome-0.1.13-ztyyyz4s.mjs +0 -1
- package/dist/chunks/chromeNativeHost-0.1.13-96ex7t46.mjs +0 -2
- package/dist/chunks/claude-for-chrome-mcp-0.1.13-6hy7w25p.mjs +0 -1
- package/dist/chunks/claudemd-0.1.13-942nfe7r.mjs +0 -1
- package/dist/chunks/clear-0.1.13-zge2t5n9.mjs +0 -1
- package/dist/chunks/clearTerminal-0.1.13-b5v1edw2.mjs +0 -1
- package/dist/chunks/cli-0.1.13-0b728dvh.mjs +0 -2
- package/dist/chunks/cli-0.1.13-0gyt273r.mjs +0 -2
- package/dist/chunks/cli-0.1.13-1hw65avy.mjs +0 -2
- package/dist/chunks/cli-0.1.13-1y21vq1h.mjs +0 -2
- package/dist/chunks/cli-0.1.13-2sx61wcx.mjs +0 -2
- package/dist/chunks/cli-0.1.13-3rr4fg79.mjs +0 -2
- package/dist/chunks/cli-0.1.13-45hjhcbc.mjs +0 -2
- package/dist/chunks/cli-0.1.13-4prgqshq.mjs +0 -2
- package/dist/chunks/cli-0.1.13-52f40ba4.mjs +0 -2
- package/dist/chunks/cli-0.1.13-5b7hgn91.mjs +0 -2
- package/dist/chunks/cli-0.1.13-5d4ke9a2.mjs +0 -4
- package/dist/chunks/cli-0.1.13-5rnhv49w.mjs +0 -2
- package/dist/chunks/cli-0.1.13-5s4m8qj9.mjs +0 -100
- package/dist/chunks/cli-0.1.13-6q3wa261.mjs +0 -2
- package/dist/chunks/cli-0.1.13-73w3wbmf.mjs +0 -3
- package/dist/chunks/cli-0.1.13-73yztj5x.mjs +0 -10
- package/dist/chunks/cli-0.1.13-85w0nxy9.mjs +0 -2
- package/dist/chunks/cli-0.1.13-91b1h8ww.mjs +0 -2
- package/dist/chunks/cli-0.1.13-9a1hzdsv.mjs +0 -2
- package/dist/chunks/cli-0.1.13-bzgpcgdt.mjs +0 -16
- package/dist/chunks/cli-0.1.13-c5b4ygdq.mjs +0 -2
- package/dist/chunks/cli-0.1.13-crcgrfse.mjs +0 -2
- package/dist/chunks/cli-0.1.13-d66pryf3.mjs +0 -2
- package/dist/chunks/cli-0.1.13-dgw8xfv1.mjs +0 -2
- package/dist/chunks/cli-0.1.13-f6gfa426.mjs +0 -2
- package/dist/chunks/cli-0.1.13-ft5k86va.mjs +0 -2
- package/dist/chunks/cli-0.1.13-g2v4avcv.mjs +0 -2
- package/dist/chunks/cli-0.1.13-gtgqh4bn.mjs +0 -2
- package/dist/chunks/cli-0.1.13-h3vb5402.mjs +0 -2
- package/dist/chunks/cli-0.1.13-hzdj03rn.mjs +0 -2
- package/dist/chunks/cli-0.1.13-jakv6e7b.mjs +0 -2
- package/dist/chunks/cli-0.1.13-m5aaczvd.mjs +0 -2
- package/dist/chunks/cli-0.1.13-mywk7e49.mjs +0 -134
- package/dist/chunks/cli-0.1.13-n1tj5bdc.mjs +0 -2
- package/dist/chunks/cli-0.1.13-n31sw1c8.mjs +0 -2
- package/dist/chunks/cli-0.1.13-nc8ww3rn.mjs +0 -6
- package/dist/chunks/cli-0.1.13-p00rtvrc.mjs +0 -2
- package/dist/chunks/cli-0.1.13-p84ry3q5.mjs +0 -2
- package/dist/chunks/cli-0.1.13-q93vqpjh.mjs +0 -833
- package/dist/chunks/cli-0.1.13-qxtrzerx.mjs +0 -2
- package/dist/chunks/cli-0.1.13-r09724ac.mjs +0 -2
- package/dist/chunks/cli-0.1.13-sgxk7d0h.mjs +0 -2
- package/dist/chunks/cli-0.1.13-sr9axhrw.mjs +0 -2
- package/dist/chunks/cli-0.1.13-ss1k5gqk.mjs +0 -3
- package/dist/chunks/cli-0.1.13-ssgwnxc5.mjs +0 -4
- package/dist/chunks/cli-0.1.13-t1zx7s60.mjs +0 -2
- package/dist/chunks/cli-0.1.13-t34z5r3c.mjs +0 -2
- package/dist/chunks/cli-0.1.13-v1b9yhsy.mjs +0 -2
- package/dist/chunks/cli-0.1.13-v56n2wqm.mjs +0 -2
- package/dist/chunks/cli-0.1.13-vdz792pb.mjs +0 -2
- package/dist/chunks/cli-0.1.13-w08qr05m.mjs +0 -2
- package/dist/chunks/cli-0.1.13-wpsqhe6v.mjs +0 -4
- package/dist/chunks/cli-0.1.13-wr0c9hyh.mjs +0 -4
- package/dist/chunks/cli-0.1.13-x3zt8q8r.mjs +0 -2
- package/dist/chunks/cli-0.1.13-x4n4my99.mjs +0 -2
- package/dist/chunks/cli-0.1.13-xwkys72y.mjs +0 -12
- package/dist/chunks/cli-0.1.13-y3aj3amr.mjs +0 -4
- package/dist/chunks/cli-0.1.13-y3e5jkh7.mjs +0 -2
- package/dist/chunks/cli-0.1.13-yeb03vme.mjs +0 -2
- package/dist/chunks/cli-0.1.13-yhe2a0cx.mjs +0 -2
- package/dist/chunks/cli-0.1.13-yrvakyyp.mjs +0 -2
- package/dist/chunks/cli-0.1.13-z0jm6xd0.mjs +0 -2
- package/dist/chunks/cli-0.1.13-z387wpj9.mjs +0 -2
- package/dist/chunks/cli-0.1.13-zmft0mps.mjs +0 -2
- package/dist/chunks/client-0.1.13-mbp3h3fc.mjs +0 -1
- package/dist/chunks/color-0.1.13-p7kzn9d4.mjs +0 -1
- package/dist/chunks/compact-0.1.13-603r2t03.mjs +0 -3
- package/dist/chunks/config-0.1.13-fn4hrgp2.mjs +0 -1
- package/dist/chunks/config-0.1.13-q8fcew9w.mjs +0 -1
- package/dist/chunks/context-0.1.13-5fz212w3.mjs +0 -1
- package/dist/chunks/context-noninteractive-0.1.13-fjn2461g.mjs +0 -1
- package/dist/chunks/conversation-0.1.13-zjqxzcfr.mjs +0 -1
- package/dist/chunks/cost-0.1.13-zch21h6x.mjs +0 -1
- package/dist/chunks/createSession-0.1.13-mh3jt0b0.mjs +0 -1
- package/dist/chunks/desktop-0.1.13-w51djw8z.mjs +0 -1
- package/dist/chunks/detectRepository-0.1.13-5tt2922a.mjs +0 -1
- package/dist/chunks/detection-0.1.13-k001d88v.mjs +0 -1
- package/dist/chunks/diff-0.1.13-vz7x7nm3.mjs +0 -1
- package/dist/chunks/doctor-0.1.13-egkgh28s.mjs +0 -1
- package/dist/chunks/earlyInput-0.1.13-tpq0qmw0.mjs +0 -1
- package/dist/chunks/effort-0.1.13-11mfjfnb.mjs +0 -8
- package/dist/chunks/environmentSelection-0.1.13-8fagqvgw.mjs +0 -1
- package/dist/chunks/environments-0.1.13-x1xw45es.mjs +0 -1
- package/dist/chunks/exit-0.1.13-3m34eg2x.mjs +0 -1
- package/dist/chunks/export-0.1.13-sq3jk66f.mjs +0 -2
- package/dist/chunks/extra-usage-0.1.13-dh2sxr12.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-0.1.13-7yfmamd2.mjs +0 -1
- package/dist/chunks/fast-0.1.13-w1sk95j2.mjs +0 -1
- package/dist/chunks/feedback-0.1.13-ewxaenqk.mjs +0 -14
- package/dist/chunks/git-0.1.13-2rp45xgd.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-0.1.13-e9c7cay9.mjs +0 -1
- package/dist/chunks/help-0.1.13-knrgw1dq.mjs +0 -1
- package/dist/chunks/hooks-0.1.13-1cp6zhk0.mjs +0 -1
- package/dist/chunks/image-processor-napi-0.1.13-h7fg935p.mjs +0 -1
- package/dist/chunks/index-0.1.13-0z5ns7r2.mjs +0 -1
- package/dist/chunks/index-0.1.13-1y9cm2x6.mjs +0 -1
- package/dist/chunks/index-0.1.13-7fm7tk25.mjs +0 -1
- package/dist/chunks/index-0.1.13-98j8cxkv.mjs +0 -1
- package/dist/chunks/index-0.1.13-h2mpm4c0.mjs +0 -1
- package/dist/chunks/index-0.1.13-h4wytk4z.mjs +0 -1
- package/dist/chunks/index-0.1.13-m9m61529.mjs +0 -1
- package/dist/chunks/index-0.1.13-qjt3h799.mjs +0 -1
- package/dist/chunks/initReplBridge-0.1.13-cd8avwfa.mjs +0 -1
- package/dist/chunks/ink-0.1.13-8ga6a1ny.mjs +0 -1
- package/dist/chunks/install-0.1.13-1bq7fwkd.mjs +0 -1
- package/dist/chunks/install-slack-app-0.1.13-2a6ydfjg.mjs +0 -1
- package/dist/chunks/interactiveHelpers-0.1.13-p29payqv.mjs +0 -1
- package/dist/chunks/keybindings-0.1.13-nr2he9m8.mjs +0 -2
- package/dist/chunks/knowledge-0.1.13-9a2md3fm.mjs +0 -2
- package/dist/chunks/loadAgentsDir-0.1.13-jmqfw7w4.mjs +0 -1
- package/dist/chunks/loadPluginHooks-0.1.13-qagn7gmw.mjs +0 -1
- package/dist/chunks/logout-0.1.13-d6ghx6h9.mjs +0 -1
- package/dist/chunks/lsp-0.1.13-q6xr2am5.mjs +0 -1
- package/dist/chunks/main-0.1.13-e5tbkphz.mjs +0 -1
- package/dist/chunks/managedEnv-0.1.13-n073hj5h.mjs +0 -1
- package/dist/chunks/mcp-0.1.13-0bw6qtwy.mjs +0 -4
- package/dist/chunks/mcp-0.1.13-1kaxfeey.mjs +0 -1
- package/dist/chunks/mcpServer-0.1.13-jf5dhyys.mjs +0 -1
- package/dist/chunks/mcpb-0.1.13-e55321kr.mjs +0 -1
- package/dist/chunks/memory-0.1.13-qwtbe97v.mjs +0 -3
- package/dist/chunks/model-0.1.13-a42465ep.mjs +0 -1
- package/dist/chunks/model-0.1.13-mqqrpy8m.mjs +0 -2
- package/dist/chunks/package-WSP46L7M-0.1.13-sme2jxpt.mjs +0 -1
- package/dist/chunks/parser-0.1.13-mm8j9rwt.mjs +0 -1
- package/dist/chunks/passes-0.1.13-bcbvjdzs.mjs +0 -1
- package/dist/chunks/permissions-0.1.13-c03934ka.mjs +0 -3
- package/dist/chunks/plan-0.1.13-fgs4vbwk.mjs +0 -1
- package/dist/chunks/plist-0.1.13-f3bfg2tf.mjs +0 -1
- package/dist/chunks/plugin-0.1.13-p5aqty2y.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-0.1.13-f8tcmc9s.mjs +0 -1
- package/dist/chunks/privacy-settings-0.1.13-xkaezd0n.mjs +0 -1
- package/dist/chunks/processBashCommand-0.1.13-x4ggp1t8.mjs +0 -1
- package/dist/chunks/prompt-0.1.13-j0tnske2.mjs +0 -1
- package/dist/chunks/prompt-0.1.13-mdxfbbqp.mjs +0 -1
- package/dist/chunks/prompts-0.1.13-gtp7vnge.mjs +0 -1
- package/dist/chunks/provider-0.1.13-e9ayet7n.mjs +0 -2
- package/dist/chunks/providerProfiles-0.1.13-y9gs55qq.mjs +0 -1
- package/dist/chunks/rate-limit-options-0.1.13-va0322ws.mjs +0 -1
- package/dist/chunks/registry-0.1.13-e33aasxk.mjs +0 -1
- package/dist/chunks/release-notes-0.1.13-jmkp5g6h.mjs +0 -5
- package/dist/chunks/reload-plugins-0.1.13-0p5x4cr9.mjs +0 -2
- package/dist/chunks/remote-env-0.1.13-d7evw9tc.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-0.1.13-sq5rr5x0.mjs +0 -1
- package/dist/chunks/remoteSession-0.1.13-zjhajyna.mjs +0 -1
- package/dist/chunks/rename-0.1.13-t30c4tx9.mjs +0 -1
- package/dist/chunks/replBridgeHandle-0.1.13-38jvakp0.mjs +0 -1
- package/dist/chunks/resume-0.1.13-ta7t0vbz.mjs +0 -2
- package/dist/chunks/sandbox-adapter-0.1.13-x04v4bxn.mjs +0 -1
- package/dist/chunks/sandbox-toggle-0.1.13-w0p8r4ta.mjs +0 -1
- package/dist/chunks/session-0.1.13-cjn060z1.mjs +0 -2
- package/dist/chunks/sessionFileAccessHooks-0.1.13-mr3y5jpc.mjs +0 -1
- package/dist/chunks/sessionStorage-0.1.13-8gahjm86.mjs +0 -1
- package/dist/chunks/setup-0.1.13-ap9dpanw.mjs +0 -5
- package/dist/chunks/sinks-0.1.13-r13nv1fw.mjs +0 -1
- package/dist/chunks/skills-0.1.13-jd5g0cex.mjs +0 -1
- package/dist/chunks/startupProfiler-0.1.13-d4g7sykt.mjs +0 -1
- package/dist/chunks/state-0.1.13-cv8jd04r.mjs +0 -1
- package/dist/chunks/status-0.1.13-4x7h3dec.mjs +0 -1
- package/dist/chunks/stickers-0.1.13-8szx17mh.mjs +0 -1
- package/dist/chunks/subprocessEnv-0.1.13-9asfa8pp.mjs +0 -1
- package/dist/chunks/tasks-0.1.13-dsy415kp.mjs +0 -1
- package/dist/chunks/teamHelpers-0.1.13-z4fpbggy.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-0.1.13-cc6scthx.mjs +0 -1
- package/dist/chunks/teleport-0.1.13-gx6zbjr3.mjs +0 -1
- package/dist/chunks/terminalSetup-0.1.13-wmg8wa4f.mjs +0 -1
- package/dist/chunks/theme-0.1.13-m8mdm37k.mjs +0 -1
- package/dist/chunks/thinkback-0.1.13-4jwhbbcv.mjs +0 -1
- package/dist/chunks/thinkback-play-0.1.13-0vz0yjza.mjs +0 -1
- package/dist/chunks/toolPool-0.1.13-z741g6f2.mjs +0 -1
- package/dist/chunks/toolSearch-0.1.13-jaadtdmb.mjs +0 -1
- package/dist/chunks/trustedDevice-0.1.13-w279yc46.mjs +0 -1
- package/dist/chunks/upgrade-0.1.13-dce1xd29.mjs +0 -1
- package/dist/chunks/usage-0.1.13-mr2bn5g6.mjs +0 -1
- package/dist/chunks/util-0.1.13-ef9r7w41.mjs +0 -1
- package/dist/chunks/utils-0.1.13-03dvz81t.mjs +0 -1
- package/dist/chunks/vim-0.1.13-3x0ehdme.mjs +0 -1
- package/dist/chunks/watcher-0.1.13-yzxxvgz3.mjs +0 -1
- package/dist/chunks/worktree-0.1.13-kdhzfvjx.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-0.1.13-d4t06wcm.mjs +0 -1
- /package/dist/chunks/{cli-0.1.13-gs7rcvne.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.13-38jvakp0.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.13-zjhajyna.mjs"),import("./environmentSelection-0.1.13-8fagqvgw.mjs"),import("./environments-0.1.13-x1xw45es.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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
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
2
|
Exit code 0 - stdout/stderr not shown
|
|
3
3
|
Exit code 2 - show stderr to model and block tool call
|
|
4
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).
|
|
@@ -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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r6 as G}from"./cli-0.1.13-b24n1wvw.mjs";import{Jna as _,Kna as U}from"./cli-0.1.13-0hyneh5t.mjs";import{Sna as X}from"./cli-0.1.13-tknwgkgp.mjs";import{Tna as K,Vna as B,Xna as l,Yna as E}from"./cli-0.1.13-bj67mp7n.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.13-tvt8fxrq.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.13-c29wq5dx.mjs").then((m)=>K(m.default,1)),{fromContainerMetadata:r}=await import("./index-0.1.13-7c5y7cbf.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.13-7c5y7cbf.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.13-qjt3h799.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.13-m9m61529.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.13-bc4sh2m1.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.13-a06q9ad9.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.13-j9c4bjzh.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}};
|
|
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}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$5 as Fr,R5 as F,S5 as Nr,T5 as Dr,U5 as br,V5 as Ge,W5 as Zt,X5 as Et,Y5 as $r,Z5 as Is,_5 as Ar,a6 as hs,b6 as G,c6 as tt,d6 as pr,e6 as _r,g6 as Er,h6 as Sr,i6 as Rr,j6 as xr,k6 as vr,l6 as Kt,m6 as kt,n6 as er,o6 as Ur,p6 as Mr}from"./cli-0.1.13-ky4z1s1h.mjs";import{q6 as ps}from"./cli-0.1.13-84tbx1nf.mjs";import{r6 as we}from"./cli-0.1.13-b24n1wvw.mjs";import{Ina as dr,Jna as Z,Kna as Ce}from"./cli-0.1.13-0hyneh5t.mjs";import{Lna as ir}from"./cli-0.1.13-579v6j6d.mjs";import{Nna as Xe}from"./cli-0.1.13-tknwgkgp.mjs";import{Tna as ge,Vna as S,Xna as no,Yna as X}from"./cli-0.1.13-bj67mp7n.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.13-mc5ag4wj.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.13-mc5ag4wj.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(", ")}
|
|
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
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}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
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();
|