werewolf-ui 0.1.0-alpha.1 → 0.1.0-alpha.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Werewolf CLI (alpha)
2
2
 
3
- Published on npm as `werewolf-ui@0.1.0-alpha.0` (dist tags `latest` and `alpha`). Run it with `npx werewolf-ui` from a supported app. Component APIs remain draft.
3
+ Published on npm as `werewolf-ui` (dist tags `latest` and `alpha`; run `npx werewolf-ui --version` to see which version you have). Run it with `npx werewolf-ui` from a supported app. Component APIs remain draft.
4
4
 
5
5
  ## Platform token export (E1, shipped in PR #134)
6
6
 
@@ -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
@@ -219,7 +237,7 @@ immediately before each file commit.
219
237
  `installDependencies({project,specs,spawn})` sorts and deduplicates specs,
220
238
  rejects version conflicts before spawning, preserves exact pins and returns
221
239
  `{installed}`. It supports all four adapters through argument arrays with no
222
- shell. On Windows it locates native executables or resolves standard `.cmd`
240
+ shell. npm installs pass `--no-audit` and `--no-fund`. On Windows it locates native executables or resolves standard `.cmd`
223
241
  launchers to their underlying scripts, then invokes Node directly. Unsupported
224
242
  custom launchers fail with remediation. Subprocess errors include the exit code
225
243
  or signal and up to 8 KiB of trailing stderr, without writing to CLI stdout.
@@ -356,7 +374,7 @@ The selection applies only to component files in this request and a missing
356
374
  generated output being restored. It cannot overwrite seed, config, app CSS, agent
357
375
  instructions or ownership records. Existing theme edits stay intact.
358
376
 
359
- The internal planAdd({project,core,names}) returns {writes,dependencySpecs,componentNames}.
377
+ The internal planAdd({project,core,names}, io) returns {writes,dependencySpecs,componentNames,registryItems}.
360
378
  Writes use B2's WritePlan and ownership ledger. Conflict, byte, physical-target and
361
379
  root-confinement preflight runs before the package manager. Compatible declared
362
380
  dependencies skip installation; incompatible declarations and differing exact pins
@@ -413,7 +431,7 @@ npm ci
413
431
  npm run build:cli
414
432
  npm pack --workspace werewolf-ui --pack-destination /absolute/path/to/output
415
433
  cd /absolute/path/to/consumer
416
- npm install /absolute/path/to/output/werewolf-ui-0.1.0-alpha.1.tgz --engine-strict
434
+ npm install /absolute/path/to/output/werewolf-ui-0.1.0-alpha.3.tgz --engine-strict
417
435
  ```
418
436
 
419
437
  The supported alpha layouts are Next.js app-router (app or src/app) and Vite React