From 50011ddcfd7bc862322a87f4faaceedbc721edcb Mon Sep 17 00:00:00 2001 From: vreshch Date: Wed, 18 Nov 2026 00:07:45 +0100 Subject: [PATCH] docs: fix stale memory-core file: link; drop unused test fixtures Claude-Session: https://claude.ai/code/session_01XQkodgygL4W8UcLQDwC212 --- CLAUDE.md | 4 +++- README.md | 7 +++---- test/fixtures/index.ts | 20 -------------------- 3 files changed, 6 insertions(+), 25 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index a0b0164..5f35918 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -17,7 +17,9 @@ The stdio **MCP server** for agentage Memory: exposes local vaults as the frozen - `.mcpc.json` is a CI snapshot (`z.toJSONSchema`, draft-2020-12) — it disagrees with the live `tools/list` (SDK, draft-07). **Verify contract claims against a dumped live `tools/list`, never the snapshot** — snapshot-only checks go false-green. - Descriptions flow to BOTH serializers — the safe cross-model lever (the model routes on the description, not just the schema). - Transport-agnostic by design: `createMemoryServer` takes any transport; the bin here wires stdio. Keep it that way. -- `@agentage/memory-core` is a `file:` link until both publish — build core first (the e2e does this automatically). +- `@agentage/memory-core` is a normal npm dependency (`^0.5.0`); all memory logic stays there. ## Verify `npm run verify` (type-check + lint + format:check + test + build). Tests: contract (tools/list = 6) + tools (in-memory) + e2e (init → spawned bin → round-trip). + +Standards: `~/vaults/engineering/standards/` (start at its `README.md`); this file links them and does not copy them. diff --git a/README.md b/README.md index d081f55..d43beae 100644 --- a/README.md +++ b/README.md @@ -37,11 +37,10 @@ directions. ## Develop ```bash -npm install # links @agentage/memory-core via file:../memory-core +npm install # installs @agentage/memory-core from npm npm test # vitest: contract (tools/list = 6) + tools (in-memory) + e2e (init -> spawned bin -> round-trip) npm run verify # type-check + lint + format:check + test + build ``` -`@agentage/memory-core` is a local `file:` link until both packages publish to npm; build -core before running here (the e2e does this automatically). The 6-tool schema and -`.mcpc.json` snapshot are the frozen MCP contract - keep them in sync if the contract changes. +The 6-tool schema and `.mcpc.json` snapshot are the frozen MCP contract - keep them in sync if the +contract changes. diff --git a/test/fixtures/index.ts b/test/fixtures/index.ts index e9c43de..1ff0690 100644 --- a/test/fixtures/index.ts +++ b/test/fixtures/index.ts @@ -3,7 +3,6 @@ import { mkdtempSync, mkdirSync, writeFileSync, rmSync } from 'node:fs'; import { tmpdir } from 'node:os'; import { dirname, join } from 'node:path'; import { afterEach } from 'vitest'; -import type { VaultEntry } from '@agentage/memory-core'; const created: string[] = []; @@ -51,22 +50,3 @@ export const tmpVault = (files: Record = {}): string => { } return dir; }; - -// A temp AGENTAGE_CONFIG_DIR holding a vaults.json built from the given vault map. -// Returns the dir; pass it as loadConfig({ configDir }). -export const tmpConfig = ( - vaults: Record, - opts: { default?: string } = {} -): string => { - const dir = tmp('mc-config-'); - const config = { version: 1, default: opts.default, vaults }; - writeFileSync(join(dir, 'vaults.json'), JSON.stringify(config, null, 2), 'utf8'); - return dir; -}; - -// Write raw text as vaults.json (for malformed-config tests). Returns the dir. -export const tmpConfigRaw = (raw: string): string => { - const dir = tmp('mc-config-'); - writeFileSync(join(dir, 'vaults.json'), raw, 'utf8'); - return dir; -};