Skip to content

Commit 84c8ca0

Browse files
committed
fix(spec): regenerate skill references, keep the error map internal (#3405)
Two more generated-artifact gates behind `check:docs`, both tripped by the same commit: - `check:skill-refs` — importing `shared/suggestions.zod.ts` from `ui/action.zod.ts` pulls it into the transitive reference set of the objectstack-data / -ui / -platform skills. Regenerated via `gen:skill-refs`; the diff is the one expected line per skill, and `action.zod.ts` still resolves to "Action Parameter Schema", confirming the JSDoc-order fix held. - `check:api-surface` — `actionParamUnknownKeyError` was exported, which added it to the package's public API. It has no caller outside its own module, so the export was unnecessary: unlike `strictVisibilityError`, which is shared across the view/page schemas, this map is wired into exactly one schema. Made it module-private; the public API surface is now unchanged by this PR. All ten `check:*` gates in packages/spec pass locally, alongside 258 files / 6716 tests and a clean `tsc --noEmit`. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LkvDs4y4gveyB5NJZKxaZt
1 parent 95b154a commit 84c8ca0

4 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/spec/src/ui/action.zod.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const aliasProbe = (key: string): string => key.toLowerCase().replace(/[_\-\s]/g
106106
* *fixable*: it names the offending key(s) and, when one is a recognisable
107107
* spelling of a declared key, points at the canonical one.
108108
*/
109-
export const actionParamUnknownKeyError: z.core.$ZodErrorMap = (issue) => {
109+
const actionParamUnknownKeyError: z.core.$ZodErrorMap = (issue) => {
110110
if (issue.code !== 'unrecognized_keys') return undefined;
111111
const keys = (issue as { keys?: readonly string[] }).keys ?? [];
112112
const suggestions = keys.flatMap((key) => {

‎skills/objectstack-data/references/_index.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ from `node_modules` — there is no local copy in the skill bundle.
2727
- `node_modules/@objectstack/spec/src/shared/http.zod.ts` — Shared HTTP Schemas
2828
- `node_modules/@objectstack/spec/src/shared/identifiers.zod.ts` — System Identifier Schema
2929
- `node_modules/@objectstack/spec/src/shared/protection.zod.ts` — Package-level metadata protection (ADR-0010 §3.7 — Phase 4.3)
30+
- `node_modules/@objectstack/spec/src/shared/suggestions.zod.ts` — "Did you mean?" Suggestion Utilities
3031
- `node_modules/@objectstack/spec/src/ui/action.zod.ts` — Action Parameter Schema
3132
- `node_modules/@objectstack/spec/src/ui/i18n.zod.ts` — I18n Object Schema
3233
- `node_modules/@objectstack/spec/src/ui/responsive.zod.ts` — Breakpoint Name Enum

‎skills/objectstack-platform/references/_index.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ from `node_modules` — there is no local copy in the skill bundle.
3232
- `node_modules/@objectstack/spec/src/shared/expression.zod.ts` — Expression Protocol
3333
- `node_modules/@objectstack/spec/src/shared/identifiers.zod.ts` — System Identifier Schema
3434
- `node_modules/@objectstack/spec/src/shared/protection.zod.ts` — Package-level metadata protection (ADR-0010 §3.7 — Phase 4.3)
35+
- `node_modules/@objectstack/spec/src/shared/suggestions.zod.ts` — "Did you mean?" Suggestion Utilities
3536
- `node_modules/@objectstack/spec/src/system/tenant.zod.ts` — Tenant Schema (Multi-Tenant Architecture)
3637
- `node_modules/@objectstack/spec/src/ui/action.zod.ts` — Action Parameter Schema
3738
- `node_modules/@objectstack/spec/src/ui/app.zod.ts` — Base Navigation Item Schema

‎skills/objectstack-ui/references/_index.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ from `node_modules` — there is no local copy in the skill bundle.
3434
- `node_modules/@objectstack/spec/src/shared/http.zod.ts` — Shared HTTP Schemas
3535
- `node_modules/@objectstack/spec/src/shared/identifiers.zod.ts` — System Identifier Schema
3636
- `node_modules/@objectstack/spec/src/shared/protection.zod.ts` — Package-level metadata protection (ADR-0010 §3.7 — Phase 4.3)
37+
- `node_modules/@objectstack/spec/src/shared/suggestions.zod.ts` — "Did you mean?" Suggestion Utilities
3738
- `node_modules/@objectstack/spec/src/ui/i18n.zod.ts` — I18n Object Schema
3839
- `node_modules/@objectstack/spec/src/ui/responsive.zod.ts` — Breakpoint Name Enum
3940
- `node_modules/@objectstack/spec/src/ui/sharing.zod.ts` — Sharing & Embedding Protocol

0 commit comments

Comments
 (0)