@forgeax/engine-pack 0.1.26 → 0.1.28

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
@@ -147,8 +147,8 @@ source.
147
147
 
148
148
  | Need | Entry | Safe action |
149
149
  |:--|:--|:--|
150
- | Inspect one asset | `forgeax-engine-remote-asset lookup --guid ... --project ... --catalog ... --json` | Read structured evidence and diagnostics |
151
- | Verify a result | `forgeax-engine-remote-asset verify --guid ... --project ... --catalog ... --json` | Repair the producer or package, then retry |
150
+ | Inspect one asset | `forgeax asset inspect --subject <guid> --root <project> --json` | Read structured evidence and diagnostics |
151
+ | Verify a result | `forgeax asset verify --root <project> --json` | Repair the producer or package, then retry |
152
152
  | Rebuild a cooked result | Pack/import runner and the declared producer | Cold cook after discarding invalid DDC |
153
153
  | Preview old output | Catalog evidence with explicit last-known-good state | Preview only; never publish it as current |
154
154
 
@@ -191,7 +191,7 @@ sampler、强度或非默认坐标等附加元数据才使用结构化纹理对
191
191
  > package moves and DDC relocation. Paths and array positions are locators,
192
192
  > not identities.
193
193
 
194
- Disk schema, GUID tools (`AssetGuid` brand + UUIDv7/v5), mesh-binary wire facts, and scanner fail-fast chain (13-member `PackErrorCode`) for the forgeax engine asset package system. The three CLI surfaces -- `scan`, `lookup`, `verify` -- are shipped as the standalone plugin bin `forgeax-engine-remote-asset` (resolved via PATH-prefix discovery for `forgeax-engine-remote-`; filesystem-mode; offline; no WS connection required).
194
+ Disk schema, GUID tools (`AssetGuid` brand + UUIDv7/v5), mesh-binary wire facts, and scanner fail-fast chain (13-member `PackErrorCode`) for the ForgeaX asset package system. The unified `asset list`, `asset inspect`, and `asset verify` commands call this owner in filesystem mode; they are offline and require no WS connection.
195
195
 
196
196
  > Package name vs directory: this package is published as `@forgeax/engine-pack` but lives at `packages/pack` on disk. The `@forgeax/engine-` prefix is the IDE-autocomplete entrypoint AI users discover the package family by; the directory drops the prefix to keep tree depth flat (mirrors the `packages/runtime` / `@forgeax/engine-runtime` pair). All other packages in the engine family follow the same convention.
197
197
 
@@ -266,7 +266,7 @@ vectors, colors, and asset-GUID constraints. The isolated Pack worker passes
266
266
  only serializable authoring data to the build and never exposes filesystem or
267
267
  runtime state.
268
268
 
269
- `forgeax-engine-remote-asset meta <source.pack.ts> --json` executes module initialization, validates the default export, and projects canonical Meta without calling `build`. `@forgeax/engine-pack/source-node` accepts a host executor with `load` and optional `dispose`; `timeoutMs` bounds module initialization and `buildTimeoutMs` bounds one `build(context)` call. A build timeout returns one structured `pack-source-load-failed` Result with `detail.phase: 'build'`, the configured `timeoutMs`, and deterministic cleanup of the isolated worker and compile root.
269
+ `forgeax asset inspect --subject <source.pack.ts> --root <project> --json` executes module initialization, validates the default export, and projects canonical Meta without calling `build`. `@forgeax/engine-pack/source-node` accepts a host executor with `load` and optional `dispose`; `timeoutMs` bounds module initialization and `buildTimeoutMs` bounds one `build(context)` call. A build timeout returns one structured `pack-source-load-failed` Result with `detail.phase: 'build'`, the configured `timeoutMs`, and deterministic cleanup of the isolated worker and compile root.
270
270
 
271
271
  The default worker executes the complete relative TypeScript module closure on the supported Node floor, including Node 22 hosts that do not load `.ts` files directly. It transpiles that closure into a disposable ESM directory, resolves bare imports through the source project's nearest `node_modules`, and removes the directory when the worker is disposed. Bulk producers use the internal `createScriptablePackModuleExecutorPool()` with two recyclable workers; a pooled lease is released after metadata projection or one build, so a generation never retains one live Worker-backed definition per source.
272
272
 
@@ -460,21 +460,22 @@ Exhaustive `switch (err.code)` without `default` -- TS guards completeness.
460
460
 
461
461
  Access `err.detail.<field>` directly after narrowing via `switch (err.code)` -- full IDE autocomplete.
462
462
 
463
- ## CLI plugin -- `forgeax-engine-remote-asset`
463
+ ## Unified asset commands
464
464
 
465
- The CLI subcommands ship as a standalone plugin bin `forgeax-engine-remote-asset` (entry `dist/cli-asset.mjs`) declared in this package's `package.json#bin`, discovered via PATH-prefix scan for `forgeax-engine-remote-`.
465
+ DevKit loads the Pack producer behind the unified `forgeax asset` command;
466
+ this package does not publish an independent executable.
466
467
 
467
468
  | Subcommand | Description | Exit code |
468
469
  |:--|:--|:--|
469
- | `forgeax-engine-remote-asset scan [--roots <dir>...]` | Print JSON array of all discovered `PackEntry` objects to stdout | 0 always |
470
- | `forgeax-engine-remote-asset lookup <guid>` | Print matching `PackEntry` as JSON to stdout (cwd as scan root) | 0 found / 1 not found |
471
- | `forgeax-engine-remote-asset verify [--strict]` | Run fail-fast 7-step scanner; print `PackError` JSON to stderr on first failure; prints `material-validated: <N>` count at end | 0 clean / 1 error |
470
+ | `forgeax asset list --root <project> --json` | Print discovered `PackEntry` objects | 0 on valid roots |
471
+ | `forgeax asset inspect --subject <guid> --root <project> --json` | Print matching asset evidence | 0 found / 1 not found |
472
+ | `forgeax asset verify --root <project> --json` | Run the fail-fast scanner and return the first structured `PackError` | 0 clean / 1 error |
472
473
 
473
474
  ```bash
474
475
  # Direct invocation (after pnpm -F @forgeax/engine-pack build)
475
- forgeax-engine-remote-asset scan --roots apps/hello/room/assets
476
- forgeax-engine-remote-asset lookup 01935f3b-aaaa-7000-8000-000000000001
477
- forgeax-engine-remote-asset verify --strict
476
+ forgeax asset list --root ./game --json
477
+ forgeax asset inspect --subject 01935f3b-aaaa-7000-8000-000000000001 --root ./game --json
478
+ forgeax asset verify --root ./game --json
478
479
  ```
479
480
 
480
481
  ## Scanner 7-step validation chain
package/dist/build.mjs CHANGED
@@ -8450,7 +8450,7 @@ var meta_schema_default = {
8450
8450
  properties: {
8451
8451
  schemaVersion: {
8452
8452
  oneOf: [{ type: "string" }, { type: "integer" }],
8453
- description: "Schema version. Strings (e.g. '1.0.0') for hand-authored .meta.json; integers (1, 2, ...) for importer-emitted .meta.json (forgeax-engine-remote-asset import writes schemaVersion: 1 as the wire format SSOT, GltfMetaJson literal type)."
8453
+ description: "Schema version. Strings (e.g. '1.0.0') for hand-authored .meta.json; integers (1, 2, ...) for importer-emitted .meta.json (forgeax asset import writes schemaVersion: 1 as the wire format SSOT, GltfMetaJson literal type)."
8454
8454
  },
8455
8455
  kind: {
8456
8456
  type: "string",