@cortex-agent/server 2026.10.25 → 2026.10.27
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/LICENSE +21 -0
- package/README.md +5 -5
- package/THIRD_PARTY_NOTICES.txt +16546 -0
- package/defaults/prompts/clean-workspace.md +21 -0
- package/dist/agent-adapter/claude/remote-mcp-proxy.js +4 -66
- package/dist/chunks/anthropic-SUZWKBRW.js +4 -0
- package/dist/chunks/anthropic-messages-M3SMXACA.js +8 -0
- package/dist/chunks/api-GM53PHIL-GFHEXXE6.js +4 -0
- package/dist/chunks/azure-openai-responses-76YWXHSB.js +4 -0
- package/dist/chunks/bedrock-converse-stream-5UPX4NTQ.js +58 -0
- package/dist/chunks/child-runner-3GHOWGZP.js +4 -0
- package/dist/chunks/chunk-23PRJECN.js +4 -0
- package/dist/chunks/chunk-2ZNLUY2U.js +128 -0
- package/dist/chunks/chunk-3F6WW7HR.js +13 -0
- package/dist/chunks/chunk-3OKHUVEM.js +7 -0
- package/dist/chunks/chunk-3TGQSGG4.js +8 -0
- package/dist/chunks/chunk-3THJYAEF.js +4 -0
- package/dist/chunks/chunk-3YHOCPQU.js +10 -0
- package/dist/chunks/chunk-4EX2JJWB.js +4 -0
- package/dist/chunks/chunk-4LLH5OWM.js +10 -0
- package/dist/chunks/chunk-4U7XXM4W.js +4 -0
- package/dist/chunks/chunk-52T37Y47.js +8 -0
- package/dist/chunks/chunk-5M4PFLRW.js +4 -0
- package/dist/chunks/chunk-5NRGVROY.js +4 -0
- package/dist/chunks/chunk-5T7IX5KN.js +4 -0
- package/dist/chunks/chunk-6AKUD3CF.js +4 -0
- package/dist/chunks/chunk-6LZK4DDH.js +4 -0
- package/dist/chunks/chunk-6R73ICDB.js +4 -0
- package/dist/chunks/chunk-7MU2AKNM.js +4 -0
- package/dist/chunks/chunk-A34TDMIC.js +7 -0
- package/dist/chunks/chunk-AAA3UBIS.js +4 -0
- package/dist/chunks/chunk-ASYQHJVQ.js +9 -0
- package/dist/chunks/chunk-AWFUHWQK.js +4 -0
- package/dist/chunks/chunk-B3XBQEFM.js +4 -0
- package/dist/chunks/chunk-BGVHA2D4.js +4 -0
- package/dist/chunks/chunk-BGYR4ID3.js +4 -0
- package/dist/chunks/chunk-BKHDWCRT.js +79 -0
- package/dist/chunks/chunk-BR7A5SWM.js +23 -0
- package/dist/chunks/chunk-CQLH4UVX.js +4 -0
- package/dist/chunks/chunk-CVC66CFV.js +33 -0
- package/dist/chunks/chunk-CXT5IR5T.js +4 -0
- package/dist/chunks/chunk-D3NXKK2L.js +4 -0
- package/dist/chunks/chunk-D6UA4BZC.js +19 -0
- package/dist/chunks/chunk-D6VMBA4C.js +4 -0
- package/dist/chunks/chunk-DGMNI4AO.js +4 -0
- package/dist/chunks/chunk-DHSA5ACV.js +125 -0
- package/dist/chunks/chunk-DPQPXBTP.js +68 -0
- package/dist/chunks/chunk-DQJ6LLAS.js +4 -0
- package/dist/chunks/chunk-DXBSQXJL.js +18 -0
- package/dist/chunks/chunk-E6BYRULL.js +4 -0
- package/dist/chunks/chunk-E7ZMYIY6.js +30 -0
- package/dist/chunks/chunk-EQIMHXC4.js +5 -0
- package/dist/chunks/chunk-EQITBTJC.js +10 -0
- package/dist/chunks/chunk-EXJA5RIX.js +357 -0
- package/dist/chunks/chunk-FF7UELTU.js +4 -0
- package/dist/chunks/chunk-FH74NME3.js +115 -0
- package/dist/chunks/chunk-FOJQXLL2.js +6 -0
- package/dist/chunks/chunk-FOQ7VLIL.js +17 -0
- package/dist/chunks/chunk-FX6MOGLR.js +11 -0
- package/dist/chunks/chunk-FXDIR3SQ.js +4 -0
- package/dist/chunks/chunk-G2V65UBA.js +4 -0
- package/dist/chunks/chunk-H2FP6DG4.js +5 -0
- package/dist/chunks/chunk-HALUQ7ZF.js +4 -0
- package/dist/chunks/chunk-HGPBHTVD.js +6 -0
- package/dist/chunks/chunk-HU6UIDEJ.js +6 -0
- package/dist/chunks/chunk-I6OPDRVF.js +4 -0
- package/dist/chunks/chunk-ILEML5IP.js +4 -0
- package/dist/chunks/chunk-IRWZ7UPF.js +77 -0
- package/dist/chunks/chunk-J5DVLUKY.js +6 -0
- package/dist/chunks/chunk-JERCOLY3.js +142 -0
- package/dist/chunks/chunk-JW2HFMTF.js +4 -0
- package/dist/chunks/chunk-JXFG66UN.js +4 -0
- package/dist/chunks/chunk-K4NTZEDJ.js +4 -0
- package/dist/chunks/chunk-KDYEGGMW.js +4 -0
- package/dist/chunks/chunk-KENCMLRE.js +4 -0
- package/dist/chunks/chunk-KGJZAYQD.js +4 -0
- package/dist/chunks/chunk-KIGMAATV.js +23 -0
- package/dist/chunks/chunk-KIU5FAPY.js +5 -0
- package/dist/chunks/chunk-KIWMQPH7.js +739 -0
- package/dist/chunks/chunk-KRXTI4JO.js +3 -0
- package/dist/chunks/chunk-L6VCIGWS.js +11 -0
- package/dist/chunks/chunk-LACGULCN.js +10 -0
- package/dist/chunks/chunk-LCKVYFMD.js +4 -0
- package/dist/chunks/chunk-LEUENXI2.js +6 -0
- package/dist/chunks/chunk-LMDWRRX4.js +4 -0
- package/dist/chunks/chunk-LMSQZ6TQ.js +4 -0
- package/dist/chunks/chunk-MEPASGPP.js +6 -0
- package/dist/chunks/chunk-MFAEUHMV.js +28 -0
- package/dist/chunks/chunk-N6BTQN7R.js +8 -0
- package/dist/chunks/chunk-NAA7GF6Q.js +5 -0
- package/dist/chunks/chunk-NHD2ESHA.js +4 -0
- package/dist/chunks/chunk-NKDMKRSB.js +68 -0
- package/dist/chunks/chunk-NKXV32S6.js +4 -0
- package/dist/chunks/chunk-NR6U3WIZ.js +4 -0
- package/dist/chunks/chunk-NT32UURL.js +4 -0
- package/dist/chunks/chunk-NVX5IPRN.js +4 -0
- package/dist/chunks/chunk-O3JW2F7D.js +8 -0
- package/dist/chunks/chunk-OE4KH3NJ.js +4 -0
- package/dist/chunks/chunk-OISO5JXB.js +4 -0
- package/dist/chunks/chunk-OKRK6JPY.js +4 -0
- package/dist/chunks/chunk-OPYXNSMY.js +4 -0
- package/dist/chunks/chunk-OSEIQ7SS.js +4 -0
- package/dist/chunks/chunk-OZGBWAT2.js +4 -0
- package/dist/chunks/chunk-P52RMIYX.js +6 -0
- package/dist/chunks/chunk-PBJ5MPPX.js +60 -0
- package/dist/chunks/chunk-PFMEUFJ7.js +4 -0
- package/dist/chunks/chunk-PMG4YGDU.js +7 -0
- package/dist/chunks/chunk-PXS5SHOV.js +4 -0
- package/dist/chunks/chunk-PZMGBKUR.js +13 -0
- package/dist/chunks/chunk-PZMXHA6X.js +9 -0
- package/dist/chunks/chunk-Q4UGYGU5.js +4 -0
- package/dist/chunks/chunk-Q7CE3UIE.js +133 -0
- package/dist/chunks/chunk-QBKCAIJG.js +4 -0
- package/dist/chunks/chunk-QEOFEETJ.js +4 -0
- package/dist/chunks/chunk-QN44UXQR.js +11 -0
- package/dist/chunks/chunk-QUUEQRIT.js +4 -0
- package/dist/chunks/chunk-QWAQHHRS.js +4 -0
- package/dist/chunks/chunk-RA6HKFBV.js +4 -0
- package/dist/chunks/chunk-REBNWCKI.js +4 -0
- package/dist/chunks/chunk-REPYBMQS.js +4 -0
- package/dist/chunks/chunk-RO4C2MJP.js +4 -0
- package/dist/chunks/chunk-SKHLZ6XY.js +9 -0
- package/dist/chunks/chunk-STUHNKQS.js +4 -0
- package/dist/chunks/chunk-SUFW24P4.js +7 -0
- package/dist/chunks/chunk-TAWLERZA.js +4 -0
- package/dist/chunks/chunk-TCAEECDI.js +4 -0
- package/dist/chunks/chunk-TJ4GQRT6.js +8 -0
- package/dist/chunks/chunk-TURBFBYN.js +4 -0
- package/dist/chunks/chunk-TWAEABGG.js +52 -0
- package/dist/chunks/chunk-TZFLHVOQ.js +7 -0
- package/dist/chunks/chunk-TZGNSHOL.js +4 -0
- package/dist/chunks/chunk-UD3NMUHR.js +12 -0
- package/dist/chunks/chunk-UNVEZI57.js +4 -0
- package/dist/chunks/chunk-USBJFDJ6.js +4 -0
- package/dist/chunks/chunk-V3AQJSWR.js +4 -0
- package/dist/chunks/chunk-VQUPKMDR.js +4 -0
- package/dist/chunks/chunk-W25TB3PU.js +4 -0
- package/dist/chunks/chunk-W5LGYSPZ.js +4 -0
- package/dist/chunks/chunk-WEZWKMYU.js +4 -0
- package/dist/chunks/chunk-WHC7AYZD.js +4 -0
- package/dist/chunks/chunk-X2GYYRVM.js +22 -0
- package/dist/chunks/chunk-XAJLZR7C.js +28 -0
- package/dist/chunks/chunk-XAXWLYH5.js +4 -0
- package/dist/chunks/chunk-XBJOYU5Y.js +4 -0
- package/dist/chunks/chunk-XH6FMP3N.js +71 -0
- package/dist/chunks/chunk-XIECJESP.js +4 -0
- package/dist/chunks/chunk-XNSSUVT6.js +4 -0
- package/dist/chunks/chunk-XSRZHN63.js +4 -0
- package/dist/chunks/chunk-Y3GFB5XM.js +8 -0
- package/dist/chunks/chunk-Y6ZEVVL5.js +4 -0
- package/dist/chunks/chunk-YAEVYJAR.js +4 -0
- package/dist/chunks/chunk-YG7OEPR2.js +6 -0
- package/dist/chunks/chunk-YHIWOGVL.js +4 -0
- package/dist/chunks/chunk-YKKEI5GI.js +4 -0
- package/dist/chunks/chunk-YPK2CAIZ.js +8 -0
- package/dist/chunks/chunk-YZSHTWNM.js +92 -0
- package/dist/chunks/chunk-Z2Q2NR46.js +34 -0
- package/dist/chunks/chunk-Z4H3VDHI.js +4 -0
- package/dist/chunks/chunk-ZFPMIQA3.js +6 -0
- package/dist/chunks/chunk-ZNZFWSPH.js +4 -0
- package/dist/chunks/chunk-ZQ7LGTSN.js +8 -0
- package/dist/chunks/chunk-ZSV6TO7Q.js +4 -0
- package/dist/chunks/cli-5DBTRMHU.js +53 -0
- package/dist/chunks/client-XOGYH5UR.js +4 -0
- package/dist/chunks/cloudflare-workers-ai-system-one-32JCFHI3.js +4 -0
- package/dist/chunks/config-DJSQI77S-335IXHSM.js +4 -0
- package/dist/chunks/context-VCQH5OB6.js +4 -0
- package/dist/chunks/cost-PGGFI7QJ.js +5 -0
- package/dist/chunks/dist-7RWW7YH4.js +11 -0
- package/dist/chunks/dist-PUKMZ7GW.js +4 -0
- package/dist/chunks/easter-egg-3d-MO4MOEVF.js +4 -0
- package/dist/chunks/es5-VNTQPCKX.js +4 -0
- package/dist/chunks/event-streams-3JSFPOTZ.js +4 -0
- package/dist/chunks/execution-repo-ZLJTBWFC.js +4 -0
- package/dist/chunks/executions-6ARGR3IO.js +9 -0
- package/dist/chunks/file-7BN7RCAY.js +4 -0
- package/dist/chunks/gateway-UCRPMR75.js +36 -0
- package/dist/chunks/github-copilot-HAI2DA62.js +4 -0
- package/dist/chunks/google-generative-ai-2VXWLHWI.js +4 -0
- package/dist/chunks/google-vertex-UA36QP2U.js +4 -0
- package/dist/chunks/init-HA7FAQ73.js +4 -0
- package/dist/chunks/install-cli-4IZCSDFZ.js +16 -0
- package/dist/chunks/interaction-ask-G5T3H3CG.js +9 -0
- package/dist/chunks/interaction-plan-E5V42MUP.js +11 -0
- package/dist/chunks/jiti-loader-WANUXUDO.js +4 -0
- package/dist/chunks/jiti-static-loader-W3QZ4GDS.js +476 -0
- package/dist/chunks/kimi-coding-HMJRKCPA.js +4 -0
- package/dist/chunks/lib-RSOU34HQ.js +11 -0
- package/dist/chunks/llama-cpp-classify-OTXZWCMW.js +24 -0
- package/dist/chunks/local-client-stop-SQRU7ZZM.js +4 -0
- package/dist/chunks/memory-cli-PYOILNN5.js +11 -0
- package/dist/chunks/meta-KY3LNFV2.js +4 -0
- package/dist/chunks/mistral-conversations-34F66L3O.js +7 -0
- package/dist/chunks/model-resolver-N3DTAQ2S.js +4 -0
- package/dist/chunks/models-L5VF4I5O-XXNJYQMQ.js +4 -0
- package/dist/chunks/multipart-parser-GEHG6YAR.js +5 -0
- package/dist/chunks/node-PTK2HCDV.js +18 -0
- package/dist/chunks/node-VLVSZ76W.js +4 -0
- package/dist/chunks/openai-chatgpt-PETGIJOZ.js +4 -0
- package/dist/chunks/openai-codex-2REL6UQU.js +4 -0
- package/dist/chunks/openai-codex-responses-ZBVHREB3.js +12 -0
- package/dist/chunks/openai-completions-VVIB26SH.js +9 -0
- package/dist/chunks/openai-decisions-2N6ZRPZC.js +7 -0
- package/dist/chunks/openai-responses-735XA2ZX.js +6 -0
- package/dist/chunks/openrouter-GDY3BLT2.js +4 -0
- package/dist/chunks/openrouter-images-3IKETHAC.js +4 -0
- package/dist/chunks/pi-messages-I3E4ZFHA.js +10 -0
- package/dist/chunks/radius-HXRZVBDB.js +4 -0
- package/dist/chunks/remote-ops-BALZYKH6.js +14 -0
- package/dist/chunks/runner-PLVZDGHB.js +4 -0
- package/dist/chunks/runtime-6YLTA2ZD.js +4 -0
- package/dist/chunks/schedule-cli-OLASBBYJ.js +4 -0
- package/dist/chunks/slack-WAGSPZUX.js +4 -0
- package/dist/chunks/src-CCI7P7AI.js +6 -0
- package/dist/chunks/start-ui-http-QALT7C3P.js +43 -0
- package/dist/chunks/subagent-E3UC7ZHC.js +4 -0
- package/dist/chunks/time-KEHDQT6K.js +4 -0
- package/dist/chunks/tool-shims-Q6P6UXVC.js +4 -0
- package/dist/chunks/typesafe-system-one-6ULACYD4.js +4 -0
- package/dist/chunks/ui-board-4GYW6KKW.js +5 -0
- package/dist/chunks/ui-decision-U2FXSEC2.js +4 -0
- package/dist/chunks/ui-file-GVH53O3X.js +5 -0
- package/dist/chunks/ui-view-O7PLANT7.js +4 -0
- package/dist/chunks/virtual-modules-IDC5YKZJ.js +4 -0
- package/dist/chunks/waitpoint-2FGQBIAC.js +5 -0
- package/dist/chunks/workers-XN4PSTH6.js +4 -0
- package/dist/chunks/xai-KEVUJTFV.js +4 -0
- package/dist/client-bundle/manifest.json +1 -1
- package/dist/core/pi-sdk.js +4 -73
- package/dist/domain/auth/cc-auth-cli.js +4 -248
- package/dist/domain/mcp/bundled-server.js +4 -146
- package/dist/entry/app.js +601 -611
- package/dist/entry/browser-cli.js +14 -316
- package/dist/entry/cli.js +4 -587
- package/dist/entry/cortex-cli.js +4 -2
- package/dist/entry/daemon.js +7 -909
- package/dist/entry/hook-cli.js +6 -401
- package/dist/entry/production-app-bootstrap.js +5 -42
- package/dist/entry/production-evidence-export-cli.js +12 -99
- package/dist/entry/signal-cli.js +6 -198
- package/dist/tui/index.js +114 -306
- package/package.json +11 -50
- package/scripts/bundle-prune-browser.mjs +52 -0
- package/scripts/postinstall-restart-trigger.mjs +8 -0
- package/vendor/aistatus/gateway-cli.js +21 -0
- package/vendor/pi/CHANGELOG.md +6365 -0
- package/vendor/pi/README.md +95 -0
- package/vendor/pi/dist/codemode-worker.js +478 -0
- package/vendor/pi/dist/core/export-html/ansi-to-html.js +249 -0
- package/vendor/pi/dist/core/export-html/index.js +228 -0
- package/vendor/pi/dist/core/export-html/template.css +1076 -0
- package/vendor/pi/dist/core/export-html/template.html +56 -0
- package/vendor/pi/dist/core/export-html/template.js +1924 -0
- package/vendor/pi/dist/core/export-html/tool-renderer.js +110 -0
- package/vendor/pi/dist/core/export-html/vendor/highlight.min.js +1213 -0
- package/vendor/pi/dist/core/export-html/vendor/marked-cjk-friendly.min.js +6 -0
- package/vendor/pi/dist/core/export-html/vendor/marked.min.js +79 -0
- package/vendor/pi/dist/core/extensions/loader.js +4 -0
- package/vendor/pi/dist/extensions/codemode/execute.js +507 -0
- package/vendor/pi/dist/modes/interactive/assets/clankolas.png +0 -0
- package/vendor/pi/dist/modes/interactive/theme/dark.json +78 -0
- package/vendor/pi/dist/modes/interactive/theme/light.json +78 -0
- package/vendor/pi/dist/modes/interactive/theme/system-theme.js +546 -0
- package/vendor/pi/dist/modes/interactive/theme/theme-controller.js +210 -0
- package/vendor/pi/dist/modes/interactive/theme/theme-schema.js +105 -0
- package/vendor/pi/dist/modes/interactive/theme/theme-tokens.js +94 -0
- package/vendor/pi/dist/modes/interactive/theme/theme.js +905 -0
- package/vendor/pi/dist/utils/image-resize-worker.js +4 -0
- package/vendor/pi/dist/utils/image-resize.js +4 -0
- package/vendor/pi/docs/cli-integration.md +106 -0
- package/vendor/pi/docs/cli.md +333 -0
- package/vendor/pi/docs/codemode.md +230 -0
- package/vendor/pi/docs/compaction.md +463 -0
- package/vendor/pi/docs/configuration.md +47 -0
- package/vendor/pi/docs/containerization.md +183 -0
- package/vendor/pi/docs/custom-provider.md +225 -0
- package/vendor/pi/docs/docs.json +220 -0
- package/vendor/pi/docs/environment-variables.md +101 -0
- package/vendor/pi/docs/extensions.md +400 -0
- package/vendor/pi/docs/how-pi-works.md +49 -0
- package/vendor/pi/docs/images/doom-extension.png +0 -0
- package/vendor/pi/docs/images/exy.png +0 -0
- package/vendor/pi/docs/images/interactive-mode.png +0 -0
- package/vendor/pi/docs/images/tree-view.png +0 -0
- package/vendor/pi/docs/index.md +39 -0
- package/vendor/pi/docs/json.md +226 -0
- package/vendor/pi/docs/keybindings.md +195 -0
- package/vendor/pi/docs/llama-cpp.md +121 -0
- package/vendor/pi/docs/mcp.md +272 -0
- package/vendor/pi/docs/message-types.md +279 -0
- package/vendor/pi/docs/models-configuration.md +196 -0
- package/vendor/pi/docs/models.md +225 -0
- package/vendor/pi/docs/nvidia-rtx-llama-cpp.md +96 -0
- package/vendor/pi/docs/packages.md +129 -0
- package/vendor/pi/docs/prompt-templates.md +59 -0
- package/vendor/pi/docs/providers.md +247 -0
- package/vendor/pi/docs/quickstart.md +136 -0
- package/vendor/pi/docs/rpc-commands.md +860 -0
- package/vendor/pi/docs/rpc-extension-ui.md +200 -0
- package/vendor/pi/docs/rpc.md +193 -0
- package/vendor/pi/docs/sdk.md +147 -0
- package/vendor/pi/docs/security.md +99 -0
- package/vendor/pi/docs/session-format.md +293 -0
- package/vendor/pi/docs/sessions.md +66 -0
- package/vendor/pi/docs/settings.md +172 -0
- package/vendor/pi/docs/shell-aliases.md +93 -0
- package/vendor/pi/docs/skills.md +93 -0
- package/vendor/pi/docs/slash-commands.md +60 -0
- package/vendor/pi/docs/terminal-setup.md +233 -0
- package/vendor/pi/docs/termux.md +117 -0
- package/vendor/pi/docs/themes.md +138 -0
- package/vendor/pi/docs/tmux.md +55 -0
- package/vendor/pi/docs/tui.md +195 -0
- package/vendor/pi/docs/usage.md +94 -0
- package/vendor/pi/docs/virtual-models.md +114 -0
- package/vendor/pi/docs/windows.md +81 -0
- package/vendor/pi/examples/README.md +36 -0
- package/vendor/pi/examples/extensions/README.md +214 -0
- package/vendor/pi/examples/extensions/auto-commit-on-exit.ts +49 -0
- package/vendor/pi/examples/extensions/bash-spawn-hook.ts +30 -0
- package/vendor/pi/examples/extensions/bookmark.ts +50 -0
- package/vendor/pi/examples/extensions/border-status-editor.ts +150 -0
- package/vendor/pi/examples/extensions/built-in-tool-renderer.ts +225 -0
- package/vendor/pi/examples/extensions/claude-rules.ts +86 -0
- package/vendor/pi/examples/extensions/commands.ts +72 -0
- package/vendor/pi/examples/extensions/confirm-destructive.ts +59 -0
- package/vendor/pi/examples/extensions/custom-compaction.ts +117 -0
- package/vendor/pi/examples/extensions/custom-footer.ts +64 -0
- package/vendor/pi/examples/extensions/custom-header.ts +73 -0
- package/vendor/pi/examples/extensions/custom-provider-anthropic/index.ts +617 -0
- package/vendor/pi/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
- package/vendor/pi/examples/extensions/custom-provider-anthropic/package.json +19 -0
- package/vendor/pi/examples/extensions/custom-provider-gitlab-duo/index.ts +405 -0
- package/vendor/pi/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
- package/vendor/pi/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
- package/vendor/pi/examples/extensions/debug-provider.ts +90 -0
- package/vendor/pi/examples/extensions/dirty-repo-guard.ts +56 -0
- package/vendor/pi/examples/extensions/doom-overlay/README.md +46 -0
- package/vendor/pi/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
- package/vendor/pi/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
- package/vendor/pi/examples/extensions/doom-overlay/doom/build.sh +152 -0
- package/vendor/pi/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
- package/vendor/pi/examples/extensions/doom-overlay/doom-component.ts +132 -0
- package/vendor/pi/examples/extensions/doom-overlay/doom-engine.ts +173 -0
- package/vendor/pi/examples/extensions/doom-overlay/doom-keys.ts +104 -0
- package/vendor/pi/examples/extensions/doom-overlay/index.ts +74 -0
- package/vendor/pi/examples/extensions/doom-overlay/wad-finder.ts +55 -0
- package/vendor/pi/examples/extensions/dynamic-resources/SKILL.md +8 -0
- package/vendor/pi/examples/extensions/dynamic-resources/dynamic.json +81 -0
- package/vendor/pi/examples/extensions/dynamic-resources/dynamic.md +5 -0
- package/vendor/pi/examples/extensions/dynamic-resources/index.ts +15 -0
- package/vendor/pi/examples/extensions/dynamic-tools.ts +74 -0
- package/vendor/pi/examples/extensions/entry-renderer.ts +41 -0
- package/vendor/pi/examples/extensions/event-bus.ts +43 -0
- package/vendor/pi/examples/extensions/file-trigger.ts +41 -0
- package/vendor/pi/examples/extensions/git-checkpoint.ts +53 -0
- package/vendor/pi/examples/extensions/git-merge-and-resolve.ts +115 -0
- package/vendor/pi/examples/extensions/github-issue-autocomplete.ts +185 -0
- package/vendor/pi/examples/extensions/gondolin/index.ts +531 -0
- package/vendor/pi/examples/extensions/gondolin/package-lock.json +185 -0
- package/vendor/pi/examples/extensions/gondolin/package.json +19 -0
- package/vendor/pi/examples/extensions/handoff.ts +190 -0
- package/vendor/pi/examples/extensions/hello.ts +26 -0
- package/vendor/pi/examples/extensions/hidden-thinking-label.ts +53 -0
- package/vendor/pi/examples/extensions/inline-bash.ts +94 -0
- package/vendor/pi/examples/extensions/input-transform-streaming.ts +39 -0
- package/vendor/pi/examples/extensions/input-transform.ts +43 -0
- package/vendor/pi/examples/extensions/interactive-shell.ts +196 -0
- package/vendor/pi/examples/extensions/jev-router.ts +113 -0
- package/vendor/pi/examples/extensions/mac-system-theme.ts +47 -0
- package/vendor/pi/examples/extensions/message-renderer.ts +59 -0
- package/vendor/pi/examples/extensions/minimal-mode.ts +353 -0
- package/vendor/pi/examples/extensions/modal-editor.ts +85 -0
- package/vendor/pi/examples/extensions/model-status.ts +31 -0
- package/vendor/pi/examples/extensions/notify.ts +57 -0
- package/vendor/pi/examples/extensions/overlay-qa-tests.ts +1450 -0
- package/vendor/pi/examples/extensions/overlay-test.ts +153 -0
- package/vendor/pi/examples/extensions/permission-gate.ts +34 -0
- package/vendor/pi/examples/extensions/pirate.ts +47 -0
- package/vendor/pi/examples/extensions/plan-mode/README.md +66 -0
- package/vendor/pi/examples/extensions/plan-mode/index.ts +394 -0
- package/vendor/pi/examples/extensions/plan-mode/utils.ts +168 -0
- package/vendor/pi/examples/extensions/preset.ts +436 -0
- package/vendor/pi/examples/extensions/project-trust.ts +64 -0
- package/vendor/pi/examples/extensions/prompt-customizer.ts +49 -0
- package/vendor/pi/examples/extensions/protected-paths.ts +30 -0
- package/vendor/pi/examples/extensions/provider-payload.ts +18 -0
- package/vendor/pi/examples/extensions/qna.ts +118 -0
- package/vendor/pi/examples/extensions/question.ts +286 -0
- package/vendor/pi/examples/extensions/questionnaire.ts +448 -0
- package/vendor/pi/examples/extensions/rainbow-editor.ts +88 -0
- package/vendor/pi/examples/extensions/reload-runtime.ts +37 -0
- package/vendor/pi/examples/extensions/rpc-demo.ts +118 -0
- package/vendor/pi/examples/extensions/sandbox/index.ts +321 -0
- package/vendor/pi/examples/extensions/sandbox/package-lock.json +92 -0
- package/vendor/pi/examples/extensions/sandbox/package.json +19 -0
- package/vendor/pi/examples/extensions/send-user-message.ts +97 -0
- package/vendor/pi/examples/extensions/session-name.ts +27 -0
- package/vendor/pi/examples/extensions/shutdown-command.ts +63 -0
- package/vendor/pi/examples/extensions/snake.ts +343 -0
- package/vendor/pi/examples/extensions/space-invaders.ts +560 -0
- package/vendor/pi/examples/extensions/ssh.ts +220 -0
- package/vendor/pi/examples/extensions/status-line.ts +32 -0
- package/vendor/pi/examples/extensions/structured-output.ts +65 -0
- package/vendor/pi/examples/extensions/subagent/README.md +177 -0
- package/vendor/pi/examples/extensions/subagent/agents/planner.md +37 -0
- package/vendor/pi/examples/extensions/subagent/agents/reviewer.md +35 -0
- package/vendor/pi/examples/extensions/subagent/agents/scout.md +50 -0
- package/vendor/pi/examples/extensions/subagent/agents/worker.md +24 -0
- package/vendor/pi/examples/extensions/subagent/agents.ts +157 -0
- package/vendor/pi/examples/extensions/subagent/index.ts +1036 -0
- package/vendor/pi/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
- package/vendor/pi/examples/extensions/subagent/prompts/implement.md +10 -0
- package/vendor/pi/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
- package/vendor/pi/examples/extensions/summarize.ts +199 -0
- package/vendor/pi/examples/extensions/system-prompt-header.ts +17 -0
- package/vendor/pi/examples/extensions/tic-tac-toe.ts +1008 -0
- package/vendor/pi/examples/extensions/timed-confirm.ts +70 -0
- package/vendor/pi/examples/extensions/titlebar-spinner.ts +58 -0
- package/vendor/pi/examples/extensions/todo.ts +297 -0
- package/vendor/pi/examples/extensions/tool-override.ts +144 -0
- package/vendor/pi/examples/extensions/tools.ts +146 -0
- package/vendor/pi/examples/extensions/trigger-compact.ts +50 -0
- package/vendor/pi/examples/extensions/truncated-tool.ts +195 -0
- package/vendor/pi/examples/extensions/widget-placement.ts +9 -0
- package/vendor/pi/examples/extensions/with-deps/index.ts +32 -0
- package/vendor/pi/examples/extensions/with-deps/package-lock.json +31 -0
- package/vendor/pi/examples/extensions/with-deps/package.json +22 -0
- package/vendor/pi/examples/extensions/working-indicator.ts +123 -0
- package/vendor/pi/examples/extensions/working-message-test.ts +25 -0
- package/vendor/pi/examples/rpc-client.ts +35 -0
- package/vendor/pi/examples/rpc-extension-ui.ts +661 -0
- package/vendor/pi/examples/sdk/01-minimal.ts +26 -0
- package/vendor/pi/examples/sdk/02-custom-model.ts +49 -0
- package/vendor/pi/examples/sdk/03-custom-prompt.ts +75 -0
- package/vendor/pi/examples/sdk/04-skills.ts +55 -0
- package/vendor/pi/examples/sdk/05-tools.ts +48 -0
- package/vendor/pi/examples/sdk/06-extensions.ts +99 -0
- package/vendor/pi/examples/sdk/07-context-files.ts +47 -0
- package/vendor/pi/examples/sdk/08-prompt-templates.ts +51 -0
- package/vendor/pi/examples/sdk/09-api-keys-and-oauth.ts +34 -0
- package/vendor/pi/examples/sdk/10-settings.ts +53 -0
- package/vendor/pi/examples/sdk/11-sessions.ts +52 -0
- package/vendor/pi/examples/sdk/12-full-control.ts +74 -0
- package/vendor/pi/examples/sdk/13-session-runtime.ts +67 -0
- package/vendor/pi/examples/sdk/14-codemode-mcp.ts +61 -0
- package/vendor/pi/examples/sdk/README.md +141 -0
- package/vendor/pi/package.json +98 -0
- package/vendor/pi/schemas/keybindings.schema.json +393 -0
- package/vendor/pi/schemas/models.schema.json +1211 -0
- package/vendor/pi/schemas/settings.schema.json +783 -0
- package/vendor/pi/schemas/theme.schema.json +365 -0
- package/vendor/pi-ai/bedrock.js +4 -0
- package/vendor/pi-ai/oauth-load.js +4 -0
- package/vendor/quickjs.wasm +0 -0
- package/web/dist/assets/board-math-css-BmiXB1z5.js +2 -0
- package/web/dist/assets/index-DqWMdMkh.css +1 -0
- package/web/dist/assets/index-XBRXpnC5.js +1 -0
- package/web/dist/assets/index-btKNdkvc.js +525 -0
- package/web/dist/index.html +2 -2
- package/dist/agent-adapter/bg-wait.d.ts +0 -11
- package/dist/agent-adapter/bg-wait.js +0 -32
- package/dist/agent-adapter/capabilities.d.ts +0 -18
- package/dist/agent-adapter/capabilities.js +0 -39
- package/dist/agent-adapter/claude/active-capture-registry.d.ts +0 -7
- package/dist/agent-adapter/claude/active-capture-registry.js +0 -42
- package/dist/agent-adapter/claude/adapter.d.ts +0 -170
- package/dist/agent-adapter/claude/adapter.js +0 -459
- package/dist/agent-adapter/claude/assistant-blocks.d.ts +0 -5
- package/dist/agent-adapter/claude/assistant-blocks.js +0 -61
- package/dist/agent-adapter/claude/bg-task-tracker.d.ts +0 -105
- package/dist/agent-adapter/claude/bg-task-tracker.js +0 -168
- package/dist/agent-adapter/claude/cache-refresh.d.ts +0 -58
- package/dist/agent-adapter/claude/cache-refresh.js +0 -145
- package/dist/agent-adapter/claude/cache-touch.d.ts +0 -12
- package/dist/agent-adapter/claude/cache-touch.js +0 -75
- package/dist/agent-adapter/claude/compact-window.d.ts +0 -18
- package/dist/agent-adapter/claude/compact-window.js +0 -49
- package/dist/agent-adapter/claude/context-usage.d.ts +0 -28
- package/dist/agent-adapter/claude/context-usage.js +0 -173
- package/dist/agent-adapter/claude/defaults.d.ts +0 -42
- package/dist/agent-adapter/claude/defaults.js +0 -59
- package/dist/agent-adapter/claude/engine.d.ts +0 -75
- package/dist/agent-adapter/claude/engine.js +0 -139
- package/dist/agent-adapter/claude/event-parser.d.ts +0 -60
- package/dist/agent-adapter/claude/event-parser.js +0 -259
- package/dist/agent-adapter/claude/event-translator.d.ts +0 -45
- package/dist/agent-adapter/claude/event-translator.js +0 -98
- package/dist/agent-adapter/claude/hooks-builder.d.ts +0 -19
- package/dist/agent-adapter/claude/hooks-builder.js +0 -57
- package/dist/agent-adapter/claude/mcp-config.d.ts +0 -11
- package/dist/agent-adapter/claude/mcp-config.js +0 -142
- package/dist/agent-adapter/claude/remote-mcp-proxy.d.ts +0 -1
- package/dist/agent-adapter/claude/session-options.d.ts +0 -70
- package/dist/agent-adapter/claude/session-options.js +0 -148
- package/dist/agent-adapter/claude/spawn-args.d.ts +0 -70
- package/dist/agent-adapter/claude/spawn-args.js +0 -367
- package/dist/agent-adapter/claude/tool-summarizers.d.ts +0 -2
- package/dist/agent-adapter/claude/tool-summarizers.js +0 -20
- package/dist/agent-adapter/claude/transcript-clear.d.ts +0 -42
- package/dist/agent-adapter/claude/transcript-clear.js +0 -217
- package/dist/agent-adapter/claude/transcript-path.d.ts +0 -39
- package/dist/agent-adapter/claude/transcript-path.js +0 -114
- package/dist/agent-adapter/claude/turn-machine.d.ts +0 -220
- package/dist/agent-adapter/claude/turn-machine.js +0 -731
- package/dist/agent-adapter/claude/window-warmup.d.ts +0 -13
- package/dist/agent-adapter/claude/window-warmup.js +0 -38
- package/dist/agent-adapter/continuation-phase.d.ts +0 -131
- package/dist/agent-adapter/continuation-phase.js +0 -345
- package/dist/agent-adapter/engine-injections.d.ts +0 -47
- package/dist/agent-adapter/engine-injections.js +0 -80
- package/dist/agent-adapter/mcp-remote-fetch.d.ts +0 -1
- package/dist/agent-adapter/mcp-remote-fetch.js +0 -32
- package/dist/agent-adapter/normalize/event-types.d.ts +0 -125
- package/dist/agent-adapter/normalize/event-types.js +0 -1
- package/dist/agent-adapter/normalize/prompt-builder.d.ts +0 -22
- package/dist/agent-adapter/normalize/prompt-builder.js +0 -41
- package/dist/agent-adapter/normalize/tool-result-images.d.ts +0 -11
- package/dist/agent-adapter/normalize/tool-result-images.js +0 -32
- package/dist/agent-adapter/pi/adapter.d.ts +0 -125
- package/dist/agent-adapter/pi/adapter.js +0 -275
- package/dist/agent-adapter/pi/agent-dir.d.ts +0 -57
- package/dist/agent-adapter/pi/agent-dir.js +0 -154
- package/dist/agent-adapter/pi/background-subagent.d.ts +0 -26
- package/dist/agent-adapter/pi/background-subagent.js +0 -1
- package/dist/agent-adapter/pi/child-events.d.ts +0 -13
- package/dist/agent-adapter/pi/child-events.js +0 -96
- package/dist/agent-adapter/pi/child-runner.d.ts +0 -31
- package/dist/agent-adapter/pi/child-runner.js +0 -133
- package/dist/agent-adapter/pi/child-session.d.ts +0 -28
- package/dist/agent-adapter/pi/child-session.js +0 -70
- package/dist/agent-adapter/pi/custom-catalog.d.ts +0 -10
- package/dist/agent-adapter/pi/custom-catalog.js +0 -38
- package/dist/agent-adapter/pi/defaults.d.ts +0 -7
- package/dist/agent-adapter/pi/defaults.js +0 -11
- package/dist/agent-adapter/pi/discovery.d.ts +0 -37
- package/dist/agent-adapter/pi/discovery.js +0 -33
- package/dist/agent-adapter/pi/engine.d.ts +0 -66
- package/dist/agent-adapter/pi/engine.js +0 -180
- package/dist/agent-adapter/pi/event-parser.d.ts +0 -43
- package/dist/agent-adapter/pi/event-parser.js +0 -446
- package/dist/agent-adapter/pi/extensions.d.ts +0 -33
- package/dist/agent-adapter/pi/extensions.js +0 -58
- package/dist/agent-adapter/pi/hook-bridge.d.ts +0 -54
- package/dist/agent-adapter/pi/hook-bridge.js +0 -394
- package/dist/agent-adapter/pi/image-first.d.ts +0 -3
- package/dist/agent-adapter/pi/image-first.js +0 -31
- package/dist/agent-adapter/pi/mcp-bridge-logic.d.ts +0 -32
- package/dist/agent-adapter/pi/mcp-bridge-logic.js +0 -63
- package/dist/agent-adapter/pi/mcp-bridge.d.ts +0 -65
- package/dist/agent-adapter/pi/mcp-bridge.js +0 -389
- package/dist/agent-adapter/pi/native-tool-policy.d.ts +0 -3
- package/dist/agent-adapter/pi/native-tool-policy.js +0 -11
- package/dist/agent-adapter/pi/pi-session.d.ts +0 -185
- package/dist/agent-adapter/pi/pi-session.js +0 -656
- package/dist/agent-adapter/pi/providers-config.d.ts +0 -60
- package/dist/agent-adapter/pi/providers-config.js +0 -96
- package/dist/agent-adapter/pi/quota-probe.d.ts +0 -12
- package/dist/agent-adapter/pi/quota-probe.js +0 -33
- package/dist/agent-adapter/pi/quota-sink.d.ts +0 -33
- package/dist/agent-adapter/pi/quota-sink.js +0 -57
- package/dist/agent-adapter/pi/runtime-settings.d.ts +0 -9
- package/dist/agent-adapter/pi/runtime-settings.js +0 -53
- package/dist/agent-adapter/pi/runtime.d.ts +0 -48
- package/dist/agent-adapter/pi/runtime.js +0 -163
- package/dist/agent-adapter/pi/session-files.d.ts +0 -2
- package/dist/agent-adapter/pi/session-files.js +0 -15
- package/dist/agent-adapter/pi/session-options.d.ts +0 -86
- package/dist/agent-adapter/pi/session-options.js +0 -162
- package/dist/agent-adapter/pi/session-support.d.ts +0 -54
- package/dist/agent-adapter/pi/session-support.js +0 -101
- package/dist/agent-adapter/pi/subagent-bridge.d.ts +0 -17
- package/dist/agent-adapter/pi/subagent-bridge.js +0 -1
- package/dist/agent-adapter/pi/subagent.d.ts +0 -100
- package/dist/agent-adapter/pi/subagent.js +0 -199
- package/dist/agent-adapter/pi/tool-shims.d.ts +0 -32
- package/dist/agent-adapter/pi/tool-shims.js +0 -148
- package/dist/agent-adapter/pi/ui-context.d.ts +0 -20
- package/dist/agent-adapter/pi/ui-context.js +0 -92
- package/dist/agent-adapter/pi/web-fetch.d.ts +0 -13
- package/dist/agent-adapter/pi/web-fetch.js +0 -196
- package/dist/agent-adapter/pi/web-search.d.ts +0 -9
- package/dist/agent-adapter/pi/web-search.js +0 -517
- package/dist/agent-adapter/run-events.d.ts +0 -169
- package/dist/agent-adapter/run-events.js +0 -119
- package/dist/agent-adapter/types.d.ts +0 -330
- package/dist/agent-adapter/types.js +0 -3
- package/dist/core/agents/roles.d.ts +0 -50
- package/dist/core/agents/roles.js +0 -176
- package/dist/core/agents/subagent/attribution.d.ts +0 -15
- package/dist/core/agents/subagent/attribution.js +0 -60
- package/dist/core/agents/subagent/catalog.d.ts +0 -65
- package/dist/core/agents/subagent/catalog.js +0 -200
- package/dist/core/agents/subagent/model-spec.d.ts +0 -28
- package/dist/core/agents/subagent/model-spec.js +0 -39
- package/dist/core/agents/subagent/orchestrate.d.ts +0 -25
- package/dist/core/agents/subagent/orchestrate.js +0 -92
- package/dist/core/agents/subagent/schema.d.ts +0 -12
- package/dist/core/agents/subagent/schema.js +0 -51
- package/dist/core/agents/subagent/types.d.ts +0 -84
- package/dist/core/agents/subagent/types.js +0 -1
- package/dist/core/agents/subagent/usage.d.ts +0 -8
- package/dist/core/agents/subagent/usage.js +0 -32
- package/dist/core/anthropic-model-discovery.d.ts +0 -54
- package/dist/core/anthropic-model-discovery.js +0 -156
- package/dist/core/anthropic-models.d.ts +0 -1
- package/dist/core/anthropic-models.js +0 -13
- package/dist/core/async-mutex.d.ts +0 -6
- package/dist/core/async-mutex.js +0 -32
- package/dist/core/atomic-write.d.ts +0 -9
- package/dist/core/atomic-write.js +0 -104
- package/dist/core/auth.d.ts +0 -40
- package/dist/core/auth.js +0 -94
- package/dist/core/board-action.d.ts +0 -19
- package/dist/core/board-action.js +0 -24
- package/dist/core/builtin-layer.d.ts +0 -22
- package/dist/core/builtin-layer.js +0 -45
- package/dist/core/cached-scan.d.ts +0 -42
- package/dist/core/cached-scan.js +0 -95
- package/dist/core/calver.d.ts +0 -1
- package/dist/core/calver.js +0 -25
- package/dist/core/claude-credentials.d.ts +0 -91
- package/dist/core/claude-credentials.js +0 -242
- package/dist/core/cli-utils.d.ts +0 -56
- package/dist/core/cli-utils.js +0 -70
- package/dist/core/codex-quota.d.ts +0 -27
- package/dist/core/codex-quota.js +0 -55
- package/dist/core/codex-token.d.ts +0 -4
- package/dist/core/codex-token.js +0 -26
- package/dist/core/config-generator.d.ts +0 -17
- package/dist/core/config-generator.js +0 -181
- package/dist/core/debug-mode.d.ts +0 -15
- package/dist/core/debug-mode.js +0 -22
- package/dist/core/exec-async.d.ts +0 -28
- package/dist/core/exec-async.js +0 -48
- package/dist/core/file-lock.d.ts +0 -15
- package/dist/core/file-lock.js +0 -164
- package/dist/core/format-duration.d.ts +0 -7
- package/dist/core/format-duration.js +0 -23
- package/dist/core/gateway-generator.d.ts +0 -152
- package/dist/core/gateway-generator.js +0 -559
- package/dist/core/git-availability.d.ts +0 -2
- package/dist/core/git-availability.js +0 -43
- package/dist/core/hook-bus.d.ts +0 -25
- package/dist/core/hook-bus.js +0 -99
- package/dist/core/hook-exec.d.ts +0 -15
- package/dist/core/hook-exec.js +0 -86
- package/dist/core/hook-scripts.d.ts +0 -19
- package/dist/core/hook-scripts.js +0 -30
- package/dist/core/i18n.d.ts +0 -19
- package/dist/core/i18n.js +0 -42
- package/dist/core/icons.d.ts +0 -72
- package/dist/core/icons.js +0 -71
- package/dist/core/json-repository.d.ts +0 -78
- package/dist/core/json-repository.js +0 -154
- package/dist/core/locales/en.d.ts +0 -911
- package/dist/core/locales/en.js +0 -32
- package/dist/core/locales/slices/commands.d.ts +0 -301
- package/dist/core/locales/slices/commands.js +0 -634
- package/dist/core/locales/slices/init.d.ts +0 -153
- package/dist/core/locales/slices/init.js +0 -431
- package/dist/core/locales/slices/interactions.d.ts +0 -47
- package/dist/core/locales/slices/interactions.js +0 -99
- package/dist/core/locales/slices/lang.d.ts +0 -8
- package/dist/core/locales/slices/lang.js +0 -15
- package/dist/core/locales/slices/notices.d.ts +0 -78
- package/dist/core/locales/slices/notices.js +0 -156
- package/dist/core/locales/slices/providers.d.ts +0 -43
- package/dist/core/locales/slices/providers.js +0 -87
- package/dist/core/locales/slices/scheduling.d.ts +0 -33
- package/dist/core/locales/slices/scheduling.js +0 -65
- package/dist/core/locales/slices/startup.d.ts +0 -10
- package/dist/core/locales/slices/startup.js +0 -19
- package/dist/core/locales/slices/status.d.ts +0 -48
- package/dist/core/locales/slices/status.js +0 -109
- package/dist/core/locales/slices/tui.d.ts +0 -93
- package/dist/core/locales/slices/tui.js +0 -192
- package/dist/core/locales/slices/uiextra.d.ts +0 -49
- package/dist/core/locales/slices/uiextra.js +0 -102
- package/dist/core/locales/slices/uimsg.d.ts +0 -74
- package/dist/core/locales/slices/uimsg.js +0 -158
- package/dist/core/locales/zh.d.ts +0 -5
- package/dist/core/locales/zh.js +0 -30
- package/dist/core/log.d.ts +0 -16
- package/dist/core/log.js +0 -174
- package/dist/core/loopback-http.d.ts +0 -6
- package/dist/core/loopback-http.js +0 -43
- package/dist/core/mcp-bundles.d.ts +0 -8
- package/dist/core/mcp-bundles.js +0 -47
- package/dist/core/mcp-timeout.d.ts +0 -1
- package/dist/core/mcp-timeout.js +0 -1
- package/dist/core/mcp-tool-gate.d.ts +0 -25
- package/dist/core/mcp-tool-gate.js +0 -97
- package/dist/core/media-types.d.ts +0 -20
- package/dist/core/media-types.js +0 -63
- package/dist/core/models-generator.d.ts +0 -29
- package/dist/core/models-generator.js +0 -82
- package/dist/core/native-name.d.ts +0 -4
- package/dist/core/native-name.js +0 -57
- package/dist/core/paths.d.ts +0 -63
- package/dist/core/paths.js +0 -105
- package/dist/core/pi-sdk.d.ts +0 -38
- package/dist/core/pi-session-filename.d.ts +0 -10
- package/dist/core/pi-session-filename.js +0 -49
- package/dist/core/platform-settings-spec.d.ts +0 -47
- package/dist/core/platform-settings-spec.js +0 -28
- package/dist/core/private-dir.d.ts +0 -13
- package/dist/core/private-dir.js +0 -48
- package/dist/core/process-command-line.d.ts +0 -6
- package/dist/core/process-command-line.js +0 -39
- package/dist/core/prompt-template.d.ts +0 -14
- package/dist/core/prompt-template.js +0 -29
- package/dist/core/rebuild-progress.d.ts +0 -59
- package/dist/core/rebuild-progress.js +0 -106
- package/dist/core/resilient-watch.d.ts +0 -28
- package/dist/core/resilient-watch.js +0 -108
- package/dist/core/resume-reminder.d.ts +0 -5
- package/dist/core/resume-reminder.js +0 -12
- package/dist/core/run-registry.d.ts +0 -134
- package/dist/core/run-registry.js +0 -256
- package/dist/core/runtime-env.d.ts +0 -1
- package/dist/core/runtime-env.js +0 -11
- package/dist/core/session-holds.d.ts +0 -88
- package/dist/core/session-holds.js +0 -168
- package/dist/core/session-state.d.ts +0 -32
- package/dist/core/session-state.js +0 -39
- package/dist/core/session-todos.d.ts +0 -12
- package/dist/core/session-todos.js +0 -44
- package/dist/core/settings-migration.d.ts +0 -5
- package/dist/core/settings-migration.js +0 -128
- package/dist/core/settings-spec.d.ts +0 -301
- package/dist/core/settings-spec.js +0 -309
- package/dist/core/settings.d.ts +0 -19
- package/dist/core/settings.js +0 -492
- package/dist/core/short-session-id.d.ts +0 -2
- package/dist/core/short-session-id.js +0 -4
- package/dist/core/singleton-lock.d.ts +0 -39
- package/dist/core/singleton-lock.js +0 -127
- package/dist/core/status-format.d.ts +0 -70
- package/dist/core/status-format.js +0 -59
- package/dist/core/subagent-spawn.d.ts +0 -40
- package/dist/core/subagent-spawn.js +0 -47
- package/dist/core/team-action.d.ts +0 -28
- package/dist/core/team-action.js +0 -65
- package/dist/core/todo.d.ts +0 -18
- package/dist/core/todo.js +0 -79
- package/dist/core/tool-names.d.ts +0 -12
- package/dist/core/tool-names.js +0 -65
- package/dist/core/types/agent-types.d.ts +0 -173
- package/dist/core/types/agent-types.js +0 -1
- package/dist/core/types/environment-types.d.ts +0 -45
- package/dist/core/types/environment-types.js +0 -1
- package/dist/core/utils.d.ts +0 -72
- package/dist/core/utils.js +0 -176
- package/dist/core/version.d.ts +0 -6
- package/dist/core/version.js +0 -11
- package/dist/core/workspace-filenames.d.ts +0 -9
- package/dist/core/workspace-filenames.js +0 -61
- package/dist/domain/agents/agent-state.d.ts +0 -19
- package/dist/domain/agents/agent-state.js +0 -73
- package/dist/domain/agents/agent-switch.d.ts +0 -16
- package/dist/domain/agents/agent-switch.js +0 -30
- package/dist/domain/agents/config.d.ts +0 -20
- package/dist/domain/agents/config.js +0 -89
- package/dist/domain/agents/engine-selection.d.ts +0 -21
- package/dist/domain/agents/engine-selection.js +0 -37
- package/dist/domain/agents/environments/entities.d.ts +0 -50
- package/dist/domain/agents/environments/entities.js +0 -94
- package/dist/domain/agents/environments/file-refs.d.ts +0 -20
- package/dist/domain/agents/environments/file-refs.js +0 -51
- package/dist/domain/agents/environments/index.d.ts +0 -7
- package/dist/domain/agents/environments/index.js +0 -9
- package/dist/domain/agents/environments/paths.d.ts +0 -7
- package/dist/domain/agents/environments/paths.js +0 -9
- package/dist/domain/agents/environments/prompt-includes.d.ts +0 -1
- package/dist/domain/agents/environments/prompt-includes.js +0 -91
- package/dist/domain/agents/environments/registry.d.ts +0 -17
- package/dist/domain/agents/environments/registry.js +0 -163
- package/dist/domain/agents/environments/resolve.d.ts +0 -11
- package/dist/domain/agents/environments/resolve.js +0 -36
- package/dist/domain/agents/environments/schema.d.ts +0 -69
- package/dist/domain/agents/environments/schema.js +0 -115
- package/dist/domain/agents/environments/schema.parity.d.ts +0 -1
- package/dist/domain/agents/environments/schema.parity.js +0 -7
- package/dist/domain/agents/environments/system-prompt.d.ts +0 -37
- package/dist/domain/agents/environments/system-prompt.js +0 -110
- package/dist/domain/agents/index.d.ts +0 -6
- package/dist/domain/agents/index.js +0 -7
- package/dist/domain/agents/model-selection.d.ts +0 -30
- package/dist/domain/agents/model-selection.js +0 -111
- package/dist/domain/agents/models.d.ts +0 -12
- package/dist/domain/agents/models.js +0 -94
- package/dist/domain/agents/provider-run-lifecycle.d.ts +0 -11
- package/dist/domain/agents/provider-run-lifecycle.js +0 -17
- package/dist/domain/agents/subagent/background-spend.d.ts +0 -17
- package/dist/domain/agents/subagent/background-spend.js +0 -42
- package/dist/domain/agents/subagent/foreign.d.ts +0 -13
- package/dist/domain/agents/subagent/foreign.js +0 -30
- package/dist/domain/agents/subagent/registry.d.ts +0 -106
- package/dist/domain/agents/subagent/registry.js +0 -272
- package/dist/domain/agents/subagent/runner.d.ts +0 -61
- package/dist/domain/agents/subagent/runner.js +0 -301
- package/dist/domain/agents/subagent/service.d.ts +0 -26
- package/dist/domain/agents/subagent/service.js +0 -68
- package/dist/domain/auth/anthropic-env.d.ts +0 -20
- package/dist/domain/auth/anthropic-env.js +0 -132
- package/dist/domain/auth/auth-events.d.ts +0 -18
- package/dist/domain/auth/auth-events.js +0 -34
- package/dist/domain/auth/auth-format.d.ts +0 -2
- package/dist/domain/auth/auth-format.js +0 -53
- package/dist/domain/auth/auth-status.d.ts +0 -63
- package/dist/domain/auth/auth-status.js +0 -286
- package/dist/domain/auth/auth-watch.d.ts +0 -16
- package/dist/domain/auth/auth-watch.js +0 -166
- package/dist/domain/auth/cc-auth-cli.d.ts +0 -30
- package/dist/domain/auth/cc-login.d.ts +0 -7
- package/dist/domain/auth/cc-login.js +0 -20
- package/dist/domain/auth/cc-subscription.d.ts +0 -18
- package/dist/domain/auth/cc-subscription.js +0 -54
- package/dist/domain/auth/claude-account-credentials.d.ts +0 -13
- package/dist/domain/auth/claude-account-credentials.js +0 -22
- package/dist/domain/auth/claude-user-settings.d.ts +0 -22
- package/dist/domain/auth/claude-user-settings.js +0 -104
- package/dist/domain/auth/codex-credentials.d.ts +0 -13
- package/dist/domain/auth/codex-credentials.js +0 -25
- package/dist/domain/auth/gateway-sync.d.ts +0 -19
- package/dist/domain/auth/gateway-sync.js +0 -46
- package/dist/domain/auth/index.d.ts +0 -14
- package/dist/domain/auth/index.js +0 -14
- package/dist/domain/auth/login-flow.d.ts +0 -141
- package/dist/domain/auth/login-flow.js +0 -339
- package/dist/domain/auth/login-service.d.ts +0 -33
- package/dist/domain/auth/login-service.js +0 -65
- package/dist/domain/auth/logout.d.ts +0 -32
- package/dist/domain/auth/logout.js +0 -156
- package/dist/domain/auth/pi-login.d.ts +0 -26
- package/dist/domain/auth/pi-login.js +0 -70
- package/dist/domain/auth/pi-oauth.d.ts +0 -26
- package/dist/domain/auth/pi-oauth.js +0 -85
- package/dist/domain/auth/pi-runtime.d.ts +0 -82
- package/dist/domain/auth/pi-runtime.js +0 -40
- package/dist/domain/benchmark/accounting-reconciliation.d.ts +0 -117
- package/dist/domain/benchmark/accounting-reconciliation.js +0 -174
- package/dist/domain/benchmark/atif.d.ts +0 -42
- package/dist/domain/benchmark/atif.js +0 -263
- package/dist/domain/benchmark/attempt-record.d.ts +0 -167
- package/dist/domain/benchmark/attempt-record.js +0 -113
- package/dist/domain/benchmark/benchmark-types.d.ts +0 -17
- package/dist/domain/benchmark/benchmark-types.js +0 -1
- package/dist/domain/benchmark/composite-manifest.d.ts +0 -117
- package/dist/domain/benchmark/composite-manifest.js +0 -477
- package/dist/domain/benchmark/decimal-text.d.ts +0 -22
- package/dist/domain/benchmark/decimal-text.js +0 -42
- package/dist/domain/benchmark/identity.d.ts +0 -39
- package/dist/domain/benchmark/identity.js +0 -70
- package/dist/domain/benchmark/journal.d.ts +0 -47
- package/dist/domain/benchmark/journal.js +0 -254
- package/dist/domain/benchmark/manifest-contract.d.ts +0 -30
- package/dist/domain/benchmark/manifest-contract.js +0 -118
- package/dist/domain/benchmark/production-attempt-identity.d.ts +0 -73
- package/dist/domain/benchmark/production-attempt-identity.js +0 -372
- package/dist/domain/benchmark/production-attempt-journal.d.ts +0 -38
- package/dist/domain/benchmark/production-attempt-journal.js +0 -267
- package/dist/domain/benchmark/production-benchmark-evidence.d.ts +0 -2
- package/dist/domain/benchmark/production-benchmark-evidence.js +0 -67
- package/dist/domain/benchmark/production-evidence-export.d.ts +0 -14
- package/dist/domain/benchmark/production-evidence-export.js +0 -134
- package/dist/domain/benchmark/production-evidence-journal.d.ts +0 -11
- package/dist/domain/benchmark/production-evidence-journal.js +0 -81
- package/dist/domain/benchmark/production-evidence-projection.d.ts +0 -39
- package/dist/domain/benchmark/production-evidence-projection.js +0 -392
- package/dist/domain/benchmark/role-surface.d.ts +0 -4
- package/dist/domain/benchmark/role-surface.js +0 -117
- package/dist/domain/benchmark/session-evidence.d.ts +0 -7
- package/dist/domain/benchmark/session-evidence.js +0 -34
- package/dist/domain/boards/board-context.d.ts +0 -17
- package/dist/domain/boards/board-context.js +0 -11
- package/dist/domain/boards/board-paths.d.ts +0 -18
- package/dist/domain/boards/board-paths.js +0 -32
- package/dist/domain/boards/board-service.d.ts +0 -50
- package/dist/domain/boards/board-service.js +0 -146
- package/dist/domain/boards/board-watcher.d.ts +0 -36
- package/dist/domain/boards/board-watcher.js +0 -284
- package/dist/domain/boards/decision-projection.d.ts +0 -46
- package/dist/domain/boards/decision-projection.js +0 -44
- package/dist/domain/browser/broker.d.ts +0 -99
- package/dist/domain/browser/broker.js +0 -487
- package/dist/domain/costs/account-reset.d.ts +0 -30
- package/dist/domain/costs/account-reset.js +0 -98
- package/dist/domain/costs/aistatus-config.d.ts +0 -27
- package/dist/domain/costs/aistatus-config.js +0 -56
- package/dist/domain/costs/claude-account.d.ts +0 -34
- package/dist/domain/costs/claude-account.js +0 -170
- package/dist/domain/costs/codex-account.d.ts +0 -55
- package/dist/domain/costs/codex-account.js +0 -155
- package/dist/domain/costs/cost-tracker.d.ts +0 -181
- package/dist/domain/costs/cost-tracker.js +0 -350
- package/dist/domain/costs/gateway-manager.d.ts +0 -6
- package/dist/domain/costs/gateway-manager.js +0 -225
- package/dist/domain/costs/rate-limit-throttle.d.ts +0 -78
- package/dist/domain/costs/rate-limit-throttle.js +0 -502
- package/dist/domain/costs/reset-account.d.ts +0 -36
- package/dist/domain/costs/reset-account.js +0 -5
- package/dist/domain/costs/resume-registry.d.ts +0 -30
- package/dist/domain/costs/resume-registry.js +0 -108
- package/dist/domain/costs/usage-service.d.ts +0 -80
- package/dist/domain/costs/usage-service.js +0 -618
- package/dist/domain/costs/usage-store.d.ts +0 -83
- package/dist/domain/costs/usage-store.js +0 -104
- package/dist/domain/executions/registry.d.ts +0 -47
- package/dist/domain/executions/registry.js +0 -100
- package/dist/domain/hooks/hook-view.d.ts +0 -22
- package/dist/domain/hooks/hook-view.js +0 -34
- package/dist/domain/mcp/bundled-server.d.ts +0 -19
- package/dist/domain/mcp/feishu/client.d.ts +0 -46
- package/dist/domain/mcp/feishu/client.js +0 -91
- package/dist/domain/mcp/feishu/file.d.ts +0 -14
- package/dist/domain/mcp/feishu/file.js +0 -88
- package/dist/domain/mcp/feishu/types.d.ts +0 -31
- package/dist/domain/mcp/feishu/types.js +0 -34
- package/dist/domain/mcp/feishu/user-auth.d.ts +0 -140
- package/dist/domain/mcp/feishu/user-auth.js +0 -278
- package/dist/domain/mcp/tools/agents-md.d.ts +0 -16
- package/dist/domain/mcp/tools/agents-md.js +0 -34
- package/dist/domain/mcp/tools/catalog-owner.d.ts +0 -3
- package/dist/domain/mcp/tools/catalog-owner.js +0 -23
- package/dist/domain/mcp/tools/context.d.ts +0 -69
- package/dist/domain/mcp/tools/context.js +0 -106
- package/dist/domain/mcp/tools/cost.d.ts +0 -2
- package/dist/domain/mcp/tools/cost.js +0 -56
- package/dist/domain/mcp/tools/executions.d.ts +0 -2
- package/dist/domain/mcp/tools/executions.js +0 -71
- package/dist/domain/mcp/tools/interaction-ask.d.ts +0 -37
- package/dist/domain/mcp/tools/interaction-ask.js +0 -131
- package/dist/domain/mcp/tools/interaction-plan.d.ts +0 -34
- package/dist/domain/mcp/tools/interaction-plan.js +0 -116
- package/dist/domain/mcp/tools/remote-devices.d.ts +0 -9
- package/dist/domain/mcp/tools/remote-devices.js +0 -28
- package/dist/domain/mcp/tools/remote-file.d.ts +0 -24
- package/dist/domain/mcp/tools/remote-file.js +0 -52
- package/dist/domain/mcp/tools/remote-ops.d.ts +0 -3
- package/dist/domain/mcp/tools/remote-ops.js +0 -359
- package/dist/domain/mcp/tools/slack.d.ts +0 -23
- package/dist/domain/mcp/tools/slack.js +0 -106
- package/dist/domain/mcp/tools/subagent.d.ts +0 -23
- package/dist/domain/mcp/tools/subagent.js +0 -179
- package/dist/domain/mcp/tools/time.d.ts +0 -2
- package/dist/domain/mcp/tools/time.js +0 -62
- package/dist/domain/mcp/tools/ui-board.d.ts +0 -12
- package/dist/domain/mcp/tools/ui-board.js +0 -48
- package/dist/domain/mcp/tools/ui-decision.d.ts +0 -3
- package/dist/domain/mcp/tools/ui-decision.js +0 -37
- package/dist/domain/mcp/tools/ui-file.d.ts +0 -3
- package/dist/domain/mcp/tools/ui-file.js +0 -70
- package/dist/domain/mcp/tools/ui-view.d.ts +0 -3
- package/dist/domain/mcp/tools/ui-view.js +0 -44
- package/dist/domain/mcp/tools/waitpoint.d.ts +0 -28
- package/dist/domain/mcp/tools/waitpoint.js +0 -109
- package/dist/domain/mcp/tools/workers.d.ts +0 -5
- package/dist/domain/mcp/tools/workers.js +0 -77
- package/dist/domain/memory/agents-md-injector.d.ts +0 -25
- package/dist/domain/memory/agents-md-injector.js +0 -58
- package/dist/domain/memory/consolidate.d.ts +0 -56
- package/dist/domain/memory/consolidate.js +0 -419
- package/dist/domain/memory/index-regen.d.ts +0 -30
- package/dist/domain/memory/index-regen.js +0 -334
- package/dist/domain/memory/rules-loader.d.ts +0 -6
- package/dist/domain/memory/rules-loader.js +0 -13
- package/dist/domain/memory/user-context.d.ts +0 -5
- package/dist/domain/memory/user-context.js +0 -32
- package/dist/domain/memory/watcher.d.ts +0 -8
- package/dist/domain/memory/watcher.js +0 -135
- package/dist/domain/monitor/disk-monitor.d.ts +0 -17
- package/dist/domain/monitor/disk-monitor.js +0 -117
- package/dist/domain/monitor/event-loop-monitor.d.ts +0 -35
- package/dist/domain/monitor/event-loop-monitor.js +0 -64
- package/dist/domain/monitor/gpu-monitor.d.ts +0 -26
- package/dist/domain/monitor/gpu-monitor.js +0 -132
- package/dist/domain/pi-providers/custom-provider-model.d.ts +0 -49
- package/dist/domain/pi-providers/custom-provider-model.js +0 -116
- package/dist/domain/pi-providers/custom-provider-service.d.ts +0 -57
- package/dist/domain/pi-providers/custom-provider-service.js +0 -153
- package/dist/domain/pi-providers/gateway-route-store.d.ts +0 -23
- package/dist/domain/pi-providers/gateway-route-store.js +0 -74
- package/dist/domain/pi-providers/index.d.ts +0 -3
- package/dist/domain/pi-providers/index.js +0 -3
- package/dist/domain/pi-providers/models-json-store.d.ts +0 -6
- package/dist/domain/pi-providers/models-json-store.js +0 -73
- package/dist/domain/plugins/agent-plugins-v1.d.ts +0 -58
- package/dist/domain/plugins/agent-plugins-v1.js +0 -84
- package/dist/domain/plugins/authoring.d.ts +0 -46
- package/dist/domain/plugins/authoring.js +0 -335
- package/dist/domain/plugins/builtin.d.ts +0 -25
- package/dist/domain/plugins/builtin.js +0 -44
- package/dist/domain/plugins/catalog-types.d.ts +0 -89
- package/dist/domain/plugins/catalog-types.js +0 -39
- package/dist/domain/plugins/catalog.d.ts +0 -39
- package/dist/domain/plugins/catalog.js +0 -482
- package/dist/domain/plugins/conversation-skills.d.ts +0 -10
- package/dist/domain/plugins/conversation-skills.js +0 -22
- package/dist/domain/plugins/fs-helpers.d.ts +0 -9
- package/dist/domain/plugins/fs-helpers.js +0 -107
- package/dist/domain/plugins/mcp.d.ts +0 -6
- package/dist/domain/plugins/mcp.js +0 -223
- package/dist/domain/plugins/runtime-gc.d.ts +0 -17
- package/dist/domain/plugins/runtime-gc.js +0 -101
- package/dist/domain/plugins/runtime.d.ts +0 -21
- package/dist/domain/plugins/runtime.js +0 -555
- package/dist/domain/plugins/skill-projection.d.ts +0 -19
- package/dist/domain/plugins/skill-projection.js +0 -193
- package/dist/domain/plugins/skill.d.ts +0 -14
- package/dist/domain/plugins/skill.js +0 -145
- package/dist/domain/projects/index.d.ts +0 -3
- package/dist/domain/projects/index.js +0 -3
- package/dist/domain/projects/project-store.d.ts +0 -72
- package/dist/domain/projects/project-store.js +0 -240
- package/dist/domain/projects/project-types.d.ts +0 -11
- package/dist/domain/projects/project-types.js +0 -1
- package/dist/domain/remote/client-bootstrap.d.ts +0 -1
- package/dist/domain/remote/client-bootstrap.js +0 -126
- package/dist/domain/remote/client-hot-reload.d.ts +0 -40
- package/dist/domain/remote/client-hot-reload.js +0 -269
- package/dist/domain/remote/client-lifecycle.d.ts +0 -32
- package/dist/domain/remote/client-lifecycle.js +0 -382
- package/dist/domain/remote/client-manager.d.ts +0 -54
- package/dist/domain/remote/client-manager.js +0 -325
- package/dist/domain/remote/client-pids.d.ts +0 -13
- package/dist/domain/remote/client-pids.js +0 -43
- package/dist/domain/remote/client-protocol.d.ts +0 -1
- package/dist/domain/remote/client-protocol.js +0 -1
- package/dist/domain/remote/client-remove.d.ts +0 -61
- package/dist/domain/remote/client-remove.js +0 -129
- package/dist/domain/remote/client-ssh-tunnel.d.ts +0 -79
- package/dist/domain/remote/client-ssh-tunnel.js +0 -352
- package/dist/domain/remote/device-browser.d.ts +0 -38
- package/dist/domain/remote/device-browser.js +0 -158
- package/dist/domain/remote/device-chrome-commands.d.ts +0 -18
- package/dist/domain/remote/device-chrome-commands.js +0 -125
- package/dist/domain/remote/device-file.d.ts +0 -51
- package/dist/domain/remote/device-file.js +0 -193
- package/dist/domain/remote/device-port.d.ts +0 -23
- package/dist/domain/remote/device-port.js +0 -192
- package/dist/domain/remote/local-client-install.d.ts +0 -32
- package/dist/domain/remote/local-client-install.js +0 -168
- package/dist/domain/remote/local-client-stop.d.ts +0 -37
- package/dist/domain/remote/local-client-stop.js +0 -101
- package/dist/domain/remote/machine-registry.d.ts +0 -54
- package/dist/domain/remote/machine-registry.js +0 -184
- package/dist/domain/remote/owned-local-launch.d.ts +0 -22
- package/dist/domain/remote/owned-local-launch.js +0 -75
- package/dist/domain/remote/package-client-bundle.d.ts +0 -14
- package/dist/domain/remote/package-client-bundle.js +0 -37
- package/dist/domain/remote/reverse-stream.d.ts +0 -42
- package/dist/domain/remote/reverse-stream.js +0 -95
- package/dist/domain/remote/ssh-exec.d.ts +0 -10
- package/dist/domain/remote/ssh-exec.js +0 -25
- package/dist/domain/runs/adapters.d.ts +0 -15
- package/dist/domain/runs/adapters.js +0 -59
- package/dist/domain/runs/attempt.d.ts +0 -37
- package/dist/domain/runs/attempt.js +0 -232
- package/dist/domain/runs/builders.d.ts +0 -27
- package/dist/domain/runs/builders.js +0 -47
- package/dist/domain/runs/compact.d.ts +0 -30
- package/dist/domain/runs/compact.js +0 -43
- package/dist/domain/runs/config-resolver.d.ts +0 -26
- package/dist/domain/runs/config-resolver.js +0 -38
- package/dist/domain/runs/engine-spec.d.ts +0 -40
- package/dist/domain/runs/engine-spec.js +0 -215
- package/dist/domain/runs/engines.d.ts +0 -71
- package/dist/domain/runs/engines.js +0 -181
- package/dist/domain/runs/events.d.ts +0 -2
- package/dist/domain/runs/events.js +0 -1
- package/dist/domain/runs/fallback.d.ts +0 -11
- package/dist/domain/runs/fallback.js +0 -18
- package/dist/domain/runs/mode-env.d.ts +0 -16
- package/dist/domain/runs/mode-env.js +0 -48
- package/dist/domain/runs/notices.d.ts +0 -44
- package/dist/domain/runs/notices.js +0 -109
- package/dist/domain/runs/observers/resume-recorder.d.ts +0 -26
- package/dist/domain/runs/observers/resume-recorder.js +0 -27
- package/dist/domain/runs/prompt.d.ts +0 -78
- package/dist/domain/runs/prompt.js +0 -98
- package/dist/domain/runs/request.d.ts +0 -99
- package/dist/domain/runs/request.js +0 -1
- package/dist/domain/runs/retryable-errors.d.ts +0 -5
- package/dist/domain/runs/retryable-errors.js +0 -24
- package/dist/domain/runs/run.d.ts +0 -238
- package/dist/domain/runs/run.js +0 -574
- package/dist/domain/runs/service.d.ts +0 -3
- package/dist/domain/runs/service.js +0 -63
- package/dist/domain/runs/spec-loader.d.ts +0 -75
- package/dist/domain/runs/spec-loader.js +0 -58
- package/dist/domain/runs/spend.d.ts +0 -16
- package/dist/domain/runs/spend.js +0 -31
- package/dist/domain/scheduling/builtin-job-controller.d.ts +0 -21
- package/dist/domain/scheduling/builtin-job-controller.js +0 -106
- package/dist/domain/scheduling/builtin-job-migration.d.ts +0 -23
- package/dist/domain/scheduling/builtin-job-migration.js +0 -64
- package/dist/domain/scheduling/builtin-jobs.d.ts +0 -2
- package/dist/domain/scheduling/builtin-jobs.js +0 -44
- package/dist/domain/scheduling/job-registry.d.ts +0 -22
- package/dist/domain/scheduling/job-registry.js +0 -16
- package/dist/domain/scheduling/jobs/auth-expiry-scan.d.ts +0 -15
- package/dist/domain/scheduling/jobs/auth-expiry-scan.js +0 -75
- package/dist/domain/scheduling/jobs/scheduled-task.d.ts +0 -24
- package/dist/domain/scheduling/jobs/scheduled-task.js +0 -112
- package/dist/domain/scheduling/jobs/sync-public.d.ts +0 -4
- package/dist/domain/scheduling/jobs/sync-public.js +0 -40
- package/dist/domain/scheduling/run-guards.d.ts +0 -6
- package/dist/domain/scheduling/run-guards.js +0 -18
- package/dist/domain/scheduling/runner.d.ts +0 -17
- package/dist/domain/scheduling/runner.js +0 -22
- package/dist/domain/scheduling/schedule-ops.d.ts +0 -15
- package/dist/domain/scheduling/schedule-ops.js +0 -43
- package/dist/domain/scheduling/schedule-selection.d.ts +0 -3
- package/dist/domain/scheduling/schedule-selection.js +0 -16
- package/dist/domain/scheduling/schedule-spec.d.ts +0 -79
- package/dist/domain/scheduling/schedule-spec.js +0 -169
- package/dist/domain/scheduling/scheduler.d.ts +0 -75
- package/dist/domain/scheduling/scheduler.js +0 -312
- package/dist/domain/sessions/session-backup.d.ts +0 -44
- package/dist/domain/sessions/session-backup.js +0 -138
- package/dist/domain/sessions/session-hooks.d.ts +0 -130
- package/dist/domain/sessions/session-hooks.js +0 -347
- package/dist/domain/sessions/session-lifecycle.d.ts +0 -91
- package/dist/domain/sessions/session-lifecycle.js +0 -82
- package/dist/domain/sessions/session-retention.d.ts +0 -50
- package/dist/domain/sessions/session-retention.js +0 -466
- package/dist/domain/sessions/session-use.d.ts +0 -28
- package/dist/domain/sessions/session-use.js +0 -45
- package/dist/domain/sessions/session.d.ts +0 -3
- package/dist/domain/sessions/session.js +0 -13
- package/dist/domain/sessions/team.d.ts +0 -26
- package/dist/domain/sessions/team.js +0 -30
- package/dist/domain/system/doctor.d.ts +0 -82
- package/dist/domain/system/doctor.js +0 -484
- package/dist/domain/system/github-release.d.ts +0 -16
- package/dist/domain/system/github-release.js +0 -101
- package/dist/domain/system/install-cli.d.ts +0 -7
- package/dist/domain/system/install-cli.js +0 -107
- package/dist/domain/system/notice-history.d.ts +0 -18
- package/dist/domain/system/notice-history.js +0 -23
- package/dist/domain/system/own-bin-path.d.ts +0 -13
- package/dist/domain/system/own-bin-path.js +0 -36
- package/dist/domain/system/preferences.d.ts +0 -30
- package/dist/domain/system/preferences.js +0 -59
- package/dist/domain/system/rebuild-hold.d.ts +0 -36
- package/dist/domain/system/rebuild-hold.js +0 -83
- package/dist/domain/system/server-update-check.d.ts +0 -24
- package/dist/domain/system/server-update-check.js +0 -89
- package/dist/domain/system/server-update-coordinator.d.ts +0 -46
- package/dist/domain/system/server-update-coordinator.js +0 -155
- package/dist/domain/system/server-update-install.d.ts +0 -16
- package/dist/domain/system/server-update-install.js +0 -65
- package/dist/domain/system/system-notice.d.ts +0 -24
- package/dist/domain/system/system-notice.js +0 -31
- package/dist/domain/system/terminal-cli/index.d.ts +0 -58
- package/dist/domain/system/terminal-cli/index.js +0 -100
- package/dist/domain/system/terminal-cli/posix-profiles.d.ts +0 -23
- package/dist/domain/system/terminal-cli/posix-profiles.js +0 -74
- package/dist/domain/system/terminal-cli/registrar.d.ts +0 -12
- package/dist/domain/system/terminal-cli/registrar.js +0 -1
- package/dist/domain/system/terminal-cli/shims.d.ts +0 -27
- package/dist/domain/system/terminal-cli/shims.js +0 -108
- package/dist/domain/system/terminal-cli/state.d.ts +0 -7
- package/dist/domain/system/terminal-cli/state.js +0 -36
- package/dist/domain/system/terminal-cli/windows-user-path.d.ts +0 -13
- package/dist/domain/system/terminal-cli/windows-user-path.js +0 -67
- package/dist/domain/system/update-prompt.d.ts +0 -8
- package/dist/domain/system/update-prompt.js +0 -1
- package/dist/domain/system/update-state.d.ts +0 -9
- package/dist/domain/system/update-state.js +0 -22
- package/dist/domain/system/update-ui-state.d.ts +0 -39
- package/dist/domain/system/update-ui-state.js +0 -70
- package/dist/domain/telemetry/bus-collector.d.ts +0 -3
- package/dist/domain/telemetry/bus-collector.js +0 -22
- package/dist/domain/telemetry/child-exit.d.ts +0 -11
- package/dist/domain/telemetry/child-exit.js +0 -36
- package/dist/domain/telemetry/client-kind.d.ts +0 -4
- package/dist/domain/telemetry/client-kind.js +0 -7
- package/dist/domain/telemetry/crash-limits.d.ts +0 -15
- package/dist/domain/telemetry/crash-limits.js +0 -50
- package/dist/domain/telemetry/crash.d.ts +0 -25
- package/dist/domain/telemetry/crash.js +0 -70
- package/dist/domain/telemetry/daily-upload.d.ts +0 -5
- package/dist/domain/telemetry/daily-upload.js +0 -20
- package/dist/domain/telemetry/daily.d.ts +0 -5
- package/dist/domain/telemetry/daily.js +0 -104
- package/dist/domain/telemetry/endpoint.d.ts +0 -7
- package/dist/domain/telemetry/endpoint.js +0 -40
- package/dist/domain/telemetry/envelope.d.ts +0 -6
- package/dist/domain/telemetry/envelope.js +0 -35
- package/dist/domain/telemetry/error-digest.d.ts +0 -7
- package/dist/domain/telemetry/error-digest.js +0 -43
- package/dist/domain/telemetry/funnel.d.ts +0 -6
- package/dist/domain/telemetry/funnel.js +0 -22
- package/dist/domain/telemetry/gate.d.ts +0 -19
- package/dist/domain/telemetry/gate.js +0 -67
- package/dist/domain/telemetry/heartbeat.d.ts +0 -17
- package/dist/domain/telemetry/heartbeat.js +0 -49
- package/dist/domain/telemetry/info.d.ts +0 -9
- package/dist/domain/telemetry/info.js +0 -12
- package/dist/domain/telemetry/init-answer.d.ts +0 -12
- package/dist/domain/telemetry/init-answer.js +0 -42
- package/dist/domain/telemetry/install-id.d.ts +0 -5
- package/dist/domain/telemetry/install-id.js +0 -42
- package/dist/domain/telemetry/normalize.d.ts +0 -33
- package/dist/domain/telemetry/normalize.js +0 -88
- package/dist/domain/telemetry/outbox.d.ts +0 -18
- package/dist/domain/telemetry/outbox.js +0 -93
- package/dist/domain/telemetry/panic-group.d.ts +0 -4
- package/dist/domain/telemetry/panic-group.js +0 -51
- package/dist/domain/telemetry/paths.d.ts +0 -7
- package/dist/domain/telemetry/paths.js +0 -11
- package/dist/domain/telemetry/redact.d.ts +0 -18
- package/dist/domain/telemetry/redact.js +0 -109
- package/dist/domain/telemetry/rollup-types.d.ts +0 -81
- package/dist/domain/telemetry/rollup-types.js +0 -31
- package/dist/domain/telemetry/rollup.d.ts +0 -16
- package/dist/domain/telemetry/rollup.js +0 -102
- package/dist/domain/telemetry/schema.d.ts +0 -931
- package/dist/domain/telemetry/schema.js +0 -275
- package/dist/domain/telemetry/service.d.ts +0 -34
- package/dist/domain/telemetry/service.js +0 -146
- package/dist/domain/telemetry/state.d.ts +0 -17
- package/dist/domain/telemetry/state.js +0 -29
- package/dist/domain/telemetry/turns.d.ts +0 -17
- package/dist/domain/telemetry/turns.js +0 -176
- package/dist/domain/telemetry/upgrade.d.ts +0 -14
- package/dist/domain/telemetry/upgrade.js +0 -87
- package/dist/domain/telemetry/uploader.d.ts +0 -21
- package/dist/domain/telemetry/uploader.js +0 -82
- package/dist/domain/telemetry/usage.d.ts +0 -25
- package/dist/domain/telemetry/usage.js +0 -153
- package/dist/domain/telemetry/web-report.d.ts +0 -8
- package/dist/domain/telemetry/web-report.js +0 -15
- package/dist/domain/tui-session/index.d.ts +0 -2
- package/dist/domain/tui-session/index.js +0 -1
- package/dist/domain/tui-session/tui-session-service.d.ts +0 -2
- package/dist/domain/tui-session/tui-session-service.js +0 -85
- package/dist/domain/tui-session/types.d.ts +0 -40
- package/dist/domain/tui-session/types.js +0 -1
- package/dist/domain/ui-service/app-router.d.ts +0 -1180
- package/dist/domain/ui-service/app-router.js +0 -312
- package/dist/domain/ui-service/assistant-snapshots.d.ts +0 -10
- package/dist/domain/ui-service/assistant-snapshots.js +0 -45
- package/dist/domain/ui-service/contract.parity.d.ts +0 -19
- package/dist/domain/ui-service/contract.parity.js +0 -1
- package/dist/domain/ui-service/index.d.ts +0 -4
- package/dist/domain/ui-service/index.js +0 -1
- package/dist/domain/ui-service/inline-media-types.d.ts +0 -18
- package/dist/domain/ui-service/inline-media-types.js +0 -1
- package/dist/domain/ui-service/input-schemas.d.ts +0 -1132
- package/dist/domain/ui-service/input-schemas.js +0 -710
- package/dist/domain/ui-service/mutate/approvals.d.ts +0 -33
- package/dist/domain/ui-service/mutate/approvals.js +0 -134
- package/dist/domain/ui-service/mutate/auth.d.ts +0 -15
- package/dist/domain/ui-service/mutate/auth.js +0 -103
- package/dist/domain/ui-service/mutate/config.d.ts +0 -18
- package/dist/domain/ui-service/mutate/config.js +0 -108
- package/dist/domain/ui-service/mutate/custom-providers.d.ts +0 -8
- package/dist/domain/ui-service/mutate/custom-providers.js +0 -33
- package/dist/domain/ui-service/mutate/environments.d.ts +0 -27
- package/dist/domain/ui-service/mutate/environments.js +0 -66
- package/dist/domain/ui-service/mutate/errors.d.ts +0 -7
- package/dist/domain/ui-service/mutate/errors.js +0 -14
- package/dist/domain/ui-service/mutate/executions.d.ts +0 -4
- package/dist/domain/ui-service/mutate/executions.js +0 -15
- package/dist/domain/ui-service/mutate/hooks.d.ts +0 -12
- package/dist/domain/ui-service/mutate/hooks.js +0 -110
- package/dist/domain/ui-service/mutate/issues.d.ts +0 -18
- package/dist/domain/ui-service/mutate/issues.js +0 -100
- package/dist/domain/ui-service/mutate/models.d.ts +0 -13
- package/dist/domain/ui-service/mutate/models.js +0 -137
- package/dist/domain/ui-service/mutate/notes.d.ts +0 -6
- package/dist/domain/ui-service/mutate/notes.js +0 -32
- package/dist/domain/ui-service/mutate/platform-settings.d.ts +0 -6
- package/dist/domain/ui-service/mutate/platform-settings.js +0 -17
- package/dist/domain/ui-service/mutate/plugin-packages.d.ts +0 -10
- package/dist/domain/ui-service/mutate/plugin-packages.js +0 -152
- package/dist/domain/ui-service/mutate/plugins.d.ts +0 -2
- package/dist/domain/ui-service/mutate/plugins.js +0 -38
- package/dist/domain/ui-service/mutate/projects.d.ts +0 -4
- package/dist/domain/ui-service/mutate/projects.js +0 -7
- package/dist/domain/ui-service/mutate/resolve-media.d.ts +0 -4
- package/dist/domain/ui-service/mutate/resolve-media.js +0 -17
- package/dist/domain/ui-service/mutate/schedules.d.ts +0 -12
- package/dist/domain/ui-service/mutate/schedules.js +0 -75
- package/dist/domain/ui-service/mutate/session-metadata.d.ts +0 -3
- package/dist/domain/ui-service/mutate/session-metadata.js +0 -22
- package/dist/domain/ui-service/mutate/sessions.d.ts +0 -19
- package/dist/domain/ui-service/mutate/sessions.js +0 -307
- package/dist/domain/ui-service/mutate/system.d.ts +0 -10
- package/dist/domain/ui-service/mutate/system.js +0 -120
- package/dist/domain/ui-service/mutate/telemetry.d.ts +0 -5
- package/dist/domain/ui-service/mutate/telemetry.js +0 -6
- package/dist/domain/ui-service/mutate/usage-sharing.d.ts +0 -8
- package/dist/domain/ui-service/mutate/usage-sharing.js +0 -16
- package/dist/domain/ui-service/mutate/waitpoints.d.ts +0 -2
- package/dist/domain/ui-service/mutate/waitpoints.js +0 -13
- package/dist/domain/ui-service/platform-settings.d.ts +0 -5
- package/dist/domain/ui-service/platform-settings.js +0 -72
- package/dist/domain/ui-service/plugins-shared.d.ts +0 -29
- package/dist/domain/ui-service/plugins-shared.js +0 -176
- package/dist/domain/ui-service/query/approvals.d.ts +0 -10
- package/dist/domain/ui-service/query/approvals.js +0 -119
- package/dist/domain/ui-service/query/auth.d.ts +0 -6
- package/dist/domain/ui-service/query/auth.js +0 -8
- package/dist/domain/ui-service/query/boards.d.ts +0 -14
- package/dist/domain/ui-service/query/boards.js +0 -111
- package/dist/domain/ui-service/query/config.d.ts +0 -9
- package/dist/domain/ui-service/query/config.js +0 -167
- package/dist/domain/ui-service/query/cost.d.ts +0 -3
- package/dist/domain/ui-service/query/cost.js +0 -3
- package/dist/domain/ui-service/query/custom-providers.d.ts +0 -8
- package/dist/domain/ui-service/query/custom-providers.js +0 -9
- package/dist/domain/ui-service/query/environments.d.ts +0 -12
- package/dist/domain/ui-service/query/environments.js +0 -73
- package/dist/domain/ui-service/query/executions.d.ts +0 -3
- package/dist/domain/ui-service/query/executions.js +0 -61
- package/dist/domain/ui-service/query/hooks.d.ts +0 -9
- package/dist/domain/ui-service/query/hooks.js +0 -92
- package/dist/domain/ui-service/query/issues.d.ts +0 -14
- package/dist/domain/ui-service/query/issues.js +0 -78
- package/dist/domain/ui-service/query/machine-detail.d.ts +0 -2
- package/dist/domain/ui-service/query/machine-detail.js +0 -30
- package/dist/domain/ui-service/query/machine-probe.d.ts +0 -18
- package/dist/domain/ui-service/query/machine-probe.js +0 -133
- package/dist/domain/ui-service/query/machines.d.ts +0 -2
- package/dist/domain/ui-service/query/machines.js +0 -21
- package/dist/domain/ui-service/query/memory.d.ts +0 -7
- package/dist/domain/ui-service/query/memory.js +0 -191
- package/dist/domain/ui-service/query/models.d.ts +0 -27
- package/dist/domain/ui-service/query/models.js +0 -125
- package/dist/domain/ui-service/query/notes.d.ts +0 -3
- package/dist/domain/ui-service/query/notes.js +0 -15
- package/dist/domain/ui-service/query/plugin-source.d.ts +0 -4
- package/dist/domain/ui-service/query/plugin-source.js +0 -58
- package/dist/domain/ui-service/query/plugins.d.ts +0 -2
- package/dist/domain/ui-service/query/plugins.js +0 -28
- package/dist/domain/ui-service/query/projects.d.ts +0 -2
- package/dist/domain/ui-service/query/projects.js +0 -27
- package/dist/domain/ui-service/query/schedules.d.ts +0 -5
- package/dist/domain/ui-service/query/schedules.js +0 -28
- package/dist/domain/ui-service/query/sessions.d.ts +0 -6
- package/dist/domain/ui-service/query/sessions.js +0 -430
- package/dist/domain/ui-service/query/skills.d.ts +0 -5
- package/dist/domain/ui-service/query/skills.js +0 -16
- package/dist/domain/ui-service/query/system.d.ts +0 -6
- package/dist/domain/ui-service/query/system.js +0 -120
- package/dist/domain/ui-service/query/telemetry.d.ts +0 -3
- package/dist/domain/ui-service/query/telemetry.js +0 -4
- package/dist/domain/ui-service/query/usage-sharing.d.ts +0 -4
- package/dist/domain/ui-service/query/usage-sharing.js +0 -5
- package/dist/domain/ui-service/query/waitpoints.d.ts +0 -10
- package/dist/domain/ui-service/query/waitpoints.js +0 -37
- package/dist/domain/ui-service/query-input-schemas.d.ts +0 -73
- package/dist/domain/ui-service/query-input-schemas.js +0 -70
- package/dist/domain/ui-service/session-metadata-schemas.d.ts +0 -13
- package/dist/domain/ui-service/session-metadata-schemas.js +0 -9
- package/dist/domain/ui-service/subscribe.d.ts +0 -6
- package/dist/domain/ui-service/subscribe.js +0 -125
- package/dist/domain/ui-service/trpc.d.ts +0 -52
- package/dist/domain/ui-service/trpc.js +0 -43
- package/dist/domain/ui-service/types.d.ts +0 -1808
- package/dist/domain/ui-service/types.js +0 -1
- package/dist/domain/ui-service/ui-service.d.ts +0 -541
- package/dist/domain/ui-service/ui-service.js +0 -235
- package/dist/domain/waitpoints/notices.d.ts +0 -25
- package/dist/domain/waitpoints/notices.js +0 -125
- package/dist/domain/waitpoints/service.d.ts +0 -107
- package/dist/domain/waitpoints/service.js +0 -276
- package/dist/domain/waitpoints/view.d.ts +0 -29
- package/dist/domain/waitpoints/view.js +0 -97
- package/dist/entry/admin-channel-hot-reload.d.ts +0 -4
- package/dist/entry/admin-channel-hot-reload.js +0 -17
- package/dist/entry/app.d.ts +0 -1
- package/dist/entry/auth-cli.d.ts +0 -9
- package/dist/entry/auth-cli.js +0 -55
- package/dist/entry/auth-login-cli.d.ts +0 -20
- package/dist/entry/auth-login-cli.js +0 -153
- package/dist/entry/auth-login-terminal.d.ts +0 -16
- package/dist/entry/auth-login-terminal.js +0 -59
- package/dist/entry/boot-jobs.d.ts +0 -7
- package/dist/entry/boot-jobs.js +0 -16
- package/dist/entry/browser-cli.d.ts +0 -39
- package/dist/entry/cli-help.d.ts +0 -10
- package/dist/entry/cli-help.js +0 -290
- package/dist/entry/cli.d.ts +0 -19
- package/dist/entry/client-cli.d.ts +0 -4
- package/dist/entry/client-cli.js +0 -62
- package/dist/entry/cortex-cli.d.ts +0 -1
- package/dist/entry/daemon-notice.d.ts +0 -26
- package/dist/entry/daemon-notice.js +0 -38
- package/dist/entry/daemon.d.ts +0 -120
- package/dist/entry/doctor-cli.d.ts +0 -8
- package/dist/entry/doctor-cli.js +0 -70
- package/dist/entry/draft-attachments.d.ts +0 -8
- package/dist/entry/draft-attachments.js +0 -79
- package/dist/entry/fast-install.d.ts +0 -49
- package/dist/entry/fast-install.js +0 -192
- package/dist/entry/feishu-login.d.ts +0 -21
- package/dist/entry/feishu-login.js +0 -209
- package/dist/entry/hook-cli.d.ts +0 -14
- package/dist/entry/init-auth.d.ts +0 -4
- package/dist/entry/init-auth.js +0 -42
- package/dist/entry/init-git.d.ts +0 -6
- package/dist/entry/init-git.js +0 -36
- package/dist/entry/init-local-client.d.ts +0 -11
- package/dist/entry/init-local-client.js +0 -34
- package/dist/entry/init.d.ts +0 -151
- package/dist/entry/init.js +0 -1292
- package/dist/entry/local-ui.d.ts +0 -38
- package/dist/entry/local-ui.js +0 -107
- package/dist/entry/memory-cli.d.ts +0 -3
- package/dist/entry/memory-cli.js +0 -79
- package/dist/entry/path-cli.d.ts +0 -4
- package/dist/entry/path-cli.js +0 -65
- package/dist/entry/platform-connect.d.ts +0 -23
- package/dist/entry/platform-connect.js +0 -94
- package/dist/entry/production-app-bootstrap.d.ts +0 -1
- package/dist/entry/production-evidence-export-cli.d.ts +0 -13
- package/dist/entry/provider-cli.d.ts +0 -12
- package/dist/entry/provider-cli.js +0 -199
- package/dist/entry/schedule-cli.d.ts +0 -10
- package/dist/entry/schedule-cli.js +0 -166
- package/dist/entry/shutdown.d.ts +0 -32
- package/dist/entry/shutdown.js +0 -84
- package/dist/entry/signal-cli.d.ts +0 -25
- package/dist/entry/start-ui-http.d.ts +0 -24
- package/dist/entry/start-ui-http.js +0 -188
- package/dist/entry/startup-helpers.d.ts +0 -2
- package/dist/entry/startup-helpers.js +0 -15
- package/dist/entry/startup-notify.d.ts +0 -6
- package/dist/entry/startup-notify.js +0 -18
- package/dist/entry/telemetry-wiring.d.ts +0 -12
- package/dist/entry/telemetry-wiring.js +0 -56
- package/dist/entry/ui-cli.d.ts +0 -2
- package/dist/entry/ui-cli.js +0 -87
- package/dist/entry/ui-http-gate.d.ts +0 -17
- package/dist/entry/ui-http-gate.js +0 -17
- package/dist/entry/ui-service-wiring.d.ts +0 -12
- package/dist/entry/ui-service-wiring.js +0 -144
- package/dist/events/event-bus.d.ts +0 -47
- package/dist/events/event-bus.js +0 -83
- package/dist/events/event-logger.d.ts +0 -12
- package/dist/events/event-logger.js +0 -144
- package/dist/events/event-types.d.ts +0 -259
- package/dist/events/event-types.js +0 -1
- package/dist/events/index.d.ts +0 -5
- package/dist/events/index.js +0 -2
- package/dist/orchestration/agent-decision-send.d.ts +0 -42
- package/dist/orchestration/agent-decision-send.js +0 -62
- package/dist/orchestration/agent-file-send.d.ts +0 -58
- package/dist/orchestration/agent-file-send.js +0 -69
- package/dist/orchestration/agent-runner.d.ts +0 -52
- package/dist/orchestration/agent-runner.js +0 -230
- package/dist/orchestration/agent-view-send.d.ts +0 -66
- package/dist/orchestration/agent-view-send.js +0 -103
- package/dist/orchestration/attachments-store.d.ts +0 -31
- package/dist/orchestration/attachments-store.js +0 -156
- package/dist/orchestration/benchmark-session-webhook.d.ts +0 -19
- package/dist/orchestration/benchmark-session-webhook.js +0 -142
- package/dist/orchestration/board-webhook.d.ts +0 -7
- package/dist/orchestration/board-webhook.js +0 -38
- package/dist/orchestration/browser-webhook.d.ts +0 -11
- package/dist/orchestration/browser-webhook.js +0 -28
- package/dist/orchestration/busy-tracker.d.ts +0 -15
- package/dist/orchestration/busy-tracker.js +0 -38
- package/dist/orchestration/cache-keep-warm.d.ts +0 -77
- package/dist/orchestration/cache-keep-warm.js +0 -213
- package/dist/orchestration/claude-window-warmup.d.ts +0 -40
- package/dist/orchestration/claude-window-warmup.js +0 -126
- package/dist/orchestration/conduit-queue.d.ts +0 -14
- package/dist/orchestration/conduit-queue.js +0 -53
- package/dist/orchestration/conversation-request.d.ts +0 -163
- package/dist/orchestration/conversation-request.js +0 -276
- package/dist/orchestration/delta-coalescer.d.ts +0 -69
- package/dist/orchestration/delta-coalescer.js +0 -120
- package/dist/orchestration/durable-helpers.d.ts +0 -3
- package/dist/orchestration/durable-helpers.js +0 -38
- package/dist/orchestration/edit-retry.d.ts +0 -35
- package/dist/orchestration/edit-retry.js +0 -127
- package/dist/orchestration/injection-ledger.d.ts +0 -56
- package/dist/orchestration/injection-ledger.js +0 -270
- package/dist/orchestration/inline-media-eager.d.ts +0 -13
- package/dist/orchestration/inline-media-eager.js +0 -58
- package/dist/orchestration/inline-media.d.ts +0 -22
- package/dist/orchestration/inline-media.js +0 -151
- package/dist/orchestration/interactions/answer-question.d.ts +0 -16
- package/dist/orchestration/interactions/answer-question.js +0 -38
- package/dist/orchestration/interactions/ask-user-question.d.ts +0 -34
- package/dist/orchestration/interactions/ask-user-question.js +0 -179
- package/dist/orchestration/interactions/ask-user-resume.d.ts +0 -11
- package/dist/orchestration/interactions/ask-user-resume.js +0 -57
- package/dist/orchestration/interactions/command-action-router.d.ts +0 -31
- package/dist/orchestration/interactions/command-action-router.js +0 -48
- package/dist/orchestration/interactions/interaction-handlers.d.ts +0 -5
- package/dist/orchestration/interactions/interaction-handlers.js +0 -288
- package/dist/orchestration/interactions/interaction-records.d.ts +0 -57
- package/dist/orchestration/interactions/interaction-records.js +0 -142
- package/dist/orchestration/interactions/plan-approvals.d.ts +0 -38
- package/dist/orchestration/interactions/plan-approvals.js +0 -73
- package/dist/orchestration/interactions/plan-handler.d.ts +0 -3
- package/dist/orchestration/interactions/plan-handler.js +0 -13
- package/dist/orchestration/interactions/plan-response.d.ts +0 -9
- package/dist/orchestration/interactions/plan-response.js +0 -23
- package/dist/orchestration/interactions/ui-update-prompt.d.ts +0 -8
- package/dist/orchestration/interactions/ui-update-prompt.js +0 -39
- package/dist/orchestration/interactions/update-prompt.d.ts +0 -6
- package/dist/orchestration/interactions/update-prompt.js +0 -150
- package/dist/orchestration/mid-turn-inject.d.ts +0 -64
- package/dist/orchestration/mid-turn-inject.js +0 -103
- package/dist/orchestration/orchestrator.d.ts +0 -23
- package/dist/orchestration/orchestrator.js +0 -12
- package/dist/orchestration/outputs-store.d.ts +0 -40
- package/dist/orchestration/outputs-store.js +0 -83
- package/dist/orchestration/pending-injection-recovery.d.ts +0 -36
- package/dist/orchestration/pending-injection-recovery.js +0 -88
- package/dist/orchestration/pi-background-subagent.d.ts +0 -15
- package/dist/orchestration/pi-background-subagent.js +0 -34
- package/dist/orchestration/resume-dispatcher.d.ts +0 -20
- package/dist/orchestration/resume-dispatcher.js +0 -97
- package/dist/orchestration/resume-target-sink.d.ts +0 -37
- package/dist/orchestration/resume-target-sink.js +0 -68
- package/dist/orchestration/routing/commands/cancel.d.ts +0 -58
- package/dist/orchestration/routing/commands/cancel.js +0 -212
- package/dist/orchestration/routing/commands/channel.d.ts +0 -7
- package/dist/orchestration/routing/commands/channel.js +0 -229
- package/dist/orchestration/routing/commands/command-context.d.ts +0 -14
- package/dist/orchestration/routing/commands/command-context.js +0 -1
- package/dist/orchestration/routing/commands/compact.d.ts +0 -6
- package/dist/orchestration/routing/commands/compact.js +0 -22
- package/dist/orchestration/routing/commands/cost.d.ts +0 -11
- package/dist/orchestration/routing/commands/cost.js +0 -101
- package/dist/orchestration/routing/commands/device.d.ts +0 -4
- package/dist/orchestration/routing/commands/device.js +0 -70
- package/dist/orchestration/routing/commands/index.d.ts +0 -22
- package/dist/orchestration/routing/commands/index.js +0 -160
- package/dist/orchestration/routing/commands/lang.d.ts +0 -9
- package/dist/orchestration/routing/commands/lang.js +0 -34
- package/dist/orchestration/routing/commands/login-custom.d.ts +0 -26
- package/dist/orchestration/routing/commands/login-custom.js +0 -85
- package/dist/orchestration/routing/commands/login-notice.d.ts +0 -23
- package/dist/orchestration/routing/commands/login-notice.js +0 -84
- package/dist/orchestration/routing/commands/login.d.ts +0 -12
- package/dist/orchestration/routing/commands/login.js +0 -560
- package/dist/orchestration/routing/commands/mode.d.ts +0 -10
- package/dist/orchestration/routing/commands/mode.js +0 -302
- package/dist/orchestration/routing/commands/nvtop.d.ts +0 -3
- package/dist/orchestration/routing/commands/nvtop.js +0 -107
- package/dist/orchestration/routing/commands/orient.d.ts +0 -2
- package/dist/orchestration/routing/commands/orient.js +0 -5
- package/dist/orchestration/routing/commands/restart.d.ts +0 -18
- package/dist/orchestration/routing/commands/restart.js +0 -31
- package/dist/orchestration/routing/commands/schedule.d.ts +0 -6
- package/dist/orchestration/routing/commands/schedule.js +0 -206
- package/dist/orchestration/routing/commands/sendfile.d.ts +0 -2
- package/dist/orchestration/routing/commands/sendfile.js +0 -97
- package/dist/orchestration/routing/commands/session.d.ts +0 -18
- package/dist/orchestration/routing/commands/session.js +0 -131
- package/dist/orchestration/routing/commands/status.d.ts +0 -5
- package/dist/orchestration/routing/commands/status.js +0 -165
- package/dist/orchestration/routing/commands/tail.d.ts +0 -2
- package/dist/orchestration/routing/commands/tail.js +0 -79
- package/dist/orchestration/routing/commands/time-ago.d.ts +0 -2
- package/dist/orchestration/routing/commands/time-ago.js +0 -14
- package/dist/orchestration/routing/commands/usage-format.d.ts +0 -5
- package/dist/orchestration/routing/commands/usage-format.js +0 -107
- package/dist/orchestration/routing/commands/usage-reset.d.ts +0 -20
- package/dist/orchestration/routing/commands/usage-reset.js +0 -123
- package/dist/orchestration/routing/commands/usage.d.ts +0 -10
- package/dist/orchestration/routing/commands/usage.js +0 -54
- package/dist/orchestration/routing/edit-handler.d.ts +0 -27
- package/dist/orchestration/routing/edit-handler.js +0 -205
- package/dist/orchestration/routing/file-handler.d.ts +0 -15
- package/dist/orchestration/routing/file-handler.js +0 -39
- package/dist/orchestration/routing/hook-bridge-subscribers.d.ts +0 -14
- package/dist/orchestration/routing/hook-bridge-subscribers.js +0 -174
- package/dist/orchestration/routing/hook-bridge.d.ts +0 -28
- package/dist/orchestration/routing/hook-bridge.js +0 -104
- package/dist/orchestration/routing/message-router.d.ts +0 -6
- package/dist/orchestration/routing/message-router.js +0 -62
- package/dist/orchestration/routing/webhook.d.ts +0 -10
- package/dist/orchestration/routing/webhook.js +0 -434
- package/dist/orchestration/runtime.d.ts +0 -30
- package/dist/orchestration/runtime.js +0 -37
- package/dist/orchestration/session-compact.d.ts +0 -50
- package/dist/orchestration/session-compact.js +0 -84
- package/dist/orchestration/session-events.d.ts +0 -173
- package/dist/orchestration/session-events.js +0 -140
- package/dist/orchestration/session-gateway.d.ts +0 -52
- package/dist/orchestration/session-gateway.js +0 -87
- package/dist/orchestration/session-retention-controller.d.ts +0 -14
- package/dist/orchestration/session-retention-controller.js +0 -88
- package/dist/orchestration/session-retention-liveness.d.ts +0 -13
- package/dist/orchestration/session-retention-liveness.js +0 -31
- package/dist/orchestration/session-rewind.d.ts +0 -79
- package/dist/orchestration/session-rewind.js +0 -147
- package/dist/orchestration/status-helpers.d.ts +0 -40
- package/dist/orchestration/status-helpers.js +0 -177
- package/dist/orchestration/subagent-adopt.d.ts +0 -20
- package/dist/orchestration/subagent-adopt.js +0 -43
- package/dist/orchestration/subagent-attribution.d.ts +0 -42
- package/dist/orchestration/subagent-attribution.js +0 -130
- package/dist/orchestration/subagent-delivery.d.ts +0 -43
- package/dist/orchestration/subagent-delivery.js +0 -112
- package/dist/orchestration/subagent-rows.d.ts +0 -11
- package/dist/orchestration/subagent-rows.js +0 -16
- package/dist/orchestration/subagent-webhook.d.ts +0 -6
- package/dist/orchestration/subagent-webhook.js +0 -89
- package/dist/orchestration/team-delivery.d.ts +0 -81
- package/dist/orchestration/team-delivery.js +0 -284
- package/dist/orchestration/team-inbox.d.ts +0 -18
- package/dist/orchestration/team-inbox.js +0 -49
- package/dist/orchestration/team-state.d.ts +0 -74
- package/dist/orchestration/team-state.js +0 -219
- package/dist/orchestration/team-webhook.d.ts +0 -57
- package/dist/orchestration/team-webhook.js +0 -293
- package/dist/orchestration/transcript-sink.d.ts +0 -83
- package/dist/orchestration/transcript-sink.js +0 -267
- package/dist/orchestration/turn/active-turns.d.ts +0 -49
- package/dist/orchestration/turn/active-turns.js +0 -76
- package/dist/orchestration/turn/background-hold.d.ts +0 -158
- package/dist/orchestration/turn/background-hold.js +0 -240
- package/dist/orchestration/turn/hold-render-platform.d.ts +0 -35
- package/dist/orchestration/turn/hold-render-platform.js +0 -105
- package/dist/orchestration/turn/hold-render-web.d.ts +0 -17
- package/dist/orchestration/turn/hold-render-web.js +0 -51
- package/dist/orchestration/turn/terminal.d.ts +0 -105
- package/dist/orchestration/turn/terminal.js +0 -194
- package/dist/orchestration/turn/turn-prep.d.ts +0 -33
- package/dist/orchestration/turn/turn-prep.js +0 -44
- package/dist/orchestration/turn/turn-tracking.d.ts +0 -22
- package/dist/orchestration/turn/turn-tracking.js +0 -89
- package/dist/orchestration/turn/turn.d.ts +0 -199
- package/dist/orchestration/turn/turn.js +0 -586
- package/dist/orchestration/turn-mutation-lock.d.ts +0 -3
- package/dist/orchestration/turn-mutation-lock.js +0 -32
- package/dist/orchestration/turn-notify.d.ts +0 -22
- package/dist/orchestration/turn-notify.js +0 -50
- package/dist/orchestration/waitpoint-ingress.d.ts +0 -36
- package/dist/orchestration/waitpoint-ingress.js +0 -183
- package/dist/orchestration/waitpoint-notifier.d.ts +0 -32
- package/dist/orchestration/waitpoint-notifier.js +0 -140
- package/dist/orchestration/waitpoint-remote-drain.d.ts +0 -22
- package/dist/orchestration/waitpoint-remote-drain.js +0 -134
- package/dist/orchestration/waitpoint-sweep.d.ts +0 -43
- package/dist/orchestration/waitpoint-sweep.js +0 -84
- package/dist/platform/adapter.d.ts +0 -48
- package/dist/platform/adapter.js +0 -1
- package/dist/platform/adapters/chunked-output-stream.d.ts +0 -71
- package/dist/platform/adapters/chunked-output-stream.js +0 -382
- package/dist/platform/adapters/composite-adapter.d.ts +0 -99
- package/dist/platform/adapters/composite-adapter.js +0 -369
- package/dist/platform/adapters/feishu-http.d.ts +0 -46
- package/dist/platform/adapters/feishu-http.js +0 -108
- package/dist/platform/adapters/feishu-image.d.ts +0 -19
- package/dist/platform/adapters/feishu-image.js +0 -64
- package/dist/platform/adapters/feishu-output-stream.d.ts +0 -11
- package/dist/platform/adapters/feishu-output-stream.js +0 -29
- package/dist/platform/adapters/feishu.d.ts +0 -167
- package/dist/platform/adapters/feishu.js +0 -1059
- package/dist/platform/adapters/index.d.ts +0 -19
- package/dist/platform/adapters/index.js +0 -108
- package/dist/platform/adapters/project-conduits.d.ts +0 -9
- package/dist/platform/adapters/project-conduits.js +0 -36
- package/dist/platform/adapters/slack-output-stream.d.ts +0 -15
- package/dist/platform/adapters/slack-output-stream.js +0 -33
- package/dist/platform/adapters/slack.d.ts +0 -106
- package/dist/platform/adapters/slack.js +0 -733
- package/dist/platform/adapters/tui/index.d.ts +0 -2
- package/dist/platform/adapters/tui/index.js +0 -2
- package/dist/platform/adapters/tui/ports.d.ts +0 -46
- package/dist/platform/adapters/tui/ports.js +0 -1
- package/dist/platform/adapters/tui/tui-connection.d.ts +0 -20
- package/dist/platform/adapters/tui/tui-connection.js +0 -44
- package/dist/platform/adapters/tui/tui-gateway.d.ts +0 -90
- package/dist/platform/adapters/tui/tui-gateway.js +0 -884
- package/dist/platform/adapters/tui/tui-output-stream.d.ts +0 -35
- package/dist/platform/adapters/tui/tui-output-stream.js +0 -94
- package/dist/platform/adapters/tui/tui-transcript.d.ts +0 -8
- package/dist/platform/adapters/tui/tui-transcript.js +0 -42
- package/dist/platform/browser/agent-browser.d.ts +0 -50
- package/dist/platform/browser/agent-browser.js +0 -165
- package/dist/platform/browser/display.d.ts +0 -48
- package/dist/platform/browser/display.js +0 -188
- package/dist/platform/browser/managed-browser.d.ts +0 -23
- package/dist/platform/browser/managed-browser.js +0 -357
- package/dist/platform/index.d.ts +0 -10
- package/dist/platform/index.js +0 -6
- package/dist/platform/interactive-builder.d.ts +0 -34
- package/dist/platform/interactive-builder.js +0 -138
- package/dist/platform/output-stream-chunk.d.ts +0 -6
- package/dist/platform/output-stream-chunk.js +0 -42
- package/dist/platform/output-stream-helpers.d.ts +0 -8
- package/dist/platform/output-stream-helpers.js +0 -19
- package/dist/platform/output-stream.d.ts +0 -35
- package/dist/platform/output-stream.js +0 -1
- package/dist/platform/testing.d.ts +0 -136
- package/dist/platform/testing.js +0 -286
- package/dist/platform/tool-trace.d.ts +0 -35
- package/dist/platform/tool-trace.js +0 -287
- package/dist/platform/tui/protocol.d.ts +0 -352
- package/dist/platform/tui/protocol.js +0 -146
- package/dist/platform/types.d.ts +0 -223
- package/dist/platform/types.js +0 -22
- package/dist/platform/ui-http/access-jwt.d.ts +0 -28
- package/dist/platform/ui-http/access-jwt.js +0 -53
- package/dist/platform/ui-http/app-update.d.ts +0 -69
- package/dist/platform/ui-http/app-update.js +0 -143
- package/dist/platform/ui-http/browser-stream.d.ts +0 -110
- package/dist/platform/ui-http/browser-stream.js +0 -447
- package/dist/platform/ui-http/device-ports.d.ts +0 -34
- package/dist/platform/ui-http/device-ports.js +0 -102
- package/dist/platform/ui-http/file-routes.d.ts +0 -23
- package/dist/platform/ui-http/file-routes.js +0 -224
- package/dist/platform/ui-http/http-json.d.ts +0 -24
- package/dist/platform/ui-http/http-json.js +0 -109
- package/dist/platform/ui-http/listening-ports.d.ts +0 -98
- package/dist/platform/ui-http/listening-ports.js +0 -239
- package/dist/platform/ui-http/port-forward.d.ts +0 -40
- package/dist/platform/ui-http/port-forward.js +0 -130
- package/dist/platform/ui-http/ui-auth-routes.d.ts +0 -51
- package/dist/platform/ui-http/ui-auth-routes.js +0 -120
- package/dist/platform/ui-http/ui-device-routes.d.ts +0 -13
- package/dist/platform/ui-http/ui-device-routes.js +0 -81
- package/dist/platform/ui-http/ui-devices.d.ts +0 -24
- package/dist/platform/ui-http/ui-devices.js +0 -107
- package/dist/platform/ui-http/ui-http-server.d.ts +0 -100
- package/dist/platform/ui-http/ui-http-server.js +0 -310
- package/dist/platform/ui-http/ui-ota.d.ts +0 -22
- package/dist/platform/ui-http/ui-ota.js +0 -151
- package/dist/platform/ui-http/ui-pairing.d.ts +0 -25
- package/dist/platform/ui-http/ui-pairing.js +0 -98
- package/dist/platform/ui-http/ui-session.d.ts +0 -33
- package/dist/platform/ui-http/ui-session.js +0 -124
- package/dist/platform/ui-http/zip-writer.d.ts +0 -13
- package/dist/platform/ui-http/zip-writer.js +0 -93
- package/dist/platform/utils/rate-limiter.d.ts +0 -90
- package/dist/platform/utils/rate-limiter.js +0 -203
- package/dist/platform/utils/reaction-diagnostics.d.ts +0 -9
- package/dist/platform/utils/reaction-diagnostics.js +0 -19
- package/dist/platform/utils/readable-file.d.ts +0 -9
- package/dist/platform/utils/readable-file.js +0 -18
- package/dist/store/board-migration.d.ts +0 -21
- package/dist/store/board-migration.js +0 -217
- package/dist/store/board-repo.d.ts +0 -35
- package/dist/store/board-repo.js +0 -62
- package/dist/store/builtin-overlay-migration.d.ts +0 -11
- package/dist/store/builtin-overlay-migration.js +0 -308
- package/dist/store/claude-transcript-migration.d.ts +0 -32
- package/dist/store/claude-transcript-migration.js +0 -119
- package/dist/store/conversation-display-projection.d.ts +0 -36
- package/dist/store/conversation-display-projection.js +0 -180
- package/dist/store/conversation-history-reader.d.ts +0 -30
- package/dist/store/conversation-history-reader.js +0 -440
- package/dist/store/conversation-history-repo.d.ts +0 -449
- package/dist/store/conversation-history-repo.js +0 -632
- package/dist/store/conversation-ledger-repo.d.ts +0 -76
- package/dist/store/conversation-ledger-repo.js +0 -219
- package/dist/store/cost-repo.d.ts +0 -88
- package/dist/store/cost-repo.js +0 -233
- package/dist/store/execution-repo.d.ts +0 -169
- package/dist/store/execution-repo.js +0 -329
- package/dist/store/gitignore-migration.d.ts +0 -2
- package/dist/store/gitignore-migration.js +0 -16
- package/dist/store/hook-registry.d.ts +0 -101
- package/dist/store/hook-registry.js +0 -319
- package/dist/store/hook-writer.d.ts +0 -43
- package/dist/store/hook-writer.js +0 -133
- package/dist/store/models-repo.d.ts +0 -18
- package/dist/store/models-repo.js +0 -74
- package/dist/store/outbound-queue.d.ts +0 -67
- package/dist/store/outbound-queue.js +0 -284
- package/dist/store/pending-injection-repo.d.ts +0 -29
- package/dist/store/pending-injection-repo.js +0 -52
- package/dist/store/project-dir-repo.d.ts +0 -17
- package/dist/store/project-dir-repo.js +0 -44
- package/dist/store/project-notes-repo.d.ts +0 -27
- package/dist/store/project-notes-repo.js +0 -219
- package/dist/store/prompt-migration-replacements.d.ts +0 -3
- package/dist/store/prompt-migration-replacements.js +0 -96
- package/dist/store/provider-state-repo.d.ts +0 -22
- package/dist/store/provider-state-repo.js +0 -115
- package/dist/store/retention-candidate-repo.d.ts +0 -12
- package/dist/store/retention-candidate-repo.js +0 -47
- package/dist/store/retire-profiles-migration.d.ts +0 -28
- package/dist/store/retire-profiles-migration.js +0 -335
- package/dist/store/schedule-repo.d.ts +0 -53
- package/dist/store/schedule-repo.js +0 -121
- package/dist/store/session-registry-import.d.ts +0 -34
- package/dist/store/session-registry-import.js +0 -173
- package/dist/store/session-registry-journal.d.ts +0 -195
- package/dist/store/session-registry-journal.js +0 -871
- package/dist/store/session-registry-repo.d.ts +0 -169
- package/dist/store/session-registry-repo.js +0 -530
- package/dist/store/session-totals-repo.d.ts +0 -45
- package/dist/store/session-totals-repo.js +0 -104
- package/dist/store/session-totals.d.ts +0 -69
- package/dist/store/session-totals.js +0 -93
- package/dist/store/team-inbox-repo.d.ts +0 -34
- package/dist/store/team-inbox-repo.js +0 -72
- package/dist/store/team-outbox-repo.d.ts +0 -20
- package/dist/store/team-outbox-repo.js +0 -39
- package/dist/store/tool-image-files.d.ts +0 -12
- package/dist/store/tool-image-files.js +0 -40
- package/dist/store/version-migrations.d.ts +0 -120
- package/dist/store/version-migrations.js +0 -1408
- package/dist/store/waitpoint-repo.d.ts +0 -111
- package/dist/store/waitpoint-repo.js +0 -83
- package/dist/tui/App.d.ts +0 -27
- package/dist/tui/App.js +0 -406
- package/dist/tui/components/AskUserModal.d.ts +0 -10
- package/dist/tui/components/AskUserModal.js +0 -362
- package/dist/tui/components/ConfirmModal.d.ts +0 -12
- package/dist/tui/components/ConfirmModal.js +0 -29
- package/dist/tui/components/Dashboard.d.ts +0 -24
- package/dist/tui/components/Dashboard.js +0 -89
- package/dist/tui/components/DashboardCostTab.d.ts +0 -7
- package/dist/tui/components/DashboardCostTab.js +0 -32
- package/dist/tui/components/DashboardExecutionsTab.d.ts +0 -11
- package/dist/tui/components/DashboardExecutionsTab.js +0 -112
- package/dist/tui/components/DashboardSchedulesTab.d.ts +0 -11
- package/dist/tui/components/DashboardSchedulesTab.js +0 -132
- package/dist/tui/components/InputBox.d.ts +0 -26
- package/dist/tui/components/InputBox.js +0 -266
- package/dist/tui/components/Notifications.d.ts +0 -12
- package/dist/tui/components/Notifications.js +0 -59
- package/dist/tui/components/ProjectSwitcher.d.ts +0 -17
- package/dist/tui/components/ProjectSwitcher.js +0 -40
- package/dist/tui/components/SessionPicker.d.ts +0 -13
- package/dist/tui/components/SessionPicker.js +0 -42
- package/dist/tui/components/SidePanel.d.ts +0 -19
- package/dist/tui/components/SidePanel.js +0 -8
- package/dist/tui/components/SlashMenu.d.ts +0 -8
- package/dist/tui/components/SlashMenu.js +0 -15
- package/dist/tui/components/StatusLine.d.ts +0 -19
- package/dist/tui/components/StatusLine.js +0 -39
- package/dist/tui/components/Transcript.d.ts +0 -21
- package/dist/tui/components/Transcript.js +0 -150
- package/dist/tui/components/dashboard-constants.d.ts +0 -1
- package/dist/tui/components/dashboard-constants.js +0 -1
- package/dist/tui/hooks/useDashboardData.d.ts +0 -24
- package/dist/tui/hooks/useDashboardData.js +0 -75
- package/dist/tui/hooks/useKeybindings.d.ts +0 -19
- package/dist/tui/hooks/useKeybindings.js +0 -75
- package/dist/tui/hooks/useMouseHandler.d.ts +0 -15
- package/dist/tui/hooks/useMouseHandler.js +0 -90
- package/dist/tui/hooks/useMutate.d.ts +0 -22
- package/dist/tui/hooks/useMutate.js +0 -54
- package/dist/tui/hooks/useNotifications.d.ts +0 -26
- package/dist/tui/hooks/useNotifications.js +0 -60
- package/dist/tui/hooks/useTranscript.d.ts +0 -42
- package/dist/tui/hooks/useTranscript.js +0 -277
- package/dist/tui/index.d.ts +0 -2
- package/dist/tui/logic.d.ts +0 -144
- package/dist/tui/logic.js +0 -388
- package/dist/tui/raf-batch.d.ts +0 -31
- package/dist/tui/raf-batch.js +0 -89
- package/dist/tui/render/inline-markdown.d.ts +0 -22
- package/dist/tui/render/inline-markdown.js +0 -99
- package/dist/tui/render/markdown.d.ts +0 -10
- package/dist/tui/render/markdown.js +0 -35
- package/dist/tui/render-output.d.ts +0 -42
- package/dist/tui/render-output.js +0 -81
- package/dist/tui/slash-commands.d.ts +0 -21
- package/dist/tui/slash-commands.js +0 -71
- package/dist/tui/turn-status.d.ts +0 -10
- package/dist/tui/turn-status.js +0 -48
- package/dist/tui/ws-client.d.ts +0 -39
- package/dist/tui/ws-client.js +0 -139
- package/scripts/install-bundled-dependencies.mjs +0 -54
- package/web/dist/assets/board-math-css-spk7yR6n.js +0 -2
- package/web/dist/assets/index-BQ69u-92.css +0 -1
- package/web/dist/assets/index-CKNLatCd.js +0 -1
- package/web/dist/assets/index-CkzWfC98.js +0 -525
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire as __cortexCreateRequire } from 'node:module';
|
|
2
|
+
const require = __cortexCreateRequire(import.meta.url);
|
|
3
|
+
const __cortexPackageRoot = new URL("../../", import.meta.url);
|
|
4
|
+
var i=class{incoming=[];outgoing=[];get length(){return this.incoming.length+this.outgoing.length}enqueue(e){this.incoming.push(e)}dequeue(){if(this.outgoing.length===0)for(;this.incoming.length>0;)this.outgoing.push(this.incoming.pop());return this.outgoing.pop()}},s=class{queue=new i;waiting=new i;done=!1;finalResultPromise;resolveFinalResult;isComplete;extractResult;constructor(e,t){this.isComplete=e,this.extractResult=t,this.finalResultPromise=new Promise(o=>{this.resolveFinalResult=o})}push(e){if(this.done)return;this.isComplete(e)&&(this.done=!0,this.resolveFinalResult(this.extractResult(e)));let t=this.waiting.dequeue();t?t({value:e,done:!1}):this.queue.enqueue(e)}end(e){for(this.done=!0,e!==void 0&&this.resolveFinalResult(e);this.waiting.length>0;)this.waiting.dequeue()({value:void 0,done:!0})}async*[Symbol.asyncIterator](){for(;;)if(this.queue.length>0)yield this.queue.dequeue();else{if(this.done)return;{let e=await new Promise(t=>this.waiting.enqueue(t));if(e.done)return;yield e.value}}}result(){return this.finalResultPromise}},n=class extends s{#t=Date.now();#i=performance.now();constructor(){super(e=>e.type==="done"||e.type==="error",e=>{if(e.type==="done")return e.message;if(e.type==="error")return e.error;throw new Error("Unexpected event type for final result")})}push(e){e.type==="done"?this.#e(e.message):e.type==="error"&&this.#e(e.error),super.push(e)}end(e){e!==void 0&&this.#e(e),super.end(e)}#e(e){this.done||e.durationMs!==void 0||e.timestamp<this.#t||(e.durationMs=Math.max(0,Math.round(performance.now()-this.#i)))}};function u(){return new n}export{s as a,n as b,u as c};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire as __cortexCreateRequire } from 'node:module';
|
|
2
|
+
const require = __cortexCreateRequire(import.meta.url);
|
|
3
|
+
const __cortexPackageRoot = new URL("../../", import.meta.url);
|
|
4
|
+
import{a as u}from"./chunk-5M4PFLRW.js";import{d as n,z as p}from"./chunk-J5DVLUKY.js";import{existsSync as s}from"node:fs";import*as o from"node:path";import{pathToFileURL as l}from"node:url";var a=o.join(n,"hooks"),f=o.join(a,"overlay","register.mjs");function h(){return{user:p,builtin:u()?a:null}}function m(e,r=h()){let t=o.join(r.user,e);if(s(t)||!r.builtin)return{path:t,user:!0};let i=o.join(r.builtin,e);return s(i)?{path:i,user:!1}:{path:t,user:!0}}function O(e,r=h()){let t=m(e,r);return!t.user||!r.builtin?[t.path]:["--import",l(f).href,t.path]}export{h as a,m as b,O as c};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createRequire as __cortexCreateRequire } from 'node:module';
|
|
2
|
+
const require = __cortexCreateRequire(import.meta.url);
|
|
3
|
+
const __cortexPackageRoot = new URL("../../", import.meta.url);
|
|
4
|
+
import{b as c,c as Ll,d as xe,e as be}from"./chunk-WHC7AYZD.js";async function $t(e,t,r=1024*1024){let n=e.size,o=0;for(;o<n;){let s=e.slice(o,Math.min(n,o+r));t(new Uint8Array(await s.arrayBuffer())),o+=s.size}}var Qr=c(()=>{});var Us,$s=c(()=>{Qr();Us=async function(t,r){let n=new t;return await $t(r,o=>{n.update(o)}),n.digest()}});var Dt,en=c(()=>{Dt=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]"});var L,re,ne=c(()=>{en();L=(e,t=0,r=e.byteLength-t)=>{if(!Dt(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Buffer.from(e,t,r)},re=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?Buffer.from(e,t):Buffer.from(e)}});var kl,tn,Ds=c(()=>{ne();kl=/^[A-Za-z0-9+/]*={0,2}$/,tn=e=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!kl.exec(e))throw new TypeError("Invalid base64 string.");let t=re(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}});var q,Ft=c(()=>{ne();q=e=>{let t=re(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)}});var st,rn=c(()=>{ne();Ft();st=e=>{let t;if(typeof e=="string"?t=q(e):t=e,typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return L(t.buffer,t.byteOffset,t.byteLength).toString("base64")}});function Fs(e,t,r,n){return class Pt extends Uint8Array{static fromString(s,i="utf-8"){if(typeof s=="string")return i==="base64"?Pt.mutate(n(s)):Pt.mutate(t(s));throw new Error(`Unsupported conversion from ${typeof s} to Uint8ArrayBlobAdapter.`)}static mutate(s){return Object.setPrototypeOf(s,Pt.prototype),s}transformToString(s="utf-8"){return s==="base64"?r(this):e(this)}}}var Ps=c(()=>{});var it,Ls=c(()=>{ne();it=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return L(e.buffer,e.byteOffset,e.byteLength).toString("utf8")}});function ks(e){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?()=>crypto.randomUUID():()=>{let t=new Uint8Array(16);return e(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,R[t[0]]+R[t[1]]+R[t[2]]+R[t[3]]+"-"+R[t[4]]+R[t[5]]+"-"+R[t[6]]+R[t[7]]+"-"+R[t[8]]+R[t[9]]+"-"+R[t[10]]+R[t[11]]+R[t[12]]+R[t[13]]+R[t[14]]+R[t[15]]}}var R,Bs=c(()=>{R=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"))});var zs,Hs=c(()=>{zs=(e,t,r=n=>n)=>e});var oe=Ll(k=>{var nn;(function(e){e.HEADER="header",e.QUERY="query"})(nn||(nn={}));var on;(function(e){e.HEADER="header",e.QUERY="query"})(on||(on={}));var sn;(function(e){e.HTTP="http",e.HTTPS="https"})(sn||(sn={}));var at;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(at||(at={}));var Bl=e=>{let t=[];return e.sha256!==void 0&&t.push({algorithmId:()=>at.SHA256,checksumConstructor:()=>e.sha256}),e.md5!=null&&t.push({algorithmId:()=>at.MD5,checksumConstructor:()=>e.md5}),{addChecksumAlgorithm(r){t.push(r)},checksumAlgorithms(){return t}}},zl=e=>{let t={};return e.checksumAlgorithms().forEach(r=>{t[r.algorithmId()]=r.checksumConstructor()}),t},Hl=e=>Bl(e),Vl=e=>zl(e),an;(function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"})(an||(an={}));var Wl="__smithy_context",cn;(function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"})(cn||(cn={}));var fn;(function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"})(fn||(fn={}));k.AlgorithmId=at;k.EndpointURLScheme=sn;k.FieldPosition=an;k.HttpApiKeyAuthLocation=on;k.HttpAuthLocation=nn;k.IniSectionType=cn;k.RequestHandlerProtocol=fn;k.SMITHY_CONTEXT_KEY=Wl;k.getDefaultClientConfiguration=Hl;k.resolveDefaultRuntimeConfig=Vl});var un,J,Vs=c(()=>{un=be(oe()),J=e=>e[un.SMITHY_CONTEXT_KEY]||(e[un.SMITHY_CONTEXT_KEY]={})});function S(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var ln=c(()=>{});function Gl(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{})}var mn,Ws=c(()=>{mn=class e{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){let r=new e({...t,headers:{...t.headers}});return r.query&&(r.query=Gl(r.query)),r}static isInstance(t){if(!t)return!1;let r=t;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){return e.clone(this)}}});var we,Gs=c(()=>{we=class{statusCode;reason;headers;body;constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let r=t;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}});var jl,X,js=c(()=>{jl=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),X=(e,t=!1)=>{if(!t)return jl.test(e);let r=e.split(".");for(let n of r)if(!X(n))return!1;return!0}});function ql(e){return/^[a-z0-9][a-z0-9.-]*[a-z0-9]$/.test(e)}var qs=c(()=>{});var M,Js=c(()=>{M=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t}});function dn(e){let t={};if(e=e.replace(/^\?/,""),e)for(let r of e.split("&")){let[n,o=null]=r.split("=");n=decodeURIComponent(n),o&&(o=decodeURIComponent(o)),n in t?Array.isArray(t[n])?t[n].push(o):t[n]=[t[n],o]:t[n]=o}return t}var pn=c(()=>{});var ct,hn=c(()=>{pn();ct=e=>{if(typeof e=="string")return ct(new URL(e));let{hostname:t,pathname:r,port:n,protocol:o,search:s}=e,i;return s&&(i=dn(s)),{hostname:t,port:n?parseInt(n):void 0,protocol:o,path:r,query:i}}});var U,Xs=c(()=>{ln();hn();U=e=>{if(typeof e=="object"){if("url"in e){let t=ct(e.url);if(e.headers){t.headers={};for(let r in e.headers)S(e.headers,r)&&(t.headers[r.toLowerCase()]=e.headers[r].join(", "))}return t}return e}return ct(e)}});var T=c(()=>{Vs();ln();Ws();Gs();js();qs();Js();pn();hn();Xs()});var Ks,Zs,Ue,Jl,ft,$e,Ys,Lt,kt,Bt,gn,Xl,Qs,yn,ei,ti,ut,ri,Ht,Kl,Fe,Vt,ni,oi,si,ii,xn,ai,ci,se,Wt,zt,De,bn=c(()=>{T();Ks=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}},Zs=e=>{if(e!=null){if(typeof e=="number"){if((e===0||e===1)&&De.warn(zt(`Expected boolean, got ${typeof e}: ${e}`)),e===0)return!1;if(e===1)return!0}if(typeof e=="string"){let t=e.toLowerCase();if((t==="false"||t==="true")&&De.warn(zt(`Expected boolean, got ${typeof e}: ${e}`)),t==="false")return!1;if(t==="true")return!0}if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)}},Ue=e=>{if(e!=null){if(typeof e=="string"){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&De.warn(zt(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},Jl=Math.ceil(2**127*(2-2**-23)),ft=e=>{let t=Ue(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>Jl)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},$e=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},Ys=$e,Lt=e=>gn(e,32),kt=e=>gn(e,16),Bt=e=>gn(e,8),gn=(e,t)=>{let r=$e(e);if(r!==void 0&&Xl(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},Xl=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},Qs=(e,t)=>{if(e==null)throw t?new TypeError(`Expected a non-null value for ${t}`):new TypeError("Expected a non-null value");return e},yn=e=>{if(e==null)return;if(typeof e=="object"&&!Array.isArray(e))return e;let t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)},ei=e=>{if(e!=null){if(typeof e=="string")return e;if(["boolean","number","bigint"].includes(typeof e))return De.warn(zt(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},ti=e=>{if(e==null)return;let t=yn(e),r=[];for(let n in t)S(t,n)&&t[n]!=null&&r.push(n);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return t},ut=e=>Ue(typeof e=="string"?Fe(e):e),ri=ut,Ht=e=>ft(typeof e=="string"?Fe(e):e),Kl=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Fe=e=>{let t=e.match(Kl);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},Vt=e=>typeof e=="string"?ii(e):Ue(e),ni=Vt,oi=Vt,si=e=>typeof e=="string"?ii(e):ft(e),ii=e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},xn=e=>$e(typeof e=="string"?Fe(e):e),ai=xn,ci=e=>Lt(typeof e=="string"?Fe(e):e),se=e=>kt(typeof e=="string"?Fe(e):e),Wt=e=>Bt(typeof e=="string"?Fe(e):e),zt=e=>String(new TypeError(e).stack||e).split(`
|
|
5
|
+
`).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(`
|
|
6
|
+
`),De={warn:console.warn}});function fi(e){let t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),o=e.getUTCDate(),s=e.getUTCHours(),i=e.getUTCMinutes(),a=e.getUTCSeconds(),f=o<10?`0${o}`:`${o}`,u=s<10?`0${s}`:`${s}`,d=i<10?`0${i}`:`${i}`,m=a<10?`0${a}`:`${a}`;return`${Zl[n]}, ${f} ${Sn[r]} ${t} ${u}:${d}:${m} GMT`}var Zl,Sn,Yl,ui,Ql,li,em,tm,rm,mi,di,lt,nm,om,sm,wn,im,am,cm,z,fm,um,Pe,pi=c(()=>{bn();Zl=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Sn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Yl=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),ui=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=Yl.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,a,f,u]=t,d=se(Pe(n)),m=z(o,"month",1,12),l=z(s,"day",1,31);return lt(d,m,l,{hours:i,minutes:a,seconds:f,fractionalMilliseconds:u})},Ql=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),li=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=Ql.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,o,s,i,a,f,u,d]=t,m=se(Pe(n)),l=z(o,"month",1,12),p=z(s,"day",1,31),g=lt(m,l,p,{hours:i,minutes:a,seconds:f,fractionalMilliseconds:u});return d.toUpperCase()!="Z"&&g.setTime(g.getTime()-um(d)),g},em=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),tm=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),rm=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),mi=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=em.exec(e);if(t){let[r,n,o,s,i,a,f,u]=t;return lt(se(Pe(s)),wn(o),z(n,"day",1,31),{hours:i,minutes:a,seconds:f,fractionalMilliseconds:u})}if(t=tm.exec(e),t){let[r,n,o,s,i,a,f,u]=t;return sm(lt(nm(s),wn(o),z(n,"day",1,31),{hours:i,minutes:a,seconds:f,fractionalMilliseconds:u}))}if(t=rm.exec(e),t){let[r,n,o,s,i,a,f,u]=t;return lt(se(Pe(u)),wn(n),z(o.trimLeft(),"day",1,31),{hours:s,minutes:i,seconds:a,fractionalMilliseconds:f})}throw new TypeError("Invalid RFC-7231 date-time value")},di=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=ut(e);else if(typeof e=="object"&&e.tag===1)t=e.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))},lt=(e,t,r,n)=>{let o=t-1;return am(e,o,r),new Date(Date.UTC(e,o,r,z(n.hours,"hour",0,23),z(n.minutes,"minute",0,59),z(n.seconds,"seconds",0,60),fm(n.fractionalMilliseconds)))},nm=e=>{let t=new Date().getUTCFullYear(),r=Math.floor(t/100)*100+se(Pe(e));return r<t?r+100:r},om=50*365*24*60*60*1e3,sm=e=>e.getTime()-new Date().getTime()>om?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,wn=e=>{let t=Sn.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},im=[31,28,31,30,31,30,31,31,30,31,30,31],am=(e,t,r)=>{let n=im[t];if(t===1&&cm(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${Sn[t]} in ${e}: ${r}`)},cm=e=>e%4===0&&(e%100!==0||e%400===0),z=(e,t,r,n)=>{let o=Wt(Pe(e));if(o<r||o>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return o},fm=e=>e==null?0:Ht("0."+e)*1e3,um=e=>{let t=e[0],r=1;if(t=="+")r=1;else if(t=="-")r=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);let n=Number(e.substring(1,3)),o=Number(e.substring(4,6));return r*(n*60+o)*60*1e3},Pe=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)}});var ie,hi=c(()=>{ie=function(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})};ie.from=e=>e&&typeof e=="object"&&(e instanceof ie||"deserializeJSON"in e)?e:typeof e=="string"||Object.getPrototypeOf(e)===String.prototype?ie(String(e)):ie(JSON.stringify(e));ie.fromObject=ie.from});function gi(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}var yi=c(()=>{});function K(e,t,r){let n=Number(e);if(n<t||n>r)throw new Error(`Value ${n} out of range [${t}, ${r}]`)}var En,Tn,In,xi,bi,lm,mm,dm,pm,hm,wi,Si,Ei,Ti=c(()=>{En="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",Tn="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",In="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",xi="(\\d?\\d)",bi="(\\d{4})",lm=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),mm=new RegExp(`^${En}, ${xi} ${Tn} ${bi} ${In} GMT$`),dm=new RegExp(`^${En}, ${xi}-${Tn}-(\\d\\d) ${In} GMT$`),pm=new RegExp(`^${En} ${Tn} ( [1-9]|\\d\\d) ${In} ${bi}$`),hm=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wi=e=>{if(e==null)return;let t=NaN;if(typeof e=="number")t=e;else if(typeof e=="string"){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else typeof e=="object"&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},Si=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");let t=lm.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);let[,r,n,o,s,i,a,,f,u]=t;K(n,1,12),K(o,1,31),K(s,0,23),K(i,0,59),K(a,0,60);let d=new Date(Date.UTC(Number(r),Number(n)-1,Number(o),Number(s),Number(i),Number(a),Number(f)?Math.round(parseFloat(`0.${f}`)*1e3):0));if(d.setUTCFullYear(Number(r)),u.toUpperCase()!="Z"){let[,m,l,p]=/([+-])(\d\d):(\d\d)/.exec(u)||[void 0,"+",0,0],g=m==="-"?1:-1;d.setTime(d.getTime()+g*(Number(l)*60*60*1e3+Number(p)*60*1e3))}return d},Ei=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,r,n,o,s,i,a,f;if((f=mm.exec(e))?[,t,r,n,o,s,i,a]=f:(f=dm.exec(e))?([,t,r,n,o,s,i,a]=f,n=(Number(n)+1900).toString()):(f=pm.exec(e))&&([,r,t,o,s,i,a,n]=f),n&&i){let u=Date.UTC(Number(n),hm.indexOf(r),Number(t),Number(o),Number(s),Number(i),a?Math.round(parseFloat(`0.${a}`)*1e3):0);K(t,1,31),K(o,0,23),K(s,0,59),K(i,0,60);let d=new Date(u);return d.setUTCFullYear(Number(n)),d}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)}});function Ii(e,t,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=e.split(t);if(r===1)return n;let o=[],s="";for(let i=0;i<n.length;i++)s===""?s=n[i]:s+=t+n[i],(i+1)%r===0&&(o.push(s),s="");return s!==""&&o.push(s),o}var Ai=c(()=>{});var Ni,Oi=c(()=>{Ni=e=>{let t=e.length,r=[],n=!1,o,s=0;for(let i=0;i<t;++i){let a=e[i];switch(a){case'"':o!=="\\"&&(n=!n);break;case",":n||(r.push(e.slice(s,i)),s=i+1);break;default:}o=a}return r.push(e.slice(s)),r.map(i=>{i=i.trim();let a=i.length;return a<2?i:(i[0]==='"'&&i[a-1]==='"'&&(i=i.slice(1,a-1)),i.replace(/\\"/g,'"'))})}});function Ri(e){return new mt(String(e),"bigDecimal")}var Ci,mt,_i=c(()=>{Ci=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/,mt=class e{string;type;constructor(t,r){if(this.string=t,this.type=r,!Ci.test(t))throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${t}"`)}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!="object")return!1;let r=t;return e.prototype.isPrototypeOf(t)||r.type==="bigDecimal"&&Ci.test(r.string)}}});function Gt(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){let n=e.slice(r,r+2).toLowerCase();if(n in An)t[r/2]=An[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return t}function P(e){let t="";for(let r=0;r<e.byteLength;r++)t+=vi[e[r]];return t}var vi,An,Nn=c(()=>{vi={},An={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),vi[e]=t,An[t]=e}});import{ReadStream as gm,fstatSync as ym,lstatSync as xm}from"node:fs";var Mi,Ui=c(()=>{Mi=e=>{if(!e)return 0;if(typeof e=="string")return Buffer.byteLength(e);if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.start=="number"&&typeof e.end=="number")return e.end+1-e.start;if(e instanceof gm){if(e.path!=null)return xm(e.path).size;if(typeof e.fd=="number")return ym(e.fd).size}throw new Error(`Body Length computation failed for ${e}`)}});var _,On=c(()=>{Ft();_=e=>e instanceof Uint8Array?e:typeof e=="string"?q(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)});function H(e,t){if(t===void 0){t=0;for(let o of e)t+=o.byteLength}let r=new Uint8Array(t),n=0;for(let o of e)r.set(o,n),n+=o.byteLength;return r}var dt=c(()=>{});var jt,Cn,Rn=c(()=>{T();jt=(e,t)=>(r,n)=>async o=>{let{response:s}=await r(o);try{let i=await t(s,e);return{response:s,output:i}}catch(i){if(Object.defineProperty(i,"$response",{value:s,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in i)){let a="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{i.message+=`
|
|
7
|
+
`+a}catch{!n.logger||n.logger?.constructor?.name==="NoOpLogger"?console.warn(a):n.logger?.warn?.(a)}typeof i.$responseBodyText<"u"&&i.$response&&(i.$response.body=i.$responseBodyText);try{if(we.isInstance(s)){let{headers:f={}}=s,u=Object.entries(f);i.$metadata={httpStatusCode:s.statusCode,requestId:Cn(/^x-[\w-]+-request-?id$/,u),extendedRequestId:Cn(/^x-[\w-]+-id-2$/,u),cfId:Cn(/^x-[\w-]+-cf-id$/,u)}}}catch{}}throw i}},Cn=(e,t)=>(t.find(([r])=>r.match(e))||[void 0,void 0])[1]});var V,pt=c(()=>{V=class e extends Error{name="ProviderError";tryNextLink;constructor(t,r=!0){let n,o=!0;typeof r=="boolean"?(n=void 0,o=r):r!=null&&typeof r=="object"&&(n=r.logger,o=r.tryNextLink??!0),super(t),this.tryNextLink=o,Object.setPrototypeOf(this,e.prototype),n?.debug?.(`@smithy/property-provider ${o?"->":"(!)"} ${t}`)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}}});var ae,qt=c(()=>{pt();ae=class e extends V{name="CredentialsProviderError";constructor(t,r=!0){super(t,r),Object.setPrototypeOf(this,e.prototype)}}});var Jt,$i=c(()=>{pt();Jt=class e extends V{name="TokenProviderError";constructor(t,r=!0){super(t,r),Object.setPrototypeOf(this,e.prototype)}}});var Xt,_n=c(()=>{pt();Xt=(...e)=>async()=>{if(e.length===0)throw new V("No providers in chain");let t;for(let r of e)try{return await r()}catch(n){if(t=n,n?.tryNextLink)continue;throw n}throw t}});var Kt,vn=c(()=>{Kt=e=>()=>Promise.resolve(e)});var Le,Zt=c(()=>{Le=(e,t,r)=>{let n,o,s,i=!1,a=async()=>{o||(o=e());try{n=await o,s=!0,i=!1}finally{o=void 0}return n};return t===void 0?async f=>((!s||f?.forceRefresh)&&(n=await a()),n):async f=>((!s||f?.forceRefresh)&&(n=await a()),i?n:r&&!r(n)?(i=!0,n):(t(n)&&await a(),n))}});var v,Yt=c(()=>{v=(e,t,r)=>{if(t in e){if(e[t]==="true")return!0;if(e[t]==="false")return!1;throw new Error(`Cannot load ${r} "${t}". Expected "true" or "false", got ${e[t]}.`)}}});var Di,Fi=c(()=>{Di=(e,t,r)=>{if(!(t in e))return;let n=parseInt(e[t],10);if(Number.isNaN(n))throw new TypeError(`Cannot load ${r} '${t}'. Expected number, got '${e[t]}'.`);return n}});var O,Qt=c(()=>{(function(e){e.ENV="env",e.CONFIG="shared config entry"})(O||(O={}))});import{homedir as bm}from"node:os";import{sep as wm}from"node:path";var Mn,Sm,W,ke=c(()=>{Mn={},Sm=()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT",W=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${wm}`}=process.env;if(e)return e;if(t)return t;if(r)return`${n}${r}`;let o=Sm();return Mn[o]||(Mn[o]=bm()),Mn[o]}});var Un,$n,er,Dn=c(()=>{Un="AWS_PROFILE",$n="default",er=e=>e.profile||process.env[Un]||$n});import{createHash as Em}from"node:crypto";import{join as Tm}from"node:path";var tr,Fn=c(()=>{ke();tr=e=>{let r=Em("sha1").update(e).digest("hex");return Tm(W(),".aws","sso","cache",`${r}.json`)}});import{readFile as Im}from"node:fs/promises";var ht,Pi,Pn=c(()=>{Fn();ht={},Pi=async e=>{if(ht[e])return ht[e];let t=tr(e),r=await Im(t,"utf8");return JSON.parse(r)}});var G,Li=c(()=>{G="."});var Ln,ki,Bi=c(()=>{Ln=be(oe()),ki=e=>Object.entries(e).filter(([t])=>{let r=t.indexOf(".");return r===-1?!1:Object.values(Ln.IniSectionType).includes(t.substring(0,r))}).reduce((t,[r,n])=>{let o=r.indexOf("."),s=r.substring(0,o)===Ln.IniSectionType.PROFILE?r.substring(o+1):r;return t[s]=n,t},{...e.default&&{default:e.default}})});import{join as Am}from"node:path";var Nm,rr,kn=c(()=>{ke();Nm="AWS_CONFIG_FILE",rr=()=>process.env[Nm]||Am(W(),".aws","config")});import{join as Om}from"node:path";var Cm,zi,Hi=c(()=>{ke();Cm="AWS_SHARED_CREDENTIALS_FILE",zi=()=>process.env[Cm]||Om(W(),".aws","credentials")});var Vi,Rm,_m,gt,Bn=c(()=>{Vi=be(oe()),Rm=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,_m=["__proto__","profile __proto__"],gt=e=>{let t={},r,n;for(let o of e.split(/\r?\n/)){let s=o.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){r=void 0,n=void 0;let a=s.substring(1,s.length-1),f=Rm.exec(a);if(f){let[,u,,d]=f;Object.values(Vi.IniSectionType).includes(u)&&(r=[u,d].join("."))}else r=a;if(_m.includes(a))throw new Error(`Found invalid profile name "${a}"`)}else if(r){let a=s.indexOf("=");if(![0,-1].includes(a)){let[f,u]=[s.substring(0,a).trim(),s.substring(a+1).trim()];if(u==="")n=f;else{n&&o.trimStart()===o&&(n=void 0),t[r]=t[r]||{};let d=n?[n,f].join("."):f;t[r][d]=u}}}}return t}});import{readFile as vm}from"node:fs/promises";var zn,yt,Se,xt=c(()=>{zn={},yt={},Se=(e,t)=>yt[e]!==void 0?yt[e]:((!zn[e]||t?.ignoreCache)&&(zn[e]=vm(e,"utf8")),zn[e])});import{join as Wi}from"node:path";var Gi,Be,nr=c(()=>{Bi();kn();Hi();ke();Bn();xt();Gi=()=>({}),Be=async(e={})=>{let{filepath:t=zi(),configFilepath:r=rr()}=e,n=W(),o="~/",s=t;t.startsWith(o)&&(s=Wi(n,t.slice(2)));let i=r;r.startsWith(o)&&(i=Wi(n,r.slice(2)));let a=await Promise.all([Se(i,{ignoreCache:e.ignoreCache}).then(gt).then(ki).catch(Gi),Se(s,{ignoreCache:e.ignoreCache}).then(gt).catch(Gi)]);return{configFile:a[0],credentialsFile:a[1]}}});var ji,qi,Ji=c(()=>{ji=be(oe()),qi=e=>Object.entries(e).filter(([t])=>t.startsWith(ji.IniSectionType.SSO_SESSION+".")).reduce((t,[r,n])=>({...t,[r.substring(r.indexOf(".")+1)]:n}),{})});var Mm,Xi,Ki=c(()=>{kn();Ji();Bn();xt();Mm=()=>({}),Xi=async(e={})=>Se(e.configFilepath??rr()).then(gt).then(qi).catch(Mm)});var Zi,Yi=c(()=>{Zi=(...e)=>{let t={};for(let r of e)for(let[n,o]of Object.entries(r))t[n]!==void 0?Object.assign(t[n],o):t[n]=o;return t}});var Qi,ea=c(()=>{nr();Yi();Qi=async e=>{let t=await Be(e);return Zi(t.configFile,t.credentialsFile)}});var ta,ra=c(()=>{Pn();xt();ta={getFileRecord(){return yt},interceptFile(e,t){yt[e]=Promise.resolve(t)},getTokenRecord(){return ht},interceptToken(e,t){ht[e]=t}}});function or(e){try{let t=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));return t.delete("CONFIG"),t.delete("CONFIG_PREFIX_SEPARATOR"),t.delete("ENV"),[...t].join(", ")}catch{return e}}var Hn=c(()=>{});var na,oa=c(()=>{qt();Hn();na=(e,t)=>async()=>{try{let r=e(process.env,t);if(r===void 0)throw new Error;return r}catch(r){throw new ae(r.message||`Not found in ENV: ${or(e.toString())}`,{logger:t?.logger})}}});var sa,ia=c(()=>{qt();Dn();nr();Hn();sa=(e,{preferredFile:t="config",...r}={})=>async()=>{let n=er(r),{configFile:o,credentialsFile:s}=await Be(r),i=s[n]||{},a=o[n]||{},f=t==="config"?{...i,...a}:{...a,...i};try{let d=e(f,t==="config"?o:s);if(d===void 0)throw new Error;return d}catch(u){throw new ae(u.message||`Not found in config files w/ profile [${n}]: ${or(e.toString())}`,{logger:r.logger})}}});var Um,sr,Vn=c(()=>{vn();Um=e=>typeof e=="function",sr=e=>Um(e)?async()=>await e():Kt(e)});var ce,Wn=c(()=>{_n();Zt();oa();ia();Vn();ce=({environmentVariableSelector:e,configFileSelector:t,default:r},n={})=>{let{signingName:o,logger:s}=n;return Le(Xt(na(e,{signingName:o,logger:s}),sa(t,n),sr(r)))}});var ir,ar,aa,ca,fa,ua=c(()=>{Yt();Qt();ir="AWS_USE_DUALSTACK_ENDPOINT",ar="use_dualstack_endpoint",aa=!1,ca={environmentVariableSelector:e=>v(e,ir,O.ENV),configFileSelector:e=>v(e,ar,O.CONFIG),default:!1},fa={environmentVariableSelector:e=>v(e,ir,O.ENV),configFileSelector:e=>v(e,ar,O.CONFIG),default:void 0}});var cr,fr,la,ma,da,pa=c(()=>{Yt();Qt();cr="AWS_USE_FIPS_ENDPOINT",fr="use_fips_endpoint",la=!1,ma={environmentVariableSelector:e=>v(e,cr,O.ENV),configFileSelector:e=>v(e,fr,O.CONFIG),default:!1},da={environmentVariableSelector:e=>v(e,cr,O.ENV),configFileSelector:e=>v(e,fr,O.CONFIG),default:void 0}});var Ee,fe,ue,ha,ga,ur=c(()=>{Ee=(e,t)=>{let r=[];if(e&&r.push(e),t)for(let n of t)r.push(n);return r},fe=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,ue=()=>{let e=[],t=[],r=!1,n=new Set,o=m=>m.sort((l,p)=>ha[p.step]-ha[l.step]||ga[p.priority||"normal"]-ga[l.priority||"normal"]),s=m=>{let l=!1,p=g=>{let x=Ee(g.name,g.aliases);if(x.includes(m)){l=!0;for(let h of x)n.delete(h);return!1}return!0};return e=e.filter(p),t=t.filter(p),l},i=m=>{let l=!1,p=g=>{if(g.middleware===m){l=!0;for(let x of Ee(g.name,g.aliases))n.delete(x);return!1}return!0};return e=e.filter(p),t=t.filter(p),l},a=m=>(e.forEach(l=>{m.add(l.middleware,{...l})}),t.forEach(l=>{m.addRelativeTo(l.middleware,{...l})}),m.identifyOnResolve?.(d.identifyOnResolve()),m),f=m=>{let l=[];return m.before.forEach(p=>{p.before.length===0&&p.after.length===0?l.push(p):l.push(...f(p))}),l.push(m),m.after.reverse().forEach(p=>{p.before.length===0&&p.after.length===0?l.push(p):l.push(...f(p))}),l},u=(m=!1)=>{let l=[],p=[],g={};return e.forEach(h=>{let y={...h,before:[],after:[]};for(let b of Ee(y.name,y.aliases))g[b]=y;l.push(y)}),t.forEach(h=>{let y={...h,before:[],after:[]};for(let b of Ee(y.name,y.aliases))g[b]=y;p.push(y)}),p.forEach(h=>{if(h.toMiddleware){let y=g[h.toMiddleware];if(y===void 0){if(m)return;throw new Error(`${h.toMiddleware} is not found when adding ${fe(h.name,h.aliases)} middleware ${h.relation} ${h.toMiddleware}`)}h.relation==="after"&&y.after.push(h),h.relation==="before"&&y.before.push(h)}}),o(l).map(f).reduce((h,y)=>(h.push(...y),h),[])},d={add:(m,l={})=>{let{name:p,override:g,aliases:x}=l,h={step:"initialize",priority:"normal",middleware:m,...l},y=Ee(p,x);if(y.length>0){if(y.some(b=>n.has(b))){if(!g)throw new Error(`Duplicate middleware name '${fe(p,x)}'`);for(let b of y){let E=e.findIndex(te=>te.name===b||te.aliases?.some(Me=>Me===b));if(E===-1)continue;let A=e[E];if(A.step!==h.step||h.priority!==A.priority)throw new Error(`"${fe(A.name,A.aliases)}" middleware with ${A.priority} priority in ${A.step} step cannot be overridden by "${fe(p,x)}" middleware with ${h.priority} priority in ${h.step} step.`);e.splice(E,1)}}for(let b of y)n.add(b)}e.push(h)},addRelativeTo:(m,l)=>{let{name:p,override:g,aliases:x}=l,h={middleware:m,...l},y=Ee(p,x);if(y.length>0){if(y.some(b=>n.has(b))){if(!g)throw new Error(`Duplicate middleware name '${fe(p,x)}'`);for(let b of y){let E=t.findIndex(te=>te.name===b||te.aliases?.some(Me=>Me===b));if(E===-1)continue;let A=t[E];if(A.toMiddleware!==h.toMiddleware||A.relation!==h.relation)throw new Error(`"${fe(A.name,A.aliases)}" middleware ${A.relation} "${A.toMiddleware}" middleware cannot be overridden by "${fe(p,x)}" middleware ${h.relation} "${h.toMiddleware}" middleware.`);t.splice(E,1)}}for(let b of y)n.add(b)}t.push(h)},clone:()=>a(ue()),use:m=>{m.applyToStack(d)},remove:m=>typeof m=="string"?s(m):i(m),removeByTag:m=>{let l=!1,p=g=>{let{tags:x,name:h,aliases:y}=g;if(x&&x.includes(m)){let b=Ee(h,y);for(let E of b)n.delete(E);return l=!0,!1}return!0};return e=e.filter(p),t=t.filter(p),l},concat:m=>{let l=a(ue());return l.use(m),l.identifyOnResolve(r||l.identifyOnResolve()||(m.identifyOnResolve?.()??!1)),l},applyToStack:a,identify:()=>u(!0).map(m=>{let l=m.step??m.relation+" "+m.toMiddleware;return fe(m.name,m.aliases)+" - "+l}),identifyOnResolve(m){return typeof m=="boolean"&&(r=m),r},resolve:(m,l)=>{for(let p of u().map(g=>g.middleware).reverse())m=p(m,l);return r&&console.log(d.identify()),m}};return d},ha={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},ga={high:3,normal:2,low:1}});var ya,xa=c(()=>{ya=e=>()=>{throw new Error(e)}});var ba,wa=c(()=>{ba=e=>()=>Promise.reject(e)});var ze,Gn=c(()=>{ze=()=>{let e=new WeakSet;return(t,r)=>{if(typeof r=="object"&&r!==null){if(e.has(r))return"[Circular]";e.add(r)}return r}}});var Sa,Ea=c(()=>{Sa=e=>new Promise(t=>setTimeout(t,e*1e3))});var lr,$,Ta,mr=c(()=>{Gn();lr={minDelay:2,maxDelay:120};(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})($||($={}));Ta=e=>{if(e.state===$.ABORTED){let t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"},ze())}`);throw t.name="AbortError",t}else if(e.state===$.TIMEOUT){let t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"},ze())}`);throw t.name="TimeoutError",t}else if(e.state!==$.SUCCESS)throw new Error(`${JSON.stringify(e,ze())}`);return e}});var Ia,$m,Dm,Fm,Pm,Aa=c(()=>{Gn();Ea();mr();Ia=async({minDelay:e,maxDelay:t,maxWaitTime:r,abortController:n,client:o,abortSignal:s},i,a)=>{let f={},[u,d]=[e*1e3,t*1e3],m=0,l=Date.now()+r*1e3,p=Date.now()+6e4,g=!1;for(;;){if(m>0){let y=Fm(u,d,m,l);if(n?.signal?.aborted||s?.aborted){let b="AbortController signal aborted.";return f[b]|=0,f[b]+=1,{state:$.ABORTED,observedResponses:f}}if(Date.now()+y>l)return{state:$.TIMEOUT,observedResponses:f};await Sa(y/1e3)}let{state:x,reason:h}=await a(o,i);if(h){let y=Dm(h);f[y]|=0,f[y]+=1}if(x!==$.RETRY)return{state:x,reason:h,final:h,observedResponses:f};m+=1,!g&&Date.now()>=p&&($m(f,o),g=!0)}},$m=(e={},t)=>{let r=Object.keys(e),n=0,o=0;for(let a of r){let f=e[a]|0;n=Math.max(f,n),a.startsWith("403:")&&(o+=f)}let s=t?.config?.logger,i=typeof s?.warn=="function"&&!s.constructor?.name?.includes?.("NoOpLogger")?s:console;(o>=3||r[r.length-1]?.startsWith("403:"))&&i.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},Dm=e=>{let t=e?.$response?.statusCode??e?.$metadata?.httpStatusCode;return e?.$responseBodyText?`${t?t+": ":""}Deserialization error for body: ${e.$responseBodyText}`:t?e?.$response||e?.message?`${t??"Unknown"}: ${e?.message}`:`${t}: OK`:String(e?.message??JSON.stringify(e,ze())??"Unknown")},Fm=(e,t,r,n)=>{let o=Math.log(t/e)/Math.log(2)+1;if(r>o)return t;let s=e*2**(r-1),i=Math.min(s,t),a=Pm(e,i);if(Date.now()+a>n){let f=n-Date.now();return Math.max(0,f-500)}return a},Pm=(e,t)=>e+Math.random()*(t-e)});var Na,Oa=c(()=>{Na=e=>{if(e.maxWaitTime<=0)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<=0)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<=0)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelay<e.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}});var Ca,Ra,_a=c(()=>{Aa();Oa();mr();Ca=e=>{let t,r=new Promise(n=>{t=()=>n({state:$.ABORTED}),typeof e.addEventListener=="function"?e.addEventListener("abort",t):e.onabort=t});return{clearListener(){typeof e.removeEventListener=="function"&&e.removeEventListener("abort",t)},aborted:r}},Ra=async(e,t,r)=>{let n={...lr,...e};Na(n);let o=[Ia(n,t,r)],s=[];if(e.abortSignal){let{aborted:i,clearListener:a}=Ca(e.abortSignal);s.push(a),o.push(i)}if(e.abortController?.signal){let{aborted:i,clearListener:a}=Ca(e.abortController.signal);s.push(a),o.push(i)}return Promise.race(o).then(i=>{for(let a of s)a();return i})}});var dr,va=c(()=>{ur();dr=class{config;middlewareStack=ue();initConfig;handlers;constructor(t){this.config=t;let{protocol:r,protocolSettings:n}=t;n&&typeof r=="function"&&(t.protocol=new r(n))}send(t,r,n){let o=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,i=o===void 0&&this.config.cacheMiddleware===!0,a;if(i){this.handlers||(this.handlers=new WeakMap);let f=this.handlers;f.has(t.constructor)?a=f.get(t.constructor):(a=t.resolveMiddleware(this.middlewareStack,this.config,o),f.set(t.constructor,a))}else delete this.handlers,a=t.resolveMiddleware(this.middlewareStack,this.config,o);if(s)a(t).then(f=>s(null,f.output),f=>s(f)).catch(()=>{});else return a(t).then(f=>f.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}});var He,jn=c(()=>{He=e=>typeof e=="function"?e():e});var Ve,pr=c(()=>{Ve=(e,t,r,n,o)=>({name:t,namespace:e,traits:r,input:n,output:o})});var Ma,qn,Ua=c(()=>{T();pr();Ma=e=>(t,r)=>async n=>{let{response:o}=await t(n),{operationSchema:s}=J(r),[,i,a,f,u,d]=s??[];try{let m=await e.protocol.deserializeResponse(Ve(i,a,f,u,d),{...e,...r},o);return{response:o,output:m}}catch(m){if(Object.defineProperty(m,"$response",{value:o,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in m)){let l="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{m.message+=`
|
|
8
|
+
`+l}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(l):r.logger?.warn?.(l)}typeof m.$responseBodyText<"u"&&m.$response&&(m.$response.body=m.$responseBodyText);try{if(we.isInstance(o)){let{headers:p={},statusCode:g}=o,x=Object.entries(p);m.$metadata={httpStatusCode:g,requestId:qn(/^x-[\w-]+-request-?id$/,x),extendedRequestId:qn(/^x-[\w-]+-id-2$/,x),cfId:qn(/^x-[\w-]+-cf-id$/,x)}}}catch{}}throw m}},qn=(e,t)=>(t.find(([r])=>r.match(e))||[void 0,void 0])[1]});var $a,Da=c(()=>{T();pr();$a=e=>(t,r)=>async n=>{let{operationSchema:o}=J(r),[,s,i,a,f,u]=o??[],d=r.endpointV2?async()=>U(r.endpointV2):e.endpoint,m=await e.protocol.serializeRequest(Ve(s,i,a,f,u),n.input,{...e,...r,endpoint:d});return t({...n,request:m})}});function Fa(e){return{applyToStack:t=>{t.add($a(e),Xn),t.add(Ma(e),Jn),e.protocol.setSerdeContext(e)}}}var Jn,Xn,Pa=c(()=>{Ua();Da();Jn={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Xn={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});var I,le=c(()=>{I=class{name;namespace;traits;static assign(t,r){return Object.assign(t,r)}static[Symbol.hasInstance](t){let r=this.prototype.isPrototypeOf(t);return!r&&typeof t=="object"&&t!==null?t.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var bt,La,ka=c(()=>{le();bt=class e extends I{static symbol=Symbol.for("@smithy/lis");valueSchema;symbol=e.symbol},La=(e,t,r,n)=>I.assign(new bt,{name:t,namespace:e,traits:r,valueSchema:n})});var wt,Ba,za=c(()=>{le();wt=class e extends I{static symbol=Symbol.for("@smithy/map");keySchema;valueSchema;symbol=e.symbol},Ba=(e,t,r,n,o)=>I.assign(new wt,{name:t,namespace:e,traits:r,keySchema:n,valueSchema:o})});var St,Ha,Va=c(()=>{le();St=class e extends I{static symbol=Symbol.for("@smithy/ope");input;output;symbol=e.symbol},Ha=(e,t,r,n,o)=>I.assign(new St,{name:t,namespace:e,traits:r,input:n,output:o})});var Te,Wa,Kn=c(()=>{le();Te=class e extends I{static symbol=Symbol.for("@smithy/str");memberNames;memberList;symbol=e.symbol},Wa=(e,t,r,n,o)=>I.assign(new Te,{name:t,namespace:e,traits:r,memberNames:n,memberList:o})});var Et,Ga,ja=c(()=>{le();Kn();Et=class e extends Te{static symbol=Symbol.for("@smithy/err");ctor;symbol=e.symbol},Ga=(e,t,r,n,o,s)=>I.assign(new Et,{name:t,namespace:e,traits:r,memberNames:n,memberList:o,ctor:null})});function Ie(e){if(typeof e=="object")return e;if(e=e|0,Tt[e])return Tt[e];let t={},r=0;for(let n of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>r++&1)===1&&(t[n]=1);return Tt[e]=t}var Tt,Zn=c(()=>{Tt=[]});function At(e,t){if(e instanceof me)return Object.assign(e,{memberName:t,_isMemberSchema:!0});let r=me;return new r(e,t)}var It,Nt,Ot,me,Yn,Qn,qa=c(()=>{jn();Zn();It={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},Nt=[],Ot={},me=class e{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=e.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,r){this.ref=t,this.memberName=r;let n=[],o=t,s=t;for(this._isMemberSchema=!1;Yn(o);)n.push(o[1]),o=o[0],s=He(o),this._isMemberSchema=!0;if(n.length>0){this.memberTraits={};for(let i=n.length-1;i>=0;--i){let a=n[i];Object.assign(this.memberTraits,Ie(a))}}else this.memberTraits=0;if(s instanceof e){let i=this.memberTraits;Object.assign(this,s),this.memberTraits=Object.assign({},i,s.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??s.memberName;return}if(this.schema=He(s),Qn(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(s),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](t){let r=this.prototype.isPrototypeOf(t);return!r&&typeof t=="object"&&t!==null?t.symbol===this.symbol:r}static of(t){let r=typeof t=="function"||typeof t=="object"&&t!==null;if(typeof t=="number"){if(Nt[t])return Nt[t]}else if(typeof t=="string"){if(Ot[t])return Ot[t]}else if(r&&t[It.ns])return t[It.ns];let n=He(t);if(n instanceof e)return n;if(Yn(n)){let[s,i]=n;if(s instanceof e)return Object.assign(s.getMergedTraits(),Ie(i)),s;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let o=new e(n);return r?t[It.ns]=o:typeof n=="string"?Ot[n]=o:typeof n=="number"?Nt[n]=o:o}getSchema(){let t=this.schema;return Array.isArray(t)&&t[0]===0?t[4]:t}getName(t=!1){let{name:r}=this;return!t&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let t=this.getSchema();return typeof t=="number"?t>=64&&t<128:t[0]===1}isMapSchema(){let t=this.getSchema();return typeof t=="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){let t=this.getSchema();if(typeof t!="object")return!1;let r=t[0];return r===3||r===-3||r===4}isUnionSchema(){let t=this.getSchema();return typeof t!="object"?!1:t[0]===4}isBlobSchema(){let t=this.getSchema();return t===21||t===42}isTimestampSchema(){let t=this.getSchema();return typeof t=="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return Ie(this.memberTraits)}getOwnTraits(){return Ie(this.traits)}getKeySchema(){let[t,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let n=this.getSchema(),o=t?15:n[4]??0;return At([o,0],"key")}getValueSchema(){let t=this.getSchema(),[r,n,o]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],s=typeof t=="number"?63&t:t&&typeof t=="object"&&(n||o)?t[3+t[0]]:r?15:void 0;if(s!=null)return At([s,0],n?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(t){let r=this.getSchema();if(this.isStructSchema()&&r[4].includes(t)){let n=r[4].indexOf(t),o=r[5][n];return At(Yn(o)?o:[o,0],t)}if(this.isDocumentSchema())return At([15,0],t);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${t}.`)}getMemberSchemas(){let t={};try{for(let[r,n]of this.structIterator())t[r]=n}catch{}return t}getEventStreamMember(){if(this.isStructSchema()){for(let[t,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return t}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let t=this.getSchema(),r=t[4].length,n=t[It.it];if(n&&r===n.length){yield*n;return}n=Array(r);for(let o=0;o<r;++o){let s=t[4][o],i=At([t[5][o],0],s);yield n[o]=[s,i]}t[It.it]=n}};Yn=e=>Array.isArray(e)&&e.length===2,Qn=e=>Array.isArray(e)&&e.length>=5});var We,Ja,Xa,Ka=c(()=>{le();We=class e extends I{static symbol=Symbol.for("@smithy/sim");schemaRef;symbol=e.symbol},Ja=(e,t,r,n)=>I.assign(new We,{name:t,namespace:e,traits:n,schemaRef:r}),Xa=(e,t,r,n)=>I.assign(new We,{name:t,namespace:e,traits:r,schemaRef:n})});var Za,Ya=c(()=>{Za={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128}});var Ge,Qa=c(()=>{Ge=class e{namespace;schemas;exceptions;static registries=new Map;constructor(t,r=new Map,n=new Map){this.namespace=t,this.schemas=r,this.exceptions=n}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(t){let{schemas:r,exceptions:n}=this;for(let[o,s]of t.schemas)r.has(o)||r.set(o,s);for(let[o,s]of t.exceptions)n.has(o)||n.set(o,s)}register(t,r){let n=this.normalizeShapeId(t);for(let o of[this,e.for(n.split("#")[0])])o.schemas.set(n,r)}getSchema(t){let r=this.normalizeShapeId(t);if(!this.schemas.has(r)){if(!t.includes("#")){let n="#"+t,o=[];for(let[s,i]of this.schemas.entries())s.endsWith(n)&&o.push(i);if(o.length===1)return o[0]}throw new Error(`@smithy/core/schema - schema not found for ${r}`)}return this.schemas.get(r)}registerError(t,r){let n=t,o=n[1];for(let s of[this,e.for(o)])s.schemas.set(o+"#"+n[2],n),s.exceptions.set(n,r)}getErrorCtor(t){let r=t;return this.exceptions.has(r)?this.exceptions.get(r):e.for(r[1]).exceptions.get(r)}getBaseException(){for(let t of this.exceptions.keys())if(Array.isArray(t)){let[,r,n]=t,o=r+"#"+n;if(o.startsWith("smithy.ts.sdk.synthetic.")&&o.endsWith("ServiceException"))return t}}find(t){for(let r of this.schemas.values())if(t(r))return r}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(t){return t.includes("#")?t:this.namespace+"#"+t}}});var Lm={};xe(Lm,{ErrorSchema:()=>Et,ListSchema:()=>bt,MapSchema:()=>wt,NormalizedSchema:()=>me,OperationSchema:()=>St,SCHEMA:()=>Za,Schema:()=>I,SimpleSchema:()=>We,StructureSchema:()=>Te,TypeRegistry:()=>Ge,deref:()=>He,deserializerMiddlewareOption:()=>Jn,error:()=>Ga,getSchemaSerdePlugin:()=>Fa,isStaticSchema:()=>Qn,list:()=>La,map:()=>Ba,op:()=>Ha,operation:()=>Ve,serializerMiddlewareOption:()=>Xn,sim:()=>Ja,simAdapter:()=>Xa,simpleSchemaCacheN:()=>Nt,simpleSchemaCacheS:()=>Ot,struct:()=>Wa,traitsCache:()=>Tt,translateTraits:()=>Ie});var eo=c(()=>{jn();Pa();ka();za();Va();pr();ja();qa();le();Ka();Kn();Ya();Zn();Qa()});function je(e,t){if(t==null)return t;let r=me.of(e);if(r.getMergedTraits().sensitive)return to;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return to}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return to}else if(r.isStructSchema()&&typeof t=="object"){let n=t,o={};for(let[s,i]of r.structIterator())n[s]!=null&&(o[s]=je(i,n[s]));return o}return t}var to,ro=c(()=>{eo();to="***SensitiveInformation***"});var ec,Ae,no,oo=c(()=>{ec=be(oe());ur();ro();Ae=class{middlewareStack=ue();schema;static classBuilder(){return new no}resolveMiddlewareWithContext(t,r,n,{middlewareFn:o,clientName:s,commandName:i,inputFilterSensitiveLog:a,outputFilterSensitiveLog:f,smithyContext:u,additionalContext:d,CommandCtor:m}){for(let y of o.bind(this)(m,t,r,n))this.middlewareStack.use(y);let l=t.concat(this.middlewareStack),{logger:p}=r,g={logger:p,clientName:s,commandName:i,inputFilterSensitiveLog:a,outputFilterSensitiveLog:f,[ec.SMITHY_CONTEXT_KEY]:{commandInstance:this,...u},...d},{requestHandler:x}=r,h=n??{};return u.eventStream&&(h={isEventStream:!0,...h}),l.resolve(y=>x.handle(y.request,h),g)}},no=class{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,r,n={}){return this._smithyContext={service:t,operation:r,...n},this}c(t={}){return this._additionalContext=t,this}n(t,r){return this._clientName=t,this._commandName=r,this}f(t=n=>n,r=n=>n){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=r,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){let t=this,r;return r=class extends Ae{input;static getEndpointParameterInstructions(){return t._ep}constructor(...[n]){super(),this.input=n??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(n,o,s){let i=t._operationSchema,a=i?.[4]??i?.input,f=i?.[5]??i?.output;return this.resolveMiddlewareWithContext(n,o,s,{CommandCtor:r,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(i?je.bind(null,a):u=>u),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(i?je.bind(null,f):u=>u),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}}});var tc,rc=c(()=>{tc="***SensitiveInformation***"});var nc,oc=c(()=>{nc=(e,t,r)=>{for(let[s,i]of Object.entries(e)){let a=async function(u,d,m){let l=new i(u);if(typeof d=="function")this.send(l,d);else if(typeof m=="function"){if(typeof d!="object")throw new Error(`Expected http options but got ${typeof d}`);this.send(l,d||{},m)}else return this.send(l,d)},f=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");t.prototype[f]=a}let{paginators:n={},waiters:o={}}=r??{};for(let[s,i]of Object.entries(n))t.prototype[s]===void 0&&(t.prototype[s]=function(a={},f,...u){return i({...f,client:this},a,...u)});for(let[s,i]of Object.entries(o))t.prototype[s]===void 0&&(t.prototype[s]=async function(a={},f,...u){let d=f;return typeof f=="number"&&(d={maxWaitTime:f}),i({...d,client:this},a,...u)})}});var hr,gr,so=c(()=>{hr=class e extends Error{$fault;$response;$retryable;$metadata;constructor(t){super(t.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}static isInstance(t){if(!t)return!1;let r=t;return e.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return!1;let r=t;return this===e?e.isInstance(t):e.isInstance(t)?r.name&&this.name?this.prototype.isPrototypeOf(t)||r.name===this.name:this.prototype.isPrototypeOf(t):!1}},gr=(e,t={})=>{Object.entries(t).filter(([,n])=>n!==void 0).forEach(([n,o])=>{(e[n]==null||e[n]==="")&&(e[n]=o)});let r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e}});var io,sc,km,ic=c(()=>{so();io=({output:e,parsedBody:t,exceptionCtor:r,errorCode:n})=>{let o=km(e),s=o.httpStatusCode?o.httpStatusCode+"":void 0,i=new r({name:t?.code||t?.Code||n||s||"UnknownError",$fault:"client",$metadata:o});throw gr(i,t)},sc=e=>({output:t,parsedBody:r,errorCode:n})=>{io({output:t,parsedBody:r,exceptionCtor:e,errorCode:n})},km=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]})});var ac,cc=c(()=>{ac=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}}});var fc,uc,lc=c(()=>{fc=!1,uc=e=>{e&&!fc&&parseInt(e.substring(1,e.indexOf(".")))<16&&(fc=!0)}});var Ne,mc,yr,xr,ao=c(()=>{T();Ne=be(oe()),mc=Object.values(Ne.AlgorithmId),yr=e=>{let t=[];for(let r in Ne.AlgorithmId){if(!S(Ne.AlgorithmId,r))continue;let n=Ne.AlgorithmId[r];e[n]!==void 0&&t.push({algorithmId:()=>n,checksumConstructor:()=>e[n]})}for(let[r,n]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:()=>r,checksumConstructor:()=>n});return{addChecksumAlgorithm(r){e.checksumAlgorithms=e.checksumAlgorithms??{};let n=r.algorithmId(),o=r.checksumConstructor();mc.includes(n)?e.checksumAlgorithms[n.toUpperCase()]=o:e.checksumAlgorithms[n]=o,t.push(r)},checksumAlgorithms(){return t}}},xr=e=>{let t={};return e.checksumAlgorithms().forEach(r=>{let n=r.algorithmId();mc.includes(n)&&(t[n]=r.checksumConstructor())}),t}});var br,wr,co=c(()=>{br=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),wr=e=>{let t={};return t.retryStrategy=e.retryStrategy(),t}});var fo,dc,pc,hc=c(()=>{ao();co();fo=e=>Object.assign(yr(e),br(e)),dc=fo,pc=e=>Object.assign(xr(e),wr(e))});var gc,yc=c(()=>{gc=e=>Array.isArray(e)?e:[e]});var uo,xc=c(()=>{T();uo=e=>{let t="#text";for(let r in e)S(e,r)&&(e[r][t]!==void 0?e[r]=e[r][t]:typeof e[r]=="object"&&e[r]!==null&&(e[r]=uo(e[r])));return e}});var bc,wc=c(()=>{bc=e=>e!=null});var Sr,Sc=c(()=>{Sr=class{trace(){}debug(){}info(){}warn(){}error(){}}});function lo(e,t,r){let n,o,s;if(typeof t>"u"&&typeof r>"u")n={},s=e;else{if(n=e,typeof t=="function")return o=t,s=r,Bm(n,o,s);s=t}for(let i in s)if(S(s,i)){if(!Array.isArray(s[i])){n[i]=s[i];continue}Ic(n,null,s,i)}return n}var Ec,Tc,Bm,Ic,zm,Hm,Ac=c(()=>{T();Ec=e=>{let t={};for(let[r,n]of Object.entries(e||{}))t[r]=[,n];return t},Tc=(e,t)=>{let r={};for(let n in t)S(t,n)&&Ic(r,e,t,n);return r},Bm=(e,t,r)=>lo(e,Object.entries(r).reduce((n,[o,s])=>(Array.isArray(s)?n[o]=s:typeof s=="function"?n[o]=[t,s()]:n[o]=[t,s],n),{})),Ic=(e,t,r,n)=>{if(t!==null){let i=r[n];typeof i=="function"&&(i=[,i]);let[a=zm,f=Hm,u=n]=i;(typeof a=="function"&&a(t[u])||typeof a!="function"&&a)&&(e[n]=f(t[u]));return}let[o,s]=r[n];if(typeof s=="function"){let i,a=o===void 0&&(i=s())!=null,f=typeof o=="function"&&!!o(void 0)||typeof o!="function"&&!!o;a?e[n]=i:f&&(e[n]=s())}else{let i=o===void 0&&s!=null,a=typeof o=="function"&&!!o(s)||typeof o!="function"&&!!o;(i||a)&&(e[n]=s)}},zm=e=>e!=null,Hm=e=>e});var Nc,Oc,Cc=c(()=>{Nc=e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}},Oc=e=>e.toISOString().replace(".000Z","Z")});var Er,Rc=c(()=>{T();Er=e=>{if(e==null)return{};if(Array.isArray(e))return e.filter(t=>t!=null).map(Er);if(typeof e=="object"){let t={};for(let r in e)S(e,r)&&e[r]!=null&&(t[r]=Er(e[r]));return t}return e}});function _c(e,t,r,n){return function(s,i,a,f,u={}){let d=Object.assign({},e,s);return Ae.classBuilder().ep(d).m(function(m,l,p,g){let x=i.call(this,m,l,p,g);return x.unshift(n(p,m.getEndpointParameterInstructions())),x}).s(t,a,u).n(r,a.charAt(0).toUpperCase()+a.slice(1)+"Command").sc(f).build()}}var vc=c(()=>{oo()});var Vm={};xe(Vm,{AlgorithmId:()=>Ne.AlgorithmId,Client:()=>dr,Command:()=>Ae,NoOpLogger:()=>Sr,SENSITIVE_STRING:()=>tc,ServiceException:()=>hr,WaiterState:()=>$,_json:()=>Er,checkExceptions:()=>Ta,constructStack:()=>ue,convertMap:()=>Ec,createAggregatedClient:()=>nc,createWaiter:()=>Ra,decorateServiceException:()=>gr,emitWarningIfUnsupportedVersion:()=>uc,getArrayIfSingleItem:()=>gc,getChecksumConfiguration:()=>yr,getDefaultClientConfiguration:()=>dc,getDefaultExtensionConfiguration:()=>fo,getRetryConfiguration:()=>br,getSmithyContext:()=>J,getValueFromTextNode:()=>uo,invalidFunction:()=>ya,invalidProvider:()=>ba,isSerializableHeaderValue:()=>bc,loadConfigsForDefaultMode:()=>ac,makeBuilder:()=>_c,map:()=>lo,normalizeProvider:()=>M,resolveChecksumRuntimeConfig:()=>xr,resolveDefaultRuntimeConfig:()=>pc,resolveRetryRuntimeConfig:()=>wr,schemaLogFilter:()=>je,serializeDateTime:()=>Oc,serializeFloat:()=>Nc,take:()=>Tc,throwDefaultError:()=>io,waiterServiceDefaults:()=>lr,withBaseException:()=>sc});var mo=c(()=>{ur();T();T();xa();wa();_a();mr();va();oo();rc();oc();ic();cc();lc();so();hc();ao();co();yc();xc();wc();Sc();Ac();ro();Cc();Rc();vc()});var Mc,Uc=c(()=>{mo();Mc=e=>{let{tls:t,endpoint:r,urlParser:n,useDualstackEndpoint:o}=e;return Object.assign(e,{tls:t??!0,endpoint:M(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:M(o??!1)})}});var $c,Dc=c(()=>{$c=async e=>{let{tls:t=!0}=e,r=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let o=await e.useDualstackEndpoint(),s=await e.useFipsEndpoint(),{hostname:i}=await e.regionInfoProvider(r,{useDualstackEndpoint:o,useFipsEndpoint:s})??{};if(!i)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${t?"https:":"http:"}//${i}`)}});var Fc,Pc=c(()=>{mo();Dc();Fc=e=>{let t=M(e.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:n,urlParser:o,tls:s}=e;return Object.assign(e,{tls:s??!0,endpoint:r?M(typeof r=="string"?o(r):r):()=>$c({...e,useDualstackEndpoint:t,useFipsEndpoint:n}),isCustomEndpoint:!!r,useDualstackEndpoint:t})}});var Lc,po,ho,kc,Bc,zc,Hc,Vc,Wc,go=c(()=>{Lc="AWS_EXECUTION_ENV",po="AWS_REGION",ho="AWS_DEFAULT_REGION",kc="AWS_EC2_METADATA_DISABLED",Bc=["in-region","cross-region","mobile","standard","legacy"],zc="/latest/meta-data/placement/region",Hc="/latest/api/token",Vc="x-aws-ec2-metadata-token",Wc="x-aws-ec2-metadata-token-ttl-seconds"});var Gc,Wm,Jc,Tr,jc,Gm,qc,yo=c(()=>{go();Gc=1e3,Wm=6e4,Jc=0,Tr=async()=>{if(!process.env[kc]&&!(Date.now()<Jc))try{let e=Gm(),t=(await qc({...e,path:Hc,method:"PUT",headers:{[Wc]:"21600"}})).toString();return(await qc({...e,path:zc,method:"GET",headers:{[Vc]:t}})).toString().trim()||jc()}catch{return jc()}},jc=()=>{Jc=Date.now()+Wm},Gm=()=>{let e=process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT;if(e){let t=new URL(e);return{hostname:t.hostname.replace(/^\[(.+)]$/,"$1"),port:t.port?Number(t.port):void 0}}return process.env.AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE==="IPv6"?{hostname:"fd00:ec2::254"}:{hostname:"169.254.169.254"}},qc=async e=>{let{request:t}=await import("node:http");return new Promise((r,n)=>{let o=t({hostname:e.hostname,port:e.port,path:e.path,method:e.method,headers:e.headers,timeout:Gc,signal:AbortSignal.timeout(Gc)});o.on("error",s=>{n(s),o.destroy()}),o.on("timeout",()=>{n(new Error("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",s=>{let{statusCode:i=400}=s;if(i<200||i>=300){n(Object.assign(new Error("Error response received from instance metadata service"),{statusCode:i})),o.destroy();return}let a=[];s.on("data",f=>a.push(f)),s.on("end",()=>{r(Buffer.concat(a)),o.destroy()})}),o.end()})}});var xo,bo,Ir,Xc,wo=c(()=>{yo();xo="AWS_REGION",bo="region",Ir={environmentVariableSelector:e=>e[xo],configFileSelector:e=>e[bo],default:async()=>{let e=await Tr();if(e)return e;throw new Error("Region is missing")}},Xc={preferredFile:"credentials"}});var Kc,Zc,Yc=c(()=>{T();Kc=new Set,Zc=(e,t=X)=>{if(!Kc.has(e)&&!t(e))if(e==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else Kc.add(e)}});var Ar,So=c(()=>{Ar=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"))});var Qc,ef=c(()=>{So();Qc=e=>Ar(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e});var tf,rf=c(()=>{Yc();ef();So();tf=e=>{let{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{let n=typeof t=="function"?await t():t,o=Qc(n);return Zc(o),o},useFipsEndpoint:async()=>{let n=typeof t=="string"?t:await t();return Ar(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()}})}});var Eo,nf=c(()=>{Eo=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:r})=>e.find(({tags:n})=>t===n.includes("fips")&&r===n.includes("dualstack"))?.hostname});var of,sf=c(()=>{of=(e,{regionHostname:t,partitionHostname:r})=>t||(r?r.replace("{region}",e):void 0)});var af,cf=c(()=>{af=(e,{partitionHash:t})=>Object.keys(t||{}).find(r=>t[r].regions.includes(e))??"aws"});var ff,uf=c(()=>{ff=(e,{signingRegion:t,regionRegex:r,useFipsEndpoint:n})=>{if(t)return t;if(n){let o=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=e.match(o);if(s)return s[0].slice(1,-1)}}});var lf,mf=c(()=>{nf();sf();cf();uf();lf=(e,{useFipsEndpoint:t=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:o,partitionHash:s})=>{let i=af(e,{partitionHash:s}),a=e in o?e:s[i]?.endpoint??e,f={useFipsEndpoint:t,useDualstackEndpoint:r},u=Eo(o[a]?.variants,f),d=Eo(s[i]?.variants,f),m=of(a,{regionHostname:u,partitionHostname:d});if(m===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:a,useFipsEndpoint:t,useDualstackEndpoint:r}}`);let l=ff(m,{signingRegion:o[a]?.signingRegion,regionRegex:s[i].regionRegex,useFipsEndpoint:t});return{partition:i,signingService:n,hostname:m,...l&&{signingRegion:l},...o[a]?.signingService&&{signingService:o[a].signingService}}}});var jm,qm,df,pf=c(()=>{jm="AWS_DEFAULTS_MODE",qm="defaults_mode",df={environmentVariableSelector:e=>e[jm],configFileSelector:e=>e[qm],default:"legacy"}});var hf,Jm,Xm,gf=c(()=>{wo();yo();Wn();Zt();go();pf();hf=({region:e=ce(Ir),defaultsMode:t=ce(df)}={})=>Le(async()=>{let r=typeof t=="function"?await t():t;switch(r?.toLowerCase()){case"auto":return Jm(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${Bc.join(", ")}, got ${r}`)}}),Jm=async e=>{if(e){let t=typeof e=="function"?await e():e,r=await Xm();return r?t===r?"in-region":"cross-region":"standard"}return"standard"},Xm=async()=>process.env[Lc]&&(process.env[po]||process.env[ho])?process.env[po]??process.env[ho]:Tr()});var Km={};xe(Km,{CONFIG_PREFIX_SEPARATOR:()=>G,CONFIG_USE_DUALSTACK_ENDPOINT:()=>ar,CONFIG_USE_FIPS_ENDPOINT:()=>fr,CredentialsProviderError:()=>ae,DEFAULT_PROFILE:()=>$n,DEFAULT_USE_DUALSTACK_ENDPOINT:()=>aa,DEFAULT_USE_FIPS_ENDPOINT:()=>la,ENV_PROFILE:()=>Un,ENV_USE_DUALSTACK_ENDPOINT:()=>ir,ENV_USE_FIPS_ENDPOINT:()=>cr,NODE_REGION_CONFIG_FILE_OPTIONS:()=>Xc,NODE_REGION_CONFIG_OPTIONS:()=>Ir,NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS:()=>ca,NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS:()=>ma,ProviderError:()=>V,REGION_ENV_NAME:()=>xo,REGION_INI_NAME:()=>bo,SelectorType:()=>O,TokenProviderError:()=>Jt,booleanSelector:()=>v,chain:()=>Xt,externalDataInterceptor:()=>ta,fromStatic:()=>sr,fromValue:()=>Kt,getHomeDir:()=>W,getProfileName:()=>er,getRegionInfo:()=>lf,getSSOTokenFilepath:()=>tr,getSSOTokenFromFile:()=>Pi,loadConfig:()=>ce,loadSharedConfigFiles:()=>Be,loadSsoSessionData:()=>Xi,memoize:()=>Le,nodeDualstackConfigSelectors:()=>fa,nodeFipsConfigSelectors:()=>da,numberSelector:()=>Di,parseKnownFiles:()=>Qi,readFile:()=>Se,resolveCustomEndpointsConfig:()=>Mc,resolveDefaultsModeConfig:()=>hf,resolveEndpointsConfig:()=>Fc,resolveRegionConfig:()=>tf});var To=c(()=>{pt();qt();$i();_n();vn();Zt();Yt();Fi();Qt();ke();Dn();Fn();Pn();Li();nr();Ki();ea();ra();xt();Wn();Vn();ua();pa();Uc();Pc();wo();rf();mf();gf()});var yf,xf,bf,wf=c(()=>{yf="AWS_ENDPOINT_URL",xf="endpoint_url",bf=e=>({environmentVariableSelector:t=>{let r=e.split(" ").map(s=>s.toUpperCase()),n=t[[yf,...r].join("_")];if(n)return n;let o=t[yf];if(o)return o},configFileSelector:(t,r)=>{if(t.services){let o=["services",t.services].join(".");if(!r||!r[o])throw new Error(`The services section "${t.services}" specified in the profile is not present in the shared configuration file.`);let s=r[o],i=e.split(" ").map(f=>f.toLowerCase()),a=s[[i.join("_"),xf].join(".")];if(a)return a}let n=t[xf];if(n)return n},default:void 0})});var Zm,Ym,Sf,Ef=c(()=>{To();Zm="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",Ym="ignore_configured_endpoint_urls",Sf={environmentVariableSelector:e=>v(e,Zm,O.ENV),configFileSelector:e=>v(e,Ym,O.CONFIG),default:!1}});var Ct,Tf=c(()=>{To();wf();Ef();Ct=async e=>{if(!await ce(Sf)())return ce(bf(e??""))()}});var Io,Qm,ed,td,If,Af,Nf=c(()=>{Io=async e=>{let t=e?.Bucket||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),Af(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!If(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},Qm=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,ed=/(\d+\.){3}\d+/,td=/\.\./,If=e=>Qm.test(e)&&!ed.test(e)&&!td.test(e),Af=e=>{let[t,r,n,,,o]=e.split(":"),s=t==="arn"&&e.split(":").length>=6,i=!!(s&&r&&n&&o);if(s&&!i)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return i}});var Of=c(()=>{Nf()});var Cf,Rf=c(()=>{Cf=(e,t,r,n=!1)=>{let o=async()=>{let s;return n?s=r.clientContextParams?.[e]??r[e]??r[t]:s=r[e]??r[t],typeof s=="function"?s():s};return e==="credentialScope"||t==="CredentialScope"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.credentialScope??s?.CredentialScope}:e==="accountId"||t==="AccountId"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.accountId??s?.AccountId}:e==="endpoint"||t==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;let s=await o();if(s&&typeof s=="object"){if("url"in s)return s.url.href;if("hostname"in s){let{protocol:i,hostname:a,port:f,path:u}=s;return`${i}//${a}${f?":"+f:""}${u}`}}return s}:o}});var Nr=c(()=>{T()});function Or(e){return async(t,r,n,o)=>{if(!n.isCustomEndpoint&&!n.ignoreConfiguredEndpointUrls){let a;n.serviceConfiguredEndpoint?a=await n.serviceConfiguredEndpoint():a=await e(n.serviceId),a&&(n.endpoint=()=>Promise.resolve(U(a)),n.isCustomEndpoint=!0,o?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${a}`))}let s=await Ao(t,r,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let i=n.endpointProvider(s,o);if(n.isCustomEndpoint&&n.endpoint){let a=await n.endpoint();if(a?.headers){i.headers??={};for(let[f,u]of Object.entries(a.headers))i.headers[f]=Array.isArray(u)?u:[u]}}return i}}var Ao,Cr=c(()=>{Of();Rf();Nr();Ao=async(e,t,r)=>{let n={},o=t?.getEndpointParameterInstructions?.()||{};for(let[s,i]of Object.entries(o))switch(i.type){case"staticContextParams":n[s]=i.value;break;case"contextParams":n[s]=e[i.name];break;case"clientContextParams":case"builtInParams":n[s]=await Cf(i.name,s,r,i.type!=="builtInParams")();break;case"operationContextParams":n[s]=i.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(i))}return Object.keys(o).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await Io(n),n}});function rd(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}function Rr(e){let t=Or(e);return({config:r,instructions:n})=>(o,s)=>async i=>{r.isCustomEndpoint&&rd(s,"ENDPOINT_OVERRIDE","N");let a=await t(i.input,{getEndpointParameterInstructions(){return n}},{...r},s);s.endpointV2=a,s.authSchemes=a.properties?.authSchemes;let f=s.authSchemes?.[0];if(f){s.signing_region=f.signingRegion,s.signing_service=f.signingName;let d=J(s)?.selectedHttpAuthScheme?.httpAuthOption;d&&(d.signingProperties=Object.assign(d.signingProperties||{},{signing_region:f.signingRegion,signingRegion:f.signingRegion,signing_service:f.signingName,signingName:f.signingName,signingRegionSet:f.signingRegionSet},f.properties))}return o({...i})}}var No=c(()=>{T();Cr()});function _f(e){let t=Rr(e);return(r,n)=>({applyToStack:o=>{o.addRelativeTo(t({config:r,instructions:n}),Oo)}})}var nd,Oo,Co=c(()=>{No();nd={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},Oo={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:nd.name}});function vf(e){return t=>{let r=t.tls??!0,{endpoint:n,useDualstackEndpoint:o,useFipsEndpoint:s}=t,i=n!=null?async()=>U(await M(n)()):void 0,f=Object.assign(t,{endpoint:i,tls:r,isCustomEndpoint:!!n,useDualstackEndpoint:M(o??!1),useFipsEndpoint:M(s??!1),ignoreConfiguredEndpointUrls:!!t.ignoreConfiguredEndpointUrls}),u;return f.serviceConfiguredEndpoint=async()=>(t.serviceId&&!u&&(u=e(t.serviceId)),u),f}}var Mf=c(()=>{T();Nr()});var _r,Uf=c(()=>{_r=class e{nodes;root;conditions;results;constructor(t,r,n,o){this.nodes=t,this.root=r,this.conditions=n,this.results=o}static from(t,r,n,o){return new e(t,r,n,o)}}});var vr,$f=c(()=>{vr=class{capacity;data=new Map;parameters=[];constructor({size:t,params:r}){this.capacity=t??50,r&&(this.parameters=r)}get(t,r){let n=this.hash(t);if(n===!1)return r();if(!this.data.has(n)){if(this.data.size>this.capacity+10){let o=this.data.keys(),s=0;for(;;){let{value:i,done:a}=o.next();if(this.data.delete(i),a||++s>10)break}}this.data.set(n,r())}return this.data.get(n)}size(){return this.data.size}hash(t){let r="",{parameters:n}=this;if(n.length===0)return!1;for(let o of n){let s=String(t[o]??"");if(s.includes("|;"))return!1;r+=s+"|;"}return r}}});var w,Df=c(()=>{w=class extends Error{constructor(t){super(t),this.name="EndpointError"}}});var D=c(()=>{Df()});var j,Ff=c(()=>{j="endpoints"});function F(e){return typeof e!="object"||e==null?e:"ref"in e?`$${F(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(F).join(", ")})`:JSON.stringify(e,null,2)}var Pf=c(()=>{});var Rt=c(()=>{Ff();Pf()});var Mr,Ro=c(()=>{Mr={}});var _o,Lf=c(()=>{_o=(e,t)=>e===t});function vo(...e){for(let t of e)if(t!=null)return t}var kf=c(()=>{});var Bf,zf=c(()=>{D();Bf=e=>{let t=e.split("."),r=[];for(let n of t){let o=n.indexOf("[");if(o!==-1){if(n.indexOf("]")!==n.length-1)throw new w(`Path: '${e}' does not end with ']'`);let s=n.slice(o+1,-1);if(Number.isNaN(parseInt(s)))throw new w(`Invalid array index: '${s}' in path: '${e}'`);o!==0&&r.push(n.slice(0,o)),r.push(s)}else r.push(n)}return r}});var _t,Hf=c(()=>{D();zf();_t=(e,t)=>Bf(t).reduce((r,n)=>{if(typeof r!="object")throw new w(`Index '${n}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(r)){let o=parseInt(n);return r[o<0?r.length+o:o]}return r[n]},e)});var Mo,Vf=c(()=>{Mo=e=>e!=null});function Uo(e,t,r){return e?t:r}var Wf=c(()=>{});var $o,Gf=c(()=>{$o=e=>!e});var od,Ur,Do=c(()=>{od=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Ur=e=>od.test(e)||e.startsWith("[")&&e.endsWith("]")});var $r,Fo,Po,jf=c(()=>{$r=be(oe());Do();Fo={[$r.EndpointURLScheme.HTTP]:80,[$r.EndpointURLScheme.HTTPS]:443},Po=e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){let{hostname:l,port:p,protocol:g="",path:x="",query:h={}}=e,y=new URL(`${g}//${l}${p?`:${p}`:""}${x}`);return y.search=Object.entries(h).map(([b,E])=>`${b}=${E}`).join("&"),y}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let r=t.href,{host:n,hostname:o,pathname:s,protocol:i,search:a}=t;if(a)return null;let f=i.slice(0,-1);if(!Object.values($r.EndpointURLScheme).includes(f))return null;let u=Ur(o),d=r.includes(`${n}:${Fo[f]}`)||typeof e=="string"&&e.includes(`${n}:${Fo[f]}`),m=`${n}${d?`:${Fo[f]}`:""}`;return{scheme:f,authority:m,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:u}}});function Lo(e,t,r){if(r===1)return[e];if(e==="")return[""];let n=e.split(t);return r===0?n:n.slice(0,r-1).concat(n.slice(1).join(t))}var qf=c(()=>{});var ko,Jf=c(()=>{ko=(e,t)=>e===t});var Bo,Xf=c(()=>{Bo=(e,t,r,n)=>e==null||t>=r||e.length<r||/[^\u0000-\u007f]/.test(e)?null:n?e.substring(e.length-r,e.length-t):e.substring(t,r)});var zo,Kf=c(()=>{zo=e=>encodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var Ho=c(()=>{Lf();kf();Hf();Vf();T();Wf();Gf();jf();qf();Jf();Xf();Kf()});var Zf,Yf=c(()=>{Ho();Zf={booleanEquals:_o,coalesce:vo,getAttr:_t,isSet:Mo,isValidHostLabel:X,ite:Uo,not:$o,parseURL:Po,split:Lo,stringEquals:ko,substring:Bo,uriEncode:zo}});var Dr,Vo=c(()=>{Ho();Dr=(e,t)=>{let r=[],{referenceRecord:n,endpointParams:o}=t,s=0;for(;s<e.length;){let i=e.indexOf("{",s);if(i===-1){r.push(e.slice(s));break}r.push(e.slice(s,i));let a=e.indexOf("}",i);if(a===-1){r.push(e.slice(i));break}e[i+1]==="{"&&e[a+1]==="}"&&(r.push(e.slice(i+1,a)),s=a+2);let f=e.substring(i+1,a);if(f.includes("#")){let[u,d]=f.split("#");r.push(_t(n[u]??o[u],d))}else r.push(n[f]??o[f]);s=a+1}return r.join("")}});var Qf,eu=c(()=>{Qf=({ref:e},t)=>t.referenceRecord[e]??t.endpointParams[e]});var Z,Fr,tu,qe=c(()=>{D();Ro();Yf();Vo();eu();Z=(e,t,r)=>{if(typeof e=="string")return Dr(e,r);if(e.fn)return tu.callFunction(e,r);if(e.ref)return Qf(e,r);throw new w(`'${t}': ${String(e)} is not a string, function or reference.`)},Fr=({fn:e,argv:t},r)=>{let n=Array(t.length);for(let i=0;i<n.length;++i){let a=t[i];typeof a=="boolean"||typeof a=="number"?n[i]=a:n[i]=tu.evaluateExpression(a,"arg",r)}let o=e.indexOf(".");if(o!==-1){let a=Mr[e.slice(0,o)]?.[e.slice(o+1)];if(typeof a=="function")return a(...n)}let s=Zf[e];if(typeof s=="function")return s(...n);throw new Error(`function ${e} not loaded in endpointFunctions.`)},tu={evaluateExpression:Z,callFunction:Fr}});var ru=c(()=>{qe()});var Pr,Wo=c(()=>{Rt();D();ru();Pr=(e,t)=>{let{assign:r}=e;if(r&&r in t.referenceRecord)throw new w(`'${r}' is already defined in Reference Record.`);let n=Fr(e,t);t.logger?.debug?.(`${j} evaluateCondition: ${F(e)} = ${F(n)}`);let o=n===""?!0:!!n;return r!=null?{result:o,toAssign:{name:r,value:n}}:{result:o}}});var Lr,Go=c(()=>{D();qe();Lr=(e,t)=>Object.entries(e??{}).reduce((r,[n,o])=>(r[n]=o.map(s=>{let i=Z(s,"Header value entry",t);if(typeof i!="string")throw new w(`Header '${n}' value '${i}' is not a string`);return i}),r),{})});var vt,nu,ou,jo=c(()=>{D();Vo();vt=(e,t)=>Object.entries(e).reduce((r,[n,o])=>(r[n]=ou.getEndpointProperty(o,t),r),{}),nu=(e,t)=>{if(Array.isArray(e))return e.map(r=>nu(r,t));switch(typeof e){case"string":return Dr(e,t);case"object":if(e===null)throw new w(`Unexpected endpoint property: ${e}`);return ou.getEndpointProperties(e,t);case"boolean":return e;default:throw new w(`Unexpected endpoint property type: ${typeof e}`)}},ou={getEndpointProperty:nu,getEndpointProperties:vt}});var kr,qo=c(()=>{D();qe();kr=(e,t)=>{let r=Z(e,"Endpoint URL",t);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new w(`Endpoint URL must be a string, got ${typeof r}`)}});var Jo,su,iu=c(()=>{D();Wo();qe();Go();jo();qo();Jo=1e8,su=(e,t)=>{let{nodes:r,root:n,results:o,conditions:s}=e,i=n,a={},f={referenceRecord:a,endpointParams:t.endpointParams,logger:t.logger};for(;i!==1&&i!==-1&&i<Jo;){let u=3*(Math.abs(i)-1),[d,m,l]=[r[u],r[u+1],r[u+2]],[p,g,x]=s[d],h=Pr({fn:p,assign:x,argv:g},f);if(h.toAssign){let{name:y,value:b}=h.toAssign;a[y]=b}i=i>=0===h.result?m:l}if(i>=Jo){let u=o[i-Jo];if(u[0]===-1){let[,p]=u;throw new w(Z(p,"Error",f))}let[d,m,l]=u;return{url:kr(d,f),properties:vt(m,f),headers:Lr(l??{},f)}}throw new w("No matching endpoint.")}});var Je,Br=c(()=>{Rt();Wo();Je=(e=[],t)=>{let r={},n={...t,referenceRecord:{...t.referenceRecord}},o=!1;for(let s of e){let{result:i,toAssign:a}=Pr(s,n);if(!i)return{result:i};a&&(o=!0,r[a.name]=a.value,n.referenceRecord[a.name]=a.value,t.logger?.debug?.(`${j} assign: ${a.name} := ${F(a.value)}`))}return o?{result:!0,referenceRecord:r}:{result:!0}}});var au,cu=c(()=>{Rt();Br();Go();jo();qo();au=(e,t)=>{let{conditions:r,endpoint:n}=e,{result:o,referenceRecord:s}=Je(r,t);if(!o)return;let i=s?{...t,referenceRecord:{...t.referenceRecord,...s}}:t,{url:a,properties:f,headers:u}=n;t.logger?.debug?.(`${j} Resolving endpoint from template: ${F(n)}`);let d={url:kr(a,i)};return u!=null&&(d.headers=Lr(u,i)),f!=null&&(d.properties=vt(f,i)),d}});var fu,uu=c(()=>{D();Br();qe();fu=(e,t)=>{let{conditions:r,error:n}=e,{result:o,referenceRecord:s}=Je(r,t);if(!o)return;let i=s?{...t,referenceRecord:{...t.referenceRecord,...s}}:t;throw new w(Z(n,"Error",i))}});var zr,lu,Xo,mu=c(()=>{D();Br();cu();uu();zr=(e,t)=>{for(let r of e)if(r.type==="endpoint"){let n=au(r,t);if(n)return n}else if(r.type==="error")fu(r,t);else if(r.type==="tree"){let n=Xo.evaluateTreeRule(r,t);if(n)return n}else throw new w(`Unknown endpoint rule: ${r}`);throw new w("Rules evaluation failed")},lu=(e,t)=>{let{conditions:r,rules:n}=e,{result:o,referenceRecord:s}=Je(r,t);if(!o)return;let i=s?{...t,referenceRecord:{...t.referenceRecord,...s}}:t;return Xo.evaluateRules(n,i)},Xo={evaluateRules:zr,evaluateTreeRule:lu}});var du=c(()=>{mu()});var pu,hu=c(()=>{T();Rt();D();du();pu=(e,t)=>{let{endpointParams:r,logger:n}=t,{parameters:o,rules:s}=e;t.logger?.debug?.(`${j} Initial EndpointParams: ${F(r)}`);for(let a in o){if(!S(o,a))continue;let f=o[a],u=r[a];if(u==null&&f.default!=null){r[a]=f.default;continue}if(f.required&&u==null)throw new w(`Missing required parameter: '${a}'`)}let i=zr(s,{endpointParams:r,logger:n,referenceRecord:{}});return t.logger?.debug?.(`${j} Resolved endpoint: ${F(i)}`),i}});var gu,yu=c(()=>{gu=e=>{let{endpoint:t}=e;return t===void 0&&(e.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}),e}});var fd={};xe(fd,{BinaryDecisionDiagram:()=>_r,EndpointCache:()=>vr,EndpointError:()=>w,customEndpointFunctions:()=>Mr,decideEndpoint:()=>su,endpointMiddleware:()=>ad,endpointMiddlewareOptions:()=>Oo,getEndpointFromInstructions:()=>sd,getEndpointPlugin:()=>cd,isIpAddress:()=>Ur,isValidHostLabel:()=>X,middlewareEndpointToEndpointV1:()=>U,resolveEndpoint:()=>pu,resolveEndpointConfig:()=>id,resolveEndpointRequiredConfig:()=>gu,resolveParams:()=>Ao,toEndpointV1:()=>U});var sd,id,ad,cd,xu=c(()=>{Tf();Cr();No();Co();Mf();T();Uf();$f();iu();Do();T();Ro();hu();D();Cr();Nr();Co();yu();sd=Or(Ct),id=vf(Ct),ad=Rr(Ct),cd=_f(Ct)});var Hr,Ko=c(()=>{xu();Hr=(e,t)=>(r,n)=>async o=>{let s=e,i=n.endpointV2?async()=>U(n.endpointV2):s.endpoint;if(!i)throw new Error("No valid endpoint provider available.");let a=await t(o.input,{...e,endpoint:i});return r({...o,request:a})}});function bu(e,t,r){return{applyToStack:n=>{n.add(jt(e,r),Zo),n.add(Hr(e,t),Yo)}}}var Zo,Yo,wu=c(()=>{Rn();Ko();Zo={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Yo={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0}});import{createHash as ud,createHmac as ld}from"node:crypto";function Su(e,t){return Buffer.isBuffer(e)?e:typeof e=="string"?re(e,t):ArrayBuffer.isView(e)?L(e.buffer,e.byteOffset,e.byteLength):L(e)}var Vr,Eu=c(()=>{ne();On();Vr=class{algorithmIdentifier;secret;hash;constructor(t,r){this.algorithmIdentifier=t,this.secret=r,this.reset()}update(t,r){this.hash.update(_(Su(t,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?ld(this.algorithmIdentifier,Su(this.secret)):ud(this.algorithmIdentifier)}}});import{Readable as md}from"node:stream";var Xe,Qo=c(()=>{rn();Xe=class extends md{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:t,checksum:r,source:n,checksumSourceLocation:o,base64Encoder:s}){if(super(),typeof n.pipe!="function")throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);this.source=n,this.base64Encoder=s??st,this.expectedChecksum=t,this.checksum=r,this.checksumSourceLocation=o,this.source.on("data",this.onSourceData),this.source.on("end",this.onSourceEnd),this.source.on("error",this.onSourceError),this.source.on("close",this.onSourceClose),this.source.pause()}onSourceData=t=>{if(!this.destroyed){try{this.checksum.update(t)}catch(r){this.destroy(r);return}this.push(t)||this.source.pause()}};onSourceEnd=async()=>{if(!this.destroyed){try{let t=await this.checksum.digest(),r=this.base64Encoder(t);if(this.expectedChecksum!==r){this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${r}" in response header "${this.checksumSourceLocation}".`));return}}catch(t){this.destroy(t);return}this.push(null)}};onSourceError=t=>{this.destroy(t)};onSourceClose=()=>{!this.destroyed&&!this.source.readableEnded&&this.destroy(new Error("Connection lost or stream closed before all data was received."))};_read(t){this.source.resume()}_destroy(t,r){this.source?.removeListener("data",this.onSourceData),this.source?.removeListener("end",this.onSourceEnd),this.source?.removeListener("error",this.onSourceError),this.source?.removeListener("close",this.onSourceClose),this.source?.destroy(),r(t)}}});var N,de,B=c(()=>{N=e=>typeof ReadableStream=="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),de=e=>typeof Blob=="function"&&(e?.constructor?.name===Blob.name||e instanceof Blob)});var Tu,Iu=c(()=>{Tu=e=>new TextEncoder().encode(e)});var Au,e0,Nu,Wr,es,Ou,Cu=c(()=>{Au="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e0=Object.entries(Au).reduce((e,[t,r])=>(e[r]=Number(t),e),{}),Nu=Au.split(""),Wr=6,es=8,Ou=63});function Gr(e){let t;typeof e=="string"?t=Tu(e):t=e;let r=typeof t=="object"&&typeof t.length=="number",n=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let o="";for(let s=0;s<t.length;s+=3){let i=0,a=0;for(let u=s,d=Math.min(s+3,t.length);u<d;u++)i|=t[u]<<(d-u-1)*es,a+=es;let f=Math.ceil(a/Wr);i<<=f*Wr-a;for(let u=1;u<=f;u++){let d=(f-u)*Wr;o+=Nu[(i&Ou<<d)>>d]}o+="==".slice(0,4-f)}return o}var ts=c(()=>{Iu();Cu()});var dd,jr,Ru=c(()=>{dd=typeof ReadableStream=="function"?ReadableStream:function(){},jr=class extends dd{}});var _u,vu=c(()=>{ts();B();Ru();_u=({expectedChecksum:e,checksum:t,source:r,checksumSourceLocation:n,base64Encoder:o})=>{if(!N(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let s=o??Gr;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let i=new TransformStream({start(){},async transform(f,u){t.update(f),u.enqueue(f)},async flush(f){let u=await t.digest(),d=s(u);if(e!==d){let m=new Error(`Checksum mismatch: expected "${e}" but received "${d}" in response header "${n}".`);f.error(m)}else f.terminate()}});r.pipeThrough(i);let a=i.readable;return Object.setPrototypeOf(a,jr.prototype),a}});function Mu(e){return typeof ReadableStream=="function"&&N(e.source)?_u(e):new Xe(e)}var Uu=c(()=>{B();Qo();vu()});var Oe,rs=c(()=>{Oe=class{allocByteArray;byteLength=0;byteArrays=[];constructor(t){this.allocByteArray=t}push(t){this.byteArrays.push(t),this.byteLength+=t.byteLength}flush(){if(this.byteArrays.length===1){let n=this.byteArrays[0];return this.reset(),n}let t=this.allocByteArray(this.byteLength),r=0;for(let n=0;n<this.byteArrays.length;++n){let o=this.byteArrays[n];t.set(o,r),r+=o.byteLength}return this.reset(),t}reset(){this.byteArrays=[],this.byteLength=0}}});function $u(e,t,r){let n=e.getReader(),o=!1,s=0,i=["",new Oe(u=>new Uint8Array(u))],a=-1,f=async u=>{let{value:d,done:m}=await n.read(),l=d;if(m){if(a!==-1){let p=Ce(i,a);Y(p)>0&&u.enqueue(p)}u.close()}else{let p=os(l,!1);if(a!==p&&(a>=0&&u.enqueue(Ce(i,a)),a=p),a===-1){u.enqueue(l);return}let g=Y(l);s+=g;let x=Y(i[a]);if(g>=t&&x===0)u.enqueue(l);else{let h=ns(i,a,l);!o&&s>t*2&&(o=!0,r?.warn(`@smithy/util-stream - stream chunk size ${g} is below threshold of ${t}, automatically buffering.`)),h>=t?u.enqueue(Ce(i,a)):await f(u)}}};return new ReadableStream({pull:f})}function ns(e,t,r){switch(t){case 0:return e[0]+=r,Y(e[0]);case 1:case 2:return e[t].push(r),Y(e[t])}}function Ce(e,t){switch(t){case 0:let r=e[0];return e[0]="",r;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function Y(e){return e?.byteLength??e?.length??0}function os(e,t=!0){return t&&typeof Buffer<"u"&&e instanceof Buffer?2:e instanceof Uint8Array?1:typeof e=="string"?0:-1}var Du=c(()=>{rs()});import{Readable as pd}from"node:stream";function Fu(e,t,r){if(N(e))return $u(e,t,r);let n=new pd({read(){}}),o=!1,s=0,i=["",new Oe(f=>new Uint8Array(f)),new Oe(f=>Buffer.from(new Uint8Array(f)))],a=-1;return e.on("data",f=>{let u=os(f,!0);if(a!==u&&(a>=0&&n.push(Ce(i,a)),a=u),a===-1){n.push(f);return}let d=Y(f);s+=d;let m=Y(i[a]);if(d>=t&&m===0)n.push(f);else{let l=ns(i,a,f);!o&&s>t*2&&(o=!0,r?.warn(`@smithy/util-stream - stream chunk size ${d} is below threshold of ${t}, automatically buffering.`)),l>=t&&n.push(Ce(i,a))}}),e.on("end",()=>{if(a!==-1){let f=Ce(i,a);Y(f)>0&&n.push(f)}n.push(null)}),n}var Pu=c(()=>{rs();Du();B()});var Lu,ku=c(()=>{Lu=(e,t)=>{let{base64Encoder:r,bodyLengthChecker:n,checksumAlgorithmFn:o,checksumLocationName:s,streamHasher:i}=t,a=r!==void 0&&n!==void 0&&o!==void 0&&s!==void 0&&i!==void 0,f=a?i(o,e):void 0,u=e.getReader();return new ReadableStream({async pull(d){let{value:m,done:l}=await u.read();if(l){if(d.enqueue(`0\r
|
|
9
|
+
`),a){let p=r(await f);d.enqueue(`${s}:${p}\r
|
|
10
|
+
`),d.enqueue(`\r
|
|
11
|
+
`)}d.close()}else d.enqueue(`${(n(m)||0).toString(16)}\r
|
|
12
|
+
${m}\r
|
|
13
|
+
`)}})}});import{Readable as hd}from"node:stream";function Bu(e,t){let r=e,n=e;if(N(n))return Lu(n,t);let{base64Encoder:o,bodyLengthChecker:s,checksumAlgorithmFn:i,checksumLocationName:a,streamHasher:f}=t,u=o!==void 0&&i!==void 0&&a!==void 0&&f!==void 0,d=u?f(i,r):void 0,m=new hd({read:()=>{}});return r.on("data",l=>{let p=s(l)||0;p!==0&&(m.push(`${p.toString(16)}\r
|
|
14
|
+
`),m.push(l),m.push(`\r
|
|
15
|
+
`))}),r.on("end",async()=>{if(m.push(`0\r
|
|
16
|
+
`),u){let l=o(await d);m.push(`${a}:${l}\r
|
|
17
|
+
`),m.push(`\r
|
|
18
|
+
`)}m.push(null)}),m}var zu=c(()=>{ku();B()});async function Hu(e,t){let r=0,n=[],o=e.getReader(),s=!1;for(;!s;){let{done:f,value:u}=await o.read();if(u&&(n.push(u),r+=u?.byteLength??0),r>=t)break;s=f}o.releaseLock();let i=new Uint8Array(Math.min(t,r)),a=0;for(let f of n){if(f.byteLength>i.byteLength-a){i.set(f.subarray(0,i.byteLength-a),a);break}else i.set(f,a);a+=f.length}return i}var Vu=c(()=>{});import{Writable as gd}from"node:stream";var Wu,ss,Gu=c(()=>{dt();Vu();B();Wu=(e,t)=>N(e)?Hu(e,t):new Promise((r,n)=>{let o=new ss;o.limit=t,e.pipe(o),e.on("error",s=>{o.end(),n(s)}),o.on("error",n),o.on("finish",function(){let s=H(this.buffers);r(s)})}),ss=class extends gd{buffers=[];limit=1/0;bytesBuffered=0;_write(t,r,n){if(this.buffers.push(t),this.bytesBuffered+=t.byteLength??0,this.bytesBuffered>=this.limit){let o=this.bytesBuffered-this.limit,s=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=s.subarray(0,s.byteLength-o),this.emit("finish")}n()}}});var ju,qu=c(()=>{ju=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)}});async function is(e){return e.arrayBuffer().then(t=>new Uint8Array(t))}async function as(e){let t=[],r=e.getReader(),n=0;for(;;){let{done:o,value:s}=await r.read();if(s&&(t.push(s),n+=s.length),o)break}return H(t,n)}var Ju,cs=c(()=>{dt();B();Ju=async e=>de(e)?is(e):as(e)});var Xu,Zu,Ku,Yu=c(()=>{ts();Nn();qu();cs();B();Xu="The stream has already been transformed.",Zu=e=>{if(!Ku(e)&&!N(e)){let o=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${o}`)}let t=!1,r=async()=>{if(t)throw new Error(Xu);return t=!0,await Ju(e)},n=o=>{if(typeof o.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
|
|
19
|
+
If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return o.stream()};return Object.assign(e,{transformToByteArray:r,transformToString:async o=>{let s=await r();if(o==="base64")return Gr(s);if(o==="hex")return P(s);if(o===void 0||o==="utf8"||o==="utf-8")return ju(s);if(typeof TextDecoder=="function")return new TextDecoder(o).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(Xu);if(t=!0,Ku(e))return n(e);if(N(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},Ku=e=>typeof Blob=="function"&&e instanceof Blob});import{Writable as yd}from"node:stream";var qr,fs,us=c(()=>{dt();cs();B();qr=e=>de(e)?is(e):N(e)?as(e):new Promise((t,r)=>{let n=new fs,o=e;o.pipe(n),o.on("error",s=>{n.end(),r(s)}),n.on("error",r),n.on("finish",function(){let s=H(this.bufferedBytes);t(s)})}),fs=class extends yd{bufferedBytes=[];_write(t,r,n){this.bufferedBytes.push(t),n()}}});import{Readable as ls}from"node:stream";var Qu,el,tl=c(()=>{ne();Yu();us();Qu="The stream has already been transformed.",el=e=>{if(!(e instanceof ls))try{return Zu(e)}catch{let o=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${o}`)}let t=!1,r=async()=>{if(t)throw new Error(Qu);return t=!0,await qr(e)};return Object.assign(e,{transformToByteArray:r,transformToString:async n=>{let o=await r();return n===void 0||Buffer.isEncoding(n)?L(o.buffer,o.byteOffset,o.byteLength).toString(n):new TextDecoder(n).decode(o)},transformToWebStream:()=>{if(t)throw new Error(Qu);if(e.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof ls.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return t=!0,ls.toWeb(e)}})}});async function rl(e){return typeof e.stream=="function"&&(e=e.stream()),e.tee()}var nl=c(()=>{});import{PassThrough as ol}from"node:stream";async function sl(e){if(N(e)||de(e))return rl(e);let t=new ol,r=new ol;return e.pipe(t),e.pipe(r),[t,r]}var il=c(()=>{nl();B()});var Sd={};xe(Sd,{ChecksumStream:()=>Xe,Hash:()=>Vr,LazyJsonString:()=>ie,NumericValue:()=>mt,Uint8ArrayBlobAdapter:()=>ms,_parseEpochTimestamp:()=>wi,_parseRfc3339DateTimeWithOffset:()=>Si,_parseRfc7231DateTime:()=>Ei,calculateBodyLength:()=>Mi,concatBytes:()=>H,copyDocumentWithTransform:()=>zs,createBufferedReadable:()=>Fu,createChecksumStream:()=>Mu,dateToUtcString:()=>fi,deserializerMiddleware:()=>jt,deserializerMiddlewareOption:()=>Zo,expectBoolean:()=>Zs,expectByte:()=>Bt,expectFloat32:()=>ft,expectInt:()=>Ys,expectInt32:()=>Lt,expectLong:()=>$e,expectNonNull:()=>Qs,expectNumber:()=>Ue,expectObject:()=>yn,expectShort:()=>kt,expectString:()=>ei,expectUnion:()=>ti,fromArrayBuffer:()=>L,fromBase64:()=>tn,fromHex:()=>Gt,fromString:()=>re,fromUtf8:()=>q,generateIdempotencyToken:()=>wd,getAwsChunkedEncodingStream:()=>Bu,getSerdePlugin:()=>bu,handleFloat:()=>ni,hasOwn:()=>S,headStream:()=>Wu,isArrayBuffer:()=>Dt,isBlob:()=>de,isReadableStream:()=>N,limitedParseDouble:()=>Vt,limitedParseFloat:()=>oi,limitedParseFloat32:()=>si,logger:()=>De,nv:()=>Ri,parseBoolean:()=>Ks,parseEpochTimestamp:()=>di,parseRfc3339DateTime:()=>ui,parseRfc3339DateTimeWithOffset:()=>li,parseRfc7231DateTime:()=>mi,quoteHeader:()=>gi,sdkStreamMixin:()=>el,serializerMiddleware:()=>Hr,serializerMiddlewareOption:()=>Yo,splitEvery:()=>Ii,splitHeader:()=>Ni,splitStream:()=>sl,streamCollector:()=>qr,strictParseByte:()=>Wt,strictParseDouble:()=>ut,strictParseFloat:()=>ri,strictParseFloat32:()=>Ht,strictParseInt:()=>ai,strictParseInt32:()=>ci,strictParseLong:()=>xn,strictParseShort:()=>se,toBase64:()=>st,toHex:()=>P,toUint8Array:()=>_,toUtf8:()=>it,v4:()=>al});import{getRandomValues as xd}from"node:crypto";var ms,bd,al,wd,Q=c(()=>{Ds();rn();Ps();Ft();Ls();Bs();Hs();pi();hi();bn();yi();Ti();Ai();Oi();_i();Nn();Ui();On();dt();ne();en();Rn();wu();Ko();Eu();Qo();Uu();Pu();zu();Gu();tl();il();B();us();T();ms=class extends Fs(it,q,st,tn){},bd=xd,al=ks(bd),wd=al});import{Writable as Ed}from"node:stream";var Ke,ds=c(()=>{Q();Ke=class extends Ed{hash;constructor(t,r){super(r),this.hash=t}_write(t,r,n){try{this.hash.update(_(t))}catch(o){return n(o)}n()}}});import{createReadStream as Td}from"node:fs";var cl,Id,fl=c(()=>{ds();cl=(e,t)=>new Promise((r,n)=>{if(!Id(t)){n(new Error("Unable to calculate hash for non-file streams."));return}let o=Td(t.path,{start:t.start,end:t.end}),s=new e,i=new Ke(s);o.pipe(i),o.on("error",a=>{i.end(),n(a)}),i.on("error",n),i.on("finish",function(){s.digest().then(r).catch(n)})}),Id=e=>typeof e.path=="string"});var ul,ll=c(()=>{ds();ul=(e,t)=>{if(t.readableFlowing!==null)throw new Error("Unable to calculate hash for flowing readable stream");let r=new e,n=new Ke(r);return t.pipe(n),new Promise((o,s)=>{t.on("error",i=>{n.end(),s(i)}),n.on("error",s),n.on("finish",()=>{r.digest().then(o).catch(s)})})}});function ps(e,t){let r=e[0],n=e[1],o=e[2],s=e[3];for(let i=0;i<64;++i){let a,f;i<16?(a=n&o|~n&s,f=i):i<32?(a=s&n|o&~s,f=(5*i+1)%16):i<48?(a=n^o^s,f=(3*i+5)%16):(a=o^(n|~s),f=7*i%16);let u=t.getUint32(f*4,!0),d=s;s=o,o=n;let m=Ad[(i>>4)*4+(i&3)],l=(r+a&pe)+(u+Nd[i]&pe)&pe;n=n+((l<<m|l>>>32-m)>>>0)&pe,r=d}e[0]=e[0]+r&pe,e[1]=e[1]+n&pe,e[2]=e[2]+o&pe,e[3]=e[3]+s&pe}var Ze,ml,pe,Ad,Nd,hs=c(()=>{Q();Ze=class{digestLength=16;state=Uint32Array.from(ml);writeBuffer=new DataView(new ArrayBuffer(64));bufferLength=0;bytesHashed=0;update(t){let r=_(t),n=0,o=r.byteLength;for(this.bytesHashed+=o;o>0;)this.writeBuffer.setUint8(this.bufferLength++,r[n++]),--o,this.bufferLength===64&&(ps(this.state,this.writeBuffer),this.bufferLength=0)}async digest(){let t=Uint32Array.from(this.state),r=new DataView(this.writeBuffer.buffer.slice(0)),n=this.bufferLength,o=this.bytesHashed*8;if(r.setUint8(n++,128),this.bufferLength%64>=56){for(let a=n;a<64;++a)r.setUint8(a,0);ps(t,r),n=0}for(let a=n;a<56;++a)r.setUint8(a,0);r.setUint32(56,o>>>0,!0),r.setUint32(60,Math.floor(o/2**32),!0),ps(t,r);let s=new Uint8Array(16),i=new DataView(s.buffer);for(let a=0;a<4;++a)i.setUint32(a*4,t[a],!0);return s}reset(){this.state.set(ml),this.writeBuffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0}},ml=[1732584193,4023233417,2562383102,271733878],pe=4294967295,Ad=Uint8Array.of(7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21),Nd=Array.from({length:64},(e,t)=>Math.abs(Math.sin(t+1))*2**32>>>0)});import{createHash as gs}from"node:crypto";function Cd(){return class{digestLength=16;hash=gs("md5");update(t){this.hash.update(_(t))}async digest(){let t=this.hash.copy().digest();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}reset(){this.hash=gs("md5")}}}var Od,ys,dl=c(()=>{Q();hs();Od=(()=>{try{return gs("md5"),!0}catch{return!1}})(),ys=Od?Cd():Ze});var pl,xs,Ye,bs=c(()=>{pl=new Uint32Array(256);for(let e=0;e<256;++e){let t=e;for(let r=0;r<8;++r)t=t&1?3988292384^t>>>1:t>>>1;pl[e]=t>>>0}xs=4294967295,Ye=class{digestLength=4;checksum=xs;update(t){for(let r=0;r<t.length;++r)this.checksum=this.checksum>>>8^pl[(this.checksum^t[r])&255]}digestSync(){return(this.checksum^xs)>>>0}async digest(){let t=this.digestSync(),r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,t,!1),r}reset(){this.checksum=xs}}});import*as ws from"node:zlib";function Rd(e){return class{digestLength=4;value=0;update(r){this.value=e(r,this.value)}digestSync(){return this.value>>>0}async digest(){let r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,this.digestSync(),!1),r}reset(){this.value=0}}}var hl,Re,gl=c(()=>{bs();hl=typeof ws.crc32=="function"?ws.crc32:void 0,Re=hl?Rd(hl):Ye});var C,yl,_d,ee,xl,vd,Jr=c(()=>{Q();C=64,yl=32,_d=2**53-1,ee=class e{digestLength=yl;state=Int32Array.from(xl);w;buffer=new Uint8Array(64);bufferLength=0;bytesHashed=0;finished=!1;inner;outer;constructor(t){if(t){let r=e.normalizeKey(t);this.inner=new e,this.outer=new e;let{inner:n,outer:o}=this,s=new Uint8Array(C*2);for(let i=0;i<C;++i)s[i]=54^r[i],s[i+C]=92^r[i];n.update(s.subarray(0,C)),o.update(s.subarray(C))}}update(t){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.inner){this.inner.update(t);return}let r=_(t),n=0,{byteLength:o}=r;if(this.bytesHashed+=o,this.bytesHashed*8>_d)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;o>0;)this.buffer[this.bufferLength++]=r[n++],o--,this.bufferLength===C&&(this.hashBuffer(),this.bufferLength=0)}async digest(){let{inner:t,outer:r}=this;if(t&&r){if(this.finished)throw new Error("Attempted to digest an already finished HMAC.");this.finished=!0;let n=t.digestSync();return r.update(n),r.digestSync()}return this.digestSync()}reset(){this.state=Int32Array.from(xl),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0}digestSync(){let t=this.state.slice(),r=this.buffer.slice(),n=this.bufferLength,o=this.bytesHashed*8,s=new DataView(r.buffer,r.byteOffset,r.byteLength);if(s.setUint8(n++,128),(n-1)%C>=C-8){for(let a=n;a<C;++a)s.setUint8(a,0);this.hashBufferWith(t,r),n=0}for(let a=n;a<C-8;++a)s.setUint8(a,0);s.setUint32(C-8,Math.floor(o/4294967296),!1),s.setUint32(C-4,o,!1),this.hashBufferWith(t,r);let i=new Uint8Array(yl);for(let a=0;a<8;++a)i[a*4]=t[a]>>>24&255,i[a*4+1]=t[a]>>>16&255,i[a*4+2]=t[a]>>>8&255,i[a*4+3]=t[a]>>>0&255;return i}static normalizeKey(t){let r=_(t);if(r.byteLength>C){let n=new e;n.update(r);let o=n.digestSync(),s=new Uint8Array(C);return s.set(o),s}if(r.byteLength<C){let n=new Uint8Array(C);return n.set(r),n}return r}hashBuffer(){this.hashBufferWith(this.state,this.buffer)}hashBufferWith(t,r){let n=this.w??=new Int32Array(64),o=t[0],s=t[1],i=t[2],a=t[3],f=t[4],u=t[5],d=t[6],m=t[7];for(let l=0;l<C;++l){if(l<16)n[l]=(r[l*4]&255)<<24|(r[l*4+1]&255)<<16|(r[l*4+2]&255)<<8|r[l*4+3]&255;else{let x=n[l-2],h=(x>>>17|x<<15)^(x>>>19|x<<13)^x>>>10;x=n[l-15];let y=(x>>>7|x<<25)^(x>>>18|x<<14)^x>>>3;n[l]=(h+n[l-7]|0)+(y+n[l-16]|0)}let p=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&u^~f&d)|0)+(m+(vd[l]+n[l]|0)|0)|0,g=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&s^o&i^s&i)|0;m=d,d=u,u=f,f=a+p|0,a=i,i=s,s=o,o=p+g|0}t[0]+=o,t[1]+=s,t[2]+=i,t[3]+=a,t[4]+=f,t[5]+=u,t[6]+=d,t[7]+=m}},xl=new Int32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),vd=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298])});import{createHash as bl,createHmac as Md}from"node:crypto";function $d(){return class{digestLength=32;secret;hash;isHmac;finished=!1;constructor(t){this.secret=t,this.isHmac=!!t,this.hash=this.createHash()}update(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");this.hash.update(t)}async digest(){let t;return this.isHmac?(this.finished=!0,t=this.hash.digest()):t=this.hash.copy().digest(),new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}reset(){this.hash=this.createHash(),this.finished=!1}createHash(){return this.secret?Md("sha256",Dd(this.secret)):bl("sha256")}}}function Dd(e){return typeof e=="string"?e:ArrayBuffer.isView(e)?Buffer.from(e.buffer,e.byteOffset,e.byteLength):Buffer.from(e)}var Ud,Ss,wl=c(()=>{Jr();Ud=(()=>{try{return bl("sha256"),!0}catch{return!1}})(),Ss=Ud?$d():ee});var Fd,Pd,Ld,Xr,kd,Kr,Sl=c(()=>{Q();Jr();({digest:Fd,sign:Pd,importKey:Ld}=globalThis?.crypto?.subtle??{}),Xr=typeof Fd=="function"&&typeof Pd=="function"&&typeof Ld=="function"?globalThis.crypto.subtle:void 0,kd=8*1024*1024,Kr=class{digestLength=32;secret;pending=[];pendingBytes=0;fallback;finished=!1;constructor(t){t&&(this.secret=_(t))}update(t){if(this.finished)throw new Error("Attempted to update an already finished HMAC.");if(this.fallback){this.fallback.update(t);return}this.pending.push(t.slice()),this.pendingBytes+=t.byteLength,this.pendingBytes>=kd&&this.switchToFallback()}async digest(){if(this.fallback)return this.fallback.digest();if(this.secret&&this.finished)throw new Error("Attempted to digest an already finished HMAC.");let t=H(this.pending);if(Xr){if(this.secret){this.finished=!0;let o=await Xr.importKey("raw",this.secret,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),s=await Xr.sign("HMAC",o,t);return new Uint8Array(s)}let n=await Xr.digest("SHA-256",t);return new Uint8Array(n)}let r=new ee(this.secret);return r.update(t),r.digest()}reset(){this.pending=[],this.pendingBytes=0,this.fallback=void 0,this.finished=!1}switchToFallback(){let t=new ee(this.secret);for(let r of this.pending)t.update(r);this.fallback=t,this.pending=[],this.pendingBytes=0}}});var Bd={};xe(Bd,{Crc32:()=>Re,Crc32Js:()=>Ye,Crc32Node:()=>Re,Md5:()=>ys,Md5Js:()=>Ze,Md5Node:()=>ys,Sha256:()=>Ss,Sha256Js:()=>ee,Sha256Node:()=>Ss,Sha256WebCrypto:()=>Kr,blobHasher:()=>Us,blobReader:()=>$t,fileStreamHasher:()=>cl,readableStreamHasher:()=>ul});var Es=c(()=>{$s();fl();ll();hs();dl();bs();gl();Jr();wl();Sl();Qr()});function El(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}var he,Ts=c(()=>{Q();he=class e{bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(t));n>-1&&o>0;n--,o/=256)r[n]=o;return t<0&&El(r),new e(r)}valueOf(){let t=this.bytes.slice(0),r=t[0]&128;return r&&El(t),parseInt(P(t),16)*(r?-1:1)}toString(){return String(this.valueOf())}}});var Qe,Tl,Il,zd,Hd,Vd,Wd,Gd,jd,qd,Jd,Xd,Is=c(()=>{T();Q();Ts();Qe=class{toUtf8;fromUtf8;constructor(t,r){this.toUtf8=t,this.fromUtf8=r}format(t){let r=[];for(let s in t){if(!S(t,s))continue;let i=this.fromUtf8(s);r.push(Uint8Array.from([i.byteLength]),i,this.formatHeaderValue(t[s]))}let n=new Uint8Array(r.reduce((s,i)=>s+i.byteLength,0)),o=0;for(let s of r)n.set(s,o),o+=s.byteLength;return n}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,t.value,!1),new Uint8Array(r.buffer);case"integer":let n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,t.value,!1),new Uint8Array(n.buffer);case"long":let o=new Uint8Array(9);return o[0]=5,o.set(t.value.bytes,1),o;case"binary":let s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);let i=new Uint8Array(s.buffer);return i.set(t.value,3),i;case"string":let a=this.fromUtf8(t.value),f=new DataView(new ArrayBuffer(3+a.byteLength));f.setUint8(0,7),f.setUint16(1,a.byteLength,!1);let u=new Uint8Array(f.buffer);return u.set(a,3),u;case"timestamp":let d=new Uint8Array(9);return d[0]=8,d.set(he.fromNumber(t.value.valueOf()).bytes,1),d;case"uuid":if(!Xd.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);let m=new Uint8Array(17);return m[0]=9,m.set(Gt(t.value.replace(/-/g,"")),1),m}}parse(t){let r={},n=0;for(;n<t.byteLength;){let o=t.getUint8(n++),s=this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+n,o));switch(n+=o,t.getUint8(n++)){case 0:r[s]={type:Il,value:!0};break;case 1:r[s]={type:Il,value:!1};break;case 2:r[s]={type:zd,value:t.getInt8(n++)};break;case 3:r[s]={type:Hd,value:t.getInt16(n,!1)},n+=2;break;case 4:r[s]={type:Vd,value:t.getInt32(n,!1)},n+=4;break;case 5:r[s]={type:Wd,value:new he(new Uint8Array(t.buffer,t.byteOffset+n,8))},n+=8;break;case 6:let i=t.getUint16(n,!1);n+=2,r[s]={type:Gd,value:new Uint8Array(t.buffer,t.byteOffset+n,i)},n+=i;break;case 7:let a=t.getUint16(n,!1);n+=2,r[s]={type:jd,value:this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+n,a))},n+=a;break;case 8:r[s]={type:qd,value:new Date(new he(new Uint8Array(t.buffer,t.byteOffset+n,8)).valueOf())},n+=8;break;case 9:let f=new Uint8Array(t.buffer,t.byteOffset+n,16);n+=16,r[s]={type:Jd,value:`${P(f.subarray(0,4))}-${P(f.subarray(4,6))}-${P(f.subarray(6,8))}-${P(f.subarray(8,10))}-${P(f.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return r}};(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"})(Tl||(Tl={}));Il="boolean",zd="byte",Hd="short",Vd="integer",Wd="long",Gd="binary",jd="string",qd="timestamp",Jd="uuid",Xd=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/});function Nl({byteLength:e,byteOffset:t,buffer:r}){if(e<Kd)throw new Error("Provided message too short to accommodate event stream message overhead");let n=new DataView(r,t,e),o=n.getUint32(0,!1);if(e!==o)throw new Error("Reported message length does not match received message length");let s=n.getUint32(Al,!1),i=n.getUint32(ge,!1),a=n.getUint32(e-_e,!1),f=new Re;if(f.update(new Uint8Array(r,t,ge)),i!==f.digestSync())throw new Error(`The prelude checksum specified in the message (${i}) does not match the calculated CRC32 checksum (${f.digestSync()})`);if(f.update(new Uint8Array(r,t+ge,e-(ge+_e))),a!==f.digestSync())throw new Error(`The message checksum (${f.digestSync()}) did not match the expected value of ${a}`);return{headers:new DataView(r,t+ge+_e,s),body:new Uint8Array(r,t+ge+_e+s,o-s-(ge+_e+_e))}}var Al,ge,_e,Kd,Ol=c(()=>{Es();Al=4,ge=Al*2,_e=4,Kd=ge+_e*2});var et,As=c(()=>{Es();Is();Ol();et=class{headerMarshaller;messageBuffer;isEndOfStream;constructor(t,r){this.headerMarshaller=new Qe(t,r),this.messageBuffer=[],this.isEndOfStream=!1}feed(t){this.messageBuffer.push(this.decode(t))}endOfStream(){this.isEndOfStream=!0}getMessage(){let t=this.messageBuffer.pop(),r=this.isEndOfStream;return{getMessage(){return t},isEndOfStream(){return r}}}getAvailableMessages(){let t=this.messageBuffer;this.messageBuffer=[];let r=this.isEndOfStream;return{getMessages(){return t},isEndOfStream(){return r}}}encode({headers:t,body:r}){let n=this.headerMarshaller.format(t),o=n.byteLength+r.byteLength+16,s=new Uint8Array(o),i=new DataView(s.buffer,s.byteOffset,s.byteLength),a=new Re;return i.setUint32(0,o,!1),i.setUint32(4,n.byteLength,!1),a.update(s.subarray(0,8)),i.setUint32(8,a.digestSync(),!1),s.set(n,12),s.set(r,n.byteLength+12),a.update(s.subarray(8,o-4)),i.setUint32(o-4,a.digestSync(),!1),s}decode(t){let{headers:r,body:n}=Nl(t);return{headers:this.headerMarshaller.parse(r),body:n}}formatHeaders(t){return this.headerMarshaller.format(t)}}});var tt,Ns=c(()=>{tt=class{options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let t of this.options.inputStream)yield this.options.decoder.decode(t)}}});var rt,Os=c(()=>{rt=class{options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let t of this.options.messageStream)yield this.options.encoder.encode(t);this.options.includeEndFrame&&(yield new Uint8Array(0))}}});var nt,Cs=c(()=>{nt=class{options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let t of this.options.messageStream){let r=await this.options.deserializer(t);r!==void 0&&(yield r)}}}});var ot,Rs=c(()=>{ot=class{options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let t of this.options.inputStream)yield this.options.serializer(t)}}});function Zr(e){let t=0,r=0,n=null,o=null,s=a=>{if(typeof a!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+a);t=a,r=4,n=new Uint8Array(a),new DataView(n.buffer).setUint32(0,a,!1)},i=async function*(){let a=e[Symbol.asyncIterator]();for(;;){let{value:f,done:u}=await a.next();if(u){if(t)if(t===r)yield n;else throw new Error("Truncated event message received.");else return;return}let d=f.length,m=0;for(;m<d;){if(!n){let p=d-m;o||(o=new Uint8Array(4));let g=Math.min(4-r,p);if(o.set(f.slice(m,m+g),r),r+=g,m+=g,r<4)break;s(new DataView(o.buffer).getUint32(0,!1)),o=null}let l=Math.min(t-r,d-m);n.set(f.slice(m,m+l),r),r+=l,m+=l,t&&t===r&&(yield n,n=null,t=0,r=0)}}};return{[Symbol.asyncIterator]:i}}var _s=c(()=>{});function Cl(e,t){let r=Mt(t.deserializer,t.toUtf8);return{[Symbol.asyncIterator]:async function*(){for await(let n of e){let o=t.eventStreamCodec.decode(n),s=await r(o);s!==void 0&&(yield s)}}}}function Mt(e,t){return async function(r){let{value:n}=r.headers[":message-type"];if(n==="error"){let o=new Error(r.headers[":error-message"].value||"UnknownError");throw o.name=r.headers[":error-code"].value,o}else if(n==="exception"){let o=r.headers[":exception-type"].value,s={[o]:r},i=await e(s);if(i.$unknown){let a=new Error(t(r.body));throw a.name=o,a}throw i[o]}else if(n==="event"){let o={[r.headers[":event-type"].value]:r},s=await e(o);return s.$unknown?void 0:s}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}var vs=c(()=>{});var ve,Rl,Ms=c(()=>{As();Ns();Os();Cs();Rs();_s();vs();ve=class{eventStreamCodec;utfEncoder;constructor({utf8Encoder:t,utf8Decoder:r}){this.eventStreamCodec=new et(t,r),this.utfEncoder=t}deserialize(t,r){let n=Zr(t);return new nt({messageStream:new tt({inputStream:n,decoder:this.eventStreamCodec}),deserializer:Mt(r,this.utfEncoder)})}serialize(t,r){return new rt({messageStream:new ot({inputStream:t,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},Rl=e=>new ve(e)});import{Readable as Zd}from"node:stream";async function*Yd(e){let t=!1,r=!1,n=new Array;for(e.on("error",o=>{if(t||(t=!0),o)throw o}),e.on("data",o=>{n.push(o)}),e.on("end",()=>{t=!0});!r;){let o=await new Promise(s=>setTimeout(()=>s(n.shift()),0));o&&(yield o),r=t&&n.length===0}}var Ut,_l,vl=c(()=>{Ms();Ut=class{universalMarshaller;constructor({utf8Encoder:t,utf8Decoder:r}){this.universalMarshaller=new ve({utf8Decoder:r,utf8Encoder:t})}deserialize(t,r){let n=typeof t[Symbol.asyncIterator]=="function"?t:Yd(t);return this.universalMarshaller.deserialize(n,r)}serialize(t,r){return Zd.from(this.universalMarshaller.serialize(t,r))}},_l=e=>new Ut(e)});var Ml,Ul,$l=c(()=>{Ml=e=>({[Symbol.asyncIterator]:async function*(){let t=e.getReader();try{for(;;){let{done:r,value:n}=await t.read();if(r)return;yield n}}finally{t.releaseLock()}}}),Ul=e=>{let t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(r){let{done:n,value:o}=await t.next();if(n)return r.close();r.enqueue(o)}})}});var Dl,Fl=c(()=>{Dl=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)})});var Yr,Pl=c(()=>{T();eo();Q();Yr=class{marshaller;serializer;deserializer;serdeContext;defaultContentType;compositeErrorRegistry;constructor({marshaller:t,serializer:r,deserializer:n,serdeContext:o,defaultContentType:s,compositeErrorRegistry:i}){this.marshaller=t,this.serializer=r,this.deserializer=n,this.serdeContext=o,this.defaultContentType=s,this.compositeErrorRegistry=i}async serializeEventStream({eventStream:t,requestSchema:r,initialRequest:n,initialMessageType:o}){let s=this.marshaller,i=r.getEventStreamMember(),a=r.getMemberSchema(i),f=this.serializer,u=this.defaultContentType,d=Symbol("initialRequestMarker"),m={async*[Symbol.asyncIterator](){if(n){let l={":event-type":{type:"string",value:o??"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u}};f.write(r,n);let p=f.flush();yield{[d]:!0,headers:l,body:p}}for await(let l of t)yield l}};return s.serialize(m,l=>{if(l[d])return{headers:l.headers,body:l.body};let p="";for(let E in l)if(S(l,E)&&E!=="__type"){p=E;break}let{additionalHeaders:g,body:x,eventType:h,explicitPayloadContentType:y}=this.writeEventBody(p,a,l);return{headers:{":event-type":{type:"string",value:h},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:y??u},...g},body:x}})}async deserializeEventStream({response:t,responseSchema:r,initialResponseContainer:n,initialMessageType:o}){let s=this.marshaller,i=r.getEventStreamMember(),f=r.getMemberSchema(i).getMemberSchemas(),u=Symbol("initialResponseMarker"),d=s.deserialize(t.body,async p=>{let g="";for(let h in p)if(S(p,h)&&h!=="__type"){g=h;break}let x=p[g].body;if(g===(o??"initial-response")){let h=await this.deserializer.read(r,x);return delete h[i],{[u]:!0,...h}}else if(g in f){let h=f[g];if(h.isStructSchema()){let y={},b=!1;for(let[E,A]of h.structIterator()){let{eventHeader:te,eventPayload:Me}=A.getMergedTraits();if(b=b||!!(te||Me),Me)A.isBlobSchema()?y[E]=x:A.isStringSchema()?y[E]=(this.serdeContext?.utf8Encoder??it)(x):A.isStructSchema()&&(y[E]=await this.deserializer.read(A,x));else if(te){let ye=p[g].headers[E]?.value;ye!=null&&(A.isNumericSchema()?ye&&typeof ye=="object"&&"bytes"in ye?y[E]=BigInt(ye.toString()):y[E]=Number(ye):y[E]=ye)}}return{[g]:await this.readEventMember(h,x,b,y)}}return{[g]:await this.deserializer.read(h,x)}}else return{$unknown:p}}),m=d[Symbol.asyncIterator](),l=await m.next();if(l.done)return d;if(l.value?.[u]){if(!r)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let p in l.value)S(l.value,p)&&(n[p]=l.value[p])}return{async*[Symbol.asyncIterator](){for(l?.value?.[u]||(yield l.value);;){let{done:p,value:g}=await m.next();if(p)break;yield g}}}}async readEventMember(t,r,n,o){let s,i=t.getSchema();if(Array.isArray(i)&&i[0]===-3){let f=i[1],u=Ge.for(f);this.compositeErrorRegistry?.copyFrom(u),s=(this.compositeErrorRegistry??u)?.getErrorCtor(i)}let a=n?o:r.byteLength===0?{}:await this.deserializer.read(t,r);if(s){let f=a.message??a.Message??"Unknown",u={},d=t.getMergedTraits().error;return d&&(u.$fault=d),Object.assign(new s({}),u,{message:f},a)}return a}writeEventBody(t,r,n){let o=this.serializer,s=t,i=null,a,f=r.getSchema()[4].includes(t),u={};if(f){let l=r.getMemberSchema(t);if(l.isStructSchema()){for(let[p,g]of l.structIterator()){let{eventHeader:x,eventPayload:h}=g.getMergedTraits();if(h)i=p;else if(x){let y=n[t][p],b="binary";g.isNumericSchema()?(-2)**31<=y&&y<=2**31-1?b="integer":b="long":g.isTimestampSchema()?b="timestamp":g.isStringSchema()?b="string":g.isBooleanSchema()&&(b="boolean"),y!=null&&(u[p]={type:b,value:y},delete n[t][p])}}if(i!==null){let p=l.getMemberSchema(i);p.isBlobSchema()?a="application/octet-stream":p.isStringSchema()&&(a="text/plain"),o.write(p,n[t][i])}else o.write(l,n[t])}else if(l.isUnitSchema())o.write(l,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[l,p]=n[t];s=l,o.write(15,p)}let d=o.flush()??new Uint8Array;return{body:typeof d=="string"?(this.serdeContext?.utf8Decoder??q)(d):d,eventType:s,explicitPayloadContentType:a,additionalHeaders:u}}}});var Qd={};xe(Qd,{EventStreamCodec:()=>et,EventStreamMarshaller:()=>Ut,EventStreamSerde:()=>Yr,HeaderMarshaller:()=>Qe,Int64:()=>he,MessageDecoderStream:()=>tt,MessageEncoderStream:()=>rt,SmithyMessageDecoderStream:()=>nt,SmithyMessageEncoderStream:()=>ot,UniversalEventStreamMarshaller:()=>ve,eventStreamSerdeProvider:()=>_l,getChunkedStream:()=>Zr,getMessageUnmarshaller:()=>Mt,getUnmarshalledStream:()=>Cl,iterableToReadableStream:()=>Ul,readableStreamToIterable:()=>Ml,resolveEventStreamSerdeConfig:()=>Dl,universalEventStreamSerdeProvider:()=>Rl});var ep=c(()=>{As();Is();Ts();Ns();Os();Cs();Rs();vl();$l();Ms();_s();vs();Fl();Pl()});export{oe as a,J as b,S as c,mn as d,we as e,X as f,ql as g,M as h,dn as i,ct as j,T as k,dr as l,He as m,Fa as n,Ie as o,me as p,Ge as q,Lm as r,eo as s,Ae as t,nc as u,hr as v,gr as w,ac as x,uc as y,fo as z,pc as A,uo as B,Sr as C,_c as D,Vm as E,mo as F,tn as G,q as H,st as I,it as J,ti as K,fi as L,li as M,mi as N,di as O,ie as P,gi as Q,wi as R,Si as S,Ei as T,Ii as U,Ni as V,mt as W,Ri as X,Mi as Y,V as Z,v as _,O as $,ce as aa,ca as ba,ma as ca,xo as da,bo as ea,Ir as fa,Xc as ga,tf as ha,hf as ia,Km as ja,To as ka,Ao as la,_r as ma,vr as na,w as oa,Mr as pa,Ur as qa,su as ra,pu as sa,id as ta,cd as ua,fd as va,xu as wa,el as xa,ms as ya,al as za,wd as Aa,Sd as Ba,Q as Ca,Ss as Da,Bd as Ea,Es as Fa,he as Ga,Qe as Ha,et as Ia,tt as Ja,rt as Ka,nt as La,ot as Ma,Zr as Na,Cl as Oa,Mt as Pa,ve as Qa,Rl as Ra,Ut as Sa,_l as Ta,Ml as Ua,Ul as Va,Dl as Wa,Yr as Xa,Qd as Ya,ep as Za};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire as __cortexCreateRequire } from 'node:module';
|
|
2
|
+
const require = __cortexCreateRequire(import.meta.url);
|
|
3
|
+
const __cortexPackageRoot = new URL("../../", import.meta.url);
|
|
4
|
+
function s(n){return n instanceof Error?n.message||n.name:typeof n=="string"?n:String(n)}function i(n){if(!(n instanceof Error))return{name:"ThrownValue",message:s(n)};let t=n.code;return{name:n.name||void 0,message:n.message||n.name,stack:n.stack,code:typeof t=="string"||typeof t=="number"?t:void 0}}function a(n,t,e){return{type:n,timestamp:Date.now(),error:i(t),details:e}}function o(n,t){n.diagnostics=[...n.diagnostics??[],t]}export{s as a,i as b,a as c,o as d};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createRequire as __cortexCreateRequire } from 'node:module';
|
|
2
|
+
const require = __cortexCreateRequire(import.meta.url);
|
|
3
|
+
const __cortexPackageRoot = new URL("../../", import.meta.url);
|
|
4
|
+
import{u as t,v as o,x as u}from"./chunk-3YHOCPQU.js";var n=new Set;function a(e,c=null){if(n.has(e))return;if(t().funnelSent.includes(e)){n.add(e);return}u({type:"funnel",at:new Date().toISOString(),source:"server",step:e,detail:c})&&(n.add(e),o(r=>({...r,funnelSent:[...new Set([...r.funnelSent,e])]})))}export{a};
|