Files
rohitg00__agentmemory/package.json
Rohit Ghumare 518558441f fix(release): v0.9.26 hotfix for first-run load crash (#797)
First boot after upgrading to v0.9.25 threw
'TypeError: Cannot read properties of undefined (reading v)' from
IndexPersistence.loadManifestData. Some iii-state adapters return
undefined (not null) for a missing key. The load path checked
manifest.value !== null and forwarded undefined to loadManifestData,
which then read undefined.v.

Self-healing: the next debounced save rebuilt a fresh manifest, so
operation continued after the warning — but the error scared every
fresh upgrader.

Fix: treat null + undefined + non-object values as 'no manifest' and
fall through to the legacy load path. Two regression tests:

  - kv.get returning undefined surfaces as a clean { bm25: null,
    vector: null } load, no throw.
  - kv.get returning a string (wrong shape) does not crash the
    manifest path.

Files bumped (9):
  package.json, plugin/.claude-plugin/plugin.json, plugin/plugin.json,
  plugin/.codex-plugin/plugin.json, src/version.ts, src/types.ts,
  src/functions/export-import.ts, test/export-import.test.ts,
  packages/mcp/package.json

125 test files / 1381 tests pass.

Closes #797.
2026-06-03 10:15:24 +01:00

91 lines
2.5 KiB
JSON

{
"name": "@agentmemory/agentmemory",
"version": "0.9.26",
"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) && (cp .env.example dist/ 2>/dev/null || true) && mkdir -p dist/viewer && cp src/viewer/index.html dist/viewer/ && cp src/viewer/favicon.svg 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",
"bench:load": "node --import tsx benchmark/load-100k.ts",
"eval:longmemeval": "tsx eval/runner/longmemeval.ts",
"eval:coding-life": "tsx eval/runner/coding-life.ts"
},
"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",
".env.example",
"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.3.142",
"@anthropic-ai/sdk": "^0.100.1",
"@clack/prompts": "^1.2.0",
"dotenv": "^17.4.2",
"iii-sdk": "0.11.2",
"zod": "^4.0.0"
},
"optionalDependencies": {
"@node-rs/jieba": "^2.0.1",
"@xenova/transformers": "^2.17.2",
"onnxruntime-node": "^1.14.0",
"onnxruntime-web": "^1.14.0",
"tiny-segmenter": "^0.2.0"
},
"devDependencies": {
"@types/node": "^25.9.1",
"tsdown": "^0.21.10",
"tsx": "^4.19.0",
"typescript": "^6.0.3",
"vitest": "^4.1.6"
},
"overrides": {
"qs": "^6.15.2",
"ws": "^8.21.0",
"protobufjs": "^7.5.8"
},
"engines": {
"node": ">=20.0.0"
}
}