@tristan2828/ui-foundation 4.129.0 → 4.129.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/conventions/AGENTS.md
CHANGED
|
@@ -118,13 +118,19 @@ Follow `docs/foundation/reminders.md`. Never ask for notification
|
|
|
118
118
|
permission on page load: only from the click on "Allow Reminders".
|
|
119
119
|
|
|
120
120
|
## Scope and Stopping
|
|
121
|
-
- Do the task you were given
|
|
122
|
-
|
|
123
|
-
|
|
121
|
+
- Do the task you were given. Its tests, its docs and anything it breaks
|
|
122
|
+
are part of it; a refactor or a feature nobody asked for is not. Ideas
|
|
123
|
+
beyond the task go in the app's backlog, not in code.
|
|
124
|
+
- A task is done when the app's gate passes, not when it feels complete:
|
|
125
|
+
`npm run verify`, unless the app's own section below names its gate. Do
|
|
126
|
+
not report a task complete on a failing gate. The developer reviews
|
|
127
|
+
results (the running app, a screenshot, an options page), not every
|
|
128
|
+
line, so the gates are the safety net.
|
|
129
|
+
- If the gate cannot pass without breaking a Hard Rule, an instruction
|
|
124
130
|
conflicts with current library docs, or the change would exceed the
|
|
125
|
-
task's scope:
|
|
126
|
-
|
|
127
|
-
|
|
131
|
+
task's scope: stop. In a chat with the developer, ask them; working
|
|
132
|
+
alone, write `docs/BLOCKERS.md` (what, why, what you tried). Do not
|
|
133
|
+
guess past it, and do not widen the task to get around it.
|
|
128
134
|
|
|
129
135
|
## Correct Patterns
|
|
130
136
|
```tsx
|
|
@@ -153,12 +159,6 @@ before guessing props — component APIs move between releases and training
|
|
|
153
159
|
data lags them. The package's own props are in its type declarations
|
|
154
160
|
(`node_modules/@tristan2828/ui-foundation/dist/**/*.d.ts`).
|
|
155
161
|
|
|
156
|
-
## Before You Finish
|
|
157
|
-
Run `npm run verify`. It must pass. Do not report a task complete on a
|
|
158
|
-
failing gate. The developer reviews results — the running app, a
|
|
159
|
-
screenshot, an options page — not every line, so the gates are the safety
|
|
160
|
-
net.
|
|
161
|
-
|
|
162
162
|
## Adding an Entity
|
|
163
163
|
Follow `docs/foundation/add-an-entity.md` (in Claude Code, `/new-entity
|
|
164
164
|
<Name>` is a shortcut to it). It builds from the entity's plan,
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
name: spec-tester
|
|
3
3
|
description: Writes gateway translation tests from openapi.yaml and contracts.ts only. Used in Phase 2 and by the new-entity playbook — never invoked to test code it can read.
|
|
4
4
|
tools: Read, Write, Bash(vitest *)
|
|
5
|
+
model: sonnet
|
|
5
6
|
hooks:
|
|
6
7
|
PreToolUse:
|
|
7
8
|
- matcher: "Read"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tristan2828/ui-foundation",
|
|
3
|
-
"version": "4.129.
|
|
3
|
+
"version": "4.129.1",
|
|
4
4
|
"description": "Shared UI foundation for contract-first, database-backed React apps: shadcn primitives, DataTable/EntityForm composites, auth, the gateway error seam, design tokens, lint rules and the AI playbook.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|