Switchyard lets LLM applications route traffic across models and providers while preserving native OpenAI and Anthropic API compatibility - enabling flexible model selection, benchmarking, and cost/performance optimization.
Rust
feat(examples): add VS Code Copilot Chat routing extension (#1309)
Sam Pastorizaa4a33ee401a2
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 3d5ca1d57..d94cbe0c7 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -152,6 +152,7 @@ jobs:cache-dependency-path: |bindings/typescript/package-lock.jsonexamples/pi/package-lock.json+ examples/vscode/package-lock.json- uses: Swatinem/rust-cache@c19371144df3bb44fab255c43d04cbc2ab54d1c4with:cache-bin: false@@ -163,6 +164,8 @@ jobs:- run: npm --prefix examples/pi ci- run: npm --prefix examples/pi run typecheck- run: npm --prefix examples/pi test+ - run: npm --prefix examples/vscode ci --omit=dev+ - run: npm --prefix examples/vscode testtypecheck:name: Typecheck (mypy)diff --git a/README.md b/README.mdindex ab0cb8225..6eb8c8ef5 100644--- a/README.md+++ b/README.md@@ -154,6 +154,9 @@ releases. Pin the version you integrate.Features and integrations recently merged into `main`.+- **2026-11-12 · Route Copilot Chat in VS Code**\+ Pair a capable and an efficient model, and let Auto routing pick one for each request in Copilot Chat. [Setup guide →](examples/vscode/README.md)+- **2026-10-16 · Route between Sonnet and Opus in Claude Code**\Use your Claude login for automatic routing on Linux x86_64 and see the selected model in the status line. [Setup guide →](examples/claude/README.md)diff --git a/examples/vscode/.gitignore b/examples/vscode/.gitignorenew file mode 100644index 000000000..27a1f10d9--- /dev/null+++ b/examples/vscode/.gitignore@@ -0,0 +1 @@+*.vsixdiff --git a/examples/vscode/.npmrc b/examples/vscode/.npmrcnew file mode 100644index 000000000..c7d351733--- /dev/null+++ b/examples/vscode/.npmrc@@ -0,0 +1 @@+install-links=truediff --git a/examples/vscode/.vscodeignore b/examples/vscode/.vscodeignorenew file mode 100644index 000000000..609c96028--- /dev/null+++ b/examples/vscode/.vscodeignore@@ -0,0 +1,5 @@+.npmrc+.gitignore+package-lock.json+test/**+*.vsixdiff --git a/examples/vscode/README.md b/examples/vscode/README.mdnew file mode 100644index 000000000..c941bc6fa--- /dev/null+++ b/examples/vscode/README.md@@ -0,0 +1,96 @@+# Switchyard for Copilot Chat in VS Code++This extension adds Switchyard models to the Copilot Chat model picker. Each+one pairs two models: a capable model for hard turns and an efficient model for+routine turns. Switchyard picks one of them for every request.++Routing uses Switchyard's [Auto](../../docs/routing_algorithms/overview.md#auto)+settings. A chat starts on the efficient model. Repeated or severe tool failures+can move it to the capable model, which then serves the next two requests in+that chat.++## Prerequisites++- VS Code 1.145 or newer, with GitHub Copilot Chat signed in.+- Node.js 22.19 or newer.+- The Rust toolchain. [rustup](https://rustup.rs) installs the version this+ repository uses.+- macOS or Linux. Windows is untested.++## Install++From the repository root:++```bash+npm --prefix bindings/typescript ci && npm --prefix bindings/typescript run build+npm --prefix examples/vscode ci && npm --prefix examples/vscode run package+code --install-extension examples/vscode/switchyard.vsix+```++The first command compiles Switchyard, so it takes a few minutes. The package+works only on the operating system and CPU type that built it.++## Use++1. Run **Switchyard: Create Routing Profile** from the Command Palette.+2. Pick a capable model, then an efficient model, then press Enter to accept the name.+3. Open Copilot Chat and pick the profile in the model picker.++The first request to each Copilot model asks you to allow access. Requests use+your Copilot quota.++Other commands:++- **Switchyard: Edit Routing Profile** changes the models or name, or deletes a+ profile. It also turns the Enterprise workaround on or off (see the note below).+- **Switchyard: View Routing Profiles** lists your profiles.+- **Switchyard: Add Custom Model** adds your own endpoint. It supports OpenAI+ Chat Completions, OpenAI Responses and Anthropic Messages. Custom models can+ be used in profiles next to Copilot models. Their replies do not stream and+ are limited to 8192 tokens.+- **Switchyard: Remove Custom Model** removes an endpoint and its API key.+- **Switchyard: Show Routing Log** shows which model served each request.++## Test++```bash+npm --prefix examples/vscode test+```++The tests run the router with the real Switchyard binding.++## Settings++Profiles are stored in your user `settings.json`. The create command fills in+the model IDs.++```json+"switchyard.profiles": [+ {+ "id": "a1b2c3d4",+ "name": "Switchyard: Claude Opus 4.5 / GPT-5 mini",+ "capable": "claude-opus-4.5",+ "efficient": "gpt-5-mini",+ "threshold": 0.5+ }+]+```++`threshold` is optional and defaults to 0.5. Raise it to use the efficient+model more often. Lower it to use the capable model more often.++> [!NOTE]+> **Profiles missing from the model picker?** Copilot Business and Enterprise+> can hide models from extensions. Ask your admin to allow them, or turn on the+> Enterprise workaround:+>+> 1. Run **Switchyard: Edit Routing Profile**.+> 2. Select **Enterprise workaround** at the bottom of the list.+>+> It works within a few seconds. Select it again to turn it off, then reload+> the window. You can also set `"switchyard.enterpriseWorkaround": true` in+> `settings.json`.+>+> The workaround overrides your organization's Copilot policy. This is known+> and is why it is off by default. It relies on Copilot internals, so it is+> unsupported and may stop working.diff --git a/examples/vscode/package-lock.json b/examples/vscode/package-lock.jsonnew file mode 100644index 000000000..bf704d118--- /dev/null+++ b/examples/vscode/package-lock.json@@ -0,0 +1,1906 @@+{+ "name": "switchyard-vscode",+ "version": "0.3.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "switchyard-vscode",+ "version": "0.3.0",+ "license": "Apache-2.0",+ "dependencies": {+ "@switchyard/libsy": "file:../../bindings/typescript"+ },+ "devDependencies": {+ "@vscode/vsce": "4.1.0"+ },+ "engines": {+ "vscode": "^1.145.0"+ }+ },+ "node_modules/@azure/abort-controller": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@azure/abort-controller/-/abort-controller-2.2.0.tgz",+ "integrity": "sha512-fNAjWnA/nZ2jz31kxR/AqRaUT8ewHBw/WuBIosK0moMy1C9e5ValbDfFdIxJzVOOYaYkV/b2F1S4H/aHiqfVQg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=22.0.0"+ }+ },+ "node_modules/@azure/core-auth": {+ "version": "1.11.0",+ "resolved": "https://registry.npmjs.org/@azure/core-auth/-/core-auth-1.11.0.tgz",+ "integrity": "sha512-IUZydyTUkDnYdstOW9pFOOUQlBjAepK5teihDE3x6yxsPJs/hsAaaYpeGxdxrgtOiJbBKSjKW7MDk7AEhb4LRg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@azure/abort-controller": "^2.1.2",+ "@azure/core-util": "^1.13.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=22.0.0"+ }+ },+ "node_modules/@azure/core-client": {+ "version": "1.11.2",+ "resolved": "https://registry.npmjs.org/@azure/core-client/-/core-client-1.11.2.tgz",+ "integrity": "sha512-ajuIU1aMoTs/ERYrKnIqQrV5Vz3RL8mwDC5RdedIXUvR7pi6cWzeYmt0LfNz6+W91CuCO4WJG0zA6+PhU1X+hw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@azure/abort-controller": "^2.1.2",+ "@azure/core-auth": "^1.10.0",+ "@azure/core-rest-pipeline": "^1.22.0",+ "@azure/core-tracing": "^1.3.0",+ "@azure/core-util": "^1.13.0",+ "@azure/logger": "^1.3.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=22.0.0"+ }+ },+ "node_modules/@azure/core-process": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@azure/core-process/-/core-process-1.0.0.tgz",+ "integrity": "sha512-/shnJ+ooO8WPxDhPEeI/2oRQuubn16gZ6CvlbpWbEswZfzwI9tI/sMAHmF3x1LuQ9yZYXfLW3TjzGMLEC5blKg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=22.0.0"+ }+ },+ "node_modules/@azure/core-rest-pipeline": {+ "version": "1.25.1",+ "resolved": "https://registry.npmjs.org/@azure/core-rest-pipeline/-/core-rest-pipeline-1.25.1.tgz",+ "integrity": "sha512-fTIA3CAm/cdODqiXkO6jYOIkU2Ylld7vq65KGc70gTwl12sLQsC8v7I5t6tp2N2CfUONzZBXyeFw7KEu6Ks2zg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@azure/abort-controller": "^2.1.2",+ "@azure/core-auth": "^1.10.0",+ "@azure/core-tracing": "^1.3.0",+ "@azure/core-util": "^1.13.0",+ "@azure/logger": "^1.3.0",+ "@typespec/ts-http-runtime": "^0.3.10",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=22.0.0"+ }+ },+ "node_modules/@azure/core-tracing": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/@azure/core-tracing/-/core-tracing-1.4.0.tgz",+ "integrity": "sha512-eGwxD0AtncrxeBM4tG8R55Pc3rdX1hNW2WibJAgYpCVA6E93mvvVH+LcssoVjOBrSKWS55yEIHsk0X8ctHmfOQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=22.0.0"+ }+ },+ "node_modules/@azure/core-util": {+ "version": "1.14.0",+ "resolved": "https://registry.npmjs.org/@azure/core-util/-/core-util-1.14.0.tgz",+ "integrity": "sha512-9n2pWK61veAuN0V20t9lOuoV4CFMdyAZ1ygZzvBGk/pBBJRib/PjL9PLXa/aI2CcPpyHfqVsxxqLCYl6uZlfDw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@azure/abort-controller": "^2.1.2",+ "@typespec/ts-http-runtime": "^0.3.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=22.0.0"+ }+ },+ "node_modules/@azure/identity": {+ "version": "4.14.1",+ "resolved": "https://registry.npmjs.org/@azure/identity/-/identity-4.14.1.tgz",+ "integrity": "sha512-HHuuFrmN1uuF9D5A6aAo5eHzNFNX4Q+P4SksZqDKse5YaJFFy/zDLG3wXHEV2FVGgetZ3QM8jGURNBtnQYf1NQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@azure/abort-controller": "^2.0.0",+ "@azure/core-auth": "^1.9.0",+ "@azure/core-client": "^1.9.2",+ "@azure/core-process": "^1.0.0",+ "@azure/core-rest-pipeline": "^1.17.0",+ "@azure/core-tracing": "^1.0.0",+ "@azure/core-util": "^1.11.0",+ "@azure/logger": "^1.0.0",+ "@azure/msal-browser": "^5.5.0",+ "@azure/msal-node": "^7.1.0",+ "open": "^11.0.0",+ "tslib": "^2.2.0"+ },+ "engines": {+ "node": ">=22.0.0"+ }+ },+ "node_modules/@azure/logger": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/@azure/logger/-/logger-1.4.0.tgz",+ "integrity": "sha512-rbAE25KUfjU/s3XHUdJgceoCP5dEOpMx85J04kF+QMdta73XkuG9JGHHinch+XIoKpBdqljin+KqURpJriSzLA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@typespec/ts-http-runtime": "^0.3.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=22.0.0"+ }+ },+ "node_modules/@azure/msal-browser": {+ "version": "5.29.1",+ "resolved": "https://registry.npmjs.org/@azure/msal-browser/-/msal-browser-5.29.1.tgz",+ "integrity": "sha512-+TMoU/4h3KYUvQKZH+p1/9/iDaepDlVJQ7UMUAB6q8prPsMfsOoqA9m2alpPqLUQ48Bp7sXqN2wdhA9rOg9q1A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@azure/msal-common": "16.16.2"+ },+ "engines": {+ "node": ">=0.8.0"+ }+ },+ "node_modules/@azure/msal-common": {+ "version": "16.16.2",+ "resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-16.16.2.tgz",+ "integrity": "sha512-IVoPgAup0hnpzwC8esxPxrrnDDVe0n3mmK+UU3JRmKWySKxBQrl+a30tTP3okmJ9Wc7dh+IgoNaUXkCxb2DBSg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.8.0"+ }+ },+ "node_modules/@azure/msal-node": {+ "version": "7.2.2",+ "resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-7.2.2.tgz",+ "integrity": "sha512-MjsAHC+KUSXYYC8P57lVXy5IgSeO+PraXzLLHZI6hcX7nx/hCokY6gTPm2JcKLI3W88mu7ozjObBVGKExZUhww==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@azure/msal-common": "16.16.2",+ "jsonwebtoken": "^9.0.0"+ },+ "engines": {+ "node": ">=20"+ }+ },+ "node_modules/@napi-rs/keyring": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@napi-rs/keyring/-/keyring-1.3.0.tgz",+ "integrity": "sha512-WrOw/bcXm0f9qHkumlT1QlArXSTWqaY9sunsDpOk+yCCorCKMxvWT/a3xko4EYHVdeZoh00yI2TydXn6eyICDA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 10"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/Brooooooklyn"+ },+ "optionalDependencies": {+ "@napi-rs/keyring-darwin-arm64": "1.3.0",+ "@napi-rs/keyring-darwin-x64": "1.3.0",+ "@napi-rs/keyring-freebsd-x64": "1.3.0",+ "@napi-rs/keyring-linux-arm-gnueabihf": "1.3.0",+ "@napi-rs/keyring-linux-arm64-gnu": "1.3.0",+ "@napi-rs/keyring-linux-arm64-musl": "1.3.0",+ "@napi-rs/keyring-linux-riscv64-gnu": "1.3.0",+ "@napi-rs/keyring-linux-x64-gnu": "1.3.0",+ "@napi-rs/keyring-linux-x64-musl": "1.3.0",+ "@napi-rs/keyring-win32-arm64-msvc": "1.3.0",+ "@napi-rs/keyring-win32-ia32-msvc": "1.3.0",+ "@napi-rs/keyring-win32-x64-msvc": "1.3.0"+ }+ },+ "node_modules/@napi-rs/keyring-darwin-arm64": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@napi-rs/keyring-darwin-arm64/-/keyring-darwin-arm64-1.3.0.tgz",+ "integrity": "sha512-pl76hJvdYUBn6I24bXiOBMA9nbDapo3I5B+f3OorjDU4dUMSypXeKbOVehJe8fhgTiH24flMyTS3aAIy43xegQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@napi-rs/keyring-darwin-x64": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@napi-rs/keyring-darwin-x64/-/keyring-darwin-x64-1.3.0.tgz",+ "integrity": "sha512-YcJtEV5LA3cvA4z3BurgxH5IhTsW1JfIvcAAcqcecwk06Si9F9NqkxbZVIfDwQ8oRHgaBmT3zZJnLAotCrVahw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@napi-rs/keyring-freebsd-x64": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@napi-rs/keyring-freebsd-x64/-/keyring-freebsd-x64-1.3.0.tgz",+ "integrity": "sha512-vlLf31TGhfRAaxLDBhg8b89ss0HHD/lyNmL5F3UjSaz5CUXElsJmKYq9fqA/B+cZKUEUcLHHGhF0I/CqcFdaVw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@napi-rs/keyring-linux-arm-gnueabihf": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@napi-rs/keyring-linux-arm-gnueabihf/-/keyring-linux-arm-gnueabihf-1.3.0.tgz",+ "integrity": "sha512-KiWdMMu/Inz/bHHIAGrnF7r54FZDYXuHO6UFF/rhIrshUsxbMG1Rl9lEymNtqqsVo927G0VYcb02FzWQ3iBQRQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@napi-rs/keyring-linux-arm64-gnu": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@napi-rs/keyring-linux-arm64-gnu/-/keyring-linux-arm64-gnu-1.3.0.tgz",+ "integrity": "sha512-eyKGpY40lm9Jvs1aD294XRH4y7+TlJM0YVAryZeXA6TX0mb4gMkxVXwSQv7MCwgah7raeUd0dKUb4BPAYIgcMg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@napi-rs/keyring-linux-arm64-musl": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@napi-rs/keyring-linux-arm64-musl/-/keyring-linux-arm64-musl-1.3.0.tgz",+ "integrity": "sha512-iIK6JWHXAJqDrEyLY3TmswwloVyt2vj+04TZnew+uSJ9gnDO8EwRbp3/iw3LpWaXiDO7VomGO6y8I0Id8uBZSw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@napi-rs/keyring-linux-riscv64-gnu": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@napi-rs/keyring-linux-riscv64-gnu/-/keyring-linux-riscv64-gnu-1.3.0.tgz",+ "integrity": "sha512-/PGqrwn6EwgtK6vccASSXJRfOSP4vN1F4ASsIQ+7MdrK6hNvAJ1FZPrIuD5gGGdxezo3F++To2Wq7DbuGIeuNQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@napi-rs/keyring-linux-x64-gnu": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@napi-rs/keyring-linux-x64-gnu/-/keyring-linux-x64-gnu-1.3.0.tgz",+ "integrity": "sha512-2PDK1WKWTu9lBGq9VvNEkSlQD3O7YwVpmnyN2M3cy4v7NJ/8gDMd9GXv3G+FVXN13uhp4gnnPBS+ScefmEeD2A==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "glibc"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@napi-rs/keyring-linux-x64-musl": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@napi-rs/keyring-linux-x64-musl/-/keyring-linux-x64-musl-1.3.0.tgz",+ "integrity": "sha512-oJ2HkX8YUo46QBkn0pG+HuIKQNqr523q6vBobCn+P95s4C4K6/kLBqHY/1bg5J4ap31DzsznhnFKcfBNBsjCnw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "libc": [+ "musl"+ ],+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@napi-rs/keyring-win32-arm64-msvc": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@napi-rs/keyring-win32-arm64-msvc/-/keyring-win32-arm64-msvc-1.3.0.tgz",+ "integrity": "sha512-tOd3c/uAaeoE4ycVlmAdSvygz0Zt3zdca6Y7gokBeIbaRDWpjDIUOpU3MvML59XAaqyuKGsVVu0F/DZb1lHPmw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@napi-rs/keyring-win32-ia32-msvc": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@napi-rs/keyring-win32-ia32-msvc/-/keyring-win32-ia32-msvc-1.3.0.tgz",+ "integrity": "sha512-sPSqeAFZMGqP1R++M2JTza7GQJJ/TpCo6JU6Vcd4jnebvOaEDs9b7eipakU1PJdSvhpC2yXMCNRk9gXfrhuwHQ==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@napi-rs/keyring-win32-x64-msvc": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/@napi-rs/keyring-win32-x64-msvc/-/keyring-win32-x64-msvc-1.3.0.tgz",+ "integrity": "sha512-4DnCWXwDc0HRKwyRlG5y0VhKZW2tNRQfKKfyj6IX/KWfDNyq9hn4n+GL1auyDcOO/v8PwnhmYo2+rOOqCkvvOg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">= 10"+ }+ },+ "node_modules/@secretlint/core": {+ "version": "10.2.2",+ "resolved": "https://registry.npmjs.org/@secretlint/core/-/core-10.2.2.tgz",+ "integrity": "sha512-6rdwBwLP9+TO3rRjMVW1tX+lQeo5gBbxl1I5F8nh8bgGtKwdlCMhMKsBWzWg1ostxx/tIG7OjZI0/BxsP8bUgw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@secretlint/profiler": "^10.2.2",+ "@secretlint/types": "^10.2.2",+ "debug": "^4.4.1",+ "structured-source": "^4.0.0"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@secretlint/profiler": {+ "version": "10.2.2",+ "resolved": "https://registry.npmjs.org/@secretlint/profiler/-/profiler-10.2.2.tgz",+ "integrity": "sha512-qm9rWfkh/o8OvzMIfY8a5bCmgIniSpltbVlUVl983zDG1bUuQNd1/5lUEeWx5o/WJ99bXxS7yNI4/KIXfHexig==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@secretlint/secretlint-rule-no-dotenv": {+ "version": "10.2.2",+ "resolved": "https://registry.npmjs.org/@secretlint/secretlint-rule-no-dotenv/-/secretlint-rule-no-dotenv-10.2.2.tgz",+ "integrity": "sha512-KJRbIShA9DVc5Va3yArtJ6QDzGjg3PRa1uYp9As4RsyKtKSSZjI64jVca57FZ8gbuk4em0/0Jq+uy6485wxIdg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@secretlint/types": "^10.2.2"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@secretlint/secretlint-rule-preset-recommend": {+ "version": "10.2.2",+ "resolved": "https://registry.npmjs.org/@secretlint/secretlint-rule-preset-recommend/-/secretlint-rule-preset-recommend-10.2.2.tgz",+ "integrity": "sha512-K3jPqjva8bQndDKJqctnGfwuAxU2n9XNCPtbXVI5JvC7FnQiNg/yWlQPbMUlBXtBoBGFYp08A94m6fvtc9v+zA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@secretlint/source-creator": {+ "version": "10.2.2",+ "resolved": "https://registry.npmjs.org/@secretlint/source-creator/-/source-creator-10.2.2.tgz",+ "integrity": "sha512-h6I87xJfwfUTgQ7irWq7UTdq/Bm1RuQ/fYhA3dtTIAop5BwSFmZyrchph4WcoEvbN460BWKmk4RYSvPElIIvxw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@secretlint/types": "^10.2.2",+ "istextorbinary": "^9.5.0"+ },+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@secretlint/types": {+ "version": "10.2.2",+ "resolved": "https://registry.npmjs.org/@secretlint/types/-/types-10.2.2.tgz",+ "integrity": "sha512-Nqc90v4lWCXyakD6xNyNACBJNJ0tNCwj2WNk/7ivyacYHxiITVgmLUFXTBOeCdy79iz6HtN9Y31uw/jbLrdOAg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=20.0.0"+ }+ },+ "node_modules/@switchyard/libsy": {+ "version": "0.3.0",+ "resolved": "file:../../bindings/typescript",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=22.19.0"+ }+ },+ "node_modules/@typespec/ts-http-runtime": {+ "version": "0.3.10",+ "resolved": "https://registry.npmjs.org/@typespec/ts-http-runtime/-/ts-http-runtime-0.3.10.tgz",+ "integrity": "sha512-vddvvtZ7sejSlCv+OIkn2ztjB1O31Fc2JsxI/YK725r3elXXlF/J3o3lbXJFRhoeWRWK1tjdZ+GTi6Fdtrp+EA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "http-proxy-agent": "^9.1.0",+ "https-proxy-agent": "^9.1.0",+ "tslib": "^2.6.2"+ },+ "engines": {+ "node": ">=22.0.0"+ }+ },+ "node_modules/@vscode/vsce": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/@vscode/vsce/-/vsce-4.1.0.tgz",+ "integrity": "sha512-iWNykEfLWTAU7FC2iBiE0vJvnJDpGm3GlL89dsBtRs62F+8tkPtq80Imi0QSFHjNBWu4QIdYII+3F9v/ZQRExw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@azure/identity": "^4.13.2",+ "@napi-rs/keyring": "^1.3.0",+ "@secretlint/core": "^10.2.2",+ "@secretlint/secretlint-rule-no-dotenv": "^10.2.2",+ "@secretlint/secretlint-rule-preset-recommend": "^10.2.2",+ "@secretlint/source-creator": "^10.2.2",+ "@secretlint/types": "^10.2.2",+ "@vscode/vsce-sign": "^2.1.0",+ "azure-devops-node-api": "^12.5.0",+ "cockatiel": "^3.2.1",+ "commander": "^12.1.0",+ "hosted-git-info": "^4.1.0",+ "jsonc-parser": "^3.3.1",+ "marked": "^18.0.11",+ "mime": "^1.6.0",+ "minimatch": "^10.2.6",+ "parse5": "^8.0.1",+ "proper-lockfile": "^4.1.2",+ "read": "^1.0.7",+ "semver": "^7.8.5",+ "tinyglobby": "^0.2.17",+ "typed-rest-client": "^1.8.11",+ "url-join": "^4.0.1",+ "xml2js": "^0.5.0",+ "yauzl": "^3.4.0",+ "yazl": "^2.5.1"+ },+ "bin": {+ "vsce": "vsce"+ },+ "engines": {+ "node": ">= 22"+ }+ },+ "node_modules/@vscode/vsce-sign": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/@vscode/vsce-sign/-/vsce-sign-2.1.1.tgz",+ "integrity": "sha512-Fm9SrvxonXpmzN0eKHKS/AHb/3Gc19c7SkGfSnhYOGPiLy2o8hJlIzx314IVSH//uEiKaAbE40P47wwFtyDByg==",+ "dev": true,+ "hasInstallScript": true,+ "license": "SEE LICENSE IN LICENSE.txt",+ "optionalDependencies": {+ "@vscode/vsce-sign-alpine-arm64": "2.0.8",+ "@vscode/vsce-sign-alpine-x64": "2.0.8",+ "@vscode/vsce-sign-darwin-arm64": "2.0.8",+ "@vscode/vsce-sign-darwin-x64": "2.0.8",+ "@vscode/vsce-sign-linux-arm": "2.0.8",+ "@vscode/vsce-sign-linux-arm64": "2.0.8",+ "@vscode/vsce-sign-linux-x64": "2.0.8",+ "@vscode/vsce-sign-win32-arm64": "2.0.8",+ "@vscode/vsce-sign-win32-x64": "2.0.8"+ }+ },+ "node_modules/@vscode/vsce-sign-alpine-arm64": {+ "version": "2.0.8",+ "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-alpine-arm64/-/vsce-sign-alpine-arm64-2.0.8.tgz",+ "integrity": "sha512-3HSEDf4R2zhI3/eckZPWBoeFUiLpnG9O0/NBW8xCM3j+Ri0uhmOPvCDuCYsUmIsFVUJETaMu+JMY2DF8v8hNPg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "SEE LICENSE IN LICENSE.txt",+ "optional": true,+ "os": [+ "alpine"+ ]+ },+ "node_modules/@vscode/vsce-sign-alpine-x64": {+ "version": "2.0.8",+ "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-alpine-x64/-/vsce-sign-alpine-x64-2.0.8.tgz",+ "integrity": "sha512-rHbdV7+esCVn/t8KnbSN9CyMGImAmGnxFb1K9d2uSrt0WNPYfL12FGFekhz2yI8sFhIhyxD+vIKTSp9+kLx+5A==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "SEE LICENSE IN LICENSE.txt",+ "optional": true,+ "os": [+ "alpine"+ ]+ },+ "node_modules/@vscode/vsce-sign-darwin-arm64": {+ "version": "2.0.8",+ "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-darwin-arm64/-/vsce-sign-darwin-arm64-2.0.8.tgz",+ "integrity": "sha512-/JSzSLCbXSlc+X7PfmHWnXczFHRmKURCwN1MGmJXjUJlWHgTDpaqjaJNMnBNqruyrbb6LRE/DMXTfRY9iwr4jA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "SEE LICENSE IN LICENSE.txt",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@vscode/vsce-sign-darwin-x64": {+ "version": "2.0.8",+ "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-darwin-x64/-/vsce-sign-darwin-x64-2.0.8.tgz",+ "integrity": "sha512-iowH17iKIaAiC6TNGIksLmwtcKOHh/HT/pwKHwPZnuTLvdKWZ/8VOT+MphEt71EcWttohqUXx41SjdiCfUPBiA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "SEE LICENSE IN LICENSE.txt",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@vscode/vsce-sign-linux-arm": {+ "version": "2.0.8",+ "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-linux-arm/-/vsce-sign-linux-arm-2.0.8.tgz",+ "integrity": "sha512-SVzcxe2fx+1meLyO745eUiywrRDQIXwK/oZcwTrzYEkoVh4Val4/8CtDHIc5Z3EhHnwVBnqGqsbNwkR44k7rXA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "SEE LICENSE IN LICENSE.txt",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@vscode/vsce-sign-linux-arm64": {+ "version": "2.0.8",+ "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-linux-arm64/-/vsce-sign-linux-arm64-2.0.8.tgz",+ "integrity": "sha512-94aBLOVdO6eAOylUsyJ40/BdHtRrHuKAa/29KNOci2QtwUBAH9jTWJLpn1Yv+xjlUOaSjQC8UlAUtjqz/g6FPA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "SEE LICENSE IN LICENSE.txt",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@vscode/vsce-sign-linux-x64": {+ "version": "2.0.8",+ "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-linux-x64/-/vsce-sign-linux-x64-2.0.8.tgz",+ "integrity": "sha512-i55pKFRMF1nR94CMcFHbr3VQz7rQ8DFURvUd2Jymcbtv8qzhPX2otIHWzkcmAVr4dQApbYYCvRPjbP+i12ImQQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "SEE LICENSE IN LICENSE.txt",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@vscode/vsce-sign-win32-arm64": {+ "version": "2.0.8",+ "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-win32-arm64/-/vsce-sign-win32-arm64-2.0.8.tgz",+ "integrity": "sha512-2CoVlRNow2XkNboxlfx8hGdKLR2hvyBRg1O8gafx8I4F+scm1MLHdGcYV3+u3jXDsJaiSyDshTO5vPcLjQpVug==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "SEE LICENSE IN LICENSE.txt",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@vscode/vsce-sign-win32-x64": {+ "version": "2.0.8",+ "resolved": "https://registry.npmjs.org/@vscode/vsce-sign-win32-x64/-/vsce-sign-win32-x64-2.0.8.tgz",+ "integrity": "sha512-93c+KXIvOsLlNLMEPtQBgJJgn2eaypv3G3+4O9RailUQTh9zL3ul/Fhnqf0O+NKOGKky9d/v+GYWhBwsAjZaww==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "SEE LICENSE IN LICENSE.txt",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/agent-base": {+ "version": "9.0.0",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-9.0.0.tgz",+ "integrity": "sha512-TQf59BsZnytt8GdJKLPfUZ54g/iaUL2OWDSFCCvMOhsHduDQxO8xC4PNeyIkVcA5KwL2phPSv0douC0fgWzmnA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/azure-devops-node-api": {+ "version": "12.5.0",+ "resolved": "https://registry.npmjs.org/azure-devops-node-api/-/azure-devops-node-api-12.5.0.tgz",+ "integrity": "sha512-R5eFskGvOm3U/GzeAuxRkUsAl0hrAwGgWn6zAd2KrZmrEhWZVqLew4OOupbQlXUuojUzpGtq62SmdhJ06N88og==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tunnel": "0.0.6",+ "typed-rest-client": "^1.8.4"+ }+ },+ "node_modules/balanced-match": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",+ "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "18 || 20 || >=22"+ }+ },+ "node_modules/binaryextensions": {+ "version": "6.11.0",+ "resolved": "https://registry.npmjs.org/binaryextensions/-/binaryextensions-6.11.0.tgz",+ "integrity": "sha512-sXnYK/Ij80TO3lcqZVV2YgfKN5QjUWIRk/XSm2J/4bd/lPko3lvk0O4ZppH6m+6hB2/GTu+ptNwVFe1xh+QLQw==",+ "dev": true,+ "license": "Artistic-2.0",+ "dependencies": {+ "editions": "^6.21.0"+ },+ "engines": {+ "node": ">=4"+ },+ "funding": {+ "url": "https://bevry.me/fund"+ }+ },+ "node_modules/boundary": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/boundary/-/boundary-2.0.0.tgz",+ "integrity": "sha512-rJKn5ooC9u8q13IMCrW0RSp31pxBCHE3y9V/tp3TdWSLf8Em3p6Di4NBpfzbJge9YjjFEsD0RtFEjtvHL5VyEA==",+ "dev": true,+ "license": "BSD-2-Clause"+ },+ "node_modules/brace-expansion": {+ "version": "5.0.13",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.13.tgz",+ "integrity": "sha512-Vh3dmFbc4wZeox7M9I/0L9GfFd83Su4+yCck/OF9Gi/P/dAHn0RT7X4K9R7gMNMhDck3DvhR6QXsnQdjjgwNvQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "balanced-match": "^4.0.2"+ },+ "engines": {+ "node": "20 || >=22"+ }+ },+ "node_modules/buffer-crc32": {+ "version": "0.2.13",+ "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz",+ "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "*"+ }+ },+ "node_modules/buffer-equal-constant-time": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz",+ "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==",+ "dev": true,+ "license": "BSD-3-Clause"+ },+ "node_modules/bundle-name": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.1.tgz",+ "integrity": "sha512-DdH81/zPLVS11EUgWq3tEu/xn+EzljlMYooDNdzWEnFha3R3NBMpMV1UqYIpjYHV/SgpFKMIX1Oh7o06SjM/oA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "run-applescript": "^7.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/call-bind-apply-helpers": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/call-bound": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "get-intrinsic": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/cockatiel": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/cockatiel/-/cockatiel-3.2.1.tgz",+ "integrity": "sha512-gfrHV6ZPkquExvMh9IOkKsBzNDk6sDuZ6DdBGUBkvFnTCqCxzpuq48RySgP0AnaqQkw2zynOFj9yly6T1Q2G5Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=16"+ }+ },+ "node_modules/commander": {+ "version": "12.1.0",+ "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",+ "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ms": "^2.1.3"+ },+ "engines": {+ "node": ">=6.0"+ },+ "peerDependenciesMeta": {+ "supports-color": {+ "optional": true+ }+ }+ },+ "node_modules/default-browser": {+ "version": "5.5.1",+ "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.5.1.tgz",+ "integrity": "sha512-m1pAzaJgZ/gssEqlOhJkPJp8Xly7QyW6xcrkUa2KKcDeDSEMP7X8xipU3snUcfisTQx0w1AGae+9UtJSfVnXGw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "bundle-name": "^4.1.0",+ "default-browser-id": "^5.0.0"+ },+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/default-browser-id": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/default-browser-id/-/default-browser-id-5.0.1.tgz",+ "integrity": "sha512-x1VCxdX4t+8wVfd1so/9w+vQ4vx7lKd2Qp5tDRutErwmR85OgmfX7RlLRMWafRMY7hbEiXIbudNrjOAPa/hL8Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/define-lazy-prop": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/define-lazy-prop/-/define-lazy-prop-3.0.0.tgz",+ "integrity": "sha512-N+MeXYoqr3pOgn8xfyRPREN7gHakLYjhsHhWGT3fWAiL4IkAt0iDw14QiiEm2bE30c5XX5q0FtAA3CK5f9/BUg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/dunder-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/ecdsa-sig-formatter": {+ "version": "1.0.11",+ "resolved": "https://registry.npmjs.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz",+ "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==",+ "dev": true,+ "license": "Apache-2.0",+ "dependencies": {+ "safe-buffer": "^5.0.1"+ }+ },+ "node_modules/editions": {+ "version": "6.22.0",+ "resolved": "https://registry.npmjs.org/editions/-/editions-6.22.0.tgz",+ "integrity": "sha512-UgGlf8IW75je7HZjNDpJdCv4cGJWIi6yumFdZ0R7A8/CIhQiWUjyGLCxdHpd8bmyD1gnkfUNK0oeOXqUS2cpfQ==",+ "dev": true,+ "license": "Artistic-2.0",+ "dependencies": {+ "version-range": "^4.15.0"+ },+ "engines": {+ "ecmascript": ">= es5",+ "node": ">=4"+ },+ "funding": {+ "url": "https://bevry.me/fund"+ }+ },+ "node_modules/entities": {+ "version": "9.0.0",+ "resolved": "https://registry.npmjs.org/entities/-/entities-9.0.0.tgz",+ "integrity": "sha512-oJFNDJg3kTPwAD1cNn2+WmUq4wFoo09npc3Ydf1D7ED4smRiWrsKnaLxykrTWgyGEcusc87P5dxlAleol9kpkg==",+ "dev": true,+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=20.19.0"+ },+ "funding": {+ "url": "https://github.com/fb55/entities?sponsor=1"+ }+ },+ "node_modules/es-define-property": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-errors": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-object-atoms": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.2.tgz",+ "integrity": "sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/fdir": {+ "version": "6.5.0",+ "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",+ "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12.0.0"+ },+ "peerDependencies": {+ "picomatch": "^3 || ^4"+ },+ "peerDependenciesMeta": {+ "picomatch": {+ "optional": true+ }+ }+ },+ "node_modules/function-bind": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-intrinsic": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "function-bind": "^1.1.2",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/gopd": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/graceful-fs": {+ "version": "4.2.12",+ "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.12.tgz",+ "integrity": "sha512-iuyGF2E4oafQfPsRrG2wtY2ILupMhvtdrhzrxB+0VcjsPpSPttpfYdjnGFGsTi5MaJFjI1jOKHPQ6UTbTj9TAw==",+ "dev": true,+ "license": "BlueOak-1.0.0"+ },+ "node_modules/has-symbols": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/hasown": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz",+ "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/hosted-git-info": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-4.1.0.tgz",+ "integrity": "sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "lru-cache": "^6.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/http-proxy-agent": {+ "version": "9.1.0",+ "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-9.1.0.tgz",+ "integrity": "sha512-2NxoveTT58mjYT4n3RPTEfCZGLMbidoO8XEieXfpSYxu+PQJ1qpx4ypwH6N+uF9twBPIvRRgvkvW5HUTYWENig==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "agent-base": "9.0.0",+ "debug": "^4.3.4",+ "proxy-agent-negotiate": "1.1.0"+ },+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/https-proxy-agent": {+ "version": "9.1.0",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-9.1.0.tgz",+ "integrity": "sha512-ag87y7cJJ9/3+GxFr8Oy4O5faDsGRGnBGsJj/YjOSsSx/5eadKLYTMPlzuR6obgoCDDm0abAAZitXXQkMOPSpA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "agent-base": "9.0.0",+ "debug": "^4.3.4",+ "proxy-agent-negotiate": "1.1.0"+ },+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/is-docker": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz",+ "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "is-docker": "cli.js"+ },+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-in-ssh": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/is-in-ssh/-/is-in-ssh-1.0.0.tgz",+ "integrity": "sha512-jYa6Q9rH90kR1vKB6NM7qqd1mge3Fx4Dhw5TVlK1MUBqhEOuCagrEHMevNuCcbECmXZ0ThXkRm+Ymr51HwEPAw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=20"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-inside-container": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz",+ "integrity": "sha512-KIYLCCJghfHZxqjYBE7rEy0OBuTd5xCHS7tHVgvCLkx7StIoaxwNW3hCALgEUjFfeRk+MG/Qxmp/vtETEF3tRA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-docker": "^3.0.0"+ },+ "bin": {+ "is-inside-container": "cli.js"+ },+ "engines": {+ "node": ">=14.16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/is-wsl": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz",+ "integrity": "sha512-e6rvdUCiQCAuumZslxRJWR/Doq4VpPR82kqclvcS0efgt430SlGIk05vdCN58+VrzgtIcfNODjozVielycD4Sw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-inside-container": "^1.0.0"+ },+ "engines": {+ "node": ">=16"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/istextorbinary": {+ "version": "9.5.0",+ "resolved": "https://registry.npmjs.org/istextorbinary/-/istextorbinary-9.5.0.tgz",+ "integrity": "sha512-5mbUj3SiZXCuRf9fT3ibzbSSEWiy63gFfksmGfdOzujPjW3k+z8WvIBxcJHBoQNlaZaiyB25deviif2+osLmLw==",+ "dev": true,+ "license": "Artistic-2.0",+ "dependencies": {+ "binaryextensions": "^6.11.0",+ "editions": "^6.21.0",+ "textextensions": "^6.11.0"+ },+ "engines": {+ "node": ">=4"+ },+ "funding": {+ "url": "https://bevry.me/fund"+ }+ },+ "node_modules/jsonc-parser": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.3.1.tgz",+ "integrity": "sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/jsonwebtoken": {+ "version": "9.0.3",+ "resolved": "https://registry.npmjs.org/jsonwebtoken/-/jsonwebtoken-9.0.3.tgz",+ "integrity": "sha512-MT/xP0CrubFRNLNKvxJ2BYfy53Zkm++5bX9dtuPbqAeQpTVe0MQTFhao8+Cp//EmJp244xt6Drw/GVEGCUj40g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "jws": "^4.0.1",+ "lodash.includes": "^4.3.0",+ "lodash.isboolean": "^3.0.3",+ "lodash.isinteger": "^4.0.4",+ "lodash.isnumber": "^3.0.3",+ "lodash.isplainobject": "^4.0.6",+ "lodash.isstring": "^4.0.1",+ "lodash.once": "^4.0.0",+ "ms": "^2.1.1",+ "semver": "^7.5.4"+ },+ "engines": {+ "node": ">=12",+ "npm": ">=6"+ }+ },+ "node_modules/jwa": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/jwa/-/jwa-2.0.1.tgz",+ "integrity": "sha512-hRF04fqJIP8Abbkq5NKGN0Bbr3JxlQ+qhZufXVr0DvujKy93ZCbXZMHDL4EOtodSbCWxOqR8MS1tXA5hwqCXDg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "buffer-equal-constant-time": "^1.0.1",+ "ecdsa-sig-formatter": "1.0.11",+ "safe-buffer": "^5.0.1"+ }+ },+ "node_modules/jws": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/jws/-/jws-4.0.1.tgz",+ "integrity": "sha512-EKI/M/yqPncGUUh44xz0PxSidXFr/+r0pA70+gIYhjv+et7yxM+s29Y+VGDkovRofQem0fs7Uvf4+YmAdyRduA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "jwa": "^2.0.1",+ "safe-buffer": "^5.0.1"+ }+ },+ "node_modules/lodash.includes": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz",+ "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lodash.isboolean": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz",+ "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lodash.isinteger": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz",+ "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lodash.isnumber": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz",+ "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lodash.isplainobject": {+ "version": "4.0.6",+ "resolved": "https://registry.npmjs.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz",+ "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lodash.isstring": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz",+ "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lodash.once": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/lodash.once/-/lodash.once-4.1.1.tgz",+ "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/lru-cache": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/marked": {+ "version": "18.2.0",+ "resolved": "https://registry.npmjs.org/marked/-/marked-18.2.0.tgz",+ "integrity": "sha512-KaeL+tAbtvI930q7HE2PN5lYXYdT8EiSmxHlN6F3rsfb57wd5mp5W5TLazpdj4inTQBJdgjYwbs40W/0VUGU+Q==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "marked": "bin/marked.js"+ },+ "engines": {+ "node": ">= 20"+ }+ },+ "node_modules/math-intrinsics": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/mime": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",+ "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "mime": "cli.js"+ },+ "engines": {+ "node": ">=4"+ }+ },+ "node_modules/minimatch": {+ "version": "10.2.6",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",+ "integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "dependencies": {+ "brace-expansion": "^5.0.8"+ },+ "engines": {+ "node": "18 || 20 || >=22"+ },+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/ms": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/mute-stream": {+ "version": "0.0.8",+ "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz",+ "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/object-inspect": {+ "version": "1.13.4",+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/open": {+ "version": "11.0.4",+ "resolved": "https://registry.npmjs.org/open/-/open-11.0.4.tgz",+ "integrity": "sha512-++Zlftm0kVLPmzC06t6epuWmcRMDbI4z5P3NNX979WA/k23+NtSOynEGzsVfZwguKw2mi5umVgnBlJQMwRz4Pg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "default-browser": "^5.5.1",+ "define-lazy-prop": "^3.0.0",+ "is-in-ssh": "^1.0.0",+ "is-inside-container": "^1.0.0",+ "powershell-utils": "^0.2.1",+ "wsl-utils": "^1.0.0"+ },+ "engines": {+ "node": ">=20"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/parse5": {+ "version": "8.1.1",+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-8.1.1.tgz",+ "integrity": "sha512-EcR/6WDcU7b2N3vQSxKALCk9lXGtUMQxXio008OEMBE0kavu/7JLfBEeFPzi43nMqVDSbEn3QCK+BMCc9zO//w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "entities": "^9.0.0"+ },+ "funding": {+ "url": "https://github.com/inikulin/parse5?sponsor=1"+ }+ },+ "node_modules/pend": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz",+ "integrity": "sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/picomatch": {+ "version": "4.0.7",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz",+ "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/powershell-utils": {+ "version": "0.2.1",+ "resolved": "https://registry.npmjs.org/powershell-utils/-/powershell-utils-0.2.1.tgz",+ "integrity": "sha512-C+y9x90UElAddDZmV4qOx9W53B61PO7cIqWz2dQsWlwswuq4mr8NEwytdGKboYbQlGZ3awrkTeNvcZiZNHnQ8A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=20"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/proper-lockfile": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/proper-lockfile/-/proper-lockfile-4.1.2.tgz",+ "integrity": "sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "graceful-fs": "^4.2.4",+ "retry": "^0.12.0",+ "signal-exit": "^3.0.2"+ }+ },+ "node_modules/proxy-agent-negotiate": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/proxy-agent-negotiate/-/proxy-agent-negotiate-1.1.0.tgz",+ "integrity": "sha512-N8IBcM3UgCVzz2L2Lqv8DVntDnnC8/hiV4nEDUPkqq72TPUgYWjQc+bdZlBPZK9LzPAvOY//gAt0S0DApoOXWQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 20"+ },+ "peerDependencies": {+ "kerberos": "^2.0.0"+ },+ "peerDependenciesMeta": {+ "kerberos": {+ "optional": true+ }+ }+ },+ "node_modules/qs": {+ "version": "6.17.1",+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.17.1.tgz",+ "integrity": "sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "es-define-property": "^1.0.1",+ "side-channel": "^1.1.1"+ },+ "engines": {+ "node": ">=0.6"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/read": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/read/-/read-1.0.7.tgz",+ "integrity": "sha512-rSOKNYUmaxy0om1BNjMN4ezNT6VKK+2xF4GBhc81mkH7L60i6dp8qPYrkndNLT3QPphoII3maL9PVC9XmhHwVQ==",+ "dev": true,+ "license": "ISC",+ "dependencies": {+ "mute-stream": "~0.0.4"+ },+ "engines": {+ "node": ">=0.8"+ }+ },+ "node_modules/retry": {+ "version": "0.12.0",+ "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz",+ "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 4"+ }+ },+ "node_modules/run-applescript": {+ "version": "7.1.0",+ "resolved": "https://registry.npmjs.org/run-applescript/-/run-applescript-7.1.0.tgz",+ "integrity": "sha512-DPe5pVFaAsinSaV6QjQ6gdiedWDcRCbUuiQfQa2wmWV7+xC9bGulGI8+TdRmoFkAPaBXk8CrAbnlY2ISniJ47Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/safe-buffer": {+ "version": "5.2.1",+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ],+ "license": "MIT"+ },+ "node_modules/sax": {+ "version": "1.6.1",+ "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.1.tgz",+ "integrity": "sha512-42tBVwLWnaQvW5zc4HbZrTuWccECCZfBi92FDuwtqxasH+JbPB3/FOKb1m222K42R4WxuxzzMsTswfzgtSu64Q==",+ "dev": true,+ "license": "BlueOak-1.0.0",+ "engines": {+ "node": ">=11.0.0"+ }+ },+ "node_modules/semver": {+ "version": "7.8.6",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.6.tgz",+ "integrity": "sha512-9lpSSU4Mly3mrtruwLs1eLK6+gzbzqeBFwRNjIjE+9LuDpWdYctrQlQ3ej1Ilgi7gknpsTRnPoLP8DpCHqHIJw==",+ "dev": true,+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/side-channel": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.1.tgz",+ "integrity": "sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.4",+ "side-channel-list": "^1.0.1",+ "side-channel-map": "^1.0.1",+ "side-channel-weakmap": "^1.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-list": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",+ "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "object-inspect": "^1.13.4"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-map": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/side-channel-weakmap": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "call-bound": "^1.0.2",+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.5",+ "object-inspect": "^1.13.3",+ "side-channel-map": "^1.0.1"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/signal-exit": {+ "version": "3.0.7",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/structured-source": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/structured-source/-/structured-source-4.0.0.tgz",+ "integrity": "sha512-qGzRFNJDjFieQkl/sVOI2dUjHKRyL9dAJi2gCPGJLbJHBIkyOHxjuocpIEfbLioX+qSJpvbYdT49/YCdMznKxA==",+ "dev": true,+ "license": "BSD-2-Clause",+ "dependencies": {+ "boundary": "^2.0.0"+ }+ },+ "node_modules/textextensions": {+ "version": "6.11.0",+ "resolved": "https://registry.npmjs.org/textextensions/-/textextensions-6.11.0.tgz",+ "integrity": "sha512-tXJwSr9355kFJI3lbCkPpUH5cP8/M0GGy2xLO34aZCjMXBaK3SoPnZwr/oWmo1FdCnELcs4npdCIOFtq9W3ruQ==",+ "dev": true,+ "license": "Artistic-2.0",+ "dependencies": {+ "editions": "^6.21.0"+ },+ "engines": {+ "node": ">=4"+ },+ "funding": {+ "url": "https://bevry.me/fund"+ }+ },+ "node_modules/tinyglobby": {+ "version": "0.2.17",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",+ "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fdir": "^6.5.0",+ "picomatch": "^4.0.4"+ },+ "engines": {+ "node": ">=12.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/SuperchupuDev"+ }+ },+ "node_modules/tslib": {+ "version": "2.9.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz",+ "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==",+ "dev": true,+ "license": "0BSD"+ },+ "node_modules/tunnel": {+ "version": "0.0.6",+ "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz",+ "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.6.11 <=0.7.0 || >=0.7.3"+ }+ },+ "node_modules/typed-rest-client": {+ "version": "1.8.11",+ "resolved": "https://registry.npmjs.org/typed-rest-client/-/typed-rest-client-1.8.11.tgz",+ "integrity": "sha512-5UvfMpd1oelmUPRbbaVnq+rHP7ng2cE4qoQkQeAqxRL6PklkxsM0g32/HL0yfvruK6ojQ5x8EE+HF4YV6DtuCA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "qs": "^6.9.1",+ "tunnel": "0.0.6",+ "underscore": "^1.12.1"+ }+ },+ "node_modules/underscore": {+ "version": "1.13.8",+ "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.8.tgz",+ "integrity": "sha512-DXtD3ZtEQzc7M8m4cXotyHR+FAS18C64asBYY5vqZexfYryNNnDc02W4hKg3rdQuqOYas1jkseX0+nZXjTXnvQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/url-join": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz",+ "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/version-range": {+ "version": "4.15.0",+ "resolved": "https://registry.npmjs.org/version-range/-/version-range-4.15.0.tgz",+ "integrity": "sha512-Ck0EJbAGxHwprkzFO966t4/5QkRuzh+/I1RxhLgUKKwEn+Cd8NwM60mE3AqBZg5gYODoXW0EFsQvbZjRlvdqbg==",+ "dev": true,+ "license": "Artistic-2.0",+ "engines": {+ "node": ">=4"+ },+ "funding": {+ "url": "https://bevry.me/fund"+ }+ },+ "node_modules/wsl-utils": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-1.0.1.tgz",+ "integrity": "sha512-c16PKLIRxBYpR3jSWsdS7SFp0COm5SOQdiFjY818dYFHJbMGuLBszpF07LBWmOS1uzrHa9VGdynsEgoeKy0oOQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "is-wsl": "^3.1.0",+ "powershell-utils": "^0.2.0"+ },+ "engines": {+ "node": ">=20"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/xml2js": {+ "version": "0.5.0",+ "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz",+ "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "sax": ">=0.6.0",+ "xmlbuilder": "~11.0.0"+ },+ "engines": {+ "node": ">=4.0.0"+ }+ },+ "node_modules/xmlbuilder": {+ "version": "11.0.1",+ "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz",+ "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=4.0"+ }+ },+ "node_modules/yallist": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/yauzl": {+ "version": "3.4.0",+ "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-3.4.0.tgz",+ "integrity": "sha512-jIH9yLR9wqr0wOS0TpBvo/g/2UgZH5qePVbjgRliiF0BYvOZyaBknKsF+x9Iht0O6sqgnB93rCICdOZFecJuDw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "pend": "~1.2.0"+ },+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/yazl": {+ "version": "2.5.1",+ "resolved": "https://registry.npmjs.org/yazl/-/yazl-2.5.1.tgz",+ "integrity": "sha512-phENi2PLiHnHb6QBVot+dJnaAZ0xosj7p3fWl+znIjBDlnMI2PsZCJZ306BPTFOaHf5qdDEI8x5qFrSOBN5vrw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "buffer-crc32": "~0.2.3"+ }+ }+ }+}diff --git a/examples/vscode/package.json b/examples/vscode/package.jsonnew file mode 100644index 000000000..2cfd8ca90--- /dev/null+++ b/examples/vscode/package.json@@ -0,0 +1,100 @@+{+ "name": "switchyard-vscode",+ "displayName": "Switchyard for Copilot Chat",+ "description": "Route each Copilot Chat request to a capable or an efficient model with Switchyard.",+ "version": "0.3.0",+ "publisher": "nvidia",+ "private": true,+ "license": "Apache-2.0",+ "repository": {+ "type": "git",+ "url": "https://github.com/NVIDIA-NeMo/Switchyard.git"+ },+ "engines": {+ "vscode": "^1.145.0"+ },+ "categories": ["AI", "Chat"],+ "main": "./src/extension.js",+ "extensionKind": ["ui"],+ "activationEvents": ["onStartupFinished"],+ "scripts": {+ "test": "node --test test/*.test.js",+ "package": "vsce package --skip-license --out switchyard.vsix"+ },+ "dependencies": {+ "@switchyard/libsy": "file:../../bindings/typescript"+ },+ "devDependencies": {+ "@vscode/vsce": "4.1.0"+ },+ "contributes": {+ "languageModelChatProviders": [+ {+ "vendor": "switchyard",+ "displayName": "Switchyard"+ }+ ],+ "commands": [+ { "command": "switchyard.createProfile", "title": "Switchyard: Create Routing Profile" },+ { "command": "switchyard.editProfile", "title": "Switchyard: Edit Routing Profile" },+ { "command": "switchyard.viewProfiles", "title": "Switchyard: View Routing Profiles" },+ { "command": "switchyard.addCustomModel", "title": "Switchyard: Add Custom Model" },+ { "command": "switchyard.removeCustomModel", "title": "Switchyard: Remove Custom Model" },+ { "command": "switchyard.showLog", "title": "Switchyard: Show Routing Log" }+ ],+ "configuration": {+ "title": "Switchyard",+ "properties": {+ "switchyard.profiles": {+ "type": "array",+ "scope": "application",+ "default": [],+ "description": "Routing profiles. Each one appears as a model in the chat model picker.",+ "items": {+ "type": "object",+ "required": ["id", "name", "capable", "efficient"],+ "additionalProperties": false,+ "properties": {+ "id": { "type": "string" },+ "name": { "type": "string" },+ "capable": { "type": "string", "description": "Model for hard turns: a Copilot model ID or custom:<id>." },+ "efficient": { "type": "string", "description": "Model for routine turns: a Copilot model ID or custom:<id>." },+ "threshold": {+ "type": "number",+ "minimum": 0,+ "maximum": 1,+ "default": 0.5,+ "description": "How sure the tool signals must be before they pick a model. Below it, the efficient model is used. Higher values use the efficient model more often."+ }+ }+ }+ },+ "switchyard.customModels": {+ "type": "array",+ "scope": "application",+ "default": [],+ "description": "Your own model endpoints. Add them with Switchyard: Add Custom Model so the API key is stored securely.",+ "items": {+ "type": "object",+ "required": ["id", "name", "model", "url", "format", "maxInputTokens"],+ "additionalProperties": false,+ "properties": {+ "id": { "type": "string" },+ "name": { "type": "string" },+ "model": { "type": "string" },+ "url": { "type": "string" },+ "format": { "enum": ["openai_chat", "openai_responses", "anthropic_messages"] },+ "maxInputTokens": { "type": "integer", "minimum": 8192 }+ }+ }+ },+ "switchyard.enterpriseWorkaround": {+ "type": "boolean",+ "scope": "application",+ "default": false,+ "description": "Unsupported. Show Switchyard models in Copilot Business and Enterprise when the organization hides models from extensions. This overrides the organization's Copilot policy."+ }+ }+ }+ }+}diff --git a/examples/vscode/src/custom-models.js b/examples/vscode/src/custom-models.jsnew file mode 100644index 000000000..87ab02a47--- /dev/null+++ b/examples/vscode/src/custom-models.js@@ -0,0 +1,121 @@+// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.+// SPDX-License-Identifier: Apache-2.0++'use strict';++const vscode = require('vscode');+const { loadLibsy } = require('./router.js');+const { toSwitchyard } = require('./messages.js');++const FORMATS = [+ { label: 'OpenAI Chat Completions', value: 'openai_chat', example: 'https://api.example.com/v1/chat/completions' },+ { label: 'OpenAI Responses', value: 'openai_responses', example: 'https://api.example.com/v1/responses' },+ { label: 'Anthropic Messages', value: 'anthropic_messages', example: 'https://api.example.com/v1/messages' },+];+const MAX_OUTPUT_TOKENS = 8192;++function checkUrl(value) {+ let url;+ try {+ url = new URL(value);+ } catch {+ return 'Enter a full URL.';+ }+ const local = ['localhost', '127.0.0.1', '[::1]'].includes(url.hostname);+ if (url.protocol !== 'https:' && !(url.protocol === 'http:' && local)) return 'Use HTTPS, or HTTP on localhost.';+ return undefined;+}++function headers(format, apiKey) {+ const result = { 'Content-Type': 'application/json' };+ if (format === 'anthropic_messages') {+ result['anthropic-version'] = '2023-06-01';+ if (apiKey) result['x-api-key'] = apiKey;+ } else if (apiKey) {+ result.Authorization = `Bearer ${apiKey}`;+ }+ return result;+}++function toVscodePart(part) {+ if (part.type === 'text') return new vscode.LanguageModelTextPart(part.text);+ if (part.type === 'tool_call') {+ // Responses tool calls keep their arguments as a JSON string.+ const input = typeof part.arguments === 'string' ? JSON.parse(part.arguments) : part.arguments;+ return new vscode.LanguageModelToolCallPart(part.id, part.name, input);+ }+ return undefined;+}++// Wraps an endpoint in the same interface as a Copilot model:+// name, maxInputTokens, countTokens and sendRequest.+function createModel(config, apiKey) {+ return {+ id: `custom:${config.id}`,+ vendor: 'custom',+ name: config.name,+ maxInputTokens: config.maxInputTokens,++ // There is no tokenizer for custom endpoints. One token per byte overcounts on purpose.+ async countTokens(value) {+ return Buffer.byteLength(typeof value === 'string' ? value : JSON.stringify(value));+ },++ async sendRequest(messages, options = {}, token) {+ const { TranslationEngine } = await loadLibsy();+ const engine = new TranslationEngine();+ const request = {+ model: config.model,+ messages: toSwitchyard(messages),+ stream: false,+ output: { max_output_tokens: MAX_OUTPUT_TOKENS },+ tools: (options.tools ?? []).map(tool => ({+ name: tool.name,+ description: tool.description,+ parameters: tool.inputSchema ?? { type: 'object', properties: {} },+ })),+ };+ if (request.tools.length > 0) {+ const required = options.toolMode === vscode.LanguageModelChatToolMode.Required;+ request.tool_choice = { type: required ? 'required' : 'auto' };+ }++ const controller = new AbortController();+ const cancel = token?.onCancellationRequested(() => controller.abort());+ try {+ const response = await fetch(config.url, {+ method: 'POST',+ headers: headers(config.format, apiKey),+ body: JSON.stringify(engine.encodeRequest(config.format, request).body),+ signal: controller.signal,+ // Redirects would carry the API key to another host. API endpoints should not redirect.+ redirect: 'error',+ });+ if (!response.ok) {+ const reason = (await response.text()).slice(0, 200);+ throw new Error(`${config.name} returned HTTP ${response.status}: ${reason}`);+ }+ const decoded = engine.decodeResponse(config.format, await response.json());+ const parts = decoded.response.outputs+ .flatMap(output => output.content)+ .map(toVscodePart)+ .filter(Boolean);+ return { stream: (async function* () { yield* parts; })() };+ } finally {+ cancel?.dispose();+ }+ },+ };+}++// Sends one short request so that a wrong URL, model or key fails before saving.+async function checkModel(config, apiKey, token) {+ const model = createModel(config, apiKey);+ const response = await model.sendRequest([vscode.LanguageModelChatMessage.User('Reply with OK.')], {}, token);+ for await (const part of response.stream) {+ if (part instanceof vscode.LanguageModelTextPart && part.value.trim()) return;+ }+ throw new Error(`${config.name} returned no text.`);+}++module.exports = { FORMATS, MAX_OUTPUT_TOKENS, checkModel, checkUrl, createModel };diff --git a/examples/vscode/src/extension.js b/examples/vscode/src/extension.jsnew file mode 100644index 000000000..e12a8fd1e--- /dev/null+++ b/examples/vscode/src/extension.js@@ -0,0 +1,304 @@+// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.+// SPDX-License-Identifier: Apache-2.0++'use strict';++const crypto = require('node:crypto');+const vscode = require('vscode');+const customModels = require('./custom-models.js');+const { toCopilot, toSwitchyard } = require('./messages.js');+const { selectTier } = require('./router.js');++// Profiles and custom models use application scope, so a workspace cannot+// point a saved API key at a different endpoint.+const settings = () => vscode.workspace.getConfiguration('switchyard');+const update = (key, value) => settings().update(key, value, vscode.ConfigurationTarget.Global);+const apiKeyName = id => `switchyard.apiKey.${id}`;+const defaultName = (capable, efficient) => `Switchyard: ${capable.name} / ${efficient.name}`;++class Provider {+ constructor(context, log) {+ this.context = context;+ this.log = log;+ this.changed = new vscode.EventEmitter();+ this.onDidChangeLanguageModelChatInformation = this.changed.event;+ }++ // Copilot models and custom endpoints. Both have the same sendRequest and countTokens methods.+ // Copilot counts tokens many times per request, so the list is cached until models or settings change.+ models() {+ const pending = this.cache ??= (async () => {+ const copilot = await vscode.lm.selectChatModels({ vendor: 'copilot' });+ const custom = await Promise.all(settings().get('customModels', []).map(async config =>+ customModels.createModel(config, await this.context.secrets.get(apiKeyName(config.id)))));+ // Copilot's own "auto" model is a router, not a model.+ return [...copilot.filter(model => model.id !== 'auto'), ...custom];+ })();+ // Do not keep a failed lookup, for example while Copilot is still starting.+ pending.catch(() => {+ if (this.cache === pending) this.cache = undefined;+ });+ return pending;+ }++ refresh() {+ this.cache = undefined;+ this.changed.fire();+ }++ async provideLanguageModelChatInformation() {+ const models = await this.models();+ const result = [];+ for (const profile of settings().get('profiles', [])) {+ const pair = findPair(profile, models);+ if (!pair) continue;+ result.push({+ id: profile.id,+ name: profile.name,+ family: 'switchyard',+ version: '1',+ tooltip: `Capable: ${pair.capable.name}\nEfficient: ${pair.efficient.name}`,+ maxInputTokens: Math.min(pair.capable.maxInputTokens, pair.efficient.maxInputTokens),+ maxOutputTokens: customModels.MAX_OUTPUT_TOKENS,+ capabilities: { toolCalling: true, imageInput: false },+ });+ }+ return result;+ }++ async provideTokenCount(info, text, token) {+ const pair = await this.profile(info.id);+ const input = typeof text === 'string' ? text : toCopilot([text])[0];+ if (!input) return 0;+ const counts = await Promise.all([pair.capable, pair.efficient].map(model => model.countTokens(input, token)));+ return Math.max(...counts);+ }++ async provideLanguageModelChatResponse(info, messages, options, progress, token) {+ const { profile, ...pair } = await this.profile(info.id);+ // VS Code passes the chat ID in an internal field. Without it, each request is routed on its own.+ const sessionId = options.modelOptions?._conversationId;+ const tier = await selectTier(profile.threshold ?? 0.5, toSwitchyard(messages), sessionId);+ const model = pair[tier];+ this.log.info(`${profile.name}: ${tier} -> ${model.name}`);++ const input = model.vendor === 'copilot' ? toCopilot(messages) : messages;+ const response = await model.sendRequest(input, {+ tools: options.tools,+ toolMode: options.toolMode,+ justification: `Switchyard routes ${profile.name} requests to this model.`,+ }, token);+ for await (const part of response.stream) {+ if (part instanceof vscode.LanguageModelTextPart || part instanceof vscode.LanguageModelToolCallPart) {+ progress.report(part);+ }+ }+ }++ // Returns the profile with its capable and efficient models.+ async profile(id) {+ const profile = settings().get('profiles', []).find(p => p.id === id);+ const pair = profile && findPair(profile, await this.models());+ if (!pair) throw new Error('This Switchyard profile uses a model that is not available.');+ return { profile, ...pair };+ }+}++function findPair(profile, models) {+ const capable = models.find(model => model.id === profile.capable);+ const efficient = models.find(model => model.id === profile.efficient);+ return capable && efficient ? { capable, efficient } : undefined;+}++async function pickModel(models, title, currentId) {+ const items = models.map(model => ({+ label: model.name,+ description: model.id === currentId ? 'current' : model.vendor === 'copilot' ? 'Copilot' : 'Custom',+ model,+ }));+ return (await vscode.window.showQuickPick(items, { title, ignoreFocusOut: true }))?.model;+}++// Asks for the two models and a name. Returns undefined if the user cancels.+async function profileForm(models, previous = {}) {+ const capable = await pickModel(models, 'Capable model (for hard turns)', previous.capable);+ if (!capable) return undefined;+ const others = models.filter(model => model.id !== capable.id);+ const efficient = await pickModel(others, 'Efficient model (for routine turns)', previous.efficient);+ if (!efficient) return undefined;++ const name = await vscode.window.showInputBox({+ title: 'Profile name',+ value: previous.name ?? defaultName(capable, efficient),+ prompt: 'This name appears in the chat model picker.',+ ignoreFocusOut: true,+ });+ if (name === undefined) return undefined;+ return { ...previous, name: name.trim() || defaultName(capable, efficient), capable: capable.id, efficient: efficient.id };+}++async function addCustomModel(context) {+ const format = await vscode.window.showQuickPick(customModels.FORMATS, { title: 'API format', ignoreFocusOut: true });+ if (!format) return;+ const url = await vscode.window.showInputBox({+ title: 'Endpoint URL', placeHolder: format.example, validateInput: customModels.checkUrl, ignoreFocusOut: true,+ });+ if (!url) return;+ const model = await vscode.window.showInputBox({ title: 'Model ID', prompt: 'The model name the endpoint expects.', ignoreFocusOut: true });+ if (!model) return;+ const apiKey = await vscode.window.showInputBox({+ title: 'API key', prompt: 'Leave blank if the endpoint needs no key. The key is stored in VS Code secret storage.',+ password: true, ignoreFocusOut: true,+ });+ if (apiKey === undefined) return;+ const contextSize = await vscode.window.showInputBox({+ title: 'Context size in tokens', value: '128000', prompt: 'Check the model documentation for this number.', ignoreFocusOut: true,+ validateInput: value => Number.isInteger(Number(value)) && Number(value) >= 8192 ? undefined : 'Enter a whole number of at least 8192.',+ });+ if (!contextSize) return;+ const name = await vscode.window.showInputBox({ title: 'Display name', value: model, ignoreFocusOut: true });+ if (!name) return;++ const config = { id: crypto.randomUUID().slice(0, 8), name, model, url, format: format.value, maxInputTokens: Number(contextSize) };+ const reached = await vscode.window.withProgress(+ { location: vscode.ProgressLocation.Notification, title: `Testing ${name}...`, cancellable: true },+ async (_progress, token) => {+ try {+ await customModels.checkModel(config, apiKey, token);+ return true;+ } catch (error) {+ if (!token.isCancellationRequested) vscode.window.showErrorMessage(`Could not reach ${name}: ${error.message}`);+ return false;+ }+ },+ );+ if (!reached) return;+ await context.secrets.store(apiKeyName(config.id), apiKey);+ await update('customModels', [...settings().get('customModels', []), config]);+ vscode.window.showInformationMessage(`Added ${name}. You can now use it in a routing profile.`);+}++async function removeCustomModel(context) {+ const list = settings().get('customModels', []);+ const picked = await vscode.window.showQuickPick(+ list.map(config => ({ label: config.name, description: config.url, config })),+ { title: 'Remove custom model' },+ );+ if (!picked) return;+ await update('customModels', list.filter(config => config.id !== picked.config.id));+ await context.secrets.delete(apiKeyName(picked.config.id));+}++async function createProfile(provider) {+ const models = await provider.models();+ if (models.length < 2) throw new Error('Two models are needed. Sign in to Copilot or add a custom model.');+ const profile = await profileForm(models, { id: crypto.randomUUID().slice(0, 8) });+ if (!profile) return;+ await update('profiles', [...settings().get('profiles', []), profile]);+ const choice = await vscode.window.showInformationMessage(+ `Saved "${profile.name}". Choose it in the chat model picker.`, 'Not in the picker?');+ if (choice) await offerEnterpriseWorkaround();+}++async function editProfile(provider) {+ const list = settings().get('profiles', []);+ const workaround = settings().get('enterpriseWorkaround');+ const items = [+ { label: '$(add) Create a new profile' },+ ...list.map(profile => ({ label: profile.name, profile })),+ { label: '', kind: vscode.QuickPickItemKind.Separator },+ {+ label: `${workaround ? '$(check) ' : ''}Enterprise workaround`,+ description: workaround ? 'On. Select to turn off.' : 'Off. Select to turn on.',+ toggle: true,+ },+ ];+ const picked = await vscode.window.showQuickPick(items, { title: 'Edit routing profile' });+ if (!picked) return;+ if (picked.toggle) return toggleEnterpriseWorkaround(!workaround);+ if (!picked.profile) return createProfile(provider);++ const action = await vscode.window.showQuickPick(['Change models or name', 'Delete'], { title: picked.profile.name });+ if (action === 'Delete') {+ await update('profiles', list.filter(profile => profile.id !== picked.profile.id));+ } else if (action) {+ const profile = await profileForm(await provider.models(), picked.profile);+ if (!profile) return;+ await update('profiles', list.map(p => (p.id === profile.id ? profile : p)));+ }+}++async function offerEnterpriseWorkaround() {+ const choice = await vscode.window.showInformationMessage(+ 'Copilot Business and Enterprise can hide models from extensions. Ask your admin to allow them. '+ + 'You can also turn on an unsupported workaround that shows them in this VS Code. '+ + 'It overrides your organization\'s Copilot policy.',+ { modal: true }, 'Turn On Workaround');+ if (choice) await toggleEnterpriseWorkaround(true);+}++async function toggleEnterpriseWorkaround(on) {+ await update('enterpriseWorkaround', on);+ // Turning it off takes effect on reload, when Copilot sets its own value again.+ const message = on ? 'Enterprise workaround is on.' : 'Enterprise workaround is off. Reload the window to apply.';+ const choice = await vscode.window.showInformationMessage(message, ...(on ? [] : ['Reload Window']));+ if (choice) await vscode.commands.executeCommand('workbench.action.reloadWindow');+}++// Copilot Business and Enterprise hide extension models when the organization+// has not allowed them. This sets Copilot's internal flag that shows them, which+// overrides the organization's policy. This is known and opt-in.+// Copilot resets the flag, so it is set again every few seconds.+function startEnterpriseWorkaround(context) {+ const apply = () => {+ if (settings().get('enterpriseWorkaround')) {+ vscode.commands.executeCommand('setContext', 'github.copilot.clientByokEnabled', true);+ }+ };+ const timer = setInterval(apply, 5000);+ context.subscriptions.push({ dispose: () => clearInterval(timer) });+ apply();+}++function activate(context) {+ const log = vscode.window.createOutputChannel('Switchyard', { log: true });+ const provider = new Provider(context, log);+ const command = (name, handler) => vscode.commands.registerCommand(name, async () => {+ try {+ await handler();+ } catch (error) {+ vscode.window.showErrorMessage(`Switchyard: ${error.message}`);+ }+ });++ // Refresh the picker when Copilot's models change. Compare IDs so that our+ // own refresh does not cause another one.+ let copilotIds = '';+ const refreshOnCopilotChange = () => vscode.lm.selectChatModels({ vendor: 'copilot' }).then(models => {+ const ids = models.map(model => model.id).join();+ if (ids !== copilotIds) {+ copilotIds = ids;+ provider.refresh();+ }+ }, error => log.error(error));++ context.subscriptions.push(+ log,+ provider.changed,+ vscode.lm.registerLanguageModelChatProvider('switchyard', provider),+ vscode.lm.onDidChangeChatModels(refreshOnCopilotChange),+ vscode.workspace.onDidChangeConfiguration(event => {+ if (event.affectsConfiguration('switchyard')) provider.refresh();+ }),+ command('switchyard.createProfile', () => createProfile(provider)),+ command('switchyard.editProfile', () => editProfile(provider)),+ command('switchyard.viewProfiles', () =>+ vscode.commands.executeCommand('workbench.action.chat.manage', '@provider:switchyard')),+ command('switchyard.addCustomModel', () => addCustomModel(context)),+ command('switchyard.removeCustomModel', () => removeCustomModel(context)),+ command('switchyard.showLog', () => log.show()),+ );+ startEnterpriseWorkaround(context);+}++module.exports = { activate };diff --git a/examples/vscode/src/messages.js b/examples/vscode/src/messages.jsnew file mode 100644index 000000000..0f489831b--- /dev/null+++ b/examples/vscode/src/messages.js@@ -0,0 +1,53 @@+// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.+// SPDX-License-Identifier: Apache-2.0++'use strict';++const vscode = require('vscode');++const roles = {+ [vscode.LanguageModelChatMessageRole.User]: 'user',+ [vscode.LanguageModelChatMessageRole.Assistant]: 'assistant',+ // The System role exists at runtime but is not part of the stable API.+ 3: 'system',+};++function isForwarded(part) {+ return part instanceof vscode.LanguageModelTextPart+ || part instanceof vscode.LanguageModelToolCallPart+ || part instanceof vscode.LanguageModelToolResultPart;+}++function toSwitchyardPart(part) {+ if (part instanceof vscode.LanguageModelTextPart) return [{ type: 'text', text: part.value }];+ if (part instanceof vscode.LanguageModelToolCallPart) {+ return [{ type: 'tool_call', id: part.callId, name: part.name, arguments: part.input }];+ }+ if (part instanceof vscode.LanguageModelToolResultPart) {+ return [{ type: 'tool_result', tool_call_id: part.callId, content: part.content.flatMap(toSwitchyardPart), is_error: part.isError ?? false }];+ }+ // Reasoning and Copilot metadata parts are model-specific and are dropped.+ return [];+}++// Converts VS Code chat messages to Switchyard's normalized messages.+function toSwitchyard(messages) {+ return messages+ .map(message => ({ role: roles[message.role], content: message.content.flatMap(toSwitchyardPart) }))+ .filter(message => message.content.length > 0);+}++// Prepares messages for a Copilot model. The stable API cannot send system+// messages, so they are sent as user messages.+function toCopilot(messages) {+ return messages+ .map(message => {+ const role = message.role === vscode.LanguageModelChatMessageRole.Assistant+ ? vscode.LanguageModelChatMessageRole.Assistant+ : vscode.LanguageModelChatMessageRole.User;+ return new vscode.LanguageModelChatMessage(role, message.content.filter(isForwarded), message.name);+ })+ .filter(message => message.content.length > 0);+}++module.exports = { toSwitchyard, toCopilot };diff --git a/examples/vscode/src/router.js b/examples/vscode/src/router.jsnew file mode 100644index 000000000..71b42de6d--- /dev/null+++ b/examples/vscode/src/router.js@@ -0,0 +1,50 @@+// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.+// SPDX-License-Identifier: Apache-2.0++'use strict';++const routers = new Map();++// The binding is an ES module, so CommonJS code loads it with a dynamic import.+const loadLibsy = () => import('@switchyard/libsy');++// This is the "auto" preset written as a stage_router route, because "auto"+// does not accept a threshold. The host never calls the targets, so their IDs+// are placeholders.+function toml(threshold) {+ return `schema_version = 1++[llm_clients.vscode]+format = "openai_chat"+base_url = "https://unused.invalid/v1"++[targets]+capable = { id = "capable", llm_client = "vscode" }+efficient = { id = "efficient", llm_client = "vscode" }++[routes.switchyard]+id = "switchyard"+type = "stage_router"+capable_target = "capable"+efficient_target = "efficient"+picker = "efficient_first"+confidence_threshold = ${threshold}+recent_turn_window = 3+capable_hold_turns = 2+`;+}++// Returns "capable" or "efficient". Routers are reused so that the capable+// hold carries over between requests in the same session.+async function selectTier(threshold, messages, sessionId) {+ const { AlgorithmFactory, Step } = await loadLibsy();+ if (!routers.has(threshold)) routers.set(threshold, AlgorithmFactory.fromToml(toml(threshold)).build().switchyard);+ const headers = sessionId ? { 'x-switchyard-session-id': sessionId } : {};+ for await (const step of routers.get(threshold).runStream({ model: 'switchyard', messages }, { headers })) {+ if (!(step instanceof Step.Done)) throw new Error('Switchyard asked for a model call, which this router does not make.');+ return step.outcome.selected_model_ids[0];+ }+ throw new Error('Switchyard returned no routing decision.');+}++module.exports = { loadLibsy, selectTier };diff --git a/examples/vscode/test/router.test.js b/examples/vscode/test/router.test.jsnew file mode 100644index 000000000..45f51e1cd--- /dev/null+++ b/examples/vscode/test/router.test.js@@ -0,0 +1,36 @@+// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.+// SPDX-License-Identifier: Apache-2.0++'use strict';++const assert = require('node:assert/strict');+const { test } = require('node:test');+const { selectTier } = require('../src/router.js');++const user = { role: 'user', content: [{ type: 'text', text: 'Fix the failing test.' }] };++function tool(id, name, text) {+ return [+ { role: 'assistant', content: [{ type: 'tool_call', id, name, arguments: {} }] },+ { role: 'user', content: [{ type: 'tool_result', tool_call_id: id, content: [{ type: 'text', text }], is_error: false }] },+ ];+}++test('a new task starts on the efficient model', async () => {+ assert.equal(await selectTier(0.5, [user]), 'efficient');+});++test('a tool failure escalates and holds the capable model for two requests in the session', async () => {+ const messages = [user, ...tool('run', 'run_in_terminal', 'FATAL: out of memory')];+ assert.equal(await selectTier(0.5, messages, 'chat-1'), 'capable');++ for (let i = 0; i < 3; i++) messages.push(...tool(`write-${i}`, 'create_file', 'wrote file'));+ assert.equal(await selectTier(0.5, messages, 'chat-2'), 'efficient');+ for (const expected of ['capable', 'capable', 'efficient']) {+ assert.equal(await selectTier(0.5, messages, 'chat-1'), expected);+ }+});++test('the threshold accepts whole numbers', async () => {+ assert.equal(await selectTier(1, [user]), 'efficient');+});