Files
opencode-working-memory/package.json
T
Ralph Chang ef1248f23a feat: add consolidation accounting for workspace memory promotion
P0 implementation with four waves:

Wave 1: Dedup with accounting
- Add dedupeLongTermEntriesWithAccounting()
- Classify exact duplicate, identity duplicate, topic duplicate

Wave 2: Normalization with accounting
- Add normalizeWorkspaceMemoryWithAccounting()
- Chain redaction → migration → enforceLongTermLimitsWithAccounting

Wave 3: Promotion accounting integration
- Update accountPendingPromotions() to use new accounting API
- Add supersededKeys to classification
- Distinguish promoted / absorbed / superseded / rejected

Wave 4: Integration tests
- End-to-end tests covering full pipeline

Bug fixes:
- Fix active vs superseded boundary (superseded entries no longer block promotion)
- Remove unused rejected_duplicate_lower_quality type
- Defer pending journal safety cap (TODO added)

Tests: 135 passing (up from 115)
2026-04-27 16:45:55 +08:00

51 lines
1.2 KiB
JSON

{
"name": "opencode-working-memory",
"version": "1.3.0",
"description": "Three-layer memory architecture for OpenCode with workspace memory and hot session state",
"type": "module",
"main": "index.ts",
"exports": {
".": "./index.ts"
},
"files": [
"index.ts",
"src/",
"README.md",
"LICENSE"
],
"scripts": {
"build": "node -e \"console.log('No build step required: OpenCode loads index.ts directly')\"",
"typecheck": "tsc --noEmit",
"test": "node --test --experimental-strip-types tests/*.test.ts"
},
"keywords": [
"opencode",
"plugin",
"memory",
"context-management",
"ai-agent",
"llm"
],
"author": "sdwolf4103",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/sdwolf4103/opencode-working-memory.git"
},
"bugs": {
"url": "https://github.com/sdwolf4103/opencode-working-memory/issues"
},
"homepage": "https://github.com/sdwolf4103/opencode-working-memory#readme",
"peerDependencies": {
"@opencode-ai/plugin": "^1.2.0"
},
"devDependencies": {
"@types/node": "^24.3.0",
"bun-types": "^1.2.21",
"typescript": "^5.9.2"
},
"engines": {
"node": ">=18.0.0"
}
}