Skip to content

Commit cda3419

Browse files
dmealingclaude
andcommitted
chore(sdk)!: remove the forge memory record schemas and their file storage
BREAKING (pre-1.0). `RecordCore` / `RecordType` / `RecordSource`, `DecisionRecord` / `PrincipleRecord` / `ConventionRecord` / `GlossaryRecord` / `FailureRecord` / `AnyRecord`, and the whole storage layer beside them — `readRecord`, `recordExists`, `writeRecord`, `removeRecord`, `listRecords`, `promoteRecord`, `supersede`, `ForgeRecordNotFoundError`, `ForgeAlreadyPromotedError`, `ForgeRecordParseError`, `ListOptions` — are gone from `@metaobjectsdev/sdk`. They are the predecessor product's record store. Nothing in this repository imported either module — not the CLI, not a generator, not another package — and a sweep of all seven adopter estates found no use of any of the fifteen names. The only consumers were the modules' own tests, which go with them. This is the second half of the same decision as the commit before it: the vocabulary those schemas describe is no longer in any default composition, so a published API for a store nothing reads would have been frozen into 1.0 for its own sake. `recordPath` stays in `paths.ts` — a path helper, separately tested, and not part of this surface. `zod` stays a dependency: `config.ts` and `package.ts` still use it. Workspace build and typecheck clean; sdk 275 pass, 0 fail. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NTcEKXTQMYt84fAjuw5A2M
1 parent 8bf273a commit cda3419

17 files changed

Lines changed: 8 additions & 752 deletions

File tree

‎server/typescript/packages/sdk/src/index.ts‎

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,11 @@
1-
// Records
2-
export { RecordCore, RecordType, RecordSource } from "./records/core.js";
3-
export { ConventionRecord } from "./records/convention.js";
4-
export { DecisionRecord } from "./records/decision.js";
5-
export { PrincipleRecord } from "./records/principle.js";
6-
export { GlossaryRecord } from "./records/glossary.js";
7-
export { FailureRecord } from "./records/failure.js";
8-
export { AnyRecord } from "./records/any.js";
9-
10-
// Storage
11-
export {
12-
readRecord,
13-
recordExists,
14-
writeRecord,
15-
removeRecord,
16-
listRecords,
17-
promoteRecord,
18-
supersede,
19-
ForgeRecordNotFoundError,
20-
ForgeAlreadyPromotedError,
21-
ForgeRecordParseError,
22-
} from "./storage/index.js";
23-
export type { ListOptions } from "./storage/index.js";
1+
// The forge memory RECORD schemas (`RecordCore`, `DecisionRecord`, …) and their file
2+
// STORAGE layer (`readRecord` / `writeRecord` / `listRecords` / `promoteRecord` /
3+
// `supersede`) were exported here and are removed. Nothing in this repository imported
4+
// either — not the CLI, not a generator, not a test beyond the schemas' own — and no
5+
// adopter estate did. The storage half had no test at all. They are the predecessor
6+
// product's record store, and the vocabulary they describe is no longer in any default
7+
// composition (see `defaultLoadMemoryProviders`); keeping a published API for a store
8+
// nothing reads would have frozen it into 1.0.
249

2510
// Paths
2611
export { recordPath, resolveMetaRoot } from "./paths.js";

‎server/typescript/packages/sdk/src/records/any.ts‎

Lines changed: 0 additions & 15 deletions
This file was deleted.

‎server/typescript/packages/sdk/src/records/convention.ts‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎server/typescript/packages/sdk/src/records/core.ts‎

Lines changed: 0 additions & 55 deletions
This file was deleted.

‎server/typescript/packages/sdk/src/records/decision.ts‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎server/typescript/packages/sdk/src/records/failure.ts‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎server/typescript/packages/sdk/src/records/glossary.ts‎

Lines changed: 0 additions & 15 deletions
This file was deleted.

‎server/typescript/packages/sdk/src/records/principle.ts‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

‎server/typescript/packages/sdk/src/storage/errors.ts‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎server/typescript/packages/sdk/src/storage/index.ts‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)