Repository navigation
Conversation
🦋 Changeset detectedLatest commit: e71f8a2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 19 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Scope checkThis PR changes 1,513 lines across 15 files. Large PRs are harder to review and more likely to be closed without review. If this scope is intentional, no action needed. A maintainer will review it. If not, please consider splitting this into smaller PRs. See CONTRIBUTING.md for contribution guidelines. |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-playground | e71f8a2 | Jul 10 2026, 03:39 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-demo-do | e71f8a2 | Jul 10 2026, 03:39 PM |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
emdash-demo-cache | e71f8a2 | Jul 10 2026, 03:36 PM |
4510fb4
into
feat/plugin-registry-labelling-service
There was a problem hiding this comment.
This PR is a focused, contracts-only addition of experimental labeller query lexicons for the plugin registry. It implements the scoped W1.2/W1.3 work from #1909 by defining getAssessment, getCurrentAssessment, listAssessments, and getPolicy contracts, generating the TypeScript/runtime validators, exporting NSIDs, and adding schema smoke tests. The change fits the existing @emdash-cms/registry-lexicons package conventions (hand-authored JSON lexicons → generated .ts via @atcute/lex-cli → re-exports in src/index.ts).
The code is largely clean, but one real inconsistency should be fixed before the contracts harden in a published package: the policy object def is named #labelerPolicy (single l) while the NSID namespace, file paths, hand-written exports, documentation, and every other new def use labeller (double l). This leaves consumers importing LabellerDefs.LabelerPolicy and pointing to an emdash-labeler-policy.json well-known URL, which is awkward for a public contract. Renaming to #labellerPolicy keeps the surface internally consistent.
I also suggest bumping the changeset from patch to minor since this is a feature addition rather than a bug fix, though this is less critical for an unstable 0.x package.
| "description": { "type": "string", "minLength": 1, "maxLength": 4096 } | ||
| } | ||
| }, | ||
| "labelerPolicy": { |
There was a problem hiding this comment.
[needs fixing] The policy object def is named labelerPolicy (single l), while the surrounding NSID namespace, file paths, hand exports in src/index.ts, and the PR title/description all use labeller (double l). This inconsistency will persist in generated TypeScript (LabellerDefs.LabelerPolicy / labelerPolicySchema) and in the well-known policy URL used in tests (emdash-labeler-policy.json).
Because this is a public contract, it is much cheaper to align the spelling now than after release. Rename the def to labellerPolicy and update the getPolicy.json reference and generated code/tests accordingly.
| "labelerPolicy": { | |
| "labellerPolicy": { | |
| "type": "object", |
| @@ -0,0 +1,5 @@ | |||
| --- | |||
| "@emdash-cms/registry-lexicons": patch | |||
There was a problem hiding this comment.
[suggestion] This changeset adds new public query contracts, so a minor bump is more conventional than patch (even though the package is pre-1.0 and experimental). Not a blocker, but it helps downstream consumers read the release note correctly.
What does this PR do?
Adds experimental public Lexicons for the EmDash registry labeller.
getAssessment,getCurrentAssessment,listAssessments, andgetPolicyquery contracts.Implements W1.2/W1.3 from #1909. It adds contracts only; no labeler service routes are implemented yet.
Related to #1909 and #694.
Type of change
Checklist
pnpm typecheckpassespnpm lintpassespnpm testpasses (or targeted tests for my change)pnpm formathas been runmessages.pochanges except in translation PRs — a workflow extracts catalogs on merge tomain.Admin i18n is not applicable because this package has no user interface.
AI-generated code disclosure
Screenshots / test output
pnpm run codegenpassespnpm buildpassespnpm --filter @emdash-cms/registry-lexicons test: 14 passedpnpm --filter @emdash-cms/registry-lexicons typecheckpassespnpm lintpassespnpm changeset statuspassesgit diff --checkpassesattw --packretains its existing internalfilenamecrash afterpublintsucceeds.Try this PR
Open a fresh playground →
A full working EmDash site, deployed from this branch. Each visit gets its own session-scoped sandbox: no login needed and no shared state. Try the admin, edit content, hit the public site.
Tracks
feat/labeller-10-labeller-lexicons. Updated automatically when the playground redeploys.