@forgeax/engine-pack 0.1.29 → 0.1.30

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.
Files changed (40) hide show
  1. package/README.md +16 -0
  2. package/dist/build.mjs +65 -9
  3. package/dist/build.mjs.map +1 -1
  4. package/dist/catalog-projection.d.ts +3 -3
  5. package/dist/cli-asset.mjs +1 -1
  6. package/dist/cli-asset.mjs.map +1 -1
  7. package/dist/evidence/material-cook.d.ts +7 -1
  8. package/dist/evidence/material-cook.d.ts.map +1 -1
  9. package/dist/index.mjs +61 -5
  10. package/dist/index.mjs.map +1 -1
  11. package/dist/material-cook.mjs +61 -5
  12. package/dist/material-cook.mjs.map +1 -1
  13. package/dist/pack-authoring-node.mjs +1 -1
  14. package/dist/pack-authoring-node.mjs.map +1 -1
  15. package/dist/pack-authoring.d.ts +8 -2
  16. package/dist/pack-authoring.d.ts.map +1 -1
  17. package/dist/pack-authoring.mjs.map +1 -1
  18. package/dist/runtime-publication.d.ts +2 -0
  19. package/dist/runtime-publication.d.ts.map +1 -1
  20. package/dist/scanner.mjs +1 -1
  21. package/dist/scanner.mjs.map +1 -1
  22. package/dist/scriptable-pack-node.d.ts.map +1 -1
  23. package/dist/scriptable-pack-node.mjs +1 -1
  24. package/dist/scriptable-pack-node.mjs.map +1 -1
  25. package/dist/scriptable-pack-worker.mjs +7 -4
  26. package/dist/scriptable-pack-worker.mjs.map +1 -1
  27. package/dist/scriptable-pack.d.ts +2 -1
  28. package/dist/scriptable-pack.d.ts.map +1 -1
  29. package/dist/scriptable-pack.mjs.map +1 -1
  30. package/package.json +2 -2
  31. package/src/__tests__/material-cook-schema.unit.test.ts +92 -1
  32. package/src/__tests__/runtime-publication.unit.test.ts +36 -0
  33. package/src/__tests__/scriptable-pack-cli.integration.test.ts +35 -1
  34. package/src/evidence/material-cook.ts +79 -5
  35. package/src/pack-authoring.ts +11 -2
  36. package/src/runtime-publication.ts +7 -3
  37. package/src/schema/material-cook.schema.json +107 -0
  38. package/src/scriptable-pack-node.ts +5 -1
  39. package/src/scriptable-pack-worker.ts +15 -4
  40. package/src/scriptable-pack.ts +2 -1
@@ -1,19 +1,19 @@
1
1
  import type { AssetAuthoringCapability, AssetPublicationEnvelope, CatalogDiagnostic, CatalogEntryV2, CatalogLifecycle, CatalogSubject, CookExecution, PackIndexEntry, ProducerContractResult, ProviderProvenance, ResourceRevision, SourceOverrideDescriptor } from '@forgeax/engine-types';
2
2
  export declare function catalogProjectionFor(subject: 'internal-asset' | 'imported-output', execution: 'direct' | 'cooked', lifecycle: 'missing' | 'cooking' | 'current' | 'stale' | 'failed'): {
3
3
  readonly subject: "internal-asset" | "imported-output";
4
- readonly execution: "direct" | "cooked";
4
+ readonly execution: "cooked" | "direct";
5
5
  readonly lifecycle: "missing" | "cooking" | "current" | "stale" | "failed";
6
6
  readonly operations: Readonly<Record<import("@forgeax/engine-types").CatalogOperationName, import("@forgeax/engine-types").CatalogOperationDescriptor>>;
7
7
  };
8
8
  export declare function currentProjectionFor(subject: 'internal-asset' | 'imported-output', execution: 'direct' | 'cooked'): {
9
9
  readonly projection: {
10
10
  readonly subject: "internal-asset" | "imported-output";
11
- readonly execution: "direct" | "cooked";
11
+ readonly execution: "cooked" | "direct";
12
12
  readonly lifecycle: "missing" | "cooking" | "current" | "stale" | "failed";
13
13
  readonly operations: Readonly<Record<import("@forgeax/engine-types").CatalogOperationName, import("@forgeax/engine-types").CatalogOperationDescriptor>>;
14
14
  };
15
15
  readonly subject: "internal-asset" | "imported-output";
16
- readonly execution: "direct" | "cooked";
16
+ readonly execution: "cooked" | "direct";
17
17
  readonly lifecycle: "missing" | "cooking" | "current" | "stale" | "failed";
18
18
  readonly operations: Readonly<Record<import("@forgeax/engine-types").CatalogOperationName, import("@forgeax/engine-types").CatalogOperationDescriptor>>;
19
19
  };
@@ -9007,7 +9007,7 @@ function scriptablePackLoadFailure(sourcePath, reason, phase, diagnostic, timeou
9007
9007
  }
9008
9008
  async function loadScriptablePack(sourcePath, options = {}) {
9009
9009
  const timeoutMs = options.timeoutMs ?? 15e3;
9010
- const buildTimeoutMs = options.buildTimeoutMs ?? 5e3;
9010
+ const buildTimeoutMs = options.buildTimeoutMs ?? 15e3;
9011
9011
  const executor = options.executor ?? new WorkerScriptablePackExecutor();
9012
9012
  let disposeReason;
9013
9013
  let timeout;