feat(data): rework @scope42/data as a format-agnostic frontmatter loader#441
Merged
feat(data): rework @scope42/data as a format-agnostic frontmatter loader#441
Conversation
Co-Authored-By: Claude Opus 4.7 <[email protected]>
Co-Authored-By: Claude Opus 4.7 <[email protected]>
Co-Authored-By: Claude Opus 4.7 <[email protected]>
… utils+commons - model/index.ts: export frontmatter schemas + Item = Issue | Risk | Improvement | Decision - io/adapters/*.ts: file-level doc comments - delete utils.ts (id+status helpers obsoleted by the refactor) - delete model/commons.ts (nullsafeOptional/DeserializableDate no longer used) - src/index.ts: drop utils re-export
✅ Deploy Preview for scope42 canceled.
|
|
✅ Deploy Preview for scope42-website canceled.
|
erikhofer
commented
Apr 23, 2026
- restore api.ts with JSDoc; update adapters to import from './api' - remove RELATION_TYPE_PATTERNS (belongs to linter, see #433) - add version: z.literal(2) to WorkspaceConfigSchema - add comment on Risk independence from aim42 issue hierarchy - update example scope42.yaml and FORMAT.md for current schema Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
… comment Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scope42.yaml-driven workspace loader usinggray-matter+picomatchexample/workspace (15 items) to new Markdown-frontmatter format and addsFORMAT.mddocumenting the formatWhat changed
packages/scope42-data: newWorkspaceConfigZod schema, per-type frontmatter schemas, rewrittenWorkspace.readItems(), 57 tests passing, lint cleanexample/: newscope42.yaml+ 15 migrated items (5 issues, 2 risks, 4 improvements, 4 decisions)FORMAT.md: format specification at repo rootexamples/data-processing: points at newexample/workspace and loads all 15 items end-to-endapp/app/will fail to build after this PR — it imports types and helpers that no longer exist (IssueId,getItemTypeFromId,Workspacewrite APIs, etc.). This is intentional:app/is being removed in the follow-up issue #434. Do not attempt to fixapp/here.Test plan
npm --workspace packages/scope42-data run lint— cleannpm --workspace packages/scope42-data run build— successnpm --workspace packages/scope42-data test— 57/57 passnpm --workspace examples/data-processing run lint— cleannpm --workspace examples/data-processing run gen— prints all 15 itemsCloses #432