Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Python agentaianthropicclaude-codecompressioncontext-engineeringcontext-windowcursorfastapilangchainllmmcpopenaiprompt-engineeringproxypythonragtoken-optimizationtokenstypescript
feat: add OpenClaw ContextEngine plugin (@headroom-ai/openclaw)
chopratejas053c4a06af29
diff --git a/plugins/openclaw/.gitignore b/plugins/openclaw/.gitignorenew file mode 100644index 000000000..deed335be--- /dev/null+++ b/plugins/openclaw/.gitignore@@ -0,0 +1,3 @@+node_modules/+dist/+.envdiff --git a/plugins/openclaw/README.md b/plugins/openclaw/README.mdnew file mode 100644index 000000000..9287e49c0--- /dev/null+++ b/plugins/openclaw/README.md@@ -0,0 +1,57 @@+# @headroom-ai/openclaw++Context compression plugin for [OpenClaw](https://github.com/openclaw/openclaw). Compresses tool outputs, code, logs, and structured data — 70-90% token savings with zero LLM calls.++## Install++```bash+pip install "headroom-ai[proxy]"+openclaw plugins install @headroom-ai/openclaw+```++## Configure++```json+{+ "plugins": {+ "slots": {+ "contextEngine": "headroom"+ }+ }+}+```++That's it. The plugin auto-starts the Headroom proxy if it's not already running.++## How It Works++Every time OpenClaw assembles context for the model, the plugin compresses tool outputs and large messages:++- **JSON arrays** (tool outputs, search results) — statistical selection keeps anomalies, errors, boundaries+- **Code** — AST-aware compression via tree-sitter+- **Logs** — pattern deduplication, keeps errors and boundaries+- **Text** — ML-based token compression++Compression is lossless via CCR (Compress-Cache-Retrieve): originals are stored and the agent gets a `headroom_retrieve` tool to access full details when needed.++## Configuration Options++| Option | Default | Description |+|--------|---------|-------------|+| `proxyUrl` | auto-detected | URL of the Headroom proxy |+| `autoStart` | `true` | Start proxy automatically if not running |+| `pythonPath` | auto-detected | Path to Python binary |+| `proxyPort` | `8787` | Port for auto-started proxy |++## Comparison with lossless-claw++| | lossless-claw | headroom |+|---|---|---|+| Compaction method | LLM summarization (DAG) | Content-aware compression (zero LLM) |+| Cost of compaction | Tokens (LLM calls) | Zero |+| Best for | Long conversations | Tool-heavy agents with large outputs |+| Retrieval | `lcm_grep`, `lcm_expand` | `headroom_retrieve` (instant) |++## License++Apache-2.0diff --git a/plugins/openclaw/openclaw.plugin.json b/plugins/openclaw/openclaw.plugin.jsonnew file mode 100644index 000000000..36ed77203--- /dev/null+++ b/plugins/openclaw/openclaw.plugin.json@@ -0,0 +1,41 @@+{+ "id": "headroom",+ "uiHints": {+ "proxyUrl": {+ "label": "Proxy URL",+ "help": "URL of the Headroom proxy (auto-detected or auto-started if not set)"+ },+ "pythonPath": {+ "label": "Python Path",+ "help": "Path to Python binary (auto-detected if not set)"+ },+ "autoStart": {+ "label": "Auto-Start Proxy",+ "help": "Automatically start the Headroom proxy if not already running"+ }+ },+ "configSchema": {+ "type": "object",+ "additionalProperties": false,+ "properties": {+ "enabled": {+ "type": "boolean"+ },+ "proxyUrl": {+ "type": "string"+ },+ "pythonPath": {+ "type": "string"+ },+ "autoStart": {+ "type": "boolean",+ "default": true+ },+ "proxyPort": {+ "type": "integer",+ "minimum": 0,+ "maximum": 65535+ }+ }+ }+}diff --git a/plugins/openclaw/package-lock.json b/plugins/openclaw/package-lock.jsonnew file mode 100644index 000000000..5e874af11--- /dev/null+++ b/plugins/openclaw/package-lock.json@@ -0,0 +1,2458 @@+{+ "name": "@headroom-ai/openclaw",+ "version": "0.1.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "@headroom-ai/openclaw",+ "version": "0.1.0",+ "license": "Apache-2.0",+ "dependencies": {+ "headroom-ai": "^0.1.0"+ },+ "devDependencies": {+ "tsup": "^8.0.0",+ "typescript": "^5.5.0",+ "vitest": "^2.0.0"+ },+ "peerDependencies": {+ "openclaw": "*"+ },+ "peerDependenciesMeta": {+ "openclaw": {+ "optional": true+ }+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.4.tgz",+ "integrity": "sha512-cQPwL2mp2nSmHHJlCyoXgHGhbEPMrEEU5xhkcy3Hs/O7nGZqEpZ2sUtLaL9MORLtDfRvVl2/3PAuEkYZH0Ty8Q==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.4.tgz",+ "integrity": "sha512-X9bUgvxiC8CHAGKYufLIHGXPJWnr0OCdR0anD2e21vdvgCI8lIfqFbnoeOz7lBjdrAGUhqLZLcQo6MLhTO2DKQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.4.tgz",+ "integrity": "sha512-gdLscB7v75wRfu7QSm/zg6Rx29VLdy9eTr2t44sfTW7CxwAtQghZ4ZnqHk3/ogz7xao0QAgrkradbBzcqFPasw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.4.tgz",+ "integrity": "sha512-PzPFnBNVF292sfpfhiyiXCGSn9HZg5BcAz+ivBuSsl6Rk4ga1oEXAamhOXRFyMcjwr2DVtm40G65N3GLeH1Lvw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.4.tgz",+ "integrity": "sha512-b7xaGIwdJlht8ZFCvMkpDN6uiSmnxxK56N2GDTMYPr2/gzvfdQN8rTfBsvVKmIVY/X7EM+/hJKEIbbHs9oA4tQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.4.tgz",+ "integrity": "sha512-sR+OiKLwd15nmCdqpXMnuJ9W2kpy0KigzqScqHI3Hqwr7IXxBp3Yva+yJwoqh7rE8V77tdoheRYataNKL4QrPw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.4.tgz",+ "integrity": "sha512-jnfpKe+p79tCnm4GVav68A7tUFeKQwQyLgESwEAUzyxk/TJr4QdGog9sqWNcUbr/bZt/O/HXouspuQDd9JxFSw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.4.tgz",+ "integrity": "sha512-2kb4ceA/CpfUrIcTUl1wrP/9ad9Atrp5J94Lq69w7UwOMolPIGrfLSvAKJp0RTvkPPyn6CIWrNy13kyLikZRZQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.4.tgz",+ "integrity": "sha512-aBYgcIxX/wd5n2ys0yESGeYMGF+pv6g0DhZr3G1ZG4jMfruU9Tl1i2Z+Wnj9/KjGz1lTLCcorqE2viePZqj4Eg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.4.tgz",+ "integrity": "sha512-7nQOttdzVGth1iz57kxg9uCz57dxQLHWxopL6mYuYthohPKEK0vU0C3O21CcBK6KDlkYVcnDXY099HcCDXd9dA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.4.tgz",+ "integrity": "sha512-oPtixtAIzgvzYcKBQM/qZ3R+9TEUd1aNJQu0HhGyqtx6oS7qTpvjheIWBbes4+qu1bNlo2V4cbkISr8q6gRBFA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.4.tgz",+ "integrity": "sha512-8mL/vh8qeCoRcFH2nM8wm5uJP+ZcVYGGayMavi8GmRJjuI3g1v6Z7Ni0JJKAJW+m0EtUuARb6Lmp4hMjzCBWzA==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.4.tgz",+ "integrity": "sha512-1RdrWFFiiLIW7LQq9Q2NES+HiD4NyT8Itj9AUeCl0IVCA459WnPhREKgwrpaIfTOe+/2rdntisegiPWn/r/aAw==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.4.tgz",+ "integrity": "sha512-tLCwNG47l3sd9lpfyx9LAGEGItCUeRCWeAx6x2Jmbav65nAwoPXfewtAdtbtit/pJFLUWOhpv0FpS6GQAmPrHA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.4.tgz",+ "integrity": "sha512-BnASypppbUWyqjd1KIpU4AUBiIhVr6YlHx/cnPgqEkNoVOhHg+YiSVxM1RLfiy4t9cAulbRGTNCKOcqHrEQLIw==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.4.tgz",+ "integrity": "sha512-+eUqgb/Z7vxVLezG8bVB9SfBie89gMueS+I0xYh2tJdw3vqA/0ImZJ2ROeWwVJN59ihBeZ7Tu92dF/5dy5FttA==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.4.tgz",+ "integrity": "sha512-S5qOXrKV8BQEzJPVxAwnryi2+Iq5pB40gTEIT69BQONqR7JH1EPIcQ/Uiv9mCnn05jff9umq/5nqzxlqTOg9NA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.4.tgz",+ "integrity": "sha512-xHT8X4sb0GS8qTqiwzHqpY00C95DPAq7nAwX35Ie/s+LO9830hrMd3oX0ZMKLvy7vsonee73x0lmcdOVXFzd6Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.4.tgz",+ "integrity": "sha512-RugOvOdXfdyi5Tyv40kgQnI0byv66BFgAqjdgtAKqHoZTbTF2QqfQrFwa7cHEORJf6X2ht+l9ABLMP0dnKYsgg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.4.tgz",+ "integrity": "sha512-2MyL3IAaTX+1/qP0O1SwskwcwCoOI4kV2IBX1xYnDDqthmq5ArrW94qSIKCAuRraMgPOmG0RDTA74mzYNQA9ow==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.4.tgz",+ "integrity": "sha512-u8fg/jQ5aQDfsnIV6+KwLOf1CmJnfu1ShpwqdwC0uA7ZPwFws55Ngc12vBdeUdnuWoQYx/SOQLGDcdlfXhYmXQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openharmony-arm64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.4.tgz",+ "integrity": "sha512-JkTZrl6VbyO8lDQO3yv26nNr2RM2yZzNrNHEsj9bm6dOwwu9OYN28CjzZkH57bh4w0I2F7IodpQvUAEd1mbWXg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.4.tgz",+ "integrity": "sha512-/gOzgaewZJfeJTlsWhvUEmUG4tWEY2Spp5M20INYRg2ZKl9QPO3QEEgPeRtLjEWSW8FilRNacPOg8R1uaYkA6g==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.4.tgz",+ "integrity": "sha512-Z9SExBg2y32smoDQdf1HRwHRt6vAHLXcxD2uGgO/v2jK7Y718Ix4ndsbNMU/+1Qiem9OiOdaqitioZwxivhXYg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.4.tgz",+ "integrity": "sha512-DAyGLS0Jz5G5iixEbMHi5KdiApqHBWMGzTtMiJ72ZOLhbu/bzxgAe8Ue8CTS3n3HbIUHQz/L51yMdGMeoxXNJw==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.4.tgz",+ "integrity": "sha512-+knoa0BDoeXgkNvvV1vvbZX4+hizelrkwmGJBdT17t8FNPwG2lKemmuMZlmaNQ3ws3DKKCxpb4zRZEIp3UxFCg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.13",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",+ "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.0",+ "@jridgewell/trace-mapping": "^0.3.24"+ }+ },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.2",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",+ "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6.0.0"+ }+ },+ "node_modules/@jridgewell/sourcemap-codec": {+ "version": "1.5.5",+ "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",+ "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@jridgewell/trace-mapping": {+ "version": "0.3.31",+ "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",+ "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/resolve-uri": "^3.1.0",+ "@jridgewell/sourcemap-codec": "^1.4.14"+ }+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.0.tgz",+ "integrity": "sha512-WOhNW9K8bR3kf4zLxbfg6Pxu2ybOUbB2AjMDHSQx86LIF4rH4Ft7vmMwNt0loO0eonglSNy4cpD3MKXXKQu0/A==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.0.tgz",+ "integrity": "sha512-u6JHLll5QKRvjciE78bQXDmqRqNs5M/3GVqZeMwvmjaNODJih/WIrJlFVEihvV0MiYFmd+ZyPr9wxOVbPAG2Iw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.0.tgz",+ "integrity": "sha512-qEF7CsKKzSRc20Ciu2Zw1wRrBz4g56F7r/vRwY430UPp/nt1x21Q/fpJ9N5l47WWvJlkNCPJz3QRVw008fi7yA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.0.tgz",+ "integrity": "sha512-WADYozJ4QCnXCH4wPB+3FuGmDPoFseVCUrANmA5LWwGmC6FL14BWC7pcq+FstOZv3baGX65tZ378uT6WG8ynTw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.0.tgz",+ "integrity": "sha512-6b8wGHJlDrGeSE3aH5mGNHBjA0TTkxdoNHik5EkvPHCt351XnigA4pS7Wsj/Eo9Y8RBU6f35cjN9SYmCFBtzxw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.0.tgz",+ "integrity": "sha512-h25Ga0t4jaylMB8M/JKAyrvvfxGRjnPQIR8lnCayyzEjEOx2EJIlIiMbhpWxDRKGKF8jbNH01NnN663dH638mA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.0.tgz",+ "integrity": "sha512-RzeBwv0B3qtVBWtcuABtSuCzToo2IEAIQrcyB/b2zMvBWVbjo8bZDjACUpnaafaxhTw2W+imQbP2BD1usasK4g==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.0.tgz",+ "integrity": "sha512-Sf7zusNI2CIU1HLzuu9Tc5YGAHEZs5Lu7N1ssJG4Tkw6e0MEsN7NdjUDDfGNHy2IU+ENyWT+L2obgWiguWibWQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.0.tgz",+ "integrity": "sha512-DX2x7CMcrJzsE91q7/O02IJQ5/aLkVtYFryqCjduJhUfGKG6yJV8hxaw8pZa93lLEpPTP/ohdN4wFz7yp/ry9A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.0.tgz",+ "integrity": "sha512-09EL+yFVbJZlhcQfShpswwRZ0Rg+z/CsSELFCnPt3iK+iqwGsI4zht3secj5vLEs957QvFFXnzAT0FFPIxSrkQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.0.tgz",+ "integrity": "sha512-i9IcCMPr3EXm8EQg5jnja0Zyc1iFxJjZWlb4wr7U2Wx/GrddOuEafxRdMPRYVaXjgbhvqalp6np07hN1w9kAKw==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-musl": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.0.tgz",+ "integrity": "sha512-DGzdJK9kyJ+B78MCkWeGnpXJ91tK/iKA6HwHxF4TAlPIY7GXEvMe8hBFRgdrR9Ly4qebR/7gfUs9y2IoaVEyog==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.0.tgz",+ "integrity": "sha512-RwpnLsqC8qbS8z1H1AxBA1H6qknR4YpPR9w2XX0vo2Sz10miu57PkNcnHVaZkbqyw/kUWfKMI73jhmfi9BRMUQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-musl": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.0.tgz",+ "integrity": "sha512-Z8pPf54Ly3aqtdWC3G4rFigZgNvd+qJlOE52fmko3KST9SoGfAdSRCwyoyG05q1HrrAblLbk1/PSIV+80/pxLg==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.0.tgz",+ "integrity": "sha512-3a3qQustp3COCGvnP4SvrMHnPQ9d1vzCakQVRTliaz8cIp/wULGjiGpbcqrkv0WrHTEp8bQD/B3HBjzujVWLOA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.0.tgz",+ "integrity": "sha512-pjZDsVH/1VsghMJ2/kAaxt6dL0psT6ZexQVrijczOf+PeP2BUqTHYejk3l6TlPRydggINOeNRhvpLa0AYpCWSQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.0.tgz",+ "integrity": "sha512-3ObQs0BhvPgiUVZrN7gqCSvmFuMWvWvsjG5ayJ3Lraqv+2KhOsp+pUbigqbeWqueGIsnn+09HBw27rJ+gYK4VQ==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.0.tgz",+ "integrity": "sha512-EtylprDtQPdS5rXvAayrNDYoJhIz1/vzN2fEubo3yLE7tfAw+948dO0g4M0vkTVFhKojnF+n6C8bDNe+gDRdTg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.0.tgz",+ "integrity": "sha512-k09oiRCi/bHU9UVFqD17r3eJR9bn03TyKraCrlz5ULFJGdJGi7VOmm9jl44vOJvRJ6P7WuBi/s2A97LxxHGIdw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openbsd-x64": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.0.tgz",+ "integrity": "sha512-1o/0/pIhozoSaDJoDcec+IVLbnRtQmHwPV730+AOD29lHEEo4F5BEUB24H0OBdhbBBDwIOSuf7vgg0Ywxdfiiw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.0.tgz",+ "integrity": "sha512-pESDkos/PDzYwtyzB5p/UoNU/8fJo68vcXM9ZW2V0kjYayj1KaaUfi1NmTUTUpMn4UhU4gTuK8gIaFO4UGuMbA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.0.tgz",+ "integrity": "sha512-hj1wFStD7B1YBeYmvY+lWXZ7ey73YGPcViMShYikqKT1GtstIKQAtfUI6yrzPjAy/O7pO0VLXGmUVWXQMaYgTQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.0.tgz",+ "integrity": "sha512-SyaIPFoxmUPlNDq5EHkTbiKzmSEmq/gOYFI/3HHJ8iS/v1mbugVa7dXUzcJGQfoytp9DJFLhHH4U3/eTy2Bq4w==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.0.tgz",+ "integrity": "sha512-RdcryEfzZr+lAr5kRm2ucN9aVlCCa2QNq4hXelZxb8GG0NJSazq44Z3PCCc8wISRuCVnGs0lQJVX5Vp6fKA+IA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.0.tgz",+ "integrity": "sha512-PrsWNQ8BuE00O3Xsx3ALh2Df8fAj9+cvvX9AIA6o4KpATR98c9mud4XtDWVvsEuyia5U4tVSTKygawyJkjm60w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@types/estree": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",+ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@vitest/expect": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-2.1.9.tgz",+ "integrity": "sha512-UJCIkTBenHeKT1TTlKMJWy1laZewsRIzYighyYiJKZreqtdxSos/S1t+ktRMQWu2CKqaarrkeszJx1cgC5tGZw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/spy": "2.1.9",+ "@vitest/utils": "2.1.9",+ "chai": "^5.1.2",+ "tinyrainbow": "^1.2.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/mocker": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-2.1.9.tgz",+ "integrity": "sha512-tVL6uJgoUdi6icpxmdrn5YNo3g3Dxv+IHJBr0GXHaEdTcw3F+cPKnsXFhli6nO+f/6SDKPHEK1UN+k+TQv0Ehg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/spy": "2.1.9",+ "estree-walker": "^3.0.3",+ "magic-string": "^0.30.12"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "msw": "^2.4.9",+ "vite": "^5.0.0"+ },+ "peerDependenciesMeta": {+ "msw": {+ "optional": true+ },+ "vite": {+ "optional": true+ }+ }+ },+ "node_modules/@vitest/pretty-format": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-2.1.9.tgz",+ "integrity": "sha512-KhRIdGV2U9HOUzxfiHmY8IFHTdqtOhIzCpd8WRdJiE7D/HUcZVD0EgQCVjm+Q9gkUXWgBvMmTtZgIG48wq7sOQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyrainbow": "^1.2.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/runner": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-2.1.9.tgz",+ "integrity": "sha512-ZXSSqTFIrzduD63btIfEyOmNcBmQvgOVsPNPe0jYtESiXkhd8u2erDLnMxmGrDCwHCCHE7hxwRDCT3pt0esT4g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/utils": "2.1.9",+ "pathe": "^1.1.2"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/runner/node_modules/pathe": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",+ "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@vitest/snapshot": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-2.1.9.tgz",+ "integrity": "sha512-oBO82rEjsxLNJincVhLhaxxZdEtV0EFHMK5Kmx5sJ6H9L183dHECjiefOAdnqpIgT5eZwT04PoggUnW88vOBNQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/pretty-format": "2.1.9",+ "magic-string": "^0.30.12",+ "pathe": "^1.1.2"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/snapshot/node_modules/pathe": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",+ "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@vitest/spy": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-2.1.9.tgz",+ "integrity": "sha512-E1B35FwzXXTs9FHNK6bDszs7mtydNi5MIfUWpceJ8Xbfb1gBMscAnwLbEu+B44ed6W3XjL9/ehLPHR1fkf1KLQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyspy": "^3.0.2"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/utils": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-2.1.9.tgz",+ "integrity": "sha512-v0psaMSkNJ3A2NMrUEHFRzJtDPFn+/VWZ5WxImB21T9fjucJRmS7xCS3ppEnARb9y11OAzaD+P2Ps+b+BGX5iQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/pretty-format": "2.1.9",+ "loupe": "^3.1.2",+ "tinyrainbow": "^1.2.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/acorn": {+ "version": "8.16.0",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",+ "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/any-promise": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",+ "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/assertion-error": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz",+ "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/bundle-require": {+ "version": "5.1.0",+ "resolved": "https://registry.npmjs.org/bundle-require/-/bundle-require-5.1.0.tgz",+ "integrity": "sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "load-tsconfig": "^0.2.3"+ },+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ },+ "peerDependencies": {+ "esbuild": ">=0.18"+ }+ },+ "node_modules/cac": {+ "version": "6.7.14",+ "resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",+ "integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/chai": {+ "version": "5.3.3",+ "resolved": "https://registry.npmjs.org/chai/-/chai-5.3.3.tgz",+ "integrity": "sha512-4zNhdJD/iOjSH0A05ea+Ke6MU5mmpQcbQsSOkgdaUMJ9zTlDTD/GYlwohmIE2u0gaxHYiVHEn1Fw9mZ/ktJWgw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "assertion-error": "^2.0.1",+ "check-error": "^2.1.1",+ "deep-eql": "^5.0.1",+ "loupe": "^3.1.0",+ "pathval": "^2.0.0"+ },+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/check-error": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.3.tgz",+ "integrity": "sha512-PAJdDJusoxnwm1VwW07VWwUN1sl7smmC3OKggvndJFadxxDRyFJBX/ggnu/KE4kQAB7a3Dp8f/YXC1FlUprWmA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 16"+ }+ },+ "node_modules/chokidar": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz",+ "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "readdirp": "^4.0.1"+ },+ "engines": {+ "node": ">= 14.16.0"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/commander": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",+ "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/confbox": {+ "version": "0.1.8",+ "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.1.8.tgz",+ "integrity": "sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/consola": {+ "version": "3.4.2",+ "resolved": "https://registry.npmjs.org/consola/-/consola-3.4.2.tgz",+ "integrity": "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^14.18.0 || >=16.10.0"+ }+ },+ "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/deep-eql": {+ "version": "5.0.2",+ "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.2.tgz",+ "integrity": "sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/es-module-lexer": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.7.0.tgz",+ "integrity": "sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/esbuild": {+ "version": "0.27.4",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.4.tgz",+ "integrity": "sha512-Rq4vbHnYkK5fws5NF7MYTU68FPRE1ajX7heQ/8QXXWqNgqqJ/GkmmyxIzUnf2Sr/bakf8l54716CcMGHYhMrrQ==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.27.4",+ "@esbuild/android-arm": "0.27.4",+ "@esbuild/android-arm64": "0.27.4",+ "@esbuild/android-x64": "0.27.4",+ "@esbuild/darwin-arm64": "0.27.4",+ "@esbuild/darwin-x64": "0.27.4",+ "@esbuild/freebsd-arm64": "0.27.4",+ "@esbuild/freebsd-x64": "0.27.4",+ "@esbuild/linux-arm": "0.27.4",+ "@esbuild/linux-arm64": "0.27.4",+ "@esbuild/linux-ia32": "0.27.4",+ "@esbuild/linux-loong64": "0.27.4",+ "@esbuild/linux-mips64el": "0.27.4",+ "@esbuild/linux-ppc64": "0.27.4",+ "@esbuild/linux-riscv64": "0.27.4",+ "@esbuild/linux-s390x": "0.27.4",+ "@esbuild/linux-x64": "0.27.4",+ "@esbuild/netbsd-arm64": "0.27.4",+ "@esbuild/netbsd-x64": "0.27.4",+ "@esbuild/openbsd-arm64": "0.27.4",+ "@esbuild/openbsd-x64": "0.27.4",+ "@esbuild/openharmony-arm64": "0.27.4",+ "@esbuild/sunos-x64": "0.27.4",+ "@esbuild/win32-arm64": "0.27.4",+ "@esbuild/win32-ia32": "0.27.4",+ "@esbuild/win32-x64": "0.27.4"+ }+ },+ "node_modules/estree-walker": {+ "version": "3.0.3",+ "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",+ "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0"+ }+ },+ "node_modules/expect-type": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/expect-type/-/expect-type-1.3.0.tgz",+ "integrity": "sha512-knvyeauYhqjOYvQ66MznSMs83wmHrCycNEN6Ao+2AeYEfxUIkuiVxdEa1qlGEPK+We3n0THiDciYSsCcgW/DoA==",+ "dev": true,+ "license": "Apache-2.0",+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "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/fix-dts-default-cjs-exports": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/fix-dts-default-cjs-exports/-/fix-dts-default-cjs-exports-1.0.1.tgz",+ "integrity": "sha512-pVIECanWFC61Hzl2+oOCtoJ3F17kglZC/6N94eRWycFgBH35hHx0Li604ZIzhseh97mf2p0cv7vVrOZGoqhlEg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "magic-string": "^0.30.17",+ "mlly": "^1.7.4",+ "rollup": "^4.34.8"+ }+ },+ "node_modules/fsevents": {+ "version": "2.3.3",+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"+ }+ },+ "node_modules/headroom-ai": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/headroom-ai/-/headroom-ai-0.1.0.tgz",+ "integrity": "sha512-SM5i2kptwsO+KnQqpaLThZVx1ZrmobVw5JRXwF5OvnMvhV/3WbwUI+VvXHTwTCvVq+AAyhkhuVcNXod1piAVuQ==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=18.0.0"+ },+ "peerDependencies": {+ "@ai-sdk/provider": ">=1.0.0",+ "@anthropic-ai/sdk": ">=0.30.0",+ "ai": ">=6.0.0",+ "openai": ">=4.0.0"+ },+ "peerDependenciesMeta": {+ "@ai-sdk/provider": {+ "optional": true+ },+ "@anthropic-ai/sdk": {+ "optional": true+ },+ "ai": {+ "optional": true+ },+ "openai": {+ "optional": true+ }+ }+ },+ "node_modules/joycon": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/joycon/-/joycon-3.1.1.tgz",+ "integrity": "sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/lilconfig": {+ "version": "3.1.3",+ "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",+ "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14"+ },+ "funding": {+ "url": "https://github.com/sponsors/antonk52"+ }+ },+ "node_modules/lines-and-columns": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",+ "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/load-tsconfig": {+ "version": "0.2.5",+ "resolved": "https://registry.npmjs.org/load-tsconfig/-/load-tsconfig-0.2.5.tgz",+ "integrity": "sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ }+ },+ "node_modules/loupe": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.2.1.tgz",+ "integrity": "sha512-CdzqowRJCeLU72bHvWqwRBBlLcMEtIvGrlvef74kMnV2AolS9Y8xUv1I0U/MNAWMhBlKIoyuEgoJ0t/bbwHbLQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/magic-string": {+ "version": "0.30.21",+ "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz",+ "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/sourcemap-codec": "^1.5.5"+ }+ },+ "node_modules/mlly": {+ "version": "1.8.2",+ "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.8.2.tgz",+ "integrity": "sha512-d+ObxMQFmbt10sretNDytwt85VrbkhhUA/JBGm1MPaWJ65Cl4wOgLaB1NYvJSZ0Ef03MMEU/0xpPMXUIQ29UfA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "acorn": "^8.16.0",+ "pathe": "^2.0.3",+ "pkg-types": "^1.3.1",+ "ufo": "^1.6.3"+ }+ },+ "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/mz": {+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",+ "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "any-promise": "^1.0.0",+ "object-assign": "^4.0.1",+ "thenify-all": "^1.0.0"+ }+ },+ "node_modules/nanoid": {+ "version": "3.3.11",+ "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",+ "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",+ "dev": true,+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "bin": {+ "nanoid": "bin/nanoid.cjs"+ },+ "engines": {+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"+ }+ },+ "node_modules/object-assign": {+ "version": "4.1.1",+ "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",+ "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/pathe": {+ "version": "2.0.3",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz",+ "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/pathval": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.1.tgz",+ "integrity": "sha512-//nshmD55c46FuFw26xV/xFAaB5HF9Xdap7HJBBnrKdAd6/GxDBaNA1870O79+9ueg61cZLSVc+OaFlfmObYVQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 14.16"+ }+ },+ "node_modules/picocolors": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/picomatch": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",+ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/pirates": {+ "version": "4.0.7",+ "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",+ "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/pkg-types": {+ "version": "1.3.1",+ "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-1.3.1.tgz",+ "integrity": "sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "confbox": "^0.1.8",+ "mlly": "^1.7.4",+ "pathe": "^2.0.1"+ }+ },+ "node_modules/postcss": {+ "version": "8.5.8",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.8.tgz",+ "integrity": "sha512-OW/rX8O/jXnm82Ey1k44pObPtdblfiuWnrd8X7GJ7emImCOstunGbXUpp7HdBrFQX6rJzn3sPT397Wp5aCwCHg==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "tidelift",+ "url": "https://tidelift.com/funding/github/npm/postcss"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "nanoid": "^3.3.11",+ "picocolors": "^1.1.1",+ "source-map-js": "^1.2.1"+ },+ "engines": {+ "node": "^10 || ^12 || >=14"+ }+ },+ "node_modules/postcss-load-config": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz",+ "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==",+ "dev": true,+ "funding": [+ {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ {+ "type": "github",+ "url": "https://github.com/sponsors/ai"+ }+ ],+ "license": "MIT",+ "dependencies": {+ "lilconfig": "^3.1.1"+ },+ "engines": {+ "node": ">= 18"+ },+ "peerDependencies": {+ "jiti": ">=1.21.0",+ "postcss": ">=8.0.9",+ "tsx": "^4.8.1",+ "yaml": "^2.4.2"+ },+ "peerDependenciesMeta": {+ "jiti": {+ "optional": true+ },+ "postcss": {+ "optional": true+ },+ "tsx": {+ "optional": true+ },+ "yaml": {+ "optional": true+ }+ }+ },+ "node_modules/readdirp": {+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",+ "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">= 14.18.0"+ },+ "funding": {+ "type": "individual",+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/resolve-from": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",+ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/rollup": {+ "version": "4.60.0",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.0.tgz",+ "integrity": "sha512-yqjxruMGBQJ2gG4HtjZtAfXArHomazDHoFwFFmZZl0r7Pdo7qCIXKqKHZc8yeoMgzJJ+pO6pEEHa+V7uzWlrAQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "1.0.8"+ },+ "bin": {+ "rollup": "dist/bin/rollup"+ },+ "engines": {+ "node": ">=18.0.0",+ "npm": ">=8.0.0"+ },+ "optionalDependencies": {+ "@rollup/rollup-android-arm-eabi": "4.60.0",+ "@rollup/rollup-android-arm64": "4.60.0",+ "@rollup/rollup-darwin-arm64": "4.60.0",+ "@rollup/rollup-darwin-x64": "4.60.0",+ "@rollup/rollup-freebsd-arm64": "4.60.0",+ "@rollup/rollup-freebsd-x64": "4.60.0",+ "@rollup/rollup-linux-arm-gnueabihf": "4.60.0",+ "@rollup/rollup-linux-arm-musleabihf": "4.60.0",+ "@rollup/rollup-linux-arm64-gnu": "4.60.0",+ "@rollup/rollup-linux-arm64-musl": "4.60.0",+ "@rollup/rollup-linux-loong64-gnu": "4.60.0",+ "@rollup/rollup-linux-loong64-musl": "4.60.0",+ "@rollup/rollup-linux-ppc64-gnu": "4.60.0",+ "@rollup/rollup-linux-ppc64-musl": "4.60.0",+ "@rollup/rollup-linux-riscv64-gnu": "4.60.0",+ "@rollup/rollup-linux-riscv64-musl": "4.60.0",+ "@rollup/rollup-linux-s390x-gnu": "4.60.0",+ "@rollup/rollup-linux-x64-gnu": "4.60.0",+ "@rollup/rollup-linux-x64-musl": "4.60.0",+ "@rollup/rollup-openbsd-x64": "4.60.0",+ "@rollup/rollup-openharmony-arm64": "4.60.0",+ "@rollup/rollup-win32-arm64-msvc": "4.60.0",+ "@rollup/rollup-win32-ia32-msvc": "4.60.0",+ "@rollup/rollup-win32-x64-gnu": "4.60.0",+ "@rollup/rollup-win32-x64-msvc": "4.60.0",+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/siginfo": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/siginfo/-/siginfo-2.0.0.tgz",+ "integrity": "sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==",+ "dev": true,+ "license": "ISC"+ },+ "node_modules/source-map": {+ "version": "0.7.6",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.6.tgz",+ "integrity": "sha512-i5uvt8C3ikiWeNZSVZNWcfZPItFQOsYTUAOkcUPGd8DqDy1uOUikjt5dG+uRlwyvR108Fb9DOd4GvXfT0N2/uQ==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">= 12"+ }+ },+ "node_modules/source-map-js": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",+ "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",+ "dev": true,+ "license": "BSD-3-Clause",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/stackback": {+ "version": "0.0.2",+ "resolved": "https://registry.npmjs.org/stackback/-/stackback-0.0.2.tgz",+ "integrity": "sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/std-env": {+ "version": "3.10.0",+ "resolved": "https://registry.npmjs.org/std-env/-/std-env-3.10.0.tgz",+ "integrity": "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/sucrase": {+ "version": "3.35.1",+ "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz",+ "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@jridgewell/gen-mapping": "^0.3.2",+ "commander": "^4.0.0",+ "lines-and-columns": "^1.1.6",+ "mz": "^2.7.0",+ "pirates": "^4.0.1",+ "tinyglobby": "^0.2.11",+ "ts-interface-checker": "^0.1.9"+ },+ "bin": {+ "sucrase": "bin/sucrase",+ "sucrase-node": "bin/sucrase-node"+ },+ "engines": {+ "node": ">=16 || 14 >=14.17"+ }+ },+ "node_modules/thenify": {+ "version": "3.3.1",+ "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",+ "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "any-promise": "^1.0.0"+ }+ },+ "node_modules/thenify-all": {+ "version": "1.6.0",+ "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",+ "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "thenify": ">= 3.1.0 < 4"+ },+ "engines": {+ "node": ">=0.8"+ }+ },+ "node_modules/tinybench": {+ "version": "2.9.0",+ "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz",+ "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tinyexec": {+ "version": "0.3.2",+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-0.3.2.tgz",+ "integrity": "sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/tinyglobby": {+ "version": "0.2.15",+ "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",+ "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "fdir": "^6.5.0",+ "picomatch": "^4.0.3"+ },+ "engines": {+ "node": ">=12.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/SuperchupuDev"+ }+ },+ "node_modules/tinypool": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/tinypool/-/tinypool-1.1.1.tgz",+ "integrity": "sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ }+ },+ "node_modules/tinyrainbow": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-1.2.0.tgz",+ "integrity": "sha512-weEDEq7Z5eTHPDh4xjX789+fHfF+P8boiFB+0vbWzpbnbsEr/GRaohi/uMKxg8RZMXnl1ItAi/IUHWMsjDV7kQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/tinyspy": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-3.0.2.tgz",+ "integrity": "sha512-n1cw8k1k0x4pgA2+9XrOkFydTerNcJ1zWCO5Nn9scWHTD+5tp8dghT2x1uduQePZTZgd3Tupf+x9BxJjeJi77Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/tree-kill": {+ "version": "1.2.2",+ "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz",+ "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "tree-kill": "cli.js"+ }+ },+ "node_modules/ts-interface-checker": {+ "version": "0.1.13",+ "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",+ "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==",+ "dev": true,+ "license": "Apache-2.0"+ },+ "node_modules/tsup": {+ "version": "8.5.1",+ "resolved": "https://registry.npmjs.org/tsup/-/tsup-8.5.1.tgz",+ "integrity": "sha512-xtgkqwdhpKWr3tKPmCkvYmS9xnQK3m3XgxZHwSUjvfTjp7YfXe5tT3GgWi0F2N+ZSMsOeWeZFh7ZZFg5iPhing==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "bundle-require": "^5.1.0",+ "cac": "^6.7.14",+ "chokidar": "^4.0.3",+ "consola": "^3.4.0",+ "debug": "^4.4.0",+ "esbuild": "^0.27.0",+ "fix-dts-default-cjs-exports": "^1.0.0",+ "joycon": "^3.1.1",+ "picocolors": "^1.1.1",+ "postcss-load-config": "^6.0.1",+ "resolve-from": "^5.0.0",+ "rollup": "^4.34.8",+ "source-map": "^0.7.6",+ "sucrase": "^3.35.0",+ "tinyexec": "^0.3.2",+ "tinyglobby": "^0.2.11",+ "tree-kill": "^1.2.2"+ },+ "bin": {+ "tsup": "dist/cli-default.js",+ "tsup-node": "dist/cli-node.js"+ },+ "engines": {+ "node": ">=18"+ },+ "peerDependencies": {+ "@microsoft/api-extractor": "^7.36.0",+ "@swc/core": "^1",+ "postcss": "^8.4.12",+ "typescript": ">=4.5.0"+ },+ "peerDependenciesMeta": {+ "@microsoft/api-extractor": {+ "optional": true+ },+ "@swc/core": {+ "optional": true+ },+ "postcss": {+ "optional": true+ },+ "typescript": {+ "optional": true+ }+ }+ },+ "node_modules/typescript": {+ "version": "5.9.3",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",+ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",+ "dev": true,+ "license": "Apache-2.0",+ "bin": {+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"+ },+ "engines": {+ "node": ">=14.17"+ }+ },+ "node_modules/ufo": {+ "version": "1.6.3",+ "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.6.3.tgz",+ "integrity": "sha512-yDJTmhydvl5lJzBmy/hyOAA0d+aqCBuwl818haVdYCRrWV84o7YyeVm4QlVHStqNrrJSTb6jKuFAVqAFsr+K3Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/vite": {+ "version": "5.4.21",+ "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",+ "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "^0.21.3",+ "postcss": "^8.4.43",+ "rollup": "^4.20.0"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^18.0.0 || >=20.0.0",+ "less": "*",+ "lightningcss": "^1.21.0",+ "sass": "*",+ "sass-embedded": "*",+ "stylus": "*",+ "sugarss": "*",+ "terser": "^5.4.0"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "lightningcss": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "optional": true+ }+ }+ },+ "node_modules/vite-node": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-2.1.9.tgz",+ "integrity": "sha512-AM9aQ/IPrW/6ENLQg3AGY4K1N2TGZdR5e4gu/MmmR2xR3Ll1+dib+nook92g4TV3PXVyeyxdWwtaCAiUL0hMxA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cac": "^6.7.14",+ "debug": "^4.3.7",+ "es-module-lexer": "^1.5.4",+ "pathe": "^1.1.2",+ "vite": "^5.0.0"+ },+ "bin": {+ "vite-node": "vite-node.mjs"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/vite-node/node_modules/pathe": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",+ "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/vite/node_modules/@esbuild/aix-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",+ "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/android-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",+ "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/android-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",+ "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/android-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",+ "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/darwin-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",+ "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/darwin-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",+ "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/freebsd-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",+ "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/freebsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",+ "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",+ "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",+ "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",+ "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-loong64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",+ "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-mips64el": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",+ "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",+ "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-riscv64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",+ "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-s390x": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",+ "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/linux-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",+ "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/netbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",+ "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/openbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",+ "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/sunos-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",+ "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/win32-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",+ "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/win32-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",+ "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/@esbuild/win32-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",+ "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/vite/node_modules/esbuild": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",+ "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=12"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.21.5",+ "@esbuild/android-arm": "0.21.5",+ "@esbuild/android-arm64": "0.21.5",+ "@esbuild/android-x64": "0.21.5",+ "@esbuild/darwin-arm64": "0.21.5",+ "@esbuild/darwin-x64": "0.21.5",+ "@esbuild/freebsd-arm64": "0.21.5",+ "@esbuild/freebsd-x64": "0.21.5",+ "@esbuild/linux-arm": "0.21.5",+ "@esbuild/linux-arm64": "0.21.5",+ "@esbuild/linux-ia32": "0.21.5",+ "@esbuild/linux-loong64": "0.21.5",+ "@esbuild/linux-mips64el": "0.21.5",+ "@esbuild/linux-ppc64": "0.21.5",+ "@esbuild/linux-riscv64": "0.21.5",+ "@esbuild/linux-s390x": "0.21.5",+ "@esbuild/linux-x64": "0.21.5",+ "@esbuild/netbsd-x64": "0.21.5",+ "@esbuild/openbsd-x64": "0.21.5",+ "@esbuild/sunos-x64": "0.21.5",+ "@esbuild/win32-arm64": "0.21.5",+ "@esbuild/win32-ia32": "0.21.5",+ "@esbuild/win32-x64": "0.21.5"+ }+ },+ "node_modules/vitest": {+ "version": "2.1.9",+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-2.1.9.tgz",+ "integrity": "sha512-MSmPM9REYqDGBI8439mA4mWhV5sKmDlBKWIYbA3lRb2PTHACE0mgKwA8yQ2xq9vxDTuk4iPrECBAEW2aoFXY0Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/expect": "2.1.9",+ "@vitest/mocker": "2.1.9",+ "@vitest/pretty-format": "^2.1.9",+ "@vitest/runner": "2.1.9",+ "@vitest/snapshot": "2.1.9",+ "@vitest/spy": "2.1.9",+ "@vitest/utils": "2.1.9",+ "chai": "^5.1.2",+ "debug": "^4.3.7",+ "expect-type": "^1.1.0",+ "magic-string": "^0.30.12",+ "pathe": "^1.1.2",+ "std-env": "^3.8.0",+ "tinybench": "^2.9.0",+ "tinyexec": "^0.3.1",+ "tinypool": "^1.0.1",+ "tinyrainbow": "^1.2.0",+ "vite": "^5.0.0",+ "vite-node": "2.1.9",+ "why-is-node-running": "^2.3.0"+ },+ "bin": {+ "vitest": "vitest.mjs"+ },+ "engines": {+ "node": "^18.0.0 || >=20.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "@edge-runtime/vm": "*",+ "@types/node": "^18.0.0 || >=20.0.0",+ "@vitest/browser": "2.1.9",+ "@vitest/ui": "2.1.9",+ "happy-dom": "*",+ "jsdom": "*"+ },+ "peerDependenciesMeta": {+ "@edge-runtime/vm": {+ "optional": true+ },+ "@types/node": {+ "optional": true+ },+ "@vitest/browser": {+ "optional": true+ },+ "@vitest/ui": {+ "optional": true+ },+ "happy-dom": {+ "optional": true+ },+ "jsdom": {+ "optional": true+ }+ }+ },+ "node_modules/vitest/node_modules/pathe": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz",+ "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/why-is-node-running": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/why-is-node-running/-/why-is-node-running-2.3.0.tgz",+ "integrity": "sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "siginfo": "^2.0.0",+ "stackback": "0.0.2"+ },+ "bin": {+ "why-is-node-running": "cli.js"+ },+ "engines": {+ "node": ">=8"+ }+ }+ }+}diff --git a/plugins/openclaw/package.json b/plugins/openclaw/package.jsonnew file mode 100644index 000000000..4c02e9520--- /dev/null+++ b/plugins/openclaw/package.json@@ -0,0 +1,30 @@+{+ "name": "@headroom-ai/openclaw",+ "version": "0.1.0",+ "description": "Headroom context compression plugin for OpenClaw — 70-90% token savings with zero LLM calls",+ "type": "module",+ "main": "./dist/index.js",+ "types": "./dist/index.d.ts",+ "files": ["dist", "openclaw.plugin.json", "README.md"],+ "scripts": {+ "build": "tsup",+ "test": "vitest run",+ "test:watch": "vitest",+ "typecheck": "tsc --noEmit"+ },+ "dependencies": {+ "headroom-ai": "^0.1.0"+ },+ "peerDependencies": {+ "openclaw": "*"+ },+ "peerDependenciesMeta": {+ "openclaw": { "optional": true }+ },+ "devDependencies": {+ "typescript": "^5.5.0",+ "vitest": "^2.0.0",+ "tsup": "^8.0.0"+ },+ "license": "Apache-2.0"+}diff --git a/plugins/openclaw/src/convert.ts b/plugins/openclaw/src/convert.tsnew file mode 100644index 000000000..6c0b18302--- /dev/null+++ b/plugins/openclaw/src/convert.ts@@ -0,0 +1,206 @@+/**+ * Convert between OpenClaw's AgentMessage format and OpenAI message format.+ *+ * AgentMessage uses:+ * role: "user" | "assistant" | "toolResult"+ * content: string | ContentBlock[]+ *+ * OpenAI uses:+ * role: "user" | "assistant" | "system" | "tool"+ * content: string+ * tool_calls?: ToolCall[]+ * tool_call_id?: string+ */++/* eslint-disable @typescript-eslint/no-explicit-any */++export interface OpenAIMessage {+ role: string;+ content: string | null;+ tool_calls?: any[];+ tool_call_id?: string;+ name?: string;+}++/**+ * Convert AgentMessage[] to OpenAI message format for compression.+ */+export function agentToOpenAI(messages: any[]): OpenAIMessage[] {+ const result: OpenAIMessage[] = [];++ for (const msg of messages) {+ const role = msg.role;++ if (role === "system") {+ result.push({+ role: "system",+ content: typeof msg.content === "string" ? msg.content : extractText(msg.content),+ });+ continue;+ }++ if (role === "user") {+ result.push({+ role: "user",+ content: typeof msg.content === "string" ? msg.content : extractText(msg.content),+ });+ continue;+ }++ if (role === "assistant") {+ const content = msg.content;+ if (typeof content === "string") {+ result.push({ role: "assistant", content });+ continue;+ }++ // Content blocks: extract text and tool_use blocks+ if (Array.isArray(content)) {+ const textParts: string[] = [];+ const toolCalls: any[] = [];++ for (const block of content) {+ if (typeof block === "string") {+ textParts.push(block);+ } else if (block.type === "text") {+ textParts.push(block.text);+ } else if (block.type === "tool_use") {+ toolCalls.push({+ id: block.id,+ type: "function",+ function: {+ name: block.name,+ arguments:+ typeof block.input === "string"+ ? block.input+ : JSON.stringify(block.input ?? {}),+ },+ });+ }+ }++ const openaiMsg: OpenAIMessage = {+ role: "assistant",+ content: textParts.length > 0 ? textParts.join("") : null,+ };+ if (toolCalls.length > 0) {+ openaiMsg.tool_calls = toolCalls;+ }+ result.push(openaiMsg);+ }+ continue;+ }++ if (role === "toolResult" || role === "tool_result") {+ const content =+ typeof msg.content === "string"+ ? msg.content+ : Array.isArray(msg.content)+ ? extractText(msg.content)+ : JSON.stringify(msg.content);++ result.push({+ role: "tool",+ content,+ tool_call_id: msg.tool_use_id ?? msg.toolCallId ?? msg.id ?? "unknown",+ });+ continue;+ }++ // Fallback: pass through as user message+ result.push({+ role: "user",+ content: typeof msg.content === "string" ? msg.content : JSON.stringify(msg.content),+ });+ }++ return result;+}++/**+ * Convert compressed OpenAI messages back to AgentMessage format.+ */+export function openAIToAgent(messages: OpenAIMessage[]): any[] {+ const result: any[] = [];++ for (const msg of messages) {+ if (msg.role === "system") {+ result.push({+ role: "system",+ content: msg.content ?? "",+ timestamp: Date.now(),+ });+ continue;+ }++ if (msg.role === "user") {+ result.push({+ role: "user",+ content: msg.content ?? "",+ timestamp: Date.now(),+ });+ continue;+ }++ if (msg.role === "assistant") {+ const blocks: any[] = [];+ if (msg.content) {+ blocks.push({ type: "text", text: msg.content });+ }+ if (msg.tool_calls) {+ for (const tc of msg.tool_calls) {+ let input: any;+ try {+ input = JSON.parse(tc.function.arguments);+ } catch {+ input = tc.function.arguments ?? {};+ }+ blocks.push({+ type: "tool_use",+ id: tc.id,+ name: tc.function.name,+ input,+ });+ }+ }+ result.push({+ role: "assistant",+ content: blocks.length === 1 && blocks[0].type === "text" ? blocks[0].text : blocks,+ timestamp: Date.now(),+ });+ continue;+ }++ if (msg.role === "tool") {+ result.push({+ role: "toolResult",+ content: msg.content ?? "",+ tool_use_id: msg.tool_call_id ?? "unknown",+ timestamp: Date.now(),+ });+ continue;+ }+ }++ return result;+}++/**+ * Extract text from content blocks.+ */+function extractText(content: any): string {+ if (typeof content === "string") return content;+ if (!Array.isArray(content)) return JSON.stringify(content);++ return content+ .map((block: any) => {+ if (typeof block === "string") return block;+ if (block.type === "text") return block.text;+ if (block.type === "tool_result") {+ return typeof block.content === "string" ? block.content : JSON.stringify(block.content);+ }+ return "";+ })+ .filter(Boolean)+ .join("\n");+}diff --git a/plugins/openclaw/src/engine.ts b/plugins/openclaw/src/engine.tsnew file mode 100644index 000000000..4735a0252--- /dev/null+++ b/plugins/openclaw/src/engine.ts@@ -0,0 +1,221 @@+/**+ * HeadroomContextEngine — ContextEngine implementation for OpenClaw.+ *+ * Compresses tool outputs and conversation context using the Headroom proxy.+ * Zero LLM calls — all compression is algorithmic (SmartCrusher, ContentRouter, etc.)+ */++/* eslint-disable @typescript-eslint/no-explicit-any */++import { compress } from "headroom-ai";+import { ProxyManager, type ProxyManagerConfig, type ProxyManagerLogger } from "./proxy-manager.js";+import { agentToOpenAI, openAIToAgent } from "./convert.js";++export interface HeadroomEngineConfig extends ProxyManagerConfig {+ enabled?: boolean;+}++export class HeadroomContextEngine {+ readonly info = {+ id: "headroom",+ name: "Headroom Context Compression",+ version: "0.1.0",+ ownsCompaction: true,+ };++ private proxyManager: ProxyManager;+ private proxyUrl: string | null = null;+ private config: HeadroomEngineConfig;+ private logger: ProxyManagerLogger;+ private stats = {+ totalCompressions: 0,+ totalTokensSaved: 0,+ totalTokensBefore: 0,+ compactions: 0,+ };++ constructor(config: HeadroomEngineConfig = {}, logger?: ProxyManagerLogger) {+ this.config = config;+ this.logger = logger ?? {+ info: (m) => console.log(`[headroom] ${m}`),+ warn: (m) => console.warn(`[headroom] ${m}`),+ error: (m) => console.error(`[headroom] ${m}`),+ debug: () => {},+ };+ this.proxyManager = new ProxyManager(config, this.logger);+ }++ // === ContextEngine Lifecycle ===++ async bootstrap(params: {+ sessionId: string;+ sessionKey?: string;+ sessionFile: string;+ }): Promise<{ bootstrapped: boolean; reason?: string }> {+ if (this.config.enabled === false) {+ return { bootstrapped: false, reason: "disabled" };+ }++ try {+ this.proxyUrl = await this.proxyManager.start();+ this.logger.info(`Engine bootstrapped (proxy: ${this.proxyUrl})`);+ return { bootstrapped: true };+ } catch (error) {+ this.logger.error(`Bootstrap failed: ${error}`);+ return { bootstrapped: false, reason: String(error) };+ }+ }++ async ingest(params: {+ sessionId: string;+ message: any;+ isHeartbeat?: boolean;+ }): Promise<{ ingested: boolean }> {+ // No-op: OpenClaw's runtime stores messages. We don't need a separate store.+ return { ingested: true };+ }++ async ingestBatch?(params: {+ sessionId: string;+ messages: any[];+ isHeartbeat?: boolean;+ }): Promise<{ ingestedCount: number }> {+ return { ingestedCount: params.messages.length };+ }++ /**+ * Assemble context for the model — THE CORE HOOK.+ *+ * Converts AgentMessage[] → OpenAI format → compress() → AgentMessage[]+ */+ async assemble(params: {+ sessionId: string;+ messages: any[];+ tokenBudget?: number;+ model?: string;+ prompt?: string;+ }): Promise<{+ messages: any[];+ estimatedTokens: number;+ systemPromptAddition?: string;+ }> {+ if (!this.proxyUrl || this.config.enabled === false) {+ // Fallback: return messages unchanged+ return { messages: params.messages, estimatedTokens: 0 };+ }++ try {+ // Convert AgentMessage → OpenAI format+ const openaiMessages = agentToOpenAI(params.messages);++ // Compress via proxy+ const result = await compress(openaiMessages, {+ model: params.model ?? "claude-sonnet-4-5",+ baseUrl: this.proxyUrl,+ fallback: true,+ });++ if (!result.compressed || result.tokensSaved === 0) {+ return { messages: params.messages, estimatedTokens: result.tokensBefore };+ }++ // Convert back to AgentMessage format+ const compressedAgentMessages = openAIToAgent(result.messages);++ // Track stats+ this.stats.totalCompressions++;+ this.stats.totalTokensSaved += result.tokensSaved;+ this.stats.totalTokensBefore += result.tokensBefore;++ this.logger.debug(+ `Assembled: ${result.tokensBefore} → ${result.tokensAfter} tokens (saved ${result.tokensSaved})`,+ );++ return {+ messages: compressedAgentMessages,+ estimatedTokens: result.tokensAfter,+ systemPromptAddition:+ result.tokensSaved > 100+ ? `[Context compressed by Headroom: ${result.tokensSaved} tokens saved. Use headroom_retrieve with the hash to get full details.]`+ : undefined,+ };+ } catch (error) {+ this.logger.error(`Assemble failed: ${error}`);+ // Graceful fallback: return original messages+ return { messages: params.messages, estimatedTokens: 0 };+ }+ }++ /**+ * Compact context — zero-cost alternative to LLM summarization.+ *+ * Uses CCR: originals stored in proxy, agent gets compressed version + retrieval tool.+ */+ async compact(params: {+ sessionId: string;+ sessionFile: string;+ tokenBudget?: number;+ force?: boolean;+ }): Promise<{+ ok: boolean;+ compacted: boolean;+ reason?: string;+ result?: {+ tokensBefore: number;+ tokensAfter?: number;+ };+ }> {+ // Compaction is handled naturally through assemble() — each turn gets compressed.+ // When compact() is explicitly called (e.g., /compact command), we report success+ // because our assemble() already keeps context within budget.+ this.stats.compactions++;+ return {+ ok: true,+ compacted: true,+ reason: "Headroom compresses context on every assemble() call — no separate compaction needed",+ };+ }++ async afterTurn?(params: {+ sessionId: string;+ messages: any[];+ prePromptMessageCount: number;+ isHeartbeat?: boolean;+ }): Promise<void> {+ // Optional: could log stats or trigger learning+ }++ async prepareSubagentSpawn?(params: {+ parentSessionKey: string;+ childSessionKey: string;+ ttlMs?: number;+ }): Promise<{ rollback: () => Promise<void> } | undefined> {+ // Subagent context is compressed naturally via assemble()+ return undefined;+ }++ async onSubagentEnded?(params: {+ childSessionKey: string;+ reason: string;+ }): Promise<void> {+ // No-op+ }++ async dispose(): Promise<void> {+ await this.proxyManager.stop();+ this.logger.info(+ `Engine disposed. Stats: ${this.stats.totalCompressions} compressions, ` ++ `${this.stats.totalTokensSaved} tokens saved`,+ );+ }++ // --- Public API ---++ getStats() {+ return { ...this.stats };+ }++ getProxyUrl(): string | null {+ return this.proxyUrl;+ }+}diff --git a/plugins/openclaw/src/index.ts b/plugins/openclaw/src/index.tsnew file mode 100644index 000000000..266942e86--- /dev/null+++ b/plugins/openclaw/src/index.ts@@ -0,0 +1,5 @@+export { default } from "./plugin/index.js";+export { HeadroomContextEngine } from "./engine.js";+export { ProxyManager } from "./proxy-manager.js";+export { agentToOpenAI, openAIToAgent } from "./convert.js";+export { createHeadroomRetrieveTool } from "./tools/headroom-retrieve.js";diff --git a/plugins/openclaw/src/plugin/index.ts b/plugins/openclaw/src/plugin/index.tsnew file mode 100644index 000000000..c89ec32d4--- /dev/null+++ b/plugins/openclaw/src/plugin/index.ts@@ -0,0 +1,50 @@+/**+ * Headroom OpenClaw Plugin — register ContextEngine + CCR retrieval tool.+ *+ * Usage:+ * openclaw plugins install @headroom-ai/openclaw+ *+ * Configuration (in ~/.openclaw/config.json):+ * {+ * "plugins": {+ * "slots": { "contextEngine": "headroom" },+ * "entries": {+ * "headroom": {+ * "config": {+ * "proxyUrl": "http://localhost:8787", // optional, auto-detected+ * "autoStart": true // start proxy if not running+ * }+ * }+ * }+ * }+ * }+ */++/* eslint-disable @typescript-eslint/no-explicit-any */++import { HeadroomContextEngine } from "../engine.js";+import { createHeadroomRetrieveTool } from "../tools/headroom-retrieve.js";++export default function headroomPlugin(api: any) {+ const config = api.config?.plugins?.entries?.headroom?.config ?? {};+ const logger = api.logger ?? console;++ const engine = new HeadroomContextEngine(config, {+ info: (m: string) => logger.info(m),+ warn: (m: string) => logger.warn(m),+ error: (m: string) => logger.error(m),+ debug: (m: string) => logger.debug?.(m),+ });++ // Register as context engine+ api.registerContextEngine("headroom", () => engine);++ // Register CCR retrieval tool (available once proxy is running)+ api.registerTool((ctx: any) => {+ const proxyUrl = engine.getProxyUrl();+ if (!proxyUrl) return null;+ return createHeadroomRetrieveTool({ proxyUrl });+ });++ logger.info("[headroom] Plugin registered");+}diff --git a/plugins/openclaw/src/proxy-manager.ts b/plugins/openclaw/src/proxy-manager.tsnew file mode 100644index 000000000..42f797dae--- /dev/null+++ b/plugins/openclaw/src/proxy-manager.ts@@ -0,0 +1,297 @@+/**+ * Manages the Headroom proxy process lifecycle.+ *+ * - Detects if a proxy is already running (e.g., user has `headroom proxy` for Claude Code)+ * - If not, spawns one as a child process with auto-assigned port+ * - Health checks, restart on crash, graceful shutdown+ */++import { spawn, type ChildProcess } from "node:child_process";+import { createWriteStream } from "node:fs";+import { join } from "node:path";+import { homedir } from "node:os";++const DEFAULT_PORT = 8787;+const HEALTH_CHECK_INTERVAL_MS = 30_000;+const STARTUP_TIMEOUT_MS = 15_000;+const RESTART_DELAY_MS = 2_000;+const MAX_RESTART_ATTEMPTS = 3;++export interface ProxyManagerConfig {+ proxyUrl?: string;+ pythonPath?: string;+ autoStart?: boolean;+ proxyPort?: number;+}++export interface ProxyManagerLogger {+ info(message: string): void;+ warn(message: string): void;+ error(message: string): void;+ debug(message: string): void;+}++const defaultLogger: ProxyManagerLogger = {+ info: (m) => console.log(`[headroom] ${m}`),+ warn: (m) => console.warn(`[headroom] ${m}`),+ error: (m) => console.error(`[headroom] ${m}`),+ debug: () => {},+};++export class ProxyManager {+ private config: ProxyManagerConfig;+ private logger: ProxyManagerLogger;+ private process: ChildProcess | null = null;+ private proxyUrl: string | null = null;+ private weStartedIt = false;+ private restartCount = 0;+ private healthInterval: ReturnType<typeof setInterval> | null = null;+ private disposed = false;++ constructor(config: ProxyManagerConfig = {}, logger?: ProxyManagerLogger) {+ this.config = config;+ this.logger = logger ?? defaultLogger;+ }++ /**+ * Ensure a proxy is available. Returns the URL.+ *+ * 1. If proxyUrl is configured, use it+ * 2. Check if proxy is already running on default port+ * 3. If autoStart, spawn one+ */+ async start(): Promise<string> {+ // Option 1: Explicit URL configured+ if (this.config.proxyUrl) {+ const url = this.config.proxyUrl.replace(/\/+$/, "");+ if (await this.healthCheck(url)) {+ this.proxyUrl = url;+ this.logger.info(`Connected to proxy at ${url}`);+ return url;+ }+ throw new Error(`Headroom proxy not reachable at ${url}`);+ }++ // Option 2: Check default port+ const defaultUrl = `http://127.0.0.1:${DEFAULT_PORT}`;+ if (await this.healthCheck(defaultUrl)) {+ this.proxyUrl = defaultUrl;+ this.logger.info(`Found running proxy at ${defaultUrl}`);+ this.startHealthMonitor();+ return defaultUrl;+ }++ // Option 3: Auto-start+ if (this.config.autoStart !== false) {+ return this.spawnProxy();+ }++ throw new Error(+ "Headroom proxy not running. Start with: headroom proxy --port 8787\n" ++ "Or install: pip install 'headroom-ai[proxy]'",+ );+ }++ /**+ * Spawn the headroom proxy as a child process.+ */+ private async spawnProxy(): Promise<string> {+ const pythonPath = await this.findPython();+ if (!pythonPath) {+ throw new Error(+ "Python not found. Install Python 3.10+ and run: pip install 'headroom-ai[proxy]'",+ );+ }++ // Check if headroom-ai is installed+ const installed = await this.checkHeadroomInstalled(pythonPath);+ if (!installed) {+ throw new Error(+ "headroom-ai Python package not found.\n" ++ "Install with: pip install 'headroom-ai[proxy]'",+ );+ }++ const port = this.config.proxyPort ?? 0; // 0 = OS picks a free port+ const actualPort = port === 0 ? await this.findFreePort() : port;+ const url = `http://127.0.0.1:${actualPort}`;++ this.logger.info(`Starting proxy on port ${actualPort}...`);++ // Log file+ const logDir = join(homedir(), ".headroom", "logs");+ const logPath = join(logDir, "openclaw-proxy.log");++ let logStream: ReturnType<typeof createWriteStream> | null = null;+ try {+ const { mkdirSync } = await import("node:fs");+ mkdirSync(logDir, { recursive: true });+ logStream = createWriteStream(logPath, { flags: "a" });+ } catch {+ // Can't create log file — use /dev/null+ }++ const proc = spawn(+ pythonPath,+ ["-m", "headroom.cli", "proxy", "--port", String(actualPort)],+ {+ env: { ...process.env, PYTHONIOENCODING: "utf-8" },+ stdio: ["ignore", logStream ? "pipe" : "ignore", logStream ? "pipe" : "ignore"],+ detached: false,+ },+ );++ if (logStream) {+ proc.stdout?.pipe(logStream);+ proc.stderr?.pipe(logStream);+ }++ proc.on("exit", (code) => {+ if (!this.disposed && this.weStartedIt) {+ this.logger.warn(`Proxy exited with code ${code}`);+ this.handleCrash();+ }+ });++ this.process = proc;+ this.weStartedIt = true;++ // Wait for healthy+ const healthy = await this.waitForHealthy(url, STARTUP_TIMEOUT_MS);+ if (!healthy) {+ proc.kill();+ this.process = null;+ throw new Error(+ `Proxy failed to start within ${STARTUP_TIMEOUT_MS / 1000}s. Check ${logPath}`,+ );+ }++ this.proxyUrl = url;+ this.logger.info(`Proxy started on port ${actualPort} (PID: ${proc.pid})`);+ this.startHealthMonitor();+ return url;+ }++ /**+ * Stop the proxy if we started it.+ */+ async stop(): Promise<void> {+ this.disposed = true;+ if (this.healthInterval) {+ clearInterval(this.healthInterval);+ this.healthInterval = null;+ }+ if (this.process && this.weStartedIt) {+ this.logger.info("Stopping proxy...");+ this.process.kill("SIGTERM");+ // Give it 3s to shutdown gracefully+ await new Promise<void>((resolve) => {+ const timeout = setTimeout(() => {+ this.process?.kill("SIGKILL");+ resolve();+ }, 3000);+ this.process?.on("exit", () => {+ clearTimeout(timeout);+ resolve();+ });+ });+ this.process = null;+ }+ }++ getUrl(): string | null {+ return this.proxyUrl;+ }++ // --- Internal ---++ private async healthCheck(url: string): Promise<boolean> {+ try {+ const resp = await fetch(`${url}/health`, {+ signal: AbortSignal.timeout(3000),+ });+ return resp.ok;+ } catch {+ return false;+ }+ }++ private async waitForHealthy(url: string, timeoutMs: number): Promise<boolean> {+ const start = Date.now();+ while (Date.now() - start < timeoutMs) {+ if (await this.healthCheck(url)) return true;+ await new Promise((r) => setTimeout(r, 500));+ }+ return false;+ }++ private startHealthMonitor(): void {+ if (this.healthInterval) return;+ this.healthInterval = setInterval(async () => {+ if (this.proxyUrl && !(await this.healthCheck(this.proxyUrl))) {+ this.logger.warn("Proxy health check failed");+ if (this.weStartedIt) this.handleCrash();+ }+ }, HEALTH_CHECK_INTERVAL_MS);+ }++ private async handleCrash(): Promise<void> {+ if (this.disposed) return;+ if (this.restartCount >= MAX_RESTART_ATTEMPTS) {+ this.logger.error(`Proxy crashed ${MAX_RESTART_ATTEMPTS} times. Giving up.`);+ return;+ }+ this.restartCount++;+ this.logger.info(`Restarting proxy (attempt ${this.restartCount}/${MAX_RESTART_ATTEMPTS})...`);+ await new Promise((r) => setTimeout(r, RESTART_DELAY_MS));+ try {+ await this.spawnProxy();+ } catch (e) {+ this.logger.error(`Restart failed: ${e}`);+ }+ }++ private async findPython(): Promise<string | null> {+ if (this.config.pythonPath) return this.config.pythonPath;++ for (const cmd of ["python3", "python"]) {+ try {+ const { execSync } = await import("node:child_process");+ const version = execSync(`${cmd} --version 2>&1`, { encoding: "utf-8" }).trim();+ if (version.includes("Python 3.")) return cmd;+ } catch {+ continue;+ }+ }+ return null;+ }++ private async checkHeadroomInstalled(pythonPath: string): Promise<boolean> {+ try {+ const { execSync } = await import("node:child_process");+ execSync(`${pythonPath} -c "import headroom"`, {+ encoding: "utf-8",+ stdio: "pipe",+ });+ return true;+ } catch {+ return false;+ }+ }++ private async findFreePort(): Promise<number> {+ const { createServer } = await import("node:net");+ return new Promise((resolve, reject) => {+ const server = createServer();+ server.listen(0, () => {+ const addr = server.address();+ if (addr && typeof addr === "object") {+ const port = addr.port;+ server.close(() => resolve(port));+ } else {+ reject(new Error("Could not find free port"));+ }+ });+ });+ }+}diff --git a/plugins/openclaw/src/tools/headroom-retrieve.ts b/plugins/openclaw/src/tools/headroom-retrieve.tsnew file mode 100644index 000000000..7373a0b07--- /dev/null+++ b/plugins/openclaw/src/tools/headroom-retrieve.ts@@ -0,0 +1,73 @@+/**+ * CCR (Compress-Cache-Retrieve) tool for OpenClaw.+ *+ * Allows the agent to retrieve original uncompressed content+ * from the Headroom proxy's compression store.+ */++/* eslint-disable @typescript-eslint/no-explicit-any */++export interface RetrieveToolConfig {+ proxyUrl: string;+}++export function createHeadroomRetrieveTool(config: RetrieveToolConfig) {+ return {+ name: "headroom_retrieve",+ description:+ "Retrieve original uncompressed content from Headroom's compression store. " ++ "Use when compressed context mentions a hash and you need the full details. " ++ "Pass the hash from the compression marker (24 hex characters). " ++ "Optionally pass a query to search within the original content.",+ parameters: {+ type: "object" as const,+ properties: {+ hash: {+ type: "string",+ description: "The 24-character hex hash from the compression marker",+ },+ query: {+ type: "string",+ description: "Optional search query to filter results within the original content",+ },+ },+ required: ["hash"],+ },+ execute: async (args: { hash: string; query?: string }): Promise<string> => {+ const { hash, query } = args;++ // Validate hash format+ if (!/^[a-f0-9]{24}$/i.test(hash)) {+ return JSON.stringify({+ error: "Invalid hash format. Expected 24 hex characters.",+ });+ }++ try {+ const url = query+ ? `${config.proxyUrl}/v1/retrieve/${hash}?query=${encodeURIComponent(query)}`+ : `${config.proxyUrl}/v1/retrieve/${hash}`;++ const resp = await fetch(url, {+ signal: AbortSignal.timeout(10_000),+ });++ if (!resp.ok) {+ const body = await resp.text().catch(() => "");+ return JSON.stringify({+ error: `Retrieval failed: HTTP ${resp.status}`,+ details: body,+ });+ }++ const data = await resp.json();+ return typeof data === "string" ? data : JSON.stringify(data);+ } catch (error) {+ return JSON.stringify({+ error: `Retrieval failed: ${error}`,+ hint: "The compressed content may have expired (default TTL: 5 minutes)",+ });+ }+ },+ };+}diff --git a/plugins/openclaw/test/engine.test.ts b/plugins/openclaw/test/engine.test.tsnew file mode 100644index 000000000..6422bdadf--- /dev/null+++ b/plugins/openclaw/test/engine.test.ts@@ -0,0 +1,216 @@+/**+ * Integration tests for HeadroomContextEngine.+ *+ * Tests the full flow: proxy management, AgentMessage conversion,+ * compression via proxy, and round-trip back to AgentMessage.+ *+ * Requires: Python 3 + headroom-ai[proxy] installed+ * Run: HEADROOM_INTEGRATION=1 npx vitest run test/engine.test.ts+ */+import { describe, it, expect, beforeAll, afterAll } from "vitest";+import { HeadroomContextEngine } from "../src/engine.js";+import { agentToOpenAI, openAIToAgent } from "../src/convert.js";+import { ProxyManager } from "../src/proxy-manager.js";++const RUN = process.env.HEADROOM_INTEGRATION === "1";++describe("AgentMessage conversion", () => {+ it("converts user message", () => {+ const agent = [{ role: "user", content: "hello", timestamp: Date.now() }];+ const openai = agentToOpenAI(agent);+ expect(openai).toEqual([{ role: "user", content: "hello" }]);+ });++ it("converts assistant with tool_use blocks", () => {+ const agent = [+ {+ role: "assistant",+ content: [+ { type: "text", text: "Let me search" },+ { type: "tool_use", id: "tu_1", name: "search", input: { q: "test" } },+ ],+ timestamp: Date.now(),+ },+ ];+ const openai = agentToOpenAI(agent);+ expect(openai[0].role).toBe("assistant");+ expect(openai[0].content).toBe("Let me search");+ expect(openai[0].tool_calls).toHaveLength(1);+ expect(openai[0].tool_calls![0].function.name).toBe("search");+ });++ it("converts toolResult message", () => {+ const agent = [+ {+ role: "toolResult",+ content: '{"results": [1, 2, 3]}',+ tool_use_id: "tu_1",+ timestamp: Date.now(),+ },+ ];+ const openai = agentToOpenAI(agent);+ expect(openai[0].role).toBe("tool");+ expect(openai[0].content).toBe('{"results": [1, 2, 3]}');+ expect(openai[0].tool_call_id).toBe("tu_1");+ });++ it("round-trips user message", () => {+ const original = [{ role: "user", content: "hello", timestamp: Date.now() }];+ const openai = agentToOpenAI(original);+ const back = openAIToAgent(openai);+ expect(back[0].role).toBe("user");+ expect(back[0].content).toBe("hello");+ });++ it("round-trips assistant with tool calls", () => {+ const original = [+ {+ role: "assistant",+ content: [+ { type: "text", text: "Searching..." },+ { type: "tool_use", id: "tu_1", name: "search", input: { q: "test" } },+ ],+ timestamp: Date.now(),+ },+ ];+ const openai = agentToOpenAI(original);+ const back = openAIToAgent(openai);+ expect(back[0].role).toBe("assistant");+ const content = back[0].content;+ expect(Array.isArray(content)).toBe(true);+ expect(content).toContainEqual(expect.objectContaining({ type: "text", text: "Searching..." }));+ expect(content).toContainEqual(+ expect.objectContaining({ type: "tool_use", id: "tu_1", name: "search" }),+ );+ });++ it("round-trips toolResult", () => {+ const original = [+ {+ role: "toolResult",+ content: '{"data": true}',+ tool_use_id: "tu_1",+ timestamp: Date.now(),+ },+ ];+ const openai = agentToOpenAI(original);+ const back = openAIToAgent(openai);+ expect(back[0].role).toBe("toolResult");+ expect(back[0].content).toBe('{"data": true}');+ expect(back[0].tool_use_id).toBe("tu_1");+ });+});++describe.skipIf(!RUN)("ProxyManager", () => {+ it("detects running proxy or starts one", { timeout: 30000 }, async () => {+ const manager = new ProxyManager({ autoStart: true });+ try {+ const url = await manager.start();+ expect(url).toMatch(/^http:\/\/127\.0\.0\.1:\d+$/);++ // Verify health+ const resp = await fetch(`${url}/health`);+ expect(resp.ok).toBe(true);+ } finally {+ await manager.stop();+ }+ });+});++describe.skipIf(!RUN)("HeadroomContextEngine", () => {+ let engine: HeadroomContextEngine;++ beforeAll(async () => {+ engine = new HeadroomContextEngine({ autoStart: true });+ await engine.bootstrap({+ sessionId: "test-session",+ sessionFile: "/tmp/test-session.jsonl",+ });+ }, 30000);++ afterAll(async () => {+ await engine.dispose();+ });++ it("assemble() compresses tool outputs", { timeout: 15000 }, async () => {+ // Simulate an OpenClaw agent conversation with large tool result+ const serverData = Array.from({ length: 100 }, (_, i) => ({+ id: i + 1,+ name: `server-${i + 1}`,+ status: i % 15 === 0 ? "critical" : i % 5 === 0 ? "warning" : "healthy",+ cpu: Math.round(Math.random() * 100),+ memory: Math.round(Math.random() * 100),+ region: ["us-east-1", "eu-west-1", "ap-southeast-1"][i % 3],+ description: `Production server ${i + 1} running service-${["auth", "payment", "user", "api"][i % 4]}`,+ lastAlert: i % 15 === 0 ? `Disk usage at ${90 + (i % 10)}%` : null,+ }));++ const messages = [+ { role: "user", content: "Check the fleet status", timestamp: Date.now() },+ {+ role: "assistant",+ content: [+ { type: "tool_use", id: "tu_fleet", name: "getFleetStatus", input: {} },+ ],+ timestamp: Date.now(),+ },+ {+ role: "toolResult",+ content: JSON.stringify(serverData),+ tool_use_id: "tu_fleet",+ timestamp: Date.now(),+ },+ { role: "user", content: "Which servers are critical?", timestamp: Date.now() },+ ];++ const result = await engine.assemble({+ sessionId: "test-session",+ messages,+ model: "claude-sonnet-4-5",+ });++ console.log(+ ` assemble(): estimatedTokens=${result.estimatedTokens}, ` ++ `systemPrompt=${result.systemPromptAddition ? "yes" : "no"}`,+ );++ // Messages should be returned (compressed or not)+ expect(result.messages.length).toBeGreaterThan(0);+ // First and last messages should still be user messages+ expect(result.messages[0].role).toBe("user");+ expect(result.messages[result.messages.length - 1].role).toBe("user");+ });++ it("assemble() preserves small conversations", { timeout: 15000 }, async () => {+ const messages = [+ { role: "user", content: "Hello", timestamp: Date.now() },+ { role: "assistant", content: "Hi there!", timestamp: Date.now() },+ ];++ const result = await engine.assemble({+ sessionId: "test-session",+ messages,+ });++ expect(result.messages).toHaveLength(2);+ expect(result.messages[0].content).toBe("Hello");+ expect(result.messages[1].content).toBe("Hi there!");+ });++ it("compact() returns success (compression handled in assemble)", async () => {+ const result = await engine.compact({+ sessionId: "test-session",+ sessionFile: "/tmp/test.jsonl",+ });++ expect(result.ok).toBe(true);+ expect(result.compacted).toBe(true);+ });++ it("getStats() returns compression statistics", () => {+ const stats = engine.getStats();+ expect(stats).toHaveProperty("totalCompressions");+ expect(stats).toHaveProperty("totalTokensSaved");+ expect(stats.totalCompressions).toBeGreaterThanOrEqual(0);+ });+});diff --git a/plugins/openclaw/tsconfig.json b/plugins/openclaw/tsconfig.jsonnew file mode 100644index 000000000..7fad3d0c2--- /dev/null+++ b/plugins/openclaw/tsconfig.json@@ -0,0 +1,18 @@+{+ "compilerOptions": {+ "target": "ES2022",+ "module": "ESNext",+ "moduleResolution": "bundler",+ "lib": ["ES2022"],+ "strict": true,+ "esModuleInterop": true,+ "skipLibCheck": true,+ "declaration": true,+ "outDir": "dist",+ "rootDir": "src",+ "sourceMap": true,+ "isolatedModules": true+ },+ "include": ["src"],+ "exclude": ["node_modules", "dist", "test"]+}diff --git a/plugins/openclaw/tsup.config.ts b/plugins/openclaw/tsup.config.tsnew file mode 100644index 000000000..f221c7102--- /dev/null+++ b/plugins/openclaw/tsup.config.ts@@ -0,0 +1,9 @@+import { defineConfig } from "tsup";++export default defineConfig({+ entry: { index: "src/index.ts" },+ format: ["esm"],+ dts: true,+ sourcemap: true,+ clean: true,+});diff --git a/plugins/openclaw/vitest.config.ts b/plugins/openclaw/vitest.config.tsnew file mode 100644index 000000000..3f824fb95--- /dev/null+++ b/plugins/openclaw/vitest.config.ts@@ -0,0 +1,8 @@+import { defineConfig } from "vitest/config";++export default defineConfig({+ test: {+ globals: true,+ environment: "node",+ },+});