@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.
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ export { runAtlas } from './atlas/run-atlas.js';
2
3
  export interface PackEntry {
3
4
  readonly guid: string;
4
5
  readonly kind: string;
@@ -18,5 +19,4 @@ export declare function scanEntries(roots: readonly string[], ctx: AssetCtx): Pr
18
19
  ok: false;
19
20
  }>;
20
21
  export declare function runCliAsset(rest: string[], ctx: AssetCtx): Promise<number>;
21
- export {};
22
22
  //# sourceMappingURL=cli-asset.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cli-asset.d.ts","sourceRoot":"","sources":["../src/cli-asset.ts"],"names":[],"mappings":";AAgCA,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,QAAQ;IAChB,QAAQ,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,QAAQ,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,mFAAmF;IACnF,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;CACvB;AAwBD,wBAAsB,WAAW,CAC/B,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,GAAG,EAAE,QAAQ,GACZ,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,SAAS,EAAE,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAA;CAAE,CAAC,CAgF3D;AA2BD,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAiChF"}
1
+ {"version":3,"file":"cli-asset.d.ts","sourceRoot":"","sources":["../src/cli-asset.ts"],"names":[],"mappings":";AA+BA,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,QAAQ;IAChB,QAAQ,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,QAAQ,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,mFAAmF;IACnF,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC;CACvB;AAwBD,wBAAsB,WAAW,CAC/B,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,GAAG,EAAE,QAAQ,GACZ,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,KAAK,EAAE,SAAS,EAAE,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAA;CAAE,CAAC,CAgF3D;AAyBD,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAiChF"}
@@ -7130,7 +7130,7 @@ async function runAtlas(rest, ctx) {
7130
7130
  if (!argsOutcome.ok) {
7131
7131
  return emitError(ctx, {
7132
7132
  code: "atlas-empty-input",
7133
- expected: "forgeax-engine-remote-asset atlas --input <glob> --name <prefix> [--output <dir>] [--max-atlas-size <n>]",
7133
+ expected: "forgeax asset atlas --input <glob> --name <prefix> [--output <dir>] [--max-atlas-size <n>]",
7134
7134
  hint: argsOutcome.message,
7135
7135
  detail: { receivedCount: 0 }
7136
7136
  });
@@ -8308,7 +8308,7 @@ var meta_schema_default = {
8308
8308
  properties: {
8309
8309
  schemaVersion: {
8310
8310
  oneOf: [{ type: "string" }, { type: "integer" }],
8311
- 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)."
8311
+ 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)."
8312
8312
  },
8313
8313
  kind: {
8314
8314
  type: "string",
@@ -9836,16 +9836,14 @@ async function scanEntries(roots, ctx) {
9836
9836
  }
9837
9837
  function helpBody() {
9838
9838
  return [
9839
- "forgeax-engine-remote-asset \u2014 offline pack scanner / lookup / verifier / atlas builder",
9839
+ "forgeax asset \u2014 offline pack scanner / lookup / verifier / atlas builder",
9840
9840
  "",
9841
9841
  "Usage:",
9842
- " forgeax-engine-remote-asset scan [--roots <dir>]",
9843
- " forgeax-engine-remote-asset lookup <guid>",
9844
- " forgeax-engine-remote-asset verify",
9845
- " forgeax-engine-remote-asset meta <source.pack.ts> --json",
9846
- " forgeax-engine-remote-asset lookup --guid <guid> --project <dir> --catalog <path> --json",
9847
- " forgeax-engine-remote-asset verify --guid <guid> --project <dir> --catalog <path> --json",
9848
- " forgeax-engine-remote-asset atlas --input <glob> --name <prefix> [--output <dir>] [--max-atlas-size <n>]",
9842
+ " forgeax asset list --root <project> --json",
9843
+ " forgeax asset inspect --subject <guid> --root <project> --json",
9844
+ " forgeax asset verify --root <project> --json",
9845
+ " forgeax asset inspect --subject <source.pack.ts> --root <project> --json",
9846
+ " forgeax asset atlas --input <glob> --name <prefix> --root <project> [--output <dir>]",
9849
9847
  "",
9850
9848
  "AI recovery commands (host execution remains explicit):",
9851
9849
  " inspect [--guid <guid>] read subject, execution, lifecycle, authority, and sourceKey evidence",
@@ -9887,7 +9885,7 @@ async function runCliAsset(rest, ctx) {
9887
9885
  return emitError2(ctx, {
9888
9886
  code: "unknown-subcommand",
9889
9887
  expected: "subcommand in {scan, lookup, verify, atlas, meta}",
9890
- hint: "run 'forgeax-engine-remote-asset --help' for usage",
9888
+ hint: "run 'forgeax help asset' for usage",
9891
9889
  detail: { subcommand: sub }
9892
9890
  });
9893
9891
  }
@@ -9908,7 +9906,7 @@ async function runMeta(rest, ctx) {
9908
9906
  } catch (error) {
9909
9907
  return emitError2(ctx, {
9910
9908
  code: "cli-parse-error",
9911
- expected: "forgeax-engine-remote-asset meta <source.pack.ts> --json",
9909
+ expected: "forgeax asset inspect --subject <source.pack.ts> --root <project> --json",
9912
9910
  hint: "pass one trusted ScriptablePack module path",
9913
9911
  detail: { message: error instanceof Error ? error.message : String(error) }
9914
9912
  });
@@ -9944,7 +9942,7 @@ async function runRecoveryCommand(operation, rest, ctx) {
9944
9942
  return emitError2(ctx, {
9945
9943
  code: "cli-parse-error",
9946
9944
  expected: `${operation} [--guid <guid>]`,
9947
- hint: "run 'forgeax-engine-remote-asset --help' for usage",
9945
+ hint: "run 'forgeax help asset' for usage",
9948
9946
  detail: { message: error instanceof Error ? error.message : String(error) }
9949
9947
  });
9950
9948
  }
@@ -9963,8 +9961,8 @@ async function runScan(rest, ctx) {
9963
9961
  const message = e instanceof Error ? e.message : String(e);
9964
9962
  return emitError2(ctx, {
9965
9963
  code: "cli-parse-error",
9966
- expected: "forgeax-engine-remote-asset scan [--roots <dir>]",
9967
- hint: "run 'forgeax-engine-remote-asset --help' for usage",
9964
+ expected: "forgeax asset list --root <project> --json",
9965
+ hint: "run 'forgeax help asset' for usage",
9968
9966
  detail: { message }
9969
9967
  });
9970
9968
  }
@@ -9979,7 +9977,7 @@ async function runLookup(rest, ctx) {
9979
9977
  if (typeof guid !== "string") {
9980
9978
  return emitError2(ctx, {
9981
9979
  code: "cli-parse-error",
9982
- expected: "forgeax-engine-remote-asset lookup <36-char-uuid>",
9980
+ expected: "forgeax asset inspect --subject <guid> --root <project> --json",
9983
9981
  hint: "pass a 36-char dash-form UUID positional argument"
9984
9982
  });
9985
9983
  }
@@ -10020,8 +10018,8 @@ async function runVerify(rest, ctx) {
10020
10018
  const message = e instanceof Error ? e.message : String(e);
10021
10019
  return emitError2(ctx, {
10022
10020
  code: "cli-parse-error",
10023
- expected: "forgeax-engine-remote-asset verify",
10024
- hint: "run 'forgeax-engine-remote-asset --help' for usage",
10021
+ expected: "forgeax asset verify --root <project> --json",
10022
+ hint: "run 'forgeax help asset' for usage",
10025
10023
  detail: { message }
10026
10024
  });
10027
10025
  }
@@ -10052,7 +10050,7 @@ function parseEvidenceOptions(rest, ctx) {
10052
10050
  emitError2(ctx, {
10053
10051
  code: "cli-parse-error",
10054
10052
  expected: "--guid <guid> --project <dir> --catalog <path> --json",
10055
- hint: "run 'forgeax-engine-remote-asset --help' for usage"
10053
+ hint: "run 'forgeax help asset' for usage"
10056
10054
  });
10057
10055
  return void 0;
10058
10056
  }
@@ -10062,7 +10060,7 @@ function parseEvidenceOptions(rest, ctx) {
10062
10060
  emitError2(ctx, {
10063
10061
  code: "cli-parse-error",
10064
10062
  expected: "--guid <guid> --project <dir> --catalog <path> --json",
10065
- hint: "run 'forgeax-engine-remote-asset --help' for usage",
10063
+ hint: "run 'forgeax help asset' for usage",
10066
10064
  detail: { message }
10067
10065
  });
10068
10066
  return void 0;
@@ -10208,6 +10206,6 @@ if (isBinEntry) {
10208
10206
  process.exit(exitCode);
10209
10207
  }
10210
10208
 
10211
- export { runCliAsset, scanEntries };
10209
+ export { runAtlas, runCliAsset, scanEntries };
10212
10210
  //# sourceMappingURL=cli-asset.mjs.map
10213
10211
  //# sourceMappingURL=cli-asset.mjs.map