Skip to content

Use _mdbase settings and metadata folders (model rc.22) - #28

Merged
callumalpass merged 1 commit into
mainfrom
feat/mdbase-settings-folder
Nov 15, 2026
Merged

callumalpass merged 1 commit into
mainfrom
feat/mdbase-settings-folder

Conversation

@callumalpass

Copy link
Copy Markdown
Owner

Summary

  • Read the approved folder design and use _mdbase/settings/<app>.md for new settings records. Export LEGACY_APP_SETTINGS_FOLDER, legacyAppSettingsPath(app) and resolveAppSettingsPath(app, { currentExists, legacyExists }) from the root and settings subpath. Current wins, then legacy, then current for creation; clients never move records.
  • Let settings resolution receive the path actually read so read-only messages identify that record. Keep record settings_version at 1; bump the settings type to 2 and contracts to mdbase.app-settings 2.0.0 / tasknotes.settings 1.1.0.
  • Default new collection resources to _mdbase/types and _mdbase/contracts. Put support schemas under the contracts folder's parent. Explicit existing layouts remain supported; existing-config spec defaults remain _types / _contracts.
  • Vendor the exact dist/packs/tasknotes.task/0.3.0-rc.21.json from Add TaskNotes rc.21 with settings under _mdbase mdbase-dev/mdbase-contracts#23, head c50a6d08d975b02891fdb8f9c9f08011179efd51. Preserve support document bytes, retained contracts/schemas, and seed upgrade history. Add a repeatable sync:mdbase-pack script.
  • Bump @tasknotes/model from rc.21 to rc.22 after checking origin/main and npm versions. Update the changelog and consumer guidance.

Consumer-visible changes

  • APP_SETTINGS_FOLDER, appSettingsPath and TASKNOTES_SETTINGS_PATH now name _mdbase/settings. Consumers must check both candidate paths with the resolver and save the chosen record, not blindly create at the new path.
  • Resource builders default to the new-collection layout. Callers working with existing collections must supply that collection's configured folders or the unchanged spec defaults.
  • Generated packs now include the full published support resources and upgrade metadata. provides can include tasknotes.settings and mdbase.app-settings, not only tasknotes.task; consumers must not assume four resources or one provided contract.

Validation

  • PASS: npm test — all 141 tests passed (includes build).
  • PASS: npm run typecheck.
  • PASS: npm run test:package — installed-package ESM/CJS settings exports and TypeScript node-resolution checks; existing calendar checks retain node and NodeNext coverage.
  • PASS: focused settings/mdbase/starter tests; canonical legacy-layout starter pack equals the complete published rc.21 pack, including upgrade history. New-layout digests match all 14 published resources.
  • PASS: vendored JSON is byte-identical to the specified contracts worktree's dist output; git diff --check.
  • Existing limitation, not changed here: an additional NodeNext root/settings declaration probe fails with TS2834 for extensionless declaration imports. Reproduced on unchanged base e86a5af51a278d08da5ea9c3e64d9d1b22aaaa14. New settings TypeScript smoke coverage uses the existing supported node resolver; no existing test was removed or weakened.
  • npm reports two high-severity dependency advisories during the package smoke install. Dependency versions are unchanged; no unrelated dependency fixes included.

No merge, tag or publish performed. Publishing remains the maintainer's tag-triggered step.

Use _mdbase metadata folders for new collections and share legacy-aware settings path resolution. Vendor tasknotes.task rc.21 with retained contracts, settings resources and seed upgrade history.
@callumalpass
callumalpass merged commit 667486e into main Nov 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant