@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 +13 -12
- package/dist/build.mjs +1 -1
- package/dist/build.mjs.map +1 -1
- package/dist/cli-asset.d.ts +1 -1
- package/dist/cli-asset.d.ts.map +1 -1
- package/dist/cli-asset.mjs +19 -21
- package/dist/cli-asset.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/pack-authoring-node.mjs +1 -1
- package/dist/pack-authoring-node.mjs.map +1 -1
- package/dist/runtime.mjs +1 -1
- package/dist/runtime.mjs.map +1 -1
- package/dist/scanner.mjs +1 -1
- package/dist/scanner.mjs.map +1 -1
- package/dist/schema.mjs +1 -1
- package/dist/schema.mjs.map +1 -1
- package/package.json +3 -6
- package/schema/meta.schema.json +1 -1
- package/src/__tests__/atlas-cli-region-mismatch.test.ts +1 -1
- package/src/__tests__/cli.unit.test.ts +1 -1
- package/src/__tests__/pack.unit.test.ts +3 -3
- package/src/atlas/run-atlas.ts +3 -3
- package/src/atlas/shelf-pack.ts +1 -1
- package/src/atlas/upng-ambient.d.ts +1 -1
- package/src/cli-asset.ts +22 -23
- package/src/scanner.ts +1 -1
package/README.md
CHANGED
|
@@ -147,8 +147,8 @@ source.
|
|
|
147
147
|
|
|
148
148
|
| Need | Entry | Safe action |
|
|
149
149
|
|:--|:--|:--|
|
|
150
|
-
| Inspect one asset | `forgeax
|
|
151
|
-
| Verify a result | `forgeax
|
|
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
|
|
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
|
|
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
|
-
##
|
|
463
|
+
## Unified asset commands
|
|
464
464
|
|
|
465
|
-
|
|
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
|
|
470
|
-
| `forgeax
|
|
471
|
-
| `forgeax
|
|
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
|
|
476
|
-
forgeax
|
|
477
|
-
forgeax
|
|
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
|
|
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",
|