#1 Persistent memory for AI coding agents based on real-world benchmarks
TypeScript agentmemoryagentsaiclaudeclaudecodecodexcopilotcursorgenaiharnesshermesmemoryompopenclawopencodepi
feat: agentmemory v0.1.0 -- persistent memory for AI coding agents
Rohit Ghumare37de9e5d02ad
diff --git a/.gitignore b/.gitignorenew file mode 100644index 00000000..d546b976--- /dev/null+++ b/.gitignore@@ -0,0 +1,4 @@+node_modules/+dist/+*.tsbuildinfo+.envdiff --git a/LICENSE b/LICENSEnew file mode 100644index 00000000..cb13c728--- /dev/null+++ b/LICENSE@@ -0,0 +1,190 @@+ Apache License+ Version 2.0, January 2004+ http://www.apache.org/licenses/++ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION++ 1. Definitions.++ "License" shall mean the terms and conditions for use, reproduction,+ and distribution as defined by Sections 1 through 9 of this document.++ "Licensor" shall mean the copyright owner or entity authorized by+ the copyright owner that is granting the License.++ "Legal Entity" shall mean the union of the acting entity and all+ other entities that control, are controlled by, or are under common+ control with that entity. For the purposes of this definition,+ "control" means (i) the power, direct or indirect, to cause the+ direction or management of such entity, whether by contract or+ otherwise, or (ii) ownership of fifty percent (50%) or more of the+ outstanding shares, or (iii) beneficial ownership of such entity.++ "You" (or "Your") shall mean an individual or Legal Entity+ exercising permissions granted by this License.++ "Source" form shall mean the preferred form for making modifications,+ including but not limited to software source code, documentation+ source, and configuration files.++ "Object" form shall mean any form resulting from mechanical+ transformation or translation of a Source form, including but+ not limited to compiled object code, generated documentation,+ and conversions to other media types.++ "Work" shall mean the work of authorship, whether in Source or+ Object form, made available under the License, as indicated by a+ copyright notice that is included in or attached to the work+ (an example is provided in the Appendix below).++ "Derivative Works" shall mean any work, whether in Source or Object+ form, that is based on (or derived from) the Work and for which the+ editorial revisions, annotations, elaborations, or other modifications+ represent, as a whole, an original work of authorship. For the purposes+ of this License, Derivative Works shall not include works that remain+ separable from, or merely link (or bind by name) to the interfaces of,+ the Work and Derivative Works thereof.++ "Contribution" shall mean any work of authorship, including+ the original version of the Work and any modifications or additions+ to that Work or Derivative Works thereof, that is intentionally+ submitted to the Licensor for inclusion in the Work by the copyright owner+ or by an individual or Legal Entity authorized to submit on behalf of+ the copyright owner. For the purposes of this definition, "submitted"+ means any form of electronic, verbal, or written communication sent+ to the Licensor or its representatives, including but not limited to+ communication on electronic mailing lists, source code control systems,+ and issue tracking systems that are managed by, or on behalf of, the+ Licensor for the purpose of discussing and improving the Work, but+ excluding communication that is conspicuously marked or otherwise+ designated in writing by the copyright owner as "Not a Contribution."++ "Contributor" shall mean Licensor and any individual or Legal Entity+ on behalf of whom a Contribution has been received by the Licensor and+ subsequently incorporated within the Work.++ 2. Grant of Copyright License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ copyright license to reproduce, prepare Derivative Works of,+ publicly display, publicly perform, sublicense, and distribute the+ Work and such Derivative Works in Source or Object form.++ 3. Grant of Patent License. Subject to the terms and conditions of+ this License, each Contributor hereby grants to You a perpetual,+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable+ (except as stated in this section) patent license to make, have made,+ use, offer to sell, sell, import, and otherwise transfer the Work,+ where such license applies only to those patent claims licensable+ by such Contributor that are necessarily infringed by their+ Contribution(s) alone or by combination of their Contribution(s)+ with the Work to which such Contribution(s) was submitted. If You+ institute patent litigation against any entity (including a+ cross-claim or counterclaim in a lawsuit) alleging that the Work+ or a Contribution incorporated within the Work constitutes direct+ or contributory patent infringement, then any patent licenses+ granted to You under this License for that Work shall terminate+ as of the date such litigation is filed.++ 4. Redistribution. You may reproduce and distribute copies of the+ Work or Derivative Works thereof in any medium, with or without+ modifications, and in Source or Object form, provided that You+ meet the following conditions:++ (a) You must give any other recipients of the Work or+ Derivative Works a copy of this License; and++ (b) You must cause any modified files to carry prominent notices+ stating that You changed the files; and++ (c) You must retain, in the Source form of any Derivative Works+ that You distribute, all copyright, patent, trademark, and+ attribution notices from the Source form of the Work,+ excluding those notices that do not pertain to any part of+ the Derivative Works; and++ (d) If the Work includes a "NOTICE" text file as part of its+ distribution, then any Derivative Works that You distribute must+ include a readable copy of the attribution notices contained+ within such NOTICE file, excluding any notices that do not+ pertain to any part of the Derivative Works, in at least one+ of the following places: within a NOTICE text file distributed+ as part of the Derivative Works; within the Source form or+ documentation, if provided along with the Derivative Works; or,+ within a display generated by the Derivative Works, if and+ wherever such third-party notices normally appear. The contents+ of the NOTICE file are for informational purposes only and+ do not modify the License. You may add Your own attribution+ notices within Derivative Works that You distribute, alongside+ or as an addendum to the NOTICE text from the Work, provided+ that such additional attribution notices cannot be construed+ as modifying the License.++ You may add Your own copyright statement to Your modifications and+ may provide additional or different license terms and conditions+ for use, reproduction, or distribution of Your modifications, or+ for any such Derivative Works as a whole, provided Your use,+ reproduction, and distribution of the Work otherwise complies with+ the conditions stated in this License.++ 5. Submission of Contributions. Unless You explicitly state otherwise,+ any Contribution intentionally submitted for inclusion in the Work+ by You to the Licensor shall be under the terms and conditions of+ this License, without any additional terms or conditions.+ Notwithstanding the above, nothing herein shall supersede or modify+ the terms of any separate license agreement you may have executed+ with Licensor regarding such Contributions.++ 6. Trademarks. This License does not grant permission to use the trade+ names, trademarks, service marks, or product names of the Licensor,+ except as required for reasonable and customary use in describing the+ origin of the Work and reproducing the content of the NOTICE file.++ 7. Disclaimer of Warranty. Unless required by applicable law or+ agreed to in writing, Licensor provides the Work (and each+ Contributor provides its Contributions) on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or+ implied, including, without limitation, any warranties or conditions+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A+ PARTICULAR PURPOSE. You are solely responsible for determining the+ appropriateness of using or redistributing the Work and assume any+ risks associated with Your exercise of permissions under this License.++ 8. Limitation of Liability. In no event and under no legal theory,+ whether in tort (including negligence), contract, or otherwise,+ unless required by applicable law (such as deliberate and grossly+ negligent acts) or agreed to in writing, shall any Contributor be+ liable to You for damages, including any direct, indirect, special,+ incidental, or consequential damages of any character arising as a+ result of this License or out of the use or inability to use the+ Work (including but not limited to damages for loss of goodwill,+ work stoppage, computer failure or malfunction, or any and all+ other commercial damages or losses), even if such Contributor+ has been advised of the possibility of such damages.++ 9. Accepting Warranty or Additional Liability. While redistributing+ the Work or Derivative Works thereof, You may choose to offer,+ and charge a fee for, acceptance of support, warranty, indemnity,+ or other liability obligations and/or rights consistent with this+ License. However, in accepting such obligations, You may act only+ on Your own behalf and on Your sole responsibility, not on behalf+ of any other Contributor, and only if You agree to indemnify,+ defend, and hold each Contributor harmless for any liability+ incurred by, or claims asserted against, such Contributor by reason+ of your accepting any such warranty or additional liability.++ END OF TERMS AND CONDITIONS++ Copyright 2026 Rohit Ghumare++ Licensed under the Apache License, Version 2.0 (the "License");+ you may not use this file except in compliance with the License.+ You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++ Unless required by applicable law or agreed to in writing, software+ distributed under the License is distributed on an "AS IS" BASIS,+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ See the License for the specific language governing permissions and+ limitations under the License.diff --git a/README.md b/README.mdnew file mode 100644index 00000000..4bb9d7d9--- /dev/null+++ b/README.md@@ -0,0 +1,348 @@+# agentmemory++Persistent memory for AI coding agents, powered by [iii-engine](https://iii.dev)'s three primitives (Worker / Function / Trigger).++agentmemory captures tool usage during coding sessions, compresses observations via LLM, and injects relevant context into future sessions. Your AI agent remembers what it did yesterday.++## How It Works++```+Session 1: "Add auth to the API"+ Claude Code writes code, runs tests, fixes bugs+ agentmemory silently captures every tool use+ Session ends -> LLM compresses observations into structured memory++Session 2: "Now add rate limiting"+ agentmemory injects context from Session 1:+ - Auth uses JWT middleware in src/middleware/auth.ts+ - Tests in test/auth.test.ts cover token validation+ - Decision: chose jose over jsonwebtoken for Edge compatibility+ Claude Code starts with full project awareness+```++No manual notes. No copy-pasting. The agent just knows.++## Architecture++agentmemory replaces the traditional memory stack with iii-engine's three primitives:++| Traditional Stack | agentmemory |+|---|---|+| Express.js server | iii Worker + HTTP Triggers |+| SQLite + FTS5 | iii KV State |+| SSE streaming | iii Streams (WebSocket) |+| Process manager (pm2/systemd) | iii-engine manages workers |+| 20+ REST endpoints | API Triggers -> Functions |++**27 source files. 1,808 lines of code. 35KB bundled.**++Scalable from day one -- iii-engine handles orchestration, state persistence, and real-time streaming natively.++## Quick Start++```bash+# 1. Start iii-engine+docker compose up -d++# 2. Install and build+npm install && npm run build++# 3. Start agentmemory worker+npm start+```++That's it. agentmemory connects to iii-engine on `ws://localhost:49134` and exposes REST endpoints on port `3111`.++### Configure Claude Code Hooks++Add to your `~/.claude/settings.json`:++```json+{+ "hooks": {+ "SessionStart": [{ "type": "command", "command": "node /path/to/agentmemory/dist/hooks/session-start.mjs" }],+ "UserPromptSubmit": [{ "type": "command", "command": "node /path/to/agentmemory/dist/hooks/prompt-submit.mjs" }],+ "PostToolUse": [{ "type": "command", "command": "node /path/to/agentmemory/dist/hooks/post-tool-use.mjs" }],+ "Stop": [{ "type": "command", "command": "node /path/to/agentmemory/dist/hooks/stop.mjs" }],+ "SessionEnd": [{ "type": "command", "command": "node /path/to/agentmemory/dist/hooks/session-end.mjs" }]+ }+}+```++Or install as a Claude Code plugin (see [Plugin Install](#claude-code-plugin)).++## Observation Pipeline++Every tool use flows through a four-stage pipeline:++```+Claude Code PostToolUse hook+ |+ v+mem::observe Store raw observation to KV, push to real-time stream+ |+ v+mem::compress LLM extracts structured data (type, facts, narrative, concepts, files)+ | Runs async -- doesn't block the coding session+ v+mem::summarize End-of-session: LLM generates session summary from all observations+```++### What Gets Captured++| Hook | Data |+|------|------|+| `SessionStart` | Project path, session ID, working directory |+| `UserPromptSubmit` | User prompts (privacy-filtered) |+| `PostToolUse` | Tool name, input, output (Read, Write, Edit, Bash, etc.) |+| `Stop` | Triggers session summarization |+| `SessionEnd` | Marks session complete |++### Privacy++All observations pass through `mem::privacy` before storage:+- `<private>...</private>` blocks are stripped+- API keys, tokens, and secrets are redacted (`ANTHROPIC_API_KEY`, `GITHUB_TOKEN`, etc.)++## Context Injection++On `SessionStart`, agentmemory builds a context block from previous sessions:++```+mem::context+ |+ +-- Load recent sessions for this project (up to 10)+ +-- For each: prefer session summary, fall back to high-importance observations+ +-- Apply token budget (default: 2000 tokens)+ +-- Return formatted <agentmemory-context> block+```++The hook writes the context to stdout, and Claude Code injects it into the conversation.++## LLM Providers++agentmemory uses LLM calls for two operations: compressing observations and generating session summaries. Four providers are supported:++| Provider | Config | Cost |+|----------|--------|------|+| **Claude subscription** (default) | No config needed | Included in Max/Pro |+| **Anthropic API** | `ANTHROPIC_API_KEY` | Per-token |+| **Gemini** | `GEMINI_API_KEY` | Per-token |+| **OpenRouter** | `OPENROUTER_API_KEY` | Per-token |++Provider is auto-detected. No API key configured = subscription mode via `@anthropic-ai/claude-agent-sdk`.++### Configure++Create `~/.agentmemory/.env`:++```env+# Pick one (or leave empty for subscription mode)+ANTHROPIC_API_KEY=sk-ant-...+# GEMINI_API_KEY=...+# OPENROUTER_API_KEY=...++# Optional: override model+# ANTHROPIC_MODEL=claude-sonnet-4-20250514+# GEMINI_MODEL=gemini-2.0-flash+# OPENROUTER_MODEL=anthropic/claude-sonnet-4-20250514++# Optional: engine connection (defaults shown)+# III_ENGINE_URL=ws://localhost:49134+# III_REST_PORT=3111+# III_STREAMS_PORT=3112++# Optional: memory settings+# TOKEN_BUDGET=2000+# MAX_OBS_PER_SESSION=500+```++## API Endpoints++All endpoints are served via iii-engine's REST API on port `3111`.++| Method | Path | Description |+|--------|------|-------------|+| `GET` | `/agentmemory/health` | Health check |+| `POST` | `/agentmemory/session/start` | Start session, return context from previous sessions |+| `POST` | `/agentmemory/session/end` | Mark session complete |+| `POST` | `/agentmemory/observe` | Capture a tool-use observation |+| `POST` | `/agentmemory/context` | Generate context for a project |+| `POST` | `/agentmemory/search` | Search observations by keyword |+| `POST` | `/agentmemory/summarize` | Generate session summary |+| `GET` | `/agentmemory/sessions` | List all sessions |+| `GET` | `/agentmemory/observations?sessionId=X` | Get observations for a session |+| `GET` | `/agentmemory/viewer` | Real-time web viewer |+| `POST` | `/agentmemory/migrate` | Import from SQLite database |++### Examples++```bash+# Health check+curl http://localhost:3111/agentmemory/health++# Search observations+curl -X POST http://localhost:3111/agentmemory/search \+ -H "Content-Type: application/json" \+ -d '{"query": "authentication middleware", "limit": 10}'++# Get context for a project+curl -X POST http://localhost:3111/agentmemory/context \+ -H "Content-Type: application/json" \+ -d '{"sessionId": "current", "project": "/path/to/project"}'++# List all sessions+curl http://localhost:3111/agentmemory/sessions+```++## Real-Time Viewer++Open `http://localhost:3111/agentmemory/viewer` in your browser.++The viewer connects to iii-engine's WebSocket stream on port `3112` and shows observations as they flow in -- raw captures first, then structured data after LLM compression.++Dark theme. Timeline layout. Filter by session. Auto-scrolls.++## Claude Code Plugin++Install as a plugin for automatic hook registration:++```bash+# Build first+npm run build++# Option 1: Symlink the plugin directory+ln -s /path/to/agentmemory/plugin ~/.claude/plugins/agentmemory++# Option 2: Copy plugin manifest+cp -r plugin/ ~/.claude/plugins/agentmemory+```++The plugin registers all 5 hooks automatically via `hooks.json`.++## Migration++Import data from existing SQLite-based memory systems:++```bash+curl -X POST http://localhost:3111/agentmemory/migrate \+ -H "Content-Type: application/json" \+ -d '{"dbPath": "/path/to/memory.db"}'+```++Reads `sessions`, `observations`/`compressed_observations`, and `session_summaries` tables. Requires `better-sqlite3` as an optional dependency:++```bash+npm install better-sqlite3+```++## iii-engine Functions++agentmemory registers these iii Functions:++| Function ID | Description |+|-------------|-------------|+| `mem::observe` | Capture and store a tool-use observation |+| `mem::compress` | LLM compression of raw observation into structured data |+| `mem::privacy` | Strip private data, secrets, and API keys |+| `mem::search` | Keyword search across compressed observations |+| `mem::context` | Generate token-budgeted context from past sessions |+| `mem::summarize` | LLM-generated end-of-session summary |+| `mem::migrate` | Import data from SQLite databases |+| `api::health` | Health check endpoint |+| `api::session::start` | Session start + context retrieval |+| `api::session::end` | Mark session complete |+| `api::observe` | HTTP -> `mem::observe` |+| `api::context` | HTTP -> `mem::context` |+| `api::search` | HTTP -> `mem::search` |+| `api::summarize` | HTTP -> `mem::summarize` |+| `api::sessions` | List all sessions |+| `api::observations` | Get session observations |+| `api::viewer` | Serve web viewer |+| `api::migrate` | HTTP -> `mem::migrate` |++Event triggers (queue type) handle async lifecycle events: `session.started`, `observation`, `session.stopped`, `session.ended`.++## KV State Schema++| Scope | Key | Data |+|-------|-----|------|+| `mem:sessions` | `{session_id}` | Session metadata, project, timestamps |+| `mem:obs:{session_id}` | `{obs_id}` | Compressed observations |+| `mem:summaries` | `{session_id}` | End-of-session summaries |+| `mem:memories` | `{memory_id}` | Long-term memories |+| `mem:config` | `{key}` | Plugin settings |++## Project Structure++```+agentmemory/+├── src/+│ ├── index.ts # Worker entry: init SDK, register all+│ ├── types.ts # TypeScript interfaces+│ ├── config.ts # Env vars, provider auto-detection+│ ├── hooks/ # 5 Claude Code hook scripts+│ │ ├── session-start.ts # Start session, inject context (stdout)+│ │ ├── prompt-submit.ts # Capture user prompts+│ │ ├── post-tool-use.ts # Capture tool usage+│ │ ├── stop.ts # Trigger session summarization+│ │ └── session-end.ts # Mark session complete+│ ├── providers/ # LLM provider abstraction+│ │ ├── index.ts # Factory + auto-detection+│ │ ├── agent-sdk.ts # Claude subscription (Agent SDK)+│ │ ├── anthropic.ts # Direct Anthropic API+│ │ └── openrouter.ts # OpenRouter + Gemini+│ ├── functions/ # iii Functions (core logic)+│ │ ├── observe.ts # Capture + store + stream+│ │ ├── compress.ts # LLM compression+│ │ ├── privacy.ts # Secret/tag stripping+│ │ ├── search.ts # Keyword search+│ │ ├── context.ts # Context generation+│ │ ├── summarize.ts # Session summary+│ │ └── migrate.ts # SQLite import+│ ├── triggers/ # Trigger registrations+│ │ ├── api.ts # 11 HTTP endpoints+│ │ └── events.ts # 4 queue event handlers+│ ├── state/ # State helpers+│ │ ├── kv.ts # Typed KV wrapper+│ │ ├── schema.ts # Scope constants + ID generators+│ │ └── search-index.ts # In-memory keyword index+│ ├── prompts/ # LLM prompts+│ │ ├── compression.ts # Observation compression prompt+│ │ └── summary.ts # Session summary prompt+│ └── viewer/+│ └── index.html # Single-file dark-theme viewer+├── plugin/ # Claude Code plugin+│ ├── .claude-plugin/+│ │ └── plugin.json+│ └── hooks/+│ └── hooks.json+├── docker-compose.yml # iii-engine container+├── package.json+├── tsconfig.json+├── tsdown.config.ts+└── LICENSE # Apache-2.0+```++## Prerequisites++- **Node.js** >= 18+- **Docker** (for iii-engine)+- **Claude Code** (for hook integration)++## Development++```bash+# Dev mode with hot reload+npm run dev++# Build+npm run build++# Run tests+npm test+```++## License++[Apache-2.0](LICENSE)diff --git a/docker-compose.yml b/docker-compose.ymlnew file mode 100644index 00000000..17d1ab27--- /dev/null+++ b/docker-compose.yml@@ -0,0 +1,14 @@+services:+ iii-engine:+ image: iiidev/iii:latest+ ports:+ - "49134:49134"+ - "3111:3111"+ - "3112:3112"+ - "9464:9464"+ volumes:+ - iii-data:/data+ restart: unless-stopped++volumes:+ iii-data:diff --git a/package-lock.json b/package-lock.jsonnew file mode 100644index 00000000..59612de3--- /dev/null+++ b/package-lock.json@@ -0,0 +1,3724 @@+{+ "name": "agentmemory",+ "version": "0.1.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "agentmemory",+ "version": "0.1.0",+ "license": "Apache-2.0",+ "dependencies": {+ "@anthropic-ai/claude-agent-sdk": "^0.2.56",+ "@anthropic-ai/sdk": "^0.39.0",+ "dotenv": "^16.4.7",+ "iii-sdk": "^0.3.0"+ },+ "bin": {+ "agentmemory": "dist/index.js"+ },+ "devDependencies": {+ "@types/node": "^22.0.0",+ "tsdown": "^0.20.3",+ "tsx": "^4.19.0",+ "typescript": "^5.7.0",+ "vitest": "^3.0.0"+ },+ "engines": {+ "node": ">=18.0.0"+ }+ },+ "node_modules/@anthropic-ai/claude-agent-sdk": {+ "version": "0.2.56",+ "resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.2.56.tgz",+ "integrity": "sha512-EpDeAUlhFIAWOfps7fWdAAmJgMvqmISODyPFVbvgfL17EHFTHF1cpPiZQEQYjzUcUXE8nvcVxQlBzuMukHqItA==",+ "license": "SEE LICENSE IN README.md",+ "engines": {+ "node": ">=18.0.0"+ },+ "optionalDependencies": {+ "@img/sharp-darwin-arm64": "^0.34.2",+ "@img/sharp-darwin-x64": "^0.34.2",+ "@img/sharp-linux-arm": "^0.34.2",+ "@img/sharp-linux-arm64": "^0.34.2",+ "@img/sharp-linux-x64": "^0.34.2",+ "@img/sharp-linuxmusl-arm64": "^0.34.2",+ "@img/sharp-linuxmusl-x64": "^0.34.2",+ "@img/sharp-win32-arm64": "^0.34.2",+ "@img/sharp-win32-x64": "^0.34.2"+ },+ "peerDependencies": {+ "zod": "^4.0.0"+ }+ },+ "node_modules/@anthropic-ai/sdk": {+ "version": "0.39.0",+ "resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.39.0.tgz",+ "integrity": "sha512-eMyDIPRZbt1CCLErRCi3exlAvNkBtRe+kW5vvJyef93PmNr/clstYgHhtvmkxN82nlKgzyGPCyGxrm0JQ1ZIdg==",+ "license": "MIT",+ "dependencies": {+ "@types/node": "^18.11.18",+ "@types/node-fetch": "^2.6.4",+ "abort-controller": "^3.0.0",+ "agentkeepalive": "^4.2.1",+ "form-data-encoder": "1.7.2",+ "formdata-node": "^4.3.2",+ "node-fetch": "^2.6.7"+ }+ },+ "node_modules/@anthropic-ai/sdk/node_modules/@types/node": {+ "version": "18.19.130",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.130.tgz",+ "integrity": "sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==",+ "license": "MIT",+ "dependencies": {+ "undici-types": "~5.26.4"+ }+ },+ "node_modules/@anthropic-ai/sdk/node_modules/undici-types": {+ "version": "5.26.5",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",+ "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==",+ "license": "MIT"+ },+ "node_modules/@babel/generator": {+ "version": "8.0.0-rc.1",+ "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-8.0.0-rc.1.tgz",+ "integrity": "sha512-3ypWOOiC4AYHKr8vYRVtWtWmyvcoItHtVqF8paFax+ydpmUdPsJpLBkBBs5ItmhdrwC3a0ZSqqFAdzls4ODP3w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^8.0.0-rc.1",+ "@babel/types": "^8.0.0-rc.1",+ "@jridgewell/gen-mapping": "^0.3.12",+ "@jridgewell/trace-mapping": "^0.3.28",+ "@types/jsesc": "^2.5.0",+ "jsesc": "^3.0.2"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@babel/helper-string-parser": {+ "version": "8.0.0-rc.2",+ "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-8.0.0-rc.2.tgz",+ "integrity": "sha512-noLx87RwlBEMrTzncWd/FvTxoJ9+ycHNg0n8yyYydIoDsLZuxknKgWRJUqcrVkNrJ74uGyhWQzQaS3q8xfGAhQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@babel/helper-validator-identifier": {+ "version": "8.0.0-rc.1",+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-8.0.0-rc.1.tgz",+ "integrity": "sha512-I4YnARytXC2RzkLNVnf5qFNFMzp679qZpmtw/V3Jt2uGnWiIxyJtaukjG7R8pSx8nG2NamICpGfljQsogj+FbQ==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@babel/parser": {+ "version": "8.0.0-rc.1",+ "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-8.0.0-rc.1.tgz",+ "integrity": "sha512-6HyyU5l1yK/7h9Ki52i5h6mDAx4qJdiLQO4FdCyJNoB/gy3T3GGJdhQzzbZgvgZCugYBvwtQiWRt94QKedHnkA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/types": "^8.0.0-rc.1"+ },+ "bin": {+ "parser": "bin/babel-parser.js"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@babel/types": {+ "version": "8.0.0-rc.1",+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-8.0.0-rc.1.tgz",+ "integrity": "sha512-ubmJ6TShyaD69VE9DQrlXcdkvJbmwWPB8qYj0H2kaJi29O7vJT9ajSdBd2W8CG34pwL9pYA74fi7RHC1qbLoVQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/helper-string-parser": "^8.0.0-rc.1",+ "@babel/helper-validator-identifier": "^8.0.0-rc.1"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@emnapi/core": {+ "version": "1.8.1",+ "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.8.1.tgz",+ "integrity": "sha512-AvT9QFpxK0Zd8J0jopedNm+w/2fIzvtPKPjqyw9jwvBaReTTqPBk9Hixaz7KbjimP+QNz605/XnjFcDAL2pqBg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@emnapi/wasi-threads": "1.1.0",+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@emnapi/runtime": {+ "version": "1.8.1",+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.8.1.tgz",+ "integrity": "sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@emnapi/wasi-threads": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.1.0.tgz",+ "integrity": "sha512-WI0DdZ8xFSbgMjR1sFsKABJ/C5OnRrjT06JXbZKexJGrDuPTzZdDYfFlsgcCXCyf+suG5QU2e/y1Wo2V/OapLQ==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.3.tgz",+ "integrity": "sha512-9fJMTNFTWZMh5qwrBItuziu834eOCUcEqymSH7pY+zoMVEZg3gcPuBNxH1EvfVYe9h0x/Ptw8KBzv7qxb7l8dg==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.3.tgz",+ "integrity": "sha512-i5D1hPY7GIQmXlXhs2w8AWHhenb00+GxjxRncS2ZM7YNVGNfaMxgzSGuO8o8SJzRc/oZwU2bcScvVERk03QhzA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.3.tgz",+ "integrity": "sha512-YdghPYUmj/FX2SYKJ0OZxf+iaKgMsKHVPF1MAq/P8WirnSpCStzKJFjOjzsW0QQ7oIAiccHdcqjbHmJxRb/dmg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.3.tgz",+ "integrity": "sha512-IN/0BNTkHtk8lkOM8JWAYFg4ORxBkZQf9zXiEOfERX/CzxW3Vg1ewAhU7QSWQpVIzTW+b8Xy+lGzdYXV6UZObQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.3.tgz",+ "integrity": "sha512-Re491k7ByTVRy0t3EKWajdLIr0gz2kKKfzafkth4Q8A5n1xTHrkqZgLLjFEHVD+AXdUGgQMq+Godfq45mGpCKg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.3.tgz",+ "integrity": "sha512-vHk/hA7/1AckjGzRqi6wbo+jaShzRowYip6rt6q7VYEDX4LEy1pZfDpdxCBnGtl+A5zq8iXDcyuxwtv3hNtHFg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.3.tgz",+ "integrity": "sha512-ipTYM2fjt3kQAYOvo6vcxJx3nBYAzPjgTCk7QEgZG8AUO3ydUhvelmhrbOheMnGOlaSFUoHXB6un+A7q4ygY9w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.3.tgz",+ "integrity": "sha512-dDk0X87T7mI6U3K9VjWtHOXqwAMJBNN2r7bejDsc+j03SEjtD9HrOl8gVFByeM0aJksoUuUVU9TBaZa2rgj0oA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.3.tgz",+ "integrity": "sha512-s6nPv2QkSupJwLYyfS+gwdirm0ukyTFNl3KTgZEAiJDd+iHZcbTPPcWCcRYH+WlNbwChgH2QkE9NSlNrMT8Gfw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.3.tgz",+ "integrity": "sha512-sZOuFz/xWnZ4KH3YfFrKCf1WyPZHakVzTiqji3WDc0BCl2kBwiJLCXpzLzUBLgmp4veFZdvN5ChW4Eq/8Fc2Fg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.3.tgz",+ "integrity": "sha512-yGlQYjdxtLdh0a3jHjuwOrxQjOZYD/C9PfdbgJJF3TIZWnm/tMd/RcNiLngiu4iwcBAOezdnSLAwQDPqTmtTYg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.3.tgz",+ "integrity": "sha512-WO60Sn8ly3gtzhyjATDgieJNet/KqsDlX5nRC5Y3oTFcS1l0KWba+SEa9Ja1GfDqSF1z6hif/SkpQJbL63cgOA==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.3.tgz",+ "integrity": "sha512-APsymYA6sGcZ4pD6k+UxbDjOFSvPWyZhjaiPyl/f79xKxwTnrn5QUnXR5prvetuaSMsb4jgeHewIDCIWljrSxw==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.3.tgz",+ "integrity": "sha512-eizBnTeBefojtDb9nSh4vvVQ3V9Qf9Df01PfawPcRzJH4gFSgrObw+LveUyDoKU3kxi5+9RJTCWlj4FjYXVPEA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.3.tgz",+ "integrity": "sha512-3Emwh0r5wmfm3ssTWRQSyVhbOHvqegUDRd0WhmXKX2mkHJe1SFCMJhagUleMq+Uci34wLSipf8Lagt4LlpRFWQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.3.tgz",+ "integrity": "sha512-pBHUx9LzXWBc7MFIEEL0yD/ZVtNgLytvx60gES28GcWMqil8ElCYR4kvbV2BDqsHOvVDRrOxGySBM9Fcv744hw==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.3.tgz",+ "integrity": "sha512-Czi8yzXUWIQYAtL/2y6vogER8pvcsOsk5cpwL4Gk5nJqH5UZiVByIY8Eorm5R13gq+DQKYg0+JyQoytLQas4dA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.3.tgz",+ "integrity": "sha512-sDpk0RgmTCR/5HguIZa9n9u+HVKf40fbEUt+iTzSnCaGvY9kFP0YKBWZtJaraonFnqef5SlJ8/TiPAxzyS+UoA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.3.tgz",+ "integrity": "sha512-P14lFKJl/DdaE00LItAukUdZO5iqNH7+PjoBm+fLQjtxfcfFE20Xf5CrLsmZdq5LFFZzb5JMZ9grUwvtVYzjiA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.3.tgz",+ "integrity": "sha512-AIcMP77AvirGbRl/UZFTq5hjXK+2wC7qFRGoHSDrZ5v5b8DK/GYpXW3CPRL53NkvDqb9D+alBiC/dV0Fb7eJcw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.3.tgz",+ "integrity": "sha512-DnW2sRrBzA+YnE70LKqnM3P+z8vehfJWHXECbwBmH/CU51z6FiqTQTHFenPlHmo3a8UgpLyH3PT+87OViOh1AQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openharmony-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.3.tgz",+ "integrity": "sha512-NinAEgr/etERPTsZJ7aEZQvvg/A6IsZG/LgZy+81wON2huV7SrK3e63dU0XhyZP4RKGyTm7aOgmQk0bGp0fy2g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.3.tgz",+ "integrity": "sha512-PanZ+nEz+eWoBJ8/f8HKxTTD172SKwdXebZ0ndd953gt1HRBbhMsaNqjTyYLGLPdoWHy4zLU7bDVJztF5f3BHA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.3.tgz",+ "integrity": "sha512-B2t59lWWYrbRDw/tjiWOuzSsFh1Y/E95ofKz7rIVYSQkUYBjfSgf6oeYPNWHToFRr2zx52JKApIcAS/D5TUBnA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.3.tgz",+ "integrity": "sha512-QLKSFeXNS8+tHW7tZpMtjlNb7HKau0QDpwm49u0vUp9y1WOF+PEzkU84y9GqYaAVW8aH8f3GcBck26jh54cX4Q==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.3.tgz",+ "integrity": "sha512-4uJGhsxuptu3OcpVAzli+/gWusVGwZZHTlS63hh++ehExkVT8SgiEf7/uC/PclrPPkLhZqGgCTjd0VWLo6xMqA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@img/sharp-darwin-arm64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz",+ "integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==",+ "cpu": [+ "arm64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-darwin-arm64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-darwin-x64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.34.5.tgz",+ "integrity": "sha512-YNEFAF/4KQ/PeW0N+r+aVVsoIY0/qxxikF2SWdp+NRkmMB7y9LBZAVqQ4yhGCm/H3H270OSykqmQMKLBhBJDEw==",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-darwin-x64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-libvips-darwin-arm64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz",+ "integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==",+ "cpu": [+ "arm64"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "darwin"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-libvips-darwin-x64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.2.4.tgz",+ "integrity": "sha512-1IOd5xfVhlGwX+zXv2N93k0yMONvUlANylbJw1eTah8K/Jtpi15KC+WSiaX/nBmbm2HxRM1gZ0nSdjSsrZbGKg==",+ "cpu": [+ "x64"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "darwin"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-libvips-linux-arm": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.2.4.tgz",+ "integrity": "sha512-bFI7xcKFELdiNCVov8e44Ia4u2byA+l3XtsAj+Q8tfCwO6BQ8iDojYdvoPMqsKDkuoOo+X6HZA0s0q11ANMQ8A==",+ "cpu": [+ "arm"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-libvips-linux-arm64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.2.4.tgz",+ "integrity": "sha512-excjX8DfsIcJ10x1Kzr4RcWe1edC9PquDRRPx3YVCvQv+U5p7Yin2s32ftzikXojb1PIFc/9Mt28/y+iRklkrw==",+ "cpu": [+ "arm64"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-libvips-linux-x64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.2.4.tgz",+ "integrity": "sha512-tJxiiLsmHc9Ax1bz3oaOYBURTXGIRDODBqhveVHonrHJ9/+k89qbLl0bcJns+e4t4rvaNBxaEZsFtSfAdquPrw==",+ "cpu": [+ "x64"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-libvips-linuxmusl-arm64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.2.4.tgz",+ "integrity": "sha512-FVQHuwx1IIuNow9QAbYUzJ+En8KcVm9Lk5+uGUQJHaZmMECZmOlix9HnH7n1TRkXMS0pGxIJokIVB9SuqZGGXw==",+ "cpu": [+ "arm64"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-libvips-linuxmusl-x64": {+ "version": "1.2.4",+ "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.2.4.tgz",+ "integrity": "sha512-+LpyBk7L44ZIXwz/VYfglaX/okxezESc6UxDSoyo2Ks6Jxc4Y7sGjpgU9s4PMgqgjj1gZCylTieNamqA1MF7Dg==",+ "cpu": [+ "x64"+ ],+ "license": "LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "linux"+ ],+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-linux-arm": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.34.5.tgz",+ "integrity": "sha512-9dLqsvwtg1uuXBGZKsxem9595+ujv0sJ6Vi8wcTANSFpwV/GONat5eCkzQo/1O6zRIkh0m/8+5BjrRr7jDUSZw==",+ "cpu": [+ "arm"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-arm": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linux-arm64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.34.5.tgz",+ "integrity": "sha512-bKQzaJRY/bkPOXyKx5EVup7qkaojECG6NLYswgktOZjaXecSAeCWiZwwiFf3/Y+O1HrauiE3FVsGxFg8c24rZg==",+ "cpu": [+ "arm64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-arm64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linux-x64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.34.5.tgz",+ "integrity": "sha512-MEzd8HPKxVxVenwAa+JRPwEC7QFjoPWuS5NZnBt6B3pu7EG2Ge0id1oLHZpPJdn3OQK+BQDiw9zStiHBTJQQQQ==",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linux-x64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linuxmusl-arm64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.34.5.tgz",+ "integrity": "sha512-fprJR6GtRsMt6Kyfq44IsChVZeGN97gTD331weR1ex1c1rypDEABN6Tm2xa1wE6lYb5DdEnk03NZPqA7Id21yg==",+ "cpu": [+ "arm64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linuxmusl-arm64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-linuxmusl-x64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.34.5.tgz",+ "integrity": "sha512-Jg8wNT1MUzIvhBFxViqrEhWDGzqymo3sV7z7ZsaWbZNDLXRJZoRGrjulp60YYtV4wfY8VIKcWidjojlLcWrd8Q==",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ },+ "optionalDependencies": {+ "@img/sharp-libvips-linuxmusl-x64": "1.2.4"+ }+ },+ "node_modules/@img/sharp-win32-arm64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.34.5.tgz",+ "integrity": "sha512-WQ3AgWCWYSb2yt+IG8mnC6Jdk9Whs7O0gxphblsLvdhSpSTtmu69ZG1Gkb6NuvxsNACwiPV6cNSZNzt0KPsw7g==",+ "cpu": [+ "arm64"+ ],+ "license": "Apache-2.0 AND LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "node_modules/@img/sharp-win32-x64": {+ "version": "0.34.5",+ "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.34.5.tgz",+ "integrity": "sha512-+29YMsqY2/9eFEiW93eqWnuLcWcufowXewwSNIT6UwZdUUCrM3oFjMWH/Z6/TMmb4hlFenmfAVbpWeup2jryCw==",+ "cpu": [+ "x64"+ ],+ "license": "Apache-2.0 AND LGPL-3.0-or-later",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^18.17.0 || ^20.3.0 || >=21.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/libvips"+ }+ },+ "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/@napi-rs/wasm-runtime": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.1.tgz",+ "integrity": "sha512-p64ah1M1ld8xjWv3qbvFwHiFVWrq1yFvV4f7w+mzaqiR4IlSgkqhcRdHwsGgomwzBH51sRY4NEowLxnaBjcW/A==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@emnapi/core": "^1.7.1",+ "@emnapi/runtime": "^1.7.1",+ "@tybys/wasm-util": "^0.10.1"+ },+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/Brooooooklyn"+ }+ },+ "node_modules/@opentelemetry/api": {+ "version": "1.9.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz",+ "integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/@opentelemetry/api-logs": {+ "version": "0.57.2",+ "resolved": "https://registry.npmjs.org/@opentelemetry/api-logs/-/api-logs-0.57.2.tgz",+ "integrity": "sha512-uIX52NnTM0iBh84MShlpouI7UKqkZ7MrUszTmaypHBu4r7NofznSnQRfJ+uUeDtQDj6w8eFGg5KBLDAwAPz1+A==",+ "license": "Apache-2.0",+ "dependencies": {+ "@opentelemetry/api": "^1.3.0"+ },+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@opentelemetry/context-async-hooks": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/@opentelemetry/context-async-hooks/-/context-async-hooks-1.30.1.tgz",+ "integrity": "sha512-s5vvxXPVdjqS3kTLKMeBMvop9hbWkwzBpu+mUO2M7sZtlkyDJGwFe33wRKnbaYDo8ExRVBIIdwIGrqpxHuKttA==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.0.0 <1.10.0"+ }+ },+ "node_modules/@opentelemetry/core": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/@opentelemetry/core/-/core-1.30.1.tgz",+ "integrity": "sha512-OOCM2C/QIURhJMuKaekP3TRBxBKxG/TWWA0TL2J6nXUtDnuCtccy49LUJF8xPFXMX+0LMcxFpCo8M9cGY1W6rQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@opentelemetry/semantic-conventions": "1.28.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.0.0 <1.10.0"+ }+ },+ "node_modules/@opentelemetry/core/node_modules/@opentelemetry/semantic-conventions": {+ "version": "1.28.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.28.0.tgz",+ "integrity": "sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@opentelemetry/instrumentation": {+ "version": "0.57.2",+ "resolved": "https://registry.npmjs.org/@opentelemetry/instrumentation/-/instrumentation-0.57.2.tgz",+ "integrity": "sha512-BdBGhQBh8IjZ2oIIX6F2/Q3LKm/FDDKi6ccYKcBTeilh6SNdNKveDOLk73BkSJjQLJk6qe4Yh+hHw1UPhCDdrg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@opentelemetry/api-logs": "0.57.2",+ "@types/shimmer": "^1.2.0",+ "import-in-the-middle": "^1.8.1",+ "require-in-the-middle": "^7.1.1",+ "semver": "^7.5.2",+ "shimmer": "^1.2.1"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": "^1.3.0"+ }+ },+ "node_modules/@opentelemetry/otlp-transformer": {+ "version": "0.57.2",+ "resolved": "https://registry.npmjs.org/@opentelemetry/otlp-transformer/-/otlp-transformer-0.57.2.tgz",+ "integrity": "sha512-48IIRj49gbQVK52jYsw70+Jv+JbahT8BqT2Th7C4H7RCM9d0gZ5sgNPoMpWldmfjvIsSgiGJtjfk9MeZvjhoig==",+ "license": "Apache-2.0",+ "dependencies": {+ "@opentelemetry/api-logs": "0.57.2",+ "@opentelemetry/core": "1.30.1",+ "@opentelemetry/resources": "1.30.1",+ "@opentelemetry/sdk-logs": "0.57.2",+ "@opentelemetry/sdk-metrics": "1.30.1",+ "@opentelemetry/sdk-trace-base": "1.30.1",+ "protobufjs": "^7.3.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": "^1.3.0"+ }+ },+ "node_modules/@opentelemetry/propagator-b3": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/@opentelemetry/propagator-b3/-/propagator-b3-1.30.1.tgz",+ "integrity": "sha512-oATwWWDIJzybAZ4pO76ATN5N6FFbOA1otibAVlS8v90B4S1wClnhRUk7K+2CHAwN1JKYuj4jh/lpCEG5BAqFuQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@opentelemetry/core": "1.30.1"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.0.0 <1.10.0"+ }+ },+ "node_modules/@opentelemetry/propagator-jaeger": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/@opentelemetry/propagator-jaeger/-/propagator-jaeger-1.30.1.tgz",+ "integrity": "sha512-Pj/BfnYEKIOImirH76M4hDaBSx6HyZ2CXUqk+Kj02m6BB80c/yo4BdWkn/1gDFfU+YPY+bPR2U0DKBfdxCKwmg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@opentelemetry/core": "1.30.1"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.0.0 <1.10.0"+ }+ },+ "node_modules/@opentelemetry/resources": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/@opentelemetry/resources/-/resources-1.30.1.tgz",+ "integrity": "sha512-5UxZqiAgLYGFjS4s9qm5mBVo433u+dSPUFWVWXmLAD4wB65oMCoXaJP1KJa9DIYYMeHu3z4BZcStG3LC593cWA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@opentelemetry/core": "1.30.1",+ "@opentelemetry/semantic-conventions": "1.28.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.0.0 <1.10.0"+ }+ },+ "node_modules/@opentelemetry/resources/node_modules/@opentelemetry/semantic-conventions": {+ "version": "1.28.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.28.0.tgz",+ "integrity": "sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@opentelemetry/sdk-logs": {+ "version": "0.57.2",+ "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-logs/-/sdk-logs-0.57.2.tgz",+ "integrity": "sha512-TXFHJ5c+BKggWbdEQ/inpgIzEmS2BGQowLE9UhsMd7YYlUfBQJ4uax0VF/B5NYigdM/75OoJGhAV3upEhK+3gg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@opentelemetry/api-logs": "0.57.2",+ "@opentelemetry/core": "1.30.1",+ "@opentelemetry/resources": "1.30.1"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.4.0 <1.10.0"+ }+ },+ "node_modules/@opentelemetry/sdk-metrics": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-metrics/-/sdk-metrics-1.30.1.tgz",+ "integrity": "sha512-q9zcZ0Okl8jRgmy7eNW3Ku1XSgg3sDLa5evHZpCwjspw7E8Is4K/haRPDJrBcX3YSn/Y7gUvFnByNYEKQNbNog==",+ "license": "Apache-2.0",+ "dependencies": {+ "@opentelemetry/core": "1.30.1",+ "@opentelemetry/resources": "1.30.1"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.3.0 <1.10.0"+ }+ },+ "node_modules/@opentelemetry/sdk-trace-base": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-base/-/sdk-trace-base-1.30.1.tgz",+ "integrity": "sha512-jVPgBbH1gCy2Lb7X0AVQ8XAfgg0pJ4nvl8/IiQA6nxOsPvS+0zMJaFSs2ltXe0J6C8dqjcnpyqINDJmU30+uOg==",+ "license": "Apache-2.0",+ "dependencies": {+ "@opentelemetry/core": "1.30.1",+ "@opentelemetry/resources": "1.30.1",+ "@opentelemetry/semantic-conventions": "1.28.0"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.0.0 <1.10.0"+ }+ },+ "node_modules/@opentelemetry/sdk-trace-base/node_modules/@opentelemetry/semantic-conventions": {+ "version": "1.28.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.28.0.tgz",+ "integrity": "sha512-lp4qAiMTD4sNWW4DbKLBkfiMZ4jbAboJIGOQr5DvciMRI494OapieI9qiODpOt0XBr1LjIDy1xAGAnVs5supTA==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@opentelemetry/sdk-trace-node": {+ "version": "1.30.1",+ "resolved": "https://registry.npmjs.org/@opentelemetry/sdk-trace-node/-/sdk-trace-node-1.30.1.tgz",+ "integrity": "sha512-cBjYOINt1JxXdpw1e5MlHmFRc5fgj4GW/86vsKFxJCJ8AL4PdVtYH41gWwl4qd4uQjqEL1oJVrXkSy5cnduAnQ==",+ "license": "Apache-2.0",+ "dependencies": {+ "@opentelemetry/context-async-hooks": "1.30.1",+ "@opentelemetry/core": "1.30.1",+ "@opentelemetry/propagator-b3": "1.30.1",+ "@opentelemetry/propagator-jaeger": "1.30.1",+ "@opentelemetry/sdk-trace-base": "1.30.1",+ "semver": "^7.5.2"+ },+ "engines": {+ "node": ">=14"+ },+ "peerDependencies": {+ "@opentelemetry/api": ">=1.0.0 <1.10.0"+ }+ },+ "node_modules/@opentelemetry/semantic-conventions": {+ "version": "1.39.0",+ "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.39.0.tgz",+ "integrity": "sha512-R5R9tb2AXs2IRLNKLBJDynhkfmx7mX0vi8NkhZb3gUkPWHn6HXk5J8iQ/dql0U3ApfWym4kXXmBDRGO+oeOfjg==",+ "license": "Apache-2.0",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/@oxc-project/types": {+ "version": "0.112.0",+ "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.112.0.tgz",+ "integrity": "sha512-m6RebKHIRsax2iCwVpYW2ErQwa4ywHJrE4sCK3/8JK8ZZAWOKXaRJFl/uP51gaVyyXlaS4+chU1nSCdzYf6QqQ==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/Boshen"+ }+ },+ "node_modules/@protobufjs/aspromise": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",+ "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/base64": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz",+ "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/codegen": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz",+ "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/eventemitter": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz",+ "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/fetch": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz",+ "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==",+ "license": "BSD-3-Clause",+ "dependencies": {+ "@protobufjs/aspromise": "^1.1.1",+ "@protobufjs/inquire": "^1.1.0"+ }+ },+ "node_modules/@protobufjs/float": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz",+ "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/inquire": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz",+ "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/path": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz",+ "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/pool": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz",+ "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@protobufjs/utf8": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz",+ "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==",+ "license": "BSD-3-Clause"+ },+ "node_modules/@quansync/fs": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/@quansync/fs/-/fs-1.0.0.tgz",+ "integrity": "sha512-4TJ3DFtlf1L5LDMaM6CanJ/0lckGNtJcMjQ1NAV6zDmA0tEHKZtxNKin8EgPaVX1YzljbxckyT2tJrpQKAtngQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "quansync": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sxzz"+ }+ },+ "node_modules/@rolldown/binding-android-arm64": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.3.tgz",+ "integrity": "sha512-0T1k9FinuBZ/t7rZ8jN6OpUKPnUjNdYHoj/cESWrQ3ZraAJ4OMm6z7QjSfCxqj8mOp9kTKc1zHK3kGz5vMu+nQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-darwin-arm64": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.3.tgz",+ "integrity": "sha512-JWWLzvcmc/3pe7qdJqPpuPk91SoE/N+f3PcWx/6ZwuyDVyungAEJPvKm/eEldiDdwTmaEzWfIR+HORxYWrCi1A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-darwin-x64": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.3.tgz",+ "integrity": "sha512-MTakBxfx3tde5WSmbHxuqlDsIW0EzQym+PJYGF4P6lG2NmKzi128OGynoFUqoD5ryCySEY85dug4v+LWGBElIw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-freebsd-x64": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.3.tgz",+ "integrity": "sha512-jje3oopyOLs7IwfvXoS6Lxnmie5JJO7vW29fdGFu5YGY1EDbVDhD+P9vDihqS5X6fFiqL3ZQZCMBg6jyHkSVww==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-arm-gnueabihf": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.3.tgz",+ "integrity": "sha512-A0n8P3hdLAaqzSFrQoA42p23ZKBYQOw+8EH5r15Sa9X1kD9/JXe0YT2gph2QTWvdr0CVK2BOXiK6ENfy6DXOag==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-arm64-gnu": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.3.tgz",+ "integrity": "sha512-kWXkoxxarYISBJ4bLNf5vFkEbb4JvccOwxWDxuK9yee8lg5XA7OpvlTptfRuwEvYcOZf+7VS69Uenpmpyo5Bjw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-arm64-musl": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.3.tgz",+ "integrity": "sha512-Z03/wrqau9Bicfgb3Dbs6SYTHliELk2PM2LpG2nFd+cGupTMF5kanLEcj2vuuJLLhptNyS61rtk7SOZ+lPsTUA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-x64-gnu": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.3.tgz",+ "integrity": "sha512-iSXXZsQp08CSilff/DCTFZHSVEpEwdicV3W8idHyrByrcsRDVh9sGC3sev6d8BygSGj3vt8GvUKBPCoyMA4tgQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-linux-x64-musl": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.3.tgz",+ "integrity": "sha512-qaj+MFudtdCv9xZo9znFvkgoajLdc+vwf0Kz5N44g+LU5XMe+IsACgn3UG7uTRlCCvhMAGXm1XlpEA5bZBrOcw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-openharmony-arm64": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.3.tgz",+ "integrity": "sha512-U662UnMETyjT65gFmG9ma+XziENrs7BBnENi/27swZPYagubfHRirXHG2oMl+pEax2WvO7Kb9gHZmMakpYqBHQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-wasm32-wasi": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.3.tgz",+ "integrity": "sha512-gekrQ3Q2HiC1T5njGyuUJoGpK/l6B/TNXKed3fZXNf9YRTJn3L5MOZsFBn4bN2+UX+8+7hgdlTcEsexX988G4g==",+ "cpu": [+ "wasm32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "@napi-rs/wasm-runtime": "^1.1.1"+ },+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/@rolldown/binding-win32-arm64-msvc": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.3.tgz",+ "integrity": "sha512-85y5JifyMgs8m5K2XzR/VDsapKbiFiohl7s5lEj7nmNGO0pkTXE7q6TQScei96BNAsoK7JC3pA7ukA8WRHVJpg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/binding-win32-x64-msvc": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.3.tgz",+ "integrity": "sha512-a4VUQZH7LxGbUJ3qJ/TzQG8HxdHvf+jOnqf7B7oFx1TEBm+j2KNL2zr5SQ7wHkNAcaPevF6gf9tQnVBnC4mD+A==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ }+ },+ "node_modules/@rolldown/pluginutils": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.3.tgz",+ "integrity": "sha512-eybk3TjzzzV97Dlj5c+XrBFW57eTNhzod66y9HrBlzJ6NsCrWCp/2kaPS3K9wJmurBC0Tdw4yPjXKZqlznim3Q==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.59.0.tgz",+ "integrity": "sha512-upnNBkA6ZH2VKGcBj9Fyl9IGNPULcjXRlg0LLeaioQWueH30p6IXtJEbKAgvyv+mJaMxSm1l6xwDXYjpEMiLMg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.59.0.tgz",+ "integrity": "sha512-hZ+Zxj3SySm4A/DylsDKZAeVg0mvi++0PYVceVyX7hemkw7OreKdCvW2oQ3T1FMZvCaQXqOTHb8qmBShoqk69Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]+ },+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.59.0.tgz",+ "integrity": "sha512-W2Psnbh1J8ZJw0xKAd8zdNgF9HRLkdWwwdWqubSVk0pUuQkoHnv7rx4GiF9rT4t5DIZGAsConRE3AxCdJ4m8rg==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.59.0.tgz",+ "integrity": "sha512-ZW2KkwlS4lwTv7ZVsYDiARfFCnSGhzYPdiOU4IM2fDbL+QGlyAbjgSFuqNRbSthybLbIJ915UtZBtmuLrQAT/w==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.59.0.tgz",+ "integrity": "sha512-EsKaJ5ytAu9jI3lonzn3BgG8iRBjV4LxZexygcQbpiU0wU0ATxhNVEpXKfUa0pS05gTcSDMKpn3Sx+QB9RlTTA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.59.0.tgz",+ "integrity": "sha512-d3DuZi2KzTMjImrxoHIAODUZYoUUMsuUiY4SRRcJy6NJoZ6iIqWnJu9IScV9jXysyGMVuW+KNzZvBLOcpdl3Vg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.59.0.tgz",+ "integrity": "sha512-t4ONHboXi/3E0rT6OZl1pKbl2Vgxf9vJfWgmUoCEVQVxhW6Cw/c8I6hbbu7DAvgp82RKiH7TpLwxnJeKv2pbsw==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.59.0.tgz",+ "integrity": "sha512-CikFT7aYPA2ufMD086cVORBYGHffBo4K8MQ4uPS/ZnY54GKj36i196u8U+aDVT2LX4eSMbyHtyOh7D7Zvk2VvA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.59.0.tgz",+ "integrity": "sha512-jYgUGk5aLd1nUb1CtQ8E+t5JhLc9x5WdBKew9ZgAXg7DBk0ZHErLHdXM24rfX+bKrFe+Xp5YuJo54I5HFjGDAA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.59.0.tgz",+ "integrity": "sha512-peZRVEdnFWZ5Bh2KeumKG9ty7aCXzzEsHShOZEFiCQlDEepP1dpUl/SrUNXNg13UmZl+gzVDPsiCwnV1uI0RUA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.59.0.tgz",+ "integrity": "sha512-gbUSW/97f7+r4gHy3Jlup8zDG190AuodsWnNiXErp9mT90iCy9NKKU0Xwx5k8VlRAIV2uU9CsMnEFg/xXaOfXg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-loong64-musl": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.59.0.tgz",+ "integrity": "sha512-yTRONe79E+o0FWFijasoTjtzG9EBedFXJMl888NBEDCDV9I2wGbFFfJQQe63OijbFCUZqxpHz1GzpbtSFikJ4Q==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.59.0.tgz",+ "integrity": "sha512-sw1o3tfyk12k3OEpRddF68a1unZ5VCN7zoTNtSn2KndUE+ea3m3ROOKRCZxEpmT9nsGnogpFP9x6mnLTCaoLkA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-ppc64-musl": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.59.0.tgz",+ "integrity": "sha512-+2kLtQ4xT3AiIxkzFVFXfsmlZiG5FXYW7ZyIIvGA7Bdeuh9Z0aN4hVyXS/G1E9bTP/vqszNIN/pUKCk/BTHsKA==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.59.0.tgz",+ "integrity": "sha512-NDYMpsXYJJaj+I7UdwIuHHNxXZ/b/N2hR15NyH3m2qAtb/hHPA4g4SuuvrdxetTdndfj9b1WOmy73kcPRoERUg==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.59.0.tgz",+ "integrity": "sha512-nLckB8WOqHIf1bhymk+oHxvM9D3tyPndZH8i8+35p/1YiVoVswPid2yLzgX7ZJP0KQvnkhM4H6QZ5m0LzbyIAg==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.59.0.tgz",+ "integrity": "sha512-oF87Ie3uAIvORFBpwnCvUzdeYUqi2wY6jRFWJAy1qus/udHFYIkplYRW+wo+GRUP4sKzYdmE1Y3+rY5Gc4ZO+w==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.59.0.tgz",+ "integrity": "sha512-3AHmtQq/ppNuUspKAlvA8HtLybkDflkMuLK4DPo77DfthRb71V84/c4MlWJXixZz4uruIH4uaa07IqoAkG64fg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.59.0.tgz",+ "integrity": "sha512-2UdiwS/9cTAx7qIUZB/fWtToJwvt0Vbo0zmnYt7ED35KPg13Q0ym1g442THLC7VyI6JfYTP4PiSOWyoMdV2/xg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-openbsd-x64": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.59.0.tgz",+ "integrity": "sha512-M3bLRAVk6GOwFlPTIxVBSYKUaqfLrn8l0psKinkCFxl4lQvOSz8ZrKDz2gxcBwHFpci0B6rttydI4IpS4IS/jQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ]+ },+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.59.0.tgz",+ "integrity": "sha512-tt9KBJqaqp5i5HUZzoafHZX8b5Q2Fe7UjYERADll83O4fGqJ49O1FsL6LpdzVFQcpwvnyd0i+K/VSwu/o/nWlA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.59.0.tgz",+ "integrity": "sha512-V5B6mG7OrGTwnxaNUzZTDTjDS7F75PO1ae6MJYdiMu60sq0CqN5CVeVsbhPxalupvTX8gXVSU9gq+Rx1/hvu6A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.59.0.tgz",+ "integrity": "sha512-UKFMHPuM9R0iBegwzKF4y0C4J9u8C6MEJgFuXTBerMk7EJ92GFVFYBfOZaSGLu6COf7FxpQNqhNS4c4icUPqxA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.59.0.tgz",+ "integrity": "sha512-laBkYlSS1n2L8fSo1thDNGrCTQMmxjYY5G0WFWjFFYZkKPjsMBsgJfGf4TLxXrF6RyhI60L8TMOjBMvXiTcxeA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.59.0.tgz",+ "integrity": "sha512-2HRCml6OztYXyJXAvdDXPKcawukWY2GpR5/nxKp4iBgiO3wcoEGkAaqctIbZcNB6KlUQBIqt8VYkNSj2397EfA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@tybys/wasm-util": {+ "version": "0.10.1",+ "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz",+ "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "dependencies": {+ "tslib": "^2.4.0"+ }+ },+ "node_modules/@types/chai": {+ "version": "5.2.3",+ "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.3.tgz",+ "integrity": "sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/deep-eql": "*",+ "assertion-error": "^2.0.1"+ }+ },+ "node_modules/@types/deep-eql": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz",+ "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==",+ "dev": true,+ "license": "MIT"+ },+ "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/@types/jsesc": {+ "version": "2.5.1",+ "resolved": "https://registry.npmjs.org/@types/jsesc/-/jsesc-2.5.1.tgz",+ "integrity": "sha512-9VN+6yxLOPLOav+7PwjZbxiID2bVaeq0ED4qSQmdQTdjnXJSaCVKTR58t15oqH1H5t8Ng2ZX1SabJVoN9Q34bw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/@types/node": {+ "version": "22.19.11",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.11.tgz",+ "integrity": "sha512-BH7YwL6rA93ReqeQS1c4bsPpcfOmJasG+Fkr6Y59q83f9M1WcBRHR2vM+P9eOisYRcN3ujQoiZY8uk5W+1WL8w==",+ "license": "MIT",+ "dependencies": {+ "undici-types": "~6.21.0"+ }+ },+ "node_modules/@types/node-fetch": {+ "version": "2.6.13",+ "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-2.6.13.tgz",+ "integrity": "sha512-QGpRVpzSaUs30JBSGPjOg4Uveu384erbHBoT1zeONvyCfwQxIkUshLAOqN/k9EjGviPRmWTTe6aH2qySWKTVSw==",+ "license": "MIT",+ "dependencies": {+ "@types/node": "*",+ "form-data": "^4.0.4"+ }+ },+ "node_modules/@types/shimmer": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/@types/shimmer/-/shimmer-1.2.0.tgz",+ "integrity": "sha512-UE7oxhQLLd9gub6JKIAhDq06T0F6FnztwMNRvYgjeQSBeMc1ZG/tA47EwfduvkuQS8apbkM/lpLpWsaCeYsXVg==",+ "license": "MIT"+ },+ "node_modules/@vitest/expect": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-3.2.4.tgz",+ "integrity": "sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/chai": "^5.2.2",+ "@vitest/spy": "3.2.4",+ "@vitest/utils": "3.2.4",+ "chai": "^5.2.0",+ "tinyrainbow": "^2.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/mocker": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-3.2.4.tgz",+ "integrity": "sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/spy": "3.2.4",+ "estree-walker": "^3.0.3",+ "magic-string": "^0.30.17"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "msw": "^2.4.9",+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0"+ },+ "peerDependenciesMeta": {+ "msw": {+ "optional": true+ },+ "vite": {+ "optional": true+ }+ }+ },+ "node_modules/@vitest/pretty-format": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.4.tgz",+ "integrity": "sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyrainbow": "^2.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/runner": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-3.2.4.tgz",+ "integrity": "sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/utils": "3.2.4",+ "pathe": "^2.0.3",+ "strip-literal": "^3.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/snapshot": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-3.2.4.tgz",+ "integrity": "sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/pretty-format": "3.2.4",+ "magic-string": "^0.30.17",+ "pathe": "^2.0.3"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/spy": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.4.tgz",+ "integrity": "sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "tinyspy": "^4.0.3"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/@vitest/utils": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-3.2.4.tgz",+ "integrity": "sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@vitest/pretty-format": "3.2.4",+ "loupe": "^3.1.4",+ "tinyrainbow": "^2.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/abort-controller": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz",+ "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==",+ "license": "MIT",+ "dependencies": {+ "event-target-shim": "^5.0.0"+ },+ "engines": {+ "node": ">=6.5"+ }+ },+ "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==",+ "license": "MIT",+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/acorn-import-attributes": {+ "version": "1.9.5",+ "resolved": "https://registry.npmjs.org/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz",+ "integrity": "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==",+ "license": "MIT",+ "peerDependencies": {+ "acorn": "^8"+ }+ },+ "node_modules/agentkeepalive": {+ "version": "4.6.0",+ "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.6.0.tgz",+ "integrity": "sha512-kja8j7PjmncONqaTsB8fQ+wE2mSU2DJ9D4XKoJ5PFWIdRMa6SLSN1ff4mOr4jCbfRSsxR4keIiySJU0N9T5hIQ==",+ "license": "MIT",+ "dependencies": {+ "humanize-ms": "^1.2.1"+ },+ "engines": {+ "node": ">= 8.0.0"+ }+ },+ "node_modules/ansis": {+ "version": "4.2.0",+ "resolved": "https://registry.npmjs.org/ansis/-/ansis-4.2.0.tgz",+ "integrity": "sha512-HqZ5rWlFjGiV0tDm3UxxgNRqsOTniqoKZu0pIAfh7TZQMGuZK+hH0drySty0si0QXj1ieop4+SkSfPZBPPkHig==",+ "dev": true,+ "license": "ISC",+ "engines": {+ "node": ">=14"+ }+ },+ "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/ast-kit": {+ "version": "3.0.0-beta.1",+ "resolved": "https://registry.npmjs.org/ast-kit/-/ast-kit-3.0.0-beta.1.tgz",+ "integrity": "sha512-trmleAnZ2PxN/loHWVhhx1qeOHSRXq4TDsBBxq3GqeJitfk3+jTQ+v/C1km/KYq9M7wKqCewMh+/NAvVH7m+bw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/parser": "^8.0.0-beta.4",+ "estree-walker": "^3.0.3",+ "pathe": "^2.0.3"+ },+ "engines": {+ "node": ">=20.19.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sxzz"+ }+ },+ "node_modules/asynckit": {+ "version": "0.4.0",+ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",+ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",+ "license": "MIT"+ },+ "node_modules/birpc": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/birpc/-/birpc-4.0.0.tgz",+ "integrity": "sha512-LShSxJP0KTmd101b6DRyGBj57LZxSDYWKitQNW/mi8GRMvZb078Uf9+pveax1DrVL89vm7mWe+TovdI/UDOuPw==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ }+ },+ "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/call-bind-apply-helpers": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "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/cjs-module-lexer": {+ "version": "1.4.3",+ "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz",+ "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==",+ "license": "MIT"+ },+ "node_modules/combined-stream": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",+ "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",+ "license": "MIT",+ "dependencies": {+ "delayed-stream": "~1.0.0"+ },+ "engines": {+ "node": ">= 0.8"+ }+ },+ "node_modules/debug": {+ "version": "4.4.3",+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",+ "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",+ "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/defu": {+ "version": "6.1.4",+ "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.4.tgz",+ "integrity": "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/delayed-stream": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",+ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",+ "license": "MIT",+ "engines": {+ "node": ">=0.4.0"+ }+ },+ "node_modules/dotenv": {+ "version": "16.6.1",+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",+ "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",+ "license": "BSD-2-Clause",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://dotenvx.com"+ }+ },+ "node_modules/dts-resolver": {+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/dts-resolver/-/dts-resolver-2.1.3.tgz",+ "integrity": "sha512-bihc7jPC90VrosXNzK0LTE2cuLP6jr0Ro8jk+kMugHReJVLIpHz/xadeq3MhuwyO4TD4OA3L1Q8pBBFRc08Tsw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=20.19.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sxzz"+ },+ "peerDependencies": {+ "oxc-resolver": ">=11.0.0"+ },+ "peerDependenciesMeta": {+ "oxc-resolver": {+ "optional": true+ }+ }+ },+ "node_modules/dunder-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.1",+ "es-errors": "^1.3.0",+ "gopd": "^1.2.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/empathic": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/empathic/-/empathic-2.0.0.tgz",+ "integrity": "sha512-i6UzDscO/XfAcNYD75CfICkmfLedpyPDdozrLMmQc5ORaQcdMoc21OnlEylMIqI7U8eniKrPMxxtj8k0vhmJhA==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14"+ }+ },+ "node_modules/es-define-property": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-errors": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "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/es-object-atoms": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/es-set-tostringtag": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",+ "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",+ "license": "MIT",+ "dependencies": {+ "es-errors": "^1.3.0",+ "get-intrinsic": "^1.2.6",+ "has-tostringtag": "^1.0.2",+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/esbuild": {+ "version": "0.27.3",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.3.tgz",+ "integrity": "sha512-8VwMnyGCONIs6cWue2IdpHxHnAjzxnw2Zr7MkVxB2vjmQ2ivqGFb4LEG3SMnv0Gb2F/G/2yA8zUaiL1gywDCCg==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.27.3",+ "@esbuild/android-arm": "0.27.3",+ "@esbuild/android-arm64": "0.27.3",+ "@esbuild/android-x64": "0.27.3",+ "@esbuild/darwin-arm64": "0.27.3",+ "@esbuild/darwin-x64": "0.27.3",+ "@esbuild/freebsd-arm64": "0.27.3",+ "@esbuild/freebsd-x64": "0.27.3",+ "@esbuild/linux-arm": "0.27.3",+ "@esbuild/linux-arm64": "0.27.3",+ "@esbuild/linux-ia32": "0.27.3",+ "@esbuild/linux-loong64": "0.27.3",+ "@esbuild/linux-mips64el": "0.27.3",+ "@esbuild/linux-ppc64": "0.27.3",+ "@esbuild/linux-riscv64": "0.27.3",+ "@esbuild/linux-s390x": "0.27.3",+ "@esbuild/linux-x64": "0.27.3",+ "@esbuild/netbsd-arm64": "0.27.3",+ "@esbuild/netbsd-x64": "0.27.3",+ "@esbuild/openbsd-arm64": "0.27.3",+ "@esbuild/openbsd-x64": "0.27.3",+ "@esbuild/openharmony-arm64": "0.27.3",+ "@esbuild/sunos-x64": "0.27.3",+ "@esbuild/win32-arm64": "0.27.3",+ "@esbuild/win32-ia32": "0.27.3",+ "@esbuild/win32-x64": "0.27.3"+ }+ },+ "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/event-target-shim": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",+ "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==",+ "license": "MIT",+ "engines": {+ "node": ">=6"+ }+ },+ "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/form-data": {+ "version": "4.0.5",+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",+ "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==",+ "license": "MIT",+ "dependencies": {+ "asynckit": "^0.4.0",+ "combined-stream": "^1.0.8",+ "es-set-tostringtag": "^2.1.0",+ "hasown": "^2.0.2",+ "mime-types": "^2.1.12"+ },+ "engines": {+ "node": ">= 6"+ }+ },+ "node_modules/form-data-encoder": {+ "version": "1.7.2",+ "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.2.tgz",+ "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==",+ "license": "MIT"+ },+ "node_modules/formdata-node": {+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz",+ "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==",+ "license": "MIT",+ "dependencies": {+ "node-domexception": "1.0.0",+ "web-streams-polyfill": "4.0.0-beta.3"+ },+ "engines": {+ "node": ">= 12.20"+ }+ },+ "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/function-bind": {+ "version": "1.1.2",+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",+ "license": "MIT",+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-intrinsic": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",+ "license": "MIT",+ "dependencies": {+ "call-bind-apply-helpers": "^1.0.2",+ "es-define-property": "^1.0.1",+ "es-errors": "^1.3.0",+ "es-object-atoms": "^1.1.1",+ "function-bind": "^1.1.2",+ "get-proto": "^1.0.1",+ "gopd": "^1.2.0",+ "has-symbols": "^1.1.0",+ "hasown": "^2.0.2",+ "math-intrinsics": "^1.1.0"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/get-proto": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",+ "license": "MIT",+ "dependencies": {+ "dunder-proto": "^1.0.1",+ "es-object-atoms": "^1.0.0"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/get-tsconfig": {+ "version": "4.13.6",+ "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.6.tgz",+ "integrity": "sha512-shZT/QMiSHc/YBLxxOkMtgSid5HFoauqCE3/exfsEcwg1WkeqjG+V40yBbBrsD+jW2HDXcs28xOfcbm2jI8Ddw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "resolve-pkg-maps": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"+ }+ },+ "node_modules/gopd": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-symbols": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/has-tostringtag": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",+ "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",+ "license": "MIT",+ "dependencies": {+ "has-symbols": "^1.0.3"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/hasown": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",+ "license": "MIT",+ "dependencies": {+ "function-bind": "^1.1.2"+ },+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/hookable": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/hookable/-/hookable-6.0.1.tgz",+ "integrity": "sha512-uKGyY8BuzN/a5gvzvA+3FVWo0+wUjgtfSdnmjtrOVwQCZPHpHDH2WRO3VZSOeluYrHoDCiXFffZXs8Dj1ULWtw==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/humanize-ms": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz",+ "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==",+ "license": "MIT",+ "dependencies": {+ "ms": "^2.0.0"+ }+ },+ "node_modules/iii-sdk": {+ "version": "0.3.0",+ "resolved": "https://registry.npmjs.org/iii-sdk/-/iii-sdk-0.3.0.tgz",+ "integrity": "sha512-v0lV72aXlVMSehYDYVx6rqy8EDXkzUtAM17TBNRI9HRZnRlMON6hgmm/pIkb+rULUujaaaQxTv+WVxJMlmzEDA==",+ "license": "Apache-2.0",+ "dependencies": {+ "@opentelemetry/api": "^1.9.0",+ "@opentelemetry/api-logs": "^0.57.0",+ "@opentelemetry/core": "^1.30.0",+ "@opentelemetry/instrumentation": "^0.57.0",+ "@opentelemetry/otlp-transformer": "^0.57.0",+ "@opentelemetry/resources": "^1.30.0",+ "@opentelemetry/sdk-logs": "^0.57.0",+ "@opentelemetry/sdk-metrics": "^1.30.0",+ "@opentelemetry/sdk-trace-base": "^1.30.0",+ "@opentelemetry/sdk-trace-node": "^1.30.0",+ "@opentelemetry/semantic-conventions": "^1.28.0",+ "ws": "^8.18.3"+ }+ },+ "node_modules/import-in-the-middle": {+ "version": "1.15.0",+ "resolved": "https://registry.npmjs.org/import-in-the-middle/-/import-in-the-middle-1.15.0.tgz",+ "integrity": "sha512-bpQy+CrsRmYmoPMAE/0G33iwRqwW4ouqdRg8jgbH3aKuCtOc8lxgmYXg2dMM92CRiGP660EtBcymH/eVUpCSaA==",+ "license": "Apache-2.0",+ "dependencies": {+ "acorn": "^8.14.0",+ "acorn-import-attributes": "^1.9.5",+ "cjs-module-lexer": "^1.2.2",+ "module-details-from-path": "^1.0.3"+ }+ },+ "node_modules/import-without-cache": {+ "version": "0.2.5",+ "resolved": "https://registry.npmjs.org/import-without-cache/-/import-without-cache-0.2.5.tgz",+ "integrity": "sha512-B6Lc2s6yApwnD2/pMzFh/d5AVjdsDXjgkeJ766FmFuJELIGHNycKRj+l3A39yZPM4CchqNCB4RITEAYB1KUM6A==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=20.19.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sxzz"+ }+ },+ "node_modules/is-core-module": {+ "version": "2.16.1",+ "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",+ "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",+ "license": "MIT",+ "dependencies": {+ "hasown": "^2.0.2"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/jiti": {+ "version": "2.6.1",+ "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.6.1.tgz",+ "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==",+ "dev": true,+ "license": "MIT",+ "optional": true,+ "peer": true,+ "bin": {+ "jiti": "lib/jiti-cli.mjs"+ }+ },+ "node_modules/jsesc": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",+ "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",+ "dev": true,+ "license": "MIT",+ "bin": {+ "jsesc": "bin/jsesc"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/long": {+ "version": "5.3.2",+ "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz",+ "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==",+ "license": "Apache-2.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/math-intrinsics": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ }+ },+ "node_modules/mime-db": {+ "version": "1.52.0",+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/mime-types": {+ "version": "2.1.35",+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",+ "license": "MIT",+ "dependencies": {+ "mime-db": "1.52.0"+ },+ "engines": {+ "node": ">= 0.6"+ }+ },+ "node_modules/module-details-from-path": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/module-details-from-path/-/module-details-from-path-1.0.4.tgz",+ "integrity": "sha512-EGWKgxALGMgzvxYF1UyGTy0HXX/2vHLkw6+NvDKW2jypWbHpjQuj4UMcqQWXHERJhVGKikolT06G3bcKe4fi7w==",+ "license": "MIT"+ },+ "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==",+ "license": "MIT"+ },+ "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/node-domexception": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",+ "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==",+ "deprecated": "Use your platform's native DOMException instead",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/jimmywarting"+ },+ {+ "type": "github",+ "url": "https://paypal.me/jimmywarting"+ }+ ],+ "license": "MIT",+ "engines": {+ "node": ">=10.5.0"+ }+ },+ "node_modules/node-fetch": {+ "version": "2.7.0",+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",+ "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",+ "license": "MIT",+ "dependencies": {+ "whatwg-url": "^5.0.0"+ },+ "engines": {+ "node": "4.x || >=6.0.0"+ },+ "peerDependencies": {+ "encoding": "^0.1.0"+ },+ "peerDependenciesMeta": {+ "encoding": {+ "optional": true+ }+ }+ },+ "node_modules/obug": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/obug/-/obug-2.1.1.tgz",+ "integrity": "sha512-uTqF9MuPraAQ+IsnPf366RG4cP9RtUi7MLO1N3KEc+wb0a6yKpeL0lmk2IB1jY5KHPAlTc6T/JRdC/YqxHNwkQ==",+ "dev": true,+ "funding": [+ "https://github.com/sponsors/sxzz",+ "https://opencollective.com/debug"+ ],+ "license": "MIT"+ },+ "node_modules/path-parse": {+ "version": "1.0.7",+ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",+ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",+ "license": "MIT"+ },+ "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.3",+ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz",+ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/sponsors/jonschlinkert"+ }+ },+ "node_modules/postcss": {+ "version": "8.5.6",+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",+ "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",+ "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/protobufjs": {+ "version": "7.5.4",+ "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.4.tgz",+ "integrity": "sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg==",+ "hasInstallScript": true,+ "license": "BSD-3-Clause",+ "dependencies": {+ "@protobufjs/aspromise": "^1.1.2",+ "@protobufjs/base64": "^1.1.2",+ "@protobufjs/codegen": "^2.0.4",+ "@protobufjs/eventemitter": "^1.1.0",+ "@protobufjs/fetch": "^1.1.0",+ "@protobufjs/float": "^1.0.2",+ "@protobufjs/inquire": "^1.1.0",+ "@protobufjs/path": "^1.1.2",+ "@protobufjs/pool": "^1.1.0",+ "@protobufjs/utf8": "^1.1.0",+ "@types/node": ">=13.7.0",+ "long": "^5.0.0"+ },+ "engines": {+ "node": ">=12.0.0"+ }+ },+ "node_modules/quansync": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/quansync/-/quansync-1.0.0.tgz",+ "integrity": "sha512-5xZacEEufv3HSTPQuchrvV6soaiACMFnq1H8wkVioctoH3TRha9Sz66lOxRwPK/qZj7HPiSveih9yAyh98gvqA==",+ "dev": true,+ "funding": [+ {+ "type": "individual",+ "url": "https://github.com/sponsors/antfu"+ },+ {+ "type": "individual",+ "url": "https://github.com/sponsors/sxzz"+ }+ ],+ "license": "MIT"+ },+ "node_modules/require-in-the-middle": {+ "version": "7.5.2",+ "resolved": "https://registry.npmjs.org/require-in-the-middle/-/require-in-the-middle-7.5.2.tgz",+ "integrity": "sha512-gAZ+kLqBdHarXB64XpAe2VCjB7rIRv+mU8tfRWziHRJ5umKsIHN2tLLv6EtMw7WCdP19S0ERVMldNvxYCHnhSQ==",+ "license": "MIT",+ "dependencies": {+ "debug": "^4.3.5",+ "module-details-from-path": "^1.0.3",+ "resolve": "^1.22.8"+ },+ "engines": {+ "node": ">=8.6.0"+ }+ },+ "node_modules/resolve": {+ "version": "1.22.11",+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz",+ "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==",+ "license": "MIT",+ "dependencies": {+ "is-core-module": "^2.16.1",+ "path-parse": "^1.0.7",+ "supports-preserve-symlinks-flag": "^1.0.0"+ },+ "bin": {+ "resolve": "bin/resolve"+ },+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "node_modules/resolve-pkg-maps": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",+ "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",+ "dev": true,+ "license": "MIT",+ "funding": {+ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"+ }+ },+ "node_modules/rolldown": {+ "version": "1.0.0-rc.3",+ "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.3.tgz",+ "integrity": "sha512-Po/YZECDOqVXjIXrtC5h++a5NLvKAQNrd9ggrIG3sbDfGO5BqTUsrI6l8zdniKRp3r5Tp/2JTrXqx4GIguFCMw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@oxc-project/types": "=0.112.0",+ "@rolldown/pluginutils": "1.0.0-rc.3"+ },+ "bin": {+ "rolldown": "bin/cli.mjs"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ },+ "optionalDependencies": {+ "@rolldown/binding-android-arm64": "1.0.0-rc.3",+ "@rolldown/binding-darwin-arm64": "1.0.0-rc.3",+ "@rolldown/binding-darwin-x64": "1.0.0-rc.3",+ "@rolldown/binding-freebsd-x64": "1.0.0-rc.3",+ "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.3",+ "@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.3",+ "@rolldown/binding-linux-arm64-musl": "1.0.0-rc.3",+ "@rolldown/binding-linux-x64-gnu": "1.0.0-rc.3",+ "@rolldown/binding-linux-x64-musl": "1.0.0-rc.3",+ "@rolldown/binding-openharmony-arm64": "1.0.0-rc.3",+ "@rolldown/binding-wasm32-wasi": "1.0.0-rc.3",+ "@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.3",+ "@rolldown/binding-win32-x64-msvc": "1.0.0-rc.3"+ }+ },+ "node_modules/rolldown-plugin-dts": {+ "version": "0.22.1",+ "resolved": "https://registry.npmjs.org/rolldown-plugin-dts/-/rolldown-plugin-dts-0.22.1.tgz",+ "integrity": "sha512-5E0AiM5RSQhU6cjtkDFWH6laW4IrMu0j1Mo8x04Xo1ALHmaRMs9/7zej7P3RrryVHW/DdZAp85MA7Be55p0iUw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@babel/generator": "8.0.0-rc.1",+ "@babel/helper-validator-identifier": "8.0.0-rc.1",+ "@babel/parser": "8.0.0-rc.1",+ "@babel/types": "8.0.0-rc.1",+ "ast-kit": "^3.0.0-beta.1",+ "birpc": "^4.0.0",+ "dts-resolver": "^2.1.3",+ "get-tsconfig": "^4.13.1",+ "obug": "^2.1.1"+ },+ "engines": {+ "node": ">=20.19.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sxzz"+ },+ "peerDependencies": {+ "@ts-macro/tsc": "^0.3.6",+ "@typescript/native-preview": ">=7.0.0-dev.20250601.1",+ "rolldown": "^1.0.0-rc.3",+ "typescript": "^5.0.0",+ "vue-tsc": "~3.2.0"+ },+ "peerDependenciesMeta": {+ "@ts-macro/tsc": {+ "optional": true+ },+ "@typescript/native-preview": {+ "optional": true+ },+ "typescript": {+ "optional": true+ },+ "vue-tsc": {+ "optional": true+ }+ }+ },+ "node_modules/rollup": {+ "version": "4.59.0",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.59.0.tgz",+ "integrity": "sha512-2oMpl67a3zCH9H79LeMcbDhXW/UmWG/y2zuqnF2jQq5uq9TbM9TVyXvA4+t+ne2IIkBdrLpAaRQAvo7YI/Yyeg==",+ "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.59.0",+ "@rollup/rollup-android-arm64": "4.59.0",+ "@rollup/rollup-darwin-arm64": "4.59.0",+ "@rollup/rollup-darwin-x64": "4.59.0",+ "@rollup/rollup-freebsd-arm64": "4.59.0",+ "@rollup/rollup-freebsd-x64": "4.59.0",+ "@rollup/rollup-linux-arm-gnueabihf": "4.59.0",+ "@rollup/rollup-linux-arm-musleabihf": "4.59.0",+ "@rollup/rollup-linux-arm64-gnu": "4.59.0",+ "@rollup/rollup-linux-arm64-musl": "4.59.0",+ "@rollup/rollup-linux-loong64-gnu": "4.59.0",+ "@rollup/rollup-linux-loong64-musl": "4.59.0",+ "@rollup/rollup-linux-ppc64-gnu": "4.59.0",+ "@rollup/rollup-linux-ppc64-musl": "4.59.0",+ "@rollup/rollup-linux-riscv64-gnu": "4.59.0",+ "@rollup/rollup-linux-riscv64-musl": "4.59.0",+ "@rollup/rollup-linux-s390x-gnu": "4.59.0",+ "@rollup/rollup-linux-x64-gnu": "4.59.0",+ "@rollup/rollup-linux-x64-musl": "4.59.0",+ "@rollup/rollup-openbsd-x64": "4.59.0",+ "@rollup/rollup-openharmony-arm64": "4.59.0",+ "@rollup/rollup-win32-arm64-msvc": "4.59.0",+ "@rollup/rollup-win32-ia32-msvc": "4.59.0",+ "@rollup/rollup-win32-x64-gnu": "4.59.0",+ "@rollup/rollup-win32-x64-msvc": "4.59.0",+ "fsevents": "~2.3.2"+ }+ },+ "node_modules/semver": {+ "version": "7.7.4",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",+ "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",+ "license": "ISC",+ "bin": {+ "semver": "bin/semver.js"+ },+ "engines": {+ "node": ">=10"+ }+ },+ "node_modules/shimmer": {+ "version": "1.2.1",+ "resolved": "https://registry.npmjs.org/shimmer/-/shimmer-1.2.1.tgz",+ "integrity": "sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw==",+ "license": "BSD-2-Clause"+ },+ "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-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/strip-literal": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/strip-literal/-/strip-literal-3.1.0.tgz",+ "integrity": "sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "js-tokens": "^9.0.1"+ },+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ }+ },+ "node_modules/strip-literal/node_modules/js-tokens": {+ "version": "9.0.1",+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-9.0.1.tgz",+ "integrity": "sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/supports-preserve-symlinks-flag": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",+ "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",+ "license": "MIT",+ "engines": {+ "node": ">= 0.4"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"+ }+ },+ "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": "2.0.0",+ "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-2.0.0.tgz",+ "integrity": "sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/tinyspy": {+ "version": "4.0.4",+ "resolved": "https://registry.npmjs.org/tinyspy/-/tinyspy-4.0.4.tgz",+ "integrity": "sha512-azl+t0z7pw/z958Gy9svOTuzqIk6xq+NSheJzn5MMWtWTFywIacg2wUlzKFGtt3cthx0r2SxMK0yzJOR0IES7Q==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=14.0.0"+ }+ },+ "node_modules/tr46": {+ "version": "0.0.3",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",+ "license": "MIT"+ },+ "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/tsdown": {+ "version": "0.20.3",+ "resolved": "https://registry.npmjs.org/tsdown/-/tsdown-0.20.3.tgz",+ "integrity": "sha512-qWOUXSbe4jN8JZEgrkc/uhJpC8VN2QpNu3eZkBWwNuTEjc/Ik1kcc54ycfcQ5QPRHeu9OQXaLfCI3o7pEJgB2w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "ansis": "^4.2.0",+ "cac": "^6.7.14",+ "defu": "^6.1.4",+ "empathic": "^2.0.0",+ "hookable": "^6.0.1",+ "import-without-cache": "^0.2.5",+ "obug": "^2.1.1",+ "picomatch": "^4.0.3",+ "rolldown": "1.0.0-rc.3",+ "rolldown-plugin-dts": "^0.22.1",+ "semver": "^7.7.3",+ "tinyexec": "^1.0.2",+ "tinyglobby": "^0.2.15",+ "tree-kill": "^1.2.2",+ "unconfig-core": "^7.4.2",+ "unrun": "^0.2.27"+ },+ "bin": {+ "tsdown": "dist/run.mjs"+ },+ "engines": {+ "node": ">=20.19.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/sxzz"+ },+ "peerDependencies": {+ "@arethetypeswrong/core": "^0.18.1",+ "@vitejs/devtools": "*",+ "publint": "^0.3.0",+ "typescript": "^5.0.0",+ "unplugin-lightningcss": "^0.4.0",+ "unplugin-unused": "^0.5.0"+ },+ "peerDependenciesMeta": {+ "@arethetypeswrong/core": {+ "optional": true+ },+ "@vitejs/devtools": {+ "optional": true+ },+ "publint": {+ "optional": true+ },+ "typescript": {+ "optional": true+ },+ "unplugin-lightningcss": {+ "optional": true+ },+ "unplugin-unused": {+ "optional": true+ }+ }+ },+ "node_modules/tsdown/node_modules/tinyexec": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.0.2.tgz",+ "integrity": "sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==",+ "dev": true,+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/tslib": {+ "version": "2.8.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",+ "dev": true,+ "license": "0BSD",+ "optional": true+ },+ "node_modules/tsx": {+ "version": "4.21.0",+ "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.21.0.tgz",+ "integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "~0.27.0",+ "get-tsconfig": "^4.7.5"+ },+ "bin": {+ "tsx": "dist/cli.mjs"+ },+ "engines": {+ "node": ">=18.0.0"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ }+ },+ "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/unconfig-core": {+ "version": "7.5.0",+ "resolved": "https://registry.npmjs.org/unconfig-core/-/unconfig-core-7.5.0.tgz",+ "integrity": "sha512-Su3FauozOGP44ZmKdHy2oE6LPjk51M/TRRjHv2HNCWiDvfvCoxC2lno6jevMA91MYAdCdwP05QnWdWpSbncX/w==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@quansync/fs": "^1.0.0",+ "quansync": "^1.0.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/antfu"+ }+ },+ "node_modules/undici-types": {+ "version": "6.21.0",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",+ "license": "MIT"+ },+ "node_modules/unrun": {+ "version": "0.2.27",+ "resolved": "https://registry.npmjs.org/unrun/-/unrun-0.2.27.tgz",+ "integrity": "sha512-Mmur1UJpIbfxasLOhPRvox/QS4xBiDii71hMP7smfRthGcwFL2OAmYRgduLANOAU4LUkvVamuP+02U+c90jlrw==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "rolldown": "1.0.0-rc.3"+ },+ "bin": {+ "unrun": "dist/cli.mjs"+ },+ "engines": {+ "node": ">=20.19.0"+ },+ "funding": {+ "url": "https://github.com/sponsors/Gugustinette"+ },+ "peerDependencies": {+ "synckit": "^0.11.11"+ },+ "peerDependenciesMeta": {+ "synckit": {+ "optional": true+ }+ }+ },+ "node_modules/vite": {+ "version": "7.3.1",+ "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.1.tgz",+ "integrity": "sha512-w+N7Hifpc3gRjZ63vYBXA56dvvRlNWRczTdmCBBa+CotUzAPf5b7YMdMR/8CQoeYE5LX3W4wj6RYTgonm1b9DA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "esbuild": "^0.27.0",+ "fdir": "^6.5.0",+ "picomatch": "^4.0.3",+ "postcss": "^8.5.6",+ "rollup": "^4.43.0",+ "tinyglobby": "^0.2.15"+ },+ "bin": {+ "vite": "bin/vite.js"+ },+ "engines": {+ "node": "^20.19.0 || >=22.12.0"+ },+ "funding": {+ "url": "https://github.com/vitejs/vite?sponsor=1"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ },+ "peerDependencies": {+ "@types/node": "^20.19.0 || >=22.12.0",+ "jiti": ">=1.21.0",+ "less": "^4.0.0",+ "lightningcss": "^1.21.0",+ "sass": "^1.70.0",+ "sass-embedded": "^1.70.0",+ "stylus": ">=0.54.8",+ "sugarss": "^5.0.0",+ "terser": "^5.16.0",+ "tsx": "^4.8.1",+ "yaml": "^2.4.2"+ },+ "peerDependenciesMeta": {+ "@types/node": {+ "optional": true+ },+ "jiti": {+ "optional": true+ },+ "less": {+ "optional": true+ },+ "lightningcss": {+ "optional": true+ },+ "sass": {+ "optional": true+ },+ "sass-embedded": {+ "optional": true+ },+ "stylus": {+ "optional": true+ },+ "sugarss": {+ "optional": true+ },+ "terser": {+ "optional": true+ },+ "tsx": {+ "optional": true+ },+ "yaml": {+ "optional": true+ }+ }+ },+ "node_modules/vite-node": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-3.2.4.tgz",+ "integrity": "sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "cac": "^6.7.14",+ "debug": "^4.4.1",+ "es-module-lexer": "^1.7.0",+ "pathe": "^2.0.3",+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0"+ },+ "bin": {+ "vite-node": "vite-node.mjs"+ },+ "engines": {+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ }+ },+ "node_modules/vitest": {+ "version": "3.2.4",+ "resolved": "https://registry.npmjs.org/vitest/-/vitest-3.2.4.tgz",+ "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/chai": "^5.2.2",+ "@vitest/expect": "3.2.4",+ "@vitest/mocker": "3.2.4",+ "@vitest/pretty-format": "^3.2.4",+ "@vitest/runner": "3.2.4",+ "@vitest/snapshot": "3.2.4",+ "@vitest/spy": "3.2.4",+ "@vitest/utils": "3.2.4",+ "chai": "^5.2.0",+ "debug": "^4.4.1",+ "expect-type": "^1.2.1",+ "magic-string": "^0.30.17",+ "pathe": "^2.0.3",+ "picomatch": "^4.0.2",+ "std-env": "^3.9.0",+ "tinybench": "^2.9.0",+ "tinyexec": "^0.3.2",+ "tinyglobby": "^0.2.14",+ "tinypool": "^1.1.1",+ "tinyrainbow": "^2.0.0",+ "vite": "^5.0.0 || ^6.0.0 || ^7.0.0-0",+ "vite-node": "3.2.4",+ "why-is-node-running": "^2.3.0"+ },+ "bin": {+ "vitest": "vitest.mjs"+ },+ "engines": {+ "node": "^18.0.0 || ^20.0.0 || >=22.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/vitest"+ },+ "peerDependencies": {+ "@edge-runtime/vm": "*",+ "@types/debug": "^4.1.12",+ "@types/node": "^18.0.0 || ^20.0.0 || >=22.0.0",+ "@vitest/browser": "3.2.4",+ "@vitest/ui": "3.2.4",+ "happy-dom": "*",+ "jsdom": "*"+ },+ "peerDependenciesMeta": {+ "@edge-runtime/vm": {+ "optional": true+ },+ "@types/debug": {+ "optional": true+ },+ "@types/node": {+ "optional": true+ },+ "@vitest/browser": {+ "optional": true+ },+ "@vitest/ui": {+ "optional": true+ },+ "happy-dom": {+ "optional": true+ },+ "jsdom": {+ "optional": true+ }+ }+ },+ "node_modules/web-streams-polyfill": {+ "version": "4.0.0-beta.3",+ "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz",+ "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==",+ "license": "MIT",+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/webidl-conversions": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",+ "license": "BSD-2-Clause"+ },+ "node_modules/whatwg-url": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",+ "license": "MIT",+ "dependencies": {+ "tr46": "~0.0.3",+ "webidl-conversions": "^3.0.0"+ }+ },+ "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"+ }+ },+ "node_modules/ws": {+ "version": "8.19.0",+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.19.0.tgz",+ "integrity": "sha512-blAT2mjOEIi0ZzruJfIhb3nps74PRWTCz1IjglWEEpQl5XS/UNama6u2/rjFkDDouqr4L67ry+1aGIALViWjDg==",+ "license": "MIT",+ "engines": {+ "node": ">=10.0.0"+ },+ "peerDependencies": {+ "bufferutil": "^4.0.1",+ "utf-8-validate": ">=5.0.2"+ },+ "peerDependenciesMeta": {+ "bufferutil": {+ "optional": true+ },+ "utf-8-validate": {+ "optional": true+ }+ }+ },+ "node_modules/zod": {+ "version": "4.3.6",+ "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz",+ "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==",+ "license": "MIT",+ "peer": true,+ "funding": {+ "url": "https://github.com/sponsors/colinhacks"+ }+ }+ }+}diff --git a/package.json b/package.jsonnew file mode 100644index 00000000..f61a8b47--- /dev/null+++ b/package.json@@ -0,0 +1,48 @@+{+ "name": "agentmemory",+ "version": "0.1.0",+ "description": "Persistent memory for AI coding agents, powered by iii-engine's three primitives",+ "type": "module",+ "main": "dist/index.js",+ "types": "dist/index.d.ts",+ "bin": {+ "agentmemory": "dist/index.js"+ },+ "scripts": {+ "build": "tsdown",+ "dev": "tsx src/index.ts",+ "start": "node dist/index.js",+ "migrate": "node dist/functions/migrate.js",+ "test": "vitest run",+ "test:watch": "vitest"+ },+ "keywords": [+ "ai",+ "agent",+ "memory",+ "persistent",+ "iii-engine",+ "claude-code",+ "coding-agent",+ "context",+ "observation"+ ],+ "author": "Rohit Ghumare <[email protected]>",+ "license": "Apache-2.0",+ "dependencies": {+ "@anthropic-ai/claude-agent-sdk": "^0.2.56",+ "@anthropic-ai/sdk": "^0.39.0",+ "dotenv": "^16.4.7",+ "iii-sdk": "^0.3.0"+ },+ "devDependencies": {+ "@types/node": "^22.0.0",+ "tsdown": "^0.20.3",+ "tsx": "^4.19.0",+ "typescript": "^5.7.0",+ "vitest": "^3.0.0"+ },+ "engines": {+ "node": ">=18.0.0"+ }+}diff --git a/plugin/.claude-plugin/plugin.json b/plugin/.claude-plugin/plugin.jsonnew file mode 100644index 00000000..2f776ae2--- /dev/null+++ b/plugin/.claude-plugin/plugin.json@@ -0,0 +1,9 @@+{+ "name": "agentmemory",+ "version": "0.1.0",+ "description": "Persistent memory for AI coding agents powered by iii-engine",+ "author": "Rohit Ghumare",+ "license": "Apache-2.0",+ "homepage": "https://github.com/rohitg00/agentmemory",+ "hooks": "../hooks/hooks.json"+}diff --git a/plugin/hooks/hooks.json b/plugin/hooks/hooks.jsonnew file mode 100644index 00000000..c3b9a736--- /dev/null+++ b/plugin/hooks/hooks.json@@ -0,0 +1,34 @@+{+ "hooks": {+ "SessionStart": [+ {+ "type": "command",+ "command": "node __PLUGIN_DIR__/../dist/hooks/session-start.js"+ }+ ],+ "UserPromptSubmit": [+ {+ "type": "command",+ "command": "node __PLUGIN_DIR__/../dist/hooks/prompt-submit.js"+ }+ ],+ "PostToolUse": [+ {+ "type": "command",+ "command": "node __PLUGIN_DIR__/../dist/hooks/post-tool-use.js"+ }+ ],+ "Stop": [+ {+ "type": "command",+ "command": "node __PLUGIN_DIR__/../dist/hooks/stop.js"+ }+ ],+ "SessionEnd": [+ {+ "type": "command",+ "command": "node __PLUGIN_DIR__/../dist/hooks/session-end.js"+ }+ ]+ }+}diff --git a/src/config.ts b/src/config.tsnew file mode 100644index 00000000..97d5bd0b--- /dev/null+++ b/src/config.ts@@ -0,0 +1,86 @@+import { existsSync, readFileSync } from "node:fs";+import { join } from "node:path";+import { homedir } from "node:os";+import type { AgentMemoryConfig, ProviderConfig } from "./types.js";++const DATA_DIR = join(homedir(), ".agentmemory");+const ENV_FILE = join(DATA_DIR, ".env");++function loadEnvFile(): Record<string, string> {+ if (!existsSync(ENV_FILE)) return {};+ const content = readFileSync(ENV_FILE, "utf-8");+ const vars: Record<string, string> = {};+ for (const line of content.split("\n")) {+ const trimmed = line.trim();+ if (!trimmed || trimmed.startsWith("#")) continue;+ const eqIdx = trimmed.indexOf("=");+ if (eqIdx === -1) continue;+ const key = trimmed.slice(0, eqIdx).trim();+ let val = trimmed.slice(eqIdx + 1).trim();+ if (+ (val.startsWith('"') && val.endsWith('"')) ||+ (val.startsWith("'") && val.endsWith("'"))+ ) {+ val = val.slice(1, -1);+ }+ vars[key] = val;+ }+ return vars;+}++function detectProvider(env: Record<string, string>): ProviderConfig {+ const maxTokens = parseInt(env["MAX_TOKENS"] || "4096", 10);++ if (env["ANTHROPIC_API_KEY"]) {+ return {+ provider: "anthropic",+ model: env["ANTHROPIC_MODEL"] || "claude-sonnet-4-20250514",+ maxTokens,+ };+ }+ if (env["GEMINI_API_KEY"]) {+ return {+ provider: "gemini",+ model: env["GEMINI_MODEL"] || "gemini-2.0-flash",+ maxTokens,+ };+ }+ if (env["OPENROUTER_API_KEY"]) {+ return {+ provider: "openrouter",+ model: env["OPENROUTER_MODEL"] || "anthropic/claude-sonnet-4-20250514",+ maxTokens,+ };+ }+ return {+ provider: "agent-sdk",+ model: "claude-sonnet-4-20250514",+ maxTokens: 4096,+ };+}++export function loadConfig(): AgentMemoryConfig {+ const fileEnv = loadEnvFile();+ const env = { ...fileEnv, ...process.env } as Record<string, string>;++ const provider = detectProvider(env);++ return {+ engineUrl: env["III_ENGINE_URL"] || "ws://localhost:49134",+ restPort: parseInt(env["III_REST_PORT"] || "3111", 10),+ streamsPort: parseInt(env["III_STREAMS_PORT"] || "3112", 10),+ provider,+ tokenBudget: parseInt(env["TOKEN_BUDGET"] || "2000", 10),+ maxObservationsPerSession: parseInt(+ env["MAX_OBS_PER_SESSION"] || "500",+ 10,+ ),+ compressionModel: provider.model,+ dataDir: DATA_DIR,+ };+}++export function getEnvVar(key: string): string | undefined {+ const fileEnv = loadEnvFile();+ return process.env[key] || fileEnv[key];+}diff --git a/src/functions/compress.ts b/src/functions/compress.tsnew file mode 100644index 00000000..be7c9bb4--- /dev/null+++ b/src/functions/compress.ts@@ -0,0 +1,111 @@+import type { ISdk } from "iii-sdk";+import { getContext } from "iii-sdk";+import type {+ RawObservation,+ CompressedObservation,+ ObservationType,+ MemoryProvider,+} from "../types.js";+import { KV, STREAM } from "../state/schema.js";+import { StateKV } from "../state/kv.js";+import {+ COMPRESSION_SYSTEM,+ buildCompressionPrompt,+} from "../prompts/compression.js";+import { getXmlTag, getXmlChildren } from "../prompts/xml.js";+import { getSearchIndex } from "./search.js";++function parseCompressionXml(+ xml: string,+): Omit<CompressedObservation, "id" | "sessionId" | "timestamp"> | null {+ const type = getXmlTag(xml, "type");+ const title = getXmlTag(xml, "title");+ if (!type || !title) return null;++ return {+ type: type as ObservationType,+ title,+ subtitle: getXmlTag(xml, "subtitle") || undefined,+ facts: getXmlChildren(xml, "facts", "fact"),+ narrative: getXmlTag(xml, "narrative"),+ concepts: getXmlChildren(xml, "concepts", "concept"),+ files: getXmlChildren(xml, "files", "file"),+ importance: parseInt(getXmlTag(xml, "importance") || "5", 10),+ };+}++export function registerCompressFunction(+ sdk: ISdk,+ kv: StateKV,+ provider: MemoryProvider,+): void {+ sdk.registerFunction(+ {+ id: "mem::compress",+ description: "Compress a raw observation using LLM",+ },+ async (data: {+ observationId: string;+ sessionId: string;+ raw: RawObservation;+ }) => {+ const ctx = getContext();+ const prompt = buildCompressionPrompt({+ hookType: data.raw.hookType,+ toolName: data.raw.toolName,+ toolInput: data.raw.toolInput,+ toolOutput: data.raw.toolOutput,+ userPrompt: data.raw.userPrompt,+ timestamp: data.raw.timestamp,+ });++ try {+ const response = await provider.compress(COMPRESSION_SYSTEM, prompt);+ const parsed = parseCompressionXml(response);+ if (!parsed) {+ ctx.logger.warn("Failed to parse compression XML", {+ obsId: data.observationId,+ });+ return { success: false, error: "parse_failed" };+ }++ const compressed: CompressedObservation = {+ id: data.observationId,+ sessionId: data.sessionId,+ timestamp: data.raw.timestamp,+ ...parsed,+ };++ await kv.set(+ KV.observations(data.sessionId),+ data.observationId,+ compressed,+ );++ getSearchIndex().add(compressed);++ await sdk.trigger("stream::set", {+ stream_name: STREAM.name,+ group_id: STREAM.group(data.sessionId),+ item_id: data.observationId,+ data: { type: "compressed", observation: compressed },+ });++ ctx.logger.info("Observation compressed", {+ obsId: data.observationId,+ type: compressed.type,+ importance: compressed.importance,+ });++ return { success: true, compressed };+ } catch (err) {+ const msg = err instanceof Error ? err.message : String(err);+ ctx.logger.error("Compression failed", {+ obsId: data.observationId,+ error: msg,+ });+ return { success: false, error: msg };+ }+ },+ );+}diff --git a/src/functions/context.ts b/src/functions/context.tsnew file mode 100644index 00000000..33f4330c--- /dev/null+++ b/src/functions/context.ts@@ -0,0 +1,81 @@+import type { ISdk } from 'iii-sdk'+import { getContext } from 'iii-sdk'+import type { Session, CompressedObservation, SessionSummary, ContextBlock } from '../types.js'+import { KV } from '../state/schema.js'+import { StateKV } from '../state/kv.js'++function estimateTokens(text: string): number {+ return Math.ceil(text.length / 4)+}++export function registerContextFunction(sdk: ISdk, kv: StateKV, tokenBudget: number): void {+ sdk.registerFunction(+ { id: 'mem::context', description: 'Generate context for session injection' },+ async (data: { sessionId: string; project: string; budget?: number }) => {+ const ctx = getContext()+ const budget = data.budget || tokenBudget+ const blocks: ContextBlock[] = []++ const allSessions = await kv.list<Session>(KV.sessions)+ const sessions = allSessions+ .filter((s) => s.project === data.project && s.id !== data.sessionId)+ .sort((a, b) => new Date(b.startedAt).getTime() - new Date(a.startedAt).getTime())+ .slice(0, 10)++ for (const session of sessions) {+ const summary = await kv.get<SessionSummary>(KV.summaries, session.id)++ if (summary) {+ const content = `## ${summary.title}\n${summary.narrative}\nDecisions: ${summary.keyDecisions.join('; ')}\nFiles: ${summary.filesModified.join(', ')}`+ blocks.push({+ type: 'summary',+ content,+ tokens: estimateTokens(content),+ recency: new Date(summary.createdAt).getTime(),+ })+ continue+ }++ const observations = await kv.list<CompressedObservation>(KV.observations(session.id))+ const important = observations.filter((o) => o.title && o.importance >= 5)++ if (important.length > 0) {+ const content = important+ .sort((a, b) => b.importance - a.importance)+ .slice(0, 5)+ .map((o) => `- [${o.type}] ${o.title}: ${o.narrative}`)+ .join('\n')+ blocks.push({+ type: 'observation',+ content: `## Session ${session.id.slice(0, 8)} (${session.startedAt})\n${content}`,+ tokens: estimateTokens(content),+ recency: new Date(session.startedAt).getTime(),+ })+ }+ }++ blocks.sort((a, b) => b.recency - a.recency)++ let usedTokens = 0+ const selected: string[] = []+ const header = `<agentmemory-context project="${data.project}">`+ const footer = `</agentmemory-context>`+ usedTokens += estimateTokens(header) + estimateTokens(footer)++ for (const block of blocks) {+ if (usedTokens + block.tokens > budget) break+ selected.push(block.content)+ usedTokens += block.tokens+ }++ if (selected.length === 0) {+ ctx.logger.info('No context available', { project: data.project })+ return { context: '', blocks: 0, tokens: 0 }+ }++ const result = `${header}\n${selected.join('\n\n')}\n${footer}`+ ctx.logger.info('Context generated', { blocks: selected.length, tokens: usedTokens })+ return { context: result, blocks: selected.length, tokens: usedTokens }+ }+ )+}diff --git a/src/functions/migrate.ts b/src/functions/migrate.tsnew file mode 100644index 00000000..f20c6bde--- /dev/null+++ b/src/functions/migrate.ts@@ -0,0 +1,168 @@+import type { ISdk } from "iii-sdk";+import { getContext } from "iii-sdk";+import { resolve } from "node:path";+import { homedir } from "node:os";+import { KV, generateId } from "../state/schema.js";+import { StateKV } from "../state/kv.js";+import type {+ Session,+ CompressedObservation,+ SessionSummary,+} from "../types.js";++const ALLOWED_DIRS = [+ resolve(homedir(), ".agentmemory"),+ resolve(homedir(), ".claude"),+];++function isAllowedPath(dbPath: string): boolean {+ const resolved = resolve(dbPath);+ return ALLOWED_DIRS.some((dir) => resolved.startsWith(dir + "/"));+}++export function registerMigrateFunction(sdk: ISdk, kv: StateKV): void {+ sdk.registerFunction(+ {+ id: "mem::migrate",+ description: "Import data from SQLite database",+ },+ async (data: { dbPath: string }) => {+ const ctx = getContext();+ ctx.logger.info("Migration started", { dbPath: data.dbPath });++ if (!isAllowedPath(data.dbPath)) {+ return {+ success: false,+ error: `Path not allowed. Must be under: ${ALLOWED_DIRS.join(", ")}`,+ };+ }++ let Database: any;+ try {+ // @ts-expect-error optional dependency+ Database = (await import("better-sqlite3")).default;+ } catch {+ return {+ success: false,+ error:+ "better-sqlite3 not installed. Run: npm install better-sqlite3",+ };+ }++ const fs = await import("node:fs");+ if (!fs.existsSync(data.dbPath)) {+ return { success: false, error: `Database not found: ${data.dbPath}` };+ }++ try {+ const db = Database(data.dbPath, { readonly: true });+ let sessionCount = 0;+ let obsCount = 0;+ let summaryCount = 0;++ const sessions = db+ .prepare("SELECT * FROM sessions ORDER BY created_at DESC")+ .all() as any[];+ for (const row of sessions) {+ const session: Session = {+ id: row.session_id || row.id,+ project: row.project_path || row.project || "unknown",+ cwd: row.cwd || row.project_path || "",+ startedAt:+ row.created_at || row.started_at || new Date().toISOString(),+ endedAt: row.ended_at || row.updated_at,+ status: "completed",+ observationCount: 0,+ };+ await kv.set(KV.sessions, session.id, session);+ sessionCount++;+ }++ let observations: any[] = [];+ try {+ observations = db+ .prepare("SELECT * FROM observations ORDER BY created_at ASC")+ .all() as any[];+ } catch {+ try {+ observations = db+ .prepare(+ "SELECT * FROM compressed_observations ORDER BY created_at ASC",+ )+ .all() as any[];+ } catch {+ ctx.logger.warn("No observation tables found");+ }+ }++ for (const row of observations) {+ const sessionId = row.session_id || "migrated";+ const obs: CompressedObservation = {+ id: row.id || generateId("mig"),+ sessionId,+ timestamp: row.created_at || new Date().toISOString(),+ type: row.type || "other",+ title: row.title || row.summary || "Migrated observation",+ subtitle: row.subtitle,+ facts: safeJsonParse(row.facts, []),+ narrative: row.narrative || row.content || "",+ concepts: safeJsonParse(row.concepts, []),+ files: safeJsonParse(row.files, []),+ importance: row.importance || 5,+ };+ await kv.set(KV.observations(sessionId), obs.id, obs);+ obsCount++;+ }++ let summaries: any[] = [];+ try {+ summaries = db+ .prepare("SELECT * FROM session_summaries")+ .all() as any[];+ } catch {+ ctx.logger.warn("No summaries table found");+ }++ for (const row of summaries) {+ const summary: SessionSummary = {+ sessionId: row.session_id,+ project: row.project || "unknown",+ createdAt: row.created_at || new Date().toISOString(),+ title: row.title || "Migrated session",+ narrative: row.narrative || row.summary || "",+ keyDecisions: safeJsonParse(row.key_decisions, []),+ filesModified: safeJsonParse(row.files_modified, []),+ concepts: safeJsonParse(row.concepts, []),+ observationCount: row.observation_count || 0,+ };+ await kv.set(KV.summaries, row.session_id, summary);+ summaryCount++;+ }++ db.close();+ ctx.logger.info("Migration complete", {+ sessionCount,+ obsCount,+ summaryCount,+ });+ return { success: true, sessionCount, obsCount, summaryCount };+ } catch (err) {+ const msg = err instanceof Error ? err.message : String(err);+ ctx.logger.error("Migration failed", { error: msg });+ return { success: false, error: msg };+ }+ },+ );+}++function safeJsonParse<T>(value: unknown, fallback: T): T {+ if (Array.isArray(value)) return value as T;+ if (typeof value === "string") {+ try {+ return JSON.parse(value) as T;+ } catch {+ return fallback;+ }+ }+ return fallback;+}diff --git a/src/functions/observe.ts b/src/functions/observe.tsnew file mode 100644index 00000000..4c5e90d2--- /dev/null+++ b/src/functions/observe.ts@@ -0,0 +1,73 @@+import type { ISdk } from "iii-sdk";+import { getContext } from "iii-sdk";+import type { RawObservation, HookPayload, Session } from "../types.js";+import { KV, STREAM, generateId } from "../state/schema.js";+import { StateKV } from "../state/kv.js";+import { stripPrivateData } from "./privacy.js";++export function registerObserveFunction(sdk: ISdk, kv: StateKV): void {+ sdk.registerFunction(+ {+ id: "mem::observe",+ description: "Capture and store a tool-use observation",+ },+ async (payload: HookPayload) => {+ const ctx = getContext();+ const obsId = generateId("obs");+ const sanitizedData = stripPrivateData(JSON.stringify(payload.data));++ const raw: RawObservation = {+ id: obsId,+ sessionId: payload.sessionId,+ timestamp: payload.timestamp,+ hookType: payload.hookType,+ raw: JSON.parse(sanitizedData),+ };++ const d =+ typeof payload.data === "object" && payload.data !== null+ ? (payload.data as Record<string, unknown>)+ : null;++ if (payload.hookType === "post_tool_use" && d) {+ raw.toolName = d["tool_name"] as string | undefined;+ raw.toolInput = d["tool_input"];+ raw.toolOutput = d["tool_output"];+ }++ if (payload.hookType === "prompt_submit" && d) {+ raw.userPrompt = d["prompt"] as string | undefined;+ }++ await kv.set(KV.observations(payload.sessionId), obsId, raw);++ await sdk.trigger("stream::set", {+ stream_name: STREAM.name,+ group_id: STREAM.group(payload.sessionId),+ item_id: obsId,+ data: { type: "raw", observation: raw },+ });++ const session = await kv.get<Session>(KV.sessions, payload.sessionId);+ if (session) {+ await kv.set(KV.sessions, payload.sessionId, {+ ...session,+ observationCount: (session.observationCount || 0) + 1,+ });+ }++ sdk.triggerVoid("mem::compress", {+ observationId: obsId,+ sessionId: payload.sessionId,+ raw,+ });++ ctx.logger.info("Observation captured", {+ obsId,+ sessionId: payload.sessionId,+ hook: payload.hookType,+ });+ return { observationId: obsId };+ },+ );+}diff --git a/src/functions/privacy.ts b/src/functions/privacy.tsnew file mode 100644index 00000000..e93b506f--- /dev/null+++ b/src/functions/privacy.ts@@ -0,0 +1,30 @@+import type { ISdk } from 'iii-sdk'++const PRIVATE_TAG_RE = /<private>[\s\S]*?<\/private>/gi++const SECRET_PATTERN_SOURCES = [+ /(?:api[_-]?key|secret|token|password|credential|auth)[\s]*[=:]\s*["']?[A-Za-z0-9_\-/.+]{20,}["']?/gi,+ /(?:sk|pk|rk|ak)-[A-Za-z0-9]{20,}/g,+ /ghp_[A-Za-z0-9]{36}/g,+ /xoxb-[A-Za-z0-9\-]+/g,+ /AKIA[0-9A-Z]{16}/g,+ /eyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]{10,}/g,+]++export function stripPrivateData(input: string): string {+ let result = input.replace(PRIVATE_TAG_RE, '[REDACTED]')+ for (const source of SECRET_PATTERN_SOURCES) {+ const pattern = new RegExp(source.source, source.flags)+ result = result.replace(pattern, '[REDACTED_SECRET]')+ }+ return result+}++export function registerPrivacyFunction(sdk: ISdk): void {+ sdk.registerFunction(+ { id: 'mem::privacy', description: 'Strip private tags and secrets from input' },+ async (data: { input: string }) => {+ return { output: stripPrivateData(data.input) }+ }+ )+}diff --git a/src/functions/search.ts b/src/functions/search.tsnew file mode 100644index 00000000..641b3726--- /dev/null+++ b/src/functions/search.ts@@ -0,0 +1,61 @@+import type { ISdk } from 'iii-sdk'+import { getContext } from 'iii-sdk'+import type { CompressedObservation, SearchResult, Session } from '../types.js'+import { KV } from '../state/schema.js'+import { StateKV } from '../state/kv.js'+import { SearchIndex } from '../state/search-index.js'++let index: SearchIndex | null = null++export function getSearchIndex(): SearchIndex {+ if (!index) index = new SearchIndex()+ return index+}++export async function rebuildIndex(kv: StateKV): Promise<number> {+ const idx = getSearchIndex()+ idx.clear()++ const sessions = await kv.list<Session>(KV.sessions)+ if (!sessions.length) return 0++ let count = 0+ for (const session of sessions) {+ const observations = await kv.list<CompressedObservation>(KV.observations(session.id))+ for (const obs of observations) {+ if (obs.title && obs.narrative) {+ idx.add(obs)+ count+++ }+ }+ }+ return count+}++export function registerSearchFunction(sdk: ISdk, kv: StateKV): void {+ sdk.registerFunction(+ { id: 'mem::search', description: 'Search observations by keyword' },+ async (data: { query: string; limit?: number }) => {+ const ctx = getContext()+ const idx = getSearchIndex()++ if (idx.size === 0) {+ const count = await rebuildIndex(kv)+ ctx.logger.info('Search index rebuilt', { entries: count })+ }++ const results = idx.search(data.query, data.limit || 20)++ const enriched: SearchResult[] = []+ for (const r of results) {+ const obs = await kv.get<CompressedObservation>(KV.observations(r.sessionId), r.obsId)+ if (obs) {+ enriched.push({ observation: obs, score: r.score, sessionId: r.sessionId })+ }+ }++ ctx.logger.info('Search completed', { query: data.query, results: enriched.length })+ return { results: enriched }+ }+ )+}diff --git a/src/functions/summarize.ts b/src/functions/summarize.tsnew file mode 100644index 00000000..1933540c--- /dev/null+++ b/src/functions/summarize.ts@@ -0,0 +1,72 @@+import type { ISdk } from 'iii-sdk'+import { getContext } from 'iii-sdk'+import type { CompressedObservation, SessionSummary, MemoryProvider, Session } from '../types.js'+import { KV } from '../state/schema.js'+import { StateKV } from '../state/kv.js'+import { SUMMARY_SYSTEM, buildSummaryPrompt } from '../prompts/summary.js'+import { getXmlTag, getXmlChildren } from '../prompts/xml.js'++function parseSummaryXml(xml: string, sessionId: string, project: string, obsCount: number): SessionSummary | null {+ const title = getXmlTag(xml, 'title')+ if (!title) return null++ return {+ sessionId,+ project,+ createdAt: new Date().toISOString(),+ title,+ narrative: getXmlTag(xml, 'narrative'),+ keyDecisions: getXmlChildren(xml, 'decisions', 'decision'),+ filesModified: getXmlChildren(xml, 'files', 'file'),+ concepts: getXmlChildren(xml, 'concepts', 'concept'),+ observationCount: obsCount,+ }+}++export function registerSummarizeFunction(sdk: ISdk, kv: StateKV, provider: MemoryProvider): void {+ sdk.registerFunction(+ { id: 'mem::summarize', description: 'Generate end-of-session summary' },+ async (data: { sessionId: string }) => {+ const ctx = getContext()++ const session = await kv.get<Session>(KV.sessions, data.sessionId)+ if (!session) {+ ctx.logger.warn('Session not found for summarize', { sessionId: data.sessionId })+ return { success: false, error: 'session_not_found' }+ }++ const observations = await kv.list<CompressedObservation>(KV.observations(data.sessionId))+ const compressed = observations.filter((o) => o.title)++ if (compressed.length === 0) {+ ctx.logger.info('No observations to summarize', { sessionId: data.sessionId })+ return { success: false, error: 'no_observations' }+ }++ try {+ const prompt = buildSummaryPrompt(compressed)+ const response = await provider.summarize(SUMMARY_SYSTEM, prompt)+ const summary = parseSummaryXml(response, data.sessionId, session.project, compressed.length)++ if (!summary) {+ ctx.logger.warn('Failed to parse summary XML', { sessionId: data.sessionId })+ return { success: false, error: 'parse_failed' }+ }++ await kv.set(KV.summaries, data.sessionId, summary)++ ctx.logger.info('Session summarized', {+ sessionId: data.sessionId,+ title: summary.title,+ decisions: summary.keyDecisions.length,+ })++ return { success: true, summary }+ } catch (err) {+ const msg = err instanceof Error ? err.message : String(err)+ ctx.logger.error('Summarize failed', { sessionId: data.sessionId, error: msg })+ return { success: false, error: msg }+ }+ }+ )+}diff --git a/src/hooks/post-tool-use.ts b/src/hooks/post-tool-use.tsnew file mode 100644index 00000000..f674ef22--- /dev/null+++ b/src/hooks/post-tool-use.ts@@ -0,0 +1,55 @@+#!/usr/bin/env node++const REST_URL = process.env['AGENTMEMORY_URL'] || 'http://localhost:3111'++async function main() {+ let input = ''+ for await (const chunk of process.stdin) {+ input += chunk+ }++ let data: Record<string, unknown>+ try {+ data = JSON.parse(input)+ } catch {+ return+ }++ const sessionId = (data.session_id as string) || 'unknown'++ try {+ await fetch(`${REST_URL}/agentmemory/observe`, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify({+ hookType: 'post_tool_use',+ sessionId,+ project: data.cwd || process.cwd(),+ cwd: data.cwd || process.cwd(),+ timestamp: new Date().toISOString(),+ data: {+ tool_name: data.tool_name,+ tool_input: data.tool_input,+ tool_output: truncate(data.tool_output, 8000),+ },+ }),+ signal: AbortSignal.timeout(3000),+ })+ } catch {+ // fire and forget+ }+}++function truncate(value: unknown, max: number): unknown {+ if (typeof value === 'string' && value.length > max) {+ return value.slice(0, max) + '\n[...truncated]'+ }+ if (typeof value === 'object' && value !== null) {+ const str = JSON.stringify(value)+ if (str.length > max) return JSON.parse(str.slice(0, max - 1) + '}')+ return value+ }+ return value+}++main()diff --git a/src/hooks/prompt-submit.ts b/src/hooks/prompt-submit.tsnew file mode 100644index 00000000..6c631222--- /dev/null+++ b/src/hooks/prompt-submit.ts@@ -0,0 +1,39 @@+#!/usr/bin/env node++const REST_URL = process.env['AGENTMEMORY_URL'] || 'http://localhost:3111'++async function main() {+ let input = ''+ for await (const chunk of process.stdin) {+ input += chunk+ }++ let data: Record<string, unknown>+ try {+ data = JSON.parse(input)+ } catch {+ return+ }++ const sessionId = (data.session_id as string) || 'unknown'++ try {+ await fetch(`${REST_URL}/agentmemory/observe`, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify({+ hookType: 'prompt_submit',+ sessionId,+ project: data.cwd || process.cwd(),+ cwd: data.cwd || process.cwd(),+ timestamp: new Date().toISOString(),+ data: { prompt: data.prompt },+ }),+ signal: AbortSignal.timeout(3000),+ })+ } catch {+ // fire and forget+ }+}++main()diff --git a/src/hooks/session-end.ts b/src/hooks/session-end.tsnew file mode 100644index 00000000..d409a04f--- /dev/null+++ b/src/hooks/session-end.ts@@ -0,0 +1,32 @@+#!/usr/bin/env node++const REST_URL = process.env['AGENTMEMORY_URL'] || 'http://localhost:3111'++async function main() {+ let input = ''+ for await (const chunk of process.stdin) {+ input += chunk+ }++ let data: Record<string, unknown>+ try {+ data = JSON.parse(input)+ } catch {+ return+ }++ const sessionId = (data.session_id as string) || 'unknown'++ try {+ await fetch(`${REST_URL}/agentmemory/session/end`, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify({ sessionId }),+ signal: AbortSignal.timeout(5000),+ })+ } catch {+ // best-effort+ }+}++main()diff --git a/src/hooks/session-start.ts b/src/hooks/session-start.tsnew file mode 100644index 00000000..2a7032bd--- /dev/null+++ b/src/hooks/session-start.ts@@ -0,0 +1,40 @@+#!/usr/bin/env node++const REST_URL = process.env['AGENTMEMORY_URL'] || 'http://localhost:3111'++async function main() {+ let input = ''+ for await (const chunk of process.stdin) {+ input += chunk+ }++ let data: Record<string, unknown>+ try {+ data = JSON.parse(input)+ } catch {+ return+ }++ const sessionId = (data.session_id as string) || `ses_${Date.now().toString(36)}`+ const project = (data.cwd as string) || process.cwd()++ try {+ const res = await fetch(`${REST_URL}/agentmemory/session/start`, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify({ sessionId, project, cwd: project }),+ signal: AbortSignal.timeout(5000),+ })++ if (res.ok) {+ const result = await res.json() as { context?: string }+ if (result.context) {+ process.stdout.write(result.context)+ }+ }+ } catch {+ // silently fail -- don't block Claude Code startup+ }+}++main()diff --git a/src/hooks/stop.ts b/src/hooks/stop.tsnew file mode 100644index 00000000..48bbb6b6--- /dev/null+++ b/src/hooks/stop.ts@@ -0,0 +1,32 @@+#!/usr/bin/env node++const REST_URL = process.env['AGENTMEMORY_URL'] || 'http://localhost:3111'++async function main() {+ let input = ''+ for await (const chunk of process.stdin) {+ input += chunk+ }++ let data: Record<string, unknown>+ try {+ data = JSON.parse(input)+ } catch {+ return+ }++ const sessionId = (data.session_id as string) || 'unknown'++ try {+ await fetch(`${REST_URL}/agentmemory/summarize`, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify({ sessionId }),+ signal: AbortSignal.timeout(30000),+ })+ } catch {+ // summarize is best-effort+ }+}++main()diff --git a/src/index.ts b/src/index.tsnew file mode 100644index 00000000..a8aa45a7--- /dev/null+++ b/src/index.ts@@ -0,0 +1,74 @@+import { init } from 'iii-sdk'+import { loadConfig } from './config.js'+import { createProvider } from './providers/index.js'+import { StateKV } from './state/kv.js'+import { registerPrivacyFunction } from './functions/privacy.js'+import { registerObserveFunction } from './functions/observe.js'+import { registerCompressFunction } from './functions/compress.js'+import { registerSearchFunction, rebuildIndex } from './functions/search.js'+import { registerContextFunction } from './functions/context.js'+import { registerSummarizeFunction } from './functions/summarize.js'+import { registerMigrateFunction } from './functions/migrate.js'+import { registerApiTriggers } from './triggers/api.js'+import { registerEventTriggers } from './triggers/events.js'++async function main() {+ const config = loadConfig()+ const provider = createProvider(config.provider)++ console.log(`[agentmemory] Starting worker...`)+ console.log(`[agentmemory] Engine: ${config.engineUrl}`)+ console.log(`[agentmemory] Provider: ${config.provider.provider} (${config.provider.model})`)+ console.log(`[agentmemory] REST API: http://localhost:${config.restPort}/agentmemory/*`)+ console.log(`[agentmemory] Streams: ws://localhost:${config.streamsPort}`)++ const sdk = init(config.engineUrl, {+ workerName: 'agentmemory',+ })++ const kv = new StateKV(sdk)++ registerPrivacyFunction(sdk)+ registerObserveFunction(sdk, kv)+ registerCompressFunction(sdk, kv, provider)+ registerSearchFunction(sdk, kv)+ registerContextFunction(sdk, kv, config.tokenBudget)+ registerSummarizeFunction(sdk, kv, provider)+ registerMigrateFunction(sdk, kv)++ registerApiTriggers(sdk, kv)+ registerEventTriggers(sdk)++ const indexCount = await rebuildIndex(kv).catch(() => 0)+ if (indexCount > 0) {+ console.log(`[agentmemory] Search index: ${indexCount} observations`)+ }++ console.log(`[agentmemory] Ready. Endpoints:`)+ console.log(` POST /agentmemory/session/start - Start session + get context`)+ console.log(` POST /agentmemory/observe - Capture observation`)+ console.log(` POST /agentmemory/context - Generate context`)+ console.log(` POST /agentmemory/search - Search observations`)+ console.log(` POST /agentmemory/summarize - Summarize session`)+ console.log(` GET /agentmemory/sessions - List sessions`)+ console.log(` GET /agentmemory/observations - Get session observations`)+ console.log(` GET /agentmemory/health - Health check`)+ console.log(` GET /agentmemory/viewer - Web viewer`)+ console.log(` POST /agentmemory/migrate - Import from SQLite`)++ process.on('SIGINT', async () => {+ console.log(`\n[agentmemory] Shutting down...`)+ await sdk.shutdown()+ process.exit(0)+ })++ process.on('SIGTERM', async () => {+ await sdk.shutdown()+ process.exit(0)+ })+}++main().catch((err) => {+ console.error(`[agentmemory] Fatal:`, err)+ process.exit(1)+})diff --git a/src/prompts/compression.ts b/src/prompts/compression.tsnew file mode 100644index 00000000..beff1c17--- /dev/null+++ b/src/prompts/compression.ts@@ -0,0 +1,62 @@+export const COMPRESSION_SYSTEM = `You are a memory compression engine for an AI coding agent. Your job is to extract the essential information from a tool usage observation and compress it into structured data.++Output EXACTLY this XML format with no additional text:++<observation>+ <type>one of: file_read, file_write, file_edit, command_run, search, web_fetch, conversation, error, decision, discovery, other</type>+ <title>Short descriptive title (max 80 chars)</title>+ <subtitle>One-line context (optional)</subtitle>+ <facts>+ <fact>Specific factual detail 1</fact>+ <fact>Specific factual detail 2</fact>+ </facts>+ <narrative>2-3 sentence summary of what happened and why it matters</narrative>+ <concepts>+ <concept>technical concept or pattern</concept>+ </concepts>+ <files>+ <file>path/to/file</file>+ </files>+ <importance>1-10 scale, 10 being critical architectural decision</importance>+</observation>++Rules:+- Be concise but preserve ALL technically relevant details+- File paths must be exact+- Importance: 1-3 for routine reads, 4-6 for edits/commands, 7-9 for architectural decisions, 10 for breaking changes+- Concepts should be reusable search terms (e.g., "React hooks", "SQL migration", "auth middleware")+- Strip any secrets, tokens, or credentials from the output`++export function buildCompressionPrompt(observation: {+ hookType: string+ toolName?: string+ toolInput?: unknown+ toolOutput?: unknown+ userPrompt?: string+ timestamp: string+}): string {+ const parts = [`Timestamp: ${observation.timestamp}`, `Hook: ${observation.hookType}`]++ if (observation.toolName) parts.push(`Tool: ${observation.toolName}`)+ if (observation.toolInput) {+ const input = typeof observation.toolInput === 'string'+ ? observation.toolInput+ : JSON.stringify(observation.toolInput, null, 2)+ parts.push(`Input:\n${truncate(input, 4000)}`)+ }+ if (observation.toolOutput) {+ const output = typeof observation.toolOutput === 'string'+ ? observation.toolOutput+ : JSON.stringify(observation.toolOutput, null, 2)+ parts.push(`Output:\n${truncate(output, 4000)}`)+ }+ if (observation.userPrompt) {+ parts.push(`User prompt:\n${truncate(observation.userPrompt, 2000)}`)+ }++ return parts.join('\n\n')+}++function truncate(s: string, max: number): string {+ return s.length > max ? s.slice(0, max) + '\n[...truncated]' : s+}diff --git a/src/prompts/summary.ts b/src/prompts/summary.tsnew file mode 100644index 00000000..f01b28b8--- /dev/null+++ b/src/prompts/summary.ts@@ -0,0 +1,38 @@+export const SUMMARY_SYSTEM = `You are a session summarizer for an AI coding agent's memory system. Given all compressed observations from a coding session, produce a concise session summary.++Output EXACTLY this XML format with no additional text:++<summary>+ <title>Short session title (max 100 chars)</title>+ <narrative>3-5 sentence narrative of what was accomplished</narrative>+ <decisions>+ <decision>Key technical decision made</decision>+ </decisions>+ <files>+ <file>path/to/modified/file</file>+ </files>+ <concepts>+ <concept>key concept from session</concept>+ </concepts>+</summary>++Rules:+- Focus on outcomes, not individual tool calls+- Highlight decisions and their rationale+- List all files that were created or modified+- Concepts should be searchable terms for future context retrieval`++export function buildSummaryPrompt(observations: Array<{+ type: string+ title: string+ facts: string[]+ narrative: string+ files: string[]+ concepts: string[]+}>): string {+ const lines = observations.map((obs, i) => {+ const facts = obs.facts.map((f) => ` - ${f}`).join('\n')+ return `[${i + 1}] ${obs.type}: ${obs.title}\n${obs.narrative}\nFacts:\n${facts}\nFiles: ${obs.files.join(', ')}`+ })+ return `Session observations (${observations.length} total):\n\n${lines.join('\n\n---\n\n')}`+}diff --git a/src/prompts/xml.ts b/src/prompts/xml.tsnew file mode 100644index 00000000..ea00ff75--- /dev/null+++ b/src/prompts/xml.ts@@ -0,0 +1,16 @@+export function getXmlTag(xml: string, tag: string): string {+ const match = xml.match(new RegExp(`<${tag}>([\\s\\S]*?)</${tag}>`))+ return match ? match[1].trim() : ''+}++export function getXmlChildren(xml: string, parentTag: string, childTag: string): string[] {+ const parentMatch = xml.match(new RegExp(`<${parentTag}>([\\s\\S]*?)</${parentTag}>`))+ if (!parentMatch) return []+ const items: string[] = []+ const re = new RegExp(`<${childTag}>([\\s\\S]*?)</${childTag}>`, 'g')+ let m+ while ((m = re.exec(parentMatch[1])) !== null) {+ items.push(m[1].trim())+ }+ return items+}diff --git a/src/providers/agent-sdk.ts b/src/providers/agent-sdk.tsnew file mode 100644index 00000000..dde21941--- /dev/null+++ b/src/providers/agent-sdk.ts@@ -0,0 +1,34 @@+import type { MemoryProvider } from '../types.js'++export class AgentSDKProvider implements MemoryProvider {+ name = 'agent-sdk'++ async compress(systemPrompt: string, userPrompt: string): Promise<string> {+ return this.query(systemPrompt, userPrompt)+ }++ async summarize(systemPrompt: string, userPrompt: string): Promise<string> {+ return this.query(systemPrompt, userPrompt)+ }++ private async query(systemPrompt: string, userPrompt: string): Promise<string> {+ const { query } = await import('@anthropic-ai/claude-agent-sdk')++ const messages = query({+ prompt: userPrompt,+ options: {+ systemPrompt,+ maxTurns: 1,+ allowedTools: [],+ },+ })++ let result = ''+ for await (const msg of messages) {+ if (msg.type === 'result') {+ result = typeof msg.result === 'string' ? msg.result : JSON.stringify(msg.result)+ }+ }+ return result+ }+}diff --git a/src/providers/anthropic.ts b/src/providers/anthropic.tsnew file mode 100644index 00000000..3a0e5b65--- /dev/null+++ b/src/providers/anthropic.ts@@ -0,0 +1,35 @@+import Anthropic from '@anthropic-ai/sdk'+import type { MemoryProvider } from '../types.js'++export class AnthropicProvider implements MemoryProvider {+ name = 'anthropic'+ private client: Anthropic+ private model: string+ private maxTokens: number++ constructor(apiKey: string, model: string, maxTokens: number) {+ this.client = new Anthropic({ apiKey })+ this.model = model+ this.maxTokens = maxTokens+ }++ async compress(systemPrompt: string, userPrompt: string): Promise<string> {+ return this.call(systemPrompt, userPrompt)+ }++ async summarize(systemPrompt: string, userPrompt: string): Promise<string> {+ return this.call(systemPrompt, userPrompt)+ }++ private async call(systemPrompt: string, userPrompt: string): Promise<string> {+ const response = await this.client.messages.create({+ model: this.model,+ max_tokens: this.maxTokens,+ system: systemPrompt,+ messages: [{ role: 'user', content: userPrompt }],+ })++ const textBlock = response.content.find((b) => b.type === 'text')+ return textBlock?.text ?? ''+ }+}diff --git a/src/providers/index.ts b/src/providers/index.tsnew file mode 100644index 00000000..06589149--- /dev/null+++ b/src/providers/index.ts@@ -0,0 +1,29 @@+import type { MemoryProvider, ProviderConfig } from '../types.js'+import { AgentSDKProvider } from './agent-sdk.js'+import { AnthropicProvider } from './anthropic.js'+import { OpenRouterProvider } from './openrouter.js'+import { getEnvVar } from '../config.js'++export function createProvider(config: ProviderConfig): MemoryProvider {+ switch (config.provider) {+ case 'anthropic':+ return new AnthropicProvider(getEnvVar('ANTHROPIC_API_KEY')!, config.model, config.maxTokens)+ case 'gemini':+ return new OpenRouterProvider(+ getEnvVar('GEMINI_API_KEY')!,+ config.model,+ config.maxTokens,+ 'https://generativelanguage.googleapis.com/v1beta/openai/chat/completions'+ )+ case 'openrouter':+ return new OpenRouterProvider(+ getEnvVar('OPENROUTER_API_KEY')!,+ config.model,+ config.maxTokens,+ 'https://openrouter.ai/api/v1/chat/completions'+ )+ case 'agent-sdk':+ default:+ return new AgentSDKProvider()+ }+}diff --git a/src/providers/openrouter.ts b/src/providers/openrouter.tsnew file mode 100644index 00000000..219ce421--- /dev/null+++ b/src/providers/openrouter.ts@@ -0,0 +1,71 @@+import type { MemoryProvider } from "../types.js";++export class OpenRouterProvider implements MemoryProvider {+ name: string;+ private apiKey: string;+ private model: string;+ private maxTokens: number;+ private baseUrl: string;++ constructor(+ apiKey: string,+ model: string,+ maxTokens: number,+ baseUrl: string,+ ) {+ this.apiKey = apiKey;+ this.model = model;+ this.maxTokens = maxTokens;+ this.baseUrl = baseUrl;+ this.name = baseUrl.includes("openrouter") ? "openrouter" : "gemini";+ }++ async compress(systemPrompt: string, userPrompt: string): Promise<string> {+ return this.call(systemPrompt, userPrompt);+ }++ async summarize(systemPrompt: string, userPrompt: string): Promise<string> {+ return this.call(systemPrompt, userPrompt);+ }++ private async call(+ systemPrompt: string,+ userPrompt: string,+ ): Promise<string> {+ const response = await fetch(this.baseUrl, {+ method: "POST",+ headers: {+ "Content-Type": "application/json",+ Authorization: `Bearer ${this.apiKey}`,+ ...(this.baseUrl.includes("openrouter")+ ? { "HTTP-Referer": "https://github.com/rohitg00/agentmemory" }+ : {}),+ },+ body: JSON.stringify({+ model: this.model,+ max_tokens: this.maxTokens,+ messages: [+ { role: "system", content: systemPrompt },+ { role: "user", content: userPrompt },+ ],+ }),+ });++ if (!response.ok) {+ const text = await response.text();+ throw new Error(`${this.name} API error (${response.status}): ${text}`);+ }++ const data = (await response.json()) as Record<string, unknown>;+ const choices = data.choices as+ | Array<{ message: { content: string } }>+ | undefined;+ const content = choices?.[0]?.message?.content;+ if (!content) {+ throw new Error(+ `${this.name} returned unexpected response: ${JSON.stringify(data).slice(0, 200)}`,+ );+ }+ return content;+ }+}diff --git a/src/state/kv.ts b/src/state/kv.tsnew file mode 100644index 00000000..a158286c--- /dev/null+++ b/src/state/kv.ts@@ -0,0 +1,33 @@+import type { ISdk } from 'iii-sdk'++export class StateKV {+ constructor(private sdk: ISdk) {}++ async get<T = unknown>(scope: string, key: string): Promise<T | null> {+ return this.sdk.trigger<{ scope: string; key: string }, T | null>(+ 'state::get',+ { scope, key },+ )+ }++ async set<T = unknown>(scope: string, key: string, data: T): Promise<T> {+ return this.sdk.trigger<{ scope: string; key: string; data: T }, T>(+ 'state::set',+ { scope, key, data },+ )+ }++ async delete(scope: string, key: string): Promise<void> {+ return this.sdk.trigger<{ scope: string; key: string }, void>(+ 'state::delete',+ { scope, key },+ )+ }++ async list<T = unknown>(scope: string): Promise<T[]> {+ return this.sdk.trigger<{ scope: string }, T[]>(+ 'state::list',+ { scope },+ )+ }+}diff --git a/src/state/schema.ts b/src/state/schema.tsnew file mode 100644index 00000000..236ba915--- /dev/null+++ b/src/state/schema.ts@@ -0,0 +1,18 @@+export const KV = {+ sessions: "mem:sessions",+ observations: (sessionId: string) => `mem:obs:${sessionId}`,+ memories: "mem:memories",+ summaries: "mem:summaries",+ config: "mem:config",+} as const;++export const STREAM = {+ name: "mem-live",+ group: (sessionId: string) => sessionId,+} as const;++export function generateId(prefix: string): string {+ const ts = Date.now().toString(36);+ const rand = crypto.randomUUID().replace(/-/g, "").slice(0, 12);+ return `${prefix}_${ts}_${rand}`;+}diff --git a/src/state/search-index.ts b/src/state/search-index.tsnew file mode 100644index 00000000..54163a82--- /dev/null+++ b/src/state/search-index.ts@@ -0,0 +1,96 @@+import type { CompressedObservation } from "../types.js";++interface IndexEntry {+ obsId: string;+ sessionId: string;+ terms: Set<string>;+}++export class SearchIndex {+ private entries: Map<string, IndexEntry> = new Map();+ private invertedIndex: Map<string, Set<string>> = new Map();++ add(obs: CompressedObservation): void {+ const terms = this.extractTerms(obs);+ const entry: IndexEntry = {+ obsId: obs.id,+ sessionId: obs.sessionId,+ terms,+ };+ this.entries.set(obs.id, entry);++ for (const term of terms) {+ if (!this.invertedIndex.has(term)) {+ this.invertedIndex.set(term, new Set());+ }+ this.invertedIndex.get(term)!.add(obs.id);+ }+ }++ search(+ query: string,+ limit = 20,+ ): Array<{ obsId: string; sessionId: string; score: number }> {+ const queryTerms = this.tokenize(query.toLowerCase());+ if (queryTerms.length === 0) return [];++ const scores = new Map<string, number>();++ for (const term of queryTerms) {+ const matches = this.invertedIndex.get(term);+ if (!matches) continue;+ for (const obsId of matches) {+ scores.set(obsId, (scores.get(obsId) || 0) + 1);+ }++ for (const [indexTerm, obsIds] of this.invertedIndex) {+ if (indexTerm !== term && indexTerm.includes(term)) {+ for (const obsId of obsIds) {+ scores.set(obsId, (scores.get(obsId) || 0) + 0.5);+ }+ }+ }+ }++ return Array.from(scores.entries())+ .map(([obsId, score]) => {+ const entry = this.entries.get(obsId)!;+ return {+ obsId,+ sessionId: entry.sessionId,+ score: score / queryTerms.length,+ };+ })+ .sort((a, b) => b.score - a.score)+ .slice(0, limit);+ }++ get size(): number {+ return this.entries.size;+ }++ clear(): void {+ this.entries.clear();+ this.invertedIndex.clear();+ }++ private extractTerms(obs: CompressedObservation): Set<string> {+ const parts = [+ obs.title,+ obs.subtitle || "",+ obs.narrative,+ ...obs.facts,+ ...obs.concepts,+ ...obs.files,+ obs.type,+ ];+ return new Set(this.tokenize(parts.join(" ").toLowerCase()));+ }++ private tokenize(text: string): string[] {+ return text+ .replace(/[^\w\s/.\-_]/g, " ")+ .split(/\s+/)+ .filter((t) => t.length > 1);+ }+}diff --git a/src/triggers/api.ts b/src/triggers/api.tsnew file mode 100644index 00000000..763556ce--- /dev/null+++ b/src/triggers/api.ts@@ -0,0 +1,131 @@+import type { ISdk, ApiRequest } from 'iii-sdk'+import type { Session, CompressedObservation, HookPayload } from '../types.js'+import { KV } from '../state/schema.js'+import { StateKV } from '../state/kv.js'+import { readFileSync } from 'node:fs'+import { join, dirname } from 'node:path'+import { fileURLToPath } from 'node:url'++type Response = { status_code: number; headers?: Record<string, string>; body: unknown }++export function registerApiTriggers(sdk: ISdk, kv: StateKV): void {++ sdk.registerFunction(+ { id: 'api::health' },+ async (): Promise<Response> => ({+ status_code: 200,+ body: { status: 'ok', service: 'agentmemory', version: '0.1.0' },+ })+ )+ sdk.registerTrigger({ type: 'http', function_id: 'api::health', config: { api_path: '/agentmemory/health', http_method: 'GET' } })++ sdk.registerFunction(+ { id: 'api::observe' },+ async (req: ApiRequest<HookPayload>): Promise<Response> => {+ const result = await sdk.trigger('mem::observe', req.body)+ return { status_code: 201, body: result }+ }+ )+ sdk.registerTrigger({ type: 'http', function_id: 'api::observe', config: { api_path: '/agentmemory/observe', http_method: 'POST' } })++ sdk.registerFunction(+ { id: 'api::context' },+ async (req: ApiRequest<{ sessionId: string; project: string; budget?: number }>): Promise<Response> => {+ const result = await sdk.trigger('mem::context', req.body)+ return { status_code: 200, body: result }+ }+ )+ sdk.registerTrigger({ type: 'http', function_id: 'api::context', config: { api_path: '/agentmemory/context', http_method: 'POST' } })++ sdk.registerFunction(+ { id: 'api::search' },+ async (req: ApiRequest<{ query: string; limit?: number }>): Promise<Response> => {+ const result = await sdk.trigger('mem::search', req.body)+ return { status_code: 200, body: result }+ }+ )+ sdk.registerTrigger({ type: 'http', function_id: 'api::search', config: { api_path: '/agentmemory/search', http_method: 'POST' } })++ sdk.registerFunction(+ { id: 'api::session::start' },+ async (req: ApiRequest<{ sessionId: string; project: string; cwd: string }>): Promise<Response> => {+ const { sessionId, project, cwd } = req.body+ const session: Session = {+ id: sessionId, project, cwd,+ startedAt: new Date().toISOString(),+ status: 'active',+ observationCount: 0,+ }+ await kv.set(KV.sessions, sessionId, session)+ const contextResult = await sdk.trigger<{ sessionId: string; project: string }, { context: string }>('mem::context', { sessionId, project })+ return { status_code: 200, body: { session, context: contextResult.context } }+ }+ )+ sdk.registerTrigger({ type: 'http', function_id: 'api::session::start', config: { api_path: '/agentmemory/session/start', http_method: 'POST' } })++ sdk.registerFunction(+ { id: 'api::session::end' },+ async (req: ApiRequest<{ sessionId: string }>): Promise<Response> => {+ const session = await kv.get<Session>(KV.sessions, req.body.sessionId)+ if (session) {+ await kv.set(KV.sessions, req.body.sessionId, {+ ...session, endedAt: new Date().toISOString(), status: 'completed' as const,+ })+ }+ return { status_code: 200, body: { success: true } }+ }+ )+ sdk.registerTrigger({ type: 'http', function_id: 'api::session::end', config: { api_path: '/agentmemory/session/end', http_method: 'POST' } })++ sdk.registerFunction(+ { id: 'api::summarize' },+ async (req: ApiRequest<{ sessionId: string }>): Promise<Response> => {+ const result = await sdk.trigger('mem::summarize', req.body)+ return { status_code: 200, body: result }+ }+ )+ sdk.registerTrigger({ type: 'http', function_id: 'api::summarize', config: { api_path: '/agentmemory/summarize', http_method: 'POST' } })++ sdk.registerFunction(+ { id: 'api::sessions' },+ async (): Promise<Response> => {+ const sessions = await kv.list<Session>(KV.sessions)+ return { status_code: 200, body: { sessions } }+ }+ )+ sdk.registerTrigger({ type: 'http', function_id: 'api::sessions', config: { api_path: '/agentmemory/sessions', http_method: 'GET' } })++ sdk.registerFunction(+ { id: 'api::observations' },+ async (req: ApiRequest): Promise<Response> => {+ const sessionId = req.query_params['sessionId'] as string+ if (!sessionId) return { status_code: 400, body: { error: 'sessionId required' } }+ const observations = await kv.list<CompressedObservation>(KV.observations(sessionId))+ return { status_code: 200, body: { observations } }+ }+ )+ sdk.registerTrigger({ type: 'http', function_id: 'api::observations', config: { api_path: '/agentmemory/observations', http_method: 'GET' } })++ sdk.registerFunction(+ { id: 'api::migrate' },+ async (req: ApiRequest<{ dbPath: string }>): Promise<Response> => {+ const result = await sdk.trigger('mem::migrate', req.body)+ return { status_code: 200, body: result }+ }+ )+ sdk.registerTrigger({ type: 'http', function_id: 'api::migrate', config: { api_path: '/agentmemory/migrate', http_method: 'POST' } })++ sdk.registerFunction(+ { id: 'api::viewer' },+ async (): Promise<Response> => {+ try {+ const viewerPath = join(dirname(fileURLToPath(import.meta.url)), '..', 'viewer', 'index.html')+ const html = readFileSync(viewerPath, 'utf-8')+ return { status_code: 200, headers: { 'Content-Type': 'text/html' }, body: html }+ } catch {+ return { status_code: 200, headers: { 'Content-Type': 'text/html' }, body: '<!DOCTYPE html><html><body><h1>agentmemory</h1></body></html>' }+ }+ }+ )+ sdk.registerTrigger({ type: 'http', function_id: 'api::viewer', config: { api_path: '/agentmemory/viewer', http_method: 'GET' } })+}diff --git a/src/triggers/events.ts b/src/triggers/events.tsnew file mode 100644index 00000000..e881dc34--- /dev/null+++ b/src/triggers/events.ts@@ -0,0 +1,74 @@+import type { ISdk } from 'iii-sdk'+import { getContext } from 'iii-sdk'+import type { HookPayload } from '../types.js'++export function registerEventTriggers(sdk: ISdk): void {++ sdk.registerFunction(+ { id: 'event::session::started', description: 'Handle session start event' },+ async (data: { sessionId: string; project: string; cwd: string }) => {+ const ctx = getContext()+ ctx.logger.info('Session start event', { sessionId: data.sessionId })+ return await sdk.trigger('api::session::start', {+ body: data,+ headers: {},+ method: 'POST',+ path_params: {},+ query_params: {},+ })+ }+ )+ sdk.registerTrigger({+ type: 'queue',+ function_id: 'event::session::started',+ config: { topic: 'agentmemory.session.started' },+ })++ sdk.registerFunction(+ { id: 'event::observation', description: 'Handle new observation event' },+ async (data: HookPayload) => {+ const ctx = getContext()+ ctx.logger.info('Observation event', { sessionId: data.sessionId, hook: data.hookType })+ return await sdk.trigger('mem::observe', data)+ }+ )+ sdk.registerTrigger({+ type: 'queue',+ function_id: 'event::observation',+ config: { topic: 'agentmemory.observation' },+ })++ sdk.registerFunction(+ { id: 'event::session::stopped', description: 'Handle stop event (trigger summarize)' },+ async (data: { sessionId: string }) => {+ const ctx = getContext()+ ctx.logger.info('Session stop event, triggering summarize', { sessionId: data.sessionId })+ return await sdk.trigger('mem::summarize', data)+ }+ )+ sdk.registerTrigger({+ type: 'queue',+ function_id: 'event::session::stopped',+ config: { topic: 'agentmemory.session.stopped' },+ })++ sdk.registerFunction(+ { id: 'event::session::ended', description: 'Handle session end event' },+ async (data: { sessionId: string }) => {+ const ctx = getContext()+ ctx.logger.info('Session end event', { sessionId: data.sessionId })+ return await sdk.trigger('api::session::end', {+ body: data,+ headers: {},+ method: 'POST',+ path_params: {},+ query_params: {},+ })+ }+ )+ sdk.registerTrigger({+ type: 'queue',+ function_id: 'event::session::ended',+ config: { topic: 'agentmemory.session.ended' },+ })+}diff --git a/src/types.ts b/src/types.tsnew file mode 100644index 00000000..201e1b7b--- /dev/null+++ b/src/types.ts@@ -0,0 +1,130 @@+export interface Session {+ id: string;+ project: string;+ cwd: string;+ startedAt: string;+ endedAt?: string;+ status: "active" | "completed" | "abandoned";+ observationCount: number;+ model?: string;+ tags?: string[];+}++export interface RawObservation {+ id: string;+ sessionId: string;+ timestamp: string;+ hookType: HookType;+ toolName?: string;+ toolInput?: unknown;+ toolOutput?: unknown;+ userPrompt?: string;+ assistantResponse?: string;+ raw: unknown;+}++export interface CompressedObservation {+ id: string;+ sessionId: string;+ timestamp: string;+ type: ObservationType;+ title: string;+ subtitle?: string;+ facts: string[];+ narrative: string;+ concepts: string[];+ files: string[];+ importance: number;+}++export type ObservationType =+ | "file_read"+ | "file_write"+ | "file_edit"+ | "command_run"+ | "search"+ | "web_fetch"+ | "conversation"+ | "error"+ | "decision"+ | "discovery"+ | "other";++export interface Memory {+ id: string;+ createdAt: string;+ updatedAt: string;+ type: "pattern" | "preference" | "architecture" | "bug" | "workflow" | "fact";+ title: string;+ content: string;+ concepts: string[];+ files: string[];+ sessionIds: string[];+ strength: number;+}++export interface SessionSummary {+ sessionId: string;+ project: string;+ createdAt: string;+ title: string;+ narrative: string;+ keyDecisions: string[];+ filesModified: string[];+ concepts: string[];+ observationCount: number;+}++export type HookType =+ | "session_start"+ | "prompt_submit"+ | "post_tool_use"+ | "stop"+ | "session_end";++export interface HookPayload {+ hookType: HookType;+ sessionId: string;+ project: string;+ cwd: string;+ timestamp: string;+ data: unknown;+}++export interface ProviderConfig {+ provider: ProviderType;+ model: string;+ maxTokens: number;+}++export type ProviderType = "agent-sdk" | "anthropic" | "gemini" | "openrouter";++export interface MemoryProvider {+ name: string;+ compress(systemPrompt: string, userPrompt: string): Promise<string>;+ summarize(systemPrompt: string, userPrompt: string): Promise<string>;+}++export interface AgentMemoryConfig {+ engineUrl: string;+ restPort: number;+ streamsPort: number;+ provider: ProviderConfig;+ tokenBudget: number;+ maxObservationsPerSession: number;+ compressionModel: string;+ dataDir: string;+}++export interface SearchResult {+ observation: CompressedObservation;+ score: number;+ sessionId: string;+}++export interface ContextBlock {+ type: "summary" | "observation" | "memory";+ content: string;+ tokens: number;+ recency: number;+}diff --git a/src/viewer/index.html b/src/viewer/index.htmlnew file mode 100644index 00000000..65edf553--- /dev/null+++ b/src/viewer/index.html@@ -0,0 +1,211 @@+<!DOCTYPE html>+<html lang="en">+<head>+ <meta charset="UTF-8">+ <meta name="viewport" content="width=device-width, initial-scale=1.0">+ <title>agentmemory viewer</title>+ <style>+ * { margin: 0; padding: 0; box-sizing: border-box; }+ body {+ font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;+ background: #0d1117;+ color: #c9d1d9;+ line-height: 1.5;+ }+ .header {+ padding: 16px 24px;+ border-bottom: 1px solid #21262d;+ display: flex;+ align-items: center;+ justify-content: space-between;+ }+ .header h1 { font-size: 16px; color: #58a6ff; font-weight: 600; }+ .header .status { font-size: 12px; padding: 2px 8px; border-radius: 12px; }+ .status.connected { background: #1b4332; color: #40c057; }+ .status.disconnected { background: #3d1f1f; color: #f85149; }+ .controls {+ padding: 12px 24px;+ border-bottom: 1px solid #21262d;+ display: flex;+ gap: 12px;+ align-items: center;+ }+ .controls select, .controls input {+ background: #161b22;+ border: 1px solid #30363d;+ color: #c9d1d9;+ padding: 6px 10px;+ border-radius: 6px;+ font-family: inherit;+ font-size: 13px;+ }+ .controls input { flex: 1; }+ .timeline { padding: 16px 24px; overflow-y: auto; height: calc(100vh - 120px); }+ .obs {+ margin-bottom: 12px;+ padding: 12px 16px;+ background: #161b22;+ border: 1px solid #21262d;+ border-radius: 8px;+ border-left: 3px solid #30363d;+ }+ .obs.importance-high { border-left-color: #f85149; }+ .obs.importance-med { border-left-color: #d29922; }+ .obs.importance-low { border-left-color: #3fb950; }+ .obs-header { display: flex; justify-content: space-between; margin-bottom: 6px; }+ .obs-type {+ font-size: 11px;+ padding: 1px 6px;+ border-radius: 4px;+ background: #21262d;+ color: #8b949e;+ text-transform: uppercase;+ }+ .obs-time { font-size: 11px; color: #484f58; }+ .obs-title { font-size: 14px; font-weight: 600; color: #e6edf3; margin-bottom: 4px; }+ .obs-narrative { font-size: 13px; color: #8b949e; }+ .obs-facts { margin-top: 6px; padding-left: 16px; }+ .obs-facts li { font-size: 12px; color: #7d8590; margin-bottom: 2px; }+ .obs-meta { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }+ .tag {+ font-size: 11px;+ padding: 1px 6px;+ border-radius: 4px;+ background: #1f2937;+ color: #58a6ff;+ }+ .file-tag { color: #3fb950; }+ .empty {+ text-align: center;+ padding: 60px 0;+ color: #484f58;+ }+ .raw-badge {+ background: #3d2b00;+ color: #d29922;+ }+ </style>+</head>+<body>+ <div class="header">+ <h1>agentmemory</h1>+ <span id="status" class="status disconnected">disconnected</span>+ </div>+ <div class="controls">+ <select id="session-filter">+ <option value="">All sessions</option>+ </select>+ <input id="search" type="text" placeholder="Search observations...">+ </div>+ <div id="timeline" class="timeline">+ <div class="empty">Waiting for observations...</div>+ </div>++ <script>+ const REST = 'http://localhost:3111';+ const WS_URL = 'ws://localhost:3112';+ const timeline = document.getElementById('timeline');+ const statusEl = document.getElementById('status');+ const searchEl = document.getElementById('search');+ const sessionFilter = document.getElementById('session-filter');+ let observations = [];+ let ws = null;++ function connect() {+ try {+ ws = new WebSocket(WS_URL);+ ws.onopen = () => {+ statusEl.textContent = 'connected';+ statusEl.className = 'status connected';+ };+ ws.onmessage = (e) => {+ try {+ const msg = JSON.parse(e.data);+ if (msg.observation) {+ const existing = observations.findIndex(o => o.id === msg.observation.id);+ if (existing >= 0) {+ observations[existing] = msg.observation;+ } else {+ observations.unshift(msg.observation);+ }+ render();+ }+ } catch {}+ };+ ws.onclose = () => {+ statusEl.textContent = 'disconnected';+ statusEl.className = 'status disconnected';+ setTimeout(connect, 3000);+ };+ ws.onerror = () => ws.close();+ } catch {+ setTimeout(connect, 3000);+ }+ }++ async function loadSessions() {+ try {+ const res = await fetch(`${REST}/agentmemory/sessions`);+ const data = await res.json();+ for (const s of data.sessions || []) {+ const opt = document.createElement('option');+ opt.value = s.id;+ opt.textContent = `${s.project.split('/').pop()} (${s.id.slice(0, 8)})`;+ sessionFilter.appendChild(opt);+ }+ } catch {}+ }++ function render() {+ const query = searchEl.value.toLowerCase();+ const session = sessionFilter.value;+ let filtered = observations;+ if (session) filtered = filtered.filter(o => o.sessionId === session);+ if (query) filtered = filtered.filter(o =>+ (o.title || '').toLowerCase().includes(query) ||+ (o.narrative || '').toLowerCase().includes(query) ||+ (o.concepts || []).some(c => c.toLowerCase().includes(query))+ );++ if (filtered.length === 0) {+ timeline.innerHTML = '<div class="empty">No observations match</div>';+ return;+ }++ timeline.innerHTML = filtered.map(o => {+ const imp = (o.importance || 5) >= 7 ? 'high' : (o.importance || 5) >= 4 ? 'med' : 'low';+ const isRaw = !o.title;+ const title = o.title || o.toolName || o.hookType || 'Raw observation';+ const type = o.type || o.hookType || 'raw';+ const time = o.timestamp ? new Date(o.timestamp).toLocaleTimeString() : '';+ const narrative = o.narrative || '';+ const facts = (o.facts || []).map(f => `<li>${esc(f)}</li>`).join('');+ const concepts = (o.concepts || []).map(c => `<span class="tag">${esc(c)}</span>`).join('');+ const files = (o.files || []).map(f => `<span class="tag file-tag">${esc(f)}</span>`).join('');++ return `<div class="obs importance-${imp}">+ <div class="obs-header">+ <span class="obs-type ${isRaw ? 'raw-badge' : ''}">${esc(type)}</span>+ <span class="obs-time">${time}</span>+ </div>+ <div class="obs-title">${esc(title)}</div>+ ${narrative ? `<div class="obs-narrative">${esc(narrative)}</div>` : ''}+ ${facts ? `<ul class="obs-facts">${facts}</ul>` : ''}+ ${concepts || files ? `<div class="obs-meta">${concepts}${files}</div>` : ''}+ </div>`;+ }).join('');+ }++ function esc(s) {+ const d = document.createElement('div');+ d.textContent = s;+ return d.innerHTML;+ }++ searchEl.addEventListener('input', render);+ sessionFilter.addEventListener('change', render);+ loadSessions();+ connect();+ </script>+</body>+</html>diff --git a/tsconfig.json b/tsconfig.jsonnew file mode 100644index 00000000..a5d75672--- /dev/null+++ b/tsconfig.json@@ -0,0 +1,22 @@+{+ "compilerOptions": {+ "target": "ES2022",+ "module": "ESNext",+ "moduleResolution": "bundler",+ "declaration": true,+ "declarationMap": true,+ "sourceMap": true,+ "outDir": "dist",+ "rootDir": "src",+ "strict": true,+ "esModuleInterop": true,+ "skipLibCheck": true,+ "forceConsistentCasingInFileNames": true,+ "resolveJsonModule": true,+ "isolatedModules": true,+ "noUnusedLocals": true,+ "noUnusedParameters": true+ },+ "include": ["src/**/*"],+ "exclude": ["node_modules", "dist", "test", "src/hooks"]+}diff --git a/tsdown.config.ts b/tsdown.config.tsnew file mode 100644index 00000000..d8cc9b36--- /dev/null+++ b/tsdown.config.ts@@ -0,0 +1,28 @@+import { defineConfig } from "tsdown";++export default defineConfig([+ {+ entry: ["src/index.ts"],+ outDir: "dist",+ format: ["esm"],+ dts: true,+ clean: true,+ sourcemap: true,+ target: "node18",+ banner: { js: "#!/usr/bin/env node" },+ },+ {+ entry: [+ "src/hooks/session-start.ts",+ "src/hooks/prompt-submit.ts",+ "src/hooks/post-tool-use.ts",+ "src/hooks/stop.ts",+ "src/hooks/session-end.ts",+ ],+ outDir: "dist/hooks",+ format: ["esm"],+ clean: false,+ sourcemap: false,+ target: "node18",+ },+]);