@dreamboard-games/cli 0.1.30-alpha.39 → 0.1.30-alpha.40

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 (26) hide show
  1. package/dist/agent-verifier/agent-workspace-verifier.mjs +6 -6
  2. package/dist/agent-verifier/agent-workspace-verifier.mjs.map +1 -1
  3. package/dist/agent-verifier/{chunk-WLUEMKVV.mjs → chunk-KAA3B4DI.mjs} +4 -4
  4. package/dist/agent-verifier/{chunk-WLUEMKVV.mjs.map → chunk-KAA3B4DI.mjs.map} +1 -1
  5. package/dist/agent-verifier/{chunk-M6YNQZCC.mjs → chunk-LROY5SN2.mjs} +4 -33
  6. package/dist/agent-verifier/chunk-LROY5SN2.mjs.map +1 -0
  7. package/dist/agent-verifier/{materialize-workspace-RPWQ5PST.mjs → materialize-workspace-JBDL6LF4.mjs} +4 -5
  8. package/dist/agent-verifier/materialize-workspace-JBDL6LF4.mjs.map +1 -0
  9. package/dist/agent-verifier/{reducer-native-test-harness-UFMSNNDY.mjs → reducer-native-test-harness-XQUPIT5D.mjs} +20 -20
  10. package/dist/agent-verifier/reducer-native-test-harness-XQUPIT5D.mjs.map +1 -0
  11. package/dist/agent-verifier/{static-scaffold-4HXUM2S4.mjs → static-scaffold-U5DXE23S.mjs} +2 -2
  12. package/dist/authoring-compatibility-internal.js +1 -1
  13. package/dist/{chunk-IZ7N2NLZ.js → chunk-5IYJOVUA.js} +22 -32
  14. package/dist/chunk-5IYJOVUA.js.map +1 -0
  15. package/dist/{chunk-R6J3LAQY.js → chunk-USZAPMQ4.js} +8 -38
  16. package/dist/{chunk-R6J3LAQY.js.map → chunk-USZAPMQ4.js.map} +1 -1
  17. package/dist/index.js +12 -15
  18. package/dist/index.js.map +1 -1
  19. package/dist/internal.js +2 -2
  20. package/package.json +1 -1
  21. package/release/authoring-release-set.json +3 -3
  22. package/dist/agent-verifier/chunk-M6YNQZCC.mjs.map +0 -1
  23. package/dist/agent-verifier/materialize-workspace-RPWQ5PST.mjs.map +0 -1
  24. package/dist/agent-verifier/reducer-native-test-harness-UFMSNNDY.mjs.map +0 -1
  25. package/dist/chunk-IZ7N2NLZ.js.map +0 -1
  26. /package/dist/agent-verifier/{static-scaffold-4HXUM2S4.mjs.map → static-scaffold-U5DXE23S.mjs.map} +0 -0
@@ -24,7 +24,7 @@ import {
24
24
  writeWorkspaceJsonFile,
25
25
  writeWorkspaceTextFile,
26
26
  zProblemDetails
27
- } from "./chunk-R6J3LAQY.js";
27
+ } from "./chunk-USZAPMQ4.js";
28
28
  import {
29
29
  getStoredSession,
30
30
  loadGlobalConfig,
@@ -41,7 +41,7 @@ import {
41
41
 
42
42
  // src/build-target.ts
43
43
  var injectedBuildChannel = true ? "published" : void 0;
44
- var injectedPackageVersion = true ? "0.1.30-alpha.39" : void 0;
44
+ var injectedPackageVersion = true ? "0.1.30-alpha.40" : void 0;
45
45
  var BUILD_CHANNEL = injectedBuildChannel === "published" ? "published" : "development";
46
46
  var PACKAGE_VERSION = injectedPackageVersion ?? "0.0.0-development";
47
47
  function isAlphaReleaseVersion(version) {
@@ -1277,7 +1277,7 @@ function compareCreatedAtDesc(left, right) {
1277
1277
  return 0;
1278
1278
  }
1279
1279
  async function findFallbackCompiledResultForJob(options) {
1280
- const { gameId, projectId, job } = options;
1280
+ const { projectId, job } = options;
1281
1281
  if (!projectId) {
1282
1282
  return null;
1283
1283
  }
@@ -1303,11 +1303,6 @@ async function findCompiledResultsForAuthoringState(options) {
1303
1303
  void options;
1304
1304
  return [];
1305
1305
  }
1306
- async function getCompiledResultSdk(gameId, compiledResultId) {
1307
- void gameId;
1308
- void compiledResultId;
1309
- throw new Error("Game-scoped compiled result lookup is no longer supported.");
1310
- }
1311
1306
  async function getProjectCompiledResultSdk(projectId, compiledResultId) {
1312
1307
  const { data, error, response } = await getProjectCompiledResult({
1313
1308
  path: { projectId, compiledResultId }
@@ -1322,7 +1317,10 @@ async function getProjectCompiledResultSdk(projectId, compiledResultId) {
1322
1317
  return data;
1323
1318
  }
1324
1319
  async function waitForCompiledResultJobSdk(options) {
1325
- const { gameId, projectId, jobId, onProgress } = options;
1320
+ const { projectId, jobId, onProgress } = options;
1321
+ if (!projectId) {
1322
+ throw new Error("projectId is required when waiting for a compile job.");
1323
+ }
1326
1324
  let previousTransitionKey = null;
1327
1325
  const startedAt = Date.now();
1328
1326
  const timeoutMs = readCompileJobWaitTimeoutMs();
@@ -1349,21 +1347,13 @@ async function waitForCompiledResultJobSdk(options) {
1349
1347
  if (job.status === "COMPLETED" || job.status === "FAILED") {
1350
1348
  const compiledResultId = job.createdCompiledResultId ?? job.createdAppScriptId;
1351
1349
  if (compiledResultId) {
1352
- if (projectId) {
1353
- const compiledResult2 = await getProjectCompiledResultSdk(
1354
- projectId,
1355
- compiledResultId
1356
- );
1357
- return { job, compiledResult: compiledResult2 };
1358
- }
1359
- const compiledResult = await getCompiledResultSdk(
1360
- gameId,
1350
+ const compiledResult = await getProjectCompiledResultSdk(
1351
+ projectId,
1361
1352
  compiledResultId
1362
1353
  );
1363
1354
  return { job, compiledResult };
1364
1355
  }
1365
1356
  const fallbackCompiledResult = await findFallbackCompiledResultForJob({
1366
- gameId,
1367
1357
  projectId,
1368
1358
  job
1369
1359
  });
@@ -2634,7 +2624,7 @@ var ShadowReducerRuntime = class {
2634
2624
  this.debug = debug;
2635
2625
  if (typeof gameModuleDefault !== "object" || gameModuleDefault === null || !("contract" in gameModuleDefault)) {
2636
2626
  throw new Error(
2637
- "app/game.ts must export a reducer-native game definition."
2627
+ "app/game.ts must export a reducer-native project definition."
2638
2628
  );
2639
2629
  }
2640
2630
  this.bundle = this.modules.createReducerBundle(gameModuleDefault);
@@ -3014,7 +3004,7 @@ async function createSessionFromScenario(options) {
3014
3004
  return {
3015
3005
  sessionId: snapshot.context.sessionId,
3016
3006
  shortCode: snapshot.context.shortCode,
3017
- gameId: projectIdFromSessionGameSource(snapshot.context.gameSource),
3007
+ projectId: projectIdFromSessionGameSource(snapshot.context.gameSource),
3018
3008
  seed: materialized.seed,
3019
3009
  playerCount: materialized.playerCount,
3020
3010
  setupProfileId: materialized.setupProfileId,
@@ -3090,7 +3080,7 @@ async function materializeScenarioReducerState(options) {
3090
3080
  (entry) => entry.id === options.scenarioId
3091
3081
  );
3092
3082
  const generatedBase2 = scenarioEntry ? generatedBaseStates2?.[baseStateKey(scenarioEntry.base)] : null;
3093
- if (generatedBase2 && generatedBase2.fingerprint.compiledResultId === options.compiledResultId && generatedBase2.fingerprint.gameId === options.gameId) {
3083
+ if (generatedBase2 && generatedBase2.fingerprint.compiledResultId === options.compiledResultId && generatedBase2.fingerprint.projectId === options.projectId) {
3094
3084
  const cached2 = await readMaterializedScenarioCache({
3095
3085
  projectRoot: options.projectRoot,
3096
3086
  baseId: scenarioEntry.base,
@@ -3141,13 +3131,13 @@ async function materializeScenarioReducerState(options) {
3141
3131
  `Generated base artifact for '${base.definition.id}' is stale. Run 'dreamboard test' before using --from-scenario.`
3142
3132
  );
3143
3133
  }
3144
- const canTrustGeneratedFingerprint = options.trustGeneratedFingerprint === true && generatedBase.fingerprint.compiledResultId === options.compiledResultId && generatedBase.fingerprint.gameId === options.gameId;
3134
+ const canTrustGeneratedFingerprint = options.trustGeneratedFingerprint === true && generatedBase.fingerprint.compiledResultId === options.compiledResultId && generatedBase.fingerprint.projectId === options.projectId;
3145
3135
  const current = canTrustGeneratedFingerprint ? generatedBase.fingerprint : await currentFingerprint({
3146
3136
  projectRoot: options.projectRoot,
3147
3137
  base,
3148
3138
  basesById,
3149
3139
  compiledResultId: options.compiledResultId,
3150
- gameId: options.gameId
3140
+ projectId: options.projectId
3151
3141
  });
3152
3142
  if (!canTrustGeneratedFingerprint) {
3153
3143
  validateGeneratedFingerprint({
@@ -3443,7 +3433,7 @@ async function writeReducerNativeGeneratedFiles(options) {
3443
3433
  uiContractHash,
3444
3434
  setupProfileId: effectiveSetup.setupProfileId,
3445
3435
  compiledResultId: options.compiledResultId,
3446
- gameId: options.gameId,
3436
+ projectId: options.projectId,
3447
3437
  parentBaseId: base.definition.extends ?? null,
3448
3438
  parentFingerprintHash,
3449
3439
  contractFingerprint: contractFingerprintValue
@@ -3546,7 +3536,7 @@ function validateGeneratedFingerprint(options) {
3546
3536
  mismatches.push("manifest changed");
3547
3537
  }
3548
3538
  if (options.generated.appBundleHash !== options.current.appBundleHash) {
3549
- mismatches.push("game reducer bundle changed");
3539
+ mismatches.push("project reducer bundle changed");
3550
3540
  }
3551
3541
  if (options.generated.uiContractHash !== options.current.uiContractHash) {
3552
3542
  mismatches.push("ui contract changed");
@@ -3603,7 +3593,7 @@ async function currentFingerprint(options) {
3603
3593
  base: parentBase,
3604
3594
  basesById: options.basesById,
3605
3595
  compiledResultId: options.compiledResultId,
3606
- gameId: options.gameId
3596
+ projectId: options.projectId
3607
3597
  })
3608
3598
  );
3609
3599
  }
@@ -3626,7 +3616,7 @@ async function currentFingerprint(options) {
3626
3616
  ),
3627
3617
  setupProfileId: effectiveSetup.setupProfileId,
3628
3618
  compiledResultId: options.compiledResultId,
3629
- gameId: options.gameId,
3619
+ projectId: options.projectId,
3630
3620
  parentBaseId: options.base.definition.extends ?? null,
3631
3621
  parentFingerprintHash,
3632
3622
  contractFingerprint: contractFingerprintValue
@@ -3647,7 +3637,7 @@ async function generateReducerNativeArtifacts(options) {
3647
3637
  bases,
3648
3638
  scenarios,
3649
3639
  compiledResultId: options.compiledResultId,
3650
- gameId: options.gameId,
3640
+ projectId: options.projectId,
3651
3641
  debug: options.debug
3652
3642
  });
3653
3643
  return { bases, scenarios };
@@ -3687,7 +3677,7 @@ async function runReducerNativeScenarios(options) {
3687
3677
  bases,
3688
3678
  scenarios,
3689
3679
  compiledResultId: options.compiledResultId,
3690
- gameId: options.gameId,
3680
+ projectId: options.projectId,
3691
3681
  debug: options.debug
3692
3682
  });
3693
3683
  generatedBaseStates = await loadGeneratedBaseStates(options.projectRoot);
@@ -3710,7 +3700,7 @@ async function runReducerNativeScenarios(options) {
3710
3700
  base,
3711
3701
  basesById,
3712
3702
  compiledResultId: options.compiledResultId,
3713
- gameId: options.gameId
3703
+ projectId: options.projectId
3714
3704
  })
3715
3705
  });
3716
3706
  }
@@ -3909,4 +3899,4 @@ export {
3909
3899
  isLocalMaintainerRegistryEnabled,
3910
3900
  didLocalMaintainerSnapshotChange
3911
3901
  };
3912
- //# sourceMappingURL=chunk-IZ7N2NLZ.js.map
3902
+ //# sourceMappingURL=chunk-5IYJOVUA.js.map