mirror of
https://github.com/rohitg00/agentmemory.git
synced 2026-09-14 20:16:33 +08:00
0023af2c53
* fix: replace getContext() with logger shim for iii-sdk v0.11 compatibility
iii-sdk v0.11 dropped getContext() entirely. 32 src/functions/*.ts files still
imported and called it, crashing node dist/index.mjs on first import with:
SyntaxError: module 'iii-sdk' does not provide an export named 'getContext'
- Add src/logger.ts: thin stderr shim (info/warn/error) with identical call signature
- Remove getContext import and const ctx = getContext() from all 32 function files
- Replace ctx.logger.* with logger.* throughout
- Fix search.ts registerFunction({ id: ... }) -> registerFunction('id') for v0.11 API
- Update 45 test mock blocks from vi.mock("iii-sdk") to vi.mock("../src/logger.js")
- Bump to v0.8.11
Tests: 731/731 pass. Binary starts cleanly. Closes #116.
* fix: bump version to 0.8.11 in plugin.json, export-import supported versions, and test
78 lines
2.0 KiB
JSON
78 lines
2.0 KiB
JSON
{
|
|
"name": "@agentmemory/agentmemory",
|
|
"version": "0.8.11",
|
|
"description": "Persistent memory for AI coding agents, powered by iii-engine's three primitives",
|
|
"type": "module",
|
|
"main": "dist/index.mjs",
|
|
"types": "dist/index.d.mts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.mts",
|
|
"import": "./dist/index.mjs"
|
|
},
|
|
"./dist/standalone.mjs": "./dist/standalone.mjs",
|
|
"./package.json": "./package.json"
|
|
},
|
|
"bin": {
|
|
"agentmemory": "dist/cli.mjs"
|
|
},
|
|
"scripts": {
|
|
"build": "tsdown && (cp iii-config.yaml dist/ 2>/dev/null || true) && (cp iii-config.docker.yaml dist/ 2>/dev/null || true) && (cp docker-compose.yml dist/ 2>/dev/null || true) && mkdir -p dist/viewer && cp src/viewer/index.html dist/viewer/",
|
|
"dev": "tsx src/index.ts",
|
|
"start": "node dist/cli.mjs",
|
|
"migrate": "node dist/functions/migrate.js",
|
|
"test": "vitest run --exclude test/integration.test.ts",
|
|
"test:watch": "vitest --exclude test/integration.test.ts",
|
|
"test:integration": "vitest run test/integration.test.ts",
|
|
"test:all": "vitest run"
|
|
},
|
|
"keywords": [
|
|
"ai",
|
|
"agent",
|
|
"memory",
|
|
"persistent",
|
|
"iii-engine",
|
|
"claude-code",
|
|
"coding-agent",
|
|
"context",
|
|
"observation"
|
|
],
|
|
"files": [
|
|
"dist/",
|
|
"plugin/",
|
|
"iii-config.yaml",
|
|
"iii-config.docker.yaml",
|
|
"docker-compose.yml",
|
|
"LICENSE",
|
|
"README.md",
|
|
"AGENTS.md"
|
|
],
|
|
"author": "Rohit Ghumare <ghumare64@gmail.com>",
|
|
"license": "Apache-2.0",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/rohitg00/agentmemory"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/claude-agent-sdk": "^0.2.56",
|
|
"@anthropic-ai/sdk": "^0.39.0",
|
|
"@clack/prompts": "^1.2.0",
|
|
"dotenv": "^16.4.7",
|
|
"iii-sdk": "^0.11.0",
|
|
"zod": "^4.0.0"
|
|
},
|
|
"optionalDependencies": {
|
|
"@xenova/transformers": "^2.17.2"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"tsdown": "^0.20.3",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.7.0",
|
|
"vitest": "^3.0.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=20.0.0"
|
|
}
|
|
}
|