werewolf-ui 0.1.0-alpha.2 → 0.1.0-alpha.4
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/README.md +29 -7
- package/data/manifest.json +748 -79
- package/dist/THIRD-PARTY-NOTICES.txt +1 -1
- package/dist/cli.mjs +2292 -1647
- package/dist/core.mjs +1440 -1358
- package/dist/lint.mjs +948 -870
- package/dist/project.mjs +62 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -144,6 +144,24 @@ only http(s) URLs and waits at most 5 seconds. Failure keeps exit 0, sets
|
|
|
144
144
|
`opened: false` and adds a `WW_OPEN` warning. All opener branches are tested with
|
|
145
145
|
an injected spawn; a real browser launch is not part of the suite.
|
|
146
146
|
|
|
147
|
+
## Remote registries and login (pending review)
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
npx werewolf-ui login https://acme.example/acme
|
|
151
|
+
npx werewolf-ui add @acme/settings-page --yes --json
|
|
152
|
+
npx werewolf-ui logout @acme
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
`add @<namespace>/<item>` fetches the item from the registry configured under
|
|
156
|
+
`registries` in `werewolf.json` (or `components.json`), sends a key as a bearer
|
|
157
|
+
header, installs the built-in components it names from the bundled catalog, then
|
|
158
|
+
runs the same write plan, import mapping and rollback as any other add. `login`
|
|
159
|
+
signs in with the OAuth device flow, saves the key in the user config folder
|
|
160
|
+
(never in the app) and adds the registry to `werewolf.json`, with the key read
|
|
161
|
+
from an environment variable for CI. Only names with a namespace other than
|
|
162
|
+
`@werewolf` touch the network. Full protocol and limits:
|
|
163
|
+
[docs/cli.md](../../docs/cli.md#remote-registries).
|
|
164
|
+
|
|
147
165
|
From any directory:
|
|
148
166
|
|
|
149
167
|
```bash
|
|
@@ -205,7 +223,10 @@ styles/werewolf.css and the compiler's mapped component, lib and hooks folders.
|
|
|
205
223
|
The app CSS input, seed and generated output must be separate files.
|
|
206
224
|
|
|
207
225
|
Detection recognizes the two app-router CSS locations and the Vite src CSS
|
|
208
|
-
location in the plan.
|
|
226
|
+
location in the plan. Any other React TypeScript project (no `next` or `vite`
|
|
227
|
+
dependency) runs as framework `react`, with its CSS found from `src/index.css`,
|
|
228
|
+
`src/styles.css`, `src/app.css`, `app/globals.css`, `src/app/globals.css` or
|
|
229
|
+
`app/app.css`, or chosen with `--css`. Competing CSS files and lockfiles require explicit choices.
|
|
209
230
|
Workspace roots require selecting the app directory. Existing compiler aliases
|
|
210
231
|
are read from JSON with comments, local relative extends and direct project
|
|
211
232
|
references; they are never rewritten. External compiler extends, multiple
|
|
@@ -356,7 +377,7 @@ The selection applies only to component files in this request and a missing
|
|
|
356
377
|
generated output being restored. It cannot overwrite seed, config, app CSS, agent
|
|
357
378
|
instructions or ownership records. Existing theme edits stay intact.
|
|
358
379
|
|
|
359
|
-
The internal planAdd({project,core,names}) returns {writes,dependencySpecs,componentNames}.
|
|
380
|
+
The internal planAdd({project,core,names}, io) returns {writes,dependencySpecs,componentNames,registryItems}.
|
|
360
381
|
Writes use B2's WritePlan and ownership ledger. Conflict, byte, physical-target and
|
|
361
382
|
root-confinement preflight runs before the package manager. Compatible declared
|
|
362
383
|
dependencies skip installation; incompatible declarations and differing exact pins
|
|
@@ -413,13 +434,14 @@ npm ci
|
|
|
413
434
|
npm run build:cli
|
|
414
435
|
npm pack --workspace werewolf-ui --pack-destination /absolute/path/to/output
|
|
415
436
|
cd /absolute/path/to/consumer
|
|
416
|
-
npm install /absolute/path/to/output/werewolf-ui-0.1.0-alpha.
|
|
437
|
+
npm install /absolute/path/to/output/werewolf-ui-0.1.0-alpha.4.tgz --engine-strict
|
|
417
438
|
```
|
|
418
439
|
|
|
419
|
-
The supported alpha layouts are Next.js app-router (app or src/app)
|
|
420
|
-
TypeScript, with Node 20+, React 19,
|
|
421
|
-
|
|
422
|
-
|
|
440
|
+
The supported alpha layouts are Next.js app-router (app or src/app), Vite React
|
|
441
|
+
TypeScript and any other React TypeScript project, with Node 20+, React 19,
|
|
442
|
+
Tailwind CSS v4 and existing compiler aliases. Framework `react` is covered by
|
|
443
|
+
project detection tests only. The E3 consumer gate builds and packs locally,
|
|
444
|
+
installs that exact tarball in isolated temporary Next.js and Vite apps, runs all five MCP tools, exercises init/add/theme and
|
|
423
445
|
lint/fix, builds each app and verifies rendered token classes, keyboard focus,
|
|
424
446
|
dialog focus return and coarse-pointer sizes in a browser:
|
|
425
447
|
|