@claudiolabs/claudin 1.0.12 → 1.0.13
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-1.0.13-6b06g673.mjs +1 -0
- package/dist/chunks/App-1.0.13-ka050dp3.mjs +1 -0
- package/dist/chunks/ApproveApiKey-1.0.13-f6p2r5kq.mjs +1 -0
- package/dist/chunks/AssistantSessionChooser-1.0.13-ghffkhts.mjs +1 -0
- package/dist/chunks/AutoModeOptInDialog-1.0.13-5b244jsj.mjs +1 -0
- package/dist/chunks/BypassPermissionsModeDialog-1.0.13-eqq7qkpy.mjs +1 -0
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.13-5279tcga.mjs +1 -0
- package/dist/chunks/ConsoleOAuthFlow-1.0.13-gwgar56n.mjs +1 -0
- package/dist/chunks/DiffDialog-1.0.13-2jaehz54.mjs +7 -0
- package/dist/chunks/Doctor-1.0.13-t887gwxz.mjs +1 -0
- package/dist/chunks/ExplorerDialog-1.0.13-85gxb6k8.mjs +6 -0
- package/dist/chunks/Grove-1.0.13-hdw88war.mjs +1 -0
- package/dist/chunks/ITermBackend-1.0.13-m0d78jq0.mjs +1 -0
- package/dist/chunks/InvalidConfigDialog-1.0.13-4z7zd6n8.mjs +1 -0
- package/dist/chunks/InvalidSettingsDialog-1.0.13-6xc5sc8a.mjs +1 -0
- package/dist/chunks/MigrationDialog-1.0.13-hhrgw5xc.mjs +1 -0
- package/dist/chunks/Onboarding-1.0.13-byv83gyv.mjs +1 -0
- package/dist/chunks/ProviderManager-1.0.13-gt6ntzcv.mjs +1 -0
- package/dist/chunks/REPL-1.0.13-wjxj6xgk.mjs +1 -0
- package/dist/chunks/ResumeConversation-1.0.13-tx1ek47f.mjs +1 -0
- package/dist/chunks/SnapshotUpdateDialog-1.0.13-4j2e4s72.mjs +1 -0
- package/dist/chunks/TeleportProgress-1.0.13-1rpjcxph.mjs +1 -0
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.13-5fgav722.mjs +1 -0
- package/dist/chunks/TeleportResumeWrapper-1.0.13-gy4sr83e.mjs +1 -0
- package/dist/chunks/TmuxBackend-1.0.13-t98nfbxk.mjs +9 -0
- package/dist/chunks/ToolSearchTool-1.0.13-n5wg1rcd.mjs +1 -0
- package/dist/chunks/TrustDialog-1.0.13-xdkp37x2.mjs +1 -0
- package/dist/chunks/activeProvider-1.0.13-v0kphhga.mjs +1 -0
- package/dist/chunks/add-dir-1.0.13-7v5rg7km.mjs +1 -0
- package/dist/chunks/agentTypes-1.0.13-k5wckd5y.mjs +1 -0
- package/dist/chunks/agents-1.0.13-ngbk16a3.mjs +3 -0
- package/dist/chunks/agents-1.0.13-tcqasxmv.mjs +110 -0
- package/dist/chunks/api-1.0.13-bvwz0wzt.mjs +1 -0
- package/dist/chunks/asciicast-1.0.13-j8ad859r.mjs +1 -0
- package/dist/chunks/assistant-1.0.13-91499j0p.mjs +1 -0
- package/dist/chunks/auth-1.0.13-p0qrnz2b.mjs +1 -0
- package/dist/chunks/auth-1.0.13-s1vedchg.mjs +1 -0
- package/dist/chunks/autoMode-1.0.13-61pvskhh.mjs +48 -0
- package/dist/chunks/autoUpdater-1.0.13-fnpzj0bw.mjs +1 -0
- package/dist/chunks/backgroundHousekeeping-1.0.13-92x690ww.mjs +1 -0
- package/dist/chunks/branch-1.0.13-encr40nd.mjs +4 -0
- package/dist/chunks/bridge-1.0.13-xfcd961b.mjs +2 -0
- package/dist/chunks/bridgeConfig-1.0.13-m2jyf3zk.mjs +1 -0
- package/dist/chunks/bridgeEnabled-1.0.13-2chm7y0g.mjs +1 -0
- package/dist/chunks/bridgeMain-1.0.13-d64q1ebx.mjs +88 -0
- package/dist/chunks/bridgePointer-1.0.13-npck2cd4.mjs +1 -0
- package/dist/chunks/btw-1.0.13-55x872ns.mjs +1 -0
- package/dist/chunks/buddy-1.0.13-9dmgywzm.mjs +3 -0
- package/dist/chunks/cacache-1.0.13-3c5hrrs4.mjs +1 -0
- package/dist/chunks/cache-probe-1.0.13-n8g8y16c.mjs +21 -0
- package/dist/chunks/cacheStats-1.0.13-2kyncvct.mjs +4 -0
- package/dist/chunks/caches-1.0.13-md3zkabd.mjs +1 -0
- package/dist/chunks/claudeDesktop-1.0.13-crk87hee.mjs +1 -0
- package/dist/chunks/claudemd-1.0.13-y42xe571.mjs +1 -0
- package/dist/chunks/clear-1.0.13-g8a3zjew.mjs +1 -0
- package/dist/chunks/clearTerminal-1.0.13-4k4snh0r.mjs +1 -0
- package/dist/chunks/cli-1.0.13-01n6gr4q.mjs +2 -0
- package/dist/chunks/cli-1.0.13-0357cnwe.mjs +2 -0
- package/dist/chunks/cli-1.0.13-14c24kge.mjs +2 -0
- package/dist/chunks/cli-1.0.13-19k4k5jx.mjs +2 -0
- package/dist/chunks/cli-1.0.13-1dk8e4ny.mjs +3 -0
- package/dist/chunks/cli-1.0.13-1hcywhe5.mjs +2 -0
- package/dist/chunks/cli-1.0.13-1hdbaf71.mjs +3 -0
- package/dist/chunks/cli-1.0.13-1qbvvc2e.mjs +4 -0
- package/dist/chunks/cli-1.0.13-23ev2ept.mjs +45 -0
- package/dist/chunks/cli-1.0.13-29x94tf7.mjs +2 -0
- package/dist/chunks/cli-1.0.13-2x789qav.mjs +2 -0
- package/dist/chunks/cli-1.0.13-2xpprn71.mjs +1 -0
- package/dist/chunks/cli-1.0.13-2z8q1mtz.mjs +3 -0
- package/dist/chunks/cli-1.0.13-36yeyd1r.mjs +18 -0
- package/dist/chunks/cli-1.0.13-3767t4yj.mjs +4 -0
- package/dist/chunks/cli-1.0.13-3c13b00m.mjs +2 -0
- package/dist/chunks/cli-1.0.13-3dmmr756.mjs +2 -0
- package/dist/chunks/cli-1.0.13-3essvqs1.mjs +2 -0
- package/dist/chunks/cli-1.0.13-3f0zqjp8.mjs +2 -0
- package/dist/chunks/cli-1.0.13-3fs84evm.mjs +2 -0
- package/dist/chunks/cli-1.0.13-3pspajgg.mjs +15 -0
- package/dist/chunks/cli-1.0.13-3rqmqts3.mjs +2 -0
- package/dist/chunks/cli-1.0.13-449f1p6g.mjs +2 -0
- package/dist/chunks/cli-1.0.13-466jbd1q.mjs +2 -0
- package/dist/chunks/cli-1.0.13-4dp5a597.mjs +6 -0
- package/dist/chunks/cli-1.0.13-4x3mr6wk.mjs +2 -0
- package/dist/chunks/cli-1.0.13-57993qn6.mjs +2 -0
- package/dist/chunks/cli-1.0.13-57ez593b.mjs +3 -0
- package/dist/chunks/cli-1.0.13-5g7rhqvq.mjs +4 -0
- package/dist/chunks/cli-1.0.13-5keyjg3e.mjs +58 -0
- package/dist/chunks/cli-1.0.13-5m2br5vf.mjs +2 -0
- package/dist/chunks/cli-1.0.13-5sc2h2hm.mjs +2 -0
- package/dist/chunks/cli-1.0.13-5sq4jbf1.mjs +2 -0
- package/dist/chunks/cli-1.0.13-696y87my.mjs +18 -0
- package/dist/chunks/cli-1.0.13-6b6kn6sd.mjs +2 -0
- package/dist/chunks/cli-1.0.13-6thbqr6g.mjs +2 -0
- package/dist/chunks/cli-1.0.13-6vb140br.mjs +25 -0
- package/dist/chunks/cli-1.0.13-6w1rqgrf.mjs +2 -0
- package/dist/chunks/cli-1.0.13-6xc8qzyr.mjs +2 -0
- package/dist/chunks/cli-1.0.13-6xkw8tq6.mjs +2 -0
- package/dist/chunks/cli-1.0.13-7kg0qv18.mjs +2 -0
- package/dist/chunks/cli-1.0.13-7nmrp6gh.mjs +2 -0
- package/dist/chunks/cli-1.0.13-7rg014zx.mjs +5 -0
- package/dist/chunks/cli-1.0.13-7xfra4by.mjs +2 -0
- package/dist/chunks/cli-1.0.13-80pk1w5c.mjs +2 -0
- package/dist/chunks/cli-1.0.13-81s2z4sy.mjs +2 -0
- package/dist/chunks/cli-1.0.13-83vckpyr.mjs +6 -0
- package/dist/chunks/cli-1.0.13-8s33s84f.mjs +2 -0
- package/dist/chunks/cli-1.0.13-93twxc7q.mjs +2 -0
- package/dist/chunks/cli-1.0.13-98a94f4b.mjs +2 -0
- package/dist/chunks/cli-1.0.13-9ax4vv5d.mjs +2 -0
- package/dist/chunks/cli-1.0.13-9bh8f53y.mjs +9 -0
- package/dist/chunks/cli-1.0.13-9t0q538w.mjs +25 -0
- package/dist/chunks/cli-1.0.13-a2j673qk.mjs +2 -0
- package/dist/chunks/cli-1.0.13-a5641ktm.mjs +2 -0
- package/dist/chunks/cli-1.0.13-a77ea1ga.mjs +2 -0
- package/dist/chunks/cli-1.0.13-a8t9066b.mjs +2 -0
- package/dist/chunks/cli-1.0.13-afdk25h0.mjs +2 -0
- package/dist/chunks/cli-1.0.13-avxss6zg.mjs +9 -0
- package/dist/chunks/cli-1.0.13-bj2neb84.mjs +2 -0
- package/dist/chunks/cli-1.0.13-bs0esgv1.mjs +2 -0
- package/dist/chunks/cli-1.0.13-byhjhrrg.mjs +15 -0
- package/dist/chunks/cli-1.0.13-cm3q208z.mjs +2 -0
- package/dist/chunks/cli-1.0.13-cwce8b7b.mjs +34 -0
- package/dist/chunks/cli-1.0.13-d016ffc7.mjs +3 -0
- package/dist/chunks/cli-1.0.13-d4zr1yqd.mjs +2 -0
- package/dist/chunks/cli-1.0.13-d7kr7nkk.mjs +2 -0
- package/dist/chunks/cli-1.0.13-dg21ms7f.mjs +2 -0
- package/dist/chunks/cli-1.0.13-dwp60tja.mjs +2 -0
- package/dist/chunks/cli-1.0.13-e19bb64d.mjs +4 -0
- package/dist/chunks/cli-1.0.13-e1m0dx6a.mjs +2 -0
- package/dist/chunks/cli-1.0.13-e3ca1xwv.mjs +2 -0
- package/dist/chunks/cli-1.0.13-e464ab16.mjs +2 -0
- package/dist/chunks/cli-1.0.13-e8p0r9r9.mjs +2 -0
- package/dist/chunks/cli-1.0.13-e9q9245e.mjs +2 -0
- package/dist/chunks/cli-1.0.13-ecv0stcf.mjs +2 -0
- package/dist/chunks/cli-1.0.13-ey9smtb0.mjs +3 -0
- package/dist/chunks/cli-1.0.13-f38bh25k.mjs +12 -0
- package/dist/chunks/cli-1.0.13-f4dfekwp.mjs +133 -0
- package/dist/chunks/cli-1.0.13-fb695nhr.mjs +67 -0
- package/dist/chunks/cli-1.0.13-fjwhbyeh.mjs +2 -0
- package/dist/chunks/cli-1.0.13-fpwws3z2.mjs +2 -0
- package/dist/chunks/cli-1.0.13-frs40s6h.mjs +2 -0
- package/dist/chunks/cli-1.0.13-fsmjqwpj.mjs +2 -0
- package/dist/chunks/cli-1.0.13-fta82vnx.mjs +2 -0
- package/dist/chunks/cli-1.0.13-g1rr0zfh.mjs +8 -0
- package/dist/chunks/cli-1.0.13-g7daabde.mjs +3 -0
- package/dist/chunks/cli-1.0.13-gd9e7w43.mjs +2 -0
- package/dist/chunks/cli-1.0.13-gsz0cygn.mjs +2 -0
- package/dist/chunks/cli-1.0.13-h5mwwv8w.mjs +16 -0
- package/dist/chunks/cli-1.0.13-hbcgx6rs.mjs +2 -0
- package/dist/chunks/cli-1.0.13-j0m03dqz.mjs +39 -0
- package/dist/chunks/cli-1.0.13-j3gww2v8.mjs +2 -0
- package/dist/chunks/cli-1.0.13-jdxaky02.mjs +12 -0
- package/dist/chunks/cli-1.0.13-jkahzkac.mjs +12 -0
- package/dist/chunks/cli-1.0.13-jrjz42t8.mjs +2 -0
- package/dist/chunks/cli-1.0.13-jsezewz5.mjs +2 -0
- package/dist/chunks/cli-1.0.13-jxe94sbj.mjs +2 -0
- package/dist/chunks/cli-1.0.13-k4znag0a.mjs +2 -0
- package/dist/chunks/cli-1.0.13-k71bq854.mjs +2 -0
- package/dist/chunks/cli-1.0.13-k8vrp1kw.mjs +2 -0
- package/dist/chunks/cli-1.0.13-kc1q3k9n.mjs +2 -0
- package/dist/chunks/cli-1.0.13-kg25kqz0.mjs +12 -0
- package/dist/chunks/cli-1.0.13-kmmkpfh0.mjs +2 -0
- package/dist/chunks/cli-1.0.13-knb8ctbq.mjs +3 -0
- package/dist/chunks/cli-1.0.13-kpqaz90n.mjs +7 -0
- package/dist/chunks/cli-1.0.13-kq0mvqax.mjs +2 -0
- package/dist/chunks/cli-1.0.13-kr3d94dn.mjs +5495 -0
- package/dist/chunks/cli-1.0.13-m5hkpjvs.mjs +2 -0
- package/dist/chunks/cli-1.0.13-mazxedqg.mjs +4 -0
- package/dist/chunks/cli-1.0.13-mtnc53tx.mjs +2 -0
- package/dist/chunks/cli-1.0.13-mv57kk3c.mjs +59 -0
- package/dist/chunks/cli-1.0.13-n4fsyme7.mjs +2 -0
- package/dist/chunks/cli-1.0.13-ndthc14d.mjs +2 -0
- package/dist/chunks/cli-1.0.13-nqw7f2pt.mjs +2 -0
- package/dist/chunks/cli-1.0.13-ns8m0h8r.mjs +15 -0
- package/dist/chunks/cli-1.0.13-p1nsb8ay.mjs +202 -0
- package/dist/chunks/cli-1.0.13-p43t5py0.mjs +2 -0
- package/dist/chunks/cli-1.0.13-p7b51har.mjs +2 -0
- package/dist/chunks/cli-1.0.13-pajjrc2x.mjs +2 -0
- package/dist/chunks/cli-1.0.13-pf0ztxpx.mjs +6 -0
- package/dist/chunks/cli-1.0.13-ppdtae6a.mjs +2 -0
- package/dist/chunks/cli-1.0.13-pwfpt641.mjs +2 -0
- package/dist/chunks/cli-1.0.13-q03bdpb3.mjs +17 -0
- package/dist/chunks/cli-1.0.13-q40za40w.mjs +50 -0
- package/dist/chunks/cli-1.0.13-qpnp3w6h.mjs +2 -0
- package/dist/chunks/cli-1.0.13-qx079tft.mjs +2 -0
- package/dist/chunks/cli-1.0.13-qxebhem2.mjs +2 -0
- package/dist/chunks/cli-1.0.13-r6v8d7e7.mjs +2 -0
- package/dist/chunks/cli-1.0.13-r9nmkthw.mjs +2 -0
- package/dist/chunks/cli-1.0.13-rcrh6wfx.mjs +4 -0
- package/dist/chunks/cli-1.0.13-rgk2vrkz.mjs +2 -0
- package/dist/chunks/cli-1.0.13-rhptvh17.mjs +2 -0
- package/dist/chunks/cli-1.0.13-rxd329nn.mjs +24 -0
- package/dist/chunks/cli-1.0.13-ry9nsg8a.mjs +2 -0
- package/dist/chunks/cli-1.0.13-ryajgbr3.mjs +2 -0
- package/dist/chunks/cli-1.0.13-s15merj9.mjs +2 -0
- package/dist/chunks/cli-1.0.13-s16wgevn.mjs +2 -0
- package/dist/chunks/cli-1.0.13-s2czjfzp.mjs +2 -0
- package/dist/chunks/cli-1.0.13-s2sd6xfc.mjs +24 -0
- package/dist/chunks/cli-1.0.13-s5bfzdbk.mjs +2 -0
- package/dist/chunks/cli-1.0.13-sg6bkxg3.mjs +20 -0
- package/dist/chunks/cli-1.0.13-shrh1g4z.mjs +2 -0
- package/dist/chunks/cli-1.0.13-sj8rg9wk.mjs +24 -0
- package/dist/chunks/cli-1.0.13-smrxt9dh.mjs +2 -0
- package/dist/chunks/cli-1.0.13-smtbj9fm.mjs +2 -0
- package/dist/chunks/cli-1.0.13-sy93t0xx.mjs +2 -0
- package/dist/chunks/cli-1.0.13-t1z10ay5.mjs +2 -0
- package/dist/chunks/cli-1.0.13-t9wrrtrh.mjs +2 -0
- package/dist/chunks/cli-1.0.13-tfd5mr15.mjs +17 -0
- package/dist/chunks/cli-1.0.13-thxvtvt4.mjs +2 -0
- package/dist/chunks/cli-1.0.13-tmfvcmn3.mjs +2 -0
- package/dist/chunks/cli-1.0.13-tnq7z8s5.mjs +3 -0
- package/dist/chunks/cli-1.0.13-tp2w17kc.mjs +2 -0
- package/dist/chunks/cli-1.0.13-tq5m4f65.mjs +2 -0
- package/dist/chunks/cli-1.0.13-tr0fe3hn.mjs +2 -0
- package/dist/chunks/cli-1.0.13-trkevtw9.mjs +2 -0
- package/dist/chunks/cli-1.0.13-tyhtztew.mjs +2 -0
- package/dist/chunks/cli-1.0.13-v1tn9wpw.mjs +21 -0
- package/dist/chunks/cli-1.0.13-v38n7n4p.mjs +2 -0
- package/dist/chunks/cli-1.0.13-v4annnm3.mjs +2 -0
- package/dist/chunks/cli-1.0.13-v5gjxk3n.mjs +4 -0
- package/dist/chunks/cli-1.0.13-v7eb8n71.mjs +133 -0
- package/dist/chunks/cli-1.0.13-v8tce7qz.mjs +2 -0
- package/dist/chunks/cli-1.0.13-vb85p8we.mjs +2 -0
- package/dist/chunks/cli-1.0.13-vbby2x4m.mjs +2 -0
- package/dist/chunks/cli-1.0.13-vd01re4x.mjs +2 -0
- package/dist/chunks/cli-1.0.13-vp1h8f42.mjs +2 -0
- package/dist/chunks/cli-1.0.13-vs4d56js.mjs +2 -0
- package/dist/chunks/cli-1.0.13-vv5mtvhr.mjs +2 -0
- package/dist/chunks/cli-1.0.13-vvtdrd6j.mjs +5 -0
- package/dist/chunks/cli-1.0.13-vwmq6bde.mjs +2 -0
- package/dist/chunks/cli-1.0.13-w5jash5n.mjs +2 -0
- package/dist/chunks/cli-1.0.13-w7jh58qt.mjs +2 -0
- package/dist/chunks/cli-1.0.13-w8wwn19j.mjs +2 -0
- package/dist/chunks/cli-1.0.13-wmc6ft2f.mjs +6 -0
- package/dist/chunks/cli-1.0.13-wrcxv50n.mjs +2 -0
- package/dist/chunks/cli-1.0.13-wsk4823v.mjs +2 -0
- package/dist/chunks/cli-1.0.13-x4xwa6y3.mjs +4 -0
- package/dist/chunks/cli-1.0.13-x8j9z15q.mjs +3 -0
- package/dist/chunks/cli-1.0.13-xajnmhak.mjs +2 -0
- package/dist/chunks/cli-1.0.13-xg86t5j7.mjs +2 -0
- package/dist/chunks/cli-1.0.13-xpc2m6vc.mjs +2 -0
- package/dist/chunks/cli-1.0.13-xr55511t.mjs +2 -0
- package/dist/chunks/cli-1.0.13-xsvz53d6.mjs +42 -0
- package/dist/chunks/cli-1.0.13-y1kzayxj.mjs +18 -0
- package/dist/chunks/cli-1.0.13-y20sjx5k.mjs +6 -0
- package/dist/chunks/cli-1.0.13-y6y32j2s.mjs +2 -0
- package/dist/chunks/cli-1.0.13-y74xv34r.mjs +4 -0
- package/dist/chunks/cli-1.0.13-yb1smx77.mjs +2 -0
- package/dist/chunks/cli-1.0.13-ymvtrfgn.mjs +4 -0
- package/dist/chunks/cli-1.0.13-yq7961x3.mjs +4 -0
- package/dist/chunks/cli-1.0.13-yr590qbp.mjs +3 -0
- package/dist/chunks/cli-1.0.13-z72v7rwr.mjs +2 -0
- package/dist/chunks/cli-1.0.13-z8vs7cc1.mjs +2 -0
- package/dist/chunks/cli-1.0.13-zgdatr3s.mjs +3 -0
- package/dist/chunks/cli-1.0.13-zmyb9smk.mjs +2 -0
- package/dist/chunks/cli-1.0.13-zp9tvwgh.mjs +2 -0
- package/dist/chunks/cli-1.0.13-zt4bek0j.mjs +2 -0
- package/dist/chunks/cli-1.0.13-ztqnt3qp.mjs +2 -0
- package/dist/chunks/cli-1.0.13-zvemnxrj.mjs +2 -0
- package/dist/chunks/client-1.0.13-jj0v4n27.mjs +1 -0
- package/dist/chunks/color-1.0.13-3v7rvzdv.mjs +1 -0
- package/dist/chunks/compact-1.0.13-dbdbjtdk.mjs +3 -0
- package/dist/chunks/config-1.0.13-3qrt3cgm.mjs +1 -0
- package/dist/chunks/config-1.0.13-r3hkdrhb.mjs +1 -0
- package/dist/chunks/constants-1.0.13-rnw6yks8.mjs +1 -0
- package/dist/chunks/context-1.0.13-vzh7rmzp.mjs +1 -0
- package/dist/chunks/context-noninteractive-1.0.13-pch5w54p.mjs +1 -0
- package/dist/chunks/conversation-1.0.13-deetqyn0.mjs +1 -0
- package/dist/chunks/copilotHeaders-1.0.13-nt9wrgp5.mjs +1 -0
- package/dist/chunks/copy-1.0.13-hzdas7e3.mjs +9 -0
- package/dist/chunks/cost-1.0.13-6nzzt5ne.mjs +1 -0
- package/dist/chunks/createSSHSession-1.0.13-vy3mcz3k.mjs +1 -0
- package/dist/chunks/createSession-1.0.13-9f9eevz2.mjs +1 -0
- package/dist/chunks/debug-1.0.13-f3k3n0w9.mjs +1 -0
- package/dist/chunks/defaultActionDeps-1.0.13-cnw858jb.mjs +1446 -0
- package/dist/chunks/desktop-1.0.13-e005km58.mjs +1 -0
- package/dist/chunks/detectRepository-1.0.13-rjbmyf6j.mjs +1 -0
- package/dist/chunks/detection-1.0.13-fmg4e9cn.mjs +1 -0
- package/dist/chunks/diff-1.0.13-9jypv082.mjs +1 -0
- package/dist/chunks/doctor-1.0.13-8tdcwyds.mjs +1 -0
- package/dist/chunks/doctorDiagnostic-1.0.13-01b5f1qr.mjs +1 -0
- package/dist/chunks/earlyInput-1.0.13-qdaqzn87.mjs +1 -0
- package/dist/chunks/effort-1.0.13-xfj9x3jk.mjs +10 -0
- package/dist/chunks/engine-1.0.13-8zd1smqp.mjs +1 -0
- package/dist/chunks/envLessBridgeConfig-1.0.13-3pv6cjbw.mjs +1 -0
- package/dist/chunks/envUtils-1.0.13-vcp6531a.mjs +1 -0
- package/dist/chunks/environmentSelection-1.0.13-jeanv46d.mjs +1 -0
- package/dist/chunks/environments-1.0.13-w5a33d52.mjs +1 -0
- package/dist/chunks/errors-1.0.13-wrs4k863.mjs +1 -0
- package/dist/chunks/exampleCommands-1.0.13-f3v5223v.mjs +1 -0
- package/dist/chunks/execFileNoThrow-1.0.13-5qgqf50q.mjs +1 -0
- package/dist/chunks/exit-1.0.13-dkp2e02s.mjs +1 -0
- package/dist/chunks/explorer-1.0.13-0c0437ts.mjs +1 -0
- package/dist/chunks/export-1.0.13-cbatvd1c.mjs +2 -0
- package/dist/chunks/extra-usage-1.0.13-tm9dn26m.mjs +1 -0
- package/dist/chunks/extra-usage-noninteractive-1.0.13-tyfdd6zc.mjs +1 -0
- package/dist/chunks/fast-1.0.13-m2jj5axh.mjs +1 -0
- package/dist/chunks/feedback-1.0.13-3rc5sphe.mjs +14 -0
- package/dist/chunks/firstPartyEventLogger-1.0.13-9cqvyyy3.mjs +1 -0
- package/dist/chunks/git-1.0.13-9196pgzv.mjs +1 -0
- package/dist/chunks/githubModelsCredentials-1.0.13-h8fyv4hh.mjs +1 -0
- package/dist/chunks/goal-1.0.13-cty957vz.mjs +4 -0
- package/dist/chunks/grove-1.0.13-jew4jmvf.mjs +1 -0
- package/dist/chunks/growthbook-1.0.13-q8xh656p.mjs +1 -0
- package/dist/chunks/headless-1.0.13-h0c3ze3f.mjs +2 -0
- package/dist/chunks/heapdump-1.0.13-ndzc9093.mjs +6 -0
- package/dist/chunks/help-1.0.13-em333cwb.mjs +1 -0
- package/dist/chunks/hookChains-1.0.13-ytcm9p3p.mjs +3 -0
- package/dist/chunks/hooks-1.0.13-43xm69rv.mjs +79 -0
- package/dist/chunks/hooks-1.0.13-xa6gpzvq.mjs +1 -0
- package/dist/chunks/ide-1.0.13-4z1afk08.mjs +3 -0
- package/dist/chunks/image-processor-napi-1.0.13-e53cs6qw.mjs +1 -0
- package/dist/chunks/inboundAttachments-1.0.13-968zpe6v.mjs +1 -0
- package/dist/chunks/index-1.0.13-361h9v63.mjs +1 -0
- package/dist/chunks/index-1.0.13-4p1eb2pq.mjs +1 -0
- package/dist/chunks/index-1.0.13-55th4hhq.mjs +1 -0
- package/dist/chunks/index-1.0.13-55vgc9cr.mjs +1 -0
- package/dist/chunks/index-1.0.13-5gqy8x3m.mjs +1 -0
- package/dist/chunks/index-1.0.13-792fhv61.mjs +1 -0
- package/dist/chunks/index-1.0.13-8k0904bs.mjs +1 -0
- package/dist/chunks/index-1.0.13-ace8202d.mjs +2 -0
- package/dist/chunks/index-1.0.13-e20f9w6f.mjs +1 -0
- package/dist/chunks/index-1.0.13-efh2qbe0.mjs +1 -0
- package/dist/chunks/index-1.0.13-ej84k860.mjs +1 -0
- package/dist/chunks/index-1.0.13-fnd36467.mjs +2 -0
- package/dist/chunks/index-1.0.13-hdvj3xyt.mjs +30 -0
- package/dist/chunks/index-1.0.13-hgbqf3v1.mjs +1 -0
- package/dist/chunks/index-1.0.13-j0146ntq.mjs +1 -0
- package/dist/chunks/index-1.0.13-jackh0p4.mjs +17 -0
- package/dist/chunks/index-1.0.13-kfmh713v.mjs +9 -0
- package/dist/chunks/index-1.0.13-mrvd3mn4.mjs +1 -0
- package/dist/chunks/index-1.0.13-rrm8s54m.mjs +1 -0
- package/dist/chunks/index-1.0.13-vgmxqgw6.mjs +1 -0
- package/dist/chunks/index-1.0.13-xgbfdr5p.mjs +5 -0
- package/dist/chunks/index-1.0.13-y5wahjbd.mjs +9 -0
- package/dist/chunks/index-1.0.13-ykat42gv.mjs +1 -0
- package/dist/chunks/init-1.0.13-pyw980be.mjs +1 -0
- package/dist/chunks/initReplBridge-1.0.13-8pye5m3y.mjs +1 -0
- package/dist/chunks/ink-1.0.13-4ks3vqg1.mjs +1 -0
- package/dist/chunks/insights-1.0.13-8p04qt4e.mjs +870 -0
- package/dist/chunks/install-1.0.13-afmkvg4q.mjs +1 -0
- package/dist/chunks/install-github-app-1.0.13-nybxp9y9.mjs +149 -0
- package/dist/chunks/install-slack-app-1.0.13-ghycqjsr.mjs +1 -0
- package/dist/chunks/instrumentation-1.0.13-35rtw7fn.mjs +1 -0
- package/dist/chunks/interactiveHelpers-1.0.13-16ydy7kk.mjs +1 -0
- package/dist/chunks/keybindings-1.0.13-nt63s9bg.mjs +2 -0
- package/dist/chunks/knowledge-1.0.13-g9wcredx.mjs +2 -0
- package/dist/chunks/latestVersionCache-1.0.13-783kmyc1.mjs +1 -0
- package/dist/chunks/loadAgentsDir-1.0.13-btkcbfn1.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.13-6cxg0hz0.mjs +1 -0
- package/dist/chunks/loadPluginHooks-1.0.13-tf6npdgj.mjs +1 -0
- package/dist/chunks/log-1.0.13-3sscdqcx.mjs +1 -0
- package/dist/chunks/main-1.0.13-h958ytkv.mjs +1 -0
- package/dist/chunks/managedEnv-1.0.13-kcy78mg2.mjs +1 -0
- package/dist/chunks/mcp-1.0.13-gwfzhgtm.mjs +4 -0
- package/dist/chunks/mcp-1.0.13-s9hvy6a1.mjs +1 -0
- package/dist/chunks/mcp-1.0.13-vathcxfe.mjs +17 -0
- package/dist/chunks/mcpb-1.0.13-ynwdmrgy.mjs +1 -0
- package/dist/chunks/memory-1.0.13-y5pgdmp0.mjs +72 -0
- package/dist/chunks/model-1.0.13-28wkmva5.mjs +2 -0
- package/dist/chunks/model-1.0.13-wbne69bf.mjs +1 -0
- package/dist/chunks/node-1.0.13-jb6nf3sf.mjs +12 -0
- package/dist/chunks/oauth-1.0.13-x9g8753d.mjs +1 -0
- package/dist/chunks/openaiShim-1.0.13-dmzfpj84.mjs +14 -0
- package/dist/chunks/output-style-1.0.13-dkm9cvhh.mjs +1 -0
- package/dist/chunks/package-2VNCXFNY-1.0.13-c2rzk5s5.mjs +1 -0
- package/dist/chunks/parseConnectUrl-1.0.13-drfxxfbm.mjs +1 -0
- package/dist/chunks/parser-1.0.13-2a4gxkj4.mjs +1 -0
- package/dist/chunks/passes-1.0.13-xe1s3afm.mjs +1 -0
- package/dist/chunks/permissions-1.0.13-091a123r.mjs +1 -0
- package/dist/chunks/permissions-1.0.13-de2kak1c.mjs +3 -0
- package/dist/chunks/plan-1.0.13-nq51yj1w.mjs +1 -0
- package/dist/chunks/plist-1.0.13-9jnyqg5e.mjs +1 -0
- package/dist/chunks/plugin-1.0.13-ravfdrab.mjs +29 -0
- package/dist/chunks/pluginStartupCheck-1.0.13-bpnvrbf5.mjs +1 -0
- package/dist/chunks/plugins-1.0.13-2g0zcvmn.mjs +9 -0
- package/dist/chunks/preActionHook-1.0.13-sh1garss.mjs +2 -0
- package/dist/chunks/print-1.0.13-fbmdzf5h.mjs +57 -0
- package/dist/chunks/privacy-settings-1.0.13-xmggzdjb.mjs +1 -0
- package/dist/chunks/process-1.0.13-yvqmferw.mjs +1 -0
- package/dist/chunks/processBashCommand-1.0.13-vymx613b.mjs +1 -0
- package/dist/chunks/processSlashCommand-1.0.13-t2b59q54.mjs +9 -0
- package/dist/chunks/prompt-1.0.13-5rf0rmyz.mjs +1 -0
- package/dist/chunks/prompt-1.0.13-z2a6q0v3.mjs +1 -0
- package/dist/chunks/prompts-1.0.13-xntc8d09.mjs +1 -0
- package/dist/chunks/protocolHandler-1.0.13-c5pks46d.mjs +13 -0
- package/dist/chunks/provider-1.0.13-zfgjs99b.mjs +2 -0
- package/dist/chunks/providerProfiles-1.0.13-rk6z9ker.mjs +1 -0
- package/dist/chunks/providerValidation-1.0.13-w8m526k7.mjs +6 -0
- package/dist/chunks/rate-limit-options-1.0.13-2a7ezwjq.mjs +1 -0
- package/dist/chunks/registerSubcommands-1.0.13-fdj1d2vn.mjs +34 -0
- package/dist/chunks/registry-1.0.13-p4zgn33y.mjs +1 -0
- package/dist/chunks/release-notes-1.0.13-pgzcje06.mjs +5 -0
- package/dist/chunks/reload-plugins-1.0.13-6chpnefr.mjs +2 -0
- package/dist/chunks/remote-env-1.0.13-j1xk0q03.mjs +1 -0
- package/dist/chunks/remoteBridgeCore-1.0.13-ffh4q93x.mjs +1 -0
- package/dist/chunks/remoteSession-1.0.13-h715mcc6.mjs +1 -0
- package/dist/chunks/rename-1.0.13-x7fma5b1.mjs +1 -0
- package/dist/chunks/replBridgeHandle-1.0.13-d1r6xsjs.mjs +1 -0
- package/dist/chunks/replLauncher-1.0.13-bhshyrk2.mjs +1 -0
- package/dist/chunks/resume-1.0.13-g7w8k889.mjs +2 -0
- package/dist/chunks/rewind-1.0.13-9wf9gqtz.mjs +1 -0
- package/dist/chunks/rootOptions-1.0.13-7y485878.mjs +1 -0
- package/dist/chunks/runWorkflowHeadless-1.0.13-rv0anxz7.mjs +10 -0
- package/dist/chunks/sandbox-adapter-1.0.13-kvcvaae5.mjs +1 -0
- package/dist/chunks/sandbox-toggle-1.0.13-gzeexqb1.mjs +1 -0
- package/dist/chunks/session-1.0.13-hyhbhvkf.mjs +2 -0
- package/dist/chunks/sessionDiscovery-1.0.13-525ff4qc.mjs +1 -0
- package/dist/chunks/sessionFileAccessHooks-1.0.13-52whtstc.mjs +1 -0
- package/dist/chunks/sessionStorage-1.0.13-r00sygqv.mjs +1 -0
- package/dist/chunks/settings-1.0.13-sm1hpt00.mjs +1 -0
- package/dist/chunks/setup-1.0.13-7y88y2kn.mjs +5 -0
- package/dist/chunks/sinks-1.0.13-4g18qqzg.mjs +1 -0
- package/dist/chunks/skills-1.0.13-cpct3g7k.mjs +1 -0
- package/dist/chunks/startupProfiler-1.0.13-x0k3gz44.mjs +1 -0
- package/dist/chunks/startupUpdateCheck-1.0.13-n4bzta5q.mjs +1 -0
- package/dist/chunks/state-1.0.13-zq29wtdm.mjs +1 -0
- package/dist/chunks/stats-1.0.13-q0gfz40a.mjs +6 -0
- package/dist/chunks/status-1.0.13-t69r10gd.mjs +1 -0
- package/dist/chunks/stickers-1.0.13-1vnk8fs0.mjs +1 -0
- package/dist/chunks/subprocessEnv-1.0.13-1qaxx1mm.mjs +1 -0
- package/dist/chunks/tasks-1.0.13-xbf05jds.mjs +1 -0
- package/dist/chunks/teamHelpers-1.0.13-ajaffjmv.mjs +1 -0
- package/dist/chunks/teammateModeSnapshot-1.0.13-0se6apnj.mjs +1 -0
- package/dist/chunks/teleport-1.0.13-fy5929dz.mjs +1 -0
- package/dist/chunks/terminalSetup-1.0.13-6vb6xv4h.mjs +1 -0
- package/dist/chunks/theme-1.0.13-qh1caywb.mjs +1 -0
- package/dist/chunks/thinkback-1.0.13-yxqc5snt.mjs +1 -0
- package/dist/chunks/thinkback-play-1.0.13-4zdbm8qa.mjs +1 -0
- package/dist/chunks/toolPool-1.0.13-p41w5yd3.mjs +1 -0
- package/dist/chunks/toolSearch-1.0.13-4behydd7.mjs +1 -0
- package/dist/chunks/tools-1.0.13-vkf5gwtw.mjs +1 -0
- package/dist/chunks/trustedDevice-1.0.13-zafdrn99.mjs +1 -0
- package/dist/chunks/turndown.cjs-1.0.13-jyfkbj9m.mjs +69 -0
- package/dist/chunks/types-1.0.13-7xc46cqv.mjs +1 -0
- package/dist/chunks/ultrareviewCommand-1.0.13-3bz6pfy0.mjs +4 -0
- package/dist/chunks/update-1.0.13-yevsj7ad.mjs +88 -0
- package/dist/chunks/upgrade-1.0.13-exvdsfcj.mjs +1 -0
- package/dist/chunks/upload-1.0.13-hnnrtgrv.mjs +7 -0
- package/dist/chunks/upstreamproxy-1.0.13-qgbvmb0r.mjs +14 -0
- package/dist/chunks/url-handler-napi-1.0.13-7wjfhqg3.mjs +1 -0
- package/dist/chunks/usage-1.0.13-jvdr40ma.mjs +1 -0
- package/dist/chunks/util-1.0.13-87gxb90q.mjs +1 -0
- package/dist/chunks/utils-1.0.13-c5pe460e.mjs +1 -0
- package/dist/chunks/vim-1.0.13-nkrbsse9.mjs +1 -0
- package/dist/chunks/watchLoop-1.0.13-922mtars.mjs +13 -0
- package/dist/chunks/watcher-1.0.13-pt4sgafn.mjs +1 -0
- package/dist/chunks/wiki-1.0.13-swp7dc6p.mjs +132 -0
- package/dist/chunks/workflows-1.0.13-ykfca04r.mjs +1 -0
- package/dist/chunks/worktree-1.0.13-9m47x8ty.mjs +1 -0
- package/dist/chunks/worktreeModeEnabled-1.0.13-3jrpyzfm.mjs +1 -0
- package/dist/chunks/wrapper-1.0.13-2myaas4p.mjs +7 -0
- package/dist/cli.mjs +2 -2
- package/package.json +9 -9
- package/dist/chunks/AgentTool-1.0.12-abyv62fr.mjs +0 -1
- package/dist/chunks/App-1.0.12-dn7sszp8.mjs +0 -1
- package/dist/chunks/ApproveApiKey-1.0.12-vx8944sv.mjs +0 -1
- package/dist/chunks/AssistantSessionChooser-1.0.12-ke187zyp.mjs +0 -1
- package/dist/chunks/AutoModeOptInDialog-1.0.12-4evyjnv0.mjs +0 -1
- package/dist/chunks/BypassPermissionsModeDialog-1.0.12-d9mwxc90.mjs +0 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.12-3jmx6cgy.mjs +0 -1
- package/dist/chunks/ConsoleOAuthFlow-1.0.12-3kmzdqzg.mjs +0 -1
- package/dist/chunks/DiffDialog-1.0.12-qj1xvjhw.mjs +0 -7
- package/dist/chunks/Doctor-1.0.12-51vy6wdx.mjs +0 -1
- package/dist/chunks/ExplorerDialog-1.0.12-96frvk0f.mjs +0 -6
- package/dist/chunks/Grove-1.0.12-56863ex7.mjs +0 -1
- package/dist/chunks/ITermBackend-1.0.12-r6mxvzaa.mjs +0 -1
- package/dist/chunks/InvalidConfigDialog-1.0.12-79dad11d.mjs +0 -1
- package/dist/chunks/InvalidSettingsDialog-1.0.12-stz0gsem.mjs +0 -1
- package/dist/chunks/MigrationDialog-1.0.12-zyd4mdh4.mjs +0 -1
- package/dist/chunks/Onboarding-1.0.12-zbfxpy94.mjs +0 -1
- package/dist/chunks/ProviderManager-1.0.12-p8zk25w6.mjs +0 -1
- package/dist/chunks/REPL-1.0.12-fqnth064.mjs +0 -1
- package/dist/chunks/ResumeConversation-1.0.12-0qfj43z7.mjs +0 -1
- package/dist/chunks/SnapshotUpdateDialog-1.0.12-bnjcb979.mjs +0 -1
- package/dist/chunks/TeleportProgress-1.0.12-c6fa4qje.mjs +0 -1
- package/dist/chunks/TeleportRepoMismatchDialog-1.0.12-ycm47j1m.mjs +0 -1
- package/dist/chunks/TeleportResumeWrapper-1.0.12-9rp6hs4x.mjs +0 -1
- package/dist/chunks/TmuxBackend-1.0.12-41jckn7c.mjs +0 -9
- package/dist/chunks/ToolSearchTool-1.0.12-c9n0hbpv.mjs +0 -1
- package/dist/chunks/TrustDialog-1.0.12-7fnas2qv.mjs +0 -1
- package/dist/chunks/activeProvider-1.0.12-gv2mp6kz.mjs +0 -1
- package/dist/chunks/add-dir-1.0.12-fpqr5x3k.mjs +0 -1
- package/dist/chunks/agentTypes-1.0.12-vrw22nhr.mjs +0 -1
- package/dist/chunks/agents-1.0.12-b7qmsh41.mjs +0 -3
- package/dist/chunks/agents-1.0.12-swx0yj99.mjs +0 -110
- package/dist/chunks/api-1.0.12-7ekn0cc8.mjs +0 -1
- package/dist/chunks/asciicast-1.0.12-bwarrcwq.mjs +0 -1
- package/dist/chunks/assistant-1.0.12-85mxf1m6.mjs +0 -1
- package/dist/chunks/auth-1.0.12-cefhne6z.mjs +0 -1
- package/dist/chunks/auth-1.0.12-snebfssk.mjs +0 -1
- package/dist/chunks/autoMode-1.0.12-9n08nqfk.mjs +0 -48
- package/dist/chunks/autoUpdater-1.0.12-h50vcbqf.mjs +0 -1
- package/dist/chunks/backgroundHousekeeping-1.0.12-tdh1q45w.mjs +0 -1
- package/dist/chunks/branch-1.0.12-863hng5d.mjs +0 -4
- package/dist/chunks/bridge-1.0.12-a5nw09de.mjs +0 -2
- package/dist/chunks/bridgeConfig-1.0.12-x66p8c5q.mjs +0 -1
- package/dist/chunks/bridgeEnabled-1.0.12-0wztb1hd.mjs +0 -1
- package/dist/chunks/bridgeMain-1.0.12-038n798h.mjs +0 -88
- package/dist/chunks/bridgePointer-1.0.12-9sjcxc3h.mjs +0 -1
- package/dist/chunks/btw-1.0.12-k26an2yc.mjs +0 -1
- package/dist/chunks/buddy-1.0.12-fpfpe288.mjs +0 -3
- package/dist/chunks/cacache-1.0.12-tee370hf.mjs +0 -1
- package/dist/chunks/cache-probe-1.0.12-ch8554yv.mjs +0 -21
- package/dist/chunks/cacheStats-1.0.12-9e5dx6pf.mjs +0 -4
- package/dist/chunks/caches-1.0.12-40h57pd6.mjs +0 -1
- package/dist/chunks/claudeDesktop-1.0.12-9cxdymhn.mjs +0 -1
- package/dist/chunks/claudemd-1.0.12-9dezcbgf.mjs +0 -1
- package/dist/chunks/clear-1.0.12-rhwxvjx8.mjs +0 -1
- package/dist/chunks/clearTerminal-1.0.12-33ecg1d7.mjs +0 -1
- package/dist/chunks/cli-1.0.12-05z376bz.mjs +0 -2
- package/dist/chunks/cli-1.0.12-0hs0n73e.mjs +0 -2
- package/dist/chunks/cli-1.0.12-0smh9wwk.mjs +0 -2
- package/dist/chunks/cli-1.0.12-0ttcqcck.mjs +0 -133
- package/dist/chunks/cli-1.0.12-18q23t16.mjs +0 -2
- package/dist/chunks/cli-1.0.12-1bcrzsgk.mjs +0 -45
- package/dist/chunks/cli-1.0.12-1cr9ram8.mjs +0 -21
- package/dist/chunks/cli-1.0.12-1dt50yfn.mjs +0 -4
- package/dist/chunks/cli-1.0.12-1n68xsye.mjs +0 -2
- package/dist/chunks/cli-1.0.12-1qc9gpzw.mjs +0 -12
- package/dist/chunks/cli-1.0.12-21c23686.mjs +0 -9
- package/dist/chunks/cli-1.0.12-22gbc57h.mjs +0 -2
- package/dist/chunks/cli-1.0.12-27qnbw76.mjs +0 -2
- package/dist/chunks/cli-1.0.12-2kt5mqgg.mjs +0 -2
- package/dist/chunks/cli-1.0.12-2nmjd3nj.mjs +0 -2
- package/dist/chunks/cli-1.0.12-2yt4jp97.mjs +0 -2
- package/dist/chunks/cli-1.0.12-321h968k.mjs +0 -2
- package/dist/chunks/cli-1.0.12-352e65vc.mjs +0 -2
- package/dist/chunks/cli-1.0.12-37c8ygq5.mjs +0 -6
- package/dist/chunks/cli-1.0.12-3fnggb5b.mjs +0 -133
- package/dist/chunks/cli-1.0.12-3n5xx9qt.mjs +0 -18
- package/dist/chunks/cli-1.0.12-3ncccq9x.mjs +0 -2
- package/dist/chunks/cli-1.0.12-3pn1zvqm.mjs +0 -2
- package/dist/chunks/cli-1.0.12-3r1201w4.mjs +0 -2
- package/dist/chunks/cli-1.0.12-3ya2dc5e.mjs +0 -2
- package/dist/chunks/cli-1.0.12-4hwr3sdf.mjs +0 -2
- package/dist/chunks/cli-1.0.12-4p7v89wr.mjs +0 -2
- package/dist/chunks/cli-1.0.12-57gs15yp.mjs +0 -18
- package/dist/chunks/cli-1.0.12-5efdpv3j.mjs +0 -2
- package/dist/chunks/cli-1.0.12-5sztdycm.mjs +0 -2
- package/dist/chunks/cli-1.0.12-65451rqd.mjs +0 -6
- package/dist/chunks/cli-1.0.12-67258wf2.mjs +0 -2
- package/dist/chunks/cli-1.0.12-6a3h6ptq.mjs +0 -2
- package/dist/chunks/cli-1.0.12-6p5xq1zz.mjs +0 -2
- package/dist/chunks/cli-1.0.12-6r2ap1g8.mjs +0 -4
- package/dist/chunks/cli-1.0.12-6rebetxb.mjs +0 -2
- package/dist/chunks/cli-1.0.12-6s4gq7fa.mjs +0 -2
- package/dist/chunks/cli-1.0.12-6tg9g6jd.mjs +0 -18
- package/dist/chunks/cli-1.0.12-76954fs2.mjs +0 -2
- package/dist/chunks/cli-1.0.12-769ev05r.mjs +0 -2
- package/dist/chunks/cli-1.0.12-7gt5bvcm.mjs +0 -16
- package/dist/chunks/cli-1.0.12-7ptw0hek.mjs +0 -3
- package/dist/chunks/cli-1.0.12-7tv5r0ph.mjs +0 -2
- package/dist/chunks/cli-1.0.12-7yabvp9r.mjs +0 -2
- package/dist/chunks/cli-1.0.12-7ynhsc1z.mjs +0 -4
- package/dist/chunks/cli-1.0.12-824tangf.mjs +0 -2
- package/dist/chunks/cli-1.0.12-86r9ty21.mjs +0 -5
- package/dist/chunks/cli-1.0.12-8751mzfs.mjs +0 -2
- package/dist/chunks/cli-1.0.12-87hs2fpz.mjs +0 -2
- package/dist/chunks/cli-1.0.12-88jecwwk.mjs +0 -2
- package/dist/chunks/cli-1.0.12-8neq4sr4.mjs +0 -2
- package/dist/chunks/cli-1.0.12-8ntn3ny6.mjs +0 -3
- package/dist/chunks/cli-1.0.12-8vjn5tt5.mjs +0 -2
- package/dist/chunks/cli-1.0.12-939eqyt0.mjs +0 -2
- package/dist/chunks/cli-1.0.12-93c97gc0.mjs +0 -7
- package/dist/chunks/cli-1.0.12-9xrez673.mjs +0 -6
- package/dist/chunks/cli-1.0.12-a3wknc82.mjs +0 -3
- package/dist/chunks/cli-1.0.12-a761j1gv.mjs +0 -2
- package/dist/chunks/cli-1.0.12-afqp6ccg.mjs +0 -5
- package/dist/chunks/cli-1.0.12-anfbb1k6.mjs +0 -199
- package/dist/chunks/cli-1.0.12-aqhk0pnq.mjs +0 -2
- package/dist/chunks/cli-1.0.12-aqvexw12.mjs +0 -4
- package/dist/chunks/cli-1.0.12-ar5q5p8k.mjs +0 -3
- package/dist/chunks/cli-1.0.12-arptj6sc.mjs +0 -2
- package/dist/chunks/cli-1.0.12-asf0zhhk.mjs +0 -2
- package/dist/chunks/cli-1.0.12-aswy8n6q.mjs +0 -2
- package/dist/chunks/cli-1.0.12-b0xdgvm3.mjs +0 -2
- package/dist/chunks/cli-1.0.12-b2kkbfqv.mjs +0 -2
- package/dist/chunks/cli-1.0.12-b54efth7.mjs +0 -3
- package/dist/chunks/cli-1.0.12-b55xwv7c.mjs +0 -12
- package/dist/chunks/cli-1.0.12-bavasn2m.mjs +0 -2
- package/dist/chunks/cli-1.0.12-bhvkmj7j.mjs +0 -2
- package/dist/chunks/cli-1.0.12-bphdbsee.mjs +0 -20
- package/dist/chunks/cli-1.0.12-bwhry5d9.mjs +0 -2
- package/dist/chunks/cli-1.0.12-bxrzeqxy.mjs +0 -2
- package/dist/chunks/cli-1.0.12-c3r1a6g5.mjs +0 -24
- package/dist/chunks/cli-1.0.12-c8eswgza.mjs +0 -2
- package/dist/chunks/cli-1.0.12-cdv6sj7q.mjs +0 -2
- package/dist/chunks/cli-1.0.12-ce2kb4jz.mjs +0 -2
- package/dist/chunks/cli-1.0.12-ce5a5631.mjs +0 -4
- package/dist/chunks/cli-1.0.12-cg6zadcf.mjs +0 -2
- package/dist/chunks/cli-1.0.12-ckpmw81j.mjs +0 -2
- package/dist/chunks/cli-1.0.12-crspnn4b.mjs +0 -6
- package/dist/chunks/cli-1.0.12-cveh4gy6.mjs +0 -34
- package/dist/chunks/cli-1.0.12-dcw582gx.mjs +0 -15
- package/dist/chunks/cli-1.0.12-ehp5ev2y.mjs +0 -2
- package/dist/chunks/cli-1.0.12-eptxz5fr.mjs +0 -2
- package/dist/chunks/cli-1.0.12-ets3kmf3.mjs +0 -2
- package/dist/chunks/cli-1.0.12-ev21p7g7.mjs +0 -1
- package/dist/chunks/cli-1.0.12-evtxsq88.mjs +0 -2
- package/dist/chunks/cli-1.0.12-f7s9vrvb.mjs +0 -2
- package/dist/chunks/cli-1.0.12-fc7czhyd.mjs +0 -2
- package/dist/chunks/cli-1.0.12-fr4x7p5q.mjs +0 -3
- package/dist/chunks/cli-1.0.12-fs27jw81.mjs +0 -59
- package/dist/chunks/cli-1.0.12-fs365rj0.mjs +0 -2
- package/dist/chunks/cli-1.0.12-fsgbmjzn.mjs +0 -2
- package/dist/chunks/cli-1.0.12-fttry6vt.mjs +0 -2
- package/dist/chunks/cli-1.0.12-g2qcnx8m.mjs +0 -2
- package/dist/chunks/cli-1.0.12-g2qsv3tc.mjs +0 -5494
- package/dist/chunks/cli-1.0.12-g6jjrjcj.mjs +0 -2
- package/dist/chunks/cli-1.0.12-gajn1gbg.mjs +0 -2
- package/dist/chunks/cli-1.0.12-gctwj61k.mjs +0 -4
- package/dist/chunks/cli-1.0.12-gd18f7hm.mjs +0 -2
- package/dist/chunks/cli-1.0.12-gden9vt3.mjs +0 -2
- package/dist/chunks/cli-1.0.12-gdjkhny3.mjs +0 -2
- package/dist/chunks/cli-1.0.12-geffmp8p.mjs +0 -2
- package/dist/chunks/cli-1.0.12-ggdecys5.mjs +0 -2
- package/dist/chunks/cli-1.0.12-gnjqhx0t.mjs +0 -3
- package/dist/chunks/cli-1.0.12-gvpmx85m.mjs +0 -58
- package/dist/chunks/cli-1.0.12-gz6fyqwk.mjs +0 -39
- package/dist/chunks/cli-1.0.12-gzdht3by.mjs +0 -2
- package/dist/chunks/cli-1.0.12-hcw51twk.mjs +0 -2
- package/dist/chunks/cli-1.0.12-hfjvcc88.mjs +0 -2
- package/dist/chunks/cli-1.0.12-hg7zn647.mjs +0 -2
- package/dist/chunks/cli-1.0.12-hhbfs4k4.mjs +0 -6
- package/dist/chunks/cli-1.0.12-hhr93g23.mjs +0 -2
- package/dist/chunks/cli-1.0.12-hkmqbg09.mjs +0 -2
- package/dist/chunks/cli-1.0.12-hqfw51ap.mjs +0 -4
- package/dist/chunks/cli-1.0.12-hs1b7q69.mjs +0 -2
- package/dist/chunks/cli-1.0.12-hxmg9ymn.mjs +0 -67
- package/dist/chunks/cli-1.0.12-j6jbtppw.mjs +0 -50
- package/dist/chunks/cli-1.0.12-jcpeegj0.mjs +0 -2
- package/dist/chunks/cli-1.0.12-jfhjds03.mjs +0 -2
- package/dist/chunks/cli-1.0.12-jfsy9ha5.mjs +0 -2
- package/dist/chunks/cli-1.0.12-jk3cz5bk.mjs +0 -2
- package/dist/chunks/cli-1.0.12-jv9bdyr3.mjs +0 -4
- package/dist/chunks/cli-1.0.12-jx132j1k.mjs +0 -25
- package/dist/chunks/cli-1.0.12-k1be9914.mjs +0 -12
- package/dist/chunks/cli-1.0.12-kamdx1jw.mjs +0 -2
- package/dist/chunks/cli-1.0.12-krksdpwy.mjs +0 -2
- package/dist/chunks/cli-1.0.12-krtzqxr0.mjs +0 -2
- package/dist/chunks/cli-1.0.12-kvbcb0np.mjs +0 -2
- package/dist/chunks/cli-1.0.12-kyxqyb1j.mjs +0 -2
- package/dist/chunks/cli-1.0.12-m46zb45g.mjs +0 -2
- package/dist/chunks/cli-1.0.12-m4ayadmp.mjs +0 -12
- package/dist/chunks/cli-1.0.12-mg5ma9ym.mjs +0 -15
- package/dist/chunks/cli-1.0.12-mx2xvdp9.mjs +0 -2
- package/dist/chunks/cli-1.0.12-n1m3pwwf.mjs +0 -2
- package/dist/chunks/cli-1.0.12-nanfnkp2.mjs +0 -2
- package/dist/chunks/cli-1.0.12-nn3vf2hn.mjs +0 -2
- package/dist/chunks/cli-1.0.12-nqhqcsq6.mjs +0 -2
- package/dist/chunks/cli-1.0.12-nvvpna9m.mjs +0 -3
- package/dist/chunks/cli-1.0.12-p4ezzhhd.mjs +0 -8
- package/dist/chunks/cli-1.0.12-pp2g923k.mjs +0 -2
- package/dist/chunks/cli-1.0.12-pp47fwxq.mjs +0 -2
- package/dist/chunks/cli-1.0.12-pr30kcgz.mjs +0 -2
- package/dist/chunks/cli-1.0.12-q0r16q04.mjs +0 -2
- package/dist/chunks/cli-1.0.12-q5pm96yt.mjs +0 -2
- package/dist/chunks/cli-1.0.12-q6d6aqp0.mjs +0 -2
- package/dist/chunks/cli-1.0.12-q6k5vz5c.mjs +0 -15
- package/dist/chunks/cli-1.0.12-qawr9s3v.mjs +0 -2
- package/dist/chunks/cli-1.0.12-qdw94y1a.mjs +0 -2
- package/dist/chunks/cli-1.0.12-r0h1nfgc.mjs +0 -2
- package/dist/chunks/cli-1.0.12-r5xssak6.mjs +0 -3
- package/dist/chunks/cli-1.0.12-rkm9m5nr.mjs +0 -4
- package/dist/chunks/cli-1.0.12-rndzs6hs.mjs +0 -3
- package/dist/chunks/cli-1.0.12-rx65fdkz.mjs +0 -2
- package/dist/chunks/cli-1.0.12-s5nznhbh.mjs +0 -3
- package/dist/chunks/cli-1.0.12-s6we79nr.mjs +0 -17
- package/dist/chunks/cli-1.0.12-samztxet.mjs +0 -2
- package/dist/chunks/cli-1.0.12-sav2q0qa.mjs +0 -42
- package/dist/chunks/cli-1.0.12-t40ecqfd.mjs +0 -2
- package/dist/chunks/cli-1.0.12-tj9ktjsh.mjs +0 -24
- package/dist/chunks/cli-1.0.12-tj9rj5jy.mjs +0 -2
- package/dist/chunks/cli-1.0.12-tjbtefn3.mjs +0 -2
- package/dist/chunks/cli-1.0.12-trd4dn34.mjs +0 -2
- package/dist/chunks/cli-1.0.12-tv0c63rt.mjs +0 -2
- package/dist/chunks/cli-1.0.12-tz4cb805.mjs +0 -2
- package/dist/chunks/cli-1.0.12-v4dwzr3x.mjs +0 -17
- package/dist/chunks/cli-1.0.12-vaj96q9j.mjs +0 -2
- package/dist/chunks/cli-1.0.12-vr2x1cvb.mjs +0 -2
- package/dist/chunks/cli-1.0.12-w1kw41q7.mjs +0 -2
- package/dist/chunks/cli-1.0.12-w7rfasq3.mjs +0 -9
- package/dist/chunks/cli-1.0.12-w8y086m4.mjs +0 -25
- package/dist/chunks/cli-1.0.12-wex4dg02.mjs +0 -4
- package/dist/chunks/cli-1.0.12-wg1cqvtp.mjs +0 -2
- package/dist/chunks/cli-1.0.12-wjsws708.mjs +0 -2
- package/dist/chunks/cli-1.0.12-wk1q0n53.mjs +0 -2
- package/dist/chunks/cli-1.0.12-wrzpekwj.mjs +0 -2
- package/dist/chunks/cli-1.0.12-wvndtz51.mjs +0 -24
- package/dist/chunks/cli-1.0.12-wz7n2nsd.mjs +0 -2
- package/dist/chunks/cli-1.0.12-x10h3tbg.mjs +0 -2
- package/dist/chunks/cli-1.0.12-x4ep25h9.mjs +0 -4
- package/dist/chunks/cli-1.0.12-xkytf9yh.mjs +0 -2
- package/dist/chunks/cli-1.0.12-xttdsx6k.mjs +0 -2
- package/dist/chunks/cli-1.0.12-y1c7c1a1.mjs +0 -2
- package/dist/chunks/cli-1.0.12-y84rjfz7.mjs +0 -2
- package/dist/chunks/cli-1.0.12-yhv467zj.mjs +0 -2
- package/dist/chunks/cli-1.0.12-ynve21xv.mjs +0 -2
- package/dist/chunks/cli-1.0.12-ys1t2bxz.mjs +0 -2
- package/dist/chunks/cli-1.0.12-yxtwvta2.mjs +0 -2
- package/dist/chunks/cli-1.0.12-z3a8jcm9.mjs +0 -3
- package/dist/chunks/cli-1.0.12-z3c340m4.mjs +0 -2
- package/dist/chunks/cli-1.0.12-z623f1kc.mjs +0 -2
- package/dist/chunks/cli-1.0.12-z9h568zf.mjs +0 -2
- package/dist/chunks/cli-1.0.12-z9sfhfkz.mjs +0 -2
- package/dist/chunks/cli-1.0.12-zeamr7yd.mjs +0 -2
- package/dist/chunks/cli-1.0.12-zeyjdjny.mjs +0 -2
- package/dist/chunks/cli-1.0.12-zfc8ad9g.mjs +0 -2
- package/dist/chunks/cli-1.0.12-zh892bg0.mjs +0 -2
- package/dist/chunks/cli-1.0.12-zjxsxtgp.mjs +0 -2
- package/dist/chunks/client-1.0.12-byhwssfy.mjs +0 -1
- package/dist/chunks/color-1.0.12-r9qemzca.mjs +0 -1
- package/dist/chunks/compact-1.0.12-e026vahr.mjs +0 -3
- package/dist/chunks/config-1.0.12-bzczt66c.mjs +0 -1
- package/dist/chunks/config-1.0.12-spq7sz3g.mjs +0 -1
- package/dist/chunks/constants-1.0.12-wfre6b4q.mjs +0 -1
- package/dist/chunks/context-1.0.12-062jh3t1.mjs +0 -1
- package/dist/chunks/context-noninteractive-1.0.12-2a33mwts.mjs +0 -1
- package/dist/chunks/conversation-1.0.12-84yx1v9g.mjs +0 -1
- package/dist/chunks/copilotHeaders-1.0.12-9p7nbsej.mjs +0 -1
- package/dist/chunks/copy-1.0.12-p0ehh4km.mjs +0 -9
- package/dist/chunks/cost-1.0.12-rp0mbkmr.mjs +0 -1
- package/dist/chunks/createSSHSession-1.0.12-wxq374vh.mjs +0 -1
- package/dist/chunks/createSession-1.0.12-1xvzax9p.mjs +0 -1
- package/dist/chunks/debug-1.0.12-94hz3csj.mjs +0 -1
- package/dist/chunks/defaultActionDeps-1.0.12-xampkk9g.mjs +0 -1446
- package/dist/chunks/desktop-1.0.12-sjnz496g.mjs +0 -1
- package/dist/chunks/detectRepository-1.0.12-ba7p74yk.mjs +0 -1
- package/dist/chunks/detection-1.0.12-a5q568s6.mjs +0 -1
- package/dist/chunks/diff-1.0.12-ndfx6mw0.mjs +0 -1
- package/dist/chunks/doctor-1.0.12-n0w9na8y.mjs +0 -1
- package/dist/chunks/doctorDiagnostic-1.0.12-9s7nqv0g.mjs +0 -1
- package/dist/chunks/earlyInput-1.0.12-zysskqm6.mjs +0 -1
- package/dist/chunks/effort-1.0.12-fv5hhe7x.mjs +0 -10
- package/dist/chunks/engine-1.0.12-h8g4mgyb.mjs +0 -1
- package/dist/chunks/envLessBridgeConfig-1.0.12-dgzmkpm2.mjs +0 -1
- package/dist/chunks/envUtils-1.0.12-sdf1kcja.mjs +0 -1
- package/dist/chunks/environmentSelection-1.0.12-8q9ret6b.mjs +0 -1
- package/dist/chunks/environments-1.0.12-a3zhfbhz.mjs +0 -1
- package/dist/chunks/errors-1.0.12-ct15bef4.mjs +0 -1
- package/dist/chunks/exampleCommands-1.0.12-df1dw74e.mjs +0 -1
- package/dist/chunks/execFileNoThrow-1.0.12-xfr44c3a.mjs +0 -1
- package/dist/chunks/exit-1.0.12-zvdfr5b8.mjs +0 -1
- package/dist/chunks/explorer-1.0.12-6y9xjy1q.mjs +0 -1
- package/dist/chunks/export-1.0.12-skd48sxc.mjs +0 -2
- package/dist/chunks/extra-usage-1.0.12-xfmqjtpj.mjs +0 -1
- package/dist/chunks/extra-usage-noninteractive-1.0.12-t1hm20j5.mjs +0 -1
- package/dist/chunks/fast-1.0.12-fhft5ey6.mjs +0 -1
- package/dist/chunks/feedback-1.0.12-3nxarzk5.mjs +0 -14
- package/dist/chunks/firstPartyEventLogger-1.0.12-wd3zscn0.mjs +0 -1
- package/dist/chunks/git-1.0.12-vdgymgzx.mjs +0 -1
- package/dist/chunks/githubModelsCredentials-1.0.12-4srnyf9v.mjs +0 -1
- package/dist/chunks/goal-1.0.12-h2359pb4.mjs +0 -4
- package/dist/chunks/grove-1.0.12-77sjjjn3.mjs +0 -1
- package/dist/chunks/growthbook-1.0.12-3n3fqtkt.mjs +0 -1
- package/dist/chunks/headless-1.0.12-yp3kbbxc.mjs +0 -2
- package/dist/chunks/heapdump-1.0.12-s91zbazj.mjs +0 -6
- package/dist/chunks/help-1.0.12-0xjr189z.mjs +0 -1
- package/dist/chunks/hookChains-1.0.12-ct9k5n1p.mjs +0 -3
- package/dist/chunks/hooks-1.0.12-3j1z9nnx.mjs +0 -79
- package/dist/chunks/hooks-1.0.12-70mxcsxh.mjs +0 -1
- package/dist/chunks/ide-1.0.12-28njrjbk.mjs +0 -3
- package/dist/chunks/image-processor-napi-1.0.12-6wgz5kvw.mjs +0 -1
- package/dist/chunks/inboundAttachments-1.0.12-jvjez1dn.mjs +0 -1
- package/dist/chunks/index-1.0.12-0da1bb49.mjs +0 -9
- package/dist/chunks/index-1.0.12-1e9j7vzg.mjs +0 -5
- package/dist/chunks/index-1.0.12-1mdaerd8.mjs +0 -1
- package/dist/chunks/index-1.0.12-24pswrth.mjs +0 -1
- package/dist/chunks/index-1.0.12-2v2em96v.mjs +0 -2
- package/dist/chunks/index-1.0.12-474c1qt4.mjs +0 -1
- package/dist/chunks/index-1.0.12-6mn5222v.mjs +0 -1
- package/dist/chunks/index-1.0.12-742qmav9.mjs +0 -1
- package/dist/chunks/index-1.0.12-7k7nz3zd.mjs +0 -1
- package/dist/chunks/index-1.0.12-9j0r9hj8.mjs +0 -1
- package/dist/chunks/index-1.0.12-b9j27arj.mjs +0 -1
- package/dist/chunks/index-1.0.12-bpttwsys.mjs +0 -9
- package/dist/chunks/index-1.0.12-c5e33bnp.mjs +0 -1
- package/dist/chunks/index-1.0.12-cqq21e0m.mjs +0 -2
- package/dist/chunks/index-1.0.12-cr5bmztw.mjs +0 -1
- package/dist/chunks/index-1.0.12-fmffckpa.mjs +0 -1
- package/dist/chunks/index-1.0.12-gq7wdwne.mjs +0 -1
- package/dist/chunks/index-1.0.12-hdkwtv7r.mjs +0 -30
- package/dist/chunks/index-1.0.12-hdncwsmp.mjs +0 -17
- package/dist/chunks/index-1.0.12-p087je6g.mjs +0 -1
- package/dist/chunks/index-1.0.12-v4fg3ddh.mjs +0 -1
- package/dist/chunks/index-1.0.12-vx8y4eyw.mjs +0 -1
- package/dist/chunks/index-1.0.12-wbyw0qj6.mjs +0 -1
- package/dist/chunks/init-1.0.12-z61mf946.mjs +0 -1
- package/dist/chunks/initReplBridge-1.0.12-x85m2bm7.mjs +0 -1
- package/dist/chunks/ink-1.0.12-zmy65h90.mjs +0 -1
- package/dist/chunks/insights-1.0.12-hmmb2hfq.mjs +0 -870
- package/dist/chunks/install-1.0.12-ayp0wk5h.mjs +0 -1
- package/dist/chunks/install-github-app-1.0.12-gp77dd3x.mjs +0 -149
- package/dist/chunks/install-slack-app-1.0.12-r3sn5vy9.mjs +0 -1
- package/dist/chunks/instrumentation-1.0.12-p992hkry.mjs +0 -1
- package/dist/chunks/interactiveHelpers-1.0.12-bpa40yg2.mjs +0 -1
- package/dist/chunks/keybindings-1.0.12-tzqxhe4y.mjs +0 -2
- package/dist/chunks/knowledge-1.0.12-4z117jz8.mjs +0 -2
- package/dist/chunks/latestVersionCache-1.0.12-v4exfmej.mjs +0 -1
- package/dist/chunks/loadAgentsDir-1.0.12-33qj54es.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.0.12-3e1ay1bg.mjs +0 -1
- package/dist/chunks/loadPluginHooks-1.0.12-s7htccwt.mjs +0 -1
- package/dist/chunks/log-1.0.12-qerp8m38.mjs +0 -1
- package/dist/chunks/main-1.0.12-eegz9vfx.mjs +0 -1
- package/dist/chunks/managedEnv-1.0.12-dsdjxx30.mjs +0 -1
- package/dist/chunks/mcp-1.0.12-6dgfh9jp.mjs +0 -17
- package/dist/chunks/mcp-1.0.12-j2h3k7hg.mjs +0 -4
- package/dist/chunks/mcp-1.0.12-kp37svg1.mjs +0 -1
- package/dist/chunks/mcpb-1.0.12-ca16ddb6.mjs +0 -1
- package/dist/chunks/memory-1.0.12-0k08f6b4.mjs +0 -72
- package/dist/chunks/model-1.0.12-2z9t0e24.mjs +0 -2
- package/dist/chunks/model-1.0.12-avtsadm7.mjs +0 -1
- package/dist/chunks/node-1.0.12-5zcm6b49.mjs +0 -12
- package/dist/chunks/oauth-1.0.12-t7s3r4ha.mjs +0 -1
- package/dist/chunks/openaiShim-1.0.12-y35cxvtm.mjs +0 -14
- package/dist/chunks/output-style-1.0.12-hwh89yg3.mjs +0 -1
- package/dist/chunks/package-ZZWOLTXM-1.0.12-jrq6q5gh.mjs +0 -1
- package/dist/chunks/parseConnectUrl-1.0.12-1ajk88cn.mjs +0 -1
- package/dist/chunks/parser-1.0.12-mnazf4dy.mjs +0 -1
- package/dist/chunks/passes-1.0.12-hvk4mc22.mjs +0 -1
- package/dist/chunks/permissions-1.0.12-8mr0v1ms.mjs +0 -1
- package/dist/chunks/permissions-1.0.12-bhr0jwb3.mjs +0 -3
- package/dist/chunks/plan-1.0.12-5bjaadcz.mjs +0 -1
- package/dist/chunks/plist-1.0.12-rkjbgan4.mjs +0 -1
- package/dist/chunks/plugin-1.0.12-pxgt2afc.mjs +0 -29
- package/dist/chunks/pluginStartupCheck-1.0.12-6gcazre9.mjs +0 -1
- package/dist/chunks/plugins-1.0.12-m5w6j4w1.mjs +0 -9
- package/dist/chunks/preActionHook-1.0.12-mf4w1185.mjs +0 -2
- package/dist/chunks/print-1.0.12-t6h31xzw.mjs +0 -57
- package/dist/chunks/privacy-settings-1.0.12-p99c9mr9.mjs +0 -1
- package/dist/chunks/process-1.0.12-514yxzk8.mjs +0 -1
- package/dist/chunks/processBashCommand-1.0.12-sg75g2bj.mjs +0 -1
- package/dist/chunks/processSlashCommand-1.0.12-yc9eq6vv.mjs +0 -9
- package/dist/chunks/prompt-1.0.12-0s0zhnqk.mjs +0 -1
- package/dist/chunks/prompt-1.0.12-yxsmhgt0.mjs +0 -1
- package/dist/chunks/prompts-1.0.12-0hkf5v5d.mjs +0 -1
- package/dist/chunks/protocolHandler-1.0.12-2s1b0744.mjs +0 -13
- package/dist/chunks/provider-1.0.12-br1hwfjc.mjs +0 -2
- package/dist/chunks/providerProfiles-1.0.12-1cvn3gk3.mjs +0 -1
- package/dist/chunks/providerValidation-1.0.12-e5hn1s9f.mjs +0 -6
- package/dist/chunks/rate-limit-options-1.0.12-2b1eehxk.mjs +0 -1
- package/dist/chunks/registerSubcommands-1.0.12-3w6n3hvp.mjs +0 -34
- package/dist/chunks/registry-1.0.12-416j15rh.mjs +0 -1
- package/dist/chunks/release-notes-1.0.12-cjkaspwe.mjs +0 -5
- package/dist/chunks/reload-plugins-1.0.12-kn31ddrr.mjs +0 -2
- package/dist/chunks/remote-env-1.0.12-wgzde32c.mjs +0 -1
- package/dist/chunks/remoteBridgeCore-1.0.12-0c89q3s7.mjs +0 -1
- package/dist/chunks/remoteSession-1.0.12-cs8aksk2.mjs +0 -1
- package/dist/chunks/rename-1.0.12-2a5n1bm7.mjs +0 -1
- package/dist/chunks/replBridgeHandle-1.0.12-1sgqwxsb.mjs +0 -1
- package/dist/chunks/replLauncher-1.0.12-380zfnph.mjs +0 -1
- package/dist/chunks/resume-1.0.12-xfc2cbkb.mjs +0 -2
- package/dist/chunks/rewind-1.0.12-r3d180dy.mjs +0 -1
- package/dist/chunks/rootOptions-1.0.12-pfhteve9.mjs +0 -1
- package/dist/chunks/runWorkflowHeadless-1.0.12-05semed9.mjs +0 -10
- package/dist/chunks/sandbox-adapter-1.0.12-6ty9e1sb.mjs +0 -1
- package/dist/chunks/sandbox-toggle-1.0.12-3s3mg79e.mjs +0 -1
- package/dist/chunks/session-1.0.12-xx9k18d5.mjs +0 -2
- package/dist/chunks/sessionDiscovery-1.0.12-k0eh44q5.mjs +0 -1
- package/dist/chunks/sessionFileAccessHooks-1.0.12-289cp1d9.mjs +0 -1
- package/dist/chunks/sessionStorage-1.0.12-af0sp63e.mjs +0 -1
- package/dist/chunks/settings-1.0.12-1kn5k4w3.mjs +0 -1
- package/dist/chunks/setup-1.0.12-sjx27cy2.mjs +0 -5
- package/dist/chunks/sinks-1.0.12-s5jc7mhb.mjs +0 -1
- package/dist/chunks/skills-1.0.12-rz6jxa0g.mjs +0 -1
- package/dist/chunks/startupProfiler-1.0.12-p1sagjpt.mjs +0 -1
- package/dist/chunks/startupUpdateCheck-1.0.12-0rynn7sy.mjs +0 -1
- package/dist/chunks/state-1.0.12-scv8d1ss.mjs +0 -1
- package/dist/chunks/stats-1.0.12-h73ksepe.mjs +0 -6
- package/dist/chunks/status-1.0.12-w3s8s4n7.mjs +0 -1
- package/dist/chunks/stickers-1.0.12-tytep2cy.mjs +0 -1
- package/dist/chunks/subprocessEnv-1.0.12-6kt4e9mh.mjs +0 -1
- package/dist/chunks/tasks-1.0.12-ezrpv3cr.mjs +0 -1
- package/dist/chunks/teamHelpers-1.0.12-yg34czgd.mjs +0 -1
- package/dist/chunks/teammateModeSnapshot-1.0.12-0b71sedv.mjs +0 -1
- package/dist/chunks/teleport-1.0.12-zq525vyn.mjs +0 -1
- package/dist/chunks/terminalSetup-1.0.12-z82kcb7p.mjs +0 -1
- package/dist/chunks/theme-1.0.12-1n4zhmvg.mjs +0 -1
- package/dist/chunks/thinkback-1.0.12-vegbsqqh.mjs +0 -1
- package/dist/chunks/thinkback-play-1.0.12-m2re0ysp.mjs +0 -1
- package/dist/chunks/toolPool-1.0.12-7k896ktz.mjs +0 -1
- package/dist/chunks/toolSearch-1.0.12-1t7z9s8n.mjs +0 -1
- package/dist/chunks/tools-1.0.12-m1q30sx2.mjs +0 -1
- package/dist/chunks/trustedDevice-1.0.12-d1ec8tgn.mjs +0 -1
- package/dist/chunks/turndown.cjs-1.0.12-gd906rm3.mjs +0 -69
- package/dist/chunks/types-1.0.12-bnkcne53.mjs +0 -1
- package/dist/chunks/ultrareviewCommand-1.0.12-d94wevag.mjs +0 -4
- package/dist/chunks/update-1.0.12-42sky6mj.mjs +0 -88
- package/dist/chunks/upgrade-1.0.12-dmpc55bj.mjs +0 -1
- package/dist/chunks/upload-1.0.12-nmk9n704.mjs +0 -7
- package/dist/chunks/upstreamproxy-1.0.12-91ksccx0.mjs +0 -14
- package/dist/chunks/url-handler-napi-1.0.12-dmb5xjpf.mjs +0 -1
- package/dist/chunks/usage-1.0.12-tjapt84n.mjs +0 -1
- package/dist/chunks/util-1.0.12-10z43mt9.mjs +0 -1
- package/dist/chunks/utils-1.0.12-w32argrx.mjs +0 -1
- package/dist/chunks/vim-1.0.12-wf8sb0mt.mjs +0 -1
- package/dist/chunks/watchLoop-1.0.12-3dxe0717.mjs +0 -13
- package/dist/chunks/watcher-1.0.12-7p840es5.mjs +0 -1
- package/dist/chunks/wiki-1.0.12-0ym9ejj5.mjs +0 -132
- package/dist/chunks/workflows-1.0.12-c270z4b2.mjs +0 -1
- package/dist/chunks/worktree-1.0.12-zeqk2tcs.mjs +0 -1
- package/dist/chunks/worktreeModeEnabled-1.0.12-kmtt3k2w.mjs +0 -1
- package/dist/chunks/wrapper-1.0.12-wzaxf903.mjs +0 -7
- /package/dist/chunks/{cli-1.0.12-w5g65qpt.mjs → cli-1.0.13-4z6c4gzk.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.12-v6h16sq3.mjs → cli-1.0.13-ap2xrh2s.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.12-ecf1es2x.mjs → cli-1.0.13-d9nvpqpw.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.12-2sf9ww39.mjs → cli-1.0.13-n6bzzv7p.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.12-h16hfwe6.mjs → cli-1.0.13-q9et56bj.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.12-xya69wfx.mjs → cli-1.0.13-tzenmc0b.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.12-8yzsm0t1.mjs → cli-1.0.13-v34fp7gq.mjs} +0 -0
- /package/dist/chunks/{cli-1.0.12-c9kgj61k.mjs → cli-1.0.13-wv7skbb9.mjs} +0 -0
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import{A9 as hs,B9 as k,C9 as ur,D9 as Qc,E9 as Bc,F9 as ra,G9 as Xc,H9 as Yc,I9 as Zc,J9 as Jc,K9 as el,L9 as Hc,M9 as cr,N9 as Cc,O9 as Ts,P9 as gl,p9 as nt,q9 as hl,r9 as bl,s9 as ml,t9 as fn,u9 as $c,v9 as fu,w9 as Al,x9 as ys,y9 as El,z9 as st}from"./cli-1.0.12-bphdbsee.mjs";import{Q9 as ie}from"./cli-1.0.12-b54efth7.mjs";import{Ura as kc,Vra as Le}from"./cli-1.0.12-21c23686.mjs";import{Xra as Vc}from"./cli-1.0.12-hqfw51ap.mjs";import{Zra as Fe,_ra as ve,bsa as De,csa as ee}from"./cli-1.0.12-v4dwzr3x.mjs";import{fsa as E,isa as Bs}from"./cli-1.0.12-ecf1es2x.mjs";var _t=E((S)=>{Object.defineProperty(S,"__esModule",{value:!0});S.resolveHttpHandlerRuntimeConfig=S.getHttpHandlerExtensionConfiguration=S.isValidHostname=S.HttpResponse=S.HttpRequest=S.Fields=S.Field=void 0;var N=ee();Object.defineProperty(S,"Field",{enumerable:!0,get:function(){return N.Field}});Object.defineProperty(S,"Fields",{enumerable:!0,get:function(){return N.Fields}});Object.defineProperty(S,"HttpRequest",{enumerable:!0,get:function(){return N.HttpRequest}});Object.defineProperty(S,"HttpResponse",{enumerable:!0,get:function(){return N.HttpResponse}});Object.defineProperty(S,"isValidHostname",{enumerable:!0,get:function(){return N.isValidHostname}});Object.defineProperty(S,"getHttpHandlerExtensionConfiguration",{enumerable:!0,get:function(){return N.getHttpHandlerExtensionConfiguration}});Object.defineProperty(S,"resolveHttpHandlerRuntimeConfig",{enumerable:!0,get:function(){return N.resolveHttpHandlerRuntimeConfig}})});var Ot=E((c)=>{Object.defineProperty(c,"__esModule",{value:!0});c.createAggregatedClient=c.convertMap=c._json=c.ServiceException=c.SENSITIVE_STRING=c.NoOpLogger=c.Command=c.Client=c.strictParseShort=c.strictParseLong=c.strictParseInt32=c.strictParseInt=c.strictParseFloat32=c.strictParseFloat=c.strictParseDouble=c.strictParseByte=c.splitHeader=c.splitEvery=c.quoteHeader=c.parseRfc7231DateTime=c.parseRfc3339DateTimeWithOffset=c.parseRfc3339DateTime=c.parseEpochTimestamp=c.parseBoolean=c.nv=c.logger=c.limitedParseFloat32=c.limitedParseFloat=c.limitedParseDouble=c.handleFloat=c.generateIdempotencyToken=c.expectUnion=c.expectString=c.expectShort=c.expectObject=c.expectNumber=c.expectNonNull=c.expectLong=c.expectInt32=c.expectInt=c.expectFloat32=c.expectByte=c.expectBoolean=c.dateToUtcString=c.copyDocumentWithTransform=c._parseRfc7231DateTime=c._parseRfc3339DateTimeWithOffset=c._parseEpochTimestamp=c.NumericValue=c.LazyJsonString=void 0;c.resolvedPath=c.extendedEncodeURIComponent=c.collectBody=c.withBaseException=c.throwDefaultError=c.take=c.serializeFloat=c.serializeDateTime=c.resolveDefaultRuntimeConfig=c.map=c.loadConfigsForDefaultMode=c.isSerializableHeaderValue=c.getValueFromTextNode=c.getDefaultExtensionConfiguration=c.getDefaultClientConfiguration=c.getArrayIfSingleItem=c.emitWarningIfUnsupportedVersion=c.decorateServiceException=void 0;var p=De();Object.defineProperty(c,"LazyJsonString",{enumerable:!0,get:function(){return p.LazyJsonString}});Object.defineProperty(c,"NumericValue",{enumerable:!0,get:function(){return p.NumericValue}});Object.defineProperty(c,"_parseEpochTimestamp",{enumerable:!0,get:function(){return p._parseEpochTimestamp}});Object.defineProperty(c,"_parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p._parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"_parseRfc7231DateTime",{enumerable:!0,get:function(){return p._parseRfc7231DateTime}});Object.defineProperty(c,"copyDocumentWithTransform",{enumerable:!0,get:function(){return p.copyDocumentWithTransform}});Object.defineProperty(c,"dateToUtcString",{enumerable:!0,get:function(){return p.dateToUtcString}});Object.defineProperty(c,"expectBoolean",{enumerable:!0,get:function(){return p.expectBoolean}});Object.defineProperty(c,"expectByte",{enumerable:!0,get:function(){return p.expectByte}});Object.defineProperty(c,"expectFloat32",{enumerable:!0,get:function(){return p.expectFloat32}});Object.defineProperty(c,"expectInt",{enumerable:!0,get:function(){return p.expectInt}});Object.defineProperty(c,"expectInt32",{enumerable:!0,get:function(){return p.expectInt32}});Object.defineProperty(c,"expectLong",{enumerable:!0,get:function(){return p.expectLong}});Object.defineProperty(c,"expectNonNull",{enumerable:!0,get:function(){return p.expectNonNull}});Object.defineProperty(c,"expectNumber",{enumerable:!0,get:function(){return p.expectNumber}});Object.defineProperty(c,"expectObject",{enumerable:!0,get:function(){return p.expectObject}});Object.defineProperty(c,"expectShort",{enumerable:!0,get:function(){return p.expectShort}});Object.defineProperty(c,"expectString",{enumerable:!0,get:function(){return p.expectString}});Object.defineProperty(c,"expectUnion",{enumerable:!0,get:function(){return p.expectUnion}});Object.defineProperty(c,"generateIdempotencyToken",{enumerable:!0,get:function(){return p.generateIdempotencyToken}});Object.defineProperty(c,"handleFloat",{enumerable:!0,get:function(){return p.handleFloat}});Object.defineProperty(c,"limitedParseDouble",{enumerable:!0,get:function(){return p.limitedParseDouble}});Object.defineProperty(c,"limitedParseFloat",{enumerable:!0,get:function(){return p.limitedParseFloat}});Object.defineProperty(c,"limitedParseFloat32",{enumerable:!0,get:function(){return p.limitedParseFloat32}});Object.defineProperty(c,"logger",{enumerable:!0,get:function(){return p.logger}});Object.defineProperty(c,"nv",{enumerable:!0,get:function(){return p.nv}});Object.defineProperty(c,"parseBoolean",{enumerable:!0,get:function(){return p.parseBoolean}});Object.defineProperty(c,"parseEpochTimestamp",{enumerable:!0,get:function(){return p.parseEpochTimestamp}});Object.defineProperty(c,"parseRfc3339DateTime",{enumerable:!0,get:function(){return p.parseRfc3339DateTime}});Object.defineProperty(c,"parseRfc3339DateTimeWithOffset",{enumerable:!0,get:function(){return p.parseRfc3339DateTimeWithOffset}});Object.defineProperty(c,"parseRfc7231DateTime",{enumerable:!0,get:function(){return p.parseRfc7231DateTime}});Object.defineProperty(c,"quoteHeader",{enumerable:!0,get:function(){return p.quoteHeader}});Object.defineProperty(c,"splitEvery",{enumerable:!0,get:function(){return p.splitEvery}});Object.defineProperty(c,"splitHeader",{enumerable:!0,get:function(){return p.splitHeader}});Object.defineProperty(c,"strictParseByte",{enumerable:!0,get:function(){return p.strictParseByte}});Object.defineProperty(c,"strictParseDouble",{enumerable:!0,get:function(){return p.strictParseDouble}});Object.defineProperty(c,"strictParseFloat",{enumerable:!0,get:function(){return p.strictParseFloat}});Object.defineProperty(c,"strictParseFloat32",{enumerable:!0,get:function(){return p.strictParseFloat32}});Object.defineProperty(c,"strictParseInt",{enumerable:!0,get:function(){return p.strictParseInt}});Object.defineProperty(c,"strictParseInt32",{enumerable:!0,get:function(){return p.strictParseInt32}});Object.defineProperty(c,"strictParseLong",{enumerable:!0,get:function(){return p.strictParseLong}});Object.defineProperty(c,"strictParseShort",{enumerable:!0,get:function(){return p.strictParseShort}});var A=ve();Object.defineProperty(c,"Client",{enumerable:!0,get:function(){return A.Client}});Object.defineProperty(c,"Command",{enumerable:!0,get:function(){return A.Command}});Object.defineProperty(c,"NoOpLogger",{enumerable:!0,get:function(){return A.NoOpLogger}});Object.defineProperty(c,"SENSITIVE_STRING",{enumerable:!0,get:function(){return A.SENSITIVE_STRING}});Object.defineProperty(c,"ServiceException",{enumerable:!0,get:function(){return A.ServiceException}});Object.defineProperty(c,"_json",{enumerable:!0,get:function(){return A._json}});Object.defineProperty(c,"convertMap",{enumerable:!0,get:function(){return A.convertMap}});Object.defineProperty(c,"createAggregatedClient",{enumerable:!0,get:function(){return A.createAggregatedClient}});Object.defineProperty(c,"decorateServiceException",{enumerable:!0,get:function(){return A.decorateServiceException}});Object.defineProperty(c,"emitWarningIfUnsupportedVersion",{enumerable:!0,get:function(){return A.emitWarningIfUnsupportedVersion}});Object.defineProperty(c,"getArrayIfSingleItem",{enumerable:!0,get:function(){return A.getArrayIfSingleItem}});Object.defineProperty(c,"getDefaultClientConfiguration",{enumerable:!0,get:function(){return A.getDefaultClientConfiguration}});Object.defineProperty(c,"getDefaultExtensionConfiguration",{enumerable:!0,get:function(){return A.getDefaultExtensionConfiguration}});Object.defineProperty(c,"getValueFromTextNode",{enumerable:!0,get:function(){return A.getValueFromTextNode}});Object.defineProperty(c,"isSerializableHeaderValue",{enumerable:!0,get:function(){return A.isSerializableHeaderValue}});Object.defineProperty(c,"loadConfigsForDefaultMode",{enumerable:!0,get:function(){return A.loadConfigsForDefaultMode}});Object.defineProperty(c,"map",{enumerable:!0,get:function(){return A.map}});Object.defineProperty(c,"resolveDefaultRuntimeConfig",{enumerable:!0,get:function(){return A.resolveDefaultRuntimeConfig}});Object.defineProperty(c,"serializeDateTime",{enumerable:!0,get:function(){return A.serializeDateTime}});Object.defineProperty(c,"serializeFloat",{enumerable:!0,get:function(){return A.serializeFloat}});Object.defineProperty(c,"take",{enumerable:!0,get:function(){return A.take}});Object.defineProperty(c,"throwDefaultError",{enumerable:!0,get:function(){return A.throwDefaultError}});Object.defineProperty(c,"withBaseException",{enumerable:!0,get:function(){return A.withBaseException}});var Ie=ee();Object.defineProperty(c,"collectBody",{enumerable:!0,get:function(){return Ie.collectBody}});Object.defineProperty(c,"extendedEncodeURIComponent",{enumerable:!0,get:function(){return Ie.extendedEncodeURIComponent}});Object.defineProperty(c,"resolvedPath",{enumerable:!0,get:function(){return Ie.resolvedPath}})});var xt=E((Nt)=>{Object.defineProperty(Nt,"__esModule",{value:!0});Nt.toStream=Ys;var Xs=Bs("node:stream");function Ys(e){return Xs.Readable.from(Buffer.from(e))}});var jt=E((ro)=>{var Js=(e)=>typeof e==="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6,eo=(e)=>{let t=e.split(":");if(t.length<6||t[0]!=="arn")throw Error("Malformed ARN");let[,r,n,s,o,...a]=t;return{partition:r,service:n,region:s,accountId:o,resource:a.join(":")}},to=(e)=>{let{partition:t="aws",service:r,region:n,accountId:s,resource:o}=e;if([r,n,s,o].some((a)=>typeof a!=="string"))throw Error("Input ARN object is invalid");return`arn:${t}:${r}:${n}:${s}:${o}`};ro.build=to;ro.parse=eo;ro.validate=Js});var or=E((ho)=>{var v=De(),$t=ve(),W=ee();class Mt{format(e){let t=[];for(let s of Object.keys(e)){let o=v.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=v.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(_e.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!ao.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(v.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Ht;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Ht||(Ht={}));var ao=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class _e{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)Ct(t);return new _e(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)Ct(e);return parseInt(v.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function Ct(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Ft="X-Amz-Algorithm",Lt="X-Amz-Credential",Oe="X-Amz-Date",Gt="X-Amz-SignedHeaders",Wt="X-Amz-Expires",Ne="X-Amz-Signature",xe="X-Amz-Security-Token",io="X-Amz-Region-Set",je="authorization",$e=Oe.toLowerCase(),Kt="date",zt=[je,$e,Kt],qt=Ne.toLowerCase(),oe="x-amz-content-sha256",Vt=xe.toLowerCase(),uo="host",kt={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},Qt=/^proxy-/,Bt=/^sec-/,co=[/^proxy-/i,/^sec-/i],te="AWS4-HMAC-SHA256",lo="AWS4-ECDSA-P256-SHA256",Xt="AWS4-HMAC-SHA256-PAYLOAD",Yt="UNSIGNED-PAYLOAD",Zt=50,He="aws4_request",Jt=604800,er=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===qt)continue;let s=W.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${W.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${W.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},po=(e)=>fo(e).toISOString().replace(/\.\d{3}Z$/,"Z"),fo=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Ce{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=$t.normalizeProvider(r),this.credentialProvider=$t.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
|
|
2
|
-
${this.getCanonicalPath(e)}
|
|
3
|
-
${er(e)}
|
|
4
|
-
${n.map((s)=>`${s}:${t[s]}`).join(`
|
|
5
|
-
`)}
|
|
6
|
-
|
|
7
|
-
${n.join(";")}
|
|
8
|
-
${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(v.toUint8Array(r));let o=await s.digest();return`${n}
|
|
9
|
-
${e}
|
|
10
|
-
${t}
|
|
11
|
-
${v.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return W.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=po(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var G={},re=[],ne=(e,t,r)=>`${e}/${t}/${r}/${He}`,tr=async(e,t,r,n,s)=>{let o=await Ut(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${v.toHex(o)}:${t.sessionToken}`;if(a in G)return G[a];re.push(a);while(re.length>Zt)delete G[re.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,He])u=await Ut(e,u,i);return G[a]=u},go=()=>{re.length=0,Object.keys(G).forEach((e)=>{delete G[e]})},Ut=(e,t,r)=>{let n=new e(t);return n.update(v.toUint8Array(r)),n.digest()},Te=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in kt||t?.has(o)||Qt.test(o)||Bt.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},se=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===oe)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||v.isArrayBuffer(t)){let n=new r;return n.update(v.toUint8Array(t)),v.toHex(await n.digest())}return Yt},rr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},nr=(e,t={})=>{let{headers:r,query:n={}}=W.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},Se=(e)=>{e=W.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(zt.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class sr extends Ce{headerFormatter=new Mt;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Jt)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=ne(h,b,d??this.service),g=nr(Se(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[xe]=l.sessionToken;g.query[Ft]=te,g.query[Lt]=`${l.accessKeyId}/${R}`,g.query[Oe]=y,g.query[Wt]=n.toString(10);let T=Te(g,s,a);return g.query[Gt]=this.getCanonicalHeaderList(T),g.query[Ne]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await se(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=ne(i,u,o??this.service),b=await se({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=v.toHex(await y.digest()),R=[Xt,d,l,n,h,b].join(`
|
|
12
|
-
`);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(v.toUint8Array(e)),v.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=Se(e),{longDate:d,shortDate:l}=this.formatDate(t),b=ne(l,u,o??this.service);if(i.headers[$e]=d,a.sessionToken)i.headers[Vt]=a.sessionToken;let y=await se(i,this.sha256);if(!rr(oe,i.headers)&&this.applyChecksum)i.headers[oe]=y;let h=Te(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[je]=`${te} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,te),o=new this.sha256(await r);return o.update(v.toUint8Array(s)),v.toHex(await o.digest())}getSigningKey(e,t,r,n){return tr(this.sha256,e,r,t,n||this.service)}}var yo={SignatureV4a:null};ho.ALGORITHM_IDENTIFIER=te;ho.ALGORITHM_IDENTIFIER_V4A=lo;ho.ALGORITHM_QUERY_PARAM=Ft;ho.ALWAYS_UNSIGNABLE_HEADERS=kt;ho.AMZ_DATE_HEADER=$e;ho.AMZ_DATE_QUERY_PARAM=Oe;ho.AUTH_HEADER=je;ho.CREDENTIAL_QUERY_PARAM=Lt;ho.DATE_HEADER=Kt;ho.EVENT_ALGORITHM_IDENTIFIER=Xt;ho.EXPIRES_QUERY_PARAM=Wt;ho.GENERATED_HEADERS=zt;ho.HOST_HEADER=uo;ho.KEY_TYPE_IDENTIFIER=He;ho.MAX_CACHE_SIZE=Zt;ho.MAX_PRESIGNED_TTL=Jt;ho.PROXY_HEADER_PATTERN=Qt;ho.REGION_SET_PARAM=io;ho.SEC_HEADER_PATTERN=Bt;ho.SHA256_HEADER=oe;ho.SIGNATURE_HEADER=qt;ho.SIGNATURE_QUERY_PARAM=Ne;ho.SIGNED_HEADERS_QUERY_PARAM=Gt;ho.SignatureV4=sr;ho.SignatureV4Base=Ce;ho.TOKEN_HEADER=Vt;ho.TOKEN_QUERY_PARAM=xe;ho.UNSIGNABLE_PATTERNS=co;ho.UNSIGNED_PAYLOAD=Yt;ho.clearCredentialCache=go;ho.createScope=ne;ho.getCanonicalHeaders=Te;ho.getCanonicalQuery=er;ho.getPayloadHash=se;ho.getSigningKey=tr;ho.hasHeader=rr;ho.moveHeadersToQuery=nr;ho.prepareRequest=Se;ho.signatureV4aContainer=yo});var _r=E(($a)=>{var X=_t(),lr=Ot(),na=xt(),sa=jt(),oa=cr(),aa=Fe(),ia=or(),ae=ra(),ua=Le(),dr=ie(),ca=ur(),la="content-length",da="x-amz-decoded-content-length";function pr(){return(e,t)=>async(r)=>{let{request:n}=r;if(X.HttpRequest.isInstance(n)){if(!(la in n.headers)&&!(da in n.headers))if(typeof t?.logger?.warn==="function"&&!(t.logger instanceof lr.NoOpLogger))t.logger.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.");else console.warn("Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.")}return e({...r})}}var fr={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},pa=(e)=>({applyToStack:(t)=>{t.add(pr(),fr)}}),gr=(e)=>{return(t,r)=>async(n)=>{let s=await e.region(),o=e.region,a=()=>{};if(r.__s3RegionRedirect)Object.defineProperty(e,"region",{writable:!1,value:async()=>{return r.__s3RegionRedirect}}),a=()=>Object.defineProperty(e,"region",{writable:!0,value:o});try{let u=await t(n);if(r.__s3RegionRedirect){a();let i=await e.region();if(s!==i)throw Error("Region was not restored following S3 region redirect.")}return u}catch(u){throw a(),u}}},yr={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function hr(e){return(t,r)=>async(n)=>{try{return await t(n)}catch(s){if(e.followRegionRedirects){let o=s?.$metadata?.httpStatusCode,a=r.commandName==="HeadBucketCommand",u=s?.$response?.headers?.["x-amz-bucket-region"];if(u){if(o===301||o===400&&(s?.name==="IllegalLocationConstraintException"||a)){try{let i=u;r.logger?.debug(`Redirecting from ${await e.region()} to ${i}`),r.__s3RegionRedirect=i}catch(i){throw Error("Region redirect failed: "+i)}return t(n)}}}throw s}}}var br={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},fa=(e)=>({applyToStack:(t)=>{t.add(hr(e),br),t.addRelativeTo(gr(e),yr)}}),mr=(e)=>{return(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(X.HttpResponse.isInstance(o)){if(o.headers.expires){o.headers.expiresstring=o.headers.expires;try{lr.parseRfc7231DateTime(o.headers.expires)}catch(a){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${o.headers.expires}): ${a}`),delete o.headers.expires}}}return s}},Ar={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},ga=(e)=>({applyToStack:(t)=>{t.addRelativeTo(mr(),Ar)}});class ue{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=30000;constructor(e={}){this.data=e}get(e){let t=this.data[e];if(!t)return;return t}set(e,t){return this.data[e]=t,t}delete(e){delete this.data[e]}async purgeExpired(){let e=Date.now();if(this.lastPurgeTime+ue.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>e)return;for(let t in this.data){let r=this.data[t];if(!r.isRefreshing){let n=await r.identity;if(n.expiration){if(n.expiration.getTime()<e)delete this.data[t]}}}}}class B{_identity;isRefreshing;accessed;constructor(e,t=!1,r=Date.now()){this._identity=e,this.isRefreshing=t,this.accessed=r}get identity(){return this.accessed=Date.now(),this._identity}}class ce{createSessionFn;cache;static REFRESH_WINDOW_MS=60000;constructor(e,t=new ue){this.createSessionFn=e,this.cache=t}async getS3ExpressIdentity(e,t){let r=t.Bucket,{cache:n}=this,s=n.get(r);if(s)return s.identity.then((o)=>{if((o.expiration?.getTime()??0)<Date.now())return n.set(r,new B(this.getIdentity(r))).identity;if((o.expiration?.getTime()??0)<Date.now()+ce.REFRESH_WINDOW_MS&&!s.isRefreshing)s.isRefreshing=!0,this.getIdentity(r).then((i)=>{n.set(r,new B(Promise.resolve(i)))});return o});return n.set(r,new B(this.getIdentity(r))).identity}async getIdentity(e){await this.cache.purgeExpired().catch((n)=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
|
|
13
|
-
`+n)});let t=await this.createSessionFn(e);if(!t.Credentials?.AccessKeyId||!t.Credentials?.SecretAccessKey)throw Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:t.Credentials.AccessKeyId,secretAccessKey:t.Credentials.SecretAccessKey,sessionToken:t.Credentials.SessionToken,expiration:t.Credentials.Expiration?new Date(t.Credentials.Expiration):void 0}}}var ya="Directory",ha="S3Express",ba="sigv4-s3express",Ue="X-Amz-S3session-Token",Me=Ue.toLowerCase(),ma="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",Aa="s3_disable_express_session_auth",Ea={environmentVariableSelector:(e)=>ae.booleanSelector(e,ma,ae.SelectorType.ENV),configFileSelector:(e)=>ae.booleanSelector(e,Aa,ae.SelectorType.CONFIG),default:!1};class Er extends ia.SignatureV4{async signWithCredentials(e,t,r){let n=ar(t);e.headers[Me]=t.sessionToken;let s=this;return ir(s,n),s.signRequest(e,r??{})}async presignWithCredentials(e,t,r){let n=ar(t);return delete e.headers[Me],e.headers[Ue]=t.sessionToken,e.query=e.query??{},e.query[Ue]=t.sessionToken,ir(this,n),this.presign(e,r)}}function ar(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function ir(e,t){let r=setTimeout(()=>{throw Error("SignatureV4S3Express credential override was created but not called.")},10),n=e.credentialProvider,s=()=>{return clearTimeout(r),e.credentialProvider=n,Promise.resolve(t)};e.credentialProvider=s}var Rr=(e)=>{return(t,r)=>async(n)=>{if(r.endpointV2){let s=r.endpointV2,o=s.properties?.authSchemes?.[0]?.name===ba;if(s.properties?.backend===ha||s.properties?.bucketType===ya)ua.setFeature(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0;if(o){let u=n.input.Bucket;if(u){let i=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:u});if(r.s3ExpressIdentity=i,X.HttpRequest.isInstance(n.request)&&i.sessionToken)n.request.headers[Me]=i.sessionToken}}}return t(n)}},wr={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},Ra=(e)=>({applyToStack:(t)=>{t.add(Rr(e),wr)}}),wa=async(e,t,r,n)=>{let s=await n.signWithCredentials(r,e,{});if(s.headers["X-Amz-Security-Token"]||s.headers["x-amz-security-token"])throw Error("X-Amz-Security-Token must not be set for s3-express requests.");return s},Pa=(e)=>(t)=>{throw t},va=(e,t)=>{},Da=dr.httpSigningMiddlewareOptions,Pr=(e)=>(t,r)=>async(n)=>{if(!X.HttpRequest.isInstance(n.request))return t(n);let o=ca.getSmithyContext(r).selectedHttpAuthScheme;if(!o)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:u,signer:i}=o,d;if(r.s3ExpressIdentity)d=await wa(r.s3ExpressIdentity,a,n.request,await e.signer());else d=await i.sign(n.request,u,a);let l=await t({...n,request:d}).catch((i.errorHandler||Pa)(a));return(i.successHandler||va)(l.response,a),l},Ia=(e)=>({applyToStack:(t)=>{t.addRelativeTo(Pr(e),dr.httpSigningMiddlewareOptions)}}),Ta=(e,{session:t})=>{let[r,n]=t,{forcePathStyle:s,useAccelerateEndpoint:o,disableMultiregionAccessPoints:a,followRegionRedirects:u,s3ExpressIdentityProvider:i,bucketEndpoint:d,expectContinueHeader:l}=e;return Object.assign(e,{forcePathStyle:s??!1,useAccelerateEndpoint:o??!1,disableMultiregionAccessPoints:a??!1,followRegionRedirects:u??!1,s3ExpressIdentityProvider:i??new ce(async(b)=>r().send(new n({Bucket:b}))),bucketEndpoint:d??!1,expectContinueHeader:l??2097152})},Sa={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},vr=(e)=>(t,r)=>async(n)=>{let s=await t(n),{response:o}=s;if(!X.HttpResponse.isInstance(o))return s;let{statusCode:a,body:u}=o;if(a<200||a>=300)return s;let i=await _a(u,e);if(o.body=na.toStream(i),i.length===0&&Sa[r.commandName]){let l=Error("S3 aborted request");throw l.$metadata={httpStatusCode:503},l.name="InternalError",l}let d=e.utf8Encoder(i.subarray(i.length-16));if(d&&d.endsWith("</Error>"))o.statusCode=503;return s},_a=(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Promise.resolve(e);return t.streamCollector(e)||Promise.resolve(new Uint8Array)},Dr={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Oa=(e)=>({applyToStack:(t)=>{t.addRelativeTo(vr(e),Dr)}});function Na(e){return(t,r)=>async(n)=>{if(e.bucketEndpoint){let s=r.endpointV2;if(s){let o=n.input.Bucket;if(typeof o==="string")try{let a=new URL(o);r.endpointV2={...s,url:a}}catch(a){let u=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${o} could not be parsed as URL.`;if(r.logger?.constructor?.name==="NoOpLogger")console.warn(u);else r.logger?.warn?.(u);throw a}}}return t(n)}}var xa={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function Ir({bucketEndpoint:e}){return(t)=>async(r)=>{let{input:{Bucket:n}}=r;if(!e&&typeof n==="string"&&!sa.validate(n)&&n.indexOf("/")>=0){let s=Error(`Bucket name shouldn't contain '/', received '${n}'`);throw s.name="InvalidBucketName",s}return t({...r})}}var Tr={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},ja=(e)=>({applyToStack:(t)=>{t.add(Ir(e),Tr),t.addRelativeTo(Na(e),xa)}});class Sr extends oa.AwsRestXmlProtocol{async serializeRequest(e,t,r){let n=await super.serializeRequest(e,t,r),s=aa.NormalizedSchema.of(e.input),o=s.getSchema(),a=0,u=o[6]??0;if(t&&typeof t==="object")for(let[i,d]of s.structIterator()){if(++a>u)break;if(i==="Bucket"){if(!t.Bucket&&d.getMergedTraits().httpLabel)throw Error("No value provided for input HTTP label: Bucket.");break}}return n}}$a.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS=Ea;$a.S3ExpressIdentityCache=ue;$a.S3ExpressIdentityCacheEntry=B;$a.S3ExpressIdentityProviderImpl=ce;$a.S3RestXmlProtocol=Sr;$a.SignatureV4S3Express=Er;$a.checkContentLengthHeader=pr;$a.checkContentLengthHeaderMiddlewareOptions=fr;$a.getCheckContentLengthHeaderPlugin=pa;$a.getRegionRedirectMiddlewarePlugin=fa;$a.getS3ExpiresMiddlewarePlugin=ga;$a.getS3ExpressHttpSigningPlugin=Ia;$a.getS3ExpressPlugin=Ra;$a.getThrow200ExceptionsPlugin=Oa;$a.getValidateBucketNamePlugin=ja;$a.regionRedirectEndpointMiddleware=gr;$a.regionRedirectEndpointMiddlewareOptions=yr;$a.regionRedirectMiddleware=hr;$a.regionRedirectMiddlewareOptions=br;$a.resolveS3Config=Ta;$a.s3ExpiresMiddleware=mr;$a.s3ExpiresMiddlewareOptions=Ar;$a.s3ExpressHttpSigningMiddleware=Pr;$a.s3ExpressHttpSigningMiddlewareOptions=Da;$a.s3ExpressMiddleware=Rr;$a.s3ExpressMiddlewareOptions=wr;$a.throw200ExceptionsMiddleware=vr;$a.throw200ExceptionsMiddlewareOptions=Dr;$a.validateBucketNameMiddleware=Ir;$a.validateBucketNameMiddlewareOptions=Tr});var tn=E((Ei)=>{var D=De(),Or=ve(),z=ee();class $r{format(e){let t=[];for(let s of Object.keys(e)){let o=D.fromUtf8(s);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}let r=new Uint8Array(t.reduce((s,o)=>s+o.byteLength,0)),n=0;for(let s of t)r.set(s,n),n+=s.byteLength;return r}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":let t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":let r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,e.value,!1),new Uint8Array(r.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(e.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);let o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":let a=D.fromUtf8(e.value),u=new DataView(new ArrayBuffer(3+a.byteLength));u.setUint8(0,7),u.setUint16(1,a.byteLength,!1);let i=new Uint8Array(u.buffer);return i.set(a,3),i;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(Ke.fromNumber(e.value.valueOf()).bytes,1),d;case"uuid":if(!di.test(e.value))throw Error(`Invalid UUID received: ${e.value}`);let l=new Uint8Array(17);return l[0]=9,l.set(D.fromHex(e.value.replace(/\-/g,"")),1),l}}}var Nr;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Nr||(Nr={}));var di=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Ke{bytes;constructor(e){if(this.bytes=e,e.byteLength!==8)throw Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776000||e<-9223372036854776000)throw Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);let t=new Uint8Array(8);for(let r=7,n=Math.abs(Math.round(e));r>-1&&n>0;r--,n/=256)t[r]=n;if(e<0)xr(t);return new Ke(t)}valueOf(){let e=this.bytes.slice(0),t=e[0]&128;if(t)xr(e);return parseInt(D.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function xr(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1;t--)if(e[t]++,e[t]!==0)break}var Hr="X-Amz-Algorithm",Cr="X-Amz-Credential",ze="X-Amz-Date",Ur="X-Amz-SignedHeaders",Mr="X-Amz-Expires",qe="X-Amz-Signature",Ve="X-Amz-Security-Token",pi="X-Amz-Region-Set",ke="authorization",Qe=ze.toLowerCase(),Fr="date",Lr=[ke,Qe,Fr],Gr=qe.toLowerCase(),ge="x-amz-content-sha256",Wr=Ve.toLowerCase(),fi="host",Kr={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},zr=/^proxy-/,qr=/^sec-/,gi=[/^proxy-/i,/^sec-/i],le="AWS4-HMAC-SHA256",yi="AWS4-ECDSA-P256-SHA256",Vr="AWS4-HMAC-SHA256-PAYLOAD",kr="UNSIGNED-PAYLOAD",Qr=50,Be="aws4_request",Br=604800,Xr=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e)){if(n.toLowerCase()===Gr)continue;let s=z.escapeUri(n);t.push(s);let o=e[n];if(typeof o==="string")r[s]=`${s}=${z.escapeUri(o)}`;else if(Array.isArray(o))r[s]=o.slice(0).reduce((a,u)=>a.concat([`${s}=${z.escapeUri(u)}`]),[]).sort().join("&")}return t.sort().map((n)=>r[n]).filter((n)=>n).join("&")},hi=(e)=>bi(e).toISOString().replace(/\.\d{3}Z$/,"Z"),bi=(e)=>{if(typeof e==="number")return new Date(e*1000);if(typeof e==="string"){if(Number(e))return new Date(Number(e)*1000);return new Date(e)}return e};class Xe{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){this.service=n,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e==="boolean"?e:!0,this.regionProvider=Or.normalizeProvider(r),this.credentialProvider=Or.normalizeProvider(t)}createCanonicalRequest(e,t,r){let n=Object.keys(t).sort();return`${e.method}
|
|
14
|
-
${this.getCanonicalPath(e)}
|
|
15
|
-
${Xr(e)}
|
|
16
|
-
${n.map((s)=>`${s}:${t[s]}`).join(`
|
|
17
|
-
`)}
|
|
18
|
-
|
|
19
|
-
${n.join(";")}
|
|
20
|
-
${r}`}async createStringToSign(e,t,r,n){let s=new this.sha256;s.update(D.toUint8Array(r));let o=await s.digest();return`${n}
|
|
21
|
-
${e}
|
|
22
|
-
${t}
|
|
23
|
-
${D.toHex(o)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){let t=[];for(let s of e.split("/")){if(s?.length===0)continue;if(s===".")continue;if(s==="..")t.pop();else t.push(s)}let r=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;return z.escapeUri(r).replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string")throw Error("Resolved credential object is not valid")}formatDate(e){let t=hi(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}var K={},de=[],pe=(e,t,r)=>`${e}/${t}/${r}/${Be}`,Yr=async(e,t,r,n,s)=>{let o=await jr(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${n}:${s}:${D.toHex(o)}:${t.sessionToken}`;if(a in K)return K[a];de.push(a);while(de.length>Qr)delete K[de.shift()];let u=`AWS4${t.secretAccessKey}`;for(let i of[r,n,s,Be])u=await jr(e,u,i);return K[a]=u},mi=()=>{de.length=0,Object.keys(K).forEach((e)=>{delete K[e]})},jr=(e,t,r)=>{let n=new e(t);return n.update(D.toUint8Array(r)),n.digest()},Ge=({headers:e},t,r)=>{let n={};for(let s of Object.keys(e).sort()){if(e[s]==null)continue;let o=s.toLowerCase();if(o in Kr||t?.has(o)||zr.test(o)||qr.test(o)){if(!r||r&&!r.has(o))continue}n[o]=e[s].trim().replace(/\s+/g," ")}return n},fe=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===ge)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";else if(typeof t==="string"||ArrayBuffer.isView(t)||D.isArrayBuffer(t)){let n=new r;return n.update(D.toUint8Array(t)),D.toHex(await n.digest())}return kr},Zr=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},Jr=(e,t={})=>{let{headers:r,query:n={}}=z.HttpRequest.clone(e);for(let s of Object.keys(r)){let o=s.toLowerCase();if(o.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(o)||t.hoistableHeaders?.has(o))n[s]=r[s],delete r[s]}return{...e,headers:r,query:n}},We=(e)=>{e=z.HttpRequest.clone(e);for(let t of Object.keys(e.headers))if(Lr.indexOf(t.toLowerCase())>-1)delete e.headers[t];return e};class en extends Xe{headerFormatter=new $r;constructor({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o=!0}){super({applyChecksum:e,credentials:t,region:r,service:n,sha256:s,uriEscapePath:o})}async presign(e,t={}){let{signingDate:r=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,hoistableHeaders:u,signingRegion:i,signingService:d}=t,l=await this.credentialProvider();this.validateResolvedCredentials(l);let b=i??await this.regionProvider(),{longDate:y,shortDate:h}=this.formatDate(r);if(n>Br)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let R=pe(h,b,d??this.service),g=Jr(We(e),{unhoistableHeaders:o,hoistableHeaders:u});if(l.sessionToken)g.query[Ve]=l.sessionToken;g.query[Hr]=le,g.query[Cr]=`${l.accessKeyId}/${R}`,g.query[ze]=y,g.query[Mr]=n.toString(10);let T=Ge(g,s,a);return g.query[Ur]=this.getCanonicalHeaderList(T),g.query[qe]=await this.getSignature(y,R,this.getSigningKey(l,b,h,d),this.createCanonicalRequest(g,T,await fe(e,this.sha256))),g}async sign(e,t){if(typeof e==="string")return this.signString(e,t);else if(e.headers&&e.payload)return this.signEvent(e,t);else if(e.message)return this.signMessage(e,t);else return this.signRequest(e,t)}async signEvent({headers:e,payload:t},{signingDate:r=new Date,priorSignature:n,signingRegion:s,signingService:o,eventStreamCredentials:a}){let u=s??await this.regionProvider(),{shortDate:i,longDate:d}=this.formatDate(r),l=pe(i,u,o??this.service),b=await fe({headers:{},body:t},this.sha256),y=new this.sha256;y.update(e);let h=D.toHex(await y.digest()),R=[Vr,d,l,n,h,b].join(`
|
|
24
|
-
`);return this.signString(R,{signingDate:r,signingRegion:u,signingService:o,eventStreamCredentials:a})}async signMessage(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:r,signingService:n,priorSignature:e.priorSignature,eventStreamCredentials:s}).then((a)=>{return{message:e.message,signature:a}})}async signString(e,{signingDate:t=new Date,signingRegion:r,signingService:n,eventStreamCredentials:s}={}){let o=s??await this.credentialProvider();this.validateResolvedCredentials(o);let a=r??await this.regionProvider(),{shortDate:u}=this.formatDate(t),i=new this.sha256(await this.getSigningKey(o,a,u,n));return i.update(D.toUint8Array(e)),D.toHex(await i.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:r,unsignableHeaders:n,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider();this.validateResolvedCredentials(a);let u=s??await this.regionProvider(),i=We(e),{longDate:d,shortDate:l}=this.formatDate(t),b=pe(l,u,o??this.service);if(i.headers[Qe]=d,a.sessionToken)i.headers[Wr]=a.sessionToken;let y=await fe(i,this.sha256);if(!Zr(ge,i.headers)&&this.applyChecksum)i.headers[ge]=y;let h=Ge(i,n,r),R=await this.getSignature(d,b,this.getSigningKey(a,u,l,o),this.createCanonicalRequest(i,h,y));return i.headers[ke]=`${le} Credential=${a.accessKeyId}/${b}, SignedHeaders=${this.getCanonicalHeaderList(h)}, Signature=${R}`,i}async getSignature(e,t,r,n){let s=await this.createStringToSign(e,t,n,le),o=new this.sha256(await r);return o.update(D.toUint8Array(s)),D.toHex(await o.digest())}getSigningKey(e,t,r,n){return Yr(this.sha256,e,r,t,n||this.service)}}var Ai={SignatureV4a:null};Ei.ALGORITHM_IDENTIFIER=le;Ei.ALGORITHM_IDENTIFIER_V4A=yi;Ei.ALGORITHM_QUERY_PARAM=Hr;Ei.ALWAYS_UNSIGNABLE_HEADERS=Kr;Ei.AMZ_DATE_HEADER=Qe;Ei.AMZ_DATE_QUERY_PARAM=ze;Ei.AUTH_HEADER=ke;Ei.CREDENTIAL_QUERY_PARAM=Cr;Ei.DATE_HEADER=Fr;Ei.EVENT_ALGORITHM_IDENTIFIER=Vr;Ei.EXPIRES_QUERY_PARAM=Mr;Ei.GENERATED_HEADERS=Lr;Ei.HOST_HEADER=fi;Ei.KEY_TYPE_IDENTIFIER=Be;Ei.MAX_CACHE_SIZE=Qr;Ei.MAX_PRESIGNED_TTL=Br;Ei.PROXY_HEADER_PATTERN=zr;Ei.REGION_SET_PARAM=pi;Ei.SEC_HEADER_PATTERN=qr;Ei.SHA256_HEADER=ge;Ei.SIGNATURE_HEADER=Gr;Ei.SIGNATURE_QUERY_PARAM=qe;Ei.SIGNED_HEADERS_QUERY_PARAM=Ur;Ei.SignatureV4=en;Ei.SignatureV4Base=Xe;Ei.TOKEN_HEADER=Wr;Ei.TOKEN_QUERY_PARAM=Ve;Ei.UNSIGNABLE_PATTERNS=gi;Ei.UNSIGNED_PAYLOAD=kr;Ei.clearCredentialCache=mi;Ei.createScope=pe;Ei.getCanonicalHeaders=Ge;Ei.getCanonicalQuery=Xr;Ei.getPayloadHash=fe;Ei.getSigningKey=Yr;Ei.hasHeader=Zr;Ei.moveHeadersToQuery=Jr;Ei.prepareRequest=We;Ei.signatureV4aContainer=Ai});var Ye=E((iu)=>{var au=_r(),rn=tn(),Y={CrtSignerV4:null};class nn{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){if(typeof Y.CrtSignerV4==="function")return"crt";else if(typeof rn.signatureV4aContainer.SignatureV4a==="function")return"js";return"none"}constructor(e){this.sigv4Signer=new au.SignatureV4S3Express(e),this.signerOptions=e}async sign(e,t={}){if(t.signingRegion==="*")return this.getSigv4aSigner().sign(e,t);return this.sigv4Signer.sign(e,t)}async signWithCredentials(e,t,r={}){if(r.signingRegion==="*"){let n=this.getSigv4aSigner(),s=Y.CrtSignerV4;if(s&&n instanceof s)return n.signWithCredentials(e,t,r);else throw Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(e,t,r)}async presign(e,t={}){if(t.signingRegion==="*"){let r=this.getSigv4aSigner(),n=Y.CrtSignerV4;if(n&&r instanceof n)return r.presign(e,t);else throw Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(e,t)}async presignWithCredentials(e,t,r={}){if(r.signingRegion==="*")throw Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(e,t,r)}getSigv4aSigner(){if(!this.sigv4aSigner){let e=Y.CrtSignerV4,t=rn.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!e&&!t)throw Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(e&&typeof e==="function")this.sigv4aSigner=new e({...this.signerOptions,signingAlgorithm:1});else if(t&&typeof t==="function")this.sigv4aSigner=new t({...this.signerOptions});else throw Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!t||typeof t!=="function")throw Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new t({...this.signerOptions})}}return this.sigv4aSigner}}iu.SignatureV4MultiRegion=nn;iu.signatureV4CrtContainer=Y});var bn=E((yn)=>{Object.defineProperty(yn,"__esModule",{value:!0});yn.bdd=void 0;var lu=fn(),V="ref",x=-1,Z=!0,sn="isSet",gn="PartitionResult",J="booleanEquals",w="stringEquals",Ze="getAttr",on="us-east-1",an="sigv4",un="sts",cn="https://sts.{Region}.{PartitionResult#dnsSuffix}",ln={[V]:"Endpoint"},P={[V]:"Region"},Je={[V]:gn},q={},dn=[P],pn={conditions:[[sn,[ln]],[sn,dn],["aws.partition",dn,gn],[J,[{[V]:"UseFIPS"},Z]],[J,[{[V]:"UseDualStack"},Z]],[w,[P,"aws-global"]],[J,[{[V]:"UseGlobalEndpoint"},Z]],[w,[P,"eu-central-1"]],[J,[{fn:Ze,argv:[Je,"supportsDualStack"]},Z]],[J,[{fn:Ze,argv:[Je,"supportsFIPS"]},Z]],[w,[P,"ap-south-1"]],[w,[P,"eu-north-1"]],[w,[P,"eu-west-1"]],[w,[P,"eu-west-2"]],[w,[P,"eu-west-3"]],[w,[P,"sa-east-1"]],[w,[P,on]],[w,[P,"us-east-2"]],[w,[P,"us-west-2"]],[w,[P,"us-west-1"]],[w,[P,"ca-central-1"]],[w,[P,"ap-southeast-1"]],[w,[P,"ap-northeast-1"]],[w,[P,"ap-southeast-2"]],[w,[{fn:Ze,argv:[Je,"name"]},"aws-us-gov"]]],results:[[x],["https://sts.amazonaws.com",{authSchemes:[{name:an,signingName:un,signingRegion:on}]}],[cn,{authSchemes:[{name:an,signingName:un,signingRegion:"{Region}"}]}],[x,"Invalid Configuration: FIPS and custom endpoint are not supported"],[x,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[ln,q],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",q],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",q],[x,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",q],[x,"DualStack is enabled but this partition does not support DualStack"],[cn,q],[x,"Invalid Configuration: Missing Region"]]},du=2,f=1e8,pu=new Int32Array([-1,1,-1,0,30,3,1,4,f+14,2,5,f+14,3,25,6,4,24,7,5,f+1,8,6,9,f+13,7,f+1,10,10,f+1,11,11,f+1,12,12,f+1,13,13,f+1,14,14,f+1,15,15,f+1,16,16,f+1,17,17,f+1,18,18,f+1,19,19,f+1,20,20,f+1,21,21,f+1,22,22,f+1,23,23,f+1,f+2,8,f+11,f+12,4,28,26,9,27,f+10,24,f+8,f+9,8,29,f+7,9,f+6,f+7,3,f+3,31,4,f+4,f+5]);yn.bdd=lu.BinaryDecisionDiagram.from(pu,du,pn.conditions,pn.results)});var tt=E((mn)=>{Object.defineProperty(mn,"__esModule",{value:!0});mn.defaultEndpointResolver=void 0;var gu=fu(),et=fn(),yu=bn(),hu=new et.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),bu=(e,t={})=>{return hu.get(e,()=>(0,et.decideEndpoint)(yu.bdd,{endpointParams:e,logger:t.logger}))};mn.defaultEndpointResolver=bu;et.customEndpointFunctions.aws=gu.awsEndpointFunctions});var ot=E((Pn)=>{Object.defineProperty(Pn,"__esModule",{value:!0});Pn.resolveHttpAuthSchemeConfig=Pn.resolveStsAuthConfig=Pn.defaultSTSHttpAuthSchemeProvider=Pn.defaultSTSHttpAuthSchemeParametersProvider=void 0;var En=nt(),mu=Ye(),Au=st(),ye=ur(),Eu=tt(),Ru=at(),wu=(e)=>async(t,r,n)=>{if(!n)throw Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let s=await e(t,r,n),o=(0,ye.getSmithyContext)(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!o)throw Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await(0,Au.resolveParams)(n,{getEndpointParameterInstructions:o},t);return Object.assign(s,a)},Pu=async(e,t,r)=>{return{operation:(0,ye.getSmithyContext)(t).operation,region:await(0,ye.normalizeProvider)(e.region)()||(()=>{throw Error("expected `region` to be configured for `aws.auth#sigv4`")})()}};Pn.defaultSTSHttpAuthSchemeParametersProvider=wu(Pu);function Rn(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function rt(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:(t,r)=>({signingProperties:{config:t,context:r}})}}function wn(e){return{schemeId:"smithy.api#noAuth"}}var vu=(e,t,r)=>{return(s)=>{let a=e(s).properties?.authSchemes;if(!a)return t(s);let u=[];for(let i of a){let{name:d,properties:l={},...b}=i,y=d.toLowerCase();if(d!==y)console.warn(`HttpAuthScheme has been normalized with lowercasing: '${d}' to '${y}'`);let h;if(y==="sigv4a"){h="aws.auth#sigv4a";let T=a.find((Pe)=>{let St=Pe.name.toLowerCase();return St!=="sigv4a"&&St.startsWith("sigv4")});if(mu.SignatureV4MultiRegion.sigv4aDependency()==="none"&&T)continue}else if(y.startsWith("sigv4"))h="aws.auth#sigv4";else throw Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let R=r[h];if(!R)throw Error(`Could not find HttpAuthOption create function for '${h}'`);let g=R(s);g.schemeId=h,g.signingProperties={...g.signingProperties||{},...b,...l},u.push(g)}return u}},Du=(e)=>{let t=[];switch(e.operation){case"AssumeRoleWithWebIdentity":{t.push(wn(e)),t.push(rt(e));break}default:t.push(Rn(e)),t.push(rt(e))}return t};Pn.defaultSTSHttpAuthSchemeProvider=vu(Eu.defaultEndpointResolver,Du,{"aws.auth#sigv4":Rn,"aws.auth#sigv4a":rt,"smithy.api#noAuth":wn});var Iu=(e)=>Object.assign(e,{stsClientCtor:Ru.STSClient});Pn.resolveStsAuthConfig=Iu;var Tu=(e)=>{let t=Pn.resolveStsAuthConfig(e),r=(0,En.resolveAwsSdkSigV4Config)(t),n=(0,En.resolveAwsSdkSigV4AConfig)(r);return Object.assign(n,{authSchemePreference:(0,ye.normalizeProvider)(e.authSchemePreference??[])})};Pn.resolveHttpAuthSchemeConfig=Tu});var it=E((In)=>{Object.defineProperty(In,"__esModule",{value:!0});In.commonParams=In.resolveClientEndpointParameters=void 0;var Ou=(e)=>{return Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"})};In.resolveClientEndpointParameters=Ou;In.commonParams={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var he=E((ct)=>{Object.defineProperty(ct,"__esModule",{value:!0});ct.STSServiceException=ct.__ServiceException=void 0;var Sn=k();Object.defineProperty(ct,"__ServiceException",{enumerable:!0,get:function(){return Sn.ServiceException}});class ut extends Sn.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ut.prototype)}}ct.STSServiceException=ut});var bt=E((On)=>{Object.defineProperty(On,"__esModule",{value:!0});On.IDPCommunicationErrorException=On.InvalidIdentityTokenException=On.IDPRejectedClaimException=On.RegionDisabledException=On.PackedPolicyTooLargeException=On.MalformedPolicyDocumentException=On.ExpiredTokenException=void 0;var j=he();class lt extends j.STSServiceException{name="ExpiredTokenException";$fault="client";constructor(e){super({name:"ExpiredTokenException",$fault:"client",...e});Object.setPrototypeOf(this,lt.prototype)}}On.ExpiredTokenException=lt;class dt extends j.STSServiceException{name="MalformedPolicyDocumentException";$fault="client";constructor(e){super({name:"MalformedPolicyDocumentException",$fault:"client",...e});Object.setPrototypeOf(this,dt.prototype)}}On.MalformedPolicyDocumentException=dt;class pt extends j.STSServiceException{name="PackedPolicyTooLargeException";$fault="client";constructor(e){super({name:"PackedPolicyTooLargeException",$fault:"client",...e});Object.setPrototypeOf(this,pt.prototype)}}On.PackedPolicyTooLargeException=pt;class ft extends j.STSServiceException{name="RegionDisabledException";$fault="client";constructor(e){super({name:"RegionDisabledException",$fault:"client",...e});Object.setPrototypeOf(this,ft.prototype)}}On.RegionDisabledException=ft;class gt extends j.STSServiceException{name="IDPRejectedClaimException";$fault="client";constructor(e){super({name:"IDPRejectedClaimException",$fault:"client",...e});Object.setPrototypeOf(this,gt.prototype)}}On.IDPRejectedClaimException=gt;class yt extends j.STSServiceException{name="InvalidIdentityTokenException";$fault="client";constructor(e){super({name:"InvalidIdentityTokenException",$fault:"client",...e});Object.setPrototypeOf(this,yt.prototype)}}On.InvalidIdentityTokenException=yt;class ht extends j.STSServiceException{name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(e){super({name:"IDPCommunicationErrorException",$fault:"client",...e});Object.setPrototypeOf(this,ht.prototype)}}On.IDPCommunicationErrorException=ht});var Pt=E((Wn)=>{Object.defineProperty(Wn,"__esModule",{value:!0});Wn.AssumeRoleWithWebIdentity$=Wn.AssumeRole$=Wn.Tag$=Wn.ProvidedContext$=Wn.PolicyDescriptorType$=Wn.Credentials$=Wn.AssumeRoleWithWebIdentityResponse$=Wn.AssumeRoleWithWebIdentityRequest$=Wn.AssumeRoleResponse$=Wn.AssumeRoleRequest$=Wn.AssumedRoleUser$=Wn.errorTypeRegistries=Wn.RegionDisabledException$=Wn.PackedPolicyTooLargeException$=Wn.MalformedPolicyDocumentException$=Wn.InvalidIdentityTokenException$=Wn.IDPRejectedClaimException$=Wn.IDPCommunicationErrorException$=Wn.ExpiredTokenException$=Wn.STSServiceException$=void 0;var Mu="Arn",Fu="AccessKeyId",Lu="AssumeRole",Gu="AssumedRoleId",Wu="AssumeRoleRequest",Ku="AssumeRoleResponse",mt="AssumedRoleUser",zu="AssumeRoleWithWebIdentity",qu="AssumeRoleWithWebIdentityRequest",Vu="AssumeRoleWithWebIdentityResponse",ku="Audience",At="Credentials",Qu="ContextAssertion",xn="DurationSeconds",Bu="Expiration",Xu="ExternalId",Yu="ExpiredTokenException",Zu="IDPCommunicationErrorException",Ju="IDPRejectedClaimException",ec="InvalidIdentityTokenException",tc="Key",rc="MalformedPolicyDocumentException",jn="Policy",$n="PolicyArns",nc="ProviderArn",sc="ProvidedContexts",oc="ProvidedContextsListType",ac="ProvidedContext",ic="PolicyDescriptorType",uc="ProviderId",Hn="PackedPolicySize",cc="PackedPolicyTooLargeException",lc="Provider",Cn="RoleArn",dc="RegionDisabledException",Un="RoleSessionName",pc="SecretAccessKey",fc="SubjectFromWebIdentityToken",Et="SourceIdentity",gc="SerialNumber",yc="SessionToken",hc="Tags",bc="TokenCode",mc="TransitiveTagKeys",Ac="Tag",Ec="Value",Rc="WebIdentityToken",wc="arn",Pc="accessKeySecretType",$="awsQueryError",H="client",vc="clientTokenType",C="error",U="httpError",M="message",Dc="policyDescriptorListType",Mn="smithy.ts.sdk.synthetic.com.amazonaws.sts",Ic="tagListType",m="com.amazonaws.sts",Fn=Fe(),F=bt(),Tc=he(),Ln=Fn.TypeRegistry.for(Mn);Wn.STSServiceException$=[-3,Mn,"STSServiceException",0,[],[]];Ln.registerError(Wn.STSServiceException$,Tc.STSServiceException);var _=Fn.TypeRegistry.for(m);Wn.ExpiredTokenException$=[-3,m,Yu,{[$]:["ExpiredTokenException",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.ExpiredTokenException$,F.ExpiredTokenException);Wn.IDPCommunicationErrorException$=[-3,m,Zu,{[$]:["IDPCommunicationError",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.IDPCommunicationErrorException$,F.IDPCommunicationErrorException);Wn.IDPRejectedClaimException$=[-3,m,Ju,{[$]:["IDPRejectedClaim",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.IDPRejectedClaimException$,F.IDPRejectedClaimException);Wn.InvalidIdentityTokenException$=[-3,m,ec,{[$]:["InvalidIdentityToken",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.InvalidIdentityTokenException$,F.InvalidIdentityTokenException);Wn.MalformedPolicyDocumentException$=[-3,m,rc,{[$]:["MalformedPolicyDocument",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.MalformedPolicyDocumentException$,F.MalformedPolicyDocumentException);Wn.PackedPolicyTooLargeException$=[-3,m,cc,{[$]:["PackedPolicyTooLarge",400],[C]:H,[U]:400},[M],[0]];_.registerError(Wn.PackedPolicyTooLargeException$,F.PackedPolicyTooLargeException);Wn.RegionDisabledException$=[-3,m,dc,{[$]:["RegionDisabledException",403],[C]:H,[U]:403},[M],[0]];_.registerError(Wn.RegionDisabledException$,F.RegionDisabledException);Wn.errorTypeRegistries=[Ln,_];var Sc=[0,m,Pc,8,0],_c=[0,m,vc,8,0];Wn.AssumedRoleUser$=[3,m,mt,0,[Gu,Mu],[0,0],2];Wn.AssumeRoleRequest$=[3,m,Wu,0,[Cn,Un,$n,jn,xn,hc,mc,Xu,gc,bc,Et,sc],[0,0,()=>Gn,0,1,()=>Nc,64,0,0,0,0,()=>Oc],2];Wn.AssumeRoleResponse$=[3,m,Ku,0,[At,mt,Hn,Et],[[()=>Wn.Credentials$,0],()=>Wn.AssumedRoleUser$,1,0]];Wn.AssumeRoleWithWebIdentityRequest$=[3,m,qu,0,[Cn,Un,Rc,uc,$n,jn,xn],[0,0,[()=>_c,0],0,()=>Gn,0,1],3];Wn.AssumeRoleWithWebIdentityResponse$=[3,m,Vu,0,[At,fc,mt,Hn,lc,ku,Et],[[()=>Wn.Credentials$,0],0,()=>Wn.AssumedRoleUser$,1,0,0,0]];Wn.Credentials$=[3,m,At,0,[Fu,pc,yc,Bu],[0,[()=>Sc,0],0,4],4];Wn.PolicyDescriptorType$=[3,m,ic,0,[wc],[0]];Wn.ProvidedContext$=[3,m,ac,0,[nc,Qu],[0,0]];Wn.Tag$=[3,m,Ac,0,[tc,Ec],[0,0],2];var Gn=[1,m,Dc,0,()=>Wn.PolicyDescriptorType$],Oc=[1,m,oc,0,()=>Wn.ProvidedContext$],Nc=[1,m,Ic,0,()=>Wn.Tag$];Wn.AssumeRole$=[9,m,Lu,0,()=>Wn.AssumeRoleRequest$,()=>Wn.AssumeRoleResponse$];Wn.AssumeRoleWithWebIdentity$=[9,m,zu,0,()=>Wn.AssumeRoleWithWebIdentityRequest$,()=>Wn.AssumeRoleWithWebIdentityResponse$]});var ls=E((us)=>{Object.defineProperty(us,"__esModule",{value:!0});us.getRuntimeConfig=void 0;var os=nt(),Uc=cr(),Mc=Ye(),Fc=ie(),Lc=k(),Gc=$c(),as=Cc(),is=Hc(),Wc=ot(),Kc=tt(),zc=Pt(),qc=(e)=>{return{apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??as.fromBase64,base64Encoder:e?.base64Encoder??as.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Kc.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??Wc.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4"),signer:new os.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(t)=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new os.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(t)=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new Fc.NoAuthSigner}],logger:e?.logger??new Lc.NoOpLogger,protocol:e?.protocol??Uc.AwsQueryProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:zc.errorTypeRegistries,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",signerConstructor:e?.signerConstructor??Mc.SignatureV4MultiRegion,urlParser:e?.urlParser??Gc.parseUrl,utf8Decoder:e?.utf8Decoder??is.fromUtf8,utf8Encoder:e?.utf8Encoder??is.toUtf8}};us.getRuntimeConfig=qc});var As=E((bs)=>{Object.defineProperty(bs,"__esModule",{value:!0});bs.getRuntimeConfig=void 0;var tl=Qc(),rl=tl.__importDefault(Bc()),nl=Le(),be=nt(),ds=Xc(),me=ys(),sl=ie(),ol=Yc(),ps=hs(),O=Zc(),fs=Vc(),gs=k(),al=Jc(),il=el(),ul=kc(),cl=ls(),ll=(e)=>{(0,gs.emitWarningIfUnsupportedVersion)(process.version);let t=(0,il.resolveDefaultsModeConfig)(e),r=()=>t().then(gs.loadConfigsForDefaultMode),n=(0,cl.getRuntimeConfig)(e);(0,nl.emitWarningIfUnsupportedVersion)(process.version);let s={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,O.loadConfig)(be.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,s),bodyLengthChecker:e?.bodyLengthChecker??al.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,ds.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:rl.default.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4")||(async(a)=>await e.credentialDefaultProvider(a?.__config||{})()),signer:new be.AwsSdkSigV4Signer},{schemeId:"aws.auth#sigv4a",identityProvider:(o)=>o.getIdentityProvider("aws.auth#sigv4a"),signer:new be.AwsSdkSigV4ASigner},{schemeId:"smithy.api#noAuth",identityProvider:(o)=>o.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new sl.NoAuthSigner}],maxAttempts:e?.maxAttempts??(0,O.loadConfig)(ps.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,O.loadConfig)(me.NODE_REGION_CONFIG_OPTIONS,{...me.NODE_REGION_CONFIG_FILE_OPTIONS,...s}),requestHandler:fs.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,O.loadConfig)({...ps.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await r()).retryMode||ul.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??ol.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??(0,O.loadConfig)(be.NODE_SIGV4A_CONFIG_OPTIONS,s),streamCollector:e?.streamCollector??fs.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,O.loadConfig)(me.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,s),useFipsEndpoint:e?.useFipsEndpoint??(0,O.loadConfig)(me.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,s),userAgentAppId:e?.userAgentAppId??(0,O.loadConfig)(ds.NODE_APP_ID_CONFIG_OPTIONS,s)}};bs.getRuntimeConfig=ll});var ws=E((Es)=>{Object.defineProperty(Es,"__esModule",{value:!0});Es.resolveHttpAuthRuntimeConfig=Es.getHttpAuthExtensionConfiguration=void 0;var dl=(e)=>{let{httpAuthSchemes:t,httpAuthSchemeProvider:r,credentials:n}=e;return{setHttpAuthScheme(s){let o=t.findIndex((a)=>a.schemeId===s.schemeId);if(o===-1)t.push(s);else t.splice(o,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){r=s},httpAuthSchemeProvider(){return r},setCredentials(s){n=s},credentials(){return n}}};Es.getHttpAuthExtensionConfiguration=dl;var pl=(e)=>{return{httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}};Es.resolveHttpAuthRuntimeConfig=pl});var Os=E((Ss)=>{Object.defineProperty(Ss,"__esModule",{value:!0});Ss.resolveRuntimeExtensions=void 0;var Ps=Ts(),vs=gl(),Ds=k(),Is=ws(),yl=(e,t)=>{let r=Object.assign((0,Ps.getAwsRegionExtensionConfiguration)(e),(0,Ds.getDefaultExtensionConfiguration)(e),(0,vs.getHttpHandlerExtensionConfiguration)(e),(0,Is.getHttpAuthExtensionConfiguration)(e));return t.forEach((n)=>n.configure(r)),Object.assign(e,(0,Ps.resolveAwsRegionExtensionConfiguration)(r),(0,Ds.resolveDefaultRuntimeConfig)(r),(0,vs.resolveHttpHandlerRuntimeConfig)(r),(0,Is.resolveHttpAuthRuntimeConfig)(r))};Ss.resolveRuntimeExtensions=yl});var at=E((Dt)=>{Object.defineProperty(Dt,"__esModule",{value:!0});Dt.STSClient=Dt.__Client=void 0;var Ns=hl(),Rl=bl(),wl=ml(),xs=Al(),Pl=ys(),vt=ie(),vl=Fe(),Dl=El(),Il=st(),js=hs(),Hs=k();Object.defineProperty(Dt,"__Client",{enumerable:!0,get:function(){return Hs.Client}});var $s=ot(),Tl=it(),Sl=As(),_l=Os();class Cs extends Hs.Client{config;constructor(...[e]){let t=(0,Sl.getRuntimeConfig)(e||{});super(t);this.initConfig=t;let r=(0,Tl.resolveClientEndpointParameters)(t),n=(0,xs.resolveUserAgentConfig)(r),s=(0,js.resolveRetryConfig)(n),o=(0,Pl.resolveRegionConfig)(s),a=(0,Ns.resolveHostHeaderConfig)(o),u=(0,Il.resolveEndpointConfig)(a),i=(0,$s.resolveHttpAuthSchemeConfig)(u),d=(0,_l.resolveRuntimeExtensions)(i,e?.extensions||[]);this.config=d,this.middlewareStack.use((0,vl.getSchemaSerdePlugin)(this.config)),this.middlewareStack.use((0,xs.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,js.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Dl.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Ns.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Rl.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,wl.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,vt.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:$s.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async(l)=>new vt.DefaultIdentityProviderConfig({"aws.auth#sigv4":l.credentials,"aws.auth#sigv4a":l.credentials})})),this.middlewareStack.use((0,vt.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}}Dt.STSClient=Cs});var zl=E((I)=>{var L=at(),Ee=k(),Ms=st(),Fs=it(),Q=Pt(),Ae=bt(),It=Le(),Ol=Ts(),Nl=he();class Re extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(Q.AssumeRole$).build(){}class we extends Ee.Command.classBuilder().ep(Fs.commonParams).m(function(e,t,r,n){return[Ms.getEndpointPlugin(r,e.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(Q.AssumeRoleWithWebIdentity$).build(){}var xl={AssumeRoleCommand:Re,AssumeRoleWithWebIdentityCommand:we};class Tt extends L.STSClient{}Ee.createAggregatedClient(xl,Tt);var Ls=(e)=>{if(typeof e?.Arn==="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}return},Gs=async(e,t,r,n={})=>{let s=typeof e==="function"?await e():e,o=typeof t==="function"?await t():t,a="",u=s??o??(a=await Ol.stsRegionDefaultResolver(n)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${s} (credential provider clientConfig)`,`${o} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),u},jl=(e,t)=>{let r,n;return async(s,o)=>{if(n=s,!r){let{logger:l=e?.parentClientConfig?.logger,profile:b=e?.parentClientConfig?.profile,region:y,requestHandler:h=e?.parentClientConfig?.requestHandler,credentialProviderLogger:R,userAgentAppId:g=e?.parentClientConfig?.userAgentAppId}=e,T=await Gs(y,e?.parentClientConfig?.region,R,{logger:l,profile:b}),Pe=!Ws(h);r=new t({...e,userAgentAppId:g,profile:b,credentialDefaultProvider:()=>async()=>n,region:T,requestHandler:Pe?h:void 0,logger:l})}let{Credentials:a,AssumedRoleUser:u}=await r.send(new Re(o));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw Error(`Invalid response from STS.assumeRole call with role ${o.RoleArn}`);let i=Ls(u),d={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...i&&{accountId:i}};return It.setCredentialFeature(d,"CREDENTIALS_STS_ASSUME_ROLE","i"),d}},$l=(e,t)=>{let r;return async(n)=>{if(!r){let{logger:i=e?.parentClientConfig?.logger,profile:d=e?.parentClientConfig?.profile,region:l,requestHandler:b=e?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:h=e?.parentClientConfig?.userAgentAppId}=e,R=await Gs(l,e?.parentClientConfig?.region,y,{logger:i,profile:d}),g=!Ws(b);r=new t({...e,userAgentAppId:h,profile:d,region:R,requestHandler:g?b:void 0,logger:i})}let{Credentials:s,AssumedRoleUser:o}=await r.send(new we(n));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);let a=Ls(o),u={accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration,...s.CredentialScope&&{credentialScope:s.CredentialScope},...a&&{accountId:a}};if(a)It.setCredentialFeature(u,"RESOLVED_ACCOUNT_ID","T");return It.setCredentialFeature(u,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),u}},Ws=(e)=>{return e?.metadata?.handlerProtocol==="h2"},Ks=(e,t)=>{if(!t)return e;else return class extends e{constructor(n){super(n);for(let s of t)this.middlewareStack.use(s)}}},zs=(e={},t)=>jl(e,Ks(L.STSClient,t)),qs=(e={},t)=>$l(e,Ks(L.STSClient,t)),Hl=(e)=>(t)=>e({roleAssumer:zs(t),roleAssumerWithWebIdentity:qs(t),...t});I.$Command=Ee.Command;I.STSServiceException=Nl.STSServiceException;I.AssumeRoleCommand=Re;I.AssumeRoleWithWebIdentityCommand=we;I.STS=Tt;I.decorateDefaultCredentialProvider=Hl;I.getDefaultRoleAssumer=zs;I.getDefaultRoleAssumerWithWebIdentity=qs;Object.prototype.hasOwnProperty.call(L,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:L.__proto__});Object.keys(L).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=L[e]});Object.prototype.hasOwnProperty.call(Q,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Q.__proto__});Object.keys(Q).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Q[e]});Object.prototype.hasOwnProperty.call(Ae,"__proto__")&&!Object.prototype.hasOwnProperty.call(I,"__proto__")&&Object.defineProperty(I,"__proto__",{enumerable:!0,value:Ae.__proto__});Object.keys(Ae).forEach(function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(I,e))I[e]=Ae[e]})});
|
|
25
|
-
export{zl as o9};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{Fn as R,Gn as BJ,Ps as D,Qs as hJ,pp as G,sp as a,yE as k,zE as HJ}from"./cli-1.0.12-g2qsv3tc.mjs";import{E8 as bJ,e8 as ZJ,p8 as $J}from"./cli-1.0.12-7gt5bvcm.mjs";import{Hda as jJ,K$ as C,L$ as GJ,M$ as h,N$ as FJ,O$ as u,P$ as kJ,sda as WJ}from"./cli-1.0.12-anfbb1k6.mjs";import{Kha as gJ,yha as x}from"./cli-1.0.12-krksdpwy.mjs";import{bia as q,dia as s,eia as Y,fia as r}from"./cli-1.0.12-hxmg9ymn.mjs";import{Hia as M,Mia as yJ}from"./cli-1.0.12-pp2g923k.mjs";import{Aja as l,Bja as TJ,kja as o,lja as CJ,uja as n,vja as EJ}from"./cli-1.0.12-crspnn4b.mjs";import{Yla as c,Zla as OJ,ama as H,bma as F,cma as I,cqa as QJ,dma as YJ,ela as g,ema as P,fla as zJ,fma as XJ,gla as A,hla as wJ,sla as f,tla as PJ,yqa as mJ}from"./cli-1.0.12-y1c7c1a1.mjs";import{Hqa as K,Iqa as DJ}from"./cli-1.0.12-jk3cz5bk.mjs";import{hsa as B}from"./cli-1.0.12-ecf1es2x.mjs";function UJ(J,Q){return Q.length<2?J:P(J,R(Q,0,-1))}var z;var L=B(()=>{XJ();BJ();z=UJ});function xJ(J,Q){Q=H(Q,J);var W=-1,$=Q.length;if(!$)return!0;while(++W<$){var Z=I(Q[W]);if(Z==="__proto__"&&!KJ.call(J,"__proto__"))return!1;if((Z==="constructor"||Z==="prototype")&&W<$-1)return!1}var X=z(J,Q);return X==null||delete X[I(k(Q))]}var IJ,KJ,N;var O=B(()=>{F();HJ();L();YJ();IJ=Object.prototype,KJ=IJ.hasOwnProperty;N=xJ});function MJ(J){return C(J)?void 0:J}var E;var T=B(()=>{GJ();E=MJ});function RJ(J){return A(J)||f(J)||!!(S&&J&&J[S])}var S,d;var _=B(()=>{DJ();PJ();wJ();S=K?K.isConcatSpreadable:void 0;d=RJ});function v(J,Q,W,$,Z){var X=-1,V=J.length;W||(W=d),Z||(Z=[]);while(++X<V){var U=J[X];if(Q>0&&W(U))if(Q>1)v(U,Q-1,W,$,Z);else g(Z,U);else if(!$)Z[Z.length]=U}return Z}var m;var j=B(()=>{zJ();_();m=v});function LJ(J){var Q=J==null?0:J.length;return Q?m(J,1):[]}var y;var b=B(()=>{j();y=LJ});function NJ(J){return u(h(J,void 0,y),J+"")}var i;var p=B(()=>{b();FJ();kJ();i=NJ});var SJ=1,AJ=2,fJ=4,dJ,NQ;var _J=B(()=>{OJ();TJ();O();F();CJ();T();p();EJ();dJ=i(function(J,Q){var W={};if(J==null)return W;var $=!1;if(Q=c(Q,function(X){return X=H(X,J),$||($=X.length>1),X}),o(J,n(J),W),$)W=l(W,SJ|AJ|fJ,E);var Z=Q.length;while(Z--)N(W,Q[Z]);return W}),NQ=dJ});function t(){let J=x("tengu_harbor_ledger",[]),Q=vJ().safeParse(J);return Q.success?Q.data:[]}function e(){return x("tengu_harbor",!1)}var vJ;var JJ=B(()=>{s();r();a();gJ();vJ=Y(()=>q.array(q.object({marketplace:q.string(),plugin:q.string()})))});function uQ(J,Q,W){let $=Object.entries(W??{}).filter(([Z])=>iJ.test(Z)).map(([Z,X])=>` ${Z}="${D(X)}"`).join("");return`<${M} source="${D(J)}"${$}>
|
|
2
|
-
${Q}
|
|
3
|
-
</${M}>`}function pJ(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:t(),source:"ledger"}}function cJ(J,Q){let W=J.split(":");return Q.find(($)=>$.kind==="server"?J===$.name:W[0]==="plugin"&&W[1]===$.name)}function iQ(J,Q,W){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!e())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!ZJ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let $=$J(),Z=$==="team"||$==="enterprise",X=Z?WJ("policySettings"):void 0;if(Z&&X?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let V=cJ(J,QJ());if(!V)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if(V.kind==="plugin"){let U=W?G(W).marketplace:void 0;if(U!==V.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${V.name}@${V.marketplace} but the installed ${V.name} plugin is from ${U??"an unknown source"}`};if(!V.dev){let{entries:qJ,source:VJ}=pJ($,X?.allowedChannelPlugins);if(!qJ.some((w)=>w.plugin===V.name&&w.marketplace===V.marketplace))return{action:"skip",kind:"allowlist",reason:VJ==="org"?`plugin ${V.name}@${V.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${V.name}@${V.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!V.dev)return{action:"skip",kind:"allowlist",reason:`server ${V.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var bQ,uJ="notifications/claude/channel/permission",hQ,iJ;var oJ=B(()=>{s();mJ();yJ();bJ();r();a();jJ();hJ();JJ();bQ=Y(()=>q.object({method:q.literal("notifications/claude/channel"),params:q.object({content:q.string(),meta:q.record(q.string(),q.string()).optional()})})),hQ=Y(()=>q.object({method:q.literal(uJ),params:q.object({request_id:q.string(),behavior:q.enum(["allow","deny"])})})),iJ=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
|
|
4
|
-
export{NQ as Yf,_J as Zf,JJ as _f,bQ as $f,uQ as ag,cJ as bg,iQ as cg,oJ as dg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{G0 as Y,I0 as u,kZ as u2,l1 as e2,tZ as Z}from"./cli-1.0.12-fs27jw81.mjs";import{U3 as t,V3 as o,W3 as U}from"./cli-1.0.12-6s4gq7fa.mjs";import{gba as X,iba as j}from"./cli-1.0.12-anfbb1k6.mjs";import{dsa as s}from"./cli-1.0.12-ecf1es2x.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claudin"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,R,k,p,A,a,I,i,M;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.0.12"," "]})]}),R=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),k=t(u,{children:" "}),p=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),l[2]=c,l[3]=R,l[4]=k,l[5]=p,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=M;else c=l[2],R=l[3],k=l[4],p=l[5],A=l[6],a=l[7],I=l[8],i=l[9],M=l[10];let V;if(l[11]===Symbol.for("react.memo_cache_sentinel"))V=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=V;else V=l[11];let E,N;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),N=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=N;else E=l[12],N=l[13];let W;if(l[14]===Symbol.for("react.memo_cache_sentinel"))W=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=W;else W=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let v;if(l[16]===Symbol.for("react.memo_cache_sentinel"))v=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=v;else v=l[16];let B;if(l[17]===Symbol.for("react.memo_cache_sentinel"))B=t(Y,{width:K,children:o(u,{children:[c,R,k,p,A,a,I,i,M,V,E,N,W,L,v,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=B;else B=l[17];return B}let D,r,P,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))D=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","1.0.12"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),P=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=D,l[19]=r,l[20]=P,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else D=l[18],r=l[19],P=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let O;if(l[34]===Symbol.for("react.memo_cache_sentinel"))O=t(Y,{width:K,children:o(u,{children:[D,r,P,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=O;else O=l[34];return O}function t2(l){let e=Q.c(44),{theme:D,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(D)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","1.0.12"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let M,V,E,N,W,L,v,B;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),N=t(u,{children:" "}),W=t(u,{children:" "}),L=t(u,{children:" "}),v=t(u,{children:" ░░░░░░ "}),B=t(u,{children:" ░░░ ░░░░░░░░░░ "}),M=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),e[5]=M,e[6]=V,e[7]=E,e[8]=N,e[9]=W,e[10]=L,e[11]=v,e[12]=B;else M=e[5],V=e[6],E=e[7],N=e[8],W=e[9],L=e[10],v=e[11],B=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,N,W,L,v,B,M,V,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","1.0.12"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,O;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),O=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=O;else C=e[33],S=e[34],w=e[35],g=e[36],O=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let R;if(e[39]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=R;else R=e[39];let k;if(e[40]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=k;else k=e[40];let p;if(e[41]===Symbol.for("react.memo_cache_sentinel"))p=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=p;else p=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,O,c,R,k,p]})}),e[42]=m,e[43]=A;else A=e[43];return A}
|
|
2
|
-
export{c2 as ba};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Zx as C,ay as X}from"./cli-1.0.12-g2qsv3tc.mjs";import{X3 as W}from"./cli-1.0.12-0hs0n73e.mjs";import{C6 as I,O6 as J,V6 as V}from"./cli-1.0.12-7gt5bvcm.mjs";import{Kha as T,pha as H}from"./cli-1.0.12-krksdpwy.mjs";import{dsa as P,hsa as Q}from"./cli-1.0.12-ecf1es2x.mjs";function v(){let K=C((q)=>q.mainLoopModel),N=C((q)=>q.mainLoopModelForSession),[,O]=z.useReducer((q)=>q+1,0);return z.useEffect(()=>H(O),[]),J(N??K??I())}var z;var Y=Q(()=>{T();X();V();z=P(W(),1)});
|
|
2
|
-
export{v as od,Y as pd};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{X0 as W,j1 as X,kZ as f,l1 as k}from"./cli-1.0.12-fs27jw81.mjs";import{T3 as V,U3 as J,W3 as K}from"./cli-1.0.12-6s4gq7fa.mjs";import{X3 as P}from"./cli-1.0.12-0hs0n73e.mjs";import{Bga as U,Cga as O}from"./cli-1.0.12-jv9bdyr3.mjs";import{dsa as Q,hsa as L}from"./cli-1.0.12-ecf1es2x.mjs";import{PassThrough as C}from"stream";function E(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let D=setTimeout(z,0);return()=>clearTimeout(D)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J(V,{children:w}),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(M);if(b===-1)return q;let w=b+M.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J(E,{children:q}),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function N(q,b){let w=await g(q,b);return U(w)}var Z,y,M="\x1B[?2026h",F="\x1B[?2026l";var j=L(()=>{O();k();K();Z=Q(f(),1),y=Q(P(),1)});
|
|
2
|
-
export{g as ne,N as oe,j as pe};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{kd as z,ld as K}from"./cli-1.0.12-g6jjrjcj.mjs";import{uK as w,wK as J}from"./cli-1.0.12-g2qsv3tc.mjs";import{X3 as H}from"./cli-1.0.12-0hs0n73e.mjs";import{dsa as E,hsa as G}from"./cli-1.0.12-ecf1es2x.mjs";function V(q,v,k){return B.useMemo(()=>{let D=w(k,v);return z(q,D,k.mode)},[q,v,k,!1,!1])}var B;var N=G(()=>{J();K();B=E(H(),1)});
|
|
2
|
-
export{V as gd,N as hd};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{KX as T,VX as c}from"./cli-1.0.12-ehp5ev2y.mjs";import{k2 as w,n2 as n}from"./cli-1.0.12-0smh9wwk.mjs";import{v_ as M,w$ as y,x$ as g,x_ as X,y_ as f}from"./cli-1.0.12-anfbb1k6.mjs";import{Dja as K,Eja as v,Ija as m,_ja as Z,bja as R,bka as h,dja as F}from"./cli-1.0.12-crspnn4b.mjs";import{Dka as W,Fka as D,yka as Y}from"./cli-1.0.12-x4ep25h9.mjs";import{Ika as E,Vka as S}from"./cli-1.0.12-bhvkmj7j.mjs";import{Dma as A,Fma as N,yqa as j,zma as k}from"./cli-1.0.12-y1c7c1a1.mjs";import{hsa as H}from"./cli-1.0.12-ecf1es2x.mjs";function O(q){if(q<=1)return!1;try{return process.kill(q,0),!0}catch{return!1}}async function i(q,J=10){if(process.platform==="win32"){let Q=`
|
|
2
|
-
$pid = ${String(q)}
|
|
3
|
-
$ancestors = @()
|
|
4
|
-
for ($i = 0; $i -lt ${J}; $i++) {
|
|
5
|
-
$proc = Get-CimInstance Win32_Process -Filter "ProcessId=$pid" -ErrorAction SilentlyContinue
|
|
6
|
-
if (-not $proc -or -not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
|
|
7
|
-
$pid = $proc.ParentProcessId
|
|
8
|
-
$ancestors += $pid
|
|
9
|
-
}
|
|
10
|
-
$ancestors -join ','
|
|
11
|
-
`.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.trim().split(",").filter(Boolean).map((G)=>parseInt(G,10)).filter((G)=>!isNaN(G))}let L=`pid=${String(q)}; for i in $(seq 1 ${J}); do ppid=$(ps -o ppid= -p $pid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; echo $ppid; pid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.trim().split(`
|
|
12
|
-
`).filter(Boolean).map((Q)=>parseInt(Q,10)).filter((Q)=>!isNaN(Q))}function e(q){try{let J=String(q),L=process.platform==="win32"?`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter \\"ProcessId=${J}\\").CommandLine"`:`ps -o command= -p ${J}`,z=M(L,{timeout:1000});return z?z.trim():null}catch{return null}}async function qq(q,J=10){if(process.platform==="win32"){let Q=`
|
|
13
|
-
$currentPid = ${String(q)}
|
|
14
|
-
$commands = @()
|
|
15
|
-
for ($i = 0; $i -lt ${J}; $i++) {
|
|
16
|
-
$proc = Get-CimInstance Win32_Process -Filter "ProcessId=$currentPid" -ErrorAction SilentlyContinue
|
|
17
|
-
if (-not $proc) { break }
|
|
18
|
-
if ($proc.CommandLine) { $commands += $proc.CommandLine }
|
|
19
|
-
if (-not $proc.ParentProcessId -or $proc.ParentProcessId -eq 0) { break }
|
|
20
|
-
$currentPid = $proc.ParentProcessId
|
|
21
|
-
}
|
|
22
|
-
$commands -join [char]0
|
|
23
|
-
`.trim(),V=await X("powershell.exe",["-NoProfile","-Command",Q],{timeout:3000});if(V.code!==0||!V.stdout?.trim())return[];return V.stdout.split("\x00").filter(Boolean)}let L=`currentpid=${String(q)}; for i in $(seq 1 ${J}); do cmd=$(ps -o command= -p $currentpid 2>/dev/null); if [ -n "$cmd" ]; then printf '%s\\0' "$cmd"; fi; ppid=$(ps -o ppid= -p $currentpid 2>/dev/null | tr -d ' '); if [ -z "$ppid" ] || [ "$ppid" = "0" ] || [ "$ppid" = "1" ]; then break; fi; currentpid=$ppid; done`,z=await X("sh",["-c",L],{timeout:3000});if(z.code!==0||!z.stdout?.trim())return[];return z.stdout.split("\x00").filter(Boolean)}var _=H(()=>{f()});import{chmod as u,mkdir as a,readdir as l,readFile as p,unlink as P,writeFile as b}from"fs/promises";import{join as $}from"path";function U(){return $(E(),"sessions")}function o(){return}async function Uq(){if(T()!=null)return!1;let q=o()??"interactive",J=U(),L=$(J,`${process.pid}.json`);R(async()=>{try{await P(L)}catch{}});try{return await a(J,{recursive:!0,mode:448}),await u(J,448),await b(L,K({pid:process.pid,sessionId:k(),cwd:N(),startedAt:Date.now(),kind:q,entrypoint:process.env.CLAUDE_CODE_ENTRYPOINT,...{},...{}})),A((z)=>{B({sessionId:z})}),!0}catch(z){return Z(`[concurrentSessions] register failed: ${Y(z)}`),!1}}async function B(q){let J=$(U(),`${process.pid}.json`);try{let L=v(await p(J,"utf8"));await b(J,K({...L,...q}))}catch(L){Z(`[concurrentSessions] updatePidFile failed: ${Y(L)}`)}}async function Bq(q){if(!q)return;await B({name:q})}async function C(q){await B({bridgeSessionId:q})}async function Mq(){let q=U(),J;try{J=await l(q)}catch(z){if(!W(z))Z(`[concurrentSessions] readdir failed: ${Y(z)}`);return 0}let L=0;for(let z of J){if(!/^\d+\.json$/.test(z))continue;let Q=parseInt(z.slice(0,-5),10);if(Q===process.pid){L++;continue}if(O(Q))L++;else if(y()!=="wsl")P($(q,z)).catch(()=>{})}return L}var I=H(()=>{j();F();h();S();D();_();g();m();c()});function Aq(q){x=q,C(r()??null).catch(()=>{})}function d(){return x}function r(){let q=d();return q?w(q.bridgeSessionId):void 0}var x=null;var t=H(()=>{I();n()});
|
|
24
|
-
export{O as pX,i as qX,e as rX,qq as sX,_ as tX,Uq as uX,Bq as vX,C as wX,Mq as xX,I as yX,Aq as zX,d as AX,r as BX,t as CX};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{ri as M,si as w,ti as A}from"./cli-1.0.12-4hwr3sdf.mjs";import{bia as X,dia as N,eia as $,fia as O}from"./cli-1.0.12-hxmg9ymn.mjs";import{_ja as R,bka as C}from"./cli-1.0.12-crspnn4b.mjs";import{Ika as L,Vka as _}from"./cli-1.0.12-bhvkmj7j.mjs";import{yqa as T,zma as H}from"./cli-1.0.12-y1c7c1a1.mjs";import{Kra as y,sra as W}from"./cli-1.0.12-57gs15yp.mjs";y();N();T();C();_();O();A();import{randomUUID as I}from"crypto";import{mkdir as P,writeFile as U}from"fs/promises";import{basename as v,join as B}from"path";var D=30000;function Q(q){R(`[bridge:inbound-attach] ${q}`)}var j=$(()=>X.object({file_uuid:X.string(),file_name:X.string()})),k=$(()=>X.array(j()));function S(q){if(typeof q!=="object"||q===null||!("file_attachments"in q))return[];let G=k().safeParse(q.file_attachments);return G.success?G.data:[]}function z(q){return v(q).replace(/[^a-zA-Z0-9._-]/g,"_")||"attachment"}function x(){return B(L(),"uploads",H())}async function b(q){let G=M();if(!G){Q("skip: no oauth token");return}let J;try{let V=`${w()}/api/oauth/files/${encodeURIComponent(q.file_uuid)}/content`,Z=await W.get(V,{headers:{Authorization:`Bearer ${G}`},responseType:"arraybuffer",timeout:D,validateStatus:()=>!0});if(Z.status!==200){Q(`fetch ${q.file_uuid} failed: status=${Z.status}`);return}J=Buffer.from(Z.data)}catch(V){Q(`fetch ${q.file_uuid} threw: ${V}`);return}let K=z(q.file_name),F=(q.file_uuid.slice(0,8)||I().slice(0,8)).replace(/[^a-zA-Z0-9_-]/g,"_"),E=x(),Y=B(E,`${F}-${K}`);try{await P(E,{recursive:!0}),await U(Y,J)}catch(V){Q(`write ${Y} failed: ${V}`);return}return Q(`resolved ${q.file_uuid} → ${Y} (${J.length} bytes)`),Y}async function f(q){if(q.length===0)return"";Q(`resolving ${q.length} attachment(s)`);let J=(await Promise.all(q.map(b))).filter((K)=>K!==void 0);if(J.length===0)return"";return J.map((K)=>`@"${K}"`).join(" ")+" "}function l(q,G){if(!G)return q;if(typeof q==="string")return G+q;let J=q.findLastIndex((K)=>K.type==="text");if(J!==-1){let K=q[J];if(K.type==="text")return[...q.slice(0,J),{...K,text:G+K.text},...q.slice(J+1)]}return[...q,{type:"text",text:G.trimEnd()}]}async function s(q,G){let J=S(q);if(J.length===0)return G;let K=await f(J);return l(G,K)}
|
|
2
|
-
export{S as ca,f as da,l as ea,s as fa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{E8 as f,H7 as M,M4 as G,R4 as W,S4 as V,e8 as j}from"./cli-1.0.12-7gt5bvcm.mjs";import{Tda as x,Uda as B,V$ as w,W$ as z,Z$ as Y}from"./cli-1.0.12-anfbb1k6.mjs";import{Oia as J,Wia as F}from"./cli-1.0.12-n1m3pwwf.mjs";import{hsa as Z}from"./cli-1.0.12-ecf1es2x.mjs";function g(){q=void 0,w()}function p(){if(q!==void 0)return q;if(G()!=="firstParty")return q=z(!1);if(!W())return q=z(!1);if(x())return q=z(!1);if(process.env.CLAUDE_CODE_ENTRYPOINT==="local-agent")return q=z(!1);let Q=j();if(Q?.accessToken&&Q.subscriptionType===null)return q=z(!0);if(Q?.accessToken&&Q.scopes?.includes(J)&&(Q.subscriptionType==="enterprise"||Q.subscriptionType==="team"))return q=z(!0);try{let{key:$}=M({skipRetrievingKeyFromApiKeyHelper:!0});if($)return q=z(!0)}catch{}return q=z(!1)}var q;var X=Z(()=>{F();f();V();B();Y()});function S(Q){let $=Q.toUpperCase();return K.has($)||k.some((m)=>$.startsWith(m))}var K,k,y,I;var b=Z(()=>{K=new Set(["CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL","ANTHROPIC_VERTEX_BASE_URL","ANTHROPIC_FOUNDRY_BASE_URL","ANTHROPIC_FOUNDRY_RESOURCE","ANTHROPIC_VERTEX_PROJECT_ID","CLOUD_ML_REGION","ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_BEARER_TOKEN_BEDROCK","ANTHROPIC_FOUNDRY_API_KEY","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","ANTHROPIC_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_SMALL_FAST_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","CLAUDE_CODE_SUBAGENT_MODEL"]),k=["VERTEX_REGION_CLAUDE_"];y=["apiKeyHelper","awsAuthRefresh","awsCredentialExport","gcpAuthRefresh","otelHeadersHelper","statusLine"],I=new Set(["ANTHROPIC_CUSTOM_HEADERS","ANTHROPIC_CUSTOM_MODEL_OPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","ANTHROPIC_SMALL_FAST_MODEL","AWS_DEFAULT_REGION","AWS_PROFILE","AWS_REGION","BASH_DEFAULT_TIMEOUT_MS","BASH_MAX_OUTPUT_LENGTH","BASH_MAX_TIMEOUT_MS","CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR","CLAUDE_CODE_API_KEY_HELPER_TTL_MS","CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS","CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC","CLAUDE_CODE_DISABLE_TERMINAL_TITLE","CLAUDE_CODE_ENABLE_TELEMETRY","CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS","CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL","CLAUDE_CODE_MAX_OUTPUT_TOKENS","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SUBAGENT_MODEL","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","CLAUDE_CODE_USE_VERTEX","DISABLE_AUTOUPDATER","DISABLE_BUG_COMMAND","DISABLE_COST_WARNINGS","DISABLE_ERROR_REPORTING","DISABLE_FEEDBACK_COMMAND","DISABLE_TELEMETRY","ENABLE_TOOL_SEARCH","MAX_MCP_OUTPUT_TOKENS","MAX_THINKING_TOKENS","MCP_TIMEOUT","MCP_TOOL_TIMEOUT","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_LOGS_PROTOCOL","OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE","OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_PROTOCOL","OTEL_EXPORTER_OTLP_PROTOCOL","OTEL_EXPORTER_OTLP_TRACES_HEADERS","OTEL_LOG_TOOL_DETAILS","OTEL_LOG_USER_PROMPTS","OTEL_LOGS_EXPORT_INTERVAL","OTEL_LOGS_EXPORTER","OTEL_METRIC_EXPORT_INTERVAL","OTEL_METRICS_EXPORTER","OTEL_METRICS_INCLUDE_ACCOUNT_UUID","OTEL_METRICS_INCLUDE_SESSION_ID","OTEL_METRICS_INCLUDE_VERSION","OTEL_RESOURCE_ATTRIBUTES","USE_BUILTIN_RIPGREP","VERTEX_REGION_CLAUDE_3_5_HAIKU","VERTEX_REGION_CLAUDE_3_5_SONNET","VERTEX_REGION_CLAUDE_3_7_SONNET","VERTEX_REGION_CLAUDE_4_0_OPUS","VERTEX_REGION_CLAUDE_4_0_SONNET","VERTEX_REGION_CLAUDE_4_1_OPUS","VERTEX_REGION_CLAUDE_4_5_SONNET","VERTEX_REGION_CLAUDE_4_6_SONNET","VERTEX_REGION_CLAUDE_HAIKU_4_5"])});
|
|
2
|
-
export{g as zU,p as AU,X as BU,S as CU,y as DU,I as EU,b as FU};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{bra as Q,cra as V,dra as W,era as X,fra as Y,gra as Z,rra as w}from"./cli-1.0.12-sav2q0qa.mjs";import{hsa as v}from"./cli-1.0.12-ecf1es2x.mjs";function J(j,z){if(!(j instanceof Error))return!1;for(let G=Object.getPrototypeOf(j);G!==null;G=Object.getPrototypeOf(G))if(G.constructor?.name===z)return!0;return!1}function S(j){return j instanceof Q||J(j,"APIError")}function k(j){return j instanceof W||J(j,"APIConnectionError")}function F(j){return j instanceof X||J(j,"APIConnectionTimeoutError")}function D(j){return j instanceof V||J(j,"APIUserAbortError")}function P(j){return j instanceof Y||J(j,"AuthenticationError")}function x(j){return j instanceof Z||J(j,"NotFoundError")}function y(j){return j instanceof _||D(j)||j instanceof Error&&j.name==="AbortError"}function f(j,z){return j instanceof Error&&j.message===z}function N(j){return j instanceof Error?j:Error(String(j))}function I(j){return j instanceof Error?j.message:String(j)}function $(j){if(j&&typeof j==="object"&&"code"in j&&typeof j.code==="string")return j.code;return}function A(j){return $(j)==="ENOENT"}function p(j){if(j&&typeof j==="object"&&"path"in j&&typeof j.path==="string")return j.path;return}function C(j,z=5){if(!(j instanceof Error))return String(j);if(!j.stack)return j.message;let G=j.stack.split(`
|
|
2
|
-
`),H=G[0]??j.message,K=G.slice(1).filter((q)=>q.trim().startsWith("at "));if(K.length<=z)return j.stack;return[H,...K.slice(0,z)].join(`
|
|
3
|
-
`)}function h(j){let z=$(j);return z==="ENOENT"||z==="EACCES"||z==="EPERM"||z==="ENOTDIR"||z==="ELOOP"}function E(j){let z=I(j);if(!j||typeof j!=="object"||!("isAxiosError"in j)||!j.isAxiosError)return{kind:"other",message:z};let G=j,H=G.response?.status;if(H===401||H===403)return{kind:"auth",status:H,message:z};if(G.code==="ECONNABORTED")return{kind:"timeout",status:H,message:z};if(G.code==="ECONNREFUSED"||G.code==="ENOTFOUND")return{kind:"network",status:H,message:z};return{kind:"http",status:H,message:z}}var B,L,_,T,O,R,U;var b=v(()=>{w();B=class B extends Error{constructor(j,z){super(j,z);this.name=this.constructor.name}};L=class L extends Error{};_=class _ extends Error{constructor(j){super(j);this.name="AbortError"}};T=class T extends Error{filePath;defaultConfig;constructor(j,z,G){super(j);this.name="ConfigParseError",this.filePath=z,this.defaultConfig=G}};O=class O extends Error{stdout;stderr;code;interrupted;constructor(j,z,G,H){super("Shell command failed");this.stdout=j;this.stderr=z;this.code=G;this.interrupted=H;this.name="ShellError"}};R=class R extends Error{formattedMessage;constructor(j,z){super(j);this.formattedMessage=z;this.name="TeleportOperationError"}};U=class U extends Error{telemetryMessage;constructor(j,z){super(j);this.name="TelemetrySafeError",this.telemetryMessage=z??j}}});
|
|
4
|
-
export{B as ika,L as jka,_ as kka,S as lka,k as mka,F as nka,D as oka,P as pka,x as qka,y as rka,T as ska,O as tka,R as uka,U as vka,f as wka,N as xka,I as yka,$ as zka,A as Aka,p as Bka,C as Cka,h as Dka,E as Eka,b as Fka};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{D8 as v,E8 as C}from"./cli-1.0.12-7gt5bvcm.mjs";import{Tda as Z,Uda as V,sfa as x,tfa as Y}from"./cli-1.0.12-anfbb1k6.mjs";import{Cha as W,Kha as O,yha as R}from"./cli-1.0.12-krksdpwy.mjs";import{Via as Q,Wia as M}from"./cli-1.0.12-n1m3pwwf.mjs";import{Dja as P,Ija as I,_ja as f,bka as L}from"./cli-1.0.12-crspnn4b.mjs";import{Fka as H,yka as w}from"./cli-1.0.12-x4ep25h9.mjs";import{Xqa as N,Yqa as F}from"./cli-1.0.12-jk3cz5bk.mjs";import{Kra as U,sra as X}from"./cli-1.0.12-57gs15yp.mjs";import{esa as h,hsa as B}from"./cli-1.0.12-ecf1es2x.mjs";import{hostname as E}from"os";function $(){return R(G,!1)}function u(){if(!$())return;return y()}function n(){y.cache?.clear?.()}function o(){if(!$())return;let i=x();try{let q=i.read();if(q?.trustedDeviceToken)delete q.trustedDeviceToken,i.update(q)}catch{}y.cache?.clear?.()}async function t(){try{if(!await W(G)){f(`[trusted-device] Gate ${G} is off, skipping enrollment`);return}if(process.env.CLAUDE_TRUSTED_DEVICE_TOKEN){f("[trusted-device] CLAUDE_TRUSTED_DEVICE_TOKEN env var is set, skipping enrollment (env var takes precedence)");return}let{getClaudeAIOAuthTokens:i}=(C(),h(v)),q=i()?.accessToken;if(!q){f("[trusted-device] No OAuth token, skipping enrollment");return}let J=x();if(Z()){f("[trusted-device] Essential traffic only, skipping enrollment");return}let b=Q().BASE_API_URL,m;try{m=await X.post(`${b}/api/auth/trusted_devices`,{display_name:`Claude Code on ${E()} · ${process.platform}`},{headers:{Authorization:`Bearer ${q}`,"Content-Type":"application/json"},timeout:1e4,validateStatus:(j)=>j<500})}catch(j){f(`[trusted-device] Enrollment request failed: ${w(j)}`);return}if(m.status!==200&&m.status!==201){f(`[trusted-device] Enrollment failed ${m.status}: ${P(m.data).slice(0,200)}`);return}let z=m.data?.device_token;if(!z||typeof z!=="string"){f("[trusted-device] Enrollment response missing device_token field");return}try{let j=J.read();if(!j){f("[trusted-device] Cannot read storage, skipping token persist");return}j.trustedDeviceToken=z;let K=J.update(j);if(!K.success){f(`[trusted-device] Failed to persist token: ${K.warning??"unknown"}`);return}y.cache?.clear?.(),f(`[trusted-device] Enrolled device_id=${m.data.device_id??"unknown"}`)}catch(j){f(`[trusted-device] Storage write failed: ${w(j)}`)}}catch(i){f(`[trusted-device] Enrollment error: ${w(i)}`)}}var G="tengu_sessions_elevated_auth_enforcement",y;var d=B(()=>{U();F();M();O();L();H();V();Y();I();y=N(()=>{let i=process.env.CLAUDE_TRUSTED_DEVICE_TOKEN;if(i)return i;return x().read()?.trustedDeviceToken})});
|
|
2
|
-
export{u as CW,n as DW,o as EW,t as FW,d as GW};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{hsa as y}from"./cli-1.0.12-ecf1es2x.mjs";function $(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function F(q,z){let B=q;for(let K of z){if(B==null||typeof B!=="object")return;B=B[K]}return B}function x(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let W=q.toLowerCase();return W.includes("localhost")||W.includes("127.0.0.1")||W.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let K=B.match(U);if(K){let W=Number(K[1]),j=Number(K[2]);if(W===10)return!0;if(W===172&&j>=16&&j<=31)return!0;if(W===192&&j===168)return!0;if(W===127)return!0;if(W===169&&j===254)return!0;if(W===100&&j>=64&&j<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||f.test(B)||A.test(B))return!0;return!1}function N(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(x(B))return"self-hosted";let K=B.toLowerCase();if(K.includes(":11434"))return"ollama";if(K.includes("moonshot")||K.includes("kimi"))return"kimi";if(K.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function D(q){if(!q||typeof q!=="object")return 0;let z=q,B=$(z.cache_read_input_tokens);if(B>0)return B;let K=$(F(q,["input_tokens_details","cached_tokens"]))||$(F(q,["prompt_tokens_details","cached_tokens"]));if(K>0)return K;let W=$(z.cached_tokens);if(W>0)return W;let j=$(z.prompt_cache_hit_tokens);if(j>0)return j;let Q=$(z.cached_content_token_count);if(Q>0)return Q;return 0}function Y(q){if(!q||typeof q!=="object")return 0;let B=$(q.cache_creation_input_tokens);if(B>0)return B;return $(F(q,["cache_creation","ephemeral_5m_input_tokens"]))+$(F(q,["cache_creation","ephemeral_1h_input_tokens"]))}function P(q){let z=D(q),B=q??{},K=$(B.input_tokens)||$(B.prompt_tokens),W=K>=z?K-z:K,j=$(B.output_tokens)||$(B.completion_tokens);return{input_tokens:W,output_tokens:j,cache_creation_input_tokens:Y(q),cache_read_input_tokens:z}}function M(q,z){if(!q||typeof q!=="object")return X;let B=q,K=$(B.cache_read_input_tokens),W=$(B.cache_creation_input_tokens),j=$(B.input_tokens);if(z==="copilot"||z==="ollama")return X;if(z==="self-hosted"&&K===0&&W===0)return X;let Q=K+W+j;return{read:K,created:W,total:Q,hitRate:Q>0?Math.min(1,K/Q):null,supported:!0}}function C(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${G(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${G(q.read)}`,`created=${G(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function G(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(Z,"")}k`;return`${(q/1e6).toFixed(1).replace(Z,"")}m`}function H(q,z){if(!q.supported&&!z.supported)return X;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,K=q.created+z.created,W=q.total+z.total;return{read:B,created:K,total:W,hitRate:W>0?B/W:null,supported:!0}}var X,U,f,A,Z;var L=y(()=>{X={read:0,created:0,total:0,hitRate:null,supported:!1};U=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,f=/^fc[0-9a-f]{0,2}:/,A=/^fd[0-9a-f]{0,2}:/,Z=/\.0$/});function S(q){return{currentTurn:V,session:V,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function w(q,z){J.currentTurn=H(J.currentTurn,q),J.session=H(J.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(J.history[J.historyWriteIdx]=B,J.historyWriteIdx=(J.historyWriteIdx+1)%J.historyMax,J.historySize<J.historyMax)J.historySize++}function T(){J.currentTurn=V}function R(){J.currentTurn=V,J.session=V,J.history=Array(J.historyMax),J.historyWriteIdx=0,J.historySize=0}function b(){return J.currentTurn}function g(){return J.session}function l(){if(J.historySize<J.historyMax)return J.history.slice(0,J.historySize);let q=J.history.slice(J.historyWriteIdx),z=J.history.slice(0,J.historyWriteIdx);return q.concat(z)}var O=500,V,J;var k=y(()=>{L();V={read:0,created:0,total:0,hitRate:null,supported:!1};J=S(O)});
|
|
2
|
-
export{N as D2,P as E2,M as F2,C as G2,I as H2,L as I2,w as J2,T as K2,R as L2,b as M2,g as N2,l as O2,k as P2};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Aqa as YJ,Bqa as v,Cqa as P1,Dqa as Y5,Eqa as w8,Fqa as D,Gqa as y,Hqa as m,Iqa as kQ,Jqa as L,Kqa as a,Lqa as n5,Mqa as e8,Nqa as R5,Oqa as _8,Pqa as E,Qqa as h8,Rqa as P,Sqa as x1,Tqa as d,Uqa as xQ,Vqa as r,Wqa as UQ,Xqa as T5,Yqa as UY,zqa as _Q}from"./cli-1.0.12-jk3cz5bk.mjs";import{gsa as aQ,hsa as X}from"./cli-1.0.12-ecf1es2x.mjs";function h$(){this.__data__=new v,this.size=0}var QQ;var $Q=X(()=>{P1();QQ=h$});function n$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var JQ;var YQ=X(()=>{JQ=n$});function b$(Q){return this.__data__.get(Q)}var ZQ;var XQ=X(()=>{ZQ=b$});function i$(Q){return this.__data__.has(Q)}var HQ;var WQ=X(()=>{HQ=i$});function l$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<u$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new r(Z)}return Y.set(Q,J),this.size=Y.size,this}var u$=200,KQ;var GQ=X(()=>{P1();xQ();UQ();KQ=l$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var I1=X(()=>{P1();$Q();YQ();XQ();WQ();GQ();g.prototype.clear=QQ;g.prototype.delete=JQ;g.prototype.get=ZQ;g.prototype.has=HQ;g.prototype.set=KQ;p=g});function c$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",BQ;var NQ=X(()=>{BQ=c$});function r$(Q){return this.__data__.has(Q)}var wQ;var zQ=X(()=>{wQ=r$});function o(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new r;while(++J<Y)this.add(Q[J])}var FQ;var RQ=X(()=>{UQ();NQ();zQ();o.prototype.add=o.prototype.push=BQ;o.prototype.has=wQ;FQ=o});function o$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var DQ;var qQ=X(()=>{DQ=o$});function s$(Q,J){return Q.has(J)}var OQ;var VQ=X(()=>{OQ=s$});function e$(Q,J,Y,Z,H,W){var x=Y&a$,U=Q.length,B=J.length;if(U!=B&&!(x&&B>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&t$?new FQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],q=J[z];if(Z)var f=x?Z(q,R,z,J,Q,W):Z(R,q,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!DQ(J,function(C,_){if(!OQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===q||H(R,q,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var a$=1,t$=2,s;var C1=X(()=>{RQ();qQ();VQ();s=e$});var QJ,_1;var MQ=X(()=>{y();QJ=D.Uint8Array,_1=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var LQ;var fQ=X(()=>{LQ=$J});function JJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var PQ;var IQ=X(()=>{PQ=JJ});function RJ(Q,J,Y,Z,H,W,x){switch(Y){case FJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case zJ:if(Q.byteLength!=J.byteLength||!W(new _1(Q),new _1(J)))return!1;return!0;case HJ:case WJ:case KJ:return _Q(+Q,+J);case xJ:return Q.name==J.name&&Q.message==J.message;case GJ:case NJ:return Q==J+"";case UJ:var U=LQ;case BJ:var B=Z&ZJ;if(U||(U=PQ),Q.size!=J.size&&!B)return!1;var K=x.get(Q);if(K)return K==J;Z|=XJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case wJ:if(k1)return k1.call(Q)==k1.call(J)}return!1}var ZJ=1,XJ=2,HJ="[object Boolean]",WJ="[object Date]",xJ="[object Error]",UJ="[object Map]",KJ="[object Number]",GJ="[object RegExp]",BJ="[object Set]",NJ="[object String]",wJ="[object Symbol]",zJ="[object ArrayBuffer]",FJ="[object DataView]",CQ,k1,EQ;var vQ=X(()=>{kQ();MQ();YJ();C1();fQ();IQ();CQ=m?m.prototype:void 0,k1=CQ?CQ.valueOf:void 0;EQ=RJ});function DJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var dQ;var gQ=X(()=>{dQ=DJ});var qJ,w;var M=X(()=>{qJ=Array.isArray,w=qJ});function OJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:dQ(Z,Y(Q))}var pQ;var yQ=X(()=>{gQ();M();pQ=OJ});function VJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var mQ;var SQ=X(()=>{mQ=VJ});function MJ(){return[]}var AQ;var jQ=X(()=>{AQ=MJ});var LJ,fJ,hQ,PJ,nQ;var bQ=X(()=>{SQ();jQ();LJ=Object.prototype,fJ=LJ.propertyIsEnumerable,hQ=Object.getOwnPropertySymbols,PJ=!hQ?AQ:function(Q){if(Q==null)return[];return Q=Object(Q),mQ(hQ(Q),function(J){return fJ.call(Q,J)})},nQ=PJ});function IJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var iQ;var uQ=X(()=>{iQ=IJ});function CJ(Q){return Q!=null&&typeof Q=="object"}var O;var S=X(()=>{O=CJ});function kJ(Q){return O(Q)&&L(Q)==_J}var _J="[object Arguments]",E1;var lQ=X(()=>{a();S();E1=kJ});var TQ,EJ,vJ,dJ,t;var v1=X(()=>{lQ();S();TQ=Object.prototype,EJ=TQ.hasOwnProperty,vJ=TQ.propertyIsEnumerable,dJ=E1(function(){return arguments}())?E1:function(Q){return O(Q)&&EJ.call(Q,"callee")&&!vJ.call(Q,"callee")},t=dJ});function gJ(){return!1}var cQ;var rQ=X(()=>{cQ=gJ});var Q1={};aQ(Q1,{default:()=>A});var tQ,oQ,pJ,sQ,yJ,mJ,A;var d1=X(()=>{y();rQ();tQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,oQ=tQ&&typeof e=="object"&&e&&!e.nodeType&&e,pJ=oQ&&oQ.exports===tQ,sQ=pJ?D.Buffer:void 0,yJ=sQ?sQ.isBuffer:void 0,mJ=yJ||cQ,A=mJ});function jJ(Q,J){var Y=typeof Q;return J=J==null?SJ:J,!!J&&(Y=="number"||Y!="symbol"&&AJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var SJ=9007199254740991,AJ,$1;var g1=X(()=>{AJ=/^(?:0|[1-9]\d*)$/;$1=jJ});function nJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,j;var J1=X(()=>{j=nJ});function B8(Q){return O(Q)&&j(Q.length)&&!!G[L(Q)]}var bJ="[object Arguments]",iJ="[object Array]",uJ="[object Boolean]",lJ="[object Date]",TJ="[object Error]",cJ="[object Function]",rJ="[object Map]",oJ="[object Number]",sJ="[object Object]",aJ="[object RegExp]",tJ="[object Set]",eJ="[object String]",Q8="[object WeakMap]",$8="[object ArrayBuffer]",J8="[object DataView]",Y8="[object Float32Array]",Z8="[object Float64Array]",X8="[object Int8Array]",H8="[object Int16Array]",W8="[object Int32Array]",x8="[object Uint8Array]",U8="[object Uint8ClampedArray]",K8="[object Uint16Array]",G8="[object Uint32Array]",G,eQ;var Q5=X(()=>{a();J1();S();G={};G[Y8]=G[Z8]=G[X8]=G[H8]=G[W8]=G[x8]=G[U8]=G[K8]=G[G8]=!0;G[bJ]=G[iJ]=G[$8]=G[uJ]=G[J8]=G[lJ]=G[TJ]=G[cJ]=G[rJ]=G[oJ]=G[sJ]=G[aJ]=G[tJ]=G[eJ]=G[Q8]=!1;eQ=B8});function N8(Q){return function(J){return Q(J)}}var $5;var J5=X(()=>{$5=N8});var Z1={};aQ(Z1,{default:()=>X1});var Z5,i,z8,p1,F8,X1;var X5=X(()=>{w8();Z5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Z5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,z8=i&&i.exports===Z5,p1=z8&&Y5.process,F8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return p1&&p1.binding&&p1.binding("util")}catch(J){}}(),X1=F8});var H5,R8,H1;var y1=X(()=>{Q5();J5();X5();H5=X1&&X1.isTypedArray,R8=H5?$5(H5):eQ,H1=R8});function O8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?iQ(Q.length,String):[],B=U.length;for(var K in Q)if((J||q8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,B))))U.push(K);return U}var D8,q8,W5;var x5=X(()=>{uQ();v1();M();d1();g1();y1();D8=Object.prototype,q8=D8.hasOwnProperty;W5=O8});function M8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||V8;return Q===Y}var V8,U5;var K5=X(()=>{V8=Object.prototype;U5=M8});function L8(Q,J){return function(Y){return Q(J(Y))}}var G5;var B5=X(()=>{G5=L8});var f8,N5;var w5=X(()=>{B5();f8=G5(Object.keys,Object),N5=f8});function C8(Q){if(!U5(Q))return N5(Q);var J=[];for(var Y in Object(Q))if(I8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var P8,I8,z5;var F5=X(()=>{K5();w5();P8=Object.prototype,I8=P8.hasOwnProperty;z5=C8});function k8(Q){return Q!=null&&j(Q.length)&&!R5(Q)}var D5;var q5=X(()=>{_8();J1();D5=k8});function E8(Q){return D5(Q)?W5(Q):z5(Q)}var W1;var m1=X(()=>{x5();F5();q5();W1=E8});function v8(Q){return pQ(Q,W1,nQ)}var S1;var O5=X(()=>{yQ();bQ();m1();S1=v8});function y8(Q,J,Y,Z,H,W){var x=Y&d8,U=S1(Q),B=U.length,K=S1(J),F=K.length;if(B!=F&&!x)return!1;var z=B;while(z--){var N=U[z];if(!(x?N in J:p8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var q=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<B){N=U[z];var C=Q[N],_=J[N];if(Z)var e1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(e1===void 0?C===_||H(C,_,Y,Z,W):e1)){q=!1;break}f||(f=N=="constructor")}if(q&&!f){var T=Q.constructor,c=J.constructor;if(T!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof T=="function"&&T instanceof T&&typeof c=="function"&&c instanceof c))q=!1}return W.delete(Q),W.delete(J),q}var d8=1,g8,p8,V5;var M5=X(()=>{O5();g8=Object.prototype,p8=g8.hasOwnProperty;V5=y8});var m8,U1;var L5=X(()=>{x1();y();m8=P(D,"DataView"),U1=m8});var S8,K1;var f5=X(()=>{x1();y();S8=P(D,"Promise"),K1=S8});var A8,G1;var P5=X(()=>{x1();y();A8=P(D,"Set"),G1=A8});var j8,B1;var I5=X(()=>{x1();y();j8=P(D,"WeakMap"),B1=j8});var C5="[object Map]",n8="[object Object]",_5="[object Promise]",k5="[object Set]",E5="[object WeakMap]",v5="[object DataView]",b8,i8,u8,l8,T8,k,A1;var d5=X(()=>{L5();xQ();f5();P5();I5();a();h8();b8=E(U1),i8=E(d),u8=E(K1),l8=E(G1),T8=E(B1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=v5||d&&k(new d)!=C5||K1&&k(K1.resolve())!=_5||G1&&k(new G1)!=k5||B1&&k(new B1)!=E5)k=function(Q){var J=L(Q),Y=J==n8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case b8:return v5;case i8:return C5;case u8:return _5;case l8:return k5;case T8:return E5}return J};A1=k});function o8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?p5:A1(Q),K=U?p5:A1(J);B=B==g5?N1:B,K=K==g5?N1:K;var F=B==N1,z=K==N1,N=B==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):EQ(Q,J,B,Y,Z,H,W);if(!(Y&c8)){var V=F&&y5.call(Q,"__wrapped__"),R=z&&y5.call(J,"__wrapped__");if(V||R){var q=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(q,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),V5(Q,J,Y,Z,H,W)}var c8=1,g5="[object Arguments]",p5="[object Array]",N1="[object Object]",r8,y5,m5;var S5=X(()=>{I1();C1();vQ();M5();d5();M();d1();y1();r8=Object.prototype,y5=r8.hasOwnProperty;m5=o8});function A5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return m5(Q,J,Y,Z,A5,H)}var w1;var j1=X(()=>{S5();S();w1=A5});function t8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var B=U[0],K=Q[B],F=U[1];if(x&&U[2]){if(K===void 0&&!(B in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,B,Q,J,z);if(!(N===void 0?w1(F,K,s8|a8,Z,z):N))return!1}}return!0}var s8=1,a8=2,j5;var h5=X(()=>{I1();j1();j5=t8});function QY(Q){return Q===Q&&!n5(Q)}var z1;var h1=X(()=>{e8();z1=QY});function $Y(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var b5;var i5=X(()=>{h1();m1();b5=$Y});function JY(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var n1=X(()=>{F1=JY});function YY(Q){var J=b5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||j5(Y,Q,J)}}var u5;var l5=X(()=>{h5();i5();n1();u5=YY});function XY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==ZY}var ZY="[object Symbol]",h;var R1=X(()=>{a();S();h=XY});function xY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||h(Q))return!0;return WY.test(Q)||!HY.test(Q)||J!=null&&Q in Object(J)}var HY,WY,n;var D1=X(()=>{M();R1();HY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WY=/^\w*$/;n=xY});function GY(Q){var J=T5(Q,function(Z){if(Y.size===KY)Y.clear();return Z}),Y=J.cache;return J}var KY=500,c5;var r5=X(()=>{UY();c5=GY});var BY,NY,wY,o5;var s5=X(()=>{r5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NY=/\\(\\)?/g,wY=c5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(NY,"$1"):Z||Y)}),J}),o5=wY});function zY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var a5;var t5=X(()=>{a5=zY});function $$(Q){if(typeof Q=="string")return Q;if(w(Q))return a5(Q,$$)+"";if(h(Q))return Q$?Q$.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-FY?"-0":J}var FY=1/0,e5,Q$,J$;var Y$=X(()=>{kQ();t5();M();R1();e5=m?m.prototype:void 0,Q$=e5?e5.toString:void 0;J$=$$});function RY(Q){return Q==null?"":J$(Q)}var Z$;var X$=X(()=>{Y$();Z$=RY});function DY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:o5(Z$(Q))}var q1;var b1=X(()=>{M();D1();s5();X$();q1=DY});function OY(Q){if(typeof Q=="string"||h(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-qY?"-0":J}var qY=1/0,I;var u=X(()=>{R1();I=OY});function VY(Q,J){J=q1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var i1=X(()=>{b1();u();O1=VY});function MY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var H$;var W$=X(()=>{i1();H$=MY});function LY(Q,J){return Q!=null&&J in Object(Q)}var x$;var U$=X(()=>{x$=LY});function fY(Q,J,Y){J=q1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&j(H)&&$1(x,H)&&(w(Q)||t(Q))}var K$;var G$=X(()=>{b1();v1();M();g1();J1();u();K$=fY});function PY(Q,J){return Q!=null&&K$(Q,J,x$)}var B$;var N$=X(()=>{U$();G$();B$=PY});function _Y(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=H$(Y,Q);return Z===void 0&&Z===J?B$(Y,Q):w1(J,Z,IY|CY)}}var IY=1,CY=2,w$;var z$=X(()=>{j1();W$();N$();D1();h1();n1();u();w$=_Y});function kY(Q){return Q}var F$;var R$=X(()=>{F$=kY});function EY(Q){return function(J){return J==null?void 0:J[Q]}}var D$;var q$=X(()=>{D$=EY});function vY(Q){return function(J){return O1(J,Q)}}var O$;var V$=X(()=>{i1();O$=vY});function dY(Q){return n(Q)?D$(I(Q)):O$(Q)}var M$;var L$=X(()=>{q$();V$();D1();u();M$=dY});function gY(Q){if(typeof Q=="function")return Q;if(Q==null)return F$;if(typeof Q=="object")return w(Q)?w$(Q[0],Q[1]):u5(Q);return M$(Q)}var f$;var P$=X(()=>{l5();z$();R$();M();L$();f$=gY});function pY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var I$;var C$=X(()=>{I$=pY});function yY(Q,J){return Q&&Q.length?I$(Q,f$(J,2)):0}var b;var _$=X(()=>{P$();C$();b=yY});import{randomUUID as u1}from"crypto";var k$=()=>{};function nX(){return l1}function bX(Q){l1=Q}function iX(Q){return V1.has(Q)?V1.get(Q):void 0}function uX(Q,J){V1.set(Q,J)}function lX(Q){return T1.get(Q)}function TX(Q,J){T1.set(Q,J)}function E$(){l1=null,V1.clear(),T1.clear()}function cX(){return c1}function rX(Q){c1=Q}function oX(){c1=void 0}var l1=null,V1,T1,c1;var v$=X(()=>{V1=new Map;T1=new Map});function d$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var g$=()=>{};import{realpathSync as p$}from"fs";import{cwd as mY}from"process";function Z9(Q){return r1.add(Q),()=>r1.delete(Q)}function X9(){L1()}function L1(){for(let Q of r1)try{Q()}catch{}}function y$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof p$==="function"){let Y=mY();try{Q=p$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),activeDurationMs:0,turnActiveSince:null,lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],pendingSessionWakeup:null,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,lspDeferLatchedTools:null,deferredDeltaLegacySession:!1,sessionEpochMs:Date.now()-process.uptime()*1000,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function H9(){return $.sessionId}function W9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=u1(),$.sessionProjectDir=null,m$($.sessionId),$.sessionId}function x9(){return $.parentSessionId}function U9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,m$(Q)}function m$(Q){$.pendingSessionWakeup=null,jY(),$.sessionEpochMs=Date.now(),o1.emit(Q)}function G9(){return $.sessionProjectDir}function B9(){return $.originalCwd}function N9(){return $.projectRoot}function w9(Q){$.originalCwd=Q.normalize("NFC")}function z9(Q){$.projectRoot=Q.normalize("NFC")}function F9(){return $.cwd}function R9(Q){$.cwd=Q.normalize("NFC")}function D9(){return $.directConnectServerUrl}function q9(Q){$.directConnectServerUrl=Q}function O9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function V9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function M9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function L9(){return $.totalCostUSD}function f9(){return $.totalAPIDuration}function P9(){if($.turnActiveSince==null)$.turnActiveSince=Date.now()}function I9(){if($.turnActiveSince!=null)$.activeDurationMs+=Date.now()-$.turnActiveSince,$.turnActiveSince=null}function C9(){return $.activeDurationMs+($.turnActiveSince!=null?Date.now()-$.turnActiveSince:0)}function _9(){return $.totalAPIDurationWithoutRetries}function k9(){return $.totalToolDuration}function E9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function v9(){return $.turnHookDurationMs}function d9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function g9(){$.turnHookDurationMs=0,$.turnHookCount=0}function p9(){return $.turnHookCount}function y9(){return $.turnToolDurationMs}function m9(){$.turnToolDurationMs=0,$.turnToolCount=0}function S9(){return $.turnToolCount}function A9(){return $.turnClassifierDurationMs}function j9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function h9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function n9(){return $.turnClassifierCount}function b9(){return $.statsStore}function i9(Q){$.statsStore=Q}function u9(Q){if(Q)S$();else s1=!0}function l9(){if(s1)S$()}function S$(){$.lastInteractionTime=Date.now(),s1=!1}function T9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function c9(){return $.totalLinesAdded}function r9(){return $.totalLinesRemoved}function o9(){return b(Object.values($.modelUsage),"inputTokens")}function A$(){return b(Object.values($.modelUsage),"outputTokens")}function s9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function a9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function t9(){return b(Object.values($.modelUsage),"webSearchRequests")}function e9(){return A$()-a1}function QH(){return t1}function $H(Q){a1=A$(),t1=Q,f1=0}function JH(){return f1}function YH(){f1++}function ZH(){$.hasUnknownModelCost=!0}function XH(){return $.hasUnknownModelCost}function HH(){return $.lastMainRequestId}function WH(Q){$.lastMainRequestId=Q}function xH(){return $.lastApiCompletionTimestamp}function UH(Q){$.lastApiCompletionTimestamp=Q}function KH(){$.pendingPostCompaction=!0}function GH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function BH(){return $.lastInteractionTime}function NH(){if(M1=!0,l)clearTimeout(l);l=setTimeout(()=>{M1=!1,l=void 0},j$),l.unref?.()}function wH(){return M1}async function zH(){while(M1)await new Promise((Q)=>setTimeout(Q,j$).unref?.())}function FH(){return $.modelUsage}function RH(Q){return $.modelUsage[Q]}function DH(){return $.mainLoopModelOverride}function qH(){return $.initialMainLoopModel}function OH(Q){$.mainLoopModelOverride=Q}function VH(Q){$.initialMainLoopModel=Q}function MH(){return $.sdkBetas}function LH(Q){$.sdkBetas=Q}function fH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.activeDurationMs=0,$.turnActiveSince=null,$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function PH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;$.activeDurationMs=x??0,$.turnActiveSince=null}function IH(){throw Error("resetStateForTests can only be called in tests")}function CH(){return $.modelStrings}function _H(Q){$.modelStrings=Q}function kH(){$.modelStrings=null}function EH(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function vH(){return $.meter}function dH(){return $.sessionCounter}function gH(){return $.locCounter}function pH(){return $.prCounter}function yH(){return $.commitCounter}function mH(){return $.costCounter}function SH(){return $.tokenCounter}function AH(){return $.codeEditToolDecisionCounter}function jH(){return $.activeTimeCounter}function hH(){return $.loggerProvider}function nH(Q){$.loggerProvider=Q}function bH(){return $.eventLogger}function iH(Q){$.eventLogger=Q}function uH(){return $.meterProvider}function lH(Q){$.meterProvider=Q}function TH(){return $.tracerProvider}function cH(Q){$.tracerProvider=Q}function SY(){return!$.isInteractive}function rH(){return $.isInteractive}function oH(Q){$.isInteractive=Q}function sH(){return $.clientType}function aH(Q){$.clientType=Q}function tH(){return $.sdkAgentProgressSummariesEnabled}function eH(Q){$.sdkAgentProgressSummariesEnabled=Q}function Q4(){return $.kairosActive}function $4(Q){$.kairosActive=Q,L1()}function J4(){return $.strictToolResultPairing}function Y4(Q){$.strictToolResultPairing=Q}function Z4(){return $.userMsgOptIn}function X4(Q){$.userMsgOptIn=Q,L1()}function H4(){return $.sessionSource}function W4(Q){$.sessionSource=Q}function x4(){return $.questionPreviewFormat}function U4(Q){$.questionPreviewFormat=Q}function K4(){return $.agentColorMap}function G4(){return $.flagSettingsPath}function B4(Q){$.flagSettingsPath=Q}function N4(){return $.flagSettingsInline}function w4(Q){$.flagSettingsInline=Q}function z4(){return $.sessionIngressToken}function F4(Q){$.sessionIngressToken=Q}function R4(){return $.oauthTokenFromFd}function D4(Q){$.oauthTokenFromFd=Q}function q4(){return $.apiKeyFromFd}function O4(Q){$.apiKeyFromFd=Q}function V4(Q){$.lastAPIRequest=Q}function M4(){return $.lastAPIRequest}function L4(Q){$.lastAPIRequestMessages=Q}function f4(){return $.lastAPIRequestMessages}function P4(Q){$.lastClassifierRequests=Q}function I4(){return $.lastClassifierRequests}function C4(Q){$.cachedClaudeMdContent=Q}function _4(){return $.cachedClaudeMdContent}function k4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function E4(){return $.allowedSettingSources}function v4(Q){$.allowedSettingSources=Q}function d4(){return SY()&&$.clientType!=="claude-vscode"}function g4(Q){$.inlinePlugins=Q}function p4(){return $.inlinePlugins}function y4(Q){$.useCoworkPlugins=Q,E$()}function m4(){return $.useCoworkPlugins}function S4(Q){$.sessionBypassPermissionsMode=Q}function A4(){return $.sessionBypassPermissionsMode}function j4(Q){$.scheduledTasksEnabled=Q}function h4(){return $.scheduledTasksEnabled}function n4(){return $.sessionCronTasks}function b4(Q){$.sessionCronTasks.push(Q)}function i4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function u4(){return $.pendingSessionWakeup}function l4(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function T4(){$.pendingSessionWakeup=null}function c4(Q){$.sessionTrustAccepted=Q}function r4(){return $.sessionTrustAccepted}function o4(Q){$.sessionPersistenceDisabled=Q}function s4(){return $.sessionPersistenceDisabled}function a4(){return $.hasExitedPlanMode}function t4(Q){$.hasExitedPlanMode=Q}function e4(){return $.needsPlanModeExitAttachment}function Q3(Q){$.needsPlanModeExitAttachment=Q}function $3(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function J3(){return $.needsAutoModeExitAttachment}function Y3(Q){$.needsAutoModeExitAttachment=Q}function Z3(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function X3(Q){$.initJsonSchema=Q}function H3(){return $.initJsonSchema}function W3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function x3(){return $.registeredHooks}function U3(){$.registeredHooks=null}function K3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function G3(){$.initJsonSchema=null,$.registeredHooks=null}function B3(){return $.planSlugCache}function N3(){return $.sessionCreatedTeams}function w3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function z3(){return $.teleportedSessionInfo}function F3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function R3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function D3(){return $.invokedSkills}function q3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function O3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function V3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function M3(Q,J){}function L3(){return AY}function f3(){return $.mainThreadAgentType}function P3(Q){$.mainThreadAgentType=Q}function I3(){return $.isRemoteMode}function C3(Q){$.isRemoteMode=Q}function _3(){return $.systemPromptSectionCache}function k3(Q,J){$.systemPromptSectionCache.set(Q,J)}function E3(){$.systemPromptSectionCache.clear()}function v3(){return $.lastEmittedDate}function d3(Q){$.lastEmittedDate=Q}function g3(){return $.additionalDirectoriesForClaudeMd}function p3(Q){$.additionalDirectoriesForClaudeMd=Q}function y3(){return $.allowedChannels}function m3(Q){$.allowedChannels=Q,L1()}function S3(){return $.hasDevChannels}function A3(Q){$.hasDevChannels=Q}function j3(){return $.largeSystemPromptDetected}function h3(Q){$.largeSystemPromptDetected=Q}function n3(){return $.afkModeHeaderLatched}function b3(Q){$.afkModeHeaderLatched=Q}function i3(){return $.fastModeHeaderLatched}function u3(Q){$.fastModeHeaderLatched=Q}function l3(){return $.thinkingClearLatched}function T3(Q){$.thinkingClearLatched=Q}function c3(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function r3(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function o3(){return $.deferredDeltaLegacySession}function s3(Q){$.deferredDeltaLegacySession=Q}function jY(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function a3(){return $.sessionEpochMs}function t3(){return $.promptId}function e3(Q){$.promptId=Q}function QW(){return!1}function $W(){return null}var r1,$,o1,K9,s1=!1,a1=0,t1=null,f1=0,M1=!1,l,j$=150,AY;var hY=X(()=>{_$();k$();v$();g$();r1=new Set;$=y$();o1=d$();K9=o1.subscribe;AY=[]});
|
|
2
|
-
export{p as Wka,I1 as Xka,FQ as Yka,RQ as Zka,OQ as _ka,VQ as $ka,_1 as ala,MQ as bla,PQ as cla,IQ as dla,dQ as ela,gQ as fla,w as gla,M as hla,pQ as ila,yQ as jla,mQ as kla,SQ as lla,AQ as mla,jQ as nla,nQ as ola,bQ as pla,O as qla,S as rla,t as sla,v1 as tla,A as ula,d1 as vla,$1 as wla,g1 as xla,$5 as yla,J5 as zla,X1 as Ala,X5 as Bla,H1 as Cla,y1 as Dla,W5 as Ela,x5 as Fla,U5 as Gla,K5 as Hla,G5 as Ila,B5 as Jla,D5 as Kla,q5 as Lla,W1 as Mla,m1 as Nla,S1 as Ola,O5 as Pla,G1 as Qla,P5 as Rla,A1 as Sla,d5 as Tla,w1 as Ula,j1 as Vla,h as Wla,R1 as Xla,a5 as Yla,t5 as Zla,Z$ as _la,X$ as $la,q1 as ama,b1 as bma,I as cma,u as dma,O1 as ema,i1 as fma,F$ as gma,R$ as hma,f$ as ima,P$ as jma,nX as kma,bX as lma,iX as mma,uX as nma,lX as oma,TX as pma,E$ as qma,cX as rma,rX as sma,oX as tma,v$ as uma,d$ as vma,g$ as wma,Z9 as xma,X9 as yma,H9 as zma,W9 as Ama,x9 as Bma,U9 as Cma,K9 as Dma,G9 as Ema,B9 as Fma,N9 as Gma,w9 as Hma,z9 as Ima,F9 as Jma,R9 as Kma,D9 as Lma,q9 as Mma,O9 as Nma,V9 as Oma,M9 as Pma,L9 as Qma,f9 as Rma,P9 as Sma,I9 as Tma,C9 as Uma,_9 as Vma,k9 as Wma,E9 as Xma,v9 as Yma,d9 as Zma,g9 as _ma,p9 as $ma,y9 as ana,m9 as bna,S9 as cna,A9 as dna,j9 as ena,h9 as fna,n9 as gna,b9 as hna,i9 as ina,u9 as jna,l9 as kna,T9 as lna,c9 as mna,r9 as nna,o9 as ona,A$ as pna,s9 as qna,a9 as rna,t9 as sna,e9 as tna,QH as una,$H as vna,JH as wna,YH as xna,ZH as yna,XH as zna,HH as Ana,WH as Bna,xH as Cna,UH as Dna,KH as Ena,GH as Fna,BH as Gna,NH as Hna,wH as Ina,zH as Jna,FH as Kna,RH as Lna,DH as Mna,qH as Nna,OH as Ona,VH as Pna,MH as Qna,LH as Rna,fH as Sna,PH as Tna,IH as Una,CH as Vna,_H as Wna,kH as Xna,EH as Yna,vH as Zna,dH as _na,gH as $na,pH as aoa,yH as boa,mH as coa,SH as doa,AH as eoa,jH as foa,hH as goa,nH as hoa,bH as ioa,iH as joa,uH as koa,lH as loa,TH as moa,cH as noa,SY as ooa,rH as poa,oH as qoa,sH as roa,aH as soa,tH as toa,eH as uoa,Q4 as voa,$4 as woa,J4 as xoa,Y4 as yoa,Z4 as zoa,X4 as Aoa,H4 as Boa,W4 as Coa,x4 as Doa,U4 as Eoa,K4 as Foa,G4 as Goa,B4 as Hoa,N4 as Ioa,w4 as Joa,z4 as Koa,F4 as Loa,R4 as Moa,D4 as Noa,q4 as Ooa,O4 as Poa,V4 as Qoa,M4 as Roa,L4 as Soa,f4 as Toa,P4 as Uoa,I4 as Voa,C4 as Woa,_4 as Xoa,k4 as Yoa,E4 as Zoa,v4 as _oa,d4 as $oa,g4 as apa,p4 as bpa,y4 as cpa,m4 as dpa,S4 as epa,A4 as fpa,j4 as gpa,h4 as hpa,n4 as ipa,b4 as jpa,i4 as kpa,u4 as lpa,l4 as mpa,T4 as npa,c4 as opa,r4 as ppa,o4 as qpa,s4 as rpa,a4 as spa,t4 as tpa,e4 as upa,Q3 as vpa,$3 as wpa,J3 as xpa,Y3 as ypa,Z3 as zpa,X3 as Apa,H3 as Bpa,W3 as Cpa,x3 as Dpa,U3 as Epa,K3 as Fpa,G3 as Gpa,B3 as Hpa,N3 as Ipa,w3 as Jpa,z3 as Kpa,F3 as Lpa,R3 as Mpa,D3 as Npa,q3 as Opa,O3 as Ppa,V3 as Qpa,M3 as Rpa,L3 as Spa,f3 as Tpa,P3 as Upa,I3 as Vpa,C3 as Wpa,_3 as Xpa,k3 as Ypa,E3 as Zpa,v3 as _pa,d3 as $pa,g3 as aqa,p3 as bqa,y3 as cqa,m3 as dqa,S3 as eqa,A3 as fqa,j3 as gqa,h3 as hqa,n3 as iqa,b3 as jqa,i3 as kqa,u3 as lqa,l3 as mqa,T3 as nqa,c3 as oqa,r3 as pqa,o3 as qqa,s3 as rqa,jY as sqa,a3 as tqa,t3 as uqa,e3 as vqa,QW as wqa,$W as xqa,hY as yqa};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ux as J,Vx as Z,YG as z,ZG as M,oF as L,pF as h}from"./cli-1.0.12-g2qsv3tc.mjs";import{kZ as X}from"./cli-1.0.12-fs27jw81.mjs";import{X3 as W}from"./cli-1.0.12-0hs0n73e.mjs";import{Vpa as H,yqa as V}from"./cli-1.0.12-y1c7c1a1.mjs";import{dsa as D,hsa as U}from"./cli-1.0.12-ecf1es2x.mjs";function v(){let b=P.c(6),{addNotification:k,removeNotification:l}=L(),[j,Q]=x.useState(u),p;if(b[0]===Symbol.for("react.memo_cache_sentinel"))p=()=>{let{errors:y}=z();Q(y)},b[0]=p;else p=b[0];J(p);let q,w;if(b[1]!==k||b[2]!==j||b[3]!==l)q=()=>{if(H())return;if(j.length>0){let y=`Found ${j.length} settings ${j.length===1?"issue":"issues"} · /doctor for details`;k({key:B,text:y,color:"warning",priority:"high",timeoutMs:60000})}else l(B)},w=[j,k,l],b[1]=k,b[2]=j,b[3]=l,b[4]=q,b[5]=w;else q=b[4],w=b[5];return x.useEffect(q,w),j}function u(){let{errors:b}=z();return b}var P,x,B="settings-errors";var A=U(()=>{h();V();M();Z();P=D(X(),1),x=D(W(),1)});
|
|
2
|
-
export{v as vg,A as wg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Lka as w,Vka as F}from"./cli-1.0.12-bhvkmj7j.mjs";import{hsa as D}from"./cli-1.0.12-ecf1es2x.mjs";function Q(b){z=b}function V(){let b=z?.()??{};if(!w(process.env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB))return Object.keys(b).length>0?{...process.env,...b}:process.env;let d={...process.env,...b};for(let q of J)delete d[q],delete d[`INPUT_${q}`];return d}var J,z;var L=D(()=>{F();J=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_FOUNDRY_API_KEY","ANTHROPIC_CUSTOM_HEADERS","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_TRACES_HEADERS","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","GOOGLE_APPLICATION_CREDENTIALS","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_RUNTIME_URL","ALL_INPUTS","OVERRIDE_GITHUB_TOKEN","DEFAULT_WORKFLOW_TOKEN","SSH_SIGNING_KEY"]});
|
|
2
|
-
export{Q as bV,V as cV,L as dV};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{D$ as F,H$ as f,J_ as K,K_ as E,qga as U,yga as m}from"./cli-1.0.12-anfbb1k6.mjs";import{iia as v,jia as x}from"./cli-1.0.12-pp2g923k.mjs";import{Mja as D,Qja as g}from"./cli-1.0.12-crspnn4b.mjs";import{hsa as S}from"./cli-1.0.12-ecf1es2x.mjs";import{basename as H,dirname as b,join as I,sep as O}from"path";function _(q,B){if(!q)return{directory:B||v(),prefix:""};let G=F(q,B);if(q.endsWith("/")||q.endsWith(O))return{directory:G,prefix:""};let N=b(G),J=H(q);return{directory:N,prefix:J}}async function k(q){let B=Z.get(q);if(B)return B;try{let J=(await D().readdir(q)).filter((M)=>M.isDirectory()&&!M.name.startsWith(".")).map((M)=>({name:M.name,path:I(q,M.name),type:"directory"})).slice(0,100);return Z.set(q,J),J}catch(G){return U(G),[]}}async function P(q,B={}){let{basePath:G=v(),maxResults:N=10}=B,{directory:J,prefix:M}=_(q,G),V=await k(J),z=M.toLowerCase();return V.filter((X)=>X.name.toLowerCase().startsWith(z)).slice(0,N).map((X)=>({id:X.path,displayText:X.name+"/",description:"directory",metadata:{type:"directory"}}))}function o(q){return q.startsWith("~/")||q.startsWith("/")||q.startsWith("./")||q.startsWith("../")||q==="~"||q==="."||q===".."}async function u(q,B=!1){let G=`${q}:${B}`,N=A.get(G);if(N)return N;try{let V=(await D().readdir(q)).filter((z)=>B||!z.name.startsWith(".")).map((z)=>({name:z.name,path:I(q,z.name),type:z.isDirectory()?"directory":"file"})).sort((z,W)=>{if(z.type==="directory"&&W.type!=="directory")return-1;if(z.type!=="directory"&&W.type==="directory")return 1;return z.name.localeCompare(W.name)}).slice(0,100);return A.set(G,V),V}catch(J){return U(J),[]}}async function h(q,B={}){let{basePath:G=v(),maxResults:N=10,includeFiles:J=!0,includeHidden:M=!1}=B,{directory:V,prefix:z}=_(q,G),W=await u(V,M),X=z.toLowerCase(),j=W.filter((Q)=>{if(!J&&Q.type==="file")return!1;return Q.name.toLowerCase().startsWith(X)}).slice(0,N),w=q.includes("/")||q.includes(O),Y="";if(w){let Q=q.lastIndexOf("/"),$=q.lastIndexOf(O),L=Math.max(Q,$);Y=q.substring(0,L+1)}if(Y.startsWith("./")||Y.startsWith("."+O))Y=Y.slice(2);return j.map((Q)=>{let $=Y+Q.name;return{id:$,displayText:Q.type==="directory"?$+"/":$,metadata:{type:Q.type}}})}var R=500,T=300000,Z,A;var C=S(()=>{E();x();g();m();f();Z=new K({max:R,ttl:T}),A=new K({max:R,ttl:T})});
|
|
2
|
-
export{P as Ah,o as Bh,h as Ch,C as Dh};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Kz as c,Nz as T,Oz as _q,Rn as S,Rz as r,Sn as Zq,Sz as Vq,Tn as V,Un as $q,Xn as p,Yn as zq,Zx as u,_x as g,ay as Wq,gG as h,iG as Fq,uS as a,wS as Uq}from"./cli-1.0.12-g2qsv3tc.mjs";import{WX as w,XX as Nq,gY as j,hY as Qq,iY as m,kY as Xq,nY as d,oY as Yq}from"./cli-1.0.12-7tv5r0ph.mjs";import{G0 as J,I0 as N,l1 as Lq,tZ as v,uZ as H,vZ as y}from"./cli-1.0.12-fs27jw81.mjs";import{T3 as _,U3 as q,V3 as G,W3 as B}from"./cli-1.0.12-6s4gq7fa.mjs";import{X3 as Jq}from"./cli-1.0.12-0hs0n73e.mjs";import{Hda as Gq,uda as b}from"./cli-1.0.12-anfbb1k6.mjs";import{dsa as e,hsa as qq}from"./cli-1.0.12-ecf1es2x.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[U]=v(),k=H(),{columns:l}=w(),Y=Q.useMemo(()=>c(),[]),Z=Y===null?T(U):null,{setPreviewTheme:K,savePreview:M,cancelPreview:R}=y(),z=u((L)=>L.settings.syntaxHighlightingDisabled??!1),E=g();j("ThemePicker",!0);let W=S("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),i=Q.useCallback(()=>{if(Y===null){let L=!z;b("userSettings",{syntaxHighlightingDisabled:L}),E((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,E]);m("theme:toggleSyntaxHighlighting",i,{context:"ThemePicker"});let f=d($?()=>{}:void 0),D=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"},{label:"Terminal default (inherit colors)",value:"terminal"},{label:"Dracula",value:"dracula"},{label:"Catppuccin Mocha (dark)",value:"catppuccin-mocha"},{label:"Catppuccin Latte (light)",value:"catppuccin-latte"},{label:"Tokyo Night",value:"tokyo-night"},{label:"Nord",value:"nord"},{label:"Gruvbox Dark",value:"gruvbox-dark"}],[]),o=Q.useCallback((L)=>{K(L)},[K]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else a(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDE_CODE_SYNTAX_HIGHLIGHT=${process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(h,{options:D,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:D.length,defaultValue:k,defaultFocusValue:k})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Iq,{patch:Oq,dim:!1,filePath:"demo.js",firstLine:null,width:l})},U),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:f.pending?G(_,{children:["Press ",f.keyName," again to exit"]}):G(p,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Iq,Oq;var Aq=qq(()=>{Yq();Nq();Lq();Qq();Xq();Zq();Wq();Uq();Gq();Fq();zq();$q();_q();Vq();B();Q=e(Jq(),1),Iq=r,Oq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
|
|
2
|
-
export{mq as ih,Aq as jh};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{E0 as j,F0 as s,G0 as F,I0 as V,kZ as t,l1 as o,tZ as p}from"./cli-1.0.12-fs27jw81.mjs";import{U3 as w,V3 as g,W3 as y}from"./cli-1.0.12-6s4gq7fa.mjs";import{f_ as $,g_ as a,m_ as _,n_ as n}from"./cli-1.0.12-anfbb1k6.mjs";import{dsa as i,hsa as v}from"./cli-1.0.12-ecf1es2x.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
|
|
2
|
-
`)}var R;var m=v(()=>{a();s();R={branch:$.lineUpDownRight,lastBranch:$.lineUpRight,line:$.lineVertical,empty:" "}});function r(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let N;if(typeof M.invalidValue==="string")N=`"${M.invalidValue}"`;else if(M.invalidValue===null)N="null";else if(M.invalidValue===void 0)N="undefined";else N=String(M.invalidValue);Q.push(N)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(Jq,{}),N=Object.keys(Z).sort();W=F,Q="column",X=N.map((O)=>{let Y=Z[O]||[];Y.sort(qq);let D=r(Y),S=new Map;Y.forEach((L)=>{if(L.suggestion||L.docLink){let H=`${L.suggestion||""}|${L.docLink||""}`;if(!S.has(H))S.set(H,{suggestion:L.suggestion,docLink:L.docLink})}});let A=x(D,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return g(F,{flexDirection:"column",children:[w(V,{children:O}),w(F,{marginLeft:1,children:w(V,{dimColor:!0,children:A})}),S.size>0&&w(F,{flexDirection:"column",marginTop:1,children:Array.from(S.values()).map(e)})]},O)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=w(W,{flexDirection:Q,children:X}),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function e(J,q){return g(F,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&w(V,{dimColor:!0,wrap:"wrap",children:J.suggestion}),J.docLink&&g(V,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]})]},`suggestion-pair-${q}`)}function qq(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function Jq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h;var Mq=v(()=>{f();o();m();y();h=i(t(),1)});
|
|
3
|
-
export{Hq as rg,Mq as sg};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Hi as a,Ii as l}from"./cli-1.0.12-76954fs2.mjs";import{Ji as m,Ki as c}from"./cli-1.0.12-cdv6sj7q.mjs";import{U3 as e,W3 as n}from"./cli-1.0.12-6s4gq7fa.mjs";import{hsa as s}from"./cli-1.0.12-ecf1es2x.mjs";async function f(o,r){let t=await m();if(t.type==="message")return o(t.value),null;return e(a,{startingMessage:"Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.",onDone:(i)=>{r.onChangeAPIKey(),o(i?"Login successful":"Login interrupted")}})}var g=s(()=>{l();c();n()});
|
|
2
|
-
export{f as Fi,g as Gi};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{$n as Xf,Zx as g,_x as Zf,ao as Uf,ay as _f}from"./cli-1.0.12-g2qsv3tc.mjs";import{jY as Wf,kY as Tf}from"./cli-1.0.12-7tv5r0ph.mjs";import{E0 as F,F0 as cf,G0 as r,I0 as q,M0 as Vf,kZ as n,l1 as a,qZ as s,rZ as If}from"./cli-1.0.12-fs27jw81.mjs";import{T3 as Qf,U3 as H,V3 as X,W3 as T}from"./cli-1.0.12-6s4gq7fa.mjs";import{X3 as Rf}from"./cli-1.0.12-0hs0n73e.mjs";import{N5 as Nf,P5 as b,Q5 as _,R5 as Hf,T5 as j,W5 as qf,Y5 as zf,e6 as Jf,f6 as hf,k6 as M,n6 as p,o6 as Ef}from"./cli-1.0.12-7gt5bvcm.mjs";import{$8 as yf,_8 as i}from"./cli-1.0.12-65451rqd.mjs";import{Fba as Bf,Hda as Cf,Tea as Pf,oba as w,uda as Gf,yea as l}from"./cli-1.0.12-anfbb1k6.mjs";import{Nga as mf,Vga as Of}from"./cli-1.0.12-jv9bdyr3.mjs";import{Xia as D,_ia as Lf}from"./cli-1.0.12-2yt4jp97.mjs";import{dsa as x,hsa as o}from"./cli-1.0.12-ecf1es2x.mjs";function e(m){let f=t.c(2),{cooldown:G}=m;if(G){let z;if(f[0]===Symbol.for("react.memo_cache_sentinel"))z=H(q,{color:"promptBorder",dimColor:!0,children:w}),f[0]=z;else z=f[0];return z}let N;if(f[1]===Symbol.for("react.memo_cache_sentinel"))N=H(q,{color:"fastMode",children:w}),f[1]=N;else N=f[1];return N}function U(m=!0,f=!1){if(!m)return w;let G=s(l().theme);if(f)return i.dim(F("promptBorder",G)(w));return F("fastMode",G)(w)}var t;var ff=o(()=>{yf();Bf();a();Pf();If();cf();T();t=x(n(),1)});function S(m,f){if(zf(),Gf("userSettings",{fastMode:m?!0:void 0}),m)f((G)=>{let N=!j(G.mainLoopModel);return{...G,...N?{mainLoopModel:Hf(),mainLoopModelForSession:null}:{},fastMode:!0}});else f((G)=>({...G,fastMode:!1}))}function Df(m){let f=kf.c(30),{onDone:G,unavailableReason:N}=m,z=g(vf),V=g(Af),W=Zf(),[J,wf]=Kf.useState(V??!1),y;if(f[0]===Symbol.for("react.memo_cache_sentinel"))y=qf(),f[0]=y;else y=f[0];let B=y,$=B.status==="cooldown",Q=N!==null,P;if(f[1]===Symbol.for("react.memo_cache_sentinel"))P=p(M(!0)),f[1]=P;else P=f[1];let d=P,I;if(f[2]!==J||f[3]!==Q||f[4]!==z||f[5]!==G||f[6]!==W)I=function(){if(Q)return;if(S(J,W),D("tengu_fast_mode_toggled",{enabled:J,source:"picker"}),J){let v=U(J),rf=!j(z)?` · model set to ${_}`:"";G(`${v} Fast mode ON${rf} · ${d}`)}else W(uf),G("Fast mode OFF")},f[2]=J,f[3]=Q,f[4]=z,f[5]=G,f[6]=W,f[7]=I;else I=f[7];let u=I,c;if(f[8]!==V||f[9]!==Q||f[10]!==G||f[11]!==W)c=function(){if(Q){if(V)S(!1,W);G("Fast mode OFF",{display:"system"});return}let v=V?`${U()} Kept Fast mode ON`:"Kept Fast mode OFF";G(v,{display:"system"})},f[8]=V,f[9]=Q,f[10]=G,f[11]=W,f[12]=c;else c=f[12];let A=c,L;if(f[13]!==Q)L=function(){if(Q)return;wf(jf)},f[13]=Q,f[14]=L;else L=f[14];let Z=L,O;if(f[15]!==u||f[16]!==Z)O={"confirm:yes":u,"confirm:nextField":Z,"confirm:next":Z,"confirm:previous":Z,"confirm:cycleMode":Z,"confirm:toggle":Z},f[15]=u,f[16]=Z,f[17]=O;else O=f[17];let C;if(f[18]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},f[18]=C;else C=f[18];Wf(O,C);let h;if(f[19]===Symbol.for("react.memo_cache_sentinel"))h=X(q,{children:[H(e,{cooldown:$})," Fast mode (research preview)"]}),f[19]=h;else h=f[19];let Yf=h,k;if(f[20]!==Q)k=(Y)=>Y.pending?X(q,{children:["Press ",Y.keyName," again to exit"]}):Q?H(q,{children:"Esc to cancel"}):H(q,{children:"Tab to toggle · Enter to confirm · Esc to cancel"}),f[20]=Q,f[21]=k;else k=f[21];let K;if(f[22]!==J||f[23]!==N)K=N?H(r,{marginLeft:2,children:H(q,{color:"error",children:N})}):X(Qf,{children:[H(r,{flexDirection:"column",gap:0,marginLeft:2,children:X(r,{flexDirection:"row",gap:2,children:[H(q,{bold:!0,children:"Fast mode"}),H(q,{color:J?"fastMode":void 0,bold:J,children:J?"ON ":"OFF"}),H(q,{dimColor:!0,children:d})]})}),$&&B.status==="cooldown"&&H(r,{marginLeft:2,children:X(q,{color:"warning",children:[B.reason==="overloaded"?"Fast mode overloaded and is temporarily unavailable":"You've hit your fast limit"," · resets in ",mf(B.resetAt-Date.now(),{hideTrailingZeros:!0})]})})]}),f[22]=J,f[23]=N,f[24]=K;else K=f[24];let E;if(f[25]===Symbol.for("react.memo_cache_sentinel"))E=X(q,{dimColor:!0,children:["Learn more:"," ",H(Vf,{url:"https://code.claude.com/docs/en/fast-mode",children:"https://code.claude.com/docs/en/fast-mode"})]}),f[25]=E;else E=f[25];let R;if(f[26]!==A||f[27]!==K||f[28]!==k)R=X(Xf,{title:Yf,subtitle:`High-speed mode for ${_}. Billed as extra usage at a premium rate. Separate rate limits apply.`,onCancel:A,color:"fastMode",inputGuide:k,children:[K,E]}),f[26]=A,f[27]=K,f[28]=k,f[29]=R;else R=f[29];return R}function jf(m){return!m}function uf(m){return{...m,fastMode:!1}}function Af(m){return m.fastMode}function vf(m){return m.mainLoopModel}async function Ff(m,f,G){let N=b();if(N)return`Fast mode unavailable: ${N}`;let{mainLoopModel:z}=f();if(S(m,G),D("tengu_fast_mode_toggled",{enabled:m,source:"shortcut"}),m){let V=U(!0),W=!j(z)?` · model set to ${_}`:"",J=p(M(!0));return`${V} Fast mode ON${W} · ${J}`}else return"Fast mode OFF"}async function H0(m,f,G){if(!Nf())return null;await Jf();let N=G?.trim().toLowerCase();if(N==="on"||N==="off"){let V=await Ff(N==="on",f.getAppState,f.setAppState);return m(V),null}let z=b();return D("tengu_fast_mode_picker_shown",{unavailable_reason:z??""}),H(Df,{onDone:m,unavailableReason:z})}var kf,Kf;var xf=o(()=>{Uf();ff();a();Tf();Lf();_f();hf();Of();Ef();Cf();T();kf=x(n(),1),Kf=x(Rf(),1)});
|
|
2
|
-
export{U as qe,ff as re,Df as se,H0 as te,xf as ue};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Ap as n,gx as I,hx as P,lx as t,zp as W}from"./cli-1.0.12-g2qsv3tc.mjs";import{a4 as H,b4 as p}from"./cli-1.0.12-qdw94y1a.mjs";import{c4 as C,e4 as i}from"./cli-1.0.12-fs365rj0.mjs";import{E8 as l,F7 as v,M4 as S,S4 as c,e8 as R,k8 as V}from"./cli-1.0.12-7gt5bvcm.mjs";import{Tda as q,Tea as O,Tfa as T,Uda as u,Ufa as Y,_fa as y,bga as k,ega as g,qga as D,vea as E,yea as X,yga as m}from"./cli-1.0.12-anfbb1k6.mjs";import{bia as G,dia as f,eia as $,fia as h}from"./cli-1.0.12-hxmg9ymn.mjs";import{Qia as Z,Via as _,Wia as M}from"./cli-1.0.12-n1m3pwwf.mjs";import{_ja as x,bka as b}from"./cli-1.0.12-crspnn4b.mjs";import{Kra as A,sra as Q}from"./cli-1.0.12-57gs15yp.mjs";import{hsa as U}from"./cli-1.0.12-ecf1es2x.mjs";async function s(){if(q())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),E((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{A();n();l();f();M();O();b();p();h();m();c();u();t();i();g();y();d=$(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
|
|
2
|
-
export{Yj as vc,r as wc};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s4 as M,t4 as E}from"./cli-1.0.12-fr4x7p5q.mjs";import{Yea as _,bga as S,efa as F,ega as p,pfa as l,sfa as L,tfa as c}from"./cli-1.0.12-anfbb1k6.mjs";import{Nka as Y,Vka as m}from"./cli-1.0.12-bhvkmj7j.mjs";import{hsa as B}from"./cli-1.0.12-ecf1es2x.mjs";function R(J){if(!J)return;let Q=J.trim().replace(/^https?:\/\//i,"").replace(/\/+$/,"");if(!Q||Q.toLowerCase()==="github.com")return;return Q}function b(J){return J?`https://${J}/login/device/code`:g}function v(J){return J?`https://${J}/login/oauth/access_token`:f}function h(J){return J?`https://api.${J}/copilot_internal/v2/token`:G}function H(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||T}function P(J){return new Promise((Q)=>setTimeout(Q,J))}async function r(J){let Q=J?.clientId??H();if(!Q)throw new q("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let Z=J?.fetchImpl??fetch,y=J?.scope?.trim()||C,$=y===C?[y]:[y,C],j="Device code request failed.",z=b(R(J?.domain));for(let V of $){let W=await Z(z,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Q,scope:V})});if(!W.ok){let w=await W.text().catch(()=>"");j=`Device code request failed: ${W.status} ${w}`;let D=/invalid_scope/i.test(w);if(V!==C&&D)continue;throw new q(j)}let X=await W.json(),N=X.device_code,K=X.user_code,x=X.verification_uri;if(typeof N!=="string"||typeof K!=="string"||typeof x!=="string")throw new q("Malformed device code response from GitHub");return{device_code:N,user_code:K,verification_uri:x,expires_in:typeof X.expires_in==="number"?X.expires_in:900,interval:typeof X.interval==="number"?X.interval:5}}throw new q(j)}async function o(J,Q){let Z=Q?.clientId??H();if(!Z)throw new q("client_id required for polling");let y=Math.max(1,Q?.initialInterval??5),$=Q?.timeoutSeconds??900,j=Q?.fetchImpl??fetch,z=v(R(Q?.domain)),V=Date.now();while((Date.now()-V)/1000<$){let W=await j(z,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Z,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!W.ok){let K=await W.text().catch(()=>"");throw new q(`Token request failed: ${W.status} ${K}`)}let X=await W.json(),N=X.error;if(N==null){let K=X.access_token;if(typeof K==="string"&&K)return K;throw new q("No access_token in response")}if(N==="authorization_pending"){await P(y*1000);continue}if(N==="slow_down"){y=typeof X.interval==="number"?X.interval:y+5,await P(y*1000);continue}if(N==="expired_token")throw new q("Device code expired. Start the login flow again.");if(N==="access_denied")throw new q("Authorization was denied or cancelled.");throw new q(`GitHub OAuth error: ${N}`)}throw new q("Timed out waiting for authorization.")}async function e(J){await M(J)}async function I(J,Q){let Z=typeof Q==="function"?{fetchImpl:Q}:Q??{},y=Z.fetchImpl??fetch,$=h(R(Z.domain)),j=await y($,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...u}});if(!j.ok){let K=await j.text().catch(()=>"");throw new q(`Copilot token exchange failed: ${j.status} ${K}`)}let z=await j.json(),V=z.token,W=z.expires_at,X=z.refresh_in,N=z.endpoints;if(typeof V!=="string"||typeof W!=="number"||typeof X!=="number"||!N||typeof N!=="object"||typeof N.api!=="string")throw new q("Malformed Copilot token response");return{token:V,expires_at:W,refresh_in:X,endpoints:N}}var T="Iv1.b507a08c87ecfe98",g="https://github.com/login/device/code",f="https://github.com/login/oauth/access_token",G="https://api.github.com/copilot_internal/v2/token",C="read:user",u,q;var O=B(()=>{E();u={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"};q=class q extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function k(){return S()?.transport==="github_copilot"}function d(J){let Q=J.match(/exp=(\d+)/);if(Q){let $=Number(Q[1]);if(!Number.isNaN($))return Date.now()>=$*1000?"expired":"valid"}let Z=J.split(".");if(Z.length===3&&Z.every(($)=>/^[A-Za-z0-9_-]+$/.test($)))try{let $=Z[1].replace(/-/g,"+").replace(/_/g,"/"),j=$+"=".repeat((4-$.length%4)%4),z=Buffer.from(j,"base64").toString("utf8"),V=JSON.parse(z);if(V&&typeof V==="object"&&V.exp)return Date.now()>=V.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function a(){if(Y())return;try{return L().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function WJ(){if(Y())return;try{return(await L().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function yJ(){if(!k())return;if(Y())return;if(a())return}async function zJ(){if(!k())return!1;if(Y())return!1;if(A)return A;return A=(async()=>{try{let Z=L().read()?.githubModels,y=Z?.accessToken?.trim()||"",$=Z?.oauthAccessToken?.trim()||"";if(!y&&!$)return!1;if((y?d(y):"expired")==="valid")return!1;if(!$)return!1;let z=Z?.enterpriseDomain?.trim()||void 0,V=await I($,{domain:z});if(!n(V.token,$,z).success)return!1;let X=_().find((N)=>N.provider==="openai"&&N.extras?.githubToken!==void 0);if(X)F(X.id,{provider:"openai",name:X.name,baseUrl:X.baseUrl,model:X.model,apiKey:V.token,extras:{...X.extras,githubToken:V.token}});return!0}catch{return!1}finally{A=null}})(),A}function n(J,Q,Z){if(Y())return{success:!1,warning:"Bare mode: secure storage is disabled."};let y=J.trim();if(!y)return{success:!1,warning:"Token is empty."};let $=L(),j=$.read()||{},z=j[U],V=Q?.trim(),W={accessToken:y};if(V){if(W.oauthAccessToken=V,Z?.trim())W.enterpriseDomain=Z.trim()}else{if(z?.oauthAccessToken?.trim())W.oauthAccessToken=z.oauthAccessToken.trim();let N=Z?.trim()||z?.enterpriseDomain?.trim();if(N)W.enterpriseDomain=N}let X={...j,[U]:W};return $.update(X)}function jJ(){if(Y())return{success:!0};let J=L(),Z={...J.read()||{}};return delete Z[U],J.update(Z)}var U="githubModels",VJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED",A=null;var s=B(()=>{p();m();c();O();l()});
|
|
2
|
-
export{R as o2,r as p2,o as q2,e as r2,I as s2,O as t2,U as u2,VJ as v2,a as w2,WJ as x2,yJ as y2,zJ as z2,n as A2,jJ as B2,s as C2};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{FF as R,GF as E,HF as l,IF as i,JF as c,KF as w,LF as O,PF as y,QF as e}from"./cli-1.0.12-g2qsv3tc.mjs";import{WX as x,XX as s}from"./cli-1.0.12-7tv5r0ph.mjs";import{G0 as k,I0 as W,a1 as Q,kZ as n,l1 as K,v0 as j,w0 as r}from"./cli-1.0.12-fs27jw81.mjs";import{T3 as A,U3 as V,V3 as D,W3 as v}from"./cli-1.0.12-6s4gq7fa.mjs";import{X3 as t}from"./cli-1.0.12-0hs0n73e.mjs";import{dsa as q,hsa as p}from"./cli-1.0.12-ecf1es2x.mjs";function X1(J){let b=S.c(17),{query:$,placeholder:N,isFocused:Z,isTerminalFocused:H,prefix:g,width:P,cursorOffset:_,borderless:Y}=J,G=N===void 0?"Search…":N,h=g===void 0?"⌕":g,L=Y===void 0?!1:Y,B=_??$.length,m=L?void 0:"round",z=Z?"suggestion":void 0,d=!Z,F=L?0:1,T=!Z,X;if(b[0]!==Z||b[1]!==H||b[2]!==B||b[3]!==G||b[4]!==$)X=Z?V(A,{children:$?H?D(A,{children:[V(W,{children:$.slice(0,B)}),V(W,{inverse:!0,children:B<$.length?$[B]:" "}),B<$.length&&V(W,{children:$.slice(B+1)})]}):V(W,{children:$}):H?D(A,{children:[V(W,{inverse:!0,children:G.charAt(0)}),V(W,{dimColor:!0,children:G.slice(1)})]}):V(W,{dimColor:!0,children:G})}):$?V(W,{children:$}):V(W,{children:G}),b[0]=Z,b[1]=H,b[2]=B,b[3]=G,b[4]=$,b[5]=X;else X=b[5];let M;if(b[6]!==h||b[7]!==T||b[8]!==X)M=D(W,{dimColor:T,children:[h," ",X]}),b[6]=h,b[7]=T,b[8]=X,b[9]=M;else M=b[9];let I;if(b[10]!==M||b[11]!==m||b[12]!==z||b[13]!==d||b[14]!==F||b[15]!==P)I=V(k,{flexShrink:0,borderStyle:m,borderColor:z,borderDimColor:d,paddingX:F,width:P,children:M}),b[10]=M,b[11]=m,b[12]=z,b[13]=d,b[14]=F,b[15]=P,b[16]=I;else I=b[16];return I}var S;var u=p(()=>{K();v();S=q(n(),1)});function d1(J){if(J.ctrl&&(J.key==="k"||J.key==="u"||J.key==="w"))return!0;if(J.meta&&J.key==="backspace")return!0;return!1}function T1(J){return(J.ctrl||J.meta)&&J.key==="y"}function W1({isActive:J,onExit:b,onCancel:$,onExitUp:N,columns:Z,passthroughCtrlKeys:H=[],initialQuery:g="",backspaceExitsOnEmpty:P=!0}){let{columns:_}=x(),Y=Z??_,[G,h]=U.useState(g),[L,B]=U.useState(g.length),m=U.useCallback((d)=>{h(d),B(d.length)},[]),z=(d)=>{if(!J)return;let F=y.fromText(G,Y,L);if(d.ctrl&&H.includes(d.key.toLowerCase()))return;if(!d1(d))l();if(!T1(d))O();if(d.key==="return"||d.key==="down"){d.preventDefault(),b();return}if(d.key==="up"){if(d.preventDefault(),N)N();return}if(d.key==="escape"){if(d.preventDefault(),$)$();else if(G.length>0)h(""),B(0);else b();return}if(d.key==="backspace"){if(d.preventDefault(),d.meta){let{cursor:X,killed:M}=F.deleteWordBefore();R(M,"prepend"),h(X.text),B(X.offset);return}if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}if(d.key==="delete"){d.preventDefault();let T=F.del();h(T.text),B(T.offset);return}if(d.key==="left"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.prevWord();B(T.offset);return}if(d.key==="right"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.nextWord();B(T.offset);return}if(d.key==="left"){d.preventDefault();let T=F.left();B(T.offset);return}if(d.key==="right"){d.preventDefault();let T=F.right();B(T.offset);return}if(d.key==="home"){d.preventDefault(),B(0);return}if(d.key==="end"){d.preventDefault(),B(G.length);return}if(d.ctrl){switch(d.preventDefault(),d.key.toLowerCase()){case"a":B(0);return;case"e":B(G.length);return;case"b":B(F.left().offset);return;case"f":B(F.right().offset);return;case"d":{if(G.length===0){($??b)();return}let T=F.del();h(T.text),B(T.offset);return}case"h":{if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}case"k":{let{cursor:T,killed:X}=F.deleteToLineEnd();R(X,"append"),h(T.text),B(T.offset);return}case"u":{let{cursor:T,killed:X}=F.deleteToLineStart();R(X,"prepend"),h(T.text),B(T.offset);return}case"w":{let{cursor:T,killed:X}=F.deleteWordBefore();R(X,"prepend"),h(T.text),B(T.offset);return}case"y":{let T=E();if(T.length>0){let X=F.offset,M=F.insert(T);i(X,T.length),h(M.text),B(M.offset)}return}case"g":case"c":if($){$();return}}return}if(d.meta){switch(d.preventDefault(),d.key.toLowerCase()){case"b":B(F.prevWord().offset);return;case"f":B(F.nextWord().offset);return;case"d":{let T=F.deleteWordAfter();h(T.text),B(T.offset);return}case"y":{let T=c();if(T){let{text:X,start:M,length:I}=T,f=G.slice(0,M),a=G.slice(M+I),C=f+X+a,o=M+X.length;w(X.length),h(C),B(o)}return}}return}if(d.key==="tab")return;if(d.key.length>=1&&!b1.has(d.key)){d.preventDefault();let T=F.insert(d.key);h(T.text),B(T.offset)}};return Q((d,F,T)=>{z(new j(T.keypress))},{isActive:J}),{query:G,setQuery:m,cursorOffset:L,handleKeyDown:z}}var U,b1;var B1=p(()=>{r();K();e();s();U=q(t(),1);b1=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});
|
|
2
|
-
export{X1 as kh,u as lh,W1 as mh,B1 as nh};
|